1
wangbin
2024-07-08 4548e24916ac5f63eef736cabdcd634864f8de16
WebAPI/Controllers/LookingForBillController.cs
@@ -339,6 +339,46 @@
        }
        /// <summary>
        /// 根据仓库二维码仓库相关信息
        /// </summary>
        /// <returns></returns>
        [Route("LookingFor/getWHName_Json")]
        [HttpGet]
        public object getWHName_Json(string HBarCode)
        {
            try
            {
                long HWHID = int.Parse(HBarCode.Remove(0, 3));
                string sWhere = " Where HItemID = " + HWHID + "";
                ds = getWhName_Json_s(sWhere);
                if (ds == null || ds.Tables[0].Rows.Count <= 0)
                {
                    objJsonResult.code = "0";
                    objJsonResult.count = 0;
                    objJsonResult.Message = "没有返回任何记录!";
                    objJsonResult.data = null;
                    return objJsonResult;
                }
                else
                {
                    objJsonResult.code = "1";
                    objJsonResult.count = 1;
                    objJsonResult.Message = "返回记录成功!";
                    objJsonResult.data = ds.Tables[0];
                    return objJsonResult;
                }
            }
            catch (Exception ex)
            {
                objJsonResult.code = "0";
                objJsonResult.count = 0;
                objJsonResult.Message = "没有返回任何记录!" + ex.ToString();
                objJsonResult.data = null;
                return objJsonResult;
            }
        }
        /// <summary>
        /// 启用mes仓位,根据老仓库转换成新仓库
        /// </summary>
        /// <returns></returns>
@@ -530,6 +570,12 @@
            return new SQLHelper.ClsCN().RunProcReturn("select HWHID,* from h_v_IF_StockPlace " + sWhere, "h_v_IF_StockPlace");
        }
        //根据仓库二维码带出仓库相关信息
        public static DataSet getWhName_Json_s(string sWhere)
        {
            return new SQLHelper.ClsCN().RunProcReturn("select * from h_v_IF_Warehouse " + sWhere, "h_v_IF_Warehouse");
        }
        //启用mes仓位,根据老仓库转换成新仓库
        public static DataSet GetSpNameMES_Json_s(string HERPWHID)
        {