| | |
| | | /// <param name="UserCode">用户编码</param> |
| | | /// <param name="UserName">用户名称</param> |
| | | /// <param name="StuOrg">所属组织</param> |
| | | /// <param name="wagetype">工资类型</param> |
| | | /// <param name="Enable">在职状态</param> |
| | | /// <param name="page">页码</param> |
| | | /// <param name="rows">每页显示条数</param> |
| | |
| | | /// <returns></returns> |
| | | [Route(template: "UserSearch")] |
| | | [HttpGet] |
| | | public HttpResponseMessage UserSearch(string UserCode = null, string UserName = null, string StuOrg = null, string Enable = null, int page = 0, int rows = 0, string prop = null, string order = null) |
| | | public HttpResponseMessage UserSearch(string UserCode = null, string UserName = null, string StuOrg = null,string wagetype=null, string Enable = null, int page = 0, int rows = 0, string prop = null, string order = null) |
| | | { |
| | | int startNum = rows * (page - 1) + 1; //起始记录rowNum |
| | | int endNum = rows * page; //结束记录 rowNum |
| | | mes = BasicSettingBLL.UserSearch(UserCode, UserName, StuOrg, Enable, startNum, endNum, prop, order); |
| | | mes = BasicSettingBLL.UserSearch(UserCode, UserName, StuOrg, wagetype, Enable, startNum, endNum, prop, order); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | |
| | | [HttpPost] |
| | | public HttpResponseMessage AddUpdateUser([FromBody] JObject obj) |
| | | { |
| | | string UserId = obj["UserId"].ToString(); //用户id(主键) |
| | | string UserId = obj["id"].ToString(); //用户id(主键) |
| | | string UserCode = obj["UserCode"].ToString(); //用户编码 |
| | | string UserName = obj["UserName"].ToString(); //用户名称 |
| | | string Password = obj["Password"].ToString(); //密码 |
| | | string Enable = obj["Enable"].ToString(); //在职状态 |
| | | string StuOrg = obj["StuOrg"].ToString(); //选择组织编码 |
| | | string wagetype = obj["wagetype"].ToString(); //工资类型 |
| | | string Mobile = obj["Mobile"].ToString(); //联系方式 |
| | | string Email = obj["Email"].ToString(); //电子邮箱 |
| | | string Operator = obj["Operator"].ToString(); //操作人员 |
| | | string OperType = obj["OperType"].ToString(); //操作类型 |
| | | mes = BasicSettingBLL.AddUpdateUser(UserId, UserCode, UserName, Enable, StuOrg, Mobile, Email, Operator, OperType); |
| | | mes = BasicSettingBLL.AddUpdateUser(UserId, UserCode, UserName, Password, Enable, StuOrg, wagetype, Mobile, Email, Operator, OperType); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | |
| | | #region[往来单位查询] |
| | | /// <summary> |
| | | /// 往来单位查询 |
| | | /// </summary> |
| | | /// <param name="CuntUnitCode">往来单位编码</param> |
| | | /// <param name="CuntUnitName">往来单位名称</param> |
| | | /// <param name="UnitAttr">单位属性</param> |
| | | /// <param name="CreateUser">创建人员</param> |
| | | /// <param name="page">页码</param> |
| | | /// <param name="rows">每页显示条数</param> |
| | | /// <param name="prop">排序字段</param> |
| | | /// <param name="order">排序规则</param> |
| | | /// <returns></returns> |
| | | [Route(template: "CurrentUnitSearch")] |
| | | [HttpGet] |
| | | public HttpResponseMessage CurrentUnitSearch(string CuntUnitCode = null, string CuntUnitName = null, string UnitAttr = null, string CreateUser = null, int page = 0, int rows = 0, string prop = null, string order = null) |
| | | { |
| | | int startNum = rows * (page - 1) + 1; //起始记录rowNum |
| | | int endNum = rows * page; //结束记录 rowNum |
| | | mes = BasicSettingBLL.CurrentUnitSearch(CuntUnitCode, CuntUnitName, UnitAttr, CreateUser, startNum, endNum, prop, order); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[往来单位新增编辑] |
| | | /// <summary> |
| | | /// 往来单位新增编辑 |
| | | /// </summary> |
| | | /// <param name="obj">提交数据对象</param> |
| | | /// <returns></returns> |
| | | [Route(template: "AddUpdateCurrentUnit")] |
| | | [HttpPost] |
| | | public HttpResponseMessage AddUpdateCurrentUnit([FromBody] JObject obj) |
| | | { |
| | | string unitid = obj["id"].ToString(); //往来单位id(主键) |
| | | string unitcode = obj["unitcode"].ToString(); //往来单位编码编码 |
| | | string unitname = obj["unitname"].ToString(); //往来单位名称 |
| | | string unitattr = obj["unitattr"].ToString(); //往来单属性 |
| | | string person = obj["person"].ToString(); //联系人 |
| | | string contact = obj["contact"].ToString(); //联系方式 |
| | | string description = obj["description"].ToString(); //补充描述 |
| | | var usercode = HttpContext.Current.Request.Cookies["navTabId"].Value.ToString(); |
| | | string OperType = obj["OperType"].ToString(); //操作类型 |
| | | mes = BasicSettingBLL.AddUpdateCurrentUnit(unitid, unitcode, unitname, unitattr, person, contact, description, usercode, OperType); |
| | | return TJson.toJson(mes); |
| | | } |
| | | #endregion |
| | | } |
| | | } |