list.gsp
上传用户:steveyhw
上传日期:2019-05-13
资源大小:307k
文件大小:10k
源码类别:

PlugIns编程

开发平台:

Java

  1. <html>
  2.     <head>
  3.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  4.         <meta name="layout" content="main" />
  5.         <title><g:message code="quotation.list" default="Quotation List" /></title>
  6.     </head>
  7. <script type="text/javascript" src="${createLinkTo(dir:'js/dojo',file:'dojo.js')}">
  8. </script>
  9. <script type="text/javascript">
  10. dojo.require("dojo.widget.validate");
  11. dojo.require("dojo.widget.ComboBox");
  12. dojo.require("dojo.widget.Checkbox");
  13. dojo.require("dojo.widget.Editor");
  14. dojo.require("dojo.widget.DropdownDatePicker");
  15. dojo.require("dojo.widget.Button");
  16. </script>
  17.     <body>
  18.         <div class="nav">
  19.             <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}"><g:message code="home" default="Home" /></a></span>
  20.             <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>
  21.         </div>
  22.         <div class="body">
  23.             <h1><g:message code="quotation.list" default="Quotation List" /></h1>
  24.             <g:if test="${flash.message}">
  25.             <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}" /></div>
  26.             </g:if>
  27. <g:form name="quotation" controller="quotation" action="list" method="post"  enctype="multipart/form-data">
  28.             <table border="0">
  29.                         <div >
  30.                             <tr >
  31.                                 <td valign='middle' class='name'>
  32.                                     <label for='_quoName' ><g:message code="quotation.quoName" default="Quo Name" />:</label>
  33.                                 </td>
  34.                                 <td valign='middle' class='value ${hasErrors(bean:quotation,field:'quoName','errors')}'>
  35.                                     <input type="text" id='_quoName' name='_quoName' value="${params._quoName}" size="16" maxlength="12"/>
  36.                                 </td>
  37.                                 <td valign='middle' class='name'>
  38.                                     <label for='_quoFactory'><g:message code="quotation.quoFactory" default="Quo Factory" />:</label>
  39.                                 </td>
  40.                                 <td valign='middle' class='value'>
  41.                                     <input type="text" id='_quoFactory' name='_quoFactory' value="${params._quoFactory}" size="16" maxlength="12"/>
  42.                                 </td>
  43.                                 <td valign='middle' class='name'>
  44.                                     <label for='_quoType_id'><g:message code="quotation.quoType" default="Quo Type" />:</label>
  45.                                 </td>
  46.                                 <td valign='middle' class='value ${hasErrors(bean:quotation,field:'quoType','errors')}'>
  47.                                     <g:select optionKey="id" noSelection="['':'-全部-']" from="${Code.findAllByCkind(Ckind.findByCkiFlag('ProductType'))}" name='_quoType_id' value="${params._quoType_id}" ></g:select>
  48.                                 </td>
  49.                             </tr>
  50.                             <tr>
  51.                                 <td valign='middle' class='name'>
  52.                                     <label for='_quoLastchangefrom'><g:message code="quotation.quoLastchange" default="quo Lastchange" />:</label>
  53.                                 </td>
  54.                                 <td valign='middle' class='value ${hasErrors(bean:quotation,field:'Lastchange','errors')}'>
  55.                                     <input  readonly="true" type="text" dojoType="DropdownDatePicker" id="_quoLastchangefrom" name="_quoLastchangefrom" value="${params._quoLastchangefrom}"/>
  56.                                     <input  readonly="true" type="text" dojoType="DropdownDatePicker" id="_quoLastchangeto" name="_quoLastchangeto" value="${params._quoLastchangeto}"/>
  57.                                 </td>
  58.                                 <td valign='middle' class='name'>
  59.                                     <g:checkBox name="_quoDel" value="${params._quoDel=='on'}" />
  60.                                 </td>
  61.                                 <td valign='middle' class='name'>
  62.                                     <label for='_quoDel'><g:message code="search.all" default="Search all" /></label>
  63.                                 </td>
  64.                                 <td valign='middle' class='value' >
  65.                                     <input class="save" type="submit" value="${message(code:'search', 'default':'Search')}"></input>
  66.                                 </td>
  67.                                 <td valign='middle' class='value'>
  68.                                 </td>
  69.                             </tr>
  70.                         </div>
  71.                      </table>
  72.                       </g:form>
  73.             
  74.             <div class="list">
  75.                 <br>
  76.                 <table>
  77.                     <thead>
  78.                         <tr>
  79.                         
  80.                             <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]}"/>
  81.                         
  82.                             <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]}"/>
  83.                         
  84.                             <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]}"/>
  85.                         
  86.                             <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]}"/>
  87.                         
  88.                             <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]}"/>
  89.                         
  90.                             <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]}"/>
  91.                             <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]}"/>
  92.                         
  93.                         </tr>
  94.                     </thead>
  95.                     <tbody>
  96.                     <g:each in="${quotationList}" status="i" var="quotation">
  97.                         <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
  98.                         
  99.                             <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>
  100.                         
  101.                             <td>${quotation.quoId?.encodeAsHTML()}</td>
  102.                         
  103.                             <td>${quotation.quoName?.encodeAsHTML()}</td>
  104.                         
  105.                             <td>${quotation.quoFactory?.encodeAsHTML()}</td>
  106.                         
  107.                             <td>${quotation.quoNumber?.encodeAsHTML()}</td>
  108.                         
  109.                             <td>${quotation.quoEffectivetime?.encodeAsHTML()}</td>
  110.                             <td><g:delState del="${quotation?.quoDel}"/></td>
  111.                         
  112.                         </tr>
  113.                     </g:each>
  114.                          <% index = quotationList.size() %>
  115.                         <g:while test="${index < 10}">
  116.                             <% index++ %>
  117.                             <tr class="${(index % 2) == 1 ? 'odd' : 'even'}">
  118.                                 <td>&nbsp;</td>
  119.                                 <td>&nbsp;</td>
  120.                                 <td>&nbsp;</td>
  121.                                 <td>&nbsp;</td>
  122.                                 <td>&nbsp;</td>
  123.                                 <td>&nbsp;</td>
  124.                                 <td>&nbsp;</td>
  125.                             </tr>
  126.                         </g:while>
  127.                     </tbody>
  128.                 </table>
  129.             </div>
  130.             <div class="paginateButtons">
  131.                 <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]}"/>
  132.             </div>
  133.         </div>
  134.     </body>
  135. </html>