Browse Source

修改打印内容

callm 5 years ago
parent
commit
a38dd8144b

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

@@ -1021,8 +1021,7 @@ namespace UAS_LabelMachine
             }
             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.ExecuteSql("delete from ProdDownLink where pl_inoutno='" + Inoutno + "'", "delete");
-            dh.ExecuteSql("insert into ProdDownLink(pl_inoutno,pl_outboxcode) select distinct '" + Inoutno + "',pib_outboxcode1 from prodiobarcode where pib_inoutno='" + Inoutno + "'", "insert");
+            HttpHandler.GenDownLoadLinK(Inoutno);
             //填充首页
             sumCount = 0;
             totalCount = 0;

+ 7 - 3
UAS-出货标签管理(贸易版)/PublicMethod/HttpHandler.cs

@@ -4,6 +4,7 @@ using System.IO;
 using System.Net;
 using System.Text;
 using System.Web;
+using UAS_LabelMachine.Entity;
 
 namespace UAS_LabelMachine.PublicMethod
 {
@@ -83,15 +84,18 @@ namespace UAS_LabelMachine.PublicMethod
             return true;
         }
 
-        public static bool GenDownLoadLinK(string Inoutno, out string oMsg)
+        public static bool GenDownLoadLinK(string Inoutno)
         {
-            oMsg = "";
-            string url = DataHelper.ERPAddesss + "common/form/reqDemo.action?pi_inoutno="+ Inoutno;//html调用的地址              
+            SystemInf.dh.ExecuteSql("delete from ProdDownLink where pl_inoutno='" + Inoutno + "'", "delete");
+            SystemInf.dh.ExecuteSql("insert into ProdDownLink(pl_inoutno,pl_outboxcode) select distinct '" + Inoutno + "',pib_outboxcode1 from prodiobarcode where pib_inoutno='" + Inoutno + "'", "insert");
+            //string url = "http://localhost:8080/uas_war_exploded/common/form/reqDemo.action?Pi_inoutno=" + Inoutno;//html调用的地址              
+            string url = DataHelper.ERPAddesss + "common/form/reqDemo.action?Pi_inoutno=" + Inoutno;//html调用的地址              
             HttpWebRequest webrequest = (HttpWebRequest)WebRequest.Create(url);
             if (webrequest == null)
             {
                 return false;
             }
+            WebResponse myResponse = webrequest.GetResponse();
             return true;
         }
     }

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

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