From 61fe7ac0f91f22c6423d9a9a947b3a72174f5278 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期一, 14 十月 2024 16:49:30 +0800
Subject: [PATCH] 条码自动打印:建立连接后,若网络正常且连接正常,则不断发送脉冲信号

---
 WarM/bin/Release/BLL.dll                                    |    0 
 WarM/条码打印/Gy_BarCodeBill_automaticallyByPLC_New.cs          |   17 ++++++++
 WarM/bin/Release/DAL.pdb                                    |    0 
 WarM/bin/Release/WarM.pdb                                   |    0 
 WarM/bin/Release/BLL.pdb                                    |    0 
 WarM/bin/Release/Model.pdb                                  |    0 
 WarM/bin/Release/WarM.dll                                   |    0 
 WarM/bin/Release/DAL.dll                                    |    0 
 WarM/bin/Release/Model.dll                                  |    0 
 WarM/条码打印/Gy_BarCodeBill_automaticallyByPLC_New.resx        |    3 +
 WarM/条码打印/Gy_BarCodeBill_automaticallyByPLC_New.designer.cs |   79 +++++++++++++++++++++------------------
 11 files changed, 62 insertions(+), 37 deletions(-)

diff --git a/WarM/bin/Release/BLL.dll b/WarM/bin/Release/BLL.dll
index d527af4..229361e 100644
--- a/WarM/bin/Release/BLL.dll
+++ b/WarM/bin/Release/BLL.dll
Binary files differ
diff --git a/WarM/bin/Release/BLL.pdb b/WarM/bin/Release/BLL.pdb
index 3cd3d4f..c4d2cc1 100644
--- a/WarM/bin/Release/BLL.pdb
+++ b/WarM/bin/Release/BLL.pdb
Binary files differ
diff --git a/WarM/bin/Release/DAL.dll b/WarM/bin/Release/DAL.dll
index 035e49e..f665d05 100644
--- a/WarM/bin/Release/DAL.dll
+++ b/WarM/bin/Release/DAL.dll
Binary files differ
diff --git a/WarM/bin/Release/DAL.pdb b/WarM/bin/Release/DAL.pdb
index 4605e8b..2836e5c 100644
--- a/WarM/bin/Release/DAL.pdb
+++ b/WarM/bin/Release/DAL.pdb
Binary files differ
diff --git a/WarM/bin/Release/Model.dll b/WarM/bin/Release/Model.dll
index ef97a6c..e84bd3f 100644
--- a/WarM/bin/Release/Model.dll
+++ b/WarM/bin/Release/Model.dll
Binary files differ
diff --git a/WarM/bin/Release/Model.pdb b/WarM/bin/Release/Model.pdb
index 1270e49..adc2540 100644
--- a/WarM/bin/Release/Model.pdb
+++ b/WarM/bin/Release/Model.pdb
Binary files differ
diff --git a/WarM/bin/Release/WarM.dll b/WarM/bin/Release/WarM.dll
index 521e315..bfb7762 100644
--- a/WarM/bin/Release/WarM.dll
+++ b/WarM/bin/Release/WarM.dll
Binary files differ
diff --git a/WarM/bin/Release/WarM.pdb b/WarM/bin/Release/WarM.pdb
index 38afaea..5ee2370 100644
--- a/WarM/bin/Release/WarM.pdb
+++ b/WarM/bin/Release/WarM.pdb
Binary files differ
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 4e94d9e..1ad2c42 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"
@@ -2520,6 +2520,21 @@
         #endregion
         #endregion
 
-        
+        #region 寤虹珛閫氳鍚庯紝涓嶆柇鍚戞湇鍔″櫒鍙戦�佹暟鎹紝鐢ㄤ簬甯姪鏈嶅姟绔‘瀹氳繛鎺ョ姸鎬�
+        private void timer4_Tick(object sender, EventArgs e)
+        {
+            if (getTargetInternetStatus()&& socket!=null && socket.Connected)
+            {
+                try
+                {
+                    socket.Send(Encoding.ASCII.GetBytes("1"));
+                }
+                catch (Exception ex)
+                {
+
+                }
+            }
+        }
+        #endregion
     }
 }
