From a348593630e7e3f382f963387de077781414fa6f Mon Sep 17 00:00:00 2001 From: duhe <226547893@qq.com> Date: 星期五, 22 八月 2025 22:27:20 +0800 Subject: [PATCH] 迦南:自动装箱 --- WebAPI/Controllers/仓存管理/条码生成/Sc_BarCodeController.cs | 213 +++++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 196 insertions(+), 17 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 10d3ae3..d16815a 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" @@ -132,6 +132,10 @@ list.Add("鍞竴鏉$爜"); list.Add("鎵规鏉$爜"); } + else if (sCapName == "娴疯瘹") + { + list.Add("鍝佺鏉$爜"); + } else { list.Add("鍞竴鏉$爜"); @@ -589,6 +593,16 @@ ordrlist.HGiveAwayFlag = 0; } } + if (HSourceBillType == "鏀舵枡閫氱煡鍗�" || HSourceBillType == "閲囪喘璁㈠崟") + { + if (oSystemParameter.omodel.WMS_CampanyName == "娴疯瘹") //绯荤粺鍙傛暟 瀹㈡埛瀹氬埗鍖栧悕绉� 绌虹櫧涓洪�氱敤 + { + ordrlist.HSourceBillSEQ = dt.Rows[i]["HSEQ"].ToString(); + ordrlist.HFactory = dt.Rows[i]["瀹㈡埛缂栧彿"].ToString(); + ordrlist.HCoilNO = dt.Rows[i]["娆惧彿"].ToString(); + ordrlist.HFurnaceNO = dt.Rows[i]["鍒嗙粍"].ToString(); + } + } } if (HSourceBillType == "閫�璐ч�氱煡鍗�") { @@ -621,7 +635,7 @@ //鏍规嵁TABLE鍐欏叆鐣岄潰(鍑哄叆搴撳崟鎹�) private object Sub_WriteInForm_InOut(DataTable dt, HSouceOrderList ordrlist, string HBarCodeType, string HSourceBillType) { - + oSystemParameter.ShowBill(ref DBUtility.ClsPub.sExeReturnInfo); for (int i = 0; i < dt.Rows.Count; i++) { ordrlist.HQty = dt.Rows[i]["鍙敓鎴愭潯鐮佹暟閲�"].ToString(); @@ -654,6 +668,20 @@ ordrlist.HMTONo = dt.Rows[i]["璁″垝璺熻釜鍙�"].ToString(); ordrlist.HDate = dt.Rows[i]["鏃ユ湡"].ToString(); ordrlist.HShowDate = DateTime.Now.ToString(); + + if(HSourceBillType=="閲囪喘鍏ュ簱鍗�") + { + if(oSystemParameter.omodel.WMS_CampanyName=="娴疯瘹") //绯荤粺鍙傛暟 瀹㈡埛瀹氬埗鍖栧悕绉� 绌虹櫧涓洪�氱敤 + { + ordrlist.HInnerBillNo = dt.Rows[i]["閲囪喘璁㈠崟鍙�"].ToString(); + ordrlist.HSupID = dt.Rows[i]["HSupID"].ToString(); + ordrlist.HSupNumber = dt.Rows[i]["渚涘簲鍟嗕唬鐮�"].ToString(); + ordrlist.HSupName = dt.Rows[i]["渚涘簲鍟�"].ToString(); + ordrlist.HFactory = dt.Rows[i]["瀹㈡埛缂栧彿"].ToString(); + ordrlist.HCoilNO = dt.Rows[i]["娆惧彿"].ToString(); + ordrlist.HFurnaceNO = dt.Rows[i]["鍒嗙粍"].ToString(); + } + } } return ordrlist; } @@ -801,12 +829,13 @@ long HMaterID = DBUtility.ClsPub.isLong(ordrlist[i].HMaterID); // 鐗╂枡鍐呯爜 string HBatchNo = DBUtility.ClsPub.isStrNull(ordrlist[i].HBatchNo); // 鎵瑰彿 long HAuxPropID = DBUtility.ClsPub.isLong(ordrlist[i].HAuxPropID); // 杈呭姪灞炴�D + string HMTONo = DBUtility.ClsPub.isStrNull(ordrlist[i].HMTONo); //璁″垝璺熻釜鍙� double HSourceQty = DBUtility.ClsPub.isDoule(ordrlist[i].HMinQty); // 婧愬崟鏁伴噺 double HQty = DBUtility.ClsPub.isDoule(ordrlist[i].HQty); // 鏁伴噺 double HMinQty = DBUtility.ClsPub.isDoule(ordrlist[i].HMinQty); // 鏈�灏忓寘瑁呮暟 if (HMaterID != 0) { - DataSet oDsCheck = oCN.RunProcReturn("exec h_p_Gy_BarCodeBill_AddCheck " + HSno.ToString() + ",'" + HBarCodeType + "','" + HSourceBillNo + "'," + HMaterID.ToString() + ",'" + HBatchNo + "'," + HAuxPropID.ToString() + "," + HSourceQty.ToString() + "," + HQty.ToString() + "," + HMinQty.ToString() + "," + HOrgID.ToString() + ",'" + SourceQtyCtl + "'", "h_p_Gy_BarCodeBill_AddCheck"); + DataSet oDsCheck = oCN.RunProcReturn("exec h_p_Gy_BarCodeBill_AddCheck_New " + HSno.ToString() + ",'" + HBarCodeType + "','" + HSourceBillNo + "'," + HMaterID.ToString() + ",'" + HBatchNo + "'," + HAuxPropID.ToString() + ",'" + HMTONo + "'," + HSourceQty.ToString() + "," + HQty.ToString() + "," + HMinQty.ToString() + "," + HOrgID.ToString() + ",'" + SourceQtyCtl + "'", "h_p_Gy_BarCodeBill_AddCheck_New"); if (oDsCheck == null && oDsCheck.Tables[0].Rows.Count == 0) { objJsonResult.code = "0"; @@ -845,7 +874,7 @@ int HBQty = 0; //绠辨暟 double HQty = 0; //鏁伴噺 string WeiShu = ""; //灏炬暟 - int LSH = 0; //娴佹按鍙� + Int64 LSH = 0; //娴佹按鍙� string LSH2 = ""; //娴佹按鍙疯浆鎹㈡垚瀛楃 string sDate = ""; //鏃ユ湡 string sYear = ""; //骞� @@ -935,7 +964,7 @@ sTMNumber = HNumber + sYear + sPeriod + sDay; Ds = oCN.RunProcReturn("exec h_p_WMS_GetMaxNo '" + sTMNumber + "'", "h_p_WMS_GetMaxNo"); //鑾峰彇鏈�澶ф祦姘村彿 //oCn.RunProc("exec h_p_WMS_SetMaxNo '" + sTMNumber + "'"); - LSH = ClsPub.isInt(Ds.Tables[0].Rows[0][0]); + LSH = ClsPub.isLong(Ds.Tables[0].Rows[0][0]); } else if (CampanyName == "椋為緳") { @@ -952,7 +981,7 @@ sTMNumber = HWorksNumber + HNumber + sYear + sPeriod + sDay; Ds = oCN.RunProcReturn("exec h_p_WMS_GetMaxNo '" + sTMNumber + "'", "h_p_WMS_GetMaxNo"); //鑾峰彇鏈�澶ф祦姘村彿 //oCn.RunProc("exec h_p_WMS_SetMaxNo '" + sTMNumber + "'"); - LSH = ClsPub.isInt(Ds.Tables[0].Rows[0][0]); + LSH = ClsPub.isLong(Ds.Tables[0].Rows[0][0]); } else if (CampanyName == "鐟炰笌绁�") { var date = DateTime.Now.ToString("yyMMdd");//鏃ユ湡 @@ -977,7 +1006,7 @@ //sTMNumber = ordrlist[j].HMaterNumber + "-鍖呰鏍囪瘑-" + date + "-" + ordrlist[j].HSupNumber + "-"; Ds = oCN.RunProcReturn("exec h_p_WMS_GetMaxNo '" + sTMNumber + "'", "h_p_WMS_GetMaxNo"); //鑾峰彇鏈�澶ф祦姘村彿 - LSH = ClsPub.isInt(Ds.Tables[0].Rows[0][0]); + LSH = ClsPub.isLong(Ds.Tables[0].Rows[0][0]); } else if (HSourceBillTypeName == "鐢熶骇鍏ュ簱鍗�") { @@ -1011,13 +1040,13 @@ //sTMNumber = ordrlist[j].HMaterNumber + "-鍖呰鏍囪瘑-"+ date + "-缁勭粐浠g爜-"; Ds = oCN.RunProcReturn("exec h_p_WMS_GetMaxNo '" + sTMNumber + "'", "h_p_WMS_GetMaxNo"); //鑾峰彇鏈�澶ф祦姘村彿 - LSH = ClsPub.isInt(Ds.Tables[0].Rows[0][0]); + LSH = ClsPub.isLong(Ds.Tables[0].Rows[0][0]); } else { sTMNumber = HOrgNumber + HNumber + sYear + sPeriod + sDay; Ds = oCN.RunProcReturn("exec h_p_WMS_GetMaxNo '" + sTMNumber + "'", "h_p_WMS_GetMaxNo"); //鑾峰彇鏈�澶ф祦姘村彿 - LSH = ClsPub.isInt(Ds.Tables[0].Rows[0][0]); + LSH = ClsPub.isLong(Ds.Tables[0].Rows[0][0]); } } else //閫氱敤鏂规硶 @@ -1026,7 +1055,7 @@ sTMNumber = HOrgNumber + HNumber + sYear + sPeriod + sDay; Ds = oCN.RunProcReturn("exec h_p_WMS_GetMaxNo '" + sTMNumber + "'", "h_p_WMS_GetMaxNo"); //鑾峰彇鏈�澶ф祦姘村彿 //oCn.RunProc("exec h_p_WMS_SetMaxNo '" + sTMNumber + "'"); - LSH = ClsPub.isInt(Ds.Tables[0].Rows[0][0]); + LSH = ClsPub.isLong(Ds.Tables[0].Rows[0][0]); } } else if (HSelectBarCodeType == "鍝佺鏉$爜") @@ -1050,7 +1079,7 @@ sTMNumber = HMaterNumber + sYear + sPeriod + sDay; Ds = oCN.RunProcReturn("exec h_p_WMS_GetMaxNo '" + sTMNumber + "'", "h_p_WMS_GetMaxNo"); //鑾峰彇鏈�澶ф祦姘村彿 //oCn.RunProc("exec h_p_WMS_SetMaxNo '" + sTMNumber + "'"); - LSH = ClsPub.isInt(Ds.Tables[0].Rows[0][0]); + LSH = ClsPub.isLong(Ds.Tables[0].Rows[0][0]); LSHlen = 4; } else if (HSelectBarCodeType == "浠櫒鎴愬搧鏉$爜瑙勫垯") //鍙﹀澶勭悊浜� @@ -1067,7 +1096,7 @@ sTMNumber = HMaterNumber + HBatchNo; Ds = oCN.RunProcReturn("exec h_p_WMS_GetMaxNo '" + sTMNumber + "'", "h_p_WMS_GetMaxNo"); //鑾峰彇鏈�澶ф祦姘村彿 //oCn.RunProc("exec h_p_WMS_SetMaxNo '" + sTMNumber + "'"); - LSH = ClsPub.isInt(Ds.Tables[0].Rows[0][0]); + LSH = ClsPub.isLong(Ds.Tables[0].Rows[0][0]); LSHlen = 6; } else if (HSelectBarCodeType == "鍐呴攢鏈烘潯鐮�") @@ -1077,7 +1106,7 @@ sTMNumber = "1" + HModelName + HBarCodeDate + HBarCodeBatchNo + HYasuoji + "00"; Ds = oCN.RunProcReturn("exec h_p_WMS_GetMaxNo '" + sTMNumber + "'", "h_p_WMS_GetMaxNo"); //鑾峰彇鏈�澶ф祦姘村彿 //oCn.RunProc("exec h_p_WMS_SetMaxNo '" + sTMNumber + "'"); - LSH = ClsPub.isInt(Ds.Tables[0].Rows[0][0]); + LSH = ClsPub.isLong(Ds.Tables[0].Rows[0][0]); LSHlen = 5; if (sTMNumber.Length != 16) { @@ -1094,7 +1123,7 @@ sTMNumber = HMaterNumber.Replace(".", "") + HBarCodeDate + HBarCodeBatchNo; Ds = oCN.RunProcReturn("exec h_p_WMS_GetMaxNo '" + sTMNumber + "'", "h_p_WMS_GetMaxNo"); //鑾峰彇鏈�澶ф祦姘村彿 //oCn.RunProc("exec h_p_WMS_SetMaxNo '" + sTMNumber + "'"); - LSH = ClsPub.isInt(Ds.Tables[0].Rows[0][0]); + LSH = ClsPub.isLong(Ds.Tables[0].Rows[0][0]); LSHlen = 5; if (sTMNumber.Length != 18) { @@ -1110,7 +1139,7 @@ sTMNumber = HICMOBillNo; Ds = oCN.RunProcReturn("exec h_p_WMS_GetMaxNo '" + sTMNumber + "'", "h_p_WMS_GetMaxNo"); //鑾峰彇鏈�澶ф祦姘村彿 //oCn.RunProc("exec h_p_WMS_SetMaxNo '" + sTMNumber + "'"); - LSH = ClsPub.isInt(Ds.Tables[0].Rows[0][0]); + LSH = ClsPub.isLong(Ds.Tables[0].Rows[0][0]); LSHlen = 5; } else if (HSelectBarCodeType == "鎵樼洏鏉$爜") @@ -1119,7 +1148,7 @@ //鏉$爜鍓嶇紑 = 鐗╂枡鍐呯爜 + 骞� + 鏈� + 鏃� sTMNumber = HNumber + sYear + sPeriod + sDay; Ds = oCN.RunProcReturn("exec h_p_WMS_GetMaxNo '" + sTMNumber + "'", "h_p_WMS_GetMaxNo"); //鑾峰彇鏈�澶ф祦姘村彿 - LSH = ClsPub.isInt(Ds.Tables[0].Rows[0][0]); + LSH = ClsPub.isLong(Ds.Tables[0].Rows[0][0]); } else { @@ -1184,6 +1213,40 @@ return objJsonResult; } HBarCodeList barcode = new HBarCodeList(); + + if (CampanyName == "娴疯瘹") //绯荤粺鍙傛暟 瀹㈡埛瀹氬埗鍖栧悕绉� + { + string sHMTONo = ""; //璁″垝璺熻釜鍙� + string sHSourceBillNo = ""; //婧愬崟鍗曞彿 + string sHSourceBillSEQ = ""; //婧愬崟琛屽彿 + string sHSourceEntryID = ""; //婧愬崟瀛怚D + string sSupNumber = ""; //渚涘簲鍟嗕唬鐮� + string sHQty = ""; //鏁伴噺 + + sHMTONo = DBUtility.ClsPub.isStrNull(ordrlist[j].HMTONo); + sHSourceBillNo = DBUtility.ClsPub.isStrNull(ordrlist[j].HBillNo); + sHSourceBillSEQ = DBUtility.ClsPub.isStrNull(ordrlist[j].HSourceBillSEQ); + sHSourceEntryID = DBUtility.ClsPub.isStrNull(ordrlist[j].HSubID); + sSupNumber = DBUtility.ClsPub.isStrNull(ordrlist[j].HSupNumber); + sHQty = DBUtility.ClsPub.isStrNull(HMinQty); + + if (DBUtility.ClsPub.isStrNull(ordrlist[j].HBillType) == "1102") //婧愬崟锛氶噰璐鍗� + { + //鏉$爜瑙勫垯锛氶噰璐鍗曞崟鍙稝琛屽彿@鐗╂枡浠g爜@MTO@鏁伴噺@渚涘簲鍟嗕唬鐮� + TM = sHSourceBillNo + "@" + sHSourceBillSEQ + "@" + HMaterNumber + "@" + sHMTONo + "@" + sHQty + "@" + sSupNumber; + } + else if (DBUtility.ClsPub.isStrNull(ordrlist[j].HBillType) == "1103") //婧愬崟锛氭敹鏂欓�氱煡鍗� + { + //鏉$爜瑙勫垯锛氭敹鏂欓�氱煡鍗曞彿@鍗曟嵁瀛愬唴鐮丂鐗╂枡浠g爜@MTO@鏁伴噺@渚涘簲鍟嗕唬鐮� + TM = sHSourceBillNo + "@" + sHSourceEntryID + "@" + HMaterNumber + "@" + sHMTONo + "@" + sHQty + "@" + sSupNumber; + } + else + { + //鏉$爜瑙勫垯锛氱墿鏂欏唴鐮丂MTO@鎵规鍙稝鏁伴噺 + TM = HNumber + "@" + sHMTONo.Replace(" ","") + "@" + HBatchNo.Replace(" ","") + "@" + sHQty; + } + } + barcode.HBarCode2 = TM; barcode.HEntryID2 = ClsPub.isStrNull(j + 1); barcode.HMaterID2 = ordrlist[j].HMaterID; @@ -1501,6 +1564,115 @@ } #endregion + #region 鏉$爜杞瓨鏉$爜涓绘。 + /// <summary> + /// 鏉$爜杞瓨鏉$爜涓绘。 + /// </summary> + /// <param name="msg"></param> + /// <returns></returns> + [Route("Sc_BarCode/SaveBarCode_NoGenerate")] + [HttpPost] + public object SaveBarCode_NoGenerate([FromBody] JObject msg) + { + try + { + var _value = msg["msg"].ToString(); + string msg1 = _value.ToString(); + string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.None); + string msg2 = sArray[0].ToString(); + string HOrgType = sArray[1].ToString(); + string HSourceBillTypeName = sArray[2].ToString(); + string HSelectBarCodeType = sArray[3].ToString(); + string CampanyName = sArray[4].ToString() == "xxx" ? "" : sArray[4].ToString(); + string UserName = sArray[5].ToString(); + string barCodeNo = sArray[6].ToString(); + string HFactory = sArray[7].ToString(); + string HCoilNO = sArray[8].ToString(); + string HFurnaceNO = sArray[9].ToString(); + ClsPub.CurUserName = UserName; + + //鑾峰彇鍐呯爜 + HInterID = DBUtility.ClsPub.CreateBillID_Prod(ModName, ref DBUtility.ClsPub.sExeReturnInfo); + DAL.ClsGy_ORGANIZATIONS_View oClsGy_ORGANIZATIONS_View = new DAL.ClsGy_ORGANIZATIONS_View(); + HOrgNumber = ""; + if (oClsGy_ORGANIZATIONS_View.GetInfoByName(HOrgType)) + { + HOrgID = oClsGy_ORGANIZATIONS_View.omodel.HItemID; + HOrgNumber = DBUtility.ClsPub.isStrNull(oClsGy_ORGANIZATIONS_View.omodel.HNumber); + } + if (HOrgID == -1) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "[0000-2-055]閫夋嫨缁勭粐鏈夐敊璇�!"; + return objJsonResult; + } + if (!Sub_AllowSave(msg2, HSelectBarCodeType))//鍗曟嵁瀹屾暣鎬у垽鏂� + { + return objJsonResult; + } + if (HSelectBarCodeType == "浠櫒鎴愬搧鏉$爜瑙勫垯") + { + //瀹㈡埛瀹氬埗 + } + else + { + string HBarCodeType = ClsPub.isStrNull(HSelectBarCodeType); + // 鏉$爜杞瓨 + msg2 = msg2.Replace("\\", ""); + msg2 = msg2.Replace("\n", ""); //\n + List<HSouceOrderList> ordrlist = Newtonsoft.Json.JsonConvert.DeserializeObject<List<HSouceOrderList>>(msg2); + // LogService.Write(ordrlist[0]); + + long HSourceInterID = string.IsNullOrEmpty(ordrlist[0].HMainID) == true ? 0 : ClsPub.isLong(ordrlist[0].HMainID); + long HSourceEntryID = string.IsNullOrEmpty(ordrlist[0].HSubID) == true ? 0 : ClsPub.isLong(ordrlist[0].HSubID); + DataSet ds1 = oCN.RunProcReturn("exec h_p_SC_BarCode_Transfer " + + "@HBarCodeNo = N'" + barCodeNo + "'" + + ",@HSubID = " + ordrlist[0].HSubID + + ",@HMaterID = " + ordrlist[0].HMaterID + + ",@HGiveAwayFlag = " + ordrlist[0].HGiveAwayFlag + + ",@HQty = " + ordrlist[0].HQty + + ",@HUnitID = " + ordrlist[0].HUnitID + + ",@HMinQty = " + ordrlist[0].HMinQty + + ",@HSupID = " + ordrlist[0].HSupID + + ",@HBatchNo = N'" + ordrlist[0].HBatchNo + "'" + + ",@HMTONO = N'" + ordrlist[0].HMTONo + "'" + + ",@HBarCodeDate = N'" + ordrlist[0].HDate + "'" + + ",@HEmpID = " + ordrlist[0].HEmpID + + ",@HSourceInterID = " + HSourceInterID + + ",@HSourceEntryID = " + HSourceEntryID + + ",@HBarCodeType = N'" + HBarCodeType + "'" + + ",@HSourceBillNo = N'" + ordrlist[0].HSourceBillNo + "'" + + ",@HMaker = N'" + ordrlist[0].HMaker + "'" + + ",@HFactory = N'" + HFactory + "'" + + ",@HCoilNO = N'" + HCoilNO + "'" + + ",@HFurnaceNO = N'" + HFurnaceNO + "'" + + ",@HInnerBillNo = N'" + ordrlist[0].HSourceBillNo + "'" + , "h_p_SC_BarCode_Transfer"); + + if((bool)ds1.Tables[0].Rows[0]["returntype"] == true) + { + objJsonResult.code = "1"; + objJsonResult.count = 1; + objJsonResult.Message = ds1.Tables[0].Rows[0]["mesg"].ToString(); + } + else + { + throw new Exception(ds1.Tables[0].Rows[0]["mesg"].ToString()); + } + + } + } + catch (Exception e) + { + objJsonResult.code = "0"; + objJsonResult.count = 0; + objJsonResult.Message = "[3899-2-006]鏉$爜鐢熸垚澶辫触!" + e.Message; + return objJsonResult; + } + return objJsonResult; + } + #endregion #region [鏉$爜鐢熸垚鎺ュ彛-杩﹀崡] [Route("Sc_BarCode/Sub_SaveBill_JiaNan")] @@ -1697,6 +1869,7 @@ barcode.HCusModel2 = ordrlist[i].HCusModel; barcode.HCusMaterName2 = ordrlist[i].HCusMaterName; barcode.HCheckEmpName2 = ordrlist[i].HCheckEmpName; + barcode.HZZRQ = ordrlist[i].HZZRQ; ListRows.Add(barcode); n += 1; //鏇存柊鍚屾壒鐢熸垚鐨勬潯鐮佹暟 @@ -1801,6 +1974,7 @@ barcode.HCusModel2 = ordrlist[i].HCusModel; barcode.HCusMaterName2 = ordrlist[i].HCusMaterName; barcode.HCheckEmpName2 = ordrlist[i].HCheckEmpName; + barcode.HZZRQ = ordrlist[i].HZZRQ; ListRows.Add(barcode); n += 1; //鏇存柊鍚屾壒鐢熸垚鐨勬潯鐮佹暟 @@ -1905,6 +2079,7 @@ barcode.HCusModel2 = ordrlist[i].HCusModel; barcode.HCusMaterName2 = ordrlist[i].HCusMaterName; barcode.HCheckEmpName2 = ordrlist[i].HCheckEmpName; + barcode.HZZRQ = ordrlist[i].HZZRQ; ListRows.Add(barcode); n += 1; //鏇存柊鍚屾壒鐢熸垚鐨勬潯鐮佹暟 @@ -1975,6 +2150,7 @@ string HCusModel2 = ClsPub.isStrNull(ListRows[i].HCusModel2); string HCusMaterName2 = ClsPub.isStrNull(ListRows[i].HCusMaterName2); string HCheckEmpName2 = ClsPub.isStrNull(ListRows[i].HCheckEmpName2); + string HZZRQ = ClsPub.isStrNull(ListRows[i].HZZRQ); oCN.RunProc("insert into Gy_BarCodeBill (HBarCode,HBarCodeType,HBarCodeSubType,HMaterID,HUnitID,HQty" + ",HBatchNo,HSupID,HGroupID,HMaker,HMakeDate,HPrintQty,HinitQty" + ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HEndQty " + @@ -1983,7 +2159,7 @@ ",HSTOCKORGID,HOWNERID,HSeOrderBillNo,HInterID,HEntryID " + ",HGiveAwayFlag " + ",HMaterName,HMaterModel,HPinfan,HAuxPropID,HMTONo,HInnerBillNo" + - ",HCoilNO,HFurnaceNO,HFactory,HAuxQty,HheatNO,HProduceDate,HExpiryDate,HEmpID,HCusModel,HCusMaterName,HCheckEmpName " + + ",HCoilNO,HFurnaceNO,HFactory,HAuxQty,HheatNO,HProduceDate,HExpiryDate,HEmpID,HCusModel,HCusMaterName,HCheckEmpName,HZZRQ " + ") values (" + "'" + HBarCode + "','" + HBarCodeType + "','" + HBarCodeSubType + "'," + HMaterID.ToString() + "," + HUnitID.ToString() + "," + HQty2.ToString() + ",'" + HBatchNo2 + "'," + HSupID.ToString() + "," + HGroupID2.ToString() + ",'" + ClsPub.CurUserName + "',getdate()," + HPrintQty.ToString() + "," + HQty2.ToString() @@ -1993,13 +2169,16 @@ + ", " + HOrgID.ToString() + "," + HOrgID.ToString() + ",'" + HSeOrderBillNo + "'," + HInterID.ToString() + "," + HEntryID.ToString() + "" + ", " + DBUtility.ClsPub.BoolToString(HGiveAwayFlag) + ",'" + HMaterName + "','" + HMaterModel + "','" + HPinfan + "'," + HAuxPropID.ToString() + ",'" + HMTONo + "','" + HInnerBillNo + "'" - + ",'" + HCoilNO2 + "','" + HFurnaceNO2 + "','" + HFactory2 + "'," + HAuxQty2 + ",'" + HheatNO2 + "','" + HProduceDate + "','" + HExpiryDate + "'," + HEmpID2.ToString() + ",'" + HCusModel2 + "','" + HCusMaterName2 + "','" + HCheckEmpName2 + "'" + ")"); + + ",'" + HCoilNO2 + "','" + HFurnaceNO2 + "','" + HFactory2 + "'," + HAuxQty2 + ",'" + HheatNO2 + "','" + HProduceDate + "','" + HExpiryDate + "'," + HEmpID2.ToString() + ",'" + HCusModel2 + "','" + HCusMaterName2 + "','" + HCheckEmpName2 + "','" + HZZRQ + "'" + ")"); } } //澧炲姞 鏉$爜瓒呰繃鏈敓鎴愬姛鑳芥帶鍒� // + //鑷姩瑁呯 + string sql_autoForBoxBill = "exec h_v_Gy_BarCode_AutoProductBarCodeBox " + HInterID.ToString(); + oCN.RunProc(sql_autoForBoxBill); oCN.Commit(); List<Object> listobj = ListRows.ConvertAll(s => (object)s);//List瀹炰綋绫昏浆鎹负object -- Gitblit v1.9.1