diff --git a/NX.ERP.Model/NX.ERP.Model.csproj b/NX.ERP.Model/NX.ERP.Model.csproj index 42d23e4..078b36d 100644 --- a/NX.ERP.Model/NX.ERP.Model.csproj +++ b/NX.ERP.Model/NX.ERP.Model.csproj @@ -61,6 +61,7 @@ + diff --git a/NX.ERP.Model/Request/Arrival.cs b/NX.ERP.Model/Request/Arrival.cs new file mode 100644 index 0000000..2002459 --- /dev/null +++ b/NX.ERP.Model/Request/Arrival.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace NX.ERP.Model.Request +{ + public class Arrival:BaseModel + { + public string ArrivalNo { get; set; } + } +} diff --git a/NX.ERP.Model/Response/Purchase/Arrival.cs b/NX.ERP.Model/Response/Purchase/Arrival.cs index e40ba21..6902fc8 100644 --- a/NX.ERP.Model/Response/Purchase/Arrival.cs +++ b/NX.ERP.Model/Response/Purchase/Arrival.cs @@ -16,16 +16,22 @@ namespace NX.ERP.Model.Purchase private string supplierCode; private ICollection arrivalDetails = new List(); - public int Id { get => id; set => id = value; } - public string ArrivalCode { get => arrivalCode; set => arrivalCode = value; } - public DateTime Date { get => _date; set => _date = value; } - public ICollection Details { get => arrivalDetails; set => arrivalDetails = value; } + public int ArrivalId { get => id; set => id = value; } + public string ArrivalNo { get => arrivalCode; set => arrivalCode = value; } + public DateTime ArrivalDate { get => _date; set => _date = value; } + public ICollection ArrivalDtlLst { get => arrivalDetails; set => arrivalDetails = value; } + + public string PreparedBy { get; set; } + public string SupplierCode { get => supplierCode; set => supplierCode = value; } public double ExchRate { get; set; } public string ExchName { get; set; } + [Newtonsoft.Json.JsonIgnore] public string VenCode { get; set; } public double TaxRate { get; set; } + [Newtonsoft.Json.JsonIgnore] public string PTCode { get; set; } + [Newtonsoft.Json.JsonIgnore] public string BusType { get; set; } } diff --git a/NX.ERP.Model/Response/Purchase/ArrivalDetail.cs b/NX.ERP.Model/Response/Purchase/ArrivalDetail.cs index e51c8e0..d6fb63e 100644 --- a/NX.ERP.Model/Response/Purchase/ArrivalDetail.cs +++ b/NX.ERP.Model/Response/Purchase/ArrivalDetail.cs @@ -12,34 +12,42 @@ namespace NX.ERP.Model.Purchase { private int id; private string materielCode; - public int Id { get => id; set => id = value; } + public int ArrivalDtlId { get => id; set => id = value; } public int ArrivalID { get => arrivalID; set => arrivalID = value; } - public string MaterielCode { get => materielCode; set => materielCode = value; } + public string MaterialCode { get => materielCode; set => materielCode = value; } public string BatchNo { get => batchNo; set => batchNo = value; } public string UnitCode { get => unitCode; set => unitCode = value; } - public double Quantity { get => quantity; set => quantity = value; } + public double Qty { get => quantity; set => quantity = value; } /// /// 审批状态2 说明已经审核过了 /// - public int Iverifystateex { get => iverifystateex; set => iverifystateex = value; } + private int arrivalID; private string batchNo; private string unitCode; private double quantity; private int iverifystateex; - + [Newtonsoft.Json.JsonIgnore] public int posId { get; set; } + [Newtonsoft.Json.JsonIgnore] public string OrderCode { get; set; } + [Newtonsoft.Json.JsonIgnore] public int PoId { get; set; } + [Newtonsoft.Json.JsonIgnore] public double oricost { get; set; } + [Newtonsoft.Json.JsonIgnore] public double oritaxcost { get; set; } + [Newtonsoft.Json.JsonIgnore] public double orimoney { get; set; } + [Newtonsoft.Json.JsonIgnore] public double oritaxprice { get; set; } + [Newtonsoft.Json.JsonIgnore] public double orisum { get; set; } + [Newtonsoft.Json.JsonIgnore] + public int Iverifystateex { get => iverifystateex; set => iverifystateex = value; } - - + [Newtonsoft.Json.JsonIgnore] public double cost { get; set; } // b.ioricost as oricost,b.ioritaxcost as oritaxcost ,b.iorimoney as orimoney,b.oritaxprice as oritaxprice,b.iorisum as orisum, diff --git a/NX.ERP.U8/Purchase/ArrivalDAL.cs b/NX.ERP.U8/Purchase/ArrivalDAL.cs index a7b8a85..0a8b110 100644 --- a/NX.ERP.U8/Purchase/ArrivalDAL.cs +++ b/NX.ERP.U8/Purchase/ArrivalDAL.cs @@ -11,8 +11,7 @@ namespace NX.ERP.U8.Purchase { using (var conn = new System.Data.SqlClient.SqlConnection(U8LoginContext.Instance.Constr4Net)) { - - string strSQL = @"select a.id,a.cCode as ArrivalCode,A.cbustype AS busType,a.cptcode as PTCode,a.iTaxRate as TaxRate,a.iexchrate as Exchrate,cexch_name as ExchName,cVenCode as VenCode,a.dDate as date,A.cVenCode AS SupplierCode, + string strSQL = @"select a.id AS ArrivalId,a.cCode as ArrivalCode,A.cbustype AS busType,a.cptcode as PTCode,a.iTaxRate as TaxRate,a.iexchrate as Exchrate,cexch_name as ExchName,cVenCode as VenCode,a.dDate as ArrivalDate,A.cVenCode AS SupplierCode, B.Autoid as id,b.ID as ArrivalID, b.cInvCode AS MaterielCode, b.cBatch AS BatchNo, @@ -20,8 +19,7 @@ namespace NX.ERP.U8.Purchase B.iQuantity as Quantity,b.iposid as PosId ,B.CORDERCODE as OrderCode,C.POID as Poid from pu_ArrHead as a left join pu_arrbody as b on a.id=b.id - Left Join PO_Podetails C WITH (NOLOCK) ON B.iPOsID = C.ID - "; + Left Join PO_Podetails C WITH (NOLOCK) ON B.iPOsID = C.ID "; if (!string.IsNullOrEmpty(strWhere)) { strSQL += $" where {strWhere} "; @@ -30,16 +28,16 @@ namespace NX.ERP.U8.Purchase // return conn.Query(strSQL,null); var list = conn.Query(strSQL, (arrival, ArrivalDetail) => { - if (!lookup.TryGetValue(arrival.Id, out var _arrival)) + if (!lookup.TryGetValue(arrival.ArrivalId, out var _arrival)) { - lookup.Add(arrival.Id, arrival); + lookup.Add(arrival.ArrivalId, arrival); } else { arrival = _arrival; } - arrival.Details.Add(ArrivalDetail); + arrival.ArrivalDtlLst.Add(ArrivalDetail); return arrival; }, param, null, true, "id", 10, System.Data.CommandType.Text); return lookup.Values; @@ -52,6 +50,16 @@ namespace NX.ERP.U8.Purchase } + public IEnumerable Query(NX.ERP.Model.Request.Arrival arrival) + { + var where = ""; + if (!string.IsNullOrEmpty(arrival.ArrivalNo)) + { + where = " a.cCode like @Code "; + } + + return this.GetList(where, new { Code = $"%{arrival.ArrivalNo}%" }); + } public IEnumerable GetListByLastId(int Id) { diff --git a/NX.ERP.U8/Store/ProductInDAL.cs b/NX.ERP.U8/Store/ProductInDAL.cs index 8b4d27d..f3e4282 100644 --- a/NX.ERP.U8/Store/ProductInDAL.cs +++ b/NX.ERP.U8/Store/ProductInDAL.cs @@ -36,7 +36,6 @@ namespace NX.ERP.U8.Store headXml.setAttribute("ccode", "11"); headXml.setAttribute("ddate", storeIn.Date); headXml.setAttribute("cmaker", storeIn.Maker); - headXml.setAttribute("vt_id", new VT().GetDefaltVTID("0411")); headXml.setAttribute("editprop", "A"); headXml.setAttribute("cdepcode", ""); @@ -53,14 +52,13 @@ namespace NX.ERP.U8.Store IXMLDOMElement bodyXml; for (var n = 0; n < storeIn.Details.Count; n++) { - bodyXml = domBody.createElement("z:row"); var detail = storeIn.Details[n]; bodyXml.setAttribute("cinvcode", detail.InvCode); bodyXml.setAttribute("iquantity", detail.Quantity); var _cost = new MaterielDAL().GetCost(detail.InvCode, 0); bodyXml.setAttribute("iunitcost", _cost); - bodyXml.setAttribute("iprice", new NX.ERP.U8.Account.Accinformation().FormatMoney(_cost * detail.Quantity)); + bodyXml.setAttribute("iprice", new Account.Accinformation().FormatMoney(_cost * detail.Quantity)); bodyXml.setAttribute("irowno", n + 1); bodyXml.setAttribute("editprop", "A"); bodyXml.setAttribute("cbatch", detail.Batch); @@ -70,19 +68,14 @@ namespace NX.ERP.U8.Store headXml.setAttribute("iproorderid", momOrder.Id); domBody.selectSingleNode("//rs:data").appendChild(bodyXml); } - } - domHead.selectSingleNode("//rs:data").appendChild(headXml); - - try { return AddRdVoucher(voucherParameter); } catch (Exception err) { - throw err; } diff --git a/NX.ERP.U8/Store/PuStoreInDAL.cs b/NX.ERP.U8/Store/PuStoreInDAL.cs index 254b48c..5167ce3 100644 --- a/NX.ERP.U8/Store/PuStoreInDAL.cs +++ b/NX.ERP.U8/Store/PuStoreInDAL.cs @@ -58,9 +58,9 @@ namespace NX.ERP.U8.Store headXml.setAttribute("iexchrate", Arrival.ExchRate); headXml.setAttribute("cexch_name", Arrival.ExchName); headXml.setAttribute("cvencode", Arrival.VenCode); - headXml.setAttribute("carvcode", Arrival.ArrivalCode); - headXml.setAttribute("ipurarriveid", Arrival.Id); - headXml.setAttribute("darvdate", Arrival.Date); + headXml.setAttribute("carvcode", Arrival.ArrivalNo); + headXml.setAttribute("ipurarriveid", Arrival.ArrivalId); + headXml.setAttribute("darvdate", Arrival.ArrivalDate); headXml.setAttribute("itaxrate", Arrival.TaxRate); headXml.setAttribute("cptcode", Arrival.PTCode); @@ -68,7 +68,7 @@ namespace NX.ERP.U8.Store for (var n = 0; n < puStoreIn.Details.Count; n++) { var detail = puStoreIn.Details[n]; - var arrivalDetail = Arrival.Details.First(m => { return m.Id == detail.SorceDetailId; }); + var arrivalDetail = Arrival.ArrivalDtlLst.First(m => { return m.ArrivalID == detail.SorceDetailId; }); headXml.setAttribute("cordercode", arrivalDetail.OrderCode); // headXml.setAttribute("ipurorderid", arrivalDetail.PoId); bodyXml = domBody.createElement("z:row"); @@ -82,8 +82,8 @@ namespace NX.ERP.U8.Store bodyXml.setAttribute("cposition", detail.Position); // bodyXml.setAttribute("cposname", "B1Y1H001"); //货位,string类型 //iXMLDOMElement.setAttribute("carvcode", Arrival.ArrivalCode); - bodyXml.setAttribute("cbarvcode", Arrival.ArrivalCode); - bodyXml.setAttribute("ipurarriveid", Arrival.Id); + bodyXml.setAttribute("cbarvcode", Arrival.ArrivalNo); + bodyXml.setAttribute("ipurarriveid", Arrival.ArrivalId); bodyXml.setAttribute("iarrsid", detail.SorceDetailId); bodyXml.setAttribute("darvdate", DateTime.Today.ToShortDateString()); bodyXml.setAttribute("editprop", "A"); diff --git a/NX.ERP.WebAPi/App_Start/SwaggerConfig.cs b/NX.ERP.WebAPi/App_Start/SwaggerConfig.cs index fd5e64f..9942a40 100644 --- a/NX.ERP.WebAPi/App_Start/SwaggerConfig.cs +++ b/NX.ERP.WebAPi/App_Start/SwaggerConfig.cs @@ -79,7 +79,7 @@ namespace NX.ERP.WebAPi // }); // Set this flag to omit descriptions for any actions decorated with the Obsolete attribute - //c.IgnoreObsoleteActions(); + c.IgnoreObsoleteActions(); // Each operation be assigned one or more tags which are then used by consumers for various reasons. // For example, the swagger-ui groups operations according to the first tag of each operation. @@ -101,7 +101,7 @@ namespace NX.ERP.WebAPi // those comments into the generated docs and UI. You can enable this by providing the path to one or // more Xml comment files. // - // c.IncludeXmlComments(string.Format("{0}/bin/NX.ERP.WebAPi.xml", System.AppDomain.CurrentDomain.BaseDirectory)); + // c.IncludeXmlComments(string.Format("{0}/bin/NX.ERP.WebAPi.xml", System.AppDomain.CurrentDomain.BaseDirectory)); // Swashbuckle makes a best attempt at generating Swagger compliant JSON schemas for the various types // exposed in your API. However, there may be occasions when more control of the output is needed. diff --git a/NX.ERP.WebAPi/Controllers/Base/CustomerController.cs b/NX.ERP.WebAPi/Controllers/Base/CustomerController.cs index 6cb6535..4fabb77 100644 --- a/NX.ERP.WebAPi/Controllers/Base/CustomerController.cs +++ b/NX.ERP.WebAPi/Controllers/Base/CustomerController.cs @@ -20,7 +20,7 @@ namespace NX.ERP.WebAPi.Controllers /// /// // GET api/values - + [Obsolete] [Route("api/Customer/List")] [HttpGet] public IEnumerable List() diff --git a/NX.ERP.WebAPi/Controllers/Base/MaterielController.cs b/NX.ERP.WebAPi/Controllers/Base/MaterielController.cs index 53f882b..91d4a69 100644 --- a/NX.ERP.WebAPi/Controllers/Base/MaterielController.cs +++ b/NX.ERP.WebAPi/Controllers/Base/MaterielController.cs @@ -10,6 +10,7 @@ namespace NX.ERP.WebAPi.Controllers { public class MaterielController : ApiController { + [Obsolete] [Route("api/Materiel/List")] [HttpGet] public IEnumerable List() diff --git a/NX.ERP.WebAPi/Controllers/Base/MaterielTypeController.cs b/NX.ERP.WebAPi/Controllers/Base/MaterielTypeController.cs index a58919a..4eebf98 100644 --- a/NX.ERP.WebAPi/Controllers/Base/MaterielTypeController.cs +++ b/NX.ERP.WebAPi/Controllers/Base/MaterielTypeController.cs @@ -10,6 +10,7 @@ namespace NX.ERP.WebAPi.Controllers { public class MaterielTypeController:ApiController { + [Obsolete] [Route("api/MaterielType/List")] [HttpGet] public IEnumerable List() diff --git a/NX.ERP.WebAPi/Controllers/Base/PositionController.cs b/NX.ERP.WebAPi/Controllers/Base/PositionController.cs index 84522de..a437d6b 100644 --- a/NX.ERP.WebAPi/Controllers/Base/PositionController.cs +++ b/NX.ERP.WebAPi/Controllers/Base/PositionController.cs @@ -9,6 +9,7 @@ namespace NX.ERP.WebAPi.Controllers { public class PositionController : ApiController { + [Obsolete] [Route("api/Position/List")] [HttpGet] public IEnumerable List() diff --git a/NX.ERP.WebAPi/Controllers/Base/SupplierController.cs b/NX.ERP.WebAPi/Controllers/Base/SupplierController.cs index 8a03165..cf48547 100644 --- a/NX.ERP.WebAPi/Controllers/Base/SupplierController.cs +++ b/NX.ERP.WebAPi/Controllers/Base/SupplierController.cs @@ -10,6 +10,7 @@ namespace NX.ERP.WebAPi.Controllers { public class SupplierController : ApiController { + [Obsolete] [Route("api/Supplier/List")] [HttpGet] public IEnumerable List() diff --git a/NX.ERP.WebAPi/Controllers/Base/UnitController.cs b/NX.ERP.WebAPi/Controllers/Base/UnitController.cs index c3e2f49..87d6ee7 100644 --- a/NX.ERP.WebAPi/Controllers/Base/UnitController.cs +++ b/NX.ERP.WebAPi/Controllers/Base/UnitController.cs @@ -9,6 +9,7 @@ namespace NX.ERP.WebAPi.Controllers { public class UnitController : ApiController { + [Obsolete] [Route("api/Unit/List")] [HttpGet] public IEnumerable List() diff --git a/NX.ERP.WebAPi/Controllers/Base/WarehouseController.cs b/NX.ERP.WebAPi/Controllers/Base/WarehouseController.cs index ca48f7d..1a97463 100644 --- a/NX.ERP.WebAPi/Controllers/Base/WarehouseController.cs +++ b/NX.ERP.WebAPi/Controllers/Base/WarehouseController.cs @@ -9,6 +9,7 @@ namespace NX.ERP.WebAPi.Controllers { public class WarehouseController : ApiController { + [Obsolete] [Route("api/Warehouse/List")] [HttpGet] public IEnumerable List() diff --git a/NX.ERP.WebAPi/Controllers/MOM/MomOrderController.cs b/NX.ERP.WebAPi/Controllers/MOM/MomOrderController.cs index 71e6937..8b8829a 100644 --- a/NX.ERP.WebAPi/Controllers/MOM/MomOrderController.cs +++ b/NX.ERP.WebAPi/Controllers/MOM/MomOrderController.cs @@ -8,6 +8,7 @@ namespace NX.ERP.WebAPi.Controllers.MOM { public class MomOrderController : ApiController { + [Obsolete] [Route("api/MomOrder/List")] [HttpGet] public IEnumerable List() @@ -16,6 +17,7 @@ namespace NX.ERP.WebAPi.Controllers.MOM return customerDAL.GetList(); } + [Obsolete] [Route("api/MomOrder/list/{id}")] [HttpGet] public IEnumerable GetListByLastID(int id) @@ -23,7 +25,7 @@ namespace NX.ERP.WebAPi.Controllers.MOM var customerDAL = new NX.ERP.U8.Mom.MomOrderDAL(); return customerDAL.GetListByLastID(id); } - + [Obsolete] [Route("api/MomOrder/{Code}")] [HttpGet] public Model.MOM.MomOrder GetModel(string Code) diff --git a/NX.ERP.WebAPi/Controllers/Purchase/ArrivalController.cs b/NX.ERP.WebAPi/Controllers/Purchase/ArrivalController.cs index 1229361..8c48689 100644 --- a/NX.ERP.WebAPi/Controllers/Purchase/ArrivalController.cs +++ b/NX.ERP.WebAPi/Controllers/Purchase/ArrivalController.cs @@ -9,6 +9,7 @@ namespace NX.ERP.WebAPi.Controllers { public class ArrivalController : ApiController { + [Obsolete] [Route("api/Arrival/List")] // GET api/values [HttpGet] @@ -18,6 +19,17 @@ namespace NX.ERP.WebAPi.Controllers return customerDAL.GetList(); } + [Route("api/Arrival/Query")] + // GET api/values + [HttpPost] + public IEnumerable List([FromBody] NX.ERP.Model.Request.Arrival arrival) + { + var customerDAL = new ArrivalDAL(); + return customerDAL.Query(arrival); + } + + + [Obsolete] [Route("api/Arrival/{Code}")] [HttpGet] public Model.Purchase.Arrival Model(string Code) @@ -25,7 +37,7 @@ namespace NX.ERP.WebAPi.Controllers var customerDAL = new ArrivalDAL(); return customerDAL.GetModel(Code); } - + [Obsolete] [Route("api/Arrival/list/{id}")] [HttpGet] public IEnumerable GetListByLastID(int id) diff --git a/NX.ERP.WebAPi/Controllers/Sale/DispatchController.cs b/NX.ERP.WebAPi/Controllers/Sale/DispatchController.cs index 838d563..a1284f2 100644 --- a/NX.ERP.WebAPi/Controllers/Sale/DispatchController.cs +++ b/NX.ERP.WebAPi/Controllers/Sale/DispatchController.cs @@ -10,6 +10,7 @@ namespace NX.ERP.WebAPi.Controllers.Sale { public class DispatchController : ApiController { + [Obsolete] [Route("api/Dispatch/List")] // GET api/values [HttpGet] @@ -18,13 +19,14 @@ namespace NX.ERP.WebAPi.Controllers.Sale var customerDAL = new DispatchListDAL(); return customerDAL.GetList(); } - + [Obsolete] [HttpGet] public Model.Sale.DispatchList Model(int id) { var customerDAL = new DispatchListDAL(); return customerDAL.GetModel(id); } + [Obsolete] [Route("api/Dispatch/{Code}")] [HttpGet] public Model.Sale.DispatchList ModelByCode(string Code) @@ -32,6 +34,7 @@ namespace NX.ERP.WebAPi.Controllers.Sale var customerDAL = new DispatchListDAL(); return customerDAL.GetModel(Code); } + [Obsolete] [Route("api/Dispatch/List/{id}")] [HttpGet] public IEnumerable GetListByLastID(int id) diff --git a/NX.ERP.WebAPi/Controllers/Store/MaterielStoreOutController.cs b/NX.ERP.WebAPi/Controllers/Store/MaterielStoreOutController.cs index 6a71b7d..51f901e 100644 --- a/NX.ERP.WebAPi/Controllers/Store/MaterielStoreOutController.cs +++ b/NX.ERP.WebAPi/Controllers/Store/MaterielStoreOutController.cs @@ -6,8 +6,10 @@ using System.Web.Http; namespace NX.ERP.WebAPi.Controllers.Store { + public class MaterielStoreOutController:ApiController { + [Obsolete] [Route("api/MaterialOut/Add")] [HttpPost] diff --git a/NX.ERP.WebAPi/Controllers/Store/OtherStoreInController.cs b/NX.ERP.WebAPi/Controllers/Store/OtherStoreInController.cs index 6a7c74f..d8a86d5 100644 --- a/NX.ERP.WebAPi/Controllers/Store/OtherStoreInController.cs +++ b/NX.ERP.WebAPi/Controllers/Store/OtherStoreInController.cs @@ -6,8 +6,10 @@ using System.Web.Http; namespace NX.ERP.WebAPi.Controllers.Store { + public class OtherStoreInController:ApiController { + [Obsolete] [Route("api/OtherIn/Add")] [HttpPost] public string AddVoucher([FromBody] Model.Request.OtherStoreInOut storeIn) diff --git a/NX.ERP.WebAPi/Controllers/Store/OtherStoreOutController.cs b/NX.ERP.WebAPi/Controllers/Store/OtherStoreOutController.cs index 22c72e9..928c23e 100644 --- a/NX.ERP.WebAPi/Controllers/Store/OtherStoreOutController.cs +++ b/NX.ERP.WebAPi/Controllers/Store/OtherStoreOutController.cs @@ -6,8 +6,10 @@ using System.Web.Http; namespace NX.ERP.WebAPi.Controllers.Store { + public class OtherStoreOutController : ApiController { + [Obsolete] [Route("api/OtherOut/Add")] [HttpPost] public string AddVoucher([FromBody] Model.Request.OtherStoreInOut storeIn) diff --git a/NX.ERP.WebAPi/Controllers/Store/ProductStoreInController.cs b/NX.ERP.WebAPi/Controllers/Store/ProductStoreInController.cs index 159d477..2b664b5 100644 --- a/NX.ERP.WebAPi/Controllers/Store/ProductStoreInController.cs +++ b/NX.ERP.WebAPi/Controllers/Store/ProductStoreInController.cs @@ -6,8 +6,10 @@ using System.Web.Http; namespace NX.ERP.WebAPi.Controllers.Store { + public class ProductStoreInController: ApiController { + [Obsolete] [Route("api/ProductStoreIn/Add")] [HttpPost] public object AddVoucher([FromBody] Model.Request.ProductStoreIn storeIn) diff --git a/NX.ERP.WebAPi/Controllers/Store/PuStoreInController.cs b/NX.ERP.WebAPi/Controllers/Store/PuStoreInController.cs index 1655125..7640953 100644 --- a/NX.ERP.WebAPi/Controllers/Store/PuStoreInController.cs +++ b/NX.ERP.WebAPi/Controllers/Store/PuStoreInController.cs @@ -6,8 +6,10 @@ using System.Web.Http; namespace NX.ERP.WebAPi.Controllers.Store { + public class PuStoreInController : ApiController { + [Obsolete] [Route("api/PuStoreIn/Add")] [HttpPost] public object AddVoucher([FromBody] Model.Request.PuStoreIn storeIn) diff --git a/NX.ERP.WebAPi/Controllers/Store/SaleStoreOutController.cs b/NX.ERP.WebAPi/Controllers/Store/SaleStoreOutController.cs index 073f7da..122bdf7 100644 --- a/NX.ERP.WebAPi/Controllers/Store/SaleStoreOutController.cs +++ b/NX.ERP.WebAPi/Controllers/Store/SaleStoreOutController.cs @@ -6,8 +6,10 @@ using System.Web.Http; namespace NX.ERP.WebAPi.Controllers.Store { + public class SaleStoreOutController : ApiController { + [Obsolete] [Route("api/SaleStoreOut/Add")] [HttpPost] public object AddVoucher([FromBody] Model.Request.SaleStoreOut storeIn)