ch
2022-04-14 248480fdc506ca158db89617d2440dd5702f7e69
WebAPI/Controllers/CJGL/Cj_CallGoodsBillBackController.cs
@@ -76,6 +76,7 @@
            }
        }
        #endregion
        #region 叫料退料单  删除
        [Route("Cj_CallGoodsBillBack/DelCallGoodsBill")]
        [HttpGet]
@@ -111,5 +112,40 @@
            }
        }
        #endregion
        #region 叫料单列表 (默认查询)
        [Route("Cj_CallGoodsBillBack/JIT_BackGoodsList")]
        [HttpGet]
        public object JIT_BackGoodsList(string HInterID, string user)
        {
            try
            {
                if (HInterID == null || HInterID.Equals(""))
                {
                    objJsonResult.code = "1";
                    objJsonResult.count = 1;
                    objJsonResult.Message = null;
                    objJsonResult.data = new DataTable();
                    return objJsonResult;
                }
                ds = oCN.RunProcReturn($"exec h_p_JIT_BackGoods_Load '{HInterID}'", "h_p_JIT_BackGoods_Load");
                objJsonResult.code = "1";
                objJsonResult.count = 1;
                objJsonResult.Message = "Sucess!";
                objJsonResult.data = ds.Tables[0];
                return objJsonResult;
            }
            catch (Exception e)
            {
                objJsonResult.code = "0";
                objJsonResult.count = 0;
                objJsonResult.Message = "没有返回任何记录!" + e.ToString();
                objJsonResult.data = null;
                return objJsonResult;
            }
        }
        #endregion
    }
}