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; } }
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); } }
public static void Refresh(SystemResourcesWrapper instance) { businessProxy.Refresh(instance.entity); }
public static void Delete(SystemResourcesWrapper instance) { businessProxy.Delete(instance.entity); }
public static void SaveOrUpdate(SystemResourcesWrapper obj) { businessProxy.SaveOrUpdate(obj.entity); }
public static List <SystemPrivilegeWrapper> FindAllByResourcesID(SystemResourcesWrapper resourcesID) { return(ConvertToWrapperList(businessProxy.FindAllByResourcesID(resourcesID.entity))); }
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))); }
public static List <string> GetRoleAssignedPermissionsByResources(SystemRoleWrapper systemRoleWrapper, SystemResourcesWrapper resourcesWrapper) { return(businessProxy.GetRoleAssignedPermissionsByResources(systemRoleWrapper.entity, resourcesWrapper.Entity)); }
public static void Update(SystemResourcesWrapper obj) { businessProxy.Update(obj.entity); }