From e3e2d4f1587989972a9a2b8066eeb233856ff518 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期四, 25 四月 2024 12:59:31 +0800
Subject: [PATCH] 自动组托

---
 LMES/bin/x86/Debug.zip                                      |    0 
 WarM/条码打印/Gy_BarCodeBill_automaticallyByPLC_New.cs          |   20 
 WarM/条码打印/Gy_PackBarCodeBill_automaticallyByPLC.resx        |  413 ++++++++++
 WarM/条码打印/Gy_PackBarCodeBill_automaticallyByPLC.Designer.cs |  747 ++++++++++++++++++
 WarM/WarM.csproj                                            |    9 
 WarM/条码打印/Gy_PackBarCodeBill_automaticallyByPLC.cs          | 1169 +++++++++++++++++++++++++++++
 6 files changed, 2,354 insertions(+), 4 deletions(-)

diff --git a/LMES/bin/x86/Debug.zip b/LMES/bin/x86/Debug.zip
index fe0df64..e7b35c2 100644
--- a/LMES/bin/x86/Debug.zip
+++ b/LMES/bin/x86/Debug.zip
Binary files differ
diff --git a/WarM/WarM.csproj b/WarM/WarM.csproj
index 20edc61..93674ad 100644
--- a/WarM/WarM.csproj
+++ b/WarM/WarM.csproj
@@ -700,6 +700,12 @@
     <Compile Include="鏉$爜鎵撳嵃\Gy_BarCodeBill_automaticallyByPLC_New.designer.cs">
       <DependentUpon>Gy_BarCodeBill_automaticallyByPLC_New.cs</DependentUpon>
     </Compile>
+    <Compile Include="鏉$爜鎵撳嵃\Gy_PackBarCodeBill_automaticallyByPLC.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="鏉$爜鎵撳嵃\Gy_PackBarCodeBill_automaticallyByPLC.Designer.cs">
+      <DependentUpon>Gy_PackBarCodeBill_automaticallyByPLC.cs</DependentUpon>
+    </Compile>
     <Compile Include="鏉$爜鎵撳嵃\Kf_AGVRequestBill_FastList.cs">
       <SubType>Form</SubType>
     </Compile>
@@ -1149,6 +1155,9 @@
       <DependentUpon>Gy_BarCodeBill_automaticallyByPLC_New.cs</DependentUpon>
       <SubType>Designer</SubType>
     </EmbeddedResource>
+    <EmbeddedResource Include="鏉$爜鎵撳嵃\Gy_PackBarCodeBill_automaticallyByPLC.resx">
+      <DependentUpon>Gy_PackBarCodeBill_automaticallyByPLC.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="鏉$爜鎵撳嵃\Kf_AGVRequestBill_FastList.resx">
       <DependentUpon>Kf_AGVRequestBill_FastList.cs</DependentUpon>
       <SubType>Designer</SubType>
diff --git "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill_automaticallyByPLC_New.cs" "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill_automaticallyByPLC_New.cs"
index 954c4cd..b681710 100644
--- "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill_automaticallyByPLC_New.cs"
+++ "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill_automaticallyByPLC_New.cs"
@@ -351,6 +351,9 @@
             //grdMain.Rows[i].Cells[HSourceNumberCol].Value = oTable.Rows[0]["鐢熶骇绾夸唬鐮�"].ToString();
             grdMain.Rows[i].Cells[HSourceNameCol].Value = oTable.Rows[0]["鐢熶骇绾�"].ToString();
             grdMain.Rows[i].Cells[HEndDateCol].Value = oTable.Rows[0]["璁″垝瀹屽伐鏃ユ湡"].ToString();//鍗氭棩 鐢熶骇璁㈠崟 澶辨晥鏃ユ湡
+
+            grdMain.Rows[i].Cells[HAuxPropIDCol].Value = oTable.Rows[0]["HAuxPropID"].ToString();
+
             if (cmbHBarCodeType.Text == "浠櫒澶栬喘浠舵潯鐮佸鍣ㄨ鍒�")
             {
                 grdMain.Rows[i].Cells[HMinQtyCol].Value = ClsPub.isDoule(oTable.Rows[0]["鏈敓鎴愭潯鐮佹暟閲�"]);
@@ -847,6 +850,13 @@
                             HBatchNo2 = getBatchNo();
                         }
 
+                        long HSourceID = 0;
+                        string sql = "select * from Gy_Source where HName = '" + comboBox_SourceNameParams.Text + "' ";
+                        DataSet ds = oCn.RunProcReturn(sql, "Gy_Source");
+                        if (ds != null && ds.Tables[0].Rows.Count > 0)
+                        {
+                            HSourceID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[0]["HItemID"].ToString());
+                        }
 
                         oCn.RunProc("insert into Gy_BarCodeBill (HBarCode,HBarCodeType,HMaterID,HUnitID,HQty" +
                                     ",HBatchNo,HSupID,HGroupID,HMaker,HMakeDate,HPrintQty,HinitQty" +
@@ -857,7 +867,7 @@
                                     ",HGiveAwayFlag,HSeOrderSEQ,HInitSourceEntryID " +
                                     ",HProduceDate,HExpiryDate " +
                                     ",HISKFPERIOD,HEXPUNIT,HEXPPERIOD " +
-                                    ",HMaterName,HMaterModel,HPinfan,HAuxPropID,HMTONo,HInnerBillNo " +
+                                    ",HMaterName,HMaterModel,HPinfan,HAuxPropID,HMTONo,HInnerBillNo,HSourceID " +
                                     ") values ("
                                     + "'" + HBarCode + "','" + HBarCodeType + "'," + HMaterID.ToString() + "," + HUnitID.ToString() + "," + HQty2.ToString()
                                     + ",'" + HBatchNo2 + "'," + HSupID.ToString() + "," + HGroupID.ToString() + ",'" + ClsPub.CurUserName + "',getdate()," + HPrintQty.ToString() + "," + HQty2.ToString()
@@ -868,7 +878,8 @@
                                     + ", " + DBUtility.ClsPub.BoolToString(HGiveAwayFlag) + "," + HSeOrderSEQ.ToString() + "," + HSourceEntryID.ToString()
                                     + ", " + (HProduceDate == "" ? "NULL" : "'" + HProduceDate + "'") + "," + (HExpiryDate == "" ? "NULL" : "'" + HExpiryDate + "'")
                                     + ", " + DBUtility.ClsPub.BoolToString(HISKFPERIOD) + ",'" + HEXPUNIT + "'," + HEXPPERIOD.ToString()
-                                    + ",'" + HMaterName + "','" + HMaterModel + "','" + HPinfan + "'," + HAuxPropID.ToString() + ",'" + HMTONo + "','" + HInnerBillNo + "')");
+                                    + ",'" + HMaterName + "','" + HMaterModel + "','" + HPinfan + "'," + HAuxPropID.ToString() + ",'" + HMTONo + "','" + HInnerBillNo + "'," + HSourceID +
+                                    ")");
                     }
                 }
                 //澧炲姞 鏉$爜瓒呰繃鏈敓鎴愬姛鑳芥帶鍒�
@@ -1125,7 +1136,8 @@
                 sDate = "20" + sYear + "-" + sPeriod + "-" + sDay;
 
                 //璁剧疆宸ュ崟鏉$爜閫夐」鍗¤〃鏍兼暟鎹�
-                string sql = "select * from h_v_IF_BarCodeBillList Where 婧愬崟鍗曞彿 = '" + grdMain.Rows[0].Cells[HBillNoCol].Value + "' and HMaterID = " + grdMain.Rows[0].Cells[HMaterIDCol].Value + " and HSTOCKORGID = " + HOrgID + " and CONVERT(varchar(100),鏉$爜鏃ユ湡, 23) = '" + sDate + "' order by 鏉$爜缂栧彿";
+                //string sql = "select * from h_v_IF_BarCodeBillList Where 婧愬崟鍗曞彿 = '" + grdMain.Rows[0].Cells[HBillNoCol].Value + "' and HMaterID = " + grdMain.Rows[0].Cells[HMaterIDCol].Value + " and HSTOCKORGID = " + HOrgID + " and CONVERT(varchar(100),鏉$爜鏃ユ湡, 23) = '" + sDate + "' order by 鏉$爜缂栧彿";
+                string sql = "select * from h_v_IF_BarCodeBillList Where 婧愬崟鍗曞彿 = '" + grdMain.Rows[0].Cells[HBillNoCol].Value + "' and HMaterID = " + grdMain.Rows[0].Cells[HMaterIDCol].Value + " and CONVERT(varchar(100),鏉$爜鏃ユ湡, 23) = '" + sDate + "' order by 鏉$爜缂栧彿";
                 DataSet DSet1 = oCn.RunProcReturn(sql, "h_v_IF_BarCodeBillList", ref DBUtility.ClsPub.sExeReturnInfo);
                 //鐢熸垚棣栬鏍囬
                 if (DSet1 == null)
@@ -1264,7 +1276,7 @@
 
 
             //璁剧疆浜х嚎 涓嬫媺鍒楄〃
