Manuel Tauber 2024-06-12 16:57:19 +02:00
parent 894ef0dbaf
commit bbc2d4cdf3
2 changed files with 14 additions and 5 deletions

View File

@ -208,7 +208,6 @@
</div>
</ng-template>
</ejs-gantt>
<app-plan-time-bar #plantimeComponent *ngIf="!errorService.rsso && renderplanTime && renderGantt"
[inputData]="inputForTimeline" [splitterSettings]="splitterSettings" [parentResources]="allResources"
[filters]="filters"></app-plan-time-bar>
@ -222,7 +221,7 @@
<!-- [filterSettings]="filterSettings" -->
<mat-paginator #paginator [ngStyle]="{'visibility':renderGantt ? 'visible' : 'hidden'}" class="demo-paginator"
(page)="handlePageEvent($event)" [length]="this.dataService.getTotalSize()" [pageSize]="200" [disabled]="false"
(page)="handlePageEvent($event)" [length]="this.dataService.getTotalSize()" [pageSize]="20" [disabled]="false"
[showFirstLastButtons]="true" [pageSizeOptions]="[10, 20, 50, 70, 100, 200, 500]" [hidePageSize]="false"
[pageIndex]="0" aria-label="Seite auswählen">
</mat-paginator>

View File

@ -114,7 +114,7 @@ export class NttGanttComponent implements OnInit {
public horizontalPosition: MatSnackBarHorizontalPosition = 'end';
public verticalPosition: MatSnackBarVerticalPosition = 'bottom';
public inputForTimeline = [];
public renderplanTime: boolean = false;
public renderplanTime: boolean = true;
public planTimeScrollLeft: number = 0;
public stateList: any[] = [];
@ -209,7 +209,8 @@ export class NttGanttComponent implements OnInit {
this.renderGantt = false;
this.firstLoad = true;
this.sliceStart = 0;
this.sliceEnd = 200;
this.sliceEnd = 20;
this.dataService.getUser().then((res: any) => {
console.log(res);
@ -428,7 +429,8 @@ export class NttGanttComponent implements OnInit {
this.userPreferences = res.userPreferences;
this.showDetails = res.userPreferences.showDetails;
this.selectedScalar = this.scalars[res.userPreferences.view];
this.changeScalar();
console.log()
console.log("SELECETEDSCALAR########"+this.selectedScalar);
this.dataService.fetchUserSupportGroup().then((res: any) => {
@ -454,6 +456,8 @@ export class NttGanttComponent implements OnInit {
/**###################################################################### Data Mapping, Filter and Sorting Functions ######################################################################*/
/**
@ -542,6 +546,7 @@ export class NttGanttComponent implements OnInit {
this.spin = false;
this.showNoResultsError = true;
this.renderplanTime = false;
}
});
}
@ -713,14 +718,17 @@ export class NttGanttComponent implements OnInit {
if (this.selectedScalar == this.scalars[0]) {
this.timelineSettings = { topTier: { unit: 'Week' }, bottomTier: { format: 'dd', unit: 'Day', count: 1 } };
this.renderplanTime = false;
}
if (this.selectedScalar == this.scalars[1]) {
this.timelineSettings = { topTier: { unit: 'Month' }, bottomTier: { format: 'WW', unit: 'Week', count: 1 } };
this.renderplanTime = true;
}
if (this.selectedScalar == this.scalars[2]) {
this.timelineSettings = { topTier: { unit: 'Year' }, bottomTier: { format: 'MM', unit: 'Month', count: 1 } };
this.renderplanTime = false;
}
this.editUserPreferences();
@ -754,6 +762,7 @@ export class NttGanttComponent implements OnInit {
this.plantimeComponent.changeDateRange(this.projectStartDate, this.projectEndDate);
this.renderplanTime = true;
}
}
@ -767,6 +776,7 @@ export class NttGanttComponent implements OnInit {
this.plantimeComponent.changeDateRange(this.projectStartDate, this.projectEndDate);
this.renderplanTime = true;
}
}
/**