Commit 7c8d24ff by peema_phongam

update : interview result

parent 15e88ffc
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
} }
String p_candidateid = chk.chkNullString(request.getParameter("candidateid")); String p_candidateid = chk.chkNullString(request.getParameter("candidateid"));
String p_jobid = chk.chkNullString(request.getParameter("jobid"));
String p_committeeid = chk.chkNullString(request.getParameter("committeeid")); String p_committeeid = chk.chkNullString(request.getParameter("committeeid"));
String p_judge = chk.chkNullString(request.getParameter("judge")); String p_judge = chk.chkNullString(request.getParameter("judge"));
String p_notedit = chk.chkNullString(request.getParameter("notedit"), "false"); String p_notedit = chk.chkNullString(request.getParameter("notedit"), "false");
...@@ -66,6 +67,7 @@ ...@@ -66,6 +67,7 @@
<form name="cscform" class="form-horizontal" method="post"> <form name="cscform" class="form-horizontal" method="post">
<input type='hidden' name='candidateid' value='<%=p_candidateid%>'/> <input type='hidden' name='candidateid' value='<%=p_candidateid%>'/>
<input type='hidden' name='committeeid' value='<%=p_committeeid%>'/> <input type='hidden' name='committeeid' value='<%=p_committeeid%>'/>
<input type='hidden' name='jobid' value='<%=p_jobid%>'/>
<input type='hidden' name='judge' value='<%=p_judge%>'/> <input type='hidden' name='judge' value='<%=p_judge%>'/>
<input type='hidden' name='notedit' value='<%=p_notedit%>'/> <input type='hidden' name='notedit' value='<%=p_notedit%>'/>
<div ng-hide="isReady" class='loading-page'> <div ng-hide="isReady" class='loading-page'>
...@@ -120,15 +122,30 @@ ...@@ -120,15 +122,30 @@
</tr> </tr>
<tr> <tr>
<td class='center' colspan="1">Job Name</td> <td class='center' colspan="1">Job Name</td>
<td class='center' colspan='2'><input ng-disabled='headdata.status == 2 || headdata.judge != "1" || notedit ' type="text" ng-model="formdata.form[0].jobName"></td> <td class='center' colspan='2'>
<%-- <input ng-disabled='headdata.status == 2 || headdata.judge != "1" || notedit ' type="text" ng-model="formdata.form[0].jobName">--%>
{{jobDetail.tdesc}}
</td>
<td class='center' colspan='2' rowspan="2"><input ng-disabled='headdata.status == 2 || headdata.judge != "1" || notedit' type="text" ng-model="formdata.form[0].basicallyScore"> คะแนน</td> <td class='center' colspan='2' rowspan="2">
<td class='center' colspan='3' rowspan="2"><input ng-disabled='headdata.status == 2 || headdata.judge != "1" || notedit' type="text" ng-model="formdata.form[0].managementScore"> คะแนน</td> <%-- <input ng-disabled='headdata.status == 2 || headdata.judge != "1" || notedit' type="text" ng-model="formdata.form[0].basicallyScore"> คะแนน--%>
<td class='center' colspan='2' rowspan="2"><input ng-disabled='headdata.status == 2 || headdata.judge != "1" || notedit' type="text" ng-model="formdata.form[0].sumScore"> คะแนน</td> {{jobDetail.workcost1 | number:2}} คะแนน
</td>
<td class='center' colspan='3' rowspan="2">
<%-- <input ng-disabled='headdata.status == 2 || headdata.judge != "1" || notedit' type="text" ng-model="formdata.form[0].managementScore"> คะแนน--%>
{{jobDetail.workcost2 | number:2}} คะแนน
</td>
<td class='center' colspan='2' rowspan="2">
<%-- <input ng-disabled='headdata.status == 2 || headdata.judge != "1" || notedit' type="text" ng-model="formdata.form[0].sumScore"> คะแนน--%>
{{getSumWorkCost() | number:2}} คะแนน
</td>
</tr> </tr>
<tr> <tr>
<td class='center' colspan="1">Job Code</td> <td class='center' colspan="1">Job Code</td>
<td class='center' colspan='2'><input ng-disabled='headdata.status == 2 || headdata.judge != "1" || notedit' type="text" ng-model="formdata.form[0].jobCode"></td> <td class='center' colspan='2'>
<%-- <input ng-disabled='headdata.status == 2 || headdata.judge != "1" || notedit' type="text" ng-model="formdata.form[0].jobCode">--%>
{{jobDetail.id}}
</td>
</tr> </tr>
</table> </table>
</div> </div>
...@@ -138,8 +155,9 @@ ...@@ -138,8 +155,9 @@
<th class='text-left' colspan='10'>ประเมินค่างานจากผลสัมภาษณ์ โดยผู้บริหาร / ผู้จัดการฝ่าย</th> <th class='text-left' colspan='10'>ประเมินค่างานจากผลสัมภาษณ์ โดยผู้บริหาร / ผู้จัดการฝ่าย</th>
</tr> </tr>
<tr> <tr>
<td class='text-left' colspan='10'>คาดว่าผู้สมัครจะสามารถปฏิบัติงานได้ตามมาตรฐานงานที่ <input ng-disabled='headdata.status == 2 || headdata.judge != "1" || notedit' type="text" <td class='text-left' colspan='10'>
ng-model="formdata.form[0].estimatePercentJob"> % ของตำแหน่งงาน <%-- คาดว่าผู้สมัครจะสามารถปฏิบัติงานได้ตามมาตรฐานงานที่ <input ng-disabled='headdata.status == 2 || headdata.judge != "1" || notedit' type="text" ng-model="formdata.form[0].estimatePercentJob"> % ของตำแหน่งงาน--%>
คาดว่าผู้สมัครจะสามารถปฏิบัติงานได้ตามมาตรฐานงานที่ {{getResultDept() | number:0}} % ของตำแหน่งงาน
</td> </td>
</tr> </tr>
...@@ -171,14 +189,17 @@ ...@@ -171,14 +189,17 @@
</tr> </tr>
<tr ng-repeat="$item in formdata.form[0].incentives"> <tr ng-repeat="$item in formdata.form[0].incentives">
<td class='center'>{{$index + 1}}</td> <td class='center'>{{$index + 1}}</td>
<td class='center'>{{$item.name}}</td> <td class='center'><input ng-disabled='headdata.status == 2 || headdata.judge != "1" || notedit' type="text" ng-model="$item.name"></td>
<td class='center'><input ng-disabled='headdata.status == 2 || headdata.judge != "1" || notedit' type="text" ng-model="$item.cost"></td> <td class='center'><input ng-disabled='headdata.status == 2 || headdata.judge != "1" || notedit' type="text" ng-model="$item.cost"></td>
<td class='center'>บาท/วัน/เดือน</td> <td class='center'>บาท/วัน/เดือน</td>
<td class='center'>เริ่มจ่ายตั้งแต่วันที่</td> <td class='center'>เริ่มจ่ายตั้งแต่วันที่</td>
<td class='center'><input ng-disabled='headdata.status == 2 || headdata.judge != "1" || notedit' type="text" ng-model="$item.startDate"></td> <td class='center'><input ng-disabled='headdata.status == 2 || headdata.judge != "1" || notedit' type="text" ng-model="$item.startDate"></td>
</tr> </tr>
<tr> <tr>
<td class='text-right' colspan='5'>ลงชื่อ <input ng-readonly="true" style="width: 20%" type="text" ng-model="formdata.form[0].sign.manager"></td> <td class='text-right' colspan='5'>
<%-- ลงชื่อ <input ng-readonly="true" style="width: 20%" type="text" ng-model="formdata.form[0].sign.manager">--%>
ลงชื่อ {{(listJudge | filter: {judge: '1'})[0].committee_fullname }}
</td>
<td class='center'> ผู้บริหาร / ผู้จัดการฝ่าย</td> <td class='center'> ผู้บริหาร / ผู้จัดการฝ่าย</td>
</tr> </tr>
...@@ -223,7 +244,10 @@ ...@@ -223,7 +244,10 @@
<td class='text-left'>บาท</td> <td class='text-left'>บาท</td>
</tr> </tr>
<tr> <tr>
<td class='text-right' colspan='7'>ลงชื่อ <input ng-readonly="true" style="width: 20%" type="text" ng-model="formdata.form[0].sign.hr"></td> <td class='text-right' colspan='7'>
<%-- ลงชื่อ <input ng-readonly="true" style="width: 20%" type="text" ng-model="formdata.form[0].sign.hr">--%>
ลงชื่อ {{(listJudge | filter: {judge: '2'})[0].committee_fullname }}
</td>
<td class='center' colspan='2'> หน.ผ./ ผจก.ฝ่ายบุคคล</td> <td class='center' colspan='2'> หน.ผ./ ผจก.ฝ่ายบุคคล</td>
</tr> </tr>
</table> </table>
...@@ -256,7 +280,10 @@ ...@@ -256,7 +280,10 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td class='text-right' colspan='8'>ลงชื่อ <input ng-readonly="true" style="width: 20%" type="text" ng-model="formdata.form[0].sign.ex"></td> <td class='text-right' colspan='8'>
<%-- ลงชื่อ <input ng-readonly="true" style="width: 20%" type="text" ng-model="formdata.form[0].sign.ex">--%>
ลงชื่อ {{(listJudge | filter: {judge: '3'})[0].committee_fullname }}
</td>
<td class='center'> ผู้บริหาร BU</td> <td class='center'> ผู้บริหาร BU</td>
</tr> </tr>
</table> </table>
...@@ -287,7 +314,10 @@ ...@@ -287,7 +314,10 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td class='text-right' style="width: 75%">ลงชื่อ <input ng-readonly="true" style="width: 25%" type="text" ng-model="formdata.form[0].sign.seniorEx"></td> <td class='text-right' style="width: 75%">
<%-- ลงชื่อ <input ng-readonly="true" style="width: 25%" type="text" ng-model="formdata.form[0].sign.seniorEx">--%>
ลงชื่อ {{(listJudge | filter: {judge: '4'})[0].committee_fullname }}
</td>
<td class='center'> Seninor Ex Director / COO BU</td> <td class='center'> Seninor Ex Director / COO BU</td>
</tr> </tr>
</table> </table>
......
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
</div> </div>
<input type='hidden' name='candidateid'/> <input type='hidden' name='candidateid'/>
<input type='hidden' name='judge'/> <input type='hidden' name='judge'/>
<input type='hidden' name='jobid'/>
<input type='hidden' name='committeeid' value='<%=up.get("employeeid")%>' /> <input type='hidden' name='committeeid' value='<%=up.get("employeeid")%>' />
<input type='hidden' name='lang' value="<%=up.get("lang")%>"/> <input type='hidden' name='lang' value="<%=up.get("lang")%>"/>
<input type="hidden" name="__applicantid"> <input type="hidden" name="__applicantid">
......
'use strict' 'use strict'
angular.module('APS_INTERVIEW').controller('APS_FORM_INTERVIEW_DHAS_RESULT', ['$scope', '$http', '$sce', 'InterviewcandidateCtrl', function($scope, $http, $sce, InterviewcandidateCtrl){ angular.module('APS_INTERVIEW').controller('APS_FORM_INTERVIEW_DHAS_RESULT', ['$scope', '$http', '$sce', 'InterviewcandidateCtrl', 'RecService', function($scope, $http, $sce, InterviewcandidateCtrl, RecService){
$scope.candidateid = $('input[name="candidateid"]').val() $scope.candidateid = $('input[name="candidateid"]').val()
$scope.committeeid = $('input[name="committeeid"]').val() $scope.committeeid = $('input[name="committeeid"]').val()
$scope.jobid = $('input[name="jobid"]').val()
$scope.judge = $('input[name="judge"]').val() $scope.judge = $('input[name="judge"]').val()
$scope.notedit = ($('input[name="notedit"]').val() == 'true') $scope.notedit = ($('input[name="notedit"]').val() == 'true')
$scope.lang = $('input[name="lang"]').val() $scope.lang = $('input[name="lang"]').val()
$scope.contextPath = '' $scope.contextPath = ''
$scope.listJudge = []
$scope.jobDetail = {}
$scope.headdata = { $scope.headdata = {
fullname: '', fullname: '',
job: '', job: '',
...@@ -101,24 +104,36 @@ angular.module('APS_INTERVIEW').controller('APS_FORM_INTERVIEW_DHAS_RESULT', ['$ ...@@ -101,24 +104,36 @@ angular.module('APS_INTERVIEW').controller('APS_FORM_INTERVIEW_DHAS_RESULT', ['$
committeeid: $scope.committeeid, committeeid: $scope.committeeid,
judge: $scope.judge judge: $scope.judge
}; };
InterviewcandidateCtrl.manageInterviewForm.getListJudge( $scope.myparam).$promise.then(function(data){
$scope.listJudge = data.result
})
RecService.RestMjobcode.getQuery({id: $scope.jobid}).$promise.then(function(data){
$scope.jobDetail = data.result
})
InterviewcandidateCtrl.manageInterviewForm.query($scope.myparam).$promise.then(function(data){ InterviewcandidateCtrl.manageInterviewForm.query($scope.myparam).$promise.then(function(data){
$scope.headdata = data.header $scope.headdata = data.header
$scope.formdata = data.apsform $scope.formdata = data.apsform
$scope.previous = data.previous $scope.previous = data.previous
setFormAPS() setFormAPS()
$scope.isReady = true $scope.isReady = true
}) })
$scope.$watch('formdata.form', function (data) {
let listActor = ['manager', 'hr', 'ex', 'seniorEx']
if (data[0]) {
$scope.formdata.form[0].sign[listActor[parseInt('4')-1]] = $scope.headdata.committee_fullname
}
})
// $scope.$watch('formdata.form', function (data) {
// let listActor = ['manager', 'hr', 'ex', 'seniorEx']
// if (data[0]) {
// $scope.formdata.form[0].sign[listActor[parseInt('4')-1]] = $scope.headdata.committee_fullname
// }
// })
$scope.getSumWorkCost = () => {
return parseInt($scope.jobDetail.workcost1) + parseInt($scope.jobDetail.workcost2)
}
$scope.getResultHr = () => { $scope.getResultHr = () => {
let result = 0 let result = 0
......
...@@ -162,6 +162,7 @@ angular.module('APS_INTERVIEW').controller('listCandidate', ['$scope', '$http', ...@@ -162,6 +162,7 @@ angular.module('APS_INTERVIEW').controller('listCandidate', ['$scope', '$http',
let jobid = list.jobid let jobid = list.jobid
$('input[name="candidateid"]').val(list.candidateid); $('input[name="candidateid"]').val(list.candidateid);
$('input[name="judge"]').val(list.judge); $('input[name="judge"]').val(list.judge);
$('input[name="jobid"]').val(list.jobid);
$('form[name="cscform"]').attr('target','myform'); $('form[name="cscform"]').attr('target','myform');
if ($scope.dbName.toUpperCase() === ("STD_NEW")) { if ($scope.dbName.toUpperCase() === ("STD_NEW")) {
pageName = "../APS_FORM_INTERVIEW_DHAS.jsp"; pageName = "../APS_FORM_INTERVIEW_DHAS.jsp";
......
...@@ -23,7 +23,14 @@ services.factory('InterviewcandidateCtrl', function($resource){ ...@@ -23,7 +23,14 @@ services.factory('InterviewcandidateCtrl', function($resource){
}, },
save: { save: {
method: 'PUT' method: 'PUT'
} },
getListJudge: {
method: 'GET',
url: '/hr/api/empview/aps_rec/ObjectiveApsInterview/getListJudge/:candidateid',
params: {
candidateid: '@candidateid'
}
},
}) })
}; };
}); });
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