SVN r604
SVN-Revision: r604
This commit is contained in:
@@ -622,8 +622,12 @@ namespace Lskj.PubBomImport
|
|||||||
insertbulider.AppendLine($"insert into FileAttachmentMapping (MaterialCode,MxFileName,RelatedAttachmentName,OperatorUser,ChangeStatus) values ('{topProductId}','{sourceCode }','{childCode}','{ERPInfo.Instance.UserName}','变更');");
|
insertbulider.AppendLine($"insert into FileAttachmentMapping (MaterialCode,MxFileName,RelatedAttachmentName,OperatorUser,ChangeStatus) values ('{topProductId}','{sourceCode }','{childCode}','{ERPInfo.Instance.UserName}','变更');");
|
||||||
if (childCode.StartsWith("QD") || childCode.StartsWith("ZZQD"))
|
if (childCode.StartsWith("QD") || childCode.StartsWith("ZZQD"))
|
||||||
{
|
{
|
||||||
string tempFileName = childFileDic[childCode];
|
string tempFileName = childFileDic.ContainsKey(childCode) ? childFileDic[childCode] : "";
|
||||||
FileInfo childInfo = new FileInfo(tempFileName);
|
FileInfo childInfo = null;
|
||||||
|
if (!string.IsNullOrEmpty(tempFileName))
|
||||||
|
{
|
||||||
|
childInfo = new FileInfo(tempFileName);
|
||||||
|
}
|
||||||
if (childInfo == null)
|
if (childInfo == null)
|
||||||
{
|
{
|
||||||
//throw new Exception($"MX明细中不包含文件{childCode}");
|
//throw new Exception($"MX明细中不包含文件{childCode}");
|
||||||
|
|||||||
Reference in New Issue
Block a user