From b85a671f70e565ef3867d6ef7dd6351da1cee536 Mon Sep 17 00:00:00 2001 From: mahao Date: Wed, 16 Aug 2023 13:55:01 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=93=E7=AE=97=E6=9C=9F=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Entities/BQ/Dtos/HBPO_SA_DTO.cs | 2 +- .../Entities/BQ/Dtos/PUB_SA_DTO.cs | 1091 ++++++++--------- .../Entities/BQ/PUB_SE_DETAIL_SERVICE.cs | 7 +- .../Entities/BQ/Syncs/TM_BJBMPT_JIS_RECORD.cs | 8 +- .../Entities/BQ/Syncs/TM_BJBMPT_JIT_RECORD.cs | 8 +- .../BQ/Syncs/TM_BJBMPT_OTHER_RECORD.cs | 8 +- 6 files changed, 561 insertions(+), 563 deletions(-) diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/HBPO_SA_DTO.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/HBPO_SA_DTO.cs index bb31d34a..346f0f81 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/HBPO_SA_DTO.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/HBPO_SA_DTO.cs @@ -130,7 +130,7 @@ public class HBPO_SA_DETAIL_IMPORT_DTO [Display(Name = "PartNumber")] [Required(ErrorMessage = "{0}不能为空")] [ImporterHeader(Name = "PartNumber")] - public string PartCode { get; set; } + public string LU { get; set; } /// /// 数量 diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/PUB_SA_DTO.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/PUB_SA_DTO.cs index 4f9c0726..9e421dba 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/PUB_SA_DTO.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/PUB_SA_DTO.cs @@ -1,554 +1,553 @@ -using Magicodes.ExporterAndImporter.Core; -using Microsoft.AspNetCore.Http; using System; using System.ComponentModel.DataAnnotations; +using Magicodes.ExporterAndImporter.Core; +using Microsoft.AspNetCore.Http; using Volo.Abp.Application.Dtos; using Volo.Abp.Domain.Entities.Auditing; -namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos +namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos; + +/// +/// PUB结算 +/// +public class PUB_SA_DTO : EntityDto +{ + /// + /// 期间 + /// + [Display(Name = "期间")] + public string Version { get; set; } + + /// + /// 结算单据 + /// + [Display(Name = "结算单据")] + public string BillNum { get; set; } + + /// + /// 状态 + /// + [Display(Name = "状态")] + public string State { get; set; } +} + +/// +/// 查询 +/// +public class PUB_SARequestDto : RequestDto +{ + /// + /// 业务类别 + /// + public EnumBusinessType BusinessType { get; set; } +} + +/// +/// 导入请求 +/// +public class PUB_SAImportRequestDto +{ + /// + /// 文件 + /// + public IFormFileCollection Files { get; set; } + + /// + /// 业务类别 + /// + public EnumBusinessType BusinessType { get; set; } + + /// + /// 期间 + /// + [Display(Name = "期间")] + public int Version { get; set; } +} + +/// +/// 直供件BBAC导入 +/// +public class ZhiGongJianBBACImportDto +{ + /// + /// 结算日期 + /// + [Display(Name = "Pstng Date")] + [ImporterHeader(Name = "Pstng Date")] + public DateTime SettleDate { set; get; } + + /// + /// 客户零件号 + /// + [Display(Name = "Material")] + [Required(ErrorMessage = "{0}不能为空")] + [ImporterHeader(Name = "Material")] + public string LU { get; set; } + + /// + /// 生产号 + /// + [Display(Name = "External Delivery ID")] + [ImporterHeader(Name = "External Delivery ID")] + [Required(ErrorMessage = "{0}不能为空")] + public string PN { get; set; } + + /// + /// 数量 + /// + [Display(Name = "Quantity")] + [ImporterHeader(Name = "Quantity")] + public decimal Qty { get; set; } + + /// + /// 结算分组号 + /// + [Display(Name = "Delivery")] + [ImporterHeader(Name = "Delivery")] + [Required(ErrorMessage = "{0}不能为空")] + public string GroupNum { get; set; } +} + +/// +/// 直供件HBPO导入 +/// +public class ZhiGongJianHBPOImportDto +{ + /// + /// 结算日期 + /// + [Display(Name = "结算日期")] + [ImporterHeader(IsIgnore = true)] + public DateTime SettleDate { set; get; } + + /// + /// 客户零件号 + /// + [Display(Name = "零件号")] + [Required(ErrorMessage = "{0}不能为空")] + [ImporterHeader(Name = "零件号")] + public string LU { get; set; } + + /// + /// 生产号 + /// + [Display(Name = "订单编号")] + [ImporterHeader(Name = "订单编号")] + [Required(ErrorMessage = "{0}不能为空")] + public string PN { get; set; } + + /// + /// 数量 + /// + [Display(Name = "数量")] + [ImporterHeader(Name = "数量")] + public decimal Qty { get; set; } + + /// + /// 结算分组号 + /// + [Display(Name = "订单编号")] + [ImporterHeader(Name = "订单编号")] + [Required(ErrorMessage = "{0}不能为空")] + public string GroupNum { get; set; } +} + +/// +/// 买单件HBPO导入 +/// +public class MaiDanJianHBPOImportDto +{ + /// + /// 结算日期 + /// + [Display(Name = "买单日期")] + [ImporterHeader(Name = "买单日期")] + public DateTime SettleDate { set; get; } + + /// + /// 客户零件号 + /// + [Display(Name = "零件号")] + [Required(ErrorMessage = "{0}不能为空")] + [ImporterHeader(Name = "零件号")] + public string LU { get; set; } + + /// + /// 生产号 + /// + [Display(Name = "现产品生产号")] + [ImporterHeader(Name = "现产品生产号")] + [Required(ErrorMessage = "{0}不能为空")] + public string PN { get; set; } + + /// + /// 数量 + /// + [Display(Name = "数量")] + [ImporterHeader(Name = "数量")] + public decimal Qty { get; set; } + + /// + /// 结算分组号 + /// + [Display(Name = "五联单号")] + [ImporterHeader(Name = "五联单号")] + [Required(ErrorMessage = "{0}不能为空")] + public string GroupNum { get; set; } +} + +/// +/// 备件导入 +/// +public class BeiJianImportDto : BeiJianExtraImportDto +{ + /// + /// 结算日期 + /// + [Display(Name = "结算日期")] + [ImporterHeader(Name = "零件时间")] + public DateTime SettleDate { set; get; } + + /// + /// 客户零件号 + /// + [Display(Name = "零件号")] + [Required(ErrorMessage = "{0}不能为空")] + [ImporterHeader(Name = "零件号")] + public string LU { get; set; } + + /// + /// 生产号 + /// + [Display(Name = "交付识别号")] + [ImporterHeader(Name = "交付识别号")] + [Required(ErrorMessage = "{0}不能为空")] + public string PN { get; set; } + + /// + /// 数量 + /// + [Display(Name = "数量")] + [ImporterHeader(Name = "数量")] + public decimal Qty { get; set; } + + /// + /// 结算分组号 + /// + [Display(Name = "凭证号")] + [ImporterHeader(Name = "凭证号")] + [Required(ErrorMessage = "{0}不能为空")] + public string GroupNum { get; set; } + + ///// + ///// 备件扩展 + ///// + //[Display(Name = "备件扩展")] + //public BeiJianExtraImportDto beiJianExtraImportDto { get; set; } +} + +/// +/// 备件扩展 +/// +public class BeiJianExtraImportDto +{ + /// + /// 交货号 + /// + [Display(Name = "交货号")] + [ImporterHeader(Name = "交货号")] + public string DeliveryNumber { set; get; } + + /// + /// 发票号 + /// + [Display(Name = "发票号")] + [ImporterHeader(Name = "发票号")] + public string InvoiceNumber { set; get; } + + /// + /// 开票日期 + /// + [Display(Name = "开票日期")] + [ImporterHeader(Name = "开票日期")] + public DateTime? MakeDate { set; get; } + + /// + /// 供应商代码 + /// + [Display(Name = "供应商代码")] + [ImporterHeader(Name = "供应商代码")] + public string VendorCode { set; get; } + + /// + /// 供应商名称 + /// + [Display(Name = "供应商名称")] + [ImporterHeader(Name = "供应商名称")] + public string VendorName { set; get; } + + /// + /// 采购订单号 + /// + [Display(Name = "采购订单号")] + [ImporterHeader(Name = "采购订单号")] + public string PurchaseOrderNumber { set; get; } + + /// + /// 交付索引号 + /// + [Display(Name = "交付索引号")] + [ImporterHeader(Name = "交付索引号")] + public string DeliveryIndexNumber { set; get; } + + /// + /// 零件名称 + /// + [Display(Name = "零件名称")] + [ImporterHeader(Name = "零件名称")] + public string PartName { set; get; } + + /// + /// 价格 + /// + [Display(Name = "价格")] + [ImporterHeader(Name = "价格")] + public decimal? Price { set; get; } + + /// + /// 金额 + /// + [Display(Name = "金额")] + [ImporterHeader(Name = "金额")] + public decimal? Amount { set; get; } + + /// + /// 税额 + /// + [Display(Name = "税额")] + [ImporterHeader(Name = "税额")] + public decimal? Tallage { set; get; } + + /// + /// 价税合计 + /// + [Display(Name = "价税合计")] + [ImporterHeader(Name = "价税合计")] + public decimal? Total { set; get; } + + /// + /// 协议编号 + /// + [Display(Name = "协议编号")] + [ImporterHeader(Name = "协议编号")] + public string ProtocolNumber { set; get; } + + /// + /// 备注 + /// + [Display(Name = "备注")] + [ImporterHeader(Name = "备注")] + public string Remark { set; get; } + + /// + /// 商品组 + /// + [Display(Name = "商品组")] + [ImporterHeader(Name = "商品组")] + public string CommodityGroup { set; get; } +} + +/// +/// 印度件导入 +/// +public class YinDuJianImportDto +{ + /// + /// 结算日期 + /// + [Display(Name = "Delivery Date")] + [ImporterHeader(Name = "Delivery Date")] + public DateTime SettleDate { set; get; } + + /// + /// 客户零件号 + /// + [Display(Name = "Material")] + [Required(ErrorMessage = "{0}不能为空")] + [ImporterHeader(Name = "Material")] + public string LU { get; set; } + + /// + /// 生产号 + /// + [Display(Name = "External Delivery ID")] + [ImporterHeader(Name = "External Delivery ID")] + [Required(ErrorMessage = "{0}不能为空")] + public string PN { get; set; } + + /// + /// 数量 + /// + [Display(Name = "数量")] + [ImporterHeader(Name = "Item")] + public decimal Qty { get; set; } + + /// + /// 结算分组号 + /// + [Display(Name = "External Delivery ID")] + [ImporterHeader(Name = "External Delivery ID")] + [Required(ErrorMessage = "{0}不能为空")] + public string GroupNum { get; set; } + + /// + /// Supplier + /// + [Display(Name = "Supplier")] + [ImporterHeader(Name = "Supplier")] + public string Supplier { get; set; } +} + +/// +/// PUB结算明细 +/// +public class PUB_SA_DETAIL_DTO : AuditedAggregateRoot +{ + /// + /// 结算单 + /// + public string BillNum { set; get; } + /// + /// 期间 + /// + public int Version { set; get; } + /// + /// 结算分组号 + /// + public string GroupNum { get; set; } + /// + /// 生产号 + /// + public string PN { get; set; } + /// + /// 客户物料号 + /// + public string LU { get; set; } + /// + /// 数量 + /// + public string Qty { get; set; } + /// + /// 结算日期 + /// + public DateTime SettleDate { set; get; } + /// + /// 单价 + /// + public decimal Price { set; get; } + /// + /// 厂内物料号 + /// + public string PartCode { get; set; } +} + +/// +/// 结算明细导出请求 +/// +public class PUB_SA_DETAIL_EXPORT_REQUEST_DTO { /// - /// PUB结算 - /// - public class PUB_SA_DTO : EntityDto - { - /// - /// 期间 - /// - [Display(Name = "期间")] - public int Version { get; set; } - - /// - /// 结算单据 - /// - [Display(Name = "结算单据")] - public string BillNum { get; set; } - - /// - /// 状态 - /// - [Display(Name = "状态")] - public string State { get; set; } - } - - /// - /// 查询 - /// - public class PUB_SARequestDto : RequestDto - { - /// - /// 业务类别 - /// - public EnumBusinessType BusinessType { get; set; } - } - - /// - /// 导入请求 - /// - public class PUB_SAImportRequestDto - { - /// - /// 文件 - /// - public IFormFileCollection Files { get; set; } - - /// - /// 业务类别 - /// - public EnumBusinessType BusinessType { get; set; } - - /// - /// 期间 - /// - [Display(Name = "期间")] - public int Version { get; set; } - } - - /// - /// 直供件BBAC导入 - /// - public class ZhiGongJianBBACImportDto - { - /// - /// 结算日期 - /// - [Display(Name = "Pstng Date")] - [ImporterHeader(Name = "Pstng Date")] - public DateTime SettleDate { set; get; } - - /// - /// 客户零件号 - /// - [Display(Name = "Material")] - [Required(ErrorMessage = "{0}不能为空")] - [ImporterHeader(Name = "Material")] - public string LU { get; set; } - - /// - /// 生产号 - /// - [Display(Name = "External Delivery ID")] - [ImporterHeader(Name = "External Delivery ID")] - [Required(ErrorMessage = "{0}不能为空")] - public string PN { get; set; } - - /// - /// 数量 - /// - [Display(Name = "Quantity")] - [ImporterHeader(Name = "Quantity")] - public decimal Qty { get; set; } - - /// - /// 结算分组号 - /// - [Display(Name = "Delivery")] - [ImporterHeader(Name = "Delivery")] - [Required(ErrorMessage = "{0}不能为空")] - public string GroupNum { get; set; } - } - - /// - /// 直供件HBPO导入 - /// - public class ZhiGongJianHBPOImportDto - { - /// - /// 结算日期 - /// - [Display(Name = "结算日期")] - [ImporterHeader(IsIgnore = true)] - public DateTime SettleDate { set; get; } - - /// - /// 客户零件号 - /// - [Display(Name = "零件号")] - [Required(ErrorMessage = "{0}不能为空")] - [ImporterHeader(Name = "零件号")] - public string LU { get; set; } - - /// - /// 生产号 - /// - [Display(Name = "订单编号")] - [ImporterHeader(Name = "订单编号")] - [Required(ErrorMessage = "{0}不能为空")] - public string PN { get; set; } - - /// - /// 数量 - /// - [Display(Name = "数量")] - [ImporterHeader(Name = "数量")] - public decimal Qty { get; set; } - - /// - /// 结算分组号 - /// - [Display(Name = "订单编号")] - [ImporterHeader(Name = "订单编号")] - [Required(ErrorMessage = "{0}不能为空")] - public string GroupNum { get; set; } - } - - /// - /// 买单件HBPO导入 - /// - public class MaiDanJianHBPOImportDto - { - /// - /// 结算日期 - /// - [Display(Name = "买单日期")] - [ImporterHeader(Name = "买单日期")] - public DateTime SettleDate { set; get; } - - /// - /// 客户零件号 - /// - [Display(Name = "零件号")] - [Required(ErrorMessage = "{0}不能为空")] - [ImporterHeader(Name = "零件号")] - public string LU { get; set; } - - /// - /// 生产号 - /// - [Display(Name = "现产品生产号")] - [ImporterHeader(Name = "现产品生产号")] - [Required(ErrorMessage = "{0}不能为空")] - public string PN { get; set; } - - /// - /// 数量 - /// - [Display(Name = "数量")] - [ImporterHeader(Name = "数量")] - public decimal Qty { get; set; } - - /// - /// 结算分组号 - /// - [Display(Name = "五联单号")] - [ImporterHeader(Name = "五联单号")] - [Required(ErrorMessage = "{0}不能为空")] - public string GroupNum { get; set; } - } - - /// - /// 备件导入 - /// - public class BeiJianImportDto : BeiJianExtraImportDto - { - /// - /// 结算日期 - /// - [Display(Name = "结算日期")] - [ImporterHeader(Name = "零件时间")] - public DateTime SettleDate { set; get; } - - /// - /// 客户零件号 - /// - [Display(Name = "零件号")] - [Required(ErrorMessage = "{0}不能为空")] - [ImporterHeader(Name = "零件号")] - public string LU { get; set; } - - /// - /// 生产号 - /// - [Display(Name = "交付识别号")] - [ImporterHeader(Name = "交付识别号")] - [Required(ErrorMessage = "{0}不能为空")] - public string PN { get; set; } - - /// - /// 数量 - /// - [Display(Name = "数量")] - [ImporterHeader(Name = "数量")] - public decimal Qty { get; set; } - - /// - /// 结算分组号 - /// - [Display(Name = "凭证号")] - [ImporterHeader(Name = "凭证号")] - [Required(ErrorMessage = "{0}不能为空")] - public string GroupNum { get; set; } - - ///// - ///// 备件扩展 - ///// - //[Display(Name = "备件扩展")] - //public BeiJianExtraImportDto beiJianExtraImportDto { get; set; } - } - - /// - /// 备件扩展 - /// - public class BeiJianExtraImportDto - { - /// - /// 交货号 - /// - [Display(Name = "交货号")] - [ImporterHeader(Name = "交货号")] - public string DeliveryNumber { set; get; } - - /// - /// 发票号 - /// - [Display(Name = "发票号")] - [ImporterHeader(Name = "发票号")] - public string InvoiceNumber { set; get; } - - /// - /// 开票日期 - /// - [Display(Name = "开票日期")] - [ImporterHeader(Name = "开票日期")] - public DateTime? MakeDate { set; get; } - - /// - /// 供应商代码 - /// - [Display(Name = "供应商代码")] - [ImporterHeader(Name = "供应商代码")] - public string VendorCode { set; get; } - - /// - /// 供应商名称 - /// - [Display(Name = "供应商名称")] - [ImporterHeader(Name = "供应商名称")] - public string VendorName { set; get; } - - /// - /// 采购订单号 - /// - [Display(Name = "采购订单号")] - [ImporterHeader(Name = "采购订单号")] - public string PurchaseOrderNumber { set; get; } - - /// - /// 交付索引号 - /// - [Display(Name = "交付索引号")] - [ImporterHeader(Name = "交付索引号")] - public string DeliveryIndexNumber { set; get; } - - /// - /// 零件名称 - /// - [Display(Name = "零件名称")] - [ImporterHeader(Name = "零件名称")] - public string PartName { set; get; } - - /// - /// 价格 - /// - [Display(Name = "价格")] - [ImporterHeader(Name = "价格")] - public decimal? Price { set; get; } - - /// - /// 金额 - /// - [Display(Name = "金额")] - [ImporterHeader(Name = "金额")] - public decimal? Amount { set; get; } - - /// - /// 税额 - /// - [Display(Name = "税额")] - [ImporterHeader(Name = "税额")] - public decimal? Tallage { set; get; } - - /// - /// 价税合计 - /// - [Display(Name = "价税合计")] - [ImporterHeader(Name = "价税合计")] - public decimal? Total { set; get; } - - /// - /// 协议编号 - /// - [Display(Name = "协议编号")] - [ImporterHeader(Name = "协议编号")] - public string ProtocolNumber { set; get; } - - /// - /// 备注 - /// - [Display(Name = "备注")] - [ImporterHeader(Name = "备注")] - public string Remark { set; get; } - - /// - /// 商品组 - /// - [Display(Name = "商品组")] - [ImporterHeader(Name = "商品组")] - public string CommodityGroup { set; get; } - } - - /// - /// 印度件导入 - /// - public class YinDuJianImportDto - { - /// - /// 结算日期 - /// - [Display(Name = "Delivery Date")] - [ImporterHeader(Name = "Delivery Date")] - public DateTime SettleDate { set; get; } - - /// - /// 客户零件号 - /// - [Display(Name = "Material")] - [Required(ErrorMessage = "{0}不能为空")] - [ImporterHeader(Name = "Material")] - public string LU { get; set; } - - /// - /// 生产号 - /// - [Display(Name = "External Delivery ID")] - [ImporterHeader(Name = "External Delivery ID")] - [Required(ErrorMessage = "{0}不能为空")] - public string PN { get; set; } - - /// - /// 数量 - /// - [Display(Name = "数量")] - [ImporterHeader(Name = "Item")] - public decimal Qty { get; set; } - - /// - /// 结算分组号 - /// - [Display(Name = "External Delivery ID")] - [ImporterHeader(Name = "External Delivery ID")] - [Required(ErrorMessage = "{0}不能为空")] - public string GroupNum { get; set; } - - /// - /// Supplier - /// - [Display(Name = "Supplier")] - [ImporterHeader(Name = "Supplier")] - public string Supplier { get; set; } - } - - /// - /// PUB结算明细 - /// - public class PUB_SA_DETAIL_DTO : AuditedAggregateRoot - { - /// - /// 结算单 - /// - public string BillNum { set; get; } - /// - /// 期间 - /// - public int Version { set; get; } - /// - /// 结算分组号 - /// - public string GroupNum { get; set; } - /// - /// 生产号 - /// - public string PN { get; set; } - /// - /// 客户物料号 - /// - public string LU { get; set; } - /// - /// 数量 - /// - public string Qty { get; set; } - /// - /// 结算日期 - /// - public DateTime SettleDate { set; get; } - /// - /// 单价 - /// - public decimal Price { set; get; } - /// - /// 厂内物料号 - /// - public string PartCode { get; set; } - } - - /// - /// 结算明细导出请求 - /// - public class PUB_SA_DETAIL_EXPORT_REQUEST_DTO - { - /// - /// 结算单号 - /// - [Display(Name = "结算单号")] - [Required(ErrorMessage = "{0}不能为空")] - public string BillNum { set; get; } - } - - /// - /// 结算明细导出 - /// - public class PUB_SA_DETAIL_EXPORT_DTO - { - /// - /// 结算单号 - /// - [Display(Name = "结算单号")] - [ExporterHeader(DisplayName = "结算单号")] - public string BillNum { set; get; } - - /// - /// 结算日期(收货日期) - /// - [Display(Name = "结算日期(收货日期)")] - [ExporterHeader(DisplayName = "Pstng Date")] - public DateTime SettleDate { set; get; } - - /// - /// 零件号 - /// - [Display(Name = "零件号")] - [ExporterHeader(DisplayName = "Material")] - public string LU { get; set; } - - /// - /// 数量 - /// - [Display(Name = "数量")] - [ExporterHeader(DisplayName = "Quantity")] - public decimal Qty { get; set; } - - /// - /// 发货单号 - /// - [Display(Name = "发货单号")] - [ExporterHeader(DisplayName = "External Delivery ID")] - public string PN { get; set; } - - /// - /// 结算分组 - /// - [Display(Name = "结算分组")] - [ExporterHeader(DisplayName = "Delivery")] - public string GroupNum { get; set; } - } - - /// - /// Pub结算与发运对比请求 - /// - public class PubSaSeCompareRequestDto - { - /// - /// 期间 - /// - [Display(Name = "期间")] - [Required(ErrorMessage = "{0}不能为空")] - public string Version { get; set; } - - /// - /// 零件号 - /// - [Display(Name = "零件号")] - public string LU { get; set; } - - /// - /// 通用码 - /// - [Display(Name = "通用码")] - public string PN { get; set; } - - /// - /// 业务类型 - /// - public EnumBusinessType BusinessType { get; set; } - - /// - /// 发运开始时间 - /// - public DateTime? SeStartDateTime { get; set; } - - /// - /// 发运结束时间 - /// - public DateTime? SeEndDateTime { get; set; } - } + /// 结算单号 + /// + [Display(Name = "结算单号")] + [Required(ErrorMessage = "{0}不能为空")] + public string BillNum { set; get; } +} + +/// +/// 结算明细导出 +/// +public class PUB_SA_DETAIL_EXPORT_DTO +{ + /// + /// 结算单号 + /// + [Display(Name = "结算单号")] + [ExporterHeader(DisplayName = "结算单号")] + public string BillNum { set; get; } + + /// + /// 结算日期(收货日期) + /// + [Display(Name = "结算日期(收货日期)")] + [ExporterHeader(DisplayName = "Pstng Date")] + public DateTime SettleDate { set; get; } + + /// + /// 零件号 + /// + [Display(Name = "零件号")] + [ExporterHeader(DisplayName = "Material")] + public string LU { get; set; } + + /// + /// 数量 + /// + [Display(Name = "数量")] + [ExporterHeader(DisplayName = "Quantity")] + public decimal Qty { get; set; } + + /// + /// 发货单号 + /// + [Display(Name = "发货单号")] + [ExporterHeader(DisplayName = "External Delivery ID")] + public string PN { get; set; } + + /// + /// 结算分组 + /// + [Display(Name = "结算分组")] + [ExporterHeader(DisplayName = "Delivery")] + public string GroupNum { get; set; } +} + +/// +/// Pub结算与发运对比请求 +/// +public class PubSaSeCompareRequestDto +{ + /// + /// 期间 + /// + [Display(Name = "期间")] + [Required(ErrorMessage = "{0}不能为空")] + public string Version { get; set; } + + /// + /// 零件号 + /// + [Display(Name = "零件号")] + public string LU { get; set; } + + /// + /// 通用码 + /// + [Display(Name = "通用码")] + public string PN { get; set; } + + /// + /// 业务类型 + /// + public EnumBusinessType BusinessType { get; set; } + + /// + /// 发运开始时间 + /// + public DateTime? SeStartDateTime { get; set; } + + /// + /// 发运结束时间 + /// + public DateTime? SeEndDateTime { get; set; } } diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_SE_DETAIL_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_SE_DETAIL_SERVICE.cs index 530c4dca..77e6062e 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_SE_DETAIL_SERVICE.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_SE_DETAIL_SERVICE.cs @@ -74,11 +74,10 @@ namespace Win.Sfs.SettleAccount.Entities.BQ /// 获取列表 /// [HttpPost] - public async Task> GetListAsync(PUB_SE_DETAIL_RequestDto input) + public async Task> GetListAsync(RequestDto input) { - input.Filters.Add(new FilterCondition("BusinessType", input.BusinessType.ToString(), EnumFilterAction.Equal, EnumFilterLogic.And)); - var entities = await _repository.GetListByFilterAsync(input.Filters, input.Sorting, input.MaxResultCount, input.SkipCount, true); - var totalCount = await _repository.GetCountByFilterAsync(input.Filters); + var entities = await _repository.GetListByFilterAsync(input.Filters, input.Sorting, input.MaxResultCount, input.SkipCount, true).ConfigureAwait(false); + var totalCount = await _repository.GetCountByFilterAsync(input.Filters).ConfigureAwait(false); var dtos = ObjectMapper.Map, List>(entities); return new PagedResultDto(totalCount, dtos); } diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Syncs/TM_BJBMPT_JIS_RECORD.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Syncs/TM_BJBMPT_JIS_RECORD.cs index 452748c8..484e2b03 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Syncs/TM_BJBMPT_JIS_RECORD.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Syncs/TM_BJBMPT_JIS_RECORD.cs @@ -72,16 +72,16 @@ public class TM_BJBMPT_JIS_RECORD public string RefVinCode { get; set; } [DisplayName("单据类型")] - public EnumBillType BillType { get; set; } + public int? BillType { get; set; } [DisplayName("子单据类型")] - public EnumSubBillType SubBillType { get; set; } + public int? SubBillType { get; set; } [DisplayName("单据性质")] public string BillCharacter { get; set; } [DisplayName("事务类型")] - public EnumDelTransType TransType { get; set; } + public int? TransType { get; set; } [DisplayName("发运主类型")] public EnumDeliverBjBmpBillType DeliverBillType { get; set; } @@ -111,7 +111,7 @@ public class TM_BJBMPT_JIS_RECORD public string MatchNumber { get; set; } [DisplayName("业务类型")] - public EnumProTpe ProType { get; set; } + public int? ProType { get; set; } [DisplayName("发货条码")] public string DeliverCode { get; set; } diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Syncs/TM_BJBMPT_JIT_RECORD.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Syncs/TM_BJBMPT_JIT_RECORD.cs index 67c6d5db..86988df7 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Syncs/TM_BJBMPT_JIT_RECORD.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Syncs/TM_BJBMPT_JIT_RECORD.cs @@ -69,13 +69,13 @@ public class TM_BJBMPT_JIT_RECORD public string ToLoc { get; set; } [DisplayName("单据类型")] - public EnumBillType BillType { get; set; } + public int? BillType { get; set; } [DisplayName("子单据类型")] - public EnumSubBillType SubBillType { get; set; } + public int? SubBillType { get; set; } [DisplayName("事务类型")] - public EnumDelTransType TransType { get; set; } + public int? TransType { get; set; } [DisplayName("发运主类型")] public EnumDeliverBjBmpBillType DeliverBillType { get; set; } @@ -93,7 +93,7 @@ public class TM_BJBMPT_JIT_RECORD public string Remark { get; set; } [DisplayName("业务类型")] - public EnumProTpe ProType { get; set; } + public int? ProType { get; set; } [DisplayName("JIS排序单号")] public string OrderNum { get; set; } diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Syncs/TM_BJBMPT_OTHER_RECORD.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Syncs/TM_BJBMPT_OTHER_RECORD.cs index aa936e84..2f4d5970 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Syncs/TM_BJBMPT_OTHER_RECORD.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Syncs/TM_BJBMPT_OTHER_RECORD.cs @@ -81,16 +81,16 @@ public class TM_BJBMPT_OTHER_RECORD public string Remark { get; set; } [DisplayName("单据类型")] - public EnumBillType BillType { get; set; } + public int? BillType { get; set; } [DisplayName("子单据类型")] - public EnumSubBillType SubBillType { get; set; } + public int? SubBillType { get; set; } [DisplayName("业务类型")] - public EnumProTpe ProType { get; set; } + public int? ProType { get; set; } [DisplayName("事务类型")] - public EnumDelTransType TransType { get; set; } + public int? TransType { get; set; } [DisplayName("发运主类型")] public EnumDeliverBjBmpBillType DeliverBillType { get; set; }