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
cd27d1c4
Commit
cd27d1c4
authored
Apr 05, 2021
by
peema_phongam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mrequest responsibility
parent
32df2553
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
ManpowerForm.js
hrAppWeb.war/RECRUIT/js/REC101/ManpowerForm.js
+13
-5
No files found.
hrAppWeb.war/RECRUIT/js/REC101/ManpowerForm.js
View file @
cd27d1c4
...
...
@@ -69,12 +69,15 @@ angular.module('RECRUIT').controller('ManpowerForm', ['$scope', '$http', '$contr
})
//For new line character in textarea
$scope
.
$watch
(
'manpower.jobid'
,
function
(
jobid
)
{
if
(
jobid
)
{
RecService
.
RestMjobcode
.
getQuery
({
id
:
jobid
}).
$promise
.
then
(
function
(
data
)
{
console
.
log
(
data
.
result
)
let
countJobidWatch
=
0
$scope
.
$watch
(
'manpower.jobid'
,
function
(
$jobid
)
{
if
(
$jobid
)
{
console
.
log
(
$jobid
,
countJobidWatch
)
if
(
!
countJobidWatch
)
{
return
countJobidWatch
++
}
RecService
.
RestMjobcode
.
getQuery
({
id
:
$jobid
}).
$promise
.
then
(
function
(
data
)
{
$scope
.
manpower
.
responsibility
=
data
.
result
.
responsibility
$scope
.
manpower
.
eresponsibility
=
data
.
result
.
eresponsibility
$scope
.
manpower
.
experience
=
data
.
result
.
experience
...
...
@@ -84,6 +87,7 @@ angular.module('RECRUIT').controller('ManpowerForm', ['$scope', '$http', '$contr
})
}
})
$scope
.
$watch
(
'manpower.req_reference'
,
function
(
refReqid
)
{
if
(
refReqid
&&
$scope
.
manpower
.
requestid
===
''
)
{
let
tempKind
=
$scope
.
manpower
.
req_kind
...
...
@@ -558,6 +562,10 @@ angular.module('RECRUIT').controller('ManpowerForm', ['$scope', '$http', '$contr
}
}
// Jquery
// $('body')
// $(window).keydown(function (event) {
// if (event.keyCode === 13) {
// event.preventDefault();
...
...
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