From 773e823e7b9c11cbe61b0ac1f17fc248c436270c Mon Sep 17 00:00:00 2001
From: yxj <yxj@hz-kingdee.com>
Date: 星期一, 04 九月 2023 15:11:39 +0800
Subject: [PATCH] 涤纶半成品生成条码模块,界面增加重量、包号,根据流水号返回工序等信息,生产资源可扫码返回信息等

---
 WarM/条码打印/Kf_WeighToBarCode_StationOutBill.cs          |  184 +++++++++++++++++++++++++
 WarM/条码打印/Kf_WeighToBarCode.cs                         |   11 +
 WarM/条码打印/Kf_WeighToBarCode_StationOutBill.designer.cs |  164 +++++++++++++++++++----
 WarM/条码打印/Kf_WeighToBarCode_StationOutBill.resx        |   45 ++++++
 4 files changed, 370 insertions(+), 34 deletions(-)

diff --git "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Kf_WeighToBarCode.cs" "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Kf_WeighToBarCode.cs"
index 8f913b6..9be67cd 100644
--- "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Kf_WeighToBarCode.cs"
+++ "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Kf_WeighToBarCode.cs"
@@ -523,6 +523,17 @@
         //鏉$爜鐢熸垚鍓嶅垽鏂�
         private bool Sub_AllowSave()
         {
+            //鍒ゆ柇褰撳墠鍗曟嵁ID鏄惁宸蹭笂浼犵敓鎴愬崟鎹�
+            DataSet Ds = oCn.RunProcReturn("select top 1 1 from KF_WeighSource_Temp with(nolock) where HInterID=" + HInterID.ToString() + " and HRelationInterID=1 ", "KF_WeighSource_Temp", ref DBUtility.ClsPub.sExeReturnInfo);
+            if (Ds == null || Ds.Tables[0].Rows.Count == 0)
+            {
+            }
+            else
+            {
+                MessageBox.Show("褰撳墠鏉$爜璁板綍宸叉崲鐝笂浼犵敓鎴愬崟鎹紝璇烽��鍑哄悗閲嶆柊杩涘叆璇ユā鍧楄繘琛屾潯鐮佺敓鎴愭搷浣滐紒", "鎻愮ず");
+                return false;
+            }
+
             if (HInterID==0 || HBillNo=="")
             {
                 MessageBox.Show("鑾峰彇鏉$爜瀵瑰簲鍗曟嵁ID鎴栧崟鎹彿澶辫触锛岃閲嶆柊鍒锋柊鐣岄潰锛�", "鎻愮ず");
diff --git "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Kf_WeighToBarCode_StationOutBill.cs" "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Kf_WeighToBarCode_StationOutBill.cs"
index 05279c5..11b1e6a 100644
--- "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Kf_WeighToBarCode_StationOutBill.cs"
+++ "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Kf_WeighToBarCode_StationOutBill.cs"
@@ -35,6 +35,7 @@
         public Int64 HProcessExchangeEntryID = 0;
         public Int64 HSupID = 0;
         public double HSourceQty = 0;
+        public double HMaterWeight = 0;         //鐗╂枡鍏嬮噸
         public string HCusMaterName = "";       //瀹㈡埛鐗╂枡鍚嶇О
         public string HCusModel = "";           //瀹㈡埛瑙勬牸鍨嬪彿
         public string HMaker = DBUtility.ClsPub.CurUserName;
@@ -522,7 +523,7 @@
             if (chkHDYFlag.Checked == true)
             {
                 //鎵撳嵃鏉$爜
-                Sub_SetReport("鐗╂枡鏉$爜");
+                Sub_SetReport("鍗婃垚鍝佹潯鐮�");
                 Report.Print(false);
                 Thread.Sleep(1000);
             }
@@ -542,6 +543,8 @@
             }
 
             txtHQty.Text = "";
+            txtHWeightQyt.Text = "";
+            txtHBarcodeNo.Text = "";
             txtHQty.Focus();
         }
 
@@ -574,12 +577,37 @@
                 MessageBox.Show("璇疯緭鍏ユ纭背鏁帮紒", "鎻愮ず");
                 return false;
             }
+            else if (DBUtility.ClsPub.isDoule(txtHWeightQyt.Text) == 0)
+            {
+                MessageBox.Show("璇疯緭鍏ユ纭噸閲忥紒", "鎻愮ず");
+                return false;
+            }
+            else if (DBUtility.ClsPub.isInt(txtHBarcodeNo.Text) == 0)
+            {
+                MessageBox.Show("璇疯緭鍏ュ寘鍙凤紒", "鎻愮ず");
+                return false;
+            }
             else if (DBUtility.ClsPub.isDoule(txtHProcID.Tag) == 0)
             {
                 MessageBox.Show("璇峰厛閫夋嫨宸ュ簭锛�", "鎻愮ず");
                 return false;
             }
 
