using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace RB_MES_API.Models { /// /// 查询接口字段转换,可用于各种接口的字段转换 /// public class SelectClumnConvert { /// /// 主键 /// [Key] public int FID { get;set; } /// /// 顺序号,注意:FSourceName相同时,FIndexID必须相同 /// public int FIndexID { get; set; } /// /// 来源于FunctionList,但不是外键 /// 索引之一 /// [DisplayName("接口名称")] public int FFunctionID { get; set; } /// /// 此字段为传入的系统表名,比如传入MES时为PO,传入金蝶Cloud时则为PUR_PurchaseOrder /// [DisplayName("目标表名")] [StringLength(200)] public string FDesTableName { get; set; } = string.Empty; /// /// 转换前 /// [DisplayName("原字段")] [StringLength(80)] public string FSourceName { get; set; }=string.Empty; /// /// 转换后。FDesTableName的字段 /// [DisplayName("目标字段")] [StringLength(80)] public string FDesName { get; set; } = string.Empty; /// /// 中文名,方便校对 /// [DisplayName("显示名")] [StringLength(80)] public string FKDCaption { get; set; } = string.Empty; //字段别名 } }