Browse Source

修改参数更新内容

callm 5 years ago
parent
commit
82189c47cc

+ 5 - 5
UAS-出货标签管理(贸易版)/PublicMethod/ExcelHandler.cs

@@ -285,7 +285,7 @@ namespace UAS_LabelMachine
             //芯片号需要作为更新盒号的条件
             bool ShowChcode = true;
             //更新箱号
-            List<string> ch_code = new List<string>();
+            List<string> pib_id = new List<string>();
             //系统打印箱号
             List<string> pib_outboxcode1 = new List<string>();
 
@@ -623,7 +623,7 @@ namespace UAS_LabelMachine
                             sheet.SetRowBreak(PaintIndex);
                             PaintIndex = PaintIndex + 1;
                         }
-                        ch_code.Add(DataTable.Rows[i]["ch_code"].ToString());
+                        pib_id.Add(DataTable.Rows[i]["pib_id"].ToString());
                         pib_outboxcode1.Add(BoxCode.ToString());
                     }
                     for (int i = 0; i < sheet.LastRowNum; i++)
@@ -808,7 +808,7 @@ namespace UAS_LabelMachine
                             sheet.SetRowBreak(PaintIndex);
                             PaintIndex = PaintIndex + 1;
                         }
-                        ch_code.Add(DataTable.Rows[i]["ch_code"].ToString());
+                        pib_id.Add(DataTable.Rows[i]["pib_id"].ToString());
                         pib_outboxcode1.Add(BoxCode.ToString());
                     }
                     for (int i = 0; i < sheet.LastRowNum; i++)
@@ -1004,7 +1004,7 @@ namespace UAS_LabelMachine
                             sheet.SetRowBreak(PaintIndex);
                             PaintIndex = PaintIndex + 1;
                         }
-                        ch_code.Add(DataTable.Rows[i]["ch_code"].ToString());
+                        pib_id.Add(DataTable.Rows[i]["pib_id"].ToString());
                         pib_outboxcode1.Add(BoxCode.ToString());
                     }
                     for (int i = 0; i < sheet.LastRowNum; i++)
@@ -1019,7 +1019,7 @@ namespace UAS_LabelMachine
                 default:
                     break;
             }
-            dh.BatchInsert("update prodiobarcode set pib_outboxcode1=:pib_outboxcode1 where pib_inoutno='" + Inoutno + "' and pib_custbarcode=:pib_custbarcode", new string[] { "pib_outboxcode1", "pib_custbarcode" }, pib_outboxcode1.ToArray(), ch_code.ToArray());
+            dh.BatchInsert("update prodiobarcode set pib_outboxcode1=:pib_outboxcode1 where pib_inoutno='" + Inoutno + "' and pib_id=:pib_id", new string[] { "pib_outboxcode1", "pib_id" }, pib_outboxcode1.ToArray(), pib_id.ToArray());
             //删除下载链接再重新插入
             HttpHandler.GenDownLoadLinK(Inoutno);
             //填充首页

+ 3 - 1
UAS-出货标签管理(贸易版)/SQL/SQL.txt

@@ -330,4 +330,6 @@ begin
   on pi_id=pd_piid left join chip_in_out on io_piid=pi_id and pd_id=io_pdid left join chip on ch_code=io_chipcode left join CHIP_WAFERTEST_VIEW on ch_code=chw_chipcode 
   left join CHIP_EDCDATA_VIEW on che_chipcode=ch_code left join product on pr_code=pd_prodcode left join prodiobarcode on 
   pib_piid=pi_id and pib_custbarcode=ch_code where pi_inoutno='''||v_inoutno||''' order by ch_code';
-end;
+end;
+
+insert into configs(id,caller,code,data) values(configs_seq.nextval,'Prodinout!Down','DownLoadLink','http://sisemi03.zicp.io/ERP');

+ 0 - 1
UAS-出货标签管理(贸易版)/UAS_出货标签管理.cs

@@ -1356,7 +1356,6 @@ namespace UAS_LabelMachine
 
         private void MidBoxLabelPrint()
         {
-            HttpHandler.GenDownLoadLinK(pi_inoutno.Text);
             if (MidLabelNum.Text == "")
             {
                 int begin = 0;