|
|
@ -3,9 +3,12 @@ using System.Collections.Generic; |
|
|
|
using System.Linq; |
|
|
|
using System.ServiceModel.Channels; |
|
|
|
using System.Text; |
|
|
|
using System.Threading; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using EFCore.BulkExtensions; |
|
|
|
using Microsoft.CodeAnalysis.CSharp.Syntax; |
|
|
|
using Nito.AsyncEx; |
|
|
|
using SettleAccount.Bases; |
|
|
|
using SettleAccount.Domain.BQ; |
|
|
|
using TaskJob.EventArgs; |
|
|
|
using TaskJob.Interfaces; |
|
|
@ -26,6 +29,7 @@ public class PendingDeductionService : ITransientDependency, IExportJob |
|
|
|
protected readonly INormalEfCoreRepository<HBPO_PD_DETAIL, Guid> _hbpoRepository; |
|
|
|
protected readonly INormalEfCoreRepository<PUB_PD_DETAIL, Guid> _pubRepository; |
|
|
|
protected readonly INormalEfCoreRepository<CodeSetting, Guid> _codesetRepository; |
|
|
|
protected readonly INormalEfCoreRepository<VmiLog, Guid> _vmiRepository; |
|
|
|
|
|
|
|
public PendingDeductionService( |
|
|
|
INormalEfCoreRepository<BBAC_SEC_DETAIL, Guid> bbacSecRepository, |
|
|
@ -35,6 +39,7 @@ public class PendingDeductionService : ITransientDependency, IExportJob |
|
|
|
INormalEfCoreRepository<HBPO_PD_DETAIL, Guid> hbpoRepository, |
|
|
|
INormalEfCoreRepository<PUB_PD_DETAIL, Guid> pubRepository, |
|
|
|
INormalEfCoreRepository<CodeSetting, Guid> codesetRepository, |
|
|
|
INormalEfCoreRepository<VmiLog, Guid> vmiRepository, |
|
|
|
VmiAppService vimservice |
|
|
|
) |
|
|
|
{ |
|
|
@ -46,6 +51,7 @@ public class PendingDeductionService : ITransientDependency, IExportJob |
|
|
|
_pubSecRepository= pubSecRepository; |
|
|
|
_vimservice =vimservice; |
|
|
|
_codesetRepository = codesetRepository; |
|
|
|
_vmiRepository = vmiRepository; |
|
|
|
} |
|
|
|
|
|
|
|
public string ExportFile(Guid id, List<string> exportName, List<CustomCondition> property) |
|
|
@ -54,360 +60,129 @@ public class PendingDeductionService : ITransientDependency, IExportJob |
|
|
|
var type = property.Where(p => p.Name == "Type").FirstOrDefault().Value; |
|
|
|
var list = billList.Split(","); |
|
|
|
var projectList = _codesetRepository.Where(p => p.Project == "库位"); |
|
|
|
|
|
|
|
if (type == "JisBBAC") |
|
|
|
{ |
|
|
|
var jisdetail = _bbacRepository.Where(p => list.Contains(p.BillNum) && p.IsMaiDan==false); |
|
|
|
var mdetail = _bbacRepository.Where(p => list.Contains(p.BillNum) && p.IsMaiDan ==true); |
|
|
|
var query = from itm in jisdetail |
|
|
|
select |
|
|
|
new |
|
|
|
{ |
|
|
|
BillTime = DateTime.Now, |
|
|
|
ChangedTime = DateTime.Now, |
|
|
|
Qty = itm.Qty, |
|
|
|
DeliverTime = itm.CreationTime, |
|
|
|
LogType = Entities.BQ.Vmi.VmiLogType.Type200, |
|
|
|
ChangedQty = itm.Qty, |
|
|
|
ChangedType = VmiType.Out, |
|
|
|
//SubBillType = EnumDeliverSubBillType.小件BBAC,
|
|
|
|
//BillType = EnumDeliverBjBmpBillType.JIS件,
|
|
|
|
PartCode = itm.LU, |
|
|
|
SettlementVinCode = itm.PN, |
|
|
|
PartCode2 = itm.LU, |
|
|
|
CustomerPartCode = string.IsNullOrEmpty(itm.Extend4) ? string.Empty : itm.Extend4, |
|
|
|
VinCode = itm.PN, |
|
|
|
OrderNum = itm.GroupNum, |
|
|
|
//ErpToLoc = string.IsNullOrEmpty()
|
|
|
|
}; |
|
|
|
var ls=query.ToList(); |
|
|
|
if (ls != null && ls.Count > 0) |
|
|
|
{ |
|
|
|
foreach (var itm in ls) |
|
|
|
{ |
|
|
|
_vimservice.Out(Entities.BQ.Vmi.VmiLogType.Type200, "1", new Entities.BQ.Vmi.VmiLog() |
|
|
|
{ |
|
|
|
BillTime = itm.BillTime, |
|
|
|
ChangedTime = DateTime.Now, |
|
|
|
Qty = itm.Qty, |
|
|
|
AssembleData = itm.BillTime, |
|
|
|
LogType = Entities.BQ.Vmi.VmiLogType.Type200, |
|
|
|
ChangedQty = itm.Qty, |
|
|
|
ChangedType = VmiType.Out, |
|
|
|
//SubBillType = EnumDeliverSubBillType.小件BBAC,
|
|
|
|
//BillType = EnumDeliverBjBmpBillType.JIS件,
|
|
|
|
RealPartCode = itm.PartCode, |
|
|
|
SettlementVinCode = itm.VinCode, |
|
|
|
//PartCode2 = itm.PartCode2,
|
|
|
|
CustPartCode = itm.CustomerPartCode, |
|
|
|
VinCode = itm.VinCode, |
|
|
|
//OrderNum = itm.OrderNum,
|
|
|
|
ErpToLoc = "C0001" |
|
|
|
}).ConfigureAwait(false); |
|
|
|
} |
|
|
|
} |
|
|
|
var query1 = from itm in mdetail |
|
|
|
select new |
|
|
|
{ |
|
|
|
|
|
|
|
BillTime = DateTime.Now, |
|
|
|
ChangedTime = DateTime.Now, |
|
|
|
Qty = itm.Qty, |
|
|
|
DeliverTime = itm.CreationTime, |
|
|
|
LogType = Entities.BQ.Vmi.VmiLogType.Type200, |
|
|
|
ChangedQty = itm.Qty, |
|
|
|
ChangedType = VmiType.Out, |
|
|
|
//SubBillType = EnumDeliverSubBillType.小件BBAC,
|
|
|
|
//BillType = EnumDeliverBjBmpBillType.JIS件,
|
|
|
|
PartCode = itm.LU, |
|
|
|
SettlementVinCode = itm.PN, |
|
|
|
PartCode2 = itm.LU, |
|
|
|
CustomerPartCode = string.IsNullOrEmpty(itm.Extend4) ? string.Empty : itm.Extend4, |
|
|
|
VinCode = itm.PN, |
|
|
|
OrderNum = itm.GroupNum, |
|
|
|
ErpToLoc = "C0001" |
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
|
var ls1 = query1.ToList(); |
|
|
|
if (ls1 != null && ls1.Count > 0) |
|
|
|
{ |
|
|
|
foreach (var itm in ls1) |
|
|
|
{ |
|
|
|
_vimservice.Out(Entities.BQ.Vmi.VmiLogType.Type200, "1", new Entities.BQ.Vmi.VmiLog() |
|
|
|
{ |
|
|
|
BillTime = itm.BillTime, |
|
|
|
ChangedTime = DateTime.Now, |
|
|
|
Qty = itm.Qty, |
|
|
|
|
|
|
|
LogType = Entities.BQ.Vmi.VmiLogType.Type200, |
|
|
|
ChangedQty = itm.Qty, |
|
|
|
ChangedType = VmiType.Out, |
|
|
|
//SubBillType = EnumDeliverSubBillType.小件BBAC,
|
|
|
|
//BillType = EnumDeliverBjBmpBillType.JIS件,
|
|
|
|
SettlementVinCode = itm.VinCode, |
|
|
|
VinCode = itm.VinCode, |
|
|
|
//OrderNum = itm.OrderNum,
|
|
|
|
ErpToLoc = "C0001" |
|
|
|
}).ConfigureAwait(false); |
|
|
|
} |
|
|
|
} |
|
|
|
var jisdetail = _bbacRepository.Where(p => list.Contains(p.BillNum) && p.BusinessType == EnumBusinessType.JisBBAC);//jis
|
|
|
|
Sync(jisdetail.ToList()); |
|
|
|
var mdetail = _bbacRepository.Where(p => list.Contains(p.BillNum) && p.BusinessType == EnumBusinessType.MaiDanJianBBAC);//买单件
|
|
|
|
Sync(mdetail.ToList()); |
|
|
|
} |
|
|
|
else if (type == "JisHBPO") |
|
|
|
{ |
|
|
|
var detailist = _hbpoRepository.Where(p => list.Contains(p.BillNum)).ToList(); |
|
|
|
if (detailist != null && detailist.Count > 0) |
|
|
|
{ |
|
|
|
foreach (var itm in detailist) |
|
|
|
{ |
|
|
|
_vimservice.Out(Entities.BQ.Vmi.VmiLogType.Type200, "1", new Entities.BQ.Vmi.VmiLog() |
|
|
|
{ |
|
|
|
BillTime = itm.CreationTime, |
|
|
|
ChangedTime = DateTime.Now, |
|
|
|
Qty = itm.Qty, |
|
|
|
|
|
|
|
LogType = Entities.BQ.Vmi.VmiLogType.Type200, |
|
|
|
ChangedQty = itm.Qty, |
|
|
|
ChangedType = VmiType.Out, |
|
|
|
|
|
|
|
RealPartCode = itm.LU,//客户
|
|
|
|
SettlementVinCode = itm.PN, |
|
|
|
|
|
|
|
CustPartCode = itm.LU, |
|
|
|
VinCode = itm.PN, |
|
|
|
ErpToLoc = "C0001" |
|
|
|
}).ConfigureAwait(false); |
|
|
|
} |
|
|
|
} |
|
|
|
var detailist = _hbpoRepository.Where(p => list.Contains(p.BillNum) && p.BusinessType== EnumBusinessType.JisHBPO).ToList(); |
|
|
|
Sync(detailist); |
|
|
|
var mdetail = _bbacRepository.Where(p => list.Contains(p.BillNum) && p.BusinessType == EnumBusinessType.MaiDanJianHBPO);//买单件
|
|
|
|
Sync(mdetail.ToList()); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
var detailist = _hbpoRepository.Where(p => list.Contains(p.BillNum)).ToList(); |
|
|
|
switch (type) |
|
|
|
{ |
|
|
|
case "ZhiGongJianBBAC": |
|
|
|
|
|
|
|
if (detailist != null && detailist.Count > 0) |
|
|
|
{ |
|
|
|
foreach (var itm in detailist) |
|
|
|
{ |
|
|
|
_vimservice.Out(Entities.BQ.Vmi.VmiLogType.Type200, "1", new Entities.BQ.Vmi.VmiLog() |
|
|
|
{ |
|
|
|
BillTime = itm.CreationTime, |
|
|
|
ChangedTime = DateTime.Now, |
|
|
|
Qty = itm.Qty, |
|
|
|
// DeliverTime = ,
|
|
|
|
LogType = Entities.BQ.Vmi.VmiLogType.Type200, |
|
|
|
ChangedQty = itm.Qty, |
|
|
|
ChangedType = VmiType.Out, |
|
|
|
// SubBillType = EnumDeliverSubBillType.保险杠HBPO,
|
|
|
|
// BillType = EnumDeliverBjBmpBillType.JIS件,
|
|
|
|
RealPartCode = itm.LU,//客户
|
|
|
|
SettlementVinCode = itm.PN, |
|
|
|
//PartCode2 = itm.LU,//厂内
|
|
|
|
CustPartCode = itm.LU, |
|
|
|
VinCode = itm.PN, |
|
|
|
OrderNum = itm.PN, |
|
|
|
ErpToLoc = "C0001" |
|
|
|
}).ConfigureAwait(false); |
|
|
|
Sync(detailist); |
|
|
|
|
|
|
|
////switch (type)
|
|
|
|
////{
|
|
|
|
//// case "ZhiGongJianBBAC":
|
|
|
|
//// if (detailist != null && detailist.Count > 0)
|
|
|
|
//// {
|
|
|
|
|
|
|
|
//// }
|
|
|
|
//// break;
|
|
|
|
//// case "ZhiGongJianHBPO":
|
|
|
|
//// if (detailist != null && detailist.Count > 0)
|
|
|
|
//// {
|
|
|
|
|
|
|
|
//// }
|
|
|
|
//// break;
|
|
|
|
//// case "MaiDanJianBBAC":
|
|
|
|
//// if (detailist != null && detailist.Count > 0)
|
|
|
|
//// {
|
|
|
|
|
|
|
|
//// }
|
|
|
|
//// break;
|
|
|
|
//// case "MaiDanJianHBPO":
|
|
|
|
//// if (detailist != null && detailist.Count > 0)
|
|
|
|
//// {
|
|
|
|
|
|
|
|
//// }
|
|
|
|
//// break;
|
|
|
|
//// case "BeiJian":
|
|
|
|
//// if (detailist != null && detailist.Count > 0)
|
|
|
|
//// {
|
|
|
|
|
|
|
|
//// }
|
|
|
|
//// break;
|
|
|
|
//// case "YinDuJian":
|
|
|
|
//// if (detailist != null && detailist.Count > 0)
|
|
|
|
//// {
|
|
|
|
|
|
|
|
//// }
|
|
|
|
//// break;
|
|
|
|
////}
|
|
|
|
//if (detailist != null && detailist.Count > 0)
|
|
|
|
//{
|
|
|
|
// foreach (var itm in detailist)
|
|
|
|
// {
|
|
|
|
|
|
|
|
// }
|
|
|
|
//}
|
|
|
|
} |
|
|
|
return id.ToString(); |
|
|
|
} |
|
|
|
|
|
|
|
break; |
|
|
|
case "ZhiGongJianHBPO": |
|
|
|
|
|
|
|
if (detailist != null && detailist.Count > 0) |
|
|
|
{ |
|
|
|
foreach (var itm in detailist) |
|
|
|
public List<T> GetPagedData<T>(List<T> dataList, int pageNumber, int pageSize) |
|
|
|
{ |
|
|
|
_vimservice.Out(Entities.BQ.Vmi.VmiLogType.Type200, "1", new Entities.BQ.Vmi.VmiLog() |
|
|
|
{ |
|
|
|
BillTime = itm.CreationTime, |
|
|
|
ChangedTime = DateTime.Now, |
|
|
|
Qty = itm.Qty, |
|
|
|
// DeliverTime = ,
|
|
|
|
LogType = Entities.BQ.Vmi.VmiLogType.Type200, |
|
|
|
ChangedQty = itm.Qty, |
|
|
|
ChangedType = VmiType.Out, |
|
|
|
// SubBillType = EnumDeliverSubBillType.保险杠HBPO,
|
|
|
|
// BillType = EnumDeliverBjBmpBillType.JIS件,
|
|
|
|
RealPartCode = itm.LU,//客户
|
|
|
|
SettlementVinCode = itm.PN, |
|
|
|
//PartCode2 = itm.LU,//厂内
|
|
|
|
CustPartCode = itm.LU, |
|
|
|
VinCode = itm.PN, |
|
|
|
OrderNum = itm.PN,// 非JIS传ASN 交付识别号
|
|
|
|
ErpToLoc = "C0001" |
|
|
|
}).ConfigureAwait(false); |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
case "MaiDanJianBBAC": |
|
|
|
int startIndex = (pageNumber - 1) * pageSize; |
|
|
|
|
|
|
|
if (detailist != null && detailist.Count > 0) |
|
|
|
{ |
|
|
|
foreach (var itm in detailist) |
|
|
|
{ |
|
|
|
_vimservice.Out(Entities.BQ.Vmi.VmiLogType.Type200, "1", new Entities.BQ.Vmi.VmiLog() |
|
|
|
{ |
|
|
|
BillTime = itm.CreationTime, |
|
|
|
ChangedTime = DateTime.Now, |
|
|
|
Qty = itm.Qty, |
|
|
|
// DeliverTime = ,
|
|
|
|
LogType = Entities.BQ.Vmi.VmiLogType.Type200, |
|
|
|
ChangedQty = itm.Qty, |
|
|
|
ChangedType = VmiType.Out, |
|
|
|
// SubBillType = EnumDeliverSubBillType.保险杠HBPO,
|
|
|
|
// BillType = EnumDeliverBjBmpBillType.JIS件,
|
|
|
|
RealPartCode = itm.LU,//客户
|
|
|
|
SettlementVinCode = itm.PN, |
|
|
|
//PartCode2 = itm.LU,//厂内
|
|
|
|
CustPartCode = itm.LU, |
|
|
|
VinCode = itm.PN, |
|
|
|
// OrderNum = itm.GroupNum, 非JIS传ASN 交付识别号
|
|
|
|
ErpToLoc = "C0001" |
|
|
|
}).ConfigureAwait(false); |
|
|
|
} |
|
|
|
return dataList.Skip(startIndex).Take(pageSize).ToList(); |
|
|
|
} |
|
|
|
break; |
|
|
|
case "MaiDanJianHBPO": |
|
|
|
|
|
|
|
|
|
|
|
if (detailist != null && detailist.Count > 0) |
|
|
|
{ |
|
|
|
foreach (var itm in detailist) |
|
|
|
public int CalculatePageCount(int totalCount, int pageSize) |
|
|
|
{ |
|
|
|
_vimservice.Out(Entities.BQ.Vmi.VmiLogType.Type200, "1", new Entities.BQ.Vmi.VmiLog() |
|
|
|
int pageCount = totalCount / pageSize; |
|
|
|
if (totalCount % pageSize != 0) |
|
|
|
{ |
|
|
|
BillTime = itm.CreationTime, |
|
|
|
ChangedTime = DateTime.Now, |
|
|
|
Qty = itm.Qty, |
|
|
|
// DeliverTime = ,
|
|
|
|
LogType = Entities.BQ.Vmi.VmiLogType.Type200, |
|
|
|
ChangedQty = itm.Qty, |
|
|
|
ChangedType = VmiType.Out, |
|
|
|
// SubBillType = EnumDeliverSubBillType.保险杠HBPO,
|
|
|
|
// BillType = EnumDeliverBjBmpBillType.JIS件,
|
|
|
|
RealPartCode = itm.LU,//客户
|
|
|
|
SettlementVinCode = itm.PN, |
|
|
|
//PartCode2 = itm.LU,//厂内
|
|
|
|
CustPartCode = itm.LU, |
|
|
|
VinCode = itm.PN, |
|
|
|
// OrderNum = itm.GroupNum, 非JIS传ASN 交付识别号
|
|
|
|
ErpToLoc = "C0001" |
|
|
|
}).ConfigureAwait(false); |
|
|
|
pageCount += 1; |
|
|
|
} |
|
|
|
return pageCount; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
break; |
|
|
|
case "BeiJian": |
|
|
|
|
|
|
|
|
|
|
|
if (detailist != null && detailist.Count > 0) |
|
|
|
{ |
|
|
|
foreach (var itm in detailist) |
|
|
|
{ |
|
|
|
_vimservice.Out(Entities.BQ.Vmi.VmiLogType.Type200, "1", new Entities.BQ.Vmi.VmiLog() |
|
|
|
public void Sync<T>(List<T> p_ls) where T : PD_BASE,new() |
|
|
|
{ |
|
|
|
BillTime = itm.CreationTime, |
|
|
|
ChangedTime = DateTime.Now, |
|
|
|
Qty = itm.Qty, |
|
|
|
// DeliverTime = ,
|
|
|
|
LogType = Entities.BQ.Vmi.VmiLogType.Type200, |
|
|
|
ChangedQty = itm.Qty, |
|
|
|
ChangedType = VmiType.Out, |
|
|
|
// SubBillType = EnumDeliverSubBillType.保险杠HBPO,
|
|
|
|
// BillType = EnumDeliverBjBmpBillType.JIS件,
|
|
|
|
RealPartCode = itm.LU,//客户
|
|
|
|
SettlementVinCode = itm.PN, |
|
|
|
//PartCode2 = itm.LU,//厂内
|
|
|
|
CustPartCode = itm.LU, |
|
|
|
VinCode = itm.PN, |
|
|
|
// OrderNum = itm.GroupNum, 非JIS传ASN 交付识别号
|
|
|
|
ErpToLoc = "C0001" |
|
|
|
}).ConfigureAwait(false); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
break; |
|
|
|
case "YinDuJian": |
|
|
|
|
|
|
|
if (detailist != null && detailist.Count > 0) |
|
|
|
{ |
|
|
|
foreach (var itm in detailist) |
|
|
|
{ |
|
|
|
_vimservice.Out(Entities.BQ.Vmi.VmiLogType.Type200, "1", new Entities.BQ.Vmi.VmiLog() |
|
|
|
var query = from itm in p_ls |
|
|
|
select new |
|
|
|
{ |
|
|
|
BillTime = itm.CreationTime, |
|
|
|
BillTime = DateTime.Now, |
|
|
|
ChangedTime = DateTime.Now, |
|
|
|
Qty = itm.Qty, |
|
|
|
// DeliverTime = ,
|
|
|
|
DeliverTime = itm.CreationTime, |
|
|
|
LogType = Entities.BQ.Vmi.VmiLogType.Type200, |
|
|
|
ChangedQty = itm.Qty, |
|
|
|
ChangedType = VmiType.Out, |
|
|
|
// SubBillType = EnumDeliverSubBillType.保险杠HBPO,
|
|
|
|
//SubBillType = EnumDeliverSubBillType.小件BBAC,
|
|
|
|
//BillType = EnumDeliverBjBmpBillType.JIS件,
|
|
|
|
RealPartCode = itm.LU,//客户
|
|
|
|
PartCode = itm.LU, |
|
|
|
SettlementVinCode = itm.PN, |
|
|
|
//PartCode2 = itm.LU,//厂内
|
|
|
|
CustPartCode = itm.LU, |
|
|
|
PartCode2 = itm.LU, |
|
|
|
CustomerPartCode = string.IsNullOrEmpty(itm.Extend4) ? string.Empty : itm.Extend4, |
|
|
|
VinCode = itm.PN, |
|
|
|
// OrderNum = itm.GroupNum, 非JIS传ASN 交付识别号
|
|
|
|
ErpToLoc = "C0001" |
|
|
|
}).ConfigureAwait(false); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
OrderNum = itm.GroupNum, |
|
|
|
ErpToLoc = itm.Extend2, |
|
|
|
|
|
|
|
break; |
|
|
|
} |
|
|
|
if (detailist != null && detailist.Count > 0) |
|
|
|
{ |
|
|
|
foreach (var itm in detailist) |
|
|
|
}; |
|
|
|
var ls = query.ToList(); |
|
|
|
if (ls != null && ls.Count > 0) |
|
|
|
{ |
|
|
|
_vimservice.Out(Entities.BQ.Vmi.VmiLogType.Type200, "1", new Entities.BQ.Vmi.VmiLog() |
|
|
|
var count = CalculatePageCount(ls.Count, 2000); |
|
|
|
for (int pagenumber = 0; pagenumber < count; pagenumber++) |
|
|
|
{ |
|
|
|
BillTime = itm.CreationTime, |
|
|
|
ChangedTime = DateTime.Now, |
|
|
|
Qty = itm.Qty, |
|
|
|
AssembleData = itm.CreationTime, |
|
|
|
LogType = Entities.BQ.Vmi.VmiLogType.Type200, |
|
|
|
ChangedQty = itm.Qty, |
|
|
|
ChangedType = VmiType.Out, |
|
|
|
DeliverSubBillType = EnumDeliverSubBillType.小件BBAC, |
|
|
|
DeliverBillType = EnumDeliverBjBmpBillType.JIS件, |
|
|
|
RealPartCode = itm.LU, |
|
|
|
SettlementVinCode = itm.PN, |
|
|
|
//PartCode2 = itm.LU,
|
|
|
|
CustPartCode = itm.LU, |
|
|
|
VinCode = itm.PN, |
|
|
|
OrderNum = itm.GroupNum, |
|
|
|
ErpToLoc = "C0001" |
|
|
|
}).ConfigureAwait(false); |
|
|
|
ls = GetPagedData(ls, pagenumber, 2000); |
|
|
|
_vmiRepository.DbContext.BulkInsert(ls); |
|
|
|
|
|
|
|
Task.Delay(500); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return id.ToString(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|