awf-test-lib 0.0.93 → 0.0.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/awf-test-lib.mjs +5 -0
- package/esm2020/lib/core/core-routing.module.mjs +18 -0
- package/esm2020/lib/core/core.module.mjs +51 -0
- package/esm2020/lib/core/menu/menu.component.mjs +40 -0
- package/esm2020/lib/core/menu-consomer/menu-consomer.component.mjs +27 -0
- package/esm2020/lib/core/menu-ge-portal/menu-ge-portal.component.mjs +31 -0
- package/esm2020/lib/core/menu-warranty/menu-warranty.component.mjs +35 -0
- package/esm2020/lib/core/not-found/not-found.component.mjs +19 -0
- package/esm2020/lib/core/top-bar/top-bar.component.mjs +41 -0
- package/esm2020/lib/models/account.model.mjs +3 -0
- package/esm2020/lib/models/alternativeDate.model.mjs +3 -0
- package/esm2020/lib/models/applicationName.mjs +7 -0
- package/esm2020/lib/models/cancelPMMailRequest.model.mjs +4 -0
- package/esm2020/lib/models/customObject.model.mjs +3 -0
- package/esm2020/lib/models/detailedPmJob.model.mjs +3 -0
- package/esm2020/lib/models/emailStatus.mjs +6 -0
- package/esm2020/lib/models/emailType.mjs +15 -0
- package/esm2020/lib/models/eventStatus.mjs +9 -0
- package/esm2020/lib/models/field.mjs +9 -0
- package/esm2020/lib/models/language.mjs +6 -0
- package/esm2020/lib/models/mailRequest.model.mjs +3 -0
- package/esm2020/lib/models/pMGroupedJob.model.mjs +3 -0
- package/esm2020/lib/models/pmJob.model.mjs +3 -0
- package/esm2020/lib/models/pmJobRequest.model.mjs +3 -0
- package/esm2020/lib/models/pmJobStatus.mjs +17 -0
- package/esm2020/lib/models/reason.model.mjs +3 -0
- package/esm2020/lib/models/reasonCode.mjs +9 -0
- package/esm2020/lib/models/reasonContact.mjs +8 -0
- package/esm2020/lib/models/reportDateMailRequest.model.mjs +4 -0
- package/esm2020/lib/models/role.mjs +7 -0
- package/esm2020/lib/models/service.model.mjs +3 -0
- package/esm2020/lib/models/serviceName.mjs +12 -0
- package/esm2020/lib/models/socialLoginRequest.model.mjs +3 -0
- package/esm2020/lib/models/socialMadia.mjs +5 -0
- package/esm2020/lib/models/stingBoolean.mjs +6 -0
- package/esm2020/lib/models/system.mjs +3 -0
- package/esm2020/lib/models/theme.model.mjs +2 -0
- package/esm2020/lib/models/tokenStatus.mjs +7 -0
- package/esm2020/lib/models/warranty.mjs +3 -0
- package/esm2020/lib/pipes/pipes/pipes.module.mjs +21 -0
- package/esm2020/lib/pipes/subrtring-w.pipe.mjs +20 -0
- package/esm2020/lib/pipes/substring.pipe.mjs +16 -0
- package/esm2020/lib/shared/choose-another-date/choose-another-date.component.mjs +110 -0
- package/esm2020/lib/shared/confirm-dialog/confirm-dialog.component.mjs +44 -0
- package/esm2020/lib/shared/confirm-dialog-contact/confirm-dialog-contact.component.mjs +42 -0
- package/esm2020/lib/shared/confirmed-date-information/confirmed-date-information.component.mjs +35 -0
- package/esm2020/lib/shared/contact/contact.component.mjs +136 -0
- package/esm2020/lib/shared/contact-support/contact-support.component.mjs +161 -0
- package/esm2020/lib/shared/dashboard/dashboard.component.mjs +34 -0
- package/esm2020/lib/shared/maintenance-list/maintenance-list.component.mjs +360 -0
- package/esm2020/lib/shared/shared-routing.module.mjs +18 -0
- package/esm2020/lib/shared/shared.module.mjs +144 -0
- package/esm2020/lib/shared/show-links/show-links.component.mjs +81 -0
- package/esm2020/lib/shared/system-list/system-list.component.mjs +32 -0
- package/esm2020/public-api.mjs +48 -0
- package/fesm2015/awf-test-lib.mjs +1546 -0
- package/fesm2015/awf-test-lib.mjs.map +1 -0
- package/fesm2020/awf-test-lib.mjs +1542 -0
- package/fesm2020/awf-test-lib.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/core/core-routing.module.d.ts +7 -0
- package/lib/core/core.module.d.ts +15 -0
- package/lib/core/menu/menu.component.d.ts +17 -0
- package/lib/core/menu-consomer/menu-consomer.component.d.ts +12 -0
- package/lib/core/menu-ge-portal/menu-ge-portal.component.d.ts +13 -0
- package/lib/core/menu-warranty/menu-warranty.component.d.ts +15 -0
- package/lib/core/not-found/not-found.component.d.ts +10 -0
- package/lib/core/top-bar/top-bar.component.d.ts +13 -0
- package/{src/lib/models/account.model.ts → lib/models/account.model.d.ts} +3 -6
- package/lib/models/alternativeDate.model.d.ts +6 -0
- package/lib/models/applicationName.d.ts +5 -0
- package/{src/lib/models/cancelPMMailRequest.model.ts → lib/models/cancelPMMailRequest.model.d.ts} +1 -3
- package/lib/models/customObject.model.d.ts +3 -0
- package/lib/models/detailedPmJob.model.d.ts +22 -0
- package/lib/models/emailStatus.d.ts +4 -0
- package/lib/models/emailType.d.ts +13 -0
- package/lib/models/eventStatus.d.ts +7 -0
- package/lib/models/field.d.ts +7 -0
- package/lib/models/language.d.ts +4 -0
- package/{src/lib/models/mailRequest.model.ts → lib/models/mailRequest.model.d.ts} +1 -3
- package/lib/models/pMGroupedJob.model.d.ts +3 -0
- package/{src/lib/models/pmJob.model.ts → lib/models/pmJob.model.d.ts} +6 -7
- package/lib/models/pmJobRequest.model.d.ts +5 -0
- package/{src/lib/models/pmJobStatus.ts → lib/models/pmJobStatus.d.ts} +3 -8
- package/lib/models/reason.model.d.ts +4 -0
- package/lib/models/reasonCode.d.ts +7 -0
- package/lib/models/reasonContact.d.ts +6 -0
- package/{src/lib/models/reportDateMailRequest.model.ts → lib/models/reportDateMailRequest.model.d.ts} +1 -3
- package/lib/models/role.d.ts +5 -0
- package/lib/models/service.model.d.ts +8 -0
- package/lib/models/serviceName.d.ts +10 -0
- package/{src/lib/models/socialLoginRequest.model.ts → lib/models/socialLoginRequest.model.d.ts} +1 -1
- package/lib/models/socialMadia.d.ts +3 -0
- package/lib/models/stingBoolean.d.ts +4 -0
- package/lib/models/system.d.ts +14 -0
- package/{src/lib/models/theme.model.ts → lib/models/theme.model.d.ts} +11 -18
- package/lib/models/tokenStatus.d.ts +5 -0
- package/lib/models/warranty.d.ts +17 -0
- package/lib/pipes/pipes/pipes.module.d.ts +9 -0
- package/lib/pipes/subrtring-w.pipe.d.ts +7 -0
- package/lib/pipes/substring.pipe.d.ts +7 -0
- package/lib/shared/choose-another-date/choose-another-date.component.d.ts +33 -0
- package/lib/shared/confirm-dialog/confirm-dialog.component.d.ts +20 -0
- package/lib/shared/confirm-dialog-contact/confirm-dialog-contact.component.d.ts +19 -0
- package/lib/shared/confirmed-date-information/confirmed-date-information.component.d.ts +15 -0
- package/lib/shared/contact/contact.component.d.ts +38 -0
- package/lib/shared/contact-support/contact-support.component.d.ts +49 -0
- package/lib/shared/dashboard/dashboard.component.d.ts +17 -0
- package/lib/shared/maintenance-list/maintenance-list.component.d.ts +83 -0
- package/lib/shared/shared-routing.module.d.ts +7 -0
- package/lib/shared/shared.module.d.ts +40 -0
- package/lib/shared/show-links/show-links.component.d.ts +23 -0
- package/lib/shared/system-list/system-list.component.d.ts +15 -0
- package/package.json +30 -10
- package/{src/public-api.ts → public-api.d.ts} +1 -16
- package/karma.conf.js +0 -44
- package/ng-package.json +0 -7
- package/src/lib/core/core-routing.module.ts +0 -10
- package/src/lib/core/core.module.ts +0 -35
- package/src/lib/core/menu/menu.component.css +0 -18
- package/src/lib/core/menu/menu.component.html +0 -8
- package/src/lib/core/menu/menu.component.spec.ts +0 -23
- package/src/lib/core/menu/menu.component.ts +0 -27
- package/src/lib/core/menu-consomer/menu-consomer.component.html +0 -20
- package/src/lib/core/menu-consomer/menu-consomer.component.scss +0 -20
- package/src/lib/core/menu-consomer/menu-consomer.component.spec.ts +0 -25
- package/src/lib/core/menu-consomer/menu-consomer.component.ts +0 -21
- package/src/lib/core/menu-ge-portal/menu-ge-portal.component.html +0 -7
- package/src/lib/core/menu-ge-portal/menu-ge-portal.component.scss +0 -17
- package/src/lib/core/menu-ge-portal/menu-ge-portal.component.spec.ts +0 -25
- package/src/lib/core/menu-ge-portal/menu-ge-portal.component.ts +0 -24
- package/src/lib/core/menu-warranty/menu-warranty.component.html +0 -20
- package/src/lib/core/menu-warranty/menu-warranty.component.scss +0 -16
- package/src/lib/core/menu-warranty/menu-warranty.component.spec.ts +0 -25
- package/src/lib/core/menu-warranty/menu-warranty.component.ts +0 -31
- package/src/lib/core/not-found/not-found.component.css +0 -31
- package/src/lib/core/not-found/not-found.component.html +0 -6
- package/src/lib/core/not-found/not-found.component.spec.ts +0 -23
- package/src/lib/core/not-found/not-found.component.ts +0 -15
- package/src/lib/core/top-bar/top-bar.component.css +0 -116
- package/src/lib/core/top-bar/top-bar.component.html +0 -1
- package/src/lib/core/top-bar/top-bar.component.spec.ts +0 -23
- package/src/lib/core/top-bar/top-bar.component.ts +0 -39
- package/src/lib/models/alternativeDate.model.ts +0 -6
- package/src/lib/models/applicationName.ts +0 -6
- package/src/lib/models/customObject.model.ts +0 -4
- package/src/lib/models/detailedPmJob.model.ts +0 -24
- package/src/lib/models/emailStatus.ts +0 -4
- package/src/lib/models/emailType.ts +0 -17
- package/src/lib/models/eventStatus.ts +0 -8
- package/src/lib/models/field.ts +0 -7
- package/src/lib/models/language.ts +0 -4
- package/src/lib/models/pMGroupedJob.model.ts +0 -4
- package/src/lib/models/pmJobRequest.model.ts +0 -6
- package/src/lib/models/reason.model.ts +0 -7
- package/src/lib/models/reasonCode.ts +0 -9
- package/src/lib/models/reasonContact.ts +0 -7
- package/src/lib/models/role.ts +0 -5
- package/src/lib/models/service.model.ts +0 -8
- package/src/lib/models/serviceName.ts +0 -14
- package/src/lib/models/socialMadia.ts +0 -4
- package/src/lib/models/stingBoolean.ts +0 -7
- package/src/lib/models/system.ts +0 -15
- package/src/lib/models/tokenStatus.ts +0 -6
- package/src/lib/models/warranty.ts +0 -18
- package/src/lib/pipes/pipes/pipes.module.ts +0 -14
- package/src/lib/pipes/subrtring-w.pipe.spec.ts +0 -8
- package/src/lib/pipes/subrtring-w.pipe.ts +0 -16
- package/src/lib/pipes/substring.pipe.spec.ts +0 -8
- package/src/lib/pipes/substring.pipe.ts +0 -15
- package/src/lib/shared/choose-another-date/choose-another-date.component.html +0 -9
- package/src/lib/shared/choose-another-date/choose-another-date.component.scss +0 -4
- package/src/lib/shared/choose-another-date/choose-another-date.component.spec.ts +0 -25
- package/src/lib/shared/choose-another-date/choose-another-date.component.ts +0 -126
- package/src/lib/shared/confirm-dialog/confirm-dialog.component.html +0 -27
- package/src/lib/shared/confirm-dialog/confirm-dialog.component.scss +0 -0
- package/src/lib/shared/confirm-dialog/confirm-dialog.component.spec.ts +0 -25
- package/src/lib/shared/confirm-dialog/confirm-dialog.component.ts +0 -35
- package/src/lib/shared/confirm-dialog-contact/confirm-dialog-contact.component.css +0 -0
- package/src/lib/shared/confirm-dialog-contact/confirm-dialog-contact.component.html +0 -19
- package/src/lib/shared/confirm-dialog-contact/confirm-dialog-contact.component.spec.ts +0 -23
- package/src/lib/shared/confirm-dialog-contact/confirm-dialog-contact.component.ts +0 -36
- package/src/lib/shared/confirmed-date-information/confirmed-date-information.component.html +0 -25
- package/src/lib/shared/confirmed-date-information/confirmed-date-information.component.scss +0 -23
- package/src/lib/shared/confirmed-date-information/confirmed-date-information.component.spec.ts +0 -25
- package/src/lib/shared/confirmed-date-information/confirmed-date-information.component.ts +0 -25
- package/src/lib/shared/contact/contact.component.css +0 -144
- package/src/lib/shared/contact/contact.component.html +0 -122
- package/src/lib/shared/contact/contact.component.spec.ts +0 -23
- package/src/lib/shared/contact/contact.component.ts +0 -157
- package/src/lib/shared/contact-support/contact-support.component.html +0 -126
- package/src/lib/shared/contact-support/contact-support.component.scss +0 -10
- package/src/lib/shared/contact-support/contact-support.component.spec.ts +0 -25
- package/src/lib/shared/contact-support/contact-support.component.ts +0 -191
- package/src/lib/shared/dashboard/dashboard.component.html +0 -81
- package/src/lib/shared/dashboard/dashboard.component.scss +0 -5
- package/src/lib/shared/dashboard/dashboard.component.spec.ts +0 -23
- package/src/lib/shared/dashboard/dashboard.component.ts +0 -21
- package/src/lib/shared/maintenance-list/maintenance-list.component.html +0 -100
- package/src/lib/shared/maintenance-list/maintenance-list.component.scss +0 -26
- package/src/lib/shared/maintenance-list/maintenance-list.component.spec.ts +0 -25
- package/src/lib/shared/maintenance-list/maintenance-list.component.ts +0 -466
- package/src/lib/shared/shared-routing.module.ts +0 -10
- package/src/lib/shared/shared.module.ts +0 -84
- package/src/lib/shared/show-links/show-links.component.html +0 -48
- package/src/lib/shared/show-links/show-links.component.scss +0 -0
- package/src/lib/shared/show-links/show-links.component.spec.ts +0 -25
- package/src/lib/shared/show-links/show-links.component.ts +0 -80
- package/src/lib/shared/system-list/system-list.component.css +0 -0
- package/src/lib/shared/system-list/system-list.component.html +0 -40
- package/src/lib/shared/system-list/system-list.component.spec.ts +0 -23
- package/src/lib/shared/system-list/system-list.component.ts +0 -26
- package/src/test.ts +0 -27
- package/tsconfig.lib.dev.json +0 -10
- package/tsconfig.lib.json +0 -15
- package/tsconfig.lib.pp.json +0 -10
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -17
@@ -1,21 +0,0 @@
|
|
1
|
-
import { Component, OnChanges,Input, SimpleChanges } from '@angular/core';
|
2
|
-
import { DetailedPmJob } from '../../models/detailedPmJob.model';
|
3
|
-
import { System } from '../../models/system';
|
4
|
-
|
5
|
-
|
6
|
-
@Component({
|
7
|
-
selector: 'awf-dashboard',
|
8
|
-
templateUrl: './dashboard.component.html',
|
9
|
-
styleUrls: ['./dashboard.component.scss']
|
10
|
-
})
|
11
|
-
export class DashboardComponent implements OnChanges {
|
12
|
-
@Input() name!: string;
|
13
|
-
@Input() email!: string;
|
14
|
-
@Input() number!: string;
|
15
|
-
@Input() systems!: System[] ;
|
16
|
-
@Input() toBeScheduledMaintenanceList: DetailedPmJob[] = [];
|
17
|
-
@Input() alreadyScheduledMaintenanceList: DetailedPmJob[] = [];
|
18
|
-
@Input() translate!: any;
|
19
|
-
constructor() { }
|
20
|
-
ngOnChanges(changes: SimpleChanges): void {}
|
21
|
-
}
|
@@ -1,100 +0,0 @@
|
|
1
|
-
<p-table #dt [value]="maintenanceList" responsiveLayout="stack" [rows]="10" [showCurrentPageReport]="true" [rowsPerPageOptions]="[5,10,25,50]" [paginator]="true" [globalFilterFields]="['systemId','pmJob.caseId','systemName','pmJob.workorderNumber','pmJob.startDateTime','pmJob.endDateTime','pmJob.case_type','pmJob.case_category','status']"
|
2
|
-
[rowHover]="true" dataKey="id" [currentPageReportTemplate]="globaltranslate.countPages" [first]="first">
|
3
|
-
<ng-template pTemplate="caption">
|
4
|
-
<div>
|
5
|
-
<span class="p-input-icon-left">
|
6
|
-
<i class="pi pi-search"></i>
|
7
|
-
<input pInputText type="text" (input)="applyFilterGlobal($event, 'contains')"
|
8
|
-
[placeholder]="globaltranslate.search" />
|
9
|
-
</span>
|
10
|
-
</div>
|
11
|
-
</ng-template>
|
12
|
-
<ng-template pTemplate="header" let-columns>
|
13
|
-
<tr>
|
14
|
-
<!-- <th pSortableColumn="caseId">Case Id <p-sortIcon field="caseId"></p-sortIcon> -->
|
15
|
-
<th pSortableColumn="systemName">{{translate.maintenanceList.system}}
|
16
|
-
<p-sortIcon field="systemName"></p-sortIcon>
|
17
|
-
<th pSortableColumn="room">{{translate.maintenanceList.room}}
|
18
|
-
<p-sortIcon field="room"></p-sortIcon>
|
19
|
-
<th pSortableColumn="systemId">System Id
|
20
|
-
<p-sortIcon field="systemId"></p-sortIcon>
|
21
|
-
<th pSortableColumn="workorderNumber">{{translate.maintenanceList.workOrder}}
|
22
|
-
<p-sortIcon field="workorderNumber"></p-sortIcon>
|
23
|
-
<th pSortableColumn="startDateTime">{{translate.maintenanceList.startDate}}
|
24
|
-
<p-sortIcon field="startDateTime"></p-sortIcon>
|
25
|
-
<th pSortableColumn="case_type">{{translate.maintenanceList.type}}
|
26
|
-
<p-sortIcon field="case_type"></p-sortIcon>
|
27
|
-
<th pSortableColumn="status">{{translate.maintenanceList.status}}
|
28
|
-
<p-sortIcon field="status"></p-sortIcon>
|
29
|
-
<th pSortableColumn="status" >{{translate.maintenanceList.NbrLinks}}
|
30
|
-
<p-sortIcon field="status"></p-sortIcon>
|
31
|
-
<th> Action</th>
|
32
|
-
</tr>
|
33
|
-
</ng-template>
|
34
|
-
<ng-template pTemplate="body" let-product let-columns="columns">
|
35
|
-
<tr>
|
36
|
-
<td>{{product.systemName }}</td>
|
37
|
-
<td>{{product.room }}</td>
|
38
|
-
<td>{{product.systemId }}</td>
|
39
|
-
<td>{{product.pmJob.workorderNumber }}</td>
|
40
|
-
<td>{{product.pmJob.startDateTime | date: 'dd MMM yyyy ' }}</td>
|
41
|
-
<td>{{transformType(product.pmJob.caseType) }}</td>
|
42
|
-
<td><span [class]="'product-status status-' + product.status" [pTooltip]="getStatusTooltip(product.status)">{{transformStatus(product.status) }}</span>
|
43
|
-
</td>
|
44
|
-
<td *ngIf="product.pmJob.groupList !== null " (click)="showLinks(product)"> <span class="circle">{{product.pmJob.groupList.length }}</span> <i class="pi pi-link" style="font-size: 1rem"></i> </td>
|
45
|
-
<td *ngIf="product.pmJob.groupList ===null" (click)="showLinks(product)"> <span class="circlelinked">{{product.pmJob.groupList.length }}</span> <i class="pi pi-link" style="font-size: 1rem"></i> </td>
|
46
|
-
<td>
|
47
|
-
<button pButton pRipple type="button" label="" icon="pi pi-calendar" class="p-button-rounded" #actualTarget (click)="selectElement(product)" (click)="op.toggle($event)" [disabled]="((product.status ==='late' || product.status ==='accepted') && !isAlreadyScheduled) || product.status ==='waiting'"></button>
|
48
|
-
</td>
|
49
|
-
</tr>
|
50
|
-
</ng-template>
|
51
|
-
<ng-template pTemplate="summary">
|
52
|
-
<div class="p-d-flex p-ai-center p-jc-between">
|
53
|
-
{{globaltranslate.count}} {{maintenanceList ? maintenanceList.length : 0 }} {{globaltranslate.elements}}.
|
54
|
-
</div>
|
55
|
-
</ng-template>
|
56
|
-
</p-table>
|
57
|
-
|
58
|
-
<p-toast position="top-center"></p-toast>
|
59
|
-
<p-overlayPanel #op [dismissable]="true" [showCloseIcon]="false" [showTransitionOptions]="'0ms'" [hideTransitionOptions]="'0ms'">
|
60
|
-
<ng-template pTemplate>
|
61
|
-
|
62
|
-
<button style="width: 100%;" *ngIf="!isAlreadyScheduled" icon="pi pi-thumbs-up" (click)="confirmDialog()" [label]="translate.maintenanceList.confirmDate" class="p-button-text p-button-raised" pButton pRipple type="button">
|
63
|
-
</button>
|
64
|
-
<hr *ngIf="!isAlreadyScheduled">
|
65
|
-
<button style="width: 100%;" *ngIf="!isAlreadyScheduled && (alternativeDatesList !== null) " icon="pi pi-calendar-plus" (click)="proposeAnotherDate()" [label]="translate.maintenanceList.chooseAnotherDate" class="p-button-text p-button-raised" pButton pRipple type="button"></button>
|
66
|
-
<hr *ngIf="!isAlreadyScheduled && (alternativeDatesList!==null) ">
|
67
|
-
<button style="width: 100%;" icon="pi pi-phone" (click)="contactSupport(false)" [label]="translate.maintenanceList.contactSuppor" class="p-button-text p-button-raised" pButton pRipple type="button"></button>
|
68
|
-
<hr *ngIf="isWithLinks">
|
69
|
-
<button style="width: 100%;" icon="pi pi-link" *ngIf="isWithLinks" (click)="showLinks()" [label]="translate.maintenanceList.showLinks" class="p-button-text p-button-raised" pButton pRipple type="button"></button>
|
70
|
-
<hr *ngIf="isAlreadyScheduled && pmSelectedStatus ==='validated'">
|
71
|
-
<button style="width: 100%;" *ngIf="isAlreadyScheduled && pmSelectedStatus ==='validated'" icon="pi pi-pencil" (click)="editPm()" [label]="translate.maintenanceList.cancel" class="p-button-text p-button-raised" pButton pRipple type="button">
|
72
|
-
</button>
|
73
|
-
</ng-template>
|
74
|
-
</p-overlayPanel>
|
75
|
-
|
76
|
-
<div *ngIf="displaycontactSupport " >
|
77
|
-
<app-contact-support [reasonContact]="reasonContact" (closeContactSupport)="closeContactSupport($event)" (sendDetailedPm)="sendContactMeForm($event)" [detailedPmJob] ="maintenanceSelected" [globaltranslate]="globaltranslate" [reasons]="reasons" [translate]="translate.contactSupport" [displaycontactSupport]="displaycontactSupport" [showDate]="showDate" ></app-contact-support>
|
78
|
-
</div>
|
79
|
-
<div *ngIf="displayConfirmDialog">
|
80
|
-
<app-confirm-dialog [detailedPmJobLinkedList]="detailedPmJobLinkedList" [isProposedDate]="isProposedDate" [globaltranslate]="globaltranslate" [translate]="translate.confirmDialog"
|
81
|
-
[startDateTime]="startDateTime" [endDateTime]="endDateTime" [displayConfirmDialog]="displayConfirmDialog" (closeConfirmDialog)="closeConfirmDialog($event)">
|
82
|
-
</app-confirm-dialog>
|
83
|
-
</div>
|
84
|
-
<div *ngIf="displayConfirmDialogContact">
|
85
|
-
<app-confirm-dialog-contact [detailedPmJobLinkedList]="detailedPmJobLinkedList" [globaltranslate]="globaltranslate" [translate]="translate.confirmDialogContact"
|
86
|
-
[startDateTime]="startDateTime" [endDateTime]="endDateTime" [displayConfirmDialogContact]="displayConfirmDialogContact" (closeConfirmDialogContact)="closeConfirmDialogContact($event)">
|
87
|
-
</app-confirm-dialog-contact >
|
88
|
-
</div>
|
89
|
-
<div *ngIf="displayConfirmedDateInfo">
|
90
|
-
<app-confirmed-date-information [moreDates]="moreDates" [globaltranslate]="globaltranslate" [translate]="translate.confirmDateInformation" [startDateTime]="startDateTime" [endDateTime]="endDateTime" [displayConfirmedDateInfo]="displayConfirmedDateInfo" (closeConfirmedDateInfo)="closeConfirmedDateInfo()"></app-confirmed-date-information>
|
91
|
-
</div>
|
92
|
-
<div *ngIf="displayAnotherDate && alternativeDatesList">
|
93
|
-
<app-choose-another-date [globaltranslate]="globaltranslate" [translate]="translate.chooseAnotherDate" [alternativeDatesList]="alternativeDatesList" [displayAnotherDate]="displayAnotherDate" (closeAnotherDate)="closeAnotherDate($event)" (acceptDate)="acceptDate($event)">
|
94
|
-
</app-choose-another-date>
|
95
|
-
</div>
|
96
|
-
<div *ngIf="displayShowLinks && selectedWorkorderId">
|
97
|
-
<app-show-links [status]="status" [selectedWorkorderId]="selectedWorkorderId" [translate]="translate" [globaltranslate]="globaltranslate" [displayShowLinks]="displayShowLinks" (closeShowLinks)="closeShowLinks()" [detailedPmJobLinkedList]="detailedPmJobLinkedList"></app-show-links>
|
98
|
-
</div>
|
99
|
-
|
100
|
-
|
@@ -1,26 +0,0 @@
|
|
1
|
-
span.circle {
|
2
|
-
background: #f86359;
|
3
|
-
border-radius: 50%;
|
4
|
-
-moz-border-radius: 50%;
|
5
|
-
-webkit-border-radius: 50%;
|
6
|
-
color: #f8f8f8;
|
7
|
-
display: inline-block;
|
8
|
-
font-weight: bold;
|
9
|
-
line-height: 20px;
|
10
|
-
margin-right: 5px;
|
11
|
-
text-align: center;
|
12
|
-
width: 20px;
|
13
|
-
&linked {
|
14
|
-
background: #80a161;
|
15
|
-
border-radius: 50%;
|
16
|
-
-moz-border-radius: 50%;
|
17
|
-
-webkit-border-radius: 50%;
|
18
|
-
color: #ffffff;
|
19
|
-
display: inline-block;
|
20
|
-
font-weight: bold;
|
21
|
-
line-height: 20px;
|
22
|
-
margin-right: 5px;
|
23
|
-
text-align: center;
|
24
|
-
width: 20px;
|
25
|
-
}
|
26
|
-
}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
2
|
-
|
3
|
-
import { MaintenanceListComponent } from './maintenance-list.component';
|
4
|
-
|
5
|
-
describe('MaintenanceListComponent', () => {
|
6
|
-
let component: MaintenanceListComponent;
|
7
|
-
let fixture: ComponentFixture<MaintenanceListComponent>;
|
8
|
-
|
9
|
-
beforeEach(async () => {
|
10
|
-
await TestBed.configureTestingModule({
|
11
|
-
declarations: [ MaintenanceListComponent ]
|
12
|
-
})
|
13
|
-
.compileComponents();
|
14
|
-
});
|
15
|
-
|
16
|
-
beforeEach(() => {
|
17
|
-
fixture = TestBed.createComponent(MaintenanceListComponent);
|
18
|
-
component = fixture.componentInstance;
|
19
|
-
fixture.detectChanges();
|
20
|
-
});
|
21
|
-
|
22
|
-
it('should create', () => {
|
23
|
-
expect(component).toBeTruthy();
|
24
|
-
});
|
25
|
-
});
|
@@ -1,466 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
Component,
|
3
|
-
EventEmitter,
|
4
|
-
Input,
|
5
|
-
OnDestroy,
|
6
|
-
Output,
|
7
|
-
ViewChild,
|
8
|
-
OnChanges,
|
9
|
-
SimpleChanges
|
10
|
-
} from '@angular/core';
|
11
|
-
import { Table } from 'primeng/table';
|
12
|
-
import { ConfirmationService, MessageService } from 'primeng/api';
|
13
|
-
import { first } from 'rxjs/operators';
|
14
|
-
import { Subscription } from 'rxjs';
|
15
|
-
import { DetailedPmJob } from '../../models/detailedPmJob.model';
|
16
|
-
import { AlternativeDate } from '../../models/alternativeDate.model';
|
17
|
-
import { EmailType } from '../../models/emailType';
|
18
|
-
import { EventStatus } from '../../models/eventStatus';
|
19
|
-
import { PmJob } from '../../models/pmJob.model';
|
20
|
-
import { PMGroupedJob } from '../../models/pMGroupedJob.model';
|
21
|
-
import { PmJobStatus } from '../../models/pmJobStatus';
|
22
|
-
import { ReasonContact } from '../../models/reasonContact';
|
23
|
-
import { StingBoolean } from '../../models/stingBoolean';
|
24
|
-
|
25
|
-
|
26
|
-
@Component({
|
27
|
-
selector: 'awf-maintenance-list',
|
28
|
-
templateUrl: './maintenance-list.component.html',
|
29
|
-
styleUrls: ['./maintenance-list.component.scss'],
|
30
|
-
providers: [MessageService, ConfirmationService],
|
31
|
-
})
|
32
|
-
export class MaintenanceListComponent implements OnChanges, OnDestroy {
|
33
|
-
@ViewChild('dt') dt: Table | undefined;
|
34
|
-
@ViewChild('op') op: any | undefined;
|
35
|
-
@Input() translate: any;
|
36
|
-
@Input() reasons: any;
|
37
|
-
@Input() globaltranslate: any;
|
38
|
-
@Input() maintenanceList: DetailedPmJob[] = [];
|
39
|
-
@Input() maintenanceListNotDisplayed: DetailedPmJob[] = [];
|
40
|
-
@Input() pmJobList: DetailedPmJob[] = [];
|
41
|
-
@Input() isAlreadyScheduled!: Boolean;
|
42
|
-
@Input() displayConfirmedDateInfo=false;
|
43
|
-
@Input() alternativeDatesList!: any ;
|
44
|
-
@Output() emitForUpdate = new EventEmitter<any>();
|
45
|
-
@Output() emitForAlternativeDates = new EventEmitter<any>();
|
46
|
-
@Output() sendContactMeEmail = new EventEmitter<any>();
|
47
|
-
@Input() status: any;
|
48
|
-
|
49
|
-
@Output() sendForm: EventEmitter<any> = new EventEmitter();
|
50
|
-
moreDates!:boolean;
|
51
|
-
detailedPmJobLinkedList : DetailedPmJob[] = [];
|
52
|
-
updatePmSubscription!: Subscription;
|
53
|
-
alternativeDatesSubscription!: Subscription;
|
54
|
-
showDate!: boolean;
|
55
|
-
maintenanceSelected!: DetailedPmJob;
|
56
|
-
startDateTime!: any;
|
57
|
-
endDateTime!: any;
|
58
|
-
selectedWorkorderId!: any;
|
59
|
-
alternativeDate!: AlternativeDate ;
|
60
|
-
alternativeDatesSelected: AlternativeDate[] = [];
|
61
|
-
displaycontactSupport = false;
|
62
|
-
displayConfirmDialog = false;
|
63
|
-
displayConfirmDialogContact = false;
|
64
|
-
displayShowLinks = false;
|
65
|
-
displayAnotherDate = false;
|
66
|
-
isWithLinks = false;
|
67
|
-
isProposedDate = true;
|
68
|
-
pmSelectedStatus!:string ;
|
69
|
-
emailTypes!:string[];
|
70
|
-
alreadyScheduledMsg !:boolean;
|
71
|
-
reasonContact="";
|
72
|
-
contactMeRequest!:DetailedPmJob ;
|
73
|
-
first = 0;
|
74
|
-
constructor(
|
75
|
-
private messageService: MessageService
|
76
|
-
) {}
|
77
|
-
ngOnChanges(changes: SimpleChanges): void {
|
78
|
-
this.first = 0;
|
79
|
-
console.log("hello")
|
80
|
-
|
81
|
-
}
|
82
|
-
|
83
|
-
ngOnDestroy(): void {
|
84
|
-
if (this.updatePmSubscription) {
|
85
|
-
this.updatePmSubscription.unsubscribe();
|
86
|
-
}
|
87
|
-
if (this.alternativeDatesSubscription) {
|
88
|
-
this.alternativeDatesSubscription.unsubscribe();
|
89
|
-
}
|
90
|
-
|
91
|
-
}
|
92
|
-
|
93
|
-
applyFilterGlobal($event: any, stringVal: any) {
|
94
|
-
this.dt?.filterGlobal(
|
95
|
-
($event.target as HTMLInputElement).value,
|
96
|
-
stringVal
|
97
|
-
);
|
98
|
-
}
|
99
|
-
|
100
|
-
|
101
|
-
selectElement(element: DetailedPmJob) {
|
102
|
-
this.alternativeDatesList = null;
|
103
|
-
this.emailTypes =[];
|
104
|
-
if(element)
|
105
|
-
{
|
106
|
-
this.pmSelectedStatus = element.status ;
|
107
|
-
}
|
108
|
-
|
109
|
-
if(element.pmJob.groupList)
|
110
|
-
{
|
111
|
-
this.isWithLinks = element.pmJob.groupList?.length > 0 ? true : false;
|
112
|
-
}
|
113
|
-
|
114
|
-
this.selectedWorkorderId = element.pmJob.workorderNumber;
|
115
|
-
this.maintenanceSelected = element;
|
116
|
-
this.maintenanceSelected.WorkorderNumberSelected = this.maintenanceSelected.pmJob.workorderId ;
|
117
|
-
|
118
|
-
if (!this.isAlreadyScheduled) {
|
119
|
-
this.getAlternativeDates(element.pmJob);
|
120
|
-
}
|
121
|
-
this.startDateTime = this.maintenanceSelected.pmJob.startDateTime;
|
122
|
-
this.endDateTime = this.maintenanceSelected.pmJob.endDateTime;
|
123
|
-
this.getLinkedPmJob();
|
124
|
-
}
|
125
|
-
getAlternativeDates(pmJob : PmJob ) {
|
126
|
-
this.emitForAlternativeDates.emit(pmJob);
|
127
|
-
}
|
128
|
-
|
129
|
-
getLinkedPmJob()
|
130
|
-
{
|
131
|
-
this.detailedPmJobLinkedList =[];
|
132
|
-
if(this.maintenanceSelected.pmJob.groupList)
|
133
|
-
{
|
134
|
-
this.maintenanceSelected.pmJob.groupList.forEach((linked : PMGroupedJob ) => {
|
135
|
-
|
136
|
-
this.maintenanceList.forEach((item :DetailedPmJob ) => {
|
137
|
-
if(linked.workorderId === item.pmJob.workorderId)
|
138
|
-
{
|
139
|
-
this.detailedPmJobLinkedList.push(item);
|
140
|
-
}
|
141
|
-
});
|
142
|
-
});
|
143
|
-
|
144
|
-
}
|
145
|
-
// if the linked PM in the other maintenance list not selected
|
146
|
-
if(this.maintenanceSelected.pmJob.groupList && (this.maintenanceSelected.pmJob.groupList.length !== this.detailedPmJobLinkedList.length))
|
147
|
-
{
|
148
|
-
this.maintenanceSelected.pmJob.groupList.forEach((linked : PMGroupedJob ) => {
|
149
|
-
|
150
|
-
this.maintenanceListNotDisplayed.forEach((item :DetailedPmJob ) => {
|
151
|
-
item.toUpdate = false ;
|
152
|
-
if(linked.workorderId === item.pmJob.workorderId)
|
153
|
-
{
|
154
|
-
this.detailedPmJobLinkedList.push(item);
|
155
|
-
}
|
156
|
-
});
|
157
|
-
});
|
158
|
-
|
159
|
-
}
|
160
|
-
|
161
|
-
}
|
162
|
-
|
163
|
-
confirmDialog() {
|
164
|
-
this.isProposedDate = true ;
|
165
|
-
this.op.hide();
|
166
|
-
this.displayConfirmDialog = true;
|
167
|
-
}
|
168
|
-
|
169
|
-
|
170
|
-
closeConfirmDialog(confirm: any) {
|
171
|
-
this.displayConfirmDialog = false;
|
172
|
-
this.maintenanceSelected.futureStatus = PmJobStatus.ACCEPTED ;
|
173
|
-
if (confirm) {
|
174
|
-
if(!this.isProposedDate)
|
175
|
-
{
|
176
|
-
|
177
|
-
this.updateAlternativeDate();
|
178
|
-
}
|
179
|
-
else
|
180
|
-
{
|
181
|
-
this.updateProposedDate();
|
182
|
-
}
|
183
|
-
this.emailTypes.push(EmailType.Accepted_CSC) ;
|
184
|
-
this.emailTypes.push(EmailType.Accepted_Clients) ;
|
185
|
-
this.updatePmJob();
|
186
|
-
}
|
187
|
-
}
|
188
|
-
|
189
|
-
closeConfirmDialogContact(confirm: any) {
|
190
|
-
this.displayConfirmDialogContact = false;
|
191
|
-
|
192
|
-
if (confirm) {
|
193
|
-
|
194
|
-
this.emailTypes = [] as string[];
|
195
|
-
if(this.reasonContact === ReasonContact.ContactFormPm )
|
196
|
-
{
|
197
|
-
|
198
|
-
this.emailTypes.push(EmailType.ContactMe_Clients);
|
199
|
-
this.emailTypes.push(EmailType.ContactMe_CSC);
|
200
|
-
|
201
|
-
}
|
202
|
-
else if(this.reasonContact === ReasonContact.CancelFormPm )
|
203
|
-
{
|
204
|
-
this.maintenanceSelected.pmJob.customObject= {};
|
205
|
-
this.maintenanceSelected.pmJob.customObject.customerWaiting =StingBoolean.YES ;
|
206
|
-
this.maintenanceSelected.futureStatus = PmJobStatus.WAITING ;
|
207
|
-
this.emailTypes.push(EmailType.CancelPM_CSC);
|
208
|
-
this.emailTypes.push(EmailType.CancelPM_Clients);
|
209
|
-
|
210
|
-
}
|
211
|
-
else
|
212
|
-
{
|
213
|
-
this.maintenanceSelected.pmJob.customObject= {};
|
214
|
-
this.maintenanceSelected.pmJob.customObject.customerWaiting =StingBoolean.YES;
|
215
|
-
this.maintenanceSelected.futureStatus = PmJobStatus.WAITING ;
|
216
|
-
this.emailTypes.push(EmailType.SendNewDates_CSC);
|
217
|
-
this.emailTypes.push(EmailType.SendNewDates_Clients);
|
218
|
-
}
|
219
|
-
|
220
|
-
this.updateLinkedPMFormContact();
|
221
|
-
|
222
|
-
this.closeContactSupport(true) ;
|
223
|
-
|
224
|
-
}
|
225
|
-
|
226
|
-
}
|
227
|
-
|
228
|
-
updateLinkedPMFormContact()
|
229
|
-
{
|
230
|
-
this.pmJobList =[];
|
231
|
-
this.pmJobList.push(this.maintenanceSelected);
|
232
|
-
if(this.detailedPmJobLinkedList.length >0)
|
233
|
-
{
|
234
|
-
this.detailedPmJobLinkedList.forEach((item:DetailedPmJob) => {
|
235
|
-
item.futureStatus = item.status ;
|
236
|
-
item.selectedDate = item.pmJob.startDateTime;
|
237
|
-
item.WorkorderNumberSelected = this.maintenanceSelected.pmJob.workorderId ;
|
238
|
-
if(this.reasonContact === ReasonContact.MoreDatesFormPm ||this.reasonContact === ReasonContact.CancelFormPm )
|
239
|
-
{
|
240
|
-
item.reason = this.maintenanceSelected.reason;
|
241
|
-
item.reasonContact = this.maintenanceSelected.reasonContact;
|
242
|
-
item.pmJob.customObject= {};
|
243
|
-
item.pmJob.customObject.customerWaiting =StingBoolean.YES ;
|
244
|
-
item.futureStatus = PmJobStatus.WAITING ;
|
245
|
-
|
246
|
-
}
|
247
|
-
|
248
|
-
this.pmJobList.push(item);
|
249
|
-
});
|
250
|
-
|
251
|
-
}
|
252
|
-
|
253
|
-
this.callApiToUpdate();
|
254
|
-
}
|
255
|
-
|
256
|
-
closeContactSupport(event :any)
|
257
|
-
{
|
258
|
-
this.displaycontactSupport = false;
|
259
|
-
this.showDate = false;
|
260
|
-
this.reasonContact ="";
|
261
|
-
|
262
|
-
}
|
263
|
-
|
264
|
-
proposeAnotherDate() {
|
265
|
-
this.isProposedDate = false ;
|
266
|
-
this.op.hide();
|
267
|
-
this.displayAnotherDate = true;
|
268
|
-
}
|
269
|
-
|
270
|
-
contactSupport(fromOtherDate : boolean) {
|
271
|
-
|
272
|
-
|
273
|
-
this.op.hide();
|
274
|
-
|
275
|
-
this.reasonContact = fromOtherDate ? ReasonContact.MoreDatesFormPm : ReasonContact.ContactFormPm ;
|
276
|
-
this.displaycontactSupport = true;
|
277
|
-
}
|
278
|
-
|
279
|
-
showLinks(element?:any)
|
280
|
-
{
|
281
|
-
if(element)
|
282
|
-
{
|
283
|
-
this.selectElement(element);
|
284
|
-
}
|
285
|
-
|
286
|
-
this.op.hide();
|
287
|
-
this.displayShowLinks = true ;
|
288
|
-
}
|
289
|
-
|
290
|
-
closeShowLinks()
|
291
|
-
{
|
292
|
-
this.displayShowLinks = false ;
|
293
|
-
}
|
294
|
-
|
295
|
-
closeConfirmedDateInfo() {
|
296
|
-
this.displayConfirmedDateInfo = false;
|
297
|
-
}
|
298
|
-
|
299
|
-
acceptDate(alternativeDates: AlternativeDate[])
|
300
|
-
{
|
301
|
-
|
302
|
-
this.displayConfirmDialog = true;
|
303
|
-
this.alternativeDatesSelected = alternativeDates;
|
304
|
-
this.findDatesSelected();
|
305
|
-
}
|
306
|
-
|
307
|
-
findDatesSelected()
|
308
|
-
{
|
309
|
-
this.alternativeDatesSelected.forEach((alternativeDate: AlternativeDate) => {
|
310
|
-
if(alternativeDate.selected==="Yes")
|
311
|
-
{
|
312
|
-
this.startDateTime = alternativeDate.startDateTime;
|
313
|
-
this.endDateTime = alternativeDate.endDateTime;
|
314
|
-
this.maintenanceSelected.selectedDate = alternativeDate.startDateTime;
|
315
|
-
return;
|
316
|
-
}
|
317
|
-
});
|
318
|
-
}
|
319
|
-
|
320
|
-
closeAnotherDate(event: any) {
|
321
|
-
this.displayAnotherDate = false;
|
322
|
-
if(event===false)
|
323
|
-
{
|
324
|
-
this.alreadyScheduledMsg = false ;
|
325
|
-
this.op.hide();
|
326
|
-
this.contactSupport(true);
|
327
|
-
}
|
328
|
-
}
|
329
|
-
|
330
|
-
updatePmJob() {
|
331
|
-
|
332
|
-
|
333
|
-
this.pmJobList =[];
|
334
|
-
this.pmJobList.push(this.maintenanceSelected);
|
335
|
-
if(this.detailedPmJobLinkedList.length >0)
|
336
|
-
{
|
337
|
-
this.detailedPmJobLinkedList.forEach((pMJob:DetailedPmJob) => {
|
338
|
-
|
339
|
-
this.pmJobList.push(pMJob);
|
340
|
-
});
|
341
|
-
|
342
|
-
}
|
343
|
-
this.callApiToUpdate();
|
344
|
-
|
345
|
-
}
|
346
|
-
|
347
|
-
editPm()
|
348
|
-
{
|
349
|
-
this.alreadyScheduledMsg = true ;
|
350
|
-
this.op.hide();
|
351
|
-
this.reasonContact = ReasonContact.CancelFormPm ;
|
352
|
-
this.prepareForPopup() ;
|
353
|
-
this.displaycontactSupport = true;
|
354
|
-
|
355
|
-
|
356
|
-
}
|
357
|
-
|
358
|
-
prepareForPopup()
|
359
|
-
{
|
360
|
-
if(this.maintenanceSelected.pmJob.customerAccepted ==="Yes")
|
361
|
-
{
|
362
|
-
this.startDateTime = this.maintenanceSelected.pmJob.startDateTime;
|
363
|
-
this.endDateTime = this.maintenanceSelected.pmJob.endDateTime;
|
364
|
-
}
|
365
|
-
else
|
366
|
-
{
|
367
|
-
this.alternativeDatesSelected = this.maintenanceSelected.pmJob.alternativeDates;
|
368
|
-
this.findDatesSelected();
|
369
|
-
}
|
370
|
-
|
371
|
-
}
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
updateProposedDate()
|
377
|
-
{
|
378
|
-
this.maintenanceSelected.pmJob.customerAccepted = StingBoolean.YES;
|
379
|
-
this.maintenanceSelected.pmJob.eventStatus = EventStatus.ASSIGNEDANC;
|
380
|
-
this.detailedPmJobLinkedList.forEach((item :DetailedPmJob ) => {
|
381
|
-
item.pmJob.customerAccepted = StingBoolean.YES;
|
382
|
-
item.pmJob.eventStatus = EventStatus.ASSIGNEDANC;
|
383
|
-
item.futureStatus = PmJobStatus.ACCEPTED ;
|
384
|
-
item.WorkorderNumberSelected = this.maintenanceSelected.pmJob.workorderId ;
|
385
|
-
});
|
386
|
-
}
|
387
|
-
|
388
|
-
updateAlternativeDate()
|
389
|
-
{
|
390
|
-
this.findDatesSelected();
|
391
|
-
this.maintenanceSelected.pmJob.alternativeDates = this.alternativeDatesSelected ;
|
392
|
-
this.detailedPmJobLinkedList.forEach((item :DetailedPmJob ) => {
|
393
|
-
item.pmJob.alternativeDates = this.alternativeDatesSelected ;
|
394
|
-
item.pmJob.eventStatus = EventStatus.ASSIGNEDANC;
|
395
|
-
item.futureStatus = PmJobStatus.ACCEPTED ;
|
396
|
-
item.WorkorderNumberSelected = this.maintenanceSelected.pmJob.workorderId ;
|
397
|
-
});
|
398
|
-
this.displayAnotherDate = false;
|
399
|
-
|
400
|
-
}
|
401
|
-
|
402
|
-
|
403
|
-
sendContactMeForm(contactMeRequest:any)
|
404
|
-
{
|
405
|
-
this.moreDates = false;
|
406
|
-
if( contactMeRequest.reasonContact === ReasonContact.MoreDatesFormPm )
|
407
|
-
{
|
408
|
-
this.moreDates = true;
|
409
|
-
}
|
410
|
-
|
411
|
-
|
412
|
-
this.displayConfirmDialogContact = true;
|
413
|
-
this.maintenanceSelected = contactMeRequest ;
|
414
|
-
}
|
415
|
-
|
416
|
-
callApiToUpdate()
|
417
|
-
{
|
418
|
-
|
419
|
-
|
420
|
-
let PmJobListForUpdate = {} as any;
|
421
|
-
PmJobListForUpdate.pmJobList = this.pmJobList;
|
422
|
-
PmJobListForUpdate.emailTypes = this.emailTypes;
|
423
|
-
this.emitForUpdate.emit(PmJobListForUpdate);
|
424
|
-
}
|
425
|
-
transformType(type : string) {
|
426
|
-
|
427
|
-
if( type ==="Planned Maintenance"){
|
428
|
-
return "Maintenance planifiée" ;
|
429
|
-
console.log("test");
|
430
|
-
|
431
|
-
}
|
432
|
-
console.log("test2");
|
433
|
-
|
434
|
-
return type;
|
435
|
-
}
|
436
|
-
transformStatus(status: string): string {
|
437
|
-
switch (status) {
|
438
|
-
|
439
|
-
case PmJobStatus.NEW : return this.status.new;
|
440
|
-
case PmJobStatus.ACCEPTED : return this.status.accepted;
|
441
|
-
case PmJobStatus.CLOSED : return this.status.closed;
|
442
|
-
case PmJobStatus.Late : return this.status.late;
|
443
|
-
case PmJobStatus.OPEN : return this.status.open;
|
444
|
-
case PmJobStatus.WAITING : return this.status.waiting;
|
445
|
-
case PmJobStatus.DONE : return this.status.done;
|
446
|
-
case PmJobStatus.VALIDATED : return this.status.validated;
|
447
|
-
default : return "Erreur";
|
448
|
-
}
|
449
|
-
}
|
450
|
-
|
451
|
-
getStatusTooltip(status: string): string {
|
452
|
-
switch (status) {
|
453
|
-
case PmJobStatus.ACCEPTED : return this.status.acceptedTooltip;
|
454
|
-
case PmJobStatus.NEW : return this.status.newTooltip;
|
455
|
-
case PmJobStatus.CLOSED : return this.status.closedTooltip;
|
456
|
-
case PmJobStatus.Late : return this.status.lateTooltip;
|
457
|
-
|
458
|
-
case PmJobStatus.OPEN : return this.status.openTooltip;
|
459
|
-
case PmJobStatus.WAITING : return this.status.waitingTooltip;
|
460
|
-
case PmJobStatus.DONE : return this.status.doneTooltip;
|
461
|
-
case PmJobStatus.VALIDATED : return this.status.validatedTooltip;
|
462
|
-
default : return "Erreur";
|
463
|
-
}
|
464
|
-
}
|
465
|
-
|
466
|
-
}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { NgModule } from '@angular/core';
|
2
|
-
import { RouterModule, Routes } from '@angular/router';
|
3
|
-
|
4
|
-
const routes: Routes = [];
|
5
|
-
|
6
|
-
@NgModule({
|
7
|
-
imports: [RouterModule.forChild(routes)],
|
8
|
-
exports: [RouterModule]
|
9
|
-
})
|
10
|
-
export class SharedRoutingModule { }
|