|
|
@ -2,15 +2,294 @@ using System.ComponentModel.DataAnnotations; |
|
|
|
using System; |
|
|
|
using Magicodes.ExporterAndImporter.Core; |
|
|
|
using Magicodes.ExporterAndImporter.Excel; |
|
|
|
using Win.Sfs.SettleAccount.Enums; |
|
|
|
|
|
|
|
namespace Win.Sfs.SettleAccount.Reports; |
|
|
|
|
|
|
|
[ExcelExporter(MaxRowNumberOnASheet = 900000)] |
|
|
|
/// <summary>
|
|
|
|
/// PUB结算与发运对比
|
|
|
|
/// </summary>
|
|
|
|
public class PubSaSeCompareDiff |
|
|
|
{ |
|
|
|
//[Display(Name = "LU+ASN单号")]
|
|
|
|
//public string KeyCode { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
|
|
/// Wms发货单号
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "Wms发货单号")] |
|
|
|
public string WmsBillNum { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 发货日期
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "发货日期")] |
|
|
|
public DateTime ShippingDate { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 日顺序号
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "日顺序号")] |
|
|
|
public string SeqNumber { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// PJIS日顺序号
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "PJIS日顺序号")] |
|
|
|
public string PJISSeqNumber { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 物料号
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "物料号")] |
|
|
|
public string MaterialNumber { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 物料描述
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "物料描述")] |
|
|
|
public string MaterialDes { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 结算数据中的过账日期
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "客户下线时间")] |
|
|
|
public DateTime CustomerOfflineTime { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 结算数量
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "结算数量")] |
|
|
|
public decimal SAQty { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 发货数量
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "发货数量")] |
|
|
|
public decimal SEQty { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 差异数量
|
|
|
|
/// </summary>
|
|
|
|
[ExporterHeader(DisplayName = "差异数量")] |
|
|
|
public decimal DiffQty { set; get; } |
|
|
|
|
|
|
|
[Display(Name = "匹配类型")] |
|
|
|
public string MateType { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 定价
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "定价")] |
|
|
|
public decimal FixPrice { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 替换零件号
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "替换零件号")] |
|
|
|
public string RepLU { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 零件号
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "零件号")] |
|
|
|
public string SeLU { set; get; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 生产号
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "生产号")] |
|
|
|
public string SePN { set; get; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 零件号
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "零件号")] |
|
|
|
public string SaLU { set; get; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 生产号
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "生产号")] |
|
|
|
public string SaPN { set; get; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 类型
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "类型")] |
|
|
|
public EnumPubSaSeCompareCategory Category { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 是否已经移除
|
|
|
|
/// </summary>
|
|
|
|
public bool IsRemove { get; set; } |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// PUB结算与发运对比明细
|
|
|
|
/// </summary>
|
|
|
|
[ExcelExporter(MaxRowNumberOnASheet = 900000)] |
|
|
|
public class PubSaSeCompareDetailExport |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// 类别
|
|
|
|
/// 有结算有发运
|
|
|
|
/// 有结算无发运
|
|
|
|
/// 无结算有发运
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "类别")] |
|
|
|
[ExporterHeader(DisplayName = "类别")] |
|
|
|
[ValueMapping("有结算有发运", 1)] |
|
|
|
[ValueMapping("有结算无发运", 2)] |
|
|
|
[ValueMapping("无结算有发运", 3)] |
|
|
|
public EnumPubSaSeCompareCategory Category { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Wms发货单号
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "Wms发货单号")] |
|
|
|
[ExporterHeader(DisplayName = "交货单号")] |
|
|
|
public string WmsBillNum { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
///
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "发货日期")] |
|
|
|
[ExporterHeader(DisplayName = "发货日期", Format = "yyyy-MM-dd")] |
|
|
|
public DateTime ShippingDate { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 生产码
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "生产码")] |
|
|
|
[ExporterHeader(DisplayName = "ASN发货单号")] |
|
|
|
public string PN { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 物料号
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "物料号")] |
|
|
|
[ExporterHeader(DisplayName = "厂内物料号")] |
|
|
|
public string MaterialNumber { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 物料描述
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "物料描述")] |
|
|
|
[ExporterHeader(DisplayName = "物料描述")] |
|
|
|
public string MaterialDes { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 原始LU
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "原始LU")] |
|
|
|
[ExporterHeader(DisplayName = "原始LU")] |
|
|
|
public string PrimitiveLU { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
///替换LU
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "替换LU")] |
|
|
|
[ExporterHeader(DisplayName = "替换LU")] |
|
|
|
public string ReplaceLU { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 结算数据中的过账日期
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "客户下线时间")] |
|
|
|
[ExporterHeader(DisplayName = "客户下线时间")] |
|
|
|
public DateTime CustomerOfflineTime { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 结算数量
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "结算数量")] |
|
|
|
[ExporterHeader(DisplayName = "结算数量")] |
|
|
|
public decimal SAQty { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 发货数量
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "发货数量")] |
|
|
|
[ExporterHeader(DisplayName = "WMS发货数量")] |
|
|
|
public decimal SEQty { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 差异数量
|
|
|
|
/// </summary>
|
|
|
|
[ExporterHeader(DisplayName = "差异数量")] |
|
|
|
public decimal DiffQty { set; get; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 匹配类型
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "匹配类型")] |
|
|
|
[ExporterHeader(DisplayName = "是否完全匹配")] |
|
|
|
public string MateType { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 定价
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "定价")] |
|
|
|
[ExporterHeader(DisplayName = "定价")] |
|
|
|
public decimal FixPrice { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 日顺序号
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "日顺序号")] |
|
|
|
[ExporterHeader(DisplayName = "日顺序号")] |
|
|
|
public string SeqNumber { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// PJIS日顺序号
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "PJIS日顺序号")] |
|
|
|
[ExporterHeader(DisplayName = "PJIS日顺序号")] |
|
|
|
public string PJISSeqNumber { get; set; } |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// PUB结算与发运对比汇总
|
|
|
|
/// </summary>
|
|
|
|
[ExcelExporter(MaxRowNumberOnASheet = 900000)] |
|
|
|
public class PubSaSeCompareSumExport |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// LU
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "LU")] |
|
|
|
[ExporterHeader(DisplayName = "LU")] |
|
|
|
public string LU { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 物料描述
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "物料描述")] |
|
|
|
[ExporterHeader(DisplayName = "物料描述")] |
|
|
|
public string MaterialDes { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 结算数量
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "结算数量")] |
|
|
|
[ExporterHeader(DisplayName = "结算数量")] |
|
|
|
public decimal SAQty { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 发货数量
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "发货数量")] |
|
|
|
[ExporterHeader(DisplayName = "WMS发货数量")] |
|
|
|
public decimal SEQty { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 差异数量
|
|
|
|
/// </summary>
|
|
|
|
[ExporterHeader(DisplayName = "差异数量")] |
|
|
|
public decimal DiffQty { set; get; } |
|
|
|
} |
|
|
|
|
|
|
|
[ExcelExporter(MaxRowNumberOnASheet = 900000)] |
|
|
|
public class PubSaSeCompareDiffExport222 |
|
|
|
{ |
|
|
|
/// <summary>
|
|
|
|
/// 有结算无发货(无EDI数据)
|
|
|
|
///有结算无发货(有EDI数据)
|
|
|
@ -23,31 +302,28 @@ public class PubSaSeCompareDiff |
|
|
|
///有结算有发货(WMS多发)
|
|
|
|
/// </summary>
|
|
|
|
[Display(Name = "类别")] |
|
|
|
public string Category { get; set; } = null!; |
|
|
|
public string Category { get; set; } |
|
|
|
|
|
|
|
//[Display(Name = "Wms发货单号")]
|
|
|
|
//public string WmsBillNum { get; set; } = null!;
|
|
|
|
[Display(Name = "Wms发货单号")] |
|
|
|
public string WmsBillNum { get; set; } |
|
|
|
|
|
|
|
//[Display(Name = "发货时间")]
|
|
|
|
//public DateTime ShippingDate { get; set; }
|
|
|
|
[Display(Name = "发货日期")] |
|
|
|
public DateTime ShippingDate { get; set; } |
|
|
|
|
|
|
|
//[Display(Name = "生产码")]
|
|
|
|
//public string PN { get; set; } = null!;
|
|
|
|
|
|
|
|
[Display(Name = "日顺序号")] |
|
|
|
public string SeqNumber { get; set; } = null!; |
|
|
|
|
|
|
|
[Display(Name = "PJIS日顺序号")] |
|
|
|
public string PJISSeqNumber { get; set; } = null!; |
|
|
|
[Display(Name = "生产码")] |
|
|
|
public string PN { get; set; } |
|
|
|
|
|
|
|
[Display(Name = "物料号")] |
|
|
|
public string MaterialNumber { get; set; } = null!; |
|
|
|
public string MaterialNumber { get; set; } |
|
|
|
|
|
|
|
[Display(Name = "物料描述")] |
|
|
|
public string MaterialDes { get; set; } = null!; |
|
|
|
public string MaterialDes { get; set; } |
|
|
|
|
|
|
|
//[Display(Name = "零件号")]
|
|
|
|
//public string LU { get; set; } = null!;
|
|
|
|
[Display(Name = "原始LU")] |
|
|
|
public string PrimitiveLU { get; set; } |
|
|
|
|
|
|
|
[Display(Name = "替换LU")] |
|
|
|
public string ReplaceLU { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 结算数据中的过账日期
|
|
|
@ -55,24 +331,59 @@ public class PubSaSeCompareDiff |
|
|
|
[Display(Name = "客户下线时间")] |
|
|
|
public DateTime CustomerOfflineTime { get; set; } |
|
|
|
|
|
|
|
[Display(Name = "小总成号")] |
|
|
|
public string AssemblyCode { get; set; } |
|
|
|
|
|
|
|
[Display(Name = "注塑码")] |
|
|
|
public string InjectionCode { get; set; } |
|
|
|
|
|
|
|
[Display(Name = "结算数量")] |
|
|
|
public decimal SAQty { get; set; } |
|
|
|
|
|
|
|
[Display(Name = "发货数量")] |
|
|
|
public decimal SEQty { get; set; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 差异数量
|
|
|
|
/// </summary>
|
|
|
|
[ExporterHeader(DisplayName = "差异数量")] |
|
|
|
public decimal DiffQty { set; get; } |
|
|
|
|
|
|
|
[Display(Name = "匹配类型")] |
|
|
|
public string MateType { get; set; } |
|
|
|
|
|
|
|
[Display(Name = "定价")] |
|
|
|
public decimal FixPrice { get; set; } |
|
|
|
|
|
|
|
[Display(Name = "PJIS日顺序号")] |
|
|
|
public string PJISSeqNumber { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Display(Name = "日顺序号")] |
|
|
|
public string SeqNumber { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//[Display(Name = "零件号")]
|
|
|
|
//public string LU { get; set; } = null!;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Display(Name = "小总成号")] |
|
|
|
public string AssemblyCode { get; set; } |
|
|
|
|
|
|
|
[Display(Name = "注塑码")] |
|
|
|
public string InjectionCode { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Display(Name = "期间")] |
|
|
|
public int Version { get; set; } |
|
|
|
|
|
|
@ -116,9 +427,5 @@ public class PubSaSeCompareDiff |
|
|
|
[ExporterHeader(DisplayName = "发运数量")] |
|
|
|
public decimal SeQty { set; get; } |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 差异数量
|
|
|
|
/// </summary>
|
|
|
|
[ExporterHeader(DisplayName = "差异数量")] |
|
|
|
public decimal DiffQty { set; get; } |
|
|
|
|
|
|
|
} |
|
|
|