sendDutyNoticeApprovalList.jsp 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  7. <title>到岗通知审批</title>
  8. <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  9. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  10. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  11. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  12. <script src="/ynet/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
  13. <script src="/ynet/liger/lib/ligerUI/js/plugins/ligerTab.js" type="text/javascript"></script>
  14. <script src="/ynet/liger/lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
  15. <script src="/ynet/liger/lib/ligerUI/js/plugins/ligerDrag.js" type="text/javascript"></script>
  16. <script type="text/javascript" src="/shares/js/constant.js"></script>
  17. <script type="text/javascript" src="/shares/js/common.js"></script>
  18. <!-- 选择合同里程碑 -->
  19. <script type="text/javascript" src="/shares/js/yw/fm/common/chooseContractMilestone.js"></script>
  20. <script type="text/javascript">
  21. var grid = null;
  22. var curTab = 1;
  23. $(function(){
  24. $("#paymentTab").ligerTab({ onAfterSelectTabItem: function (tabid){
  25. if(tabid == "tabitem1"){
  26. curTab = 1;
  27. param="&type=no";
  28. pay_tabid="paymentNoGrid";
  29. initGrid(param,"paymentNoGrid");
  30. }else if(tabid == "tabitem2"){
  31. curTab = 2;
  32. param="&type=yes";
  33. pay_tabid="paymentYesGrid";
  34. initGrid(param,"paymentYesGrid");
  35. }
  36. }});
  37. $("#div_assess").ligerTab({changeHeightOnResize:true, onAfterSelectTabItem:function(tabId){
  38. if(tabId == "tabitem1"){
  39. curTab = 1;
  40. initgrid(); //未审核收入计划
  41. }else if(tabId == "tabitem2"){
  42. curTab = 2;
  43. initFinishgrid();//已审核收入计划
  44. }
  45. }});
  46. initgrid();
  47. });
  48. // 未审核收入计划
  49. function initgrid(params){
  50. grid=$("#to_assess").ligerGrid({
  51. columns:[
  52. {
  53. display : '姓名',
  54. name : 'staff_name',
  55. width : 130
  56. // ,
  57. // render:function(row,index){
  58. // var html = '<a href=\"#\" onclick=\"viewPlan('+ row.universalid + ')\">'+"<font color=blue >"+row.income_plan_number+"</font>"+'</a>&nbsp;';
  59. // return html;
  60. // }
  61. }, {
  62. display : '应聘部门',
  63. name : 'to_employ_dept_name',
  64. width : 120
  65. }, {
  66. display : '应聘职位',
  67. name : 'to_employ_position_name',
  68. width : 120
  69. }, {
  70. display : '到岗日期',
  71. name : 'duty_date',
  72. width : 120
  73. },{
  74. display : '工作地点',
  75. name : 'work_address',
  76. width : 200
  77. },
  78. { display: '操作', isSort: false, width: 130, render: function (row)
  79. {
  80. // var html= '<a href=\"#\" onclick=\"viewMyIncomePlan('+ row.universalid + ')\"><font color=blue>查看</font></a>&nbsp;';
  81. // html+= '<a href=\"#\" onclick=\"myIncomePlanApproval('+ row.universalid + ')\"><font color=blue>审核</font></a>&nbsp;';
  82. // alert(row.flow_ins_id);
  83. var html='';
  84. html+='<a href=\"#\" onclick=\"viewflow('+ row.flow_ins_id + ')\"><font color=blue>查看</font></a>&nbsp;&nbsp;';
  85. html += '<a href=\"#\" onclick=\"processflow('+ row.current_tins_id + ',\''+row.flow_ins_name+'\')\"><font color=blue>审核</font></a>&nbsp;';
  86. return html;
  87. }
  88. }
  89. ],pageSize:10,
  90. url : 'hrEntryNoticeBookAction.do?task=mySendDutyNoticeApprovalList&type=no&state=5&time=' + new Date().getTime() + params,
  91. pageParmName: 'p', //页索引参数名,(提交给服务器)
  92. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  93. width : '99%',
  94. height : '99%',
  95. rownumbers:true
  96. });
  97. }
  98. function viewflow(insId){
  99. var url="${pageContext.request.contextPath }/workFlowAction.do?task=viewflow&insId="+insId+"&tabid="+getCurrentTabId();
  100. openODialog(url,"查看流程信息");
  101. }
  102. function processflow(tinsId,flow_ins_name){
  103. // alert(tinsId+"---"+flow_ins_name);
  104. var url="${pageContext.request.contextPath }/workFlowAction.do?task=toProcess&tinsId="+tinsId+"&tabid="+getCurrentTabId();
  105. openODialog(url,flow_ins_name);
  106. }
  107. function openODialog(owurl, name) {
  108. oDialog = openTopDialog({
  109. height : $("body", window.top.document).height() - 50,
  110. width : $("body", window.top.document).width() - 50,
  111. url : owurl,
  112. showMax : false,
  113. showToggle : false,
  114. showMin : false,
  115. isResize : false,
  116. modal : false,
  117. title : name,
  118. allowClose : true
  119. });
  120. }
  121. function closeODialog() {
  122. oDialog.close();
  123. }
  124. //已审核收入计划
  125. function initFinishgrid(params){
  126. grid=$("#finish_assess").ligerGrid({
  127. columns:[
  128. {
  129. display : '姓名',
  130. name : 'staff_name',
  131. width : 130
  132. // ,
  133. // render:function(row,index){
  134. // var html = '<a href=\"#\" onclick=\"viewPlan('+ row.universalid + ')\">'+"<font color=blue >"+row.income_plan_number+"</font>"+'</a>&nbsp;';
  135. // return html;
  136. // }
  137. }, {
  138. display : '应聘部门',
  139. name : 'to_employ_dept_name',
  140. width : 120
  141. }, {
  142. display : '应聘职位',
  143. name : 'to_employ_position_name',
  144. width : 120
  145. }, {
  146. display : '到岗日期',
  147. name : 'duty_date',
  148. width : 120
  149. },{
  150. display : '工作地点',
  151. name : 'work_address',
  152. width : 200
  153. },
  154. { display: '操作', isSort: false, width: 130, render: function (row)
  155. {
  156. var html='<a href=\"#\" onclick=\"viewflow('+ row.flow_ins_id + ')\"><font color=blue>查看</font></a>&nbsp;&nbsp;';
  157. // var html= '<a href=\"#\" onclick=\"viewMyIncomePlan('+ row.universalid + ')\"><font color=blue>查看</font></a>&nbsp;';
  158. return html;
  159. }
  160. }
  161. ],pageSize:10,
  162. url : 'hrEntryNoticeBookAction.do?task=mySendDutyNoticeApprovalList&type=yes&state=2&time=' + new Date().getTime() + params,
  163. pageParmName: 'p', //页索引参数名,(提交给服务器)
  164. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  165. width : '99%',
  166. height : '99%',
  167. rownumbers:true
  168. });
  169. }
  170. //查看收入收入计划信息
  171. function viewMyIncomePlan(universalid){
  172. // alert(universalid)
  173. addTab('viewMyIncomePlan' + getCurrentTabId(), '查看收入计划信息', '${pageContext.request.contextPath }/fmIncomePlanAction.do?task=viewMyIncomePlan&universalid='
  174. + universalid + '&tabid=' + getCurrentTabId(),true,true);
  175. }
  176. //收入计划审批
  177. function myIncomePlanApproval(universalid){
  178. // alert(universalid)
  179. addTab('myIncomePlanApproval' + getCurrentTabId(), '收入计划审批信息', '${pageContext.request.contextPath }/fmIncomePlanAction.do?task=myIncomePlanApproval&universalid='
  180. + universalid + '&tabid=' + getCurrentTabId(),true,true);
  181. }
  182. //收入计划查询
  183. function searchByKword(){
  184. var s = "";
  185. var staff_name = $("#staff_name").val();//收入计划单号
  186. if (staff_name != "" && typeof (staff_name) != "undefined") {
  187. s += "&staff_name=" + encodeURI(encodeURI(staff_name)) ;
  188. }
  189. if(curTab==1){
  190. initgrid(s); //未审核收入计划
  191. $("#to_assess").attr("lselected","1");
  192. }else if(curTab==2){
  193. initFinishgrid(s);//已审核收入计划
  194. $("#finish_assess").attr("lselected","1");
  195. }
  196. }
  197. //清除所有查询条件
  198. function searchAll() {
  199. $("#income_plan_number").val("");
  200. $("#pay_unit").val("");
  201. $("#project_name_3").val("");
  202. $("#contract_number").val("");
  203. $("#is_bill").val("");
  204. $("#audit_status").val("");
  205. if(curTab==1){
  206. initgrid();
  207. $("#to_assess").attr("lselected","1");
  208. }else if(curTab==2){
  209. initFinishgrid();
  210. $("#finish_assess").attr("lselected","1");
  211. }
  212. }
  213. </script>
  214. </head>
  215. <body>
  216. <div class="container-layout">
  217. <div id="title" class="form-button">
  218. <input type="button" class="l-button" value="关闭" onclick="closeWindow()" style="width: 90px"/>
  219. </div>
  220. <div class="default_search" style="margin: 0;">
  221. <ul class="list_search">
  222. <li class="title">应聘人姓名:</li>
  223. <li class="text"><input type="text" name="staff_name" id="staff_name" style="width:160px">
  224. </li>
  225. </ul>
  226. <ul>
  227. <li class="search-button">
  228. <input type="button" class='l-button'
  229. name="search" onclick="searchByKword()" value="查询" style="margin-left:30px;" />
  230. </li>
  231. </ul>
  232. </div>
  233. <div style="clear:both;"></div>
  234. <div id="div_assess" class="tab2 l-tab" >
  235. <div title="待审核" id="to_assessTab" style="overflow: hidden;">
  236. <div id="to_assess" style="margin: 0; padding: 0"></div>
  237. </div>
  238. <div title="已审核" id="finish_assessTab" style="overflow: hidden;">
  239. <div id="finish_assess" style="margin: 0; padding: 0"></div>
  240. </div>
  241. </div>
  242. </div>
  243. <%@ include file="/include/message.jsp"%>
  244. </body>
  245. </html>