Explorar el Código

去除多余参数

章政 hace 8 años
padre
commit
d24b1a38d3
Se han modificado 1 ficheros con 3 adiciones y 17 borrados
  1. 3 17
      UAS-MES/FunctionCode/Make/Make_FuselageLabelPrint.cs

+ 3 - 17
UAS-MES/FunctionCode/Make/Make_FuselageLabelPrint.cs

@@ -22,22 +22,8 @@ namespace UAS_MES.Make
         //保存make left join makecraftdetail left join product的数据
         // DataTable ListB;
         DataTable mapB;
-        //保存ProductLabel数据
-        DataTable ListC;
-        //工序编号
-        //        string stepcode;
-        //下一工序编号
-        //        string nextstepcode;
-        //工艺路线编号
-        //        string craftcode;
-        //制造单号
-        //        string make_code;
-        //当前工单的序列号
-        //        tring sn_code;
-        //当前提示的索引
-        //        int RemainIndex = 0;
 
-        //        string Step = "Loading";
+        System.DateTime[] indate;
 
         ApplicationClass lbl;
 
@@ -105,7 +91,7 @@ namespace UAS_MES.Make
                         if (PrintLabel.SelectedValue != null)
                         {
                             //按照打印张数打印
-                            Print.CodeSoft(lbl, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), Printer.Text, sncode.Text, int.Parse(PrintNum.Text));
+                            Print.CodeSoft(lbl, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), Printer.Text, sncode.Text, int.Parse(PrintNum.Text),indate[PrintLabel.SelectedIndex]);
                             //提示用户打印成功
                             OperateResult.AppendText(">>打印成功\n", Color.Green);
                             //更新打印的数据
@@ -162,8 +148,8 @@ namespace UAS_MES.Make
             ftpOperater ftp = new ftpOperater();
             for (int i = 0; i < dt.Rows.Count; i++)
             {
-                //ftp.Download(dt.Rows[i]["pl_labelname"].ToString());
                 BaseUtil.GetPrintLabel(dt.Rows[i]["pl_labelname"].ToString(), dt.Rows[i]["pl_labelurl"].ToString(), dt.Rows[i]["pl_indate"].ToString());
+                indate[i] = Convert.ToDateTime(dt.Rows[i]["pl_indate"].ToString());
             }
         }