|
|
@@ -129,7 +129,8 @@ namespace UAS_MES_NEW.Query
|
|
|
she.PageSetup.PrintArea = $"A{startRow + 1}:AH{endRow + 1}";
|
|
|
if (File.Exists(PrintPath.Text))
|
|
|
{
|
|
|
- she.Pictures.Add(int.Parse(X.Value.ToString()), int.Parse(Y.Value.ToString()), PrintPath.Text);
|
|
|
+ //she.Pictures.Add(int.Parse(X.Value.ToString()), int.Parse(Y.Value.ToString()), PrintPath.Text);
|
|
|
+ she.Pictures.Add(startRow+ int.Parse(X.Value.ToString()), int.Parse(Y.Value.ToString()), PrintPath.Text);
|
|
|
}
|
|
|
|
|
|
// 创建SheetRender对象
|
|
|
@@ -170,7 +171,7 @@ namespace UAS_MES_NEW.Query
|
|
|
dic.Add("em_code", "ADMIN");
|
|
|
dic.Add("caller", "ProductSOP");
|
|
|
OperatResult.AppendText("上传文件【" + imagePath + ".jpg" + "】\n");
|
|
|
- string fp_id = UploadFilesToRemoteUrl("http://15033224.uttcare.com:8099/mes/MEScommon/uploadFiles.action?_noc=1", Application.StartupPath + @"\" + ps_prodcode.Text + @"\" + imagename, dic);
|
|
|
+ string fp_id = UploadFilesToRemoteUrl("http://119.147.24.169:8099/mes/MEScommon/uploadFiles.action?_noc=1", Application.StartupPath + @"\" + ps_prodcode.Text + @"\" + imagename, dic);
|
|
|
string ps_id = dh.getFieldDataByCondition("ProductSOP", "ps_id", "ps_prodcode='" + ps_prodcode.Text + "'").ToString();
|
|
|
dh.ExecuteSql("insert into ProductSOPdetail(psd_id,psd_psid,psd_attach) select ProductSOPdetail_seq.nextval,ps_id,'" + imagename + ";" + fp_id + "' from ProductSOP where ps_prodcode='" + ps_prodcode.Text + "'", "insert");
|
|
|
}
|