| | |
| | | /// </summary> |
| | | /// <param name="storg_code">组织编码</param> |
| | | /// <param name="storg_name">组织名称</param> |
| | | /// <param name="page">页码</param> |
| | | /// <param name="rows">每页显示条数</param> |
| | | /// <param name="prop">排序字段</param> |
| | | /// <param name="order">排序规则</param> |
| | | /// <returns></returns> |
| | | [Route(template: "STorgData")] |
| | | [HttpGet] |
| | | public JsonResult STorgData(string storg_code,string storg_name, int page = 0, int rows = 0, string prop = null, string order = null) |
| | | public JsonResult STorgData(string storg_code,string storg_name) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | int startNum = rows * (page - 1) + 1; //起始记录rowNum |
| | | int endNum = rows * page; //结束记录 rowNum |
| | | mes = BasicSettingBLL.STorgData(storg_code,storg_name,startNum,endNum,prop,order); |
| | | mes = BasicSettingBLL.STorgData(storg_code,storg_name); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | |
| | | /// <summary> |
| | | /// 仓位信息列表 |
| | | /// </summary> |
| | | /// <param name="flag">选中左侧树型是否仓库(Y/N)</param> |
| | | /// <param name="stckcode">仓库编码字符串集</param> |
| | | /// <param name="locacode">仓位编码</param> |
| | | /// <param name="locaname">仓位名称</param> |
| | |
| | | /// <returns></returns> |
| | | [Route(template: "TSecLocaData")] |
| | | [HttpGet] |
| | | public JsonResult TSecLocaData(string stckcode, string locacode, string locaname, int page = 0, int rows = 0, string prop = null, string order = null) |
| | | public JsonResult TSecLocaData(string flag, string stckcode, string locacode, string locaname, int page = 0, int rows = 0, string prop = null, string order = null) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | int startNum = rows * (page - 1) + 1; //起始记录rowNum |
| | | int endNum = rows * page; //结束记录 rowNum |
| | | mes = BasicSettingBLL.TSecLocaData(stckcode, locacode, locaname, startNum, endNum, prop, order); |
| | | mes = BasicSettingBLL.TSecLocaData(flag,stckcode, locacode, locaname, startNum, endNum, prop, order); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region[工序查询] |
| | | /// <summary> |
| | | /// 工序查询 |
| | | /// </summary> |
| | | /// <param name="stepcode">工序编码</param> |
| | | /// <param name="stepname">工序名称</param> |
| | | /// <param name="enable">启用状态</param> |
| | | /// <param name="steptypecode">工序类型编码</param> |
| | | /// <param name="page">页码</param> |
| | | /// <param name="rows">每页显示条数</param> |
| | | /// <param name="prop">排序字段</param> |
| | | /// <param name="order">排序规则</param> |
| | | /// <returns></returns> |
| | | [Route(template: "StepSearch")] |
| | | [HttpGet] |
| | | public JsonResult StepSearch(string stepcode = null, string stepname = null, string enable = null, string steptypecode = null,int page = 0, int rows = 0, string prop = null, string order = null) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | int startNum = rows * (page - 1) + 1; //起始记录rowNum |
| | | int endNum = rows * page; //结束记录 rowNum |
| | | mes = BasicSettingBLL.StepSearch(stepcode, stepname, enable, steptypecode, startNum, endNum, prop, order); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[工序新增编辑] |
| | | /// <summary> |
| | | /// 工序新增编辑 |
| | | /// </summary> |
| | | /// <param name="obj">提交数据对象</param> |
| | | /// <returns></returns> |
| | | [Route(template: "AddUpdateStep")] |
| | | [HttpPost] |
| | | public JsonResult AddUpdateStep([FromBody] JObject obj) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | string stepid = obj["id"].ToString(); //工序id(主键) |
| | | string stepcode = obj["stepcode"].ToString(); //工序编码 |
| | | string stepname = obj["stepname"].ToString(); //工序名称 |
| | | string steptypecode = obj["steptypecode"].ToString(); //工序类型编码 |
| | | string enable = obj["enable"].ToString(); //启用状态 |
| | | string description = obj["description"].ToString(); //工序描述 |
| | | string OperType = obj["OperType"].ToString(); //操作类型 |
| | | mes = BasicSettingBLL.AddUpdateStep(stepid, stepcode, stepname, steptypecode, enable, description, us, OperType); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | #region[工序删除] |
| | | /// <summary> |
| | | /// 工序删除 |
| | | /// </summary> |
| | | /// <param name="stepcode">工序编码</param> |
| | | /// <returns></returns> |
| | | [Route(template: "DeleteStep")] |
| | | [HttpPost] |
| | | public JsonResult DeleteStep(string stepcode) |
| | | { |
| | | var token = HttpContext.Request.Headers["Token"].ToString(); |
| | | User us = JwtTools.Denocode(token.ToString()); |
| | | mes = BasicSettingBLL.DeleteStep(stepcode,us); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | } |
| | | } |