多个BOM

This commit is contained in:
admin
2020-12-18 15:23:51 +08:00
parent a95f32a6b0
commit 600fd27b76

View File

@@ -89,10 +89,18 @@ namespace U8AppMain
//var bom = new Bom.ufinterface();
//bom.Bom.ComponentBodies.Add(new Bom.ComponentBody());
//bom.Bom.ComponentBodies.Add(new Bom.ComponentBody());
var strbody = XmlHelper.XmlSerialize(bomLookup.Values.ToList()[0], Encoding.UTF8);
//var response = await HttpHelper.Post("", strbody);
this.textBox1.Text = strbody;
MessageBox.Show(strbody);
foreach (var item in bomLookup.Values)
{
var strbody = XmlHelper.XmlSerialize(item, Encoding.UTF8);
var response = await HttpHelper.Post("", strbody);
this.textBox1.Text += response;
}
}
private void BtnImportExcel_Click(object sender, EventArgs e)