atsShiftInfoSelector.jsp 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/commons/include/html_doctype.html" %>
  3. <html>
  4. <head>
  5. <title>选择班次定义</title>
  6. <%@include file="/commons/include/get.jsp" %>
  7. <script type="text/javascript">
  8. var isSingle="${isSingle}";
  9. $(function(){
  10. $("#atsShiftInfoItem>tbody").find("tr").bind('click', function() {
  11. if(isSingle!='true'){
  12. var ch=$(this).find(":checkbox");
  13. window.parent.selectMulti(ch);
  14. }
  15. });
  16. $("#chkall").bind("click",function(){
  17. var checkAll=false;
  18. if($(this).attr("checked")){
  19. checkAll=true;
  20. }
  21. var checkboxs=$(":checkbox",$("#atsShiftInfoItem>tbody"));
  22. checkboxs.each(function(){
  23. if(checkAll){
  24. window.parent.selectMulti(this);
  25. }
  26. });
  27. });
  28. });
  29. </script>
  30. <style type="text/css">
  31. div.bottom{text-align: center;padding-top: 10px;}
  32. body {overflow: hidden;}
  33. </style>
  34. </head>
  35. <body>
  36. <div class="panel-top">
  37. <div class="panel-search">
  38. <form id="searchForm" method="post" action="${ctx}/platform/ats/atsShiftInfo/selector.ht" >
  39. <ul class="row">
  40. <input type="hidden" name="isSingle" value="${isSingle }">
  41. <li><span class="label" >名称:</span><input size="14" type="text" name="Q_name_SL" class="inputText" style="width:60%;" value="${param['Q_fullname_SL']}"/>
  42. &nbsp;<a href="javascript:;" onclick="$('#searchForm').submit()" class='button'><span>查询</span></a></li>
  43. </ul>
  44. </form>
  45. </div>
  46. </div>
  47. <c:choose>
  48. <c:when test="${isSingle==false}">
  49. <c:set var="checkAll">
  50. <input type="checkbox" id="chkall" name="chkall" />
  51. </c:set>
  52. </c:when>
  53. <c:otherwise>
  54. <c:set var="checkAll" value="选择"/>
  55. </c:otherwise>
  56. </c:choose>
  57. <display:table name="atsShiftInfoList" id="atsShiftInfoItem" requestURI="selector.ht" sort="external" cellpadding="1" cellspacing="1" class="table-grid">
  58. <display:column title="${checkAll}" media="html" style="width:30px;">
  59. <c:choose>
  60. <c:when test="${isSingle==false}">
  61. <input type="checkbox" class="pk" name="data" value="${atsShiftInfoItem.id}#${atsShiftInfoItem.name}#${atsShiftInfoItem.code}#${atsShiftInfoItem.shiftTime}">
  62. </c:when>
  63. <c:otherwise>
  64. <input type="radio" class="pk" name="data" value="${atsShiftInfoItem.id}#${atsShiftInfoItem.name}#${atsShiftInfoItem.code}#${atsShiftInfoItem.shiftTime}">
  65. </c:otherwise>
  66. </c:choose>
  67. </display:column>
  68. <display:column property="code" title="编码" sortable="true" sortName="CODE" maxLength="80"></display:column>
  69. <display:column property="name" title="名称" sortable="true" sortName="NAME" maxLength="80"></display:column>
  70. </display:table>
  71. <hotent:paging tableId="atsShiftInfoItem" showExplain="false"/>
  72. </body>
  73. </html>