+            //瀹為檯鍏嬮噸=閲嶉噺/绫虫暟*1000锛屽疄闄呭厠閲嶈秴鍑虹墿鏂欑淮鎶ゅ厠閲嶇殑鐧惧垎涔嬩簩鍗佹垨涓嶈冻鐗╂枡缁存姢鍏嬮噸鐨勭櫨鍒嗕箣鍏崄锛岄璀︽彁绀�
+            double sQty = 0;    //瀹為檯鍏嬮噸
+            sQty = DBUtility.ClsPub.isDoule(txtHWeightQyt.Text) / DBUtility.ClsPub.isDoule(txtHQty.Text) * 1000;
+
+            if (sQty > HMaterWeight * 1.2 || sQty < HMaterWeight * 0.8)
+            {
+                if (MessageBox.Show("鐗╂枡缁存姢鍏嬮噸涓猴細" + HMaterWeight.ToString() + "锛屽疄闄呭厠閲嶄负锛�" + sQty.ToString() + "锛屾墍杈撳叆瀹為檯鍏嬮噸瓒呭嚭鐗╂枡缁存姢鍏嬮噸鐨勭櫨鍒嗕箣浜屽崄鎴栦笉瓒崇墿鏂欑淮鎶ゅ厠閲嶇殑鐧惧垎涔嬪叓鍗侊紝璇锋鏌ヨ緭鍏ョ殑鏁版嵁鏄惁姝g‘锛�", "鎻愮ず", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
+                {
+                    return true;
+                }
+                else
+                {
+                    return false;
+                }
+            }
             return true;
         }
 
@@ -641,9 +669,11 @@
             string HBarCodeType = "";
             Int64 HMaterID2 = 0;
             double HQty = 0;            //绫虫暟
+            double HMaterialJQty = 0;   //閲嶉噺
             Int64 HGroupID = 0;
             Int64 HDeptID = 0;
             string HProcessExchangeBillNo = "";
+            Int64 HBarcodeNo = 0;       //鍖呮暟
             string HMaterName = "";
             string HMaterModel = "";
             Int64 HProcID = 0;
@@ -655,9 +685,11 @@
             HBarCodeType = DBUtility.ClsPub.isStrNull(cmbHBarCodeType.Text);
             HMaterID2 = DBUtility.ClsPub.isLong(txtHMaterNumber.Tag);
             HQty = DBUtility.ClsPub.isDoule(txtHQty.Text);
+            HMaterialJQty = DBUtility.ClsPub.isDoule(txtHWeightQyt.Text);
             HGroupID = DBUtility.ClsPub.isLong(txtHGroupID.Tag);
             HDeptID = DBUtility.ClsPub.isLong(txtHDeptName.Tag);
             HProcessExchangeBillNo = DBUtility.ClsPub.isStrNull(txtHBillNo.Text);
+            HBarcodeNo = DBUtility.ClsPub.isLong(txtHBarcodeNo.Text);
             HMaterName = DBUtility.ClsPub.isStrNull(txtHMaterName.Text);
             HMaterModel = DBUtility.ClsPub.isStrNull(txtHMaterModel.Text);
             HProcID = DBUtility.ClsPub.isLong(txtHProcID.Tag);
@@ -683,8 +715,8 @@
                 + " '" + HBarCode + "','" + HBarCodeType + "'," + HMaterID2.ToString() + "," + HUnitID.ToString() + "," + HQty.ToString()
                 + ",'" + HBatchNo + "'," + HSupID.ToString() + "," + HGroupID.ToString() + ",'" + HMaker + "',getdate(),0," + HQty.ToString()
                 + ", " + HSourceInterID.ToString() + "," + HSourceEntryID.ToString() + ",'" + HSourceBillNo + "','" + HSourceBillType + "',''"
-                + ", 1,1," + HDeptID.ToString() + ",0,0,''"
-                + ", 0,'',getdate(),'','" + sDate + "',0,0"
+                + ", 1," + HBarcodeNo.ToString() + "," + HDeptID.ToString() + ",0,0,''"
+                + ", 0,'',getdate(),'','" + sDate + "'," + HMaterialJQty.ToString() + ",0"
                 + ", " + HStockOrgID.ToString() + "," + HStockOrgID.ToString() + ",''," + HInterID.ToString() + ",0"
                 + ", " + HProcessExchangeInterID.ToString() + "," + HProcessExchangeEntryID.ToString() + ",'" + HProcessExchangeBillNo + "',0,'" + HCusMaterName + "','" + HCusModel + "'"
                 + ", " + HProcID.ToString() + "," + HCenterID.ToString() + "," + HSourceID.ToString() + "," + HProcNo.ToString() + "," + HSourceQty.ToString()
@@ -727,6 +759,7 @@
             HSourceQty = DBUtility.ClsPub.isDoule(grdSub.SelectedRows[0].Cells[Fun_GetSubCol("鏁伴噺")].Value);
             HProcessExchangeInterID = DBUtility.ClsPub.isLong(grdSub.SelectedRows[0].Cells[Fun_GetSubCol("HProcessExchangeInterID")].Value);
             HSupID = DBUtility.ClsPub.isLong(grdSub.SelectedRows[0].Cells[Fun_GetSubCol("HSupID")].Value);
+            HMaterWeight = DBUtility.ClsPub.isDoule(grdSub.SelectedRows[0].Cells[Fun_GetSubCol("HMaterWeight")].Value);
             HCusMaterName = DBUtility.ClsPub.isStrNull(grdSub.SelectedRows[0].Cells[Fun_GetSubCol("HCusMaterName")].Value);
             HCusModel = DBUtility.ClsPub.isStrNull(grdSub.SelectedRows[0].Cells[Fun_GetSubCol("HCusModel")].Value);
         }
