UPDATE EMV_RECRUIT

parent 8f6e0af0
......@@ -10,6 +10,7 @@
up = (UProfile) session.getAttribute("userprofile");
}
String action = chk.chkNullString(request.getParameter("__action"), "view");
String isActPosition = "0";
%>
<html ng-app="RECRUIT">
<head>
......@@ -34,33 +35,38 @@
<script type='text/javascript' src='../RECRUIT/js/services.js'></script>
<script type='text/javascript' src='JS/REC_APPLICANT/REC_APPLICANT.Controller.js'></script>
<script type='text/javascript'>
setLang('<%=up.get("lang")%>');
$(function () {
let now = '<%=new CscCalendar().getYYYYMMDD()%>'
let user = '<%=up.get("user")%>'
let action = '<%=action%>'
let scope = angular.element(document.cscform).scope()
scope.$apply(function () {
scope.action = action
scope.now = now
scope.user = user
setLang('<%=up.get("lang")%>');
$(function () {
let now = '<%=new CscCalendar().getYYYYMMDD()%>'
let userJobid = '<%=up.get("job")%>'
let userBu3 = '<%=up.get("bu3")%>'
let action = '<%=action%>'
let userBu2 = '<%=up.get("bu2")%>'
let isActPosition = '<%=isActPosition%>'
let scope = angular.element(document.cscform).scope()
scope.$apply(function () {
scope.action = action
scope.now = now
scope.user.jobid = userJobid
scope.user.bu3 = userBu3
scope.userBu2 = userBu2
})
})
})
function goHelp(helpName,inputName){
with(document.cscform){
var helpReturn="";
var fcon=__fixCon.value;
if (inputName=="__employeeid") {
helpReturn = inputName+":employeeid,MEMPLOYEE_FULLNAME:fullname";
} else if (inputName=="__requestid") {
helpReturn = inputName+":requestid,MREQUEST_JOBDESC:MJOBCODE.tdesc";
} else if (inputName=="__jobid") {
helpReturn = inputName+":jobcodeid,MJOBCODE_TDESC:tdesc";
function goHelp(helpName,inputName){
with(document.cscform){
var helpReturn="";
var fcon=__fixCon.value;
if (inputName=="__employeeid") {
helpReturn = inputName+":employeeid,MEMPLOYEE_FULLNAME:fullname";
} else if (inputName=="__requestid") {
helpReturn = inputName+":requestid,MREQUEST_JOBDESC:MJOBCODE.tdesc";
} else if (inputName=="__jobid") {
helpReturn = inputName+":jobcodeid,MJOBCODE_TDESC:tdesc";
}
linkHelp_Return(helpName,helpReturn);
__fixCon.value = "";
}
linkHelp_Return(helpName,helpReturn);
__fixCon.value = "";
}
}
</script>
<section ng-controller="REC_APPLICANT">
<div class="container csc-content">
......@@ -70,7 +76,7 @@
<input type="hidden" name="__screen" value="">
<input type="hidden" name="__fixCon" value="">
<div ng-hide="isReady" class='loading-page'>
<div class='spiner'></div>
<div class='spiner'></div>
</div>
<div class="csc-block">
......@@ -82,7 +88,7 @@
<div class="row">
<div class="form-group">
<div class="col-xs-4">
<label class="control-label label-right">เลขที่ใบสมัครงาน</label>
<label class="control-label label-right">รหัสใบขออัตรากำลัง</label>
</div>
<div class="col-xs-8">
<div class="col-xs-3">
......@@ -142,7 +148,7 @@
</div>
</div>
</div>
</div>
</div>
<%-- search name--%>
<div class="row">
......@@ -172,12 +178,12 @@
<div class="table-responsive">
<table class="table table-head table-hover table-bordered table-title-left">
<tr>
<th class='table-title' colspan='7'>รายชื่อผู้สมัครงาน (บุคคลภายใน)</th>
<th class='table-title' colspan='8'>รายชื่อผู้สมัครงาน (บุคคลภายใน)</th>
</tr>
<tr>
<th>
<a ng-click="sortByIn('requestid')">เลขที่ใบสมัครงาน</a>
<span class="sortorder" ng-show="propertyNameIn === 'requestid'" ng-class="{reverse: reverseIn}"></span>
<a ng-click="sortByIn('applicantid')">เลขที่ใบสมัครงาน</a>
<span class="sortorder" ng-show="propertyNameIn === 'applicantid'" ng-class="{reverse: reverseIn}"></span>
</th>
<th>
<a ng-click="sortByIn('employeeid')">รหัสพนักงาน</a>
......@@ -193,16 +199,18 @@
<a ng-click="sortByIn('applicantdate')">วันที่สมัคร</a>
<span class="sortorder" ng-show="propertyNameIn === 'applicantdate'" ng-class="{reverse: reverseIn}"></span>
</th>
<th>สถานะ</th>
<th>ต้องการเรียกสัมภาษณ์</th>
</tr>
<tbody ng-repeat="app in applicants | filter: filterBu | filter : filterInternal | filter : availableRequest | filter : search | orderBy:propertyNameIn:reverseIn">
<tbody ng-repeat="app in applicants | filter : search | orderBy:propertyNameIn:reverseIn">
<tr>
<td class='center'>{{app.requestid}}</td>
<td class='center'>{{app.applicantid}}</td>
<td class='center'>{{app.employeeid}}</td>
<td class='center'><a style="color: #4d4d4d !important;" ng-click="goPages(app.applicantid)"><master-prefix code="{{app.personal.prefixid}}"></master-prefix> {{app.personal.fname[lang]}} - {{app.personal.lname[lang]}}</a></td>
<td class='center'><master-jobcode code="{{app.oldjobid}}"></master-jobcode></td>
<td class='center'><master-jobcode code="{{app.jobid}}"></master-jobcode></td>
<td class='center'>{{app.applicantdate | date: 'dd/MM/yyyy'}}</td>
<td class='center'>{{app.status_detail}}</td>
<td class='center'>
<label class="radio-inline"><input type="radio" name="optWantInterViewIN{{$index}}" ng-click="updateWantInterview(app.applicantid, $event)" ng-model="app.wantinterview" ng-value="'0'"><swaplang code="SW000280">No</swaplang></label>
<label class="radio-inline"><input type="radio" name="optWantInterViewIN{{$index}}" ng-click="updateWantInterview(app.applicantid, $event)" ng-model="app.wantinterview" ng-value="'1'"><swaplang code="SW000281">Yes</swaplang></label>
......@@ -216,11 +224,11 @@
<div class="table-responsive">
<table class="table table-head table-hover table-bordered table-title-left">
<tr>
<th class='table-title' colspan='5'>รายชื่อผู้สมัครงาน (บุคคลภายนอก)</th>
<th class='table-title' colspan='6'>รายชื่อผู้สมัครงาน (บุคคลภายนอก)</th>
</tr>
<tr>
<th>
<a ng-click="sortByEx('requestid')">เลขที่ใบสมัครงาน</a>
<a ng-click="sortByEx('applicantid')">เลขที่ใบสมัครงาน</a>
<span class="sortorder" ng-show="propertyNameEx === 'requestid'" ng-class="{reverse: reverseEx}"></span>
</th>
<th>
......@@ -232,17 +240,19 @@
<a ng-click="sortByEx('applicantdate')">วันที่สมัคร</a>
<span class="sortorder" ng-show="propertyNameEx === 'applicantdate'" ng-class="{reverse: reverseEx}"></span>
</th>
<th>สถานะ</th>
<th>ต้องการเรียกสัมภาษณ์</th>
</tr>
<tbody ng-repeat="app in applicants | filter: filterBu | filter : filterExternal | filter : availableRequest | filter : search | orderBy:propertyNameEx:reverseEx" >
<tbody ng-repeat="app in applicants | filter : search | orderBy:propertyNameEx:reverseEx" >
<tr>
<td class='center'>{{app.requestid}}</td>
<td class='center'>{{app.applicantid}}</td>
<td class='center'><a style="color: #4d4d4d !important;" ng-click="goPages(app.applicantid)"><master-prefix code="{{app.personal.prefixid}}"></master-prefix> {{app.personal.fname[lang]}} - {{app.personal.lname[lang]}}</a></td>
<td class='center'><master-jobcode code="{{app.jobid}}"></master-jobcode></td>
<td class='center'>{{app.applicantdate | date: 'dd/MM/yyyy'}}</td>
<td class='center'>{{app.status_detail}}</td>
<td class='center'>
<label class="radio-inline"><input type="radio" name="optWantInterViewEX{{$index}}" ng-click="updateWantInterview(app.applicantid, $event)" ng-model="app.wantinterview" ng-value="'0'"><swaplang code="SW000280">No</swaplang></label>
<label class="radio-inline"><input type="radio" name="optWantInterViewEX{{$index}}" ng-click="updateWantInterview(app.applicantid, $event)" ng-model="app.wantinterview" ng-value="'1'"><swaplang code="SW000281">Yes</swaplang></label>
<label class="radio-inline"><input type="radio" name="optWantInterViewEX{{$index}}" ng-click="updateWantInterview(app.applicantid, $event , app)" ng-model="app.wantinterview" ng-value="'1'"><swaplang code="SW000281">Yes</swaplang></label>
</td>
</tr>
</tbody>
......
......@@ -9,7 +9,6 @@
if (session != null) {
up = (UProfile) session.getAttribute("userprofile");
}
String action = chk.chkNullString(request.getParameter("__action"), "view");
%>
<html ng-app="RECRUIT">
<head>
......@@ -34,33 +33,38 @@
<script type='text/javascript' src='../RECRUIT/js/services.js'></script>
<script type='text/javascript' src='JS/REC_CANDIDATE/REC_CANDIDATE.Controller.js'></script>
<script type='text/javascript'>
setLang('<%=up.get("lang")%>');
$(function () {
let now = '<%=new CscCalendar().getYYYYMMDD()%>'
let user = '<%=up.get("user")%>'
let action = '<%=action%>'
let scope = angular.element(document.cscform).scope()
scope.$apply(function () {
scope.action = action
scope.now = now
scope.user = user
setLang('<%=up.get("lang")%>');
$(function () {
let now = '<%=new CscCalendar().getYYYYMMDD()%>'
let userJobid = '<%=up.get("job")%>'
let userBu3 = '<%=up.get("bu3")%>'
let action = '<%=action%>'
let userBu2 = '<%=up.get("bu2")%>'
let isActPosition = '<%=isActPosition%>'
let scope = angular.element(document.cscform).scope()
scope.$apply(function () {
scope.action = action
scope.now = now
scope.userJobid = userJobid
scope.userBu3 = userBu3
scope.userBu2 = userBu2
})
})
})
function goHelp(helpName,inputName){
with(document.cscform){
var helpReturn="";
var fcon=__fixCon.value;
if (inputName=="__employeeid") {
helpReturn = inputName+":employeeid,MEMPLOYEE_FULLNAME:fullname";
} else if (inputName=="__requestid") {
helpReturn = inputName+":requestid,MREQUEST_JOBDESC:MJOBCODE.tdesc";
} else if (inputName=="__jobid") {
helpReturn = inputName+":jobcodeid,MJOBCODE_TDESC:tdesc";
function goHelp(helpName,inputName){
with(document.cscform){
var helpReturn="";
var fcon=__fixCon.value;
if (inputName=="__employeeid") {
helpReturn = inputName+":employeeid,MEMPLOYEE_FULLNAME:fullname";
} else if (inputName=="__requestid") {
helpReturn = inputName+":requestid,MREQUEST_JOBDESC:MJOBCODE.tdesc";
} else if (inputName=="__jobid") {
helpReturn = inputName+":jobcodeid,MJOBCODE_TDESC:tdesc";
}
linkHelp_Return(helpName,helpReturn);
__fixCon.value = "";
}
linkHelp_Return(helpName,helpReturn);
__fixCon.value = "";
}
}
</script>
<section ng-controller="REC_CANDIDATE">
<div class="container csc-content">
......@@ -70,7 +74,7 @@
<input type="hidden" name="__screen" value="">
<input type="hidden" name="__fixCon" value="">
<div ng-hide="isReady" class='loading-page'>
<div class='spiner'></div>
<div class='spiner'></div>
</div>
<div class="csc-block">
......@@ -82,7 +86,7 @@
<div class="row">
<div class="form-group">
<div class="col-xs-4">
<label class="control-label label-right">เลขที่ใบสมัครงาน</label>
<label class="control-label label-right">รหัสใบขออัตรากำลัง</label>
</div>
<div class="col-xs-8">
<div class="col-xs-3">
......@@ -176,8 +180,8 @@
</tr>
<tr>
<th>
<a ng-click="sortByIn('requestid')">เลขที่ใบสมัครงาน</a>
<span class="sortorder" ng-show="propertyNameIn === 'requestid'" ng-class="{reverse: reverseIn}"></span>
<a ng-click="sortByIn('applicantid')">เลขที่ใบสมัครงาน</a>
<span class="sortorder" ng-show="propertyNameIn === 'applicantid'" ng-class="{reverse: reverseIn}"></span>
</th>
<th>
<a ng-click="sortByIn('employeeid')">รหัสพนักงาน</a>
......@@ -194,9 +198,9 @@
<span class="sortorder" ng-show="propertyNameIn === 'applicantdate'" ng-class="{reverse: reverseIn}"></span>
</th>
</tr>
<tbody ng-repeat="app in applicants | filter: filterBu | filter : filterInternal | filter : availableRequest | filter : search | orderBy:propertyNameIn:reverseIn">
<tbody ng-repeat="app in applicants | filter : search | orderBy:propertyNameIn:reverseIn">
<tr>
<td class='center'>{{app.requestid}}</td>
<td class='center'>{{app.applicantid}}</td>
<td class='center'>{{app.employeeid}}</td>
<td class='center'><a style="color: #4d4d4d !important;" ng-click="goPages(app.candidateid)"><master-prefix code="{{app.personal.prefixid}}"></master-prefix> {{app.personal.fname[lang]}} - {{app.personal.lname[lang]}}</a></td>
<td class='center'><master-jobcode code="{{app.oldjobid}}"></master-jobcode></td>
......@@ -215,8 +219,8 @@
</tr>
<tr>
<th>
<a ng-click="sortByEx('requestid')">เลขที่ใบสมัครงาน</a>
<span class="sortorder" ng-show="propertyNameEx === 'requestid'" ng-class="{reverse: reverseEx}"></span>
<a ng-click="sortByEx('applicantid')">เลขที่ใบสมัครงาน</a>
<span class="sortorder" ng-show="propertyNameEx === 'applicantid'" ng-class="{reverse: reverseEx}"></span>
</th>
<th>
<a ng-click="sortByEx('personal.fname.$')">ชื่อ - นามสกุล</a>
......@@ -228,9 +232,9 @@
<span class="sortorder" ng-show="propertyNameEx === 'applicantdate'" ng-class="{reverse: reverseEx}"></span>
</th>
</tr>
<tbody ng-repeat="app in applicants | filter: filterBu | filter : filterExternal | filter : availableRequest | filter : search | orderBy:propertyNameEx:reverseEx" >
<tbody ng-repeat="app in applicants | filter : search | orderBy:propertyNameEx:reverseEx" >
<tr>
<td class='center'>{{app.requestid}}</td>
<td class='center'>{{app.applicantid}}</td>
<td class='center'><a style="color: #4d4d4d !important;" ng-click="goPages(app.candidateid)"><master-prefix code="{{app.personal.prefixid}}"></master-prefix> {{app.personal.fname[lang]}} - {{app.personal.lname[lang]}}</a></td>
<td class='center'><master-jobcode code="{{app.jobid}}"></master-jobcode></td>
<td class='center'>{{app.applicantdate | date: 'dd/MM/yyyy'}}</td>
......
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