mahao 1 year ago
parent
commit
1dbdb734c4
  1. 1
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_SE_DETAIL_SERVICE.cs
  2. 8
      code/src/Modules/SettleAccount/src/SettleAccount.Domain/EnumBusinessType.cs
  3. 8
      code/src/Modules/SettleAccount/src/SettleAccount.Domain/Reports/SeEidCompareReport.cs
  4. 3
      code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/SeEdiCompareExportBaseService.cs

1
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_SE_DETAIL_SERVICE.cs

@ -114,7 +114,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
AssemblyDate = DateTime.Now, AssemblyDate = DateTime.Now,
MatchNumber = i.ToString(), MatchNumber = i.ToString(),
InjectionCode = i.ToString(), InjectionCode = i.ToString(),
MateType = "是",
DiffDesc = "WMS有发货EDI有订单" DiffDesc = "WMS有发货EDI有订单"
}); });
} }

8
code/src/Modules/SettleAccount/src/SettleAccount.Domain/EnumBusinessType.cs

@ -12,49 +12,41 @@ public enum EnumBusinessType
/// </summary> /// </summary>
[Display(Name = "未定义")] [Display(Name = "未定义")]
None = 0, None = 0,
/// <summary> /// <summary>
/// JisBBAC /// JisBBAC
/// </summary> /// </summary>
[Display(Name = "JisBBAC")] [Display(Name = "JisBBAC")]
JisBBAC = 1, JisBBAC = 1,
/// <summary> /// <summary>
/// JisHBPO /// JisHBPO
/// </summary> /// </summary>
[Display(Name = "JisHBPO")] [Display(Name = "JisHBPO")]
JisHBPO = 2, JisHBPO = 2,
/// <summary> /// <summary>
/// 直供件BBAC /// 直供件BBAC
/// </summary> /// </summary>
[Display(Name = "直供件BBAC")] [Display(Name = "直供件BBAC")]
ZhiGongJianBBAC = 3, ZhiGongJianBBAC = 3,
/// <summary> /// <summary>
/// 直供件HBPO /// 直供件HBPO
/// </summary> /// </summary>
[Display(Name = "直供件HBPO")] [Display(Name = "直供件HBPO")]
ZhiGongJianHBPO = 4, ZhiGongJianHBPO = 4,
/// <summary> /// <summary>
/// 买单件BBAC /// 买单件BBAC
/// </summary> /// </summary>
[Display(Name = "买单件BBAC")] [Display(Name = "买单件BBAC")]
MaiDanJianBBAC = 5, MaiDanJianBBAC = 5,
/// <summary> /// <summary>
/// 买单件HBPO /// 买单件HBPO
/// </summary> /// </summary>
[Display(Name = "买单件HBPO")] [Display(Name = "买单件HBPO")]
MaiDanJianHBPO = 6, MaiDanJianHBPO = 6,
/// <summary> /// <summary>
/// 备件 /// 备件
/// </summary> /// </summary>
[Display(Name = "备件")] [Display(Name = "备件")]
BeiJian = 7, BeiJian = 7,
/// <summary> /// <summary>
/// 印度件 /// 印度件
/// </summary> /// </summary>

8
code/src/Modules/SettleAccount/src/SettleAccount.Domain/Reports/SeEidCompareReport.cs

@ -136,11 +136,13 @@ public class SeEidCompareReport
[ExporterHeader(DisplayName = "注塑码")] [ExporterHeader(DisplayName = "注塑码")]
public string InjectionCode { get; set; } public string InjectionCode { get; set; }
/// <summary> /// <summary>
/// 是否完全匹配 /// 匹配类型
/// </summary> /// </summary>
[Display(Name = "是否完全匹配")] [Display(Name = "匹配类型")]
[ExporterHeader(DisplayName = "是否完全匹配")] [ExporterHeader(DisplayName = "是否完全匹配")]
public string MateType { get; set; } [ValueMapping("是", true)]
[ValueMapping("否", false)]
public bool MateType => DiffQty == 0m;
/// <summary> /// <summary>
/// 差异说明 /// 差异说明
/// </summary> /// </summary>

3
code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/SeEdiCompareExportBaseService.cs

@ -66,7 +66,6 @@ namespace SettleAccount.Job.Services.Report
EdiQty = t.Sum(t => t.Qty), EdiQty = t.Sum(t => t.Qty),
AssemblyDate = default, AssemblyDate = default,
MatchNumber = default, MatchNumber = default,
MateType = "否",
DiffDesc = "WMS漏发货EDI有订单" DiffDesc = "WMS漏发货EDI有订单"
}).ToList(); }).ToList();
haveEdiNotHaveSeList.ForEach(t => haveEdiNotHaveSeList.ForEach(t =>
@ -94,7 +93,6 @@ namespace SettleAccount.Job.Services.Report
MaterialDes = t.Max(t => t.PartDesc), MaterialDes = t.Max(t => t.PartDesc),
SEQty = t.Sum(t => t.Qty), SEQty = t.Sum(t => t.Qty),
InjectionCode = t.Max(t => t.InjectionCode), InjectionCode = t.Max(t => t.InjectionCode),
MateType = "否",
DiffDesc = "WMS有发货EDI无订单" DiffDesc = "WMS有发货EDI无订单"
}).ToList(); }).ToList();
//有EDI有发运 //有EDI有发运
@ -156,7 +154,6 @@ namespace SettleAccount.Job.Services.Report
AssemblyDate = default, AssemblyDate = default,
MatchNumber = default, MatchNumber = default,
InjectionCode = se.InjectionCode, InjectionCode = se.InjectionCode,
MateType = se.Qty == edi.Qty ? "是" : "否",
DiffDesc = "WMS有发货EDI有订单" DiffDesc = "WMS有发货EDI有订单"
}).ToList(); }).ToList();
haveEdiHaveSeList.ForEach(t => t.SequenceNumber = GetSequenceNumberDate(t.SequenceNumber)); haveEdiHaveSeList.ForEach(t => t.SequenceNumber = GetSequenceNumberDate(t.SequenceNumber));

Loading…
Cancel
Save