发表评论eFormControl表单控件
发布时间:2017-08-06 14:04:22
浏览量:1348
eFormControl
名称 |
数据类型 |
描述 |
ID |
string |
表单ID属性 |
Name |
string |
表单Name属性 |
ControlType |
string |
控件类型 如:hidden、label、text、date、radio、checkbox、select、textarea、html、file、sort、password |
Field |
string |
数据字段编码 |
FieldName |
string |
数据名称 |
Options |
json |
选项 如:[{"text":"是","value":"True"},{"text":"否","value":"False"}] |
ReplaceString |
json |
替换字符串 如:[{"text":"是","value":"True"},{"text":"否","value":"False"}] |
FormatString |
string |
格式化字符串 如:{0:F2}、{0:yyyy-MM-dd}、{0:yyyy-MM-dd}、{0:yyyy-MM-dd HH:mm:ss} |
Value |
string |
值 |
DefaultValue |
string |
默认值 |
Title |
string |
提示文字 |
Unit |
string |
单位 |
Text |
string |
自定义内容样式 如:<img src="{data:pic}"> |
Width |
int |
宽度 |
Height |
int |
高度 |
Attributes |
string |
其他属性 |
DateFormat |
string |
日期控件-日期格式 如:yyyy-MM-dd、yyyy-MM-dd HH、yyyy-MM-dd HH:mm、yyyy-MM-dd HH:mm:ss |
DataType |
string |
客户端验证-数据类型 () |
NotNull |
bool |
客户端验证-允许为空 |
MinLength |
int |
客户端验证-最小长度 |
MaxLength |
int |
客户端验证-最大长度 |
MinValue |
int、float、date |
客户端验证-最小值 |
MaxValue |
int、float、date |
客户端验证-最大值 |
BindObject |
string |
数据绑定-对象编码 |
BindRows |
int |
数据绑定-行 |
BindText |
string |
数据绑定-文本字段编码 |
BindValue |
string |
数据绑定-值字段编码 |
BindCondition |
string |
数据绑定-条件 |
BindOrderBy |
string |
数据绑定-排序 |
BindGroupBy |
string |
数据绑定-分组 |
getControlHTML() |
string |
控件HTML |
示例:
<input
type="text" name="f1" class="edit" fieldname="用户名" notnull="true"
datatype="string" minlength="2" maxlength="5" value="" />