106 lines
2.6 KiB

2 years ago
using System.ComponentModel.DataAnnotations;
2 years ago
using WTA.Application.Identity.Entities.SystemManagement.Group;
2 years ago
using WTA.Shared.Attributes;
using WTA.Shared.Domain;
namespace WTA.Application.Identity.Entities.SystemManagement;
2 years ago
[JISHBPODataInputGroup]
2 years ago
[Display(Name = "JIS结算数据")]
//HBPO结算导入
2 years ago
public class HBPO_SA : BaseEntity
{
[Display(Name = "期间")]
public string Version { get; set; } = null!;
[Display(Name = "结算单据")]
[OneToMany<HBPO_SA_DETAIL>]
public string BillNum { get; set; } = null!;
[Display(Name = "出库单号")]
public string DNBillNum { get; set; } = null!;
/// <summary>
/// 1、新建 2、已有出库3、已有扣减寄售库
/// </summary>
[Display(Name = "状态")]
public string State { get; set; } = null!;
/// <summary>
/// 明细记录行数
/// </summary>
[Display(Name = "明细记录行数")]
public string RecordCount { get; set; } = null!;
2 years ago
2 years ago
}
2 years ago
2 years ago
[Display(Name = "HBPO结算导入明细")]
2 years ago
2 years ago
[Hidden]
2 years ago
public class HBPO_SA_DETAIL : BaseEntity
2 years ago
2 years ago
{
/// <summary>
/// 对应字段(PartNumber+ProductioNumber)
/// </summary>
[Display(Name = "LU+生产码")]
public string KeyCode { get; set; } = null!;
/// <summary>
/// 期间
/// </summary>
[Display(Name = "期间")]
public string Version { get; set; } = null!;
/// <summary>
/// 结算单号
/// </summary>
[Display(Name = "结算单号")]
public string BillNum { get; set; } = null!;
/// <summary>
/// 对应字段PartNumber
/// </summary>
[Display(Name = "零件号")]
public string LU { get; set; } = null!;
/// <summary>
/// 对应字段productionlumber
/// </summary>
[Display(Name = "生产码")]
public string PN { get; set; } = null!;
/// <summary>
/// 对应字段filename 区分 cn1、cn5
/// </summary>
[Display(Name = "工厂地点")]
public string Site { get; set; } = null!;
/// <summary>
/// 对应字段Qty
/// </summary>
[Display(Name = "结算数量")]
public decimal Qty { get; set; }
/// <summary>
/// 匹配价格表对应区间带出
/// </summary>
[Display(Name = "单价")]
public decimal Price { get; set; }
/// <summary>
/// 对应字段ReceiveDate
/// </summary>
[Display(Name = "结算日期(收货日期)")]
public DateTime SettleDate { get; set; }
/// <summary>
/// 对应字段DeliveryNode
/// </summary>
[Display(Name = "结算分组")]
public string GroupNum { get; set; } = null!;
2 years ago
[Display(Name = "发票分组号")]
public string InvGroupNum { get; set; } = null!;
2 years ago
}