From 61e9fccd78d81669aaa53c66aae3bffa42c840be Mon Sep 17 00:00:00 2001 From: duhe <226547893@qq.com> Date: 星期四, 10 四月 2025 08:35:47 +0800 Subject: [PATCH] 生产工单排产:导入时,查询生产资源是否重复时,只取未作废的数据。 生产工单排产:当客户是宝工时,不获取优先级 --- WebAPI/Controllers/XSGL/Xs_SeOutStockBillController.cs | 39 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 39 insertions(+), 0 deletions(-) diff --git a/WebAPI/Controllers/XSGL/Xs_SeOutStockBillController.cs b/WebAPI/Controllers/XSGL/Xs_SeOutStockBillController.cs index 53b6023..099c900 100644 --- a/WebAPI/Controllers/XSGL/Xs_SeOutStockBillController.cs +++ b/WebAPI/Controllers/XSGL/Xs_SeOutStockBillController.cs @@ -2259,5 +2259,44 @@ } } #endregion + + + #region 鍙戣揣閫氱煡鍗曟煡璇㈠嵆鏃跺簱瀛� + [Route("Xs_SeOutStockBill/GetICInventory")] + [HttpGet] + public object GetICInventory(int HMaterID, int HWHID, int HORGID) + { + try + { + //鍒ゆ柇鏄惁鏈夋煡璇㈡潈闄� + + //if (!DBUtility.ClsPub.Security_Log("Xs_SeOutStockBillQuery", 1, false, user)) + //{ + // objJsonResult.code = CodeConstant.FAIL; + // objJsonResult.count = CountConstant.FAIL; + // objJsonResult.Message = "鏃犳潈闄愭煡鐪�!"; + // objJsonResult.data = null; + // return objJsonResult; + //} + string sql = "exec h_p_Xs_SeOutStockBillGetICInventory " + HMaterID + "," + HWHID + "," + HORGID; + + ds = oCN.RunProcReturn(sql, "h_p_Xs_SeOutStockBillGetICInventory"); + + objJsonResult.code = CodeConstant.SUCCEED; + objJsonResult.count = CountConstant.SUCCEED; + objJsonResult.Message = "Sucess锛�"; + objJsonResult.data = ds.Tables[0].Rows[0]["HBack"]; + return objJsonResult; + } + catch (Exception e) + { + objJsonResult.code = CodeConstant.FAIL; + objJsonResult.count = CountConstant.FAIL; + objJsonResult.Message = "Exception锛�" + e.ToString(); + objJsonResult.data = null; + return objJsonResult; + } + } + #endregion } } \ No newline at end of file -- Gitblit v1.9.1