@@ -928,6 +961,50 @@
 
         #endregion
 
+        #region  //娴佹按鍙锋壂鎻�
+        private void txtHProcNo_KeyDown(object sender, KeyEventArgs e)
+        {
+            if (e.KeyCode == Keys.Return)
+            {
+                if (txtHProcNo.Text == "")
+                {
+                    MessageBox.Show("娴佹按鍙蜂负绌猴紝璇疯緭鍏ユ祦姘村彿锛�");
+                    return;
+                }
+                //鏍规嵁杞崱涓籌D銆佹祦姘村彿甯﹀嚭娴佽浆鍗′笂鐩稿簲宸ュ簭銆佺彮缁勩�佸伐浣滀腑蹇冦�佺敓浜ц祫婧�
+                DataSet Ds = oCn.RunProcReturn("exec h_p_KF_GetBCPWeighSource_HProcNo " + HProcessExchangeInterID.ToString() + "," + txtHProcNo.Text, "h_p_KF_GetBCPWeighSource_HProcNo");
+                if (Ds == null || Ds.Tables[0].Rows.Count == 0)
+                {
+                    txtHProcNo.Text = "";
+                    txtHProcID.Tag = 0;
+                    txtHProcID.Text = "";
+                    txtHCenterID.Tag = 0;
+                    txtHCenterID.Text = "";
+                    txtHGroupID.Tag = 0;
+                    txtHGroupID.Text = "";
+                    txtHSourceID.Tag = 0;
+                    txtHSourceID.Text = "";
+                    MessageBox.Show("鎵�杈撳叆娴佹按鍙蜂笉鍦ㄥ綋鍓嶅伐搴忔祦杞崱涓嬶紝璇烽噸鏂拌緭鍏ユ祦姘村彿锛�");
+                    return;
+                }
+                else
+                {
+                    HProcessExchangeEntryID = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HSourceEntryID"]);
+                    txtHProcNo.Text = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HProcNo"]);
+                    txtHProcID.Tag = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HProcID"]);
+                    txtHProcID.Text = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HProcName"]);
+                    txtHCenterID.Tag = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HCenterID"]);
+                    txtHCenterID.Text = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HCenterName"]);
+                    txtHGroupID.Tag = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HGroupID"]);
+                    txtHGroupID.Text = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HGroupName"]);
+                    txtHSourceID.Tag = DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0]["HSourceID"]);
+                    txtHSourceID.Text = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HSourceName"]);
+                }
+            }
+        }
+
+        #endregion
+
         #region  //宸ュ簭閫夋嫨
 
         private void cmdHProcID_Click(object sender, EventArgs e)
@@ -970,5 +1047,106 @@
         }
 
         #endregion
