コード例 #1
0
        protected void btnSaveSystemResources_Click(object sender, DirectEventArgs e)
        {
            try
            {
                SystemResourcesWrapper obj = new SystemResourcesWrapper();

                int pid = Convert.ToInt32(this.hidParentResourcesID.Value);

                if (pid > 0)
                {
                    obj.ParentResourcesID = SystemResourcesWrapper.FindById(pid);
                }
                else
                {
                    obj.ParentResourcesID = null;
                }

                obj.ResourcesNameCn = this.txtResourcesNameCn.Text.Trim();
                obj.ResourcesNameEn = this.txtResourcesNameEn.Text.Trim();
                obj.ResourcesDescription = this.txtResourcesDescription.Text.Trim();

                obj.ResourcesIsRelateUser = this.chkResourcesIsRelateUser.Checked;

                SystemResourcesWrapper.Save(obj);

                winSystemResourcesAdd.Hide();

            }
            catch (Exception ex)
            {
                ResourceManager.AjaxSuccess = false;
                ResourceManager.AjaxErrorMessage = "Error Message:" + ex.Message;
            }
        }
コード例 #2
0
        public static void QuickGeneratePrivilege(int resourceid)
        {
            SystemResourcesWrapper systemResourcesWrapper = SystemResourcesWrapper.FindById(resourceid);

            if (systemResourcesWrapper != null)
            {
                businessProxy.QuickGeneratePrivilege(systemResourcesWrapper.Entity);
            }
        }
コード例 #3
0
        public static void QuickPatchAddOperation(int resourceid)
        {
            SystemResourcesWrapper systemResourcesWrapper = SystemResourcesWrapper.FindById(resourceid);

            if (systemResourcesWrapper != null)
            {
                businessProxy.QuickPatchAddOperation(systemResourcesWrapper.Entity);
            }
        }
コード例 #4
0
 public static void Refresh(SystemResourcesWrapper instance)
 {
     businessProxy.Refresh(instance.entity);
 }
コード例 #5
0
 public static void Delete(SystemResourcesWrapper instance)
 {
     businessProxy.Delete(instance.entity);
 }
コード例 #6
0
 public static void SaveOrUpdate(SystemResourcesWrapper obj)
 {
     businessProxy.SaveOrUpdate(obj.entity);
 }
コード例 #7
0
 public static List <SystemPrivilegeWrapper> FindAllByResourcesID(SystemResourcesWrapper resourcesID)
 {
     return(ConvertToWrapperList(businessProxy.FindAllByResourcesID(resourcesID.entity)));
 }
コード例 #8
0
 public static List <SystemPrivilegeWrapper> FindAllByOrderByAndFilterAndResourcesID(string orderByColumnName, bool isDesc, SystemResourcesWrapper resourcesID, PageQueryParams pageQueryParams)
 {
     return(ConvertToWrapperList(businessProxy.FindAllByOrderByAndFilterAndResourcesID(orderByColumnName, isDesc, resourcesID.entity, pageQueryParams)));
 }
 public static List <SystemOperationWrapper> FindAllByResourceID(SystemResourcesWrapper resourceID)
 {
     return(ConvertToWrapperList(businessProxy.FindAllByResourceID(resourceID.Entity)));
 }
コード例 #10
0
 public static List <string> GetRoleAssignedPermissionsByResources(SystemRoleWrapper systemRoleWrapper, SystemResourcesWrapper resourcesWrapper)
 {
     return(businessProxy.GetRoleAssignedPermissionsByResources(systemRoleWrapper.entity, resourcesWrapper.Entity));
 }
コード例 #11
0
 public static void Update(SystemResourcesWrapper obj)
 {
     businessProxy.Update(obj.entity);
 }
コード例 #12
0
 public static void Refresh(SystemResourcesWrapper instance)
 {
     businessProxy.Refresh(instance.entity);
 }
コード例 #13
0
 public static void Delete(SystemResourcesWrapper instance)
 {
     businessProxy.Delete(instance.entity);
 }