list.gsp
上传用户:steveyhw
上传日期:2019-05-13
资源大小:307k
文件大小:10k
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="layout" content="main" />
- <title><g:message code="quotation.list" default="Quotation List" /></title>
- </head>
- <script type="text/javascript" src="${createLinkTo(dir:'js/dojo',file:'dojo.js')}">
- </script>
- <script type="text/javascript">
- dojo.require("dojo.widget.validate");
- dojo.require("dojo.widget.ComboBox");
- dojo.require("dojo.widget.Checkbox");
- dojo.require("dojo.widget.Editor");
- dojo.require("dojo.widget.DropdownDatePicker");
- dojo.require("dojo.widget.Button");
- </script>
- <body>
- <div class="nav">
- <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}"><g:message code="home" default="Home" /></a></span>
- <span class="menuButton"><g:link class="create" action="create" params="${[_quoName:params._quoName,_quoFactory:params._quoFactory,_quoType_id:params._quoType_id,_quoLastchangefrom:params._quoLastchangefrom,_quoLastchangeto:params._quoLastchangeto,_quoDel:params._quoDel,max:params.max,sort:params.sort,offset:params.offset,order:params.order]}"><g:message code="quotation.new" default="New Quotation" /></g:link></span>
- </div>
- <div class="body">
- <h1><g:message code="quotation.list" default="Quotation List" /></h1>
- <g:if test="${flash.message}">
- <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}" /></div>
- </g:if>
- <g:form name="quotation" controller="quotation" action="list" method="post" enctype="multipart/form-data">
- <table border="0">
- <div >
- <tr >
- <td valign='middle' class='name'>
- <label for='_quoName' ><g:message code="quotation.quoName" default="Quo Name" />:</label>
- </td>
- <td valign='middle' class='value ${hasErrors(bean:quotation,field:'quoName','errors')}'>
- <input type="text" id='_quoName' name='_quoName' value="${params._quoName}" size="16" maxlength="12"/>
- </td>
- <td valign='middle' class='name'>
- <label for='_quoFactory'><g:message code="quotation.quoFactory" default="Quo Factory" />:</label>
- </td>
- <td valign='middle' class='value'>
- <input type="text" id='_quoFactory' name='_quoFactory' value="${params._quoFactory}" size="16" maxlength="12"/>
- </td>
- <td valign='middle' class='name'>
- <label for='_quoType_id'><g:message code="quotation.quoType" default="Quo Type" />:</label>
- </td>
- <td valign='middle' class='value ${hasErrors(bean:quotation,field:'quoType','errors')}'>
- <g:select optionKey="id" noSelection="['':'-全部-']" from="${Code.findAllByCkind(Ckind.findByCkiFlag('ProductType'))}" name='_quoType_id' value="${params._quoType_id}" ></g:select>
- </td>
- </tr>
- <tr>
- <td valign='middle' class='name'>
- <label for='_quoLastchangefrom'><g:message code="quotation.quoLastchange" default="quo Lastchange" />:</label>
- </td>
- <td valign='middle' class='value ${hasErrors(bean:quotation,field:'Lastchange','errors')}'>
- <input readonly="true" type="text" dojoType="DropdownDatePicker" id="_quoLastchangefrom" name="_quoLastchangefrom" value="${params._quoLastchangefrom}"/>
- <input readonly="true" type="text" dojoType="DropdownDatePicker" id="_quoLastchangeto" name="_quoLastchangeto" value="${params._quoLastchangeto}"/>
- </td>
- <td valign='middle' class='name'>
- <g:checkBox name="_quoDel" value="${params._quoDel=='on'}" />
- </td>
- <td valign='middle' class='name'>
- <label for='_quoDel'><g:message code="search.all" default="Search all" /></label>
- </td>
- <td valign='middle' class='value' >
- <input class="save" type="submit" value="${message(code:'search', 'default':'Search')}"></input>
- </td>
- <td valign='middle' class='value'>
- </td>
- </tr>
- </div>
- </table>
- </g:form>
-
- <div class="list">
- <br>
- <table>
- <thead>
- <tr>
-
- <g:sortableColumn property="id" title="Id" titleKey="quotation.id" params="${[_quoName:params._quoName,_quoFactory:params._quoFactory,_quoType_id:params._quoType_id,_quoLastchangefrom:params._quoLastchangefrom,_quoLastchangeto:params._quoLastchangeto,_quoDel:params._quoDel,max:params.max,offset:params.offset]}"/>
-
- <g:sortableColumn property="quoId" title="Quo Id" titleKey="quotation.quoId" params="${[_quoName:params._quoName,_quoFactory:params._quoFactory,_quoType_id:params._quoType_id,_quoLastchangefrom:params._quoLastchangefrom,_quoLastchangeto:params._quoLastchangeto,_quoDel:params._quoDel,max:params.max,offset:params.offset]}"/>
-
- <g:sortableColumn property="quoName" title="Quo Name" titleKey="quotation.quoName" params="${[_quoName:params._quoName,_quoFactory:params._quoFactory,_quoType_id:params._quoType_id,_quoLastchangefrom:params._quoLastchangefrom,_quoLastchangeto:params._quoLastchangeto,_quoDel:params._quoDel,max:params.max,offset:params.offset]}"/>
-
- <g:sortableColumn property="quoFactory" title="quoFactory" titleKey="quotation.quoFactory" params="${[_quoName:params._quoName,_quoFactory:params._quoFactory,_quoType_id:params._quoType_id,_quoLastchangefrom:params._quoLastchangefrom,_quoLastchangeto:params._quoLastchangeto,_quoDel:params._quoDel,max:params.max,offset:params.offset]}"/>
-
- <g:sortableColumn property="quoNumber" title="Quo Number" titleKey="quotation.quoNumber" params="${[_quoName:params._quoName,_quoFactory:params._quoFactory,_quoType_id:params._quoType_id,_quoLastchangefrom:params._quoLastchangefrom,_quoLastchangeto:params._quoLastchangeto,_quoDel:params._quoDel,max:params.max,offset:params.offset]}"/>
-
- <g:sortableColumn property="quoEffectivetime" title="Quo Effectivetime" titleKey="quotation.quoEffectivetime" params="${[_quoName:params._quoName,_quoFactory:params._quoFactory,_quoType_id:params._quoType_id,_quoLastchangefrom:params._quoLastchangefrom,_quoLastchangeto:params._quoLastchangeto,_quoDel:params._quoDel,max:params.max,offset:params.offset]}"/>
- <g:sortableColumn property="quoDel" title="Quo Del" titleKey="quotation.quoDel" params="${[_quoName:params._quoName,_quoFactory:params._quoFactory,_quoType_id:params._quoType_id,_quoLastchangefrom:params._quoLastchangefrom,_quoLastchangeto:params._quoLastchangeto,_quoDel:params._quoDel,max:params.max,offset:params.offset]}"/>
-
- </tr>
- </thead>
- <tbody>
- <g:each in="${quotationList}" status="i" var="quotation">
- <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
-
- <td><g:link action="show" id="${quotation.id}" params="${[_quoName:params._quoName,_quoFactory:params._quoFactory,_quoType_id:params._quoType_id,_quoLastchangefrom:params._quoLastchangefrom,_quoLastchangeto:params._quoLastchangeto,_quoDel:params._quoDel,max:params.max,sort:params.sort,offset:params.offset,order:params.order]}">${quotation.id?.encodeAsHTML()}</g:link></td>
-
- <td>${quotation.quoId?.encodeAsHTML()}</td>
-
- <td>${quotation.quoName?.encodeAsHTML()}</td>
-
- <td>${quotation.quoFactory?.encodeAsHTML()}</td>
-
- <td>${quotation.quoNumber?.encodeAsHTML()}</td>
-
- <td>${quotation.quoEffectivetime?.encodeAsHTML()}</td>
- <td><g:delState del="${quotation?.quoDel}"/></td>
-
- </tr>
- </g:each>
- <% index = quotationList.size() %>
- <g:while test="${index < 10}">
- <% index++ %>
- <tr class="${(index % 2) == 1 ? 'odd' : 'even'}">
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- </tr>
- </g:while>
- </tbody>
- </table>
- </div>
- <div class="paginateButtons">
- <g:paginate total="${Quotation.count()}" params="${[_quoName:params._quoName,_quoFactory:params._quoFactory,_quoType_id:params._quoType_id,_quoLastchangefrom:params._quoLastchangefrom,_quoLastchangeto:params._quoLastchangeto,_quoDel:params._quoDel]}"/>
- </div>
- </div>
- </body>
- </html>