<% /* 查询表单 begin // 此行是为了去除空行 */ %> <${'#'}form:form id="searchForm" model="\${${className}}" action="\${ctx}/${urlPrefix}/listData" method="post" class="form-inline hide" data-page-no="\${parameter.pageNo}" data-page-size="\${parameter.pageSize}" data-order-by="\${parameter.orderBy}"> <% for(c in table.columnList){ %> <% if(c.isQuery == "1" && !c.isTreeEntityColumn){ %>
<% if(c.showType == 'input' || c.showType == 'textarea'){ %>
<% if (c.queryType == 'BETWEEN'){ %> <${'#'}form:input path="${c.attrName}_gte"${c.dataLength != "0" ? ' maxlength="'+c.dataLength+'"' : ''} class="form-control width-60"/>  -  <${'#'}form:input path="${c.attrName}_lte"${c.dataLength != "0" ? ' maxlength="'+c.dataLength+'"' : ''} class="form-control width-60"/> <% } else { %> <${'#'}form:input path="${c.attrName}"${c.dataLength != "0" ? ' maxlength="'+c.dataLength+'"' : ''} class="form-control width-120"/> <% } %>
<% }else if(c.showType == 'select' || c.showType == 'select_multiple'){ var isMultiple = (c.showType == 'select_multiple'); %>
<${'#'}form:select path="${c.attrName}" dictType="${c.optionMap['dictType']}"${isMultiple?' multiple="true"':''} blankOption="true" class="form-control${c.attrName=='status'?' isQuick':''}"/>
<% }else if(c.showType == 'radio'){ %>
<${'#'}form:radio path="${c.attrName}" dictType="${c.optionMap['dictType']}" class="form-control"/>
<% }else if(c.showType == 'checkbox'){ %>
<${'#'}form:checkbox path="${c.attrName}" dictType="${c.optionMap['dictType']}" class="form-control"/>
<% }else if(c.showType == 'date' || c.showType == 'datetime'){ var isTime = (c.showType == 'datetime'); %>
<% if (c.queryType == 'BETWEEN'){ %> <${'#'}form:input path="${c.attrName}_gte" readonly="true" maxlength="20" class="form-control laydate width-date${isTime?'time':''}" dataFormat="date${isTime?'time':''}" data-type="date${isTime?'time':''}" data-format="yyyy-MM-dd${isTime?' HH:mm':''}" data-done="${c.attrName}_lte.click()"/>  -  <${'#'}form:input path="${c.attrName}_lte" readonly="true" maxlength="20" class="form-control laydate width-date${isTime?'time':''}" dataFormat="date${isTime?'time':''}" data-type="date${isTime?'time':''}" data-format="yyyy-MM-dd${isTime?' HH:mm':''}"/> <% } else { %> <${'#'}form:input path="${c.attrName}" readonly="true" maxlength="20" class="form-control laydate width-date${isTime?'time':''}" dataFormat="date${isTime?'time':''}" data-type="date${isTime?'time':''}" data-format="yyyy-MM-dd${isTime?' HH:mm':''}"/> <% } %>
<% }else if(c.showType == 'userselect'){ %>
<${'#'}form:treeselect id="${c.simpleAttrName}" title="\${text('用户选择')}" path="${c.attrName}" labelPath="${c.attrName2}" url="\${ctx}/sys/office/treeData?isLoadUser=true" allowClear="true"/>
<% }else if(c.showType == 'officeselect'){ %>
<${'#'}form:treeselect id="${c.simpleAttrName}" title="\${text('机构选择')}" path="${c.attrName}" labelPath="${c.attrName2}" url="\${ctx}/sys/office/treeData" allowClear="true"/>
<% }else if(c.showType == 'areaselect'){ %>
<${'#'}form:treeselect id="${c.simpleAttrName}" title="\${text('区域选择')}" path="${c.attrName}" labelPath="${c.attrName2}" url="\${ctx}/sys/area/treeData" allowClear="true"/>
<% } %>
<% } %> <% } %>
<% /* 查询表单 end // 此行是为了去除空行 */ %>