/****************************** * 说明:控件对象 * 创建人:龚宇超 * 创建日期:2017-09-01 * 修改人: * 修改日期: * 修改备注: * 版本:1.0.0.0 ******************************/ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Drawing; using System.Data; namespace Lskj.Control.Model { /// /// 控件对象 /// public class ControlModel { /// /// 控件id /// public string id { get; set; } /// /// 是否为回车新增控件 /// /// true if this instance is search control; otherwise, false. public bool IsAddControl { get; set; } /// /// 是否为查询条件创建控件 /// /// true if this instance is search control; otherwise, false. public bool IsSearchControl { get; set; } /// /// 是否必填(记录不可修改,修改会导致判断异常) /// public bool MustIn { get; set; } /// /// Gets or sets a value indicating whether this instance is empty. /// /// true if this instance is empty; otherwise, false. public bool IsEmpty { get; set; } /// /// 获取是否是特殊int值. /// /// true if this instance is empty; otherwise, false. public bool Isintordecimal { get; set; } /// /// Gets or sets a value indicating whether this instance is save. /// /// true if this instance is save; otherwise, false. public bool IsSave { get; set; } /// /// Gets or sets a value indicating whether this instance is clear. /// /// true if this instance is clear; otherwise, false. public bool CanClear { get; set; } /// /// 是否显示****,1:显示0.不显示 /// /// true if this instance is visible; otherwise, false. public bool Visible { get; set; } /// /// Gets or sets a value indicating whether this instance is copy. /// /// true if this instance is copy; otherwise, false. public bool CanCopy { get; set; } /// /// Gets or sets a value indicating whether this instance is readonly. 是否只读 /// /// true if this instance is read only; otherwise, false. public bool ReadOnly { get; set; } /// /// Gets or sets the type of the field. /// /// The type of the field. public int FieldType { get; set; } /// /// 刷新来源 /// public int IsRefreshSource { get; set; } /// /// Gets or sets the tip MSG. /// /// The tip MSG. public string TipMsg { get; set; } /// /// Gets or sets the null text. /// /// The null text. public string NullText { get; set; } /// /// Gets or sets the name. /// /// The name. public string Name { get; set; } /// /// Gets or sets the name of the field. /// /// The name of the field. public string FieldName { get; set; } /// /// Gets or sets the label text. /// /// The label text. public string LabelText { get; set; } /// /// Gets or sets the field text. /// /// The field text. public string Text = string.Empty; /// /// Gets or sets the default value. /// /// The default value. public string DefaultValue { get; set; } /// /// Gets or sets the default. /// /// The default value. public string Default { get; set; } /// /// Gets or sets the data format. /// /// The data format. public string DataFormat { get; set; } /// /// Gets or sets the value member. /// /// The value member. public string ValueMember { get; set; } /// /// Gets or sets the text member. /// /// The text member. public string TextMember { get; set; } /// /// 扩展返回字段映射,格式为“业务控件字段=返回数据字段”。 /// public string ResultFields { get; set; } /// /// Gets or sets the source SQL. /// /// The source SQL. public string SourceSql { get; set; } /// /// Gets or sets the union fields. /// /// The union fields. public string UnionFields { get; set; } /// /// Gets or sets the union values. /// /// The union values. public string UnionValues { get; set; } /// /// Gets or sets the calculate expr. /// /// The calculate expr. public string CalcExpr { get; set; } /// /// Gets or sets the calculate order. /// /// The calculate order. public int CalcOrder { get; set; } /// /// Gets or sets the tab order. /// /// The tab order. public int TabOrder { get; set; } /// /// 标识字段(用于身份证阅读器) /// /// The sign. public int Sign { get; set; } /// /// 自动搜索框添加模块ID /// /// The add module identifier. public string AddModuleId { get; set; } /// /// 自动搜索框添加模块Spec /// /// The add module spec. public string AddModuleSpec { get; set; } /// /// 自动搜索框添加模块返回 /// /// The add module result. public string AddModuleResult { get; set; } /// /// 字体大小 /// /// The size of the font. public int FontSize { get; set; } /// /// 可用条件 /// /// The enable cond. public string DisableCond { get; set; } /// /// 必填条件 /// /// The enable cond. public string RequiredCond { get; set; } /// /// 禁用方式(默认禁编,设置为1就禁显) /// /// The type of the enable. public string DisableType { get; set; } /// /// Gets or sets the only value. /// /// The location. public string FormKey { get; set; } /// /// Gets or sets the size. /// /// The size. public Size Size { get; set; } /// /// Gets or sets the location. /// /// The location. public Point Location { get; set; } /// /// Gets or sets the tag. /// /// The tag. public object Tag { get; set; } /// /// 重置控件值时是否忽略该控件 /// public bool IsFixedValue { get; set; } /// /// 点击后清空数据 /// public bool clickAfterEmpty { get; set; } /// /// 序号 /// public string OrderId { get; set; } /// /// 智能搜索框数据源刷新按钮 /// public bool RefreshButton { get; set; } /// /// 小数位数 /// public int DataDec { get; set; } /// /// 取消行数限制(top 500) /// public bool CancelRowLimit { get; set; } /// /// 弹出框数据源排序 /// public string AddOrderByCond { get; set; } /// /// 树节点选择模式 /// public string TreeCheckModel { get; set; } /// /// 标题颜色 /// public string ControlTitleColor { get; set; } /// /// 内容高亮(红色) /// public bool HighlightContent { get; set; } /// /// 是否为拖拽绑定控件 /// public bool FileUploadControl { get; set; } /// ///条件拼接 /// public bool Montage { get; set; } /// ///浏览权限 /// /// The name. public string DisplayPermissions { get; set; } /// ///下拉总宽度 /// /// The LookUpWidth. public int LookUpWidth { get; set; } /// ///下拉列宽度,逗号分隔一一对应 /// /// The LookUpFieldsWidth. public string LookUpFieldsWidth { get; set; } /// ///文本框禁编(不是禁编状态,可以点击按钮,但是不能手动输入) /// public bool TextBoxProhibition { get; set; } /// /// 条件 /// public string SplicingConditions; /// ///模块选择返回框,是否单选模式 /// public bool IsRadio { get; set; } /// ///模块选择返回框,配置列加载模式(默认根据sql动态加载列) /// public bool ConfigureColumnMode { get; set; } /// ///条件控件回车执行搜索后清空控件值 /// public bool ScanAfterEmpty { get; set; } /// ///是否为 导入返回值控件(每次导入前刷新默认值并带入) /// public bool ImportReturnValue { get; set; } /// ///是否为 导入控件(每次导入前把当前控件值带入) /// public bool ImportCurrentValue { get; set; } /// ///是否为 单据动态生成列开始日期控件 /// public bool SchedStartDataControl { get; set; } /// /// 弹出列表框中字体大小 /// public int ListBoxFontSize { get; set; } /// /// 字段浏览权限 /// public string PrivilegeView { get; set; } /// /// 字段操作权限 /// public string PrivilegeOper { get; set; } /// /// 字段操作权限 /// public bool AdditionalAssociations { get; set; } /// /// 审核界面控件标题颜色 /// public string AuditControlTitleColor { get; set; } /// /// 新版模块返回框类型,显示对应text值(默认只显示数据库中对应内容) /// public bool ModuleFrameDisplayText; /// /// 备注输入框中字体大小 /// public int InputBoxFontSize { get; set; } /// ///记住上一次的值(关闭时记住上一次的条件值,下一次打开时输入上去。关闭程序后清空) /// public bool RememberValue { get; set; } /// /// 明细合计 /// public string SumlistField { get; set; } } }