+
+        #region  //鐢熶骇璧勬簮閫夋嫨
+
+        private void txtHSourceID_KeyPress(object sender, KeyPressEventArgs e)
+        {
+            if (e.KeyChar == (char)Keys.Return)
+            {
+                if (DBUtility.ClsPub.isStrNull(txtHSourceID.Text) != "")
+                {
+                    DAL.ClsGy_Source_View oSource = new DAL.ClsGy_Source_View();
+                    if (oSource.GetInfoByID(DBUtility.ClsPub.isLong(txtHSourceID.Text.Replace("HCX", ""))))
+                    {
+                        txtHSourceID.Text = oSource.omodel.HName;
+                        txtHSourceID.Tag = oSource.omodel.HItemID;
+                    }
+                    else
+                    {
+                        txtHSourceID.Text = "";
+                        txtHSourceID.Tag = 0;
+                    }
+                }
+                else
+                {
+                    txtHSourceID.Text = "";
+                    txtHSourceID.Tag = 0;
+                }
+            }
+        }
+
+        private void txtHSourceID_Click(object sender, EventArgs e)
+        {
+            txtHSourceID.SelectAll();
+        }
+
+        private void txtHSourceID_TextChanged(object sender, EventArgs e)
+        {
+            BLL.ClsPub_BLL.Sub_ClearText(txtHSourceID);
+        }
+
+        private void cmdHSourceID_Click(object sender, EventArgs e)
+        {
+            DAL.ClsGy_Source_View oSource = new DAL.ClsGy_Source_View();
+            if (oSource.RefreshView())
+            {
+                txtHSourceID.Text = oSource.oModel.HName;
+                txtHSourceID.Tag = oSource.oModel.HItemID.ToString();
+            }
+            else
+            {
+                txtHSourceID.Text = "";
+            }
+        }
+
+        #endregion
+
+        #region  //鐢熶骇鐝粍閫夋嫨
+
+        private void cmdHGroupID_Click(object sender, EventArgs e)
+        {
+            DAL.ClsGy_Group_View oGroup = new DAL.ClsGy_Group_View();
+            if (oGroup.RefreshView())
+            {
+                txtHGroupID.Text = oGroup.oModel.HName;
+                txtHGroupID.Tag = oGroup.oModel.HItemID.ToString();
+            }
+            else
+            {
+                txtHGroupID.Text = "";
+            }
+        }
+
+        private void txtHGroupID_TextChanged(object sender, EventArgs e)
+        {
+            BLL.ClsPub_BLL.Sub_ClearText(txtHGroupID);
+        }
+
+        #endregion
+
+        #region  //宸ヤ綔涓績閫夋嫨
+
+        private void cmdHCenterID_Click(object sender, EventArgs e)
+        {
+            DAL.ClsGy_WorkCenter_View oWorkCenter = new DAL.ClsGy_WorkCenter_View();
+            if (oWorkCenter.RefreshView())
+            {
+                txtHCenterID.Text = oWorkCenter.oModel.HName;
+                txtHCenterID.Tag = oWorkCenter.oModel.HItemID.ToString();
+            }
+            else
+            {
+                txtHCenterID.Text = "";
+            }
+        }
+
+        private void txtHCenterID_TextChanged(object sender, EventArgs e)
+        {
+            BLL.ClsPub_BLL.Sub_ClearText(txtHCenterID);
+        }
+
+
+        #endregion
     }
 }
\ No newline at end of file
diff --git "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Kf_WeighToBarCode_StationOutBill.designer.cs" "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Kf_WeighToBarCode_StationOutBill.designer.cs"
index ec7a0b6..3575e62 100644
--- "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Kf_WeighToBarCode_StationOutBill.designer.cs"
+++ "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Kf_WeighToBarCode_StationOutBill.designer.cs"
@@ -30,8 +30,8 @@
         {
             this.components = new System.ComponentModel.Container();
             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Kf_WeighToBarCode_StationOutBill));
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
             this.Tool = new System.Windows.Forms.ToolStrip();
             this.toolStripSeparator9 = new System.Windows.Forms.ToolStripSeparator();
             this.mrlk = new System.Windows.Forms.ToolStripButton();
@@ -55,6 +55,13 @@
             this.label4 = new System.Windows.Forms.Label();
             this.txtHMaterNumber = new System.Windows.Forms.TextBox();
             this.gbUp = new System.Windows.Forms.GroupBox();
+            this.cmdHCenterID = new System.Windows.Forms.Button();
+            this.cmdHGroupID = new System.Windows.Forms.Button();
+            this.cmdHSourceID = new System.Windows.Forms.Button();
+            this.label15 = new System.Windows.Forms.Label();
+            this.txtHBarcodeNo = new System.Windows.Forms.TextBox();
+            this.label18 = new System.Windows.Forms.Label();
+            this.txtHWeightQyt = new System.Windows.Forms.TextBox();
             this.label17 = new System.Windows.Forms.Label();
             this.txtHProcNo = new System.Windows.Forms.TextBox();
             this.label16 = new System.Windows.Forms.Label();
@@ -270,14 +277,14 @@
             this.grdMain.AllowUserToDeleteRows = false;
             this.grdMain.BackgroundColor = System.Drawing.SystemColors.ControlLightLight;
             this.grdMain.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
