From 598bcaf4b2dfeecb31058158d30a77c4c959af0d Mon Sep 17 00:00:00 2001
From: yusijie <ysj@hz-kingdee.com>
Date: 星期三, 14 一月 2026 11:03:10 +0800
Subject: [PATCH] 夏宝桌面端调拨单生成条码模块,退料条码生成模块,添加库位号、备注字段
---
WarM/条码打印/Gy_BarCodeBill_XiaBao.cs | 130 ++++++++++++++++----------
WarM/条码打印/Gy_BarCodeBill_XB_SelectMater.cs | 138 ++++++++++++++++++---------
2 files changed, 173 insertions(+), 95 deletions(-)
diff --git "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill_XB_SelectMater.cs" "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill_XB_SelectMater.cs"
index c332cd3..9faab56 100644
--- "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill_XB_SelectMater.cs"
+++ "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill_XB_SelectMater.cs"
@@ -8,6 +8,7 @@
using gregn6Lib;
using Pub_Class;
using System.Threading;
+using System.Text.RegularExpressions;
namespace WarM
{
@@ -37,47 +38,51 @@
public const Int16 HBarCodeTypeCol = 16;
public const Int16 HQtyCol = 17;
public const Int16 HMinQtyCol = 18;
- public const Int16 HBQtyCol = 19;
- public const Int16 HinitQtyCol = 20;
- public const Int16 HISKFPERIODCol = 21;
- public const Int16 HProduceDateCol = 22;
- public const Int16 HExpiryDateCol = 23;
- public const Int16 HEXPUNITCol = 24;
- public const Int16 HEXPPERIODCol = 25;
- public const Int16 HGiveAwayFlagCol = 26;
- public const Int16 HUnitIDCol = 27;
- public const Int16 HUnitNumberCol = 28;
- public const Int16 HUnitNameCol = 29;
- public const Int16 HWhIDCol = 30;
- public const Int16 HWhNumberCol = 31;
- public const Int16 HWhNameCol = 32;
- public const Int16 HSPIDCol = 33;
- public const Int16 HSPNumberCol = 34;
- public const Int16 HSPNameCol = 35;
- public const Int16 HMTONoCol = 36;
- public const Int16 HRemarkCol = 37;
- public const Int16 HDeptIDCol = 38;
- public const Int16 HDeptNumberCol = 39;
- public const Int16 HDeptNameCol = 40;
- public const Int16 HSourceIDCol = 41;
- public const Int16 HSourceNumberCol = 42;
- public const Int16 HSourceNameCol = 43;
- public const Int16 HSupIDCol = 44;
- public const Int16 HSupNumberCol = 45;
- public const Int16 HSupNameCol = 46;
- public const Int16 HGroupIDCol = 47;
- public const Int16 HGroupNumberCol = 48;
- public const Int16 HGroupNameCol = 49;
- public const Int16 HCusIDCol = 50;
- public const Int16 HCusNumberCol = 51;
- public const Int16 HCusNameCol = 52;
- public const Int16 HCusTypeCol = 53;
- public const Int16 HSeOrderBillNoCol = 54;
- public const Int16 HSeOrderSEQCol = 55;
- public const Int16 HInnerBillNoCol = 56;
- public const Int16 HEndDateCol = 57;
- public const Int16 HSourceBillQtyCol = 58;
- public const Int16 HPinfanCol = 59;
+ public const Int16 HPackBarQtyCol = 19; //瑙勬牸鏁伴噺锛屽瓧娈靛唴瀹逛负鎵嬪姩杈撳叆
+ public const Int16 HCoilNOCol = 20; //閽㈠嵎鍙凤紝瀛楁鍐呭涓烘墜鍔ㄨ緭鍏�
+ public const Int16 HFactoryCol = 21; //浜у湴(鍘傚晢)锛屽瓧娈靛唴瀹逛负鎵嬪姩杈撳叆
+ public const Int16 HJiaYeCol = 22; //搴撲綅鍙�
+ public const Int16 HRemarkCol = 23;
+ public const Int16 HBQtyCol = 24;
+ public const Int16 HinitQtyCol = 25;
+ public const Int16 HISKFPERIODCol = 26;
+ public const Int16 HProduceDateCol = 27;
+ public const Int16 HExpiryDateCol = 28;
+ public const Int16 HEXPUNITCol = 29;
+ public const Int16 HEXPPERIODCol = 30;
+ public const Int16 HGiveAwayFlagCol = 31;
+ public const Int16 HUnitIDCol = 32;
+ public const Int16 HUnitNumberCol = 33;
+ public const Int16 HUnitNameCol = 34;
+ public const Int16 HWhIDCol = 35;
+ public const Int16 HWhNumberCol = 36;
+ public const Int16 HWhNameCol = 37;
+ public const Int16 HSPIDCol = 38;
+ public const Int16 HSPNumberCol = 39;
+ public const Int16 HSPNameCol = 40;
+ public const Int16 HMTONoCol = 41;
+ public const Int16 HDeptIDCol = 42;
+ public const Int16 HDeptNumberCol = 43;
+ public const Int16 HDeptNameCol = 44;
+ public const Int16 HSourceIDCol = 45;
+ public const Int16 HSourceNumberCol = 46;
+ public const Int16 HSourceNameCol = 47;
+ public const Int16 HSupIDCol = 48;
+ public const Int16 HSupNumberCol = 49;
+ public const Int16 HSupNameCol = 50;
+ public const Int16 HGroupIDCol = 51;
+ public const Int16 HGroupNumberCol = 52;
+ public const Int16 HGroupNameCol = 53;
+ public const Int16 HCusIDCol = 54;
+ public const Int16 HCusNumberCol = 55;
+ public const Int16 HCusNameCol = 56;
+ public const Int16 HCusTypeCol = 57;
+ public const Int16 HSeOrderBillNoCol = 58;
+ public const Int16 HSeOrderSEQCol = 59;
+ public const Int16 HInnerBillNoCol = 60;
+ public const Int16 HEndDateCol = 61;
+ public const Int16 HSourceBillQtyCol = 62;
+ public const Int16 HPinfanCol = 63;
//
public string ModName = "85";
@@ -515,6 +520,13 @@
{
sHRemark = sHRemark + " 绗�" + ClsPub.isLong(grdMain.Rows[j].Cells[HSnoCol].Value) + "琛岋紝鐗╂枡锛�" + ClsPub.isStrNull(grdMain.Rows[j].Cells[HMaterNameCol].Value) + " 鍚敤淇濊川鏈熺鐞嗭紝鏈夋晥鏈熻嚦涓嶈兘涓虹┖锛�";
}
+
+ // 姝e垯琛ㄨ揪寮忥細鍖归厤鏁存暟銆佹诞鐐规暟銆佹璐熷彿銆佺瀛﹁鏁版硶锛堝彲鏍规嵁闇�姹傝皟鏁达級
+ string numericRegex = @"^[+-]?(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?$";
+ if (!Regex.IsMatch(DBUtility.ClsPub.isStrNull(grdMain.Rows[j].Cells[HPackBarQtyCol].Value), numericRegex) && DBUtility.ClsPub.isStrNull(grdMain.Rows[j].Cells[HPackBarQtyCol].Value) != "")
+ {
+ sHRemark = sHRemark + " 绗�" + HSno + "琛岋紝瑙勬牸鏁伴噺涓嶄负鏁板瓧鏍煎紡锛岃杈撳叆姝g‘鐨勬暟鍊硷紒";
+ }
}
}
if (sHRemark != "")
@@ -594,6 +606,10 @@
string HMaterModel = ""; //浜у搧瑙勬牸鍨嬪彿
string HPinfan = ""; //鍝佺暘
DateTime HEndDate; //璁″垝瀹屽伐鏃ユ湡
+ double HPackBarQty = 0; //瑙勬牸鏁伴噺
+ string HCoilNO = ""; //閽㈠嵎鍙�
+ string HFactory = ""; //浜у湴(鍘傚晢)
+ string HJiaYe = ""; //搴撲綅鍙�
oCn.BeginTran();
Application.DoEvents();
@@ -726,6 +742,10 @@
HMaterModel = ClsPub.isStrNull(grdMain.Rows[j].Cells[HMaterModelCol].Value);
HPinfan = ClsPub.isStrNull(grdMain.Rows[j].Cells[HPinfanCol].Value);
HEndDate = ClsPub.isDate(grdMain.Rows[j].Cells[HEndDateCol].Value);
+ HPackBarQty = ClsPub.isDoule(grdMain.Rows[j].Cells[HPackBarQtyCol].Value == "" ? 0 : grdMain.Rows[j].Cells[HPackBarQtyCol].Value);
+ HCoilNO = ClsPub.isStrNull(grdMain.Rows[j].Cells[HCoilNOCol].Value);
+ HFactory = ClsPub.isStrNull(grdMain.Rows[j].Cells[HFactoryCol].Value);
+ HJiaYe = ClsPub.isStrNull(grdMain.Rows[j].Cells[HJiaYeCol].Value);
oCn.RunProc("insert into Gy_BarCodeBill" +
"(HInterID,HEntryID,HBarCode,HBarCodeType,HMaterID,HUnitID" +
@@ -736,7 +756,7 @@
",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HInitSourceEntryID,HRemark" +
",HPrintQty,HSTOCKORGID,HOWNERID,HDeptID,HSupID,HGroupID" +
",HCusID,HCusType,HSeOrderBillNo,HSeOrderSEQ,HInnerBillNo,HWorkLineName" +
- ",HMaterName,HMaterModel,HPinfan,HEndDate,HMaker,HMakeDate" +
+ ",HMaterName,HMaterModel,HPinfan,HEndDate,HMaker,HMakeDate,HPackBarQty,HCoilNO,HFactory,HJiaYe" +
") values ("
+ " " + HInterID.ToString() + "," + HEntryID.ToString() + ",'" + HBarCode + "','" + HBarCodeType + "'," + HMaterID.ToString() + "," + HUnitID.ToString()
+ ", " + HAuxPropID.ToString() + ",'" + HBatchNo + "','" + HMTONo + "'," + HQty.ToString() + "," + HinitQty.ToString() + "," + HSourceBillQty.ToString()
@@ -746,7 +766,7 @@
+ ", " + HSourceInterID.ToString() + "," + HSourceEntryID.ToString() + ",'" + HSourceBillNo + "','" + HSourceBillType + "'," + HInitSourceEntryID.ToString() + ",'" + HRemark + "'"
+ ", " + HPrintQty.ToString() + "," + HSTOCKORGID.ToString() + "," + HOWNERID.ToString() + "," + HDeptID.ToString() + "," + HSupID.ToString() + "," + HGroupID.ToString()
+ ", " + HCusID.ToString() + ",'" + HCusType + "','" + HSeOrderBillNo + "'," + HSeOrderSEQ.ToString() + ",'" + HInnerBillNo + "','" + HWorkLineName + "'"
- + ",'" + HMaterName + "','" + HMaterModel + "','" + HPinfan + "','" + HEndDate.ToShortDateString() + "','" + ClsPub.CurUserName + "',getdate()" +
+ + ",'" + HMaterName + "','" + HMaterModel + "','" + HPinfan + "','" + HEndDate.ToShortDateString() + "','" + ClsPub.CurUserName + "',getdate()" + "," + HPackBarQty + ",'" + HCoilNO + "','" + HFactory + "','" + HJiaYe + "'" +
")");
n = n + 1;
nn = nn + 1;
@@ -807,7 +827,7 @@
private void initGrid()
{
grdMain.RowCount = 0;
- grdMain.ColumnCount = 60; //鎬诲垪鏁�
+ grdMain.ColumnCount = 64; //鎬诲垪鏁�
DBUtility.Xt_BaseBillFun.initGridFst(grdMain, this.Name);
grdMain.Columns[HSnoCol].HeaderText = "搴忓彿";
grdMain.Columns[HMainIDCol].HeaderText = "婧愬崟涓籌D";
@@ -831,6 +851,11 @@
grdMain.Columns[HQtyCol].HeaderText = "鏁伴噺";
grdMain.Columns[HMinQtyCol].HeaderText = "鏈�灏忓寘瑁呮暟";
grdMain.Columns[HBQtyCol].HeaderText = "绠辨暟";
+ grdMain.Columns[HPackBarQtyCol].HeaderText = "瑙勬牸鏁伴噺";
+ grdMain.Columns[HCoilNOCol].HeaderText = "閽㈠嵎鍙�";
+ grdMain.Columns[HFactoryCol].HeaderText = "浜у湴";
+ grdMain.Columns[HJiaYeCol].HeaderText = "搴撲綅鍙�";
+ grdMain.Columns[HRemarkCol].HeaderText = "澶囨敞";
grdMain.Columns[HinitQtyCol].HeaderText = "鍒濆鍖栨暟閲�";
grdMain.Columns[HSourceBillQtyCol].HeaderText = "婧愬崟鍙敓鎴愭潯鐮佹暟閲�";
grdMain.Columns[HBarCodeTypeCol].HeaderText = "鏉$爜绫诲瀷";
@@ -847,7 +872,6 @@
grdMain.Columns[HSPNumberCol].HeaderText = "浠撲綅浠g爜";
grdMain.Columns[HSPNameCol].HeaderText = "浠撲綅";
grdMain.Columns[HMTONoCol].HeaderText = "璁″垝璺熻釜鍙�";
- grdMain.Columns[HRemarkCol].HeaderText = "澶囨敞";
grdMain.Columns[HDeptIDCol].HeaderText = "杞﹂棿ID";
grdMain.Columns[HDeptNumberCol].HeaderText = "杞﹂棿浠g爜";
grdMain.Columns[HDeptNameCol].HeaderText = "杞﹂棿";
@@ -925,6 +949,10 @@
"," + HBatchNoCol.ToString() +
"," + HBarCodeTypeCol.ToString() +
"," + HProduceDateCol.ToString() +
+ "," + HPackBarQtyCol.ToString() +
+ "," + HCoilNOCol.ToString() +
+ "," + HFactoryCol.ToString() +
+ "," + HJiaYeCol.ToString() +
"," + HRemarkCol.ToString();
//璁剧疆鍚堣鍒�
@@ -1057,6 +1085,10 @@
grdMain.Rows[sRow].Cells[HISKFPERIODCol].Value = oMater.omodel.HISKFPERIOD;
grdMain.Rows[sRow].Cells[HSubjoin2Col].Value = oMater.omodel.HSubjoin2;
grdMain.Rows[sRow].Cells[HBarCodeTypeCol].Value = "鍞竴鏉$爜";
+ grdMain.Rows[sRow].Cells[HPackBarQtyCol].Value = 0;
+ grdMain.Rows[sRow].Cells[HCoilNOCol].Value = "";
+ grdMain.Rows[sRow].Cells[HFactoryCol].Value = "";
+ grdMain.Rows[sRow].Cells[HJiaYeCol].Value = "";
//鍚敤鎵规
if (oMater.omodel.HBatchManager)
{
@@ -1105,6 +1137,10 @@
grdMain.Rows[sRow].Cells[HEXPPERIODCol].Value = "";
grdMain.Rows[sRow].Cells[HProduceDateCol].Value = "";
grdMain.Rows[sRow].Cells[HExpiryDateCol].Value = "";
+ grdMain.Rows[sRow].Cells[HPackBarQtyCol].Value = 0;
+ grdMain.Rows[sRow].Cells[HCoilNOCol].Value = "";
+ grdMain.Rows[sRow].Cells[HFactoryCol].Value = "";
+ grdMain.Rows[sRow].Cells[HJiaYeCol].Value = "";
}
}
else
@@ -1128,6 +1164,10 @@
grdMain.Rows[sRow].Cells[HEXPPERIODCol].Value = "";
grdMain.Rows[sRow].Cells[HProduceDateCol].Value = "";
grdMain.Rows[sRow].Cells[HExpiryDateCol].Value = "";
+ grdMain.Rows[sRow].Cells[HPackBarQtyCol].Value = 0;
+ grdMain.Rows[sRow].Cells[HCoilNOCol].Value = "";
+ grdMain.Rows[sRow].Cells[HFactoryCol].Value = "";
+ grdMain.Rows[sRow].Cells[HJiaYeCol].Value = "";
}
break;
@@ -1546,6 +1586,10 @@
"," + HBatchNoCol.ToString() +
"," + HBarCodeTypeCol.ToString() +
"," + HProduceDateCol.ToString() +
+ "," + HPackBarQtyCol.ToString() +
+ "," + HCoilNOCol.ToString() +
+ "," + HFactoryCol.ToString() +
+ "," + HJiaYeCol.ToString() +
"," + HRemarkCol.ToString();
grdMain.Columns[HBillNoCol].ReadOnly = true;
//璁剧疆鍚堣鍒�
@@ -2047,6 +2091,10 @@
grdMain.Rows[row + r].Cells[HBatchNoCol].Value = grdMain.Rows[row].Cells[HBatchNoCol].Value;
grdMain.Rows[row + r].Cells[HQtyCol].Value = DBUtility.ClsPub.isDoule(hq, 4);
grdMain.Rows[row + r].Cells[HMinQtyCol].Value = 0;
+ grdMain.Rows[row + r].Cells[HPackBarQtyCol].Value = 0;
+ grdMain.Rows[row + r].Cells[HCoilNOCol].Value = "";
+ grdMain.Rows[row + r].Cells[HFactoryCol].Value = "";
+ grdMain.Rows[row + r].Cells[HJiaYeCol].Value = "";
grdMain.Rows[row + r].Cells[HSourceBillQtyCol].Value = DBUtility.ClsPub.isDoule(hq, 4);
grdMain.Rows[row + r].Cells[HProduceDateCol].Value = grdMain.Rows[row].Cells[HProduceDateCol].Value;
grdMain.Rows[row + r].Cells[HExpiryDateCol].Value = grdMain.Rows[row].Cells[HExpiryDateCol].Value;
diff --git "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill_XiaBao.cs" "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill_XiaBao.cs"
index 033956e..eeed5a3 100644
--- "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill_XiaBao.cs"
+++ "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill_XiaBao.cs"
@@ -39,51 +39,54 @@
public const Int16 HQtyCol = 17;
public const Int16 HMinQtyCol = 18;
public const Int16 HPackBarQtyCol = 19; //瑙勬牸鏁伴噺锛屽瓧娈靛唴瀹逛负鎵嬪姩杈撳叆
- public const Int16 HBQtyCol = 20;
- public const Int16 HinitQtyCol = 21;
- public const Int16 HISKFPERIODCol = 22;
- public const Int16 HProduceDateCol = 23;
- public const Int16 HExpiryDateCol = 24;
- public const Int16 HEXPUNITCol = 25;
- public const Int16 HEXPPERIODCol = 26;
- public const Int16 HGiveAwayFlagCol = 27;
- public const Int16 HUnitIDCol = 28;
- public const Int16 HUnitNumberCol = 29;
- public const Int16 HUnitNameCol = 30;
- public const Int16 HWhIDCol = 31;
- public const Int16 HWhNumberCol = 32;
- public const Int16 HWhNameCol = 33;
- public const Int16 HSPIDCol = 34;
- public const Int16 HSPNumberCol = 35;
- public const Int16 HSPNameCol = 36;
- public const Int16 HMTONoCol = 37;
- public const Int16 HRemarkCol = 38;
- public const Int16 HDeptIDCol = 39;
- public const Int16 HDeptNumberCol = 40;
- public const Int16 HDeptNameCol = 41;
- public const Int16 HSourceIDCol = 42;
- public const Int16 HSourceNumberCol = 43;
- public const Int16 HSourceNameCol = 44;
- public const Int16 HSupIDCol = 45;
- public const Int16 HSupNumberCol = 46;
- public const Int16 HSupNameCol = 47;
- public const Int16 HGroupIDCol = 48;
- public const Int16 HGroupNumberCol = 49;
- public const Int16 HGroupNameCol = 50;
- public const Int16 HCusIDCol = 51;
- public const Int16 HCusNumberCol = 52;
- public const Int16 HCusNameCol = 53;
- public const Int16 HCusTypeCol = 54;
- public const Int16 HSeOrderBillNoCol = 55;
- public const Int16 HSeOrderSEQCol = 56;
- public const Int16 HInnerBillNoCol = 57;
- public const Int16 HEndDateCol = 58;
- public const Int16 HSourceBillQtyCol = 59;
- public const Int16 HAuxPropFlagCol = 60;
- public const Int16 HBarCodeCol = 61; //鏉$爜缂栧彿
- public const Int16 HTMNumberCol = 62; //鏉$爜鍓嶇紑
- public const Int16 HLSHCol = 63; //鐢熸垚鏉$爜鏃惰幏鍙栧搴旀祦姘村彿
- public const Int16 HBarcodeNoCol = 64; //璁板綍闇�鍥炲~鐨勬祦姘村彿鏁伴噺
+ public const Int16 HCoilNOCol = 20; //閽㈠嵎鍙凤紝瀛楁鍐呭涓烘墜鍔ㄨ緭鍏�
+ public const Int16 HFactoryCol = 21; //浜у湴(鍘傚晢)锛屽瓧娈靛唴瀹逛负鎵嬪姩杈撳叆
+ public const Int16 HJiaYeCol = 22; //搴撲綅鍙�
+ public const Int16 HRemarkCol = 23; //澶囨敞
+ public const Int16 HBQtyCol = 24;
+ public const Int16 HinitQtyCol = 25;
+ public const Int16 HISKFPERIODCol = 26;
+ public const Int16 HProduceDateCol = 27;
+ public const Int16 HExpiryDateCol = 28;
+ public const Int16 HEXPUNITCol = 29;
+ public const Int16 HEXPPERIODCol = 30;
+ public const Int16 HGiveAwayFlagCol = 31;
+ public const Int16 HUnitIDCol = 32;
+ public const Int16 HUnitNumberCol = 33;
+ public const Int16 HUnitNameCol = 34;
+ public const Int16 HWhIDCol = 35;
+ public const Int16 HWhNumberCol = 36;
+ public const Int16 HWhNameCol = 37;
+ public const Int16 HSPIDCol = 38;
+ public const Int16 HSPNumberCol = 39;
+ public const Int16 HSPNameCol = 40;
+ public const Int16 HMTONoCol = 41;
+ public const Int16 HDeptIDCol = 42;
+ public const Int16 HDeptNumberCol = 43;
+ public const Int16 HDeptNameCol = 44;
+ public const Int16 HSourceIDCol = 45;
+ public const Int16 HSourceNumberCol = 46;
+ public const Int16 HSourceNameCol = 47;
+ public const Int16 HSupIDCol = 48;
+ public const Int16 HSupNumberCol = 49;
+ public const Int16 HSupNameCol = 50;
+ public const Int16 HGroupIDCol = 51;
+ public const Int16 HGroupNumberCol = 52;
+ public const Int16 HGroupNameCol = 53;
+ public const Int16 HCusIDCol = 54;
+ public const Int16 HCusNumberCol = 55;
+ public const Int16 HCusNameCol = 56;
+ public const Int16 HCusTypeCol = 57;
+ public const Int16 HSeOrderBillNoCol = 58;
+ public const Int16 HSeOrderSEQCol = 59;
+ public const Int16 HInnerBillNoCol = 60;
+ public const Int16 HEndDateCol = 61;
+ public const Int16 HSourceBillQtyCol = 62;
+ public const Int16 HAuxPropFlagCol = 63;
+ public const Int16 HBarCodeCol = 64; // 鏉$爜缂栧彿
+ public const Int16 HTMNumberCol = 65; // 鏉$爜鍓嶇紑
+ public const Int16 HLSHCol = 66; // 鐢熸垚鏉$爜鏃惰幏鍙栧搴旀祦姘村彿
+ public const Int16 HBarcodeNoCol = 67; // 璁板綍闇�鍥炲~鐨勬祦姘村彿鏁伴噺
//
public string ModName = "85";
@@ -686,6 +689,9 @@
string HPinfan = ""; //鍝佺暘
DateTime HEndDate; //璁″垝瀹屽伐鏃ユ湡
double HPackBarQty = 0; //瑙勬牸鏁伴噺
+ string HCoilNO = ""; //閽㈠嵎鍙�
+ string HFactory = ""; //浜у湴(鍘傚晢)
+ string HJiaYe = ""; //搴撲綅鍙�
oCn.BeginTran();
Application.DoEvents();
@@ -841,6 +847,9 @@
HPinfan = ClsPub.isStrNull(grdMain.Rows[j].Cells[HPinfanCol].Value);
HEndDate = ClsPub.isDate(grdMain.Rows[j].Cells[HEndDateCol].Value);
HPackBarQty = ClsPub.isDoule(grdMain.Rows[j].Cells[HPackBarQtyCol].Value == "" ? 0 : grdMain.Rows[j].Cells[HPackBarQtyCol].Value);
+ HCoilNO = ClsPub.isStrNull(grdMain.Rows[j].Cells[HCoilNOCol].Value);
+ HFactory = ClsPub.isStrNull(grdMain.Rows[j].Cells[HFactoryCol].Value);
+ HJiaYe = ClsPub.isStrNull(grdMain.Rows[j].Cells[HJiaYeCol].Value);
oCn.RunProc("insert into Gy_BarCodeBill" +
"(HInterID,HEntryID,HBarCode,HBarCodeType,HMaterID,HUnitID" +
@@ -851,7 +860,7 @@
",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HInitSourceEntryID,HRemark" +
",HPrintQty,HSTOCKORGID,HOWNERID,HDeptID,HSupID,HGroupID" +
",HCusID,HCusType,HSeOrderBillNo,HSeOrderSEQ,HInnerBillNo,HWorkLineName" +
- ",HMaterName,HMaterModel,HPinfan,HEndDate,HMaker,HMakeDate,HPackBarQty" +
+ ",HMaterName,HMaterModel,HPinfan,HEndDate,HMaker,HMakeDate,HPackBarQty,HCoilNO,HFactory,HJiaYe" +
") values ("
+ " " + HInterID.ToString() + "," + HEntryID.ToString() + ",'" + HBarCode + "','" + HBarCodeType + "'," + HMaterID.ToString() + "," + HUnitID.ToString()
+ ", " + HAuxPropID.ToString() + ",'" + HBatchNo + "','" + HMTONo + "'," + HQty.ToString() + "," + HinitQty.ToString() + "," + HSourceBillQty.ToString()
@@ -861,7 +870,7 @@
+ ", " + HSourceInterID.ToString() + "," + HSourceEntryID.ToString() + ",'" + HSourceBillNo + "','" + HSourceBillType + "'," + HInitSourceEntryID.ToString() + ",'" + HRemark + "'"
+ ", " + HPrintQty.ToString() + "," + HSTOCKORGID.ToString() + "," + HOWNERID.ToString() + "," + HDeptID.ToString() + "," + HSupID.ToString() + "," + HGroupID.ToString()
+ ", " + HCusID.ToString() + ",'" + HCusType + "','" + HSeOrderBillNo + "'," + HSeOrderSEQ.ToString() + ",'" + HInnerBillNo + "','" + HWorkLineName + "'"
- + ",'" + HMaterName + "','" + HMaterModel + "','" + HPinfan + "','" + HEndDate.ToShortDateString() + "','" + ClsPub.CurUserName + "',getdate()" + "," + HPackBarQty +
+ + ",'" + HMaterName + "','" + HMaterModel + "','" + HPinfan + "','" + HEndDate.ToShortDateString() + "','" + ClsPub.CurUserName + "',getdate()" + "," + HPackBarQty + ",'" + HCoilNO + "','" + HFactory + "','" + HJiaYe + "'" +
")");
}
pb1.Value = j + 1;
@@ -959,7 +968,7 @@
private void initGrid()
{
grdMain.RowCount = 0;
- grdMain.ColumnCount = 65; //鎬诲垪鏁�
+ grdMain.ColumnCount = 68; //鎬诲垪鏁�
DBUtility.Xt_BaseBillFun.initGridFst(grdMain, this.Name);
grdMain.Columns[HSnoCol].HeaderText = "搴忓彿";
grdMain.Columns[HMainIDCol].HeaderText = "婧愬崟涓籌D";
@@ -984,6 +993,10 @@
grdMain.Columns[HMinQtyCol].HeaderText = "閲嶉噺";
grdMain.Columns[HBQtyCol].HeaderText = "绠辨暟";
grdMain.Columns[HPackBarQtyCol].HeaderText = "瑙勬牸鏁伴噺";
+ grdMain.Columns[HCoilNOCol].HeaderText = "閽㈠嵎鍙�";
+ grdMain.Columns[HFactoryCol].HeaderText = "浜у湴";
+ grdMain.Columns[HJiaYeCol].HeaderText = "搴撲綅鍙�";
+ grdMain.Columns[HRemarkCol].HeaderText = "澶囨敞";
grdMain.Columns[HinitQtyCol].HeaderText = "鍒濆鍖栨暟閲�";
grdMain.Columns[HSourceBillQtyCol].HeaderText = "婧愬崟鍙敓鎴愭潯鐮佹暟閲�";
grdMain.Columns[HBarCodeTypeCol].HeaderText = "鏉$爜绫诲瀷";
@@ -1000,7 +1013,6 @@
grdMain.Columns[HSPNumberCol].HeaderText = "浠撲綅浠g爜";
grdMain.Columns[HSPNameCol].HeaderText = "浠撲綅";
grdMain.Columns[HMTONoCol].HeaderText = "璁″垝璺熻釜鍙�";
- grdMain.Columns[HRemarkCol].HeaderText = "澶囨敞";
grdMain.Columns[HDeptIDCol].HeaderText = "杞﹂棿ID";
grdMain.Columns[HDeptNumberCol].HeaderText = "杞﹂棿浠g爜";
grdMain.Columns[HDeptNameCol].HeaderText = "杞﹂棿";
@@ -1082,6 +1094,9 @@
"," + HBarCodeTypeCol.ToString() +
"," + HProduceDateCol.ToString() +
"," + HPackBarQtyCol.ToString() +
+ "," + HCoilNOCol.ToString() +
+ "," + HFactoryCol.ToString() +
+ "," + HJiaYeCol.ToString() +
"," + HRemarkCol.ToString();
//璁剧疆鍚堣鍒�
@@ -1195,6 +1210,9 @@
grdMain.Rows[sRow].Cells[HBarCodeTypeCol].Value = oMater.omodel.HBarCodeType;
grdMain.Rows[sRow].Cells[HBQtyCol].Value = 1;
grdMain.Rows[sRow].Cells[HPackBarQtyCol].Value = 0;
+ grdMain.Rows[sRow].Cells[HCoilNOCol].Value = "";
+ grdMain.Rows[sRow].Cells[HFactoryCol].Value = "";
+ grdMain.Rows[sRow].Cells[HJiaYeCol].Value = "";
//鍚敤鎵规
if (oMater.omodel.HBatchManager)
{
@@ -1244,6 +1262,9 @@
grdMain.Rows[sRow].Cells[HProduceDateCol].Value = "";
grdMain.Rows[sRow].Cells[HExpiryDateCol].Value = "";
grdMain.Rows[sRow].Cells[HPackBarQtyCol].Value = 0;
+ grdMain.Rows[sRow].Cells[HCoilNOCol].Value = "";
+ grdMain.Rows[sRow].Cells[HFactoryCol].Value = "";
+ grdMain.Rows[sRow].Cells[HJiaYeCol].Value = "";
}
}
else
@@ -1269,6 +1290,9 @@
grdMain.Rows[sRow].Cells[HProduceDateCol].Value = "";
grdMain.Rows[sRow].Cells[HExpiryDateCol].Value = "";
grdMain.Rows[sRow].Cells[HPackBarQtyCol].Value = 0;
+ grdMain.Rows[sRow].Cells[HCoilNOCol].Value = "";
+ grdMain.Rows[sRow].Cells[HFactoryCol].Value = "";
+ grdMain.Rows[sRow].Cells[HJiaYeCol].Value = "";
}
break;
@@ -1594,6 +1618,9 @@
"," + HBarCodeTypeCol.ToString() +
"," + HProduceDateCol.ToString() +
"," + HPackBarQtyCol.ToString() +
+ "," + HCoilNOCol.ToString() +
+ "," + HFactoryCol.ToString() +
+ "," + HJiaYeCol.ToString() +
"," + HRemarkCol.ToString();
grdMain.Columns[HBillNoCol].ReadOnly = true;
//璁剧疆鍚堣鍒�
@@ -1986,6 +2013,9 @@
grdMain.Rows[row + r].Cells[HQtyCol].Value = grdMain.Rows[row].Cells[HQtyCol].Value;
grdMain.Rows[row + r].Cells[HMinQtyCol].Value = 0;
grdMain.Rows[row + r].Cells[HPackBarQtyCol].Value = 0;
+ grdMain.Rows[row + r].Cells[HCoilNOCol].Value = "";
+ grdMain.Rows[row + r].Cells[HFactoryCol].Value = "";
+ grdMain.Rows[row + r].Cells[HJiaYeCol].Value = "";
grdMain.Rows[row + r].Cells[HBQtyCol].Value = grdMain.Rows[row].Cells[HBQtyCol].Value;
grdMain.Rows[row + r].Cells[HinitQtyCol].Value = grdMain.Rows[row].Cells[HinitQtyCol].Value;
grdMain.Rows[row + r].Cells[HISKFPERIODCol].Value = grdMain.Rows[row].Cells[HISKFPERIODCol].Value;
@@ -2004,7 +2034,7 @@
grdMain.Rows[row + r].Cells[HSPNumberCol].Value = grdMain.Rows[row].Cells[HSPNumberCol].Value;
grdMain.Rows[row + r].Cells[HSPNameCol].Value = grdMain.Rows[row].Cells[HSPNameCol].Value;
grdMain.Rows[row + r].Cells[HMTONoCol].Value = grdMain.Rows[row].Cells[HMTONoCol].Value;
- grdMain.Rows[row + r].Cells[HRemarkCol].Value = grdMain.Rows[row].Cells[HRemarkCol].Value;
+ grdMain.Rows[row + r].Cells[HRemarkCol].Value = "";
grdMain.Rows[row + r].Cells[HDeptIDCol].Value = grdMain.Rows[row].Cells[HDeptIDCol].Value;
grdMain.Rows[row + r].Cells[HDeptNumberCol].Value = grdMain.Rows[row].Cells[HDeptNumberCol].Value;
grdMain.Rows[row + r].Cells[HDeptNameCol].Value = grdMain.Rows[row].Cells[HDeptNameCol].Value;
--
Gitblit v1.9.1