| | |
| | | { |
| | | //定义全局信息返回变量 |
| | | ToMessage mes = new ToMessage(); |
| | | RedisHelper redis = new RedisHelper(); |
| | | RedisCommon redis = new RedisCommon(); |
| | | |
| | | #region[组织架构,查询组织信息] |
| | | /// <summary> |
| | |
| | | /// <summary> |
| | | /// 仓位信息列表 |
| | | /// </summary> |
| | | /// <param name="flag">选中左侧树型层级</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 |
| | |
| | | string locaname = obj["locaname"].ToString(); //货位名称 |
| | | string stckcode = obj["stckcode"].ToString(); //对应仓库编码 |
| | | string parentlocacode = obj["parentlocacode"].ToString(); //上级货位编码 |
| | | string depth = obj["depth"].ToString(); //级次 |
| | | string status = obj["status"].ToString(); //状态 |
| | | string description = obj["description"].ToString(); //备注 |
| | | string OperType = obj["OperType"].ToString(); //操作类型 |
| | | mes = BasicSettingBLL.TSecLocaAddUpdate(data_sources, locacode, locaname, stckcode, parentlocacode, status, description, OperType, us); |
| | | mes = BasicSettingBLL.TSecLocaAddUpdate(data_sources, locacode, locaname, stckcode, parentlocacode, depth, status, description, OperType, us); |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | |
| | | return Json(mes); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | } |
| | | } |