yl
2024-01-18 8024ec8c0300dcffa0caf4e2a030e068a9051bc2
VueWebCoreApi/Controllers/BasicSettingController.cs
@@ -23,7 +23,7 @@
    {
        //定义全局信息返回变量
        ToMessage mes = new ToMessage();
        RedisHelper redis = new RedisHelper();
        RedisCommon redis = new RedisCommon();
        #region[组织架构,查询组织信息]
        /// <summary>
@@ -694,6 +694,7 @@
        /// <summary>
        /// 仓位信息列表
        /// </summary>
        /// <param name="flag">选中左侧树型层级</param>
        /// <param name="stckcode">仓库编码字符串集</param>
        /// <param name="locacode">仓位编码</param>
        /// <param name="locaname">仓位名称</param>
@@ -704,13 +705,13 @@
        /// <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
@@ -732,10 +733,11 @@
            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