#region using System; #endregion namespace CSFrameworkV5.Interfaces.InterfaceModels { [Serializable] public class FieldConfig : FieldNameDef { public FieldConfig() { Visible = true; } public FieldConfig(FieldNameDef fieldDef) { FieldName = fieldDef.FieldName; Caption = fieldDef.Caption; CaptionCustom = fieldDef.Caption; //预算值 FieldType = fieldDef.FieldType; Visible = true; } public FieldConfig(string fieldName, string caption, string fieldType) : base(fieldName, caption, fieldType) { Visible = true; } /// /// 显示名称(标题),预设为默认标题 /// public string CaptionCustom { get; set; } /// /// 字段类型 /// public string FieldType { get; set; } /// /// 允许为空 /// public bool NoBlank { get; set; } /// /// 小数位 /// public int Point { get; set; } public bool ReadOnly { get; set; } /// /// 显示 /// public bool Visible { get; set; } /// /// 显示宽度 /// public int Width { get; set; } } }