From 1a6c5cb19353ef7b56a8bd0a0eb01b623971fd43 Mon Sep 17 00:00:00 2001 From: yangle <admin@YINMOU> Date: 星期四, 24 三月 2022 16:07:56 +0800 Subject: [PATCH] 叫料单列表 查询 退料申请单 退料确认页面列表 生产叫料平台 退料单新增 拣料配送单 删除 --- WebAPI/Controllers/CJGL/Cj_CallGoodsBillBackController.cs | 38 +++++++++++++++++++++++++++++++++++++- 1 files changed, 37 insertions(+), 1 deletions(-) diff --git a/WebAPI/Controllers/CJGL/Cj_CallGoodsBillBackController.cs b/WebAPI/Controllers/CJGL/Cj_CallGoodsBillBackController.cs index f62af96..7e795b8 100644 --- a/WebAPI/Controllers/CJGL/Cj_CallGoodsBillBackController.cs +++ b/WebAPI/Controllers/CJGL/Cj_CallGoodsBillBackController.cs @@ -76,6 +76,7 @@ } } #endregion + #region 鍙枡閫�鏂欏崟 鍒犻櫎 [Route("Cj_CallGoodsBillBack/DelCallGoodsBill")] [HttpGet] @@ -93,7 +94,7 @@ return objJsonResult; } - ds = oCN.RunProcReturn($"exec h_p_JIT_BackGoodsBillList_Delete {HInterID},{HEntryID} ", "h_p_JIT_BackGoodsBillList_Delete"); + ds = oCN.RunProcReturn($"exec Sc_ComplementGoodBill/Insert_TL_ICStockTuiBill {HInterID},{HEntryID} ", "h_p_JIT_BackGoodsBillList_Delete"); objJsonResult.code = ds.Tables[0].Rows[0][0].ToString(); objJsonResult.count = int.Parse(ds.Tables[0].Rows[0][0].ToString()); @@ -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 } } \ No newline at end of file -- Gitblit v1.9.1