\ No newline at end of file
diff --git "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill_automaticallyByPLC_New.designer.cs" "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill_automaticallyByPLC_New.designer.cs"
index 70981a6..572068e 100644
--- "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill_automaticallyByPLC_New.designer.cs"
+++ "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill_automaticallyByPLC_New.designer.cs"
@@ -64,6 +64,9 @@
             this.tabControl_MainInfo = new System.Windows.Forms.TabControl();
             this.tabPage_BillInfo = new System.Windows.Forms.TabPage();
             this.gbUp = new System.Windows.Forms.GroupBox();
+            this.groupBox1 = new System.Windows.Forms.GroupBox();
+            this.radioButton_IsPrint_No = new System.Windows.Forms.RadioButton();
+            this.radioButton_IsPrint_Yes = new System.Windows.Forms.RadioButton();
             this.cmdSourceBillNo = new System.Windows.Forms.Button();
             this.cmbHWorksNumber = new System.Windows.Forms.ComboBox();
             this.label4 = new System.Windows.Forms.Label();
@@ -148,14 +151,13 @@
             this.printPreviewDialog1 = new System.Windows.Forms.PrintPreviewDialog();
             this.timer2 = new System.Windows.Forms.Timer(this.components);
             this.timer3 = new System.Windows.Forms.Timer(this.components);
-            this.groupBox1 = new System.Windows.Forms.GroupBox();
-            this.radioButton_IsPrint_Yes = new System.Windows.Forms.RadioButton();
-            this.radioButton_IsPrint_No = new System.Windows.Forms.RadioButton();
+            this.timer4 = new System.Windows.Forms.Timer(this.components);
             this.Tool.SuspendLayout();
             this.P1.SuspendLayout();
             this.tabControl_MainInfo.SuspendLayout();
             this.tabPage_BillInfo.SuspendLayout();
             this.gbUp.SuspendLayout();
+            this.groupBox1.SuspendLayout();
             this.tabPage_ParamsInfo.SuspendLayout();
             this.groupBox_ParamsInfo.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.pic1)).BeginInit();
@@ -171,7 +173,6 @@
             this.tabControl1.SuspendLayout();
             this.tabPage4.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.grdBillBarCodeList)).BeginInit();
-            this.groupBox1.SuspendLayout();
             this.SuspendLayout();
             // 
             // Tool
@@ -596,6 +597,38 @@
             this.gbUp.Size = new System.Drawing.Size(1775, 310);
             this.gbUp.TabIndex = 33;
             this.gbUp.TabStop = false;
+            // 
+            // groupBox1
+            // 
+            this.groupBox1.Controls.Add(this.radioButton_IsPrint_No);
+            this.groupBox1.Controls.Add(this.radioButton_IsPrint_Yes);
+            this.groupBox1.Location = new System.Drawing.Point(24, 162);
+            this.groupBox1.Name = "groupBox1";
+            this.groupBox1.Size = new System.Drawing.Size(200, 100);
+            this.groupBox1.TabIndex = 45;
+            this.groupBox1.TabStop = false;
+            // 
+            // radioButton_IsPrint_No
+            // 
+            this.radioButton_IsPrint_No.AutoSize = true;
+            this.radioButton_IsPrint_No.Location = new System.Drawing.Point(6, 68);
+            this.radioButton_IsPrint_No.Name = "radioButton_IsPrint_No";
+            this.radioButton_IsPrint_No.Size = new System.Drawing.Size(87, 22);
+            this.radioButton_IsPrint_No.TabIndex = 1;
+            this.radioButton_IsPrint_No.Text = "涓嶆墦鍗�";
+            this.radioButton_IsPrint_No.UseVisualStyleBackColor = true;
+            // 
+            // radioButton_IsPrint_Yes
+            // 
+            this.radioButton_IsPrint_Yes.AutoSize = true;
+            this.radioButton_IsPrint_Yes.Checked = true;
+            this.radioButton_IsPrint_Yes.Location = new System.Drawing.Point(7, 13);
+            this.radioButton_IsPrint_Yes.Name = "radioButton_IsPrint_Yes";
+            this.radioButton_IsPrint_Yes.Size = new System.Drawing.Size(69, 22);
+            this.radioButton_IsPrint_Yes.TabIndex = 0;
+            this.radioButton_IsPrint_Yes.TabStop = true;
+            this.radioButton_IsPrint_Yes.Text = "鎵撳嵃";
+            this.radioButton_IsPrint_Yes.UseVisualStyleBackColor = true;
             // 
             // cmdSourceBillNo
             // 
