<#if head.isTree=='Y' && head.treeParentIdFieldName==po.field_name>
readonly = "readonly"#if>
<#-- update--begin--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
<#if po.file_must_input??><#if po.file_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>
data-options="
panelHeight:'220',
url: '${basePath}/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.file_must_input??><#if po.file_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>>
<#elseif po.show_type=='password'>
readonly = "readonly"#if>
<#-- update--begin--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
<#if po.file_must_input??><#if po.file_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>
<#if dictdata_index==0>
<#if po.field_valid_type?if_exists?html != ''>
datatype="${po.field_valid_type?if_exists?html}"
<#elseif po.is_null != 'Y'>
datatype="*"
#if>
<#if po.field_must_input?if_exists?html != ''><#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>
#if>
<#-- update--end--author:zhangjiaqiang Date:20170512 for:TASK #1910 【Online 校验】radio\checkbox\select 存在问题,没有根据选择校验规则校验 -->
<#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>
<#-- update--begin--author:zhangjiaqiang Date:20170512 for:TASK #1910 【Online 校验】radio\checkbox\select 存在问题,没有根据选择校验规则校验 -->
<#if dictdata_index==0>
<#if po.field_valid_type?if_exists?html != ''>
datatype="${po.field_valid_type?if_exists?html}"
<#elseif po.is_null != 'Y'>
datatype="*"
#if>
<#if po.field_must_input?if_exists?html != ''><#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>
#if>
<#-- update--end--author:zhangjiaqiang Date:20170512 for:TASK #1910 【Online 校验】radio\checkbox\select 存在问题,没有根据选择校验规则校验 -->
<#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'>
readonly = "readonly"#if>
<#-- update--begin--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
<#if po.file_must_input??><#if po.file_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'>
readonly = "readonly"#if>
<#-- update--begin--author:zhangjiaqiang Date:20170417 for:增加校验必填项 -->
<#if po.file_must_input??><#if po.file_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'>
<#if po.file_must_input??><#if po.file_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.operationCodesReadOnly?if_exists> readonly = "readonly"
<#else>
onClick="inputClick(this,'${po.dict_text?if_exists?html}','${po.dict_table?if_exists?html}');"
#if>
<#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 filesList as fileB>
<#-- update--begin--author:zhangjiaqiang date:20170608 for:修订字段为小写 -->
<#if fileB['field']?lower_case == po.field_name>
<#-- update--end--author:zhangjiaqiang date:20170608 for:修订字段为小写 -->
| ${fileB['title']} |
下载 |
预览 |
删除 |
#if>
#list>
<#if !(po.operationCodesReadOnly ??)>
#if>
<#-- update--begin--author:zhangjiaqiang date:20170607 for:增加图片格式的上传 -->
<#elseif po.show_type=='image'>
<#-- update--begin--author:zhangjiaqiang date:20170519 for:修订资源预览关联错误 -->
<#list imageList as imageB>
<#-- update--begin--author:zhangjiaqiang date:20170608 for:修订字段为小写 -->
<#if imageB['field']?lower_case == po.field_name>
<#-- update--end--author:zhangjiaqiang date:20170608 for:修订字段为小写 -->
| ${imageB['title']} |
下载 |
预览 |
删除 |
#if>
#list>
<#-- update--end--author:zhangjiaqiang date:20170519 for:修订资源预览关联错误 -->
<#if !(po.operationCodesReadOnly ??)>
#if>
<#-- update--end--author:zhangjiaqiang date:20170607 for:增加图片格式的上传 -->
<#else>
<#if po.file_must_input??><#if po.file_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>