using System.ComponentModel.DataAnnotations; using WTA.Shared.Attributes; using WTA.Shared.Domain; namespace WTA.Application.Identity.Entities.SystemManagement; [Order(1)] [BeiJianDataInput] [Display(Name = "备件结算导入")] public class BJ_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 = "备件结算导入明细")] [BeiJianDataInput] [Hidden] public class BJ_SA_DETAIL : BaseEntity { /// /// 对应字段(零件号+交付识别号) /// [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!; /// /// 对应字段【零件号】 /// [Display(Name = "零件号")] public string LU { get; set; } = null!; /// /// 对应字段【交付识别号】 /// [Display(Name = "交付识别号")] public string PN { get; set; } = null!; /// /// 无 /// [Display(Name = "工厂地点")] public string Site { get; set; } = null!; /// /// 对应字段【数量】 /// [Display(Name = "结算数量")] public decimal Qty { get; set; } /// /// 从备件价格单里取 /// [Display(Name = "单价")] public decimal Price { get; set; } /// /// 无 /// [Display(Name = "结算日期(收货日期)")] public DateTime SettleDate { get; set; } /// /// 对应字段【凭证号】 /// [Display(Name = "结算分组")] public string GroupNum { get; set; } = null!; }