222
This commit is contained in:
@@ -33,7 +33,7 @@ namespace MyCode.Project.Services
|
||||
/// 采购订单列表
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
string QueryList(DateTime begin, DateTime end, string FSupplierId);
|
||||
string QueryList(DateTime begin, DateTime end, string FSupplierId, string yuYan = "");
|
||||
|
||||
/// <summary>
|
||||
/// 采购单分页列表
|
||||
|
||||
@@ -144,7 +144,7 @@ namespace MyCode.Project.Services.Implementation
|
||||
/// 采购订单列表
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public string QueryList(DateTime begin, DateTime end, string FSupplierId)
|
||||
public string QueryList(DateTime begin, DateTime end, string FSupplierId, string yuYan = "")
|
||||
{
|
||||
BillQuery queryParam = new BillQuery();
|
||||
queryParam = new BillQuery()
|
||||
@@ -175,7 +175,7 @@ namespace MyCode.Project.Services.Implementation
|
||||
//.AddFilterItem(FCancelStatusItem4)
|
||||
.AddFilterItem(FCancelStatusItem2).AddFilterItem(FCancelStatusItem3);
|
||||
queryParam.FilterString = filterString.GetFilterString();
|
||||
var result = _kingDeeService.QueryList(queryParam);
|
||||
var result = _kingDeeService.QueryList(queryParam, yuYan);
|
||||
|
||||
return result;
|
||||
}
|
||||
@@ -493,14 +493,16 @@ namespace MyCode.Project.Services.Implementation
|
||||
{
|
||||
begin = maxDate.Value.Date;
|
||||
}
|
||||
|
||||
string yuyan = "";
|
||||
if (t.IfForeign == 1)
|
||||
yuyan = "1033"; //语言ID,中文2052(默认),英文1033,繁体3076;
|
||||
DateTime end = begin.AddMonths(1);
|
||||
bool stop = false;
|
||||
Dictionary<int, List<int>> keyValuePairs = new Dictionary<int, List<int>>();
|
||||
while (end < DateTime.Now || stop == false)
|
||||
{
|
||||
end = begin.AddMonths(1);
|
||||
var result = QueryList(begin, end, t.SupplierId);
|
||||
var result = QueryList(begin, end, t.SupplierId, yuyan);
|
||||
if (t.SupplierId == "9999.1")
|
||||
{
|
||||
LogHelper.Info(t.SupplierName + "的采购订单数据" + begin.ToString() + "-----" + end.ToString());
|
||||
|
||||
Reference in New Issue
Block a user