修正代码
This commit is contained in:
@@ -8,12 +8,12 @@ namespace NX.ERP.Model.MOM
|
|||||||
public class MoAllocate
|
public class MoAllocate
|
||||||
{
|
{
|
||||||
private int id;
|
private int id;
|
||||||
private int invCode;
|
private string invCode;
|
||||||
private int qty;
|
private int qty;
|
||||||
private int modid;
|
private int modid;
|
||||||
|
|
||||||
public int Id { get => id; set => id = value; }
|
public int Id { get => id; set => id = value; }
|
||||||
public int InvCode { get => invCode; set => invCode = value; }
|
public string InvCode { get => invCode; set => invCode = value; }
|
||||||
public int Qty { get => qty; set => qty = value; }
|
public int Qty { get => qty; set => qty = value; }
|
||||||
public int ModId { get => modid; set => modid = value; }
|
public int ModId { get => modid; set => modid = value; }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,11 +5,11 @@ using System.Text;
|
|||||||
|
|
||||||
namespace NX.ERP.Model.Store
|
namespace NX.ERP.Model.Store
|
||||||
{
|
{
|
||||||
public class OtherStoreIn
|
public class OtherStoreInOut
|
||||||
{
|
{
|
||||||
public string Code { get; set; }
|
public string Code { get; set; }
|
||||||
public DateTime Date { get; set; }
|
public DateTime Date { get; set; }
|
||||||
public string WhCode { get; set; }
|
public string WhCode { get; set; }
|
||||||
public IList<OtherStoreInDetail> details = new List<OtherStoreInDetail>();
|
public IList<OtherStoreInOutDetail> details = new List<OtherStoreInOutDetail>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ using System.Text;
|
|||||||
|
|
||||||
namespace NX.ERP.Model.Store
|
namespace NX.ERP.Model.Store
|
||||||
{
|
{
|
||||||
public class OtherStoreInDetail
|
public class OtherStoreInOutDetail
|
||||||
{
|
{
|
||||||
public string InvCode { get; set; }
|
public string InvCode { get; set; }
|
||||||
public double Quantity { get; set; }
|
public double Quantity { get; set; }
|
||||||
|
|||||||
24
NX.ERP.U8.App/FrmMain.Designer.cs
generated
24
NX.ERP.U8.App/FrmMain.Designer.cs
generated
@@ -35,6 +35,7 @@ namespace U8AppMain
|
|||||||
this.登录ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.登录ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem();
|
this.toolStripMenuItem2 = 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();
|
||||||
@@ -44,7 +45,7 @@ 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();
|
||||||
this.splitContainer1.Panel1.SuspendLayout();
|
this.splitContainer1.Panel1.SuspendLayout();
|
||||||
this.splitContainer1.Panel2.SuspendLayout();
|
this.splitContainer1.Panel2.SuspendLayout();
|
||||||
@@ -73,7 +74,8 @@ namespace U8AppMain
|
|||||||
this.登录ToolStripMenuItem,
|
this.登录ToolStripMenuItem,
|
||||||
this.toolStripMenuItem2,
|
this.toolStripMenuItem2,
|
||||||
this.材料出库单ToolStripMenuItem,
|
this.材料出库单ToolStripMenuItem,
|
||||||
this.其他入库ToolStripMenuItem});
|
this.其他入库ToolStripMenuItem,
|
||||||
|
this.其他出库ToolStripMenuItem});
|
||||||
this.操作ToolStripMenuItem.Name = "操作ToolStripMenuItem";
|
this.操作ToolStripMenuItem.Name = "操作ToolStripMenuItem";
|
||||||
this.操作ToolStripMenuItem.Size = new System.Drawing.Size(45, 19);
|
this.操作ToolStripMenuItem.Size = new System.Drawing.Size(45, 19);
|
||||||
this.操作ToolStripMenuItem.Text = "文件";
|
this.操作ToolStripMenuItem.Text = "文件";
|
||||||
@@ -106,6 +108,13 @@ namespace U8AppMain
|
|||||||
this.材料出库单ToolStripMenuItem.Text = "材料出库单";
|
this.材料出库单ToolStripMenuItem.Text = "材料出库单";
|
||||||
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.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[] {
|
||||||
@@ -204,12 +213,12 @@ 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
|
// 其他出库ToolStripMenuItem
|
||||||
//
|
//
|
||||||
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.Click += new System.EventHandler(this.其他入库ToolStripMenuItem_Click);
|
this.其他出库ToolStripMenuItem.Click += new System.EventHandler(this.其他出库ToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
// FrmMain
|
// FrmMain
|
||||||
//
|
//
|
||||||
@@ -251,6 +260,7 @@ namespace U8AppMain
|
|||||||
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2;
|
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2;
|
||||||
private System.Windows.Forms.ToolStripMenuItem 材料出库单ToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem 材料出库单ToolStripMenuItem;
|
||||||
private System.Windows.Forms.ToolStripMenuItem 其他入库ToolStripMenuItem;
|
private System.Windows.Forms.ToolStripMenuItem 其他入库ToolStripMenuItem;
|
||||||
|
private System.Windows.Forms.ToolStripMenuItem 其他出库ToolStripMenuItem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -361,14 +361,14 @@ namespace U8AppMain
|
|||||||
private void 其他入库ToolStripMenuItem_Click(object sender, EventArgs e)
|
private void 其他入库ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
var a = new NX.ERP.U8.Store.OtherStoreInDAL();
|
var a = new NX.ERP.U8.Store.OtherStoreInDAL();
|
||||||
a.AddVocher(new NX.ERP.Model.Store.OtherStoreIn()
|
a.AddVocher(new NX.ERP.Model.Store.OtherStoreInOut()
|
||||||
{
|
{
|
||||||
Date = DateTime.Today,
|
Date = DateTime.Today,
|
||||||
Code = "111",
|
Code = "111",
|
||||||
WhCode = "2",
|
WhCode = "2",
|
||||||
details = new List<NX.ERP.Model.Store.OtherStoreInDetail>()
|
details = new List<NX.ERP.Model.Store.OtherStoreInOutDetail>()
|
||||||
{
|
{
|
||||||
new NX.ERP.Model.Store.OtherStoreInDetail()
|
new NX.ERP.Model.Store.OtherStoreInOutDetail()
|
||||||
{
|
{
|
||||||
InvCode="218174",
|
InvCode="218174",
|
||||||
Quantity=2,
|
Quantity=2,
|
||||||
@@ -379,5 +379,26 @@ namespace U8AppMain
|
|||||||
}); ;
|
}); ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void 其他出库ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
var a = new NX.ERP.U8.Store.OtherStoreOutDAL();
|
||||||
|
a.AddVocher(new NX.ERP.Model.Store.OtherStoreInOut()
|
||||||
|
{
|
||||||
|
Date = DateTime.Today,
|
||||||
|
Code = "111",
|
||||||
|
WhCode = "2",
|
||||||
|
details = new List<NX.ERP.Model.Store.OtherStoreInOutDetail>()
|
||||||
|
{
|
||||||
|
new NX.ERP.Model.Store.OtherStoreInOutDetail()
|
||||||
|
{
|
||||||
|
InvCode="218174",
|
||||||
|
Quantity=4,
|
||||||
|
Position="002070206"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}); ;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,5 +23,11 @@ namespace NX.ERP.U8.Base
|
|||||||
return conn.Query<Bin>(sql, Params);
|
return conn.Query<Bin>(sql, Params);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public IEnumerable<Bin> GetListByWhCode(string Code)
|
||||||
|
{
|
||||||
|
return this.GetList(" cWhCode=@Code", new { Code });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ using System.Text;
|
|||||||
using Dapper;
|
using Dapper;
|
||||||
namespace NX.ERP.U8.Mom
|
namespace NX.ERP.U8.Mom
|
||||||
{
|
{
|
||||||
public class MomOrderDetailDAL
|
public class MomOrderDAL
|
||||||
{
|
{
|
||||||
public IEnumerable<Model.MOM.MomOrder> GetList(string strWhere = "", object param = null)
|
public IEnumerable<Model.MOM.MomOrder> GetList(string strWhere = "", object param = null)
|
||||||
{
|
{
|
||||||
@@ -59,6 +59,10 @@ namespace NX.ERP.U8.Mom
|
|||||||
return this.GetList("a.moCode=@Code", new { Code }).FirstOrDefault();
|
return this.GetList("a.moCode=@Code", new { Code }).FirstOrDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public IEnumerable<Model.MOM.MomOrder> GetListByLastID(int Id)
|
||||||
|
{
|
||||||
|
return this.GetList("a.moid >= @id", new { Id });
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
<Compile Include="Base\MaterielTypeDAL.cs" />
|
<Compile Include="Base\MaterielTypeDAL.cs" />
|
||||||
<Compile Include="FileHelp.cs" />
|
<Compile Include="FileHelp.cs" />
|
||||||
<Compile Include="FormatHelp.cs" />
|
<Compile Include="FormatHelp.cs" />
|
||||||
<Compile Include="Mom\MomOrderDetailDAL.cs" />
|
<Compile Include="Mom\MomOrderDAL.cs" />
|
||||||
<Compile Include="Purchase\ArrivalDAL.cs" />
|
<Compile Include="Purchase\ArrivalDAL.cs" />
|
||||||
<Compile Include="Store\MaterielStoreOutDAL.cs" />
|
<Compile Include="Store\MaterielStoreOutDAL.cs" />
|
||||||
<Compile Include="Store\OtherStoreInDAL.cs" />
|
<Compile Include="Store\OtherStoreInDAL.cs" />
|
||||||
|
|||||||
@@ -53,6 +53,14 @@ namespace NX.ERP.U8.Purchase
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public IEnumerable<Model.Purchase.Arrival> GetListByLastId(int Id)
|
||||||
|
{
|
||||||
|
|
||||||
|
return this.GetList(" a.id>=@Id ", new { Id });
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public Model.Purchase.Arrival GetModel(string Code)
|
public Model.Purchase.Arrival GetModel(string Code)
|
||||||
{
|
{
|
||||||
return this.GetList(" a.cCode=@Code ", new { Code }).FirstOrDefault();
|
return this.GetList(" a.cCode=@Code ", new { Code }).FirstOrDefault();
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ namespace NX.ERP.U8.Store
|
|||||||
if (storeOut.Source == "生产订单")
|
if (storeOut.Source == "生产订单")
|
||||||
{
|
{
|
||||||
headXml.setAttribute("cbustype", "领料");
|
headXml.setAttribute("cbustype", "领料");
|
||||||
var Order = new Mom.MomOrderDetailDAL().GetModel(storeOut.SourceCode);
|
var Order = new Mom.MomOrderDAL().GetModel(storeOut.SourceCode);
|
||||||
headXml.setAttribute("iproorderid", Order.Id);
|
headXml.setAttribute("iproorderid", Order.Id);
|
||||||
headXml.setAttribute("cmpocode", Order.Code);
|
headXml.setAttribute("cmpocode", Order.Code);
|
||||||
headXml.setAttribute("cpspcode", "904008");
|
headXml.setAttribute("cpspcode", "904008");
|
||||||
|
|||||||
@@ -8,13 +8,13 @@ namespace NX.ERP.U8.Store
|
|||||||
{
|
{
|
||||||
public class OtherStoreInDAL : VoucherBase
|
public class OtherStoreInDAL : VoucherBase
|
||||||
{
|
{
|
||||||
public OtherStoreInDAL() : base("09")
|
public OtherStoreInDAL() : base("08")
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public string AddVocher(Model.Store.OtherStoreIn storeIn)
|
public string AddVocher(Model.Store.OtherStoreInOut storeIn)
|
||||||
{
|
{
|
||||||
|
|
||||||
VoucherParameter voucherParameter = new VoucherParameter
|
VoucherParameter voucherParameter = new VoucherParameter
|
||||||
|
|||||||
@@ -1,15 +1,97 @@
|
|||||||
using System;
|
using MSXML2;
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace NX.ERP.U8.Store
|
namespace NX.ERP.U8.Store
|
||||||
{
|
{
|
||||||
public class OtherStoreOutDAL:VoucherBase
|
public class OtherStoreOutDAL : VoucherBase
|
||||||
{
|
{
|
||||||
public OtherStoreOutDAL():base("09")
|
public OtherStoreOutDAL() : base("09")
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
public string AddVocher(Model.Store.OtherStoreInOut storeIn)
|
||||||
|
{
|
||||||
|
|
||||||
|
VoucherParameter voucherParameter = new VoucherParameter
|
||||||
|
{
|
||||||
|
VoucherType = this.VoucherID,
|
||||||
|
DomHead = new DOMDocumentClass(),
|
||||||
|
DomBody = new DOMDocumentClass()
|
||||||
|
};
|
||||||
|
DOMDocument domHead = voucherParameter.DomHead;
|
||||||
|
DOMDocument domBody = voucherParameter.DomBody;
|
||||||
|
voucherParameter.DomHead.loadXML(HeadTemplate);
|
||||||
|
voucherParameter.DomBody.loadXML(BodyTemplate);
|
||||||
|
IXMLDOMElement headXml = domHead.createElement("z:row");
|
||||||
|
|
||||||
|
|
||||||
|
headXml.setAttribute("bpufirst", "0");
|
||||||
|
headXml.setAttribute("bisstqc", "0");
|
||||||
|
headXml.setAttribute("bomfirst", "0");
|
||||||
|
headXml.setAttribute("biafirst", "0");
|
||||||
|
headXml.setAttribute("brdflag", 1);
|
||||||
|
headXml.setAttribute("ccode", storeIn.Code);
|
||||||
|
headXml.setAttribute("ddate", storeIn.Date);
|
||||||
|
headXml.setAttribute("cmaker", "/");
|
||||||
|
headXml.setAttribute("cvouchtype", this.VoucherID);
|
||||||
|
headXml.setAttribute("vt_id", "");
|
||||||
|
headXml.setAttribute("editprop", "A");
|
||||||
|
headXml.setAttribute("cdepcode", "");
|
||||||
|
headXml.setAttribute("cpersoncode", "");
|
||||||
|
headXml.setAttribute("crdcode", "");
|
||||||
|
|
||||||
|
headXml.setAttribute("csource", "库存");
|
||||||
|
headXml.setAttribute("cwhcode", storeIn.WhCode);
|
||||||
|
headXml.setAttribute("cbustype", "其他出库");
|
||||||
|
headXml.setAttribute("cmemo", "");
|
||||||
|
|
||||||
|
|
||||||
|
IXMLDOMElement bodyXml;
|
||||||
|
for (var n = 0; n < storeIn.details.Count(); n++)
|
||||||
|
{
|
||||||
|
var detail = storeIn.details[n];
|
||||||
|
//var arrivalDetail = Arrival.ArrivalDetails.First(m => { return m.Id == detail.SorceDetailId; });
|
||||||
|
//headXml.setAttribute("cordercode", arrivalDetail.OrderCode);
|
||||||
|
// headXml.setAttribute("ipurorderid", arrivalDetail.PoId);
|
||||||
|
bodyXml = domBody.createElement("z:row");
|
||||||
|
bodyXml.setAttribute("cinvcode", detail.InvCode);
|
||||||
|
bodyXml.setAttribute("iquantity", detail.Quantity);
|
||||||
|
bodyXml.setAttribute("irowno", n + 1);
|
||||||
|
|
||||||
|
bodyXml.setAttribute("cbatch", "");
|
||||||
|
|
||||||
|
bodyXml.setAttribute("cposition", detail.Position);
|
||||||
|
bodyXml.setAttribute("cvmivencode", "");
|
||||||
|
bodyXml.setAttribute("dmadedate", "");
|
||||||
|
bodyXml.setAttribute("dvdate", "");
|
||||||
|
bodyXml.setAttribute("iexpiratdatecalcu", "");
|
||||||
|
bodyXml.setAttribute("cmassunit", "");
|
||||||
|
bodyXml.setAttribute("imassdate", "");
|
||||||
|
bodyXml.setAttribute("cexpirationdate", "");
|
||||||
|
bodyXml.setAttribute("dexpirationdate", "");
|
||||||
|
bodyXml.setAttribute("citem_class", "");
|
||||||
|
bodyXml.setAttribute("citemcode", "");
|
||||||
|
bodyXml.setAttribute("cbmemo", "");
|
||||||
|
bodyXml.setAttribute("editprop", "A");
|
||||||
|
domBody.selectSingleNode("//rs:data").appendChild(bodyXml);
|
||||||
|
|
||||||
|
}
|
||||||
|
domHead.selectSingleNode("//rs:data").appendChild(headXml);
|
||||||
|
var str = voucherParameter.DomBody.xml;
|
||||||
|
Console.WriteLine(str);
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return U8LoginContext.Instance.AddRdVoucher("U8API/PuStoreIn/Add", voucherParameter);
|
||||||
|
}
|
||||||
|
catch (Exception err)
|
||||||
|
{
|
||||||
|
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,5 +16,13 @@ namespace NX.ERP.WebAPi.Controllers
|
|||||||
return binDAL.GetList();
|
return binDAL.GetList();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
[HttpGet]
|
||||||
|
public IEnumerable<Model.Bin> GetList(string Code)
|
||||||
|
{
|
||||||
|
var binDAL = new BinDAL();
|
||||||
|
return binDAL.GetListByWhCode(Code);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
28
NX.ERP.WebAPi/Controllers/MOM/MomOrderController.cs
Normal file
28
NX.ERP.WebAPi/Controllers/MOM/MomOrderController.cs
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.Http;
|
||||||
|
|
||||||
|
namespace NX.ERP.WebAPi.Controllers.MOM
|
||||||
|
{
|
||||||
|
public class MomOrderController : ApiController
|
||||||
|
{
|
||||||
|
[HttpGet]
|
||||||
|
public IEnumerable<Model.MOM.MomOrder> List()
|
||||||
|
{
|
||||||
|
var customerDAL = new NX.ERP.U8.Mom.MomOrderDAL();
|
||||||
|
return customerDAL.GetList();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
[HttpGet]
|
||||||
|
public IEnumerable<Model.MOM.MomOrder> GetListByLastID(int Code)
|
||||||
|
{
|
||||||
|
var customerDAL = new NX.ERP.U8.Mom.MomOrderDAL();
|
||||||
|
return customerDAL.GetListByLastID(Code);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -9,23 +9,30 @@ namespace NX.ERP.WebAPi.Controllers
|
|||||||
{
|
{
|
||||||
public class ArrivalController : ApiController
|
public class ArrivalController : ApiController
|
||||||
{
|
{
|
||||||
|
|
||||||
// GET api/values
|
// GET api/values
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
public IEnumerable<Model.Purchase.Arrival> List()
|
public IEnumerable<Model.Purchase.Arrival> List()
|
||||||
{
|
{
|
||||||
var customerDAL = new ArrivalDAL();
|
var customerDAL = new ArrivalDAL();
|
||||||
return customerDAL.GetList();
|
return customerDAL.GetList();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
public Model.Purchase.Arrival Model(string Code)
|
public Model.Purchase.Arrival Model(string Code)
|
||||||
{
|
{
|
||||||
var customerDAL = new ArrivalDAL();
|
var customerDAL = new ArrivalDAL();
|
||||||
return customerDAL.GetModel(Code);
|
return customerDAL.GetModel(Code);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
[HttpGet]
|
||||||
|
public IEnumerable<Model.Purchase.Arrival> GetListByLastID(int Code)
|
||||||
|
{
|
||||||
|
var customerDAL = new ArrivalDAL();
|
||||||
|
return customerDAL.GetListByLastId(Code);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -127,15 +127,16 @@
|
|||||||
<Compile Include="App_Start\FilterConfig.cs" />
|
<Compile Include="App_Start\FilterConfig.cs" />
|
||||||
<Compile Include="App_Start\RouteConfig.cs" />
|
<Compile Include="App_Start\RouteConfig.cs" />
|
||||||
<Compile Include="App_Start\WebApiConfig.cs" />
|
<Compile Include="App_Start\WebApiConfig.cs" />
|
||||||
<Compile Include="Controllers\ArrivalController.cs" />
|
<Compile Include="Controllers\MOM\MomOrderController.cs" />
|
||||||
<Compile Include="Controllers\HomeController.cs" />
|
<Compile Include="Controllers\Purchase\ArrivalController.cs" />
|
||||||
<Compile Include="Controllers\CustomerController.cs" />
|
<Compile Include="Controllers\Base\HomeController.cs" />
|
||||||
<Compile Include="Controllers\MaterielController.cs" />
|
<Compile Include="Controllers\Base\CustomerController.cs" />
|
||||||
<Compile Include="Controllers\MaterielTypeController.cs" />
|
<Compile Include="Controllers\Base\MaterielController.cs" />
|
||||||
<Compile Include="Controllers\PositionController.cs" />
|
<Compile Include="Controllers\Base\MaterielTypeController.cs" />
|
||||||
<Compile Include="Controllers\SupplierController.cs" />
|
<Compile Include="Controllers\Base\PositionController.cs" />
|
||||||
<Compile Include="Controllers\UnitController.cs" />
|
<Compile Include="Controllers\Base\SupplierController.cs" />
|
||||||
<Compile Include="Controllers\WarehouseController.cs" />
|
<Compile Include="Controllers\Base\UnitController.cs" />
|
||||||
|
<Compile Include="Controllers\Base\WarehouseController.cs" />
|
||||||
<Compile Include="Global.asax.cs">
|
<Compile Include="Global.asax.cs">
|
||||||
<DependentUpon>Global.asax</DependentUpon>
|
<DependentUpon>Global.asax</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
@@ -154,6 +155,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Folder Include="App_Data\" />
|
<Folder Include="App_Data\" />
|
||||||
|
<Folder Include="Controllers\Store\" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="packages.config" />
|
<None Include="packages.config" />
|
||||||
|
|||||||
Reference in New Issue
Block a user