awf-test-lib 0.0.50 → 0.0.52

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.
@@ -418,6 +418,7 @@ class ContactComponent {
418
418
  detailedPmJob.systemId = this.selectedSystem.systemId;
419
419
  detailedPmJob.siteName = this.selectedSystem.siteName;
420
420
  detailedPmJob.siteCity = this.selectedSystem.siteCity;
421
+ detailedPmJob.sitePostalCode = this.selectedSystem.sitePostalCode;
421
422
  detailedPmJob.toUpdate = true;
422
423
  detailedPmJob.selectedDate = detailedPmJob.pmJob.startDateTime;
423
424
  detailedPmJob.reasonContact = ReasonContact.Contact;
@@ -733,10 +734,12 @@ class ContactSupportComponent {
733
734
  this.displayNumber = false;
734
735
  }
735
736
  sendContactMeEmailMethode() {
737
+ console.log(this.form.value.reason);
738
+ console.log(this.reasonContact);
736
739
  this.detailedPmJob.name = this.form.value.name;
737
740
  this.detailedPmJob.phone = this.form.value.phone;
738
741
  this.detailedPmJob.email = this.form.value.email;
739
- this.detailedPmJob.reason = (this.reasonContact === ReasonContact.MoreDatesFormPm) ? this.reasons[0].name : this.form.value.reason.name;
742
+ this.detailedPmJob.reason = (this.reasonContact === ReasonContact.MoreDatesFormPm) ? this.reasons[0].code : this.form.value.reason.code;
740
743
  this.detailedPmJob.comment = this.form.value.message;
741
744
  this.detailedPmJob.reasonContact = this.reasonContact;
742
745
  this.detailedPmJob.futureStatus = this.slectsFutureStatus(this.form.value.reason.code);
@@ -1033,18 +1036,53 @@ class MaintenanceListComponent {
1033
1036
  closeConfirmDialogContact(confirm) {
1034
1037
  this.displayConfirmDialogContact = false;
1035
1038
  if (confirm) {
1039
+ console.log("hello world");
1036
1040
  this.emailTypes = [];
1037
- if (this.reasonContact === ReasonContact.ContactFormPm) {
1038
- this.emailTypes.push(EmailType.ContactMe_Clients);
1039
- this.emailTypes.push(EmailType.ContactMe_CSC);
1041
+ if (this.maintenanceSelected.reason === "MPM") {
1042
+ this.maintenanceSelected.pmJob.customObject = {};
1043
+ this.maintenanceSelected.pmJob.customObject.customerWaiting = StingBoolean.YES;
1044
+ this.maintenanceSelected.futureStatus = PmJobStatus.WAITING;
1045
+ this.emailTypes.push(EmailType.SendNewDates_Clients);
1046
+ this.emailTypes.push(EmailType.SendNewDates_CSC);
1040
1047
  }
1041
- else if (this.reasonContact === ReasonContact.CancelFormPm) {
1048
+ else if (this.maintenanceSelected.reason === "RPM") {
1049
+ this.maintenanceSelected.pmJob.customObject = {};
1050
+ this.maintenanceSelected.pmJob.customObject.customerWaiting = StingBoolean.YES;
1051
+ this.maintenanceSelected.futureStatus = PmJobStatus.WAITING;
1052
+ this.emailTypes.push(EmailType.ReportDate_Clients);
1053
+ this.emailTypes.push(EmailType.ReportDate_CSC);
1054
+ }
1055
+ else if (this.maintenanceSelected.reason === "CPM") {
1042
1056
  this.maintenanceSelected.pmJob.customObject = {};
1043
1057
  this.maintenanceSelected.pmJob.customObject.customerWaiting = StingBoolean.YES;
1044
1058
  this.maintenanceSelected.futureStatus = PmJobStatus.WAITING;
1045
- this.emailTypes.push(EmailType.CancelPM_CSC);
1046
1059
  this.emailTypes.push(EmailType.CancelPM_Clients);
1060
+ this.emailTypes.push(EmailType.CancelPM_CSC);
1047
1061
  }
1062
+ else if (this.maintenanceSelected.reason === "SDI") {
1063
+ this.emailTypes.push(EmailType.ContactMe_Clients);
1064
+ this.emailTypes.push(EmailType.ContactMe_CSC);
1065
+ }
1066
+ else if (this.maintenanceSelected.reason === "OTH") {
1067
+ this.emailTypes.push(EmailType.ContactMe_Clients);
1068
+ this.emailTypes.push(EmailType.ContactMe_CSC);
1069
+ }
1070
+ /*if(this.reasonContact === ReasonContact.ContactFormPm )
1071
+ {
1072
+
1073
+ this.emailTypes.push(EmailType.ContactMe_Clients);
1074
+ this.emailTypes.push(EmailType.ContactMe_CSC);
1075
+
1076
+ }
1077
+ else if(this.reasonContact === ReasonContact.CancelFormPm )
1078
+ {
1079
+ this.maintenanceSelected.pmJob.customObject= {};
1080
+ this.maintenanceSelected.pmJob.customObject.customerWaiting =StingBoolean.YES ;
1081
+ this.maintenanceSelected.futureStatus = PmJobStatus.WAITING ;
1082
+ this.emailTypes.push(EmailType.CancelPM_CSC);
1083
+ this.emailTypes.push(EmailType.CancelPM_Clients);
1084
+
1085
+ }*/
1048
1086
  else {
1049
1087
  this.maintenanceSelected.pmJob.customObject = {};
1050
1088
  this.maintenanceSelected.pmJob.customObject.customerWaiting = StingBoolean.YES;
@@ -1077,6 +1115,7 @@ class MaintenanceListComponent {
1077
1115
  this.callApiToUpdate();
1078
1116
  }
1079
1117
  closeContactSupport(event) {
1118
+ console.log("hello world");
1080
1119
  this.displaycontactSupport = false;
1081
1120
  this.showDate = false;
1082
1121
  this.reasonContact = "";