commit
This commit is contained in:
@@ -16,6 +16,8 @@ namespace U8AppMain.Bom
|
|||||||
|
|
||||||
public int Status { get; set; } = 3;
|
public int Status { get; set; } = 3;
|
||||||
|
|
||||||
|
|
||||||
|
public string Define12 { get; set; }
|
||||||
//<BomType>1</BomType>
|
//<BomType>1</BomType>
|
||||||
// <Version>70</Version>
|
// <Version>70</Version>
|
||||||
// <VersionDesc>环球普通PC</VersionDesc>
|
// <VersionDesc>环球普通PC</VersionDesc>
|
||||||
|
|||||||
@@ -116,6 +116,7 @@ namespace U8AppMain
|
|||||||
var comp = new Bom.ComponentBody();
|
var comp = new Bom.ComponentBody();
|
||||||
bom.Bom.Version.Version = Convert.ToInt32(row["版本号"]);
|
bom.Bom.Version.Version = Convert.ToInt32(row["版本号"]);
|
||||||
bom.Bom.Version.VersionDesc = row.Field<string>("版本说明");
|
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.Parent.InvCode = row.Field<string>("母件编码");
|
||||||
bom.Bom.Version.VersionEffDate = DateTime.Parse(row["版本生效日"].ToString());
|
bom.Bom.Version.VersionEffDate = DateTime.Parse(row["版本生效日"].ToString());
|
||||||
bom.Bom.Parent.ParentScrap = decimal.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.personcode = row["请购人"].ToString();
|
||||||
purchase.purchaseapp.header.purchasetypecode = row["采购类型编号"].ToString();
|
purchase.purchaseapp.header.purchasetypecode = row["采购类型编号"].ToString();
|
||||||
purchase.purchaseapp.header.maker = row["制单人"].ToString();
|
purchase.purchaseapp.header.maker = row["制单人"].ToString();
|
||||||
|
purchase.purchaseapp.header.define12 = row["请购单号"].ToString();
|
||||||
var strKey = purchase.purchaseapp.header.code;
|
var strKey = purchase.purchaseapp.header.code;
|
||||||
if (bomLookup.ContainsKey(strKey))
|
if (bomLookup.ContainsKey(strKey))
|
||||||
{
|
{
|
||||||
@@ -262,14 +264,15 @@ namespace U8AppMain
|
|||||||
if (a.Add(item))
|
if (a.Add(item))
|
||||||
{
|
{
|
||||||
this.richTextBox1.SelectionColor = Color.Green;
|
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
|
else
|
||||||
{
|
{
|
||||||
this.richTextBox1.SelectionColor = Color.Red;
|
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)
|
catch (Exception err)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ namespace U8AppMain.Purchase
|
|||||||
//public string define10 { get; set; }
|
//public string define10 { get; set; }
|
||||||
//public string define11{ get; set; }
|
//public string define11{ get; set; }
|
||||||
|
|
||||||
//public string define12 { get; set; }
|
public string define12 { get; set; }
|
||||||
//public string define13 { get; set; }
|
//public string define13 { get; set; }
|
||||||
//public string define14 { get; set; }
|
//public string define14 { get; set; }
|
||||||
//public string define15 { get; set; }
|
//public string define15 { get; set; }
|
||||||
|
|||||||
Reference in New Issue
Block a user