修改字段格式
This commit is contained in:
@@ -16,8 +16,8 @@ namespace NX.ERP.U8
|
||||
using (var conn = new System.Data.SqlClient.SqlConnection(U8LoginContext.Instance.Constr4Net))
|
||||
{
|
||||
var sql = @" select
|
||||
cCusCode AS CustomerCode,
|
||||
cCusName AS CustomerName,
|
||||
cCusCode AS Code,
|
||||
cCusName AS Name,
|
||||
cCusPostCode AS PostalCode,
|
||||
cCusAddress AS Address,
|
||||
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))
|
||||
{
|
||||
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))
|
||||
{
|
||||
sql += $" where {strWhere}";
|
||||
|
||||
@@ -16,8 +16,8 @@ namespace NX.ERP.U8
|
||||
using (var conn = new System.Data.SqlClient.SqlConnection(U8LoginContext.Instance.Constr4Net))
|
||||
{
|
||||
var sql = @"select
|
||||
cVenCode AS SupplierCode,
|
||||
cVenName AS SupplierName,
|
||||
cVenCode AS Code,
|
||||
cVenName AS Name,
|
||||
cVenPostCode AS PostalCode,
|
||||
cVenAddress AS Address,
|
||||
cVenPerson AS Contract from Vendor ";
|
||||
|
||||
@@ -15,8 +15,8 @@ namespace NX.ERP.U8
|
||||
using (var conn = new System.Data.SqlClient.SqlConnection(U8LoginContext.Instance.Constr4Net))
|
||||
{
|
||||
var sql = @"select
|
||||
cComunitCode AS UnitCode,
|
||||
cComUnitName AS UnitName,bMainUnit as MainUnit, cGroupCode as GroupCode from ComputationUnit ";
|
||||
cComunitCode AS Code,
|
||||
cComUnitName AS Name,bMainUnit as MainUnit, cGroupCode as GroupCode from ComputationUnit ";
|
||||
if (!string.IsNullOrEmpty(strWhere))
|
||||
{
|
||||
sql += $" where {strWhere}";
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace NX.ERP.U8
|
||||
|
||||
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))
|
||||
{
|
||||
sql += $" where {strWhere}";
|
||||
|
||||
Reference in New Issue
Block a user