Datepickers using max date with business date

This commit is contained in:
Jose Alberto Hernandez
2022-07-28 17:06:39 +02:00
committed by Arnold Gálovics
parent 753791a078
commit a4b266080b
132 changed files with 268 additions and 42 deletions
@@ -48,6 +48,7 @@ export class ActivateCenterComponent implements OnInit {
* Creates the activate center form.
*/
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.createActivateCenterForm();
}
@@ -59,6 +59,7 @@ export class AttachCenterMeetingComponent implements OnInit {
}
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.createCenterMeetingForm();
this.buildDependencies();
}
@@ -70,6 +70,7 @@ export class CenterAttendanceComponent implements OnInit {
* Sets the members table.
*/
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
if (this.membersData !== undefined && this.membersData !== null) {
this.dataSource = this.membersData.map((member: any) => ({ clientId: member.id, attendanceType: 1 }));
}
@@ -50,6 +50,7 @@ export class CloseCenterComponent implements OnInit {
}
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.createCloseCenterForm();
}
@@ -57,6 +57,7 @@ export class EditCenterMeetingScheduleComponent implements OnInit {
}
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.createEditMeetingScheduleForm();
}
@@ -62,6 +62,7 @@ export class EditCenterMeetingComponent implements OnInit {
}
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.createEditCenterMeetingForm();
this.buildDependencies();
}
@@ -62,6 +62,7 @@ export class CreateCenterComponent implements OnInit {
* Creates and sets the center form.
*/
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.createCenterForm();
}
@@ -54,6 +54,7 @@ export class EditCenterComponent implements OnInit {
* Creates the edit center form.
*/
ngOnInit(): void {
this.maxDate = this.settingsService.businessDate;
this.createEditCenterForm();
}