Exemplo n.º 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;
            }
        }
Exemplo n.º 2
0
        public static void QuickGeneratePrivilege(int resourceid)
        {
            SystemResourcesWrapper systemResourcesWrapper = SystemResourcesWrapper.FindById(resourceid);

            if (systemResourcesWrapper != null)
            {
                businessProxy.QuickGeneratePrivilege(systemResourcesWrapper.Entity);
            }
        }
        public static void QuickPatchAddOperation(int resourceid)
        {
            SystemResourcesWrapper systemResourcesWrapper = SystemResourcesWrapper.FindById(resourceid);

            if (systemResourcesWrapper != null)
            {
                businessProxy.QuickPatchAddOperation(systemResourcesWrapper.Entity);
            }
        }
Exemplo n.º 4
0
 public static void Refresh(SystemResourcesWrapper instance)
 {
     businessProxy.Refresh(instance.entity);
 }
Exemplo n.º 5
0
 public static void Delete(SystemResourcesWrapper instance)
 {
     businessProxy.Delete(instance.entity);
 }
Exemplo n.º 6
0
 public static void SaveOrUpdate(SystemResourcesWrapper obj)
 {
     businessProxy.SaveOrUpdate(obj.entity);
 }
Exemplo n.º 7
0
 public static List <SystemPrivilegeWrapper> FindAllByResourcesID(SystemResourcesWrapper resourcesID)
 {
     return(ConvertToWrapperList(businessProxy.FindAllByResourcesID(resourcesID.entity)));
 }
Exemplo n.º 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)));
 }
Exemplo n.º 10
0
 public static List <string> GetRoleAssignedPermissionsByResources(SystemRoleWrapper systemRoleWrapper, SystemResourcesWrapper resourcesWrapper)
 {
     return(businessProxy.GetRoleAssignedPermissionsByResources(systemRoleWrapper.entity, resourcesWrapper.Entity));
 }
Exemplo n.º 11
0
 public static void Update(SystemResourcesWrapper obj)
 {
     businessProxy.Update(obj.entity);
 }
Exemplo n.º 12
0
 public static void Refresh(SystemResourcesWrapper instance)
 {
     businessProxy.Refresh(instance.entity);
 }
Exemplo n.º 13
0
 public static void Delete(SystemResourcesWrapper instance)
 {
     businessProxy.Delete(instance.entity);
 }