修改字段名称

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

@@ -105,6 +105,7 @@ namespace U8AppMain
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
this.toolStripMenuItem2.Size = new System.Drawing.Size(180, 22);
this.toolStripMenuItem2.Text = "采购入库单";
this.toolStripMenuItem2.Visible = false;
this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click);
//
// 材料出库单ToolStripMenuItem
@@ -112,6 +113,7 @@ namespace U8AppMain
this.材料出库单ToolStripMenuItem.Name = "材料出库单ToolStripMenuItem";
this.材料出库单ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.材料出库单ToolStripMenuItem.Text = "材料出库单";
this.材料出库单ToolStripMenuItem.Visible = false;
this.材料出库单ToolStripMenuItem.Click += new System.EventHandler(this.材料出库单ToolStripMenuItem_Click);
//
// 其他入库ToolStripMenuItem
@@ -119,6 +121,7 @@ namespace U8AppMain
this.其他入库ToolStripMenuItem.Name = "其他入库ToolStripMenuItem";
this.其他入库ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.其他入库ToolStripMenuItem.Text = "其他入库";
this.其他入库ToolStripMenuItem.Visible = false;
this.其他入库ToolStripMenuItem.Click += new System.EventHandler(this.其他入库ToolStripMenuItem_Click);
//
// 其他出库ToolStripMenuItem
@@ -126,6 +129,7 @@ namespace U8AppMain
this.其他出库ToolStripMenuItem.Name = "其他出库ToolStripMenuItem";
this.其他出库ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.其他出库ToolStripMenuItem.Text = "其他出库";
this.其他出库ToolStripMenuItem.Visible = false;
this.其他出库ToolStripMenuItem.Click += new System.EventHandler(this.其他出库ToolStripMenuItem_Click);
//
// 销售出库ToolStripMenuItem
@@ -133,6 +137,7 @@ namespace U8AppMain
this.销售出库ToolStripMenuItem.Name = "销售出库ToolStripMenuItem";
this.销售出库ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.销售出库ToolStripMenuItem.Text = "销售出库";
this.销售出库ToolStripMenuItem.Visible = false;
this.销售出库ToolStripMenuItem.Click += new System.EventHandler(this.销售出库ToolStripMenuItem_Click);
//
// 成品入库ToolStripMenuItem
@@ -140,6 +145,7 @@ namespace U8AppMain
this.成品入库ToolStripMenuItem.Name = "成品入库ToolStripMenuItem";
this.成品入库ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
this.成品入库ToolStripMenuItem.Text = "成品入库";
this.成品入库ToolStripMenuItem.Visible = false;
this.成品入库ToolStripMenuItem.Click += new System.EventHandler(this.成品入库ToolStripMenuItem_Click);
//
// 导入ToolStripMenuItem
@@ -180,11 +186,12 @@ namespace U8AppMain
this.打印ToolStripMenuItem.Name = "打印ToolStripMenuItem";
this.打印ToolStripMenuItem.Size = new System.Drawing.Size(45, 19);
this.打印ToolStripMenuItem.Text = "打印";
this.打印ToolStripMenuItem.Visible = false;
//
// 打印ToolStripMenuItem1
//
this.打印ToolStripMenuItem1.Name = "打印ToolStripMenuItem1";
this.打印ToolStripMenuItem1.Size = new System.Drawing.Size(180, 22);
this.打印ToolStripMenuItem1.Size = new System.Drawing.Size(100, 22);
this.打印ToolStripMenuItem1.Text = "打印";
this.打印ToolStripMenuItem1.Visible = false;
this.打印ToolStripMenuItem1.Click += new System.EventHandler(this.打印ToolStripMenuItem1_Click);
@@ -205,7 +212,7 @@ namespace U8AppMain
//
this.splitContainer1.Panel2.Controls.Add(this.richTextBox1);
this.splitContainer1.Size = new System.Drawing.Size(1200, 722);
this.splitContainer1.SplitterDistance = 450;
this.splitContainer1.SplitterDistance = 556;
this.splitContainer1.TabIndex = 0;
//
// dataGridView1
@@ -224,8 +231,9 @@ namespace U8AppMain
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.ReadOnly = true;
this.dataGridView1.RowTemplate.Height = 23;
this.dataGridView1.Size = new System.Drawing.Size(1200, 450);
this.dataGridView1.Size = new System.Drawing.Size(1200, 556);
this.dataGridView1.TabIndex = 0;
this.dataGridView1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellContentClick);
//
// richTextBox1
//
@@ -236,7 +244,7 @@ namespace U8AppMain
this.richTextBox1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.ReadOnly = true;
this.richTextBox1.Size = new System.Drawing.Size(1200, 268);
this.richTextBox1.Size = new System.Drawing.Size(1200, 162);
this.richTextBox1.TabIndex = 0;
this.richTextBox1.Text = "";
this.richTextBox1.TextChanged += new System.EventHandler(this.richTextBox1_TextChanged);
@@ -253,6 +261,7 @@ namespace U8AppMain
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.Name = "FrmMain";
this.Text = "U8导入";
this.Load += new System.EventHandler(this.FrmMain_Load);
this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout();
this.splitContainer1.Panel1.ResumeLayout(false);

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();
}
}
}
}

View File

@@ -16,7 +16,7 @@ namespace U8AppMain.Purchase
//public decimal price { get; set; }
//public decimal taxrate { get; set; }
public decimal taxrate { get; set; }
//public decimal taxprice { get; set; }

View File

@@ -37,7 +37,7 @@ namespace U8AppMain.Voucher
public bool Add(Vouch vouch)
{
string accid = NX.ERP.U8.U8LoginContext.Instance.cAcc_id;
string accid = NX.ERP.U8.U8LoginContext.Instance.AccID;
var conn = new SqlConnection(this._connStr);