|
@ -57,7 +57,7 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Route("api/settleaccount/wmskanbanoutput")] |
|
|
[Route("api/settleaccount/wmskanbanoutput")] |
|
|
[Authorize(SettleAccountPermissions.WMSJIT.Default)] |
|
|
//[Authorize(SettleAccountPermissions.WMSJIT.Default)]
|
|
|
public class WMSKanbanAppService : |
|
|
public class WMSKanbanAppService : |
|
|
SettleAccountApplicationBase<WmsKanbanOutPutDetial> |
|
|
SettleAccountApplicationBase<WmsKanbanOutPutDetial> |
|
|
{ |
|
|
{ |
|
@ -678,10 +678,11 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts |
|
|
{ |
|
|
{ |
|
|
var _billNum = "K" + DateTime.Now.ToString("yyyyMMddhhmmss"); |
|
|
var _billNum = "K" + DateTime.Now.ToString("yyyyMMddhhmmss"); |
|
|
ExportImporter _exportImporter = new ExportImporter(); |
|
|
ExportImporter _exportImporter = new ExportImporter(); |
|
|
var result = await _exportImporter.ExtendExcelImport<WmsKanbanOutPutDetial>(files, _excelImportService); |
|
|
var result = await _exportImporter.ExtendExcelOfSheetOneImport<WmsKanbanOutPutDetial>(files, _excelImportService); |
|
|
|
|
|
var filteResult = result.Where(p => p.Kanban != ""); |
|
|
List<WmsKanbanOutPutDetial> _lst = new List<WmsKanbanOutPutDetial>(); |
|
|
List<WmsKanbanOutPutDetial> _lst = new List<WmsKanbanOutPutDetial>(); |
|
|
var _lsCopy = new List<WmsKanbanOutPutDetial>(); |
|
|
var _lsCopy = new List<WmsKanbanOutPutDetial>(); |
|
|
foreach (var itm in result) |
|
|
foreach (var itm in filteResult) |
|
|
{ |
|
|
{ |
|
|
WmsKanbanOutPutDetial _detail = new WmsKanbanOutPutDetial( |
|
|
WmsKanbanOutPutDetial _detail = new WmsKanbanOutPutDetial( |
|
|
GuidGenerator.Create(), |
|
|
GuidGenerator.Create(), |
|
@ -754,7 +755,8 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts |
|
|
var _version = new WmsKanbanOutPut(GuidGenerator.Create(), version, _billNum, CurrentUser.Email); |
|
|
var _version = new WmsKanbanOutPut(GuidGenerator.Create(), version, _billNum, CurrentUser.Email); |
|
|
await _wmsVersionRepository.InsertAsync(_version, true); |
|
|
await _wmsVersionRepository.InsertAsync(_version, true); |
|
|
} |
|
|
} |
|
|
return _billNum; |
|
|
//return _billNum;
|
|
|
|
|
|
return ApplicationConsts.SuccessStr; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|