Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mySkill-x
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
mySkill-x
Commits
8126d549
Commit
8126d549
authored
Feb 26, 2025
by
Nattana Chaiyamat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
การประเมินผล > ประเมินตนเอง
parent
d52fa175
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
82 additions
and
138 deletions
+82
-138
edit-define-document-form.component.html
...ne-document-form/edit-define-document-form.component.html
+2
-2
self-evaluation.component.html
...evaluation/self-evaluation/self-evaluation.component.html
+0
-0
self-evaluation.component.ts
...e-evaluation/self-evaluation/self-evaluation.component.ts
+0
-0
appraisal-form.model.ts
src/app/shared/model/appraisal-form.model.ts
+41
-40
appraisal.model.ts
src/app/shared/model/appraisal.model.ts
+11
-70
competencytype.model.ts
src/app/shared/model/competencytype.model.ts
+7
-7
evaluation-cycle.model.ts
src/app/shared/model/evaluation-cycle.model.ts
+19
-16
appraisal.service.ts
src/app/shared/services/appraisal.service.ts
+2
-3
No files found.
src/app/components/competency-assessment/evaluation-cycle-manager/define-document-form/edit-define-document-form/edit-define-document-form.component.html
View file @
8126d549
...
@@ -91,14 +91,14 @@
...
@@ -91,14 +91,14 @@
<tr
<tr
*
ngFor=
"let item of assessmentListFilter() | slice:((currentPage-1) * 10) : (((currentPage-1) * 10) + 10);let i = index"
>
*
ngFor=
"let item of assessmentListFilter() | slice:((currentPage-1) * 10) : (((currentPage-1) * 10) + 10);let i = index"
>
<td
class=
"flex justify-center items-center"
>
<td
class=
"flex justify-center items-center"
>
{{item.masfromEvaluationRound
Model
.evaluationRoundId}}
</td>
{{item.masfromEvaluationRound.evaluationRoundId}}
</td>
<td>
{{item.apsassessy.fname}} {{item.apsassessy.lname}}
</td>
<td>
{{item.apsassessy.fname}} {{item.apsassessy.lname}}
</td>
<td
class=
"text-center"
>
{{item.apsassessy.position.tdesc}}
</td>
<td
class=
"text-center"
>
{{item.apsassessy.position.tdesc}}
</td>
<td
class=
"text-center"
>
{{item.apsassessy.pl.tdesc}}
</td>
<td
class=
"text-center"
>
{{item.apsassessy.pl.tdesc}}
</td>
<td
class=
"flex justify-center items-center space-x-2"
>
<td
class=
"flex justify-center items-center space-x-2"
>
<i
class=
"ti ti-edit cursor-pointer i-gray fs-xl px-1"
<i
class=
"ti ti-edit cursor-pointer i-gray fs-xl px-1"
data-hs-overlay=
"#edit-define-document-form-table-modal-edit"
data-hs-overlay=
"#edit-define-document-form-table-modal-edit"
(
click
)="
openEdit
(
item
.
masfromEvaluationRound
Model
.
evaluationRoundId
,
item
.
apsassessy
.
employeeId
)"
></i>
(
click
)="
openEdit
(
item
.
masfromEvaluationRound
.
evaluationRoundId
,
item
.
apsassessy
.
employeeId
)"
></i>
<input
type=
"checkbox"
id=
"hs-small-switch{{i+1}}"
[(
ngModel
)]="
item
.
active
"
<input
type=
"checkbox"
id=
"hs-small-switch{{i+1}}"
[(
ngModel
)]="
item
.
active
"
class=
"ti-switch checked:bg-none checked:bg-green-600 checked:hover:bg-green-600 checked:focus:bg-green-600 focus:border-green-600 dark:checked:bg-green-600 checked:before:bg-green-200 dark:checked:before:bg-green-200 shrink-0 w-11 h-6 before:w-5 before:h-5"
>
class=
"ti-switch checked:bg-none checked:bg-green-600 checked:hover:bg-green-600 checked:focus:bg-green-600 focus:border-green-600 dark:checked:bg-green-600 checked:before:bg-green-200 dark:checked:before:bg-green-200 shrink-0 w-11 h-6 before:w-5 before:h-5"
>
</td>
</td>
...
...
src/app/components/performance-evaluation/self-evaluation/self-evaluation.component.html
View file @
8126d549
This diff is collapsed.
Click to expand it.
src/app/components/performance-evaluation/self-evaluation/self-evaluation.component.ts
View file @
8126d549
This diff is collapsed.
Click to expand it.
src/app/shared/model/appraisal-form.model.ts
View file @
8126d549
import
{
EmployeeModel
,
MyEmployeeModel
}
from
"./employee.model"
import
{
CompetencytypeModel
,
MyCompetencytypeModel
}
from
"./competencytype.model"
import
{
EvaluationCycleModel
,
MyEvaluationCycleModel
}
from
"./evaluation-cycle.model"
import
{
MyStatusCodeModel
,
StatusCodeModel
}
from
"./status-code.model"
import
{
MasfromEvaluationAssessment1Model
,
MyMasfromEvaluationAssessment1Model
}
from
"./masfrom-evaluation-assessment1.model"
import
{
MyPLModel
,
PLModel
}
from
"./pl.model"
export
interface
AppraisalFormModel
{
export
interface
AppraisalFormModel
{
personalLevel
:
PLModel
plId
:
string
masfromEvaluationRoundModel
:
EvaluationCycleModel
companyId
:
string
companyId
:
string
fromDetail
:
string
lineNo
:
number
apsassessy
:
EmployeeModel
competencyType
:
CompetencytypeModel
apsassessyComment
:
string
masfromStatusType
:
StatusCodeModel
apsapprove1
:
EmployeeModel
currentStep
:
string
apsapprove2
:
EmployeeModel
lastStep
:
string
apsapprove3
:
EmployeeModel
apsapprove4
:
EmployeeModel
apsapprove5
:
EmployeeModel
apsassessyStatus
:
string
apsassessyStatus
:
string
apsapprove1Status
:
string
apsapprove1Status
:
string
apsapprove2Status
:
string
apsapprove2Status
:
string
...
@@ -28,28 +22,29 @@ export interface AppraisalFormModel {
...
@@ -28,28 +22,29 @@ export interface AppraisalFormModel {
numberCheck5
:
number
numberCheck5
:
number
weightedTotal
:
number
weightedTotal
:
number
averageScore
:
number
averageScore
:
number
apsassessyComment
:
string
apsapprove1Comment
:
string
apsapprove1Comment
:
string
apsapprove2Comment
:
string
apsapprove2Comment
:
string
apsapprove3Comment
:
string
apsapprove3Comment
:
string
apsapprove4Comment
:
string
apsapprove4Comment
:
string
apsapprove5Comment
:
string
apsapprove5Comment
:
string
apsassessyDate
:
string
apsapprove1Date
:
string
apsapprove2Date
:
string
apsapprove3Date
:
string
apsapprove4Date
:
string
apsapprove5Date
:
string
evaluationResults
:
string
evaluationResults
:
string
sumEvaluationResults
:
string
sumEvaluationResults
:
string
masfromEvaluationAssessment1lList
:
MasfromEvaluationAssessment1Model
[]
active
:
boolean
}
}
export
class
MyAppraisalFormModel
implements
AppraisalFormModel
{
export
class
MyAppraisalFormModel
implements
AppraisalFormModel
{
personalLevel
:
PLModel
plId
:
string
masfromEvaluationRoundModel
:
EvaluationCycleModel
companyId
:
string
companyId
:
string
fromDetail
:
string
lineNo
:
number
apsassessy
:
EmployeeModel
competencyType
:
CompetencytypeModel
apsassessyComment
:
string
masfromStatusType
:
StatusCodeModel
apsapprove1
:
EmployeeModel
currentStep
:
string
apsapprove2
:
EmployeeModel
lastStep
:
string
apsapprove3
:
EmployeeModel
apsapprove4
:
EmployeeModel
apsapprove5
:
EmployeeModel
apsassessyStatus
:
string
apsassessyStatus
:
string
apsapprove1Status
:
string
apsapprove1Status
:
string
apsapprove2Status
:
string
apsapprove2Status
:
string
...
@@ -63,27 +58,28 @@ export class MyAppraisalFormModel implements AppraisalFormModel {
...
@@ -63,27 +58,28 @@ export class MyAppraisalFormModel implements AppraisalFormModel {
numberCheck5
:
number
numberCheck5
:
number
weightedTotal
:
number
weightedTotal
:
number
averageScore
:
number
averageScore
:
number
apsassessyComment
:
string
apsapprove1Comment
:
string
apsapprove1Comment
:
string
apsapprove2Comment
:
string
apsapprove2Comment
:
string
apsapprove3Comment
:
string
apsapprove3Comment
:
string
apsapprove4Comment
:
string
apsapprove4Comment
:
string
apsapprove5Comment
:
string
apsapprove5Comment
:
string
apsassessyDate
:
string
apsapprove1Date
:
string
apsapprove2Date
:
string
apsapprove3Date
:
string
apsapprove4Date
:
string
apsapprove5Date
:
string
evaluationResults
:
string
evaluationResults
:
string
sumEvaluationResults
:
string
sumEvaluationResults
:
string
masfromEvaluationAssessment1lList
:
MasfromEvaluationAssessment1Model
[]
active
:
boolean
constructor
(
data
?:
Partial
<
AppraisalFormModel
>
)
{
constructor
(
data
?:
Partial
<
AppraisalFormModel
>
)
{
this
.
personalLevel
=
new
MyPLModel
(
data
?.
personalLevel
)
this
.
plId
=
data
?.
plId
||
""
this
.
masfromEvaluationRoundModel
=
new
MyEvaluationCycleModel
(
data
?.
masfromEvaluationRoundModel
)
this
.
companyId
=
data
?.
companyId
||
""
this
.
companyId
=
data
?.
companyId
||
""
this
.
fromDetail
=
data
?.
fromDetail
||
""
this
.
lineNo
=
data
?.
lineNo
??
0
this
.
apsassessyComment
=
data
?.
apsassessyComment
||
""
this
.
competencyType
=
new
MyCompetencytypeModel
(
data
?.
competencyType
)
this
.
apsassessy
=
new
MyEmployeeModel
(
data
?.
apsassessy
)
this
.
masfromStatusType
=
new
MyStatusCodeModel
(
data
?.
masfromStatusType
)
this
.
apsapprove1
=
new
MyEmployeeModel
(
data
?.
apsapprove1
)
this
.
currentStep
=
data
?.
currentStep
||
""
this
.
apsapprove2
=
new
MyEmployeeModel
(
data
?.
apsapprove2
)
this
.
lastStep
=
data
?.
lastStep
||
""
this
.
apsapprove3
=
new
MyEmployeeModel
(
data
?.
apsapprove3
)
this
.
apsapprove4
=
new
MyEmployeeModel
(
data
?.
apsapprove4
)
this
.
apsapprove5
=
new
MyEmployeeModel
(
data
?.
apsapprove5
)
this
.
apsassessyStatus
=
data
?.
apsassessyStatus
||
""
this
.
apsassessyStatus
=
data
?.
apsassessyStatus
||
""
this
.
apsapprove1Status
=
data
?.
apsapprove1Status
||
""
this
.
apsapprove1Status
=
data
?.
apsapprove1Status
||
""
this
.
apsapprove2Status
=
data
?.
apsapprove2Status
||
""
this
.
apsapprove2Status
=
data
?.
apsapprove2Status
||
""
...
@@ -97,15 +93,20 @@ export class MyAppraisalFormModel implements AppraisalFormModel {
...
@@ -97,15 +93,20 @@ export class MyAppraisalFormModel implements AppraisalFormModel {
this
.
numberCheck5
=
data
?.
numberCheck5
??
0
this
.
numberCheck5
=
data
?.
numberCheck5
??
0
this
.
weightedTotal
=
data
?.
weightedTotal
??
0
this
.
weightedTotal
=
data
?.
weightedTotal
??
0
this
.
averageScore
=
data
?.
averageScore
??
0
this
.
averageScore
=
data
?.
averageScore
??
0
this
.
apsassessyComment
=
data
?.
apsassessyComment
||
""
this
.
apsapprove1Comment
=
data
?.
apsapprove1Comment
||
""
this
.
apsapprove1Comment
=
data
?.
apsapprove1Comment
||
""
this
.
apsapprove2Comment
=
data
?.
apsapprove2Comment
||
""
this
.
apsapprove2Comment
=
data
?.
apsapprove2Comment
||
""
this
.
apsapprove3Comment
=
data
?.
apsapprove3Comment
||
""
this
.
apsapprove3Comment
=
data
?.
apsapprove3Comment
||
""
this
.
apsapprove4Comment
=
data
?.
apsapprove4Comment
||
""
this
.
apsapprove4Comment
=
data
?.
apsapprove4Comment
||
""
this
.
apsapprove5Comment
=
data
?.
apsapprove5Comment
||
""
this
.
apsapprove5Comment
=
data
?.
apsapprove5Comment
||
""
this
.
apsassessyDate
=
data
?.
apsassessyDate
||
""
this
.
apsapprove1Date
=
data
?.
apsapprove1Date
||
""
this
.
apsapprove2Date
=
data
?.
apsapprove2Date
||
""
this
.
apsapprove3Date
=
data
?.
apsapprove3Date
||
""
this
.
apsapprove4Date
=
data
?.
apsapprove4Date
||
""
this
.
apsapprove5Date
=
data
?.
apsapprove5Date
||
""
this
.
evaluationResults
=
data
?.
evaluationResults
||
""
this
.
evaluationResults
=
data
?.
evaluationResults
||
""
this
.
sumEvaluationResults
=
data
?.
sumEvaluationResults
||
""
this
.
sumEvaluationResults
=
data
?.
sumEvaluationResults
||
""
this
.
masfromEvaluationAssessment1lList
=
data
?.
masfromEvaluationAssessment1lList
?.
map
(
x
=>
new
MyMasfromEvaluationAssessment1Model
(
x
))
||
[]
this
.
active
=
data
?.
active
??
false
}
}
}
}
src/app/shared/model/appraisal.model.ts
View file @
8126d549
import
{
AppraisalFormModel
,
MyAppraisalFormModel
}
from
"./appraisal-form.model"
import
{
EmployeeModel
,
MyEmployeeModel
}
from
"./employee.model"
import
{
EmployeeModel
,
MyEmployeeModel
}
from
"./employee.model"
import
{
EvaluationCycleModel
,
MyEvaluationCycleModel
}
from
"./evaluation-cycle.model"
import
{
EvaluationCycleModel
,
MyEvaluationCycleModel
}
from
"./evaluation-cycle.model"
import
{
MyPLModel
,
PLModel
}
from
"./pl.model"
import
{
MyPLModel
,
PLModel
}
from
"./pl.model"
import
{
MyStatusCodeModel
,
StatusCodeModel
}
from
"./status-code.model"
export
interface
AppraisalModel
{
export
interface
AppraisalModel
{
personalLevel
:
PLModel
personalLevel
:
PLModel
masfromEvaluationRound
Model
:
EvaluationCycleModel
masfromEvaluationRound
:
EvaluationCycleModel
companyId
:
string
companyId
:
string
masfromStatusType
:
StatusCodeModel
active
:
boolean
fromDetail
:
string
apsassessy
:
EmployeeModel
apsassessy
:
EmployeeModel
apsapprove1
:
EmployeeModel
apsapprove1
:
EmployeeModel
apsapprove2
:
EmployeeModel
apsapprove2
:
EmployeeModel
apsapprove3
:
EmployeeModel
apsapprove3
:
EmployeeModel
apsapprove4
:
EmployeeModel
apsapprove4
:
EmployeeModel
apsapprove5
:
EmployeeModel
apsapprove5
:
EmployeeModel
apsassessyStatus
:
string
masfromEvaluationAssessment1
:
AppraisalFormModel
[]
apsapprove1Status
:
string
apsapprove2Status
:
string
apsapprove3Status
:
string
apsapprove4Status
:
string
apsapprove5Status
:
string
targetScore1
:
number
targetScore2
:
number
targetScore3
:
number
targetScore4
:
number
targetScore5
:
number
weightedTotal
:
number
averageScore
:
number
apsapprove1Comment
:
string
apsapprove2Comment
:
string
apsapprove3Comment
:
string
apsapprove4Comment
:
string
apsapprove5Comment
:
string
evaluationResults
:
string
sumEvaluationResults
:
string
}
}
export
class
MyAppraisalModel
implements
AppraisalModel
{
export
class
MyAppraisalModel
implements
AppraisalModel
{
personalLevel
:
PLModel
personalLevel
:
PLModel
masfromEvaluationRound
Model
:
EvaluationCycleModel
masfromEvaluationRound
:
EvaluationCycleModel
companyId
:
string
companyId
:
string
masfromStatusType
:
StatusCodeModel
active
:
boolean
fromDetail
:
string
apsassessy
:
EmployeeModel
apsassessy
:
EmployeeModel
apsapprove1
:
EmployeeModel
apsapprove1
:
EmployeeModel
apsapprove2
:
EmployeeModel
apsapprove2
:
EmployeeModel
apsapprove3
:
EmployeeModel
apsapprove3
:
EmployeeModel
apsapprove4
:
EmployeeModel
apsapprove4
:
EmployeeModel
apsapprove5
:
EmployeeModel
apsapprove5
:
EmployeeModel
apsassessyStatus
:
string
masfromEvaluationAssessment1
:
AppraisalFormModel
[]
apsapprove1Status
:
string
apsapprove2Status
:
string
apsapprove3Status
:
string
apsapprove4Status
:
string
apsapprove5Status
:
string
targetScore1
:
number
targetScore2
:
number
targetScore3
:
number
targetScore4
:
number
targetScore5
:
number
weightedTotal
:
number
averageScore
:
number
apsapprove1Comment
:
string
apsapprove2Comment
:
string
apsapprove3Comment
:
string
apsapprove4Comment
:
string
apsapprove5Comment
:
string
evaluationResults
:
string
sumEvaluationResults
:
string
constructor
(
data
?:
Partial
<
AppraisalModel
>
)
{
constructor
(
data
?:
Partial
<
AppraisalModel
>
)
{
this
.
personalLevel
=
new
MyPLModel
(
data
?.
personalLevel
)
this
.
personalLevel
=
new
MyPLModel
(
data
?.
personalLevel
)
this
.
masfromEvaluationRound
Model
=
new
MyEvaluationCycleModel
(
data
?.
masfromEvaluationRoundModel
)
this
.
masfromEvaluationRound
=
new
MyEvaluationCycleModel
(
data
?.
masfromEvaluationRound
)
this
.
companyId
=
data
?.
companyId
||
""
this
.
companyId
=
data
?.
companyId
||
""
this
.
masfromStatusType
=
new
MyStatusCodeModel
(
data
?.
masfromStatusType
)
this
.
active
=
data
?.
active
??
false
this
.
fromDetail
=
data
?.
fromDetail
||
""
this
.
apsassessy
=
new
MyEmployeeModel
(
data
?.
apsassessy
)
this
.
apsassessy
=
new
MyEmployeeModel
(
data
?.
apsassessy
)
this
.
apsapprove1
=
new
MyEmployeeModel
(
data
?.
apsapprove1
)
this
.
apsapprove1
=
new
MyEmployeeModel
(
data
?.
apsapprove1
)
this
.
apsapprove2
=
new
MyEmployeeModel
(
data
?.
apsapprove2
)
this
.
apsapprove2
=
new
MyEmployeeModel
(
data
?.
apsapprove2
)
this
.
apsapprove3
=
new
MyEmployeeModel
(
data
?.
apsapprove3
)
this
.
apsapprove3
=
new
MyEmployeeModel
(
data
?.
apsapprove3
)
this
.
apsapprove4
=
new
MyEmployeeModel
(
data
?.
apsapprove4
)
this
.
apsapprove4
=
new
MyEmployeeModel
(
data
?.
apsapprove4
)
this
.
apsapprove5
=
new
MyEmployeeModel
(
data
?.
apsapprove5
)
this
.
apsapprove5
=
new
MyEmployeeModel
(
data
?.
apsapprove5
)
this
.
apsassessyStatus
=
data
?.
apsassessyStatus
||
""
this
.
masfromEvaluationAssessment1
=
data
?.
masfromEvaluationAssessment1
?.
map
(
x
=>
new
MyAppraisalFormModel
(
x
))
||
[]
this
.
apsapprove1Status
=
data
?.
apsapprove1Status
||
""
this
.
apsapprove2Status
=
data
?.
apsapprove2Status
||
""
this
.
apsapprove3Status
=
data
?.
apsapprove3Status
||
""
this
.
apsapprove4Status
=
data
?.
apsapprove4Status
||
""
this
.
apsapprove5Status
=
data
?.
apsapprove5Status
||
""
this
.
targetScore1
=
data
?.
targetScore1
??
0
this
.
targetScore2
=
data
?.
targetScore2
??
0
this
.
targetScore3
=
data
?.
targetScore3
??
0
this
.
targetScore4
=
data
?.
targetScore4
??
0
this
.
targetScore5
=
data
?.
targetScore5
??
0
this
.
weightedTotal
=
data
?.
weightedTotal
??
0
this
.
averageScore
=
data
?.
averageScore
??
0
this
.
apsapprove1Comment
=
data
?.
apsapprove1Comment
||
""
this
.
apsapprove2Comment
=
data
?.
apsapprove2Comment
||
""
this
.
apsapprove3Comment
=
data
?.
apsapprove3Comment
||
""
this
.
apsapprove4Comment
=
data
?.
apsapprove4Comment
||
""
this
.
apsapprove5Comment
=
data
?.
apsapprove5Comment
||
""
this
.
evaluationResults
=
data
?.
evaluationResults
||
""
this
.
sumEvaluationResults
=
data
?.
sumEvaluationResults
||
""
}
}
}
}
src/app/shared/model/competencytype.model.ts
View file @
8126d549
...
@@ -15,13 +15,13 @@ export class MyCompetencytypeModel implements CompetencytypeModel {
...
@@ -15,13 +15,13 @@ export class MyCompetencytypeModel implements CompetencytypeModel {
tdesc
:
string
tdesc
:
string
shortName
:
string
shortName
:
string
expectationLevel
:
string
expectationLevel
:
string
constructor
(
data
:
Partial
<
CompetencytypeModel
>
)
{
constructor
(
data
?
:
Partial
<
CompetencytypeModel
>
)
{
this
.
competencyTypeId
=
data
.
competencyTypeId
||
""
this
.
competencyTypeId
=
data
?
.
competencyTypeId
||
""
this
.
companyId
=
data
.
companyId
||
""
this
.
companyId
=
data
?
.
companyId
||
""
this
.
edesc
=
data
.
edesc
||
""
this
.
edesc
=
data
?
.
edesc
||
""
this
.
tdesc
=
data
.
tdesc
||
""
this
.
tdesc
=
data
?
.
tdesc
||
""
this
.
shortName
=
data
.
shortName
||
""
this
.
shortName
=
data
?
.
shortName
||
""
this
.
expectationLevel
=
data
.
expectationLevel
||
""
this
.
expectationLevel
=
data
?
.
expectationLevel
||
""
}
}
}
}
src/app/shared/model/evaluation-cycle.model.ts
View file @
8126d549
import
{
MyStatusCodeModel
,
StatusCodeModel
}
from
"./status-code.model"
;
import
{
MyStatusCodeModel
,
StatusCodeModel
}
from
"./status-code.model"
;
export
interface
EvaluationCycleModel
{
export
interface
EvaluationCycleModel
{
evaluationRoundId
:
string
;
evaluationRoundId
:
string
tdesc
:
string
;
companyId
:
string
edesc
:
string
;
tdesc
:
string
apsyear
:
string
;
edesc
:
string
apsPeriodStart
:
string
;
apsyear
:
string
apsPeriodEnd
:
string
;
apsPeriodStart
:
string
statusCode
:
StatusCodeModel
;
apsPeriodEnd
:
string
statusCode
:
StatusCodeModel
}
}
export
class
MyEvaluationCycleModel
implements
EvaluationCycleModel
{
export
class
MyEvaluationCycleModel
implements
EvaluationCycleModel
{
evaluationRoundId
:
string
;
evaluationRoundId
:
string
tdesc
:
string
;
companyId
:
string
edesc
:
string
;
tdesc
:
string
apsyear
:
string
;
edesc
:
string
aps
PeriodStart
:
string
;
aps
year
:
string
apsPeriod
End
:
string
;
apsPeriod
Start
:
string
statusCode
:
StatusCodeModel
;
apsPeriodEnd
:
string
statusCode
:
StatusCodeModel
constructor
(
data
?:
Partial
<
EvaluationCycleModel
>
)
{
constructor
(
data
?:
Partial
<
EvaluationCycleModel
>
)
{
this
.
evaluationRoundId
=
data
?.
evaluationRoundId
||
""
;
this
.
evaluationRoundId
=
data
?.
evaluationRoundId
||
""
;
this
.
companyId
=
data
?.
companyId
||
""
;
this
.
tdesc
=
data
?.
tdesc
||
""
;
this
.
tdesc
=
data
?.
tdesc
||
""
;
this
.
edesc
=
data
?.
edesc
||
""
;
this
.
edesc
=
data
?.
edesc
||
""
;
this
.
apsyear
=
data
?.
apsyear
||
""
;
this
.
apsyear
=
data
?.
apsyear
||
""
;
this
.
apsPeriodStart
=
data
?.
apsPeriodStart
||
""
;
this
.
apsPeriodStart
=
data
?.
apsPeriodStart
||
""
;
this
.
apsPeriodEnd
=
data
?.
apsPeriodEnd
||
""
;
this
.
apsPeriodEnd
=
data
?.
apsPeriodEnd
||
""
;
this
.
statusCode
=
new
MyStatusCodeModel
(
data
?.
statusCode
||
{})
this
.
statusCode
=
new
MyStatusCodeModel
(
data
?.
statusCode
||
{})
}
}
}
}
src/app/shared/services/appraisal.service.ts
View file @
8126d549
...
@@ -2,7 +2,6 @@ import { HttpClient, HttpHeaders } from '@angular/common/http';
...
@@ -2,7 +2,6 @@ import { HttpClient, HttpHeaders } from '@angular/common/http';
import
{
Injectable
}
from
'@angular/core'
;
import
{
Injectable
}
from
'@angular/core'
;
import
{
Observable
}
from
'rxjs'
;
import
{
Observable
}
from
'rxjs'
;
import
{
environment
}
from
'src/environments/environment'
;
import
{
environment
}
from
'src/environments/environment'
;
import
{
PLModel
}
from
'../model/pl.model'
;
import
{
AlertModel
}
from
'../model/alert.model'
;
import
{
AlertModel
}
from
'../model/alert.model'
;
import
{
AppraisalModel
}
from
'../model/appraisal.model'
;
import
{
AppraisalModel
}
from
'../model/appraisal.model'
;
import
{
AppraisalFormModel
}
from
'../model/appraisal-form.model'
;
import
{
AppraisalFormModel
}
from
'../model/appraisal-form.model'
;
...
@@ -14,8 +13,8 @@ export class AppraisalService {
...
@@ -14,8 +13,8 @@ export class AppraisalService {
urlApi
=
environment
.
baseUrl
+
this
.
api
urlApi
=
environment
.
baseUrl
+
this
.
api
constructor
(
private
http
:
HttpClient
)
{
constructor
(
private
http
:
HttpClient
)
{
}
}
getFormCompentencyById
(
evaluationRoundId
:
string
,
apsassessy
:
string
):
Observable
<
AppraisalFormModel
>
{
getFormCompentencyById
(
evaluationRoundId
:
string
,
apsassessy
:
string
,
typeId
:
string
):
Observable
<
AppraisalFormModel
>
{
return
this
.
http
.
get
<
AppraisalFormModel
>
(
this
.
urlApi
+
"/competency/"
+
evaluationRoundId
+
"/"
+
apsassessy
)
return
this
.
http
.
get
<
AppraisalFormModel
>
(
this
.
urlApi
+
"/competency/"
+
evaluationRoundId
+
"/"
+
apsassessy
+
"/"
+
typeId
)
}
}
getCompetencyList
():
Observable
<
AppraisalModel
[]
>
{
getCompetencyList
():
Observable
<
AppraisalModel
[]
>
{
return
this
.
http
.
get
<
AppraisalModel
[]
>
(
this
.
urlApi
+
"/competency/emp"
)
return
this
.
http
.
get
<
AppraisalModel
[]
>
(
this
.
urlApi
+
"/competency/emp"
)
...
...
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