Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JeeSpringCloud
Commits
9d155019
Commit
9d155019
authored
Oct 22, 2018
by
HuangBingGui
Browse files
no commit message
parent
c4b2023a
Changes
2
Hide whitespace changes
Inline
Side-by-side
JeeSpringCloud/src/main/resources/templates/modules/gen/curd/viewFormMany.xml
deleted
100644 → 0
View file @
c4b2023a
<?xml version="1.0" encoding="utf-8"?>
<template>
<name>
viewForm
</name>
<filePath>
src/main/webapp/WEB-INF/views/${lastPackageName}/${moduleName}/${subModuleName}
</filePath>
<fileName>
${className}Form.jsp
</fileName>
<content>
<![CDATA[
<%@ page contentType="text/html;charset=UTF-8" %>
<
%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>
${functionNameSimple}管理
</title>
<
%@ include file="/WEB-INF/views/include/headMeta.jsp" %>
<
%@ include file="/WEB-INF/views/include/headCss.jsp" %>
<
%@ include file="/WEB-INF/views/include/headJs.jsp" %>
</head>
<body>
<!-- 内容-->
<div
class=
"wrapper"
>
<!-- 内容盒子-->
<div
class=
"box box-main"
>
<!-- 内容盒子头部 -->
<div
class=
"box-header"
>
<div
class=
"box-title"
><i
class=
"fa fa-edit"
></i>
${functionNameSimple}管理
</div>
</div>
<!-- 内容盒子身体 -->
<div
class=
"box-body"
>
<form:form
id=
"inputForm"
modelAttribute=
"${className}"
action=
"${r"
${ctx}"}/${urlPrefix}/save"
method=
"post"
class=
"form-horizontal content-background"
>
<div
class=
"content"
>
<form:hidden
path=
"id"
/>
<sys:message
content=
"${r"
${message}"}"
/>
<div
class=
"form-unit"
>
基本信息
</div>
<
#list table.columnList as c>
<
#if c.isEdit??
&&
c.isEdit == "1"
&&
(c.isNotBaseField || c.simpleJavaField == 'remarks')>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 pull-left"
>
${c.comments}
<
#if c.isNull != "1">
<font
color=
"red"
>
*
</font>
<
/#if>
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<
#if c.showType == "input">
<
#if c.javaType??
&&
c.javaType != "byte[]">
<form:input
path=
"${c.javaFieldId}"
htmlEscape=
"false"
<#if
c.dataLength
!=
"0"
>
maxlength="${c.dataLength}"
<
/#if> class="form-control
<
#if c.isNull != "1">required
<
/#if>
<
#if c.javaType == "Long" || c.javaType == "Integer"> digits
<
/#if>
<
#if c.javaType == "Double"> number
<
/#if>"/>
<
#else>
<form:input
path=
"${c.javaFieldId}Text"
htmlEscape=
"false"
<#if
c.dataLength
!=
"0"
>
maxlength="${c.dataLength}"
<
/#if> class="form-control
<
#if c.isNull != "1">required
<
/#if>
<
#if c.javaType == "Long" || c.javaType == "Integer"> digits
<
/#if>
<
#if c.javaType == "Double"> number
<
/#if>"/>
<
/#if>
<div
class=
"help-block"
>
请填写${c.comments}
</div>
<
#elseif c.showType == "textarea">
<
#if c.javaType??
&&
c.javaType != "byte[]">
<form:textarea
path=
"${c.javaFieldId}"
htmlEscape=
"false"
rows=
"4"
<#if
c.dataLength
!=
"0"
>
maxlength="${c.dataLength}"
<
/#if> class="form-control
<
#if c.isNull != "1">required
<
/#if>"/>
<
#else>
<form:textarea
path=
"${c.javaFieldId}Text"
htmlEscape=
"false"
rows=
"4"
<#if
c.dataLength
!=
"0"
>
maxlength="${c.dataLength}"
<
/#if> class="form-control
<
#if c.isNull != "1">required
<
/#if>"/>
<
/#if>
<
#elseif c.showType == "text">
<
#if c.javaType??
&&
c.javaType != "byte[]">
<form:textarea
path=
"${c.javaFieldId}"
htmlEscape=
"false"
rows=
"4"
<#if
c.dataLength
!=
"0"
>
maxlength="${c.dataLength}"
<
/#if> class="form-control
<
#if c.isNull != "1">required
<
/#if>"/>
<sys:ckeditor
replace=
"${c.javaFieldId}"
height=
"400"
uploadPath=
"/${moduleName}<#if subModuleName != "
"
>
/${subModuleName}
<
/#if>/${className}" />
<
#else>
<form:textarea
path=
"${c.javaFieldId}Text"
htmlEscape=
"false"
rows=
"4"
<#if
c.dataLength
!=
"0"
>
maxlength="${c.dataLength}"
<
/#if> class="form-control
<
#if c.isNull != "1">required
<
/#if>"/>
<sys:ckeditor
replace=
"${c.javaFieldId}Text"
height=
"400"
uploadPath=
"/${moduleName}<#if subModuleName != "
"
>
/${subModuleName}
<
/#if>/${className}" />
<
/#if>
<
#elseif c.showType == "select">
<form:select
path=
"${c.javaFieldId}"
class=
"form-control <#if c.isNull != "
1"
>
required
<
/#if>">
<form:option
value=
""
label=
""
/>
<form:options
items=
"${"
$"}{fns:getDictList('${c.dictType}')}"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/>
</form:select>
<div
class=
"help-block"
>
请选择${c.comments}
</div>
<
#elseif c.showType == "checkbox">
<form:checkboxes
path=
"${c.javaFieldId}"
items=
"${"
$"}{fns:getDictList('${c.dictType}')}"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
class=
"i-checks <#if c.isNull != "
1"
>
required
<
/#if>"/>
<script
type=
"text/javascript"
>
${"$"}(document).ready(function() {
${"$"}("[name=${c.javaFieldId}]").each(function(){
var ${c.javaFieldId}="${"$"}{${className}.${c.javaFieldId}}";
var ${c.javaFieldId}Item = ${c.javaFieldId}.split(",");
for(var i=0;i
<
=${c.javaFieldId}Item.length;i++){
if(${"$"}(this).val()==${c.javaFieldId}Item[i]) {
${"$"}(this).attr("checked", "true");
${"$"}(this).parent().addClass("checked");
}
}
});
});
</script>
<div
class=
"help-block"
>
请选择${c.comments}
</div>
<
#elseif c.showType == "radiobox">
<form:radiobuttons
path=
"${c.javaFieldId}"
items=
"${"
$"}{fns:getDictList('${c.dictType}')}"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
class=
"i-checks <#if c.isNull != "
1"
>
required
<
/#if>"/>
<div
class=
"help-block"
>
请选择${c.comments}
</div>
<
#elseif c.showType == "dateselect">
<input
id=
"${c.javaFieldId}"
name=
"${c.javaFieldId}"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date <#if c.isNull != "
1"
>
required
<
/#if>"
value="
<fmt:formatDate
value=
"${"
$"}{${className}.${c.javaFieldId}}"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"/>
<div
class=
"help-block"
>
请选择${c.comments}
</div>
<
#elseif c.showType == "userselect">
<sys:treeselect
id=
"${c.simpleJavaField}"
name=
"${c.javaFieldId}"
value=
"${"
$"}{${className}.${c.javaFieldId}}"
labelName=
"${c.javaFieldName}"
labelValue=
"${"
$"}{${className}.${c.javaFieldName}}"
title=
"用户"
url=
"/sys/office/treeData?type=3"
cssClass=
"form-control <#if c.isNull != "
1"
>
required
<
/#if>" allowClear="true" notAllowSelectParent="true"/>
<div
class=
"help-block"
>
请选择${c.comments}
</div>
<
#elseif c.showType == "officeselect">
<sys:treeselect
id=
"${c.simpleJavaField}"
name=
"${c.javaFieldId}"
value=
"${"
$"}{${className}.${c.javaFieldId}}"
labelName=
"${c.javaFieldName}"
labelValue=
"${"
$"}{${className}.${c.javaFieldName}}"
title=
"部门"
url=
"/sys/office/treeData?type=2"
cssClass=
"form-control <#if c.isNull != "
1"
>
required
<
/#if>" allowClear="true" notAllowSelectParent="true"/>
<div
class=
"help-block"
>
请选择${c.comments}
</div>
<
#elseif c.showType == "areaselect">
<sys:treeselect
id=
"${c.simpleJavaField}"
name=
"${c.javaFieldId}"
value=
"${"
$"}{${className}.${c.javaFieldId}}"
labelName=
"${c.javaFieldName}"
labelValue=
"${"
$"}{${className}.${c.javaFieldName}}"
title=
"区域"
url=
"/sys/area/treeData"
cssClass=
"form-control <#if c.isNull != "
1"
>
required
<
/#if>" allowClear="true" notAllowSelectParent="true"/>
<div
class=
"help-block"
>
请选择${c.comments}
</div>
<
#elseif c.showType == "fileselect">
<form:hidden
id=
"${c.simpleJavaField}"
path=
"${c.javaFieldId}"
htmlEscape=
"false"
<#if
c.dataLength
!=
"0"
>
maxlength="${c.dataLength}"
<
/#if> class="form-control"/>
<sys:ckfinder
input=
"${c.simpleJavaField}"
type=
"files"
uploadPath=
"/${moduleName}<#if subModuleName != "
"
>
/${subModuleName}
<
/#if>/${className}" selectMultiple="true"/>
<div
class=
"help-block"
>
请选择${c.comments}
</div>
<
/#if>
</div>
</div>
<
/#if>
<
/#list>
<
#assign y=0 />
<div
class=
"tabs-container"
>
<ul
class=
"nav nav-tabs"
>
<
#list table.childList as child>
<
#assign y=y+1 />
<
#if y==1>
<li
class=
"active"
><a
data-toggle=
"tab"
href=
"#tab-${y}"
aria-expanded=
"true"
>
${child.comments}:
</a>
</li>
<
/#if>
<
#if y!=1>
<li
class=
""
><a
data-toggle=
"tab"
href=
"#tab-${y}"
aria-expanded=
"false"
>
${child.comments}:
</a>
</li>
<
/#if>
<
/#list>
</ul>
<div
class=
"tab-content"
>
<
#assign z=0 />
<
#list table.childList as child>
<
#assign z=z+1 />
<
#if z==1>
<div
id=
"tab-${z}"
class=
"tab-pane active"
>
<
/#if>
<
#if z!=1>
<div
id=
"tab-${z}"
class=
"tab-pane"
>
<
/#if>
<a
class=
"btn btn-warning btn-sm"
onclick=
"addRow('#${child.className?uncap_first}List', ${child.className?uncap_first}RowIdx, ${child.className?uncap_first}Tpl);${child.className?uncap_first}RowIdx = ${child.className?uncap_first}RowIdx + 1;"
title=
"新增"
><i
class=
"fa fa-plus"
></i>
新增
</a>
<table
id=
"contentTable"
class=
"table table-striped table-condensed"
>
<thead>
<tr>
<th
class=
"hide"
></th>
<
#assign childColumnCount = 0 />
<
#list child.columnList as c>
<
#if c.isEdit??
&&
c.isEdit == "1"
&&
(c.isNotBaseField || c.simpleJavaField == 'remarks')
&&
c.name != c.genTable.parentTableFk>
<th>
${c.comments}
<
#if c.isNull != "1">
<font
color=
"red"
>
*
</font>
<
/#if>
</th>
<
#assign childColumnCount = childColumnCount + 1 />
<
/#if>
<
/#list>
<th
width=
"10"
>
</th>
</tr>
</thead>
<tbody
id=
"${child.className?uncap_first}List"
>
</tbody>
</table>
<script
type=
"text/template"
id=
"${child.className?uncap_first}Tpl"
>
//
<!--
<tr id="${child.className?uncap_first}List{{idx}}">
<td class="hide">
<input id="${child.className?uncap_first}List{{idx}}_id" name="${child.className?uncap_first}List[{{idx}}].id" type="hidden" value="{{row.id}}"/>
<input id="${child.className?uncap_first}List{{idx}}_delFlag" name="${child.className?uncap_first}List[{{idx}}].delFlag" type="hidden" value="0"/>
</td>
<#list child.columnList as c>
<#if c.isEdit?? && c.isEdit == "1" && (c.isNotBaseField || c.simpleJavaField == 'remarks') && c.name != c.genTable.parentTableFk>
<#if c.showType == "input">
<td>
<input id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" type="text" value="{{row.${c.javaFieldId}}}"<#if c.dataLength != "0"> maxlength="${c.dataLength}"</#if> class="form-control <#if c.isNull != "1">required</#if><#if c.javaType == "Long" || c.javaType == "Integer"> digits</#if><#if c.javaType == "Double"> number</#if>"/>
</td>
<#elseif c.showType == "textarea">
<td>
<textarea id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" rows="4"<#if c.dataLength != "0"> maxlength="${c.dataLength}"</#if> class="form-control <#if c.isNull != "1">required</#if>">{{row.${c.javaFieldId}}}</textarea>
</td>
<#elseif c.showType == "select">
<td>
<select id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" data-value="{{row.${c.javaFieldId}}}" class="form-control m-b <#if c.isNull != "1">required</#if>">
<option value=""></option>
<c:forEach items="${"$"}{fns:getDictList('${c.dictType}')}" var="dict">
<option value="${"$"}{dict.value}">${"$"}{dict.label}</option>
</c:forEach>
</select>
</td>
<#elseif c.showType == "checkbox">
<td>
<c:forEach items="${"$"}{fns:getDictList('${c.dictType}')}" var="dict" varStatus="dictStatus">
<span><input id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}${"$"}{dictStatus.index}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" type="checkbox" class="i-checks" value="${"$"}{dict.value}" data-value="{{row.${c.javaFieldId}}}"><label for="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}${"$"}{dictStatus.index}">${"$"}{dict.label}</label></span>
</c:forEach>
</td>
<#elseif c.showType == "radiobox">
<td>
<c:forEach items="${"$"}{fns:getDictList('${c.dictType}')}" var="dict" varStatus="dictStatus">
<span><input id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}${"$"}{dictStatus.index}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" type="radio" class="i-checks" value="${"$"}{dict.value}" data-value="{{row.${c.javaFieldId}}}"><label for="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}${"$"}{dictStatus.index}">${"$"}{dict.label}</label></span>
</c:forEach>
</td>
<#elseif c.showType == "dateselect">
<td>
<input id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" type="text" readonly="readonly" maxlength="20" class="laydate-icon form-control layer-date <#if c.isNull != "1">required</#if>"
value="{{row.${c.javaFieldId}}}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
</td>
<#elseif c.showType == "userselect">
<td>
<sys:treeselect id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" value="{{row.${c.javaFieldId}}}" labelName="${child.className?uncap_first}List{{idx}}.${c.javaFieldName}" labelValue="{{row.${c.javaFieldName}}}"
title="用户" url="/sys/office/treeData?type=3" cssClass="form-control <#if c.isNull != "1">required</#if>" allowClear="true" notAllowSelectParent="true"/>
</td>
<#elseif c.showType == "officeselect">
<td>
<sys:treeselect id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" value="{{row.${c.javaFieldId}}}" labelName="${child.className?uncap_first}List{{idx}}.${c.javaFieldName}" labelValue="{{row.${c.javaFieldName}}}"
title="部门" url="/sys/office/treeData?type=2" cssClass="form-control <#if c.isNull != "1">required</#if>" allowClear="true" notAllowSelectParent="true"/>
</td>
<#elseif c.showType == "areaselect">
<td>
<sys:treeselect id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" value="{{row.${c.javaFieldId}}}" labelName="${child.className?uncap_first}List{{idx}}.${c.javaFieldName}" labelValue="{{row.${c.javaFieldName}}}"
title="区域" url="/sys/area/treeData" cssClass="form-control <#if c.isNull != "1">required</#if>" allowClear="true" notAllowSelectParent="true"/>
</td>
<#elseif c.showType == "fileselect">
<td>
<input id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.simpleJavaField}" type="hidden" value="{{row.${c.javaFieldId}}}"<#if c.dataLength != "0"> maxlength="${c.dataLength}"</#if> class="form-control"/>
<sys:ckfinder input="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" type="files" uploadPath="/${moduleName}<#if subModuleName != "">/${subModuleName}</#if>/${className}" selectMultiple="true"/>
</td>
</#if>
</#if>
</#list>
<td class="text-center" width="10">
{{#delBtn}}<span class="close" onclick="delRow(this, '#${child.className?uncap_first}List{{idx}}')" title="删除">×</span>{{/delBtn}}
</td>
</tr>//-->
</script>
<script
type=
"text/template"
id=
"${child.className?uncap_first}Tpl2"
>
//
<!--
<tr id="${child.className?uncap_first}List{{idx}}">
<td class="hide">
<input id="${child.className?uncap_first}List{{idx}}_id" name="${child.className?uncap_first}List[{{idx}}].id" type="hidden" value="{{row.id}}"/>
<input id="${child.className?uncap_first}List{{idx}}_delFlag" name="${child.className?uncap_first}List[{{idx}}].delFlag" type="hidden" value="0"/>
</td>
<td>
<#list child.columnList as c>
<div>
<#if c.isEdit?? && c.isEdit == "1" && (c.isNotBaseField || c.simpleJavaField == 'remarks') && c.name != c.genTable.parentTableFk>
</div>
<#if c.showType == "input">
<div>
${c.comments}<#if c.isNull != "1"><font color="red">*</font></#if><input id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" type="text" value="{{row.${c.javaFieldId}}}"<#if c.dataLength != "0"> maxlength="${c.dataLength}"</#if> class="form-control <#if c.isNull != "1">required</#if><#if c.javaType == "Long" || c.javaType == "Integer"> digits</#if><#if c.javaType == "Double"> number</#if>"/>
</div>
<#elseif c.showType == "textarea">
<div>
${c.comments}<#if c.isNull != "1"><font color="red">*</font></#if><textarea id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" rows="4"<#if c.dataLength != "0"> maxlength="${c.dataLength}"</#if> class="form-control <#if c.isNull != "1">required</#if>">{{row.${c.javaFieldId}}}</textarea>
</div>
<#elseif c.showType == "select">
<div>
${c.comments}<#if c.isNull != "1"><font color="red">*</font></#if><select id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" data-value="{{row.${c.javaFieldId}}}" class="form-control m-b <#if c.isNull != "1">required</#if>">
<option value=""></option>
<c:forEach items="${"$"}{fns:getDictList('${c.dictType}')}" var="dict">
<option value="${"$"}{dict.value}">${"$"}{dict.label}</option>
</c:forEach>
</select>
</div>
<#elseif c.showType == "checkbox">
<div>
${c.comments}<#if c.isNull != "1"><font color="red">*</font></#if><c:forEach items="${"$"}{fns:getDictList('${c.dictType}')}" var="dict" varStatus="dictStatus">
<span><input id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}${"$"}{dictStatus.index}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" type="checkbox" class="i-checks" value="${"$"}{dict.value}" data-value="{{row.${c.javaFieldId}}}"><label for="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}${"$"}{dictStatus.index}">${"$"}{dict.label}</label></span>
</c:forEach>
</div>
<#elseif c.showType == "radiobox">
<div>
${c.comments}<#if c.isNull != "1"><font color="red">*</font></#if><c:forEach items="${"$"}{fns:getDictList('${c.dictType}')}" var="dict" varStatus="dictStatus">
<span><input id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}${"$"}{dictStatus.index}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" type="radio" class="i-checks" value="${"$"}{dict.value}" data-value="{{row.${c.javaFieldId}}}"><label for="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}${"$"}{dictStatus.index}">${"$"}{dict.label}</label></span>
</c:forEach>
</div>
<#elseif c.showType == "dateselect">
<div>
${c.comments}<#if c.isNull != "1"><font color="red">*</font></#if><input id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" type="text" readonly="readonly" maxlength="20" class="laydate-icon form-control layer-date <#if c.isNull != "1">required</#if>"
value="{{row.${c.javaFieldId}}}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
</div>
<#elseif c.showType == "userselect">
<div>
${c.comments}<#if c.isNull != "1"><font color="red">*</font></#if><sys:treeselect id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" value="{{row.${c.javaFieldId}}}" labelName="${child.className?uncap_first}List{{idx}}.${c.javaFieldName}" labelValue="{{row.${c.javaFieldName}}}"
title="用户" url="/sys/office/treeData?type=3" cssClass="form-control <#if c.isNull != "1">required</#if>" allowClear="true" notAllowSelectParent="true"/>
</div>
<#elseif c.showType == "officeselect">
<div>
${c.comments}<#if c.isNull != "1"><font color="red">*</font></#if><sys:treeselect id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" value="{{row.${c.javaFieldId}}}" labelName="${child.className?uncap_first}List{{idx}}.${c.javaFieldName}" labelValue="{{row.${c.javaFieldName}}}"
title="部门" url="/sys/office/treeData?type=2" cssClass="form-control <#if c.isNull != "1">required</#if>" allowClear="true" notAllowSelectParent="true"/>
</div>
<#elseif c.showType == "areaselect">
<div>
${c.comments}<#if c.isNull != "1"><font color="red">*</font></#if><sys:treeselect id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" value="{{row.${c.javaFieldId}}}" labelName="${child.className?uncap_first}List{{idx}}.${c.javaFieldName}" labelValue="{{row.${c.javaFieldName}}}"
title="区域" url="/sys/area/treeData" cssClass="form-control <#if c.isNull != "1">required</#if>" allowClear="true" notAllowSelectParent="true"/>
</div>
<#elseif c.showType == "fileselect">
<div>
${c.comments}<#if c.isNull != "1"><font color="red">*</font></#if><input id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.simpleJavaField}" type="hidden" value="{{row.${c.javaFieldId}}}"<#if c.dataLength != "0"> maxlength="${c.dataLength}"</#if> class="form-control"/>
<sys:ckfinder input="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" type="files" uploadPath="/${moduleName}<#if subModuleName != "">/${subModuleName}</#if>/${className}" selectMultiple="true"/>
</div>
</#if>
</#if>
</#list>
</td>
<td class="text-center" width="10">
{{#delBtn}}<span class="close" onclick="delRow(this, '#${child.className?uncap_first}List{{idx}}')" title="删除">×</span>{{/delBtn}}
</td>
</tr>//-->
</script>
<script
type=
"text/javascript"
>
var tpl="${"$"}{param.Tpl}";
if(tpl==null || tpl=="") tpl="Tpl";
if(tpl=="Tpl2"){
$("#contentTable>thead").remove();
}
var ${child.className?uncap_first}RowIdx = 0, ${child.className?uncap_first}Tpl = $("#${child.className?uncap_first}"+tpl).html().replace(/(\/\/\
<!\-\-)|(\/\/\-\->
)/g,"");
$(document).ready(function() {
var data = ${"$"}{fns:toJson(${className}.${child.className?uncap_first}List)};
for (var i=0; i
<data.length
;
i++){
addRow('#${child.className?uncap_first}List',
${child.className?uncap_first}RowIdx,
${child.className?uncap_first}Tpl,
data[i]);
${child.className?uncap_first}
RowIdx =
${child.className?uncap_first}RowIdx
+
1;
}
});
</script
>
</div>
<
/#list>
</div>
</div>
<div
class=
"form-group"
>
<c:if
test=
"${"
$"}{action
ne
'view'}"
>
<a
id=
"btnSubmit"
class=
"btn btn-primary"
>
保存
</a>
</c:if>
<a
id=
"btnBack"
class=
"btn btn-default"
>
返回
</a>
<!--a class="btn btn-primary" onclick="top.closeSelectTabs()">关闭</a-->
</div>
</div>
</div>
</form:form>
</div>
</div>
</div>
<div
id=
"messageBox"
>
${r"${message}"}
</div>
<
%@ include file="/WEB-INF/views/include/footJs.jsp" %>
<script
src=
"/staticViews/viewBase.js"
></script>
<script
src=
"/staticViews/${lastPackageName}/${moduleName}/${subModuleName}/${className}Form.js"
type=
"text/javascript"
></script>
<link
href=
"/staticViews/${lastPackageName}/${moduleName}/${subModuleName}/${className}Form.css"
rel=
"stylesheet"
/>
</body>
</html>
]]>
</content>
</template>
\ No newline at end of file
JeeSpringCloud/src/main/resources/templates/modules/gen/curd/viewFormManyTwo.xml
deleted
100644 → 0
View file @
c4b2023a
<?xml version="1.0" encoding="utf-8"?>
<template>
<name>
viewForm
</name>
<filePath>
src/main/webapp/WEB-INF/views/${lastPackageName}/${moduleName}/${subModuleName}
</filePath>
<fileName>
${className}FormTwo.jsp
</fileName>
<content>
<![CDATA[
<%@ page contentType="text/html;charset=UTF-8" %>
<
%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>
${functionNameSimple}管理
</title>
<
%@ include file="/WEB-INF/views/include/headMeta.jsp" %>
<
%@ include file="/WEB-INF/views/include/headCss.jsp" %>
<
%@ include file="/WEB-INF/views/include/headJs.jsp" %>
</head>
<body>
<!-- 内容-->
<div
class=
"wrapper"
>
<!-- 内容盒子-->
<div
class=
"box box-main"
>
<!-- 内容盒子头部 -->
<div
class=
"box-header"
>
<div
class=
"box-title"
><i
class=
"fa fa-edit"
></i>
${functionNameSimple}管理
</div>
</div>
<!-- 内容盒子身体 -->
<div
class=
"box-body"
>
<form:form
id=
"inputForm"
modelAttribute=
"${className}"
action=
"${r"
${ctx}"}/${urlPrefix}/save"
method=
"post"
class=
"form-horizontal content-background"
>
<div
class=
"content"
>
<form:hidden
path=
"id"
/>
<sys:message
content=
"${r"
${message}"}"
/>
<div
class=
"form-unit"
>
基本信息
</div>
<div
class=
"row"
>
<
#list table.columnList as c>
<
#if c.isEdit??
&&
c.isEdit == "1"
&&
(c.isNotBaseField || c.simpleJavaField == 'remarks')>
<div
class=
"form-group col-xs-6"
>
<label
class=
"control-label col-sm-4 pull-left"
>
${c.comments}
<
#if c.isNull != "1">
<font
color=
"red"
>
*
</font>
<
/#if>
</label>
<div
class=
"col-sm-8"
>
<
#if c.showType == "input">
<
#if c.javaType??
&&
c.javaType != "byte[]">
<form:input
path=
"${c.javaFieldId}"
htmlEscape=
"false"
<#if
c.dataLength
!=
"0"
>
maxlength="${c.dataLength}"
<
/#if> class="form-control
<
#if c.isNull != "1">required
<
/#if>
<
#if c.javaType == "Long" || c.javaType == "Integer"> digits
<
/#if>
<
#if c.javaType == "Double"> number
<
/#if>"/>
<
#else>
<form:input
path=
"${c.javaFieldId}Text"
htmlEscape=
"false"
<#if
c.dataLength
!=
"0"
>
maxlength="${c.dataLength}"
<
/#if> class="form-control
<
#if c.isNull != "1">required
<
/#if>
<
#if c.javaType == "Long" || c.javaType == "Integer"> digits
<
/#if>
<
#if c.javaType == "Double"> number
<
/#if>"/>
<
/#if>
<div
class=
"help-block"
>
请填写${c.comments}
</div>
<
#elseif c.showType == "textarea">
<
#if c.javaType??
&&
c.javaType != "byte[]">
<form:textarea
path=
"${c.javaFieldId}"
htmlEscape=
"false"
rows=
"4"
<#if
c.dataLength
!=
"0"
>
maxlength="${c.dataLength}"
<
/#if> class="form-control
<
#if c.isNull != "1">required
<
/#if>"/>
<
#else>
<form:textarea
path=
"${c.javaFieldId}Text"
htmlEscape=
"false"
rows=
"4"
<#if
c.dataLength
!=
"0"
>
maxlength="${c.dataLength}"
<
/#if> class="form-control
<
#if c.isNull != "1">required
<
/#if>"/>
<
/#if>
<
#elseif c.showType == "text">
<
#if c.javaType??
&&
c.javaType != "byte[]">
<form:textarea
path=
"${c.javaFieldId}"
htmlEscape=
"false"
rows=
"4"
<#if
c.dataLength
!=
"0"
>
maxlength="${c.dataLength}"
<
/#if> class="form-control
<
#if c.isNull != "1">required
<
/#if>"/>
<sys:ckeditor
replace=
"${c.javaFieldId}"
height=
"400"
uploadPath=
"/${moduleName}<#if subModuleName != "
"
>
/${subModuleName}
<
/#if>/${className}" />
<
#else>
<form:textarea
path=
"${c.javaFieldId}Text"
htmlEscape=
"false"
rows=
"4"
<#if
c.dataLength
!=
"0"
>
maxlength="${c.dataLength}"
<
/#if> class="form-control
<
#if c.isNull != "1">required
<
/#if>"/>
<sys:ckeditor
replace=
"${c.javaFieldId}Text"
height=
"400"
uploadPath=
"/${moduleName}<#if subModuleName != "
"
>
/${subModuleName}
<
/#if>/${className}" />
<
/#if>
<
#elseif c.showType == "select">
<form:select
path=
"${c.javaFieldId}"
class=
"form-control <#if c.isNull != "
1"
>
required
<
/#if>">
<form:option
value=
""
label=
""
/>
<form:options
items=
"${"
$"}{fns:getDictList('${c.dictType}')}"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/>
</form:select>
<div
class=
"help-block"
>
请选择${c.comments}
</div>
<
#elseif c.showType == "checkbox">
<form:checkboxes
path=
"${c.javaFieldId}"
items=
"${"
$"}{fns:getDictList('${c.dictType}')}"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
class=
"i-checks <#if c.isNull != "
1"
>
required
<
/#if>"/>
<script
type=
"text/javascript"
>
${"$"}(document).ready(function() {
${"$"}("[name=${c.javaFieldId}]").each(function(){
var ${c.javaFieldId}="${"$"}{${className}.${c.javaFieldId}}";
var ${c.javaFieldId}Item = ${c.javaFieldId}.split(",");
for(var i=0;i
<
=${c.javaFieldId}Item.length;i++){
if(${"$"}(this).val()==${c.javaFieldId}Item[i]) {
${"$"}(this).attr("checked", "true");
${"$"}(this).parent().addClass("checked");
}
}
});
});
</script>
<div
class=
"help-block"
>
请选择${c.comments}
</div>
<
#elseif c.showType == "radiobox">
<form:radiobuttons
path=
"${c.javaFieldId}"
items=
"${"
$"}{fns:getDictList('${c.dictType}')}"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
class=
"i-checks <#if c.isNull != "
1"
>
required
<
/#if>"/>
<div
class=
"help-block"
>
请选择${c.comments}
</div>
<
#elseif c.showType == "dateselect">
<input
id=
"${c.javaFieldId}"
name=
"${c.javaFieldId}"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date <#if c.isNull != "
1"
>
required
<
/#if>"
value="
<fmt:formatDate
value=
"${"
$"}{${className}.${c.javaFieldId}}"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"/>
<div
class=
"help-block"
>
请选择${c.comments}
</div>
<
#elseif c.showType == "userselect">
<sys:treeselect
id=
"${c.simpleJavaField}"
name=
"${c.javaFieldId}"
value=
"${"
$"}{${className}.${c.javaFieldId}}"
labelName=
"${c.javaFieldName}"
labelValue=
"${"
$"}{${className}.${c.javaFieldName}}"
title=
"用户"
url=
"/sys/office/treeData?type=3"
cssClass=
"form-control <#if c.isNull != "
1"
>
required
<
/#if>" allowClear="true" notAllowSelectParent="true"/>
<div
class=
"help-block"
>
请选择${c.comments}
</div>
<
#elseif c.showType == "officeselect">
<sys:treeselect
id=
"${c.simpleJavaField}"
name=
"${c.javaFieldId}"
value=
"${"
$"}{${className}.${c.javaFieldId}}"
labelName=
"${c.javaFieldName}"
labelValue=
"${"
$"}{${className}.${c.javaFieldName}}"
title=
"部门"
url=
"/sys/office/treeData?type=2"
cssClass=
"form-control <#if c.isNull != "
1"
>
required
<
/#if>" allowClear="true" notAllowSelectParent="true"/>
<div
class=
"help-block"
>
请选择${c.comments}
</div>
<
#elseif c.showType == "areaselect">
<sys:treeselect
id=
"${c.simpleJavaField}"
name=
"${c.javaFieldId}"
value=
"${"
$"}{${className}.${c.javaFieldId}}"
labelName=
"${c.javaFieldName}"
labelValue=
"${"
$"}{${className}.${c.javaFieldName}}"
title=
"区域"
url=
"/sys/area/treeData"
cssClass=
"form-control <#if c.isNull != "
1"
>
required
<
/#if>" allowClear="true" notAllowSelectParent="true"/>
<div
class=
"help-block"
>
请选择${c.comments}
</div>
<
#elseif c.showType == "fileselect">
<form:hidden
id=
"${c.simpleJavaField}"
path=
"${c.javaFieldId}"
htmlEscape=
"false"
<#if
c.dataLength
!=
"0"
>
maxlength="${c.dataLength}"
<
/#if> class="form-control"/>
<sys:ckfinder
input=
"${c.simpleJavaField}"
type=
"files"
uploadPath=
"/${moduleName}<#if subModuleName != "
"
>
/${subModuleName}
<
/#if>/${className}" selectMultiple="true"/>
<div
class=
"help-block"
>
请选择${c.comments}
</div>
<
/#if>
</div>
</div>
<
/#if>
<
/#list>
</div>
<
#assign y=0 />
<div
class=
"tabs-container"
>
<ul
class=
"nav nav-tabs"
>
<
#list table.childList as child>
<
#assign y=y+1 />
<
#if y==1>
<li
class=
"active"
><a
data-toggle=
"tab"
href=
"#tab-${y}"
aria-expanded=
"true"
>
${child.comments}:
</a>
</li>
<
/#if>
<
#if y!=1>
<li
class=
""
><a
data-toggle=
"tab"
href=
"#tab-${y}"
aria-expanded=
"false"
>
${child.comments}:
</a>
</li>
<
/#if>
<
/#list>
</ul>
<div
class=
"tab-content"
>
<
#assign z=0 />
<
#list table.childList as child>
<
#assign z=z+1 />
<
#if z==1>
<div
id=
"tab-${z}"
class=
"tab-pane active"
>
<
/#if>
<
#if z!=1>
<div
id=
"tab-${z}"
class=
"tab-pane"
>
<
/#if>
<a
class=
"btn btn-warning btn-sm"
onclick=
"addRow('#${child.className?uncap_first}List', ${child.className?uncap_first}RowIdx, ${child.className?uncap_first}Tpl);${child.className?uncap_first}RowIdx = ${child.className?uncap_first}RowIdx + 1;"
title=
"新增"
><i
class=
"fa fa-plus"
></i>
新增
</a>
<table
id=
"contentTable"
class=
"table table-striped table-condensed"
>
<thead>
<tr>
<th
class=
"hide"
></th>
<
#assign childColumnCount = 0 />
<
#list child.columnList as c>
<
#if c.isEdit??
&&
c.isEdit == "1"
&&
(c.isNotBaseField || c.simpleJavaField == 'remarks')
&&
c.name != c.genTable.parentTableFk>
<th>
${c.comments}
<
#if c.isNull != "1">
<font
color=
"red"
>
*
</font>
<
/#if>
</th>
<
#assign childColumnCount = childColumnCount + 1 />
<
/#if>
<
/#list>
<th
width=
"10"
>
</th>
</tr>
</thead>
<tbody
id=
"${child.className?uncap_first}List"
>
</tbody>
</table>
<script
type=
"text/template"
id=
"${child.className?uncap_first}Tpl"
>
//
<!--
<tr id="${child.className?uncap_first}List{{idx}}">
<td class="hide">
<input id="${child.className?uncap_first}List{{idx}}_id" name="${child.className?uncap_first}List[{{idx}}].id" type="hidden" value="{{row.id}}"/>
<input id="${child.className?uncap_first}List{{idx}}_delFlag" name="${child.className?uncap_first}List[{{idx}}].delFlag" type="hidden" value="0"/>
</td>
<#list child.columnList as c>
<#if c.isEdit?? && c.isEdit == "1" && (c.isNotBaseField || c.simpleJavaField == 'remarks') && c.name != c.genTable.parentTableFk>
<#if c.showType == "input">
<td>
<input id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" type="text" value="{{row.${c.javaFieldId}}}"<#if c.dataLength != "0"> maxlength="${c.dataLength}"</#if> class="form-control <#if c.isNull != "1">required</#if><#if c.javaType == "Long" || c.javaType == "Integer"> digits</#if><#if c.javaType == "Double"> number</#if>"/>
</td>
<#elseif c.showType == "textarea">
<td>
<textarea id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" rows="4"<#if c.dataLength != "0"> maxlength="${c.dataLength}"</#if> class="form-control <#if c.isNull != "1">required</#if>">{{row.${c.javaFieldId}}}</textarea>
</td>
<#elseif c.showType == "select">
<td>
<select id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" data-value="{{row.${c.javaFieldId}}}" class="form-control m-b <#if c.isNull != "1">required</#if>">
<option value=""></option>
<c:forEach items="${"$"}{fns:getDictList('${c.dictType}')}" var="dict">
<option value="${"$"}{dict.value}">${"$"}{dict.label}</option>
</c:forEach>
</select>
</td>
<#elseif c.showType == "checkbox">
<td>
<c:forEach items="${"$"}{fns:getDictList('${c.dictType}')}" var="dict" varStatus="dictStatus">
<span><input id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}${"$"}{dictStatus.index}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" type="checkbox" class="i-checks" value="${"$"}{dict.value}" data-value="{{row.${c.javaFieldId}}}"><label for="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}${"$"}{dictStatus.index}">${"$"}{dict.label}</label></span>
</c:forEach>
</td>
<#elseif c.showType == "radiobox">
<td>
<c:forEach items="${"$"}{fns:getDictList('${c.dictType}')}" var="dict" varStatus="dictStatus">
<span><input id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}${"$"}{dictStatus.index}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" type="radio" class="i-checks" value="${"$"}{dict.value}" data-value="{{row.${c.javaFieldId}}}"><label for="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}${"$"}{dictStatus.index}">${"$"}{dict.label}</label></span>
</c:forEach>
</td>
<#elseif c.showType == "dateselect">
<td>
<input id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" type="text" readonly="readonly" maxlength="20" class="laydate-icon form-control layer-date <#if c.isNull != "1">required</#if>"
value="{{row.${c.javaFieldId}}}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
</td>
<#elseif c.showType == "userselect">
<td>
<sys:treeselect id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" value="{{row.${c.javaFieldId}}}" labelName="${child.className?uncap_first}List{{idx}}.${c.javaFieldName}" labelValue="{{row.${c.javaFieldName}}}"
title="用户" url="/sys/office/treeData?type=3" cssClass="form-control <#if c.isNull != "1">required</#if>" allowClear="true" notAllowSelectParent="true"/>
</td>
<#elseif c.showType == "officeselect">
<td>
<sys:treeselect id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" value="{{row.${c.javaFieldId}}}" labelName="${child.className?uncap_first}List{{idx}}.${c.javaFieldName}" labelValue="{{row.${c.javaFieldName}}}"
title="部门" url="/sys/office/treeData?type=2" cssClass="form-control <#if c.isNull != "1">required</#if>" allowClear="true" notAllowSelectParent="true"/>
</td>
<#elseif c.showType == "areaselect">
<td>
<sys:treeselect id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" value="{{row.${c.javaFieldId}}}" labelName="${child.className?uncap_first}List{{idx}}.${c.javaFieldName}" labelValue="{{row.${c.javaFieldName}}}"
title="区域" url="/sys/area/treeData" cssClass="form-control <#if c.isNull != "1">required</#if>" allowClear="true" notAllowSelectParent="true"/>
</td>
<#elseif c.showType == "fileselect">
<td>
<input id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.simpleJavaField}" type="hidden" value="{{row.${c.javaFieldId}}}"<#if c.dataLength != "0"> maxlength="${c.dataLength}"</#if> class="form-control"/>
<sys:ckfinder input="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" type="files" uploadPath="/${moduleName}<#if subModuleName != "">/${subModuleName}</#if>/${className}" selectMultiple="true"/>
</td>
</#if>
</#if>
</#list>
<td class="text-center" width="10">
{{#delBtn}}<span class="close" onclick="delRow(this, '#${child.className?uncap_first}List{{idx}}')" title="删除">×</span>{{/delBtn}}
</td>
</tr>//-->
</script>
<script
type=
"text/template"
id=
"${child.className?uncap_first}Tpl2"
>
//
<!--
<tr id="${child.className?uncap_first}List{{idx}}">
<td class="hide">
<input id="${child.className?uncap_first}List{{idx}}_id" name="${child.className?uncap_first}List[{{idx}}].id" type="hidden" value="{{row.id}}"/>
<input id="${child.className?uncap_first}List{{idx}}_delFlag" name="${child.className?uncap_first}List[{{idx}}].delFlag" type="hidden" value="0"/>
</td>
<td>
<#list child.columnList as c>
<div>
<#if c.isEdit?? && c.isEdit == "1" && (c.isNotBaseField || c.simpleJavaField == 'remarks') && c.name != c.genTable.parentTableFk>
</div>
<#if c.showType == "input">
<div>
${c.comments}<#if c.isNull != "1"><font color="red">*</font></#if><input id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" type="text" value="{{row.${c.javaFieldId}}}"<#if c.dataLength != "0"> maxlength="${c.dataLength}"</#if> class="form-control <#if c.isNull != "1">required</#if><#if c.javaType == "Long" || c.javaType == "Integer"> digits</#if><#if c.javaType == "Double"> number</#if>"/>
</div>
<#elseif c.showType == "textarea">
<div>
${c.comments}<#if c.isNull != "1"><font color="red">*</font></#if><textarea id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" rows="4"<#if c.dataLength != "0"> maxlength="${c.dataLength}"</#if> class="form-control <#if c.isNull != "1">required</#if>">{{row.${c.javaFieldId}}}</textarea>
</div>
<#elseif c.showType == "select">
<div>
${c.comments}<#if c.isNull != "1"><font color="red">*</font></#if><select id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" data-value="{{row.${c.javaFieldId}}}" class="form-control m-b <#if c.isNull != "1">required</#if>">
<option value=""></option>
<c:forEach items="${"$"}{fns:getDictList('${c.dictType}')}" var="dict">
<option value="${"$"}{dict.value}">${"$"}{dict.label}</option>
</c:forEach>
</select>
</div>
<#elseif c.showType == "checkbox">
<div>
${c.comments}<#if c.isNull != "1"><font color="red">*</font></#if><c:forEach items="${"$"}{fns:getDictList('${c.dictType}')}" var="dict" varStatus="dictStatus">
<span><input id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}${"$"}{dictStatus.index}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" type="checkbox" class="i-checks" value="${"$"}{dict.value}" data-value="{{row.${c.javaFieldId}}}"><label for="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}${"$"}{dictStatus.index}">${"$"}{dict.label}</label></span>
</c:forEach>
</div>
<#elseif c.showType == "radiobox">
<div>
${c.comments}<#if c.isNull != "1"><font color="red">*</font></#if><c:forEach items="${"$"}{fns:getDictList('${c.dictType}')}" var="dict" varStatus="dictStatus">
<span><input id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}${"$"}{dictStatus.index}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" type="radio" class="i-checks" value="${"$"}{dict.value}" data-value="{{row.${c.javaFieldId}}}"><label for="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}${"$"}{dictStatus.index}">${"$"}{dict.label}</label></span>
</c:forEach>
</div>
<#elseif c.showType == "dateselect">
<div>
${c.comments}<#if c.isNull != "1"><font color="red">*</font></#if><input id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" type="text" readonly="readonly" maxlength="20" class="laydate-icon form-control layer-date <#if c.isNull != "1">required</#if>"
value="{{row.${c.javaFieldId}}}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
</div>
<#elseif c.showType == "userselect">
<div>
${c.comments}<#if c.isNull != "1"><font color="red">*</font></#if><sys:treeselect id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" value="{{row.${c.javaFieldId}}}" labelName="${child.className?uncap_first}List{{idx}}.${c.javaFieldName}" labelValue="{{row.${c.javaFieldName}}}"
title="用户" url="/sys/office/treeData?type=3" cssClass="form-control <#if c.isNull != "1">required</#if>" allowClear="true" notAllowSelectParent="true"/>
</div>
<#elseif c.showType == "officeselect">
<div>
${c.comments}<#if c.isNull != "1"><font color="red">*</font></#if><sys:treeselect id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" value="{{row.${c.javaFieldId}}}" labelName="${child.className?uncap_first}List{{idx}}.${c.javaFieldName}" labelValue="{{row.${c.javaFieldName}}}"
title="部门" url="/sys/office/treeData?type=2" cssClass="form-control <#if c.isNull != "1">required</#if>" allowClear="true" notAllowSelectParent="true"/>
</div>
<#elseif c.showType == "areaselect">
<div>
${c.comments}<#if c.isNull != "1"><font color="red">*</font></#if><sys:treeselect id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.javaFieldId}" value="{{row.${c.javaFieldId}}}" labelName="${child.className?uncap_first}List{{idx}}.${c.javaFieldName}" labelValue="{{row.${c.javaFieldName}}}"
title="区域" url="/sys/area/treeData" cssClass="form-control <#if c.isNull != "1">required</#if>" allowClear="true" notAllowSelectParent="true"/>
</div>
<#elseif c.showType == "fileselect">
<div>
${c.comments}<#if c.isNull != "1"><font color="red">*</font></#if><input id="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" name="${child.className?uncap_first}List[{{idx}}].${c.simpleJavaField}" type="hidden" value="{{row.${c.javaFieldId}}}"<#if c.dataLength != "0"> maxlength="${c.dataLength}"</#if> class="form-control"/>
<sys:ckfinder input="${child.className?uncap_first}List{{idx}}_${c.simpleJavaField}" type="files" uploadPath="/${moduleName}<#if subModuleName != "">/${subModuleName}</#if>/${className}" selectMultiple="true"/>
</div>
</#if>
</#if>
</#list>
</td>
<td class="text-center" width="10">
{{#delBtn}}<span class="close" onclick="delRow(this, '#${child.className?uncap_first}List{{idx}}')" title="删除">×</span>{{/delBtn}}
</td>
</tr>//-->
</script>
<script
type=
"text/javascript"
>
var tpl="${"$"}{param.Tpl}";
if(tpl==null || tpl=="") tpl="Tpl";
if(tpl=="Tpl2"){
$("#contentTable>thead").remove();
}
var ${child.className?uncap_first}RowIdx = 0, ${child.className?uncap_first}Tpl = $("#${child.className?uncap_first}"+tpl).html().replace(/(\/\/\
<!\-\-)|(\/\/\-\->
)/g,"");
$(document).ready(function() {
var data = ${"$"}{fns:toJson(${className}.${child.className?uncap_first}List)};
for (var i=0; i
<data.length
;
i++){
addRow('#${child.className?uncap_first}List',
${child.className?uncap_first}RowIdx,
${child.className?uncap_first}Tpl,
data[i]);
${child.className?uncap_first}
RowIdx =
${child.className?uncap_first}RowIdx
+
1;
}
});
</script
>
</div>
<
/#list>
</div>
</div>
<div
class=
"form-group"
>
<c:if
test=
"${"
$"}{action
ne
'view'}"
>
<a
id=
"btnSubmit"
class=
"btn btn-primary"
>
保存
</a>
</c:if>
<a
id=
"btnBack"
class=
"btn btn-default"
>
返回
</a>
<!--a class="btn btn-primary" onclick="top.closeSelectTabs()">关闭</a-->
</div>
</div>
</div>
</form:form>
</div>
</div>
</div>
<div
id=
"messageBox"
>
${r"${message}"}
</div>
<
%@ include file="/WEB-INF/views/include/footJs.jsp" %>
<script
src=
"/staticViews/viewBase.js"
></script>
<script
src=
"/staticViews/${lastPackageName}/${moduleName}/${subModuleName}/${className}Form.js"
type=
"text/javascript"
></script>
<link
href=
"/staticViews/${lastPackageName}/${moduleName}/${subModuleName}/${className}Form.css"
rel=
"stylesheet"
/>
</body>
</html>
]]>
</content>
</template>
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment