using JNPF.DependencyInjection; namespace JNPF.VisualDev.Engine.Model.CodeGen; /// /// 代码生成表单列模型. /// [SuppressSniffer] public class FormScriptDesignModel { /// /// 列名. /// public string Name { get; set; } /// /// 原始列名. /// public string OriginalName { get; set; } /// /// 首字母小写列名. /// public string LowerName => string.IsNullOrWhiteSpace(Name) ? null : Name.Substring(0, 1).ToLower() + Name[1..]; /// /// 标签类型. /// public string jnpfKey { get; set; } /// /// 数据类型. /// public string DataType { get; set; } /// /// 字典类型. /// public string DictionaryType { get; set; } /// /// 时间格式化. /// public string Format { get; set; } /// /// 多选标记. /// public bool Multiple { get; set; } /// /// 自动生成规则. /// public string BillRule { get; set; } /// /// 必填. /// public bool Required { get; set; } /// /// 验证规则. /// public List RegList { get; set; } /// /// 提示时机. /// public string Trigger { get; set; } /// /// 提示语. /// public string Placeholder { get; set; } /// /// 范围. /// public bool Range { get; set; } /// /// 默认值. /// public object DefaultValue { get; set; } /// /// 子控件列表. /// public List ChildrenList { get; set; } /// /// 是否开启合计. /// public bool ShowSummary { get; set; } /// /// 合计数组. /// public string SummaryField { get; set; } /// /// 是否合计. /// public bool IsSummary { get; set; } /// /// 是否数据传递. /// public bool IsDataTransfer { get; set; } /// /// 数据传递表配置. /// public string AddTableConf { get; set; } /// /// 子表添加类型 /// 0-常规添加,1-数据传递. /// public int AddType { get; set; } /// /// 是否行内编辑. /// public bool IsInlineEditor { get; set; } /// /// 是否被联动(反). /// public bool IsLinked { get; set; } /// /// 是否联动(正). /// public bool IsLinkage { get; set; } /// /// 联动反向关系. /// public List LinkageRelationship { get; set; } = new List(); }