增加
This commit is contained in:
@@ -64,6 +64,10 @@
|
|||||||
<Compile Include="Request\OtherStoreInDetail.cs" />
|
<Compile Include="Request\OtherStoreInDetail.cs" />
|
||||||
<Compile Include="Request\OtherStoreOut.cs" />
|
<Compile Include="Request\OtherStoreOut.cs" />
|
||||||
<Compile Include="Request\OtherStoreOutDetail.cs" />
|
<Compile Include="Request\OtherStoreOutDetail.cs" />
|
||||||
|
<Compile Include="Request\ProductStoreIn.cs" />
|
||||||
|
<Compile Include="Request\ProductStoreInDetail.cs" />
|
||||||
|
<Compile Include="Request\SaleStoreOut.cs" />
|
||||||
|
<Compile Include="Request\SaleStoreOutDetail.cs" />
|
||||||
<Compile Include="Response\Store\MaterielStoreOut.cs" />
|
<Compile Include="Response\Store\MaterielStoreOut.cs" />
|
||||||
<Compile Include="Response\Store\MaterielStoreOutDetail.cs" />
|
<Compile Include="Response\Store\MaterielStoreOutDetail.cs" />
|
||||||
<Compile Include="Request\PuStoreIn.cs" />
|
<Compile Include="Request\PuStoreIn.cs" />
|
||||||
|
|||||||
16
NX.ERP.Model/Request/ProductStoreIn.cs
Normal file
16
NX.ERP.Model/Request/ProductStoreIn.cs
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace NX.ERP.Model.Request
|
||||||
|
{
|
||||||
|
public class ProductStoreIn
|
||||||
|
{
|
||||||
|
public DateTime Date { get; set; }
|
||||||
|
public string Source { get; set; }
|
||||||
|
public string SourceCode { get; set; }
|
||||||
|
public string WhCode { get; set; }
|
||||||
|
public IList<ProductStoreInDetail> Details { get; set; } = new List<ProductStoreInDetail>();
|
||||||
|
}
|
||||||
|
}
|
||||||
16
NX.ERP.Model/Request/ProductStoreInDetail.cs
Normal file
16
NX.ERP.Model/Request/ProductStoreInDetail.cs
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace NX.ERP.Model.Request
|
||||||
|
{
|
||||||
|
public class ProductStoreInDetail
|
||||||
|
{
|
||||||
|
public string InvCode { get; set; }
|
||||||
|
public int Quantity { get; set; }
|
||||||
|
public string Batch { get; set; }
|
||||||
|
public string Position { get; set; }
|
||||||
|
public int SourceDetailId { get; set; }
|
||||||
|
}
|
||||||
|
}
|
||||||
17
NX.ERP.Model/Request/SaleStoreOut.cs
Normal file
17
NX.ERP.Model/Request/SaleStoreOut.cs
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace NX.ERP.Model.Request
|
||||||
|
{
|
||||||
|
public class SaleStoreOut
|
||||||
|
{
|
||||||
|
public string Code { get; set; }
|
||||||
|
public string Source { get; set; }
|
||||||
|
public string SourceCode { get; set; }
|
||||||
|
public DateTime Date { get; set; }
|
||||||
|
public string WhCode { get; set; }
|
||||||
|
public IList<SaleStoreOutDetail> Details { get; set; } = new List<SaleStoreOutDetail>();
|
||||||
|
}
|
||||||
|
}
|
||||||
16
NX.ERP.Model/Request/SaleStoreOutDetail.cs
Normal file
16
NX.ERP.Model/Request/SaleStoreOutDetail.cs
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace NX.ERP.Model.Request
|
||||||
|
{
|
||||||
|
public class SaleStoreOutDetail
|
||||||
|
{
|
||||||
|
public string InvCode { get; set; }
|
||||||
|
public double Quantity { get; set; }
|
||||||
|
public string Position { get; set; }
|
||||||
|
public int SourceDetailId { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -5,6 +5,7 @@
|
|||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
|
||||||
</startup>
|
</startup>
|
||||||
<appSettings>
|
<appSettings>
|
||||||
|
<add key="eai_sender" value="003"/>
|
||||||
<!--修改账套请修改这里的配置-->
|
<!--修改账套请修改这里的配置-->
|
||||||
<!--<add key="url" value="http://192.168.0.242/U8EAI/import.asp"/>-->
|
<!--<add key="url" value="http://192.168.0.242/U8EAI/import.asp"/>-->
|
||||||
<!--<add key="connStr" value="Server=192.168.0.242 ;DataBase=UFDATA_003_2019;Uid=sa;Pwd=!@#qwe123;"/>-->
|
<!--<add key="connStr" value="Server=192.168.0.242 ;DataBase=UFDATA_003_2019;Uid=sa;Pwd=!@#qwe123;"/>-->
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ namespace U8AppMain.Bom
|
|||||||
|
|
||||||
//sender="003" receiver="u8" roottag="Bom" docid="971742630" proc="add" codeexchanged="N" exportneedexch="N" paginate="0" display="物料清单" family="生产制造" timestamp="0x000000000027B6E6"
|
//sender="003" receiver="u8" roottag="Bom" docid="971742630" proc="add" codeexchanged="N" exportneedexch="N" paginate="0" display="物料清单" family="生产制造" timestamp="0x000000000027B6E6"
|
||||||
[System.Xml.Serialization.XmlAttribute]
|
[System.Xml.Serialization.XmlAttribute]
|
||||||
public string sender { get; set; } = "003";
|
public string sender { get; set; } = System.Configuration.ConfigurationManager.AppSettings["eai_sender"];
|
||||||
[System.Xml.Serialization.XmlAttribute]
|
[System.Xml.Serialization.XmlAttribute]
|
||||||
public string receiver { get; set; } = "u8";
|
public string receiver { get; set; } = "u8";
|
||||||
[System.Xml.Serialization.XmlAttribute]
|
[System.Xml.Serialization.XmlAttribute]
|
||||||
|
|||||||
50
NX.ERP.U8.App/FrmMain.Designer.cs
generated
50
NX.ERP.U8.App/FrmMain.Designer.cs
generated
@@ -37,6 +37,8 @@ namespace U8AppMain
|
|||||||
this.材料出库单ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.材料出库单ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.其他入库ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.其他入库ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.其他出库ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.其他出库ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
this.销售出库ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
this.成品入库ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.导入ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.导入ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.ImportBom = new System.Windows.Forms.ToolStripMenuItem();
|
this.ImportBom = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.BtnPurchaseImport = new System.Windows.Forms.ToolStripMenuItem();
|
this.BtnPurchaseImport = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
@@ -46,9 +48,8 @@ namespace U8AppMain
|
|||||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||||
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
this.dataGridView1 = new System.Windows.Forms.DataGridView();
|
||||||
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
|
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
|
||||||
this.销售出库ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
||||||
this.成品入库ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
||||||
this.menuStrip1.SuspendLayout();
|
this.menuStrip1.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||||
this.splitContainer1.Panel1.SuspendLayout();
|
this.splitContainer1.Panel1.SuspendLayout();
|
||||||
this.splitContainer1.Panel2.SuspendLayout();
|
this.splitContainer1.Panel2.SuspendLayout();
|
||||||
this.splitContainer1.SuspendLayout();
|
this.splitContainer1.SuspendLayout();
|
||||||
@@ -96,6 +97,7 @@ namespace U8AppMain
|
|||||||
this.登录ToolStripMenuItem.Name = "登录ToolStripMenuItem";
|
this.登录ToolStripMenuItem.Name = "登录ToolStripMenuItem";
|
||||||
this.登录ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
this.登录ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||||
this.登录ToolStripMenuItem.Text = "登录";
|
this.登录ToolStripMenuItem.Text = "登录";
|
||||||
|
this.登录ToolStripMenuItem.Visible = false;
|
||||||
this.登录ToolStripMenuItem.Click += new System.EventHandler(this.登录ToolStripMenuItem_Click);
|
this.登录ToolStripMenuItem.Click += new System.EventHandler(this.登录ToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
// toolStripMenuItem2
|
// toolStripMenuItem2
|
||||||
@@ -103,6 +105,7 @@ namespace U8AppMain
|
|||||||
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
|
this.toolStripMenuItem2.Name = "toolStripMenuItem2";
|
||||||
this.toolStripMenuItem2.Size = new System.Drawing.Size(180, 22);
|
this.toolStripMenuItem2.Size = new System.Drawing.Size(180, 22);
|
||||||
this.toolStripMenuItem2.Text = "采购入库单";
|
this.toolStripMenuItem2.Text = "采购入库单";
|
||||||
|
this.toolStripMenuItem2.Visible = false;
|
||||||
this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click);
|
this.toolStripMenuItem2.Click += new System.EventHandler(this.toolStripMenuItem2_Click);
|
||||||
//
|
//
|
||||||
// 材料出库单ToolStripMenuItem
|
// 材料出库单ToolStripMenuItem
|
||||||
@@ -110,6 +113,7 @@ namespace U8AppMain
|
|||||||
this.材料出库单ToolStripMenuItem.Name = "材料出库单ToolStripMenuItem";
|
this.材料出库单ToolStripMenuItem.Name = "材料出库单ToolStripMenuItem";
|
||||||
this.材料出库单ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
this.材料出库单ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||||
this.材料出库单ToolStripMenuItem.Text = "材料出库单";
|
this.材料出库单ToolStripMenuItem.Text = "材料出库单";
|
||||||
|
this.材料出库单ToolStripMenuItem.Visible = false;
|
||||||
this.材料出库单ToolStripMenuItem.Click += new System.EventHandler(this.材料出库单ToolStripMenuItem_Click);
|
this.材料出库单ToolStripMenuItem.Click += new System.EventHandler(this.材料出库单ToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
// 其他入库ToolStripMenuItem
|
// 其他入库ToolStripMenuItem
|
||||||
@@ -117,6 +121,7 @@ namespace U8AppMain
|
|||||||
this.其他入库ToolStripMenuItem.Name = "其他入库ToolStripMenuItem";
|
this.其他入库ToolStripMenuItem.Name = "其他入库ToolStripMenuItem";
|
||||||
this.其他入库ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
this.其他入库ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||||
this.其他入库ToolStripMenuItem.Text = "其他入库";
|
this.其他入库ToolStripMenuItem.Text = "其他入库";
|
||||||
|
this.其他入库ToolStripMenuItem.Visible = false;
|
||||||
this.其他入库ToolStripMenuItem.Click += new System.EventHandler(this.其他入库ToolStripMenuItem_Click);
|
this.其他入库ToolStripMenuItem.Click += new System.EventHandler(this.其他入库ToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
// 其他出库ToolStripMenuItem
|
// 其他出库ToolStripMenuItem
|
||||||
@@ -124,8 +129,25 @@ namespace U8AppMain
|
|||||||
this.其他出库ToolStripMenuItem.Name = "其他出库ToolStripMenuItem";
|
this.其他出库ToolStripMenuItem.Name = "其他出库ToolStripMenuItem";
|
||||||
this.其他出库ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
this.其他出库ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||||
this.其他出库ToolStripMenuItem.Text = "其他出库";
|
this.其他出库ToolStripMenuItem.Text = "其他出库";
|
||||||
|
this.其他出库ToolStripMenuItem.Visible = false;
|
||||||
this.其他出库ToolStripMenuItem.Click += new System.EventHandler(this.其他出库ToolStripMenuItem_Click);
|
this.其他出库ToolStripMenuItem.Click += new System.EventHandler(this.其他出库ToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
|
// 销售出库ToolStripMenuItem
|
||||||
|
//
|
||||||
|
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
|
||||||
|
//
|
||||||
|
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
|
// 导入ToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.导入ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
this.导入ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||||
@@ -139,21 +161,21 @@ namespace U8AppMain
|
|||||||
// ImportBom
|
// ImportBom
|
||||||
//
|
//
|
||||||
this.ImportBom.Name = "ImportBom";
|
this.ImportBom.Name = "ImportBom";
|
||||||
this.ImportBom.Size = new System.Drawing.Size(113, 22);
|
this.ImportBom.Size = new System.Drawing.Size(180, 22);
|
||||||
this.ImportBom.Text = "BOM";
|
this.ImportBom.Text = "BOM";
|
||||||
this.ImportBom.Click += new System.EventHandler(this.ImportBom_Click);
|
this.ImportBom.Click += new System.EventHandler(this.ImportBom_Click);
|
||||||
//
|
//
|
||||||
// BtnPurchaseImport
|
// BtnPurchaseImport
|
||||||
//
|
//
|
||||||
this.BtnPurchaseImport.Name = "BtnPurchaseImport";
|
this.BtnPurchaseImport.Name = "BtnPurchaseImport";
|
||||||
this.BtnPurchaseImport.Size = new System.Drawing.Size(113, 22);
|
this.BtnPurchaseImport.Size = new System.Drawing.Size(180, 22);
|
||||||
this.BtnPurchaseImport.Text = "请购单";
|
this.BtnPurchaseImport.Text = "请购单";
|
||||||
this.BtnPurchaseImport.Click += new System.EventHandler(this.BtnPurchaseImport_Click);
|
this.BtnPurchaseImport.Click += new System.EventHandler(this.BtnPurchaseImport_Click);
|
||||||
//
|
//
|
||||||
// 领料单ToolStripMenuItem
|
// 领料单ToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.领料单ToolStripMenuItem.Name = "领料单ToolStripMenuItem";
|
this.领料单ToolStripMenuItem.Name = "领料单ToolStripMenuItem";
|
||||||
this.领料单ToolStripMenuItem.Size = new System.Drawing.Size(113, 22);
|
this.领料单ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||||
this.领料单ToolStripMenuItem.Text = "领料单";
|
this.领料单ToolStripMenuItem.Text = "领料单";
|
||||||
this.领料单ToolStripMenuItem.Click += new System.EventHandler(this.领料单ToolStripMenuItem_Click);
|
this.领料单ToolStripMenuItem.Click += new System.EventHandler(this.领料单ToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
@@ -168,8 +190,9 @@ namespace U8AppMain
|
|||||||
// 打印ToolStripMenuItem1
|
// 打印ToolStripMenuItem1
|
||||||
//
|
//
|
||||||
this.打印ToolStripMenuItem1.Name = "打印ToolStripMenuItem1";
|
this.打印ToolStripMenuItem1.Name = "打印ToolStripMenuItem1";
|
||||||
this.打印ToolStripMenuItem1.Size = new System.Drawing.Size(100, 22);
|
this.打印ToolStripMenuItem1.Size = new System.Drawing.Size(180, 22);
|
||||||
this.打印ToolStripMenuItem1.Text = "打印";
|
this.打印ToolStripMenuItem1.Text = "打印";
|
||||||
|
this.打印ToolStripMenuItem1.Visible = false;
|
||||||
this.打印ToolStripMenuItem1.Click += new System.EventHandler(this.打印ToolStripMenuItem1_Click);
|
this.打印ToolStripMenuItem1.Click += new System.EventHandler(this.打印ToolStripMenuItem1_Click);
|
||||||
//
|
//
|
||||||
// splitContainer1
|
// splitContainer1
|
||||||
@@ -224,20 +247,6 @@ namespace U8AppMain
|
|||||||
this.richTextBox1.Text = "";
|
this.richTextBox1.Text = "";
|
||||||
this.richTextBox1.TextChanged += new System.EventHandler(this.richTextBox1_TextChanged);
|
this.richTextBox1.TextChanged += new System.EventHandler(this.richTextBox1_TextChanged);
|
||||||
//
|
//
|
||||||
// 销售出库ToolStripMenuItem
|
|
||||||
//
|
|
||||||
this.销售出库ToolStripMenuItem.Name = "销售出库ToolStripMenuItem";
|
|
||||||
this.销售出库ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
|
||||||
this.销售出库ToolStripMenuItem.Text = "销售出库";
|
|
||||||
this.销售出库ToolStripMenuItem.Click += new System.EventHandler(this.销售出库ToolStripMenuItem_Click);
|
|
||||||
//
|
|
||||||
// 成品入库ToolStripMenuItem
|
|
||||||
//
|
|
||||||
this.成品入库ToolStripMenuItem.Name = "成品入库ToolStripMenuItem";
|
|
||||||
this.成品入库ToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
|
||||||
this.成品入库ToolStripMenuItem.Text = " 成品入库";
|
|
||||||
this.成品入库ToolStripMenuItem.Click += new System.EventHandler(this.成品入库ToolStripMenuItem_Click);
|
|
||||||
//
|
|
||||||
// FrmMain
|
// FrmMain
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
|
||||||
@@ -254,6 +263,7 @@ namespace U8AppMain
|
|||||||
this.menuStrip1.PerformLayout();
|
this.menuStrip1.PerformLayout();
|
||||||
this.splitContainer1.Panel1.ResumeLayout(false);
|
this.splitContainer1.Panel1.ResumeLayout(false);
|
||||||
this.splitContainer1.Panel2.ResumeLayout(false);
|
this.splitContainer1.Panel2.ResumeLayout(false);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
|
||||||
this.splitContainer1.ResumeLayout(false);
|
this.splitContainer1.ResumeLayout(false);
|
||||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
|
|||||||
@@ -398,22 +398,21 @@ namespace U8AppMain
|
|||||||
private void 销售出库ToolStripMenuItem_Click(object sender, EventArgs e)
|
private void 销售出库ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
var dal = new NX.ERP.U8.Store.SaleOutDAL();
|
var dal = new NX.ERP.U8.Store.SaleOutDAL();
|
||||||
dal.AddVoucher(new NX.ERP.Model.Store.SaleStoreOut()
|
dal.AddVoucher(new NX.ERP.Model.Request.SaleStoreOut()
|
||||||
{
|
{
|
||||||
Code = "222",
|
Code = "222",
|
||||||
Source = "发货单",
|
Source = "发货单",
|
||||||
SourceCode = "XSFH210100009",
|
SourceCode = "XSFH210100009",
|
||||||
WhCode = "1",
|
WhCode = "1",
|
||||||
Date = DateTime.Now,
|
Date = DateTime.Now,
|
||||||
Details = new List<NX.ERP.Model.Store.SaleStoreOutDetail>()
|
Details = new List<NX.ERP.Model.Request.SaleStoreOutDetail>()
|
||||||
{
|
{
|
||||||
new NX.ERP.Model.Store.SaleStoreOutDetail()
|
new NX.ERP.Model.Request.SaleStoreOutDetail()
|
||||||
{
|
{
|
||||||
InvCode="902112",
|
InvCode="902112",
|
||||||
Position="",
|
Position="",
|
||||||
Quantity=1,
|
Quantity=1,
|
||||||
SourceDetailId=2921
|
SourceDetailId=2921
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -423,14 +422,14 @@ namespace U8AppMain
|
|||||||
private void 成品入库ToolStripMenuItem_Click(object sender, EventArgs e)
|
private void 成品入库ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
var dal = new NX.ERP.U8.Store.ProductInDAL();
|
var dal = new NX.ERP.U8.Store.ProductInDAL();
|
||||||
dal.AddVoucher(new NX.ERP.Model.Store.ProductStoreIn()
|
dal.AddVoucher(new NX.ERP.Model.Request.ProductStoreIn()
|
||||||
{
|
{
|
||||||
Source = "生产订单",
|
Source = "生产订单",
|
||||||
SourceCode = "SCDD200900013",
|
SourceCode = "SCDD200900013",
|
||||||
Date = DateTime.Today,
|
Date = DateTime.Today,
|
||||||
WhCode = "1",
|
WhCode = "1",
|
||||||
Details = new List<NX.ERP.Model.Store.ProductStoreInDetail>() {
|
Details = new List<NX.ERP.Model.Request.ProductStoreInDetail>() {
|
||||||
new NX.ERP.Model.Store.ProductStoreInDetail()
|
new NX.ERP.Model.Request.ProductStoreInDetail()
|
||||||
{
|
{
|
||||||
Batch="",
|
Batch="",
|
||||||
InvCode="904005",
|
InvCode="904005",
|
||||||
|
|||||||
@@ -112,12 +112,12 @@
|
|||||||
<value>2.0</value>
|
<value>2.0</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<resheader name="reader">
|
<resheader name="reader">
|
||||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<resheader name="writer">
|
<resheader name="writer">
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
<metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>17, 17</value>
|
<value>17, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
</root>
|
</root>
|
||||||
@@ -14,6 +14,21 @@
|
|||||||
<TargetFrameworkProfile />
|
<TargetFrameworkProfile />
|
||||||
<NuGetPackageImportStamp>
|
<NuGetPackageImportStamp>
|
||||||
</NuGetPackageImportStamp>
|
</NuGetPackageImportStamp>
|
||||||
|
<PublishUrl>publish\</PublishUrl>
|
||||||
|
<Install>true</Install>
|
||||||
|
<InstallFrom>Disk</InstallFrom>
|
||||||
|
<UpdateEnabled>false</UpdateEnabled>
|
||||||
|
<UpdateMode>Foreground</UpdateMode>
|
||||||
|
<UpdateInterval>7</UpdateInterval>
|
||||||
|
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||||
|
<UpdatePeriodically>false</UpdatePeriodically>
|
||||||
|
<UpdateRequired>false</UpdateRequired>
|
||||||
|
<MapFileExtensions>true</MapFileExtensions>
|
||||||
|
<ApplicationRevision>0</ApplicationRevision>
|
||||||
|
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||||
|
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||||
|
<UseApplicationTrust>false</UseApplicationTrust>
|
||||||
|
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<PlatformTarget>x86</PlatformTarget>
|
<PlatformTarget>x86</PlatformTarget>
|
||||||
@@ -143,5 +158,12 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<WCFMetadata Include="Connected Services\" />
|
<WCFMetadata Include="Connected Services\" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||||
|
<Visible>False</Visible>
|
||||||
|
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||||
|
<Install>false</Install>
|
||||||
|
</BootstrapperPackage>
|
||||||
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
</Project>
|
</Project>
|
||||||
@@ -17,11 +17,11 @@ namespace U8AppMain.Purchase
|
|||||||
[System.Xml.Serialization.XmlAttribute]
|
[System.Xml.Serialization.XmlAttribute]
|
||||||
public string billtype { get; set; } = "";
|
public string billtype { get; set; } = "";
|
||||||
[System.Xml.Serialization.XmlAttribute]
|
[System.Xml.Serialization.XmlAttribute]
|
||||||
public string docid { get; set; } = "123";
|
public string docid { get; set; } = System.Configuration.ConfigurationManager.AppSettings["eai_sender"];
|
||||||
[System.Xml.Serialization.XmlAttribute]
|
[System.Xml.Serialization.XmlAttribute]
|
||||||
public string receiver { get; set; } = "u8";
|
public string receiver { get; set; } = "u8";
|
||||||
[System.Xml.Serialization.XmlAttribute]
|
[System.Xml.Serialization.XmlAttribute]
|
||||||
public string sender { get; set; } = "003";
|
public string sender { get; set; } = "003";//TODO
|
||||||
[System.Xml.Serialization.XmlAttribute]
|
[System.Xml.Serialization.XmlAttribute]
|
||||||
public string proc { get; set; } = "add";
|
public string proc { get; set; } = "add";
|
||||||
|
|
||||||
|
|||||||
@@ -37,6 +37,9 @@ namespace U8AppMain.Voucher
|
|||||||
public bool Add(Vouch vouch)
|
public bool Add(Vouch vouch)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
string accid = NX.ERP.U8.U8LoginContext.Instance.cAcc_id;
|
||||||
|
|
||||||
|
|
||||||
var conn = new SqlConnection(this._connStr);
|
var conn = new SqlConnection(this._connStr);
|
||||||
conn.Open();
|
conn.Open();
|
||||||
var trans = conn.BeginTransaction();
|
var trans = conn.BeginTransaction();
|
||||||
@@ -45,7 +48,7 @@ namespace U8AppMain.Voucher
|
|||||||
//获取ID
|
//获取ID
|
||||||
var idEnity = new IdEnity
|
var idEnity = new IdEnity
|
||||||
{
|
{
|
||||||
cAcc_Id = "003",
|
cAcc_Id = accid,//TODO
|
||||||
cVouchType = "mv",
|
cVouchType = "mv",
|
||||||
iAmount = vouch.Vouchs.Count()
|
iAmount = vouch.Vouchs.Count()
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using MSXML2;
|
using MSXML2;
|
||||||
using NX.ERP.Model.Store;
|
using NX.ERP.Model.Request;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
@@ -36,12 +36,12 @@ namespace NX.ERP.U8.Store
|
|||||||
headXml.setAttribute("ccode", "11");
|
headXml.setAttribute("ccode", "11");
|
||||||
headXml.setAttribute("ddate", storeIn.Date);
|
headXml.setAttribute("ddate", storeIn.Date);
|
||||||
headXml.setAttribute("cmaker", "");
|
headXml.setAttribute("cmaker", "");
|
||||||
|
|
||||||
headXml.setAttribute("vt_id", "63");
|
headXml.setAttribute("vt_id", "63");
|
||||||
headXml.setAttribute("editprop", "A");
|
headXml.setAttribute("editprop", "A");
|
||||||
headXml.setAttribute("cdepcode", "");
|
headXml.setAttribute("cdepcode", "");
|
||||||
headXml.setAttribute("cpersoncode", "");
|
headXml.setAttribute("cpersoncode", "");
|
||||||
headXml.setAttribute("crdcode", "");
|
headXml.setAttribute("crdcode", "102");
|
||||||
|
|
||||||
if (storeIn.Source == "生产订单")
|
if (storeIn.Source == "生产订单")
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using MSXML2;
|
using MSXML2;
|
||||||
using NX.ERP.Model.Store;
|
using NX.ERP.Model.Request;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|||||||
19
NX.ERP.WebAPi/Controllers/Store/ProductStoreInController.cs
Normal file
19
NX.ERP.WebAPi/Controllers/Store/ProductStoreInController.cs
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.Http;
|
||||||
|
|
||||||
|
namespace NX.ERP.WebAPi.Controllers.Store
|
||||||
|
{
|
||||||
|
public class ProductStoreInController: ApiController
|
||||||
|
{
|
||||||
|
[Route("api/ProductStoreIn/Add")]
|
||||||
|
[HttpPost]
|
||||||
|
public object AddVoucher([FromBody] Model.Request.ProductStoreIn storeIn)
|
||||||
|
{
|
||||||
|
var dal = new NX.ERP.U8.Store.ProductInDAL();
|
||||||
|
return new { Id = dal.AddVoucher(storeIn) };
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
19
NX.ERP.WebAPi/Controllers/Store/SaleStoreOutController.cs
Normal file
19
NX.ERP.WebAPi/Controllers/Store/SaleStoreOutController.cs
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.Http;
|
||||||
|
|
||||||
|
namespace NX.ERP.WebAPi.Controllers.Store
|
||||||
|
{
|
||||||
|
public class SaleStoreOutController : ApiController
|
||||||
|
{
|
||||||
|
[Route("api/SaleStoreOut/Add")]
|
||||||
|
[HttpPost]
|
||||||
|
public object AddVoucher([FromBody] Model.Request.SaleStoreOut storeIn)
|
||||||
|
{
|
||||||
|
var dal = new NX.ERP.U8.Store.SaleOutDAL();
|
||||||
|
return new { Id = dal.AddVoucher(storeIn) };
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -161,7 +161,9 @@
|
|||||||
<Compile Include="Controllers\Store\MaterielStoreOutController.cs" />
|
<Compile Include="Controllers\Store\MaterielStoreOutController.cs" />
|
||||||
<Compile Include="Controllers\Store\OtherStoreInController.cs" />
|
<Compile Include="Controllers\Store\OtherStoreInController.cs" />
|
||||||
<Compile Include="Controllers\Store\OtherStoreOutController.cs" />
|
<Compile Include="Controllers\Store\OtherStoreOutController.cs" />
|
||||||
|
<Compile Include="Controllers\Store\ProductStoreInController.cs" />
|
||||||
<Compile Include="Controllers\Store\PuStoreInController.cs" />
|
<Compile Include="Controllers\Store\PuStoreInController.cs" />
|
||||||
|
<Compile Include="Controllers\Store\SaleStoreOutController.cs" />
|
||||||
<Compile Include="Filters\ApiResultAttribute.cs" />
|
<Compile Include="Filters\ApiResultAttribute.cs" />
|
||||||
<Compile Include="Filters\ExceptionFilter.cs" />
|
<Compile Include="Filters\ExceptionFilter.cs" />
|
||||||
<Compile Include="Global.asax.cs">
|
<Compile Include="Global.asax.cs">
|
||||||
|
|||||||
Reference in New Issue
Block a user