|
|
@@ -284,7 +284,7 @@ namespace UAS_MES_NEW.PublicMethod
|
|
|
string fp_path = label.Rows[0]["FP_PATH"].ToString().Replace("/app/uas/webapps/", "");
|
|
|
fp_name = label.Rows[0]["fp_name"].ToString();
|
|
|
WebClient wc = new WebClient();
|
|
|
- wc.DownloadFile("http://172.16.30.253:8099/" + fp_path, @"C:\打印标签\" + fp_name);
|
|
|
+ wc.DownloadFile("http://10.98.0.21:8099/" + fp_path, @"C:\打印标签\" + fp_name);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -313,7 +313,7 @@ namespace UAS_MES_NEW.PublicMethod
|
|
|
string fp_path = label.Rows[0]["FP_PATH"].ToString().Replace("/app/uas/webapps/", "");
|
|
|
fp_name = label.Rows[0]["fp_name"].ToString();
|
|
|
WebClient wc = new WebClient();
|
|
|
- wc.DownloadFile("http://172.16.30.253:8099/" + fp_path, @"C:\打印标签\" + fp_name);
|
|
|
+ wc.DownloadFile("http://10.98.0.21:8099/" + fp_path, @"C:\打印标签\" + fp_name);
|
|
|
FileInfo file = new FileInfo(@"C:\打印标签\" + fp_name);
|
|
|
file.CreationTime = Convert.ToDateTime(filelastwritetime);
|
|
|
}
|
|
|
@@ -372,11 +372,13 @@ namespace UAS_MES_NEW.PublicMethod
|
|
|
if (j == 0 & format.SubStrings[k].Name.ToUpper() == dt.Rows[i]["lp_name"].ToString().ToUpper())
|
|
|
{
|
|
|
format.SubStrings[k].Value = Param.Rows[0][0].ToString();
|
|
|
+ break;
|
|
|
}
|
|
|
//使用SN开头的参数赋值SN1,SN2,SN3等参数
|
|
|
if (format.SubStrings[k].Name.ToUpper() == dt.Rows[i]["lp_name"].ToString().ToUpper() + (j + 1))
|
|
|
{
|
|
|
format.SubStrings[k].Value = Param.Rows[j][0].ToString();
|
|
|
+ break;
|
|
|
}
|
|
|
}
|
|
|
}
|