Commit 7af3e659 by peema_phongam

กำหนดประธานกรรมการ / ใบประเมินแผนกสรรหา

parent eb9d6977
......@@ -18240,4 +18240,22 @@ Terminate,พนักงานพ้นสภาพ]]>
</VALUE>
</DATA>
</DSD_TYPE>
<REFEREE_LEVEL>
<DATA>
<KEY>
<![CDATA[0]]>
</KEY>
<VALUE>
<![CDATA[กรรมการ,กรรมการ]]>
</VALUE>
</DATA>
<DATA>
<KEY>
<![CDATA[1]]>
</KEY>
<VALUE>
<![CDATA[ประธาน,ประธาน]]>
</VALUE>
</DATA>
</REFEREE_LEVEL>
</SYSTEMCODE>
<?xml version="1.0" encoding="UTF-8"?>
<MEMPL_COMMITTEE desc_eng="Committee Table" desc_thai="ทะเบียนรายละเอียดคณะกรรมการ" editcheck="true" fieldsystem="*" mainhelp="MEMPL_COMMITTEEHELP" referhelp="MEMPL_COMMITTEEHELP" mainkey="EMPLOYEEID" protype="table" deleteflag="true" >
<FIELD>
<CANDIDATEID lang="A" encrypt="false" log="false" type="String" >
<APPLICANTID lang="A" encrypt="false" log="false" type="String" >
<KEY>1</KEY>
<WIDTH>15</WIDTH>
<RELATION>MAPPLICANT</RELATION>
<DESC_ENG>Applicant ID</DESC_ENG>
<DESC_THAI>รหัสผู้สมัคร</DESC_THAI>
<COMPONENT type='text'>
<SIZE>15</SIZE>
<MAXSIZE>15</MAXSIZE>
<ALT_ENG>Applicant ID</ALT_ENG>
<ALT_THAI>รหัสผู้สมัคร</ALT_THAI>
</COMPONENT>
</APPLICANTID>
<CANDIDATEID lang="A" encrypt="false" log="false" type="String" >
<KEY>2</KEY>
<WIDTH>15</WIDTH>
<RELATION>MCANDIDATE</RELATION>
<DESC_ENG>Candidate ID</DESC_ENG>
<DESC_THAI>รหัส candidate</DESC_THAI>
......@@ -15,7 +28,7 @@
</COMPONENT>
</CANDIDATEID>
<COMPANYID lang="A" encrypt="false" log="false" type="String">
<KEY>2</KEY>
<KEY>3</KEY>
<WIDTH>5</WIDTH>
<RELATION>MCOMPANY</RELATION>
<DESC_ENG>Company ID</DESC_ENG>
......@@ -47,5 +60,11 @@
<CHILD>MCANDIDATE.CANDIDATEID</CHILD>
<CHILD>MCANDIDATE.COMPANYID</CHILD>
</MCANDIDATE>
<MAPPLICANT>
<PARENT>MEMPL_COMMITTEE.APPLICANTID</PARENT>
<PARENT>MEMPL_COMMITTEE.COMPANYID</PARENT>
<CHILD>MAPPLICANT.APPLICANTID</CHILD>
<CHILD>MAPPLICANT.COMPANYID</CHILD>
</MAPPLICANT>
</RELATION>
</MEMPL_COMMITTEE>
......@@ -284,6 +284,19 @@
</COMPONENT>
<REQUIRE>true</REQUIRE>
</COMPANYID>
<REFEREE_LEVEL lang="A" encrypt="false" log="false" type="String">
<WIDTH>1</WIDTH>
<DESC_ENG>REFEREE_LEVEL</DESC_ENG>
<DESC_THAI>สถานะการประเมิน</DESC_THAI>
<DEFAULTVALUE>0</DEFAULTVALUE>
<COMPONENT type="radio">
<ALT_ENG>กำหนดสถานะการประเมิน</ALT_ENG>
<ALT_THAI>กำหนดสถานะการประเมิน</ALT_THAI>
<VALIDCODE>REFEREE_LEVEL</VALIDCODE>
<DEFAULTVALUE>0</DEFAULTVALUE>
</COMPONENT>
</REFEREE_LEVEL>
<!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
</FIELD>
......
......@@ -164,8 +164,9 @@ angular.module('APS_INTERVIEW').controller('listCandidate', ['$scope', '$http',
if ($scope.dbName.toUpperCase() === ("STD_NEW")) {
pageName = "../APS_FORM_INTERVIEW_DHAS.jsp";
} else if ($scope.dbName.toUpperCase() === ("DHAS")) {
pageName = "../APS_FORM_INTERVIEW_DHAS_CHAIRMAN.jsp";
//pageName = "../APS_FORM_INTERVIEW_DHAS.jsp";
pageName = "../APS_FORM_INTERVIEW_DHAS_DEPT.jsp";
// pageName = "../APS_FORM_INTERVIEW_DHAS_CHAIRMAN.jsp";
// pageName = "../APS_FORM_INTERVIEW_DHAS.jsp";
} else if ($scope.dbName.toUpperCase() === ("ITE")) {
pageName = "../APS_FORM_INTERVIEW_ITE.jsp";
} else if ($scope.dbName.toUpperCase() === ("KOKOTEL")) {
......
......@@ -250,14 +250,15 @@
</md-card-title-media>
</md-card-title>
<md-card-actions layout="row" layout-align="end center">
<md-button class="md-icon-button md-raised" aria-label="SwitchJob" ng-click='goSwitchJob($event, app)'>
<md-tooltip md-direction="bottom"><swaplang code="SW002296">Switch Job</swaplang> </md-tooltip>
<i class="fa fa-object-ungroup"></i>
</md-button>
<md-button class="md-icon-button md-raised" aria-label="SetCommittee" ng-click='goSetCommittee(app.candidateid)'>
<md-button class="md-icon-button md-raised" aria-label="recruiter" ng-click="recruiterInterview(app.candidateid)">
<md-tooltip md-direction="bottom">ประเมินผู้สมัครสำหรับแผนกบุคคล</md-tooltip>
<i class="fa fa-pencil-square-o"></i>
</md-button>
<md-button class="md-icon-button md-raised" aria-label="SetCommittee" ng-click='goSetCommittee(app.candidateid, app.other.apsform.status)'>
<md-tooltip md-direction="bottom"><swaplang code="SW013303">Setup Committee</swaplang></md-tooltip>
<i class="fa fa-user-circle-o"></i>
</md-button>
......
......@@ -236,6 +236,10 @@ $(document).ready(function(){
<td align="right" class="columnlabel"><%=screen.getLabel("mobile")%>&nbsp;</td>
<td><%=screen.getInput("mobile")%></td>
</tr>
<tr>
<td align="right" class="columnlabel"><%=screen.getLabel("REFEREE_LEVEL")%>&nbsp;</td>
<td><%=screen.getInput("REFEREE_LEVEL")%></td>
</tr>
<!--
<tr>
<td class="columnlabel"><%//=screen.getLabel("NAME")%>&nbsp;</td>
......
......@@ -208,6 +208,18 @@ angular.module('RECRUIT').controller('Candidate', function ($scope, $mdDialog, R
let win = window.open(`CandidateTest_ITALTHAI.jsp?appid=${p_appid}`, '', 'width = 1366, height = 700')
}
$scope.recruiterInterview = ($candidateid) => {
let pageName = "../APS_FORM_INTERVIEW_DHAS.jsp";
$('input[name="candidateid"]').val($candidateid);
$('form[name="cscform"]').attr('target','myform');
$('form[name="cscform"]').attr('action', pageName);
var winopen = window.open('','myform','left=150,top=150,width=2000,height=2000,toolbar=no,status=yes,scrollbars=yes,resizable=yes');
if (winopen){
$('form[name="cscform"]').submit();
winopen.focus();
}
}
$scope.toggleLeft = buildToggler('left');
function buildToggler(componentId) {
return function() {
......@@ -1142,11 +1154,16 @@ angular.module('RECRUIT').controller('Candidate', function ($scope, $mdDialog, R
return SourceSearch
}
$scope.goSetCommittee = (candidateid) => {
cscForm.action = "CommitteeSetupForm.jsp"
cscForm.__candidateid.value = candidateid
cscForm.target = "_blank"
cscForm.submit()
$scope.goSetCommittee = (candidateid, hrStatus) => {
if (hrStatus == 2) {
cscForm.action = "CommitteeSetupForm.jsp"
cscForm.__candidateid.value = candidateid
cscForm.target = "_blank"
cscForm.submit()
} else {
alert("ยังไม่ได้รับการประเมินจากฝ่ายบุคคล");
}
}
// Jquery Zone
......
......@@ -458,6 +458,10 @@ recModule.factory('RecService', function ($resource) {
method: 'PUT',
url: '/hr/api/recruit/RestMcandidate/updateRemark',
},
updateApsForm: {
method: 'PUT',
url: '/hr/api/recruit/RestMcandidate/updateApsForm',
},
moveToHistory: {
method: 'PUT',
url: '/hr/api/recruit/RestMcandidate/moveToHistory',
......
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