示例#1
0
 private void SetAccessRights()
 {
     try
     { 
          
         using (var classUser = new ClassUsers(Global.ConnectionString))
         {
             var result = classUser.GetAccessRights(Global.UserId, _Module);
          
             CanEdit = result.CanEdit.Value; 
         }  
     }
     catch (Exception)
     {
         throw;
     }
 }
示例#2
0
        private void SetAccessRights()
        {
            try
            {
                classUser = new ClassUsers(Global.ConnectionString);

                var result = classUser.GetAccessRights(Global.UserId, _Module);

                canView = result.CanView.Value;
                canAdd = result.CanAdd.Value;
                canEdit = result.CanEdit.Value;
                canDelete = result.CanDelete.Value;

            }
            catch (Exception)
            {
                throw;
            }
        }