#if>
|
|
<#--update-begin--Author:钟世云 Date:20150610 for:online支持树配置-->
<#if head.isTree=='Y' && head.treeParentIdFieldName==po.field_name>
readonly = "readonly"#if>
<#-- update--begin--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
<#if po.field_must_input??><#if po.field_must_input == 'Y' || po.is_null != 'Y'>ignore="checked"<#else>ignore="ignore"#if><#elseif po.is_null != "Y">ignore="checked"<#else>ignore="ignore"#if>
<#-- update--end--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
<#if po.field_valid_type?if_exists?html != ''>
datatype="${po.field_valid_type?if_exists?html}"
<#else>
<#if po.type == 'int'>
datatype="n" <#if po.is_null == 'Y'>ignore="ignore" #if>
<#elseif po.type=='double'>
datatype="/^(-?\d+)(\.\d+)?$/" <#if po.is_null == 'Y'>ignore="ignore" #if>
<#else>
<#if po.is_null != 'Y'>datatype="*"#if>
#if>
#if>
data-options="
panelHeight:'220',
url: 'cgAutoListController.do?datagrid&configId=${tableName?if_exists?html}&field=id,${head.treeFieldname}',
loadFilter: function(data) {
var rows = data.rows || data;
var win = frameElement.api.opener;
var listRows = win.getDataGrid().treegrid('getData');
joinTreeChildren(rows, listRows);
convertTreeData(rows, '${head.treeFieldname}');
return rows;
},
onLoadSuccess: function() {
var win = frameElement.api.opener;
var currRow = win.getDataGrid().treegrid('getSelected');
if(!'${id?if_exists?html}') {
//增加时,选择当前父菜单
if(currRow) {
$('#${po.field_name}').combotree('setValue', currRow.id);
}
}else {
//编辑时,选择当前父菜单
if(currRow) {
$('#${po.field_name}').combotree('setValue', currRow._parentId);
}
}
}
">
<#--update-end--Author:钟世云 Date:20150610 for:online支持树配置-->
<#elseif po.show_type=='text'>
readonly = "readonly"#if>
<#-- update--begin--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
<#if po.field_must_input??><#if po.field_must_input == 'Y' || po.is_null != 'Y'>ignore="checked"<#else>ignore="ignore"#if><#elseif po.is_null != "Y">ignore="checked"<#else>ignore="ignore"#if>
<#-- update--end--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
<#if po.field_valid_type?if_exists?html != ''>
datatype="${po.field_valid_type?if_exists?html}"
<#else>
<#if po.type == 'int'>
datatype="n" <#if po.is_null == 'Y'>ignore="ignore" #if>
<#elseif po.type=='double'>
datatype="/^(-?\d+)(\.\d+)?$/" <#if po.is_null == 'Y'>ignore="ignore" #if>
<#else>
<#if po.is_null != 'Y'>datatype="*"#if>
#if>
#if>>
<#elseif po.show_type=='password'>
readonly = "readonly"#if>
<#-- update--begin--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
<#if po.field_must_input??><#if po.field_must_input == 'Y' || po.is_null != 'Y'>ignore="checked"<#else>ignore="ignore"#if><#elseif po.is_null != "Y">ignore="checked"<#else>ignore="ignore"#if>
<#-- update--end--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
<#if po.field_valid_type?if_exists?html != ''>
datatype="${po.field_valid_type?if_exists?html}"
<#else>
<#if po.is_null != 'Y'>datatype="*"#if>
#if>>
<#elseif po.show_type=='radio'>
<@DictData name="${po.dict_field?if_exists?html}" text="${po.dict_text?if_exists?html}" tablename="${po.dict_table?if_exists?html}" var="dataList">
<#list dataList as dictdata>
datatype="*"#if>
<#if po.operationCodesReadOnly?if_exists>onclick="return false;"#if>
<#if dictdata.typecode?if_exists?html=="${data['${tableName}']['${po.field_name}']?if_exists?html}"> checked="true" #if>>
${dictdata.typename?if_exists?html}
#list>
@DictData>
<#elseif po.show_type=='checkbox'>
<#assign checkboxstr>${data['${tableName}']['${po.field_name}']?if_exists?html}#assign>
<#assign checkboxlist=checkboxstr?split(",")>
<@DictData name="${po.dict_field?if_exists?html}" text="${po.dict_text?if_exists?html}" tablename="${po.dict_table?if_exists?html}" var="dataList">
<#list dataList as dictdata>
onclick="return false;"#if>
<#if dictdata_index==0&&po.is_null != 'Y'>datatype="*"#if>
<#list checkboxlist as x >
<#if dictdata.typecode?if_exists?html=="${x?if_exists?html}"> checked="true" #if>#list>>
${dictdata.typename?if_exists?html}
#list>
@DictData>
<#elseif po.show_type=='list'>
<@DictData name="${po.dict_field?if_exists?html}" text="${po.dict_text?if_exists?html}" tablename="${po.dict_table?if_exists?html}" var="dataList">
@DictData>
<#elseif po.show_type=='date'>
"
class="Wdate" onClick="WdatePicker({<#if po.operationCodesReadOnly?if_exists> readonly = true#if>})"
<#if po.operationCodesReadOnly?exists> readonly = "readonly"#if>
<#-- update--begin--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
<#if po.field_must_input??><#if po.field_must_input == 'Y' || po.is_null != 'Y'>ignore="checked"<#else>ignore="ignore"#if><#elseif po.is_null != "Y">ignore="checked"<#else>ignore="ignore"#if>
<#-- update--end--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
<#if po.field_valid_type?if_exists?html != ''>
datatype="${po.field_valid_type?if_exists?html}"
<#else>
<#if po.is_null != 'Y'>datatype="*"#if>
#if>>
<#elseif po.show_type=='datetime'>
"
class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'<#if po.operationCodesReadOnly?if_exists> ,readonly = true#if>})"
<#if po.operationCodesReadOnly?exists> readonly = "readonly"#if>
<#-- update--begin--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
<#if po.field_must_input??><#if po.field_must_input == 'Y' || po.is_null != 'Y'>ignore="checked"<#else>ignore="ignore"#if><#elseif po.is_null != "Y">ignore="checked"<#else>ignore="ignore"#if>
<#-- update--end--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
<#if po.field_valid_type?if_exists?html != ''>
datatype="${po.field_valid_type?if_exists?html}"
<#else>
<#if po.is_null != 'Y'>datatype="*"#if>
#if>>
<#elseif po.show_type=='popup'>
readonly = "readonly"#if>
<#-- update--begin--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
<#if po.field_must_input??><#if po.field_must_input == 'Y' || po.is_null != 'Y'>ignore="checked"<#else>ignore="ignore"#if><#elseif po.is_null != "Y">ignore="checked"<#else>ignore="ignore"#if>
<#-- update--end--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
<#if po.field_valid_type?if_exists?html != ''>
datatype="${po.field_valid_type?if_exists?html}"
<#else>
<#if po.is_null != 'Y'>datatype="*"#if>
#if>>
<#elseif po.show_type=='file'>
<#list imageList as imageB>
<#if imageB['field'] == po.field_name>
| ${imageB['title']} |
下载 |
预览 |
删除 |
#if>
#list>
<#if !(po.operationCodesReadOnly ??)>
#if>
<#--update-start--Author: jg_huangxg Date:20160113 for:TASK #824 【online开发】控件类型扩展增加一个图片类型 image -->
<#elseif po.show_type=='image'>
<#list filesList as fileB>
<#if fileB['field'] == po.field_name>
| ${fileB['title']} |
下载 |
预览 |
删除 |
#if>
#list>
<#if !(po.operationCodesReadOnly ??)>
#if>
<#--update-end--Author: jg_huangxg Date:20160113 for:TASK #824 【online开发】控件类型扩展增加一个图片类型 image -->
<#--update-start--Author: jg_huangxg Date:20160505 for:TASK #1027 【online】代码生成器模板不支持UE编辑器 -->
<#elseif po.show_type=='umeditor'>
<#--update-end--Author: jg_huangxg Date:20160505 for:TASK #1027 【online】代码生成器模板不支持UE编辑器 -->
<#else>
<#if po.field_must_input??><#if po.field_must_input == 'Y' || po.is_null != 'Y'>ignore="checked"<#else>ignore="ignore"#if><#elseif po.is_null != "Y">ignore="checked"<#else>ignore="ignore"#if>
<#-- update--end--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
<#if po.field_valid_type?if_exists?html != ''>
datatype="${po.field_valid_type?if_exists?html}"
<#else>
<#if po.type == 'int'>
datatype="n"
<#elseif po.type=='double'>
datatype="/^(-?\d+)(\.\d+)?$/"
<#else>
<#if po.is_null != 'Y'>datatype="*"#if>
#if>
#if>>
#if>
|
<#if (columns?size>10)>
<#if (po_index%2==0)&&(!po_has_next)>
|
|
#if>
<#if (po_index%2!=0)||(!po_has_next)>
#if>
<#else>
#if>
#list>
<#list columnsarea as po>
<#if (columns?size>10)>