userChangesLogList.jsp 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <link rel="stylesheet" type="text/css" href="css/commoncss.css"/>
  4. <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  5. <style>
  6. #searchColums{
  7. padding: 20px;
  8. }
  9. </style>
  10. <div class="easyui-layout" fit="true">
  11. <div region="center" style="padding:0px;border:0px">
  12. <t:datagrid name="userChangesLogList" checkbox="false" fitColumns="true" title="员工人事变动记录"
  13. actionUrl="userChangesLogController.do?datagrid" idField="id" fit="true" queryMode="group">
  14. <t:dgCol title="主键" field="id" hidden="true" queryMode="single" width="120"></t:dgCol>
  15. <t:dgCol title="变动审批日期" field="changeTime" align="center" sortable="false" formatter="yyyy-MM-dd" query="false" queryMode="group" editor="checkTime" width="120"></t:dgCol>
  16. <t:dgCol title="员工工号" field="userCode" sortable="false" queryMode="single" width="120"></t:dgCol>
  17. <t:dgCol title="员工姓名" field="userName" sortable="false" queryMode="single" query="false" width="120"></t:dgCol>
  18. <t:dgCol title="所属单位" field="belongUnitName" sortable="false" queryMode="single" dictionary="belongUnitName" width="220"></t:dgCol>
  19. <t:dgCol title="调入单位" field="inUnitName" sortable="false" queryMode="single" dictionary="inUnitName" width="220"></t:dgCol>
  20. <t:dgCol title="变动类型" field="changeType" sortable="false" queryMode="single" query="false" dictionary="change_type" width="120"></t:dgCol>
  21. <t:dgCol title="申请人" field="applicant" sortable="false" queryMode="single" width="120"></t:dgCol>
  22. <%-- <t:dgCol title="缴金状态" field="payRemindStatus" sortable="false" queryMode="single" query="false" dictionary="pay_remind_status" width="120"></t:dgCol> --%>
  23. <%-- <t:dgCol title="缴金单位" field="payUnit" sortable="false" queryMode="single" width="120"></t:dgCol> --%>
  24. <%-- <t:dgCol title="操作" field="opt"></t:dgCol> --%>
  25. <%-- <t:dgFunOpt title="缴金" exp="payRemindStatus#eq#0" urlclass="ace_button" urlfont="fa-cog" funname="setUpPayRemindStatus(id)"/> --%>
  26. <%-- <t:dgFunOpt title="停缴" exp="payRemindStatus#eq#1" urlclass="ace_button" urlfont="fa-cog" funname="setUpStopPayRemindStatus(id)"/> --%>
  27. <%-- <t:dgDelOpt title="删除" url="userChangesLogController.do?doDel&id={id}" urlclass="ace_button" urlfont="fa-trash-o"/> --%>
  28. <%-- <t:dgToolBar title="录入" icon="icon-add" operationCode="add" url="userChangesLogController.do?goAdd" funname="add"></t:dgToolBar> --%>
  29. <%-- <t:dgToolBar title="修改" icon="icon-edit" operationCode="edit" url="userChangesLogController.do?goUpdate" funname="update"></t:dgToolBar> --%>
  30. <%-- <t:dgToolBar title="批量删除" icon="icon-remove" operationCode="remove" url="userChangesLogController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar> --%>
  31. <%-- <t:dgToolBar title="查看" icon="icon-search" url="userChangesLogController.do?goUpdate" funname="detail"></t:dgToolBar> --%>
  32. <%-- <t:dgToolBar title="导入" icon="icon-putout" operationCode="put" funname="ImportXls"></t:dgToolBar> --%>
  33. <t:dgToolBar title="导出" icon="icon-put" operationCode="put" funname="ExportXls"></t:dgToolBar>
  34. <%-- <t:dgToolBar title="模板下载" icon="icon-putout" operationCode="putout" funname="ExportXlsByT"></t:dgToolBar> --%>
  35. </t:datagrid>
  36. </div>
  37. </div>
  38. <div id="pinjie1">
  39. <div name="pinjie2" style="padding:3px; height: auto" class="datagrid-toolbar">
  40. <table style="height:85px;padding:0px;margin-left: 20px;" cellpadding="0" cellspacing="1" >
  41. <tbody>
  42. <tr>
  43. <td align="right">
  44. <label class="Validform_label">
  45. 变动审批日期:
  46. </label>
  47. </td>
  48. <td class="value" colspan="3">
  49. <input id="changeTime_begin" name="changeTime_begin" type="text" style="width: 150px" class="Wdate"
  50. onclick="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'changeTime_end\')}'})" readonly="readonly" placeholder="yyyy-MM-dd"/>~
  51. <input id="changeTime_end" name="changeTime_end" type="text" style="width: 150px" class="Wdate"
  52. onclick="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'changeTime_begin\')}'})" readonly="readonly" placeholder="yyyy-MM-dd"/>
  53. </td>
  54. <td align="right" style="width: 74px;">
  55. <label class="Validform_label">
  56. 员工姓名:
  57. </label>
  58. </td>
  59. <td class="value">
  60. <input id="userName" name="userName" type="text" style="width: 157px; " class="inputxt" placeholder="请输入员工姓名">
  61. </td>
  62. <td align="right" style="width: 74px;">
  63. <label class="Validform_label">
  64. 变动类型:
  65. </label>
  66. </td>
  67. <td class="value">
  68. <t:dictSelect field="changeType" type="select" typeGroupCode="change_type" hasLabel="false" title="变动类型" ></t:dictSelect>
  69. </td>
  70. <td align="right" style="width: 74px;">
  71. <label class="Validform_label">
  72. 缴金状态:
  73. </label>
  74. </td>
  75. <td class="value">
  76. <t:dictSelect field="payRemindStatus" type="select" typeGroupCode="pay_remind_status" hasLabel="false" title="缴金状态" ></t:dictSelect>
  77. </td>
  78. </tr>
  79. </tbody>
  80. </table>
  81. </div>
  82. </div>
  83. <div id="pinjiechaxun1">
  84. <div name="pinjiechaxun2" style="padding:3px; height: auto" class="datagrid-toolbar">
  85. <div style="float: right;">
  86. <span>
  87. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-search" id="personnelBaseArchivesManageSearch" onclick="userChangesLogListsearch()">查询</a>
  88. </span>
  89. <span>
  90. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-reload " id="personnelBaseArchivesManageRedo" onclick="searchReset('userChangesLogList')">重置</a>
  91. </span>
  92. </div>
  93. </div>
  94. </div>
  95. </div>
  96. <script src = "webpage/cn/com/lzt/userchangeslog/userChangesLogList.js"></script>
  97. <script type="text/javascript">
  98. $(function() {
  99. var datagrid = $("#userChangesLogListtb");
  100. datagrid.prepend($("#pinjie1 div[name='pinjie2']").html());
  101. $("#pinjie1").html('');
  102. datagrid.children(".datagrid-toolbar").children("span:first").after($("#pinjiechaxun1 div[name='pinjiechaxun2']").html());
  103. $("#pinjiechaxun1").html('');
  104. });
  105. // 缴金
  106. function setUpPayRemindStatus(id) {
  107. var url="userChangesLogController.do?setUpPayRemindStatus";
  108. url += '&id=' + id;
  109. $.messager.confirm("确认","确定缴金吗?", function(){
  110. lockuploadify(url, '&id');
  111. }, function(){
  112. });
  113. }
  114. // 停缴
  115. function setUpStopPayRemindStatus(id) {
  116. var url="userChangesLogController.do?setUpStopPayRemindStatus";
  117. url += '&id=' + id;
  118. $.messager.confirm("确认","确定停缴吗?", function(){
  119. lockuploadify(url, '&id');
  120. }, function(){
  121. });
  122. }
  123. function lockuploadify(url, id) {
  124. $.ajax({
  125. async : false,
  126. cache : false,
  127. type : 'POST',
  128. url : url,// 请求的action路径
  129. error : function() {// 请求失败处理函数
  130. },
  131. success : function(data) {
  132. var d = data; // ------ $.parseJSON(data);
  133. if (d.success) {
  134. var msg = d.msg;
  135. layer.alert(msg);
  136. reloadTable();
  137. } else {
  138. layer.alert(d.msg)
  139. }
  140. }
  141. });
  142. }
  143. //导入
  144. function ImportXls() {
  145. openuploadwin('Excel导入', 'userChangesLogController.do?upload', "userChangesLogList");
  146. }
  147. //导出
  148. function ExportXls() {
  149. JeecgExcelExport("userChangesLogController.do?exportXls","userChangesLogList");
  150. }
  151. //模板下载
  152. function ExportXlsByT() {
  153. JeecgExcelExport("userChangesLogController.do?exportXlsByT","userChangesLogList");
  154. }
  155. //新增
  156. function add(title,url,id){
  157. window.location.href=url;
  158. }
  159. //修改
  160. function update(title,url, id){
  161. updateNotCreateWin("修改",url, "userChangesLogList",false);
  162. }
  163. //查看
  164. function view(title,url, id){
  165. viewNotCreateWin("查看",url, "userChangesLogList",false)
  166. }
  167. </script>