-            dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Window;
-            dataGridViewCellStyle1.Font = new System.Drawing.Font("瀹嬩綋", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.ControlText;
-            dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
-            this.grdMain.DefaultCellStyle = dataGridViewCellStyle1;
+            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window;
+            dataGridViewCellStyle3.Font = new System.Drawing.Font("瀹嬩綋", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText;
+            dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+            this.grdMain.DefaultCellStyle = dataGridViewCellStyle3;
             this.grdMain.Dock = System.Windows.Forms.DockStyle.Fill;
             this.grdMain.Location = new System.Drawing.Point(3, 3);
             this.grdMain.Margin = new System.Windows.Forms.Padding(0);
@@ -315,7 +322,7 @@
             this.label3.AutoSize = true;
             this.label3.Font = new System.Drawing.Font("瀹嬩綋", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.label3.ForeColor = System.Drawing.Color.Black;
-            this.label3.Location = new System.Drawing.Point(272, 88);
+            this.label3.Location = new System.Drawing.Point(662, 116);
             this.label3.Name = "label3";
             this.label3.Size = new System.Drawing.Size(29, 12);
             this.label3.TabIndex = 52;
@@ -325,10 +332,10 @@
             // 
             this.txtHProcID.Font = new System.Drawing.Font("瀹嬩綋", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.txtHProcID.ImeMode = System.Windows.Forms.ImeMode.NoControl;
-            this.txtHProcID.Location = new System.Drawing.Point(303, 84);
+            this.txtHProcID.Location = new System.Drawing.Point(693, 112);
             this.txtHProcID.Name = "txtHProcID";
             this.txtHProcID.ReadOnly = true;
-            this.txtHProcID.Size = new System.Drawing.Size(112, 21);
+            this.txtHProcID.Size = new System.Drawing.Size(108, 21);
             this.txtHProcID.TabIndex = 53;
             this.txtHProcID.TextChanged += new System.EventHandler(this.txtHProcID_TextChanged);
             // 
@@ -356,6 +363,13 @@
             // gbUp
             // 
             this.gbUp.BackColor = System.Drawing.Color.Transparent;
+            this.gbUp.Controls.Add(this.cmdHCenterID);
+            this.gbUp.Controls.Add(this.cmdHGroupID);
+            this.gbUp.Controls.Add(this.cmdHSourceID);
+            this.gbUp.Controls.Add(this.label15);
+            this.gbUp.Controls.Add(this.txtHBarcodeNo);
+            this.gbUp.Controls.Add(this.label18);
+            this.gbUp.Controls.Add(this.txtHWeightQyt);
             this.gbUp.Controls.Add(this.label17);
             this.gbUp.Controls.Add(this.txtHProcNo);
             this.gbUp.Controls.Add(this.label16);
@@ -399,12 +413,88 @@
             this.gbUp.TabIndex = 58;
             this.gbUp.TabStop = false;
             // 
+            // cmdHCenterID
+            // 
+            this.cmdHCenterID.BackColor = System.Drawing.Color.Transparent;
+            this.cmdHCenterID.Image = ((System.Drawing.Image)(resources.GetObject("cmdHCenterID.Image")));
+            this.cmdHCenterID.ImageAlign = System.Drawing.ContentAlignment.TopRight;
+            this.cmdHCenterID.Location = new System.Drawing.Point(409, 111);
+            this.cmdHCenterID.Name = "cmdHCenterID";
+            this.cmdHCenterID.Size = new System.Drawing.Size(22, 22);
+            this.cmdHCenterID.TabIndex = 332;
+            this.cmdHCenterID.UseVisualStyleBackColor = false;
+            this.cmdHCenterID.Click += new System.EventHandler(this.cmdHCenterID_Click);
+            // 
+            // cmdHGroupID
+            // 
+            this.cmdHGroupID.BackColor = System.Drawing.Color.Transparent;
+            this.cmdHGroupID.Image = ((System.Drawing.Image)(resources.GetObject("cmdHGroupID.Image")));
+            this.cmdHGroupID.ImageAlign = System.Drawing.ContentAlignment.TopRight;
+            this.cmdHGroupID.Location = new System.Drawing.Point(201, 111);
+            this.cmdHGroupID.Name = "cmdHGroupID";
+            this.cmdHGroupID.Size = new System.Drawing.Size(22, 22);
+            this.cmdHGroupID.TabIndex = 331;
+            this.cmdHGroupID.UseVisualStyleBackColor = false;
+            this.cmdHGroupID.Click += new System.EventHandler(this.cmdHGroupID_Click);
+            // 
+            // cmdHSourceID
+            // 
+            this.cmdHSourceID.BackColor = System.Drawing.Color.Transparent;
+            this.cmdHSourceID.Image = ((System.Drawing.Image)(resources.GetObject("cmdHSourceID.Image")));
+            this.cmdHSourceID.ImageAlign = System.Drawing.ContentAlignment.TopRight;
+            this.cmdHSourceID.Location = new System.Drawing.Point(604, 111);
+            this.cmdHSourceID.Name = "cmdHSourceID";
+            this.cmdHSourceID.Size = new System.Drawing.Size(22, 22);
+            this.cmdHSourceID.TabIndex = 330;
+            this.cmdHSourceID.UseVisualStyleBackColor = false;
+            this.cmdHSourceID.Click += new System.EventHandler(this.cmdHSourceID_Click);
+            // 
+            // label15
+            // 
+            this.label15.AutoSize = true;
+            this.label15.Font = new System.Drawing.Font("瀹嬩綋", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label15.ForeColor = System.Drawing.Color.Black;
+            this.label15.Location = new System.Drawing.Point(466, 88);
+            this.label15.Name = "label15";
+            this.label15.Size = new System.Drawing.Size(29, 12);
+            this.label15.TabIndex = 328;
+            this.label15.Text = "鍖呭彿";
+            // 
+            // txtHBarcodeNo
+            // 
+            this.txtHBarcodeNo.Font = new System.Drawing.Font("瀹嬩綋", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.txtHBarcodeNo.ImeMode = System.Windows.Forms.ImeMode.NoControl;
+            this.txtHBarcodeNo.Location = new System.Drawing.Point(498, 84);
+            this.txtHBarcodeNo.Name = "txtHBarcodeNo";
+            this.txtHBarcodeNo.Size = new System.Drawing.Size(128, 21);
+            this.txtHBarcodeNo.TabIndex = 329;
+            // 
+            // label18
+            // 
+            this.label18.AutoSize = true;
+            this.label18.Font = new System.Drawing.Font("瀹嬩綋", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label18.ForeColor = System.Drawing.Color.Black;
+            this.label18.Location = new System.Drawing.Point(272, 88);
+            this.label18.Name = "label18";
+            this.label18.Size = new System.Drawing.Size(29, 12);
+            this.label18.TabIndex = 326;
+            this.label18.Text = "閲嶉噺";
+            // 
+            // txtHWeightQyt
+            // 
+            this.txtHWeightQyt.Font = new System.Drawing.Font("瀹嬩綋", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.txtHWeightQyt.ImeMode = System.Windows.Forms.ImeMode.NoControl;
+            this.txtHWeightQyt.Location = new System.Drawing.Point(303, 84);
+            this.txtHWeightQyt.Name = "txtHWeightQyt";
+            this.txtHWeightQyt.Size = new System.Drawing.Size(128, 21);
+            this.txtHWeightQyt.TabIndex = 327;
+            // 
             // label17
             // 
             this.label17.AutoSize = true;
             this.label17.Font = new System.Drawing.Font("瀹嬩綋", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.label17.ForeColor = System.Drawing.Color.Black;
-            this.label17.Location = new System.Drawing.Point(454, 88);
+            this.label17.Location = new System.Drawing.Point(650, 88);
             this.label17.Name = "label17";
             this.label17.Size = new System.Drawing.Size(41, 12);
             this.label17.TabIndex = 324;
@@ -414,18 +504,18 @@
             // 
             this.txtHProcNo.Font = new System.Drawing.Font("瀹嬩綋", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.txtHProcNo.ImeMode = System.Windows.Forms.ImeMode.NoControl;
-            this.txtHProcNo.Location = new System.Drawing.Point(498, 84);
+            this.txtHProcNo.Location = new System.Drawing.Point(693, 84);
             this.txtHProcNo.Name = "txtHProcNo";
-            this.txtHProcNo.ReadOnly = true;
             this.txtHProcNo.Size = new System.Drawing.Size(128, 21);
             this.txtHProcNo.TabIndex = 325;
+            this.txtHProcNo.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtHProcNo_KeyDown);
             // 
             // label16
             // 
             this.label16.AutoSize = true;
             this.label16.Font = new System.Drawing.Font("瀹嬩綋", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.label16.ForeColor = System.Drawing.Color.Black;
-            this.label16.Location = new System.Drawing.Point(626, 88);
+            this.label16.Location = new System.Drawing.Point(27, 144);
             this.label16.Name = "label16";
             this.label16.Size = new System.Drawing.Size(65, 12);
             this.label16.TabIndex = 320;
@@ -435,7 +525,7 @@
             // 
             this.txtHICMOBillNo.Font = new System.Drawing.Font("瀹嬩綋", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.txtHICMOBillNo.ImeMode = System.Windows.Forms.ImeMode.NoControl;
-            this.txtHICMOBillNo.Location = new System.Drawing.Point(693, 84);
+            this.txtHICMOBillNo.Location = new System.Drawing.Point(95, 140);
             this.txtHICMOBillNo.Name = "txtHICMOBillNo";
             this.txtHICMOBillNo.ReadOnly = true;
             this.txtHICMOBillNo.Size = new System.Drawing.Size(128, 21);
@@ -459,15 +549,17 @@
             this.txtHCenterID.Location = new System.Drawing.Point(303, 112);
             this.txtHCenterID.Name = "txtHCenterID";
             this.txtHCenterID.ReadOnly = true;
-            this.txtHCenterID.Size = new System.Drawing.Size(128, 21);
+            this.txtHCenterID.Size = new System.Drawing.Size(108, 21);
             this.txtHCenterID.TabIndex = 319;
+            this.txtHCenterID.TextChanged += new System.EventHandler(this.txtHCenterID_TextChanged);
             // 
             // cmdHProcID
             // 
             this.cmdHProcID.BackColor = System.Drawing.Color.Transparent;
+            this.cmdHProcID.Enabled = false;
             this.cmdHProcID.Image = ((System.Drawing.Image)(resources.GetObject("cmdHProcID.Image")));
             this.cmdHProcID.ImageAlign = System.Drawing.ContentAlignment.TopRight;
-            this.cmdHProcID.Location = new System.Drawing.Point(409, 83);
+            this.cmdHProcID.Location = new System.Drawing.Point(799, 111);
             this.cmdHProcID.Name = "cmdHProcID";
             this.cmdHProcID.Size = new System.Drawing.Size(22, 22);
             this.cmdHProcID.TabIndex = 317;
@@ -570,9 +662,11 @@
             this.txtHSourceID.ImeMode = System.Windows.Forms.ImeMode.NoControl;
             this.txtHSourceID.Location = new System.Drawing.Point(498, 112);
             this.txtHSourceID.Name = "txtHSourceID";
-            this.txtHSourceID.ReadOnly = true;
-            this.txtHSourceID.Size = new System.Drawing.Size(128, 21);
+            this.txtHSourceID.Size = new System.Drawing.Size(108, 21);
             this.txtHSourceID.TabIndex = 151;
+            this.txtHSourceID.Click += new System.EventHandler(this.txtHSourceID_Click);
+            this.txtHSourceID.TextChanged += new System.EventHandler(this.txtHSourceID_TextChanged);
+            this.txtHSourceID.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtHSourceID_KeyPress);
             // 
             // label9
             // 
@@ -592,8 +686,9 @@
             this.txtHGroupID.Location = new System.Drawing.Point(95, 112);
             this.txtHGroupID.Name = "txtHGroupID";
             this.txtHGroupID.ReadOnly = true;
-            this.txtHGroupID.Size = new System.Drawing.Size(128, 21);
+            this.txtHGroupID.Size = new System.Drawing.Size(108, 21);
             this.txtHGroupID.TabIndex = 149;
+            this.txtHGroupID.TextChanged += new System.EventHandler(this.txtHGroupID_TextChanged);
             // 
             // label7
             // 
@@ -733,14 +828,14 @@
             this.grdSub.AllowUserToDeleteRows = false;
             this.grdSub.BackgroundColor = System.Drawing.SystemColors.ControlLightLight;
             this.grdSub.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
-            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
-            dataGridViewCellStyle2.Font = new System.Drawing.Font("瀹嬩綋", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;
-            dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
-            this.grdSub.DefaultCellStyle = dataGridViewCellStyle2;
+            dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Window;
+            dataGridViewCellStyle4.Font = new System.Drawing.Font("瀹嬩綋", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.ControlText;
+            dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+            this.grdSub.DefaultCellStyle = dataGridViewCellStyle4;
             this.grdSub.Dock = System.Windows.Forms.DockStyle.Fill;
             this.grdSub.Location = new System.Drawing.Point(0, 73);
             this.grdSub.Margin = new System.Windows.Forms.Padding(0);
@@ -973,5 +1068,12 @@
         private System.Windows.Forms.TextBox txtHICMOBillNo;
         private System.Windows.Forms.Label label17;
         private System.Windows.Forms.TextBox txtHProcNo;
+        private System.Windows.Forms.Label label15;
+        private System.Windows.Forms.TextBox txtHBarcodeNo;
+        private System.Windows.Forms.Label label18;
+        private System.Windows.Forms.TextBox txtHWeightQyt;
+        private System.Windows.Forms.Button cmdHSourceID;
+        private System.Windows.Forms.Button cmdHCenterID;
+        private System.Windows.Forms.Button cmdHGroupID;
     }
 }
\ No newline at end of file
diff --git "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Kf_WeighToBarCode_StationOutBill.resx" "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Kf_WeighToBarCode_StationOutBill.resx"
index 0ff34c1..5459c55 100644
--- "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Kf_WeighToBarCode_StationOutBill.resx"
+++ "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Kf_WeighToBarCode_StationOutBill.resx"
@@ -435,6 +435,51 @@
   <metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     <value>102, 16</value>
   </metadata>
+  <data name="cmdHCenterID.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <value>
+        R0lGODlhEAAQAIZBAAAzmQBmzP///1o7AJlmAOazAMTz/9mmAEW5//nNT+W5ToPV/5TW/cyZAAyf/7Dp
+        /yOn/2jD/q3h/le8/sz3/5zg/7bt/73l/7Xs/2fH/4DT///bnZXb/97//2rK/wWb/8np/6zf/1S//77x
+        /73w/8Xv/1+//wmc/1jA/5Db/5LV/6rn/6Xb/zCt/33O/9X3/4LO/7jj/4PT/x+m/7nk/3XP/3PJ/3bQ
+        /6Tb/5Td/zCv/3fM/029/4za/6Pf/ZHc/6Pk/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEBAAAh+QQB
+        AABBACwAAAAAEAAQAAAIqACDCBwoMIDBAAQTBjEYIcKECQYVLmQQ44KJFhBmQECYMAAOEAJYnPjgwAHH
+        gQEYqAhBA4YOBDwQIDg5cYcLGyg8LOixYAFNABJkZBBRI8cDEg98ACAIlIOGGylWGOhgwMBSphUq/ACC
+        wQAFClcFEiAAQICAEhZGvDAbloCCDQUAlDUrQO5AtwkKHBgQRK7duwryHmjAV2IQAoIJGxY4QK/ixYwH
+        FIYcEAA7
+</value>
+  </data>
+  <data name="cmdHGroupID.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <value>
+        R0lGODlhEAAQAIZBAAAzmQBmzP///1o7AJlmAOazAMTz/9mmAEW5//nNT+W5ToPV/5TW/cyZAAyf/7Dp
+        /yOn/2jD/q3h/le8/sz3/5zg/7bt/73l/7Xs/2fH/4DT///bnZXb/97//2rK/wWb/8np/6zf/1S//77x
+        /73w/8Xv/1+//wmc/1jA/5Db/5LV/6rn/6Xb/zCt/33O/9X3/4LO/7jj/4PT/x+m/7nk/3XP/3PJ/3bQ
+        /6Tb/5Td/zCv/3fM/029/4za/6Pf/ZHc/6Pk/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEBAAAh+QQB
+        AABBACwAAAAAEAAQAAAIqACDCBwoMIDBAAQTBjEYIcKECQYVLmQQ44KJFhBmQECYMAAOEAJYnPjgwAHH
+        gQEYqAhBA4YOBDwQIDg5cYcLGyg8LOixYAFNABJkZBBRI8cDEg98ACAIlIOGGylWGOhgwMBSphUq/ACC
+        wQAFClcFEiAAQICAEhZGvDAbloCCDQUAlDUrQO5AtwkKHBgQRK7duwryHmjAV2IQAoIJGxY4QK/ixYwH
+        FIYcEAA7
+</value>
+  </data>
+  <data name="cmdHSourceID.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <value>
+        R0lGODlhEAAQAIZBAAAzmQBmzP///1o7AJlmAOazAMTz/9mmAEW5//nNT+W5ToPV/5TW/cyZAAyf/7Dp
+        /yOn/2jD/q3h/le8/sz3/5zg/7bt/73l/7Xs/2fH/4DT///bnZXb/97//2rK/wWb/8np/6zf/1S//77x
+        /73w/8Xv/1+//wmc/1jA/5Db/5LV/6rn/6Xb/zCt/33O/9X3/4LO/7jj/4PT/x+m/7nk/3XP/3PJ/3bQ
+        /6Tb/5Td/zCv/3fM/029/4za/6Pf/ZHc/6Pk/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+        AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEBAAAh+QQB
+        AABBACwAAAAAEAAQAAAIqACDCBwoMIDBAAQTBjEYIcKECQYVLmQQ44KJFhBmQECYMAAOEAJYnPjgwAHH
+        gQEYqAhBA4YOBDwQIDg5cYcLGyg8LOixYAFNABJkZBBRI8cDEg98ACAIlIOGGylWGOhgwMBSphUq/ACC
+        wQAFClcFEiAAQICAEhZGvDAbloCCDQUAlDUrQO5AtwkKHBgQRK7duwryHmjAV2IQAoIJGxY4QK/ixYwH
+        FIYcEAA7
+</value>
+  </data>
   <data name="cmdHProcID.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
     <value>
         R0lGODlhEAAQAIZBAAAzmQBmzP///1o7AJlmAOazAMTz/9mmAEW5//nNT+W5ToPV/5TW/cyZAAyf/7Dp

--
Gitblit v1.9.1