Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
myAppraisal
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
angular
myAppraisal
Commits
37b46bbd
Commit
37b46bbd
authored
Mar 14, 2025
by
Nakarin Luankla
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UPDATE รายละเอียดของงาน ไม่สามารถimportข้อมูลเข้าได้
parent
581dec38
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
4 deletions
+8
-4
edit-define-document-form.component.ts
...fine-document-form/edit-define-document-form.component.ts
+1
-1
work-detail.component.html
...ponents/job-detail/work-detail/work-detail.component.html
+1
-1
work-detail.component.ts
...omponents/job-detail/work-detail/work-detail.component.ts
+3
-2
job-code.model.ts
src/app/shared/model/job-code.model.ts
+3
-0
No files found.
src/app/components/competency-assessment/evaluation-cycle-manager/define-document-form/edit-define-document-form/edit-define-document-form.component.ts
View file @
37b46bbd
...
...
@@ -122,7 +122,7 @@ export class EditDefineDocumentFormComponent {
saveAssessmentList
()
{
let
body
=
this
.
assessmentList
.
filter
(
x
=>
x
.
active
==
true
)
let
body
=
this
.
assessmentList
if
(
body
.
length
>
0
)
{
this
.
evaluationAssessmentService
.
postList
(
body
).
subscribe
({
next
:
response
=>
{
...
...
src/app/components/job-detail-components/job-detail/work-detail/work-detail.component.html
View file @
37b46bbd
...
...
@@ -330,7 +330,7 @@
<div
class=
"hs-overlay-open:mt-7 ti-modal-box mt-0 ease-out rounded-md"
>
<div
class=
"ti-modal-header bg-primary !rounded-none !rounded-t-sm"
>
<h5
class=
"text-xxl font-bold text-white"
>
นำเข้า
Job Competency
นำเข้า
รายละเอียดของงาน
</h5>
</div>
<div
class=
"ti-modal-body max-h-full overflow-hidden ti-modal-content !rounded-t-none !rounded-b-sm"
>
...
...
src/app/components/job-detail-components/job-detail/work-detail/work-detail.component.ts
View file @
37b46bbd
...
...
@@ -54,6 +54,7 @@ export class WorkDetailComponent {
this
.
page
=
Array
.
from
({
length
:
Math
.
ceil
(
this
.
jobcodeFilter
().
length
/
this
.
pageSize
)
},
(
_
,
i
)
=>
i
+
1
);
}
edit
(
item
:
JobCodeModel
){
console
.
log
(
"🚀 ~ WorkDetailComponent ~ edit ~ item:"
,
item
)
this
.
selectJob
=
new
MyJobCodeModel
({})
this
.
selectJob
=
new
MyJobCodeModel
(
item
)
}
...
...
@@ -79,7 +80,7 @@ export class WorkDetailComponent {
this
.
selectJob
.
specialWorkPercent
=
this
.
toNumber
(
this
.
selectJob
.
specialWorkPercent
)
this
.
selectJob
.
allPositionWorkPercent
=
this
.
toNumber
(
this
.
selectJob
.
allPositionWorkPercent
)
this
.
selectJob
.
otherWorkPercent
=
this
.
toNumber
(
this
.
selectJob
.
otherWorkPercent
)
console
.
log
(
"🚀 ~ WorkDetailComponent ~ save ~ this.selectJob:"
,
this
.
selectJob
)
this
.
jobcodeService
.
post
(
this
.
selectJob
).
subscribe
((
response
:
any
)
=>
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
)
...
...
@@ -123,7 +124,7 @@ export class WorkDetailComponent {
const
formData
=
new
FormData
();
formData
.
append
(
'file'
,
this
.
selectedFile
);
this
.
loading
=
true
this
.
fileService
.
uploadExcel
(
formData
,
'MJOBCODE_
COMPETENCY
'
).
subscribe
({
this
.
fileService
.
uploadExcel
(
formData
,
'MJOBCODE_
DETAIL
'
).
subscribe
({
next
:
response
=>
{
if
(
response
.
success
)
{
this
.
showAlert
(
response
.
message
,
'success'
)
...
...
src/app/shared/model/job-code.model.ts
View file @
37b46bbd
...
...
@@ -10,6 +10,7 @@ import { MyPositionModel, PositionModel } from "./position.model"
export
interface
JobCodeModel
{
jobcodeId
:
string
companyId
:
string
tdesc
:
string
edesc
:
string
jobcodeLevel
:
string
...
...
@@ -53,6 +54,7 @@ export interface JobCodeModel {
export
class
MyJobCodeModel
implements
JobCodeModel
{
jobcodeId
:
string
companyId
:
string
tdesc
:
string
edesc
:
string
jobcodeLevel
:
string
...
...
@@ -94,6 +96,7 @@ export class MyJobCodeModel implements JobCodeModel {
otherAbilitiesText
:
string
constructor
(
data
:
Partial
<
JobCodeModel
>
)
{
this
.
jobcodeId
=
data
.
jobcodeId
||
""
this
.
companyId
=
data
.
companyId
||
""
this
.
tdesc
=
data
.
tdesc
||
""
this
.
edesc
=
data
.
edesc
||
""
this
.
jobcodeLevel
=
data
.
jobcodeLevel
||
""
...
...
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