-            DataSet DsSource = oCn.RunProcReturn("select * from Gy_Source where HUSEORGID =" + ClsPub.HOrgID, "Gy_Source");
+            DataSet DsSource = oCn.RunProcReturn("select * from Gy_Source", "Gy_Source");
             comboBox_SourceNameParams.Items.Add("");
             if (DsSource != null)
             {
diff --git "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_PackBarCodeBill_automaticallyByPLC.Designer.cs" "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_PackBarCodeBill_automaticallyByPLC.Designer.cs"
new file mode 100644
index 0000000..c435527
--- /dev/null
+++ "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_PackBarCodeBill_automaticallyByPLC.Designer.cs"
@@ -0,0 +1,747 @@
+锘�
+namespace WarM.鏉$爜鎵撳嵃
+{
+    partial class Gy_PackBarCodeBill_automaticallyByPLC
+    {
+        /// <summary>
+        /// Required designer variable.
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        /// Clean up any resources being used.
+        /// </summary>
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows Form Designer generated code
+
+        /// <summary>
+        /// Required method for Designer support - do not modify
+        /// the contents of this method with the code editor.
+        /// </summary>
+        private void InitializeComponent()
+        {
+            this.components = new System.ComponentModel.Container();
+            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Gy_PackBarCodeBill_automaticallyByPLC));
+            this.tabControl_MainInfo = new System.Windows.Forms.TabControl();
+            this.tabPage_BillInfo = new System.Windows.Forms.TabPage();
+            this.gbUp = new System.Windows.Forms.GroupBox();
+            this.label_sBillNo = new System.Windows.Forms.Label();
+            this.textBox_sBillNo = new System.Windows.Forms.TextBox();
+            this.label_sBillID = new System.Windows.Forms.Label();
+            this.textBox_sBillID = new System.Windows.Forms.TextBox();
+            this.button_produceByHand = new System.Windows.Forms.Button();
+            this.textBox_PackQty = new System.Windows.Forms.TextBox();
+            this.label6 = new System.Windows.Forms.Label();
+            this.textBox_currentQty = new System.Windows.Forms.TextBox();
+            this.label_Pack = new System.Windows.Forms.Label();
+            this.label_HBarCode = new System.Windows.Forms.Label();
+            this.textBox_HBarCode = new System.Windows.Forms.TextBox();
+            this.cmbHOrgID = new System.Windows.Forms.ComboBox();
+            this.label_HPackBarCode = new System.Windows.Forms.Label();
+            this.button_stopListen = new System.Windows.Forms.Button();
+            this.textBox_HPackBarCode = new System.Windows.Forms.TextBox();
+            this.dtpHDate = new System.Windows.Forms.DateTimePicker();
+            this.label2 = new System.Windows.Forms.Label();
+            this.button_startListen = new System.Windows.Forms.Button();
+            this.cmbHBarCodeType = new System.Windows.Forms.ComboBox();
+            this.label1 = new System.Windows.Forms.Label();
+            this.label3 = new System.Windows.Forms.Label();
+            this.tabPage_ParamsInfo = new System.Windows.Forms.TabPage();
+            this.groupBox_ParamsInfo = new System.Windows.Forms.GroupBox();
+            this.button_resetParams = new System.Windows.Forms.Button();
+            this.button_saveParams = new System.Windows.Forms.Button();
+            this.textBox_PrintModelParams = new System.Windows.Forms.TextBox();
+            this.label_PrintModelParams = new System.Windows.Forms.Label();
+            this.comboBox_PrinterParams = new System.Windows.Forms.ComboBox();
+            this.label_PrinterParams = new System.Windows.Forms.Label();
+            this.comboBox_SourceNameParams = new System.Windows.Forms.ComboBox();
+            this.label_SourceNameParams = new System.Windows.Forms.Label();
+            this.textBox_PortParams = new System.Windows.Forms.TextBox();
+            this.label_PortParams = new System.Windows.Forms.Label();
+            this.textBox_IPParams = new System.Windows.Forms.TextBox();
+            this.label_IPParams = new System.Windows.Forms.Label();
+            this.timer1 = new System.Windows.Forms.Timer(this.components);
+            this.tabControl1 = new System.Windows.Forms.TabControl();
+            this.tabPage1 = new System.Windows.Forms.TabPage();
+            this.grdMain = new System.Windows.Forms.DataGridView();
+            this.tabPage2 = new System.Windows.Forms.TabPage();
+            this.grdSub = new System.Windows.Forms.DataGridView();
+            this.Tool = new System.Windows.Forms.ToolStrip();
+            this.toolStripSeparator9 = new System.Windows.Forms.ToolStripSeparator();
+            this.toolStripSeparator12 = new System.Windows.Forms.ToolStripSeparator();
+            this.mrlk = new System.Windows.Forms.ToolStripButton();
+            this.toolStripSeparator11 = new System.Windows.Forms.ToolStripSeparator();
+            this.bclk = new System.Windows.Forms.ToolStripButton();
+            this.toolStripSeparator10 = new System.Windows.Forms.ToolStripSeparator();
+            this.toolStripButton_Delete = new System.Windows.Forms.ToolStripButton();
+            this.tc = new System.Windows.Forms.ToolStripButton();
+            this.tabControl_MainInfo.SuspendLayout();
+            this.tabPage_BillInfo.SuspendLayout();
+            this.gbUp.SuspendLayout();
+            this.tabPage_ParamsInfo.SuspendLayout();
+            this.groupBox_ParamsInfo.SuspendLayout();
+            this.tabControl1.SuspendLayout();
+            this.tabPage1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.grdMain)).BeginInit();
+            this.tabPage2.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.grdSub)).BeginInit();
+            this.Tool.SuspendLayout();
+            this.SuspendLayout();
+            // 
+            // tabControl_MainInfo
+            // 
+            this.tabControl_MainInfo.Controls.Add(this.tabPage_BillInfo);
+            this.tabControl_MainInfo.Controls.Add(this.tabPage_ParamsInfo);
+            this.tabControl_MainInfo.Location = new System.Drawing.Point(76, 88);
+            this.tabControl_MainInfo.Name = "tabControl_MainInfo";
+            this.tabControl_MainInfo.SelectedIndex = 0;
+            this.tabControl_MainInfo.Size = new System.Drawing.Size(1393, 346);
+            this.tabControl_MainInfo.TabIndex = 39;
+            // 
+            // tabPage_BillInfo
+            // 
+            this.tabPage_BillInfo.BackColor = System.Drawing.Color.Lavender;
+            this.tabPage_BillInfo.Controls.Add(this.gbUp);
+            this.tabPage_BillInfo.Location = new System.Drawing.Point(4, 28);
+            this.tabPage_BillInfo.Name = "tabPage_BillInfo";
+            this.tabPage_BillInfo.Padding = new System.Windows.Forms.Padding(3);
+            this.tabPage_BillInfo.Size = new System.Drawing.Size(1385, 314);
+            this.tabPage_BillInfo.TabIndex = 0;
+            this.tabPage_BillInfo.Text = "宸ュ崟淇℃伅";
+            // 
+            // gbUp
+            // 
+            this.gbUp.BackColor = System.Drawing.Color.Transparent;
+            this.gbUp.Controls.Add(this.label_sBillNo);
+            this.gbUp.Controls.Add(this.textBox_sBillNo);
+            this.gbUp.Controls.Add(this.label_sBillID);
+            this.gbUp.Controls.Add(this.textBox_sBillID);
+            this.gbUp.Controls.Add(this.button_produceByHand);
+            this.gbUp.Controls.Add(this.textBox_PackQty);
+            this.gbUp.Controls.Add(this.label6);
+            this.gbUp.Controls.Add(this.textBox_currentQty);
+            this.gbUp.Controls.Add(this.label_Pack);
+            this.gbUp.Controls.Add(this.label_HBarCode);
+            this.gbUp.Controls.Add(this.textBox_HBarCode);
+            this.gbUp.Controls.Add(this.cmbHOrgID);
+            this.gbUp.Controls.Add(this.label_HPackBarCode);
+            this.gbUp.Controls.Add(this.button_stopListen);
+            this.gbUp.Controls.Add(this.textBox_HPackBarCode);
+            this.gbUp.Controls.Add(this.dtpHDate);
+            this.gbUp.Controls.Add(this.label2);
+            this.gbUp.Controls.Add(this.button_startListen);
+            this.gbUp.Controls.Add(this.cmbHBarCodeType);
+            this.gbUp.Controls.Add(this.label1);
+            this.gbUp.Controls.Add(this.label3);
+            this.gbUp.Location = new System.Drawing.Point(4, 4);
+            this.gbUp.Margin = new System.Windows.Forms.Padding(4);
+            this.gbUp.Name = "gbUp";
+            this.gbUp.Padding = new System.Windows.Forms.Padding(4);
+            this.gbUp.Size = new System.Drawing.Size(1374, 310);
+            this.gbUp.TabIndex = 33;
+            this.gbUp.TabStop = false;
+            // 
+            // label_sBillNo
+            // 
+            this.label_sBillNo.AutoSize = true;
+            this.label_sBillNo.Location = new System.Drawing.Point(450, 136);
+            this.label_sBillNo.Name = "label_sBillNo";
+            this.label_sBillNo.Size = new System.Drawing.Size(80, 18);
+            this.label_sBillNo.TabIndex = 121;
+            this.label_sBillNo.Text = "鍗� 鎹� 鍙�";
+            this.label_sBillNo.Visible = false;
+            // 
+            // textBox_sBillNo
+            // 
+            this.textBox_sBillNo.BackColor = System.Drawing.SystemColors.ScrollBar;
+            this.textBox_sBillNo.Enabled = false;
+            this.textBox_sBillNo.Location = new System.Drawing.Point(552, 133);
+            this.textBox_sBillNo.Name = "textBox_sBillNo";
+            this.textBox_sBillNo.Size = new System.Drawing.Size(280, 28);
+            this.textBox_sBillNo.TabIndex = 122;
+            this.textBox_sBillNo.Visible = false;
+            // 
+            // label_sBillID
+            // 
+            this.label_sBillID.AutoSize = true;
+            this.label_sBillID.Location = new System.Drawing.Point(19, 136);
+            this.label_sBillID.Name = "label_sBillID";
+            this.label_sBillID.Size = new System.Drawing.Size(80, 18);
+            this.label_sBillID.TabIndex = 119;
+            this.label_sBillID.Text = "鍗� 鎹� ID";
+            this.label_sBillID.Visible = false;
+            // 
+            // textBox_sBillID
+            // 
+            this.textBox_sBillID.BackColor = System.Drawing.SystemColors.ScrollBar;
+            this.textBox_sBillID.Enabled = false;
+            this.textBox_sBillID.Location = new System.Drawing.Point(121, 133);
+            this.textBox_sBillID.Name = "textBox_sBillID";
+            this.textBox_sBillID.Size = new System.Drawing.Size(280, 28);
+            this.textBox_sBillID.TabIndex = 120;
+            this.textBox_sBillID.Text = "0";
+            this.textBox_sBillID.Visible = false;
+            // 
+            // button_produceByHand
+            // 
+            this.button_produceByHand.Location = new System.Drawing.Point(591, 250);
+            this.button_produceByHand.Name = "button_produceByHand";
+            this.button_produceByHand.Size = new System.Drawing.Size(151, 35);
+            this.button_produceByHand.TabIndex = 118;
+            this.button_produceByHand.Text = "鏈弧鎵樼敓鎴�";
+            this.button_produceByHand.UseVisualStyleBackColor = true;
+            this.button_produceByHand.Click += new System.EventHandler(this.button_produceByHand_Click);
+            // 
+            // textBox_PackQty
+            // 
+            this.textBox_PackQty.BackColor = System.Drawing.SystemColors.Window;
+            this.textBox_PackQty.Location = new System.Drawing.Point(1058, 80);
+            this.textBox_PackQty.Name = "textBox_PackQty";
+            this.textBox_PackQty.Size = new System.Drawing.Size(49, 28);
+            this.textBox_PackQty.TabIndex = 117;
+            // 
+            // label6
+            // 
+            this.label6.AutoSize = true;
+            this.label6.Font = new System.Drawing.Font("瀹嬩綋", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label6.Location = new System.Drawing.Point(1026, 83);
+            this.label6.Name = "label6";
+            this.label6.Size = new System.Drawing.Size(22, 24);
+            this.label6.TabIndex = 116;
+            this.label6.Text = "/";
+            // 
+            // textBox_currentQty
+            // 
+            this.textBox_currentQty.BackColor = System.Drawing.SystemColors.ScrollBar;
+            this.textBox_currentQty.Enabled = false;
+            this.textBox_currentQty.Location = new System.Drawing.Point(971, 80);
+            this.textBox_currentQty.Name = "textBox_currentQty";
+            this.textBox_currentQty.Size = new System.Drawing.Size(49, 28);
+            this.textBox_currentQty.TabIndex = 115;
+            // 
+            // label_Pack
+            // 
+            this.label_Pack.AutoSize = true;
+            this.label_Pack.Location = new System.Drawing.Point(871, 86);
+            this.label_Pack.Name = "label_Pack";
+            this.label_Pack.Size = new System.Drawing.Size(80, 18);
+            this.label_Pack.TabIndex = 114;
+            this.label_Pack.Text = "缁�    鎵�";
+            // 
+            // label_HBarCode
+            // 
+            this.label_HBarCode.AutoSize = true;
+            this.label_HBarCode.Location = new System.Drawing.Point(450, 84);
+            this.label_HBarCode.Name = "label_HBarCode";
+            this.label_HBarCode.Size = new System.Drawing.Size(80, 18);
+            this.label_HBarCode.TabIndex = 99;
+            this.label_HBarCode.Text = "鎵� 鏉� 鐮�";
+            // 
+            // textBox_HBarCode
+            // 
+            this.textBox_HBarCode.BackColor = System.Drawing.SystemColors.Window;
+            this.textBox_HBarCode.Location = new System.Drawing.Point(552, 81);
+            this.textBox_HBarCode.Name = "textBox_HBarCode";
+            this.textBox_HBarCode.Size = new System.Drawing.Size(280, 28);
+            this.textBox_HBarCode.TabIndex = 100;
+            this.textBox_HBarCode.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox_HBarCode_KeyPress);
+            // 
+            // cmbHOrgID
+            // 
+            this.cmbHOrgID.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.cmbHOrgID.FormattingEnabled = true;
+            this.cmbHOrgID.Location = new System.Drawing.Point(121, 21);
+            this.cmbHOrgID.Margin = new System.Windows.Forms.Padding(4);
+            this.cmbHOrgID.Name = "cmbHOrgID";
+            this.cmbHOrgID.Size = new System.Drawing.Size(280, 26);
+            this.cmbHOrgID.TabIndex = 85;
+            // 
+            // label_HPackBarCode
+            // 
+            this.label_HPackBarCode.AutoSize = true;
+            this.label_HPackBarCode.Location = new System.Drawing.Point(20, 84);
+            this.label_HPackBarCode.Name = "label_HPackBarCode";
+            this.label_HPackBarCode.Size = new System.Drawing.Size(80, 18);
+            this.label_HPackBarCode.TabIndex = 0;
+            this.label_HPackBarCode.Text = "鎵樼洏鏉$爜";
+            // 
+            // button_stopListen
+            // 
+            this.button_stopListen.Location = new System.Drawing.Point(404, 250);
+            this.button_stopListen.Name = "button_stopListen";
+            this.button_stopListen.Size = new System.Drawing.Size(151, 35);
+            this.button_stopListen.TabIndex = 97;
+            this.button_stopListen.Text = "鍋滄缁勬墭";
+            this.button_stopListen.UseVisualStyleBackColor = true;
+            this.button_stopListen.Click += new System.EventHandler(this.button_stopListen_Click);
+            // 
+            // textBox_HPackBarCode
+            // 
+            this.textBox_HPackBarCode.BackColor = System.Drawing.SystemColors.ScrollBar;
+            this.textBox_HPackBarCode.Enabled = false;
+            this.textBox_HPackBarCode.Location = new System.Drawing.Point(122, 81);
+            this.textBox_HPackBarCode.Name = "textBox_HPackBarCode";
+            this.textBox_HPackBarCode.Size = new System.Drawing.Size(280, 28);
+            this.textBox_HPackBarCode.TabIndex = 43;
+            // 
+            // dtpHDate
+            // 
+            this.dtpHDate.Format = System.Windows.Forms.DateTimePickerFormat.Short;
+            this.dtpHDate.Location = new System.Drawing.Point(550, 21);
+            this.dtpHDate.Name = "dtpHDate";
+            this.dtpHDate.Size = new System.Drawing.Size(280, 28);
+            this.dtpHDate.TabIndex = 96;
+            // 
+            // label2
+            // 
+            this.label2.AutoSize = true;
+            this.label2.Location = new System.Drawing.Point(450, 27);
+            this.label2.Name = "label2";
+            this.label2.Size = new System.Drawing.Size(80, 18);
+            this.label2.TabIndex = 95;
+            this.label2.Text = "鏃�    鏈�";
+            // 
+            // button_startListen
+            // 
+            this.button_startListen.Location = new System.Drawing.Point(214, 250);
+            this.button_startListen.Name = "button_startListen";
+            this.button_startListen.Size = new System.Drawing.Size(133, 35);
+            this.button_startListen.TabIndex = 96;
+            this.button_startListen.Text = "鑷姩缁勬墭";
+            this.button_startListen.UseVisualStyleBackColor = true;
+            this.button_startListen.Click += new System.EventHandler(this.button_startListen_Click);
+            // 
+            // cmbHBarCodeType
+            // 
+            this.cmbHBarCodeType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.cmbHBarCodeType.FormattingEnabled = true;
+            this.cmbHBarCodeType.Location = new System.Drawing.Point(971, 24);
+            this.cmbHBarCodeType.Margin = new System.Windows.Forms.Padding(4);
+            this.cmbHBarCodeType.Name = "cmbHBarCodeType";
+            this.cmbHBarCodeType.Size = new System.Drawing.Size(280, 26);
+            this.cmbHBarCodeType.TabIndex = 81;
+            // 
+            // label1
+            // 
+            this.label1.AutoSize = true;
+            this.label1.ForeColor = System.Drawing.Color.Black;
+            this.label1.Location = new System.Drawing.Point(871, 30);
+            this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(80, 18);
+            this.label1.TabIndex = 80;
+            this.label1.Text = "鏉$爜绫诲瀷";
+            // 
+            // label3
+            // 
+            this.label3.AutoSize = true;
+            this.label3.ForeColor = System.Drawing.Color.Black;
+            this.label3.Location = new System.Drawing.Point(21, 27);
+            this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.label3.Name = "label3";
+            this.label3.Size = new System.Drawing.Size(80, 18);
+            this.label3.TabIndex = 84;
+            this.label3.Text = "缁�    缁�";
+            // 
+            // tabPage_ParamsInfo
+            // 
+            this.tabPage_ParamsInfo.BackColor = System.Drawing.Color.Lavender;
+            this.tabPage_ParamsInfo.Controls.Add(this.groupBox_ParamsInfo);
+            this.tabPage_ParamsInfo.Location = new System.Drawing.Point(4, 28);
+            this.tabPage_ParamsInfo.Name = "tabPage_ParamsInfo";
+            this.tabPage_ParamsInfo.Padding = new System.Windows.Forms.Padding(3);
+            this.tabPage_ParamsInfo.Size = new System.Drawing.Size(1385, 314);
+            this.tabPage_ParamsInfo.TabIndex = 1;
+            this.tabPage_ParamsInfo.Text = "閰嶇疆淇℃伅";
+            // 
+            // groupBox_ParamsInfo
+            // 
+            this.groupBox_ParamsInfo.Controls.Add(this.button_resetParams);
+            this.groupBox_ParamsInfo.Controls.Add(this.button_saveParams);
+            this.groupBox_ParamsInfo.Controls.Add(this.textBox_PrintModelParams);
+            this.groupBox_ParamsInfo.Controls.Add(this.label_PrintModelParams);
+            this.groupBox_ParamsInfo.Controls.Add(this.comboBox_PrinterParams);
+            this.groupBox_ParamsInfo.Controls.Add(this.label_PrinterParams);
+            this.groupBox_ParamsInfo.Controls.Add(this.comboBox_SourceNameParams);
+            this.groupBox_ParamsInfo.Controls.Add(this.label_SourceNameParams);
+            this.groupBox_ParamsInfo.Controls.Add(this.textBox_PortParams);
+            this.groupBox_ParamsInfo.Controls.Add(this.label_PortParams);
+            this.groupBox_ParamsInfo.Controls.Add(this.textBox_IPParams);
+            this.groupBox_ParamsInfo.Controls.Add(this.label_IPParams);
+            this.groupBox_ParamsInfo.Location = new System.Drawing.Point(6, 6);
+            this.groupBox_ParamsInfo.Name = "groupBox_ParamsInfo";
+            this.groupBox_ParamsInfo.Size = new System.Drawing.Size(1373, 302);
+            this.groupBox_ParamsInfo.TabIndex = 0;
+            this.groupBox_ParamsInfo.TabStop = false;
+            // 
+            // button_resetParams
+            // 
+            this.button_resetParams.Location = new System.Drawing.Point(590, 173);
+            this.button_resetParams.Name = "button_resetParams";
+            this.button_resetParams.Size = new System.Drawing.Size(89, 40);
+            this.button_resetParams.TabIndex = 105;
+            this.button_resetParams.Text = "閲�  缃�";
+            this.button_resetParams.UseVisualStyleBackColor = true;
+            // 
+            // button_saveParams
+            // 
+            this.button_saveParams.Location = new System.Drawing.Point(377, 173);
+            this.button_saveParams.Name = "button_saveParams";
+            this.button_saveParams.Size = new System.Drawing.Size(89, 40);
+            this.button_saveParams.TabIndex = 104;
+            this.button_saveParams.Text = "淇�  瀛�";
+            this.button_saveParams.UseVisualStyleBackColor = true;
+            this.button_saveParams.Click += new System.EventHandler(this.button_saveParams_Click);
+            // 
+            // textBox_PrintModelParams
+            // 
+            this.textBox_PrintModelParams.BackColor = System.Drawing.SystemColors.Window;
+            this.textBox_PrintModelParams.Location = new System.Drawing.Point(565, 34);
+            this.textBox_PrintModelParams.Name = "textBox_PrintModelParams";
+            this.textBox_PrintModelParams.Size = new System.Drawing.Size(280, 28);
+            this.textBox_PrintModelParams.TabIndex = 103;
+            // 
+            // label_PrintModelParams
+            // 
+            this.label_PrintModelParams.AutoSize = true;
+            this.label_PrintModelParams.Location = new System.Drawing.Point(463, 37);
+            this.label_PrintModelParams.Name = "label_PrintModelParams";
+            this.label_PrintModelParams.Size = new System.Drawing.Size(80, 18);
+            this.label_PrintModelParams.TabIndex = 102;
+            this.label_PrintModelParams.Text = "鎵撳嵃妯℃澘";
+            // 
+            // comboBox_PrinterParams
+            // 
+            this.comboBox_PrinterParams.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.comboBox_PrinterParams.FormattingEnabled = true;
+            this.comboBox_PrinterParams.Location = new System.Drawing.Point(124, 34);
+            this.comboBox_PrinterParams.Margin = new System.Windows.Forms.Padding(4);
+            this.comboBox_PrinterParams.Name = "comboBox_PrinterParams";
+            this.comboBox_PrinterParams.Size = new System.Drawing.Size(280, 26);
+            this.comboBox_PrinterParams.TabIndex = 101;
+            // 
+            // label_PrinterParams
+            // 
+            this.label_PrinterParams.AutoSize = true;
+            this.label_PrinterParams.ForeColor = System.Drawing.Color.Black;
+            this.label_PrinterParams.Location = new System.Drawing.Point(24, 40);
+            this.label_PrinterParams.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.label_PrinterParams.Name = "label_PrinterParams";
+            this.label_PrinterParams.Size = new System.Drawing.Size(80, 18);
+            this.label_PrinterParams.TabIndex = 100;
+            this.label_PrinterParams.Text = "鎵� 鍗� 鏈�";
+            // 
+            // comboBox_SourceNameParams
+            // 
+            this.comboBox_SourceNameParams.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.comboBox_SourceNameParams.FormattingEnabled = true;
+            this.comboBox_SourceNameParams.Location = new System.Drawing.Point(973, 31);
+            this.comboBox_SourceNameParams.Margin = new System.Windows.Forms.Padding(4);
+            this.comboBox_SourceNameParams.Name = "comboBox_SourceNameParams";
+            this.comboBox_SourceNameParams.Size = new System.Drawing.Size(280, 26);
+            this.comboBox_SourceNameParams.TabIndex = 99;
+            // 
+            // label_SourceNameParams
+            // 
+            this.label_SourceNameParams.AutoSize = true;
+            this.label_SourceNameParams.ForeColor = System.Drawing.Color.Black;
+            this.label_SourceNameParams.Location = new System.Drawing.Point(873, 37);
+            this.label_SourceNameParams.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.label_SourceNameParams.Name = "label_SourceNameParams";
+            this.label_SourceNameParams.Size = new System.Drawing.Size(80, 18);
+            this.label_SourceNameParams.TabIndex = 98;
+            this.label_SourceNameParams.Text = "浜�    绾�";
+            // 
+            // textBox_PortParams
+            // 
+            this.textBox_PortParams.BackColor = System.Drawing.SystemColors.Window;
+            this.textBox_PortParams.Location = new System.Drawing.Point(569, 97);
+            this.textBox_PortParams.Name = "textBox_PortParams";
+            this.textBox_PortParams.Size = new System.Drawing.Size(280, 28);
+            this.textBox_PortParams.TabIndex = 97;
+            this.textBox_PortParams.Visible = false;
+            // 
+            // label_PortParams
+            // 
+            this.label_PortParams.AutoSize = true;
+            this.label_PortParams.Location = new System.Drawing.Point(467, 100);
+            this.label_PortParams.Name = "label_PortParams";
+            this.label_PortParams.Size = new System.Drawing.Size(80, 18);
+            this.label_PortParams.TabIndex = 96;
+            this.label_PortParams.Text = "绔�    鍙�";
+            this.label_PortParams.Visible = false;
+            // 
+            // textBox_IPParams
+            // 
+            this.textBox_IPParams.BackColor = System.Drawing.SystemColors.Window;
+            this.textBox_IPParams.Location = new System.Drawing.Point(124, 94);
+            this.textBox_IPParams.Name = "textBox_IPParams";
+            this.textBox_IPParams.Size = new System.Drawing.Size(280, 28);
+            this.textBox_IPParams.TabIndex = 95;
+            this.textBox_IPParams.Visible = false;
+            // 
+            // label_IPParams
+            // 
+            this.label_IPParams.AutoSize = true;
+            this.label_IPParams.Location = new System.Drawing.Point(22, 97);
+            this.label_IPParams.Name = "label_IPParams";
+            this.label_IPParams.Size = new System.Drawing.Size(71, 18);
+            this.label_IPParams.TabIndex = 94;
+            this.label_IPParams.Text = "     IP";
+            this.label_IPParams.Visible = false;
+            // 
+            // timer1
+            // 
+            this.timer1.Enabled = true;
+            this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
+            // 
+            // tabControl1
+            // 
+            this.tabControl1.Controls.Add(this.tabPage1);
+            this.tabControl1.Controls.Add(this.tabPage2);
+            this.tabControl1.Location = new System.Drawing.Point(80, 444);
+            this.tabControl1.Name = "tabControl1";
+            this.tabControl1.SelectedIndex = 0;
+            this.tabControl1.Size = new System.Drawing.Size(1458, 383);
+            this.tabControl1.TabIndex = 40;
+            // 
+            // tabPage1
+            // 
+            this.tabPage1.BackColor = System.Drawing.Color.Lavender;
+            this.tabPage1.Controls.Add(this.grdMain);
+            this.tabPage1.Location = new System.Drawing.Point(4, 28);
+            this.tabPage1.Name = "tabPage1";
+            this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
+            this.tabPage1.Size = new System.Drawing.Size(1450, 351);
+            this.tabPage1.TabIndex = 0;
+            this.tabPage1.Text = "瀛愭潯鐮佸垪琛�";
+            // 
+            // grdMain
+            // 
+            this.grdMain.BackgroundColor = System.Drawing.SystemColors.GradientInactiveCaption;
+            this.grdMain.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            this.grdMain.Location = new System.Drawing.Point(0, 0);
+            this.grdMain.Name = "grdMain";
+            this.grdMain.RowHeadersWidth = 62;
+            this.grdMain.RowTemplate.Height = 30;
+            this.grdMain.Size = new System.Drawing.Size(1444, 345);
+            this.grdMain.TabIndex = 0;
+            // 
+            // tabPage2
+            // 
+            this.tabPage2.BackColor = System.Drawing.Color.Lavender;
+            this.tabPage2.Controls.Add(this.grdSub);
+            this.tabPage2.Location = new System.Drawing.Point(4, 28);
+            this.tabPage2.Name = "tabPage2";
+            this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
+            this.tabPage2.Size = new System.Drawing.Size(1450, 351);
+            this.tabPage2.TabIndex = 1;
+            this.tabPage2.Text = "鎵樼洏鏉$爜";
+            // 
+            // grdSub
+            // 
+            this.grdSub.BackgroundColor = System.Drawing.SystemColors.GradientInactiveCaption;
+            this.grdSub.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            this.grdSub.Location = new System.Drawing.Point(6, 6);
+            this.grdSub.Name = "grdSub";
+            this.grdSub.RowHeadersWidth = 62;
+            this.grdSub.RowTemplate.Height = 30;
+            this.grdSub.Size = new System.Drawing.Size(1438, 342);
+            this.grdSub.TabIndex = 1;
+            // 
+            // Tool
+            // 
+            this.Tool.AutoSize = false;
+            this.Tool.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("Tool.BackgroundImage")));
+            this.Tool.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
+            this.Tool.ImageScalingSize = new System.Drawing.Size(22, 22);
+            this.Tool.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+            this.toolStripSeparator9,
+            this.toolStripSeparator12,
+            this.mrlk,
+            this.toolStripSeparator11,
+            this.bclk,
+            this.toolStripSeparator10,
+            this.toolStripButton_Delete,
+            this.tc});
+            this.Tool.Location = new System.Drawing.Point(0, 0);
+            this.Tool.Name = "Tool";
+            this.Tool.Padding = new System.Windows.Forms.Padding(0);
+            this.Tool.Size = new System.Drawing.Size(1617, 75);
+            this.Tool.Stretch = true;
+            this.Tool.TabIndex = 41;
+            this.Tool.Text = "toolStrip1";
+            // 
+            // toolStripSeparator9
+            // 
+            this.toolStripSeparator9.Name = "toolStripSeparator9";
+            this.toolStripSeparator9.Size = new System.Drawing.Size(6, 75);
+            // 
+            // toolStripSeparator12
+            // 
+            this.toolStripSeparator12.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
+            this.toolStripSeparator12.Name = "toolStripSeparator12";
+            this.toolStripSeparator12.Size = new System.Drawing.Size(6, 75);
+            // 
+            // mrlk
+            // 
+            this.mrlk.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
+            this.mrlk.Image = ((System.Drawing.Image)(resources.GetObject("mrlk.Image")));
+            this.mrlk.ImageAlign = System.Drawing.ContentAlignment.BottomCenter;
+            this.mrlk.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
+            this.mrlk.ImageTransparentColor = System.Drawing.Color.White;
+            this.mrlk.Name = "mrlk";
+            this.mrlk.Size = new System.Drawing.Size(86, 70);
+            this.mrlk.Text = "榛樿鍒楀";
+            this.mrlk.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
+            this.mrlk.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
+            // 
+            // toolStripSeparator11
+            // 
+            this.toolStripSeparator11.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
+            this.toolStripSeparator11.Name = "toolStripSeparator11";
+            this.toolStripSeparator11.Size = new System.Drawing.Size(6, 75);
+            // 
+            // bclk
+            // 
+            this.bclk.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
+            this.bclk.Image = ((System.Drawing.Image)(resources.GetObject("bclk.Image")));
+            this.bclk.ImageAlign = System.Drawing.ContentAlignment.BottomCenter;
+            this.bclk.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
+            this.bclk.ImageTransparentColor = System.Drawing.Color.White;
+            this.bclk.Name = "bclk";
+            this.bclk.Size = new System.Drawing.Size(86, 70);
+            this.bclk.Text = "淇濆瓨鍒楀";
+            this.bclk.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
+            this.bclk.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
+            // 
+            // toolStripSeparator10
+            // 
+            this.toolStripSeparator10.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
+            this.toolStripSeparator10.Name = "toolStripSeparator10";
+            this.toolStripSeparator10.Size = new System.Drawing.Size(6, 75);
+            // 
+            // toolStripButton_Delete
+            // 
+            this.toolStripButton_Delete.AutoSize = false;
+            this.toolStripButton_Delete.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton_Delete.Image")));
+            this.toolStripButton_Delete.ImageAlign = System.Drawing.ContentAlignment.BottomCenter;
+            this.toolStripButton_Delete.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
+            this.toolStripButton_Delete.ImageTransparentColor = System.Drawing.Color.White;
+            this.toolStripButton_Delete.Name = "toolStripButton_Delete";
+            this.toolStripButton_Delete.Size = new System.Drawing.Size(35, 47);
+            this.toolStripButton_Delete.Text = "鍒犻櫎";
+            this.toolStripButton_Delete.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
+            this.toolStripButton_Delete.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
+            this.toolStripButton_Delete.Click += new System.EventHandler(this.toolStripButton_Delete_Click);
+            // 
+            // tc
+            // 
+            this.tc.AutoSize = false;
+            this.tc.Image = ((System.Drawing.Image)(resources.GetObject("tc.Image")));
+            this.tc.ImageAlign = System.Drawing.ContentAlignment.BottomCenter;
+            this.tc.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
+            this.tc.ImageTransparentColor = System.Drawing.Color.White;
+            this.tc.Name = "tc";
+            this.tc.Size = new System.Drawing.Size(35, 47);
+            this.tc.Text = "閫�鍑�";
+            this.tc.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
+            this.tc.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
+            this.tc.Click += new System.EventHandler(this.tc_Click);
+            // 
+            // Gy_PackBarCodeBill_automaticallyByPLC
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 18F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.BackColor = System.Drawing.Color.Lavender;
+            this.ClientSize = new System.Drawing.Size(1617, 956);
+            this.Controls.Add(this.Tool);
+            this.Controls.Add(this.tabControl1);
+            this.Controls.Add(this.tabControl_MainInfo);
+            this.Name = "Gy_PackBarCodeBill_automaticallyByPLC";
+            this.Text = "Gy_PackBarCodeBill_automaticallyByPLC";
+            this.Load += new System.EventHandler(this.Gy_PackBarCodeBill_automaticallyByPLC_Load);
+            this.tabControl_MainInfo.ResumeLayout(false);
+            this.tabPage_BillInfo.ResumeLayout(false);
+            this.gbUp.ResumeLayout(false);
+            this.gbUp.PerformLayout();
+            this.tabPage_ParamsInfo.ResumeLayout(false);
+            this.groupBox_ParamsInfo.ResumeLayout(false);
+            this.groupBox_ParamsInfo.PerformLayout();
+            this.tabControl1.ResumeLayout(false);
+            this.tabPage1.ResumeLayout(false);
+            ((System.ComponentModel.ISupportInitialize)(this.grdMain)).EndInit();
+            this.tabPage2.ResumeLayout(false);
+            ((System.ComponentModel.ISupportInitialize)(this.grdSub)).EndInit();
+            this.Tool.ResumeLayout(false);
+            this.Tool.PerformLayout();
+            this.ResumeLayout(false);
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.TabControl tabControl_MainInfo;
+        private System.Windows.Forms.TabPage tabPage_BillInfo;
+        private System.Windows.Forms.GroupBox gbUp;
+        private System.Windows.Forms.Label label_HBarCode;
+        private System.Windows.Forms.TextBox textBox_HBarCode;
+        private System.Windows.Forms.ComboBox cmbHOrgID;
+        private System.Windows.Forms.Label label_HPackBarCode;
+        private System.Windows.Forms.Button button_stopListen;
+        private System.Windows.Forms.TextBox textBox_HPackBarCode;
+        private System.Windows.Forms.DateTimePicker dtpHDate;
+        private System.Windows.Forms.Label label2;
+        private System.Windows.Forms.Button button_startListen;
+        private System.Windows.Forms.ComboBox cmbHBarCodeType;
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.Label label3;
+        private System.Windows.Forms.TabPage tabPage_ParamsInfo;
+        private System.Windows.Forms.GroupBox groupBox_ParamsInfo;
+        private System.Windows.Forms.Button button_resetParams;
+        private System.Windows.Forms.Button button_saveParams;
+        private System.Windows.Forms.TextBox textBox_PrintModelParams;
+        private System.Windows.Forms.Label label_PrintModelParams;
+        private System.Windows.Forms.ComboBox comboBox_PrinterParams;
+        private System.Windows.Forms.Label label_PrinterParams;
+        private System.Windows.Forms.ComboBox comboBox_SourceNameParams;
+        private System.Windows.Forms.Label label_SourceNameParams;
+        private System.Windows.Forms.TextBox textBox_PortParams;
+        private System.Windows.Forms.Label label_PortParams;
+        private System.Windows.Forms.TextBox textBox_IPParams;
+        private System.Windows.Forms.Label label_IPParams;
+        private System.Windows.Forms.TextBox textBox_PackQty;
+        private System.Windows.Forms.Label label6;
+        private System.Windows.Forms.TextBox textBox_currentQty;
+        private System.Windows.Forms.Label label_Pack;
+        private System.Windows.Forms.Timer timer1;
+        private System.Windows.Forms.Button button_produceByHand;
+        private System.Windows.Forms.Label label_sBillNo;
+        private System.Windows.Forms.TextBox textBox_sBillNo;
+        private System.Windows.Forms.Label label_sBillID;
+        private System.Windows.Forms.TextBox textBox_sBillID;
+        private System.Windows.Forms.TabControl tabControl1;
+        private System.Windows.Forms.TabPage tabPage1;
+        private System.Windows.Forms.DataGridView grdMain;
+        private System.Windows.Forms.TabPage tabPage2;
+        private System.Windows.Forms.DataGridView grdSub;
+        private System.Windows.Forms.ToolStrip Tool;
+        private System.Windows.Forms.ToolStripSeparator toolStripSeparator9;
+        private System.Windows.Forms.ToolStripSeparator toolStripSeparator12;
+        private System.Windows.Forms.ToolStripButton mrlk;
+        private System.Windows.Forms.ToolStripSeparator toolStripSeparator11;
+        private System.Windows.Forms.ToolStripButton bclk;
+        private System.Windows.Forms.ToolStripSeparator toolStripSeparator10;
+        private System.Windows.Forms.ToolStripButton tc;
+        private System.Windows.Forms.ToolStripButton toolStripButton_Delete;
+    }
+}
\ No newline at end of file
diff --git "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_PackBarCodeBill_automaticallyByPLC.cs" "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_PackBarCodeBill_automaticallyByPLC.cs"
new file mode 100644
index 0000000..7240c59
--- /dev/null
+++ "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_PackBarCodeBill_automaticallyByPLC.cs"
@@ -0,0 +1,1169 @@
+锘縰sing DBUtility;
+using gregn6Lib;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Drawing.Printing;
+using System.IO;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+
+namespace WarM.鏉$爜鎵撳嵃
+{
+    public partial class Gy_PackBarCodeBill_automaticallyByPLC : Form
+    {
+        public Gy_PackBarCodeBill_automaticallyByPLC()
+        {
+            InitializeComponent();
+        }
+        //宸ュ叿鍙橀噺
+        SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
+        public DBUtility.ClsPub.Enum_BillStatus BillStatus;
+
+        //鎵撳嵃鐩稿叧鍙橀噺
+        GridppReport Report;
+        public DAL.ClsGy_BarCodeBill_Ctl oBar = new DAL.ClsGy_BarCodeBill_Ctl();
+        public string UpdatePrintQtyCtl = "";   //鏉$爜鎵撳嵃娆℃暟鏇存柊
+
+        //鑷姩缁勬墭鏍囪
+        int isStartListen = 0;
+
+        //鐢熸垚鎵樼洏鏉$爜鐨勫彉閲�
+        int LSHlen = 6;             //娴佹按鍙烽暱搴�
+        int LSH = 0;                //娴佹按鍙�
+        string LSH2 = "";           //娴佹按鍙疯浆鎹㈡垚瀛楃
+        string TM = "";             //鏉$爜
+        string sTMNumber = "";      //鏉$爜鑷畾涔夊墠缂�
+        string sDate = "";          //鏃ユ湡
+        string sYear = "";          //骞�
+        string sYear2 = "";         //骞�
+        string sPeriod = "";        //鏈�
+        string sDay = "";           //鏃�
+        int HQty = 1;  //鏁伴噺
+        string HBarCodeType = "";   //鏉$爜绫诲瀷
+        string[] sSQLMul = new string[2];           //鐢ㄤ簬瀛樺偍鐢熸垚鎵樼洏鏉$爜鐨剆ql璇彞
+
+
+        //缁勬墭鎵�闇�鐨勫彉閲�
+        public Int64 HInterID = 0;      //鍐呯爜
+        public string HBillNo;                  //鏈崟鍗曞彿
+        public string HBillType = "3783";       //鍗曟嵁绫诲瀷
+        public string HBarCode_Pack;            //鎵樻潯鐮�
+        public const string ModRightName = "CE";
+        public const string ModRightNamePackUnion = ModRightName + "_PackUnion";
+
+        //
+        public Int64 HOrgID = -1;
+        public string HOrgNumber = "";
+
+        //瀹氫箟
+        public bool ExtMainBill = false;
+
+
+        public const int HBarCodeCol = 4;
+
+        //
+        public string ModName = "85";
+        public string ModCaption = "鎵樼洏鏉$爜鐢熸垚";
+        public bool BillChange;   //
+        public bool grdStatus;
+        public int selectRow = 0;
+
+        private void Gy_PackBarCodeBill_automaticallyByPLC_Load(object sender, EventArgs e)
+        {
+            //鍔犺浇缁勭粐淇℃伅
+            Sub_AddOrdList();
+        }
+        
+
+        private void timer1_Tick(object sender, EventArgs e)
+        {
+            timer1.Enabled = false;
+            if (BillStatus == DBUtility.ClsPub.Enum_BillStatus.BillStatus_View)
+            {
+                //this.Sub_ShowBill();
+            }
+            else
+            {
+                this.Sub_AddBill();
+            }
+        }
+        //鏂板鍗曟嵁
+        private void Sub_AddBill()
+        {
+            this.BillStatus = DBUtility.ClsPub.Enum_BillStatus.BillStatus_AddNew;
+            this.Sub_ClearBill();//娓呯┖鐣岄潰
+        }
+
+
+        //娓呯┖鐣岄潰
+        public void Sub_ClearBill()
+        {
+            ////琛ㄤ綋娓呯┖
+            //grdMain.Rows.Clear();
+            //grdSub.Rows.Clear();
+
+            //璁剧疆鏉$爜绫诲瀷 涓嬫媺鍒楄〃
+            cmbHBarCodeType.Items.Clear();
+            cmbHBarCodeType.Items.Add("鎵樼洏鏉$爜");
+
+            //璁剧疆缁勭粐 涓嬫媺鍒楄〃
+            Sub_AddOrdList();
+
+            //鍒濆鍖栨帶浠�
+            DBUtility.Xt_BaseBillFun.Sub_ClearBill(gbUp);
+
+            //璁剧疆缁勭粐 涓嬫媺鍒楄〃 骞惰缃��
+            DataSet Ds1 = oCn.RunProcReturn("select * from Xt_ORGANIZATIONS with(nolock) where HItemID=" + ClsPub.HOrgID, "Xt_ORGANIZATIONS", ref DBUtility.ClsPub.sExeReturnInfo);
+            if (Ds1.Tables[0].Rows.Count != 0)
+            {
+                cmbHOrgID.Text = DBUtility.ClsPub.isStrNull(Ds1.Tables[0].Rows[0]["HName"]);
+            }
+
+            //璁剧疆鎵撳嵃鏈� 涓嬫媺鍒楄〃
+            PrintDocument fPrintDocument = new PrintDocument();
+            string defaultPrinter = fPrintDocument.PrinterSettings.PrinterName;
+            comboBox_PrinterParams.Items.Clear();
+            for (int i = 0; i < PrinterSettings.InstalledPrinters.Count; i++)
+            {
+                string tmp = PrinterSettings.InstalledPrinters[i];
+                if (tmp == defaultPrinter)
+                {
+                    //tmp = tmp + "(榛樿)";
+                }
+                comboBox_PrinterParams.Items.Add(tmp);
+            }
+
+
+            //璁剧疆浜х嚎 涓嬫媺鍒楄〃
+            DataSet DsSource = oCn.RunProcReturn("select * from Gy_Source ", "Gy_Source");
+            comboBox_SourceNameParams.Items.Add("");
+            if (DsSource != null)
+            {
+                comboBox_SourceNameParams.Items.Clear();
+                comboBox_SourceNameParams.Items.Add("");
+                for (int i = 0; i < DsSource.Tables[0].Rows.Count; i++)
+                {
+                    comboBox_SourceNameParams.Items.Add(DsSource.Tables[0].Rows[i]["HName"]);
+                }
+            }
+
+            //璇诲彇閰嶇疆鏂囦欢璁剧疆閰嶇疆
+            readParams();
+
+            //璁剧疆鎵樼洏鏉$爜 鏉$爜缂栧彿
+            setPackBarCodeBillData();
+
+            ////璁剧疆宸ュ崟淇℃伅
+            //textBox_SourceName.Text = comboBox_SourceNameParams.Text;
+            ////璁剧疆鍒跺崟淇℃伅
+            //txtHMaker.Text = ClsPub.CurUserName;
+            //txtHMakeDate.Text = "";
+            //txtHChecker.Text = "";
+            //txtHCheckDate.Text = "";
+            //txtHCloseMan.Text = "";
+            //txtHCloseDate.Text = "";
+            //txtHDeleteMan.Text = "";
+            //txtHDeleteDate.Text = "";
+            //txtHUpDater.Text = "";
+            //txtHUpDateDate.Text = "";
+
+            ////璁剧疆瀛愯〃
+            //initGrid();
+            //grdList.DataSource = null;
+            //grdBillBarCodeList.DataSource = null;
+            //tabControl1.SelectedIndex = 3;
+
+            DBUtility.Xt_BaseBillFun.initGridList(grdMain, this.Name + "grdMain");
+            DBUtility.Xt_BaseBillFun.initGridList(grdSub, this.Name + "grdSub");
+
+            getDisplay_GrdMain();
+        }
+
+
+        #region 璁剧疆鐢熸垚鎵樼洏鏉$爜鐨勬暟鎹紝骞舵洿鏂拌〃澶寸殑鎵樼洏鏉$爜鐨勬潯鐮佺紪鍙�
+        //璁剧疆鐢熸垚鎵樼洏鏉$爜鐨勬暟鎹紝骞舵洿鏂拌〃澶寸殑鎵樼洏鏉$爜鐨勬潯鐮佺紪鍙�
+        private void setPackBarCodeBillData()
+        {
+            //鍒濆鍖栨暟鎹�
+            LSH = 0;                //娴佹按鍙�
+            LSH2 = "";           //娴佹按鍙疯浆鎹㈡垚瀛楃
+            TM = "";             //鏉$爜
+            sTMNumber = "";      //鏉$爜鑷畾涔夊墠缂�
+            sDate = "";          //鏃ユ湡
+            sYear = "";          //骞�
+            sYear2 = "";         //骞�
+            sPeriod = "";        //鏈�
+            sDay = "";           //鏃�
+            HQty = 1;  //鏁伴噺
+            HBarCodeType = "";   //鏉$爜绫诲瀷
+            sSQLMul = new string[2];           //鐢ㄤ簬瀛樺偍鐢熸垚鎵樼洏鏉$爜鐨剆ql璇彞
+
+
+            HBarCodeType = ClsPub.isStrNull(cmbHBarCodeType.Text);   //鏉$爜绫诲瀷
+
+            //鑾峰彇缁勭粐淇℃伅
+            HOrgID = get_ORGANIZATIONSIDByName(cmbHOrgID.Text);
+            HOrgNumber = get_ORGANIZATIONSNOByName(cmbHOrgID.Text);
+
+            //鑾峰彇褰撳墠浜х嚎
+            long HSourceID = 0;
+            string sql = "select * from Gy_Source where HName = '" + comboBox_SourceNameParams.Text + "'";
+            DataSet ds = oCn.RunProcReturn(sql, "Gy_Source");
+            if (ds != null && ds.Tables[0].Rows.Count > 0)
+            {
+                HSourceID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[0]["HItemID"].ToString());
+            }
+
+            //鑾峰彇缂撳瓨鍒楄〃涓� 褰撳墠浜х嚎 鎵樼洏鏉$爜 缂栧彿鏈�澶х殑 鏁版嵁
+            sql  = "select top(1) a.* from Sc_PackUnionBill_Temp as a inner join Gy_BarCodeBill as b on a.HBarCode = b.HBarCode where b.HSourceID = " + HSourceID + " and a.HStockorgID = " + HOrgID + " order by a.HBarCode_Pack desc";
+            ds = oCn.RunProcReturn(sql, "Sc_PackUnionBill_Temp");
+            if (ds != null && ds.Tables[0].Rows.Count > 0)                  //鑻ョ紦瀛樺垪琛ㄤ腑 褰撳墠浜х嚎 瀛樺湪 缁勬墭璁板綍锛屽垯鍒ゆ柇璇ユ墭鐩樻潯鐮佸湪鏉$爜妗f涓槸鍚﹀瓨鍦紝瀛樺湪鍒欏凡缁忔彁浜わ紝涓嶅瓨鍦ㄥ垯鏈彁浜ゃ��
+            {
+                string HBarCode_Pack = ds.Tables[0].Rows[0]["HBarCode_Pack"].ToString();
+                long HBillID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[0]["HInterID"].ToString());
+                string HBillNo = ds.Tables[0].Rows[0]["HBillNo"].ToString();
+
+                sql = "select * from Gy_BarCodeBill where HBarCode = '" + HBarCode_Pack + "' and HStockOrgID = " + HOrgID;
+                ds = oCn.RunProcReturn(sql, "Gy_BarCodeBill");
+                if(ds!=null && ds.Tables[0].Rows.Count > 0)                     //缁勬墭宸茬粡鎻愪氦锛岄噸鏂扮敓鎴� 鎵樼洏鏉$爜鍜屽崟鎹甀D銆佸崟鎹彿
+                {
+                    //鑾峰彇鏉$爜缂栧彿
+                    //鑾峰彇骞� 鏈� 鏃�
+                    sDate = dtpHDate.Value.ToShortDateString();
+                    sYear = ClsPub.isDate(sDate).Year.ToString().Substring(2, 2);
+                    sYear2 = ClsPub.isDate(sDate).Year.ToString();
+                    sPeriod = "0" + ClsPub.isDate(sDate).Month.ToString();
+                    sPeriod = sPeriod.Substring(sPeriod.Length - 2, 2);
+                    sDay = "0" + ClsPub.isDate(sDate).Day.ToString();
+                    sDay = sDay.Substring(sDay.Length - 2, 2);
+
+                    //鑾峰彇 鏉$爜鍓嶇紑 = 'TP' + 缁勭粐浠g爜 + 骞� + 鏈� + 鏃�
+                    sTMNumber = "TP" + HOrgNumber + sYear + sPeriod + sDay;
+                    //鑾峰彇娴佹按鍙�
+                    DataSet Ds = getDataSetBySQL("exec h_p_WMS_GetMaxNo  '" + sTMNumber + "'", "h_p_WMS_GetMaxNo", ref DBUtility.ClsPub.sExeReturnInfo);//鑾峰彇鏈�澶ф祦姘村彿
+                    LSH = ClsPub.isInt(Ds.Tables[0].Rows[0][0]);
+                    LSH = LSH + 1;
+                    LSH2 = LSH.ToString();
+                    while (LSH2.Length < LSHlen)  //濡傛灉娴佹按鍙峰皬浜�6浣嶆暟鍓嶉潰琛�0
+                    {
+                        LSH2 = "0" + LSH2;
+                    }
+                    //鏉$爜缂栧彿 = 鏉$爜鍓嶇紑 + 娴佹按鍙�
+                    TM = sTMNumber + LSH2;
+
+                    //鍒锋柊鏈�澶ф祦姘村彿
+                    sql = " exec h_p_WMS_SetMaxNo_QTY '" + sTMNumber + "'," + HQty.ToString() + " ";
+                    oCn.RunProc(sql);
+
+                    textBox_HPackBarCode.Text = TM;
+
+                    while (true)
+                    {
+                        textBox_sBillID.Text = DBUtility.ClsPub.CreateBillID(HBillType, ref DBUtility.ClsPub.sExeReturnInfo).ToString();
+                        DataSet getID = oCn.RunProcReturn("select * from Sc_PackUnionBill_Temp where HInterID =" + DBUtility.ClsPub.isLong(textBox_sBillID.Text), "Sc_PackUnionBill_Temp");
+                        if (getID != null && getID.Tables[0].Rows.Count == 0)
+                        {
+                            break;
+                        }
+                    }
+                    textBox_sBillNo.Text = DBUtility.ClsPub.CreateBillCode(HBillType, ref DBUtility.ClsPub.sExeReturnInfo, true);
+                }
+                else                                                             ////缁勬墭鏈彁浜わ紝鎵樼洏鏉$爜涓烘渶鏅氭湭缁勬墭鐨�
+                {
+                    textBox_HPackBarCode.Text = HBarCode_Pack;
+                    textBox_sBillID.Text = HBillID.ToString();
+                    textBox_sBillNo.Text = HBillNo;
+                }
+            }
+            else
+            {
+                //鑾峰彇鏉$爜缂栧彿
+                //鑾峰彇骞� 鏈� 鏃�
+                sDate = dtpHDate.Value.ToShortDateString();
+                sYear = ClsPub.isDate(sDate).Year.ToString().Substring(2, 2);
+                sYear2 = ClsPub.isDate(sDate).Year.ToString();
+                sPeriod = "0" + ClsPub.isDate(sDate).Month.ToString();
+                sPeriod = sPeriod.Substring(sPeriod.Length - 2, 2);
+                sDay = "0" + ClsPub.isDate(sDate).Day.ToString();
+                sDay = sDay.Substring(sDay.Length - 2, 2);
+
+                //鑾峰彇 鏉$爜鍓嶇紑 = 'TP' + 缁勭粐浠g爜 + 骞� + 鏈� + 鏃�
+                sTMNumber = "TP" + HOrgNumber + sYear + sPeriod + sDay;
+                //鑾峰彇娴佹按鍙�
+                DataSet Ds = getDataSetBySQL("exec h_p_WMS_GetMaxNo  '" + sTMNumber + "'", "h_p_WMS_GetMaxNo", ref DBUtility.ClsPub.sExeReturnInfo);//鑾峰彇鏈�澶ф祦姘村彿
+                LSH = ClsPub.isInt(Ds.Tables[0].Rows[0][0]);
+                LSH = LSH + 1;
+                LSH2 = LSH.ToString();
+                while (LSH2.Length < LSHlen)  //濡傛灉娴佹按鍙峰皬浜�6浣嶆暟鍓嶉潰琛�0
+                {
+                    LSH2 = "0" + LSH2;
+                }
+                //鏉$爜缂栧彿 = 鏉$爜鍓嶇紑 + 娴佹按鍙�
+                TM = sTMNumber + LSH2;
+
+                //鍒锋柊鏈�澶ф祦姘村彿
+                sql = " exec h_p_WMS_SetMaxNo_QTY '" + sTMNumber + "'," + HQty.ToString() + " ";
+                oCn.RunProc(sql);
+
+                textBox_HPackBarCode.Text = TM;
+
+                while (true)
+                {
+                    textBox_sBillID.Text = DBUtility.ClsPub.CreateBillID(HBillType, ref DBUtility.ClsPub.sExeReturnInfo).ToString();
+                    DataSet getID = oCn.RunProcReturn("select * from Sc_PackUnionBill_Temp where HInterID =" + DBUtility.ClsPub.isLong(textBox_sBillID.Text), "Sc_PackUnionBill_Temp");
+                    if (getID != null && getID.Tables[0].Rows.Count == 0)
+                    {
+                        break;
+                    }
+                }
+                textBox_sBillNo.Text = DBUtility.ClsPub.CreateBillCode(HBillType, ref DBUtility.ClsPub.sExeReturnInfo, true);
+            }
+        }
+
+        //鑾峰彇鏈�澶ф祦姘村彿
+        public DataSet getDataSetBySQL(string sSQL, string sTable, ref string sErrMsg)
+        {
+            SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
+            try
+            {
+                DataSet ds = oCn.RunProcReturn(sSQL, sTable);
+                return ds;
+            }
+            catch (Exception e)
+            {
+                sErrMsg = "鏌ヨ澶辫触锛�" + e.Message;
+                return null;
+            }
+        }
+        #endregion
+
+
+
+        #region 缁勬墭
+        //鏈弧鎵樼敓鎴� 鎸夐挳 鐐瑰嚮浜嬩欢
+        private void button_produceByHand_Click(object sender, EventArgs e)
+        {
+            if (HQty == 0)
+            {
+                MessageBox.Show("璇锋壂鐮佸瓙鏉$爜!");
+                return;
+            }
+            this.Sub_SaveBill();
+        }
+
+        //鑷姩缁勬墭 
+        private void button_startListen_Click(object sender, EventArgs e)
+        {
+            if (DBUtility.ClsPub.isLong(textBox_PackQty.Text) == 0)
+            {
+                MessageBox.Show("璇疯缃墭鏉$爜鐨勬渶灏忓寘瑁呮暟锛�");
+                return;
+            }
+
+            isStartListen = 1;
+
+            cmbHOrgID.Enabled = false;
+            dtpHDate.Enabled = false;
+            cmbHBarCodeType.Enabled = false;
+            textBox_PackQty.Enabled = false;
+            button_startListen.Enabled = false;
+            button_stopListen.Enabled = true;
+            button_produceByHand.Enabled = false;
+
+            comboBox_PrinterParams.Enabled = false;
+            textBox_PrintModelParams.Enabled = false;
+            comboBox_SourceNameParams.Enabled = false;
+
+            button_saveParams.Enabled = false;
+        }
+
+        //鍋滄缁勬墭
+        private void button_stopListen_Click(object sender, EventArgs e)
+        {
+            isStartListen = 0;
+
+            cmbHOrgID.Enabled = true;
+            dtpHDate.Enabled = true;
+            cmbHBarCodeType.Enabled = false;
+            textBox_PackQty.Enabled = true;
+            button_startListen.Enabled = true;
+            button_stopListen.Enabled = false;
+            button_produceByHand.Enabled = true;
+
+            comboBox_PrinterParams.Enabled = true;
+            textBox_PrintModelParams.Enabled = true;
+            comboBox_SourceNameParams.Enabled = true;
+
+            button_saveParams.Enabled = true;
+        }
+
+        //鑷姩缁勬墭
+        private void autoProducePackBarCode()
+        {
+            if(isStartListen == 1)
+            {
+                if(HQty == DBUtility.ClsPub.isDoule(textBox_PackQty.Text))
+                {
+                    this.Sub_SaveBill();
+
+                    //璁剧疆鎵撳嵃妯℃澘锛屾墦鍗�
+                    grdSub.Rows[0].Cells[0].Value = "*";
+                    Report = new GridppReport();
+                    Report.LoadFromFile(DBUtility.ClsPub.AppPath + @"\" + textBox_PrintModelParams.Text + ".grf");  //here .
+                    Report.BeforePostRecord += new _IGridppReportEvents_BeforePostRecordEventHandler(ReportBeforePostRecord);
+                    Report.FetchRecord += new _IGridppReportEvents_FetchRecordEventHandler(ReportFetchRecordByDataTable);
+                    Report.PrintEnd += new _IGridppReportEvents_PrintEndEventHandler(ReportPrintEnd);
+                    if (comboBox_PrinterParams.Text != "")
+                    {
+                        Report.Printer.PrinterName = comboBox_PrinterParams.Text.Replace("(榛樿)", "");
+                    }
+                    Report.Print(false);
+                }
+            }
+        }
+
+        #region 鐢熸垚鎵樼洏鏉$爜
+        //鐢熸垚鎵樼洏鏉$爜
+        private bool Sub_SaveBill()
+        {
+            //鑾峰彇缁勭粐淇℃伅
+            HOrgID = get_ORGANIZATIONSIDByName(cmbHOrgID.Text);
+            HOrgNumber = get_ORGANIZATIONSNOByName(cmbHOrgID.Text);
+
+            if (HOrgID == -1)
+            {
+                MessageBox.Show("閫夋嫨缁勭粐鏈夐敊璇紒");
+                return false;
+            }
+
+
+            if (!Sub_AllowSave())//鍗曟嵁瀹屾暣鎬у垽鏂�
+            {
+                return false;
+            }
+
+
+            SaveBarCode();
+            return true;
+        }
+
+        //鍗曟嵁瀹屾暣鎬у垽鏂�          鏈畬鎴�
+        private bool Sub_AllowSave()
+        {
+            ////蹇呰緭椤圭洰鏄惁涓虹┖
+            //if (ClsPub.isInt(txtHQty.Text) <= 0)
+            //{
+            //    MessageBox.Show("鏁伴噺蹇呴』涓哄ぇ浜� 0 鐨勬暣鏁帮紒");
+            //    return false;
+            //}
+
+            return true;
+        }
+
+        //鑾峰彇鐢熸垚鎵樼洏鏉$爜鐨勭浉鍏硈ql璇彞
+        private void SaveBarCode()
+        {
+            try
+            {
+                long HSourceID = 0;
+                string sql = "select * from Gy_Source where HName = '" + comboBox_SourceNameParams.Text + "' ";
+                DataSet ds = oCn.RunProcReturn(sql,"Gy_Source");
+                if(ds!=null && ds.Tables[0].Rows.Count > 0)
+                {
+                    HSourceID = DBUtility.ClsPub.isLong(ds.Tables[0].Rows[0]["HItemID"].ToString());
+                }
+
+                sSQLMul = new string[2];
+                sSQLMul[0] = "insert into Gy_BarCodeBill (HBarCode,HBarCodeType,HMaterID,HUnitID,HQty" +
+                                ",HBatchNo,HSupID,HGroupID,HMaker,HMakeDate,HPrintQty,HinitQty" +
+                                ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HEndQty " +
+                                ",HBarcodeQtys,HBarcodeNo,HDeptID,HWhID,HSPID,HRemark " +
+                                ",HCusID,HCusType,HEndDate,HWorkLineName,HJiaYe " +
+                                ",HPressModel,HCusModel,HMaterialModel,HColor,HBarCodeDate " +
+                                ",HLogo,HPackageSize,HMaterialJQty,HMaterialMQty,HCustomBatchNo " +
+                                ",HSTOCKORGID,HOWNERID,HBeginDate,HSeOrderBillNo,HGBBarCode " +
+                                ",POOrderBillNo,HInterID,HInitSourceEntryID,HBarCode_Pack " +
+                                ",HMaterName,HMaterModel,HPinfan,HAuxPropID,HMTONo " +
+                                ",HCustomQty1,HLayerNumber,HCusBarCode,HBarCodeStatus,HSourceID " +
+                                ") values ("
+                                + "'" + TM + "','" + HBarCodeType + "',0,0,1"
+                                + ",'',0,0,'" + ClsPub.CurUserName + "',getdate(),0,1"
+                                + ",0,0,'','',''"
+                                + "," + HQty.ToString() + ",1,0,0,0,''"
+                                + ",0,'','','',''"
+                                + ",'','','','','" + sDate + "'"
+                                + ",'','',0,0,''"
+                                + "," + HOrgID.ToString() + "," + HOrgID.ToString() + ",'','',''"
+                                + ",''," + HInterID.ToString() + ",0,'" + TM + "'"
+                                + ",'','','',0,''"
+                                + ",0,0,'',''," + HSourceID +
+                                ")";
+
+
+                sSQLMul[1] = " exec h_p_WMS_SetMaxNo_QTY '" + sTMNumber + "'," + HQty.ToString() + " ";
+
+                if (getRunProcByMul_Back(sSQLMul, ref DBUtility.ClsPub.sExeReturnInfo))
+                {
+                    //MessageBox.Show("鏉$爜鐢熸垚瀹屾瘯锛�");
+                    getDisplay_grdSub();
+
+                    setPackBarCodeBillData();
+
+                    getDisplay_GrdMain();
+                }
+                else
+                {
+                    //MessageBox.Show("鏉$爜鐢熸垚澶辫触锛�" + DBUtility.ClsPub.sExeReturnInfo);
+                }
+            }
+            catch (Exception e)
+            {
+                //MessageBox.Show("鏉$爜鐢熸垚澶辫触锛�" + e.Message);
+            }
+        }
+
+        //鎵ц鐢熸垚鎵樼洏鏉$爜鐩稿叧鐨剆ql璇彞
+        public bool getRunProcByMul_Back(string[] sSQL, ref string sErrMsg)
+        {
+            SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
+            try
+            {
+                oCn.BeginTran();
+                if (sSQL.Length > 0)
+                {
+                    for (int i = 0; i < 1; i++)
+                    {
+                        oCn.RunProc(sSQL[i]);
+                    }
+
+                    string sql = "exec h_p_WMS_PackBarCodeBill_Auto_getInfo '" + textBox_HPackBarCode.Text + "'";
+                    oCn.RunProc(sql);
+
+                    send();
+                }
+                else
+                {
+                    sErrMsg = "娌℃湁鏁版嵁锛�";
+                    oCn.Commit();
+                    return false;
+                }
+                oCn.Commit();
+                return true;
+            }
+            catch (Exception e)
+            {
+                sErrMsg = e.Message;
+                oCn.RollBack();
+                return false;
+            }
+        }
+        #endregion
+
+        #region  涓婁紶鍔熻兘鎺т欢
+        //涓婁紶鎸夐挳
+        private void send()
+        {
+            string err = "";
+            if (!CheckModRight(ModRightNamePackUnion, DBUtility.ClsPub.CurUserName, ref err))
+            {
+                MessageBox.Show(err);
+                return;
+            }
+            //if (MessageBox.Show("纭畾瑕佷笂浼狅紵", "鎻愮ず", MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Cancel)
+            //{
+            //    return;
+            //}
+            LoadData();
+        }
+
+        //鍒ゆ柇鐢ㄦ埛鏉冮檺
+        public bool CheckModRight(string ModRightName, string sUserName, ref string sErrMsg)
+        {
+            //鑾峰彇绯荤粺鍙傛暟
+            Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter();
+            if (oSystemParameter.ShowBill(ref sErrMsg) == false)
+            {
+                sErrMsg = "鑾峰彇绯荤粺鍙傛暟澶辫触锛� " + sErrMsg;
+                return false;
+            }
+            //鍒ゆ柇鏉冮檺
+            if (!DBUtility.ClsPub.Security_Log(ModRightName, 1, false, sUserName))
+            {
+                sErrMsg = "鎮ㄦ病鏈夋潈闄�,璇蜂笌绠$悊鍛樿仈绯伙紒";
+                return false;
+            }
+            return true;
+        }
+
+        //涓婁紶鍒版湇鍔″櫒
+        private void LoadData()
+        {
+            string err = "";
+            //鍒ゆ柇鏄惁鏁版嵁瀹屾暣 
+            if (AllowLoadData() == false)
+            {
+                return;
+            }
+            try
+            {
+                long sInterID = DBUtility.ClsPub.isLong(textBox_sBillID.Text);
+                string sBillNo = textBox_sBillNo.Text.Trim();
+                string sHBarCode_Pack = textBox_HPackBarCode.Text.Trim();
+                string sMaker = DBUtility.ClsPub.CurUserName;
+                long HOWNERID = DBUtility.ClsPub.HORGANIZATIONSID;
+
+
+                if (set_SavePackUnionBill_Add(sInterID, HBillType, sBillNo, sHBarCode_Pack, sMaker, HOWNERID, ref err))
+                {
+                    //MessageBox.Show("鐢熸垚鐢熶骇缁勬墭鍗曟垚鍔燂紒鍗曟嵁鍙蜂负锛�" + textBox_sBillNo.Text);
+                    BillStatus = DBUtility.ClsPub.Enum_BillStatus.BillStatus_AddNew;
+                }
+                else
+                {
+                    MessageBox.Show("鐢熸垚澶辫触锛佸師鍥�:" + err);
+                    return;
+                }
+            }
+            catch (Exception e)
+            {
+                MessageBox.Show("鍗曟嵁鍙凤細" + textBox_sBillID.Text + "锛屽崟鎹甀D锛�" + textBox_sBillID.Text + "锛涗笂浼犲け璐ワ紒" + e.Message);
+                return;
+            }
+        }
+
+        //涓婁紶鍓嶅垽鏂�
+        private bool AllowLoadData()
+        {
+            if (DBUtility.ClsPub.isLong(textBox_sBillID.Text) == 0)
+            {
+                MessageBox.Show("閿欒鐨勫崟鎹唴鐮侊紒");
+                return false;
+            }
+            if (textBox_sBillNo.Text.Trim() == "")
+            {
+                MessageBox.Show("閿欒鐨勫崟鎹彿锛�");
+                return false;
+            }
+            return true;
+        }
+
+        #region 涓婁紶鐢熸垚鐢熶骇缁勬墭鍗�
+        public bool set_SavePackUnionBill_Add(Int64 HInterID, string HBillType, string HBillNo, string HBarCode_Pack, string HMaker, Int64 HStockOrgID, ref string sErrMsg)
+        {
+            SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
+            try
+            {
+                oCn.BeginTran();
+                DataSet ds = oCn.RunProcReturn("exec h_p_Sc_PackUnionBill_Insert_New " + HInterID.ToString() + ",'" + HBillNo + "','" + HBillType + "','" + HBarCode_Pack + "','" + HMaker + "'," + HStockOrgID.ToString(), "h_p_Sc_PackUnionBill_Insert_New");
+                if (ds == null || ds.Tables[0].Rows.Count == 0)
+                {
+                    sErrMsg = "鍗曟嵁鍙凤細" + HBillNo + "锛屽崟鎹甀D锛�" + HInterID + "锛涗笂浼犲け璐ワ紒";
+                    oCn.RollBack();
+                    return false;
+                }
+                else
+                {
+                    if (DBUtility.ClsPub.isLong(ds.Tables[0].Rows[0][0]) == 1)
+                    {
+                        sErrMsg = "涓婁紶澶辫触锛屽崟鎹彿锛�" + HBillNo + "锛屽崟鎹甀D锛�" + HInterID + "锛�" + DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HRemark"]);
+                        oCn.RollBack();
+                        return false;
+                    }
+                    else
+                    {
+                        //sErrMsg = "鐢熸垚鐢熶骇缁勬墭鍗曟垚鍔燂紒鍗曟嵁鍙蜂负锛�" + HBillNo;
+                        oCn.Commit();
+                        return true;
+                    }
+                }
+            }
+            catch (Exception e)
+            {
+                sErrMsg = "鐢熸垚鐢熶骇缁勬墭鍗曞け璐ワ紒" + e.Message;
+                oCn.RollBack();
+                return false;
+            }
+        }
+
+        #endregion
+        #endregion
+        #endregion
+
+
+        #region  鎵弿瀛愭潯鐮�
+        //鎵弿鏉$爜
+        private void textBox_HBarCode_KeyPress(object sender, KeyPressEventArgs e)
+        {
+            try
+            {
+                if (e.KeyChar == (char)Keys.Return)
+                {
+                    SetBarCode_Webs();
+                    textBox_HBarCode.Text = "";
+                    textBox_HBarCode.Focus();
+
+                    autoProducePackBarCode();
+                }
+            }
+            catch (Exception e2)
+            {
+                //if (DBUtility.ClsPub.bSound)
+                //{
+                //    DBUtility.ClsPub.MessageBeep((int)DBUtility.ClsPub.BeepType.Warning);
+                //}
+                MessageBox.Show("鍙戠敓缃戠粶寮傚父锛岃绋嶅悗鍐嶈瘯锛�");
+            }
+        }
+        //灏嗘潯鐮佷俊鎭啓鍏ユ潯鐮佸嚭鍏ュ簱涓存椂琛�
+        private void SetBarCode_Webs()
+        {
+            string err = "";
+            try
+            {
+                long sInterID = DBUtility.ClsPub.isLong(textBox_sBillID.Text);
+                string sBillNo = textBox_sBillNo.Text.Trim();
+
+                string sHBarCode = textBox_HBarCode.Text.Trim();
+                string sHBarCode_Pack = textBox_HPackBarCode.Text.Trim();
+                string sMaker = DBUtility.ClsPub.CurUserName;
+                long HOWNERID = DBUtility.ClsPub.HORGANIZATIONSID;
+
+                
+                if (get_BarCode_PackUnionBill(sHBarCode, sInterID, HBillType, sBillNo, sHBarCode_Pack, sMaker, HOWNERID, ref err))
+                {
+                    getDisplay_GrdMain();
+                }
+                else
+                {
+                    MessageBox.Show(err);
+                    return;
+                }
+            }
+            catch (Exception e)
+            {
+                MessageBox.Show("鎵弿瀛愭潯鐮侊紝鍐欏叆涓存椂琛ㄤ俊鎭け璐ワ紒" + e.Message + err);
+            }
+        }
+
+        //鐢熶骇缁勬墭鍗曟ā鍧� 鎵弿鎵樻潯鐮佸搴斿崟涓潯鐮�
+        public bool get_BarCode_PackUnionBill(string HBarCode, Int64 HInterID, string HBillType, string HBillNo, string HBarCode_Pack, string HMaker, Int64 HStockOrgID, ref string sErrMsg)
+        {
+            //鑾峰彇绯荤粺鍙傛暟
+            Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter();
+            if (oSystemParameter.ShowBillByOrgID(HStockOrgID, ref sErrMsg) == false)
+            {
+                sErrMsg = "鑾峰彇绯荤粺鍙傛暟澶辫触锛� " + sErrMsg;
+                return false;
+            }
+
+            string sSourceBillTypeCtl = "Y";   //鏈叆搴撴潯鐮佽繘琛岀粍鎵樻椂锛岃繘琛屽悓婧愬崟绫诲瀷鎺у埗锛圷涓烘帶鍒讹級
+            string sSourceBillNoCtl = "Y";   //鏈叆搴撴潯鐮佽繘琛岀粍鎵樻椂锛岃繘琛屽悓婧愬崟鎺у埗锛圷涓烘帶鍒讹級
+            sSourceBillTypeCtl = oSystemParameter.omodel.Sc_PackUnionBill_SourceBillTypeCtl;
+            sSourceBillNoCtl = oSystemParameter.omodel.Sc_PackUnionBill_SourceBillNoCtl;
+
+            SQLHelper.ClsCN oCN = new SQLHelper.ClsCN();
+            DataSet ds = oCN.RunProcReturn("exec h_p_WMS_AddBarCode_PackUnionBill '" + HBarCode + "'," + HInterID.ToString() + ",'" + HBillNo + "','" + HBillType + "','" + HBarCode_Pack + "','" + sSourceBillTypeCtl + "','" + sSourceBillNoCtl + "','" + HMaker + "'," + HOrgID.ToString(), "h_p_WMS_AddBarCode_PackUnionBill");
+            if (ds == null || ds.Tables[0].Rows.Count == 0)
+            {
+                sErrMsg = "鍗曟嵁鍙凤細" + HBillNo + "锛屽崟鎹甀D锛�" + HInterID + "锛涙壂鎻忔潯鐮佸垽鏂け璐ワ紒";
+                return false;
+            }
+            else
+            {
+                if (DBUtility.ClsPub.isLong(ds.Tables[0].Rows[0][0]) == 0)
+                {
+                    return true;
+                }
+                else
+                {
+                    sErrMsg = "鍗曟嵁鍙凤細" + HBillNo + "锛屽崟鎹甀D锛�" + HInterID + "锛�" + DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HRemark"]);
+                    return false;
+                }
+            }
+        }
+        #endregion
+
+
+        #region 杩斿洖缁勬墭鍒楄〃淇℃伅
+        //鑾峰彇grdMain鏁版嵁
+        private void getDisplay_GrdMain()
+        {
+            string err = "";
+            try
+            {
+                DataSet oDs;
+                if (Convert.ToInt64(textBox_sBillID.Text) == 0)
+                {
+                    MessageBox.Show("閿欒鐨勫崟鎹甶d");
+                    return;
+                }
+
+                oDs = GetBillEntry_Tmp_Pack(Convert.ToInt64(textBox_sBillID.Text), textBox_sBillNo.Text.Trim(), HBillType, ref err);
+                if (oDs == null)
+                {
+                    MessageBox.Show(err);
+                    return;
+                }
+
+                grdMain.DataSource = oDs.Tables[0].DefaultView;
+
+                HQty = oDs.Tables[0].Rows.Count;
+
+                textBox_currentQty.Text = HQty.ToString();
+            }
+            catch (Exception e)
+            {
+                MessageBox.Show("鑾峰彇琛ㄤ綋淇℃伅澶辫触!" + e.Message + err);
+            }
+        }
+
+        //杩斿洖缁勬墭鍒楄〃淇℃伅
+        public DataSet GetBillEntry_Tmp_Pack(Int64 HInterID, string HBillNo, string HBillType, ref string sErrMsg)
+        {
+            string HPackBarCode = textBox_HPackBarCode.Text;
+
+            SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
+            DataSet DS = oCn.RunProcReturn("exec h_p_WMS_BillEntryTmp_Pack_SWELLAuto " + HInterID.ToString() + ",'" + HBillType + "','" + HPackBarCode + "'", "h_p_WMS_BillEntryTmp_Pack");
+            return DS;
+        }
+        #endregion
+
+        #region 杩斿洖 闇�瑕佹墦鍗扮殑 鎵樼洏鏉$爜
+        private void getDisplay_grdSub()
+        {
+            string err = "";
+            try
+            {
+                DataSet oDs;
+                //string sql = "select * from h_v_IF_BarCodeBillList where 鏉$爜缂栧彿 = '" + textBox_HPackBarCode.Text + "' and HStockOrgID = " + HOrgID;
+                string sql = "select * from h_v_IF_BarCodeBillList where 鏉$爜缂栧彿 = '" + textBox_HPackBarCode.Text + "'";
+                oDs = oCn.RunProcReturn(sql, "Gy_BarCodeBill");
+                if (oDs == null)
+                {
+                    MessageBox.Show("鑾峰彇琛ㄤ綋淇℃伅澶辫触");
+                    return;
+                }
+
+                grdSub.DataSource = oDs.Tables[0].DefaultView;
+            }
+            catch (Exception e)
+            {
+                MessageBox.Show("鑾峰彇琛ㄤ綋淇℃伅澶辫触!" + e.Message + err);
+            }
+        }
+        #endregion
+
+        
+
+        #region 閰嶇疆淇℃伅
+        //淇濆瓨鎸夐挳 鐐瑰嚮浜嬩欢
+        private void button_saveParams_Click(object sender, EventArgs e)
+        {
+            saveParams();
+        }
+
+        #region 閰嶇疆淇℃伅鍐欏叆涓庤鍙�
+        //鍐欏叆閰嶇疆鍙傛暟
+        private void saveParams()
+        {
+            //鍒ゆ柇鏂囦欢鏄惁瀛樺湪   
+            if (!File.Exists(Application.StartupPath + "//Gy_PackBarCodeBill_automaticallyByPLC.txt"))
+            {
+                FileStream fs1 = new FileStream(Application.StartupPath + "//Gy_PackBarCodeBill_automaticallyByPLC.txt", FileMode.Create, FileAccess.Write);//鍒涘缓鍐欏叆鏂囦欢    
+                StreamWriter sw = new StreamWriter(fs1);
+                sw.WriteLine(textBox_IPParams.Text);//寮�濮嬪啓鍏ュ��   
+                sw.WriteLine(textBox_PortParams.Text);
+
+                sw.WriteLine(comboBox_SourceNameParams.Text);
+
+                sw.WriteLine(comboBox_PrinterParams.Text.Replace("(榛樿)", ""));
+                sw.WriteLine(textBox_PrintModelParams.Text);
+                sw.Close();
+                fs1.Close();
+            }
+            else
+            {
+                FileStream fs1 = new FileStream(Application.StartupPath + "//Gy_PackBarCodeBill_automaticallyByPLC.txt", FileMode.Create, FileAccess.Write);//鍒涘缓鍐欏叆鏂囦欢    
+                StreamWriter sw = new StreamWriter(fs1);
+                sw.WriteLine(textBox_IPParams.Text);//寮�濮嬪啓鍏ュ��   
+                sw.WriteLine(textBox_PortParams.Text);
+
+                sw.WriteLine(comboBox_SourceNameParams.Text);
+
+                sw.WriteLine(comboBox_PrinterParams.Text);
+                sw.WriteLine(textBox_PrintModelParams.Text);
+                sw.Close();
+                fs1.Close();
+            }
+
+            MessageBox.Show("淇濆瓨鎴愬姛锛�");
+        }
+
+        //璇诲彇閰嶇疆鏂囦欢
+        private void readParams()
+        {
+            if (File.Exists(Application.StartupPath + "//Gy_PackBarCodeBill_automaticallyByPLC.txt"))
+            {
+                //璇诲彇鏂囦欢鍊煎苟鏄剧ず鍒扮獥浣�    
+                FileStream fs = new FileStream(Application.StartupPath + "//Gy_PackBarCodeBill_automaticallyByPLC.txt", FileMode.Open, FileAccess.ReadWrite);
+                StreamReader sr = new StreamReader(fs);
+                string line = sr.ReadLine();
+                int curLine = 0;
+                while (line != null)
+                {
+                    if (++curLine == 1)
+                    {
+                        textBox_IPParams.Text = line;
+                    }
+                    else if (curLine == 2)
+                    {
+                        textBox_PortParams.Text = line;
+                    }
+                    else if (curLine == 3)
+                    {
+                        for (int i = 0; i < comboBox_SourceNameParams.Items.Count; i++)
+                        {
+                            if (comboBox_SourceNameParams.Items[i].ToString() == line)
+                            {
+                                comboBox_SourceNameParams.Text = line;
+                            }
+                        }
+
+                        if (comboBox_SourceNameParams.Text == "")
+                        {
+                            comboBox_SourceNameParams.Items.Add(line);
+                            comboBox_SourceNameParams.Text = line;
+                        }
+                    }
+                    else if (curLine == 4)
+                    {
+                        for (int i = 0; i < comboBox_PrinterParams.Items.Count; i++)
+                        {
+                            if (comboBox_PrinterParams.Items[i].ToString() == line)
+                            {
+                                comboBox_PrinterParams.Text = line;
+                            }
+                        }
+                    }
+                    else if (curLine == 5)
+                    {
+                        textBox_PrintModelParams.Text = line;
+                    }
+                    else
+                    {
+
+                    }
+                    line = sr.ReadLine();
+                }
+                sr.Close();
+                fs.Close();
+            }
+        }
+        #endregion
+        #endregion
+
+        #region 閫氱敤鏂规硶
+        //鏍规嵁缁勭粐鍚嶈幏鍙栫粍缁嘔D
+        public Int64 get_ORGANIZATIONSIDByName(string HDataCenterName)
+        {
+            try
+            {
+                SQLHelper.ClsCN oCN = new SQLHelper.ClsCN();
+                DataSet ds = oCN.RunProcReturn("select HItemID from h_v_CLD_ORGANIZATIONSList where Hname='" + HDataCenterName + "'", "h_v_CLD_ORGANIZATIONSList");
+                if (ds == null || ds.Tables[0].Rows.Count == 0)
+                {
+                    return -1;
+                }
+                else
+                {
+                    return DBUtility.ClsPub.isLong(ds.Tables[0].Rows[0]["HItemID"]);
+                }
+            }
+            catch (Exception e)
+            {
+                return -1;
+            }
+        }
+
+        //鏍规嵁缁勭粐鍚嶈幏鍙栫粍缁囦唬鐮�
+        public string get_ORGANIZATIONSNOByName(string HDataCenterName)
+        {
+            try
+            {
+                SQLHelper.ClsCN oCN = new SQLHelper.ClsCN();
+                DataSet ds = oCN.RunProcReturn("select HNumber from h_v_CLD_ORGANIZATIONSList where Hname='" + HDataCenterName + "'", "h_v_CLD_ORGANIZATIONSList");
+                if (ds == null || ds.Tables[0].Rows.Count == 0)
+                {
+                    return "";
+                }
+                else
+                {
+                    return DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[0]["HNumber"]);
+                }
+            }
+            catch (Exception e)
+            {
+                return "";
+            }
+        }
+
+        //鍔犺浇缁勭粐淇℃伅
+        private void Sub_AddOrdList()
+        {
+            DataSet ds;
+            DAL.ClsGy_ORGANIZATIONS_View oClsGy_ORGANIZATIONS_View = new DAL.ClsGy_ORGANIZATIONS_View();
+            ds = oClsGy_ORGANIZATIONS_View.GetList();
+            if (ds == null || ds.Tables[0].Rows.Count == 0)
+            {
+                MessageBox.Show("鑾峰彇缁勭粐澶辫触");
+                return;
+            }
+            cmbHOrgID.Items.Clear();
+            for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
+            {
+                cmbHOrgID.Items.Add(DBUtility.ClsPub.isStrNull(ds.Tables[0].Rows[i]["HName"]));
+            }
+        }
+        #endregion
+
+        #region 鎵撳嵃鐩稿叧
+        //鎵撳嵃缁撴潫鍚庡洖濉潯鐮佹墦鍗版鏁�
+        private void ReportPrintEnd()
+        {
+            if (UpdatePrintQtyCtl == "Y")
+            {
+                oBar.Set_UpdatePrintQty_SD(HInterID);
+            }
+        }
+
+        //濉叆鍗曟嵁琛ㄥご淇℃伅
+        private void ReportBeforePostRecord()// 
+        {
+            try
+            {
+                //Report.FieldByName("鐗╂枡浠g爜").AsString = ClsPub.isStrNull(grdSub.Rows[CurRows].Cells[HMaterNumber2Col].Value);
+                //Report.FieldByName("鐗╂枡鍚嶇О").AsString = ClsPub.isStrNull(grdSub.Rows[CurRows].Cells[HMaterName2Col].Value);
+                //Report.FieldByName("瑙勬牸鍨嬪彿").AsString = ClsPub.isStrNull(grdSub.Rows[CurRows].Cells[HMaterModel2Col].Value);
+                ////Report.FieldByName("鑷畾涔夎鏍�").AsString = ClsPub.isStrNull(grdSub.Rows[CurRows].Cells[HModel2Col].Value);
+                //Report.FieldByName("鏉$爜缂栧彿").AsString = ClsPub.isStrNull(grdSub.Rows[CurRows].Cells[HTMCol].Value);
+                //Report.FieldByName("鏁伴噺").AsString = ClsPub.isStrNull(grdSub.Rows[CurRows].Cells[HQty2Col].Value);
+                //Report.FieldByName("婧愬崟鍗曞彿").AsString = ClsPub.isStrNull(grdSub.Rows[CurRows].Cells[HSourceBillNoCol].Value);
+                //Report.FieldByName("閿�鍞鍗曞彿").AsString = ClsPub.isStrNull(grdSub.Rows[CurRows].Cells[HSeOrderBillNo2Col].Value);
+                //Report.FieldByName("鐢熶骇杞﹂棿").AsString = ClsPub.isStrNull(grdSub.Rows[CurRows].Cells[HDeptName2Col].Value);
+                //Report.FieldByName("澶囨敞").AsString = ClsPub.isStrNull(grdSub.Rows[CurRows].Cells[HRemark2Col].Value);
+            }
+            catch (Exception e)
+            {
+                MessageBox.Show("鎵撳嵃澶辫触!琛ㄥご锛�" + e.Message);
+            }
+        }
+
+        //濉叆鍗曟嵁琛ㄤ綋淇℃伅
+        private void ReportFetchRecordByDataTable()
+        {
+            try
+            {
+                DataTable ds = new DataTable();
+                BLL.Utility.FillRecordToReport_Sel(Report, grdSub, ds, Fun_GetCol("閫夋嫨"));
+            }
+            catch (Exception e)
+            {
+                MessageBox.Show("鎵撳嵃澶辫触!琛ㄤ綋锛�" + e.Message);
+            }
+        }
+
+        private Int32 Fun_GetCol(string sCol)
+        {
+            return DBUtility.Xt_BaseBillFun.Fun_GetCol(sCol, grdSub);
+        }
+        #endregion
+
+        #region 宸ュ叿鏍� 鐐瑰嚮浜嬩欢
+        //閫�鍑�
+        private void tc_Click(object sender, EventArgs e)
+        {
+            this.Close();
+        }
+
+        //鍒犻櫎 瀛愭潯鐮佽褰�
+        private void toolStripButton_Delete_Click(object sender, EventArgs e)
+        {
+            deleteGrdMainNote();
+        }
+        #endregion
+
+        #region  鍒犻櫎鍔熻兘鎺т欢
+
+        //鍒犻櫎鎸夐挳
+        private void deleteGrdMainNote()
+        {
+            if (grdMain.SelectedRows != null && grdMain.SelectedRows.Count==1)
+            {
+                if (MessageBox.Show("纭畾瑕佸垹闄わ紵", "鎻愮ず", MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Cancel)
+                {
+                    return;
+                }
+                if (MessageBox.Show("鍒犻櫎鍚庡皢涓嶅彲鎭㈠锛岀‘瀹氳缁х画鎿嶄綔锛�", "鎻愮ず", MessageBoxButtons.OKCancel, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Cancel)
+                {
+                    return;
+                }
+                Delete();
+            }
+            else
+            {
+                MessageBox.Show("璇烽�夋嫨涓�琛岃褰曪紝杩涜鍒犻櫎锛�");
+                return;
+            }
+        }
+
+        //鍒犻櫎琛ㄤ綋璁板綍
+        /// <summary>
+        /// 鍒犻櫎琛ㄤ綋璁板綍
+        /// </summary>
+        private void Delete()
+        {
+            string err = "";
+
+            long HInterID = DBUtility.ClsPub.isLong(textBox_sBillID.Text);
+            string HBarCode = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[0].Cells[HBarCodeCol].Value);
+            //鍒犻櫎鍑哄叆搴撲复鏃惰〃璁板綍
+            if (set_DelPackUnionBill_Temp_Pack(HInterID, HBarCode, HBillType, ref err))
+            {
+                MessageBox.Show("鍒犻櫎鎴愬姛锛�");
+                getDisplay_GrdMain();
+            }
+            else
+            {
+                MessageBox.Show("鍒犻櫎瀛愭潯鐮佽褰曞け璐ワ紒" + err);
+                return;
+            }
+        }
+
+        //鍒犻櫎缂撳瓨鍒楄〃涓潯鐮佺殑璁板綍
+        public bool set_DelPackUnionBill_Temp_Pack(Int64 HInterID, string HBarCode, string HBillType, ref string sErrMsg)
+        {
+            SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
+            try
+            {
+                oCn.RunProc("Delete from Sc_PackUnionBill_Temp where HInterID=" + HInterID.ToString() + " and HBillType='" + HBillType + "' and HBarCode='" + HBarCode + "' and HPieceQty=1", ref DBUtility.ClsPub.sExeReturnInfo);
+                return true;
+            }
+            catch (Exception e)
+            {
+                sErrMsg = "鍒犻櫎缁勬墭璁板綍澶辫触锛�" + e.Message;
+                return false;
+            }
+        }
+
+        #endregion
+
+        
+    }
+}
+
+
+
diff --git "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_PackBarCodeBill_automaticallyByPLC.resx" "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_PackBarCodeBill_automaticallyByPLC.resx"
new file mode 100644
index 0000000..3faa969
--- /dev/null
+++ "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_PackBarCodeBill_automaticallyByPLC.resx"
@@ -0,0 +1,413 @@
+锘�<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>17, 17</value>
+  </metadata>
+  <metadata name="Tool.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>118, 17</value>
+  </metadata>
+  <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
+  <data name="Tool.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <value>
+        /9j/4AAQSkZJRgABAQEASABIAAD/4QSARXhpZgAATU0AKgAAAAgABwESAAMAAAABAAEAAAEaAAUAAAAB
+        AAAAYgEbAAUAAAABAAAAagEoAAMAAAABAAIAAAExAAIAAAAUAAAAcgEyAAIAAAAUAAAAhodpAAQAAAAB
+        AAAAmgAAAMYASAAAAAEAAABIAAAAAQAAQWRvYmUgUGhvdG9zaG9wIDcuMAAyMDA0OjEwOjE0IDE1OjUw
+        OjUwAAADoAEAAwAAAAH//wAAoAIABAAAAAEAAAQAoAMABAAAAAEAAABoAAAAAAAAAAYBAwADAAAAAQAG
+        AAABGgAFAAAAAQAAARQBGwAFAAAAAQAAARwBKAADAAAAAQACAAACAQAEAAAAAQAAASQCAgAEAAAAAQAA
+        A1QAAAAAAAAASAAAAAEAAABIAAAAAf/Y/9sAQwAIBgYHBgUIBwcHCQkICgwUDQwLCwwZEhMPFB0aHx4d
+        GhwcICQuJyAiLCMcHCg3KSwwMTQ0NB8nOT04MjwuMzQy/9sAQwEJCQkMCwwYDQ0YMiEcITIyMjIyMjIy
+        MjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIy/8AAEQgABgCgAwEhAAIRAQMR
+        Af/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAE
+        EQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElK
+        U1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrC
+        w8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAAB
+        AgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkj
+        M1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5
+        eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm
+        5+jp6vLz9PX29/j5+v/aAAwDAQACEQMRAD8A9P8A+EAsf+fy4o/4QCy/5/Liuv6z/dOf2HmH/CAWX/P5
+        cUf8IBZf8/lz+lH1n+6HsPMP+EAsv+fy5/Oj/hALL/n8uKPrP90PYeYf8IBZf8/lxR/wgFl/z+XFH1n+
+        6HsPMP8AhALL/n8uKP8AhX9j/wA/lxR9Z/uh7B9w/wCFf2P/AD+XFH/CAWP/AD+XFH1n+6HsH3D/AIQC
+        x/5/Lij/AIQCy/5/Lij6z/dD2HmH/CAWX/P5cUf8K/sf+fy4o+tf3Q9h5h/wgFj/AM/lxR/wgFl/z+XF
+        H1r+6HsPMP8AhALL/n8uKP8AhALL/n8uKPrX90PYeZ//2f/bAEMAAgEBAgEBAgICAgICAgIDBQMDAwMD
+        BgQEAwUHBgcHBwYHBwgJCwkICAoIBwcKDQoKCwwMDAwHCQ4PDQwOCwwMDP/bAEMBAgICAwMDBgMDBgwI
+        BwgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDP/AABEIACoE
+        AAMBIgACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgv/xAC1EAACAQMDAgQDBQUE
+        BAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygpKjQ1Njc4
+        OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmq
+        srO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4eLj5OXm5+jp6vHy8/T19vf4+fr/xAAfAQADAQEBAQEB
+        AQEBAAAAAAAAAQIDBAUGBwgJCgv/xAC1EQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIy
+        gQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZn
+        aGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV
+        1tfY2dri4+Tl5ufo6ery8/T19vf4+fr/2gAMAwEAAhEDEQA/APWB+2p4nH/MN0Qf9w20/wDjNL/w2t4o
+        P/MP0X/wW2n/AMZri/8AhDh6Uf8ACHD0r9f/ALPp/wAp+cfXJ9zsj+2p4oOQdO0U/wDcMtP/AIzR/wAN
+        peJ++m6KP+4Zaf8AxmuN/wCEOH93FH/CHD0prL4fyh9cn/Mdl/w2j4m/6B2if+Cy0/8AjNH/AA2n4mXr
+        puiEf9g20/8AjNcb/wAIcPSj/hDh/dNL+z6f8qBYyf8AMdkf21fEv/QN0T/wW2n/AMZo/wCG1fEv/QN0
+        T/wW2f8A8ZrjP+ENH9yl/wCEOA6KRR9Qp/yj+uz/AJmdl/w2r4l/6Buif+C2z/8AjNH/AA2r4l/6Buif
+        +C2z/wDjNcb/AMIcP7po/wCEOH900/7Ph/KL65P+Y7Mftq+JMf8AIO0Uf9w20/8AjNB/bU8S5407RD/3
+        DbT/AOM1xZ8HqOq0f8Iiv900v7Pp/wAofXZ/zHZf8NqeJe+m6L/4LbT/AOM0q/to+Je+naKP+4baf/Ga
+        4z/hEV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AGaP+G1vE3bTtFx/2DbP/AOM1xn/CID+6fypR4OB/hIoWX0/5RfW5
+        92dkf21fEx66fog/7hln/wDGaP8AhtbxP/0D9E/8Ftp/8Zrjf+EOHpS/8Id/s/pQsvp/yoFjJ/zHY/8A
+        Da3if/oH6J/4LbT/AOM0f8NqeJv+gfon/gttP/jNcePBuf4QPwo/4Qz2H5Uf2fT/AJR/XZ/zHXn9tXxL
+        307RSf8AsG2n/wAZpR+2r4k/6B2ig/8AYNtP/jNcefBn+zTf+EOHpQsvp/yh9cqfzHZn9tPxKOPsGi/+
+        C20/+M0H9tLxKQSLDRCR2/s20/8AjNcZ/wAIcPSl/wCEOH90flR/Z9P+UX1up/Mzsf8AhtTxN/0DtD/8
+        Flp/8Zo/4bU8S99O0Q/TTbT/AOM1x3/CHj+6Pypf+ENH90/lQsvp/wAoLGVP5mdgf21PEo/5h2i/+C20
+        /wDjNJ/w2r4m3Z/s7RT9NMtP/jNcefBo/un8qP8AhDB/dYfhR/Z9P+UPrlT+Y7H/AIbW8S9Dp2igf9gy
+        0/8AjNJ/w2r4l/6B2i/+Cyz/APjNcd/whwzjaRR/whw9KP7Ph/KCxlTudl/w2r4l/wCgdon/AILbT/4z
+        R/w2p4l/6B2if+C20/8AjNcb/wAIcPSl/wCEPH90flQsvp/ygsXU7nZf8Nq+JT007Rh/3DbT/wCM0f8A
+        Danic9NP0U5/6hlp/wDGa43/AIQ8f3R+VJ/who67Cc0LL6f8o/rlT+Y7M/tp+Jz00/RT/wBwy0H/ALRp
+        P+G0/E//AED9F/8ABZaf/Ga43/hDf9g0f8Ib/sGn/Z9P+VAsbP8AmZ2X/DaXif8A6B+in/uGWn/xmlH7
+        anicDjTtE/8ABXaf/Ga43/hDP9k0f8IZ/sml/Z8P5UL67P8AmOw/4bS8T/8AQO0X/wAFlp/8Zpf+G0/E
+        46afon/grtP/AIzXHf8ACGf7Jo/4Qz/ZNP6hD+VB9dqfzHY/8NpeJ/8AoG6L/wCCu0/+M0v/AA2p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+a/40f8ACvr7/nwn/Nf8a/Wn/hBND/6Aukf+Akf+FH/CCaH/ANAXSP8AwEj/
+        AMKP9dKH/Pl/ev8AIP8AVir/AM/V9z/zPyW/4V9ff8+E/wCa/wCNH/Cvr7/nwn/Nf8a/Wn/hBND/AOgL
+        pH/gJH/hR/wgmh/9AXSP/ASP/Cj/AF0of8+X96/yD/Vir/z9X3P/ADPyW/4V9ff8+E/5r/jR/wAK+vv+
+        fCf81/xr9af+EE0P/oC6R/4CR/4Uf8IJof8A0BdI/wDASP8Awo/10of8+X96/wAg/wBWKv8Az9X3P/M/
+        JUfDy/IOdPnP4r/jR/wru+/6B9x/47/jX61f8IJof/QF0j/wEj/wo/4QTQ/+gLpH/gJH/hQuNKH/AD5f
+        3r/IP9WKv/P1fc/8z8lR8O77tp9x+a/40v8Awru//wCfC4/Nf8a/Wn/hBND/AOgLpH/gJH/hR/wgmh/9
+        AXSP/ASP/Cn/AK6UP+fL/wDAl/kP/Vir/wA/V9z/AMz8lv8AhXd//wA+FwfxX/Gk/wCFd33/AD43H/fS
+        /wCNfrV/wgmh/wDQF0j/AMBI/wDCj/hBND/6Aukf+Akf+FH+ulD/AJ8v/wACX+Qv9WKv/P1fc/8AM/JX
+        /hXd9/z43H/fS/40f8K6viP+PCc/iv8AjX61f8IJof8A0BdI/wDASP8Awo/4QTQ/+gLpH/gJH/hR/rpQ
+        /wCfL/8AAl/kH+rFX/n6vuf+Z+Sv/Cur7/oHz/mv+NA+HeoDgWEwH1X/ABr9av8AhBND/wCgLpH/AICR
+        /wCFH/CCaH/0BdI/8BI/8KP9dKH/AD5f/gS/yGuGKv8Az9X3P/M/Jb/hXd//AM+M3/jv+NH/AAry/wD+
+        fCf81/xr9af+EE0P/oC6R/4CR/4Uf8IJof8A0BdI/wDASP8Awo/10of8+X/4Ev8AIP8AVmr/AM/V9z/z
+        PyWPw6vyedPn/Nf8aT/hXd8Dxp8+f+AnP61+tX/CCaH/ANAXSP8AwEj/AMKP+EE0P/oC6R/4CR/4Uf66
+        UP8Any//AAJf5D/1Zq/8/V9z/wAz8lf+Fe3/APz4T8f7v+NH/Cvb/wD58J//AB3/ABr9av8AhBND/wCg
+        LpH/AICR/wCFH/CCaH/0BdI/8BI/8KFxpQ/58v8A8CX+Qv8AVmr/AM/V9z/zPyV/4V7f/wDPhP8A+O/4
+        0v8Awr+//wCgfN/47/jX60/8IJof/QF0j/wEj/wo/wCEE0P/AKAukf8AgJH/AIUf66UP+fL/APAl/kH+
+        rFX/AJ+L7n/mfkt/wr+//wCgfN/47/jR/wAK/v8A/oHzf+O/41+tP/CCaH/0BdI/8BI/8KP+EE0P/oC6
+        R/4CR/4Uf66UP+fL/wDAl/kH+rFX/n4vuf8Amfkt/wAK/v8A/oHzf+O/40f8K/v/APoHzf8Ajv8AjX60
+        /wDCCaH/ANAXSP8AwEj/AMKP+EE0P/oC6R/4CR/4Uf66UP8Any//AAJf5B/qxV/5+L7n/mfkt/wr+/8A
+        +gfN/wCO/wCNH/Cv7/8A58Jh/wB8/wCNfrT/AMIJof8A0BdI/wDASP8Awo/4QTQ/+gLpH/gJH/hS/wBd
+        KH/Pl/8AgS/yD/Vir/z9X3P/ADPyW/4V9fn/AJcZh/3yf60n/Cu9QPIsrgf98/41+tX/AAgmh/8AQF0j
+        /wABI/8ACj/hBND/AOgLpH/gJH/hTXGlD/ny/wDwJf5CXDFX/n6vuf8Amfkr/wAK71D/AJ8Z/wDx3/Gk
+        /wCFd3//AD4T/wDjv+NfrX/wgmh/9AXSP/ASP/Cj/hBND/6Aukf+Akf+FH+ulD/ny/8AwJf5D/1Yq/8A
+        P1fc/wDM/JQfDq/6/YJ8f8B/xpf+Fe32P+QfN+a/41+tX/CCaH/0BdI/8BI/8KP+EE0P/oC6R/4CR/4U
+        f66UP+fL/wDAl/kL/Vir/wA/V9z/AMz8lv8AhXt/n/jwnz/wH/Gj/hXl/wD8+E/5r/jX60/8IJof/QF0
+        j/wEj/wo/wCEE0P/AKAukf8AgJH/AIUf66UP+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/ANDN4h/8GM3/
+        AMVR/wALa8V/9DN4h/8ABjN/8VR7DzBSP1/wfQ/lRg+h/KvyA/4W14r/AOhm8Q/+DGb/AOKo/wCFteK/
+        +hm8Q/8Agxm/+Ko9h5gpH6/4PofyowfQ/lX5Af8AC2/Ff/Qz+If/AAYzf/FUf8La8V/9DN4h/wDBjN/8
+        VR7DzBSP1/wfQ/lRg+h/KvyA/wCFteK/+hm8Q/8Agxm/+Ko/4W14r/6GbxD/AODGb/4qj2HmCkfr/g+h
+        /KjB9D+VfkB/wtrxX/0M3iH/AMGM3/xVH/C2vFf/AEM3iH/wYzf/ABVHsPMFI/X/AAfQ/lRg+h/KvyA/
+        4W14r/6GbxD/AODGb/4qj/hbXiv/AKGbxD/4MZv/AIqj2HmCkfr/AIPofyowfQ/lX5Af8La8V/8AQzeI
+        f/BjN/8AFUf8La8V/wDQzeIf/BjN/wDFUew8wUj9f8H0P5UYPofyr8gP+Ft+K/8AoZvEP/gxm/8AiqP+
+        Ft+Kz18T+If/AAYzf/FUew8wUj9f8H0P5UYPofyr8gP+FteK/wDoZvEP/gxm/wDiqP8AhbXiv/oZvEP/
+        AIMZv/iqPYeYKR+v+D6H8qMH0P5V+QH/AAtrxX/0M3iH/wAGM3/xVH/C2vFf/QzeIf8AwYzf/FUew8wU
+        j9f8H0P5UYPofyr8gP8AhbXiv/oZvEP/AIMZv/iqP+FteK/+hm8Q/wDgxm/+Ko9h5gpH6/4PofyowfQ/
+        lX5Af8La8V/9DN4h/wDBjN/8VR/wtrxX/wBDN4h/8GM3/wAVR7DzBSP1/wAH0P5UYPofyr8gP+FteK/+
+        hm8Q/wDgxm/+Ko/4W14r/wChm8Q/+DGb/wCKo9h5gpH6/wCD6H8qMH0P5V+QH/C2vFf/AEM3iH/wYzf/
+        ABVH/C2vFf8A0M3iH/wYzf8AxVHsPMFI/X/B9D+VGD6H8q/ID/hbXiv/AKGbxD/4MZv/AIqj/hbXiv8A
+        6GbxD/4MZv8A4qj2HmCkfr/g+h/KjB9D+VfkB/wtrxX/ANDN4h/8GM3/AMVR/wALa8V/9DN4h/8ABjN/
+        8VR7DzBSP1/wfQ/lRg+h/KvyA/4W14r/AOhm8Q/+DGb/AOKo/wCFteK/+hm8Q/8Agxm/+Ko9h5gpH6/4
+        PofyowfQ/lX5Af8AC2vFf/QzeIf/AAYzf/FUf8Lb8Vjp4n8Q/wDgxm/+Ko9h5gpH6/4PofyowfQ/lX5A
+        f8La8V/9DN4h/wDBjN/8VR/wtrxX/wBDN4h/8GM3/wAVR7DzBSP1/wAH0P5UYPofyr8gP+FteK/+hm8Q
+        /wDgxm/+Ko/4W14r/wChm8Q/+DGb/wCKo9h5gpH6/wCD6H8qMH0P5V+QH/C2/Ff/AEM/iH/wYzf/ABVH
+        /C2vFf8A0M3iH/wYzf8AxVHsPMFI/X/B9D+VGD6H8q/ID/hbXiv/AKGbxD/4MZv/AIqj/hbXiv8A6Gbx
+        D/4MZv8A4qj2HmCkfr/g+h/KjB9D+VfkB/wtrxX/ANDN4h/8GM3/AMVR/wALa8V/9DN4h/8ABjN/8VR7
+        DzBSP1/wfQ/lRg+h/KvyA/4W14r/AOhm8Q/+DGb/AOKo/wCFteK/+hm8Q/8Agxm/+Ko9h5i5/I/X/B9D
+        +VGD6H8q/ID/AIW14r/6GbxD/wCDGb/4qj/hbXiv/oZvEP8A4MZv/iqPYeY1M//Z
+</value>
+  </data>
+  <data name="mrlk.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <value>
+        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
+        YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAAAH/SURBVDhPfZHfS1NhGMefkCLQu/A/6MK6SbMQFlg3dudN
+        oBFDY9BF05XMMAoLL3bhxGB4zjzoVCKim4iCgkCMSam1cqP9aO4YJlpIDmqh00IRv73Pe87OWuV54Mt7
+        znm/n895z0aF8Stj6FdGoARDUAf/H97jTp96FyZmjC8QwuRUBB0zACkiwT0i9rxvgBcvX4MZEye65Vex
+        vp6HJ7yJ+1nYpmNyE3nRZcbEiW74AljL5UB3gOk84J8HnFPA0UfirZqIaoZPMQDZZcbEibp6+vE9mwUF
+        AG0RaJ0Gqp8A+0ICGBIZLkZLifXv8Xb3YnVlRdrdb23gtAHHjpdj5hAVRVdv+vBlaVkes+6pPVzhieHn
+        YQKiwHtHpSFp6+rB4sIn+Y37R+3hB5kNec2SSKV5isvebuiZj8YPxoKxYrSMAR90RyWc2AZqgp/lKSzB
+        Jc91xJI6nEoUdCECchrRJlZl4YA7XgJL+Yl7BszjauvEu9QCZoUk8UFHMq3jW+6HLJS1p+1hniZXO6pq
+        63Hk5Bkr/Fy9SHvC4+FXhuTa7V6s/dopydbOriXA7Ll/YN7nHrNSENeXMDA4aq0WvP0V2IpLSQFOpuaQ
+        mF+WPSm4Iv7CxmaXNBbWPwUtDpLhZ8/HwyU9ZolvjjkaUH3qrBUuV9WeBkv4mufh42clHWYaz7vwG72U
+        TLZQdeFnAAAAAElFTkSuQmCC
+</value>
+  </data>
+  <data name="bclk.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <value>
+        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
+        YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAAAH4SURBVDhPjZPNS1RRGMZfI2jRLlqUEKLUQgsl3EauEoRW
+        /QN+phG4CQXTNrPLbzFrpZAuBIfEqChctFRndHI0YzKnxkHFYQgH50NH5+o8Pm/HwQ/s4oGHc++5z/O7
+        77nnvSKPPZDyKYSfA8tN55N6NfMvK1XT+LIBxAH8PqfUqxnNitR+g1x/yQuRlJWCZVm2Uo965RozmpXq
+        aRR/Io1jYgJwTdlLPeqt92QqqHLj7phZTCST2Nqxl3rUWzrOTKX7JGBykm9x2Us96r3p1ApOAf5G49iI
+        JWylHvVeGGCm+hBQnNlCNIatWNxW6lGv9B0D3PsIXOrnQts2pGsX0mOdLX3WuYsbjT8gvTyNmsOPeJ+n
+        cOUtAa2bkEdfIbkdkLyuk8rtZGAGUuGCYzxBb/QUYJCAlpAp73+jnIEKN979pNcRPgPQEDSA7HZI4xpW
+        /pgvP+vdRzCwx/Y1AKeP3uZVtjIr0rJKPhMwxMX6RQO41U1AAL45YP77Pny/Ugitc//HAc/8BpD1wIkc
+        xxKuDnOxdh7pbc45rKBuAX4aNexfTiISYQNlALqFpwv068/EcbF0BJdfBEj0IhoGgktAKAisrXIO7yGy
+        mUI6vcPGYe/XePA+QECdF/Jk1gB0ZJWNQgpfQ273QQpeHSmf96oCquiN0R1eF1IPP+AAgRmsjnCqFmoA
+        AAAASUVORK5CYII=
+</value>
+  </data>
+  <data name="toolStripButton_Delete.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <value>
+        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
+        YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAAADCSURBVDhPpZJdCoMwEIRzpxxJ6Ak2z/ZZnysIBXuUHMA7
+        bXeWrGBMYkoHh+gk8xl/XEneP7jXqXIWJkIgHscnT/PEy2vhz7ZhMQ/Dm5l3ObRcB1ACzAKQ6FTcV69G
+        rgWTbUl3QFQtFgGpfAAoAVDOi2ZbrwW5hwY4N+P6FmDlkrsBq6zOy3AXIEkhGHMbIMaorgGgI8Cu7CsY
+        wOZbAEgDBch/gOveRzgJAKLwH0CGJsDmxU1dAMiSu3R5iZr+oJuic1+SJ5jRbOqnmgAAAABJRU5ErkJg
+        gg==
+</value>
+  </data>
+  <data name="tc.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <value>
+        iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
+        YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAAADCSURBVDhPpZJdCoMwEIRzpxxJ6Ak2z/ZZnysIBXuUHMA7
+        bXeWrGBMYkoHh+gk8xl/XEneP7jXqXIWJkIgHscnT/PEy2vhz7ZhMQ/Dm5l3ObRcB1ACzAKQ6FTcV69G
+        rgWTbUl3QFQtFgGpfAAoAVDOi2ZbrwW5hwY4N+P6FmDlkrsBq6zOy3AXIEkhGHMbIMaorgGgI8Cu7CsY
+        wOZbAEgDBch/gOveRzgJAKLwH0CGJsDmxU1dAMiSu3R5iZr+oJuic1+SJ5jRbOqnmgAAAABJRU5ErkJg
+        gg==
+</value>
+  </data>
+</root>
\ No newline at end of file

--
Gitblit v1.9.1