using CommonFunc; using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; using XGL.Data; namespace XGL.UControl { /// /// UCUserList.xaml 的交互逻辑 /// public partial class UCUserList : UserControl { public UCUserList() { InitializeComponent(); } private void Button_Click(object sender, RoutedEventArgs e) { } private void btnQuary_Click(object sender, RoutedEventArgs e) { if (CommonHelper.IsHavePermition("1002", "Quary")) { //MainContent.Child = new UControl.UCUserList(); } else { MessageBox.Show("用户没有按钮权限,请联系管理员!", "提示", MessageBoxButton.OK); return; } } private void BindGrid() { try { using (userDB ud = new userDB()) { } } catch (Exception ex) { MethodInfo method = (MethodInfo)MethodBase.GetCurrentMethod(); Common.Log.Error(method.DeclaringType.FullName + "-" + method.Name + "\r\n" + ex.Message + "\r\n" + ex.StackTrace); } } } }