From 0aa437160f9fc69cb8444bfa2f4feeadc63575f8 Mon Sep 17 00:00:00 2001 From: umasoodch Date: Mon, 11 Sep 2023 10:23:07 +0300 Subject: [PATCH] fixed MOE issues before profuction --- Mohem/src/app/app.scss | 2 +- .../ui/card-filter/card-filter.component.ts | 4 ++- .../worklist-advanced-search.component.ts | 2 +- .../worklist-main.component.html | 5 ++++ .../worklist-main/worklist-main.component.ts | 12 +++++--- .../add-update-contact.component.scss | 15 +++++++++- .../add-update-contact.component.ts | 27 +++++++++--------- .../assets/imgs/mohemm-action/completed.png | Bin 0 -> 1560 bytes 8 files changed, 46 insertions(+), 21 deletions(-) create mode 100644 Mohem/src/assets/imgs/mohemm-action/completed.png diff --git a/Mohem/src/app/app.scss b/Mohem/src/app/app.scss index 057206e1..09f404f8 100644 --- a/Mohem/src/app/app.scss +++ b/Mohem/src/app/app.scss @@ -37,5 +37,5 @@ height: 60%; } .dependent-title .ion-title{ - font-size:0.4cm !important; + font-size:0.5cm !important; } \ No newline at end of file diff --git a/Mohem/src/app/hmg-common/ui/card-filter/card-filter.component.ts b/Mohem/src/app/hmg-common/ui/card-filter/card-filter.component.ts index 8e522d69..8a1ae6ec 100644 --- a/Mohem/src/app/hmg-common/ui/card-filter/card-filter.component.ts +++ b/Mohem/src/app/hmg-common/ui/card-filter/card-filter.component.ts @@ -19,8 +19,10 @@ export class CardFilterComponent implements OnInit { ngOnInit() { this.direction = TranslatorService.getCurrentLanguageName(); console.log(this.direction); - if (this.direction == 'ar') { + if (this.direction == 'ar' && this.text == 'HR') { this.text = 'الموارد البشرية'; + } else if (this.direction == 'ar' && this.text == 'HR-C') { + this.text = 'قائمة المهام'; } } diff --git a/Mohem/src/app/notification/worklist-advanced-search/worklist-advanced-search.component.ts b/Mohem/src/app/notification/worklist-advanced-search/worklist-advanced-search.component.ts index b3a80d54..b524872e 100644 --- a/Mohem/src/app/notification/worklist-advanced-search/worklist-advanced-search.component.ts +++ b/Mohem/src/app/notification/worklist-advanced-search/worklist-advanced-search.component.ts @@ -29,7 +29,7 @@ export class WorklistAdvancedSearchComponent implements OnInit { ngOnInit() { this.text = this.direction == 'en' ? 'HR': 'الموارد البشرية'; - this.text2 = this.direction == 'en' ? 'HR Checklist': 'قائمة مراجعة الموارد البشرية'; + this.text2 = this.direction == 'en' ? 'HR Checklist': 'قائمة المهام'; } public dismissModal() { diff --git a/Mohem/src/app/notification/worklist-main/worklist-main.component.html b/Mohem/src/app/notification/worklist-main/worklist-main.component.html index 626e8856..4a3a7359 100644 --- a/Mohem/src/app/notification/worklist-main/worklist-main.component.html +++ b/Mohem/src/app/notification/worklist-main/worklist-main.component.html @@ -1256,6 +1256,11 @@ + + + {{complete_label}} + + diff --git a/Mohem/src/app/notification/worklist-main/worklist-main.component.ts b/Mohem/src/app/notification/worklist-main/worklist-main.component.ts index ed4d451d..9cd67612 100644 --- a/Mohem/src/app/notification/worklist-main/worklist-main.component.ts +++ b/Mohem/src/app/notification/worklist-main/worklist-main.component.ts @@ -98,6 +98,7 @@ export class WorklistMainComponent implements OnInit { approveDis: boolean = false; rejectDis: boolean = false; requestDis: boolean = false; + completeDis: boolean = false; moreDisabled: boolean = true; dirfromNotificationPage: boolean = false; direction: string; @@ -108,6 +109,7 @@ export class WorklistMainComponent implements OnInit { approve_label: any = ""; reject_label: any = ""; reqInfo_label: any = ""; + complete_label: any = ""; close_label: any; closeDis: boolean = false; public selectedFilter: string; @@ -209,6 +211,7 @@ export class WorklistMainComponent implements OnInit { this.requestDis = false; this.moreDisabled = true; this.closeDis = false; + this.completeDis = false; if (this.messageSuccess) { document.getElementById("notificationDynamicFields").innerHTML = ""; @@ -579,11 +582,12 @@ export class WorklistMainComponent implements OnInit { (this.notificationButtonRes[i].BUTTON_ACTION == "CLOSE") { this.close_label = this.notificationButtonRes[i].BUTTON_LABEL; this.closeDis = true; - } else if - - (this.notificationButtonRes[i].BUTTON_ACTION != "APPROVED" && this.notificationButtonRes[i].BUTTON_ACTION != "REJECTED" && this.notificationButtonRes[i].BUTTON_ACTION != "REQUEST_INFO" && this.notificationButtonRes[i].BUTTON_ACTION != "CLOSE") { + } + else if (this.notificationButtonRes[i].BUTTON_ACTION == "COMPLETE") { + this.complete_label = this.notificationButtonRes[i].BUTTON_LABEL; + this.completeDis = true; + } else if (this.notificationButtonRes[i].BUTTON_ACTION != "APPROVED" && this.notificationButtonRes[i].BUTTON_ACTION != "REJECTED" && this.notificationButtonRes[i].BUTTON_ACTION != "REQUEST_INFO" && this.notificationButtonRes[i].BUTTON_ACTION != "CLOSE" && this.notificationButtonRes[i].BUTTON_ACTION != "COMPLETE") { this.moreDisabled = false; - } } } diff --git a/Mohem/src/app/profile/add-update-contact/add-update-contact.component.scss b/Mohem/src/app/profile/add-update-contact/add-update-contact.component.scss index 764fe8af..5d4f7e07 100644 --- a/Mohem/src/app/profile/add-update-contact/add-update-contact.component.scss +++ b/Mohem/src/app/profile/add-update-contact/add-update-contact.component.scss @@ -49,4 +49,17 @@ padding-top: 0px !important; color: #999999 !important; height:80px -} \ No newline at end of file +} + +.addEitOkButton{ + white-space: normal !important; + text-transform: capitalize !important; + min-height: 45px !important; + min-width: 5px !important; + margin: 8px !important; + background-color: #44A7A1; + width: 80% !important; + color: white !important; + border-radius: 16px !important; + --border-radius: 16px !important; +} diff --git a/Mohem/src/app/profile/add-update-contact/add-update-contact.component.ts b/Mohem/src/app/profile/add-update-contact/add-update-contact.component.ts index 557c5762..7924ef49 100644 --- a/Mohem/src/app/profile/add-update-contact/add-update-contact.component.ts +++ b/Mohem/src/app/profile/add-update-contact/add-update-contact.component.ts @@ -165,8 +165,8 @@ export class AddUpdateContactComponent implements OnInit { P_FUNCTION_NAME: this.functionName, P_SELECTED_EMPLOYEE_NUMBER: this.selEmp, P_MENU_TYPE: this.menuType, - P_SELECTED_RESP_ID: this.respID, - 'P_DESC_FLEX_CONTEXT_CODE': 'HMG_ADD_CONTACT_DETAILS' + P_SELECTED_RESP_ID: this.respID + // 'P_DESC_FLEX_CONTEXT_CODE': 'HMG_ADD_CONTACT_DETAILS' }; this.profileService.getContactDFFStrutre(body).subscribe((result: any) => { this.handleDffStructureResult(result); @@ -181,16 +181,17 @@ export class AddUpdateContactComponent implements OnInit { } } private getBasicffStructure() { - const body = { - P_FUNCTION_NAME: this.functionName, - P_SELECTED_EMPLOYEE_NUMBER: this.selEmp, - P_MENU_TYPE: this.menuType, - P_SELECTED_RESP_ID: this.respID, - P_REQUEST_TYPE: this.getPassMnuEntryObj.REQUEST_TYPE - }; - this.profileService.getBasicDFFStrutre(body).subscribe((result: any) => { - this.handleBasicDffStructureResult(result); - }); + this.getColumnStructure(); + // const body = { + // P_FUNCTION_NAME: this.functionName, + // P_SELECTED_EMPLOYEE_NUMBER: this.selEmp, + // P_MENU_TYPE: this.menuType, + // P_SELECTED_RESP_ID: this.respID, + // P_REQUEST_TYPE: this.getPassMnuEntryObj.REQUEST_TYPE + // }; + // this.profileService.getBasicDFFStrutre(body).subscribe((result: any) => { + // this.handleBasicDffStructureResult(result); + // }); } public handleBasicColStructureResult(result) { @@ -2122,7 +2123,7 @@ export class AddUpdateContactComponent implements OnInit { DATE_VALUE: this.cs.formatDate(this.endDate) }); } else { - this.arrValues = this.getElementsValues(); + // this.arrValues = this.getElementsValues(); var dffvalues = this.getElementsValuesDff(); let staticValues = this.getElementsStaticValues(); allStatisDynamicValues = dffvalues.concat(this.arrValues.concat(staticValues)); diff --git a/Mohem/src/assets/imgs/mohemm-action/completed.png b/Mohem/src/assets/imgs/mohemm-action/completed.png new file mode 100644 index 0000000000000000000000000000000000000000..a05cd2bc596e06438498efc25ae58aba2b1e2ee3 GIT binary patch literal 1560 zcmV+z2Iu*SP)WIHZT#l&=xeh@qjMVg?5Yw zqccX|#D@h64^5zKQIq-P)R*}pqh%URh7v=v4GIon$u@ACFdbut1!lIf$b?$%=Q*9X zwxzed_tHPN)$fJSo^!t6?>px^-?`sCWuRd+54iFL54Qk=N(L;Cb9fMduV9QBG?w<^_(lN?98ZV`B! z*RXKR{>gf@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