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