| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262 |
- <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html;charset=GBK">
- <title>到岗通知审批</title>
- <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
- <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
- <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
- <script src="/ynet/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
- <script src="/ynet/liger/lib/ligerUI/js/plugins/ligerTab.js" type="text/javascript"></script>
- <script src="/ynet/liger/lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
- <script src="/ynet/liger/lib/ligerUI/js/plugins/ligerDrag.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <!-- 选择合同里程碑 -->
- <script type="text/javascript" src="/shares/js/yw/fm/common/chooseContractMilestone.js"></script>
- <script type="text/javascript">
- var grid = null;
- var curTab = 1;
- $(function(){
-
-
- $("#paymentTab").ligerTab({ onAfterSelectTabItem: function (tabid){
- if(tabid == "tabitem1"){
- curTab = 1;
- param="&type=no";
- pay_tabid="paymentNoGrid";
- initGrid(param,"paymentNoGrid");
- }else if(tabid == "tabitem2"){
- curTab = 2;
- param="&type=yes";
- pay_tabid="paymentYesGrid";
- initGrid(param,"paymentYesGrid");
- }
- }});
-
-
- $("#div_assess").ligerTab({changeHeightOnResize:true, onAfterSelectTabItem:function(tabId){
- if(tabId == "tabitem1"){
- curTab = 1;
- initgrid(); //未审核收入计划
- }else if(tabId == "tabitem2"){
- curTab = 2;
- initFinishgrid();//已审核收入计划
- }
- }});
- initgrid();
-
- });
-
- // 未审核收入计划
- function initgrid(params){
- grid=$("#to_assess").ligerGrid({
- columns:[
- {
- display : '姓名',
- name : 'staff_name',
- width : 130
- // ,
- // render:function(row,index){
- // var html = '<a href=\"#\" onclick=\"viewPlan('+ row.universalid + ')\">'+"<font color=blue >"+row.income_plan_number+"</font>"+'</a> ';
- // return html;
- // }
- }, {
- display : '应聘部门',
- name : 'to_employ_dept_name',
- width : 120
- }, {
- display : '应聘职位',
- name : 'to_employ_position_name',
- width : 120
- }, {
- display : '到岗日期',
- name : 'duty_date',
- width : 120
- },{
- display : '工作地点',
- name : 'work_address',
- width : 200
- },
- { display: '操作', isSort: false, width: 130, render: function (row)
- {
- // var html= '<a href=\"#\" onclick=\"viewMyIncomePlan('+ row.universalid + ')\"><font color=blue>查看</font></a> ';
- // html+= '<a href=\"#\" onclick=\"myIncomePlanApproval('+ row.universalid + ')\"><font color=blue>审核</font></a> ';
- // alert(row.flow_ins_id);
- var html='';
- html+='<a href=\"#\" onclick=\"viewflow('+ row.flow_ins_id + ')\"><font color=blue>查看</font></a> ';
- html += '<a href=\"#\" onclick=\"processflow('+ row.current_tins_id + ',\''+row.flow_ins_name+'\')\"><font color=blue>审核</font></a> ';
-
- return html;
- }
- }
- ],pageSize:10,
- url : 'hrEntryNoticeBookAction.do?task=mySendDutyNoticeApprovalList&type=no&state=5&time=' + new Date().getTime() + params,
- pageParmName: 'p', //页索引参数名,(提交给服务器)
- pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
- width : '99%',
- height : '99%',
- rownumbers:true
- });
- }
- function viewflow(insId){
- var url="${pageContext.request.contextPath }/workFlowAction.do?task=viewflow&insId="+insId+"&tabid="+getCurrentTabId();
- openODialog(url,"查看流程信息");
- }
- function processflow(tinsId,flow_ins_name){
- // alert(tinsId+"---"+flow_ins_name);
- var url="${pageContext.request.contextPath }/workFlowAction.do?task=toProcess&tinsId="+tinsId+"&tabid="+getCurrentTabId();
- openODialog(url,flow_ins_name);
- }
- function openODialog(owurl, name) {
- oDialog = openTopDialog({
- height : $("body", window.top.document).height() - 50,
- width : $("body", window.top.document).width() - 50,
- url : owurl,
- showMax : false,
- showToggle : false,
- showMin : false,
- isResize : false,
- modal : false,
- title : name,
- allowClose : true
- });
- }
- function closeODialog() {
- oDialog.close();
- }
- //已审核收入计划
- function initFinishgrid(params){
- grid=$("#finish_assess").ligerGrid({
- columns:[
- {
- display : '姓名',
- name : 'staff_name',
- width : 130
- // ,
- // render:function(row,index){
- // var html = '<a href=\"#\" onclick=\"viewPlan('+ row.universalid + ')\">'+"<font color=blue >"+row.income_plan_number+"</font>"+'</a> ';
- // return html;
- // }
- }, {
- display : '应聘部门',
- name : 'to_employ_dept_name',
- width : 120
- }, {
- display : '应聘职位',
- name : 'to_employ_position_name',
- width : 120
- }, {
- display : '到岗日期',
- name : 'duty_date',
- width : 120
- },{
- display : '工作地点',
- name : 'work_address',
- width : 200
- },
- { display: '操作', isSort: false, width: 130, render: function (row)
- {
- var html='<a href=\"#\" onclick=\"viewflow('+ row.flow_ins_id + ')\"><font color=blue>查看</font></a> ';
- // var html= '<a href=\"#\" onclick=\"viewMyIncomePlan('+ row.universalid + ')\"><font color=blue>查看</font></a> ';
- return html;
- }
- }
- ],pageSize:10,
- url : 'hrEntryNoticeBookAction.do?task=mySendDutyNoticeApprovalList&type=yes&state=2&time=' + new Date().getTime() + params,
- pageParmName: 'p', //页索引参数名,(提交给服务器)
- pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
- width : '99%',
- height : '99%',
- rownumbers:true
- });
- }
-
- //查看收入收入计划信息
- function viewMyIncomePlan(universalid){
- // alert(universalid)
- addTab('viewMyIncomePlan' + getCurrentTabId(), '查看收入计划信息', '${pageContext.request.contextPath }/fmIncomePlanAction.do?task=viewMyIncomePlan&universalid='
- + universalid + '&tabid=' + getCurrentTabId(),true,true);
- }
- //收入计划审批
- function myIncomePlanApproval(universalid){
- // alert(universalid)
- addTab('myIncomePlanApproval' + getCurrentTabId(), '收入计划审批信息', '${pageContext.request.contextPath }/fmIncomePlanAction.do?task=myIncomePlanApproval&universalid='
- + universalid + '&tabid=' + getCurrentTabId(),true,true);
- }
-
- //收入计划查询
- function searchByKword(){
- var s = "";
- var staff_name = $("#staff_name").val();//收入计划单号
- if (staff_name != "" && typeof (staff_name) != "undefined") {
- s += "&staff_name=" + encodeURI(encodeURI(staff_name)) ;
- }
- if(curTab==1){
- initgrid(s); //未审核收入计划
- $("#to_assess").attr("lselected","1");
- }else if(curTab==2){
- initFinishgrid(s);//已审核收入计划
- $("#finish_assess").attr("lselected","1");
- }
- }
- //清除所有查询条件
- function searchAll() {
- $("#income_plan_number").val("");
- $("#pay_unit").val("");
- $("#project_name_3").val("");
- $("#contract_number").val("");
- $("#is_bill").val("");
- $("#audit_status").val("");
- if(curTab==1){
- initgrid();
- $("#to_assess").attr("lselected","1");
- }else if(curTab==2){
- initFinishgrid();
- $("#finish_assess").attr("lselected","1");
- }
- }
- </script>
- </head>
- <body>
- <div class="container-layout">
- <div id="title" class="form-button">
- <input type="button" class="l-button" value="关闭" onclick="closeWindow()" style="width: 90px"/>
- </div>
- <div class="default_search" style="margin: 0;">
- <ul class="list_search">
- <li class="title">应聘人姓名:</li>
- <li class="text"><input type="text" name="staff_name" id="staff_name" style="width:160px">
- </li>
- </ul>
-
- <ul>
- <li class="search-button">
- <input type="button" class='l-button'
- name="search" onclick="searchByKword()" value="查询" style="margin-left:30px;" />
- </li>
- </ul>
- </div>
- <div style="clear:both;"></div>
- <div id="div_assess" class="tab2 l-tab" >
- <div title="待审核" id="to_assessTab" style="overflow: hidden;">
- <div id="to_assess" style="margin: 0; padding: 0"></div>
- </div>
- <div title="已审核" id="finish_assessTab" style="overflow: hidden;">
- <div id="finish_assess" style="margin: 0; padding: 0"></div>
- </div>
- </div>
-
- </div>
- <%@ include file="/include/message.jsp"%>
- </body>
- </html>
|