Browse Source

优化治具 xray

yhluo 3 days ago
parent
commit
a58bd759c7

+ 2 - 2
UAS_MES_YTDZ/FunctionCode/Make/Make_ParseLog.cs

@@ -431,7 +431,7 @@ namespace UAS_MES_NEW.Make
                                     if (UploadImageToFtp(floderFileItem, SN))
                                     {
                                         string time = File.GetCreationTime(floderFileItem).ToString("yyyy:MM:dd HH:mm:ss");
-                                        dh.ExecuteSql($@"UPDATE xraytest SET xt_url = 'http://192.168.41.232:8098/ftp/Xray/{DateTime.Now.ToString("yyyyMMdd")}/{SN}/{Path.GetFileName(floderFileItem)}',
+                                        dh.ExecuteSql($@"UPDATE xraytest SET xt_url = 'http://192.168.41.232:8098/Xray/{DateTime.Now.ToString("yyyyMMdd")}/{SN}/{Path.GetFileName(floderFileItem)}',
                                             xt_macode = '{ma_code.Text.Trim()}' WHERE checkdate = to_date('{time}','YYYY:MM:DD HH24:MI:SS')", "update");
                                     }
                                 }
@@ -439,7 +439,7 @@ namespace UAS_MES_NEW.Make
                                 {
                                     if (UploadImageToFtp(floderFileItem, SN))
                                     {
-                                        dh.ExecuteSql($@"UPDATE xraytest SET xt_url = 'http://192.168.41.232:8098/ftp/Xray/{DateTime.Now.ToString("yyyyMMdd")}/{SN}/{Path.GetFileName(floderFileItem)}',
+                                        dh.ExecuteSql($@"UPDATE xraytest SET xt_url = 'http://192.168.41.232:8098/Xray/{DateTime.Now.ToString("yyyyMMdd")}/{SN}/{Path.GetFileName(floderFileItem)}',
                                             xt_macode = '{ma_code.Text.Trim()}' WHERE barcode = '{SN}'", "update");
                                     }
                                 }

+ 28 - 0
UAS_MES_YTDZ/FunctionCode/Make/Make_ToolingManager.cs

@@ -280,6 +280,31 @@ namespace UAS_MES_NEW.Make
             empVal.Text = "";
 
             ShowMsg(MsgBox, 1, $"OK,{typeVal.Text}编号:{toolingVal.Text},已领用成功");
+
+            CleanDetail("Receive");
+            toolingVal_KeyPress(null, null);
+        }
+
+        private void CleanDetail(string type)
+        {
+            // Stencil Scraper
+            if (type == "Receive")
+            {
+                ma_code.Text = "";
+                sideVal.SelectedIndex = -1;
+                empVal.Text = "";
+            }
+            else if (type == "Return")
+            {
+                stA.Text = "";
+                stB.Text = "";
+                stC.Text = "";
+                stD.Text = "";
+                stE.Text = "";
+                empVal1.Text = "";
+                useCountVal.Text = "";
+                IsClean.Checked = false;
+            }
         }
 
         private void Return_Click(object sender, EventArgs e)
@@ -359,6 +384,9 @@ namespace UAS_MES_NEW.Make
             empVal1.Text = "";
             IsClean.Checked = false;
             ShowMsg(MsgBox, 1, $"OK,{typeVal.Text}编号:{toolingVal.Text},已归还成功");
+
+            CleanDetail("Receive");
+            toolingVal_KeyPress(null, null);
         }
 
         private void Scrap_Click(object sender, EventArgs e)