From ab62403afd5b2d06e5bf900a76ba5ad2bc23bd76 Mon Sep 17 00:00:00 2001 From: yusijie <ysj@hz-kingdee.com> Date: 星期二, 20 五月 2025 19:01:42 +0800 Subject: [PATCH] 返修码绑定,添康组装排产页面梳理 --- WebAPI/Controllers/仓存管理/条码生成/Sc_BarCodeController.cs | 46 +++++++++++++++++++++++++++++++++++++--------- 1 files changed, 37 insertions(+), 9 deletions(-) diff --git "a/WebAPI/Controllers/\344\273\223\345\255\230\347\256\241\347\220\206/\346\235\241\347\240\201\347\224\237\346\210\220/Sc_BarCodeController.cs" "b/WebAPI/Controllers/\344\273\223\345\255\230\347\256\241\347\220\206/\346\235\241\347\240\201\347\224\237\346\210\220/Sc_BarCodeController.cs" index a1d9e86..dff3b17 100644 --- "a/WebAPI/Controllers/\344\273\223\345\255\230\347\256\241\347\220\206/\346\235\241\347\240\201\347\224\237\346\210\220/Sc_BarCodeController.cs" +++ "b/WebAPI/Controllers/\344\273\223\345\255\230\347\256\241\347\220\206/\346\235\241\347\240\201\347\224\237\346\210\220/Sc_BarCodeController.cs" @@ -127,6 +127,10 @@ list.Add("浠櫒鎴愬搧鏉$爜瑙勫垯"); list.Add("璇曞墏鎴愬搧鏉$爜瑙勫垯"); } + else if (sCapName == "娣诲悍绉戞妧") + { + list.Add("鎵规鏉$爜"); + } else { list.Add("鍞竴鏉$爜"); @@ -232,6 +236,11 @@ tabname = "h_v_IF_ProcessExchangeBillList_Source"; count = new SQLHelper.ClsCN().RunProcReturn("select * from h_v_IF_ProcessExchangeBillList_Source " + sWhere + " order by 鍗曟嵁鍙� desc,hsubid", tabname).Tables[0].Rows.Count; sql = string.Format(@"select top " + pageSize + " * from(select row_number() over (order by 鍗曟嵁鍙� desc,hsubid) as HRowNumber,* from h_v_IF_ProcessExchangeBillList_Source " + sWhere + ") as A where HRowNumber >" + pageSize + " *(" + pageNum + "-1)"); + break; + case "閿�鍞嚭搴撳崟": + tabname = "h_v_IF_SellOutBillList_Source"; + count = new SQLHelper.ClsCN().RunProcReturn("select * from h_v_IF_SellOutBillList_Source " + sWhere + " order by 鍗曟嵁鍙� desc,hsubid", tabname).Tables[0].Rows.Count; + sql = string.Format(@"select top " + pageSize + " * from(select row_number() over (order by 鍗曟嵁鍙� desc,hsubid) as HRowNumber,* from h_v_IF_SellOutBillList_Source " + sWhere + ") as A where HRowNumber >" + pageSize + " *(" + pageNum + "-1)"); break; default: break; @@ -346,6 +355,12 @@ case "3711": //鐢熶骇姹囨姤鍗� //寰楀埌淇℃伅 ds = oCN.RunProcReturn("select * from h_v_IF_ICMOReportList where hmainid=" + oSelectRow.BillMainID + " and hsubid=" + oSelectRow.BillSubID, "h_v_IF_ICMOReportList"); + //鍐欏叆淇℃伅 + ListRows.Add(HSourceOrderList1(ds.Tables[0], ordrlist, HBarCodeType, HSourceBillType)); + break; + case "1205": //閿�鍞嚭搴撳崟 + //寰楀埌淇℃伅 + ds = oCN.RunProcReturn("select * from h_v_IF_SellOutBillList_BarCode where hmainid=" + oSelectRow.BillMainID + " and hsubid=" + oSelectRow.BillSubID, "h_v_IF_SellOutBillList_BarCode"); //鍐欏叆淇℃伅 ListRows.Add(HSourceOrderList1(ds.Tables[0], ordrlist, HBarCodeType, HSourceBillType)); break; @@ -578,6 +593,15 @@ ordrlist.HSPNumber = dt.Rows[i]["浠撲綅浠g爜"].ToString(); ordrlist.HSPName = dt.Rows[i]["浠撲綅"].ToString(); } + if(HSourceBillType == "閿�鍞嚭搴撳崟") + { + ordrlist.HWhID = dt.Rows[i]["HWhID"].ToString(); + ordrlist.HWhNumber = dt.Rows[i]["浠撳簱浠g爜"].ToString(); + ordrlist.HWhName = dt.Rows[i]["浠撳簱"].ToString(); + //ordrlist.HSPID = dt.Rows[i]["HSPID"].ToString(); + //ordrlist.HSPNumber = dt.Rows[i]["浠撲綅浠g爜"].ToString(); + //ordrlist.HSPName = dt.Rows[i]["浠撲綅"].ToString(); + } } return ordrlist; } @@ -663,13 +687,13 @@ if (oDs == null && oDs.Tables[0].Rows.Count == 0) { objJsonResult.code = "1"; - objJsonResult.Message="鐢熸垚鎵规澶辫触锛�"; + objJsonResult.Message= "[0000-2-053]鐢熸垚鎵规澶辫触锛�"; return objJsonResult; } else if (DBUtility.ClsPub.isStrNull(oDs.Tables[0].Rows[0][0]) == "1") { objJsonResult.code = "1"; - objJsonResult.Message = "鐢熸垚鎵规鎴愬姛锛�"; + objJsonResult.Message = "[0000-2-054]鐢熸垚鎵规鎴愬姛锛�"; objJsonResult.data = DBUtility.ClsPub.isStrNull(oDs.Tables[0].Rows[0]["HBatchNo"]); HBatchNo = DBUtility.ClsPub.isStrNull(oDs.Tables[0].Rows[0]["HBatchNo"]); b = true; @@ -680,7 +704,7 @@ if (b == false) { objJsonResult.code = "1"; - objJsonResult.Message="娌℃湁闇�瑕佺敓鎴愭壒娆$殑鏄庣粏琛岋紒"; + objJsonResult.Message= "[3899-2-003]娌℃湁闇�瑕佺敓鎴愭壒娆$殑鏄庣粏琛岋紒"; return objJsonResult; } else //瀹屽叏灏侀棴 @@ -721,7 +745,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "閫夋嫨缁勭粐鏈夐敊璇�!"; + objJsonResult.Message = "[0000-2-055]閫夋嫨缁勭粐鏈夐敊璇�!"; return objJsonResult; } if (!Sub_AllowSave(msg2, HSelectBarCodeType))//鍗曟嵁瀹屾暣鎬у垽鏂� @@ -742,7 +766,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏉$爜鐢熸垚澶辫触!"+e.Message; + objJsonResult.Message = "[3899-2-006]鏉$爜鐢熸垚澶辫触!" + e.Message; return objJsonResult; } return objJsonResult; @@ -775,7 +799,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏉$爜鐢熸垚瀹屾暣鎬у垽鏂敊璇�"; + objJsonResult.Message = "[3899-2-007]鏉$爜鐢熸垚瀹屾暣鎬у垽鏂敊璇�"; return false; } else if (DBUtility.ClsPub.isStrNull(oDsCheck.Tables[0].Rows[0][0]) == "1") @@ -1284,6 +1308,10 @@ { HBarCodeType = "鍞竴鏉$爜"; } + if (CampanyName == "涔濊彵") + { + HBarCode = HBarCode + ClsPub.isStrNull(ListRows[i].HMTONo2); + } // HMaterID = ClsPub.isLong(ListRows[i].HMaterID2); HEntryID = ClsPub.isLong(ListRows[i].HEntryID2); @@ -1405,7 +1433,7 @@ { objJsonResult.code = "1"; objJsonResult.count = 1; - objJsonResult.Message = "鑾峰彇璧勬簮缁戝畾鏁版嵁鎴愬姛锛�"; + objJsonResult.Message = "[0000-1-037]鑾峰彇璧勬簮缁戝畾鏁版嵁鎴愬姛锛�"; objJsonResult.data = JsonConvert.DeserializeObject<DataTable>(JsonConvert.SerializeObject(ds.Tables[0], new IsoDateTimeConverter { DateTimeFormat = "yyyy-MM-dd HH:mm:ss" })); //搴忓垪鍖朌ataSet涓殑鏃堕棿鏍煎紡锛岀劧鍚庡啀鍙嶅簭鍒楀寲鍥炴潵 objJsonResult.list = listobj; return objJsonResult; @@ -1414,7 +1442,7 @@ { objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "娌℃湁杩斿洖浠讳綍缁撴灉,鏉$爜涓嶅瓨鍦紒"; + objJsonResult.Message = "[0000-2-020]娌℃湁杩斿洖浠讳綍缁撴灉,鏉$爜涓嶅瓨鍦紒"; objJsonResult.data = null; objJsonResult.list = listobj; return objJsonResult; @@ -1425,7 +1453,7 @@ oCN.RollBack(); objJsonResult.code = "0"; objJsonResult.count = 0; - objJsonResult.Message = "鏉$爜鐢熸垚澶辫触锛�" + e.Message; + objJsonResult.Message = "[3899-2-006]鏉$爜鐢熸垚澶辫触锛�" + e.Message; return objJsonResult; } } -- Gitblit v1.9.1