listStaffInsuranceHistoryLog.jsp 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  6. <title>员工社保缴费生成日志列表</title>
  7. <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  8. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  9. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  10. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  11. <script src="${pageContext.request.contextPath}/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  12. <script type="text/javascript" src="/shares/js/constant.js"></script>
  13. <script type="text/javascript" src="/shares/js/common.js"></script>
  14. <script type="text/javascript">
  15. var grid = null;
  16. var dialog = null;
  17. $(function() {
  18. initSalaryInsuranceHistoryLogList();
  19. });
  20. function initSalaryInsuranceHistoryLogList(params) { //已投保
  21. var columns = [ {
  22. display : '人员',
  23. name : 'staff_names'
  24. }, {
  25. display : '总人数',
  26. name : 'person_count'
  27. }, {
  28. display : '扣费月份',
  29. name : 'insurance_charged_month'
  30. }, {
  31. display : '社保月份',
  32. name : 'insurance_month'
  33. }, {
  34. display : '创建人',
  35. name : 'create_user_name'
  36. }, {
  37. display : '创建时间',
  38. name : 'create_date'
  39. } ];
  40. grid = $("#maingrid4")
  41. .ligerGrid(
  42. {
  43. columns : columns,
  44. pageSize : 20,
  45. url : 'hrSalaryStaffInsuranceHistoryLogAction.do?task=queryStaffInsureHistoryLogData&time='
  46. + new Date().getTime() + params,
  47. pageParmName : 'p', //页索引参数名,(提交给服务器)
  48. pagesizeParmName : 'pSize', //页记录数参数名,(提交给服务器)
  49. width : '99.9%',
  50. height : '99%'
  51. });
  52. $("#pageloading").hide();
  53. }
  54. //查询
  55. function searchByKword() {
  56. var s = "";
  57. var staff_names = $("#staff_names");//姓名
  58. if (staff_names) {
  59. s += "&salaryInsuranceHistoryLog.staff_names=" + encodeURI(encodeURI(staff_names.val()));
  60. }
  61. grid.set("newPage", "1");
  62. initSalaryInsuranceHistoryLogList(s);
  63. }
  64. function createStaffInsuranceHistory() {
  65. var obj = window.top;
  66. if (obj != undefined && obj != null) {
  67. obj.$.ligerDialog
  68. .open({
  69. title : '选择项目',
  70. width : 650,
  71. height : 400,
  72. url : 'hrSalaryStaffInsuranceHistoryAction.do?task=toCreateStaffInsureHistory'
  73. + "&time=" + new Date(),
  74. // +'&depot_id='
  75. // + ins_depot_id_val + '&location_id='
  76. // + ins_location_id_val,
  77. buttons : [ {
  78. text : '保存',
  79. onclick : f_btnOK
  80. }, {
  81. text : '取消',
  82. onclick : f_btnCancel
  83. } ]
  84. });
  85. }
  86. }
  87. function f_btnOK(item, dialog) {
  88. if (!dialog.frame.checkForm()) {
  89. return;
  90. }
  91. dialog.frame.btnSave();
  92. // dialog.close();
  93. }
  94. function f_btnCancel(item, dialog) {
  95. dialog.close();
  96. }
  97. </script>
  98. </head>
  99. <body>
  100. <div class="container">
  101. <!-- <div id="title" class="form-button"> -->
  102. <!-- <input type="button" class="l-button" value="生成报表" onclick="createStaffInsuranceHistory();" style="width: 70px" /> -->
  103. <!-- </div> -->
  104. <!-- <div class="default_search" style="margin: 0; height: 30px;"></div> -->
  105. <div class="default_search" style="margin: 0;">
  106. <ul class="list_search">
  107. <li class="title">人员:</li>
  108. <li class="text"><input type="text" id=staff_names name="staff_names" /></li>
  109. </ul>
  110. <ul>
  111. <li class="search-button"><input type="button" class='l-button' name="search" onclick="searchByKword()" value="查询" /></li>
  112. </ul>
  113. </div>
  114. <div style="clear: both;"></div>
  115. <div id="searchbar">
  116. <div style="overflow: hidden; clear: both;">
  117. <div id="maingrid4" style="margin: 0; padding: 0"></div>
  118. </div>
  119. </div>
  120. </div>
  121. </body>
  122. </html>