UPDATE EMV_RECRUIT

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