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="inovice.list" default="Inovice 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="${[_inoBuyname:params._inoBuyname,_inoBuycompany:params._inoBuycompany,_inoCargoname:params._inoCargoname,_inoLastchangefrom:params._inoLastchangefrom,_inoLastchangeto:params._inoLastchangeto,_inoDel:params._inoDel,max:params.max,sort:params.sort,offset:params.offset,order:params.order]}"><g:message code="inovice.new" default="New Inovice" /></g:link></span>
  21.         </div>
  22.         <div class="body">
  23.             <h1><g:message code="inovice.list" default="Inovice 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="inovice" controller="inovice" 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='_inoBuyname' ><g:message code="inovice.inoBuyname" default="ino Buyname" />:</label>
  33.                                 </td>
  34.                                 <td valign='middle' class='value ${hasErrors(bean:inovice,field:'inoBuyname','errors')}'>
  35.                                     <input type="text" id='_inoBuyname' name='_inoBuyname' value="${params._inoBuyname}" size="16" maxlength="12"/>
  36.                                 </td>
  37.                                 <td valign='middle' class='name'>
  38.                                     <label for='_inoBuycompany'><g:message code="inovice.inoBuycompany" default="ino Buycompany" />:</label>
  39.                                 </td>
  40.                                 <td valign='middle' class='value ${hasErrors(bean:inovice,field:'inoBuycompany','errors')}'>
  41.                                     
  42.                                     <input type="text" id='_inoBuycompany' name='_inoBuycompany' value="${params._inoBuycompany}" size="16" maxlength="12"/>
  43.                                 </td>
  44.                                 <td valign='middle' class='name'>
  45.                                     <label for='_inoCargoname'><g:message code="inovice.inoCargoname" default="ino Type" />:</label>
  46.                                 </td>
  47.                                 <td valign='middle' class='value ${hasErrors(bean:inovice,field:'inoCargoname','errors')}'>
  48.                                     
  49.                                     <input type="text" id='_inoCargoname' name='_inoCargoname' value="${params._inoCargoname}" size="16" maxlength="12"/>
  50.                                 </td>
  51.                             </tr>
  52.                             <tr>
  53.                                 <td valign='middle' class='name'>
  54.                                     <label for='_inoLastchangefrom'><g:message code="inovice.inoLastchange" default="ino Lastchange" />:</label>
  55.                                 </td>
  56.                                 <td valign='middle' class='value ${hasErrors(bean:inovice,field:'Lastchange','errors')}'>
  57.                                     <input  readonly="true" type="text" dojoType="DropdownDatePicker" id="_inoLastchangefrom" name="_inoLastchangefrom" value="${params._inoLastchangefrom}"/>
  58.                                     <input  readonly="true" type="text" dojoType="DropdownDatePicker" id="_inoLastchangeto" name="_inoLastchangeto" value="${params._inoLastchangeto}"/>
  59.                                 </td>
  60.                                 <td valign='middle' class='name'>
  61.                                     <g:checkBox name="_inoDel" value="${params._inoDel=='on'}" />
  62.                                 </td>
  63.                                 <td valign='middle' class='name'>
  64.                                     <label for='_inoDel'><g:message code="search.all" default="Search all" /></label>
  65.                                 </td>
  66.                                 <td valign='middle' class='value' >
  67.                                     <input class="save" type="submit" value="${message(code:'search', 'default':'Search')}"></input>
  68.                                 </td>
  69.                                 <td valign='middle' class='value'>
  70.                                 </td>
  71.                             </tr>
  72.                         </div>
  73.                      </table>
  74.                       </g:form>
  75.             <div class="list">
  76.                 <br>
  77.                 <table>
  78.                     <thead>
  79.                         <tr>
  80.                         
  81.                         
  82.                             <g:sortableColumn property="inoId" title="Ino Id" titleKey="inovice.inoId" params="${[_inoBuyname:params._inoBuyname,_inoBuycompany:params._inoBuycompany,_inoCargoname:params._inoCargoname,_inoLastchangefrom:params._inoLastchangefrom,_inoLastchangeto:params._inoLastchangeto,_inoDel:params._inoDel,max:params.max,offset:params.offset]}"/>
  83.                         
  84.                             <g:sortableColumn property="inoBuyname" title="Ino Buyname" titleKey="inovice.inoBuyname" params="${[_inoBuyname:params._inoBuyname,_inoBuycompany:params._inoBuycompany,_inoCargoname:params._inoCargoname,_inoLastchangefrom:params._inoLastchangefrom,_inoLastchangeto:params._inoLastchangeto,_inoDel:params._inoDel,max:params.max,offset:params.offset]}"/>
  85.                         
  86.                             <g:sortableColumn property="inoBuycompany" title="Ino Buycompany" titleKey="inovice.inoBuycompany" params="${[_inoBuyname:params._inoBuyname,_inoBuycompany:params._inoBuycompany,_inoCargoname:params._inoCargoname,_inoLastchangefrom:params._inoLastchangefrom,_inoLastchangeto:params._inoLastchangeto,_inoDel:params._inoDel,max:params.max,offset:params.offset]}"/>
  87.                         
  88.                             <g:sortableColumn property="inoBuytel" title="Ino Buytel" titleKey="inovice.inoBuytel" params="${[_inoBuyname:params._inoBuyname,_inoBuycompany:params._inoBuycompany,_inoCargoname:params._inoCargoname,_inoLastchangefrom:params._inoLastchangefrom,_inoLastchangeto:params._inoLastchangeto,_inoDel:params._inoDel,max:params.max,offset:params.offset]}"/>
  89.                         
  90.                             <g:sortableColumn property="inoBuyaddress" title="Ino Buyaddress" titleKey="inovice.inoBuyaddress" params="${[_inoBuyname:params._inoBuyname,_inoBuycompany:params._inoBuycompany,_inoCargoname:params._inoCargoname,_inoLastchangefrom:params._inoLastchangefrom,_inoLastchangeto:params._inoLastchangeto,_inoDel:params._inoDel,max:params.max,offset:params.offset]}"/>
  91.                             <g:sortableColumn property="inoCargoname" title="Ino Cargoname" titleKey="inovice.inoCargoname" params="${[_inoBuyname:params._inoBuyname,_inoBuycompany:params._inoBuycompany,_inoCargoname:params._inoCargoname,_inoLastchangefrom:params._inoLastchangefrom,_inoLastchangeto:params._inoLastchangeto,_inoDel:params._inoDel,max:params.max,offset:params.offset]}"/>   
  92.                             <g:sortableColumn property="inoDel" title="Ino Del" titleKey="inovice.inoDel" params="${[_inoBuyname:params._inoBuyname,_inoBuycompany:params._inoBuycompany,_inoCargoname:params._inoCargoname,_inoLastchangefrom:params._inoLastchangefrom,_inoLastchangeto:params._inoLastchangeto,_inoDel:params._inoDel,max:params.max,offset:params.offset]}"/>
  93.                         </tr>
  94.                     </thead>
  95.                     <tbody>
  96.                     <g:each in="${inoviceList}" status="i" var="inovice">
  97.                         <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
  98.                         
  99.                             <td><g:link action="show" id="${inovice.id}" params="${[_inoBuyname:params._inoBuyname,_inoBuycompany:params._inoBuycompany,_inoCargoname:params._inoCargoname,_inoLastchangefrom:params._inoLastchangefrom,_inoLastchangeto:params._inoLastchangeto,_inoDel:params._inoDel,max:params.max,sort:params.sort,offset:params.offset,order:params.order]}">${inovice.inoId?.encodeAsHTML()}</g:link></td>
  100.                         
  101.                             <td>${inovice.inoBuyname?.encodeAsHTML()}</td>
  102.                         
  103.                             <td>${inovice.inoBuycompany?.encodeAsHTML()}</td>
  104.                         
  105.                             <td>${inovice.inoBuytel?.encodeAsHTML()}</td>
  106.                         
  107.                             <td>${inovice.inoBuyaddress?.encodeAsHTML()}</td>
  108.                             <td>${inovice.inoCargoname?.encodeAsHTML()}</td>
  109.                             <td><g:delState del="${inovice.inoDel}"/></td>
  110.                         
  111.                         </tr>
  112.                     </g:each>
  113.                          <% index = inoviceList.size() %>
  114.                         <g:while test="${index < 10}">
  115.                             <% index++ %>
  116.                             <tr class="${(index % 2) == 1 ? 'odd' : 'even'}">
  117.                                 <td>&nbsp;</td>
  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.                             </tr>
  125.                         </g:while>
  126.                     </tbody>
  127.                 </table>
  128.             </div>
  129.             <div class="paginateButtons">
  130.                 <g:paginate total="${Inovice.count()}" params="${[_inoBuyname:params._inoBuyname,_inoBuycompany:params._inoBuycompany,_inoCargoname:params._inoCargoname,_inoLastchangefrom:params._inoLastchangefrom,_inoLastchangeto:params._inoLastchangeto,_inoDel:params._inoDel]}"/>
  131.             </div>
  132.         </div>
  133.     </body>
  134. </html>