Commit 1f5fa10c by Nattana Chaiyamat

แก้เส้น api evaluation-assessment

parent 7b03637d
...@@ -295,7 +295,7 @@ export class EditDefineDocumentFormComponent { ...@@ -295,7 +295,7 @@ export class EditDefineDocumentFormComponent {
//############################# Modal Indicators ############################# //############################# Modal Indicators #############################
getIndicators() { getIndicators() {
this.evaluationAssessmentService.getIndicators(this.selectEmp.apsassessy.pl.plId).subscribe({ this.evaluationAssessmentService.getIndicators(this.selectEmp.jd.jobCodeId).subscribe({
next: response => { next: response => {
this.indicatorsList = response this.indicatorsList = response
this.indicatorChange() this.indicatorChange()
......
...@@ -268,7 +268,7 @@ export class EditEvaluationFormComponent { ...@@ -268,7 +268,7 @@ export class EditEvaluationFormComponent {
//############################# Modal Indicators ############################# //############################# Modal Indicators #############################
getIndicators() { getIndicators() {
this.pmsEvaluationAssessmentService.getIndicators(this.selectEmp!.apsassessy.pl.plId).subscribe({ this.pmsEvaluationAssessmentService.getIndicators(this.selectEmp!.jd.jobCodeId).subscribe({
next: response => { next: response => {
this.indicatorsList = response this.indicatorsList = response
this.indicatorChange() this.indicatorChange()
......
...@@ -28,8 +28,8 @@ export class EvaluationAssessmentService { ...@@ -28,8 +28,8 @@ export class EvaluationAssessmentService {
getApsassessyMini(evaluationRoundId: string, apsassessy: string, apsyear: string): Observable<AppraisalRoundModel[]> { getApsassessyMini(evaluationRoundId: string, apsassessy: string, apsyear: string): Observable<AppraisalRoundModel[]> {
return this.http.get<AppraisalRoundModel[]>(this.urlApi + "/mini/" + evaluationRoundId + "/" + apsassessy + "/" + apsyear) return this.http.get<AppraisalRoundModel[]>(this.urlApi + "/mini/" + evaluationRoundId + "/" + apsassessy + "/" + apsyear)
} }
getIndicators(plId: string): Observable<AppraisalRoundModel[]> { getIndicators(jobCodeId: string): Observable<AppraisalRoundModel[]> {
return this.http.get<AppraisalRoundModel[]>(this.urlApi + "/indicators/list/" + plId) return this.http.get<AppraisalRoundModel[]>(this.urlApi + "/indicators/list/" + jobCodeId)
} }
post(body: AppraisalModel): Observable<AlertModel> { post(body: AppraisalModel): Observable<AlertModel> {
return this.http.post<AlertModel>(this.urlApi, body) return this.http.post<AlertModel>(this.urlApi, body)
......
...@@ -30,8 +30,8 @@ export class PmsEvaluationAssessmentService { ...@@ -30,8 +30,8 @@ export class PmsEvaluationAssessmentService {
getApsassessyMini(evaluationRoundId: string, apsassessy: string, apsyear: string): Observable<MasfromEvaluationAssessment1lList[]> { getApsassessyMini(evaluationRoundId: string, apsassessy: string, apsyear: string): Observable<MasfromEvaluationAssessment1lList[]> {
return this.http.get<MasfromEvaluationAssessment1lList[]>(this.urlApi + "/mini/" + evaluationRoundId + "/" + apsassessy + "/" + apsyear) return this.http.get<MasfromEvaluationAssessment1lList[]>(this.urlApi + "/mini/" + evaluationRoundId + "/" + apsassessy + "/" + apsyear)
} }
getIndicators(plId: string): Observable<MasfromEvaluationAssessment1lList[]> { getIndicators(jobCodeId: string): Observable<MasfromEvaluationAssessment1lList[]> {
return this.http.get<MasfromEvaluationAssessment1lList[]>(this.urlApi + "/pms-topic/list/" + plId) return this.http.get<MasfromEvaluationAssessment1lList[]>(this.urlApi + "/pms-topic/list/" + jobCodeId)
} }
post(body: PmsMasfromEvaluationFullModel): Observable<AlertModel> { post(body: PmsMasfromEvaluationFullModel): Observable<AlertModel> {
return this.http.post<AlertModel>(this.urlApi, body) return this.http.post<AlertModel>(this.urlApi, body)
......
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