เคสด่วน ทำ EXCEL RECRUIT ผลคะแนน

parent 075841a2
......@@ -117,7 +117,7 @@
<MENU ename="RRC2002 Job Application Results Conclusion" tname="RRC2002 รายงานสรุปผลการสมัครงาน" link="javascript:linkpage('RRC027.jsp');" code="RE05A1506" target="" group="RE05A1506" page="RRC027,RRC027_EXP,MCANDIDATE_PERSONALNAME" />
<MENU ename="RRC2004 Recruiting Summary by Application Status" tname="RRC2004 รายงานสรุปการสรรหาพนักงานแบ่งตามสถานะการสมัคร " link="javascript:linkpage('RRC028.jsp');" code="RE05A1507" target="" group="RE05A1507" page="RRC028,RRC028_EXP,MCANDIDATE_PERSONALNAME" />
<MENU ename="RRC2005 Recruiting Analysis by Channel" tname="RRC2005 รายงานสรุปการสรรหาพนักงานแบ่งตามแหล่งที่มา" link="javascript:linkpage('RRC029.jsp');" code="RE05A1508" target="" group="RE05A1508" page="RRC029,RRC029_EXP" />
<MENU ename="RRC2006 Recruiting Exam" tname="RRC2006 รายงานสรุปคะแนนของพนักงาน" link="javascript:linkpage('RRC030.jsp');" code="RE05A1509" target="" group="RE05A1509" page="RRC030,RRC030_EXP" />
</MENU>
<!--<MENU tname="ใบสมัคร" ename="Application Form" link="javascript:linkpageReport2('RCR001');" code="RE05A01" target="" group="RE05A01"/>-->
<!--<MENU tname="รายชื่อพนักงานเข้าใหม่" ename="New Entry Employee" link="javascript:linkpageReport2('RCR003');" code="RE05A02" target="" group="RE05A02"/>-->
......
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page import="com.csc.library.entry.*,com.csc.library.system.*,com.csc.library.session.*,com.csc.library.utilities.*,java.text.DecimalFormat"%>
<%@ page import="java.util.*,java.io.*,java.sql.*"%>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="java.util.Locale" %>
<%@ page import="java.util.Date" %>
<%@ page import="com.csc.library.components.*" %>
<%@ page import="com.csc.library.report.ReportUDF" %>
<%@ page import="com.csc.api.recruit.*" %>
<%@ page import="com.csc.library.database.*" %>
<%@ page import="com.csc.library.databean.Simmcandidatewithgson" %>
<%@ page import="com.csc.library.databean.Simmapplicantwithgson" %>
<%@ page import="com.csc.library.databean.Simmappointmentwithgson" %>
<%@ page import="com.csc.library.databean.Simmapplicanthisotherwithgson" %>
<%@ page import="com.csc.library.utilities.gsonmapping.*" %>
<%
CheckNull chk = new CheckNull();
CscCalendar c = new CscCalendar();
ReportUDF udf = new ReportUDF();
DecimalFormat DFO = new DecimalFormat("#,###,###`");
UProfile up = null;
if (session !=null){
up = (UProfile)session.getAttribute("userprofile");
}
String lang = up.get("lang");
String approvedate = chk.chkNullString(request.getParameter("__approvedate"));
String approvedate2 = chk.chkNullString(request.getParameter("__approvedate2"));
String branch = chk.chkNullString(request.getParameter("__branch"));
String branch_desc = chk.chkNullString(request.getParameter("__branch_desc"));
String jobcodeid = chk.chkNullString(request.getParameter("__jobcodeid"));
String jobcode_desc = chk.chkNullString(request.getParameter("__jobcode_desc"));
String bu1 = chk.chkNullString(request.getParameter("__bu1"));
String bu2 = chk.chkNullString(request.getParameter("__bu2"));
String bu3 = chk.chkNullString(request.getParameter("__bu3"));
String bu4 = chk.chkNullString(request.getParameter("__bu4"));
String bu1_desc = chk.chkNullString(request.getParameter("__bu1_desc"));
String bu2_desc = chk.chkNullString(request.getParameter("__bu2_desc"));
String bu3_desc = chk.chkNullString(request.getParameter("__bu3_desc"));
String bu4_desc = chk.chkNullString(request.getParameter("__bu4_desc"));
String cmd = chk.chkNullString(request.getParameter("__cmd"));
String isprocess =chk.chkNullString(request.getParameter("__isprocess"));
String filter = "1=1";
if(!branch.equals("")){
filter += " and branch ='"+branch+"'";
}
if(!jobcodeid.equals("")){
filter += " and jobcodeid ='"+jobcodeid+"'";
}
if(!bu1.equals("")){
filter += " and bu1='"+bu2+"'";
}
if(!bu2.equals("")){
filter += " and bu2='"+bu2+"'";
}
if(!bu3.equals("")){
filter += " and bu3='"+bu3+"'";
}
if(!bu4.equals("")){
filter += " and bu4='"+bu3+"'";
}
if(!approvedate.equals("") && !approvedate2.equals("")){
filter += " and approvedate between '"+c.setCscCalendar(approvedate).getYYYYMMDD()+"' and '"+c.setCscCalendar(approvedate2).getYYYYMMDD()+"'";
}
DbRecord dbrec = new InitialRecord(up).getDbRecord("memployee");
dbrec.setColumn("*");
%>
<html ng-app="myHR">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../CSS/TISCO.css" rel="stylesheet" type="text/css">
<link href="../CSS/bootstrap.css" rel="stylesheet">
<script language="JavaScript" src="../JS/SCREEN.js"></script>
<SCRIPT TYPE='text/JavaScript' SRC='../JS/DATEINPUT.js'></SCRIPT>
<SCRIPT TYPE='text/JavaScript' SRC='../JS/VIEWCALENDAR.js'></SCRIPT>
<script type="text/javascript" src="../JS/jquery-2.1.3.min.js"></script>
<script src="../JS/bootstrap.min.js"></script>
<script type="text/javascript" src="../JS/angular-1.3.15/angular.js"></script>
<script type="text/javascript" src="../JS/ANGULAR/SCREEN_ANGULAR.js"></script>
<script language="javascript">setLang('<%=up.get("lang")%>');</script>
<script language="JavaScript" type="text/JavaScript">
function GoExport(){
with(document.cscform){
// alert(__filter.value);
var param = "RRC030_EXP.jsp?__filter="+__filter.value;
window.open(param);
}
}
function GoProcess(){
with( document.cscform){
__cmd.value = "search"
__isprocess.value = "1"
submit();
}
}
function goHelp(helpName,inputName,filter){
var helpReturn;
var fixcon;
if(inputName=="__jobcodeid"){
helpReturn = inputName+":jobcodeid,"+inputName+"_desc:tdesc";
}else if(inputName=="__branch"){
helpReturn = inputName+":branchid,"+inputName+"_desc:edesc";
}
fixcon="";
linkHelp_Return(helpName,helpReturn,fixcon);
}
function goHelpBu(helpName,inputName,filter){
var helpReturn;
var fixcon;
if(inputName=="__bu1"){
helpReturn = inputName+":bu1id,"+inputName+"_desc:edesc";
}else if(inputName=="__bu2"){
helpReturn = inputName+":bu2id,"+inputName+"_desc:edesc";
}else if(inputName=="__bu3"){
helpReturn = inputName+":bu3id,"+inputName+"_desc:edesc";
}else if(inputName=="__bu4"){
helpReturn = inputName+":bu4id,"+inputName+"_desc:edesc";
}
fixcon="";
linkHelp_Return(helpName,helpReturn,fixcon);
}
$(function() {
$('#export').click(function() {
GoExport();
});
$('#search').click(function() {
GoProcess();
});
});
</script>
<style>
img[height="20"] {
padding: 0px;
}
.center{
text-align: center;
}
</style>
</head>
<%
String helpReturn="";
if(request.getParameter("__helpReturn")!=null){
helpReturn=request.getParameter("__helpReturn");
}
String fieldSearch="";
if(request.getParameter("__fieldSearch")!=null){
fieldSearch=request.getParameter("__fieldSearch");
}
%>
<body leftmargin="0" topmargin="0">
<form name="cscform" method="post" action="RRC030.jsp">
<!----------BEGIN CSC INITIAL ZONE ------------------------>
<%/*=screen.InitialVariable()*/%>
<!----------END CSC INITIAL ZONE -------------------------->
<input type="hidden" name="__cmd" value="">
<input type="hidden" name="__screen" value="RRC030">
<input type="hidden" name="__help" value="">
<input type="hidden" name="__goPage" value="">
<input type="hidden" name="__language" value="<%=up.get("lang")%>">
<input type="hidden" name="__orderBy" value="<%=request.getParameter("__orderBy")%>">
<input type="hidden" name="__helpReturn" value="<%=helpReturn%>">
<input type="hidden" name="__fieldSearch" value="<%=fieldSearch%>">
<input type="hidden" name="__helpName" value="<%=request.getParameter("__helpName")%>">
<input type="hidden" name="__pageCall" value="<%=request.getParameter("__screen")%>">
<input type="hidden" name="__fixCon" value="<%=request.getParameter("__fixCon")%>">
<input type="hidden" name="__export" value="">
<input type="hidden" name="__isprocess" value="0">
<input type="hidden" name="__filter" value="<%=filter%>">
<input type="hidden" name="__calendar" value="">
<script language="javascript">getInputFormatDate()</script>
<br>
<div align="center">
<table class="large" cellpadding="0" cellspacing="1" >
<tr>
<td colspan=2 class="header">RRC030, สถานะใบขออัตรากำลัง</td>
</tr>
<tr>
<td colspan=2>
<table border="0" cellpadding="0" cellspacing="1" align="center" class="largest">
<tr>
<td colspan=2 class="blankspace"></td>
</tr>
<tr>
<td width="40%" align="right"><%=lang.equalsIgnoreCase("tha")?"วันที่ทำข้อสอบ":"Exam Date"%></td>
<td style="text-align: left;">
<input type="text" id="approvedate" name="__approvedate" value="<%=approvedate%>" size="15" maxlength="10" onkeypress="chkIntegerOfDate(this.value,event);" onkeyup="sysIsEdit();formatDate(this);" onblur="chkInputDate(this);" onfocus="this.select();">
<a href="javascript:;" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1','','../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif',1)" onClick="viewCal('approvedate')"><img src="../IMAGES/BUTTON/MAIN/CALENDAR20.gif" alt="Calendar" name="Image1" width="20" height="20" border="0" style="vertical-align: middle"></a>
-
<input type="text" id="approvedate2" name="__approvedate2" value="<%=approvedate2%>" size="15" maxlength="10" onkeypress="chkIntegerOfDate(this.value,event);" onkeyup="sysIsEdit();formatDate(this);" onblur="chkInputDate(this);" onfocus="this.select();">
<a href="javascript:;" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image2','','../IMAGES/BUTTON/SWAP/CALENDAR_SWAP20.gif',1)" onClick="viewCal('approvedate2')"><img src="../IMAGES/BUTTON/MAIN/CALENDAR20.gif" alt="Calendar" name="Image2" width="20" height="20" border="0" style="vertical-align: middle"></a>
</td>
</tr>
<tr>
<td align="right"><%=lang.equalsIgnoreCase("tha")?"ทะเบียนสาขา":"Branch"%></td>
<td colspan="3"><input type="text" name="__branch" size="15" value="<%=branch%>">
<a href="javascript:goHelp('MBRANCHHELP','__branch','')" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('imgBranch','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="Help" name="imgBranch" border="0" align="absmiddle"></a>
<input name="__branch_desc" type="text" id="__branch_desc" value="<%=branch_desc%>" size="50" readonly=""> </td>
</tr>
<tr>
<td align="right"><%=lang.equalsIgnoreCase("tha")?"ตำแหน่ง":"JOBCODEID"%></td>
<td colspan="3"><input type="text" name="__jobcodeid" size="15" value="<%=jobcodeid%>">
<a href="javascript:goHelp('MJOBCODEHELP','__jobcodeid','')" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('imgJobid','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="Help" name="imgJobid" border="0" align="absmiddle"></a>
<input name="__jobcode_desc" type="text" id="__jobcode_desc" value="<%=jobcode_desc%>" size="50" readonly=""> </td>
</tr>
<tr>
<td align="right"><%=dbrec.getField("bu1").getDescription()%>&nbsp; </td>
<td colspan="3"><input type="text" name="__bu1" size="15" value="<%=bu1%>">
<a href="javascript:goHelpBu('MBU1HELP','__bu1','')" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('imgBu1','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="Help" name="imgBu1" border="0" align="absmiddle"></a>
<input name="__bu1_desc" type="text" id="__bu1_desc" value="<%=bu1_desc%>" size="50" readonly=""> </td>
</tr>
<tr>
<td align="right"><%=dbrec.getField("bu2").getDescription()%>&nbsp; </td>
<td colspan="3"><input type="text" name="__bu2" size="15" value="<%=bu2%>">
<a href="javascript:goHelpBu('MBU2HELP','__bu2','')" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('imgBu2','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="Help" name="imgBu2" border="0" align="absmiddle"></a>
<input name="__bu2_desc" type="text" id="__bu2_desc" value="<%=bu2_desc%>" size="50" readonly=""> </td>
</tr>
<tr>
<td align="right"><%=dbrec.getField("bu3").getDescription()%>&nbsp;</td>
<td colspan="3"><input type="text" name="__bu3" size="15" value="<%=bu3%>">
<a href="javascript:goHelpBu('MBU3HELP','__bu3','')" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('imgBu3','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="Help" name="imgBu3" border="0" align="absmiddle"></a>
<input name="__bu3_desc" type="text" value="<%=bu3_desc%>" size="50" readonly=""> </td>
</tr>
<tr>
<td align="right"><%=dbrec.getField("bu4").getDescription()%>&nbsp; </td>
<td colspan="3"><input type="text" name="__bu4" size="15" value="<%=bu4%>">
<a href="javascript:goHelpBu('MBU4HELP','__bu4','')" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('imgBu4','','../IMAGES/BUTTON/SWAP/SEARCH_SWAP20.gif',1)"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" alt="Help" name="imgBu4" border="0" align="absmiddle"></a>
<input name="__bu4_desc" type="text" id="__bu4_desc" value="<%=bu4_desc%>" size="50" readonly=""> </td>
</tr>
<tr>
<td colspan=2 class="blankspace"></td>
</tr>
<tr>
<td colspan="2" style="text-align: center;">
<div id="search" class="btn btn-primary btn-sm" style="padding-top: 2px;">
Search
</div>&nbsp;&nbsp;
<%
if(isprocess.equals("1")){
%>
<div id="export" class="btn btn-primary btn-sm" style="padding-top: 2px;">
Export
</div>
<%
}
%>
</td>
</tr>
</table>
<%
if(isprocess.equals("1")){
%>
<table class="maxsize table table-bordered " border="1" cellpadding="0" cellspacing="1" cols=14 bgcolor="#CCCCCC">
<tr>
<td class="row1 center" colspan='3'></td>
<td class="row1 center" colspan='16'><%=up.get("lang").equals("tha")?"Personality Inventory Test":"Personality Inventory Test"%></td>
<td class="row1 center" >Abstract Reasoning</td>
<td class="row1 center" >Advaneed English</td>
</tr>
<tr>
<td class="row1 center"><%=up.get("lang").equals("tha")?"ชื่อ-นามสกุล":"Name-Surname"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"ตำแหน่ง":"Job Code"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"วันที่ทำข้อสอบ":"Exam Date"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Dominance":"Dominance"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Assertiveness":"Assertiveness"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Need for Achiecement":"Need for Achiecement"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Orderliness":"Orderliness"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Autonomy":"v"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Need for Affiliation":"Need for Affiliation"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Nurturance":"Nurturance"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Endurance":"Endurance"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Need for Recognition":"Need for Recognition"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Initiativeness":"Initiativeness"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Sociability":"Sociability"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Responsibility":"Responsibility"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Honesty":"Honesty"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Positive Attitude":"Positive Attitude"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Self-Control":"Self-Control"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Consistency":"Consistency"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Result":"Result"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Result":"Result"%></td>
</tr>
<%
// >>>>>>>>>>>> Current Zone <<<<<<<<<<<<
String committees = "";
String isappointmentTH = "";
String isappointmentEN = "";
String jobTH = "";
String jobEN = "";
String dateinterview = "";
String timestart = "";
String timeend = "";
String dateavailable = "";
String emp_pass_name_list = "";
String startDate = "";
String ExamData = "0";
String Fullname = "";
String FullnameHis = "";
int Point = 0;
DbInquiry inqcan = new InitialInquiry(up).getDbInquiry("Simmcandidatewithgson");
DbInquiry inqpre = new InitialInquiry(up).getDbInquiry("mprefix");
DbInquiry inqpoint = new InitialInquiry(up).getDbInquiry("Simmappointmentwithgson");
DbInquiry inqappointment = new InitialInquiry(up).getDbInquiry("mappointment");//get date and time
DbInquiry inqrequest = new InitialInquiry(up).getDbInquiry("mrequest");
DbInquiry inqjob = new InitialInquiry(up).getDbInquiry("mjobcode");
DbInquiry inqsourcejob = new InitialInquiry(up).getDbInquiry("msourcejob");
DbInquiry inqcom = new InitialInquiry(up).getDbInquiry("mcommittee");
DbInquiry inqemp = new InitialInquiry(up).getDbInquiry("memployee");
DbInquiry inqstat = new InitialInquiry(up).getDbInquiry("mstatus");
DbInquiry inqapp_his = new InitialInquiry(up).getDbInquiry("mapplicant_his");
inqcan.setColumn("*");
inqcom.putChild(inqemp);
inqcan.putChild(inqjob);
inqcan.putChild(inqappointment);
inqcan.putChild(inqrequest);
inqcan.putChild(inqsourcejob);
inqcan.putChild(inqpoint);
inqcan.putChild(inqstat);
inqcan.setFilter(filter);
//out.print(filter);
inqcan.refresh();
while(inqcan.next()){
committees = "";
ExamData = "";
Simmcandidatewithgson simmcandidatewithgson = (Simmcandidatewithgson) inqcan.getCurrentDbRecord();
Simmappointmentwithgson simmappointmentwithgson = (Simmappointmentwithgson) inqpoint.getCurrentDbRecord();
/* for (McandidateJobrouter.JobRouter jobrouter : simmcandidatewithgson.mcandidateJobrouter.jobrouter) {
if(jobrouter.question != null){
for (McandidateJobrouter.JobRouter.Question question : jobrouter.question){
if(question.ansgroup.value != null ){
ExamData += question.ansgroup.value;
Point = Integer.valueOf(chk.chkNullString(ExamData,"0"));
}
if(question.ansgroup.choice != null){
for (McandidateJobrouter.JobRouter.Question.AnsGroup.Choice choice : question.ansgroup.choice){
}
}
}
}
}*/
inqpre.setFilter("prefixid = '"+simmcandidatewithgson.mcandidatePersonal.prefixid+"'");
inqpre.refresh();
inqpre.next();
inqsourcejob.setFilter("sourcejobid = '"+simmcandidatewithgson.mcandidateOther.sourcejob+"'");
inqsourcejob.refresh();
inqsourcejob.next();
if(simmcandidatewithgson.mcandidatePersonal != null){
dateavailable = c.setCscCalendar((simmcandidatewithgson.mcandidatePersonal.dateavailable).substring(0,10)).getDDMMYYYY();
}else{
dateavailable = "";
}
inqcom.setFilter("requestid = '"+inqpoint.getString("requestid")+"'");
inqcom.refresh();
while(inqcom.next()){
if(committees.equals("")){
committees = inqcom.getString("MEMPLOYEE","fullname");
}else{
committees += ", "+inqcom.getString("MEMPLOYEE","fullname");
}
}
inqapp_his.setFilter("requestid = '"+inqrequest.getString("requestid")+"' and employeeid != '0' ");
inqapp_his.refresh();
while(inqapp_his.next()){
inqemp.setFilter("employeeid = '"+inqapp_his.getString("employeeid")+"'");
inqemp.refresh();
while(inqemp.next()){
if(emp_pass_name_list.equals("")){
emp_pass_name_list = inqemp.getString("fullname");
startDate = c.setCscCalendar(inqemp.getString("startdate")).getDDMMYYYY();
}else{
emp_pass_name_list += ", "+inqemp.getString("fullname");
startDate += ", "+c.setCscCalendar(inqemp.getString("startdate")).getDDMMYYYY();
}
}
}
if(up.get("lang").equals("tha")){
Fullname = inqpre.getString("tdesc")+ simmcandidatewithgson.mcandidatePersonal.fname.tha+" "+simmcandidatewithgson.mcandidatePersonal.lname.tha;
}else{
Fullname = inqpre.getString("edesc")+ simmcandidatewithgson.mcandidatePersonal.fname.eng+" "+simmcandidatewithgson.mcandidatePersonal.lname.eng;
}
%>
<tr>
<td><%=Fullname%></td>
<td><%=up.get("lang").equals("tha")?inqcan.getString("mjobcode","tdesc"):inqcan.getString("mjobcode","tdesc")%></td>
<td><%=inqcan.getString("applicantdate")%></td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>result</td>
<td>result</td>
</tr>
<%
}
%>
</table>
<%
}
%>
</td>
</tr>
<tr>
<td colspan=2 class="blankspace"></td>
</tr>
<tr>
<td colspan=2 class="blankspace"></td>
</tr>
<tr bordercolor="0069B3">
<td colspan=2 class="bottom"></td>
</tr>
</table>
</div>
</form>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page import="com.csc.library.entry.*,com.csc.library.system.*,com.csc.library.session.*,com.csc.library.utilities.*,java.text.DecimalFormat"%>
<%@ page import="java.util.*,java.io.*,java.sql.*"%>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="java.util.Locale" %>
<%@ page import="java.util.Date" %>
<%@ page import="com.csc.library.components.*" %>
<%@ page import="com.csc.library.report.ReportUDF" %>
<%@ page import="com.csc.api.recruit.*" %>
<%@ page import="com.csc.library.databean.Simmcandidatewithgson" %>
<%@ page import="com.csc.library.databean.Simmappointmentwithgson" %>
<%@ page import="com.csc.library.databean.Simmapplicanthisotherwithgson" %>
<%@ page import="com.csc.library.utilities.gsonmapping.*" %>
<%
response.setHeader("Cache-Control","must-revalidate");
response.setContentType("application/vnd.ms-excel; UTF-8");
response.setHeader("Content-Disposition", "inline; filename=" + "export.xls");
CheckNull chk = new CheckNull();
CscCalendar c = new CscCalendar();
ReportUDF udf = new ReportUDF();
UProfile up = null;
if (session !=null){
up = (UProfile)session.getAttribute("userprofile");
}
String lang = up.get("lang");
String filter = chk.chkNullString(request.getParameter("__filter"));
String cmd = chk.chkNullString(request.getParameter("__cmd"));
DbRecord dbrec = new InitialRecord(up).getDbRecord("memployee");
dbrec.setColumn("*");
%>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- <link href="../CSS/TISCO.css" rel="stylesheet" type="text/css"> -->
<script language="JavaScript" src="../JS/SCREEN.js"></script>
<script language="javascript">setLang('<%=up.get("lang")%>');</script>
<style>
img[height="20"] {
padding: 0px;
}
.center{
text-align: center;
}
.wd-40{
width:40%;
}
</style>
</head>
<%
String helpReturn="";
if(request.getParameter("__helpReturn")!=null){
helpReturn=request.getParameter("__helpReturn");
}
String fieldSearch="";
if(request.getParameter("__fieldSearch")!=null){
fieldSearch=request.getParameter("__fieldSearch");
}
%>
<body leftmargin="0" topmargin="0">
<form name="cscform" method="post" action="RRC030.jsp">
<!----------BEGIN CSC INITIAL ZONE ------------------------>
<%/*=screen.InitialVariable()*/%>
<!----------END CSC INITIAL ZONE -------------------------->
<input type="hidden" name="__cmd" value="">
<input type="hidden" name="__screen" value="RRC030">
<input type="hidden" name="__help" value="">
<input type="hidden" name="__goPage" value="">
<input type="hidden" name="__language" value="<%=up.get("lang")%>">
<input type="hidden" name="__orderBy" value="<%=request.getParameter("__orderBy")%>">
<input type="hidden" name="__helpReturn" value="<%=helpReturn%>">
<input type="hidden" name="__fieldSearch" value="<%=fieldSearch%>">
<input type="hidden" name="__helpName" value="<%=request.getParameter("__helpName")%>">
<input type="hidden" name="__pageCall" value="<%=request.getParameter("__screen")%>">
<input type="hidden" name="__fixCon" value="<%=request.getParameter("__fixCon")%>">
<input type="hidden" name="__export" value="">
<input type="hidden" name="__filter" value="<%=filter%>">
<input type="hidden" name="__calendar" value="">
<script language="javascript">getInputFormatDate()</script>
<br>
<table class="maxsize table table-bordered " border="1" cellpadding="0" cellspacing="1" cols=10 >
<tr>
<td class="row1 center" colspan='3'></td>
<td class="row1 center" colspan='16'><%=up.get("lang").equals("tha")?"Personality Inventory Test":"Personality Inventory Test"%></td>
<td class="row1 center" >Abstract Reasoning</td>
<td class="row1 center" >Advaneed English</td>
</tr>
<tr>
<td class="row1 center"><%=up.get("lang").equals("tha")?"ชื่อ-นามสกุล":"Name-Surname"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"ตำแหน่ง":"Job Code"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"วันที่ทำข้อสอบ":"Exam Date"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Dominance":"Dominance"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Assertiveness":"Assertiveness"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Need for Achiecement":"Need for Achiecement"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Orderliness":"Orderliness"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Autonomy":"v"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Need for Affiliation":"Need for Affiliation"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Nurturance":"Nurturance"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Endurance":"Endurance"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Need for Recognition":"Need for Recognition"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Initiativeness":"Initiativeness"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Sociability":"Sociability"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Responsibility":"Responsibility"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Honesty":"Honesty"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Positive Attitude":"Positive Attitude"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Self-Control":"Self-Control"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Consistency":"Consistency"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Result":"Result"%></td>
<td class="row1 center"><%=up.get("lang").equals("tha")?"Result":"Result"%></td>
</tr>
<%
String committees = "";
String isappointmentTH = "";
String isappointmentEN = "";
String jobTH = "";
String jobEN = "";
String dateinterview = "";
String timestart = "";
String timeend = "";
String dateavailable = "";
String emp_pass_name_list = "";
String startDate = "";
String ExamData = "0";
String Fullname = "";
String FullnameHis = "";
int Point = 0;
DbInquiry inqcan = new InitialInquiry(up).getDbInquiry("Simmcandidatewithgson");
DbInquiry inqpre = new InitialInquiry(up).getDbInquiry("mprefix");
DbInquiry inqpoint = new InitialInquiry(up).getDbInquiry("Simmappointmentwithgson");
DbInquiry inqappointment = new InitialInquiry(up).getDbInquiry("mappointment");//get date and time
DbInquiry inqrequest = new InitialInquiry(up).getDbInquiry("mrequest");
DbInquiry inqjob = new InitialInquiry(up).getDbInquiry("mjobcode");
DbInquiry inqsourcejob = new InitialInquiry(up).getDbInquiry("msourcejob");
DbInquiry inqcom = new InitialInquiry(up).getDbInquiry("mcommittee");
DbInquiry inqemp = new InitialInquiry(up).getDbInquiry("memployee");
DbInquiry inqstat = new InitialInquiry(up).getDbInquiry("mstatus");
DbInquiry inqapp_his = new InitialInquiry(up).getDbInquiry("mapplicant_his");
inqcan.setColumn("*");
inqcom.putChild(inqemp);
inqcan.putChild(inqjob);
inqcan.putChild(inqappointment);
inqcan.putChild(inqrequest);
inqcan.putChild(inqsourcejob);
inqcan.putChild(inqpoint);
inqcan.putChild(inqstat);
inqcan.setFilter(filter);
inqcan.refresh();
while(inqcan.next()){
committees = "";
ExamData = "";
Simmcandidatewithgson simmcandidatewithgson = (Simmcandidatewithgson) inqcan.getCurrentDbRecord();
Simmappointmentwithgson simmappointmentwithgson = (Simmappointmentwithgson) inqpoint.getCurrentDbRecord();
inqpre.setFilter("prefixid = '"+simmcandidatewithgson.mcandidatePersonal.prefixid+"'");
inqpre.refresh();
inqpre.next();
inqsourcejob.setFilter("sourcejobid = '"+simmcandidatewithgson.mcandidateOther.sourcejob+"'");
inqsourcejob.refresh();
inqsourcejob.next();
/*for (McandidateJobrouter.JobRouter jobrouter : simmcandidatewithgson.mcandidateJobrouter.jobrouter) {
if(jobrouter.question != null){
for (McandidateJobrouter.JobRouter.Question question : jobrouter.question){
if(question.ansgroup.value != null ){
ExamData += question.ansgroup.value;
Point = Integer.valueOf(chk.chkNullString(ExamData,"0"));
}
if(question.ansgroup.choice != null){
for (McandidateJobrouter.JobRouter.Question.AnsGroup.Choice choice : question.ansgroup.choice){
}
}
}
}
}*/
if(up.get("lang").equals("tha")){
Fullname = inqpre.getString("tdesc")+ simmcandidatewithgson.mcandidatePersonal.fname.tha+" "+simmcandidatewithgson.mcandidatePersonal.lname.tha;
}else{
Fullname = inqpre.getString("edesc")+ simmcandidatewithgson.mcandidatePersonal.fname.eng+" "+simmcandidatewithgson.mcandidatePersonal.lname.eng;
}
%>
<tr>
<td><%=Fullname%></td>
<td><%=up.get("lang").equals("tha")?inqcan.getString("mjobcode","tdesc"):inqcan.getString("mjobcode","tdesc")%></td>
<td><%=inqcan.getString("applicantdate")%></td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>1</td>
<td>result</td>
<td>result</td>
</tr>
<%
}
%>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment