Browse Source

添加句柄的输出

callm 1 month ago
parent
commit
510e864051

+ 11 - 0
UAS_MES_YDCY/FunctionCode/Make/Make_FuselageLabelPrint.cs

@@ -73,6 +73,17 @@ namespace UAS_MES_NEW.Make
             StepCount.LineCode = User.UserLineCode;
             StepCount.Dh = dh;
             StepCount.Start();
+
+            try
+            {
+                if (File.Exists("FugeLabel" + ".txt")) {
+                    File.Delete("FugeLabel" + ".txt");
+                }
+                StreamWriter sw = File.AppendText("FugeLabel" + ".txt");
+                sw.WriteLine(sncode.Handle);
+                sw.Close();
+            }
+            catch (Exception) { }
         }
 
         private void Ma_code_DbChange(object sender, EventArgs e)

+ 12 - 0
UAS_MES_YDCY/FunctionCode/Make/Make_RePrintLabel.cs

@@ -5,6 +5,7 @@ using System.Collections.Generic;
 using System.ComponentModel;
 using System.Data;
 using System.Drawing;
+using System.IO;
 using System.Linq;
 using System.Text;
 using System.Threading;
@@ -58,6 +59,17 @@ namespace UAS_MES_NEW.Make
             stw.ShowDialog();
             inputText.Focus();
             dh = SystemInf.dh;
+            try
+            {
+                if (File.Exists("RePrintLabel" + ".txt"))
+                {
+                    File.Delete("RePrintLabel" + ".txt");
+                }
+                StreamWriter sw = File.AppendText("RePrintLabel" + ".txt");
+                sw.WriteLine(inputText.Handle);
+                sw.Close();
+            }
+            catch (Exception) { }
         }
 
         private void InPrint()