|
@@ -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;
|
|
|
+ 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 = DataHelper.ERPAddesss + "common/form/reqDemo.action?Pi_inoutno=" + Inoutno;
|
|
|
HttpWebRequest webrequest = (HttpWebRequest)WebRequest.Create(url);
|
|
|
if (webrequest == null)
|
|
|
{
|
|
|
return false;
|
|
|
}
|
|
|
+ WebResponse myResponse = webrequest.GetResponse();
|
|
|
return true;
|
|
|
}
|
|
|
}
|