Beispiel #1
0
 private void GetUserRoles()
 {
     try
     {
         GlobalObject.UserRoles = _bll.GetUserRoles(new UserRolesVM {
             UserID = GlobalObject.User.ID
         });
         this.Hide();
         if (GlobalObject.FrmLogOn == null)
         {
             GlobalObject.FrmLogOn = this;
         }
         if (GlobalObject.FrmMain == null)
         {
             GlobalObject.FrmMain = new FrmMain();
         }
         else
         {
             GlobalObject.FrmMain.LoadMenus();
         }
         GlobalObject.FrmMain.Show();
     }
     catch (Exception ex)
     {
         XtraMessageBox.Show(ex.ToString(), "提示", MessageBoxButtons.OK);
     }
 }
Beispiel #2
0
 private void RequestUserRolesData()
 {
     try
     {
         gcUserRoles.DataSource = _bll.GetUserRoles(new UserRolesVM {
             UserID = 0
         });
     }
     catch (Exception ex)
     {
         XtraMessageBox.Show(ex.ToString(), "提示", MessageBoxButtons.OK);
     }
 }