#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;
|
}
|
|
/// <summary>
|
/// 显示名称(标题),预设为默认标题
|
/// </summary>
|
public string CaptionCustom { get; set; }
|
|
/// <summary>
|
/// 字段类型
|
/// </summary>
|
public string FieldType { get; set; }
|
|
/// <summary>
|
/// 允许为空
|
/// </summary>
|
public bool NoBlank { get; set; }
|
|
/// <summary>
|
/// 小数位
|
/// </summary>
|
public int Point { get; set; }
|
|
public bool ReadOnly { get; set; }
|
|
/// <summary>
|
/// 显示
|
/// </summary>
|
public bool Visible { get; set; }
|
|
/// <summary>
|
/// 显示宽度
|
/// </summary>
|
public int Width { get; set; }
|
}
|
}
|