学 赵
1 year ago
42 changed files with 1118 additions and 1438 deletions
@ -1,824 +0,0 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Magicodes.ExporterAndImporter.Core; |
|||
using Magicodes.ExporterAndImporter.Excel; |
|||
using Win.Sfs.SettleAccount.Enums; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Reports; |
|||
|
|||
/// <summary>
|
|||
/// PUB结算与发运对比
|
|||
/// </summary>
|
|||
public class PubSaSeCompareDiff |
|||
{ |
|||
/// <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 DateTime? CustomerOfflineTime { get; set; } |
|||
/// <summary>
|
|||
/// 结算数量
|
|||
/// </summary>
|
|||
[Display(Name = "结算数量")] |
|||
public decimal? SAQty { get; set; } |
|||
/// <summary>
|
|||
/// 发货数量
|
|||
/// </summary>
|
|||
[Display(Name = "发货数量")] |
|||
public decimal? SEQty { get; set; } |
|||
/// <summary>
|
|||
/// 生产号
|
|||
/// </summary>
|
|||
[Display(Name = "生产号")] |
|||
public string PN { set; get; } |
|||
/// <summary>
|
|||
/// 客户物料号
|
|||
/// </summary>
|
|||
[Display(Name = "客户物料号")] |
|||
public string LU { set; get; } |
|||
/// <summary>
|
|||
/// WMS目标库位
|
|||
/// </summary>
|
|||
[Display(Name = "WMS目标库位")] |
|||
public string ToLocCode { get; set; } |
|||
/// <summary>
|
|||
/// ERP目标库位
|
|||
/// </summary>
|
|||
[Display(Name = "ERP目标库位")] |
|||
public string ToErpLocCode { get; set; } |
|||
/// <summary>
|
|||
/// 类型
|
|||
/// </summary>
|
|||
[Display(Name = "类型")] |
|||
public EnumPubSaSeCompareCategory Category { get; set; } |
|||
/// <summary>
|
|||
/// 发运客户物料号
|
|||
/// </summary>
|
|||
public string SeCustomerPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 发运厂内物料号
|
|||
/// </summary>
|
|||
public string SeFactoryPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 结算客户物料号
|
|||
/// </summary>
|
|||
public string SaCustomerPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 结算厂内物料号
|
|||
/// </summary>
|
|||
public string SaFactoryPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 客户物料号
|
|||
/// </summary>
|
|||
[Display(Name = "客户物料号")] |
|||
public string CustomerPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 物料描述
|
|||
/// </summary>
|
|||
[Display(Name = "物料描述")] |
|||
public string PartCodeDesc { get; set; } |
|||
/// <summary>
|
|||
/// 厂内物料号
|
|||
/// </summary>
|
|||
[Display(Name = "厂内物料号")] |
|||
public string FactoryPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 替换厂内物料号
|
|||
/// </summary>
|
|||
[Display(Name = "替换厂内物料号")] |
|||
public string ReplaceFactoryPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 是否已经移除
|
|||
/// </summary>
|
|||
public bool IsRemove { get; set; } |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// PUB结算与发运对比明细
|
|||
/// </summary>
|
|||
[ExcelExporter(MaxRowNumberOnASheet = 900000)] |
|||
public class PubSaSeCompareDetailExport |
|||
{ |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// PUB结算与发运对比明细
|
|||
/// </summary>
|
|||
public interface IPubSaSeCompareDetailExport |
|||
{ |
|||
/// <summary>
|
|||
/// 类别
|
|||
/// </summary>
|
|||
[Display(Name = "类别")] |
|||
[ExporterHeader(DisplayName = "类别")] |
|||
[ValueMapping("有结算有发运", 1)] |
|||
[ValueMapping("有结算无发运", 2)] |
|||
[ValueMapping("无结算有发运", 3)] |
|||
public EnumPubSaSeCompareCategory Category { get; set; } |
|||
/// <summary>
|
|||
/// 零件描述
|
|||
/// </summary>
|
|||
[Display(Name = "零件描述")] |
|||
[ExporterHeader(DisplayName = "物料描述")] |
|||
public string PartCodeDesc { get; set; } |
|||
/// <summary>
|
|||
/// 替换厂内零件号
|
|||
/// </summary>
|
|||
[Display(Name = "替换厂内零件号")] |
|||
[ExporterHeader(DisplayName = "替换厂内零件号")] |
|||
public string ReplaceFactoryPartCode { 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>
|
|||
/// PUB结算与发运对比汇总
|
|||
/// </summary>
|
|||
[ExcelExporter(MaxRowNumberOnASheet = 900000)] |
|||
public class PubSaSeCompareSumExport |
|||
{ |
|||
/// <summary>
|
|||
/// 厂内物料号
|
|||
/// </summary>
|
|||
[Display(Name = "厂内物料号")] |
|||
[ExporterHeader(DisplayName = "LU")] |
|||
public string FactoryPartCode { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 物料描述
|
|||
/// </summary>
|
|||
[Display(Name = "物料描述")] |
|||
[ExporterHeader(DisplayName = "物料描述")] |
|||
public string PartCodeDesc { 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 => SAQty - SEQty; |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// 直供件BBAC结算与发运对比明细
|
|||
/// </summary>
|
|||
[ExcelExporter(MaxRowNumberOnASheet = 900000)] |
|||
public class PubSaSeCompareDetailExportZhiGongJianBBAC : PubSaSeCompareDetailExport, IPubSaSeCompareDetailExport |
|||
{ |
|||
/// <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 CustomerPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 零件描述
|
|||
/// </summary>
|
|||
[Display(Name = "零件描述")] |
|||
[ExporterHeader(DisplayName = "零件描述")] |
|||
public string PartCodeDesc { get; set; } |
|||
/// <summary>
|
|||
/// 厂内零件号
|
|||
/// </summary>
|
|||
[Display(Name = "厂内零件号")] |
|||
[ExporterHeader(DisplayName = "厂内零件号")] |
|||
public string FactoryPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 替换厂内零件号
|
|||
/// </summary>
|
|||
[Display(Name = "替换厂内零件号")] |
|||
[ExporterHeader(DisplayName = "替换厂内零件号")] |
|||
public string ReplaceFactoryPartCode { 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 => SAQty - SEQty; |
|||
/// <summary>
|
|||
/// 匹配类型
|
|||
/// </summary>
|
|||
[Display(Name = "匹配类型")] |
|||
[ExporterHeader(DisplayName = "是否完全匹配")] |
|||
[ValueMapping("是", true)] |
|||
[ValueMapping("否", false)] |
|||
public bool MateType => DiffQty == 0; |
|||
/// <summary>
|
|||
/// WMS目标库位
|
|||
/// </summary>
|
|||
[Display(Name = "WMS目标库位")] |
|||
[ExporterHeader(DisplayName = "WMS目标库位")] |
|||
public string ToLocCode { get; set; } |
|||
/// <summary>
|
|||
/// ERP目标库位
|
|||
/// </summary>
|
|||
[Display(Name = "ERP目标库位")] |
|||
[ExporterHeader(DisplayName = "ERP目标库位")] |
|||
public string ToErpLocCode { get; set; } |
|||
} |
|||
|
|||
|
|||
/// <summary>
|
|||
/// 直供件HBPO结算与发运对比明细
|
|||
/// </summary>
|
|||
[ExcelExporter(MaxRowNumberOnASheet = 900000)] |
|||
public class PubSaSeCompareDetailExportZhiGongJianHBPO : PubSaSeCompareDetailExport, IPubSaSeCompareDetailExport |
|||
{ |
|||
/// <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 CustomerPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 零件描述
|
|||
/// </summary>
|
|||
[Display(Name = "零件描述")] |
|||
[ExporterHeader(DisplayName = "零件描述")] |
|||
public string PartCodeDesc { get; set; } |
|||
/// <summary>
|
|||
/// 厂内零件号
|
|||
/// </summary>
|
|||
[Display(Name = "厂内零件号")] |
|||
[ExporterHeader(DisplayName = "厂内零件号")] |
|||
public string FactoryPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 替换厂内零件号
|
|||
/// </summary>
|
|||
[Display(Name = "替换厂内零件号")] |
|||
[ExporterHeader(DisplayName = "替换厂内零件号")] |
|||
public string ReplaceFactoryPartCode { 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 => SAQty - SEQty; |
|||
/// <summary>
|
|||
/// 匹配类型
|
|||
/// </summary>
|
|||
[Display(Name = "匹配类型")] |
|||
[ExporterHeader(DisplayName = "是否完全匹配")] |
|||
[ValueMapping("是", true)] |
|||
[ValueMapping("否", false)] |
|||
public bool MateType => DiffQty == 0; |
|||
/// <summary>
|
|||
/// WMS目标库位
|
|||
/// </summary>
|
|||
[Display(Name = "WMS目标库位")] |
|||
[ExporterHeader(DisplayName = "WMS目标库位")] |
|||
public string ToLocCode { get; set; } |
|||
/// <summary>
|
|||
/// ERP目标库位
|
|||
/// </summary>
|
|||
[Display(Name = "ERP目标库位")] |
|||
[ExporterHeader(DisplayName = "ERP目标库位")] |
|||
public string ToErpLocCode { get; set; } |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// 买单件BBAC结算与发运对比明细
|
|||
/// </summary>
|
|||
[ExcelExporter(MaxRowNumberOnASheet = 900000)] |
|||
public class PubSaSeCompareDetailExportMaiDanJianBBAC : PubSaSeCompareDetailExport, IPubSaSeCompareDetailExport |
|||
{ |
|||
/// <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 = "索引号")] |
|||
public string PN { get; set; } |
|||
/// <summary>
|
|||
/// 客户零件号
|
|||
/// </summary>
|
|||
[Display(Name = "客户零件号")] |
|||
[ExporterHeader(DisplayName = "客户零件号")] |
|||
public string CustomerPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 零件描述
|
|||
/// </summary>
|
|||
[Display(Name = "零件描述")] |
|||
[ExporterHeader(DisplayName = "零件描述")] |
|||
public string PartCodeDesc { get; set; } |
|||
/// <summary>
|
|||
/// 厂内零件号
|
|||
/// </summary>
|
|||
[Display(Name = "厂内零件号")] |
|||
[ExporterHeader(DisplayName = "厂内零件号")] |
|||
public string FactoryPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 替换厂内零件号
|
|||
/// </summary>
|
|||
[Display(Name = "替换厂内零件号")] |
|||
[ExporterHeader(DisplayName = "替换厂内零件号")] |
|||
public string ReplaceFactoryPartCode { 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 => SAQty - SEQty; |
|||
/// <summary>
|
|||
/// 匹配类型
|
|||
/// </summary>
|
|||
[Display(Name = "匹配类型")] |
|||
[ExporterHeader(DisplayName = "是否完全匹配")] |
|||
[ValueMapping("是", true)] |
|||
[ValueMapping("否", false)] |
|||
public bool MateType => DiffQty == 0; |
|||
/// <summary>
|
|||
/// WMS目标库位
|
|||
/// </summary>
|
|||
[Display(Name = "WMS目标库位")] |
|||
[ExporterHeader(DisplayName = "WMS目标库位")] |
|||
public string ToLocCode { get; set; } |
|||
/// <summary>
|
|||
/// ERP目标库位
|
|||
/// </summary>
|
|||
[Display(Name = "ERP目标库位")] |
|||
[ExporterHeader(DisplayName = "ERP目标库位")] |
|||
public string ToErpLocCode { get; set; } |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// 买单件HBPO结算与发运对比明细
|
|||
/// </summary>
|
|||
[ExcelExporter(MaxRowNumberOnASheet = 900000)] |
|||
public class PubSaSeCompareDetailExportMaiDanJianHBPO : PubSaSeCompareDetailExport, IPubSaSeCompareDetailExport |
|||
{ |
|||
/// <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 = "索引号")] |
|||
public string PN { get; set; } |
|||
/// <summary>
|
|||
/// 客户零件号
|
|||
/// </summary>
|
|||
[Display(Name = "客户零件号")] |
|||
[ExporterHeader(DisplayName = "客户零件号")] |
|||
public string CustomerPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 零件描述
|
|||
/// </summary>
|
|||
[Display(Name = "零件描述")] |
|||
[ExporterHeader(DisplayName = "零件描述")] |
|||
public string PartCodeDesc { get; set; } |
|||
/// <summary>
|
|||
/// 厂内零件号
|
|||
/// </summary>
|
|||
[Display(Name = "厂内零件号")] |
|||
[ExporterHeader(DisplayName = "厂内零件号")] |
|||
public string FactoryPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 替换厂内零件号
|
|||
/// </summary>
|
|||
[Display(Name = "替换厂内零件号")] |
|||
[ExporterHeader(DisplayName = "替换厂内零件号")] |
|||
public string ReplaceFactoryPartCode { 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 => SAQty - SEQty; |
|||
/// <summary>
|
|||
/// 匹配类型
|
|||
/// </summary>
|
|||
[Display(Name = "匹配类型")] |
|||
[ExporterHeader(DisplayName = "是否完全匹配")] |
|||
[ValueMapping("是", true)] |
|||
[ValueMapping("否", false)] |
|||
public bool MateType => DiffQty == 0; |
|||
/// <summary>
|
|||
/// WMS目标库位
|
|||
/// </summary>
|
|||
[Display(Name = "WMS目标库位")] |
|||
[ExporterHeader(DisplayName = "WMS目标库位")] |
|||
public string ToLocCode { get; set; } |
|||
/// <summary>
|
|||
/// ERP目标库位
|
|||
/// </summary>
|
|||
[Display(Name = "ERP目标库位")] |
|||
[ExporterHeader(DisplayName = "ERP目标库位")] |
|||
public string ToErpLocCode { get; set; } |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// 备件结算与发运对比明细
|
|||
/// </summary>
|
|||
[ExcelExporter(MaxRowNumberOnASheet = 900000)] |
|||
public class PubSaSeCompareDetailExportBeiJian : PubSaSeCompareDetailExport, IPubSaSeCompareDetailExport |
|||
{ |
|||
/// <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 = "索引号")] |
|||
public string PN { get; set; } |
|||
/// <summary>
|
|||
/// 客户零件号
|
|||
/// </summary>
|
|||
[Display(Name = "客户零件号")] |
|||
[ExporterHeader(DisplayName = "客户零件号")] |
|||
public string CustomerPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 零件描述
|
|||
/// </summary>
|
|||
[Display(Name = "零件描述")] |
|||
[ExporterHeader(DisplayName = "零件描述")] |
|||
public string PartCodeDesc { get; set; } |
|||
/// <summary>
|
|||
/// 厂内零件号
|
|||
/// </summary>
|
|||
[Display(Name = "厂内零件号")] |
|||
[ExporterHeader(DisplayName = "厂内零件号")] |
|||
public string FactoryPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 替换厂内零件号
|
|||
/// </summary>
|
|||
[Display(Name = "替换厂内零件号")] |
|||
[ExporterHeader(DisplayName = "替换厂内零件号")] |
|||
public string ReplaceFactoryPartCode { 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 => SAQty - SEQty; |
|||
/// <summary>
|
|||
/// 匹配类型
|
|||
/// </summary>
|
|||
[Display(Name = "匹配类型")] |
|||
[ExporterHeader(DisplayName = "是否完全匹配")] |
|||
[ValueMapping("是", true)] |
|||
[ValueMapping("否", false)] |
|||
public bool MateType => DiffQty == 0; |
|||
/// <summary>
|
|||
/// WMS目标库位
|
|||
/// </summary>
|
|||
[Display(Name = "WMS目标库位")] |
|||
[ExporterHeader(DisplayName = "WMS目标库位")] |
|||
public string ToLocCode { get; set; } |
|||
/// <summary>
|
|||
/// ERP目标库位
|
|||
/// </summary>
|
|||
[Display(Name = "ERP目标库位")] |
|||
[ExporterHeader(DisplayName = "ERP目标库位")] |
|||
public string ToErpLocCode { get; set; } |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// 印度件结算与发运对比明细
|
|||
/// </summary>
|
|||
[ExcelExporter(MaxRowNumberOnASheet = 900000)] |
|||
public class PubSaSeCompareDetailExportYinDuJian : PubSaSeCompareDetailExport, IPubSaSeCompareDetailExport |
|||
{ |
|||
/// <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 CustomerPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 物料描述
|
|||
/// </summary>
|
|||
[Display(Name = "物料描述")] |
|||
[ExporterHeader(DisplayName = "物料描述")] |
|||
public string PartCodeDesc { get; set; } |
|||
/// <summary>
|
|||
/// 厂内物料号
|
|||
/// </summary>
|
|||
[Display(Name = "厂内物料号")] |
|||
[ExporterHeader(DisplayName = "厂内物料号")] |
|||
public string FactoryPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 替换厂内物料号
|
|||
/// </summary>
|
|||
[Display(Name = "替换厂内物料号")] |
|||
[ExporterHeader(DisplayName = "替换厂内物料号")] |
|||
public string ReplaceFactoryPartCode { 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 => SAQty - SEQty; |
|||
/// <summary>
|
|||
/// 匹配类型
|
|||
/// </summary>
|
|||
[Display(Name = "匹配类型")] |
|||
[ExporterHeader(DisplayName = "是否完全匹配")] |
|||
[ValueMapping("是", true)] |
|||
[ValueMapping("否", false)] |
|||
public bool MateType => DiffQty == 0; |
|||
/// <summary>
|
|||
/// WMS目标库位
|
|||
/// </summary>
|
|||
[Display(Name = "WMS目标库位")] |
|||
[ExporterHeader(DisplayName = "WMS目标库位")] |
|||
public string ToLocCode { get; set; } |
|||
/// <summary>
|
|||
/// ERP目标库位
|
|||
/// </summary>
|
|||
[Display(Name = "ERP目标库位")] |
|||
[ExporterHeader(DisplayName = "ERP目标库位")] |
|||
public string ToErpLocCode { get; set; } |
|||
} |
@ -0,0 +1,116 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Magicodes.ExporterAndImporter.Core; |
|||
using Magicodes.ExporterAndImporter.Excel; |
|||
using Win.Sfs.SettleAccount.Enums; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Reports; |
|||
|
|||
/// <summary>
|
|||
/// 结算、发运明细对比报告
|
|||
/// </summary>
|
|||
[ExcelExporter(MaxRowNumberOnASheet = 500_000)] |
|||
public class SaSeCompareDetailReport |
|||
{ |
|||
/// <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 = "生产码")] |
|||
public virtual string PN { get; set; } |
|||
/// <summary>
|
|||
/// 客户零件号
|
|||
/// </summary>
|
|||
[Display(Name = "客户零件号")] |
|||
[ExporterHeader(DisplayName = "客户零件号")] |
|||
public string CustomerPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 零件描述
|
|||
/// </summary>
|
|||
[Display(Name = "零件描述")] |
|||
[ExporterHeader(DisplayName = "零件描述")] |
|||
public string PartCodeDesc { get; set; } |
|||
/// <summary>
|
|||
/// 厂内零件号
|
|||
/// </summary>
|
|||
[Display(Name = "厂内零件号")] |
|||
[ExporterHeader(DisplayName = "厂内零件号")] |
|||
public string FactoryPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 替换厂内零件号
|
|||
/// </summary>
|
|||
[Display(Name = "替换厂内零件号")] |
|||
[ExporterHeader(DisplayName = "替换厂内零件号")] |
|||
public string ReplaceFactoryPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 结算数据中的过账日期
|
|||
/// </summary>
|
|||
[Display(Name = "客户下线时间")] |
|||
[ExporterHeader(DisplayName = "客户下线时间", Format = "yyyy-MM-dd")] |
|||
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 => SAQty - SEQty; |
|||
/// <summary>
|
|||
/// 匹配类型
|
|||
/// </summary>
|
|||
[Display(Name = "匹配类型")] |
|||
[ExporterHeader(DisplayName = "是否完全匹配")] |
|||
[ValueMapping("是", true)] |
|||
[ValueMapping("否", false)] |
|||
public bool MateType => DiffQty == 0; |
|||
/// <summary>
|
|||
/// WMS目标库位
|
|||
/// </summary>
|
|||
[Display(Name = "WMS目标库位")] |
|||
[ExporterHeader(DisplayName = "WMS目标库位")] |
|||
public string ToLocCode { get; set; } |
|||
/// <summary>
|
|||
/// ERP目标库位
|
|||
/// </summary>
|
|||
[Display(Name = "ERP目标库位")] |
|||
[ExporterHeader(DisplayName = "ERP目标库位")] |
|||
public string ToErpLocCode { get; set; } |
|||
/// <summary>
|
|||
/// 是否是当期
|
|||
/// </summary>
|
|||
[Display(Name = "当期")] |
|||
[ValueMapping("当期数据", true)] |
|||
[ValueMapping("", false)] |
|||
public bool IsCurrent { get; set; } |
|||
} |
@ -0,0 +1,19 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Magicodes.ExporterAndImporter.Core; |
|||
using Magicodes.ExporterAndImporter.Excel; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Reports; |
|||
|
|||
/// <summary>
|
|||
/// 备件结算与发运对比明细
|
|||
/// </summary>
|
|||
[ExcelExporter(MaxRowNumberOnASheet = 500_000)] |
|||
public class SaSeCompareDetailReportBeiJian : SaSeCompareDetailReport |
|||
{ |
|||
/// <summary>
|
|||
/// 生产码
|
|||
/// </summary>
|
|||
[Display(Name = "生产码")] |
|||
[ExporterHeader(DisplayName = "索引号")] |
|||
public override string PN { get; set; } |
|||
} |
@ -0,0 +1,19 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Magicodes.ExporterAndImporter.Core; |
|||
using Magicodes.ExporterAndImporter.Excel; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Reports; |
|||
|
|||
/// <summary>
|
|||
/// 买单件BBAC结算与发运对比明细
|
|||
/// </summary>
|
|||
[ExcelExporter(MaxRowNumberOnASheet = 500_000)] |
|||
public class SaSeCompareDetailReportMaiDanJianBBAC : SaSeCompareDetailReport |
|||
{ |
|||
/// <summary>
|
|||
/// 生产码
|
|||
/// </summary>
|
|||
[Display(Name = "生产码")] |
|||
[ExporterHeader(DisplayName = "索引号")] |
|||
public override string PN { get; set; } |
|||
} |
@ -0,0 +1,19 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Magicodes.ExporterAndImporter.Core; |
|||
using Magicodes.ExporterAndImporter.Excel; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Reports; |
|||
|
|||
/// <summary>
|
|||
/// 买单件HBPO结算与发运对比明细
|
|||
/// </summary>
|
|||
[ExcelExporter(MaxRowNumberOnASheet = 500_000)] |
|||
public class SaSeCompareDetailReportMaiDanJianHBPO : SaSeCompareDetailReport |
|||
{ |
|||
/// <summary>
|
|||
/// 生产码
|
|||
/// </summary>
|
|||
[Display(Name = "生产码")] |
|||
[ExporterHeader(DisplayName = "索引号")] |
|||
public override string PN { get; set; } |
|||
} |
@ -0,0 +1,19 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Magicodes.ExporterAndImporter.Core; |
|||
using Magicodes.ExporterAndImporter.Excel; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Reports; |
|||
|
|||
/// <summary>
|
|||
/// 印度件结算与发运对比明细
|
|||
/// </summary>
|
|||
[ExcelExporter(MaxRowNumberOnASheet = 500_000)] |
|||
public class SaSeCompareDetailReportYinDuJian : SaSeCompareDetailReport |
|||
{ |
|||
/// <summary>
|
|||
/// 生产码
|
|||
/// </summary>
|
|||
[Display(Name = "生产码")] |
|||
[ExporterHeader(DisplayName = "ASN发货单号")] |
|||
public override string PN { get; set; } |
|||
} |
@ -0,0 +1,19 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Magicodes.ExporterAndImporter.Core; |
|||
using Magicodes.ExporterAndImporter.Excel; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Reports; |
|||
|
|||
/// <summary>
|
|||
/// 直供件BBAC结算与发运对比明细
|
|||
/// </summary>
|
|||
[ExcelExporter(MaxRowNumberOnASheet = 500_000)] |
|||
public class SaSeCompareDetailReportZhiGongJianBBAC : SaSeCompareDetailReport |
|||
{ |
|||
/// <summary>
|
|||
/// 生产码
|
|||
/// </summary>
|
|||
[Display(Name = "生产码")] |
|||
[ExporterHeader(DisplayName = "ASN发货单号")] |
|||
public override string PN { get; set; } |
|||
} |
@ -0,0 +1,19 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Magicodes.ExporterAndImporter.Core; |
|||
using Magicodes.ExporterAndImporter.Excel; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Reports; |
|||
|
|||
/// <summary>
|
|||
/// 直供件HBPO结算与发运对比明细
|
|||
/// </summary>
|
|||
[ExcelExporter(MaxRowNumberOnASheet = 500_000)] |
|||
public class SaSeCompareDetailReportZhiGongJianHBPO : SaSeCompareDetailReport |
|||
{ |
|||
/// <summary>
|
|||
/// 生产码
|
|||
/// </summary>
|
|||
[Display(Name = "生产码")] |
|||
[ExporterHeader(DisplayName = "ASN发货单号")] |
|||
public override string PN { get; set; } |
|||
} |
@ -0,0 +1,153 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Win.Sfs.SettleAccount.Enums; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Reports; |
|||
|
|||
/// <summary>
|
|||
/// 结算、发运对比
|
|||
/// </summary>
|
|||
public class SaSeCompareDiff |
|||
{ |
|||
/// <summary>
|
|||
/// 期间
|
|||
/// </summary>
|
|||
[Display(Name = "期间")] |
|||
public int Version { get; set; } |
|||
/// <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 DateTime? CustomerOfflineTime { get; set; } |
|||
/// <summary>
|
|||
/// 结算数量
|
|||
/// </summary>
|
|||
[Display(Name = "结算数量")] |
|||
public decimal? SAQty { get; set; } |
|||
/// <summary>
|
|||
/// 发货数量
|
|||
/// </summary>
|
|||
[Display(Name = "发货数量")] |
|||
public decimal? SEQty { get; set; } |
|||
/// <summary>
|
|||
/// 生产号
|
|||
/// </summary>
|
|||
[Display(Name = "生产号")] |
|||
public string PN { set; get; } |
|||
/// <summary>
|
|||
/// 客户物料号
|
|||
/// </summary>
|
|||
[Display(Name = "客户物料号")] |
|||
public string LU { set; get; } |
|||
/// <summary>
|
|||
/// WMS目标库位
|
|||
/// </summary>
|
|||
[Display(Name = "WMS目标库位")] |
|||
public string ToLocCode { get; set; } |
|||
/// <summary>
|
|||
/// ERP目标库位
|
|||
/// </summary>
|
|||
[Display(Name = "ERP目标库位")] |
|||
public string ToErpLocCode { get; set; } |
|||
/// <summary>
|
|||
/// 类型
|
|||
/// </summary>
|
|||
[Display(Name = "类型")] |
|||
public EnumPubSaSeCompareCategory Category { get; set; } |
|||
/// <summary>
|
|||
/// 发运客户物料号
|
|||
/// </summary>
|
|||
public string SeCustomerPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 发运厂内物料号
|
|||
/// </summary>
|
|||
public string SeFactoryPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 结算客户物料号
|
|||
/// </summary>
|
|||
public string SaCustomerPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 结算厂内物料号
|
|||
/// </summary>
|
|||
public string SaFactoryPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 客户物料号
|
|||
/// </summary>
|
|||
[Display(Name = "客户物料号")] |
|||
public string CustomerPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 物料描述
|
|||
/// </summary>
|
|||
[Display(Name = "物料描述")] |
|||
public string PartCodeDesc { get; set; } |
|||
/// <summary>
|
|||
/// 厂内物料号
|
|||
/// </summary>
|
|||
[Display(Name = "厂内物料号")] |
|||
public string FactoryPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 替换厂内物料号
|
|||
/// </summary>
|
|||
[Display(Name = "替换厂内物料号")] |
|||
public string ReplaceFactoryPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 是否已经移除
|
|||
/// </summary>
|
|||
public bool IsRemove { get; set; } |
|||
/// <summary>
|
|||
/// 是否是当期
|
|||
/// </summary>
|
|||
public bool IsCurrent { get; set; } |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// PUB结算与发运对比明细
|
|||
/// </summary>
|
|||
public interface IPubSaSeCompareDetailExport |
|||
{ |
|||
/// <summary>
|
|||
/// 类别
|
|||
/// </summary>
|
|||
[Display(Name = "类别")] |
|||
public EnumPubSaSeCompareCategory Category { get; set; } |
|||
/// <summary>
|
|||
/// 零件描述
|
|||
/// </summary>
|
|||
[Display(Name = "零件描述")] |
|||
public string PartCodeDesc { get; set; } |
|||
/// <summary>
|
|||
/// 替换厂内零件号
|
|||
/// </summary>
|
|||
[Display(Name = "替换厂内零件号")] |
|||
public string ReplaceFactoryPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 结算数量
|
|||
/// </summary>
|
|||
[Display(Name = "结算数量")] |
|||
public decimal SAQty { get; set; } |
|||
/// <summary>
|
|||
/// 发货数量
|
|||
/// </summary>
|
|||
[Display(Name = "发货数量")] |
|||
public decimal SEQty { get; set; } |
|||
} |
@ -0,0 +1,46 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Magicodes.ExporterAndImporter.Core; |
|||
using Magicodes.ExporterAndImporter.Excel; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Reports; |
|||
|
|||
/// <summary>
|
|||
/// 结算、发运汇总对比报告
|
|||
/// </summary>
|
|||
[ExcelExporter(MaxRowNumberOnASheet = 500_000)] |
|||
public class SaSeCompareSumReport |
|||
{ |
|||
/// <summary>
|
|||
/// 厂内物料号
|
|||
/// </summary>
|
|||
[Display(Name = "厂内物料号")] |
|||
[ExporterHeader(DisplayName = "LU")] |
|||
public string FactoryPartCode { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 物料描述
|
|||
/// </summary>
|
|||
[Display(Name = "物料描述")] |
|||
[ExporterHeader(DisplayName = "物料描述")] |
|||
public string PartCodeDesc { 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 => SAQty - SEQty; |
|||
} |
@ -0,0 +1,176 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Magicodes.ExporterAndImporter.Core; |
|||
using Magicodes.ExporterAndImporter.Excel; |
|||
using Win.Sfs.SettleAccount.Enums; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Reports; |
|||
|
|||
/// <summary>
|
|||
/// 结算、发运、Eid对比明细报告
|
|||
/// </summary>
|
|||
[ExcelExporter(MaxRowNumberOnASheet = 500_000)] |
|||
public class SaSeEdiCompareDetailReport |
|||
{ |
|||
/// <summary>
|
|||
/// 类别
|
|||
/// </summary>
|
|||
[Display(Name = "类别")] |
|||
[ExporterHeader(DisplayName = "类别")] |
|||
[ValueMapping("有结算有发运(有EDI数据)", 1)] |
|||
[ValueMapping("有结算有发运(无EDI数据)", 2)] |
|||
[ValueMapping("有结算无发运(有EDI数据)", 3)] |
|||
[ValueMapping("有结算无发运(无EDI数据)", 4)] |
|||
[ValueMapping("无结算有发运(有EDI数据)", 5)] |
|||
[ValueMapping("无结算有发运(无EDI数据)", 6)] |
|||
public EnumSaSeEdiCompareCategory Category { get; set; } |
|||
[Display(Name = "WMS多发")] |
|||
[ExporterHeader(DisplayName = "WMS多发")] |
|||
[ValueMapping("", 0)] |
|||
[ValueMapping("WMS多发", 1)] |
|||
public EnumWMSSend WMSSend |
|||
{ |
|||
get |
|||
{ |
|||
return (Category, SaSeQty < 0) switch |
|||
{ |
|||
(EnumSaSeEdiCompareCategory.HaveSaHaveSeHaveEdi, true) => EnumWMSSend.WMSRepeat, |
|||
(EnumSaSeEdiCompareCategory.HaveSaHaveSeNotHaveEdi, true) => EnumWMSSend.WMSRepeat, |
|||
_ => EnumWMSSend.None |
|||
}; |
|||
} |
|||
} |
|||
[Display(Name = "价格信息")] |
|||
[ExporterHeader(DisplayName = "价格信息", IsIgnore = true)] |
|||
[ValueMapping("有价格信息", true)] |
|||
[ValueMapping("无价格信息", false)] |
|||
public bool IsHavePrice => FixPrice != null && FixPrice != 0; |
|||
/// <summary>
|
|||
/// 交货单号
|
|||
/// </summary>
|
|||
[Display(Name = "交货单号")] |
|||
[ExporterHeader(DisplayName = "交货单号")] |
|||
public string WmsBillNum { get; set; } |
|||
/// <summary>
|
|||
/// 发货日期
|
|||
/// </summary>
|
|||
[Display(Name = "发货日期")] |
|||
[ExporterHeader(DisplayName = "发货日期")] |
|||
public DateTime? ShippingDate { get; set; } |
|||
/// <summary>
|
|||
/// 生产码
|
|||
/// </summary>
|
|||
[Display(Name = "生产码")] |
|||
[ExporterHeader(DisplayName = "订单生产码")] |
|||
public string PN { 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>
|
|||
/// 客户物料号
|
|||
/// </summary>
|
|||
[Display(Name = "客户物料号")] |
|||
[ExporterHeader(DisplayName = "客户物料号")] |
|||
public string CustomerPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 物料描述
|
|||
/// </summary>
|
|||
[Display(Name = "物料描述")] |
|||
[ExporterHeader(DisplayName = "物料描述")] |
|||
public string PartCodeDesc { get; set; } |
|||
/// <summary>
|
|||
/// 厂内物料号
|
|||
/// </summary>
|
|||
[Display(Name = "厂内物料号")] |
|||
[ExporterHeader(DisplayName = "厂内物料号")] |
|||
public string FactoryPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 替换厂内物料号
|
|||
/// </summary>
|
|||
[Display(Name = "替换厂内物料号")] |
|||
[ExporterHeader(DisplayName = "替换厂内物料号")] |
|||
public string ReplaceFactoryPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 客户下线时间
|
|||
/// </summary>
|
|||
[Display(Name = "客户下线时间")] |
|||
[ExporterHeader(DisplayName = "客户下线时间")] |
|||
public DateTime? CustomerOfflineTime { get; set; } |
|||
/// <summary>
|
|||
/// 小总成号
|
|||
/// </summary>
|
|||
[Display(Name = "小总成号")] |
|||
[ExporterHeader(DisplayName = "小总成号")] |
|||
public string AssemblyCode { get; set; } |
|||
/// <summary>
|
|||
/// 注塑码
|
|||
/// </summary>
|
|||
[Display(Name = "注塑码")] |
|||
[ExporterHeader(DisplayName = "注塑码")] |
|||
public string InjectionCode { 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>
|
|||
/// Edi数量
|
|||
/// </summary>
|
|||
[Display(Name = "Edi数量")] |
|||
[ExporterHeader(DisplayName = "Edi数量")] |
|||
public decimal EdiQty { get; set; } |
|||
/// <summary>
|
|||
/// 结算与WMS发货量差
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "结算与WMS发货量差")] |
|||
public decimal SaSeQty => SAQty - SEQty; |
|||
/// <summary>
|
|||
/// 结算与EDI量差
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "结算与EDI量差")] |
|||
public decimal SaEdiQty => SAQty - EdiQty; |
|||
/// <summary>
|
|||
/// WMS发货与EDI数量差
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "WMS发货与EDI数量差")] |
|||
public decimal SeEdiQty => SEQty - EdiQty; |
|||
[Display(Name = "是否完全匹配")] |
|||
[ExporterHeader(DisplayName = "是否完全匹配")] |
|||
[ValueMapping("是", true)] |
|||
[ValueMapping("否", false)] |
|||
public bool MateType => SaSeQty == 0 && SaEdiQty == 0 && SeEdiQty == 0; |
|||
/// <summary>
|
|||
/// 定价
|
|||
/// </summary>
|
|||
[Display(Name = "定价")] |
|||
[ExporterHeader(DisplayName = "定价", IsIgnore = true)] |
|||
public decimal? FixPrice { get; set; } |
|||
/// <summary>
|
|||
/// ERP销售库位
|
|||
/// </summary>
|
|||
[Display(Name = "ERP销售库位")] |
|||
[ExporterHeader(DisplayName = "ERP销售库位")] |
|||
public string ToErpLocCode { get; set; } |
|||
/// <summary>
|
|||
/// WMS发货库位
|
|||
/// </summary>
|
|||
[Display(Name = "WMS发货库位")] |
|||
[ExporterHeader(DisplayName = "WMS发货库位")] |
|||
public string ToLocCode { get; set; } |
|||
} |
@ -0,0 +1,8 @@ |
|||
namespace Win.Sfs.SettleAccount.Reports; |
|||
|
|||
/// <summary>
|
|||
/// JisBBAC结算、发运、Eid明细对比报告
|
|||
/// </summary>
|
|||
public class SaSeEdiCompareDetailReportJisBBAC : SaSeEdiCompareDetailReport |
|||
{ |
|||
} |
@ -0,0 +1,8 @@ |
|||
namespace Win.Sfs.SettleAccount.Reports; |
|||
|
|||
/// <summary>
|
|||
/// JisHBPO结算、发运、Eid明细对比报告
|
|||
/// </summary>
|
|||
public class SaSeEdiCompareDetailReportJisHBPO : SaSeEdiCompareDetailReport |
|||
{ |
|||
} |
@ -0,0 +1,53 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Magicodes.ExporterAndImporter.Core; |
|||
using Magicodes.ExporterAndImporter.Excel; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Reports; |
|||
|
|||
/// <summary>
|
|||
/// 结算、发运、Edi汇总对比报告
|
|||
/// </summary>
|
|||
[ExcelExporter(MaxRowNumberOnASheet = 500_000)] |
|||
public class SaSeEdiCompareSumReport |
|||
{ |
|||
/// <summary>
|
|||
/// 厂内物料号
|
|||
/// </summary>
|
|||
[Display(Name = "厂内物料号")] |
|||
[ExporterHeader(DisplayName = "LU")] |
|||
public string FactoryPartCode { get; set; } |
|||
/// <summary>
|
|||
/// 物料描述
|
|||
/// </summary>
|
|||
[Display(Name = "物料描述")] |
|||
[ExporterHeader(DisplayName = "物料描述")] |
|||
public string PartCodeDesc { 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>
|
|||
/// Edi数量
|
|||
/// </summary>
|
|||
[Display(Name = "Edi数量")] |
|||
[ExporterHeader(DisplayName = "Edi数量")] |
|||
public decimal EdiQty { get; set; } |
|||
/// <summary>
|
|||
/// 结算与EDI量差
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "结算与EDI量差")] |
|||
public decimal SaEdiQty => SAQty - EdiQty; |
|||
/// <summary>
|
|||
/// WMS发货与EDI数量差
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "WMS发货与EDI数量差")] |
|||
public decimal SeEdiQty => SEQty - EdiQty; |
|||
} |
Loading…
Reference in new issue