Browse Source

更新版本

FoShanPG
Administrator 2 years ago
parent
commit
3a3d6b2fe7
  1. 32
      src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/Materials/MaterialDtoBase.cs
  2. 4
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/ErpShipping/ErpShippingAppService.cs
  3. 19
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/ErrorListBill/ErrorBillAppService.cs
  4. 9
      src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/ErrorBillNum/ErrorBillNum.cs

32
src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/Materials/MaterialDtoBase.cs

@ -30,6 +30,11 @@ namespace Win.Sfs.SettleAccount.Entities.Errors
/// </summary> /// </summary>
public string WmsBillNum { set; get; } public string WmsBillNum { set; get; }
public string MaterialDesc { set; get; }
public string CustomerMaterialCode { set; get; }
} }
public class ErrorBillImportDto public class ErrorBillImportDto
@ -37,18 +42,25 @@ namespace Win.Sfs.SettleAccount.Entities.Errors
/// <summary> /// <summary>
///错误单据号 ///错误单据号
/// </summary> /// </summary>
public string BillNum { get; protected set; } [ImporterHeader(Name = "底盘|看板号|订单号")]
public string BillNum { get; set; }
/// <summary> /// <summary>
/// 物料号 /// 物料号
/// </summary> /// </summary>
[ImporterHeader(Name = "ERP物料号")]
public string MaterialCode { set; get; } public string MaterialCode { set; get; }
/// <summary> /// <summary>
/// 发货单号 /// 发货单号
/// </summary> /// </summary>
[ImporterHeader(Name = "交货单号")]
public string WmsBillNum { set; get; } public string WmsBillNum { set; get; }
[ImporterHeader(Name = "物料描述")]
public string MaterialDesc { set; get; }
[ImporterHeader(Name = "客户物料号")]
public string CustomerMaterialCode { set; get; }
} }
public class ErrorBillExportDto public class ErrorBillExportDto
@ -62,7 +74,7 @@ namespace Win.Sfs.SettleAccount.Entities.Errors
/// <summary> /// <summary>
/// 物料号 /// 物料号
/// </summary> /// </summary>
[ExporterHeader(DisplayName = "物料号", IsBold = true)] [ExporterHeader(DisplayName = "ERP物料号", IsBold = true)]
public string MaterialCode { set; get; } public string MaterialCode { set; get; }
/// <summary> /// <summary>
@ -71,6 +83,13 @@ namespace Win.Sfs.SettleAccount.Entities.Errors
[ExporterHeader(DisplayName = "交货单号", IsBold = true)] [ExporterHeader(DisplayName = "交货单号", IsBold = true)]
public string WmsBillNum { set; get; } public string WmsBillNum { set; get; }
[ExporterHeader(DisplayName = "物料描述", IsBold = true)]
public string MaterialDesc { set; get; }
[ExporterHeader(DisplayName = "客户物料号", IsBold = true)]
public string CustomerMaterialCode { set; get; }
} }
@ -91,6 +110,11 @@ namespace Win.Sfs.SettleAccount.Entities.Errors
/// </summary> /// </summary>
public string WmsBillNum { set; get; } public string WmsBillNum { set; get; }
public Guid BranchId { get; set; } public Guid BranchId { get; set; }
public string MaterialDesc { set; get; }
public string CustomerMaterialCode { set; get; }
} }
} }

4
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/ErpShipping/ErpShippingAppService.cs

@ -231,13 +231,9 @@ namespace Win.Sfs.SettleAccount.ERPShippingDetails
//声明导出容器 //声明导出容器
byte[] result = null; byte[] result = null;
_fileName = string.Format("ERP调拨_{0}.xlsx", Guid.NewGuid().ToString("N")); _fileName = string.Format("ERP调拨_{0}.xlsx", Guid.NewGuid().ToString("N"));
result = await _excel.ExportAsByteArray(dtoDetails); result = await _excel.ExportAsByteArray(dtoDetails);
result.ShouldNotBeNull(); result.ShouldNotBeNull();
//保存导出文件到服务器存成二进制 //保存导出文件到服务器存成二进制

19
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/ErrorListBill/ErrorBillAppService.cs

@ -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(), GuidGenerator.Create(),
itm.BillNum, itm.BillNum,
itm.MaterialCode, itm.MaterialCode,
itm.WmsBillNum itm.WmsBillNum,
itm.MaterialDesc,
itm.CustomerMaterialCode
); );
await _repository.InsertAsync(entity); await _repository.InsertAsync(entity);
} }
@ -184,7 +183,6 @@ namespace Win.Sfs.SettleAccount.Entities.ErrorBills
return dto; return dto;
} }
private async Task<ErrorBill> GetFromCacheAsync(Guid id) private async Task<ErrorBill> GetFromCacheAsync(Guid id)
{ {
var result = await _repository.GetAsync(id); var result = await _repository.GetAsync(id);
@ -192,7 +190,6 @@ namespace Win.Sfs.SettleAccount.Entities.ErrorBills
return result; return result;
} }
private async Task<long> GetCountAsync(ErrorBillRequestDto input) private async Task<long> GetCountAsync(ErrorBillRequestDto input)
{ {
return await _repository.GetCountByFilterAsync(input.BranchId, input.Filters); 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) 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, var entities = await _repository.GetListByFilterAsync(input.BranchId, input.Filters, input.Sorting, int.MaxValue,
0, true); 0, true);

9
src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/ErrorBillNum/ErrorBillNum.cs

@ -14,12 +14,14 @@ namespace Win.Sfs.SettleAccount.Errors
public ErrorBill( public ErrorBill(
Guid id, Guid id,
Guid branchId, Guid branchId,
string billNum, string materialCode, string wmsBillNum):base(id) string billNum, string materialCode, string wmsBillNum,string materialDesc,string customerMaterialCode):base(id)
{ {
BranchId = branchId; BranchId = branchId;
BillNum = billNum; BillNum = billNum;
MaterialCode = materialCode; MaterialCode = materialCode;
WmsBillNum = wmsBillNum; WmsBillNum = wmsBillNum;
MaterialDesc = materialDesc;
CustomerMaterialCode = customerMaterialCode;
} }
/// <summary> /// <summary>
@ -38,5 +40,10 @@ namespace Win.Sfs.SettleAccount.Errors
public string WmsBillNum { set; get; } public string WmsBillNum { set; get; }
public string MaterialDesc { set; get; }
public string CustomerMaterialCode { set; get; }
} }
} }
Loading…
Cancel
Save