@@ -1508,37 +1541,10 @@
             this.timer3.Interval = 5000;
             this.timer3.Tick += new System.EventHandler(this.timer3_Tick);
             // 
-            // groupBox1
+            // timer4
             // 
-            this.groupBox1.Controls.Add(this.radioButton_IsPrint_No);
-            this.groupBox1.Controls.Add(this.radioButton_IsPrint_Yes);
-            this.groupBox1.Location = new System.Drawing.Point(24, 162);
-            this.groupBox1.Name = "groupBox1";
-            this.groupBox1.Size = new System.Drawing.Size(200, 100);
-            this.groupBox1.TabIndex = 45;
-            this.groupBox1.TabStop = false;
-            // 
-            // radioButton_IsPrint_Yes
-            // 
-            this.radioButton_IsPrint_Yes.AutoSize = true;
-            this.radioButton_IsPrint_Yes.Checked = true;
-            this.radioButton_IsPrint_Yes.Location = new System.Drawing.Point(7, 13);
-            this.radioButton_IsPrint_Yes.Name = "radioButton_IsPrint_Yes";
-            this.radioButton_IsPrint_Yes.Size = new System.Drawing.Size(69, 22);
-            this.radioButton_IsPrint_Yes.TabIndex = 0;
-            this.radioButton_IsPrint_Yes.TabStop = true;
-            this.radioButton_IsPrint_Yes.Text = "鎵撳嵃";
-            this.radioButton_IsPrint_Yes.UseVisualStyleBackColor = true;
-            // 
-            // radioButton_IsPrint_No
-            // 
-            this.radioButton_IsPrint_No.AutoSize = true;
-            this.radioButton_IsPrint_No.Location = new System.Drawing.Point(6, 68);
-            this.radioButton_IsPrint_No.Name = "radioButton_IsPrint_No";
-            this.radioButton_IsPrint_No.Size = new System.Drawing.Size(87, 22);
-            this.radioButton_IsPrint_No.TabIndex = 1;
-            this.radioButton_IsPrint_No.Text = "涓嶆墦鍗�";
-            this.radioButton_IsPrint_No.UseVisualStyleBackColor = true;
+            this.timer4.Enabled = true;
+            this.timer4.Tick += new System.EventHandler(this.timer4_Tick);
             // 
             // Gy_BarCodeBill_automaticallyByPLC_New
             // 
@@ -1572,6 +1578,8 @@
             this.tabPage_BillInfo.ResumeLayout(false);
             this.gbUp.ResumeLayout(false);
             this.gbUp.PerformLayout();
+            this.groupBox1.ResumeLayout(false);
+            this.groupBox1.PerformLayout();
             this.tabPage_ParamsInfo.ResumeLayout(false);
             this.groupBox_ParamsInfo.ResumeLayout(false);
             this.groupBox_ParamsInfo.PerformLayout();
@@ -1589,8 +1597,6 @@
             this.tabControl1.ResumeLayout(false);
             this.tabPage4.ResumeLayout(false);
             ((System.ComponentModel.ISupportInitialize)(this.grdBillBarCodeList)).EndInit();
-            this.groupBox1.ResumeLayout(false);
-            this.groupBox1.PerformLayout();
             this.ResumeLayout(false);
 
         }
@@ -1718,5 +1724,6 @@
         private System.Windows.Forms.GroupBox groupBox1;
         private System.Windows.Forms.RadioButton radioButton_IsPrint_No;
         private System.Windows.Forms.RadioButton radioButton_IsPrint_Yes;
+        private System.Windows.Forms.Timer timer4;
     }
 }
\ No newline at end of file
diff --git "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill_automaticallyByPLC_New.resx" "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill_automaticallyByPLC_New.resx"
index 081423d..494a704 100644
--- "a/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill_automaticallyByPLC_New.resx"
+++ "b/WarM/\346\235\241\347\240\201\346\211\223\345\215\260/Gy_BarCodeBill_automaticallyByPLC_New.resx"
@@ -763,6 +763,9 @@
   <metadata name="timer3.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
     <value>1177, 17</value>
   </metadata>
+  <metadata name="timer4.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>17, 64</value>
+  </metadata>
   <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>64</value>
   </metadata>

--
Gitblit v1.9.1