using System.ComponentModel.DataAnnotations; using WTA.Application.Identity.Entities.SystemManagement.Attribute; using WTA.Shared.Attributes; using WTA.Shared.Domain; namespace WTA.Application.Identity.Entities.SystemManagement; [Order(2)] [JISBBACDataInputGroup] [Display(Name = "JIS结算数据")] //BBAC结算导入 public class BBAC_SA : BaseEntity { [Display(Name = "期间")] public string Version { get; set; } = null!; [Display(Name = "结算单据")] [OneToMany] public string BillNum { get; set; } = null!; //[Display(Name = "出库单号")] //public string DNBillNum { get; set; } = null!; /// /// 1、新建 2、已有出库3、已有扣减寄售库 /// [Display(Name = "状态")] public string State { get; set; } = null!; /// /// 明细记录行数 /// [Display(Name = "明细记录行数")] public string RecordCount { get; set; } = null!; } [Display(Name = "BBAC结算导入明细")] [Hidden] public class BBAC_SA_DETAIL : BaseEntity { /// /// 对应字段(Material+ExternalCalNumber) /// [Display(Name = "LU+生产码")] public string KeyCode { get; set; } = null!; /// /// 期间 /// [Display(Name = "期间")] public string Version { get; set; } = null!; /// /// 结算单号 /// [Display(Name = "结算单号")] public string BillNum { get; set; } = null!; /// /// 对应字段Material /// [Display(Name = "零件号")] public string LU { get; set; } = null!; /// /// 对应字段ExternalCalNumber /// [Display(Name = "生产码")] public string PN { get; set; } = null!; /// /// 选择工厂导入 /// [Display(Name = "工厂地点")] public string Site { get; set; } = null!; /// /// 对应字段Quantity /// [Display(Name = "结算数量")] public decimal Qty { get; set; } /// /// 匹配价格表对应区间对应地点带出 /// [Display(Name = "单价")] public decimal Price { get; set; } /// /// ExternalCallNumber包含(R0)为买单件 1为JIS 2.为买单件 /// [Display(Name = "业务类别")] public string Category { get; set; } = null!; /// /// 对应字段MovementType,996正常,997为退货 /// [Display(Name = "是否退货")] public string IsReturn { get; set; } = null!; /// /// 对应字段PostingDate /// [Display(Name = "结算日期(收货日期)")] public DateTime SettleDate { get; set; } /// /// 对应字段Reference /// [Display(Name = "结算分组")] public string GroupNum { get; set; } = null!; [Display(Name = "发票分组号")] public string InvGroupNum { get; set; } = null!; }