修改更新接口
This commit is contained in:
@@ -24,5 +24,8 @@ namespace NX.ERP.Model
|
|||||||
|
|
||||||
|
|
||||||
public string BarCode { get => _cBarCode; set => _cBarCode = value; }
|
public string BarCode { get => _cBarCode; set => _cBarCode = value; }
|
||||||
|
|
||||||
|
|
||||||
|
public long Pubufts { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,5 +19,8 @@ namespace NX.ERP.Model
|
|||||||
public string Contract { get => contract; set => contract = value; }
|
public string Contract { get => contract; set => contract = value; }
|
||||||
public string ContractPhone { get => contractPhone; set => contractPhone = value; }
|
public string ContractPhone { get => contractPhone; set => contractPhone = value; }
|
||||||
public string CustomerName { get => customerName; set => customerName = value; }
|
public string CustomerName { get => customerName; set => customerName = value; }
|
||||||
|
|
||||||
|
|
||||||
|
public long Pubufts { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ namespace NX.ERP.Model
|
|||||||
public string MaterialCode { get => _code; set => _code = value; }
|
public string MaterialCode { get => _code; set => _code = value; }
|
||||||
public string MaterialName { get => _name; set => _name = value; }
|
public string MaterialName { get => _name; set => _name = value; }
|
||||||
|
|
||||||
|
public long Pubufts { get; set; }
|
||||||
public string MaterialTypeCode { get; set; }
|
public string MaterialTypeCode { get; set; }
|
||||||
|
|
||||||
public string SpecsModel { get; set; }
|
public string SpecsModel { get; set; }
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ namespace NX.ERP.Model
|
|||||||
|
|
||||||
|
|
||||||
public bool ProxyForeign { get; set; }
|
public bool ProxyForeign { get; set; }
|
||||||
|
public long Pubufts { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,5 +19,8 @@ namespace NX.ERP.Model
|
|||||||
public string WarehouseAdmin { get; set; }
|
public string WarehouseAdmin { get; set; }
|
||||||
public string Contacts { get; set; }
|
public string Contacts { get; set; }
|
||||||
public string Telephone { get; set; }
|
public string Telephone { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
public long Pubufts { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ namespace NX.ERP.U8.Base
|
|||||||
using (var conn = U8LoginContext.Instance.Connection)
|
using (var conn = U8LoginContext.Instance.Connection)
|
||||||
{
|
{
|
||||||
var sql = @"select cPosCode as BinCode,cPosName as BinName,iPosGrade,bPosEnd,cWhCode as WarehouseCode,
|
var sql = @"select cPosCode as BinCode,cPosName as BinName,iPosGrade,bPosEnd,cWhCode as WarehouseCode,
|
||||||
iMaxCubage as VolumeLimit, iMaxweight as WeightLimit,cMemo,cBarCode from Position";
|
iMaxCubage as VolumeLimit, iMaxweight as WeightLimit,cMemo,cBarCode,CONVERT(BIGINT,pubufts) AS pubufts from Position";
|
||||||
if (!string.IsNullOrEmpty(strwhere))
|
if (!string.IsNullOrEmpty(strwhere))
|
||||||
{
|
{
|
||||||
sql += $" where {strwhere}";
|
sql += $" where {strwhere}";
|
||||||
@@ -24,7 +24,12 @@ namespace NX.ERP.U8.Base
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public IEnumerable<Bin> GetList(long Pubufts)
|
||||||
|
{
|
||||||
|
|
||||||
|
return this.GetList("CONVERT(BIGINT,pubufts) > @Pubufts", new { Pubufts });
|
||||||
|
}
|
||||||
|
|
||||||
public IEnumerable<Bin> GetListByWhCode(string Code)
|
public IEnumerable<Bin> GetListByWhCode(string Code)
|
||||||
{
|
{
|
||||||
@@ -50,7 +55,7 @@ namespace NX.ERP.U8.Base
|
|||||||
return this.GetList(string.Join(" and ", where.ToArray()), new
|
return this.GetList(string.Join(" and ", where.ToArray()), new
|
||||||
{
|
{
|
||||||
BinCode = $"%{Param.BinCode}%",
|
BinCode = $"%{Param.BinCode}%",
|
||||||
WarehouseCode=$"%{Param.WarehouseCode}%"
|
WarehouseCode = $"%{Param.WarehouseCode}%"
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ namespace NX.ERP.U8
|
|||||||
cCusName AS CustomerName,
|
cCusName AS CustomerName,
|
||||||
cCusPostCode AS PostalCode,
|
cCusPostCode AS PostalCode,
|
||||||
cCusAddress AS Address,
|
cCusAddress AS Address,
|
||||||
|
CONVERT(BIGINT,pubufts) as pubufts,
|
||||||
|
|
||||||
cCusPerson AS Contract,cCusPhone AS ContractPhone from Customer ";
|
cCusPerson AS Contract,cCusPhone AS ContractPhone from Customer ";
|
||||||
if (!string.IsNullOrEmpty(strWhere))
|
if (!string.IsNullOrEmpty(strWhere))
|
||||||
{
|
{
|
||||||
@@ -29,6 +31,20 @@ namespace NX.ERP.U8
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public IEnumerable<Customer> GetList(long Pubufts)
|
||||||
|
{
|
||||||
|
|
||||||
|
return this.GetList("CONVERT(BIGINT,pubufts) > @Pubufts", new { Pubufts });
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public IEnumerable<Customer> GetList(NX.ERP.Model.Request.Customer Params)
|
public IEnumerable<Customer> GetList(NX.ERP.Model.Request.Customer Params)
|
||||||
{
|
{
|
||||||
IList<string> where = new List<string>();
|
IList<string> where = new List<string>();
|
||||||
|
|||||||
@@ -324,7 +324,7 @@ namespace NX.ERP.U8
|
|||||||
|
|
||||||
|
|
||||||
bProxyForeign AS ProxyForeign,
|
bProxyForeign AS ProxyForeign,
|
||||||
|
CONVERT(BIGINT,pubufts) as pubufts,
|
||||||
|
|
||||||
cDTAQL AS Aql
|
cDTAQL AS Aql
|
||||||
|
|
||||||
@@ -339,6 +339,17 @@ namespace NX.ERP.U8
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public IEnumerable<Material> GetList(long Pubufts)
|
||||||
|
{
|
||||||
|
|
||||||
|
return this.GetList("CONVERT(BIGINT,pubufts) > @Pubufts", new { Pubufts });
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public Material GetModel(string Code)
|
public Material GetModel(string Code)
|
||||||
{
|
{
|
||||||
return this.GetList(" cInvCode=@Code ", new { Code }).FirstOrDefault();
|
return this.GetList(" cInvCode=@Code ", new { Code }).FirstOrDefault();
|
||||||
|
|||||||
@@ -23,6 +23,18 @@ namespace NX.ERP.U8
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public IEnumerable<MaterialType> GetList(long Pubufts)
|
||||||
|
{
|
||||||
|
|
||||||
|
return this.GetList("CONVERT(BIGINT,pubufts) > @Pubufts", new { Pubufts });
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ namespace NX.ERP.U8
|
|||||||
cVenPhone as ContractPhone,
|
cVenPhone as ContractPhone,
|
||||||
ISNULL(dModifyDate,dVenCreateDatetime) as ModifyDate,
|
ISNULL(dModifyDate,dVenCreateDatetime) as ModifyDate,
|
||||||
bProxyForeign as ProxyForeign,
|
bProxyForeign as ProxyForeign,
|
||||||
|
CONVERT(BIGINT,pubufts) as pubufts,
|
||||||
cVenPerson AS Contract from Vendor ";
|
cVenPerson AS Contract from Vendor ";
|
||||||
if (!string.IsNullOrEmpty(strWhere))
|
if (!string.IsNullOrEmpty(strWhere))
|
||||||
{
|
{
|
||||||
@@ -34,6 +34,17 @@ namespace NX.ERP.U8
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public IEnumerable<Supplier> GetList(long Pubufts)
|
||||||
|
{
|
||||||
|
|
||||||
|
return this.GetList("CONVERT(BIGINT,pubufts) > @Pubufts", new { Pubufts });
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public IEnumerable<Supplier> GetList(NX.ERP.Model.Request.Supplier Params)
|
public IEnumerable<Supplier> GetList(NX.ERP.Model.Request.Supplier Params)
|
||||||
{
|
{
|
||||||
IList<string> where = new List<string>();
|
IList<string> where = new List<string>();
|
||||||
|
|||||||
@@ -25,6 +25,11 @@ namespace NX.ERP.U8
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public IEnumerable<Unit> GetList(long Pubufts)
|
||||||
|
{
|
||||||
|
|
||||||
|
return this.GetList("CONVERT(BIGINT,pubufts) > @Pubufts", new { Pubufts });
|
||||||
|
}
|
||||||
|
|
||||||
public IEnumerable<Unit> GetList(NX.ERP.Model.Request.Unit Params)
|
public IEnumerable<Unit> GetList(NX.ERP.Model.Request.Unit Params)
|
||||||
{
|
{
|
||||||
@@ -54,7 +59,7 @@ namespace NX.ERP.U8
|
|||||||
{
|
{
|
||||||
UnitCode = $"%{Params.UnitCode}%",
|
UnitCode = $"%{Params.UnitCode}%",
|
||||||
UnitName = $"%{Params.UnitName}%",
|
UnitName = $"%{Params.UnitName}%",
|
||||||
Pubufts=Params.Pubufts
|
Pubufts = Params.Pubufts
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ namespace NX.ERP.U8
|
|||||||
|
|
||||||
using (var conn = U8LoginContext.Instance.Connection)
|
using (var conn = U8LoginContext.Instance.Connection)
|
||||||
{
|
{
|
||||||
var sql = "select cWhCode as WarehouseCode,cWhName as WarehouseName from Warehouse";
|
var sql = "select cWhCode as WarehouseCode,cWhName as WarehouseName,CONVERT(BIGINT,pubufts) AS pubufts from Warehouse";
|
||||||
if (!string.IsNullOrEmpty(strWhere))
|
if (!string.IsNullOrEmpty(strWhere))
|
||||||
{
|
{
|
||||||
sql += $" where {strWhere}";
|
sql += $" where {strWhere}";
|
||||||
@@ -23,6 +23,16 @@ namespace NX.ERP.U8
|
|||||||
return conn.Query<Warehouse>(sql, Param);
|
return conn.Query<Warehouse>(sql, Param);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public IEnumerable<Warehouse> GetList(long Pubufts)
|
||||||
|
{
|
||||||
|
|
||||||
|
return this.GetList("CONVERT(BIGINT,pubufts) > @Pubufts", new { Pubufts });
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public IEnumerable<Warehouse> GetList(NX.ERP.Model.Request.Warehouse Params)
|
public IEnumerable<Warehouse> GetList(NX.ERP.Model.Request.Warehouse Params)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@@ -53,6 +53,11 @@ namespace NX.ERP.U8.Mom
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public IEnumerable<NX.ERP.Model.Response.MOM.Bom> GetList(long Pubufts)
|
||||||
|
{
|
||||||
|
return this.GetList("CONVERT(BIGINT,a.Ufts) >@Pubufts", new { Pubufts });
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public IEnumerable<NX.ERP.Model.Response.MOM.Bom> GetList(NX.ERP.Model.Request.Bom bom)
|
public IEnumerable<NX.ERP.Model.Response.MOM.Bom> GetList(NX.ERP.Model.Request.Bom bom)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -73,6 +73,16 @@ namespace NX.ERP.U8.Mom
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public IEnumerable<Model.MOM.MomOrder> GetList(long Pubufts)
|
||||||
|
{
|
||||||
|
return this.GetList("CONVERT(BIGINT,a.Ufts) > @Pubufts", new { Pubufts });
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -99,7 +109,7 @@ namespace NX.ERP.U8.Mom
|
|||||||
where.Add(" a.MoId >= @ProductOrderendID ");
|
where.Add(" a.MoId >= @ProductOrderendID ");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Params.ModifyDate!=null)
|
if (Params.ModifyDate != null)
|
||||||
{
|
{
|
||||||
where.Add(" ISNULL( a.ModifyDate,createDate) >= @ModifyDate or a.RelsTime>=@ModifyDate ");
|
where.Add(" ISNULL( a.ModifyDate,createDate) >= @ModifyDate or a.RelsTime>=@ModifyDate ");
|
||||||
}
|
}
|
||||||
@@ -108,10 +118,10 @@ namespace NX.ERP.U8.Mom
|
|||||||
if (Params.Pubufts != null)
|
if (Params.Pubufts != null)
|
||||||
{
|
{
|
||||||
where.Add("CONVERT(BIGINT,a.Ufts) > @Pubufts ");
|
where.Add("CONVERT(BIGINT,a.Ufts) > @Pubufts ");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Params.Status!=null)
|
if (Params.Status != null)
|
||||||
{
|
{
|
||||||
where.Add(" b.Status in @Status ");
|
where.Add(" b.Status in @Status ");
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ namespace NX.ERP.U8.Purchase
|
|||||||
{
|
{
|
||||||
public class ArrivalDAL
|
public class ArrivalDAL
|
||||||
{
|
{
|
||||||
public IEnumerable<Model.Purchase.Arrival> GetList(List<string> strWhere , object param = null)
|
public IEnumerable<Model.Purchase.Arrival> GetList(string where , object param = null)
|
||||||
{
|
{
|
||||||
using (var conn = U8LoginContext.Instance.Connection)
|
using (var conn = U8LoginContext.Instance.Connection)
|
||||||
{
|
{
|
||||||
@@ -39,11 +39,11 @@ namespace NX.ERP.U8.Purchase
|
|||||||
|
|
||||||
";
|
";
|
||||||
|
|
||||||
var aa = string.Join(" and ", strWhere.ToArray());
|
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(aa))
|
if (!string.IsNullOrEmpty(where))
|
||||||
{
|
{
|
||||||
strSQL += " and " + aa;
|
strSQL += " and " + where;
|
||||||
}
|
}
|
||||||
|
|
||||||
var lookup = new Dictionary<int, Model.Purchase.Arrival>();
|
var lookup = new Dictionary<int, Model.Purchase.Arrival>();
|
||||||
@@ -66,6 +66,24 @@ namespace NX.ERP.U8.Purchase
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public IEnumerable<Model.Purchase.Arrival> GetList(IEnumerable<string> where, object param = null)
|
||||||
|
{
|
||||||
|
return this.GetList(string.Join(" and ", where.ToArray()), param);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public IEnumerable<Model.Purchase.Arrival> GetList(long Pubufts)
|
||||||
|
{
|
||||||
|
return this.GetList("CONVERT(BIGINT,a.Ufts) > @Pubufts", new { Pubufts });
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public Model.Purchase.Arrival GetModel(int id)
|
public Model.Purchase.Arrival GetModel(int id)
|
||||||
{
|
{
|
||||||
List<string> where = new List<string>();
|
List<string> where = new List<string>();
|
||||||
|
|||||||
@@ -16,17 +16,17 @@ namespace NX.ERP.WebAPi.Controllers
|
|||||||
public class CustomerController : ApiController
|
public class CustomerController : ApiController
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取客户信息
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
/// <param name="Pubufts"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
// GET api/values
|
|
||||||
[Obsolete]
|
|
||||||
[Route("api/Customer/List")]
|
[Route("api/Customer/List")]
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
public IEnumerable<Model.Customer> List()
|
public IEnumerable<Model.Customer> List(long Pubufts = 0)
|
||||||
{
|
{
|
||||||
var customerDAL = new CustomerDAL();
|
var customerDAL = new CustomerDAL();
|
||||||
return customerDAL.GetList();
|
return customerDAL.GetList(Pubufts);
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 查询
|
/// 查询
|
||||||
@@ -35,7 +35,7 @@ namespace NX.ERP.WebAPi.Controllers
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[Route("api/Customer/Query")]
|
[Route("api/Customer/Query")]
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
|
|
||||||
public IEnumerable<Model.Customer> Query(NX.ERP.Model.Request.Customer Param)
|
public IEnumerable<Model.Customer> Query(NX.ERP.Model.Request.Customer Param)
|
||||||
{
|
{
|
||||||
var customerDAL = new CustomerDAL();
|
var customerDAL = new CustomerDAL();
|
||||||
|
|||||||
@@ -10,13 +10,13 @@ namespace NX.ERP.WebAPi.Controllers
|
|||||||
{
|
{
|
||||||
public class MaterialController : ApiController
|
public class MaterialController : ApiController
|
||||||
{
|
{
|
||||||
[Obsolete]
|
|
||||||
[Route("api/Material/List")]
|
[Route("api/Material/List")]
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
public IEnumerable<Material> List()
|
public IEnumerable<Material> List(long Pubufts = 0)
|
||||||
{
|
{
|
||||||
var MaterialDAL = new MaterialDAL();
|
var MaterialDAL = new MaterialDAL();
|
||||||
return MaterialDAL.GetList();
|
return MaterialDAL.GetList(Pubufts);
|
||||||
|
|
||||||
}
|
}
|
||||||
[Route("api/Material/Query")]
|
[Route("api/Material/Query")]
|
||||||
|
|||||||
@@ -10,13 +10,13 @@ namespace NX.ERP.WebAPi.Controllers
|
|||||||
{
|
{
|
||||||
public class MaterialTypeController:ApiController
|
public class MaterialTypeController:ApiController
|
||||||
{
|
{
|
||||||
[Obsolete]
|
|
||||||
[Route("api/MaterialType/List")]
|
[Route("api/MaterialType/List")]
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
public IEnumerable<MaterialType> List()
|
public IEnumerable<MaterialType> List(long Pubufts = 0)
|
||||||
{
|
{
|
||||||
var MaterialType = new MaterialTypeDAL();
|
var MaterialType = new MaterialTypeDAL();
|
||||||
return MaterialType.GetList();
|
return MaterialType.GetList(Pubufts);
|
||||||
|
|
||||||
}
|
}
|
||||||
[Route("api/MaterialType/Query")]
|
[Route("api/MaterialType/Query")]
|
||||||
|
|||||||
@@ -10,13 +10,12 @@ namespace NX.ERP.WebAPi.Controllers
|
|||||||
{
|
{
|
||||||
public class SupplierController : ApiController
|
public class SupplierController : ApiController
|
||||||
{
|
{
|
||||||
[Obsolete]
|
|
||||||
[Route("api/Supplier/List")]
|
[Route("api/Supplier/List")]
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
public IEnumerable<Supplier> List()
|
public IEnumerable<Supplier> List(long Pubufts = 0)
|
||||||
{
|
{
|
||||||
var supplierDAL = new SupplierDAL();
|
var supplierDAL = new SupplierDAL();
|
||||||
return supplierDAL.GetList();
|
return supplierDAL.GetList(Pubufts);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,13 +9,13 @@ namespace NX.ERP.WebAPi.Controllers
|
|||||||
{
|
{
|
||||||
public class UnitController : ApiController
|
public class UnitController : ApiController
|
||||||
{
|
{
|
||||||
[Obsolete]
|
|
||||||
[Route("api/Unit/List")]
|
[Route("api/Unit/List")]
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
public IEnumerable<Model.Unit> List()
|
public IEnumerable<Model.Unit> List(long Pubufts = 0)
|
||||||
{
|
{
|
||||||
var supplierDAL = new UnitDAL();
|
var supplierDAL = new UnitDAL();
|
||||||
return supplierDAL.GetList();
|
return supplierDAL.GetList(Pubufts);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,13 +9,13 @@ namespace NX.ERP.WebAPi.Controllers
|
|||||||
{
|
{
|
||||||
public class WarehouseController : ApiController
|
public class WarehouseController : ApiController
|
||||||
{
|
{
|
||||||
[Obsolete]
|
|
||||||
[Route("api/Warehouse/List")]
|
[Route("api/Warehouse/List")]
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
public IEnumerable<Model.Warehouse> List()
|
public IEnumerable<Model.Warehouse> List(long Pubufts = 0)
|
||||||
{
|
{
|
||||||
var warehouseDAL = new WarehouseDAL();
|
var warehouseDAL = new WarehouseDAL();
|
||||||
return warehouseDAL.GetList();
|
return warehouseDAL.GetList(Pubufts);
|
||||||
}
|
}
|
||||||
[Route("api/Warehouse/Query")]
|
[Route("api/Warehouse/Query")]
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
|
|||||||
@@ -8,13 +8,13 @@ namespace NX.ERP.WebAPi.Controllers.MOM
|
|||||||
{
|
{
|
||||||
public class BomController : ApiController
|
public class BomController : ApiController
|
||||||
{
|
{
|
||||||
[Obsolete]
|
|
||||||
[Route("api/Bom/List")]
|
[Route("api/Bom/List")]
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
|
|
||||||
public IEnumerable<Model.Response.MOM.Bom> GetList()
|
public IEnumerable<Model.Response.MOM.Bom> GetList(long Pubufts = 0)
|
||||||
{
|
{
|
||||||
return new NX.ERP.U8.Mom.BomDAL().GetList();
|
return new NX.ERP.U8.Mom.BomDAL().GetList(Pubufts);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -9,13 +9,13 @@ namespace NX.ERP.WebAPi.Controllers.MOM
|
|||||||
public class MomOrderController : ApiController
|
public class MomOrderController : ApiController
|
||||||
{
|
{
|
||||||
|
|
||||||
[Obsolete]
|
|
||||||
[Route("api/MomOrder/List")]
|
[Route("api/MomOrder/List")]
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
public IEnumerable<Model.MOM.MomOrder> List()
|
public IEnumerable<Model.MOM.MomOrder> List(long Pubufts = 0)
|
||||||
{
|
{
|
||||||
var customerDAL = new NX.ERP.U8.Mom.MomOrderDAL();
|
var customerDAL = new NX.ERP.U8.Mom.MomOrderDAL();
|
||||||
return customerDAL.GetList();
|
return customerDAL.GetList(Pubufts);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,23 +9,21 @@ namespace NX.ERP.WebAPi.Controllers
|
|||||||
{
|
{
|
||||||
public class ArrivalController : ApiController
|
public class ArrivalController : ApiController
|
||||||
{
|
{
|
||||||
//[Obsolete]
|
|
||||||
//[Route("api/Arrival/List")]
|
[Route("api/Arrival/List")]
|
||||||
//// GET api/values
|
[HttpGet]
|
||||||
//[HttpGet]
|
public IEnumerable<Model.Purchase.Arrival> List(long Pubufts = 0)
|
||||||
//public IEnumerable<Model.Purchase.Arrival> List()
|
{
|
||||||
//{
|
var Arrival = new ArrivalDAL();
|
||||||
// var customerDAL = new ArrivalDAL();
|
return Arrival.GetList(Pubufts);
|
||||||
// return customerDAL.GetList();
|
}
|
||||||
//}
|
|
||||||
|
|
||||||
[Route("api/Arrival/Query")]
|
[Route("api/Arrival/Query")]
|
||||||
// GET api/values
|
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public IEnumerable<Model.Purchase.Arrival> List([FromBody] NX.ERP.Model.Request.Arrival arrival)
|
public IEnumerable<Model.Purchase.Arrival> List([FromBody] NX.ERP.Model.Request.Arrival arrival)
|
||||||
{
|
{
|
||||||
var customerDAL = new ArrivalDAL();
|
var Arrival = new ArrivalDAL();
|
||||||
return customerDAL.Query(arrival);
|
return Arrival.Query(arrival);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -34,16 +32,16 @@ namespace NX.ERP.WebAPi.Controllers
|
|||||||
[HttpGet]
|
[HttpGet]
|
||||||
public Model.Purchase.Arrival Model(string Code)
|
public Model.Purchase.Arrival Model(string Code)
|
||||||
{
|
{
|
||||||
var customerDAL = new ArrivalDAL();
|
var Arrival = new ArrivalDAL();
|
||||||
return customerDAL.GetModel(Code);
|
return Arrival.GetModel(Code);
|
||||||
}
|
}
|
||||||
|
[Obsolete]
|
||||||
[Route("api/Arrival/list/{id}")]
|
[Route("api/Arrival/list/{id}")]
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
public IEnumerable<Model.Purchase.Arrival> GetListByLastID(int id)
|
public IEnumerable<Model.Purchase.Arrival> GetListByLastID(int id)
|
||||||
{
|
{
|
||||||
var customerDAL = new ArrivalDAL();
|
var Arrival = new ArrivalDAL();
|
||||||
return customerDAL.GetListByLastId(id);
|
return Arrival.GetListByLastId(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ namespace NX.ERP.WebAPi.Filters
|
|||||||
{
|
{
|
||||||
ErrCode = 0,
|
ErrCode = 0,
|
||||||
Data = actionExecutedContext.ActionContext.Response.Content.ReadAsAsync<object>().Result,
|
Data = actionExecutedContext.ActionContext.Response.Content.ReadAsAsync<object>().Result,
|
||||||
pubufts = uf
|
Pubufts = uf
|
||||||
};
|
};
|
||||||
actionExecutedContext.Response.Content = new ObjectContent<ResultModel<object>>(result, GlobalConfiguration.Configuration.Formatters.JsonFormatter);
|
actionExecutedContext.Response.Content = new ObjectContent<ResultModel<object>>(result, GlobalConfiguration.Configuration.Formatters.JsonFormatter);
|
||||||
|
|
||||||
|
|||||||
@@ -5,9 +5,9 @@
|
|||||||
-->
|
-->
|
||||||
<configuration>
|
<configuration>
|
||||||
<appSettings>
|
<appSettings>
|
||||||
<add key="server" value="10.0.0.12" />
|
<add key="server" value="192.168.1.167" />
|
||||||
<add key="AccId" value="u8-2@002" />
|
<add key="AccId" value="002" />
|
||||||
<add key="UserId" value="wx994" />
|
<add key="UserId" value="wx995" />
|
||||||
<add key="Password" value="1" />
|
<add key="Password" value="1" />
|
||||||
<add key="EaiPort" value="80" />
|
<add key="EaiPort" value="80" />
|
||||||
<add key="EaiPath" value="U8EAI/import.asp" />
|
<add key="EaiPath" value="U8EAI/import.asp" />
|
||||||
|
|||||||
Reference in New Issue
Block a user