SVN r554
SVN-Revision: r554
This commit is contained in:
@@ -1499,7 +1499,7 @@ namespace Lskj.PubBomImport
|
||||
{
|
||||
throw new Exception($"单据编号不能为空");
|
||||
}
|
||||
DataRow sourceRow = BaseImpl.GetDataRowResult($"select qms_wjgg_billdocument_id,qms_wjgg_uuid from QMS_wenjiangenggaitab where qms_wjgg_billdocument_id = '{billdocument}'");
|
||||
DataRow sourceRow = BaseImpl.GetDataRowResult($"select * from QMS_wenjiangenggaitab where qms_wjgg_billdocument_id = '{billdocument}'");
|
||||
if (sourceRow == null)
|
||||
{
|
||||
throw new Exception($"Bom变更单{billdocument}不存在");
|
||||
@@ -1513,7 +1513,7 @@ namespace Lskj.PubBomImport
|
||||
string productid = sourceRow["qms_wjgg_productid"] + "";
|
||||
int.TryParse(sourceRow["fileId"] + "", out int copyFileId);
|
||||
int.TryParse(sourceRow["qms_wjgg_fileId"] + "", out int coverFileId);
|
||||
int.TryParse(sourceRow["qms_wjgg_iscover"] + "", out int coverTag);
|
||||
int coverTag = (sourceRow["qms_wjgg_iscover"] + "").Equals("True") ? 1 : 0;
|
||||
Model = frmMain.Model;
|
||||
DataRow execRow = BaseImpl.GetDataRowResult($"select * from p_bomImportExecTab where isnull(success,0) = 0 and guid = '{execGuid}'");
|
||||
if (execRow != null)
|
||||
@@ -1993,7 +1993,7 @@ namespace Lskj.PubBomImport
|
||||
string webpath = HttpUtility.UrlEncode(deleteRow["webpath"] + "");
|
||||
//删除文件
|
||||
string deleteUrl = "{0}Api/FileUploadApi.ashx?fileId={1}&filename={2}&method={3}";
|
||||
deleteUrl = string.Format(postUrl, SystemInfo.Instance.OAUrl, field, webpath, "DoDelete");
|
||||
deleteUrl = string.Format(deleteUrl, SystemInfo.Instance.OAUrl, field, webpath, "DoDelete");
|
||||
HttpHelper.Setting("application/x-www-form-urlencoded", null, null);
|
||||
Dictionary<string, string> deleteHeaderDic = new Dictionary<string, string>();
|
||||
deleteHeaderDic.Add("Authorization", $"Bearer {token}");
|
||||
@@ -2119,7 +2119,7 @@ namespace Lskj.PubBomImport
|
||||
string webpath = HttpUtility.UrlEncode(deleteRow["webpath"] + "");
|
||||
//删除文件
|
||||
string deleteUrl = "{0}Api/FileUploadApi.ashx?fileId={1}&filename={2}&method={3}";
|
||||
deleteUrl = string.Format(postUrl, SystemInfo.Instance.OAUrl, field, webpath, "DoDelete");
|
||||
deleteUrl = string.Format(deleteUrl, SystemInfo.Instance.OAUrl, field, webpath, "DoDelete");
|
||||
HttpHelper.Setting("application/x-www-form-urlencoded", null, null);
|
||||
Dictionary<string, string> deleteHeaderDic = new Dictionary<string, string>();
|
||||
deleteHeaderDic.Add("Authorization", $"Bearer {token}");
|
||||
|
||||
Reference in New Issue
Block a user