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

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="salary.list" default="Salary List" /></title>
  6. <script type="text/javascript" src="${createLinkTo(dir:'js/dojo',file:'dojo.js')}">
  7. </script>
  8. <script type="text/javascript">
  9. dojo.require("dojo.widget.validate");
  10. dojo.require("dojo.widget.ComboBox");
  11. dojo.require("dojo.widget.Checkbox");
  12. dojo.require("dojo.widget.Editor");
  13. dojo.require("dojo.widget.DropdownDatePicker");
  14. dojo.require("dojo.widget.Button");
  15. </script>        
  16.     </head>
  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="${[_salMan:params._salMan,_salBase:params._salBase,_salType_id:params._salType_id,_salLastchangefrom:params._salLastchangefrom,_salLastchangeto:params._salLastchangeto,_salDel:params._salDel,max:params.max,offset:params.offset,order:params.order]}"><g:message code="salary.new" default="New Salary" /></g:link></span>
  21.         </div>
  22.         <div class="body">
  23.             <h1><g:message code="salary.list" default="Salary 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="salary" controller="salary" 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='_salMan' ><g:message code="salary.salId" default="收薪人" />:</label>
  33.                                 </td>
  34.                                 <td valign='middle' class='value ${hasErrors(bean:salary,field:'salMan','errors')}'>
  35.                                     <input type="text" id='_salMan' name='_salMan' value="${params._salMan}" size="16" maxlength="12"/>
  36.                                 </td>
  37.                                 <td valign='middle' class='name'>
  38.                                     <label for='_salBase'><g:message code="salary.salName" default="最低底薪" />:</label>
  39.                                 </td>
  40.                                 <td valign='middle' class='value'>
  41.                                     <input type="text" id='_salBase' name='_salBase' value="${params._salBase}" size="13" maxlength="10"/>
  42.                                 </td>
  43.                                 <td valign='middle' class='name'>
  44.                                     <label for='_salType_id'><g:message code="salary.salType" default="员工类型" />:</label>
  45.                                 </td>
  46.                                 <td valign='middle' class='value ${hasErrors(bean:salary,field:'salType','errors')}'>
  47.                                     <g:select optionKey="id" noSelection="['':'-全部-']" from="${Code.findAllByCkind(Ckind.findByCkiFlag('staffType'))}" name='_salType_id' value="${params._salType_id}" ></g:select>
  48.                                 </td>
  49.                             </tr>
  50.                             <tr>
  51.                                 <td valign='middle' class='name'>
  52.                                     <label for='salName'><g:message code="salary.salLastchange" default="更新时间" />:</label>
  53.                                 </td>
  54.                                 <td valign='middle' class='value ${hasErrors(bean:salary,field:'salType','errors')}'>
  55.                                     <input  readonly="true" type="text" dojoType="DropdownDatePicker" id="_salLastchangefrom" name="_salLastchangefrom" value="${params._salLastchangefrom}"/>
  56.                                     <input  readonly="true" type="text" dojoType="DropdownDatePicker" id="_salLastchangeto" name="_salLastchangeto" value="${params._salLastchangeto}"/>
  57.                                 </td>
  58.                                 <td valign='middle' class='name'>
  59.                                     <g:checkBox name="_salDel" value="${params._salDel=='on'}" />
  60.                                 </td>
  61.                                 <td valign='middle' class='name'>
  62.                                     <label for='_salDel'><g:message code="salary.salDel" default="全部查询" /></label>
  63.                                 </td>
  64.                                 <td valign='middle' class='value' >
  65.                                     <input class="save" type="submit" value="${message(code:'查询', 'default':'查询')}"></input>
  66.                                 </td>
  67.                                 <td valign='middle' class='value'>
  68.                                 </td>
  69.                             </tr>
  70.                         </div>
  71.                      </table>
  72.                       </g:form>
  73.             <div class="list">
  74.                 <br>
  75.                 <table>
  76.                     <thead>
  77.                         <tr>
  78.                             <g:sortableColumn property="id" title="Id" titleKey="salary.id" params="${[_salMan:params._salMan,_salBase:params._salBase,_salType_id:params._salType_id,_salLastchangefrom:params._salLastchangefrom,_salLastchangeto:params._salLastchangeto,_salDel:params._salDel,max:params.max,offset:params.offset]}"/>
  79.                             <th><g:message code="salary.salMan" default="Sal Man" /></th>
  80.                             <g:sortableColumn property="salBase" title="Sal Base" titleKey="salary.salBase" params="${[_salMan:params._salMan,_salBase:params._salBase,_salType_id:params._salType_id,_salLastchangefrom:params._salLastchangefrom,_salLastchangeto:params._salLastchangeto,_salDel:params._salDel,max:params.max,offset:params.offset]}"/>
  81.                             <g:sortableColumn property="salPrize" title="Sal Prize" titleKey="salary.salPrize" params="${[_salMan:params._salMan,_salBase:params._salBase,_salType_id:params._salType_id,_salLastchangefrom:params._salLastchangefrom,_salLastchangeto:params._salLastchangeto,_salDel:params._salDel,max:params.max,offset:params.offset]}"/>
  82.                             <g:sortableColumn property="salBonus" title="Sal Bonus" titleKey="salary.salBonus" params="${[_salMan:params._salMan,_salBase:params._salBase,_salType_id:params._salType_id,_salLastchangefrom:params._salLastchangefrom,_salLastchangeto:params._salLastchangeto,_salDel:params._salDel,max:params.max,offset:params.offset]}"/>
  83.                             <g:sortableColumn property="withhold" title="Withhold" titleKey="salary.withhold" params="${[_salMan:params._salMan,_salBase:params._salBase,_salType_id:params._salType_id,_salLastchangefrom:params._salLastchangefrom,_salLastchangeto:params._salLastchangeto,_salDel:params._salDel,max:params.max,offset:params.offset]}"/>
  84.                             <g:sortableColumn property="withhold" title="Withhold" titleKey="salary.salState" params="${[_salMan:params._salMan,_salBase:params._salBase,_salType_id:params._salType_id,_salLastchangefrom:params._salLastchangefrom,_salLastchangeto:params._salLastchangeto,_salDel:params._salDel,max:params.max,offset:params.offset]}"/>
  85.                         </tr>
  86.                     </thead>
  87.                     <tbody>
  88.                     <g:each in="${salaryList}" status="i" var="salary">
  89.                         <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
  90.                             <td>${salary.id?.encodeAsHTML()}</td>
  91.                             <td><g:link action="show" id="${salary.id}" params="${[_salMan:params._salMan,_salBase:params._salBase,_salType_id:params._salType_id,_salLastchangefrom:params._salLastchangefrom,_salLastchangeto:params._salLastchangeto,_salDel:params._salDel,max:params.max,offset:params.offset,order:params.order]}">${salary.salMan?.encodeAsHTML()}</g:link></td>
  92.                             <td>${salary.salBase?.encodeAsHTML()}</td>
  93.                             <td>${salary.salPrize?.encodeAsHTML()}</td>
  94.                             <td>${salary.salBonus?.encodeAsHTML()}</td>
  95.                             <td>${salary.withhold?.encodeAsHTML()}</td>
  96.                             <td><g:salaryState del="${salary.salDel}" staffid="${salary.salMan.id}" salarypass="${salary.salPass}"/></td>
  97.                         </tr>
  98.                     </g:each>
  99.                     <% index = salaryList.size() %>
  100.                         <g:while test="${index < 10}">
  101.                             <% index++ %>
  102.                             <tr class="${(index % 2) == 1 ? 'odd' : 'even'}">
  103.                                 <td>&nbsp;</td>
  104.                                 <td>&nbsp;</td>
  105.                                 <td>&nbsp;</td>
  106.                                 <td>&nbsp;</td>
  107.                                 <td>&nbsp;</td>
  108.                                 <td>&nbsp;</td>
  109.                                 <td>&nbsp;</td>
  110.                             </tr>
  111.                         </g:while>
  112.                     </tbody>
  113.                 </table>
  114.             </div>
  115.             <div class="paginateButtons">
  116.                 <g:paginate total="${params.count}" params="${[_salMan:params._salMan,_salBase:params._salBase,_salType_id:params._salType_id,_salLastchangefrom:params._salLastchangefrom,_salLastchangeto:params._salLastchangeto,_salDel:params._salDel]}"/>
  117.             </div>
  118.         </div>
  119.     </body>
  120. </html>