|
|
@ -68,10 +68,10 @@ namespace Win.Sfs.SettleAccount.Entities.ErrorBills |
|
|
|
/// <param name="cache">缓存</param>
|
|
|
|
public ErrorBillAppService( |
|
|
|
|
|
|
|
ISettleAccountBranchEfCoreRepository<ErrorBill, Guid> repository, |
|
|
|
ISettleAccountBranchEfCoreRepository<ImportColumnMap, Guid> mapRepository, |
|
|
|
ISettleAccountBranchEfCoreRepository<Bom, Guid> bomRepository, |
|
|
|
ISettleAccountBranchEfCoreRepository<BomVersion, Guid> bomversionRepository, |
|
|
|
ISettleAccountBranchEfCoreRepository<ErrorBill, Guid> repository, |
|
|
|
ISettleAccountBranchEfCoreRepository<ImportColumnMap, Guid> mapRepository, |
|
|
|
ISettleAccountBranchEfCoreRepository<Bom, Guid> bomRepository, |
|
|
|
ISettleAccountBranchEfCoreRepository<BomVersion, Guid> bomversionRepository, |
|
|
|
TaskJobService service, |
|
|
|
//ISettleAccountBranchEfCoreRepository<ErrorBillRelationship, Guid> relationshipRepository,
|
|
|
|
ISettleAccountBranchEfCoreRepository<PriceList, Guid> priceRepository, |
|
|
@ -114,17 +114,14 @@ namespace Win.Sfs.SettleAccount.Entities.ErrorBills |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public List<T> RemoveError<T>(List<T> p_list) where T : ReportDetailBase, new () |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//public List<T> RemoveError<T>(List<T> p_list) where T : ReportDetailBase, new ()
|
|
|
|
//{
|
|
|
|
|
|
|
|
|
|
|
|
return p_list; |
|
|
|
// return p_list;
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -154,7 +151,9 @@ namespace Win.Sfs.SettleAccount.Entities.ErrorBills |
|
|
|
GuidGenerator.Create(), |
|
|
|
itm.BillNum, |
|
|
|
itm.MaterialCode, |
|
|
|
itm.WmsBillNum |
|
|
|
itm.WmsBillNum, |
|
|
|
itm.MaterialDesc, |
|
|
|
itm.CustomerMaterialCode |
|
|
|
); |
|
|
|
await _repository.InsertAsync(entity); |
|
|
|
} |
|
|
@ -184,7 +183,6 @@ namespace Win.Sfs.SettleAccount.Entities.ErrorBills |
|
|
|
return dto; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private async Task<ErrorBill> GetFromCacheAsync(Guid id) |
|
|
|
{ |
|
|
|
var result = await _repository.GetAsync(id); |
|
|
@ -192,7 +190,6 @@ namespace Win.Sfs.SettleAccount.Entities.ErrorBills |
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private async Task<long> GetCountAsync(ErrorBillRequestDto input) |
|
|
|
{ |
|
|
|
return await _repository.GetCountByFilterAsync(input.BranchId, input.Filters); |
|
|
@ -304,7 +301,7 @@ namespace Win.Sfs.SettleAccount.Entities.ErrorBills |
|
|
|
|
|
|
|
virtual public async Task<string> ExportAsync(ErrorBillRequestDto input) |
|
|
|
{ |
|
|
|
string _fileName = string.Format("错误单据_{0}.xlsx", DateTime.Now.ToString("yyyyMMdd")); |
|
|
|
string _fileName = string.Format("错误单据输出_{0}.xlsx", DateTime.Now.ToString("yyyyMMdd")); |
|
|
|
var entities = await _repository.GetListByFilterAsync(input.BranchId, input.Filters, input.Sorting, int.MaxValue, |
|
|
|
0, true); |
|
|
|
|
|
|
|