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,
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") {

@ -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");

@ -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");

Loading…
Cancel
Save