From 2c52a898d92659704338cb79e924759013800a10 Mon Sep 17 00:00:00 2001 From: Salman Afzal Date: Wed, 1 Apr 2020 12:30:45 +0300 Subject: [PATCH] added ar text into other date component --- .../app/absence/submit-absence/submit-absence.component.ts | 6 ++++-- .../create-vacation-rule/create-vacation-rule.component.ts | 6 ++++-- .../vacation-rule/vacation-type/vacation-type.component.ts | 7 +++---- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/Mohem/src/app/absence/submit-absence/submit-absence.component.ts b/Mohem/src/app/absence/submit-absence/submit-absence.component.ts index 7dba1520..27a914b5 100644 --- a/Mohem/src/app/absence/submit-absence/submit-absence.component.ts +++ b/Mohem/src/app/absence/submit-absence/submit-absence.component.ts @@ -346,7 +346,8 @@ export class SubmitAbsenceComponent implements OnInit { containerId, feildsList[i].MOBILE_ENABLED, feildsList[i].DISPLAY_FLAG, - feildsList[i].REQUIRED_FLAG + feildsList[i].REQUIRED_FLAG, + this.direction ); } else { this.dateInput = new DateInput( @@ -356,7 +357,8 @@ export class SubmitAbsenceComponent implements OnInit { containerId, feildsList[i].MOBILE_ENABLED, feildsList[i].DISPLAY_FLAG, - feildsList[i].REQUIRED_FLAG + feildsList[i].REQUIRED_FLAG, + this.direction ); } } else if (feildsList[i].FORMAT_TYPE == "Y") { diff --git a/Mohem/src/app/vacation-rule/create-vacation-rule/create-vacation-rule.component.ts b/Mohem/src/app/vacation-rule/create-vacation-rule/create-vacation-rule.component.ts index 238f5e77..0e844ddc 100644 --- a/Mohem/src/app/vacation-rule/create-vacation-rule/create-vacation-rule.component.ts +++ b/Mohem/src/app/vacation-rule/create-vacation-rule/create-vacation-rule.component.ts @@ -60,10 +60,12 @@ export class CreateVacationRuleComponent implements OnInit { private textInput: TextInput; private selectInput: SelectInput; private dateInput: DateInput; - + direction:string; constructor(public vacationRuleService: VacationRuleServiceService, public ts: TranslatorService, public cs: CommonService, private elementRef: ElementRef, public navCtrl: NavController, public router: Router, public modalController: ModalController, private route: ActivatedRoute) { + this.direction = TranslatorService.getCurrentLanguageName(); + this.Sdate = moment().format('YYYY-MM-DDTHH:mm:ssZ'); this.isUpdate = this.cs.sharedService.getSharedData('isUpdate'); @@ -512,7 +514,7 @@ export class CreateVacationRuleComponent implements OnInit { } else if (RespondAttributesList[i].ATTRIBUTE_TYPE == "DATE") { console.log("3"); - this.dateInput = new DateInput(RespondAttributesList[i].ATTRIBUTE_DISPLAY_NAME, RespondAttributesList[i].ATTRIBUTE_NAME, "", containerId, "", "", ""); + this.dateInput = new DateInput(RespondAttributesList[i].ATTRIBUTE_DISPLAY_NAME, RespondAttributesList[i].ATTRIBUTE_NAME, "", containerId, "", "", "", this.direction); } else if (RespondAttributesList[i].ATTRIBUTE_TYPE == "NUMBER") { console.log("4"); diff --git a/Mohem/src/app/vacation-rule/vacation-type/vacation-type.component.ts b/Mohem/src/app/vacation-rule/vacation-type/vacation-type.component.ts index 4a3cc594..eeef7508 100644 --- a/Mohem/src/app/vacation-rule/vacation-type/vacation-type.component.ts +++ b/Mohem/src/app/vacation-rule/vacation-type/vacation-type.component.ts @@ -66,15 +66,14 @@ export class VacationTypeComponent implements OnInit { P_RESPOND_ATTRIBUTES_TBL: any=[]; vacationRuleRequest: createVacationRequest; confirmMsg: string; + direction: string; constructor(public vacationRuleService: VacationRuleServiceService, public ts: TranslatorService, public cs: CommonService, public modalController: ModalController, private elementRef: ElementRef) { - - - + this.direction = TranslatorService.getCurrentLanguageName(); } ngOnInit() { @@ -433,7 +432,7 @@ createVacationDynamicFields(RespondAttributesList) { } else if (RespondAttributesList[i].ATTRIBUTE_TYPE == "DATE") { console.log("3"); - this.dateInput = new DateInput(RespondAttributesList[i].ATTRIBUTE_DISPLAY_NAME, RespondAttributesList[i].ATTRIBUTE_NAME, "", containerId, "", "", ""); + this.dateInput = new DateInput(RespondAttributesList[i].ATTRIBUTE_DISPLAY_NAME, RespondAttributesList[i].ATTRIBUTE_NAME, "", containerId, "", "", "", this.direction); } else if (RespondAttributesList[i].ATTRIBUTE_TYPE == "NUMBER") { console.log("4");