Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DHAS
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thitichaipun Wutthisak
DHAS
Commits
bb19e308
Commit
bb19e308
authored
Dec 22, 2020
by
peema_phongam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interview dept
parent
7af3e659
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
300 additions
and
121 deletions
+300
-121
APS_FORM_INTERVIEW_DHAS_DEPT.jsp
hrAppWeb.war/APS_FORM_INTERVIEW_DHAS_DEPT.jsp
+50
-120
APS_FORM_INTERVIEW_DHAS_DEPT.Controller.js
.../APS_INTERVIEW/APS_FORM_INTERVIEW_DHAS_DEPT.Controller.js
+249
-0
ListCandidate.Controller.js
....war/EMPVIEW/JS/APS_INTERVIEW/ListCandidate.Controller.js
+1
-1
No files found.
hrAppWeb.war/APS_FORM_INTERVIEW_DHAS_DEPT.jsp
View file @
bb19e308
...
...
@@ -51,14 +51,21 @@
<script
type=
'text/javascript'
src=
'<%=request.getContextPath()%>/EMPVIEW/JS/APS_INTERVIEW/Module.Controller.js'
></script>
<script
type=
'text/javascript'
src=
'<%=request.getContextPath()%>/RECRUIT/js/services.js'
></script>
<script
type=
'text/javascript'
src=
'<%=request.getContextPath()%>/EMPVIEW/JS/APS_INTERVIEW/services.js'
></script>
<script
type=
'text/javascript'
src=
'<%=request.getContextPath()%>/EMPVIEW/JS/APS_INTERVIEW/
InterviewForm
.Controller.js'
></script>
<script
type=
'text/javascript'
src=
'<%=request.getContextPath()%>/EMPVIEW/JS/APS_INTERVIEW/
APS_FORM_INTERVIEW_DHAS_DEPT
.Controller.js'
></script>
<script
type=
'text/javascript'
src=
'<%=request.getContextPath()%>/EXAM/JS/CLASS/Question.Class.js'
></script>
<script
type=
'text/javascript'
>
setLang
(
'<%=up.get("lang")%>'
)
$
(
function
()
{
let
contextPath
=
'<%=request.getContextPath()%>'
let
scope
=
angular
.
element
(
$
(
'form[name="cscform"]'
)).
scope
();
scope
.
$apply
(
function
()
{
scope
.
contextPath
=
contextPath
});
});
</script>
</head>
<body
ng-controller=
'
InterviewForm
'
>
<body
ng-controller=
'
APS_FORM_INTERVIEW_DHAS_DEPT
'
>
<div
class=
'bg-com'
></div>
<section>
<form
name=
"cscform"
class=
"form-horizontal"
method=
"post"
>
...
...
@@ -68,15 +75,15 @@
<div
class=
'container csc-content'
id=
'target_warpper'
>
<div
class=
'csc-block-white'
>
<div
class=
'table-responsive'
>
<table
class=
"table table-head table-bordered"
>
<tr
>
<td
rowspan =
'2'
class=
'b'
>
image
</td
>
<td
class=
'b'
style=
"text-align: right;"
>
FR-230200-109 / Rev.No02
</td
>
</tr
>
<tr>
<td
class=
'b'
style=
"text-align: right;"
>
Effective Date : 08/06/2018
</td>
</tr
>
</table
>
<
%
--
<
table
class=
"table table-head table-bordered"
>
--%
>
<
%
--
<
tr
>
--%
>
<
%
--
<
td
rowspan =
'2'
class=
'b'
>
image
</td>
--%
>
<
%
--
<
td
class=
'b'
style=
"text-align: right;"
>
FR-230200-109 / Rev.No02
</td>
--%
>
<
%
--
</
tr
>
--%
>
<
%
--
<
tr
>
--%>
<
%
--
<
td
class=
'b'
style=
"text-align: right;"
>
Effective Date : 08/06/2018
</td>
--%>
<
%
--
</
tr
>
--%
>
<
%
--
</
table
>
--%
>
<table
class=
"table table-head table-bordered"
>
<tr>
<th
colspan=
'10 text-left'
>
ใบประเมินผู้สมัครสำหรับหน่วยงาน (PL 2 - PL 4)
</th>
...
...
@@ -87,129 +94,52 @@
<td
class=
'b'
swlang
code=
'SW000057'
>
position
</td>
<td
colspan=
'4'
>
{{headdata.job}}
</td>
</tr>
<tr
>
<td
class=
'b'
swlang
code=
''
>
แผนก
</td
>
<td
colspan=
'2'
>
{{headdata.bu4}}
</td
>
<td
class=
'b'
swlang
code=
''
>
ฝ่าย
</td
>
<td
colspan=
'2'
>
{{headdata.bu3}}
</td
>
<td
class=
'b'
swlang
code=
''
>
ด้าน
</td
>
<td
colspan=
'3'
>
{{headdata.bu2}}
</td
>
</tr
>
<
%
--
<
tr
>
--%
>
<
%
--
<
td
class=
'b'
swlang
code=
''
>
แผนก
</td>
--%
>
<
%
--
<
td
colspan=
'2'
>
{{headdata.bu4}}
</td>
--%
>
<
%
--
<
td
class=
'b'
swlang
code=
''
>
ฝ่าย
</td>
--%
>
<
%
--
<
td
colspan=
'2'
>
{{headdata.bu3}}
</td>
--%
>
<
%
--
<
td
class=
'b'
swlang
code=
''
>
ด้าน
</td>
--%
>
<
%
--
<
td
colspan=
'3'
>
{{headdata.bu2}}
</td>
--%
>
<
%
--
</
tr
>
--%
>
</table>
</div>
<div
class=
'table-responsive'
>
<table
class=
"table table-head table-bordered"
>
<thead>
<tr>
<th
class=
'b'
>
No.
</th>
<th
>
ลำดับ
</th>
<th
class=
'b text-left'
style=
"width:400px"
>
หัวข้อการพิจารณาของหน่วยงาน
</th>
<th
class=
'b'
>
ดีมาก / 5
</th>
<th
class=
'b'
>
ดี / 4
</th>
<th
class=
'b'
>
ปานกลาง / 3
</th>
<th
class=
'b'
>
พอใช้ / 2
</th>
<th
class=
'b'
>
ไม่ดี / 1
</th>
</tr>
<tr>
<td
class=
'center'
>
1
</td>
<td>
บุคลิคลักษณะ กิริยามารยาท การแต่งกาย
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"5"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"4"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"3"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"2"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"1"
>
{{examdata.dominance}}
</td>
<tr>
<td
class=
'center'
>
2
</td>
<td>
มนุษย์สัมพันธ์
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"5"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"4"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"3"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"2"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"1"
>
{{examdata.dominance}}
</td>
</tr>
<tr>
<td
class=
'center'
>
3
</td>
<td>
การสื่อข้อความ การตอบคำถาม การใช้คำพูด
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"5"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"4"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"3"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"2"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"1"
>
{{examdata.dominance}}
</td>
</tr>
<tr>
<td
class=
'center'
>
4
</td>
<td>
ประวัจิการศึกษา และการฝึกอบรม
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"5"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"4"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"3"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"2"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"1"
>
{{examdata.dominance}}
</td>
</tr>
<tr>
<td
class=
'center'
>
5
</td>
<td>
ภูมิหลัง และสถานภาพทางครอบครัว
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"5"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"4"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"3"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"2"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"1"
>
{{examdata.dominance}}
</td>
<th>
ดีมาก / 5
</th>
<th>
ดี / 4
</th>
<th>
ปานกลาง / 3
</th>
<th>
พอใช้ / 2
</th>
<th>
ไม่ดี / 1
</th>
</tr>
<tr>
<td
class=
'center'
>
6
</td>
<td>
ประสบการณ์ ลักษณะงานที่ผ่านมา
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"5"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"4"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"3"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"2"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"1"
>
{{examdata.dominance}}
</td>
</tr>
<tr>
<td
class=
'center'
>
7
</td>
<td>
ความรอบรู้เรื่องในงานที่สมัคร ความรู้ทางเทคนิค และวิธีปฏิบัติ
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"5"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"4"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"3"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"2"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"1"
>
{{examdata.dominance}}
</td>
</tr>
<tr>
<td
class=
'center'
>
8
</td>
<td>
ความสามารถพิเศษที่เอื้อต่องานที่สมัคร
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"5"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"4"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"3"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"2"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"1"
>
{{examdata.dominance}}
</td>
</thead>
<tbody>
<tr
ng-repeat=
'aps in formdata.form'
>
<td
class=
'center'
>
{{$index+1}}
</td>
<td>
{{aps.topic}}
</td>
<td
class=
'center'
><input
class=
'score2'
ng-model=
'aps.score'
ng-value=
'5'
type=
'radio'
ng-disabled=
'headdata.status == 2 || notedit'
/></td>
<td
class=
'center'
><input
class=
'score2'
ng-model=
'aps.score'
ng-value=
'4'
type=
'radio'
ng-disabled=
'headdata.status == 2 || notedit'
/></td>
<td
class=
'center'
><input
class=
'score2'
ng-model=
'aps.score'
ng-value=
'3'
type=
'radio'
ng-disabled=
'headdata.status == 2 || notedit'
/></td>
<td
class=
'center'
><input
class=
'score2'
ng-model=
'aps.score'
ng-value=
'2'
type=
'radio'
ng-disabled=
'headdata.status == 2 || notedit'
/></td>
<td
class=
'center'
><input
class=
'score2'
ng-model=
'aps.score'
ng-value=
'1'
type=
'radio'
ng-disabled=
'headdata.status == 2 || notedit'
/></td>
</tr>
<tr>
<td
class=
'center'
>
9
</td>
<td>
สติปัญญา ความคิดริเริ่ม ความคิดเห็น ไหวพริบ การแก้ปัญหาเหตุผล
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"5"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"4"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"3"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"2"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"1"
>
{{examdata.dominance}}
</td>
</tr>
<tr>
<td
class=
'center'
>
10
</td>
<td>
ทัศนคติดความมุ่งหมายในชีวิต การงาน และสังคมรอบข้าง
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"5"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"4"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"3"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"2"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"1"
>
{{examdata.dominance}}
</td>
</tr>
<tr>
<td
colspan=
'2'
style=
"text-align: right;"
>
สรุป
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"5"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"4"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"3"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"2"
>
{{examdata.dominance}}
</td>
<td
class=
'center'
><span
class=
'score1 b'
ng-show=
'examdata.dominance == 0'
><input
type=
"radio"
ng-model=
"dominance"
value=
"1"
>
{{examdata.dominance}}
</td>
<td
class=
'trash b'
colspan=
'2'
>
สรุป
</td>
<td
class=
'center b'
>
{{ getSumScoreByScore(5) }}
</td>
<td
class=
'center b'
>
{{ getSumScoreByScore(4) }}
</td>
<td
class=
'center b'
>
{{ getSumScoreByScore(3) }}
</td>
<td
class=
'center b'
>
{{ getSumScoreByScore(2) }}
</td>
<td
class=
'center b'
>
{{ getSumScoreByScore(1) }}
</td>
</tr>
<tr>
<td
class=
'trash b'
colspan=
'2'
>
รวมคะแนน
</td>
<td
class=
'center b'
colspan=
'5'
>
{{ getSumScore() }}
</td>
</tr>
</tbody>
</table>
</div>
</tbody>
...
...
hrAppWeb.war/EMPVIEW/JS/APS_INTERVIEW/APS_FORM_INTERVIEW_DHAS_DEPT.Controller.js
0 → 100644
View file @
bb19e308
'use strict'
angular
.
module
(
'APS_INTERVIEW'
).
controller
(
'APS_FORM_INTERVIEW_DHAS_DEPT'
,
[
'$scope'
,
'$http'
,
'$sce'
,
'InterviewcandidateCtrl'
,
function
(
$scope
,
$http
,
$sce
,
InterviewcandidateCtrl
){
$scope
.
candidateid
=
$
(
'input[name="candidateid"]'
).
val
()
$scope
.
committeeid
=
$
(
'input[name="committeeid"]'
).
val
()
$scope
.
notedit
=
(
$
(
'input[name="notedit"]'
).
val
()
==
'true'
)
$scope
.
lang
=
$
(
'input[name="lang"]'
).
val
()
$scope
.
contextPath
=
''
$scope
.
headdata
=
{}
$scope
.
formdata
=
{}
let
question
=
new
Question
()
$scope
.
examdata
=
{}
$scope
.
score2
=
''
$scope
.
score3
=
''
$scope
.
score4
=
''
let
DocumentContainer
let
WindowObject
$scope
.
comment
=
[{
comment
:
''
,
appropriate
:
0
}]
$scope
.
apsform
=
[{
topic
:
"บุคลิคลักษณะ กิริยามารยาท การแต่งกาย"
,
score
:
0
},{
topic
:
"มนุษย์สัมพันธ์"
,
score
:
0
},{
topic
:
"การสื่อข้อความ การตอบคำถาม การใช้คำพูด"
,
score
:
0
},{
topic
:
"ประวัติการศึกษา และการฝึกอบรม"
,
score
:
0
},{
topic
:
"ภูมิหลัง และสถานภาพทางครอบครัว"
,
score
:
0
},{
topic
:
"ประสบการณ์ ลักษณะงานที่ผ่านมา"
,
score
:
0
},{
topic
:
"ความรอบรู้เรื่องในงานที่สมัคร ความรู้ทางเทคนิค และวิธีปฏิบัติ"
,
score
:
0
},{
topic
:
"ความสามารถพิเศษที่เอื้อต่องานที่สมัคร"
,
score
:
0
},{
topic
:
"สติปัญญา ความคิดริเริ่ม ความคิดเห็น ไหวพริบ การแก้ปัญหาเหตุผล"
,
score
:
0
},{
topic
:
"ทัศนคติดความมุ่งหมายในชีวิต การงาน และสังคมรอบข้าง"
,
score
:
0
}]
$scope
.
myparam
=
{
candidateid
:
$scope
.
candidateid
,
committeeid
:
$scope
.
committeeid
};
InterviewcandidateCtrl
.
manageInterviewForm
.
query
(
$scope
.
myparam
).
$promise
.
then
(
function
(
data
){
$scope
.
headdata
=
data
.
header
$scope
.
formdata
=
data
.
apsform
setFormAPS
()
console
.
log
(
data
)
})
let
setFormAPS
=
()
=>
{
if
(
$scope
.
formdata
.
form
==
''
){
$scope
.
formdata
.
form
=
$scope
.
apsform
}
else
{
$scope
.
formdata
.
form
=
jQuery
.
parseJSON
(
$scope
.
formdata
.
form
)
}
if
(
$scope
.
formdata
.
comment
==
''
){
$scope
.
formdata
.
comment
=
$scope
.
comment
}
else
{
$scope
.
formdata
.
comment
=
jQuery
.
parseJSON
(
$scope
.
formdata
.
comment
)
}
}
$scope
.
getSumScore
=
()
=>
{
let
result
=
0
if
(
$scope
.
formdata
.
form
!=
undefined
){
for
(
var
i
=
0
;
i
<
$scope
.
formdata
.
form
.
length
;
i
++
){
let
form
=
$scope
.
formdata
.
form
[
i
];
result
+=
parseInt
(
form
.
score
)
}
}
return
result
;
}
$scope
.
getSumScoreByScore
=
(
score
)
=>
{
let
result
=
0
if
(
$scope
.
formdata
.
form
!=
undefined
){
for
(
var
i
=
0
;
i
<
$scope
.
formdata
.
form
.
length
;
i
++
){
let
form
=
$scope
.
formdata
.
form
[
i
];
if
(
form
.
score
==
score
){
result
+=
parseInt
(
form
.
score
)
}
}
}
return
result
;
}
$scope
.
addComment
=
()
=>
{
let
data
=
{
comment
:
''
}
$scope
.
formdata
.
comment
.
push
(
data
)
}
$scope
.
delComment
=
()
=>
{
$scope
.
formdata
.
comment
.
pop
()
}
$scope
.
saveDraff
=
()
=>
{
if
(
confirm
(
MyCode
[
1
])){
$scope
.
sendparam
=
$scope
.
sendparam
=
setParam
(
'0'
)
InterviewcandidateCtrl
.
manageInterviewForm
.
save
(
JSON
.
stringify
(
$scope
.
sendparam
))
.
$promise
.
then
(
function
(){
alert
(
MyCode
[
18
]);
window
.
opener
.
location
.
reload
();
});
}
}
$scope
.
save
=
()
=>
{
if
(
chkData
()){
if
(
confirm
(
MyCode
[
1
])){
$scope
.
sendparam
=
setParam
(
'1'
)
InterviewcandidateCtrl
.
manageInterviewForm
.
save
(
JSON
.
stringify
(
$scope
.
sendparam
))
.
$promise
.
then
(
function
(){
alert
(
MyCode
[
18
]);
window
.
opener
.
location
.
reload
();
});
}
}
else
{
alert
(
'กรุณากรอกข้อมูลให้ครบถ้วน'
)
}
}
let
setParam
=
(
type
)
=>
{
let
param
=
{
headdata
:
$scope
.
headdata
,
apsform
:
$scope
.
formdata
,
savetype
:
type
}
return
param
}
let
chkData
=
()
=>
{
let
result
=
true
let
objlist
=
$scope
.
formdata
.
form
.
filter
((
form
)
=>
form
.
score
==
0
)
if
(
objlist
.
length
>
0
){
result
=
false
}
let
objlist2
=
$scope
.
formdata
.
comment
.
filter
((
comment
)
=>
comment
.
comment
==
0
)
if
(
objlist2
.
length
>
0
){
result
=
false
}
let
objlist3
=
$scope
.
formdata
.
comment
.
filter
((
appropriate
)
=>
appropriate
.
appropriate
==
0
)
if
(
objlist3
.
length
>
0
){
result
=
false
}
return
result
}
$scope
.
goprint
=
function
(){
hidelement
();
promisePrint
().
then
((
obj
)
=>
{
WindowObject
.
focus
();
console
.
log
(
WindowObject
);
// window.close();
WindowObject
.
print
();
})
}
function
promisePrint
(){
return
new
Promise
((
resolve
,
reject
)
=>
{
DocumentContainer
=
document
.
getElementById
(
'target_warpper'
);
WindowObject
=
window
.
open
(
''
,
'PrintWindow'
,
'width=1200,height=666,top=10,right=10,toolbars=no,scrollbars=no,status=no,resizable=yes,scale=98%'
);
WindowObject
.
document
.
writeln
(
'<!DOCTYPE html>'
);
WindowObject
.
document
.
writeln
(
'<html><head><title></title>'
);
WindowObject
.
document
.
writeln
(
`<link rel="stylesheet" type="text/css" href="
${
$scope
.
contextPath
}
/EMPVIEW/css/APP_UP/style_apsup.css">`
);
WindowObject
.
document
.
writeln
(
`<link rel="stylesheet" type="text/css" href="
${
$scope
.
contextPath
}
/EMPVIEW/css/APS_Interview/style_printInterview.css">`
);
WindowObject
.
document
.
writeln
(
`<link rel="stylesheet" type="text/css" href="
${
$scope
.
contextPath
}
/CSS/Bootstrap/css/bootstrap.css">`
);
WindowObject
.
document
.
writeln
(
`<link rel="stylesheet" type="text/css" href="
${
$scope
.
contextPath
}
/CSS/EMPVIEW_LAYOUT.min.css">`
);
WindowObject
.
document
.
writeln
(
`<link rel="stylesheet" type="text/css" href="
${
$scope
.
contextPath
}
/CSS/font-awesome.css">`
);
WindowObject
.
document
.
writeln
(
'</head><body>'
);
WindowObject
.
document
.
writeln
(
DocumentContainer
.
innerHTML
);
WindowObject
.
document
.
writeln
(
'</body></html>'
);
WindowObject
.
document
.
close
();
setTimeout
(()
=>
resolve
(
WindowObject
),
1000
)
})
}
function
hidelement
(){
let
txt
=
''
let
chk
=
false
$
(
".score1"
).
each
(
function
(){
if
(
$
(
this
).
hasClass
(
"ng-hide"
)){
$
(
this
).
hide
()
}
});
$
(
".score2"
).
each
(
function
(){
chk
=
$
(
this
).
prop
(
'checked'
);
if
(
chk
){
$
(
this
).
parents
(
"td"
).
append
(
"<i class='fa fa-check-square-o right dis-block'></i>"
);
}
else
{
$
(
this
).
parents
(
"td"
).
append
(
"<i class='fa fa-square-o right dis-block'></i>"
);
}
$
(
this
).
hide
();
});
$
(
".score3"
).
each
(
function
(){
chk
=
$
(
this
).
prop
(
'checked'
);
if
(
chk
){
$
(
this
).
parents
(
".chk"
).
append
(
"<i class='fa fa-check-square-o right dis-block'></i>"
);
}
else
{
$
(
this
).
parents
(
".chk"
).
append
(
"<i class='fa fa-square-o right dis-block'></i>"
);
}
$
(
this
).
hide
();
});
$
(
"textarea"
).
each
(
function
(){
txt
=
$
(
this
).
val
()
if
(
txt
==
''
){
$
(
this
).
parents
(
".showtxt"
).
find
(
"label"
).
removeClass
(
'hide'
)
$
(
this
).
parents
(
".showtxt"
).
find
(
"label"
).
clone
().
appendTo
(
$
(
this
).
parents
(
".showtxt"
))
}
else
{
$
(
this
).
parents
(
".showtxt"
).
find
(
"label"
).
removeClass
(
'txt-underline hide'
)
$
(
this
).
parents
(
".showtxt"
).
find
(
"label"
).
addClass
(
'txt-underline2'
)
$
(
this
).
parents
(
".showtxt"
).
find
(
"label"
).
text
(
txt
)
}
$
(
this
).
hide
()
});
$
(
'.btn'
).
hide
()
$
(
'.icon-btn'
).
hide
()
}
}]);
hrAppWeb.war/EMPVIEW/JS/APS_INTERVIEW/ListCandidate.Controller.js
View file @
bb19e308
...
...
@@ -165,7 +165,7 @@ angular.module('APS_INTERVIEW').controller('listCandidate', ['$scope', '$http',
pageName
=
"../APS_FORM_INTERVIEW_DHAS.jsp"
;
}
else
if
(
$scope
.
dbName
.
toUpperCase
()
===
(
"DHAS"
))
{
pageName
=
"../APS_FORM_INTERVIEW_DHAS_DEPT.jsp"
;
// pageName = "../APS_FORM_INTERVIEW_DHAS_
CHAIRMAN
.jsp";
// pageName = "../APS_FORM_INTERVIEW_DHAS_
RESULT
.jsp";
// pageName = "../APS_FORM_INTERVIEW_DHAS.jsp";
}
else
if
(
$scope
.
dbName
.
toUpperCase
()
===
(
"ITE"
))
{
pageName
=
"../APS_FORM_INTERVIEW_ITE.jsp"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment