REC_MENU.jsp 5.11 KB
Newer Older
Thitichaipun Wutthisak committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188
<%@page contentType="text/html; charset=UTF-8"%>
<%@ page import="com.csc.library.menu.Menu" %>
<%@ page import="com.csc.library.menu.MenuList"%>
<%@ page import="com.csc.library.menu.TreeMenu" %>
<%@ page import="com.csc.library.utilities.UProfile" %>
<%@ page import="org.apache.commons.lang.StringUtils" %>
<%@ include file="../CHECKPROFILE.jsp" %>
<%
	final Menu menu = new TreeMenu(MenuList.RECRUIT.getMenu(), uprofile,MenuList.RECRUIT.getAppname()); 
	menu.setCssStyle("filetree");
    String strMenu = menu.getMenu();

	String lang=uprofile.get("lang").toString();

%>
<HTML>
<HEAD>
<TITLE>Recruitment System</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script language="JavaScript" src="../JS/SCREEN.js"></script>
<script language="JavaScript" > setLang('<%=uprofile.get("lang").toString()%>');</script>

<link rel="stylesheet" href="<%=request.getContextPath()%>/CSS/jquery.treeview.css" />
<script type="text/javascript" language="JavaScript" src="<%=request.getContextPath()%>/JS/jquery-1.3.2.min.js"></script>
<script type="text/javascript" language="JavaScript" src="<%=request.getContextPath()%>/JS/jquery.treeview.noconflict.js"></script>
<script type="text/javascript" language="javascript">
	jQuery(document).ready(function(){
		   jQuery("ul.filetree").treeview({
				collapsed: true,
				persist: "location"
			});
	});
</script>

<script language="JavaScript" type="text/JavaScript">

function linkpage(jsppage){
var mfixcon="";
var check = true;

	if((typeof document.cscform)!="undefined"){
		with(document.cscform){		
			if(((typeof __sysisedit)!="undefined")&&(__sysisedit.value=='true')){				
					aCon=confirm("มีการแก้ไขหน้าจอ");// จะบันทึกหรือไม
					if (aCon==true)	{
						check =false;						
					}
					__sysisedit.value="";
			}
			if(check){
				mfixcon= " employeeid ='<%=uprofile.get("employeeid").toString()%>' ";
				action = jsppage;//+"?__fixCon="+mfixcon;
				submit();
			}
		}
	}else{
		   with(document.cscform){
				mfixcon= " employeeid ='<%=uprofile.get("employeeid").toString()%>' ";
				action = jsppage;//+"?__fixCon="+mfixcon;
				submit();
	}

	}
}

function linkpage2(jsppage){
var mfixcon="";
    with(document.cscform){
		__help.value="__employeeid#<%=uprofile.get("employeeid").toString()%>,__companyid#<%=uprofile.get("companyid").toString()%>";
		action = jsppage;//+"?__fixCon="+mfixcon;
       submit();
    }
}

function linkpageReportLog(jsppage){
	var fixcon="";
   	with(document.cscform){
		fixcon = " owner ='Recruit' ";
		action = jsppage+"?__fixCon="+fixcon;
       	submit();
    }
}

function linkpageAutho(jsppage){
    with(document.cscform){
		action = jsppage+"?__fixCon=";
        submit();
    }
}
function linkpageApp(jsppage){
    with(document.cscform){
		action = jsppage+"?__fixCon=";
        submit();
    }
}
function linkpageAppAll(jsppage){
var mfixcon="";
    with(document.cscform){
		  mfixcon="  step_status='WA'";
		action = jsppage+"?__fixCon="+mfixcon;
        submit();
    }
}
function linkpageHis(jsppage){
var mfixcon="";
    with(document.cscform){
	      mfixcon=" real_approver ='<%=uprofile.get("actor").toString()%>' and (( step_status='OK' ) OR ( step_status ='NO'))  ";
		action = jsppage+"?__fixCon="+mfixcon;
        submit();
    }
}
function linkpageHisAll(jsppage){
var mfixcon="";
    with(document.cscform){
	      mfixcon="  ( status='OK' ) OR ( status ='NO')  ";
		action = jsppage+"?__fixCon="+mfixcon;
        submit();
    }
}
function linkpageDDoc(jsppage){
var mfixcon="";
    with(document.cscform){
		mfixcon=" companyid ='<%=uprofile.get("companyid").toString()%>'";
		action = jsppage+"?__fixCon="+mfixcon+"&__help=";
        submit();
    }
}
function logout(){
	with(document.cscform){
	//__fixCon.value="";
		target = "_top";
		action = "../MAIN.jsp?__fixCon=";
		submit();
	}
}
function linkpageCheckDoc(jsppage){
    with(document.cscform){
	// __fixCon.value="";
	 //and status= 'WA'  and  WAITINGSTEP = '1'
	 	action = jsppage+"?__fixCon=";
        submit();
    }
}
function bdOnload() {
		document.cscform.submit();
}
function setTimer(){
	setTimeout("bdOnload()",15000);
}

function linkpageReport1(jsppage){
    with(document.cscform){		
		__screen.value=jsppage;
		action = "ASR001.jsp";
        submit();
    }
}

function linkpageMReport(reportxml){
    with(document.cscform){		
		__screen.value=reportxml;
		action = "PRR001.jsp?__mmxml="+reportxml+"&__classname=MailMerge";
        submit();
    }
}
function goExport(scrn,reftype,clsname){
	with(document.cscform){
		action = "KKWORLD.jsp?__screen="+scrn+"&__ref_type="+reftype+"&__classname="+clsname;
		submit();
	}
}

</script>
</head>
<body leftMargin=0 topMargin=0 MarginHeight="0" marginWidth="0">
<br>
<form name="cscform" target="mainFrame" method="post">
 <input name="__sysisedit" type="hidden" value="">
<input name="__screen" type="hidden" value="AP_MenuMX">
  <input name="__pageIframe" type="hidden" value="">
  <input name="__help" type="hidden" value="">
   <%@ include file="../MENUOPTION.jsp" %>     
    <span><font color="#000066"><font size=2 ><b>&nbsp;Recruitment</b></font></font></span>
 <%=(strMenu)%>
 
</form>
</body>
</html>