修改字段格式
This commit is contained in:
@@ -13,11 +13,11 @@ namespace NX.ERP.Model
|
|||||||
private string address;
|
private string address;
|
||||||
private string contract;
|
private string contract;
|
||||||
private string contractPhone;
|
private string contractPhone;
|
||||||
public string CustomerCode { get => customerCode; set => customerCode = value; }
|
public string Code { get => customerCode; set => customerCode = value; }
|
||||||
public string PostalCode { get => postalCode; set => postalCode = value; }
|
public string PostalCode { get => postalCode; set => postalCode = value; }
|
||||||
public string Address { get => address; set => address = value; }
|
public string Address { get => address; set => address = value; }
|
||||||
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 Name { get => customerName; set => customerName = value; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ namespace NX.ERP.Model
|
|||||||
private string materielTypeCode;
|
private string materielTypeCode;
|
||||||
private string materielTypeName;
|
private string materielTypeName;
|
||||||
|
|
||||||
public string MaterielTypeCode { get => materielTypeCode; set => materielTypeCode = value; }
|
public string Code { get => materielTypeCode; set => materielTypeCode = value; }
|
||||||
public string MaterielTypeName { get => materielTypeName; set => materielTypeName = value; }
|
public string Name { get => materielTypeName; set => materielTypeName = value; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ namespace NX.ERP.Model
|
|||||||
private string address;
|
private string address;
|
||||||
private string contract;
|
private string contract;
|
||||||
|
|
||||||
public string SupplierCode { get => supplierCode; set => supplierCode = value; }
|
public string Code { get => supplierCode; set => supplierCode = value; }
|
||||||
public string SupplierName { get => supplierName; set => supplierName = value; }
|
public string Name { get => supplierName; set => supplierName = value; }
|
||||||
public string PostalCode { get => postalCode; set => postalCode = value; }
|
public string PostalCode { get => postalCode; set => postalCode = value; }
|
||||||
public string Address { get => address; set => address = value; }
|
public string Address { get => address; set => address = value; }
|
||||||
public string Contract { get => contract; set => contract = value; }
|
public string Contract { get => contract; set => contract = value; }
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ namespace NX.ERP.Model
|
|||||||
private bool mainUnit;
|
private bool mainUnit;
|
||||||
private string groupCode;
|
private string groupCode;
|
||||||
|
|
||||||
public string UnitCode { get => unitCode; set => unitCode = value; }
|
public string Code { get => unitCode; set => unitCode = value; }
|
||||||
public string UnitName { get => unitName; set => unitName = value; }
|
public string Name { get => unitName; set => unitName = value; }
|
||||||
public bool MainUnit { get => mainUnit; set => mainUnit = value; }
|
public bool MainUnit { get => mainUnit; set => mainUnit = value; }
|
||||||
public string GroupCode { get => groupCode; set => groupCode = value; }
|
public string GroupCode { get => groupCode; set => groupCode = value; }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ namespace NX.ERP.Model
|
|||||||
private string _WarehouseCode;
|
private string _WarehouseCode;
|
||||||
private string _WarehouseName;
|
private string _WarehouseName;
|
||||||
|
|
||||||
public string WarehouseCode { get => _WarehouseCode; set => _WarehouseCode = value; }
|
public string Code { get => _WarehouseCode; set => _WarehouseCode = value; }
|
||||||
public string WarehouseName { get => _WarehouseName; set => _WarehouseName = value; }
|
public string Name { get => _WarehouseName; set => _WarehouseName = value; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ namespace NX.ERP.U8
|
|||||||
using (var conn = new System.Data.SqlClient.SqlConnection(U8LoginContext.Instance.Constr4Net))
|
using (var conn = new System.Data.SqlClient.SqlConnection(U8LoginContext.Instance.Constr4Net))
|
||||||
{
|
{
|
||||||
var sql = @" select
|
var sql = @" select
|
||||||
cCusCode AS CustomerCode,
|
cCusCode AS Code,
|
||||||
cCusName AS CustomerName,
|
cCusName AS Name,
|
||||||
cCusPostCode AS PostalCode,
|
cCusPostCode AS PostalCode,
|
||||||
cCusAddress AS Address,
|
cCusAddress AS Address,
|
||||||
cCusPerson AS Contract,cCusPhone AS ContractPhone from Customer ";
|
cCusPerson AS Contract,cCusPhone AS ContractPhone from Customer ";
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ namespace NX.ERP.U8
|
|||||||
{
|
{
|
||||||
using (var conn = new System.Data.SqlClient.SqlConnection(U8LoginContext.Instance.Constr4Net))
|
using (var conn = new System.Data.SqlClient.SqlConnection(U8LoginContext.Instance.Constr4Net))
|
||||||
{
|
{
|
||||||
var sql = @"select cInvCCode AS MaterielTypeCode,cInvCName AS MaterielTypeName from InventoryClass ";
|
var sql = @"select cInvCCode AS Code,cInvCName AS Name from InventoryClass ";
|
||||||
if (!string.IsNullOrEmpty(strWhere))
|
if (!string.IsNullOrEmpty(strWhere))
|
||||||
{
|
{
|
||||||
sql += $" where {strWhere}";
|
sql += $" where {strWhere}";
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ namespace NX.ERP.U8
|
|||||||
using (var conn = new System.Data.SqlClient.SqlConnection(U8LoginContext.Instance.Constr4Net))
|
using (var conn = new System.Data.SqlClient.SqlConnection(U8LoginContext.Instance.Constr4Net))
|
||||||
{
|
{
|
||||||
var sql = @"select
|
var sql = @"select
|
||||||
cVenCode AS SupplierCode,
|
cVenCode AS Code,
|
||||||
cVenName AS SupplierName,
|
cVenName AS Name,
|
||||||
cVenPostCode AS PostalCode,
|
cVenPostCode AS PostalCode,
|
||||||
cVenAddress AS Address,
|
cVenAddress AS Address,
|
||||||
cVenPerson AS Contract from Vendor ";
|
cVenPerson AS Contract from Vendor ";
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ namespace NX.ERP.U8
|
|||||||
using (var conn = new System.Data.SqlClient.SqlConnection(U8LoginContext.Instance.Constr4Net))
|
using (var conn = new System.Data.SqlClient.SqlConnection(U8LoginContext.Instance.Constr4Net))
|
||||||
{
|
{
|
||||||
var sql = @"select
|
var sql = @"select
|
||||||
cComunitCode AS UnitCode,
|
cComunitCode AS Code,
|
||||||
cComUnitName AS UnitName,bMainUnit as MainUnit, cGroupCode as GroupCode from ComputationUnit ";
|
cComUnitName AS Name,bMainUnit as MainUnit, cGroupCode as GroupCode from ComputationUnit ";
|
||||||
if (!string.IsNullOrEmpty(strWhere))
|
if (!string.IsNullOrEmpty(strWhere))
|
||||||
{
|
{
|
||||||
sql += $" where {strWhere}";
|
sql += $" where {strWhere}";
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ namespace NX.ERP.U8
|
|||||||
|
|
||||||
using (var conn = new System.Data.SqlClient.SqlConnection(U8LoginContext.Instance.Constr4Net))
|
using (var conn = new System.Data.SqlClient.SqlConnection(U8LoginContext.Instance.Constr4Net))
|
||||||
{
|
{
|
||||||
var sql = "select cWhCode as WarehouseCode,cWhName as WarehouseName from Warehouse";
|
var sql = "select cWhCode as Code,cWhName as Name from Warehouse";
|
||||||
if (!string.IsNullOrEmpty(strWhere))
|
if (!string.IsNullOrEmpty(strWhere))
|
||||||
{
|
{
|
||||||
sql += $" where {strWhere}";
|
sql += $" where {strWhere}";
|
||||||
|
|||||||
@@ -13,15 +13,13 @@ namespace NX.ERP.U8.Mom
|
|||||||
{
|
{
|
||||||
string strSQL = @"select a.MoId as id,a.moCode as Code,a.*,b.MoDId as id ,b.*,c.AllocateId as id ,c.* from mom_order as a
|
string strSQL = @"select a.MoId as id,a.moCode as Code,a.*,b.MoDId as id ,b.*,c.AllocateId as id ,c.* from mom_order as a
|
||||||
left join mom_orderdetail as b on a.MoId=b.MoId
|
left join mom_orderdetail as b on a.MoId=b.MoId
|
||||||
left join mom_moallocate as c on b.MoDId=c.MoDId
|
left join mom_moallocate as c on b.MoDId=c.MoDId";
|
||||||
";
|
|
||||||
if (!string.IsNullOrEmpty(strWhere))
|
if (!string.IsNullOrEmpty(strWhere))
|
||||||
{
|
{
|
||||||
strSQL += $" where {strWhere} ";
|
strSQL += $" where {strWhere} ";
|
||||||
}
|
}
|
||||||
var lookupDetail = new Dictionary<int, Model.MOM.MomDetail>();
|
var lookupDetail = new Dictionary<int, Model.MOM.MomDetail>();
|
||||||
var lookupOrder = new Dictionary<int, Model.MOM.MomOrder>();
|
var lookupOrder = new Dictionary<int, Model.MOM.MomOrder>();
|
||||||
|
|
||||||
// return conn.Query<Model.Purchase.Arrival>(strSQL,null);
|
// return conn.Query<Model.Purchase.Arrival>(strSQL,null);
|
||||||
var list = conn.Query<Model.MOM.MomOrder, Model.MOM.MomDetail, Model.MOM.MoAllocate, Model.MOM.MomOrder>(strSQL, (Order, OrderDetail, MoAllocate) =>
|
var list = conn.Query<Model.MOM.MomOrder, Model.MOM.MomDetail, Model.MOM.MoAllocate, Model.MOM.MomOrder>(strSQL, (Order, OrderDetail, MoAllocate) =>
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user