修改字段名称

This commit is contained in:
admin
2021-01-19 11:10:39 +08:00
parent 7f130871c6
commit 7bf0fe9125
12 changed files with 96 additions and 35 deletions

View File

@@ -20,7 +20,7 @@ namespace U8AppMain
InitializeComponent();
}
private void PrintLog(ResultEnity.ufinterface info)
{
@@ -73,7 +73,7 @@ namespace U8AppMain
}
//private string url = ConfigurationManager.AppSettings.Get("url");
// private string connStr = ConfigurationManager.AppSettings.Get("connStr");
// private string connStr = ConfigurationManager.AppSettings.Get("connStr");
private DataTable dataTable;
@@ -167,9 +167,23 @@ namespace U8AppMain
{
return;
}
var bomLookup = new Dictionary<string, Purchase.ufinterface>();
try
{
//获取相关物料的信息
var list = new List<string>();
foreach (DataRow row in this.dataTable.Rows)
{
list.Add(row["存货编码"].ToString().Trim());
}
var InvInfo = new NX.ERP.U8.MaterielDAL().GetList(list).ToDictionary((m) => { return m.MaterielCode; });
//构造数据
foreach (DataRow row in this.dataTable.Rows)
{
var purchase = new Purchase.ufinterface();
@@ -190,7 +204,8 @@ namespace U8AppMain
{
bomLookup.Add(strKey, purchase);
}
body.inventorycode = row["存货编码"].ToString();
body.inventorycode = row["存货编码"].ToString().Trim();
body.taxrate = InvInfo[body.inventorycode].TaxRate;
body.requiredate = purchase.purchaseapp.header.date;
body.quantity = decimal.Parse(row["数量"].ToString());
purchase.purchaseapp.body.Add(body);
@@ -288,8 +303,8 @@ namespace U8AppMain
private void 登录ToolStripMenuItem_Click(object sender, EventArgs e)
{
//u8LoginContext = new NX.ERP.U8.U8LoginContext();
//u8LoginContext.Login(true);
@@ -441,6 +456,27 @@ namespace U8AppMain
}); ;
}
}
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
}
private void FrmMain_Load(object sender, EventArgs e)
{
try
{
NX.ERP.U8.U8LoginContext.Instance.Login();
this.Text =$"[{NX.ERP.U8.U8LoginContext.Instance.AccID}]{NX.ERP.U8.U8LoginContext.Instance.AccName}";
}
catch (Exception)
{
this.Close();
}
}
}
}