added ar text into other date component

mekawy-issues
Salman Afzal 6 years ago
parent 5538076b13
commit 2c52a898d9

@ -346,7 +346,8 @@ export class SubmitAbsenceComponent implements OnInit {
containerId, containerId,
feildsList[i].MOBILE_ENABLED, feildsList[i].MOBILE_ENABLED,
feildsList[i].DISPLAY_FLAG, feildsList[i].DISPLAY_FLAG,
feildsList[i].REQUIRED_FLAG feildsList[i].REQUIRED_FLAG,
this.direction
); );
} else { } else {
this.dateInput = new DateInput( this.dateInput = new DateInput(
@ -356,7 +357,8 @@ export class SubmitAbsenceComponent implements OnInit {
containerId, containerId,
feildsList[i].MOBILE_ENABLED, feildsList[i].MOBILE_ENABLED,
feildsList[i].DISPLAY_FLAG, feildsList[i].DISPLAY_FLAG,
feildsList[i].REQUIRED_FLAG feildsList[i].REQUIRED_FLAG,
this.direction
); );
} }
} else if (feildsList[i].FORMAT_TYPE == "Y") { } else if (feildsList[i].FORMAT_TYPE == "Y") {

@ -60,10 +60,12 @@ export class CreateVacationRuleComponent implements OnInit {
private textInput: TextInput; private textInput: TextInput;
private selectInput: SelectInput; private selectInput: SelectInput;
private dateInput: DateInput; private dateInput: DateInput;
direction:string;
constructor(public vacationRuleService: VacationRuleServiceService, public ts: TranslatorService, public cs: CommonService, constructor(public vacationRuleService: VacationRuleServiceService, public ts: TranslatorService, public cs: CommonService,
private elementRef: ElementRef, public navCtrl: NavController, public router: Router, public modalController: ModalController, private elementRef: ElementRef, public navCtrl: NavController, public router: Router, public modalController: ModalController,
private route: ActivatedRoute) { private route: ActivatedRoute) {
this.direction = TranslatorService.getCurrentLanguageName();
this.Sdate = moment().format('YYYY-MM-DDTHH:mm:ssZ'); this.Sdate = moment().format('YYYY-MM-DDTHH:mm:ssZ');
this.isUpdate = this.cs.sharedService.getSharedData('isUpdate'); this.isUpdate = this.cs.sharedService.getSharedData('isUpdate');
@ -512,7 +514,7 @@ export class CreateVacationRuleComponent implements OnInit {
} else if (RespondAttributesList[i].ATTRIBUTE_TYPE == "DATE") { } else if (RespondAttributesList[i].ATTRIBUTE_TYPE == "DATE") {
console.log("3"); 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") { } else if (RespondAttributesList[i].ATTRIBUTE_TYPE == "NUMBER") {
console.log("4"); console.log("4");

@ -66,15 +66,14 @@ export class VacationTypeComponent implements OnInit {
P_RESPOND_ATTRIBUTES_TBL: any=[]; P_RESPOND_ATTRIBUTES_TBL: any=[];
vacationRuleRequest: createVacationRequest; vacationRuleRequest: createVacationRequest;
confirmMsg: string; confirmMsg: string;
direction: string;
constructor(public vacationRuleService: VacationRuleServiceService, constructor(public vacationRuleService: VacationRuleServiceService,
public ts: TranslatorService, public ts: TranslatorService,
public cs: CommonService, public cs: CommonService,
public modalController: ModalController, public modalController: ModalController,
private elementRef: ElementRef) { private elementRef: ElementRef) {
this.direction = TranslatorService.getCurrentLanguageName();
} }
ngOnInit() { ngOnInit() {
@ -433,7 +432,7 @@ createVacationDynamicFields(RespondAttributesList) {
} else if (RespondAttributesList[i].ATTRIBUTE_TYPE == "DATE") { } else if (RespondAttributesList[i].ATTRIBUTE_TYPE == "DATE") {
console.log("3"); 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") { } else if (RespondAttributesList[i].ATTRIBUTE_TYPE == "NUMBER") {
console.log("4"); console.log("4");

Loading…
Cancel
Save