From 2d3fc93b131c7aa771e8f7d08a82d5e9b4946eff Mon Sep 17 00:00:00 2001 From: yangle <admin@YINMOU> Date: 星期四, 29 六月 2023 16:02:39 +0800 Subject: [PATCH] 提料计划运算(缺料) 日志添加自定义名称方法 --- WebAPI/Controllers/SCGL/日计划管理/JIT_DayPlanPlatFormImportController.cs | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git "a/WebAPI/Controllers/SCGL/\346\227\245\350\256\241\345\210\222\347\256\241\347\220\206/JIT_DayPlanPlatFormImportController.cs" "b/WebAPI/Controllers/SCGL/\346\227\245\350\256\241\345\210\222\347\256\241\347\220\206/JIT_DayPlanPlatFormImportController.cs" index 0a7ac31..fe71185 100644 --- "a/WebAPI/Controllers/SCGL/\346\227\245\350\256\241\345\210\222\347\256\241\347\220\206/JIT_DayPlanPlatFormImportController.cs" +++ "b/WebAPI/Controllers/SCGL/\346\227\245\350\256\241\345\210\222\347\256\241\347\220\206/JIT_DayPlanPlatFormImportController.cs" @@ -55,6 +55,7 @@ tb2.Columns.Add("鍗曟嵁鍙�", typeof(string)); tb2.Columns.Add("HWorkShopID", typeof(Int32));//鐢熶骇杞﹂棿 tb2.Columns.Add("HEmpID", typeof(Int32));//鑱屽憳 + tb2.Columns.Add("鍛樺伐", typeof(string));//鑱屽憳 tb2.Columns.Add("HUnitID", typeof(Int32));//璁¢噺鍗曚綅 tb2.Columns.Add("HSourceID", typeof(Int32));//鐢熶骇璧勬簮id tb2.Columns.Add("ICMOBillHInterID", typeof(Int32));//鐢熶骇璁㈠崟涓籭d @@ -144,6 +145,7 @@ tb2.Rows[i]["HSourceID"] = ds.Tables[0].Rows[0]["HSourceID"].ToString(); tb2.Rows[i]["HEmpID"] = ds.Tables[0].Rows[0]["HEmpID"].ToString(); tb2.Rows[i]["鍛樺伐缂栫爜"] = ds.Tables[0].Rows[0]["鑱屽憳浠g爜"].ToString(); + tb2.Rows[i]["鍛樺伐"] = ds.Tables[0].Rows[0]["鑱屽憳"].ToString(); tb2.Rows[i]["HUnitID"] = ds.Tables[0].Rows[0]["HUnitID"].ToString(); tb2.Rows[i]["璁¢噺鍗曚綅"] = ds.Tables[0].Rows[0]["璁¢噺鍗曚綅"].ToString(); tb2.Rows[i]["鎵规鍙�"] = ds.Tables[0].Rows[0]["鎵规"].ToString(); @@ -155,7 +157,8 @@ //鍛樺伐 ds = oCN.RunProcReturn($"select * from Gy_Employee where HNumber='{tb2.Rows[i]["鍛樺伐缂栫爜"].ToString()}'", "Gy_Employee"); if (ds.Tables[0].Rows.Count > 0) { - tb2.Rows[i]["鍛樺伐缂栫爜"] = ds.Tables[0].Rows[0]["HItemID"].ToString(); + tb2.Rows[i]["HEmpID"] = ds.Tables[0].Rows[0]["HItemID"].ToString(); + tb2.Rows[i]["鍛樺伐"] = ds.Tables[0].Rows[0]["HName"].ToString(); } else { -- Gitblit v1.9.1