ソースを参照

调用接口顺序修改

callm 5 日 前
コミット
7b46fc3e21

+ 2 - 1
UAS_MES_HYSX/FunctionCode/Make/Make_ColorBoxLabelPrintThailand.cs

@@ -204,7 +204,7 @@ namespace UAS_MES_NEW.Make
                             OperateResult.AppendText(">>序列号" + sncode.Text + "所属工单号" + oMakeCode + "与界面工单号" + ma_code.Text + "不同,无法采集\n", Color.Red, sncode);
                             return;
                         }
-                        string dev_no = HttpServer.GetCaiHe_Thailand(sncode.Text);
+                      
                         //获取工单的其他信息
                         sql.Clear();
                         sql.Append("select ma_code,nvl(ma_unlimitin,0)ma_unlimitin,pr_code,pr_detail,pr_spec from  ");
@@ -241,6 +241,7 @@ namespace UAS_MES_NEW.Make
                             sncode.Focus();
                             return;
                         }
+                        string dev_no = HttpServer.GetCaiHe_Thailand(sncode.Text);
                         //if (int.Parse(mcd_remainqty.Text) <= 0 && dt.Rows[0]["ma_unlimitin"].ToString() == "0")
                         //{
                         //    macode = ma_code.Text;

+ 2 - 1
UAS_MES_HYSX/FunctionCode/Make/Make_MingPaiPrintThailand.cs

@@ -204,7 +204,7 @@ namespace UAS_MES_NEW.Make
                             OperateResult.AppendText(">>序列号" + sncode.Text + "所属工单号" + oMakeCode + "与界面工单号" + ma_code.Text + "不同,无法采集\n", Color.Red, sncode);
                             return;
                         }
-                        string dev_no=  HttpServer.GetMingPai_Thailand(sncode.Text);
+                     
                         //获取工单的其他信息
                         sql.Clear();
                         sql.Append("select ma_code,nvl(ma_unlimitin,0)ma_unlimitin,pr_code,pr_detail,pr_spec from  ");
@@ -241,6 +241,7 @@ namespace UAS_MES_NEW.Make
                             sncode.Focus();
                             return;
                         }
+                        string dev_no = HttpServer.GetMingPai_Thailand(sncode.Text);
                         //if (int.Parse(mcd_remainqty.Text) <= 0 && dt.Rows[0]["ma_unlimitin"].ToString() == "0")
                         //{
                         //    macode = ma_code.Text;