| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Data; |
| | | using System.Linq; |
| | | using System.Web; |
| | | using VueWebApi.DLL.DAL; |
| | | using VueWebApi.Models; |
| | | using VueWebApi.Tools; |
| | | |
| | | namespace VueWebApi.DLL.BLL |
| | |
| | | public class BasicSettingBLL |
| | | { |
| | | #region [组织架构数据查询] |
| | | public static ToMessage OrganizationSearch(string orgCode, string orgName, string orgType, string userName,int startNum,int endNum,string prop,string order) |
| | | public static ToMessage OrganizationSearch(string orgCode, string orgName, string orgType, string userName, int startNum, int endNum, string prop, string order) |
| | | { |
| | | return BasicSettingDAL.OrganizationSearch(orgCode, orgName,orgType,userName, startNum, endNum, prop, order); |
| | | return BasicSettingDAL.OrganizationSearch(orgCode, orgName, orgType, userName, startNum, endNum, prop, order); |
| | | } |
| | | #endregion |
| | | |
| | | #region [组织架构查找上级单位] |
| | | public static ToMessage PrentOrganization(string orgcode) |
| | | { |
| | | return BasicSettingDAL.PrentOrganization(orgcode); |
| | | } |
| | | #endregion |
| | | |
| | | #region [组织架构新增编辑] |
| | | public static ToMessage AddUpdateOrganization(string organType, string organCode, string organName,string Operator, int supUnit, string operType) |
| | | public static ToMessage AddUpdateOrganization(string organType, string organCode, string organName, string Operator, int supUnit, string RightCode, string numvalue, string operType) |
| | | { |
| | | return BasicSettingDAL.AddUpdateOrganization(organType, organCode, organName, Operator, supUnit,operType); |
| | | return BasicSettingDAL.AddUpdateOrganization(organType, organCode, organName, Operator, supUnit, RightCode, numvalue, operType); |
| | | } |
| | | #endregion |
| | | |
| | |
| | | |
| | | |
| | | #region[用户清单数据查询] |
| | | public static ToMessage UserSearch(string UserCode, string UserName, string StuOrg, string Enable, int startNum, int endNum, string prop, string order) |
| | | public static ToMessage UserSearch(string UserCode, string UserName, string StuOrg, string wagetype, string Enable, int startNum, int endNum, string prop, string order) |
| | | { |
| | | return BasicSettingDAL.UserSearch(UserCode, UserName, StuOrg, Enable, startNum, endNum, prop, order); |
| | | return BasicSettingDAL.UserSearch(UserCode, UserName, StuOrg, wagetype, Enable, startNum, endNum, prop, order); |
| | | } |
| | | #endregion |
| | | |
| | | #region [用户所属组织] |
| | | public static ToMessage UserOrganization() |
| | | { |
| | | return BasicSettingDAL.UserOrganization(); |
| | | } |
| | | #endregion |
| | | |
| | | #region[用户所属班组] |
| | | public static ToMessage UserGroup() |
| | | { |
| | | return BasicSettingDAL.UserGroup(); |
| | | } |
| | | #endregion |
| | | |
| | | #region[用户清单新增编辑] |
| | | public static ToMessage AddUpdateUser(string UserId, string UserCode, string UserName, string Enable,string LoginOrg,string Mobile,string Email, string Operator, string OperType) |
| | | public static ToMessage AddUpdateUser(string UserId, string UserCode, string UserName, string Password, string Enable, string LoginOrg,string groupcode, string wagetype, string Mobile, string Email, string Operator, string OperType) |
| | | { |
| | | return BasicSettingDAL.AddUpdateUser(UserId, UserCode, UserName, Enable, LoginOrg, Mobile, Email, Operator, OperType); |
| | | return BasicSettingDAL.AddUpdateUser(UserId, UserCode, UserName, Password, Enable, LoginOrg, groupcode, wagetype, Mobile, Email, Operator, OperType); |
| | | } |
| | | #endregion |
| | | |
| | |
| | | } |
| | | #endregion |
| | | |
| | | #region[用户清单关联角色保存] |
| | | public static ToMessage SaveUserAssoctRole(string usercode, List<RoleUserSubmit> json) |
| | | { |
| | | return BasicSettingDAL.SaveUserAssoctRole(usercode, json); |
| | | } |
| | | #endregion |
| | | |
| | | #region[用户清单导入] |
| | | public static ToMessage ImportUserExcel(string username, string filesName) |
| | | { |
| | | return BasicSettingDAL.ImportUserExcel(username, filesName); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region[用户组列表查询] |
| | | public static ToMessage UserGroupSearch(int startNum, int endNum, string prop, string order) |
| | | { |
| | | return BasicSettingDAL.UserGroupSearch(startNum, endNum, prop, order); |
| | | } |
| | | #endregion |
| | | |
| | | #region[用户组新增] |
| | | public static ToMessage UserGroupAdd(List<StepDefect> json,string username) |
| | | { |
| | | return BasicSettingDAL.UserGroupAdd(json,username); |
| | | } |
| | | #endregion |
| | | |
| | | #region[用户组删除] |
| | | public static ToMessage UserGroupDelete(string UserGrupCode) |
| | | { |
| | | return BasicSettingDAL.UserGroupDelete(UserGrupCode); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region[角色类型查询] |
| | | public static ToMessage RoleTypeSearch(int startNum, int endNum, string prop, string order) |
| | | { |
| | | return BasicSettingDAL.RoleTypeSearch(startNum, endNum, prop, order); |
| | | } |
| | | #endregion |
| | | |
| | | #region[角色类型新增] |
| | | public static ToMessage RoleTypeAdd(List<ObjectData> json) |
| | | { |
| | | return BasicSettingDAL.RoleTypeAdd(json); |
| | | } |
| | | #endregion |
| | | |
| | | #region[角色类型删除] |
| | | public static ToMessage RoleTypeDelete(string roleTypeCode) |
| | | { |
| | | return BasicSettingDAL.RoleTypeDelete(roleTypeCode); |
| | | } |
| | | #endregion |
| | | |
| | | #region[角色类型下拉接口] |
| | | public static ToMessage RoleTypeSelect() |
| | | { |
| | | return BasicSettingDAL.RoleTypeSelect(); |
| | | } |
| | | #endregion |
| | | |
| | | #region[角色清单查询] |
| | | public static ToMessage RoleSearch(string RoleCode, string RoleName, string RoleTypeCode, string CreateUser, int startNum, int endNum, string prop, string order) |
| | |
| | | return BasicSettingDAL.RoleSearch(RoleCode, RoleName, RoleTypeCode, CreateUser, startNum, endNum, prop, order); |
| | | } |
| | | #endregion |
| | | |
| | | #region[角色清单查询1] |
| | | public static ToMessage RoleAssociationUserTwo(string rolecode) |
| | | { |
| | | return BasicSettingDAL.RoleAssociationUserTwo(rolecode); |
| | | } |
| | | #endregion |
| | | |
| | | #region[角色清单新增编辑] |
| | | public static ToMessage AddUpdateRole(string RoleId, string RoleCode, string RoleName, string RoleTypeCode, string description, string Usercode, string OperType) |
| | | { |
| | | return BasicSettingDAL.AddUpdateRole(RoleId, RoleCode, RoleName, RoleTypeCode, description, Usercode, OperType); |
| | | } |
| | | #endregion |
| | | |
| | | #region[角色清单删除] |
| | | public static ToMessage DeleteRole(string RoleCode) |
| | | { |
| | | return BasicSettingDAL.DeleteRole(RoleCode); |
| | | } |
| | | #endregion |
| | | |
| | | #region[角色清单关联用户查询] |
| | | public static ToMessage RoleAssociationUser(string rolecode, string usercode, string username, string orgcode, string isrole, int startNum, int endNum, string prop, string order) |
| | | { |
| | | return BasicSettingDAL.RoleAssociationUser(rolecode, usercode, username, orgcode, isrole, startNum, endNum, prop, order); |
| | | } |
| | | #endregion |
| | | |
| | | #region[角色清单关联用户保存] |
| | | public static ToMessage SaveRoleAssoctUser(string rolecode, List<ObjectData> json) |
| | | { |
| | | return BasicSettingDAL.SaveRoleAssoctUser(rolecode, json); |
| | | } |
| | | #endregion |
| | | |
| | | #region[角色清单关联功能查询] |
| | | public static ToMessage RoleAssociationRight(string rolecode, string type) |
| | | { |
| | | return BasicSettingDAL.RoleAssociationRight(rolecode, type); |
| | | } |
| | | #endregion |
| | | |
| | | #region [角色清单关联功能保存] |
| | | public static ToMessage SaveUserAssoctRight(string rolecode, string usercode, List<TreeDM> json) |
| | | { |
| | | return BasicSettingDAL.SaveUserAssoctRight(rolecode, usercode, json); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | |
| | | #region[往来单位查询] |
| | | public static ToMessage CurrentUnitSearch(string cuntUnitCode, string cuntUnitName, string unitAttr, string createUser, int startNum, int endNum, string prop, string order) |
| | | { |
| | | return BasicSettingDAL.CurrentUnitSearch(cuntUnitCode, cuntUnitName, unitAttr, createUser, startNum, endNum, prop, order); |
| | | } |
| | | #endregion |
| | | |
| | | #region[往来单位新增编辑] |
| | | public static ToMessage AddUpdateCurrentUnit(string unitid, string unitcode, string unitname, string typecode, string person, string contact, string description, string usercode, string OperType) |
| | | { |
| | | return BasicSettingDAL.AddUpdateCurrentUnit(unitid, unitcode, unitname,typecode, person, contact, description, usercode, OperType); |
| | | } |
| | | #endregion |
| | | |
| | | #region[往来单位删除] |
| | | public static ToMessage DeleteCurrentUnit(string unitcode) |
| | | { |
| | | return BasicSettingDAL.DeleteCurrentUnit(unitcode); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | |
| | | #region[安灯系统/自定义安灯呼叫类型查询] |
| | | public static ToMessage AnDengTypeSearch() |
| | | { |
| | | return BasicSettingDAL.AnDengTypeSearch(); |
| | | } |
| | | #endregion |
| | | |
| | | #region[安灯系统/自定义安灯呼叫类型新增] |
| | | public static ToMessage AddUpdateAnDengType(List<ObjectData> json, string username) |
| | | { |
| | | return BasicSettingDAL.AddUpdateAnDengType(json, username); |
| | | } |
| | | #endregion |
| | | |
| | | #region[安灯系统/自定义安灯呼叫类型删除] |
| | | public static ToMessage DeleteAnDengType(string andengtypecode) |
| | | { |
| | | return BasicSettingDAL.DeleteAnDengType(andengtypecode); |
| | | } |
| | | #endregion |
| | | |
| | | #region[安灯系统/查询绑定的响应人员] |
| | | public static ToMessage AnDengResponUserSearch(string wkshopcode, string calltypecode) |
| | | { |
| | | return BasicSettingDAL.AnDengResponUserSearch(wkshopcode,calltypecode); |
| | | } |
| | | #endregion |
| | | |
| | | #region[安灯系统/新增响应人员查询已绑定的响应人员] |
| | | public static ToMessage AnDengDialogResponUserSearch(string wkshopcode, string calltypecode) |
| | | { |
| | | return BasicSettingDAL.AnDengDialogResponUserSearch(wkshopcode, calltypecode); |
| | | } |
| | | #endregion |
| | | |
| | | #region[安灯系统/新增响应人员提交] |
| | | public static ToMessage AnDengDigoResponUserSeave(string wkshopcode, string calltypecode,string enable, string usercode, DataTable json) |
| | | { |
| | | return BasicSettingDAL.AnDengDigoResponUserSeave(wkshopcode, calltypecode, enable, usercode, json); |
| | | } |
| | | #endregion |
| | | |
| | | #region[安灯系统/响应人员允许关闭] |
| | | public static ToMessage AnDengResponUserCloseSeave(string wkshopcode, string calltypecode, string enable, string usercode) |
| | | { |
| | | return BasicSettingDAL.AnDengResponUserCloseSeave(wkshopcode, calltypecode, enable, usercode); |
| | | } |
| | | #endregion |
| | | |
| | | #region[安灯系统/响应人员删除] |
| | | public static ToMessage AnDengResponUserDeleteSeave(string id,string ando_cogfigid) |
| | | { |
| | | return BasicSettingDAL.AnDengResponUserDeleteSeave(id, ando_cogfigid); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | |
| | | |
| | | #region[通过车间编码查找设备信息] |
| | | public static ToMessage WhkspIsEqpSearch(string wkshpcode) |
| | | { |
| | | return BasicSettingDAL.WhkspIsEqpSearch(wkshpcode); |
| | | } |
| | | #endregion |
| | | } |
| | | } |