|
@ -244,7 +244,7 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts |
|
|
{ |
|
|
{ |
|
|
string fileSavePath = Environment.CurrentDirectory + @"\wwwroot\files\host\my-file-container\" + filename; |
|
|
string fileSavePath = Environment.CurrentDirectory + @"\wwwroot\files\host\my-file-container\" + filename; |
|
|
ExcelHelper _excelHelper = new ExcelHelper(fileSavePath); |
|
|
ExcelHelper _excelHelper = new ExcelHelper(fileSavePath); |
|
|
var _listSummary = _excelHelper.ExcelToList<WmsSharePartOutPutDetial>(); |
|
|
var _listSummary = _excelHelper.ExcelToListOne<WmsSharePartOutPutDetial>();//导入模板有多页签,需要取第一个页签
|
|
|
|
|
|
|
|
|
var _list = _listSummary.Where(p => p.OrderBillNum == "").ToList();//过滤 采购订单号为空的集合
|
|
|
var _list = _listSummary.Where(p => p.OrderBillNum == "").ToList();//过滤 采购订单号为空的集合
|
|
|
var _listBill = _listSummary.Where(p => p.OrderBillNum != "").ToList();//过滤 采购订单号不为空的集合
|
|
|
var _listBill = _listSummary.Where(p => p.OrderBillNum != "").ToList();//过滤 采购订单号不为空的集合
|
|
@ -316,7 +316,7 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (_lst != null) |
|
|
if (_lst != null && _lst.Count>0) |
|
|
{ |
|
|
{ |
|
|
//没有采购订单号
|
|
|
//没有采购订单号
|
|
|
var outPutDetail = await _wmsRepository.Where(p => p.Version == input.Version && p.OrderBillNum == "").ToListAsync(); |
|
|
var outPutDetail = await _wmsRepository.Where(p => p.Version == input.Version && p.OrderBillNum == "").ToListAsync(); |
|
@ -397,7 +397,7 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (_lstBill != null) |
|
|
if (_lstBill != null && _lstBill.Count>0) |
|
|
{ |
|
|
{ |
|
|
//有采购订单号
|
|
|
//有采购订单号
|
|
|
var outPutDetailBill = await _wmsRepository.Where(p => p.Version == input.Version && p.OrderBillNum != "").ToListAsync(); |
|
|
var outPutDetailBill = await _wmsRepository.Where(p => p.Version == input.Version && p.OrderBillNum != "").ToListAsync(); |
|
@ -455,7 +455,7 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts |
|
|
} |
|
|
} |
|
|
foreach (var job in _joblist) |
|
|
foreach (var job in _joblist) |
|
|
{ |
|
|
{ |
|
|
if (_lst != null) |
|
|
if (_lst != null && _lst.Count > 0) |
|
|
{ |
|
|
{ |
|
|
job.FileName = _billNum + "/" + _billNoNum; |
|
|
job.FileName = _billNum + "/" + _billNoNum; |
|
|
} |
|
|
} |
|
@ -898,7 +898,7 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
ExportImporter _exportImporter = new ExportImporter(); |
|
|
ExportImporter _exportImporter = new ExportImporter(); |
|
|
var result = await _exportImporter.ExtendExcelImport<WmsSharePartOutPutDetial>(files, _excelImportService); |
|
|
var result = await _exportImporter.ExtendExcelOfSheetOneImport<WmsSharePartOutPutDetial>(files, _excelImportService); |
|
|
|
|
|
|
|
|
if (result == null) |
|
|
if (result == null) |
|
|
{ |
|
|
{ |
|
|