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="staff.list" default="Staff 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="${[_staId:params._staId,_staName:params._staName,_staType_id:params._staType_id,_staLastchangefrom:params._staLastchangefrom,_staLastchangeto:params._staLastchangeto,_staDel:params._staDel,offset:params.offset,sort:params.sort,order:params.order]}"><g:message code="staff.new" default="New Staff" /></g:link></span>
- </div>
- <div class="body">
- <h1><g:message code="staff.list" default="Staff 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="staff" controller="staff" action="list" method="post" enctype="multipart/form-data">
- <table border="0">
- <div >
- <tr >
- <td valign='middle' class='name'>
- <label for='staName' ><g:message code="staff.staId" default="员工编号" />:</label>
- </td>
- <td valign='middle' class='value ${hasErrors(bean:staff,field:'staId','errors')}'>
- <input type="text" id='_staId' name='_staId' value="${params._staId}" size="16" maxlength="12"/>
- </td>
- <td valign='middle' class='name'>
- <label for='staName'><g:message code="staff.staName" default="姓名" />:</label>
- </td>
- <td valign='middle' class='value'>
- <input type="text" id='_staName' name='_staName' value="${params._staName}" size="13" maxlength="10"/>
- </td>
- <td valign='middle' class='name'>
- <label for='staName'><g:message code="staff.staType" default="员工类型" />:</label>
- </td>
- <td valign='middle' class='value ${hasErrors(bean:staff,field:'staType','errors')}'>
- <g:select optionKey="id" noSelection="['':'-全部-']" from="${Code.findAllByCkind(Ckind.findByCkiFlag('StaffType'))}" name='_staType_id' value="${params._staType_id}" ></g:select>
- </td>
- </tr>
- <tr>
- <td valign='middle' class='name'>
- <label for='staName'><g:message code="staff.staLastchange" default="更新时间" />:</label>
- </td>
- <td valign='middle' class='value ${hasErrors(bean:staff,field:'staType','errors')}'>
- <input readonly="true" type="text" dojoType="DropdownDatePicker" id="_staLastchangefrom" name="_staLastchangefrom" value="${params._staLastchangefrom}"/>
- <input readonly="true" type="text" dojoType="DropdownDatePicker" id="_staLastchangeto" name="_staLastchangeto" value="${params._staLastchangeto}"/>
- </td>
- <td valign='middle' class='name'>
- <g:checkBox name="_staDel" value="${params._staDel=='on'}" />
- </td>
- <td valign='middle' class='name'>
- <label for='_staDel'><g:message code="staff.staDel" 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>
-
-
-
- <th><g:message code="staff.person" default="Person" /></th>
-
- <g:sortableColumn property="staId" title="Sta Id" titleKey="staff.staId" action="search" params="${[_staId:params._staId,_staName:params._staName,_staType_id:params._staType_id,_staLastchangefrom:params._staLastchangefrom,_staLastchangeto:params._staLastchangeto,_staDel:params._staDel,offset:params.offset]}"/>
-
- <g:sortableColumn property="staName" title="Sta Name" titleKey="staff.staName" action="search" params="${[_staId:params._staId,_staName:params._staName,_staType_id:params._staType_id,_staLastchangefrom:params._staLastchangefrom,_staLastchangeto:params._staLastchangeto,_staDel:params._staDel,offset:params.offset]}"/>
-
- <g:sortableColumn property="staEname" title="Sta Ename" titleKey="staff.staEname" action="search" params="${[_staId:params._staId,_staName:params._staName,_staType_id:params._staType_id,_staLastchangefrom:params._staLastchangefrom,_staLastchangeto:params._staLastchangeto,_staDel:params._staDel,offset:params.offset]}"/>
-
- <g:sortableColumn property="staCard" title="Sta Card" titleKey="staff.staCard" action="search" params="${[_staId:params._staId,_staName:params._staName,_staType_id:params._staType_id,_staLastchangefrom:params._staLastchangefrom,_staLastchangeto:params._staLastchangeto,_staDel:params._staDel,offset:params.offset]}"/>
- <g:sortableColumn property="staDel" title="״̬" titleKey="staff.staDel" action="search" params="${[_staId:params._staId,_staName:params._staName,_staType_id:params._staType_id,_staLastchangefrom:params._staLastchangefrom,_staLastchangeto:params._staLastchangeto,_staDel:params._staDel,offset:params.offset]}"/>
-
- </tr>
- </thead>
- <tbody>
- <g:each in="${staffList}" status="i" var="staff">
- <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
-
-
-
- <td>${staff.person?.encodeAsHTML()}</td>
-
- <td><g:link action="show" id="${staff.id}" params="${[_staId:params._staId,_staName:params._staName,_staType_id:params._staType_id,_staLastchangefrom:params._staLastchangefrom,_staLastchangeto:params._staLastchangeto,_staDel:params._staDel,offset:params.offset,sort:params.sort,order:params.order]}">${staff.staId?.encodeAsHTML()}</g:link></td>
-
- <td>${staff.staName?.encodeAsHTML()}</td>
-
- <td>${staff.staEname?.encodeAsHTML()}</td>
-
- <td>${staff.staCard?.encodeAsHTML()}</td>
- <td><g:delState del="${staff.staDel}"/></td>
- </tr>
- </g:each>
- <% index = staffList.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>
- </tr>
- </g:while>
- </tbody>
- </table>
- </div>
- <div class="paginateButtons">
- <g:paginate total="${params.count}" params="${[_staId:params._staId,_staName:params._staName,_staType_id:params._staType_id,_staLastchangefrom:params._staLastchangefrom,_staLastchangeto:params._staLastchangeto,_staDel:params._staDel]}"/>
- </div>
- </div>
- </body>
- </html>