This commit is contained in:
gongxh
2021-05-28 09:49:57 +08:00
parent 51e7ee6980
commit 51d8d91bd6
4 changed files with 22 additions and 5 deletions

View File

@@ -16,6 +16,7 @@ namespace NX.ERP.Model.Request
public DateTime? ModifyDate { get; set; } public DateTime? ModifyDate { get; set; }
public bool? ProxyForeign { get; set; }
} }
} }

View File

@@ -23,5 +23,9 @@ namespace NX.ERP.Model
public DateTime ModifyDate { get; set; } public DateTime ModifyDate { get; set; }
public bool ProxyForeign { get; set; }
} }
} }

View File

@@ -22,6 +22,8 @@ namespace NX.ERP.U8
cVenAddress AS Address, cVenAddress AS Address,
cVenPhone as ContractPhone, cVenPhone as ContractPhone,
ISNULL(dModifyDate,dVenCreateDatetime) as ModifyDate, ISNULL(dModifyDate,dVenCreateDatetime) as ModifyDate,
bProxyForeign as ProxyForeign,
cVenPerson AS Contract from Vendor "; cVenPerson AS Contract from Vendor ";
if (!string.IsNullOrEmpty(strWhere)) if (!string.IsNullOrEmpty(strWhere))
{ {
@@ -51,12 +53,22 @@ namespace NX.ERP.U8
{ {
where.Add(" ISNULL(dModifyDate,dVenCreateDatetime) >= @ModifyDate "); where.Add(" ISNULL(dModifyDate,dVenCreateDatetime) >= @ModifyDate ");
} }
if (Params.ProxyForeign !=null)
{
where.Add(" bProxyForeign=@ProxyForeign ");
}
return this.GetList(string.Join(" and ", where.ToArray()), new return this.GetList(string.Join(" and ", where.ToArray()), new
{ {
SupplierCode = $"%{Params.SupplierCode}%", SupplierCode = $"%{Params.SupplierCode}%",
SupplierName = $"%{Params.SupplierName}%", SupplierName = $"%{Params.SupplierName}%",
Params.ModifyDate Params.ModifyDate,
}); Params.ProxyForeign
});
} }

View File

@@ -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@001" /> <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" />