%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@include file="/context/mytags.jsp"%> <#assign callbackFlag = false /> <#assign fileName = "" /> <#list pageColumns as callBackTestPo> <#-- update--begin--author:zhangjiaqiang date:20170531 for:增加图片和文件的支持 --> <#if callBackTestPo.showType=='file' || callBackTestPo.showType=='image' > <#assign callbackFlag = true /> <#break> #if> <#-- update--end--author:zhangjiaqiang date:20170531 for:增加图片和文件的支持 --> #list> <#-- update--begin--author:zhangjiaqiang Date:20170509 for:修订生成页面乱 --> <#include "../../ui/datatype.ftl"/> <#include "../../ui/dictInfo.ftl"/> <#-- update--end--author:zhangjiaqiang Date:20170509 for:修订生成页面乱 -->
|
<#if cgformConfig.cgFormHead.isTree=='Y' && cgformConfig.cgFormHead.treeParentIdFieldNamePage==po.fieldName>
value='${'$'}{${entityName?uncap_first}Page.${po.fieldName}}'
data-options="
panelHeight:'220',
url: '${entityName?uncap_first}Controller.do?datagrid&field=id,${cgformConfig.cgFormHead.treeFieldnamePage}',
loadFilter: function(data) {
var rows = data.rows || data;
var win = frameElement.api.opener;
var listRows = win.getDataGrid().treegrid('getData');
joinTreeChildren(rows, listRows);
convertTreeData(rows, '${cgformConfig.cgFormHead.treeFieldnamePage}');
return rows;
},
<#-- update--begin--author:zhangjiaqiang Date:20170518 for:修订树形菜单选择必填项问题-->
onSelect:function(node){
$('#${po.fieldName}').val(node.id);
},
<#-- update--end--author:zhangjiaqiang Date:20170518 for:修订树形菜单选择必填项问题 -->
onLoadSuccess: function() {
var win = frameElement.api.opener;
var currRow = win.getDataGrid().treegrid('getSelected');
if(!'${'$'}{${entityName?uncap_first}Page.id}') {
//增加时,选择当前父菜单
if(currRow) {
$('#${po.fieldName}').combotree('setValue', currRow.id);
}
}else {
//编辑时,选择当前父菜单
if(currRow) {
$('#${po.fieldName}').combotree('setValue', currRow.${po.fieldName});
}
}
}
"
>
<#elseif po.showType=='text'>
<#-- update--begin--author:zhangjiaqiangDate:20170509 for:修订生成代码不美观 -->
value='${'$'}{${entityName?uncap_first}Page.${po.fieldName}}'/>
<#-- update--begin--author:zhangjiaqiangDate:20170509 for:修订生成代码不美观 -->
<#elseif po.showType=='popup'>
<#-- update--begin--author:zhangjiaqiangDate:20170509 for:修订生成代码不美观 -->
<#if po.dictTable?if_exists?html!=""> onclick="inputClick(this,'${po.dictField}','${po.dictTable}')"#if> value='${'$'}{${entityName?uncap_first}Page.${po.fieldName}}'/>
<#-- update--begin--author:zhangjiaqiangDate:20170509 for:修订生成代码不美观 -->
<#elseif po.showType=='textarea'>
<#-- update--begin--author:zhangjiaqiangDate:20170509 for:修订生成代码不美观 -->
>${'$'}{${entityName?uncap_first}Page.${po.fieldName}}
<#-- update--begin--author:zhangjiaqiangDate:20170509 for:修订生成代码不美观 -->
<#elseif po.showType=='password'>
<#-- update--begin--author:zhangjiaqiangDate:20170509 for:修订生成代码不美观 -->
value='${'$'}{${entityName?uncap_first}Page.${po.fieldName}}'/>
<#-- update--begin--author:zhangjiaqiangDate:20170509 for:修订生成代码不美观 -->
<#elseif po.showType=='radio' || po.showType=='select' || po.showType=='checkbox' || po.showType=='list'>
<#-- update--begin--author:zhangjiaqiangDate:20170509 for:修订生成代码不美观 -->
|
<#-- update--begin--author:zhoujf Date:20170601 for:table表单生成验收乱问题 -->
<#if (pageColumns?size>10)>
<#-- update--end--author:zhoujf Date:20170601 for:table表单生成验收乱问题 -->
<#if (po_index%2==0)&&(!po_has_next)>
#if> <#if (po_index%2!=0)||(!po_has_next)> | ||
| 10)> colspan="3" #if>> <#if po.showType=='textarea'> <#-- update--begin--author:zhangjiaqiangDate:20170509 for:修订生成代码不美观 --> >${'$'}{${entityName?uncap_first}Page.${po.fieldName}} <#-- update--begin--author:zhangjiaqiangDate:20170509 for:修订生成代码不美观 --> <#elseif po.showType='umeditor'> <#-- update--begin--author:zhangjiaqiang date:20170522 for:ueditor配置文件只加载一次 --> <#assign ue_widget_count = ue_widget_count + 1> <#if ue_widget_count == 1> #if> <#-- update--end--author:zhangjiaqiang date:20170522 for:ueditor配置文件只加载一次 --> <#--update-start--Author: dangzhenghui Date:20160421 for:TASK #1899 【代码生成器bug】控件类型为UE编辑器 ,编辑页面内容显示为空--> <#--update-start--Author: dangzhenghui Date:20160421 for:TASK #1899 【代码生成器bug】控件类型为UE编辑器 ,编辑页面内容显示为空--> #if> |