Files
lserp_cs_6.0/插件库/Lskj.Control/Model/ControlModel.cs
T
2026-07-18 15:32:50 +08:00

376 lines
13 KiB
C#
Raw Blame History

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