金蝶数据导入出库单
This commit is contained in:
@@ -167,5 +167,69 @@ namespace WMS.Web.Domain.Services
|
||||
|
||||
return await this.SsynDate(erp_result.Data.ToList(), isTransaction);
|
||||
}
|
||||
/// <summary>
|
||||
/// 直接调拨
|
||||
/// </summary>
|
||||
/// <param name="isTransaction"></param>
|
||||
/// <param name="sourceBillNos"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<Result> BillQueryForTransferDirectOutStock(bool isTransaction, List<string> sourceBillNos = null)
|
||||
{
|
||||
var erp_result = await _erpService.BillQueryForTransferDirectOutStock(sourceBillNos);
|
||||
if (!erp_result.IsSuccess)
|
||||
return Result.ReFailure(erp_result.Message, erp_result.Status);
|
||||
|
||||
return await this.SsynDate(erp_result.Data.ToList(), isTransaction);
|
||||
}
|
||||
/// <summary>
|
||||
/// 分布式调出
|
||||
/// </summary>
|
||||
/// <param name="isTransaction"></param>
|
||||
/// <param name="sourceBillNos"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<Result> BillQueryForTransferOutOutStock(bool isTransaction, List<string> sourceBillNos = null)
|
||||
{
|
||||
var erp_result = await _erpService.BillQueryForTransferOutOutStock(sourceBillNos);
|
||||
if (!erp_result.IsSuccess)
|
||||
return Result.ReFailure(erp_result.Message, erp_result.Status);
|
||||
|
||||
return await this.SsynDate(erp_result.Data.ToList(), isTransaction);
|
||||
}
|
||||
/// <summary>
|
||||
/// 组装拆卸单
|
||||
/// </summary>
|
||||
/// <param name="isTransaction"></param>
|
||||
/// <param name="sourceBillNos"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<Result> BillQueryForAssembledAppOutStock(bool isTransaction, List<string> sourceBillNos = null)
|
||||
{
|
||||
List<ErpDeliveryNoticeOutStockResultDto> list = new List<ErpDeliveryNoticeOutStockResultDto>();
|
||||
|
||||
var erp_result = await _erpService.BillQueryForAssembledAppOutStock_Dassembly(sourceBillNos);
|
||||
if (!erp_result.IsSuccess)
|
||||
return Result.ReFailure(erp_result.Message, erp_result.Status);
|
||||
list.AddRange(erp_result.Data);
|
||||
|
||||
var erp_result_a = await _erpService.BillQueryForAssembledAppOutStock_Assembly(sourceBillNos);
|
||||
if (!erp_result_a.IsSuccess)
|
||||
return Result.ReFailure(erp_result_a.Message, erp_result_a.Status);
|
||||
list.AddRange(erp_result_a.Data);
|
||||
|
||||
return await this.SsynDate(list, isTransaction);
|
||||
}
|
||||
/// <summary>
|
||||
/// 其他入库单
|
||||
/// </summary>
|
||||
/// <param name="isTransaction"></param>
|
||||
/// <param name="sourceBillNos"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<Result> BillQueryForMisDeliveryOutStock(bool isTransaction, List<string> sourceBillNos = null)
|
||||
{
|
||||
var erp_result = await _erpService.BillQueryForMisDeliveryOutStock(sourceBillNos);
|
||||
if (!erp_result.IsSuccess)
|
||||
return Result.ReFailure(erp_result.Message, erp_result.Status);
|
||||
|
||||
return await this.SsynDate(erp_result.Data.ToList(), isTransaction);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user