list.gsp
上传用户:steveyhw
上传日期:2019-05-13
资源大小:307k
文件大小:9k
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="layout" content="main" />
- <title><g:message code="salary.list" default="Salary List" /></title>
- <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>
- </head>
- <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="${[_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>
- </div>
- <div class="body">
- <h1><g:message code="salary.list" default="Salary 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="salary" controller="salary" action="list" method="post" enctype="multipart/form-data">
- <table border="0">
- <div >
- <tr >
- <td valign='middle' class='name'>
- <label for='_salMan' ><g:message code="salary.salId" default="收薪人" />:</label>
- </td>
- <td valign='middle' class='value ${hasErrors(bean:salary,field:'salMan','errors')}'>
- <input type="text" id='_salMan' name='_salMan' value="${params._salMan}" size="16" maxlength="12"/>
- </td>
- <td valign='middle' class='name'>
- <label for='_salBase'><g:message code="salary.salName" default="最低底薪" />:</label>
- </td>
- <td valign='middle' class='value'>
- <input type="text" id='_salBase' name='_salBase' value="${params._salBase}" size="13" maxlength="10"/>
- </td>
- <td valign='middle' class='name'>
- <label for='_salType_id'><g:message code="salary.salType" default="员工类型" />:</label>
- </td>
- <td valign='middle' class='value ${hasErrors(bean:salary,field:'salType','errors')}'>
- <g:select optionKey="id" noSelection="['':'-全部-']" from="${Code.findAllByCkind(Ckind.findByCkiFlag('staffType'))}" name='_salType_id' value="${params._salType_id}" ></g:select>
- </td>
- </tr>
- <tr>
- <td valign='middle' class='name'>
- <label for='salName'><g:message code="salary.salLastchange" default="更新时间" />:</label>
- </td>
- <td valign='middle' class='value ${hasErrors(bean:salary,field:'salType','errors')}'>
- <input readonly="true" type="text" dojoType="DropdownDatePicker" id="_salLastchangefrom" name="_salLastchangefrom" value="${params._salLastchangefrom}"/>
- <input readonly="true" type="text" dojoType="DropdownDatePicker" id="_salLastchangeto" name="_salLastchangeto" value="${params._salLastchangeto}"/>
- </td>
- <td valign='middle' class='name'>
- <g:checkBox name="_salDel" value="${params._salDel=='on'}" />
- </td>
- <td valign='middle' class='name'>
- <label for='_salDel'><g:message code="salary.salDel" default="全部查询" /></label>
- </td>
- <td valign='middle' class='value' >
- <input class="save" type="submit" value="${message(code:'查询', 'default':'查询')}"></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="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]}"/>
- <th><g:message code="salary.salMan" default="Sal Man" /></th>
- <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]}"/>
- <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]}"/>
- <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]}"/>
- <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]}"/>
- <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]}"/>
- </tr>
- </thead>
- <tbody>
- <g:each in="${salaryList}" status="i" var="salary">
- <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
- <td>${salary.id?.encodeAsHTML()}</td>
- <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>
- <td>${salary.salBase?.encodeAsHTML()}</td>
- <td>${salary.salPrize?.encodeAsHTML()}</td>
- <td>${salary.salBonus?.encodeAsHTML()}</td>
- <td>${salary.withhold?.encodeAsHTML()}</td>
- <td><g:salaryState del="${salary.salDel}" staffid="${salary.salMan.id}" salarypass="${salary.salPass}"/></td>
- </tr>
- </g:each>
- <% index = salaryList.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="${params.count}" params="${[_salMan:params._salMan,_salBase:params._salBase,_salType_id:params._salType_id,_salLastchangefrom:params._salLastchangefrom,_salLastchangeto:params._salLastchangeto,_salDel:params._salDel]}"/>
- </div>
- </div>
- </body>
- </html>