This commit is contained in:
杰 朱
2020-12-23 11:25:49 +08:00
parent 36ee148b78
commit 71a51e72a2
3 changed files with 8 additions and 3 deletions

View File

@@ -116,6 +116,7 @@ namespace U8AppMain
var comp = new Bom.ComponentBody();
bom.Bom.Version.Version = Convert.ToInt32(row["版本号"]);
bom.Bom.Version.VersionDesc = row.Field<string>("版本说明");
bom.Bom.Version.Define12 = row.Field<string>("母件编码") + row.Field<string>("版本说明");
bom.Bom.Parent.InvCode = row.Field<string>("母件编码");
bom.Bom.Version.VersionEffDate = DateTime.Parse(row["版本生效日"].ToString());
bom.Bom.Parent.ParentScrap = decimal.Parse(row["母件损耗率"].ToString());
@@ -179,6 +180,7 @@ namespace U8AppMain
purchase.purchaseapp.header.personcode = row["请购人"].ToString();
purchase.purchaseapp.header.purchasetypecode = row["采购类型编号"].ToString();
purchase.purchaseapp.header.maker = row["制单人"].ToString();
purchase.purchaseapp.header.define12 = row["请购单号"].ToString();
var strKey = purchase.purchaseapp.header.code;
if (bomLookup.ContainsKey(strKey))
{
@@ -262,14 +264,15 @@ namespace U8AppMain
if (a.Add(item))
{
this.richTextBox1.SelectionColor = Color.Green;
this.richTextBox1.AppendText($"{item.CCode} {item.cDefine12} 保存成功\r\n");
this.richTextBox1.AppendText($" {item.cDefine12} 导入成功 ,实际U8单号: {item.CCode} \r\n");
}
else
{
this.richTextBox1.SelectionColor = Color.Red;
this.richTextBox1.AppendText($"{item.CCode} 保存出错\r\n");
this.richTextBox1.AppendText($"{item.CCode} 导入出错\r\n");
}
}
this.richTextBox1.AppendText($"--------------------------------------------------------------------------------------------\r\n");
}
catch (Exception err)
{