arco-support-request 0.1.6 → 0.1.8

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.
Files changed (27) hide show
  1. package/README.md +4 -1
  2. package/esm2020/lib/entity-type-setup/activities-create/activities-create.component.mjs +1 -4
  3. package/esm2020/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.mjs +9 -3
  4. package/esm2020/lib/entity-type-setup/service/entity-type-setup.service.mjs +16 -3
  5. package/esm2020/lib/support-request/case-list/case-list.component.mjs +64 -13
  6. package/esm2020/lib/support-request/create-form/create-form.component.mjs +225 -0
  7. package/esm2020/lib/support-request/request-flow/request-flow.component.mjs +151 -18
  8. package/esm2020/lib/support-request/self-service-flow/self-service-flow.component.mjs +9 -4
  9. package/esm2020/lib/support-request/sendemail/sendemail.component.mjs +72 -0
  10. package/esm2020/lib/support-request/support-request-details/support-request-details.component.mjs +66 -9
  11. package/esm2020/lib/support-request/support-request-index/support-request-index.component.mjs +1 -1
  12. package/esm2020/lib/support-request/support-request.module.mjs +15 -5
  13. package/esm2020/lib/support-request/support-request.service.mjs +15 -2
  14. package/fesm2015/arco-support-request.mjs +1517 -961
  15. package/fesm2015/arco-support-request.mjs.map +1 -1
  16. package/fesm2020/arco-support-request.mjs +1514 -958
  17. package/fesm2020/arco-support-request.mjs.map +1 -1
  18. package/lib/entity-type-setup/service/entity-type-setup.service.d.ts +3 -2
  19. package/lib/support-request/case-list/case-list.component.d.ts +9 -1
  20. package/lib/support-request/create-form/create-form.component.d.ts +56 -0
  21. package/lib/support-request/request-flow/request-flow.component.d.ts +32 -4
  22. package/lib/support-request/self-service-flow/self-service-flow.component.d.ts +3 -1
  23. package/lib/support-request/sendemail/sendemail.component.d.ts +24 -0
  24. package/lib/support-request/support-request-details/support-request-details.component.d.ts +25 -1
  25. package/lib/support-request/support-request.module.d.ts +16 -13
  26. package/lib/support-request/support-request.service.d.ts +2 -1
  27. package/package.json +1 -1
@@ -12,8 +12,10 @@ import * as i1$1 from '@angular/common/http';
12
12
  import { HttpHeaders, HttpClientModule } from '@angular/common/http';
13
13
  import * as i2 from '@angular/router';
14
14
  import { NavigationStart, NavigationEnd } from '@angular/router';
15
- import * as i7$1 from '@ng-select/ng-select';
15
+ import * as i5$1 from '@ng-select/ng-select';
16
16
  import { NgSelectModule } from '@ng-select/ng-select';
17
+ import * as i8 from 'ng-multiselect-dropdown';
18
+ import { NgMultiSelectDropDownModule } from 'ng-multiselect-dropdown';
17
19
  import * as handlebars from 'handlebars';
18
20
  import * as i5 from '@kolkov/angular-editor';
19
21
  import { AngularEditorModule } from '@kolkov/angular-editor';
@@ -3174,11 +3176,14 @@ class EntityTypeSetupService {
3174
3176
  //----------------------myAssigned Cases------------------------------//
3175
3177
  //----------------------myAssigned Cases------------------------------//
3176
3178
  ///////Dynmaic Apis /////
3177
- getDynamicAll(criteriastr, entityTypeRecId, processStageId, CustomerId) {
3179
+ getDynamicAll(criteriastr, entityTypeRecId, processStageId, CustomerId, SelectedContract) {
3178
3180
  let url = dynamic.getDynamicAll(entityTypeRecId, processStageId);
3179
3181
  if (CustomerId) {
3180
3182
  url += '&CustomerId=' + CustomerId;
3181
3183
  }
3184
+ if (SelectedContract) {
3185
+ url += '&ContractNumber=' + SelectedContract;
3186
+ }
3182
3187
  return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
3183
3188
  }
3184
3189
  getDynamicAllForSupportReq(criteriastr, entityTypeRecId) {
@@ -3270,6 +3275,13 @@ class EntityTypeSetupService {
3270
3275
  }
3271
3276
  return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
3272
3277
  }
3278
+ getDynamicByEntityRefrecidwithoutCriteria(entityTypeRecId, RefTypeId, criteriastr, ActivityId) {
3279
+ let url = dynamic.getDynamicRefRecidEntity(entityTypeRecId, RefTypeId);
3280
+ if (ActivityId) {
3281
+ url = url + '&ActivityId=' + ActivityId;
3282
+ }
3283
+ return this.http.get(url);
3284
+ }
3273
3285
  //------------------------category-Teams----------------------------//
3274
3286
  getAllCategoryTypeTeams(criteriastr, CategoryId) {
3275
3287
  const url = EntityTypeCategoryTypeTeams.getAllCategoryTypeTeams(CategoryId);
@@ -3420,8 +3432,11 @@ class EntityTypeSetupService {
3420
3432
  params: CriteriaBuilder(criteriastr),
3421
3433
  });
3422
3434
  }
3423
- getsupportRequestData(criteriastr, Usertype, RequesterId, Source, processStageId) {
3435
+ getsupportRequestData(criteriastr, Usertype, RequesterId, Source, processStageId, SelectedContract) {
3424
3436
  let url = environment.ServerUrl + 'entitytype/supportrequestbyrequestertype?Usertype=' + Usertype + '&UserFieldId=' + RequesterId + '&processStageId=' + processStageId;
3437
+ if (SelectedContract) {
3438
+ url += '&ContractNumber=' + SelectedContract;
3439
+ }
3425
3440
  return this.http.get(url, {
3426
3441
  params: CriteriaBuilder(criteriastr),
3427
3442
  });
@@ -4074,6 +4089,16 @@ class SupportRequestService {
4074
4089
  let url = environment.ServerUrl + 'ticketmaster/subgroup/single/' + GroupId;
4075
4090
  return this.http.get(url);
4076
4091
  }
4092
+ sendEmail(data, file) {
4093
+ let url = `${environment.ServerUrl}entitytype/send/b2bemail?EntityTypeId=${data.EntityTypeId}&RefTypeId=${data.RefTypeId}&Subject=${data.Subject}&CC=${data.CC}&Mailtext=${data.Mailtext}`;
4094
+ if (file && file.length > 0) {
4095
+ let formData = new FormData();
4096
+ let _file = file[0];
4097
+ formData.append('formFile', _file, _file.name);
4098
+ return this.http.post(url, formData);
4099
+ }
4100
+ return this.http.post(url, null);
4101
+ }
4077
4102
  getInstructionDropDown(subGroupId) {
4078
4103
  let url = environment.ServerUrl +
4079
4104
  'subgroupassingnment/instructionbysubgroup?SubGroupId=' +
@@ -4095,12 +4120,15 @@ class SupportRequestService {
4095
4120
  let url = environment.ServerUrl + 'subgroupassingnment?SubGroupId=' + subGroupId;
4096
4121
  return this.http.get(url);
4097
4122
  }
4098
- getStatusListCount(Usertype, UserFieldId, issuType) {
4123
+ getStatusListCount(Usertype, UserFieldId, issuType, SelectedContract) {
4099
4124
  let url = environment.ServerUrl +
4100
4125
  'entitytype/supportrequestbyrequestertypecount?Usertype=' +
4101
4126
  Usertype + "&UserFieldId=" + UserFieldId;
4102
4127
  if (issuType)
4103
4128
  url = url + "&IssueType=" + issuType;
4129
+ if (SelectedContract) {
4130
+ url += '&ContractNumber=' + SelectedContract;
4131
+ }
4104
4132
  return this.http.get(url);
4105
4133
  }
4106
4134
  getsupportRequestData(criteriastr, Usertype) {
@@ -5345,8 +5373,10 @@ class EntityDynamicFieldComponent {
5345
5373
  if (!isDepandancyvalue) {
5346
5374
  return;
5347
5375
  }
5376
+ this.globalService.dataLoader = true;
5348
5377
  this.entityTypeSetup.dynamicAPi(restData, _formvalue, searchCriteria, SearchText, restData.Havecriteria)
5349
5378
  .subscribe((ress) => {
5379
+ this.globalService.dataLoader = false;
5350
5380
  let res = ress;
5351
5381
  if (restData.ResponseView) {
5352
5382
  let _rview = restData.ResponseView.split(".");
@@ -5391,11 +5421,15 @@ class EntityDynamicFieldComponent {
5391
5421
  }
5392
5422
  else
5393
5423
  obx.next([]);
5424
+ }, (error) => {
5425
+ this.globalService.dataLoader = false;
5394
5426
  });
5395
5427
  }
5396
5428
  else if (jsonItem.isDynamic && jsonItem.api && jsonItem.api.url) {
5397
5429
  const url = jsonItem.api.url;
5430
+ this.globalService.dataLoader = true;
5398
5431
  this.entityTypeSetup.getDyamicUrl(url).subscribe((ress) => {
5432
+ this.globalService.dataLoader = false;
5399
5433
  let res = ress;
5400
5434
  if (jsonItem.api && jsonItem.api.ResponseView) {
5401
5435
  let _rview = jsonItem.api.ResponseView.split(".");
@@ -5436,6 +5470,8 @@ class EntityDynamicFieldComponent {
5436
5470
  }
5437
5471
  else
5438
5472
  obx.next([]);
5473
+ }, (error) => {
5474
+ this.globalService.dataLoader = false;
5439
5475
  });
5440
5476
  }
5441
5477
  else {
@@ -5489,9 +5525,7 @@ class EntityDynamicFieldComponent {
5489
5525
  this.pageStartFrom = 1;
5490
5526
  }
5491
5527
  autoSearchDropdown(event, field, searchValue, RequestorField) {
5492
- debugger;
5493
5528
  if (event.keyCode == 13) {
5494
- this.globalService.dataLoader = true;
5495
5529
  this.tempFields = field;
5496
5530
  if (field.DataType == E_DataType.dropdown) {
5497
5531
  if (field.FieldData) {
@@ -7311,7 +7345,7 @@ class WorkflowDynamicPopupComponent {
7311
7345
  }
7312
7346
  }
7313
7347
  WorkflowDynamicPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: WorkflowDynamicPopupComponent, deps: [{ token: i3.FormBuilder }, { token: EntityTypeSetupService }, { token: GlobalService }], target: i0.ɵɵFactoryTarget.Component });
7314
- WorkflowDynamicPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: WorkflowDynamicPopupComponent, selector: "app-workflow-dynamic-popup", inputs: { currentStage: "currentStage", ProcessId: "ProcessId", showWorkflowPopups: "showWorkflowPopups", isUpdateFields: "isUpdateFields", pageForm: "pageForm", columnDefs: "columnDefs", caller: "caller", EntityFormId: "EntityFormId", EntityTypeId: "EntityTypeId", PageGroupValues: "PageGroupValues" }, outputs: { getWorkflowActionComments: "getWorkflowActionComments" }, ngImport: i0, template: "<div>\r\n <div class=\"modal fade show\" [ngClass]=\"{'showPop':showWorkflowPopups}\" id=\"exampleModal\" tabindex=\"-1\"\r\n aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog modal-lg\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\" id=\"exampleModalLabel\">{{'WorkFlow Stage'|translate}}</h5>\r\n <button type=\"button\" (click)=\"closePopup()\" class=\"close\" data-bs-dismiss=\"modal\"\r\n aria-label=\"Close\">&times;</button>\r\n </div>\r\n <div class=\"modal-body\">\r\n\r\n\r\n <ng-container *ngIf=\"EntityFormId && showWorkflowPopups \">\r\n <app-entity-dynamic-view [EntityFormId]=\"EntityFormId\"\r\n [PageGroupValues]=\"PageGroupValues\"\r\n [ViewFrom]=\"'Details'\"\r\n [Type]=\"Type\"\r\n [ParameterData]=\"ParameterData\"\r\n (submitFormValue)=\"emitSubmitForm($event.formdata,$event.pageForm,$event.forms,$event.CurrentFormPageGroupObjects)\"></app-entity-dynamic-view>\r\n </ng-container>\r\n\r\n <form *ngIf=\"fieldConfig.length != 0\" [formGroup]=\"dynamicFormGroup\">\r\n <ng-container *ngIf=\"fieldConfig.length != 0\">\r\n <ng-container *ngFor=\"let item of fieldConfig; let i = index\">\r\n <!-- textarea, image, file -->\r\n <ng-container\r\n *ngIf=\"(item.Datatype == 10 || item.Datatype == 7 || item.Datatype == 8 || item.Datatype == 11) else thenBlack\">\r\n <ng-container *ngIf=\"item.IsVisible\">\r\n\r\n <!-- Drop Down -->\r\n <div class=\"form-group\" *ngIf=\"item.Datatype == 8\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\">\r\n <div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6\">\r\n <div class=\"clearfix\">\r\n <label class=\"control-label\"\r\n style=\"padding-right: 0px;\">{{item.DisplayLabel || item.FieldName | translate }}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"control-input\">\r\n <ng-select [items]=\"dropDown$[item.FieldName] | async\" [formControlName]=\"item.FieldName\"\r\n bindLabel=\"Description\" bindValue=\"Id\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required }\">\r\n </ng-select>\r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required\"\r\n class=\"invalid-feedback\">\r\n <span *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)['errors']['required']\"\r\n style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- text-area -->\r\n <div class=\"form-group\" *ngIf=\"item.Datatype == 10\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\">\r\n <div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6\">\r\n <div class=\"clearfix\">\r\n <label class=\"control-label\"\r\n style=\"padding-right: 0px;\">{{item.DisplayLabel || item.FieldName | translate }}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"control-input\">\r\n <textarea class=\"dy-text-area\" [name]=\"item.FieldName\" [formControlName]=\"item.FieldName\"\r\n class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required }\"></textarea>\r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required\"\r\n class=\"invalid-feedback\">\r\n <span style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Image -->\r\n <div class=\"form-group\" *ngIf=\"item.Datatype == 7\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\">\r\n <div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6\">\r\n <div class=\"clearfix\">\r\n <label class=\"control-label\"\r\n style=\"padding-right: 0px;\">{{item.DisplayLabel || item.FieldName | translate }}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"control-input\">\r\n <input autocomplete=\"off\" [placeholder]=\"item.DisplayLabel\" type=\"file\"\r\n [name]=\"item.FieldName\" [formControlName]=\"item.FieldName\" class=\"form-control\"\r\n (change)=\"uploadFile($event)\" accept=\"image/x-png,image/gif,image/jpeg\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required }\" />\r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required\"\r\n class=\"invalid-feedback\">\r\n <span style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- file -->\r\n <!-- <div class=\"form-group\"\r\n *ngIf=\"item.Datatype == 11\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\">\r\n <div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6\">\r\n <div class=\"clearfix\">\r\n <label class=\"control-label\"\r\n style=\"padding-right: 0px;\">{{item.DisplayLabel || item.FieldName | translate}}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"control-input\">\r\n <input autocomplete=\"off\"\r\n style=\"width: calc(100% - 30px); display: inline-block; margin: 00 5px 0 0;\"\r\n [placeholder]=\"item.DisplayLabel\"\r\n type=\"file\"\r\n (change)=\"changeFile($event.target.file,item)\"\r\n [name]=\"item.FieldName\"\r\n [formControlName]=\"item.FieldName\"\r\n class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors }\" />\r\n <i class=\"themeprimary fa fa-upload\"\r\n *ngIf=\"!isFileUpload\"\r\n (click)=\"uploadFiles()\"\r\n style=\"font-size: 20px;\"></i>\r\n <div>\r\n <i class=\"themeprimary\"\r\n *ngIf=\"!isFileUpload\">{{\"before submitting please file attach\" | translate}}</i>\r\n <i class=\"themeprimary la la-check\"\r\n style=\"margin: 0 5px\"\r\n *ngIf=\"isFileUpload\"></i>\r\n <i class=\"themeprimary\"\r\n *ngIf=\"isFileUpload\">{{\"file attached\" | translate}}</i>\r\n </div>\r\n \r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors\"\r\n class=\"invalid-feedback\">\r\n <span style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div> -->\r\n\r\n\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-template #thenBlack>\r\n <div class=\"form-group\" [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\"\r\n *ngIf=\"item.IsVisible\">\r\n <div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6\">\r\n <div class=\"clearfix\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\">{{item.DisplayLabel | translate }}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory\">*</span>\r\n </label>\r\n </div>\r\n <!-- string, int, decimal, time, checkbox, image -->\r\n <div class=\"control-input\"\r\n *ngIf=\"item.Datatype == 1 || item.Datatype == 2 || item.Datatype == 5 || item.Datatype == 6 || item.Datatype == 9\">\r\n <input min=\"0\" autocomplete=\"off\" [placeholder]=\"item.DisplayLabel\"\r\n [type]=\"getType(item.Datatype)\" [name]=\"item.FieldName\" [formControlName]=\"item.FieldName\"\r\n class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required }\" />\r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required\"\r\n class=\"invalid-feedback\">\r\n <span style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div>\r\n\r\n <!-- date && date-time -->\r\n <!-- <div class=\"control-input date_pick\"\r\n *ngIf=\"item.Datatype == 3 || item.Datatype == 4\">\r\n <input type=\"text\"\r\n readonly\r\n [matDatepicker]=\"Datepicker\"\r\n [placeholder]=\"item.DisplayLabel\"\r\n [name]=\"item.FieldName\"\r\n [formControlName]=\"item.FieldName\"\r\n class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required }\" />\r\n <mat-datepicker-toggle matSuffix\r\n [for]=\"Datepicker\"></mat-datepicker-toggle>\r\n <mat-datepicker #Datepicker></mat-datepicker>\r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required\"\r\n class=\"invalid-feedback\">\r\n <span style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div> -->\r\n\r\n\r\n </div>\r\n </div>\r\n </ng-template>\r\n\r\n </ng-container>\r\n </ng-container>\r\n </form>\r\n\r\n <div class=\"clearfix\">\r\n <div class=\"col-xs-12 col-sm-12 col-md-12 col-lg-12\">\r\n <div class=\"row\">\r\n <div class=\"col text-right\" style=\"max-width: 167px;\">\r\n <label class=\"control-label\"\r\n style=\"padding-right: 0px;\">{{'Comments' | translate}}</label>\r\n </div>\r\n <div class=\"col control-input\">\r\n <textarea id=\"comments\"\r\n class=\"form-control\"\r\n rows=\"4\"\r\n [ngModelOptions]=\"{standalone: true}\"\r\n [(ngModel)]=\"workflowComments\"\r\n (click)=\"activeInputId = 'comments'\"></textarea>\r\n </div>\r\n <div class=\"canned-response\">\r\n \r\n <button type=\"button\"\r\n (click)=\"showshortcode =!showshortcode; getShortCodeCannedResponse()\"\r\n class=\"btn-outline-success badge bg-white\">\r\n <i class=\"la la-envelope-open-text themecolor\"\r\n style=\"font-size: 25px;\"></i> </button>\r\n <ul role=\"menu\"\r\n class=\"dropdown-menu show\"\r\n *ngIf=\"showshortcode\">\r\n <li *ngFor=\"let short of shortcode\"><a class=\"dropdown-item\"\r\n (click)=\"selectShortKey(short)\">{{short.Message}}</a></li>\r\n </ul>\r\n \r\n \r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n <div class=\"modal-footer\">\r\n <button type=\"submit\" class=\"btn btn-primary\" data-bs-dismiss=\"modal\" (click)=\"onSubmit()\">{{'Submit'|translate}}</button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".canned-response{position:absolute;right:10px;bottom:0}.canned-response .badge{border-radius:100px;height:41px;box-shadow:0 0 13px -5px #000000ad}.canned-response .badge:focus{outline:none}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i7$1.NgSelectComponent, selector: "ng-select", inputs: ["bindLabel", "bindValue", "markFirst", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "appearance", "dropdownPosition", "appendTo", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "openOnEnter", "maxSelectedItems", "groupBy", "groupValue", "bufferAmount", "virtualScroll", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "tabIndex", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "typeahead", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { kind: "component", type: EntityDynamicViewComponent, selector: "app-entity-dynamic-view", inputs: ["RequestorField", "RequestorFieldValue", "EntityFormId", "Type", "ViewFrom", "ModalSize", "PageGroupValues", "ParameterData"], outputs: ["closeDynamicViewPopup", "submitFormValue"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
7348
+ WorkflowDynamicPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: WorkflowDynamicPopupComponent, selector: "app-workflow-dynamic-popup", inputs: { currentStage: "currentStage", ProcessId: "ProcessId", showWorkflowPopups: "showWorkflowPopups", isUpdateFields: "isUpdateFields", pageForm: "pageForm", columnDefs: "columnDefs", caller: "caller", EntityFormId: "EntityFormId", EntityTypeId: "EntityTypeId", PageGroupValues: "PageGroupValues" }, outputs: { getWorkflowActionComments: "getWorkflowActionComments" }, ngImport: i0, template: "<div>\r\n <div class=\"modal fade show\" [ngClass]=\"{'showPop':showWorkflowPopups}\" id=\"exampleModal\" tabindex=\"-1\"\r\n aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog modal-lg\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\" id=\"exampleModalLabel\">{{'WorkFlow Stage'|translate}}</h5>\r\n <button type=\"button\" (click)=\"closePopup()\" class=\"close\" data-bs-dismiss=\"modal\"\r\n aria-label=\"Close\">&times;</button>\r\n </div>\r\n <div class=\"modal-body\">\r\n\r\n\r\n <ng-container *ngIf=\"EntityFormId && showWorkflowPopups \">\r\n <app-entity-dynamic-view [EntityFormId]=\"EntityFormId\"\r\n [PageGroupValues]=\"PageGroupValues\"\r\n [ViewFrom]=\"'Details'\"\r\n [Type]=\"Type\"\r\n [ParameterData]=\"ParameterData\"\r\n (submitFormValue)=\"emitSubmitForm($event.formdata,$event.pageForm,$event.forms,$event.CurrentFormPageGroupObjects)\"></app-entity-dynamic-view>\r\n </ng-container>\r\n\r\n <form *ngIf=\"fieldConfig.length != 0\" [formGroup]=\"dynamicFormGroup\">\r\n <ng-container *ngIf=\"fieldConfig.length != 0\">\r\n <ng-container *ngFor=\"let item of fieldConfig; let i = index\">\r\n <!-- textarea, image, file -->\r\n <ng-container\r\n *ngIf=\"(item.Datatype == 10 || item.Datatype == 7 || item.Datatype == 8 || item.Datatype == 11) else thenBlack\">\r\n <ng-container *ngIf=\"item.IsVisible\">\r\n\r\n <!-- Drop Down -->\r\n <div class=\"form-group\" *ngIf=\"item.Datatype == 8\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\">\r\n <div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6\">\r\n <div class=\"clearfix\">\r\n <label class=\"control-label\"\r\n style=\"padding-right: 0px;\">{{item.DisplayLabel || item.FieldName | translate }}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"control-input\">\r\n <ng-select [items]=\"dropDown$[item.FieldName] | async\" [formControlName]=\"item.FieldName\"\r\n bindLabel=\"Description\" bindValue=\"Id\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required }\">\r\n </ng-select>\r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required\"\r\n class=\"invalid-feedback\">\r\n <span *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)['errors']['required']\"\r\n style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- text-area -->\r\n <div class=\"form-group\" *ngIf=\"item.Datatype == 10\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\">\r\n <div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6\">\r\n <div class=\"clearfix\">\r\n <label class=\"control-label\"\r\n style=\"padding-right: 0px;\">{{item.DisplayLabel || item.FieldName | translate }}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"control-input\">\r\n <textarea class=\"dy-text-area\" [name]=\"item.FieldName\" [formControlName]=\"item.FieldName\"\r\n class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required }\"></textarea>\r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required\"\r\n class=\"invalid-feedback\">\r\n <span style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Image -->\r\n <div class=\"form-group\" *ngIf=\"item.Datatype == 7\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\">\r\n <div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6\">\r\n <div class=\"clearfix\">\r\n <label class=\"control-label\"\r\n style=\"padding-right: 0px;\">{{item.DisplayLabel || item.FieldName | translate }}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"control-input\">\r\n <input autocomplete=\"off\" [placeholder]=\"item.DisplayLabel\" type=\"file\"\r\n [name]=\"item.FieldName\" [formControlName]=\"item.FieldName\" class=\"form-control\"\r\n (change)=\"uploadFile($event)\" accept=\"image/x-png,image/gif,image/jpeg\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required }\" />\r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required\"\r\n class=\"invalid-feedback\">\r\n <span style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- file -->\r\n <!-- <div class=\"form-group\"\r\n *ngIf=\"item.Datatype == 11\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\">\r\n <div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6\">\r\n <div class=\"clearfix\">\r\n <label class=\"control-label\"\r\n style=\"padding-right: 0px;\">{{item.DisplayLabel || item.FieldName | translate}}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"control-input\">\r\n <input autocomplete=\"off\"\r\n style=\"width: calc(100% - 30px); display: inline-block; margin: 00 5px 0 0;\"\r\n [placeholder]=\"item.DisplayLabel\"\r\n type=\"file\"\r\n (change)=\"changeFile($event.target.file,item)\"\r\n [name]=\"item.FieldName\"\r\n [formControlName]=\"item.FieldName\"\r\n class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors }\" />\r\n <i class=\"themeprimary fa fa-upload\"\r\n *ngIf=\"!isFileUpload\"\r\n (click)=\"uploadFiles()\"\r\n style=\"font-size: 20px;\"></i>\r\n <div>\r\n <i class=\"themeprimary\"\r\n *ngIf=\"!isFileUpload\">{{\"before submitting please file attach\" | translate}}</i>\r\n <i class=\"themeprimary la la-check\"\r\n style=\"margin: 0 5px\"\r\n *ngIf=\"isFileUpload\"></i>\r\n <i class=\"themeprimary\"\r\n *ngIf=\"isFileUpload\">{{\"file attached\" | translate}}</i>\r\n </div>\r\n \r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors\"\r\n class=\"invalid-feedback\">\r\n <span style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div> -->\r\n\r\n\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-template #thenBlack>\r\n <div class=\"form-group\" [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\"\r\n *ngIf=\"item.IsVisible\">\r\n <div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6\">\r\n <div class=\"clearfix\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\">{{item.DisplayLabel | translate }}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory\">*</span>\r\n </label>\r\n </div>\r\n <!-- string, int, decimal, time, checkbox, image -->\r\n <div class=\"control-input\"\r\n *ngIf=\"item.Datatype == 1 || item.Datatype == 2 || item.Datatype == 5 || item.Datatype == 6 || item.Datatype == 9\">\r\n <input min=\"0\" autocomplete=\"off\" [placeholder]=\"item.DisplayLabel\"\r\n [type]=\"getType(item.Datatype)\" [name]=\"item.FieldName\" [formControlName]=\"item.FieldName\"\r\n class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required }\" />\r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required\"\r\n class=\"invalid-feedback\">\r\n <span style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div>\r\n\r\n <!-- date && date-time -->\r\n <!-- <div class=\"control-input date_pick\"\r\n *ngIf=\"item.Datatype == 3 || item.Datatype == 4\">\r\n <input type=\"text\"\r\n readonly\r\n [matDatepicker]=\"Datepicker\"\r\n [placeholder]=\"item.DisplayLabel\"\r\n [name]=\"item.FieldName\"\r\n [formControlName]=\"item.FieldName\"\r\n class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required }\" />\r\n <mat-datepicker-toggle matSuffix\r\n [for]=\"Datepicker\"></mat-datepicker-toggle>\r\n <mat-datepicker #Datepicker></mat-datepicker>\r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required\"\r\n class=\"invalid-feedback\">\r\n <span style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div> -->\r\n\r\n\r\n </div>\r\n </div>\r\n </ng-template>\r\n\r\n </ng-container>\r\n </ng-container>\r\n </form>\r\n\r\n <div class=\"clearfix\">\r\n <div class=\"col-xs-12 col-sm-12 col-md-12 col-lg-12\">\r\n <div class=\"row\">\r\n <div class=\"col text-right\" style=\"max-width: 167px;\">\r\n <label class=\"control-label\"\r\n style=\"padding-right: 0px;\">{{'Comments' | translate}}</label>\r\n </div>\r\n <div class=\"col control-input\">\r\n <textarea id=\"comments\"\r\n class=\"form-control\"\r\n rows=\"4\"\r\n [ngModelOptions]=\"{standalone: true}\"\r\n [(ngModel)]=\"workflowComments\"\r\n (click)=\"activeInputId = 'comments'\"></textarea>\r\n </div>\r\n <div class=\"canned-response\">\r\n \r\n <button type=\"button\"\r\n (click)=\"showshortcode =!showshortcode; getShortCodeCannedResponse()\"\r\n class=\"btn-outline-success badge bg-white\">\r\n <i class=\"la la-envelope-open-text themecolor\"\r\n style=\"font-size: 25px;\"></i> </button>\r\n <ul role=\"menu\"\r\n class=\"dropdown-menu show\"\r\n *ngIf=\"showshortcode\">\r\n <li *ngFor=\"let short of shortcode\"><a class=\"dropdown-item\"\r\n (click)=\"selectShortKey(short)\">{{short.Message}}</a></li>\r\n </ul>\r\n \r\n \r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n <div class=\"modal-footer\">\r\n <button type=\"submit\" class=\"btn btn-primary\" data-bs-dismiss=\"modal\" (click)=\"onSubmit()\">{{'Submit'|translate}}</button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".canned-response{position:absolute;right:10px;bottom:0}.canned-response .badge{border-radius:100px;height:41px;box-shadow:0 0 13px -5px #000000ad}.canned-response .badge:focus{outline:none}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i5$1.NgSelectComponent, selector: "ng-select", inputs: ["bindLabel", "bindValue", "markFirst", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "appearance", "dropdownPosition", "appendTo", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "openOnEnter", "maxSelectedItems", "groupBy", "groupValue", "bufferAmount", "virtualScroll", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "tabIndex", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "typeahead", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { kind: "component", type: EntityDynamicViewComponent, selector: "app-entity-dynamic-view", inputs: ["RequestorField", "RequestorFieldValue", "EntityFormId", "Type", "ViewFrom", "ModalSize", "PageGroupValues", "ParameterData"], outputs: ["closeDynamicViewPopup", "submitFormValue"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
7315
7349
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: WorkflowDynamicPopupComponent, decorators: [{
7316
7350
  type: Component,
7317
7351
  args: [{ selector: 'app-workflow-dynamic-popup', template: "<div>\r\n <div class=\"modal fade show\" [ngClass]=\"{'showPop':showWorkflowPopups}\" id=\"exampleModal\" tabindex=\"-1\"\r\n aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog modal-lg\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\" id=\"exampleModalLabel\">{{'WorkFlow Stage'|translate}}</h5>\r\n <button type=\"button\" (click)=\"closePopup()\" class=\"close\" data-bs-dismiss=\"modal\"\r\n aria-label=\"Close\">&times;</button>\r\n </div>\r\n <div class=\"modal-body\">\r\n\r\n\r\n <ng-container *ngIf=\"EntityFormId && showWorkflowPopups \">\r\n <app-entity-dynamic-view [EntityFormId]=\"EntityFormId\"\r\n [PageGroupValues]=\"PageGroupValues\"\r\n [ViewFrom]=\"'Details'\"\r\n [Type]=\"Type\"\r\n [ParameterData]=\"ParameterData\"\r\n (submitFormValue)=\"emitSubmitForm($event.formdata,$event.pageForm,$event.forms,$event.CurrentFormPageGroupObjects)\"></app-entity-dynamic-view>\r\n </ng-container>\r\n\r\n <form *ngIf=\"fieldConfig.length != 0\" [formGroup]=\"dynamicFormGroup\">\r\n <ng-container *ngIf=\"fieldConfig.length != 0\">\r\n <ng-container *ngFor=\"let item of fieldConfig; let i = index\">\r\n <!-- textarea, image, file -->\r\n <ng-container\r\n *ngIf=\"(item.Datatype == 10 || item.Datatype == 7 || item.Datatype == 8 || item.Datatype == 11) else thenBlack\">\r\n <ng-container *ngIf=\"item.IsVisible\">\r\n\r\n <!-- Drop Down -->\r\n <div class=\"form-group\" *ngIf=\"item.Datatype == 8\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\">\r\n <div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6\">\r\n <div class=\"clearfix\">\r\n <label class=\"control-label\"\r\n style=\"padding-right: 0px;\">{{item.DisplayLabel || item.FieldName | translate }}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"control-input\">\r\n <ng-select [items]=\"dropDown$[item.FieldName] | async\" [formControlName]=\"item.FieldName\"\r\n bindLabel=\"Description\" bindValue=\"Id\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required }\">\r\n </ng-select>\r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required\"\r\n class=\"invalid-feedback\">\r\n <span *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)['errors']['required']\"\r\n style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- text-area -->\r\n <div class=\"form-group\" *ngIf=\"item.Datatype == 10\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\">\r\n <div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6\">\r\n <div class=\"clearfix\">\r\n <label class=\"control-label\"\r\n style=\"padding-right: 0px;\">{{item.DisplayLabel || item.FieldName | translate }}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"control-input\">\r\n <textarea class=\"dy-text-area\" [name]=\"item.FieldName\" [formControlName]=\"item.FieldName\"\r\n class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required }\"></textarea>\r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required\"\r\n class=\"invalid-feedback\">\r\n <span style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Image -->\r\n <div class=\"form-group\" *ngIf=\"item.Datatype == 7\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\">\r\n <div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6\">\r\n <div class=\"clearfix\">\r\n <label class=\"control-label\"\r\n style=\"padding-right: 0px;\">{{item.DisplayLabel || item.FieldName | translate }}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"control-input\">\r\n <input autocomplete=\"off\" [placeholder]=\"item.DisplayLabel\" type=\"file\"\r\n [name]=\"item.FieldName\" [formControlName]=\"item.FieldName\" class=\"form-control\"\r\n (change)=\"uploadFile($event)\" accept=\"image/x-png,image/gif,image/jpeg\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required }\" />\r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required\"\r\n class=\"invalid-feedback\">\r\n <span style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- file -->\r\n <!-- <div class=\"form-group\"\r\n *ngIf=\"item.Datatype == 11\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\">\r\n <div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6\">\r\n <div class=\"clearfix\">\r\n <label class=\"control-label\"\r\n style=\"padding-right: 0px;\">{{item.DisplayLabel || item.FieldName | translate}}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"control-input\">\r\n <input autocomplete=\"off\"\r\n style=\"width: calc(100% - 30px); display: inline-block; margin: 00 5px 0 0;\"\r\n [placeholder]=\"item.DisplayLabel\"\r\n type=\"file\"\r\n (change)=\"changeFile($event.target.file,item)\"\r\n [name]=\"item.FieldName\"\r\n [formControlName]=\"item.FieldName\"\r\n class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors }\" />\r\n <i class=\"themeprimary fa fa-upload\"\r\n *ngIf=\"!isFileUpload\"\r\n (click)=\"uploadFiles()\"\r\n style=\"font-size: 20px;\"></i>\r\n <div>\r\n <i class=\"themeprimary\"\r\n *ngIf=\"!isFileUpload\">{{\"before submitting please file attach\" | translate}}</i>\r\n <i class=\"themeprimary la la-check\"\r\n style=\"margin: 0 5px\"\r\n *ngIf=\"isFileUpload\"></i>\r\n <i class=\"themeprimary\"\r\n *ngIf=\"isFileUpload\">{{\"file attached\" | translate}}</i>\r\n </div>\r\n \r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors\"\r\n class=\"invalid-feedback\">\r\n <span style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div> -->\r\n\r\n\r\n </ng-container>\r\n </ng-container>\r\n\r\n <ng-template #thenBlack>\r\n <div class=\"form-group\" [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\"\r\n *ngIf=\"item.IsVisible\">\r\n <div class=\"col-xs-6 col-sm-6 col-md-6 col-lg-6\">\r\n <div class=\"clearfix\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\">{{item.DisplayLabel | translate }}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory\">*</span>\r\n </label>\r\n </div>\r\n <!-- string, int, decimal, time, checkbox, image -->\r\n <div class=\"control-input\"\r\n *ngIf=\"item.Datatype == 1 || item.Datatype == 2 || item.Datatype == 5 || item.Datatype == 6 || item.Datatype == 9\">\r\n <input min=\"0\" autocomplete=\"off\" [placeholder]=\"item.DisplayLabel\"\r\n [type]=\"getType(item.Datatype)\" [name]=\"item.FieldName\" [formControlName]=\"item.FieldName\"\r\n class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required }\" />\r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required\"\r\n class=\"invalid-feedback\">\r\n <span style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div>\r\n\r\n <!-- date && date-time -->\r\n <!-- <div class=\"control-input date_pick\"\r\n *ngIf=\"item.Datatype == 3 || item.Datatype == 4\">\r\n <input type=\"text\"\r\n readonly\r\n [matDatepicker]=\"Datepicker\"\r\n [placeholder]=\"item.DisplayLabel\"\r\n [name]=\"item.FieldName\"\r\n [formControlName]=\"item.FieldName\"\r\n class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required }\" />\r\n <mat-datepicker-toggle matSuffix\r\n [for]=\"Datepicker\"></mat-datepicker-toggle>\r\n <mat-datepicker #Datepicker></mat-datepicker>\r\n <ng-container *ngIf=\"submitted && dynamicFormGroup.get(item.FieldName)?.errors?.required\"\r\n class=\"invalid-feedback\">\r\n <span style=\"color: red\">{{item.DisplayLabel + ' is required' | translate }}</span>\r\n </ng-container>\r\n </div> -->\r\n\r\n\r\n </div>\r\n </div>\r\n </ng-template>\r\n\r\n </ng-container>\r\n </ng-container>\r\n </form>\r\n\r\n <div class=\"clearfix\">\r\n <div class=\"col-xs-12 col-sm-12 col-md-12 col-lg-12\">\r\n <div class=\"row\">\r\n <div class=\"col text-right\" style=\"max-width: 167px;\">\r\n <label class=\"control-label\"\r\n style=\"padding-right: 0px;\">{{'Comments' | translate}}</label>\r\n </div>\r\n <div class=\"col control-input\">\r\n <textarea id=\"comments\"\r\n class=\"form-control\"\r\n rows=\"4\"\r\n [ngModelOptions]=\"{standalone: true}\"\r\n [(ngModel)]=\"workflowComments\"\r\n (click)=\"activeInputId = 'comments'\"></textarea>\r\n </div>\r\n <div class=\"canned-response\">\r\n \r\n <button type=\"button\"\r\n (click)=\"showshortcode =!showshortcode; getShortCodeCannedResponse()\"\r\n class=\"btn-outline-success badge bg-white\">\r\n <i class=\"la la-envelope-open-text themecolor\"\r\n style=\"font-size: 25px;\"></i> </button>\r\n <ul role=\"menu\"\r\n class=\"dropdown-menu show\"\r\n *ngIf=\"showshortcode\">\r\n <li *ngFor=\"let short of shortcode\"><a class=\"dropdown-item\"\r\n (click)=\"selectShortKey(short)\">{{short.Message}}</a></li>\r\n </ul>\r\n \r\n \r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n <div class=\"modal-footer\">\r\n <button type=\"submit\" class=\"btn btn-primary\" data-bs-dismiss=\"modal\" (click)=\"onSubmit()\">{{'Submit'|translate}}</button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".canned-response{position:absolute;right:10px;bottom:0}.canned-response .badge{border-radius:100px;height:41px;box-shadow:0 0 13px -5px #000000ad}.canned-response .badge:focus{outline:none}\n"] }]
@@ -7763,9 +7797,7 @@ class ActivitiesCreateComponent {
7763
7797
  // this.EntityTypeId = Number(res.get('EntityTypeId'));
7764
7798
  });
7765
7799
  this.getActiveEntityForm();
7766
- debugger;
7767
7800
  this.globalService.submitComments.subscribe(x => {
7768
- debugger;
7769
7801
  if (x.message) {
7770
7802
  this.createFormData.Comments = x.message;
7771
7803
  this.submitTicketCreate(true);
@@ -7783,7 +7815,6 @@ class ActivitiesCreateComponent {
7783
7815
  this.closeActivityCreate.emit({ Type: "Cancel" });
7784
7816
  }
7785
7817
  submitTicketCreate(isDisableFormValidation) {
7786
- debugger;
7787
7818
  let CreateData = this.createFormData;
7788
7819
  if (isDisableFormValidation) {
7789
7820
  if (!this.createFormData.Comments) {
@@ -8652,1065 +8683,1399 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
8652
8683
  type: Input
8653
8684
  }] } });
8654
8685
 
8655
- class SupportRequestDetailsComponent {
8656
- constructor(taskService, EntityTypeSetupService, fb, actRoute, gridServiceService, ticketService, globalService, route) {
8657
- this.taskService = taskService;
8658
- this.EntityTypeSetupService = EntityTypeSetupService;
8659
- this.fb = fb;
8660
- this.actRoute = actRoute;
8661
- this.gridServiceService = gridServiceService;
8662
- this.ticketService = ticketService;
8663
- this.globalService = globalService;
8664
- this.route = route;
8665
- this.ViewFrom = "Page";
8666
- this.IsWfAction = false;
8667
- this.environment = environment;
8668
- // _TaskDetail: TaskVM =null;
8669
- this._TaskDetail = null;
8670
- this.stageId = null;
8671
- this.EntityTypeId = null;
8672
- this.EntityTypeIdRecId = null;
8673
- this.refRecId = null;
8674
- this.EntityFormId = null;
8675
- this.EntityPageGroupsData = [];
8676
- this.EntityDefaultPageGroupsData = [];
8677
- this.pageTitle = "Process Stage";
8678
- this.pageDesp = "Process Stage";
8679
- this.selectMode = E_SelectMode.Multi;
8680
- this.isAttach = false;
8681
- this.isCreate = false;
8682
- this.isEdit = false;
8683
- this.isDelete = false;
8684
- this.isExport = false;
8685
- this.gridActionList = [];
8686
- this.columnDefs = [
8687
- { Field: 'ProcessStage', Name: 'Process Stage Id' },
8688
- { Field: 'ProcessStageEn', Name: 'Process Stage' },
8689
- { Field: 'Comments', Name: 'Comments' },
8690
- { Field: 'StartDate', Name: 'Start Date', DataType: E_DataType.date },
8691
- { Field: 'EndDate', Name: 'End Date', DataType: E_DataType.date },
8692
- ];
8693
- this.commentsData = [];
8694
- this.commentsDataCount = 0;
8695
- this.Searchcriteria = {
8696
- Pagging: {
8697
- PageNo: 1,
8698
- PageSize: 10,
8699
- },
8700
- Where: [],
8701
- SortOrder: 1,
8686
+ class AttachmentService {
8687
+ constructor(http) {
8688
+ this.http = http;
8689
+ this.IsPopUp = false;
8690
+ }
8691
+ getAttachmentList(MenuOrEntityRecId, attachmentType) {
8692
+ const url = Common.getAttachmentByMenuRecId(MenuOrEntityRecId, attachmentType);
8693
+ return this.http.get(url);
8694
+ }
8695
+ uploadAttachFile(obj, files) {
8696
+ const url = Common.uploadAttachFile();
8697
+ let data = {
8698
+ refRecId: obj.refRecId,
8699
+ DocumentType: obj.DocumentType,
8700
+ DocumentVersion: obj.DocumentVersion,
8701
+ Title: obj.Title,
8702
+ FileName: obj.FileName
8702
8703
  };
8703
- this.displayPopupCreateView = false;
8704
- this.CreateItemId = null;
8705
- this.selectedActivityItem = null;
8706
- this.commentsActivityItem = null;
8707
- this.detailsEntityTypeId = null;
8708
- this.Activity = null;
8709
- this.ActivityType = [];
8710
- this.ActivityTypeReadonly = [];
8711
- this.TotalActivity = 0;
8712
- this.StatusAndStageList = [];
8713
- this.showStageDetails = false;
8714
- this.selectedProcessList = [];
8715
- this.tabDisplayView = 1;
8716
- this.SortingField = { field: null, direction: null };
8717
- this.activitySearchcriteria = {
8718
- Pagging: {
8719
- PageNo: 1,
8720
- PageSize: 10,
8721
- },
8722
- Where: [],
8723
- SortOrder: this.SortingField,
8704
+ return this.http.post(url, files, { params: data });
8705
+ }
8706
+ getUploadFileList(DoctypeRecId, RefRecId) {
8707
+ const url = Common.getUploadFileList(DoctypeRecId, RefRecId);
8708
+ let obj = {
8709
+ DoctypeRecId: DoctypeRecId,
8710
+ RefRecId: RefRecId
8724
8711
  };
8725
- this.TaskList = [];
8726
- this.ProcessStageList = [];
8727
- this.TimelineList = [];
8728
- this.TimelineListReadonly = [];
8729
- this.TaskCommentFile = null;
8730
- this.wfActionData = [
8731
- { id: 1, name: "New" },
8732
- { id: 2, name: "Forward" },
8733
- { id: 3, name: "Reply" },
8734
- { id: 4, name: "Esculation" },
8735
- { id: 5, name: "Delegation" },
8736
- { id: 6, name: "Complete" },
8737
- { id: 7, name: "Cancel" },
8738
- ];
8739
- this.wfStageAction = null;
8740
- this.action = null;
8741
- this.showWorkflowPopup = false;
8742
- this.workflowEntityFormId = null;
8743
- this.assignmentForm = this.fb.group({
8744
- ActionStatus: [''],
8745
- AssignedTo: [''],
8746
- TargetDate: [''],
8747
- Description: [''],
8748
- Comments: [''],
8749
- });
8750
- this.updateStatusAssignTo = [];
8751
- this.actionPopup = false;
8752
- this.targetDate = null;
8753
- this.columnDef = [
8754
- { Field: "Description", Name: "Description" },
8755
- { Field: "AssignedTo", Name: "AssignedTo" },
8756
- { Field: "TargetDate", Name: "TargetDate", DataType: E_DataType.date },
8757
- { Field: "IsDoneEn", Name: "IsDone", },
8758
- ];
8759
- this.translatePipe = new TranslatePipe(this.globalService);
8712
+ return this.http.get(url, { observe: 'response' }); //obj,
8760
8713
  }
8761
- ngOnInit() {
8762
- // this.actRoute.paramMap.subscribe((res) => {
8763
- //
8764
- // console.log(res);
8765
- // if (this.ViewFrom != 'Popup') {
8766
- // this.RecId = Number(res.get('RecId'));
8767
- // this.EntityTypeRecId = Number(res.get('EntityTypeRecId'));
8768
- // }
8769
- // });
8770
- this.getTaskDetails();
8771
- this.getActivity();
8772
- this.getWorkflowStatusWithStage();
8773
- // this.getAssignGroupData();
8774
- // this.getTaskAssignData();
8714
+ ActivateUplaodFile(RecId) {
8715
+ const url = Common.activateUploadFile(RecId);
8716
+ return this.http.get(url);
8775
8717
  }
8776
- getTaskDetails() {
8777
- if (this.RecId != null) {
8778
- this.EntityTypeSetupService.getDynamicById(this.EntityTypeRecId, this.RecId).subscribe((x) => {
8779
- // alert("a");
8780
- // ;
8781
- this._TaskDetail = x;
8782
- this.stageId = x.ProcessStage;
8783
- this.EntityTypeId = x.EntityTypeId;
8784
- this.EntityTypeIdRecId = x.EntityTypeRecId;
8785
- this.refRecId = x.RecId;
8786
- this.GetPageList(this.storeCriteria);
8787
- if (this._TaskDetail && this._TaskDetail.uploadFiles && this._TaskDetail.uploadFiles.length > 0) {
8788
- this._TaskDetail.uploadFiles.map(x => {
8789
- if (x.Ext) {
8790
- x.ExtSm = x.Ext.toLowerCase();
8791
- x.ExtSm = x.ExtSm.replace('.', '');
8792
- }
8793
- });
8794
- }
8795
- this.getActivities();
8796
- this.getEntityFormDetails();
8797
- // this.getComments();
8798
- if (this.IsWfAction) {
8799
- this.getWfStageAction(x.EntityTypeId, x.ProcessStage);
8800
- }
8801
- }, (error) => error.error);
8802
- }
8718
+ InActivateUplaodFile(RecId) {
8719
+ const url = Common.inActivateUploadFile(RecId);
8720
+ return this.http.get(url);
8803
8721
  }
8804
- getEntityFormDetails() {
8805
- this.EntityDefaultPageGroupsData = [];
8806
- this.EntityPageGroupsData = [];
8807
- this.EntityTypeSetupService.getActiveEntityFormByDetails(this.EntityTypeId).subscribe((res) => {
8808
- if (res.FormData) {
8809
- let _FormData = JSON.parse(res.FormData);
8810
- if (_FormData.PageGroup) {
8811
- if (Array.isArray(_FormData.PageGroup)) {
8812
- this.EntityPageGroupsData = _FormData.PageGroup;
8813
- }
8814
- }
8815
- if (_FormData.defaultPageGroups) {
8816
- if (Array.isArray(_FormData.defaultPageGroups)) {
8817
- this.EntityDefaultPageGroupsData = _FormData.defaultPageGroups;
8818
- }
8819
- }
8820
- }
8821
- this.EntityFormId = res.RecId;
8822
- }, (error) => {
8823
- console.log(error);
8824
- });
8722
+ getDocumentType(criteriastr) {
8723
+ // let obj={
8724
+ // "Pagging":{"PageNo":criteriastr.Pagging.PageNo,"PageSize":criteriastr.Pagging.PageSize},
8725
+ // "Where":[],
8726
+ // "SortOrder":{"field":null,"direction":null}
8727
+ // };
8728
+ // let criteria:any= JSON.stringify(obj);
8729
+ const url = Common.getDocumentType();
8730
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
8825
8731
  }
8826
- getWorkflowActionComments(comments, updateFileds, updateFieldsObject) {
8827
- // alert("zz");
8828
- let updateFieldsObjectString = JSON.stringify(updateFieldsObject);
8829
- this.EntityTypeSetupService.urlPostTaskWfAction(this.RecId, this.stageId, this.action, comments, updateFileds, updateFieldsObjectString, this.EntityTypeId).subscribe((res) => {
8830
- // this.wfActionData = res;
8831
- this.getTaskDetails();
8832
- console.log(res);
8833
- }, (error) => {
8834
- var _a, _b, _c;
8835
- error.error;
8836
- if (((_a = error.error) === null || _a === void 0 ? void 0 : _a.status) == false) {
8837
- let msg = JSON.parse((_b = error.error) === null || _b === void 0 ? void 0 : _b.msg);
8838
- if (msg && msg.msg) {
8839
- msg = msg.msg;
8840
- }
8841
- else {
8842
- msg = (_c = error.error) === null || _c === void 0 ? void 0 : _c.msg;
8843
- }
8844
- Swal.fire(this.translatePipe.transform(msg));
8845
- }
8846
- else {
8847
- Swal.fire(this.translatePipe.transform(error.ExceptionMessage), this.translatePipe.transform(error.message));
8848
- }
8849
- });
8732
+ getDocumentbyRecId(RecId) {
8733
+ const url = Common.getDocumentTypeByRecId(RecId);
8734
+ return this.http.get(url);
8850
8735
  }
8851
- getComments() {
8852
- // alert("getcommends");
8853
- if (this.refRecId != null) {
8854
- this.ticketService.urlGetTicketUpdateByRecId(this.refRecId).subscribe((x) => {
8855
- // alert("getcommends");
8856
- this.commentsData = x.Data;
8857
- this.commentsDataCount = x.TotalCount;
8858
- }, (error) => {
8859
- // Swal.fire(error);
8860
- Swal.fire({
8861
- title: this.translatePipe.transform(error.error),
8862
- });
8863
- // error.error
8864
- });
8865
- }
8866
- }
8867
- getActivity() {
8868
- //this.EntityType = data.EntityType;
8869
- this.EntityTypeSetupService.getAllAssinedActivites(this.Searchcriteria, this.EntityTypeRecId)
8870
- // this.EntityTypeSetupService.getActiveEntityTypeSetup(this.Searchcriteria, this.EntityType, "")
8871
- .subscribe((res) => {
8872
- this.ActivityFields = res.Data;
8873
- if (this.ActivityFields.length > 0) {
8874
- const sortBy = ['Task', 'SMS', 'Email', 'Notes', 'Comments']; //sort by descending order
8875
- this.ActivityFields = this.ActivityFields.sort((a, b) => sortBy.indexOf(b.Description) - sortBy.indexOf(a.Description));
8876
- let taskActivity = { Description: 'Task', RecId: 58, Type: 'Task' };
8877
- this.ActivityFields.push(taskActivity);
8878
- this.openDefaultComments();
8879
- }
8880
- });
8736
+ deleteDocumentType(RecId) {
8737
+ const url = Common.deleteDocumentType(RecId);
8738
+ const content_ = "";
8739
+ let options_ = {
8740
+ body: content_,
8741
+ observe: "response",
8742
+ responseType: "blob",
8743
+ headers: new HttpHeaders({
8744
+ "Content-Type": "application/json",
8745
+ "Accept": "application/json"
8746
+ })
8747
+ };
8748
+ return this.http.delete(url);
8881
8749
  }
8882
- getActivityFileUploads(item) {
8883
- if (item.showform && item.RecId && item.ActivityTypeId) {
8884
- this.EntityTypeSetupService.getActivityUploadFile(item.RecId, this.EntityTypeRecId, item.ActivityTypeId)
8885
- .subscribe((res) => {
8886
- if (res && res.length > 0) {
8887
- item.uploadFiles = res;
8888
- }
8889
- });
8890
- }
8750
+ createDocumentType(Obj) {
8751
+ const url = Common.createDocumentType();
8752
+ return this.http.post(url, Obj, { observe: 'response' });
8891
8753
  }
8892
- getActivityFileUploadsReadonly(item) {
8893
- if (item.RecId && item.ActivityTypeId) {
8894
- this.EntityTypeSetupService.getActivityUploadFile(item.RecId, this.EntityTypeRecId, item.ActivityTypeId)
8895
- .subscribe((res) => {
8896
- if (res && res.length > 0) {
8897
- item.uploadFiles = res;
8898
- }
8899
- this.ActivityTypeReadonly.push(item);
8900
- });
8901
- }
8754
+ updateDocumentType(Obj) {
8755
+ const url = Common.updateDocumentType();
8756
+ return this.http.put(url, Obj, { observe: 'response' });
8902
8757
  }
8903
- addEvents(data) {
8904
- this.openPopupCreatePage(data);
8758
+ getAttachmentSetupList(criteriastr) {
8759
+ // let obj={
8760
+ // "Pagging":{"PageNo":criteriastr.Pagging.PageNo,"PageSize":criteriastr.Pagging.PageSize},
8761
+ // "Where":[],
8762
+ // "SortOrder":{"field":null,"direction":null}
8763
+ // };
8764
+ // let criteria:any= JSON.stringify(obj);
8765
+ const url = Common.getAttachmentSetupList();
8766
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
8905
8767
  }
8906
- openPopupCreatePage(item) {
8907
- this.CreateItemId = null;
8908
- setTimeout(() => (this.CreateItemId = item.RecId), 0);
8909
- this.selectedActivityItem = item;
8910
- if (item.Description != 'Comments')
8911
- this.displayPopupCreateView = true;
8912
- // this.Activity=item.RecId;
8768
+ getDocumentTypeAssignUnAssign(MenuRecId) {
8769
+ const url = Common.getDocumentTypeAssignUnAssign(MenuRecId);
8770
+ return this.http.get(url);
8913
8771
  }
8914
- closePopupCreateView(Type) {
8915
- this.CreateItemId = null;
8916
- this.displayPopupCreateView = false;
8917
- if (Type == 'Create') {
8918
- this.getActivities();
8919
- this.openDefaultComments();
8920
- }
8772
+ assignDocumentType(data) {
8773
+ const st = data.DocumentTypeRecId.map(x => "DocumentTypeRecId=" + x).join("&");
8774
+ let url_ = `${environment.ServerUrl}security/documenttype/menu/assign?${st}&MenuOrEntityRecId=${data.MenuOrEntityRecId}`;
8775
+ return this.http.post(url_, null);
8921
8776
  }
8922
- slider(direction, Id) {
8923
- this.slide(direction, Id);
8777
+ unassignDocumentType(data) {
8778
+ const st = data.DocumentTypeRecId.map(x => "DocumentTypeRecId=" + x).join("&");
8779
+ let url_ = `${environment.ServerUrl}security/documenttype/menu/unassign?${st}&MenuOrEntityRecId=${data.MenuOrEntityRecId}`;
8780
+ return this.http.post(url_, data);
8924
8781
  }
8925
- slide(direction, Id) {
8926
- debugger;
8927
- let container = document.getElementById(Id);
8928
- let scrollCompleted = 0;
8929
- let slideVar = setInterval(function () {
8930
- if (direction == 'left') {
8931
- container.scrollLeft -= 50;
8932
- }
8933
- else {
8934
- container.scrollLeft += 50;
8935
- }
8936
- scrollCompleted += 10;
8937
- if (scrollCompleted >= 50) {
8938
- window.clearInterval(slideVar);
8939
- }
8940
- }, 50);
8782
+ getDocumentTypeAssignUnAssignForEntityType(EntityRecId) {
8783
+ const url = Common.getDocumentTypeAssignUnAssignForEntityType(EntityRecId);
8784
+ return this.http.get(url);
8941
8785
  }
8942
- getWorkflowStatusWithStage() {
8943
- this.EntityTypeSetupService.getAllWfStage(null, this.EntityTypeRecId, true)
8944
- .subscribe((res) => {
8945
- // alert("StatusAndStageList");
8946
- this.StatusAndStageList = res.Data;
8947
- // .sort((a, b) => {
8948
- // if (a.StageId < b.StageId) return -1;
8949
- // else if (a.StageId > b.StageId) return 1;
8950
- // else return 0;
8951
- // });
8952
- let showallIndex = this.StatusAndStageList.findIndex(x => x.OrderId == -1);
8953
- this.StatusAndStageList.splice(showallIndex, 1);
8954
- let showPendingIndex = this.StatusAndStageList.findIndex(x => x.OrderId == 0);
8955
- this.StatusAndStageList.splice(showPendingIndex, 1);
8956
- }, (error) => {
8957
- var _a;
8958
- console.log(error);
8959
- Swal.fire(this.translatePipe.transform((_a = error.error) === null || _a === void 0 ? void 0 : _a.ExceptionMessage), this.translatePipe.transform(error === null || error === void 0 ? void 0 : error.message), 'error');
8960
- });
8786
+ assignDocumentTypeForEntityType(data) {
8787
+ const st = data.DocumentTypeRecId.map(x => "DocumentTypeRecId=" + x).join("&");
8788
+ let url_ = `${environment.ServerUrl}security/documenttype/entitytype/assign?${st}&MenuOrEntityRecId=${data.MenuOrEntityRecId}`;
8789
+ return this.http.post(url_, null);
8961
8790
  }
8962
- selectProcess(item) {
8963
- if (this.selectedProcess)
8964
- this.showStageDetails = false;
8965
- if (this.selectedProcess && this.selectedProcess.ProcessStage == item.StageId) {
8966
- setTimeout(() => (this.selectedProcess = null), 500);
8967
- }
8968
- else {
8969
- this.showStageDetails = true;
8970
- this.selectedProcessList = this.ProcessStageList.filter((x) => x.ProcessStage == item.StageId);
8971
- this.selectedProcess =
8972
- this.selectedProcessList[this.selectedProcessList.length - 1];
8973
- }
8791
+ unassignDocumentTypeForEntityType(data) {
8792
+ const st = data.DocumentTypeRecId.map(x => "DocumentTypeRecId=" + x).join("&");
8793
+ let url_ = `${environment.ServerUrl}security/documenttype/entitytype/unassign?${st}&MenuOrEntityRecId=${data.MenuOrEntityRecId}`;
8794
+ return this.http.post(url_, data);
8974
8795
  }
8975
- closeProcess() {
8976
- this.showStageDetails = false;
8977
- setTimeout(() => (this.selectedProcess = null), 500);
8796
+ assignDocumentTypeForEntityTypeWithBody(data, EntityTypeId) {
8797
+ let url_ = `${environment.ServerUrl}security/documenttypeformbody/entitytype/assign?MenuOrEntityRecId=${EntityTypeId}`;
8798
+ return this.http.post(url_, data);
8978
8799
  }
8979
- gridChangeTabs(data) {
8980
- this.tabDisplayView = Number(data);
8800
+ unassignDocumentTypeForEntityTypeWithBody(data, EntityTypeId) {
8801
+ let url_ = `${environment.ServerUrl}security/documenttypeformbody/entitytype/unassign?MenuOrEntityRecId=${EntityTypeId}`;
8802
+ return this.http.post(url_, data);
8981
8803
  }
8982
- loadMoreActivities() {
8983
- this.activitySearchcriteria.Pagging.PageSize += 10;
8984
- this.getActivities();
8804
+ getDocumentAssignList(Criteria, EntityRecId) {
8805
+ const url = Common.getDocumentAssignList(EntityRecId);
8806
+ return this.http.get(url);
8985
8807
  }
8986
- getActivities() {
8987
- debugger;
8988
- // let ActivityId = 5;
8989
- this.EntityTypeSetupService
8990
- .getDynamicByEntityRefrecid(this.EntityTypeRecId, this.refRecId, this.activitySearchcriteria, this.Activity)
8991
- .subscribe((res) => {
8992
- debugger;
8993
- this.ActivityType = res.Data;
8994
- if (res && res.Data)
8995
- this.ActivityTypeReadonly = [];
8996
- res.Data.forEach(x => {
8997
- this.getActivityFileUploadsReadonly(x);
8998
- });
8999
- this.setTimeline();
9000
- this.TotalActivity = res.TotalCount;
9001
- console.log('Activity', res.Data);
9002
- });
9003
- (error) => {
9004
- error.error;
9005
- };
8808
+ open() {
8809
+ this.IsPopUp = true;
9006
8810
  }
9007
- setTimeline() {
9008
- this.TimelineList = [];
9009
- this.TimelineListReadonly = [];
9010
- if (Array.isArray(this.ActivityType)) {
9011
- if (this.ActivityType.length > 0)
9012
- this.TimelineList.push(...this.ActivityType);
9013
- this.TimelineListReadonly.push(...this.ActivityType);
9014
- }
9015
- if (Array.isArray(this.ActivityTypeReadonly)) {
9016
- if (this.ActivityTypeReadonly.length > 0)
9017
- this.TimelineListReadonly.push(...this.ActivityTypeReadonly);
9018
- }
9019
- // if (Array.isArray(this.TaskList)) {
9020
- // if (this.TaskList.length > 0) this.TimelineList.push(...this.TaskList);
9021
- // }
9022
- // if (Array.isArray(this.ProcessStageList)) {
9023
- // if (this.ProcessStageList.length > 0) {
9024
- // this.ProcessStageList = this.ProcessStageList.map((x) => {
9025
- // x.Type = 'Workflow';
9026
- // x.ActivityTypeIdEn = 'Comments';
9027
- // return x;
9028
- // });
9029
- // this.TimelineList.push(...this.ProcessStageList);
9030
- // }
9031
- // }
9032
- this.TimelineList.sort((a, b) => {
9033
- if (a.CreatedDatetime < b.CreatedDatetime)
9034
- return -1;
9035
- else if (a.CreatedDatetime > b.CreatedDatetime)
9036
- return 1;
9037
- else
9038
- return 0;
9039
- });
9040
- this.TimelineListReadonly.sort((a, b) => {
9041
- if (a.CreatedDatetime < b.CreatedDatetime)
9042
- return -1;
9043
- else if (a.CreatedDatetime > b.CreatedDatetime)
9044
- return 1;
9045
- else
9046
- return 0;
9047
- });
8811
+ close() {
8812
+ this.IsPopUp = false;
9048
8813
  }
9049
- GetPageList(Criteria) {
9050
- if (this.EntityTypeId != null) {
9051
- this.storeCriteria = Criteria;
9052
- // let data: Observable<IEntityWFstageVM[]>;
9053
- this.EntityTypeSetupService.getWfInsProcessStageComments(Criteria, this.EntityTypeId, this.refRecId).subscribe((res) => {
9054
- // alert("grid data");
9055
- this.ProcessStageList = res.Data;
9056
- this.setTimeline();
9057
- console.log(res);
9058
- this.loadGrid(res.Data, res.TotalCount);
9059
- }, (error) => {
9060
- var _a;
9061
- console.log(error);
9062
- this.loadGrid([], 0);
9063
- Swal.fire(this.translatePipe.transform((_a = error.error) === null || _a === void 0 ? void 0 : _a.ExceptionMessage), this.translatePipe.transform(error === null || error === void 0 ? void 0 : error.message), 'error');
9064
- });
9065
- }
8814
+ getSideMenuData() {
8815
+ let url = environment.ServerUrl + "entitytype/productivitymenuitems";
8816
+ return this.http.get(url);
9066
8817
  }
9067
- fileChange(event) {
9068
- this.fileList = event.target.files;
8818
+ getMenuItemData(criteriastr) {
8819
+ let url = environment.ServerUrl + "security/menuitemsmap";
8820
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
9069
8821
  }
9070
- commentSubmit() {
9071
- let data = {
9072
- commnets: this.Comments,
9073
- refRecId: this.RecId,
9074
- entitytyperecid: this.EntityTypeRecId
9075
- };
9076
- // this.service.urlComments(data).subscribe(
9077
- // (x: any) => this.taskAssignData = x);
9078
- let formData = new FormData();
9079
- if (this.fileList && this.fileList.length > 0) {
9080
- let file = this.fileList[0];
9081
- formData.append('Files', file, file.name);
9082
- }
9083
- this.EntityTypeSetupService.postTaskComments(this.fileList, data).subscribe((x) => {
9084
- this.Comments = null;
9085
- this.CommentsTitle = null;
9086
- this.TaskCommentFile = null;
9087
- this.getComments();
9088
- }, (error) => error.error);
8822
+ getSingleMenuItemData(RecId) {
8823
+ let url = environment.ServerUrl + "security/menuitemsmap/" + RecId;
8824
+ return this.http.get(url);
9089
8825
  }
9090
- // commentsActivityItem:any = null;
9091
- openDefaultComments() {
9092
- this.commentsActivityItem = this.ActivityFields.filter((x) => x.ActionType == '5')[0];
9093
- // if (comments && comments.length > 0) {
9094
- // this.commentsActivityItem = null;
9095
- // setTimeout(() => (this.commentsActivityItem = comments[0]), 0);
9096
- // this.commentsActivityItem = comments[0];
9097
- // this.openPopupCreatePage(comments[0]);
9098
- // }
9099
- // else {
9100
- // this.openPopupCreatePage(this.ActivityFields[0]);
9101
- // }
8826
+ createMenuItemData(data) {
8827
+ let url = environment.ServerUrl + "security/menuitemsmap/add";
8828
+ return this.http.post(url, data);
9102
8829
  }
9103
- getWfStageAction(EntityTypeId, StageId) {
9104
- if (EntityTypeId == null)
9105
- return;
9106
- this.EntityTypeSetupService.urlGetWfStageAction(EntityTypeId, StageId).subscribe((res) => {
9107
- // res = [{"Action":10,"ActionDescription":"InProgress","StageRecId":1,"ActionComplete":null,"ProcessId":null,"StageId":1,"StageTypeId":1,"ActionRecId":1,"StageDescription":"New"}]
9108
- this.wfStageAction = res;
9109
- console.log(res);
9110
- }, (error) => {
9111
- error.error;
9112
- });
8830
+ updateMenuItemData(data) {
8831
+ let url = environment.ServerUrl + "security/menuitemsmap/update";
8832
+ return this.http.put(url, data);
9113
8833
  }
9114
- getStatusField(data) {
9115
- this.action = data.ActionRecId;
9116
- this.workflowEntityFormId = data.WorkFlowForm;
9117
- this.showWorkflowPopup = true;
9118
- this.EntityTypeSetupService.onshowWorkflowPopup.next({
9119
- showWorkflowPopup: true,
9120
- fieldConfig: [],
9121
- });
8834
+ deleteMenuItemData(RecId) {
8835
+ let url = environment.ServerUrl + "security/menuitemsmap?recIds=" + RecId;
8836
+ return this.http.delete(url);
9122
8837
  }
9123
- backToList() {
9124
- this.route.navigate(['/EntityTypeSetup/task', this.EntityTypeRecId]);
8838
+ }
8839
+ AttachmentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: AttachmentService, deps: [{ token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
8840
+ AttachmentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: AttachmentService, providedIn: 'root' });
8841
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: AttachmentService, decorators: [{
8842
+ type: Injectable,
8843
+ args: [{
8844
+ providedIn: 'root'
8845
+ }]
8846
+ }], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
8847
+ const Common = {
8848
+ getAttachmentByMenuRecId: (MenuOrEntityRecId, attachmentType) => `${environment.ServerUrl}security/documenttype/showattachement?MenuOrEntityRecId=${MenuOrEntityRecId}&attachmentType=${attachmentType}`,
8849
+ uploadAttachFile: () => `${environment.ServerUrl}security/documenttype/uploadfile`,
8850
+ getUploadFileList: (DoctypeRecId, RefRecId) => `${environment.ServerUrl}security/documenttype/uploadfilelist/${DoctypeRecId}/${RefRecId}`,
8851
+ activateUploadFile: (RecId) => `${environment.ServerUrl}security/documenttype/activefile?RecId=${RecId}`,
8852
+ inActivateUploadFile: (RecId) => `${environment.ServerUrl}security/documenttype/inactivefile?RecId=${RecId}`,
8853
+ getDocumentType: () => `${environment.ServerUrl}security/documenttype`,
8854
+ getDocumentTypeByRecId: (RecId) => `${environment.ServerUrl}security/documenttype/${RecId}`,
8855
+ deleteDocumentType: (RecId) => `${environment.ServerUrl}security/documenttype?recIds=${RecId}`,
8856
+ createDocumentType: () => `${environment.ServerUrl}security/documenttype/add`,
8857
+ updateDocumentType: () => `${environment.ServerUrl}security/documenttype/update`,
8858
+ getAttachmentSetupList: () => `${environment.ServerUrl}entitytype/productivitymenuitems`,
8859
+ getDocumentTypeAssignUnAssign: (MenuRecId) => `${environment.ServerUrl}security/documenttype/menu/assignandunassign?MenuOrEntityRecId=${MenuRecId}`,
8860
+ assignDocumentType: () => `${environment.ServerUrl}security/documenttype/menu/assign`,
8861
+ unassignDocumentType: () => `${environment.ServerUrl}security/documenttype/menu/unassign`,
8862
+ getDocumentTypeAssignUnAssignForEntityType: (EntityRecId) => `${environment.ServerUrl}security/documenttype/entitytype/assignandunassign?MenuOrEntityRecId=${EntityRecId}`,
8863
+ getDocumentAssignList: (EntityRecId) => `${environment.ServerUrl}security/documenttype/entitytype/assignandunassign?MenuOrEntityRecId=${EntityRecId}`,
8864
+ assignDocumentTypeForEntityType: () => `${environment.ServerUrl}security/documenttype/entitytype/assign`,
8865
+ unassignDocumentTypeForEntityType: () => `${environment.ServerUrl}security/documenttype/entitytype/unassign`,
8866
+ assignDocumentTypeForEntityTypewithdocumenttypeformbody: () => `${environment.ServerUrl}security/documenttype/documenttypeformbody/entitytype/assign`,
8867
+ unassignDocumentTypeForEntityTypedocumenttypeformbody: () => `${environment.ServerUrl}security/documenttype/documenttypeformbody/entitytype/unassign`,
8868
+ };
8869
+ const BaseUrl = {
8870
+ commonURL: "/api/v1/common",
8871
+ };
8872
+
8873
+ class SupportRequestCreateComponent {
8874
+ constructor(entityTypeSetup, attachmentService, router, route, supportService, globalService) {
8875
+ this.entityTypeSetup = entityTypeSetup;
8876
+ this.attachmentService = attachmentService;
8877
+ this.router = router;
8878
+ this.route = route;
8879
+ this.supportService = supportService;
8880
+ this.globalService = globalService;
8881
+ this.EntityFormId = null;
8882
+ this.EntityTypeId = null;
8883
+ this.ViewFrom = "Page";
8884
+ this.Type = "Create";
8885
+ this.FormValues = null;
8886
+ this.IssueType = null;
8887
+ this.IssueGroup = null;
8888
+ this.IssueSubGroup = null;
8889
+ this.IssueTypeEn = null;
8890
+ this.IssueGroupEn = null;
8891
+ this.IssueSubGroupEn = null;
8892
+ this.IssueTypeAr = null;
8893
+ this.IssueGroupAr = null;
8894
+ this.IssueSubGroupAr = null;
8895
+ this.Source = null;
8896
+ this.CreatedByUserType = null;
8897
+ this.Channel = null;
8898
+ this.ChannelEn = null;
8899
+ this.ChannelAr = null;
8900
+ this.RequestField = null;
8901
+ this.RequesterId = null;
8902
+ this.RequesterIdEn = null;
8903
+ this.closeCreate = new EventEmitter();
8904
+ this.ParameterData = null;
8905
+ this.DocumentList = [];
8906
+ this.createFormData = {};
8907
+ this.pageForm = {};
8908
+ this.translatePipe = new TranslatePipe(this.globalService);
9125
8909
  }
9126
- ngOnDestroy() {
9127
- this.globalService.showBackIcon = false;
8910
+ ngOnInit() {
8911
+ this.route.paramMap.subscribe((res) => {
8912
+ if (this.ViewFrom != "Popup") {
8913
+ this.EntityTypeId = Number(res.get('EntityTypeId'));
8914
+ 8;
8915
+ }
8916
+ // this.EntityTypeId = Number(res.get('EntityTypeId'));
8917
+ });
8918
+ this.getActiveEntityForm();
8919
+ this.getAssignedDocumentList();
8920
+ this.ParameterData = {
8921
+ IssueType: this.IssueType,
8922
+ IssueTypeEn: this.IssueTypeEn,
8923
+ IssueTypeAr: this.IssueTypeAr,
8924
+ IssueGroup: this.IssueGroup,
8925
+ IssueGroupEn: this.IssueGroupEn,
8926
+ IssueGroupAr: this.IssueGroupAr,
8927
+ Issue: this.IssueSubGroup,
8928
+ IssueEn: this.IssueSubGroupEn,
8929
+ IssueAr: this.IssueSubGroupAr,
8930
+ CreatedByUserType: this.CreatedByUserType,
8931
+ Source: this.Source,
8932
+ Channel: this.Channel,
8933
+ ChannelEn: this.ChannelEn,
8934
+ ChannelAr: this.ChannelAr,
8935
+ UserType: this.RequesterIdEn,
8936
+ CustomerId: this.RequesterId,
8937
+ };
9128
8938
  }
9129
- closeModelPopup() {
9130
- this.actionPopup = false;
8939
+ getActiveEntityForm() {
8940
+ this.entityTypeSetup.getActiveEntityFormByDetails(this.EntityTypeId).subscribe((res) => {
8941
+ this.EntityFormId = res.RecId;
8942
+ }, (error) => {
8943
+ console.log(error);
8944
+ });
9131
8945
  }
9132
- GetFormattedDate(_date) {
9133
- var todayTime = new Date(_date);
9134
- var month = todayTime.getMonth() + 1;
9135
- var day = todayTime.getDate();
9136
- var year = todayTime.getFullYear();
9137
- return year + "-" + month + "-" + day;
8946
+ getAssignedDocumentList() {
8947
+ this.attachmentService.getAttachmentList(this.EntityTypeId, 2).subscribe((success) => {
8948
+ this.DocumentList = success;
8949
+ this.DocumentList.map(x => {
8950
+ x.FileList = [];
8951
+ return x;
8952
+ });
8953
+ }, (error) => {
8954
+ });
9138
8955
  }
9139
- assignSubmit() {
9140
- if (this.assignmentForm.value.TargetDate != "" && this.assignmentForm.value.TargetDate != null) {
9141
- this.targetDate = this.GetFormattedDate(this.assignmentForm.value.TargetDate);
9142
- this.submitData = {
9143
- recId: this.RecId,
9144
- ActionStatus: this.actionFormActionId,
9145
- AssignedTo: this.assignmentForm.value.AssignedTo,
9146
- Description: this.assignmentForm.value.Description,
9147
- Comments: this.assignmentForm.value.Comments,
9148
- };
8956
+ docFileChange(event, item) {
8957
+ let _file = event.target.files;
8958
+ item.FileList = [];
8959
+ if (_file && _file.length > 0) {
8960
+ let _Sfile = _file;
8961
+ for (let index = 0; index < _file.length; index++) {
8962
+ let _file = {
8963
+ File: _Sfile.item(index),
8964
+ FileName: _Sfile.item(index).name
8965
+ };
8966
+ item.FileList.push(_file);
8967
+ }
8968
+ item.File = _file.item(0);
8969
+ item.FileName = _file.item(0).name;
9149
8970
  }
9150
8971
  else {
9151
- this.submitData = {
9152
- recId: this.RecId,
9153
- ActionStatus: this.actionFormActionId,
9154
- AssignedTo: this.assignmentForm.value.AssignedTo,
9155
- TargetDate: this.targetDate,
9156
- Description: this.assignmentForm.value.Description,
9157
- Comments: this.assignmentForm.value.Comments,
9158
- };
8972
+ item.FileList = [];
8973
+ item.File = null;
8974
+ item.FileName = null;
9159
8975
  }
9160
- this.taskService.TaskAssignmentUpdateStatus(this.submitData, this.EntityTypeRecId).subscribe((x) => {
9161
- this.assignmentForm.reset();
9162
- this.closeModelPopup();
9163
- this.taskService.showCommentPopup = false;
9164
- this.taskService.close();
9165
- this.getAssignmentByRefRecIdList(this.HistoryListCriteria);
9166
- // Swal.fire(x);
9167
- Swal.fire({
9168
- title: this.translatePipe.transform(x),
9169
- });
9170
- this.getTaskDetails();
9171
- this.getComments();
9172
- }, (error) => {
9173
- this.assignmentForm.reset();
9174
- this.closeModelPopup();
9175
- this.taskService.showCommentPopup = false;
9176
- this.taskService.close();
9177
- // Swal.fire(error.error);
8976
+ }
8977
+ closeCreatePage() {
8978
+ // this.router.navigate([AllRoutes.Entity.DynamicTicketList]);
8979
+ this.closeCreate.emit({ Type: "Cancel" });
8980
+ }
8981
+ submitTicketCreate() {
8982
+ let CreateData = this.createFormData;
8983
+ if (!this.pageForm.valid) {
8984
+ // Swal.fire('Fill all mandatory fields', '', 'warning');
9178
8985
  Swal.fire({
9179
- title: this.translatePipe.transform(error.error),
8986
+ title: this.translatePipe.transform('Fill all mandatory fields'),
9180
8987
  });
9181
- // alert("err");
9182
- // error.error
9183
- });
9184
- }
9185
- getAssignmentByRefRecIdList(Criteria) {
9186
- this.HistoryListCriteria = Criteria;
9187
- if (this.RecId != null) {
9188
- this.globalService.dataLoader = true;
9189
- this.taskService.assignmentbyrefrecid(Criteria, this.RecId, this.EntityTypeRecId).subscribe((x) => {
9190
- // alert("get");
9191
- this.loadGrid(x.Data, x.TotalCount);
9192
- this.globalService.dataLoader = false;
9193
- }, (error) => {
9194
- // Swal.fire(error);
9195
- // error.error
8988
+ return;
8989
+ }
8990
+ if (this.Type == "Edit") {
8991
+ if (!this.FormValues || !this.FormValues.RecId) {
8992
+ // Swal.fire("", "Form record not found", "warning");
9196
8993
  Swal.fire({
9197
- title: this.translatePipe.transform(error.error),
8994
+ title: this.translatePipe.transform('Form record not found'),
8995
+ });
8996
+ return;
8997
+ }
8998
+ CreateData.EntityTypeId = this.EntityTypeId;
8999
+ CreateData.RecId = this.FormValues.RecId;
9000
+ let _data = JSON.stringify(CreateData);
9001
+ this.entityTypeSetup.updateDynamic(_data).subscribe((res) => {
9002
+ // Swal.fire("Updated sucessfully");
9003
+ Swal.fire({
9004
+ title: this.translatePipe.transform('Updated sucessfully'),
9198
9005
  });
9006
+ this.pageForm.reset();
9007
+ this.closeCreate.emit({ Type: "Edit" });
9008
+ this.supportService.displayListPopUp = true;
9009
+ }, (error) => {
9010
+ console.log(error);
9199
9011
  });
9200
9012
  }
9201
- }
9202
- loadGrid(data, TotalRecord) {
9203
- if (data) {
9204
- if (data.length > 0)
9205
- this.gridServiceService.onGridRefresh.next({
9206
- isTrue: true,
9207
- list: data,
9208
- grid: 8,
9209
- count: data.length,
9210
- totalRecordCount: TotalRecord,
9013
+ else {
9014
+ CreateData.EntityTypeId = this.EntityTypeId;
9015
+ CreateData.IssueType = this.IssueType;
9016
+ CreateData.IssueGroup = this.IssueGroup;
9017
+ CreateData.Issue = this.IssueSubGroup;
9018
+ CreateData.Source = this.Source;
9019
+ CreateData.CreatedByUserType = this.CreatedByUserType;
9020
+ CreateData.Channel = this.Channel;
9021
+ if (this.RequestField && this.RequesterId) {
9022
+ CreateData[this.RequestField] = this.RequesterId;
9023
+ }
9024
+ let _data = JSON.stringify(CreateData);
9025
+ let checkFileMandatory = true;
9026
+ for (let index = 0; index < this.DocumentList.length; index++) {
9027
+ let doc = this.DocumentList[index];
9028
+ if (doc.IsManatory) {
9029
+ if (!(doc.FileList && doc.FileList.length > 0)) {
9030
+ checkFileMandatory = false;
9031
+ break;
9032
+ }
9033
+ }
9034
+ }
9035
+ if (!checkFileMandatory) {
9036
+ Swal.fire({
9037
+ title: this.translatePipe.transform('Attach the mandatory files'),
9211
9038
  });
9212
- else
9213
- this.gridServiceService.onGridRefresh.next({
9214
- isTrue: true,
9215
- list: [],
9216
- grid: 8,
9217
- count: 0,
9218
- totalRecordCount: 0,
9039
+ return;
9040
+ }
9041
+ let fileObj = [];
9042
+ this.DocumentList.map(x => {
9043
+ if (x.FileList && x.FileList.length > 0) {
9044
+ for (let index = 0; index < x.FileList.length; index++) {
9045
+ const element = x.FileList[index];
9046
+ let temp = { File: element.File, DoctypeRecId: x.RecId };
9047
+ fileObj.push(temp);
9048
+ }
9049
+ }
9050
+ });
9051
+ fileObj = fileObj.filter(x => (x && x.DoctypeRecId));
9052
+ const formData = new FormData();
9053
+ fileObj.forEach((f) => formData.append('fileUpload', f.File));
9054
+ this.entityTypeSetup.createDynamic(_data, formData, fileObj).subscribe((res) => {
9055
+ Swal.fire({
9056
+ title: this.translatePipe.transform('Created Successfully'),
9057
+ confirmButtonText: this.translatePipe.transform("Ok"),
9219
9058
  });
9220
- }
9221
- else
9222
- this.gridServiceService.onGridRefresh.next({
9223
- isTrue: true,
9224
- list: [],
9225
- grid: 8,
9226
- count: 0,
9227
- totalRecordCount: 0,
9059
+ this.pageForm.reset();
9060
+ this.closeCreate.emit({ Type: "Create", Data: res });
9061
+ this.supportService.displayListPopUp = true;
9062
+ // Swal.fire({
9063
+ // title: 'Created Successfully,Do you want to Continue? ',
9064
+ // showDenyButton: true,
9065
+ // showCancelButton: true,
9066
+ // denyButtonText: `Yes Go Details `,
9067
+ // cancelButtonText: `Create New`,
9068
+ // confirmButtonText: `No`,
9069
+ // }).then((result) => {
9070
+ // if (result.isConfirmed) {
9071
+ // this.pageForm.reset();
9072
+ // this.closeCreate.emit({ Type: "Create" });
9073
+ // } else if (result.isDenied) {
9074
+ // this.pageForm.reset();
9075
+ // this.router.navigate([
9076
+ // AllRoutes.Entity.DynamicTicketDetails,
9077
+ // res.RecId,
9078
+ // res.EntityTypeId,
9079
+ // ])
9080
+ // } else if (result.isDismissed) {
9081
+ // this.pageForm.reset();
9082
+ // }
9083
+ // })
9084
+ }, (error) => {
9085
+ console.log(error);
9228
9086
  });
9229
- }
9230
- getTaskAssignData() {
9231
- this.taskService.getTaskAssignData().subscribe((x) => this.taskAssignData = x);
9232
- }
9233
- submitComment(event) {
9234
- debugger;
9235
- if (event.keyCode == 13 && this.inputValue) {
9236
- this.globalService.submitComments.next({ message: this.inputValue });
9237
- this.inputValue = null;
9238
9087
  }
9239
9088
  }
9089
+ emitTicketCreateForm(CreateData, pageForm) {
9090
+ this.createFormData = CreateData;
9091
+ this.pageForm = pageForm;
9092
+ }
9240
9093
  }
9241
- SupportRequestDetailsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SupportRequestDetailsComponent, deps: [{ token: TaskService }, { token: EntityTypeSetupService }, { token: i3.FormBuilder }, { token: i2.ActivatedRoute }, { token: GridServiceService }, { token: TicketApiService }, { token: GlobalService }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Component });
9242
- SupportRequestDetailsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: SupportRequestDetailsComponent, selector: "app-support-request-details", inputs: { EntityTypeRecId: "EntityTypeRecId", RecId: "RecId", ViewFrom: "ViewFrom", IsWfAction: "IsWfAction" }, ngImport: i0, template: "<div class=\"details_sec whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n\r\n <div class=\"row \">\r\n\r\n\r\n <div class=\"col-sm-12 m-t-20 m-b-20\">\r\n <div class=\"breadcrumb-stage\">\r\n <div class=\"clearfix\">\r\n\r\n <div class=\"float-left breadcrumbs details_pages\" id=\"slide-view-list\" style=\"display: flex;width: calc(100% - 50px);\">\r\n <ng-container *ngFor=\"let item of StatusAndStageList; let i = index\">\r\n \r\n <a href=\"javascript:void(0);\"\r\n [ngClass]=\"{'active': item.StageId == selectedProcess?.ProcessStage,\r\n 'selected': item.StageId == _TaskDetail?.ProcessStage}\"\r\n (click)=\"selectProcess(item)\">\r\n <span class=\"breadcrumb__inner\">\r\n <span class=\"breadcrumb__title\">{{item.StageDescription|translate}}</span>\r\n </span>\r\n </a>\r\n </ng-container>\r\n </div>\r\n \r\n <div class=\"float-right arrow-border\">\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:13px;\" (click)=\"slider('left','slide-view-list')\"><i class=\"fa fa-arrow-left\"></i></a>\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:13px;\" (click)=\"slider('right','slide-view-list')\"><i class=\"fa fa-arrow-right\"></i></a>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"breadcrumb-action\">\r\n <span>\r\n <i class=\"la la-chevron-left\"></i>\r\n </span>\r\n <span>\r\n <i class=\"la la-chevron-right\"></i>\r\n </span>\r\n </div>\r\n\r\n <div *ngIf=\"selectedProcess && selectedProcess.ProcessStage\" class=\"breadcrumb-details animated\"\r\n [ngClass]=\"(showStageDetails)?'fadeIn':'fadeOut'\" style=\"padding: 20px;\">\r\n \r\n \r\n <div class=\"row\">\r\n <ng-container *ngFor=\"let item of selectedProcessList\">\r\n <div class=\"d-block field position-relative dynamic-view col col-12 col-sm-12 col-md-6 col-xl-6 m-b-20\">\r\n <span class=\"pull-right la la-times m-r-20\" style=\"font-size: 20px;position: absolute;right: 0;z-index: 111;\"\r\n (click)=\"closeProcess()\"></span>\r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'StageId'|translate}} </label>\r\n <span class=\"col\">: {{item.ProcessStage}} </span>\r\n </div>\r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Description'|translate}} </label>\r\n <span class=\"col\">: {{item?.ProcessStageEn}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Created User'|translate}} </label>\r\n <span class=\"col\">: {{item?.CreatedBy}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Start Date'|translate}} </label>\r\n <span class=\"col\">: {{item?.StartDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'End Date'|translate}} </label>\r\n <span class=\"col\">: {{item?.EndDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Comments'|translate}} </label>\r\n <span class=\"col\">: {{item?.Comments}} </span>\r\n </div>\r\n \r\n </div>\r\n </ng-container>\r\n </div>\r\n \r\n <div class=\"d-block field position-relative dynamic-view\" *ngIf=\"false\">\r\n <span class=\"pull-right la la-times m-r-20\" style=\"font-size: 20px;\" (click)=\"closeProcess()\"></span>\r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'StageId'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess.ProcessStage}} </span>\r\n </div>\r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Description'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.ProcessStageEn}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Created User'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.CreatedBy}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Start Date'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.StartDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'End Date'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.EndDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Comments'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.Comments}} </span>\r\n </div>\r\n \r\n </div>\r\n \r\n </div>\r\n \r\n \r\n </div>\r\n \r\n\r\n <div class=\"col col-sm-12\">\r\n\r\n\r\n <div class=\"row\">\r\n\r\n\r\n <div class=\"whole dynamic_request_details\">\r\n <div class=\"card\">\r\n\r\n\r\n <div class=\"req_page lists\" style=\"margin-bottom:unset !important;\">\r\n <div class=\"col-sm-12 user-tag p-0\">\r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"list-user-img\" src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\"\r\n >\r\n </div>\r\n <div class=\"detail-head\">{{_TaskDetail?.CreatedBy}}\r\n <span class=\"user-stage\">{{_TaskDetail?.CaseId |translate}}</span>\r\n </div>\r\n <div class=\"prioritys\">\r\n <span class=\"priority\" [ngClass]=\"_TaskDetail?.Priority_Desc\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.Priority_DescAr ? _TaskDetail?.Priority_DescAr : (_TaskDetail?.Priority_Desc |translate)) : _TaskDetail?.Priority_Desc }}\r\n <ng-container *ngIf=\"_TaskDetail.Priority_Desc == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <div class=\"status\">\r\n <span class=\"\" [ngClass]=\"_TaskDetail?.ProcessStageEn\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.ProcessStageAr ? _TaskDetail?.ProcessStageAr : (_TaskDetail?.ProcessStageEn |translate)) : _TaskDetail?.ProcessStageEn }}\r\n <ng-container *ngIf=\"_TaskDetail?.ProcessStageEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"addedDate\">\r\n <div class=\"pull-left\">{{_TaskDetail?.CreatedDatetime | date :'dd/MM/yyyy h:mm a'}}</div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"content col-sm-12 clearfix\">\r\n <h4 class=\"themecolor float-left\">{{_TaskDetail?.Subject |translate}}</h4>\r\n <p>{{_TaskDetail?.Description|translate}}</p>\r\n </div>\r\n\r\n </div>\r\n\r\n <!-- <div class=\"header\">\r\n <h2>{{_TaskDetail?.Subject |translate}}\r\n <small>\r\n \r\n <div class=\"prioritys pull-left\">\r\n <span class=\"priority\" [ngClass]=\"_TaskDetail?.Priority_Desc\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.Priority_DescAr ? _TaskDetail?.Priority_DescAr : (_TaskDetail?.Priority_Desc |translate)) : _TaskDetail?.Priority_Desc }}\r\n <ng-container *ngIf=\"_TaskDetail.Priority_Desc == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n \r\n \r\n <span class=\"pull-left m-l-5 m-r-5 header-pipe\"></span>\r\n <span class=\"pull-left m-l-5 m-r-5\">{{'ProcessStage'|translate}} :</span>\r\n <span class=\"pull-left m-l-5 m-r-5\">\r\n {{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.ProcessStageAr ? _TaskDetail?.ProcessStageAr : (_TaskDetail?.ProcessStageEn |translate)) : _TaskDetail?.ProcessStageEn }}\r\n </span>\r\n <span class=\"pull-left m-l-5 m-r-5 header-pipe\"></span>\r\n <span class=\"pull-left m-l-5 m-r-5\">{{'Requested By' | translate}}</span>\r\n <span class=\"pull-left m-l-5 m-r-5 requestor\">{{_TaskDetail?.CreatedBy}}</span>\r\n <span class=\"pull-left m-l-5 m-r-5\">\r\n {{'On' |translate }}\r\n <span class=\"m-l-5 m-r-5\">\r\n {{_TaskDetail?.CreatedDatetime | date :'dd/MM/yyyy h:mm a'}}\r\n </span>\r\n </span>\r\n </small>\r\n <div class=\"pull-right\" *ngIf=\"IsWfAction\">\r\n <div class=\"custom-dropdown\" *ngIf=\"wfStageAction.length > 0\">\r\n <div class=\"dropdown\">\r\n <button href=\"javascript:void(0)\" class=\"btn btn-primary dropbtn\">{{'Action'|translate}} <i class=\"icon icon-options-vertical m-r-5\"></i></button>\r\n <div class=\"dropdown-content\">\r\n <span *ngIf=\"wfStageAction.length <= 0\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\">\r\n {{'No Action Found'|translate}}\r\n </a>\r\n </span>\r\n <span *ngFor=\"let item of wfStageAction\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"getStatusField(item)\">{{item.ActionDescription |translate}}</a>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </h2>\r\n\r\n </div> -->\r\n <div class=\"body\">\r\n <div class=\"request-details\">\r\n\r\n <h2 class=\"stage-title\">{{'Request Details'|translate}}</h2>\r\n\r\n <app-dynamic-details-view *ngIf=\"EntityFormId && _TaskDetail && _TaskDetail.RecId\"\r\n [EntityFormId]=\"EntityFormId\" [EntityTypeId]=\"EntityTypeIdRecId\" [PageGroupValues]=\"_TaskDetail\"\r\n [ViewType]=\"'Details'\" [pageGroups]=\"EntityPageGroupsData\"\r\n [defaultPageGroups]=\"EntityDefaultPageGroupsData\">\r\n </app-dynamic-details-view>\r\n\r\n <ng-container *ngIf=\"_TaskDetail?.uploadFiles &&_TaskDetail?.uploadFiles.length >0;\">\r\n <h6 class=\"attach-title\">{{'Attachments' | translate}}</h6>\r\n <ul class=\"attached_lists\" >\r\n <li *ngFor=\"let item of _TaskDetail.uploadFiles\">\r\n <a id=\"nofile\" href=\"{{environment.ServerUrl+'ticketmaster/uploadFilesBy/downloadbyrefrecid?RecId='+item.RecId}}\" target=\"_blank\" class=\"\">\r\n <span class=\"row\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 50px;\">\r\n\r\n <ng-container [ngSwitch]=\"item.ExtSm\">\r\n <i class=\"la la-file-pdf\" *ngSwitchCase=\"'pdf'\" style=\"font-size:45px;\"></i>\r\n\r\n <i class=\"la la-file-csv\" *ngSwitchCase=\"'csv'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-excel\" *ngSwitchCase=\"'xlsx'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'png'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'svg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpeg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpg'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-alt\" *ngSwitchCase=\"'txt'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-word\" *ngSwitchCase=\"'docx'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'zip'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'rar'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-signature\" *ngSwitchCase=\"'sql'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-code\" *ngSwitchCase=\"'json'\" style=\"font-size:45px;\"></i>\r\n\r\n <i class=\"la la-file\" *ngSwitchDefault style=\"font-size:45px;\"></i>\r\n </ng-container>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name\" >\r\n <span>{{item?.Name}}</span>\r\n <span>{{item.Ext| translate}}&emsp;{{'download' | translate}}</span>\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n </ng-container>\r\n \r\n \r\n \r\n\r\n </div>\r\n \r\n\r\n\r\n </div>\r\n <div class=\"req_page lists\">\r\n <div class=\"prioritys\">\r\n <span class=\"priority\" [ngClass]=\"_TaskDetail?.Priority_Desc\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.Priority_DescAr ? _TaskDetail?.Priority_DescAr : (_TaskDetail?.Priority_Desc |translate)) : _TaskDetail?.Priority_Desc }}\r\n <ng-container *ngIf=\"_TaskDetail.Priority_Desc == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <div class=\"status\">\r\n <span class=\"\" [ngClass]=\"_TaskDetail?.ProcessStageEn\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.ProcessStageAr ? _TaskDetail?.ProcessStageAr : (_TaskDetail?.ProcessStageEn |translate)) : _TaskDetail?.ProcessStageEn }}\r\n <ng-container *ngIf=\"_TaskDetail?.ProcessStageEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"comments\">\r\n <i class=\"fa fa-comments-o\" aria-hidden=\"true\"></i> \r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-sm-12 user-tag\">\r\n \r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"comment-user-img\" src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\"\r\n >\r\n </div>\r\n <div class=\"input-comment\">\r\n <input class=\"form-control text-comment\" [(ngModel)]=\"inputValue\" type=\"text\" name=\"Comments\" id=\"Comments\" placeholder=\"Write Your Comment...\" (keyup)=\"submitComment($event)\">\r\n \r\n </div>\r\n \r\n </div>\r\n </div>\r\n\r\n <div class=\"row mt-3\">\r\n \r\n <ng-container *ngFor=\"let item of TimelineListReadonly;let i = index\">\r\n <div class=\"col-sm-12 user-tag\">\r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"comment-user-img\" src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\"\r\n >\r\n </div>\r\n <div class=\"input-comment\">\r\n <span readonly class=\"form-control text-comment\">{{item?.Comments}}\r\n <ul class=\"attached_lists p-0 m-0\" >\r\n <li *ngFor=\"let item of item.uploadFiles\">\r\n <!-- {{item?.Path}} -->\r\n <a id=\"nofile\" href=\"{{environment.ServerUrl+'ticketmaster/uploadFilesBy/downloadbyrefrecid?RecId='+item.RecId}}\" target=\"_blank\" class=\"readonly\">\r\n <span class=\"row m-0\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 50px;\">\r\n\r\n <ng-container [ngSwitch]=\"item.ExtSm\">\r\n <i class=\"la la-file-pdf\" *ngSwitchCase=\"'pdf'\" style=\"font-size:45px;\"></i>\r\n\r\n <i class=\"la la-file-csv\" *ngSwitchCase=\"'csv'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-excel\" *ngSwitchCase=\"'xlsx'\" style=\"font-size:45px;\"></i>\r\n \r\n\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'png'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'svg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'jpeg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'jpg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" /> \r\n\r\n <!--<i class=\"la la-file-image\" *ngSwitchCase=\"'png'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'svg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpeg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpg'\" style=\"font-size:45px;\"></i>-->\r\n \r\n <i class=\"la la-file-alt\" *ngSwitchCase=\"'txt'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-word\" *ngSwitchCase=\"'docx'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'zip'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'rar'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-signature\" *ngSwitchCase=\"'sql'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-code\" *ngSwitchCase=\"'json'\" style=\"font-size:45px;\"></i>\r\n\r\n <i class=\"la la-file\" *ngSwitchDefault style=\"font-size:45px;\"></i>\r\n </ng-container>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name_Readonly\" >\r\n <span>{{item?.Name}}</span>\r\n <!-- <span>{{item.Ext| translate}}&emsp;{{'download' | translate}}</span> -->\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n </span>\r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n </div>\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n <div class=\"col-sm-12 request-Conversation\">\r\n\r\n <ul class=\"nav nav-tabs\">\r\n <li class=\"nav-item\">\r\n <a class=\"nav-link active\" [ngClass]=\"{'active': tabDisplayView==1}\" (click)=\"gridChangeTabs(1)\">{{'Timeline'|translate}}</a>\r\n </li>\r\n \r\n <li class=\"nav-item\">\r\n <a class=\"nav-link\" [ngClass]=\"{'active': tabDisplayView==2}\" (click)=\"gridChangeTabs(2)\" >{{'Action List'|translate}}</a>\r\n </li>\r\n\r\n </ul>\r\n <div class=\"tab-content\" style=\"padding: 0;\">\r\n <div class=\"tab-pane animated\" [ngClass]=\"{'active': tabDisplayView==1}\" id=\"Timeline\" *ngIf=\"tabDisplayView==1\">\r\n\r\n <div class=\"card select2-drop\">\r\n \r\n <div class=\"body activity-timeline clearfix\">\r\n\r\n <ng-container *ngFor=\"let item of TimelineList;let i = index\">\r\n\r\n <div class=\" timeline-item animated fadeIn {{item.ActivityTypeIdEn}} dark\"\r\n [ngClass]=\"{ 'faster': i ==0,\r\n 'slower': i ==1,\r\n 'slow': i >1\r\n }\">\r\n\r\n <div class=\"timeline-body\" [ngClass]=\"{'fullview': item.showform}\">\r\n <span class=\"con-pointer\"></span>\r\n <h5 (click)=\"item.showform = !item.showform;item.loadForm = true;getActivityFileUploads(item)\">{{item.ActivityTypeIdEn |translate}}\r\n <span class=\"pull-right date\"><span *ngIf=\"item.ActivityTypeIdEn=='Comments'|| item.ActivityTypeIdEn=='DefaultComments'\">{{item.CreatedBy}} | </span>{{item.CreatedDatetime | date:'dd/MM/yyyy h:mm a'}}</span>\r\n </h5>\r\n <div class=\"msg p-3 bg-white\" *ngIf=\"item.loadForm\" [ngClass]=\"{'d-none': !item.showform}\">\r\n\r\n <span class=\"pull-right\" (click)=\"openTaskDetailView(item)\"\r\n *ngIf=\"item.ActivityTypeIdEn=='Task' && item.RecId\">\r\n <i class=\"la la-external-link color-pomegranate\" style=\"font-size: 20px;\"></i></span>\r\n\r\n\r\n <ng-container *ngIf=\"item.ActivityTypeId\">\r\n\r\n <app-activities-view [EntityTypeId]=\"item.ActivityTypeId\" [RefTypeId]=\"refRecId\"\r\n [ActivityTypeId]=\"item.ActivityTypeId\" [FormData]=\"item\">\r\n </app-activities-view>\r\n\r\n <ng-container *ngIf=\"item?.uploadFiles &&item?.uploadFiles.length >0;\">\r\n <h6 class=\"attach-title\">{{'Attachments'|translate}} \r\n <!-- <i (click)=\"attachMethod()\" class=\"fa fa-paperclip themecolor ml-1\"></i> -->\r\n </h6>\r\n <ul class=\"attached_lists\" >\r\n <li *ngFor=\"let item of item.uploadFiles\">\r\n <!-- {{item?.Path}} -->\r\n <a id=\"nofile\" href=\"{{environment.ServerUrl+'ticketmaster/uploadFilesBy/downloadbyrefrecid?RecId='+item.RecId}}\" target=\"_blank\" class=\"\">\r\n <span class=\"row m-0\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 50px;\">\r\n \r\n <ng-container [ngSwitch]=\"item.ExtSm\">\r\n <i class=\"la la-file-pdf\" *ngSwitchCase=\"'pdf'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-csv\" *ngSwitchCase=\"'csv'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-excel\" *ngSwitchCase=\"'xlsx'\" style=\"font-size:45px;\"></i>\r\n \r\n \r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'png'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'svg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'jpeg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'jpg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" /> \r\n \r\n <!--<i class=\"la la-file-image\" *ngSwitchCase=\"'png'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'svg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpeg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpg'\" style=\"font-size:45px;\"></i>-->\r\n \r\n <i class=\"la la-file-alt\" *ngSwitchCase=\"'txt'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-word\" *ngSwitchCase=\"'docx'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'zip'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'rar'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-signature\" *ngSwitchCase=\"'sql'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-code\" *ngSwitchCase=\"'json'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file\" *ngSwitchDefault style=\"font-size:45px;\"></i>\r\n </ng-container>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name\" >\r\n <span>{{item?.Name}}</span>\r\n <span>{{item.Ext| translate}}&emsp;{{'download' | translate}}</span>\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n </ng-container>\r\n \r\n\r\n </ng-container>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n </ng-container>\r\n\r\n\r\n <div class=\"activity-loadmore text-center p-3\" *ngIf=\"TotalActivity > ActivityType.length\">\r\n <a href=\"javascript:void(0);\" class=\"load-more bg-themecolor color-white\"\r\n (click)=\"loadMoreActivities()\">\r\n {{'Load more'|translate}} <i class=\"la la-angle-double-down m-r-10 m-l-10\"></i> </a>\r\n </div>\r\n\r\n \r\n <div class=\"activity-create m-t-20\" *ngIf=\"commentsActivityItem && commentsActivityItem.RecId\">\r\n\r\n <div class=\"header clearfix\">\r\n <h2 class=\"pull-left\" style=\"color: #17191c;\">\r\n <i class=\"fa fa-comments-o m-r-10\"></i>\r\n {{'Comments'|translate}}</h2>\r\n\r\n </div>\r\n\r\n <ng-container>\r\n <app-activities-create [ViewFrom]=\"'Popup'\" [RefEntityTypeId]=\"EntityTypeId\"\r\n [EntityTypeId]=\"commentsActivityItem.RecId\" [RefTypeId]=\"refRecId\"\r\n [ActivityTypeId]=\"commentsActivityItem.RecId\" [IsHideCancelBtn]=\"true\"\r\n (closeActivityCreate)=\"closePopupCreateView($event.Type)\">\r\n </app-activities-create>\r\n </ng-container>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n </div>\r\n\r\n </div>\r\n\r\n <div class=\"tab-pane animated\" [ngClass]=\"{'active': tabDisplayView==2}\" id=\"ActionList\" >\r\n \r\n <div class=\"card select2-drop process_stage\">\r\n <app-grid [columnDefs]=\"columnDefs\"\r\n [GridTitle]=\"pageTitle\"\r\n [GridDescription]=\"pageDesp\"\r\n [columnDefs]=\"columnDefs\"\r\n [gridActionList]=\"gridActionList\"\r\n [selectMode]=\"selectMode\"\r\n [IsCreate]=\"isCreate\"\r\n [IsDelete]=\"isDelete\"\r\n [IsEdit]=\"isEdit\"\r\n [grid]=\"8\"\r\n (getPageList)=\"GetPageList($event.Criteria)\">\r\n </app-grid>\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n\r\n\r\n </div>\r\n\r\n <ng-container *ngIf=\"showWorkflowPopup\">\r\n\r\n <app-workflow-dynamic-popup [showWorkflowPopups]=\"showWorkflowPopup\"\r\n [EntityTypeId]=\"EntityTypeId\"\r\n [EntityFormId]=\"workflowEntityFormId\"\r\n [PageGroupValues]=\"_TaskDetail\"\r\n (getWorkflowActionComments)=\"getWorkflowActionComments($event.comments, $event.updateFileds, $event.updateFieldsObject)\">\r\n </app-workflow-dynamic-popup>\r\n </ng-container>\r\n</div>\r\n", styles: [".draghandle{position:absolute;z-index:100;top:0;bottom:0;right:0;float:right;border:1px solid #827d7d;background:#827d7d}.sidebar-left{width:1100px;float:left;box-shadow:-5px 0 #f7f7f7 inset}.wrapper #mainArea.content{margin-left:1100px}.activity-timeline .timeline-item.green,.activity-type .activity-item.green{color:#86c541}.activity-timeline .timeline-item.blue,.activity-type .activity-item.blue{color:#1d8ecd}.activity-timeline .timeline-item.warning,.activity-type .activity-item.warning{color:#f5a81d}.activity-timeline .timeline-item.danger,.activity-type .activity-item.danger{color:#ee2558}.activity-timeline .timeline-item.dark,.activity-type .activity-item.dark{color:#17191c}.activity-timeline .timeline-item.pomegranate,.activity-type .activity-item.pomegranate{color:#d35400!important}.activity-timeline .timeline-item{padding:15px 35px}.activity-timeline .timeline-item .msg{color:#000;margin:15px 0 10px}.activity-timeline .timeline-item:after{width:36px;height:36px;position:absolute;text-align:center;left:-18px;border-radius:100px;font-size:15px;font-weight:700;border:2px solid;border:none;padding:0;height:auto;top:25px;font: 14px/1 FontAwesome;content:\"\\f0e6\"}.activity-timeline .timeline-item.Email:after{content:\"\\e086\"}.activity-timeline .timeline-item.SMS:after{content:\"\\e04a\"}.activity-timeline .timeline-item.Notes:after{content:\"\\e04c\"}.activity-timeline .timeline-item.Comments:after{content:\"\\f0e6\"}.activity-timeline .timeline-item.Task:after{content:\"\\e067\"}.activity-timeline .timeline-item .timeline-body{padding:7px;border:1px solid #e1e2e1;position:relative;height:37px;background-color:#fafafa;margin-bottom:6px;border-radius:5px}.activity-timeline .timeline-item .timeline-body h5{cursor:pointer;font-size:15px;font-weight:400}.activity-timeline .timeline-item .timeline-body h5 .date{margin:0 10px;font-style:italic;font-size:small;font-weight:400}.activity-timeline .timeline-item .timeline-body.fullview{height:auto}.con-pointer{width:11px;height:11px;transform:rotate(45deg);position:absolute;top:11px;border:1px solid;left:-6.5px;border-width:0 0 1px 1px;background-position:-182px -292px;background-color:#fafafa;border-color:#e1e2e1}.activity-type{border-top:1px solid #ddd;margin-top:20px;background-color:#fff;padding:10px 0 0}.activity-type ul{list-style-type:none;padding:0}.activity-type ul li{padding:10px}.activity-type ul li .activity-item{font-size:16px;padding:10px 20px 25px;width:100%;border-radius:10px;display:inline-block;transition:all .2s ease-in-out;border:1px solid #fff}.activity-type ul li .activity-item i{margin-right:10px}.activity-type ul li .activity-item:hover{background:#fafafa;border:1px solid #ddd}.activity-type ul li.activity-select{margin-bottom:-10px}.activity-type ul li.activity-select .activity-item{border:1px solid #ddd;background-color:#fafafa}.activity-create{border-top:1px solid #ddd}.activity-type ul{width:100%;padding:0 10px;margin:0 0 -20px}.activity-type ul li{float:left}.breadcrumbs.details_pages{margin-bottom:0;border-radius:0}.breadcrumb-details{background:#fff;padding:20px 0;border:1px solid #0a6531;border:1px solid #ddd;border-top:none}.attached_lists li{display:block;width:100%;margin-top:10px}.attached_lists li a{border-radius:5px;border:1px solid #ddd;width:100%;display:inline-block;padding:7px;text-decoration:none;color:#000}.attached_lists li a .attached_lists_name span:first-child{font-weight:600;display:block;margin-bottom:5px}.attached_lists li a .attached_lists_name_Readonly{display:flex}.attached_lists li a .attached_lists_name_Readonly span:first-child{font-weight:600;margin-top:12px}.readonly{border:unset!important}.form-comments{margin-left:30px;margin-right:89px}.custom-dropdown .dropdown-content{display:none;position:absolute;background-color:#f9f9f9;min-width:160px;box-shadow:0 8px 16px #0003;z-index:1}.custom-dropdown .dropdown-content a{color:#000;padding:6px 8px;text-decoration:none;font-size:15px;display:block;text-align:left}.custom-dropdown .dropdown-content a:hover{background-color:#f1f1f1}.custom-dropdown .dropdown:hover .dropdown-content{display:block}.lang_Arabic .pull-right{float:left!important}.lang_Arabic .pull-left{float:right!important}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i4.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i4.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: WorkflowDynamicPopupComponent, selector: "app-workflow-dynamic-popup", inputs: ["currentStage", "ProcessId", "showWorkflowPopups", "isUpdateFields", "pageForm", "columnDefs", "caller", "EntityFormId", "EntityTypeId", "PageGroupValues"], outputs: ["getWorkflowActionComments"] }, { kind: "component", type: DynamicDetailsViewComponent, selector: "app-dynamic-details-view", inputs: ["ViewType", "EntityTypeId", "EntityFormId", "pageGroups", "defaultPageGroups", "PageGroupValues"] }, { kind: "component", type: ActivitiesCreateComponent, selector: "app-activities-create", inputs: ["IsHideCancelBtn", "EntityFormId", "EntityTypeId", "ActivityTypeId", "RefEntityTypeId", "RefTypeId", "ViewFrom", "ViewAction"], outputs: ["closeActivityCreate"] }, { kind: "component", type: ActivitiesViewComponent, selector: "app-activities-view", inputs: ["EntityFormId", "EntityTypeId", "ActivityTypeId", "RefTypeId", "FormData"] }, { kind: "component", type: GridComponent, selector: "app-grid", inputs: ["grid", "GridTitle", "InnerGridTitle", "GridDescription", "selectMode", "gridSelectOptions", "gridActionList", "gridActionStatus", "gridCurrentStatus", "IsGridActionList", "IsGridActionForm", "columnDefs", "InnerColumnDefs", "gridSelectOption", "IsCreate", "IsEdit", "IsDelete", "IsSorting", "IsRefresh", "IsSearch", "IsthSize", "IsActive", "IsDuplicate", "RowInsideGrid", "IsDetails", "IsBack", "IsAttach", "IsDynamicListpage", "IsAssign", "IsInnerGrid", "IsShowDetailsGo", "IsExport", "IsTicketGroupAssign", "GridSearchType", "IsClientPagination", "IsCategorySetupView", "IsInnerGridCreate", "IsInnerGridEdit", "IsInnerGridDelete", "IsHidden", "gridData", "GridDynamicExportData", "IsDynamicExport"], outputs: ["getGridAction", "getGridStatusAction", "getGridCheckedData", "openCreatePopup", "getPageList", "getInnerPageList", "goToDetails", "goToAction", "callButtonEvent", "callIconEvent", "callOnOffEvent", "copyTextEvent", "gridSelectOptionsData", "assignmentMethod", "ticketGroupAssignmentMethod", "attachMethod", "gotoBackToList", "editMethod", "ActiveMethod", "DuplicateMethod", "rowInsideMethod", "deleteMethod", "multipleDeleteMethod", "GetDetailsList", "GetListView", "categorySetupView", "openCreatePopupInnerGrid", "editMethodInnerGrid", "deleteMethodInnerGrid"] }, { kind: "pipe", type: i4.DatePipe, name: "date" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
9243
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SupportRequestDetailsComponent, decorators: [{
9094
+ SupportRequestCreateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SupportRequestCreateComponent, deps: [{ token: EntityTypeSetupService }, { token: AttachmentService }, { token: i2.Router }, { token: i2.ActivatedRoute }, { token: SupportRequestService }, { token: GlobalService }], target: i0.ɵɵFactoryTarget.Component });
9095
+ SupportRequestCreateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: SupportRequestCreateComponent, selector: "app-support-request-create", inputs: { EntityFormId: "EntityFormId", EntityTypeId: "EntityTypeId", ViewFrom: "ViewFrom", Type: "Type", FormValues: "FormValues", IssueType: "IssueType", IssueGroup: "IssueGroup", IssueSubGroup: "IssueSubGroup", IssueTypeEn: "IssueTypeEn", IssueGroupEn: "IssueGroupEn", IssueSubGroupEn: "IssueSubGroupEn", IssueTypeAr: "IssueTypeAr", IssueGroupAr: "IssueGroupAr", IssueSubGroupAr: "IssueSubGroupAr", Source: "Source", CreatedByUserType: "CreatedByUserType", Channel: "Channel", ChannelEn: "ChannelEn", ChannelAr: "ChannelAr", RequestField: "RequestField", RequesterId: "RequesterId", RequesterIdEn: "RequesterIdEn" }, outputs: { closeCreate: "closeCreate" }, ngImport: i0, template: "\r\n\r\n<div class=\"row \">\r\n\r\n <div class=\"col col-sm-12\">\r\n\r\n <div class=\"row\">\r\n <div class=\"whole dynamic_request_details\">\r\n <div class=\"card\">\r\n\r\n <!-- <div class=\"header\" style=\"border-bottom: 1px solid #ddd;\">\r\n <h2>\r\n {{Type=='Edit'?'Edit Request':'New Request Create'}}\r\n </h2>\r\n \r\n </div> -->\r\n\r\n <div class=\"body padding-0\">\r\n <div class=\"request-create\" >\r\n\r\n\r\n <ng-container *ngIf=\"EntityFormId \">\r\n <app-entity-dynamic-view [ParameterData]=\"ParameterData\"\r\n [RequestorField] =\"RequestField\" [RequestorFieldValue]=\"RequesterId\"\r\n [EntityFormId]=\"EntityFormId\" [PageGroupValues]=\"FormValues\" [ViewFrom]=\"'Details'\" [Type]=\"Type\"\r\n (submitFormValue)=\"emitTicketCreateForm($event.formdata,$event.pageForm)\"></app-entity-dynamic-view>\r\n </ng-container>\r\n\r\n <hr>\r\n\r\n <div class=\"m-b-20\" *ngIf=\"DocumentList && DocumentList.length > 0\">\r\n \r\n <h6 class=\"m-b-20\">{{'Files'|translate}} :</h6>\r\n\r\n\r\n <ul class=\"attached_lists\" >\r\n <li *ngFor=\"let doc of DocumentList\">\r\n <a class=\"\" [ngClass]=\"{'border-red': doc.IsManatory && !(doc.FileName) }\" >\r\n <span class=\"row m-0\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 65px;\">\r\n <button class=\"btn btn-outline attach-file-btn\" \r\n [ngClass]=\"{'btn-outline-danger':!(doc.FileName),'btn-success':doc.FileName }\">\r\n <i class=\"la la-upload\" style=\"font-size:25px;\"></i>\r\n <input class=\"attach-file\" type=\"file\" id=\"file_{{doc.RecId}}\" multiple (change)=\"docFileChange($event,doc)\" [(ngModel)]=\"doc.File\"\r\n [ngModelOptions]=\"{standalone: true}\">\r\n </button>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name\">\r\n <span [ngClass]=\"{'red': doc.IsManatory && !(doc.FileName) }\">\r\n {{ globalService.CurrentLanguage == 'Ar' ? (doc.DocumentNameAr ? doc.DocumentNameAr : (doc.DocumentName | translate)) :doc.DocumentName}}\r\n <!-- {{doc.DocumentName | translate}} -->\r\n <code class=\"red\" *ngIf=\"doc.IsManatory\">*</code></span>\r\n \r\n <ng-container *ngIf=\"doc.FileList.length >0; else elseTemplate\">\r\n <span class=\"themecolor\">{{doc.FileList.length}} {{'Files are selected' | translate }}</span>\r\n <br>\r\n <ng-container *ngFor=\"let _file of doc.FileList\">\r\n <span class=\"themecolor\">{{_file.FileName}}</span><br>\r\n </ng-container>\r\n \r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <span class=\"red\">{{'Files are not selected' | translate }}</span>\r\n </ng-template>\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n\r\n\r\n \r\n </div>\r\n\r\n <div class=\"text-center pull-right\">\r\n\r\n\r\n <button class=\"formcancelbtn btn btn-small m-l-5 m-r-5\" (click)=\"closeCreatePage()\">\r\n {{'Cancel'|translate}}\r\n </button>\r\n\r\n <button class=\"formsubmitbtn btn btn-small btn-theme m-l-5 m-r-5\" (click)=\"submitTicketCreate()\" style=\"color: #fff;font-weight: 600;\">\r\n {{Type=='Edit'?'Update Request':'Submit'|translate}} \r\n </button>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n </div>\r\n \r\n </div>\r\n\r\n </div>\r\n\r\n\r\n</div>\r\n\r\n\r\n", styles: [".attached_lists li{display:block;width:100%;margin-top:10px}.attached_lists li a{border-radius:5px;border:1px solid #ddd;width:100%;display:inline-block;padding:7px;text-decoration:none;color:#000}.attached_lists li a .attached_lists_name span:first-child{font-weight:600;display:block;margin-bottom:5px}.attach-file-btn{width:50px;height:40px;margin:0 5px;overflow:hidden;position:relative}.attach-file-btn .attach-file{position:absolute;left:0;top:0;bottom:0;right:0;width:100%;opacity:0;z-index:32}.formcancelbtn{padding-left:15px;padding-right:15px;border-radius:20px;min-width:50px;border:1px solid #c4cbcb}.formsubmitbtn{padding-left:15px;padding-right:15px;border-radius:20px;min-width:50px}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: EntityDynamicViewComponent, selector: "app-entity-dynamic-view", inputs: ["RequestorField", "RequestorFieldValue", "EntityFormId", "Type", "ViewFrom", "ModalSize", "PageGroupValues", "ParameterData"], outputs: ["closeDynamicViewPopup", "submitFormValue"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
9096
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SupportRequestCreateComponent, decorators: [{
9244
9097
  type: Component,
9245
- args: [{ selector: 'app-support-request-details', template: "<div class=\"details_sec whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n\r\n <div class=\"row \">\r\n\r\n\r\n <div class=\"col-sm-12 m-t-20 m-b-20\">\r\n <div class=\"breadcrumb-stage\">\r\n <div class=\"clearfix\">\r\n\r\n <div class=\"float-left breadcrumbs details_pages\" id=\"slide-view-list\" style=\"display: flex;width: calc(100% - 50px);\">\r\n <ng-container *ngFor=\"let item of StatusAndStageList; let i = index\">\r\n \r\n <a href=\"javascript:void(0);\"\r\n [ngClass]=\"{'active': item.StageId == selectedProcess?.ProcessStage,\r\n 'selected': item.StageId == _TaskDetail?.ProcessStage}\"\r\n (click)=\"selectProcess(item)\">\r\n <span class=\"breadcrumb__inner\">\r\n <span class=\"breadcrumb__title\">{{item.StageDescription|translate}}</span>\r\n </span>\r\n </a>\r\n </ng-container>\r\n </div>\r\n \r\n <div class=\"float-right arrow-border\">\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:13px;\" (click)=\"slider('left','slide-view-list')\"><i class=\"fa fa-arrow-left\"></i></a>\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:13px;\" (click)=\"slider('right','slide-view-list')\"><i class=\"fa fa-arrow-right\"></i></a>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"breadcrumb-action\">\r\n <span>\r\n <i class=\"la la-chevron-left\"></i>\r\n </span>\r\n <span>\r\n <i class=\"la la-chevron-right\"></i>\r\n </span>\r\n </div>\r\n\r\n <div *ngIf=\"selectedProcess && selectedProcess.ProcessStage\" class=\"breadcrumb-details animated\"\r\n [ngClass]=\"(showStageDetails)?'fadeIn':'fadeOut'\" style=\"padding: 20px;\">\r\n \r\n \r\n <div class=\"row\">\r\n <ng-container *ngFor=\"let item of selectedProcessList\">\r\n <div class=\"d-block field position-relative dynamic-view col col-12 col-sm-12 col-md-6 col-xl-6 m-b-20\">\r\n <span class=\"pull-right la la-times m-r-20\" style=\"font-size: 20px;position: absolute;right: 0;z-index: 111;\"\r\n (click)=\"closeProcess()\"></span>\r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'StageId'|translate}} </label>\r\n <span class=\"col\">: {{item.ProcessStage}} </span>\r\n </div>\r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Description'|translate}} </label>\r\n <span class=\"col\">: {{item?.ProcessStageEn}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Created User'|translate}} </label>\r\n <span class=\"col\">: {{item?.CreatedBy}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Start Date'|translate}} </label>\r\n <span class=\"col\">: {{item?.StartDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'End Date'|translate}} </label>\r\n <span class=\"col\">: {{item?.EndDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Comments'|translate}} </label>\r\n <span class=\"col\">: {{item?.Comments}} </span>\r\n </div>\r\n \r\n </div>\r\n </ng-container>\r\n </div>\r\n \r\n <div class=\"d-block field position-relative dynamic-view\" *ngIf=\"false\">\r\n <span class=\"pull-right la la-times m-r-20\" style=\"font-size: 20px;\" (click)=\"closeProcess()\"></span>\r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'StageId'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess.ProcessStage}} </span>\r\n </div>\r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Description'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.ProcessStageEn}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Created User'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.CreatedBy}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Start Date'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.StartDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'End Date'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.EndDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Comments'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.Comments}} </span>\r\n </div>\r\n \r\n </div>\r\n \r\n </div>\r\n \r\n \r\n </div>\r\n \r\n\r\n <div class=\"col col-sm-12\">\r\n\r\n\r\n <div class=\"row\">\r\n\r\n\r\n <div class=\"whole dynamic_request_details\">\r\n <div class=\"card\">\r\n\r\n\r\n <div class=\"req_page lists\" style=\"margin-bottom:unset !important;\">\r\n <div class=\"col-sm-12 user-tag p-0\">\r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"list-user-img\" src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\"\r\n >\r\n </div>\r\n <div class=\"detail-head\">{{_TaskDetail?.CreatedBy}}\r\n <span class=\"user-stage\">{{_TaskDetail?.CaseId |translate}}</span>\r\n </div>\r\n <div class=\"prioritys\">\r\n <span class=\"priority\" [ngClass]=\"_TaskDetail?.Priority_Desc\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.Priority_DescAr ? _TaskDetail?.Priority_DescAr : (_TaskDetail?.Priority_Desc |translate)) : _TaskDetail?.Priority_Desc }}\r\n <ng-container *ngIf=\"_TaskDetail.Priority_Desc == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <div class=\"status\">\r\n <span class=\"\" [ngClass]=\"_TaskDetail?.ProcessStageEn\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.ProcessStageAr ? _TaskDetail?.ProcessStageAr : (_TaskDetail?.ProcessStageEn |translate)) : _TaskDetail?.ProcessStageEn }}\r\n <ng-container *ngIf=\"_TaskDetail?.ProcessStageEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"addedDate\">\r\n <div class=\"pull-left\">{{_TaskDetail?.CreatedDatetime | date :'dd/MM/yyyy h:mm a'}}</div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"content col-sm-12 clearfix\">\r\n <h4 class=\"themecolor float-left\">{{_TaskDetail?.Subject |translate}}</h4>\r\n <p>{{_TaskDetail?.Description|translate}}</p>\r\n </div>\r\n\r\n </div>\r\n\r\n <!-- <div class=\"header\">\r\n <h2>{{_TaskDetail?.Subject |translate}}\r\n <small>\r\n \r\n <div class=\"prioritys pull-left\">\r\n <span class=\"priority\" [ngClass]=\"_TaskDetail?.Priority_Desc\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.Priority_DescAr ? _TaskDetail?.Priority_DescAr : (_TaskDetail?.Priority_Desc |translate)) : _TaskDetail?.Priority_Desc }}\r\n <ng-container *ngIf=\"_TaskDetail.Priority_Desc == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n \r\n \r\n <span class=\"pull-left m-l-5 m-r-5 header-pipe\"></span>\r\n <span class=\"pull-left m-l-5 m-r-5\">{{'ProcessStage'|translate}} :</span>\r\n <span class=\"pull-left m-l-5 m-r-5\">\r\n {{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.ProcessStageAr ? _TaskDetail?.ProcessStageAr : (_TaskDetail?.ProcessStageEn |translate)) : _TaskDetail?.ProcessStageEn }}\r\n </span>\r\n <span class=\"pull-left m-l-5 m-r-5 header-pipe\"></span>\r\n <span class=\"pull-left m-l-5 m-r-5\">{{'Requested By' | translate}}</span>\r\n <span class=\"pull-left m-l-5 m-r-5 requestor\">{{_TaskDetail?.CreatedBy}}</span>\r\n <span class=\"pull-left m-l-5 m-r-5\">\r\n {{'On' |translate }}\r\n <span class=\"m-l-5 m-r-5\">\r\n {{_TaskDetail?.CreatedDatetime | date :'dd/MM/yyyy h:mm a'}}\r\n </span>\r\n </span>\r\n </small>\r\n <div class=\"pull-right\" *ngIf=\"IsWfAction\">\r\n <div class=\"custom-dropdown\" *ngIf=\"wfStageAction.length > 0\">\r\n <div class=\"dropdown\">\r\n <button href=\"javascript:void(0)\" class=\"btn btn-primary dropbtn\">{{'Action'|translate}} <i class=\"icon icon-options-vertical m-r-5\"></i></button>\r\n <div class=\"dropdown-content\">\r\n <span *ngIf=\"wfStageAction.length <= 0\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\">\r\n {{'No Action Found'|translate}}\r\n </a>\r\n </span>\r\n <span *ngFor=\"let item of wfStageAction\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"getStatusField(item)\">{{item.ActionDescription |translate}}</a>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </h2>\r\n\r\n </div> -->\r\n <div class=\"body\">\r\n <div class=\"request-details\">\r\n\r\n <h2 class=\"stage-title\">{{'Request Details'|translate}}</h2>\r\n\r\n <app-dynamic-details-view *ngIf=\"EntityFormId && _TaskDetail && _TaskDetail.RecId\"\r\n [EntityFormId]=\"EntityFormId\" [EntityTypeId]=\"EntityTypeIdRecId\" [PageGroupValues]=\"_TaskDetail\"\r\n [ViewType]=\"'Details'\" [pageGroups]=\"EntityPageGroupsData\"\r\n [defaultPageGroups]=\"EntityDefaultPageGroupsData\">\r\n </app-dynamic-details-view>\r\n\r\n <ng-container *ngIf=\"_TaskDetail?.uploadFiles &&_TaskDetail?.uploadFiles.length >0;\">\r\n <h6 class=\"attach-title\">{{'Attachments' | translate}}</h6>\r\n <ul class=\"attached_lists\" >\r\n <li *ngFor=\"let item of _TaskDetail.uploadFiles\">\r\n <a id=\"nofile\" href=\"{{environment.ServerUrl+'ticketmaster/uploadFilesBy/downloadbyrefrecid?RecId='+item.RecId}}\" target=\"_blank\" class=\"\">\r\n <span class=\"row\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 50px;\">\r\n\r\n <ng-container [ngSwitch]=\"item.ExtSm\">\r\n <i class=\"la la-file-pdf\" *ngSwitchCase=\"'pdf'\" style=\"font-size:45px;\"></i>\r\n\r\n <i class=\"la la-file-csv\" *ngSwitchCase=\"'csv'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-excel\" *ngSwitchCase=\"'xlsx'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'png'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'svg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpeg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpg'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-alt\" *ngSwitchCase=\"'txt'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-word\" *ngSwitchCase=\"'docx'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'zip'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'rar'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-signature\" *ngSwitchCase=\"'sql'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-code\" *ngSwitchCase=\"'json'\" style=\"font-size:45px;\"></i>\r\n\r\n <i class=\"la la-file\" *ngSwitchDefault style=\"font-size:45px;\"></i>\r\n </ng-container>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name\" >\r\n <span>{{item?.Name}}</span>\r\n <span>{{item.Ext| translate}}&emsp;{{'download' | translate}}</span>\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n </ng-container>\r\n \r\n \r\n \r\n\r\n </div>\r\n \r\n\r\n\r\n </div>\r\n <div class=\"req_page lists\">\r\n <div class=\"prioritys\">\r\n <span class=\"priority\" [ngClass]=\"_TaskDetail?.Priority_Desc\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.Priority_DescAr ? _TaskDetail?.Priority_DescAr : (_TaskDetail?.Priority_Desc |translate)) : _TaskDetail?.Priority_Desc }}\r\n <ng-container *ngIf=\"_TaskDetail.Priority_Desc == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <div class=\"status\">\r\n <span class=\"\" [ngClass]=\"_TaskDetail?.ProcessStageEn\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.ProcessStageAr ? _TaskDetail?.ProcessStageAr : (_TaskDetail?.ProcessStageEn |translate)) : _TaskDetail?.ProcessStageEn }}\r\n <ng-container *ngIf=\"_TaskDetail?.ProcessStageEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"comments\">\r\n <i class=\"fa fa-comments-o\" aria-hidden=\"true\"></i> \r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-sm-12 user-tag\">\r\n \r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"comment-user-img\" src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\"\r\n >\r\n </div>\r\n <div class=\"input-comment\">\r\n <input class=\"form-control text-comment\" [(ngModel)]=\"inputValue\" type=\"text\" name=\"Comments\" id=\"Comments\" placeholder=\"Write Your Comment...\" (keyup)=\"submitComment($event)\">\r\n \r\n </div>\r\n \r\n </div>\r\n </div>\r\n\r\n <div class=\"row mt-3\">\r\n \r\n <ng-container *ngFor=\"let item of TimelineListReadonly;let i = index\">\r\n <div class=\"col-sm-12 user-tag\">\r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"comment-user-img\" src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\"\r\n >\r\n </div>\r\n <div class=\"input-comment\">\r\n <span readonly class=\"form-control text-comment\">{{item?.Comments}}\r\n <ul class=\"attached_lists p-0 m-0\" >\r\n <li *ngFor=\"let item of item.uploadFiles\">\r\n <!-- {{item?.Path}} -->\r\n <a id=\"nofile\" href=\"{{environment.ServerUrl+'ticketmaster/uploadFilesBy/downloadbyrefrecid?RecId='+item.RecId}}\" target=\"_blank\" class=\"readonly\">\r\n <span class=\"row m-0\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 50px;\">\r\n\r\n <ng-container [ngSwitch]=\"item.ExtSm\">\r\n <i class=\"la la-file-pdf\" *ngSwitchCase=\"'pdf'\" style=\"font-size:45px;\"></i>\r\n\r\n <i class=\"la la-file-csv\" *ngSwitchCase=\"'csv'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-excel\" *ngSwitchCase=\"'xlsx'\" style=\"font-size:45px;\"></i>\r\n \r\n\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'png'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'svg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'jpeg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'jpg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" /> \r\n\r\n <!--<i class=\"la la-file-image\" *ngSwitchCase=\"'png'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'svg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpeg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpg'\" style=\"font-size:45px;\"></i>-->\r\n \r\n <i class=\"la la-file-alt\" *ngSwitchCase=\"'txt'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-word\" *ngSwitchCase=\"'docx'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'zip'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'rar'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-signature\" *ngSwitchCase=\"'sql'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-code\" *ngSwitchCase=\"'json'\" style=\"font-size:45px;\"></i>\r\n\r\n <i class=\"la la-file\" *ngSwitchDefault style=\"font-size:45px;\"></i>\r\n </ng-container>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name_Readonly\" >\r\n <span>{{item?.Name}}</span>\r\n <!-- <span>{{item.Ext| translate}}&emsp;{{'download' | translate}}</span> -->\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n </span>\r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n </div>\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n <div class=\"col-sm-12 request-Conversation\">\r\n\r\n <ul class=\"nav nav-tabs\">\r\n <li class=\"nav-item\">\r\n <a class=\"nav-link active\" [ngClass]=\"{'active': tabDisplayView==1}\" (click)=\"gridChangeTabs(1)\">{{'Timeline'|translate}}</a>\r\n </li>\r\n \r\n <li class=\"nav-item\">\r\n <a class=\"nav-link\" [ngClass]=\"{'active': tabDisplayView==2}\" (click)=\"gridChangeTabs(2)\" >{{'Action List'|translate}}</a>\r\n </li>\r\n\r\n </ul>\r\n <div class=\"tab-content\" style=\"padding: 0;\">\r\n <div class=\"tab-pane animated\" [ngClass]=\"{'active': tabDisplayView==1}\" id=\"Timeline\" *ngIf=\"tabDisplayView==1\">\r\n\r\n <div class=\"card select2-drop\">\r\n \r\n <div class=\"body activity-timeline clearfix\">\r\n\r\n <ng-container *ngFor=\"let item of TimelineList;let i = index\">\r\n\r\n <div class=\" timeline-item animated fadeIn {{item.ActivityTypeIdEn}} dark\"\r\n [ngClass]=\"{ 'faster': i ==0,\r\n 'slower': i ==1,\r\n 'slow': i >1\r\n }\">\r\n\r\n <div class=\"timeline-body\" [ngClass]=\"{'fullview': item.showform}\">\r\n <span class=\"con-pointer\"></span>\r\n <h5 (click)=\"item.showform = !item.showform;item.loadForm = true;getActivityFileUploads(item)\">{{item.ActivityTypeIdEn |translate}}\r\n <span class=\"pull-right date\"><span *ngIf=\"item.ActivityTypeIdEn=='Comments'|| item.ActivityTypeIdEn=='DefaultComments'\">{{item.CreatedBy}} | </span>{{item.CreatedDatetime | date:'dd/MM/yyyy h:mm a'}}</span>\r\n </h5>\r\n <div class=\"msg p-3 bg-white\" *ngIf=\"item.loadForm\" [ngClass]=\"{'d-none': !item.showform}\">\r\n\r\n <span class=\"pull-right\" (click)=\"openTaskDetailView(item)\"\r\n *ngIf=\"item.ActivityTypeIdEn=='Task' && item.RecId\">\r\n <i class=\"la la-external-link color-pomegranate\" style=\"font-size: 20px;\"></i></span>\r\n\r\n\r\n <ng-container *ngIf=\"item.ActivityTypeId\">\r\n\r\n <app-activities-view [EntityTypeId]=\"item.ActivityTypeId\" [RefTypeId]=\"refRecId\"\r\n [ActivityTypeId]=\"item.ActivityTypeId\" [FormData]=\"item\">\r\n </app-activities-view>\r\n\r\n <ng-container *ngIf=\"item?.uploadFiles &&item?.uploadFiles.length >0;\">\r\n <h6 class=\"attach-title\">{{'Attachments'|translate}} \r\n <!-- <i (click)=\"attachMethod()\" class=\"fa fa-paperclip themecolor ml-1\"></i> -->\r\n </h6>\r\n <ul class=\"attached_lists\" >\r\n <li *ngFor=\"let item of item.uploadFiles\">\r\n <!-- {{item?.Path}} -->\r\n <a id=\"nofile\" href=\"{{environment.ServerUrl+'ticketmaster/uploadFilesBy/downloadbyrefrecid?RecId='+item.RecId}}\" target=\"_blank\" class=\"\">\r\n <span class=\"row m-0\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 50px;\">\r\n \r\n <ng-container [ngSwitch]=\"item.ExtSm\">\r\n <i class=\"la la-file-pdf\" *ngSwitchCase=\"'pdf'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-csv\" *ngSwitchCase=\"'csv'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-excel\" *ngSwitchCase=\"'xlsx'\" style=\"font-size:45px;\"></i>\r\n \r\n \r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'png'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'svg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'jpeg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'jpg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" /> \r\n \r\n <!--<i class=\"la la-file-image\" *ngSwitchCase=\"'png'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'svg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpeg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpg'\" style=\"font-size:45px;\"></i>-->\r\n \r\n <i class=\"la la-file-alt\" *ngSwitchCase=\"'txt'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-word\" *ngSwitchCase=\"'docx'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'zip'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'rar'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-signature\" *ngSwitchCase=\"'sql'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-code\" *ngSwitchCase=\"'json'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file\" *ngSwitchDefault style=\"font-size:45px;\"></i>\r\n </ng-container>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name\" >\r\n <span>{{item?.Name}}</span>\r\n <span>{{item.Ext| translate}}&emsp;{{'download' | translate}}</span>\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n </ng-container>\r\n \r\n\r\n </ng-container>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n </ng-container>\r\n\r\n\r\n <div class=\"activity-loadmore text-center p-3\" *ngIf=\"TotalActivity > ActivityType.length\">\r\n <a href=\"javascript:void(0);\" class=\"load-more bg-themecolor color-white\"\r\n (click)=\"loadMoreActivities()\">\r\n {{'Load more'|translate}} <i class=\"la la-angle-double-down m-r-10 m-l-10\"></i> </a>\r\n </div>\r\n\r\n \r\n <div class=\"activity-create m-t-20\" *ngIf=\"commentsActivityItem && commentsActivityItem.RecId\">\r\n\r\n <div class=\"header clearfix\">\r\n <h2 class=\"pull-left\" style=\"color: #17191c;\">\r\n <i class=\"fa fa-comments-o m-r-10\"></i>\r\n {{'Comments'|translate}}</h2>\r\n\r\n </div>\r\n\r\n <ng-container>\r\n <app-activities-create [ViewFrom]=\"'Popup'\" [RefEntityTypeId]=\"EntityTypeId\"\r\n [EntityTypeId]=\"commentsActivityItem.RecId\" [RefTypeId]=\"refRecId\"\r\n [ActivityTypeId]=\"commentsActivityItem.RecId\" [IsHideCancelBtn]=\"true\"\r\n (closeActivityCreate)=\"closePopupCreateView($event.Type)\">\r\n </app-activities-create>\r\n </ng-container>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n </div>\r\n\r\n </div>\r\n\r\n <div class=\"tab-pane animated\" [ngClass]=\"{'active': tabDisplayView==2}\" id=\"ActionList\" >\r\n \r\n <div class=\"card select2-drop process_stage\">\r\n <app-grid [columnDefs]=\"columnDefs\"\r\n [GridTitle]=\"pageTitle\"\r\n [GridDescription]=\"pageDesp\"\r\n [columnDefs]=\"columnDefs\"\r\n [gridActionList]=\"gridActionList\"\r\n [selectMode]=\"selectMode\"\r\n [IsCreate]=\"isCreate\"\r\n [IsDelete]=\"isDelete\"\r\n [IsEdit]=\"isEdit\"\r\n [grid]=\"8\"\r\n (getPageList)=\"GetPageList($event.Criteria)\">\r\n </app-grid>\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n\r\n\r\n </div>\r\n\r\n <ng-container *ngIf=\"showWorkflowPopup\">\r\n\r\n <app-workflow-dynamic-popup [showWorkflowPopups]=\"showWorkflowPopup\"\r\n [EntityTypeId]=\"EntityTypeId\"\r\n [EntityFormId]=\"workflowEntityFormId\"\r\n [PageGroupValues]=\"_TaskDetail\"\r\n (getWorkflowActionComments)=\"getWorkflowActionComments($event.comments, $event.updateFileds, $event.updateFieldsObject)\">\r\n </app-workflow-dynamic-popup>\r\n </ng-container>\r\n</div>\r\n", styles: [".draghandle{position:absolute;z-index:100;top:0;bottom:0;right:0;float:right;border:1px solid #827d7d;background:#827d7d}.sidebar-left{width:1100px;float:left;box-shadow:-5px 0 #f7f7f7 inset}.wrapper #mainArea.content{margin-left:1100px}.activity-timeline .timeline-item.green,.activity-type .activity-item.green{color:#86c541}.activity-timeline .timeline-item.blue,.activity-type .activity-item.blue{color:#1d8ecd}.activity-timeline .timeline-item.warning,.activity-type .activity-item.warning{color:#f5a81d}.activity-timeline .timeline-item.danger,.activity-type .activity-item.danger{color:#ee2558}.activity-timeline .timeline-item.dark,.activity-type .activity-item.dark{color:#17191c}.activity-timeline .timeline-item.pomegranate,.activity-type .activity-item.pomegranate{color:#d35400!important}.activity-timeline .timeline-item{padding:15px 35px}.activity-timeline .timeline-item .msg{color:#000;margin:15px 0 10px}.activity-timeline .timeline-item:after{width:36px;height:36px;position:absolute;text-align:center;left:-18px;border-radius:100px;font-size:15px;font-weight:700;border:2px solid;border:none;padding:0;height:auto;top:25px;font: 14px/1 FontAwesome;content:\"\\f0e6\"}.activity-timeline .timeline-item.Email:after{content:\"\\e086\"}.activity-timeline .timeline-item.SMS:after{content:\"\\e04a\"}.activity-timeline .timeline-item.Notes:after{content:\"\\e04c\"}.activity-timeline .timeline-item.Comments:after{content:\"\\f0e6\"}.activity-timeline .timeline-item.Task:after{content:\"\\e067\"}.activity-timeline .timeline-item .timeline-body{padding:7px;border:1px solid #e1e2e1;position:relative;height:37px;background-color:#fafafa;margin-bottom:6px;border-radius:5px}.activity-timeline .timeline-item .timeline-body h5{cursor:pointer;font-size:15px;font-weight:400}.activity-timeline .timeline-item .timeline-body h5 .date{margin:0 10px;font-style:italic;font-size:small;font-weight:400}.activity-timeline .timeline-item .timeline-body.fullview{height:auto}.con-pointer{width:11px;height:11px;transform:rotate(45deg);position:absolute;top:11px;border:1px solid;left:-6.5px;border-width:0 0 1px 1px;background-position:-182px -292px;background-color:#fafafa;border-color:#e1e2e1}.activity-type{border-top:1px solid #ddd;margin-top:20px;background-color:#fff;padding:10px 0 0}.activity-type ul{list-style-type:none;padding:0}.activity-type ul li{padding:10px}.activity-type ul li .activity-item{font-size:16px;padding:10px 20px 25px;width:100%;border-radius:10px;display:inline-block;transition:all .2s ease-in-out;border:1px solid #fff}.activity-type ul li .activity-item i{margin-right:10px}.activity-type ul li .activity-item:hover{background:#fafafa;border:1px solid #ddd}.activity-type ul li.activity-select{margin-bottom:-10px}.activity-type ul li.activity-select .activity-item{border:1px solid #ddd;background-color:#fafafa}.activity-create{border-top:1px solid #ddd}.activity-type ul{width:100%;padding:0 10px;margin:0 0 -20px}.activity-type ul li{float:left}.breadcrumbs.details_pages{margin-bottom:0;border-radius:0}.breadcrumb-details{background:#fff;padding:20px 0;border:1px solid #0a6531;border:1px solid #ddd;border-top:none}.attached_lists li{display:block;width:100%;margin-top:10px}.attached_lists li a{border-radius:5px;border:1px solid #ddd;width:100%;display:inline-block;padding:7px;text-decoration:none;color:#000}.attached_lists li a .attached_lists_name span:first-child{font-weight:600;display:block;margin-bottom:5px}.attached_lists li a .attached_lists_name_Readonly{display:flex}.attached_lists li a .attached_lists_name_Readonly span:first-child{font-weight:600;margin-top:12px}.readonly{border:unset!important}.form-comments{margin-left:30px;margin-right:89px}.custom-dropdown .dropdown-content{display:none;position:absolute;background-color:#f9f9f9;min-width:160px;box-shadow:0 8px 16px #0003;z-index:1}.custom-dropdown .dropdown-content a{color:#000;padding:6px 8px;text-decoration:none;font-size:15px;display:block;text-align:left}.custom-dropdown .dropdown-content a:hover{background-color:#f1f1f1}.custom-dropdown .dropdown:hover .dropdown-content{display:block}.lang_Arabic .pull-right{float:left!important}.lang_Arabic .pull-left{float:right!important}\n"] }]
9246
- }], ctorParameters: function () { return [{ type: TaskService }, { type: EntityTypeSetupService }, { type: i3.FormBuilder }, { type: i2.ActivatedRoute }, { type: GridServiceService }, { type: TicketApiService }, { type: GlobalService }, { type: i2.Router }]; }, propDecorators: { EntityTypeRecId: [{
9098
+ args: [{ selector: 'app-support-request-create', template: "\r\n\r\n<div class=\"row \">\r\n\r\n <div class=\"col col-sm-12\">\r\n\r\n <div class=\"row\">\r\n <div class=\"whole dynamic_request_details\">\r\n <div class=\"card\">\r\n\r\n <!-- <div class=\"header\" style=\"border-bottom: 1px solid #ddd;\">\r\n <h2>\r\n {{Type=='Edit'?'Edit Request':'New Request Create'}}\r\n </h2>\r\n \r\n </div> -->\r\n\r\n <div class=\"body padding-0\">\r\n <div class=\"request-create\" >\r\n\r\n\r\n <ng-container *ngIf=\"EntityFormId \">\r\n <app-entity-dynamic-view [ParameterData]=\"ParameterData\"\r\n [RequestorField] =\"RequestField\" [RequestorFieldValue]=\"RequesterId\"\r\n [EntityFormId]=\"EntityFormId\" [PageGroupValues]=\"FormValues\" [ViewFrom]=\"'Details'\" [Type]=\"Type\"\r\n (submitFormValue)=\"emitTicketCreateForm($event.formdata,$event.pageForm)\"></app-entity-dynamic-view>\r\n </ng-container>\r\n\r\n <hr>\r\n\r\n <div class=\"m-b-20\" *ngIf=\"DocumentList && DocumentList.length > 0\">\r\n \r\n <h6 class=\"m-b-20\">{{'Files'|translate}} :</h6>\r\n\r\n\r\n <ul class=\"attached_lists\" >\r\n <li *ngFor=\"let doc of DocumentList\">\r\n <a class=\"\" [ngClass]=\"{'border-red': doc.IsManatory && !(doc.FileName) }\" >\r\n <span class=\"row m-0\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 65px;\">\r\n <button class=\"btn btn-outline attach-file-btn\" \r\n [ngClass]=\"{'btn-outline-danger':!(doc.FileName),'btn-success':doc.FileName }\">\r\n <i class=\"la la-upload\" style=\"font-size:25px;\"></i>\r\n <input class=\"attach-file\" type=\"file\" id=\"file_{{doc.RecId}}\" multiple (change)=\"docFileChange($event,doc)\" [(ngModel)]=\"doc.File\"\r\n [ngModelOptions]=\"{standalone: true}\">\r\n </button>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name\">\r\n <span [ngClass]=\"{'red': doc.IsManatory && !(doc.FileName) }\">\r\n {{ globalService.CurrentLanguage == 'Ar' ? (doc.DocumentNameAr ? doc.DocumentNameAr : (doc.DocumentName | translate)) :doc.DocumentName}}\r\n <!-- {{doc.DocumentName | translate}} -->\r\n <code class=\"red\" *ngIf=\"doc.IsManatory\">*</code></span>\r\n \r\n <ng-container *ngIf=\"doc.FileList.length >0; else elseTemplate\">\r\n <span class=\"themecolor\">{{doc.FileList.length}} {{'Files are selected' | translate }}</span>\r\n <br>\r\n <ng-container *ngFor=\"let _file of doc.FileList\">\r\n <span class=\"themecolor\">{{_file.FileName}}</span><br>\r\n </ng-container>\r\n \r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <span class=\"red\">{{'Files are not selected' | translate }}</span>\r\n </ng-template>\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n\r\n\r\n \r\n </div>\r\n\r\n <div class=\"text-center pull-right\">\r\n\r\n\r\n <button class=\"formcancelbtn btn btn-small m-l-5 m-r-5\" (click)=\"closeCreatePage()\">\r\n {{'Cancel'|translate}}\r\n </button>\r\n\r\n <button class=\"formsubmitbtn btn btn-small btn-theme m-l-5 m-r-5\" (click)=\"submitTicketCreate()\" style=\"color: #fff;font-weight: 600;\">\r\n {{Type=='Edit'?'Update Request':'Submit'|translate}} \r\n </button>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n </div>\r\n \r\n </div>\r\n\r\n </div>\r\n\r\n\r\n</div>\r\n\r\n\r\n", styles: [".attached_lists li{display:block;width:100%;margin-top:10px}.attached_lists li a{border-radius:5px;border:1px solid #ddd;width:100%;display:inline-block;padding:7px;text-decoration:none;color:#000}.attached_lists li a .attached_lists_name span:first-child{font-weight:600;display:block;margin-bottom:5px}.attach-file-btn{width:50px;height:40px;margin:0 5px;overflow:hidden;position:relative}.attach-file-btn .attach-file{position:absolute;left:0;top:0;bottom:0;right:0;width:100%;opacity:0;z-index:32}.formcancelbtn{padding-left:15px;padding-right:15px;border-radius:20px;min-width:50px;border:1px solid #c4cbcb}.formsubmitbtn{padding-left:15px;padding-right:15px;border-radius:20px;min-width:50px}\n"] }]
9099
+ }], ctorParameters: function () { return [{ type: EntityTypeSetupService }, { type: AttachmentService }, { type: i2.Router }, { type: i2.ActivatedRoute }, { type: SupportRequestService }, { type: GlobalService }]; }, propDecorators: { EntityFormId: [{
9247
9100
  type: Input
9248
- }], RecId: [{
9101
+ }], EntityTypeId: [{
9249
9102
  type: Input
9250
9103
  }], ViewFrom: [{
9251
9104
  type: Input
9252
- }], IsWfAction: [{
9105
+ }], Type: [{
9106
+ type: Input
9107
+ }], FormValues: [{
9108
+ type: Input
9109
+ }], IssueType: [{
9110
+ type: Input
9111
+ }], IssueGroup: [{
9112
+ type: Input
9113
+ }], IssueSubGroup: [{
9114
+ type: Input
9115
+ }], IssueTypeEn: [{
9116
+ type: Input
9117
+ }], IssueGroupEn: [{
9118
+ type: Input
9119
+ }], IssueSubGroupEn: [{
9120
+ type: Input
9121
+ }], IssueTypeAr: [{
9122
+ type: Input
9123
+ }], IssueGroupAr: [{
9124
+ type: Input
9125
+ }], IssueSubGroupAr: [{
9126
+ type: Input
9127
+ }], Source: [{
9128
+ type: Input
9129
+ }], CreatedByUserType: [{
9130
+ type: Input
9131
+ }], Channel: [{
9132
+ type: Input
9133
+ }], ChannelEn: [{
9134
+ type: Input
9135
+ }], ChannelAr: [{
9136
+ type: Input
9137
+ }], RequestField: [{
9138
+ type: Input
9139
+ }], RequesterId: [{
9140
+ type: Input
9141
+ }], RequesterIdEn: [{
9253
9142
  type: Input
9143
+ }], closeCreate: [{
9144
+ type: Output
9254
9145
  }] } });
9255
9146
 
9256
- class AttachmentService {
9257
- constructor(http) {
9258
- this.http = http;
9259
- this.IsPopUp = false;
9147
+ class CreateFormComponent {
9148
+ constructor(globalService, supportService) {
9149
+ this.globalService = globalService;
9150
+ this.supportService = supportService;
9151
+ this.IsDropdownModel = true;
9152
+ this.Language = 'Eng';
9153
+ this.Channel = '3';
9154
+ this.ChannelEn = 'Portal';
9155
+ this.ChannelAr = 'صفحة العميل';
9156
+ this.closeCreateModel = new EventEmitter();
9157
+ this.selectedType = null;
9158
+ this.selectedSubGroup = null;
9159
+ this.selectedGroup = null;
9160
+ this.IssueTypeDDL = [];
9161
+ this.DropdownIssueSubgroup = [];
9162
+ this.isShowCreateRequest = false;
9163
+ this.CreateItemId = null;
9164
+ this.selectCaseItem = null;
9165
+ this.IssueType = "7";
9166
+ this.selectedCategory = null;
9167
+ this.IssueGroupName = "Ticket SubGroup";
9168
+ this.IssueAllList = [];
9169
+ this.IssueCaseList = [];
9260
9170
  }
9261
- getAttachmentList(MenuOrEntityRecId, attachmentType) {
9262
- const url = Common.getAttachmentByMenuRecId(MenuOrEntityRecId, attachmentType);
9263
- return this.http.get(url);
9171
+ ngOnInit() {
9172
+ if (this.PageType == "Complaint") {
9173
+ this.IssueType = "2";
9174
+ }
9175
+ else if (this.PageType == "Request") {
9176
+ this.IssueType = "7";
9177
+ }
9178
+ else if (this.PageType == "SelfService") {
9179
+ this.IssueType = "11";
9180
+ }
9181
+ else
9182
+ this.IssueType = "7";
9183
+ if (this.RequesterTypeId == "0000001") {
9184
+ this.RequesterTypeIdEn = "IndividualCustomer";
9185
+ }
9186
+ else if (this.RequesterTypeId == "0000002") {
9187
+ this.RequesterTypeIdEn = "BusinessCustomer";
9188
+ }
9189
+ else {
9190
+ this.RequesterTypeIdEn = null;
9191
+ }
9192
+ if (this.RequesterTypeId && this.PageType != "SelfService") {
9193
+ this.getIssueType();
9194
+ }
9195
+ if (this.PageType == "SelfService") {
9196
+ this.getIssueGroupRequesterMappingByRequesterType();
9197
+ }
9264
9198
  }
9265
- uploadAttachFile(obj, files) {
9266
- const url = Common.uploadAttachFile();
9267
- let data = {
9268
- refRecId: obj.refRecId,
9269
- DocumentType: obj.DocumentType,
9270
- DocumentVersion: obj.DocumentVersion,
9271
- Title: obj.Title,
9272
- FileName: obj.FileName
9273
- };
9274
- return this.http.post(url, files, { params: data });
9199
+ ClickedOut(event) {
9200
+ // console.log(event.target.className);
9201
+ if (event.target.className === "modal fade show") {
9202
+ this.closeModel();
9203
+ }
9275
9204
  }
9276
- getUploadFileList(DoctypeRecId, RefRecId) {
9277
- const url = Common.getUploadFileList(DoctypeRecId, RefRecId);
9278
- let obj = {
9279
- DoctypeRecId: DoctypeRecId,
9280
- RefRecId: RefRecId
9281
- };
9282
- return this.http.get(url, { observe: 'response' }); //obj,
9205
+ closeModel(data, IsReload) {
9206
+ this.isShowCreateRequest = false;
9207
+ this.selectedCaseSelfService = null;
9208
+ this.closeCreateModel.emit({ IsClose: false, Data: data, IsReload: IsReload, PageType: this.PageType });
9283
9209
  }
9284
- ActivateUplaodFile(RecId) {
9285
- const url = Common.activateUploadFile(RecId);
9286
- return this.http.get(url);
9210
+ selectSubGroup(item, IsHideForm) {
9211
+ item.showRequest = !item.showRequest;
9212
+ this.selectedSubGroup = item;
9213
+ if (IsHideForm) {
9214
+ return;
9215
+ }
9216
+ else {
9217
+ this.IsDropdownModel = false;
9218
+ this.showCreateRequest(this.selectedSubGroup);
9219
+ }
9287
9220
  }
9288
- InActivateUplaodFile(RecId) {
9289
- const url = Common.inActivateUploadFile(RecId);
9290
- return this.http.get(url);
9221
+ showCreateRequest(item) {
9222
+ item.showSubGroup = !item.showSubGroup;
9223
+ this.isShowCreateRequest = true;
9224
+ this.selectCaseItem = item;
9225
+ this.CreateItemId = item.CaseId;
9291
9226
  }
9292
- getDocumentType(criteriastr) {
9293
- // let obj={
9294
- // "Pagging":{"PageNo":criteriastr.Pagging.PageNo,"PageSize":criteriastr.Pagging.PageSize},
9295
- // "Where":[],
9296
- // "SortOrder":{"field":null,"direction":null}
9297
- // };
9298
- // let criteria:any= JSON.stringify(obj);
9299
- const url = Common.getDocumentType();
9300
- return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
9227
+ closePopupCreateView(Type, Data) {
9228
+ this.CreateItemId = null;
9229
+ this.isShowCreateRequest = false;
9230
+ this.selectedCaseSelfService = null;
9231
+ if (Type == 'Create') {
9232
+ if (Data && Data.RecId && Data.EntityTypeId) {
9233
+ let _data = Data;
9234
+ _data.RefRecId = Data.RecId;
9235
+ _data.CaseTypeId = Data.EntityTypeId;
9236
+ this.closeModel(_data, true);
9237
+ }
9238
+ }
9239
+ else {
9240
+ this.closeModel();
9241
+ }
9301
9242
  }
9302
- getDocumentbyRecId(RecId) {
9303
- const url = Common.getDocumentTypeByRecId(RecId);
9304
- return this.http.get(url);
9243
+ getIssueType() {
9244
+ this.IsDropdownModel = true;
9245
+ this.IssueTypeDDL = [];
9246
+ this.DropdownIssueSubgroup = [];
9247
+ this.supportService.getIssueGroupRequesterMappingByRequesterType(this.RequesterTypeId).subscribe((res) => {
9248
+ this.IssueTypeDDL = res;
9249
+ if (res) {
9250
+ this.IssueTypeDDL = res.filter(x => x.IssueType == this.IssueType);
9251
+ this.selectedType = this.IssueTypeDDL[0];
9252
+ this.selectType(this.selectedType);
9253
+ }
9254
+ }, (error) => {
9255
+ console.log(error);
9256
+ });
9305
9257
  }
9306
- deleteDocumentType(RecId) {
9307
- const url = Common.deleteDocumentType(RecId);
9308
- const content_ = "";
9309
- let options_ = {
9310
- body: content_,
9311
- observe: "response",
9312
- responseType: "blob",
9313
- headers: new HttpHeaders({
9314
- "Content-Type": "application/json",
9315
- "Accept": "application/json"
9316
- })
9317
- };
9318
- return this.http.delete(url);
9258
+ selectType(item) {
9259
+ this.IssueTypeDDL = this.IssueTypeDDL.map((x) => {
9260
+ if (x.IssueType != item.IssueType) {
9261
+ x.showGroup = false;
9262
+ x.showCategory = false;
9263
+ }
9264
+ if (x.IssueGroup) {
9265
+ x.IssueGroup.map((x) => {
9266
+ x.showSubGroup = false;
9267
+ });
9268
+ }
9269
+ if (x.Category) {
9270
+ x.Category.map((x) => {
9271
+ x.showCase = false;
9272
+ });
9273
+ }
9274
+ return x;
9275
+ });
9276
+ if (item.IssueGroup) {
9277
+ item.showGroup = !item.showGroup;
9278
+ this.selectedGroup = null;
9279
+ this.selectedSubGroup = null;
9280
+ }
9281
+ if (item.Category) {
9282
+ item.showCategory = !item.showCategory;
9283
+ this.selectedCategory = null;
9284
+ this.selectCaseItem = null;
9285
+ }
9286
+ this.selectedType = item;
9319
9287
  }
9320
- createDocumentType(Obj) {
9321
- const url = Common.createDocumentType();
9322
- return this.http.post(url, Obj, { observe: 'response' });
9288
+ selectGroup(item, Type) {
9289
+ this.IssueGroupName = item.IssueGroupEn;
9290
+ Type.IssueGroup = Type.IssueGroup.map((x) => {
9291
+ if (x.IssueGroup != item.IssueGroup) {
9292
+ x.showSubGroup = false;
9293
+ }
9294
+ return x;
9295
+ });
9296
+ item.showSubGroup = !item.showSubGroup;
9297
+ this.selectedGroup = item;
9298
+ this.selectedSubGroup = null;
9299
+ this.DropdownIssueSubgroup = item.Issue;
9323
9300
  }
9324
- updateDocumentType(Obj) {
9325
- const url = Common.updateDocumentType();
9326
- return this.http.put(url, Obj, { observe: 'response' });
9301
+ getIssueGroupRequesterMappingByRequesterType() {
9302
+ this.IssueAllList = [];
9303
+ this.supportService.getIssueGroupRequesterMappingByRequesterType(this.RequesterTypeId).subscribe((res) => {
9304
+ this.IssueAllList = res.filter(x => x.IssueType == Number(this.IssueType));
9305
+ this.IssueCaseList = [];
9306
+ this.IssueAllList.forEach(x => {
9307
+ x.IssueGroup.forEach(group => {
9308
+ this.IssueCaseList.push(...group.Issue);
9309
+ });
9310
+ });
9311
+ // this.IssueCaseList.map(x => {
9312
+ // if (x.IssueImage && !x.IssueImage.includes("Account/ShowImageByPath")) {
9313
+ // x.IssueImage = "/Account/ShowImageByPath?_Path=" + x.IssueImage
9314
+ // }
9315
+ // });
9316
+ }, (error) => {
9317
+ console.log(error);
9318
+ });
9327
9319
  }
9328
- getAttachmentSetupList(criteriastr) {
9329
- // let obj={
9330
- // "Pagging":{"PageNo":criteriastr.Pagging.PageNo,"PageSize":criteriastr.Pagging.PageSize},
9331
- // "Where":[],
9332
- // "SortOrder":{"field":null,"direction":null}
9333
- // };
9334
- // let criteria:any= JSON.stringify(obj);
9335
- const url = Common.getAttachmentSetupList();
9336
- return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
9320
+ selectCase(item) {
9321
+ console.log('caselst', item);
9322
+ this.selectedCaseSelfService = item;
9337
9323
  }
9338
- getDocumentTypeAssignUnAssign(MenuRecId) {
9339
- const url = Common.getDocumentTypeAssignUnAssign(MenuRecId);
9340
- return this.http.get(url);
9324
+ openSelfServiceForm() {
9325
+ this.IsDropdownModel = false;
9326
+ this.showCreateRequest(this.selectedCaseSelfService);
9341
9327
  }
9342
- assignDocumentType(data) {
9343
- const st = data.DocumentTypeRecId.map(x => "DocumentTypeRecId=" + x).join("&");
9344
- let url_ = `${environment.ServerUrl}security/documenttype/menu/assign?${st}&MenuOrEntityRecId=${data.MenuOrEntityRecId}`;
9345
- return this.http.post(url_, null);
9328
+ }
9329
+ CreateFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: CreateFormComponent, deps: [{ token: GlobalService }, { token: SupportRequestService }], target: i0.ɵɵFactoryTarget.Component });
9330
+ CreateFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: CreateFormComponent, selector: "lib-create-form", inputs: { IsDropdownModel: "IsDropdownModel", PageType: "PageType", RequesterTypeId: "RequesterTypeId", RequesterTypeIdEn: "RequesterTypeIdEn", RequesterId: "RequesterId", RequesterField: "RequesterField", Language: "Language", HostUrl: "HostUrl", Host: "Host", Source: "Source", Channel: "Channel", ChannelEn: "ChannelEn", ChannelAr: "ChannelAr" }, outputs: { closeCreateModel: "closeCreateModel" }, ngImport: i0, template: "<div class=\"modal fade show\" id=\"request-create-popup\" tabindex=\"-1\" role=\"dialog\" (click)=\"ClickedOut($event)\"\r\n aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" role=\"document\" [ngClass]=\"{'modal-sm':IsDropdownModel,'modal-lg':!IsDropdownModel}\">\r\n <div class=\"modal-content request-modal\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\">{{'Create' | translate}} \r\n <ng-container *ngIf=\"PageType != 'SelfService'\">\r\n {{globalService.CurrentLanguage =='Ar' ?\r\n (selectedType.IssueTypeAr ? selectedType.IssueTypeAr : (selectedType.IssueTypeEn |translate)) :\r\n selectedType.IssueTypeEn }}\r\n </ng-container>\r\n <ng-container *ngIf=\"PageType == 'SelfService'\">\r\n {{'SelfService'|translate}}\r\n </ng-container>\r\n \r\n \r\n </h5>\r\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"closeModel()\">\r\n <span aria-hidden=\"true\">&times;</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\">\r\n <ng-container *ngIf=\"PageType != 'SelfService' && IssueTypeDDL.length > 0\">\r\n\r\n <div class=\"\" *ngIf=\"IsDropdownModel\">\r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'Group'|translate}}</label>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage =='Ar'\" [items]=\"IssueTypeDDL[0].IssueGroup\"\r\n [placeholder]=\"'Group'|translate\" bindLabel=\"IssueGroupAr\" bindValue=\"IssueGroup\"\r\n (change)=\"selectGroup($event,IssueTypeDDL[0])\">\r\n </ng-select>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage !='Ar'\" [items]=\"IssueTypeDDL[0].IssueGroup\"\r\n [placeholder]=\"'Group'|translate\" bindLabel=\"IssueGroupEn\" bindValue=\"IssueGroup\"\r\n (change)=\"selectGroup($event,IssueTypeDDL[0])\">\r\n </ng-select>\r\n </div>\r\n \r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'SubGroup'|translate}}</label>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage =='Ar'\" [items]=\"DropdownIssueSubgroup\"\r\n [placeholder]=\"'SubGroup'|translate\" bindLabel=\"IssueAr\" bindValue=\"Issue\"\r\n (change)=\"selectSubGroup($event,true)\">\r\n </ng-select>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage !='Ar'\" [items]=\"DropdownIssueSubgroup\"\r\n [placeholder]=\"'SubGroup'|translate\" bindLabel=\"IssueEn\" bindValue=\"Issue\"\r\n (change)=\"selectSubGroup($event,true)\">\r\n </ng-select>\r\n </div>\r\n <div class=\"mb-3 text-center\">\r\n <button class=\"btn btn-small m-l-5 m-r-5 dropdownbtn\" [disabled]=\"!selectedSubGroup\" (click)=\"selectSubGroup(selectedSubGroup)\">\r\n {{'Next'|translate}}\r\n </button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n <ng-container *ngIf=\"PageType == 'SelfService' && IsDropdownModel\">\r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'Case Type'|translate}}</label>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage =='Ar'\" [items]=\"IssueCaseList\"\r\n [placeholder]=\"'Case'|translate\" bindLabel=\"CaseIdAr\" bindValue=\"CaseId\"\r\n (change)=\"selectCase($event)\">\r\n </ng-select>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage !='Ar'\" [items]=\"IssueCaseList\"\r\n [placeholder]=\"'Case'|translate\" bindLabel=\"CaseIdEn\" bindValue=\"CaseId\"\r\n (change)=\"selectCase($event)\">\r\n </ng-select>\r\n </div>\r\n <div class=\"mb-3 text-center\">\r\n <button class=\"btn btn-small m-l-5 m-r-5 dropdownbtn\" [disabled]=\"!selectedCaseSelfService\"\r\n (click)=\"openSelfServiceForm()\">\r\n {{'Next'|translate}}\r\n </button>\r\n </div>\r\n\r\n </ng-container>\r\n \r\n\r\n\r\n <ng-container *ngIf=\"isShowCreateRequest\">\r\n <ng-container *ngIf=\"PageType != 'SelfService'\">\r\n <div class=\"whole m-b-20 breadcrumbes\">\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr\r\n : (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}</span> >\r\n\r\n <ng-container *ngIf=\"selectedType.IssueGroup;else elseCategory\">\r\n\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ?\r\n selectedGroup?.IssueGroupAr : (selectedGroup?.IssueGroupEn |translate)) :\r\n selectedGroup?.IssueGroupEn }}</span> >\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedSubGroup?.IssueAr ?\r\n selectedSubGroup?.IssueAr : (selectedSubGroup?.IssueEn |translate)) :\r\n selectedSubGroup?.IssueEn }}</span> >\r\n\r\n </ng-container>\r\n <ng-template #elseCategory>\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedCategory?.CategoryIdAr ?\r\n selectedCategory?.CategoryIdAr : (selectedCategory?.CategoryIdEn |translate)) :\r\n selectedCategory?.CategoryIdEn }}</span> >\r\n </ng-template>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"PageType == 'SelfService'\">\r\n <span>{{PageType |translate}} > {{globalService.CurrentLanguage =='Ar' ? (selectCaseItem.CaseIdAr ? selectCaseItem.CaseIdAr :\r\n (selectCaseItem.CaseIdEn |translate)) : selectCaseItem.CaseIdEn }}</span>\r\n </ng-container>\r\n \r\n <app-support-request-create *ngIf=\"CreateItemId\" class=\"support_req_div\" [ViewFrom]=\"'Popup'\"\r\n [IssueType]=\"selectedType?.IssueType\" [IssueTypeEn]=\"((PageType != 'SelfService') ? selectedType?.IssueTypeEn : 'Customer Self Service')\"\r\n [IssueTypeAr]=\"selectedType?.IssueTypeAr\" [IssueGroup]=\"selectedGroup?.IssueGroup\"\r\n [IssueGroupEn]=\"selectedGroup?.IssueGroupEn\" [IssueGroupAr]=\"selectedGroup?.IssueGroupAr\"\r\n [IssueSubGroup]=\"selectedSubGroup?.Issue\" [IssueSubGroupEn]=\"selectedSubGroup?.IssueEn\"\r\n [IssueSubGroupAr]=\"selectedSubGroup?.IssueAr\" [Source]=\"Source\"\r\n [CreatedByUserType]=\"RequesterTypeId\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\"\r\n [ChannelAr]=\"ChannelAr\" [RequesterId]=\"RequesterId\" [RequesterIdEn]=\"RequesterTypeIdEn\"\r\n [RequestField]=\"RequesterField\" [Type]=\"'Create'\" [EntityTypeId]=\"CreateItemId\"\r\n (closeCreate)=\"closePopupCreateView($event.Type,$event.Data)\">\r\n </app-support-request-create>\r\n </ng-container>\r\n\r\n\r\n </div>\r\n </div>\r\n</div>\r\n</div>", styles: [""], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5$1.NgSelectComponent, selector: "ng-select", inputs: ["bindLabel", "bindValue", "markFirst", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "appearance", "dropdownPosition", "appendTo", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "openOnEnter", "maxSelectedItems", "groupBy", "groupValue", "bufferAmount", "virtualScroll", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "tabIndex", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "typeahead", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { kind: "component", type: SupportRequestCreateComponent, selector: "app-support-request-create", inputs: ["EntityFormId", "EntityTypeId", "ViewFrom", "Type", "FormValues", "IssueType", "IssueGroup", "IssueSubGroup", "IssueTypeEn", "IssueGroupEn", "IssueSubGroupEn", "IssueTypeAr", "IssueGroupAr", "IssueSubGroupAr", "Source", "CreatedByUserType", "Channel", "ChannelEn", "ChannelAr", "RequestField", "RequesterId", "RequesterIdEn"], outputs: ["closeCreate"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
9331
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: CreateFormComponent, decorators: [{
9332
+ type: Component,
9333
+ args: [{ selector: 'lib-create-form', template: "<div class=\"modal fade show\" id=\"request-create-popup\" tabindex=\"-1\" role=\"dialog\" (click)=\"ClickedOut($event)\"\r\n aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" role=\"document\" [ngClass]=\"{'modal-sm':IsDropdownModel,'modal-lg':!IsDropdownModel}\">\r\n <div class=\"modal-content request-modal\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\">{{'Create' | translate}} \r\n <ng-container *ngIf=\"PageType != 'SelfService'\">\r\n {{globalService.CurrentLanguage =='Ar' ?\r\n (selectedType.IssueTypeAr ? selectedType.IssueTypeAr : (selectedType.IssueTypeEn |translate)) :\r\n selectedType.IssueTypeEn }}\r\n </ng-container>\r\n <ng-container *ngIf=\"PageType == 'SelfService'\">\r\n {{'SelfService'|translate}}\r\n </ng-container>\r\n \r\n \r\n </h5>\r\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"closeModel()\">\r\n <span aria-hidden=\"true\">&times;</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\">\r\n <ng-container *ngIf=\"PageType != 'SelfService' && IssueTypeDDL.length > 0\">\r\n\r\n <div class=\"\" *ngIf=\"IsDropdownModel\">\r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'Group'|translate}}</label>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage =='Ar'\" [items]=\"IssueTypeDDL[0].IssueGroup\"\r\n [placeholder]=\"'Group'|translate\" bindLabel=\"IssueGroupAr\" bindValue=\"IssueGroup\"\r\n (change)=\"selectGroup($event,IssueTypeDDL[0])\">\r\n </ng-select>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage !='Ar'\" [items]=\"IssueTypeDDL[0].IssueGroup\"\r\n [placeholder]=\"'Group'|translate\" bindLabel=\"IssueGroupEn\" bindValue=\"IssueGroup\"\r\n (change)=\"selectGroup($event,IssueTypeDDL[0])\">\r\n </ng-select>\r\n </div>\r\n \r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'SubGroup'|translate}}</label>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage =='Ar'\" [items]=\"DropdownIssueSubgroup\"\r\n [placeholder]=\"'SubGroup'|translate\" bindLabel=\"IssueAr\" bindValue=\"Issue\"\r\n (change)=\"selectSubGroup($event,true)\">\r\n </ng-select>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage !='Ar'\" [items]=\"DropdownIssueSubgroup\"\r\n [placeholder]=\"'SubGroup'|translate\" bindLabel=\"IssueEn\" bindValue=\"Issue\"\r\n (change)=\"selectSubGroup($event,true)\">\r\n </ng-select>\r\n </div>\r\n <div class=\"mb-3 text-center\">\r\n <button class=\"btn btn-small m-l-5 m-r-5 dropdownbtn\" [disabled]=\"!selectedSubGroup\" (click)=\"selectSubGroup(selectedSubGroup)\">\r\n {{'Next'|translate}}\r\n </button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n <ng-container *ngIf=\"PageType == 'SelfService' && IsDropdownModel\">\r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'Case Type'|translate}}</label>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage =='Ar'\" [items]=\"IssueCaseList\"\r\n [placeholder]=\"'Case'|translate\" bindLabel=\"CaseIdAr\" bindValue=\"CaseId\"\r\n (change)=\"selectCase($event)\">\r\n </ng-select>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage !='Ar'\" [items]=\"IssueCaseList\"\r\n [placeholder]=\"'Case'|translate\" bindLabel=\"CaseIdEn\" bindValue=\"CaseId\"\r\n (change)=\"selectCase($event)\">\r\n </ng-select>\r\n </div>\r\n <div class=\"mb-3 text-center\">\r\n <button class=\"btn btn-small m-l-5 m-r-5 dropdownbtn\" [disabled]=\"!selectedCaseSelfService\"\r\n (click)=\"openSelfServiceForm()\">\r\n {{'Next'|translate}}\r\n </button>\r\n </div>\r\n\r\n </ng-container>\r\n \r\n\r\n\r\n <ng-container *ngIf=\"isShowCreateRequest\">\r\n <ng-container *ngIf=\"PageType != 'SelfService'\">\r\n <div class=\"whole m-b-20 breadcrumbes\">\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr\r\n : (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}</span> >\r\n\r\n <ng-container *ngIf=\"selectedType.IssueGroup;else elseCategory\">\r\n\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ?\r\n selectedGroup?.IssueGroupAr : (selectedGroup?.IssueGroupEn |translate)) :\r\n selectedGroup?.IssueGroupEn }}</span> >\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedSubGroup?.IssueAr ?\r\n selectedSubGroup?.IssueAr : (selectedSubGroup?.IssueEn |translate)) :\r\n selectedSubGroup?.IssueEn }}</span> >\r\n\r\n </ng-container>\r\n <ng-template #elseCategory>\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedCategory?.CategoryIdAr ?\r\n selectedCategory?.CategoryIdAr : (selectedCategory?.CategoryIdEn |translate)) :\r\n selectedCategory?.CategoryIdEn }}</span> >\r\n </ng-template>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"PageType == 'SelfService'\">\r\n <span>{{PageType |translate}} > {{globalService.CurrentLanguage =='Ar' ? (selectCaseItem.CaseIdAr ? selectCaseItem.CaseIdAr :\r\n (selectCaseItem.CaseIdEn |translate)) : selectCaseItem.CaseIdEn }}</span>\r\n </ng-container>\r\n \r\n <app-support-request-create *ngIf=\"CreateItemId\" class=\"support_req_div\" [ViewFrom]=\"'Popup'\"\r\n [IssueType]=\"selectedType?.IssueType\" [IssueTypeEn]=\"((PageType != 'SelfService') ? selectedType?.IssueTypeEn : 'Customer Self Service')\"\r\n [IssueTypeAr]=\"selectedType?.IssueTypeAr\" [IssueGroup]=\"selectedGroup?.IssueGroup\"\r\n [IssueGroupEn]=\"selectedGroup?.IssueGroupEn\" [IssueGroupAr]=\"selectedGroup?.IssueGroupAr\"\r\n [IssueSubGroup]=\"selectedSubGroup?.Issue\" [IssueSubGroupEn]=\"selectedSubGroup?.IssueEn\"\r\n [IssueSubGroupAr]=\"selectedSubGroup?.IssueAr\" [Source]=\"Source\"\r\n [CreatedByUserType]=\"RequesterTypeId\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\"\r\n [ChannelAr]=\"ChannelAr\" [RequesterId]=\"RequesterId\" [RequesterIdEn]=\"RequesterTypeIdEn\"\r\n [RequestField]=\"RequesterField\" [Type]=\"'Create'\" [EntityTypeId]=\"CreateItemId\"\r\n (closeCreate)=\"closePopupCreateView($event.Type,$event.Data)\">\r\n </app-support-request-create>\r\n </ng-container>\r\n\r\n\r\n </div>\r\n </div>\r\n</div>\r\n</div>" }]
9334
+ }], ctorParameters: function () { return [{ type: GlobalService }, { type: SupportRequestService }]; }, propDecorators: { IsDropdownModel: [{
9335
+ type: Input
9336
+ }], PageType: [{
9337
+ type: Input
9338
+ }], RequesterTypeId: [{
9339
+ type: Input
9340
+ }], RequesterTypeIdEn: [{
9341
+ type: Input
9342
+ }], RequesterId: [{
9343
+ type: Input
9344
+ }], RequesterField: [{
9345
+ type: Input
9346
+ }], Language: [{
9347
+ type: Input
9348
+ }], HostUrl: [{
9349
+ type: Input
9350
+ }], Host: [{
9351
+ type: Input
9352
+ }], Source: [{
9353
+ type: Input
9354
+ }], Channel: [{
9355
+ type: Input
9356
+ }], ChannelEn: [{
9357
+ type: Input
9358
+ }], ChannelAr: [{
9359
+ type: Input
9360
+ }], closeCreateModel: [{
9361
+ type: Output
9362
+ }] } });
9363
+
9364
+ class SendemailComponent {
9365
+ constructor(fb, supportService) {
9366
+ this.fb = fb;
9367
+ this.supportService = supportService;
9368
+ this.closeSendEmailModel = new EventEmitter();
9369
+ this.SendEmailForm = this.fb.group({
9370
+ RefTypeId: [null, [Validators.required]],
9371
+ EntityTypeId: [null, [Validators.required]],
9372
+ Subject: [null, [Validators.required]],
9373
+ Mailtext: [null, [Validators.required]],
9374
+ CC: [null, [Validators.required]],
9375
+ Attachment: [null],
9376
+ });
9377
+ this.fileToUpload = null;
9346
9378
  }
9347
- unassignDocumentType(data) {
9348
- const st = data.DocumentTypeRecId.map(x => "DocumentTypeRecId=" + x).join("&");
9349
- let url_ = `${environment.ServerUrl}security/documenttype/menu/unassign?${st}&MenuOrEntityRecId=${data.MenuOrEntityRecId}`;
9350
- return this.http.post(url_, data);
9379
+ ngOnInit() {
9380
+ if (this.EntityTypeId && this.RecId) {
9381
+ this.SendEmailForm.reset();
9382
+ this.SendEmailForm.patchValue({
9383
+ EntityTypeId: this.EntityTypeId,
9384
+ RefTypeId: this.RecId
9385
+ });
9386
+ }
9351
9387
  }
9352
- getDocumentTypeAssignUnAssignForEntityType(EntityRecId) {
9353
- const url = Common.getDocumentTypeAssignUnAssignForEntityType(EntityRecId);
9354
- return this.http.get(url);
9388
+ handleFileInput(event) {
9389
+ this.fileToUpload = event.target.files;
9390
+ }
9391
+ submit(values) {
9392
+ const data = {
9393
+ EntityTypeId: values.EntityTypeId,
9394
+ RefTypeId: values.RefTypeId,
9395
+ Subject: values.Subject,
9396
+ Mailtext: values.Mailtext,
9397
+ CC: values.CC,
9398
+ };
9399
+ this.supportService.sendEmail(data, this.fileToUpload).subscribe((res => {
9400
+ this.closeModel();
9401
+ this.SendEmailForm.reset();
9402
+ Swal.fire('Created Successfully', 'Success');
9403
+ }), (error => {
9404
+ console.log(error);
9405
+ this.closeModel();
9406
+ this.SendEmailForm.reset();
9407
+ Swal.fire(errorMessageType(error));
9408
+ }));
9409
+ }
9410
+ closeModel() {
9411
+ this.closeSendEmailModel.emit({ IsClose: false, Data: null, IsReload: false });
9412
+ }
9413
+ }
9414
+ SendemailComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SendemailComponent, deps: [{ token: i3.FormBuilder }, { token: SupportRequestService }], target: i0.ɵɵFactoryTarget.Component });
9415
+ SendemailComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: SendemailComponent, selector: "lib-sendemail", inputs: { EntityTypeId: "EntityTypeId", RecId: "RecId" }, outputs: { closeSendEmailModel: "closeSendEmailModel" }, ngImport: i0, template: "<div class=\"modal fade show\" id=\"\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\"\r\n aria-hidden=\"true\">\r\n <div class=\"modal-dialog modal-lg\" role=\"document\">\r\n <div class=\"modal-content request-modal\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\">{{'Send Email' | translate}}\r\n </h5>\r\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"closeModel()\">\r\n <span aria-hidden=\"true\">&times;</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\">\r\n <form [formGroup]=\"SendEmailForm\" (submit)=\"submit(SendEmailForm.value)\">\r\n <div class=\"form-group row\">\r\n <label for=\"CC\" class=\"col-sm-4 col-form-label\">{{'CC'|translate}}</label>\r\n <div class=\"col-sm-8\">\r\n <input type=\"text\" class=\"form-control\" id=\"CC\" formControlName=\"CC\">\r\n <div class=\"text-danger\">\r\n <small *ngIf=\"SendEmailForm.get('CC')?.touched &&\r\n SendEmailForm.get('CC')?.hasError('required')\" class=\"error-message\">{{'required'|translate}}.</small>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"form-group row\">\r\n <label for=\"Subject\" class=\"col-sm-4 col-form-label\">{{'Subject'|translate}}</label>\r\n <div class=\"col-sm-8\">\r\n <textarea formControlName=\"Subject\" class=\"form-control\" id=\"Subject\" rows=\"3\"></textarea>\r\n <small *ngIf=\"SendEmailForm.get('Subject')?.touched && SendEmailForm.get('Subject')?.hasError('required')\" class=\"error-message\">\r\n {{'required'|translate}}.\r\n </small>\r\n </div>\r\n </div>\r\n <div class=\"form-group row\">\r\n <label for=\"Mailtext\" class=\"col-sm-4 col-form-label\">{{'Message'|translate}}</label>\r\n <div class=\"col-sm-8\">\r\n <textarea formControlName=\"Mailtext\" class=\"form-control\" id=\"Mailtext\" rows=\"3\"></textarea>\r\n <small *ngIf=\"SendEmailForm.get('Mailtext')?.touched \r\n && SendEmailForm.get('Mailtext')?.hasError('required')\" class=\"error-message\">\r\n {{'required'|translate}}.\r\n </small>\r\n </div>\r\n </div>\r\n <div class=\"form-group row\">\r\n <label for=\"Attachment\" class=\"col-sm-4 col-form-label\">{{'Attachment'|translate}}</label>\r\n <div class=\"col-sm-8\">\r\n <input type=\"file\" formControlName=\"Attachment\" (change)=\"handleFileInput($event)\">\r\n </div>\r\n </div>\r\n <div class=\"modal-footer\">\r\n <button type=\"submit\" [disabled]=\"SendEmailForm.invalid\" class=\"btn btn-primary float-right\">{{'Send'|translate}}</button>\r\n <button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\" (click)=\"closeModel()\">{{'Close'|translate}}</button>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", styles: [""], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
9416
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SendemailComponent, decorators: [{
9417
+ type: Component,
9418
+ args: [{ selector: 'lib-sendemail', template: "<div class=\"modal fade show\" id=\"\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\"\r\n aria-hidden=\"true\">\r\n <div class=\"modal-dialog modal-lg\" role=\"document\">\r\n <div class=\"modal-content request-modal\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\">{{'Send Email' | translate}}\r\n </h5>\r\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"closeModel()\">\r\n <span aria-hidden=\"true\">&times;</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\">\r\n <form [formGroup]=\"SendEmailForm\" (submit)=\"submit(SendEmailForm.value)\">\r\n <div class=\"form-group row\">\r\n <label for=\"CC\" class=\"col-sm-4 col-form-label\">{{'CC'|translate}}</label>\r\n <div class=\"col-sm-8\">\r\n <input type=\"text\" class=\"form-control\" id=\"CC\" formControlName=\"CC\">\r\n <div class=\"text-danger\">\r\n <small *ngIf=\"SendEmailForm.get('CC')?.touched &&\r\n SendEmailForm.get('CC')?.hasError('required')\" class=\"error-message\">{{'required'|translate}}.</small>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"form-group row\">\r\n <label for=\"Subject\" class=\"col-sm-4 col-form-label\">{{'Subject'|translate}}</label>\r\n <div class=\"col-sm-8\">\r\n <textarea formControlName=\"Subject\" class=\"form-control\" id=\"Subject\" rows=\"3\"></textarea>\r\n <small *ngIf=\"SendEmailForm.get('Subject')?.touched && SendEmailForm.get('Subject')?.hasError('required')\" class=\"error-message\">\r\n {{'required'|translate}}.\r\n </small>\r\n </div>\r\n </div>\r\n <div class=\"form-group row\">\r\n <label for=\"Mailtext\" class=\"col-sm-4 col-form-label\">{{'Message'|translate}}</label>\r\n <div class=\"col-sm-8\">\r\n <textarea formControlName=\"Mailtext\" class=\"form-control\" id=\"Mailtext\" rows=\"3\"></textarea>\r\n <small *ngIf=\"SendEmailForm.get('Mailtext')?.touched \r\n && SendEmailForm.get('Mailtext')?.hasError('required')\" class=\"error-message\">\r\n {{'required'|translate}}.\r\n </small>\r\n </div>\r\n </div>\r\n <div class=\"form-group row\">\r\n <label for=\"Attachment\" class=\"col-sm-4 col-form-label\">{{'Attachment'|translate}}</label>\r\n <div class=\"col-sm-8\">\r\n <input type=\"file\" formControlName=\"Attachment\" (change)=\"handleFileInput($event)\">\r\n </div>\r\n </div>\r\n <div class=\"modal-footer\">\r\n <button type=\"submit\" [disabled]=\"SendEmailForm.invalid\" class=\"btn btn-primary float-right\">{{'Send'|translate}}</button>\r\n <button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\" (click)=\"closeModel()\">{{'Close'|translate}}</button>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n </div>\r\n</div>" }]
9419
+ }], ctorParameters: function () { return [{ type: i3.FormBuilder }, { type: SupportRequestService }]; }, propDecorators: { EntityTypeId: [{
9420
+ type: Input
9421
+ }], RecId: [{
9422
+ type: Input
9423
+ }], closeSendEmailModel: [{
9424
+ type: Output
9425
+ }] } });
9426
+
9427
+ class SupportRequestDetailsComponent {
9428
+ constructor(taskService, EntityTypeSetupService, fb, actRoute, gridServiceService, ticketService, globalService, route) {
9429
+ this.taskService = taskService;
9430
+ this.EntityTypeSetupService = EntityTypeSetupService;
9431
+ this.fb = fb;
9432
+ this.actRoute = actRoute;
9433
+ this.gridServiceService = gridServiceService;
9434
+ this.ticketService = ticketService;
9435
+ this.globalService = globalService;
9436
+ this.route = route;
9437
+ this.ViewFrom = "Page";
9438
+ this.IsWfAction = false;
9439
+ this.Language = 'Eng';
9440
+ this.Channel = '3';
9441
+ this.ChannelEn = 'Portal';
9442
+ this.ChannelAr = 'صفحة العميل';
9443
+ this.closeCreateModel = new EventEmitter();
9444
+ this.environment = environment;
9445
+ // _TaskDetail: TaskVM =null;
9446
+ this._TaskDetail = null;
9447
+ this.stageId = null;
9448
+ this.EntityTypeId = null;
9449
+ this.EntityTypeIdRecId = null;
9450
+ this.refRecId = null;
9451
+ this.EntityFormId = null;
9452
+ this.EntityPageGroupsData = [];
9453
+ this.EntityDefaultPageGroupsData = [];
9454
+ this.pageTitle = "Process Stage";
9455
+ this.pageDesp = "Process Stage";
9456
+ this.selectMode = E_SelectMode.Multi;
9457
+ this.isAttach = false;
9458
+ this.isCreate = false;
9459
+ this.isEdit = false;
9460
+ this.isDelete = false;
9461
+ this.isExport = false;
9462
+ this.gridActionList = [];
9463
+ this.columnDefs = [
9464
+ { Field: 'ProcessStage', Name: 'Process Stage Id' },
9465
+ { Field: 'ProcessStageEn', Name: 'Process Stage' },
9466
+ { Field: 'Comments', Name: 'Comments' },
9467
+ { Field: 'StartDate', Name: 'Start Date', DataType: E_DataType.date },
9468
+ { Field: 'EndDate', Name: 'End Date', DataType: E_DataType.date },
9469
+ ];
9470
+ this.commentsData = [];
9471
+ this.commentsDataCount = 0;
9472
+ this.Searchcriteria = {
9473
+ Pagging: {
9474
+ PageNo: 1,
9475
+ PageSize: 10,
9476
+ },
9477
+ Where: [],
9478
+ SortOrder: 1,
9479
+ };
9480
+ this.displayPopupCreateView = false;
9481
+ this.CreateItemId = null;
9482
+ this.selectedActivityItem = null;
9483
+ this.commentsActivityItem = null;
9484
+ this.detailsEntityTypeId = null;
9485
+ this.Activity = null;
9486
+ this.ActivityType = [];
9487
+ this.ActivityTypeReadonly = [];
9488
+ this.TotalActivity = 0;
9489
+ this.StatusAndStageList = [];
9490
+ this.showStageDetails = false;
9491
+ this.selectedProcessList = [];
9492
+ this.tabDisplayView = 1;
9493
+ this.SortingField = { field: null, direction: null };
9494
+ this.activitySearchcriteria = {
9495
+ Pagging: {
9496
+ PageNo: 1,
9497
+ PageSize: 10,
9498
+ },
9499
+ Where: [],
9500
+ SortOrder: this.SortingField,
9501
+ };
9502
+ this.TaskList = [];
9503
+ this.ProcessStageList = [];
9504
+ this.TimelineList = [];
9505
+ this.TimelineListReadonly = [];
9506
+ this.TaskCommentFile = null;
9507
+ this.wfActionData = [
9508
+ { id: 1, name: "New" },
9509
+ { id: 2, name: "Forward" },
9510
+ { id: 3, name: "Reply" },
9511
+ { id: 4, name: "Esculation" },
9512
+ { id: 5, name: "Delegation" },
9513
+ { id: 6, name: "Complete" },
9514
+ { id: 7, name: "Cancel" },
9515
+ ];
9516
+ this.wfStageAction = null;
9517
+ this.action = null;
9518
+ this.showWorkflowPopup = false;
9519
+ this.workflowEntityFormId = null;
9520
+ this.assignmentForm = this.fb.group({
9521
+ ActionStatus: [''],
9522
+ AssignedTo: [''],
9523
+ TargetDate: [''],
9524
+ Description: [''],
9525
+ Comments: [''],
9526
+ });
9527
+ this.updateStatusAssignTo = [];
9528
+ this.actionPopup = false;
9529
+ this.targetDate = null;
9530
+ this.columnDef = [
9531
+ { Field: "Description", Name: "Description" },
9532
+ { Field: "AssignedTo", Name: "AssignedTo" },
9533
+ { Field: "TargetDate", Name: "TargetDate", DataType: E_DataType.date },
9534
+ { Field: "IsDoneEn", Name: "IsDone", },
9535
+ ];
9536
+ this.translatePipe = new TranslatePipe(this.globalService);
9537
+ this.IsShowCreatePopup = false;
9538
+ this.IsShowSendEmailPopup = false;
9539
+ }
9540
+ ngOnInit() {
9541
+ // this.actRoute.paramMap.subscribe((res) => {
9542
+ //
9543
+ // console.log(res);
9544
+ // if (this.ViewFrom != 'Popup') {
9545
+ // this.RecId = Number(res.get('RecId'));
9546
+ // this.EntityTypeRecId = Number(res.get('EntityTypeRecId'));
9547
+ // }
9548
+ // });
9549
+ this.getTaskDetails();
9550
+ this.getActivity();
9551
+ this.getWorkflowStatusWithStage();
9552
+ // this.getAssignGroupData();
9553
+ // this.getTaskAssignData();
9554
+ }
9555
+ getTaskDetails() {
9556
+ if (this.RecId != null) {
9557
+ this.EntityTypeSetupService.getDynamicById(this.EntityTypeRecId, this.RecId).subscribe((x) => {
9558
+ // alert("a");
9559
+ // ;
9560
+ this._TaskDetail = x;
9561
+ this.stageId = x.ProcessStage;
9562
+ this.EntityTypeId = x.EntityTypeId;
9563
+ this.EntityTypeIdRecId = x.EntityTypeRecId;
9564
+ this.refRecId = x.RecId;
9565
+ this.GetPageList(this.storeCriteria);
9566
+ if (this._TaskDetail && this._TaskDetail.uploadFiles && this._TaskDetail.uploadFiles.length > 0) {
9567
+ this._TaskDetail.uploadFiles.map(x => {
9568
+ if (x.Ext) {
9569
+ x.ExtSm = x.Ext.toLowerCase();
9570
+ x.ExtSm = x.ExtSm.replace('.', '');
9571
+ }
9572
+ });
9573
+ }
9574
+ this.getActivities();
9575
+ this.getEntityFormDetails();
9576
+ // this.getComments();
9577
+ if (this.IsWfAction) {
9578
+ this.getWfStageAction(x.EntityTypeId, x.ProcessStage);
9579
+ }
9580
+ }, (error) => error.error);
9581
+ }
9582
+ }
9583
+ getEntityFormDetails() {
9584
+ this.EntityDefaultPageGroupsData = [];
9585
+ this.EntityPageGroupsData = [];
9586
+ this.EntityTypeSetupService.getActiveEntityFormByDetails(this.EntityTypeId).subscribe((res) => {
9587
+ if (res.FormData) {
9588
+ let _FormData = JSON.parse(res.FormData);
9589
+ if (_FormData.PageGroup) {
9590
+ if (Array.isArray(_FormData.PageGroup)) {
9591
+ this.EntityPageGroupsData = _FormData.PageGroup;
9592
+ }
9593
+ }
9594
+ if (_FormData.defaultPageGroups) {
9595
+ if (Array.isArray(_FormData.defaultPageGroups)) {
9596
+ this.EntityDefaultPageGroupsData = _FormData.defaultPageGroups;
9597
+ }
9598
+ }
9599
+ }
9600
+ this.EntityFormId = res.RecId;
9601
+ }, (error) => {
9602
+ console.log(error);
9603
+ });
9604
+ }
9605
+ getWorkflowActionComments(comments, updateFileds, updateFieldsObject) {
9606
+ // alert("zz");
9607
+ let updateFieldsObjectString = JSON.stringify(updateFieldsObject);
9608
+ this.EntityTypeSetupService.urlPostTaskWfAction(this.RecId, this.stageId, this.action, comments, updateFileds, updateFieldsObjectString, this.EntityTypeId).subscribe((res) => {
9609
+ // this.wfActionData = res;
9610
+ this.getTaskDetails();
9611
+ console.log(res);
9612
+ }, (error) => {
9613
+ var _a, _b, _c;
9614
+ error.error;
9615
+ if (((_a = error.error) === null || _a === void 0 ? void 0 : _a.status) == false) {
9616
+ let msg = JSON.parse((_b = error.error) === null || _b === void 0 ? void 0 : _b.msg);
9617
+ if (msg && msg.msg) {
9618
+ msg = msg.msg;
9619
+ }
9620
+ else {
9621
+ msg = (_c = error.error) === null || _c === void 0 ? void 0 : _c.msg;
9622
+ }
9623
+ Swal.fire(this.translatePipe.transform(msg));
9624
+ }
9625
+ else {
9626
+ Swal.fire(this.translatePipe.transform(error.ExceptionMessage), this.translatePipe.transform(error.message));
9627
+ }
9628
+ });
9355
9629
  }
9356
- assignDocumentTypeForEntityType(data) {
9357
- const st = data.DocumentTypeRecId.map(x => "DocumentTypeRecId=" + x).join("&");
9358
- let url_ = `${environment.ServerUrl}security/documenttype/entitytype/assign?${st}&MenuOrEntityRecId=${data.MenuOrEntityRecId}`;
9359
- return this.http.post(url_, null);
9630
+ getComments() {
9631
+ // alert("getcommends");
9632
+ if (this.refRecId != null) {
9633
+ this.ticketService.urlGetTicketUpdateByRecId(this.refRecId).subscribe((x) => {
9634
+ // alert("getcommends");
9635
+ this.commentsData = x.Data;
9636
+ this.commentsDataCount = x.TotalCount;
9637
+ }, (error) => {
9638
+ // Swal.fire(error);
9639
+ Swal.fire({
9640
+ title: this.translatePipe.transform(error.error),
9641
+ });
9642
+ // error.error
9643
+ });
9644
+ }
9360
9645
  }
9361
- unassignDocumentTypeForEntityType(data) {
9362
- const st = data.DocumentTypeRecId.map(x => "DocumentTypeRecId=" + x).join("&");
9363
- let url_ = `${environment.ServerUrl}security/documenttype/entitytype/unassign?${st}&MenuOrEntityRecId=${data.MenuOrEntityRecId}`;
9364
- return this.http.post(url_, data);
9646
+ getActivity() {
9647
+ //this.EntityType = data.EntityType;
9648
+ this.EntityTypeSetupService.getAllAssinedActivites(this.Searchcriteria, this.EntityTypeRecId)
9649
+ // this.EntityTypeSetupService.getActiveEntityTypeSetup(this.Searchcriteria, this.EntityType, "")
9650
+ .subscribe((res) => {
9651
+ this.ActivityFields = res.Data;
9652
+ if (this.ActivityFields.length > 0) {
9653
+ const sortBy = ['Task', 'SMS', 'Email', 'Notes', 'Comments']; //sort by descending order
9654
+ this.ActivityFields = this.ActivityFields.sort((a, b) => sortBy.indexOf(b.Description) - sortBy.indexOf(a.Description));
9655
+ let taskActivity = { Description: 'Task', RecId: 58, Type: 'Task' };
9656
+ this.ActivityFields.push(taskActivity);
9657
+ this.openDefaultComments();
9658
+ }
9659
+ });
9365
9660
  }
9366
- assignDocumentTypeForEntityTypeWithBody(data, EntityTypeId) {
9367
- let url_ = `${environment.ServerUrl}security/documenttypeformbody/entitytype/assign?MenuOrEntityRecId=${EntityTypeId}`;
9368
- return this.http.post(url_, data);
9661
+ getActivityFileUploads(item) {
9662
+ if (item.showform && item.RecId && item.ActivityTypeId) {
9663
+ this.EntityTypeSetupService.getActivityUploadFile(item.RecId, this.EntityTypeRecId, item.ActivityTypeId)
9664
+ .subscribe((res) => {
9665
+ if (res && res.length > 0) {
9666
+ item.uploadFiles = res;
9667
+ }
9668
+ });
9669
+ }
9369
9670
  }
9370
- unassignDocumentTypeForEntityTypeWithBody(data, EntityTypeId) {
9371
- let url_ = `${environment.ServerUrl}security/documenttypeformbody/entitytype/unassign?MenuOrEntityRecId=${EntityTypeId}`;
9372
- return this.http.post(url_, data);
9671
+ getActivityFileUploadsReadonly(item) {
9672
+ if (item.RecId && item.ActivityTypeId) {
9673
+ this.EntityTypeSetupService.getActivityUploadFile(item.RecId, this.EntityTypeRecId, item.ActivityTypeId)
9674
+ .subscribe((res) => {
9675
+ if (res && res.length > 0) {
9676
+ item.uploadFiles = res;
9677
+ }
9678
+ this.ActivityTypeReadonly.push(item);
9679
+ });
9680
+ }
9373
9681
  }
9374
- getDocumentAssignList(Criteria, EntityRecId) {
9375
- const url = Common.getDocumentAssignList(EntityRecId);
9376
- return this.http.get(url);
9682
+ addEvents(data) {
9683
+ this.openPopupCreatePage(data);
9377
9684
  }
9378
- open() {
9379
- this.IsPopUp = true;
9685
+ openPopupCreatePage(item) {
9686
+ this.CreateItemId = null;
9687
+ setTimeout(() => (this.CreateItemId = item.RecId), 0);
9688
+ this.selectedActivityItem = item;
9689
+ if (item.Description != 'Comments')
9690
+ this.displayPopupCreateView = true;
9691
+ // this.Activity=item.RecId;
9380
9692
  }
9381
- close() {
9382
- this.IsPopUp = false;
9693
+ closePopupCreateView(Type) {
9694
+ this.CreateItemId = null;
9695
+ this.displayPopupCreateView = false;
9696
+ if (Type == 'Create') {
9697
+ this.getActivities();
9698
+ this.openDefaultComments();
9699
+ }
9383
9700
  }
9384
- getSideMenuData() {
9385
- let url = environment.ServerUrl + "entitytype/productivitymenuitems";
9386
- return this.http.get(url);
9701
+ slider(direction, Id) {
9702
+ this.slide(direction, Id);
9387
9703
  }
9388
- getMenuItemData(criteriastr) {
9389
- let url = environment.ServerUrl + "security/menuitemsmap";
9390
- return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
9704
+ slide(direction, Id) {
9705
+ let container = document.getElementById(Id);
9706
+ let scrollCompleted = 0;
9707
+ let slideVar = setInterval(function () {
9708
+ if (direction == 'left') {
9709
+ container.scrollLeft -= 50;
9710
+ }
9711
+ else {
9712
+ container.scrollLeft += 50;
9713
+ }
9714
+ scrollCompleted += 10;
9715
+ if (scrollCompleted >= 50) {
9716
+ window.clearInterval(slideVar);
9717
+ }
9718
+ }, 50);
9391
9719
  }
9392
- getSingleMenuItemData(RecId) {
9393
- let url = environment.ServerUrl + "security/menuitemsmap/" + RecId;
9394
- return this.http.get(url);
9720
+ getWorkflowStatusWithStage() {
9721
+ this.EntityTypeSetupService.getAllWfStage(null, this.EntityTypeRecId, true)
9722
+ .subscribe((res) => {
9723
+ // alert("StatusAndStageList");
9724
+ this.StatusAndStageList = res.Data;
9725
+ // .sort((a, b) => {
9726
+ // if (a.StageId < b.StageId) return -1;
9727
+ // else if (a.StageId > b.StageId) return 1;
9728
+ // else return 0;
9729
+ // });
9730
+ let showallIndex = this.StatusAndStageList.findIndex(x => x.OrderId == -1);
9731
+ this.StatusAndStageList.splice(showallIndex, 1);
9732
+ let showPendingIndex = this.StatusAndStageList.findIndex(x => x.OrderId == 0);
9733
+ this.StatusAndStageList.splice(showPendingIndex, 1);
9734
+ }, (error) => {
9735
+ var _a;
9736
+ console.log(error);
9737
+ Swal.fire(this.translatePipe.transform((_a = error.error) === null || _a === void 0 ? void 0 : _a.ExceptionMessage), this.translatePipe.transform(error === null || error === void 0 ? void 0 : error.message), 'error');
9738
+ });
9395
9739
  }
9396
- createMenuItemData(data) {
9397
- let url = environment.ServerUrl + "security/menuitemsmap/add";
9398
- return this.http.post(url, data);
9740
+ selectProcess(item) {
9741
+ if (this.selectedProcess)
9742
+ this.showStageDetails = false;
9743
+ if (this.selectedProcess && this.selectedProcess.ProcessStage == item.StageId) {
9744
+ setTimeout(() => (this.selectedProcess = null), 500);
9745
+ }
9746
+ else {
9747
+ this.showStageDetails = true;
9748
+ this.selectedProcessList = this.ProcessStageList.filter((x) => x.ProcessStage == item.StageId);
9749
+ this.selectedProcess =
9750
+ this.selectedProcessList[this.selectedProcessList.length - 1];
9751
+ }
9399
9752
  }
9400
- updateMenuItemData(data) {
9401
- let url = environment.ServerUrl + "security/menuitemsmap/update";
9402
- return this.http.put(url, data);
9753
+ closeProcess() {
9754
+ this.showStageDetails = false;
9755
+ setTimeout(() => (this.selectedProcess = null), 500);
9403
9756
  }
9404
- deleteMenuItemData(RecId) {
9405
- let url = environment.ServerUrl + "security/menuitemsmap?recIds=" + RecId;
9406
- return this.http.delete(url);
9757
+ gridChangeTabs(data) {
9758
+ this.tabDisplayView = Number(data);
9407
9759
  }
9408
- }
9409
- AttachmentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: AttachmentService, deps: [{ token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
9410
- AttachmentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: AttachmentService, providedIn: 'root' });
9411
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: AttachmentService, decorators: [{
9412
- type: Injectable,
9413
- args: [{
9414
- providedIn: 'root'
9415
- }]
9416
- }], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
9417
- const Common = {
9418
- getAttachmentByMenuRecId: (MenuOrEntityRecId, attachmentType) => `${environment.ServerUrl}security/documenttype/showattachement?MenuOrEntityRecId=${MenuOrEntityRecId}&attachmentType=${attachmentType}`,
9419
- uploadAttachFile: () => `${environment.ServerUrl}security/documenttype/uploadfile`,
9420
- getUploadFileList: (DoctypeRecId, RefRecId) => `${environment.ServerUrl}security/documenttype/uploadfilelist/${DoctypeRecId}/${RefRecId}`,
9421
- activateUploadFile: (RecId) => `${environment.ServerUrl}security/documenttype/activefile?RecId=${RecId}`,
9422
- inActivateUploadFile: (RecId) => `${environment.ServerUrl}security/documenttype/inactivefile?RecId=${RecId}`,
9423
- getDocumentType: () => `${environment.ServerUrl}security/documenttype`,
9424
- getDocumentTypeByRecId: (RecId) => `${environment.ServerUrl}security/documenttype/${RecId}`,
9425
- deleteDocumentType: (RecId) => `${environment.ServerUrl}security/documenttype?recIds=${RecId}`,
9426
- createDocumentType: () => `${environment.ServerUrl}security/documenttype/add`,
9427
- updateDocumentType: () => `${environment.ServerUrl}security/documenttype/update`,
9428
- getAttachmentSetupList: () => `${environment.ServerUrl}entitytype/productivitymenuitems`,
9429
- getDocumentTypeAssignUnAssign: (MenuRecId) => `${environment.ServerUrl}security/documenttype/menu/assignandunassign?MenuOrEntityRecId=${MenuRecId}`,
9430
- assignDocumentType: () => `${environment.ServerUrl}security/documenttype/menu/assign`,
9431
- unassignDocumentType: () => `${environment.ServerUrl}security/documenttype/menu/unassign`,
9432
- getDocumentTypeAssignUnAssignForEntityType: (EntityRecId) => `${environment.ServerUrl}security/documenttype/entitytype/assignandunassign?MenuOrEntityRecId=${EntityRecId}`,
9433
- getDocumentAssignList: (EntityRecId) => `${environment.ServerUrl}security/documenttype/entitytype/assignandunassign?MenuOrEntityRecId=${EntityRecId}`,
9434
- assignDocumentTypeForEntityType: () => `${environment.ServerUrl}security/documenttype/entitytype/assign`,
9435
- unassignDocumentTypeForEntityType: () => `${environment.ServerUrl}security/documenttype/entitytype/unassign`,
9436
- assignDocumentTypeForEntityTypewithdocumenttypeformbody: () => `${environment.ServerUrl}security/documenttype/documenttypeformbody/entitytype/assign`,
9437
- unassignDocumentTypeForEntityTypedocumenttypeformbody: () => `${environment.ServerUrl}security/documenttype/documenttypeformbody/entitytype/unassign`,
9438
- };
9439
- const BaseUrl = {
9440
- commonURL: "/api/v1/common",
9441
- };
9442
-
9443
- class SupportRequestCreateComponent {
9444
- constructor(entityTypeSetup, attachmentService, router, route, supportService, globalService) {
9445
- this.entityTypeSetup = entityTypeSetup;
9446
- this.attachmentService = attachmentService;
9447
- this.router = router;
9448
- this.route = route;
9449
- this.supportService = supportService;
9450
- this.globalService = globalService;
9451
- this.EntityFormId = null;
9452
- this.EntityTypeId = null;
9453
- this.ViewFrom = "Page";
9454
- this.Type = "Create";
9455
- this.FormValues = null;
9456
- this.IssueType = null;
9457
- this.IssueGroup = null;
9458
- this.IssueSubGroup = null;
9459
- this.IssueTypeEn = null;
9460
- this.IssueGroupEn = null;
9461
- this.IssueSubGroupEn = null;
9462
- this.IssueTypeAr = null;
9463
- this.IssueGroupAr = null;
9464
- this.IssueSubGroupAr = null;
9465
- this.Source = null;
9466
- this.CreatedByUserType = null;
9467
- this.Channel = null;
9468
- this.ChannelEn = null;
9469
- this.ChannelAr = null;
9470
- this.RequestField = null;
9471
- this.RequesterId = null;
9472
- this.RequesterIdEn = null;
9473
- this.closeCreate = new EventEmitter();
9474
- this.ParameterData = null;
9475
- this.DocumentList = [];
9476
- this.createFormData = {};
9477
- this.pageForm = {};
9478
- this.translatePipe = new TranslatePipe(this.globalService);
9760
+ loadMoreActivities() {
9761
+ this.activitySearchcriteria.Pagging.PageSize += 10;
9762
+ this.getActivities();
9479
9763
  }
9480
- ngOnInit() {
9481
- this.route.paramMap.subscribe((res) => {
9482
- if (this.ViewFrom != "Popup") {
9483
- this.EntityTypeId = Number(res.get('EntityTypeId'));
9484
- 8;
9485
- }
9486
- // this.EntityTypeId = Number(res.get('EntityTypeId'));
9764
+ getActivities() {
9765
+ // let ActivityId = 5;
9766
+ this.EntityTypeSetupService
9767
+ .getDynamicByEntityRefrecidwithoutCriteria(this.EntityTypeRecId, this.refRecId, this.activitySearchcriteria, this.Activity)
9768
+ .subscribe((res) => {
9769
+ this.ActivityType = res.Data;
9770
+ if (res && res.Data)
9771
+ this.ActivityTypeReadonly = [];
9772
+ res.Data.forEach(x => {
9773
+ this.getActivityFileUploadsReadonly(x);
9774
+ });
9775
+ this.setTimeline();
9776
+ this.TotalActivity = res.TotalCount;
9777
+ console.log('Activity', res.Data);
9487
9778
  });
9488
- this.getActiveEntityForm();
9489
- this.getAssignedDocumentList();
9490
- this.ParameterData = {
9491
- IssueType: this.IssueType,
9492
- IssueTypeEn: this.IssueTypeEn,
9493
- IssueTypeAr: this.IssueTypeAr,
9494
- IssueGroup: this.IssueGroup,
9495
- IssueGroupEn: this.IssueGroupEn,
9496
- IssueGroupAr: this.IssueGroupAr,
9497
- Issue: this.IssueSubGroup,
9498
- IssueEn: this.IssueSubGroupEn,
9499
- IssueAr: this.IssueSubGroupAr,
9500
- CreatedByUserType: this.CreatedByUserType,
9501
- Source: this.Source,
9502
- Channel: this.Channel,
9503
- ChannelEn: this.ChannelEn,
9504
- ChannelAr: this.ChannelAr,
9505
- UserType: this.RequesterIdEn,
9506
- CustomerId: this.RequesterId,
9779
+ (error) => {
9780
+ error.error;
9507
9781
  };
9508
9782
  }
9509
- getActiveEntityForm() {
9510
- this.entityTypeSetup.getActiveEntityFormByDetails(this.EntityTypeId).subscribe((res) => {
9511
- this.EntityFormId = res.RecId;
9512
- }, (error) => {
9513
- console.log(error);
9783
+ setTimeline() {
9784
+ this.TimelineList = [];
9785
+ this.TimelineListReadonly = [];
9786
+ if (Array.isArray(this.ActivityType)) {
9787
+ if (this.ActivityType.length > 0)
9788
+ this.TimelineList.push(...this.ActivityType);
9789
+ this.TimelineListReadonly.push(...this.ActivityType);
9790
+ }
9791
+ if (Array.isArray(this.ActivityTypeReadonly)) {
9792
+ if (this.ActivityTypeReadonly.length > 0)
9793
+ this.TimelineListReadonly.push(...this.ActivityTypeReadonly);
9794
+ }
9795
+ // if (Array.isArray(this.TaskList)) {
9796
+ // if (this.TaskList.length > 0) this.TimelineList.push(...this.TaskList);
9797
+ // }
9798
+ // if (Array.isArray(this.ProcessStageList)) {
9799
+ // if (this.ProcessStageList.length > 0) {
9800
+ // this.ProcessStageList = this.ProcessStageList.map((x) => {
9801
+ // x.Type = 'Workflow';
9802
+ // x.ActivityTypeIdEn = 'Comments';
9803
+ // return x;
9804
+ // });
9805
+ // this.TimelineList.push(...this.ProcessStageList);
9806
+ // }
9807
+ // }
9808
+ this.TimelineList.sort((a, b) => {
9809
+ if (a.CreatedDatetime < b.CreatedDatetime)
9810
+ return -1;
9811
+ else if (a.CreatedDatetime > b.CreatedDatetime)
9812
+ return 1;
9813
+ else
9814
+ return 0;
9815
+ });
9816
+ this.TimelineListReadonly.sort((a, b) => {
9817
+ if (a.CreatedDatetime < b.CreatedDatetime)
9818
+ return -1;
9819
+ else if (a.CreatedDatetime > b.CreatedDatetime)
9820
+ return 1;
9821
+ else
9822
+ return 0;
9514
9823
  });
9515
9824
  }
9516
- getAssignedDocumentList() {
9517
- this.attachmentService.getAttachmentList(this.EntityTypeId, 2).subscribe((success) => {
9518
- this.DocumentList = success;
9519
- this.DocumentList.map(x => {
9520
- x.FileList = [];
9521
- return x;
9825
+ GetPageList(Criteria) {
9826
+ if (this.EntityTypeId != null) {
9827
+ this.storeCriteria = Criteria;
9828
+ // let data: Observable<IEntityWFstageVM[]>;
9829
+ this.EntityTypeSetupService.getWfInsProcessStageComments(Criteria, this.EntityTypeId, this.refRecId).subscribe((res) => {
9830
+ // alert("grid data");
9831
+ this.ProcessStageList = res.Data;
9832
+ this.setTimeline();
9833
+ console.log(res);
9834
+ this.loadGrid(res.Data, res.TotalCount);
9835
+ }, (error) => {
9836
+ var _a;
9837
+ console.log(error);
9838
+ this.loadGrid([], 0);
9839
+ Swal.fire(this.translatePipe.transform((_a = error.error) === null || _a === void 0 ? void 0 : _a.ExceptionMessage), this.translatePipe.transform(error === null || error === void 0 ? void 0 : error.message), 'error');
9522
9840
  });
9841
+ }
9842
+ }
9843
+ fileChange(event) {
9844
+ this.fileList = event.target.files;
9845
+ }
9846
+ commentSubmit() {
9847
+ let data = {
9848
+ commnets: this.Comments,
9849
+ refRecId: this.RecId,
9850
+ entitytyperecid: this.EntityTypeRecId
9851
+ };
9852
+ // this.service.urlComments(data).subscribe(
9853
+ // (x: any) => this.taskAssignData = x);
9854
+ let formData = new FormData();
9855
+ if (this.fileList && this.fileList.length > 0) {
9856
+ let file = this.fileList[0];
9857
+ formData.append('Files', file, file.name);
9858
+ }
9859
+ this.EntityTypeSetupService.postTaskComments(this.fileList, data).subscribe((x) => {
9860
+ this.Comments = null;
9861
+ this.CommentsTitle = null;
9862
+ this.TaskCommentFile = null;
9863
+ this.getComments();
9864
+ }, (error) => error.error);
9865
+ }
9866
+ // commentsActivityItem:any = null;
9867
+ openDefaultComments() {
9868
+ this.commentsActivityItem = this.ActivityFields.filter((x) => x.ActionType == '5')[0];
9869
+ // if (comments && comments.length > 0) {
9870
+ // this.commentsActivityItem = null;
9871
+ // setTimeout(() => (this.commentsActivityItem = comments[0]), 0);
9872
+ // this.commentsActivityItem = comments[0];
9873
+ // this.openPopupCreatePage(comments[0]);
9874
+ // }
9875
+ // else {
9876
+ // this.openPopupCreatePage(this.ActivityFields[0]);
9877
+ // }
9878
+ }
9879
+ getWfStageAction(EntityTypeId, StageId) {
9880
+ if (EntityTypeId == null)
9881
+ return;
9882
+ this.EntityTypeSetupService.urlGetWfStageAction(EntityTypeId, StageId).subscribe((res) => {
9883
+ // res = [{"Action":10,"ActionDescription":"InProgress","StageRecId":1,"ActionComplete":null,"ProcessId":null,"StageId":1,"StageTypeId":1,"ActionRecId":1,"StageDescription":"New"}]
9884
+ this.wfStageAction = res;
9885
+ console.log(res);
9523
9886
  }, (error) => {
9887
+ error.error;
9524
9888
  });
9525
9889
  }
9526
- docFileChange(event, item) {
9527
- let _file = event.target.files;
9528
- item.FileList = [];
9529
- if (_file && _file.length > 0) {
9530
- let _Sfile = _file;
9531
- for (let index = 0; index < _file.length; index++) {
9532
- let _file = {
9533
- File: _Sfile.item(index),
9534
- FileName: _Sfile.item(index).name
9535
- };
9536
- item.FileList.push(_file);
9537
- }
9538
- item.File = _file.item(0);
9539
- item.FileName = _file.item(0).name;
9890
+ getStatusField(data) {
9891
+ this.action = data.ActionRecId;
9892
+ this.workflowEntityFormId = data.WorkFlowForm;
9893
+ this.showWorkflowPopup = true;
9894
+ this.EntityTypeSetupService.onshowWorkflowPopup.next({
9895
+ showWorkflowPopup: true,
9896
+ fieldConfig: [],
9897
+ });
9898
+ }
9899
+ backToList() {
9900
+ this.route.navigate(['/EntityTypeSetup/task', this.EntityTypeRecId]);
9901
+ }
9902
+ ngOnDestroy() {
9903
+ this.globalService.showBackIcon = false;
9904
+ }
9905
+ closeModelPopup() {
9906
+ this.actionPopup = false;
9907
+ }
9908
+ GetFormattedDate(_date) {
9909
+ var todayTime = new Date(_date);
9910
+ var month = todayTime.getMonth() + 1;
9911
+ var day = todayTime.getDate();
9912
+ var year = todayTime.getFullYear();
9913
+ return year + "-" + month + "-" + day;
9914
+ }
9915
+ assignSubmit() {
9916
+ if (this.assignmentForm.value.TargetDate != "" && this.assignmentForm.value.TargetDate != null) {
9917
+ this.targetDate = this.GetFormattedDate(this.assignmentForm.value.TargetDate);
9918
+ this.submitData = {
9919
+ recId: this.RecId,
9920
+ ActionStatus: this.actionFormActionId,
9921
+ AssignedTo: this.assignmentForm.value.AssignedTo,
9922
+ Description: this.assignmentForm.value.Description,
9923
+ Comments: this.assignmentForm.value.Comments,
9924
+ };
9540
9925
  }
9541
9926
  else {
9542
- item.FileList = [];
9543
- item.File = null;
9544
- item.FileName = null;
9927
+ this.submitData = {
9928
+ recId: this.RecId,
9929
+ ActionStatus: this.actionFormActionId,
9930
+ AssignedTo: this.assignmentForm.value.AssignedTo,
9931
+ TargetDate: this.targetDate,
9932
+ Description: this.assignmentForm.value.Description,
9933
+ Comments: this.assignmentForm.value.Comments,
9934
+ };
9545
9935
  }
9546
- }
9547
- closeCreatePage() {
9548
- // this.router.navigate([AllRoutes.Entity.DynamicTicketList]);
9549
- this.closeCreate.emit({ Type: "Cancel" });
9550
- }
9551
- submitTicketCreate() {
9552
- let CreateData = this.createFormData;
9553
- if (!this.pageForm.valid) {
9554
- // Swal.fire('Fill all mandatory fields', '', 'warning');
9936
+ this.taskService.TaskAssignmentUpdateStatus(this.submitData, this.EntityTypeRecId).subscribe((x) => {
9937
+ this.assignmentForm.reset();
9938
+ this.closeModelPopup();
9939
+ this.taskService.showCommentPopup = false;
9940
+ this.taskService.close();
9941
+ this.getAssignmentByRefRecIdList(this.HistoryListCriteria);
9942
+ // Swal.fire(x);
9555
9943
  Swal.fire({
9556
- title: this.translatePipe.transform('Fill all mandatory fields'),
9944
+ title: this.translatePipe.transform(x),
9557
9945
  });
9558
- return;
9559
- }
9560
- if (this.Type == "Edit") {
9561
- if (!this.FormValues || !this.FormValues.RecId) {
9562
- // Swal.fire("", "Form record not found", "warning");
9563
- Swal.fire({
9564
- title: this.translatePipe.transform('Form record not found'),
9565
- });
9566
- return;
9567
- }
9568
- CreateData.EntityTypeId = this.EntityTypeId;
9569
- CreateData.RecId = this.FormValues.RecId;
9570
- let _data = JSON.stringify(CreateData);
9571
- this.entityTypeSetup.updateDynamic(_data).subscribe((res) => {
9572
- // Swal.fire("Updated sucessfully");
9946
+ this.getTaskDetails();
9947
+ this.getComments();
9948
+ }, (error) => {
9949
+ this.assignmentForm.reset();
9950
+ this.closeModelPopup();
9951
+ this.taskService.showCommentPopup = false;
9952
+ this.taskService.close();
9953
+ // Swal.fire(error.error);
9954
+ Swal.fire({
9955
+ title: this.translatePipe.transform(error.error),
9956
+ });
9957
+ // alert("err");
9958
+ // error.error
9959
+ });
9960
+ }
9961
+ getAssignmentByRefRecIdList(Criteria) {
9962
+ this.HistoryListCriteria = Criteria;
9963
+ if (this.RecId != null) {
9964
+ this.globalService.dataLoader = true;
9965
+ this.taskService.assignmentbyrefrecid(Criteria, this.RecId, this.EntityTypeRecId).subscribe((x) => {
9966
+ // alert("get");
9967
+ this.loadGrid(x.Data, x.TotalCount);
9968
+ this.globalService.dataLoader = false;
9969
+ }, (error) => {
9970
+ // Swal.fire(error);
9971
+ // error.error
9573
9972
  Swal.fire({
9574
- title: this.translatePipe.transform('Updated sucessfully'),
9973
+ title: this.translatePipe.transform(error.error),
9575
9974
  });
9576
- this.pageForm.reset();
9577
- this.closeCreate.emit({ Type: "Edit" });
9578
- this.supportService.displayListPopUp = true;
9579
- }, (error) => {
9580
- console.log(error);
9581
9975
  });
9582
9976
  }
9583
- else {
9584
- CreateData.EntityTypeId = this.EntityTypeId;
9585
- CreateData.IssueType = this.IssueType;
9586
- CreateData.IssueGroup = this.IssueGroup;
9587
- CreateData.Issue = this.IssueSubGroup;
9588
- CreateData.Source = this.Source;
9589
- CreateData.CreatedByUserType = this.CreatedByUserType;
9590
- CreateData.Channel = this.Channel;
9591
- if (this.RequestField && this.RequesterId) {
9592
- CreateData[this.RequestField] = this.RequesterId;
9593
- }
9594
- let _data = JSON.stringify(CreateData);
9595
- let checkFileMandatory = true;
9596
- for (let index = 0; index < this.DocumentList.length; index++) {
9597
- let doc = this.DocumentList[index];
9598
- if (doc.IsManatory) {
9599
- if (!(doc.FileList && doc.FileList.length > 0)) {
9600
- checkFileMandatory = false;
9601
- break;
9602
- }
9603
- }
9604
- }
9605
- if (!checkFileMandatory) {
9606
- Swal.fire({
9607
- title: this.translatePipe.transform('Attach the mandatory files'),
9977
+ }
9978
+ loadGrid(data, TotalRecord) {
9979
+ if (data) {
9980
+ if (data.length > 0)
9981
+ this.gridServiceService.onGridRefresh.next({
9982
+ isTrue: true,
9983
+ list: data,
9984
+ grid: 8,
9985
+ count: data.length,
9986
+ totalRecordCount: TotalRecord,
9608
9987
  });
9609
- return;
9610
- }
9611
- let fileObj = [];
9612
- this.DocumentList.map(x => {
9613
- if (x.FileList && x.FileList.length > 0) {
9614
- for (let index = 0; index < x.FileList.length; index++) {
9615
- const element = x.FileList[index];
9616
- let temp = { File: element.File, DoctypeRecId: x.RecId };
9617
- fileObj.push(temp);
9618
- }
9619
- }
9620
- });
9621
- fileObj = fileObj.filter(x => (x && x.DoctypeRecId));
9622
- const formData = new FormData();
9623
- fileObj.forEach((f) => formData.append('fileUpload', f.File));
9624
- this.entityTypeSetup.createDynamic(_data, formData, fileObj).subscribe((res) => {
9625
- Swal.fire({
9626
- title: this.translatePipe.transform('Created Successfully'),
9627
- confirmButtonText: this.translatePipe.transform("Ok"),
9988
+ else
9989
+ this.gridServiceService.onGridRefresh.next({
9990
+ isTrue: true,
9991
+ list: [],
9992
+ grid: 8,
9993
+ count: 0,
9994
+ totalRecordCount: 0,
9628
9995
  });
9629
- this.pageForm.reset();
9630
- this.closeCreate.emit({ Type: "Create", Data: res });
9631
- this.supportService.displayListPopUp = true;
9632
- // Swal.fire({
9633
- // title: 'Created Successfully,Do you want to Continue? ',
9634
- // showDenyButton: true,
9635
- // showCancelButton: true,
9636
- // denyButtonText: `Yes Go Details `,
9637
- // cancelButtonText: `Create New`,
9638
- // confirmButtonText: `No`,
9639
- // }).then((result) => {
9640
- // if (result.isConfirmed) {
9641
- // this.pageForm.reset();
9642
- // this.closeCreate.emit({ Type: "Create" });
9643
- // } else if (result.isDenied) {
9644
- // this.pageForm.reset();
9645
- // this.router.navigate([
9646
- // AllRoutes.Entity.DynamicTicketDetails,
9647
- // res.RecId,
9648
- // res.EntityTypeId,
9649
- // ])
9650
- // } else if (result.isDismissed) {
9651
- // this.pageForm.reset();
9652
- // }
9653
- // })
9654
- }, (error) => {
9655
- console.log(error);
9996
+ }
9997
+ else
9998
+ this.gridServiceService.onGridRefresh.next({
9999
+ isTrue: true,
10000
+ list: [],
10001
+ grid: 8,
10002
+ count: 0,
10003
+ totalRecordCount: 0,
9656
10004
  });
10005
+ }
10006
+ getTaskAssignData() {
10007
+ this.taskService.getTaskAssignData().subscribe((x) => this.taskAssignData = x);
10008
+ }
10009
+ submitComment(event) {
10010
+ if (event.keyCode == 13 && this.inputValue) {
10011
+ this.globalService.submitComments.next({ message: this.inputValue });
10012
+ this.inputValue = null;
9657
10013
  }
9658
10014
  }
9659
- emitTicketCreateForm(CreateData, pageForm) {
9660
- this.createFormData = CreateData;
9661
- this.pageForm = pageForm;
10015
+ showCreatePopup() {
10016
+ this.IsShowCreatePopup = true;
10017
+ }
10018
+ hideCreatePopup(IsHide, Data, IsReload, PageType) {
10019
+ this.IsShowCreatePopup = IsHide;
10020
+ if (Data && PageType == 'SelfService') {
10021
+ if (Data.RecId && Data.EntityTypeRecId) {
10022
+ this.RecId = Data.RecId;
10023
+ this.EntityTypeIdRecId = Data.EntityTypeRecId;
10024
+ this.IsWfAction = true;
10025
+ this.getTaskDetails();
10026
+ this.getActivity();
10027
+ this.getWorkflowStatusWithStage();
10028
+ }
10029
+ }
10030
+ else {
10031
+ this.closeCreateModel.emit({ IsClose: IsHide, Data: Data, IsReload: IsReload });
10032
+ }
10033
+ }
10034
+ showEmailCreatePopup() {
10035
+ this.IsShowSendEmailPopup = true;
10036
+ }
10037
+ hideEmailCreatePopup(IsHide, Data, IsReload) {
10038
+ this.IsShowSendEmailPopup = IsHide;
9662
10039
  }
9663
10040
  }
9664
- SupportRequestCreateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SupportRequestCreateComponent, deps: [{ token: EntityTypeSetupService }, { token: AttachmentService }, { token: i2.Router }, { token: i2.ActivatedRoute }, { token: SupportRequestService }, { token: GlobalService }], target: i0.ɵɵFactoryTarget.Component });
9665
- SupportRequestCreateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: SupportRequestCreateComponent, selector: "app-support-request-create", inputs: { EntityFormId: "EntityFormId", EntityTypeId: "EntityTypeId", ViewFrom: "ViewFrom", Type: "Type", FormValues: "FormValues", IssueType: "IssueType", IssueGroup: "IssueGroup", IssueSubGroup: "IssueSubGroup", IssueTypeEn: "IssueTypeEn", IssueGroupEn: "IssueGroupEn", IssueSubGroupEn: "IssueSubGroupEn", IssueTypeAr: "IssueTypeAr", IssueGroupAr: "IssueGroupAr", IssueSubGroupAr: "IssueSubGroupAr", Source: "Source", CreatedByUserType: "CreatedByUserType", Channel: "Channel", ChannelEn: "ChannelEn", ChannelAr: "ChannelAr", RequestField: "RequestField", RequesterId: "RequesterId", RequesterIdEn: "RequesterIdEn" }, outputs: { closeCreate: "closeCreate" }, ngImport: i0, template: "\r\n\r\n<div class=\"row \">\r\n\r\n <div class=\"col col-sm-12\">\r\n\r\n <div class=\"row\">\r\n <div class=\"whole dynamic_request_details\">\r\n <div class=\"card\">\r\n\r\n <!-- <div class=\"header\" style=\"border-bottom: 1px solid #ddd;\">\r\n <h2>\r\n {{Type=='Edit'?'Edit Request':'New Request Create'}}\r\n </h2>\r\n \r\n </div> -->\r\n\r\n <div class=\"body padding-0\">\r\n <div class=\"request-create\" >\r\n\r\n\r\n <ng-container *ngIf=\"EntityFormId \">\r\n <app-entity-dynamic-view [ParameterData]=\"ParameterData\"\r\n [RequestorField] =\"RequestField\" [RequestorFieldValue]=\"RequesterId\"\r\n [EntityFormId]=\"EntityFormId\" [PageGroupValues]=\"FormValues\" [ViewFrom]=\"'Details'\" [Type]=\"Type\"\r\n (submitFormValue)=\"emitTicketCreateForm($event.formdata,$event.pageForm)\"></app-entity-dynamic-view>\r\n </ng-container>\r\n\r\n <hr>\r\n\r\n <div class=\"m-b-20\" *ngIf=\"DocumentList && DocumentList.length > 0\">\r\n \r\n <h6 class=\"m-b-20\">{{'Files'|translate}} :</h6>\r\n\r\n\r\n <ul class=\"attached_lists\" >\r\n <li *ngFor=\"let doc of DocumentList\">\r\n <a class=\"\" [ngClass]=\"{'border-red': doc.IsManatory && !(doc.FileName) }\" >\r\n <span class=\"row m-0\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 65px;\">\r\n <button class=\"btn btn-outline attach-file-btn\" \r\n [ngClass]=\"{'btn-outline-danger':!(doc.FileName),'btn-success':doc.FileName }\">\r\n <i class=\"la la-upload\" style=\"font-size:25px;\"></i>\r\n <input class=\"attach-file\" type=\"file\" id=\"file_{{doc.RecId}}\" multiple (change)=\"docFileChange($event,doc)\" [(ngModel)]=\"doc.File\"\r\n [ngModelOptions]=\"{standalone: true}\">\r\n </button>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name\">\r\n <span [ngClass]=\"{'red': doc.IsManatory && !(doc.FileName) }\">\r\n {{ globalService.CurrentLanguage == 'Ar' ? (doc.DocumentNameAr ? doc.DocumentNameAr : (doc.DocumentName | translate)) :doc.DocumentName}}\r\n <!-- {{doc.DocumentName | translate}} -->\r\n <code class=\"red\" *ngIf=\"doc.IsManatory\">*</code></span>\r\n \r\n <ng-container *ngIf=\"doc.FileList.length >0; else elseTemplate\">\r\n <span class=\"themecolor\">{{doc.FileList.length}} {{'Files are selected' | translate }}</span>\r\n <br>\r\n <ng-container *ngFor=\"let _file of doc.FileList\">\r\n <span class=\"themecolor\">{{_file.FileName}}</span><br>\r\n </ng-container>\r\n \r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <span class=\"red\">{{'Files are not selected' | translate }}</span>\r\n </ng-template>\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n\r\n\r\n \r\n </div>\r\n\r\n <div class=\"text-center pull-right\">\r\n\r\n\r\n <button class=\"formcancelbtn btn btn-small m-l-5 m-r-5\" (click)=\"closeCreatePage()\">\r\n {{'Cancel'|translate}}\r\n </button>\r\n\r\n <button class=\"formsubmitbtn btn btn-small btn-theme m-l-5 m-r-5\" (click)=\"submitTicketCreate()\" style=\"color: #fff;font-weight: 600;\">\r\n {{Type=='Edit'?'Update Request':'Submit'|translate}} \r\n </button>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n </div>\r\n \r\n </div>\r\n\r\n </div>\r\n\r\n\r\n</div>\r\n\r\n\r\n", styles: [".attached_lists li{display:block;width:100%;margin-top:10px}.attached_lists li a{border-radius:5px;border:1px solid #ddd;width:100%;display:inline-block;padding:7px;text-decoration:none;color:#000}.attached_lists li a .attached_lists_name span:first-child{font-weight:600;display:block;margin-bottom:5px}.attach-file-btn{width:50px;height:40px;margin:0 5px;overflow:hidden;position:relative}.attach-file-btn .attach-file{position:absolute;left:0;top:0;bottom:0;right:0;width:100%;opacity:0;z-index:32}.formcancelbtn{padding-left:15px;padding-right:15px;border-radius:20px;min-width:50px;border:1px solid #c4cbcb}.formsubmitbtn{padding-left:15px;padding-right:15px;border-radius:20px;min-width:50px}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: EntityDynamicViewComponent, selector: "app-entity-dynamic-view", inputs: ["RequestorField", "RequestorFieldValue", "EntityFormId", "Type", "ViewFrom", "ModalSize", "PageGroupValues", "ParameterData"], outputs: ["closeDynamicViewPopup", "submitFormValue"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
9666
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SupportRequestCreateComponent, decorators: [{
10041
+ SupportRequestDetailsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SupportRequestDetailsComponent, deps: [{ token: TaskService }, { token: EntityTypeSetupService }, { token: i3.FormBuilder }, { token: i2.ActivatedRoute }, { token: GridServiceService }, { token: TicketApiService }, { token: GlobalService }, { token: i2.Router }], target: i0.ɵɵFactoryTarget.Component });
10042
+ SupportRequestDetailsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: SupportRequestDetailsComponent, selector: "app-support-request-details", inputs: { EntityTypeRecId: "EntityTypeRecId", RecId: "RecId", ViewFrom: "ViewFrom", IsWfAction: "IsWfAction", PageType: "PageType", RequesterTypeId: "RequesterTypeId", RequesterTypeIdEn: "RequesterTypeIdEn", RequesterId: "RequesterId", RequesterField: "RequesterField", Language: "Language", HostUrl: "HostUrl", Host: "Host", Source: "Source", Channel: "Channel", ChannelEn: "ChannelEn", ChannelAr: "ChannelAr" }, outputs: { closeCreateModel: "closeCreateModel" }, ngImport: i0, template: "<div class=\"details_sec whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n\r\n <div class=\"row \">\r\n\r\n\r\n <div class=\"col-sm-12 m-t-20 m-b-20\">\r\n <div class=\"breadcrumb-stage\">\r\n <div class=\"clearfix\">\r\n\r\n <div class=\"float-left breadcrumbs details_pages\" id=\"slide-view-list\" style=\"display: flex;width: calc(100% - 50px);\">\r\n <ng-container *ngFor=\"let item of StatusAndStageList; let i = index\">\r\n \r\n <a href=\"javascript:void(0);\"\r\n [ngClass]=\"{'active': item.StageId == selectedProcess?.ProcessStage,\r\n 'selected': item.StageId == _TaskDetail?.ProcessStage}\"\r\n (click)=\"selectProcess(item)\">\r\n <span class=\"breadcrumb__inner\">\r\n <span class=\"breadcrumb__title\">{{item.StageDescription|translate}}</span>\r\n </span>\r\n </a>\r\n </ng-container>\r\n </div>\r\n \r\n <div class=\"float-right arrow-border\">\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:13px;\" (click)=\"slider('left','slide-view-list')\"><i class=\"fa fa-arrow-left\"></i></a>\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:13px;\" (click)=\"slider('right','slide-view-list')\"><i class=\"fa fa-arrow-right\"></i></a>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"breadcrumb-action\">\r\n <span>\r\n <i class=\"la la-chevron-left\"></i>\r\n </span>\r\n <span>\r\n <i class=\"la la-chevron-right\"></i>\r\n </span>\r\n </div>\r\n\r\n <div *ngIf=\"selectedProcess && selectedProcess.ProcessStage\" class=\"breadcrumb-details animated\"\r\n [ngClass]=\"(showStageDetails)?'fadeIn':'fadeOut'\" style=\"padding: 20px;\">\r\n \r\n \r\n <div class=\"row\">\r\n <ng-container *ngFor=\"let item of selectedProcessList\">\r\n <div class=\"d-block field position-relative dynamic-view col col-12 col-sm-12 col-md-6 col-xl-6 m-b-20\">\r\n <span class=\"pull-right la la-times m-r-20\" style=\"font-size: 20px;position: absolute;right: 0;z-index: 111;\"\r\n (click)=\"closeProcess()\"></span>\r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'StageId'|translate}} </label>\r\n <span class=\"col\">: {{item.ProcessStage}} </span>\r\n </div>\r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Description'|translate}} </label>\r\n <span class=\"col\">: {{item?.ProcessStageEn}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Created User'|translate}} </label>\r\n <span class=\"col\">: {{item?.CreatedBy}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Start Date'|translate}} </label>\r\n <span class=\"col\">: {{item?.StartDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'End Date'|translate}} </label>\r\n <span class=\"col\">: {{item?.EndDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Comments'|translate}} </label>\r\n <span class=\"col\">: {{item?.Comments}} </span>\r\n </div>\r\n \r\n </div>\r\n </ng-container>\r\n </div>\r\n \r\n <div class=\"d-block field position-relative dynamic-view\" *ngIf=\"false\">\r\n <span class=\"pull-right la la-times m-r-20\" style=\"font-size: 20px;\" (click)=\"closeProcess()\"></span>\r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'StageId'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess.ProcessStage}} </span>\r\n </div>\r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Description'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.ProcessStageEn}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Created User'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.CreatedBy}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Start Date'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.StartDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'End Date'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.EndDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Comments'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.Comments}} </span>\r\n </div>\r\n \r\n </div>\r\n \r\n </div>\r\n \r\n \r\n </div>\r\n \r\n\r\n <div class=\"col col-sm-12\">\r\n\r\n\r\n <div class=\"row\">\r\n\r\n\r\n <div class=\"whole dynamic_request_details\">\r\n <div class=\"card\">\r\n\r\n\r\n <div class=\"req_page lists\" style=\"margin-bottom:unset !important;\">\r\n <div class=\"col-sm-12 user-tag p-0\">\r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"list-user-img\" src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\"\r\n >\r\n </div>\r\n <div class=\"detail-head\">{{_TaskDetail?.CreatedBy}}\r\n <span class=\"user-stage\">{{_TaskDetail?.CaseId |translate}}</span>\r\n </div>\r\n <div class=\"prioritys\">\r\n <span class=\"priority\" [ngClass]=\"_TaskDetail?.Priority_Desc\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.Priority_DescAr ? _TaskDetail?.Priority_DescAr : (_TaskDetail?.Priority_Desc |translate)) : _TaskDetail?.Priority_Desc }}\r\n <ng-container *ngIf=\"_TaskDetail.Priority_Desc == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <div class=\"status\">\r\n <span class=\"\" [ngClass]=\"_TaskDetail?.ProcessStageEn\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.ProcessStageAr ? _TaskDetail?.ProcessStageAr : (_TaskDetail?.ProcessStageEn |translate)) : _TaskDetail?.ProcessStageEn }}\r\n <ng-container *ngIf=\"_TaskDetail?.ProcessStageEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"clearfix\">\r\n <div class=\"custom-dropdown pull-left\">\r\n <!-- -->\r\n <div class=\"custom-dropdown\" style=\"color: #fff;border-radius: 10px;margin-bottom: 10px;background: #339e33;margin-top: 10px;\">\r\n <div class=\"dropdown\">\r\n <button class=\"dropbtn btn btn-success\">{{'Create'|translate}}</button>\r\n <div class=\"dropdown-content\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"showCreatePopup();PageType='Request'\">{{'Request' |translate}}</a>\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"showCreatePopup();PageType='Complaint'\">{{'Complaint' |translate}}</a>\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"showCreatePopup();PageType='SelfService'\">{{'SelfService' |translate}}</a>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <button style=\"margin: 10px 10px;\" class=\"btn btn-success pull-left\" *ngIf=\"EntityTypeRecId && refRecId\" (click)=\"showEmailCreatePopup()\">{{'Send Email'|translate}}</button>\r\n \r\n </div>\r\n <div class=\"addedDate\">\r\n <div >{{_TaskDetail?.CreatedDatetime | date :'dd/MM/yyyy h:mm a'}}</div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"content col-sm-12 clearfix\">\r\n <h4 class=\"themecolor float-left\">{{_TaskDetail?.Subject |translate}}</h4>\r\n <p>{{_TaskDetail?.Description|translate}}</p>\r\n </div>\r\n\r\n </div>\r\n\r\n <!-- <div class=\"header\">\r\n <h2>{{_TaskDetail?.Subject |translate}}\r\n <small>\r\n \r\n <div class=\"prioritys pull-left\">\r\n <span class=\"priority\" [ngClass]=\"_TaskDetail?.Priority_Desc\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.Priority_DescAr ? _TaskDetail?.Priority_DescAr : (_TaskDetail?.Priority_Desc |translate)) : _TaskDetail?.Priority_Desc }}\r\n <ng-container *ngIf=\"_TaskDetail.Priority_Desc == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n \r\n \r\n <span class=\"pull-left m-l-5 m-r-5 header-pipe\"></span>\r\n <span class=\"pull-left m-l-5 m-r-5\">{{'ProcessStage'|translate}} :</span>\r\n <span class=\"pull-left m-l-5 m-r-5\">\r\n {{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.ProcessStageAr ? _TaskDetail?.ProcessStageAr : (_TaskDetail?.ProcessStageEn |translate)) : _TaskDetail?.ProcessStageEn }}\r\n </span>\r\n <span class=\"pull-left m-l-5 m-r-5 header-pipe\"></span>\r\n <span class=\"pull-left m-l-5 m-r-5\">{{'Requested By' | translate}}</span>\r\n <span class=\"pull-left m-l-5 m-r-5 requestor\">{{_TaskDetail?.CreatedBy}}</span>\r\n <span class=\"pull-left m-l-5 m-r-5\">\r\n {{'On' |translate }}\r\n <span class=\"m-l-5 m-r-5\">\r\n {{_TaskDetail?.CreatedDatetime | date :'dd/MM/yyyy h:mm a'}}\r\n </span>\r\n </span>\r\n </small>\r\n <div class=\"pull-right\" *ngIf=\"IsWfAction\">\r\n <div class=\"custom-dropdown\" *ngIf=\"wfStageAction.length > 0\">\r\n <div class=\"dropdown\">\r\n <button href=\"javascript:void(0)\" class=\"btn btn-primary dropbtn\">{{'Action'|translate}} <i class=\"icon icon-options-vertical m-r-5\"></i></button>\r\n <div class=\"dropdown-content\">\r\n <span *ngIf=\"wfStageAction.length <= 0\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\">\r\n {{'No Action Found'|translate}}\r\n </a>\r\n </span>\r\n <span *ngFor=\"let item of wfStageAction\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"getStatusField(item)\">{{item.ActionDescription |translate}}</a>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </h2>\r\n\r\n </div> -->\r\n <div class=\"body\">\r\n <div class=\"request-details\">\r\n\r\n <h2 class=\"stage-title\">{{'Request Details'|translate}}</h2>\r\n\r\n <app-dynamic-details-view *ngIf=\"EntityFormId && _TaskDetail && _TaskDetail.RecId\"\r\n [EntityFormId]=\"EntityFormId\" [EntityTypeId]=\"EntityTypeIdRecId\" [PageGroupValues]=\"_TaskDetail\"\r\n [ViewType]=\"'Details'\" [pageGroups]=\"EntityPageGroupsData\"\r\n [defaultPageGroups]=\"EntityDefaultPageGroupsData\">\r\n </app-dynamic-details-view>\r\n\r\n <ng-container *ngIf=\"_TaskDetail?.uploadFiles &&_TaskDetail?.uploadFiles.length >0;\">\r\n <h6 class=\"attach-title\">{{'Attachments' | translate}}</h6>\r\n <ul class=\"attached_lists\" >\r\n <li *ngFor=\"let item of _TaskDetail.uploadFiles\">\r\n <a id=\"nofile\" href=\"{{environment.ServerUrl+'ticketmaster/uploadFilesBy/downloadbyrefrecid?RecId='+item.RecId}}\" target=\"_blank\" class=\"\">\r\n <span class=\"row\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 50px;\">\r\n\r\n <ng-container [ngSwitch]=\"item.ExtSm\">\r\n <i class=\"la la-file-pdf\" *ngSwitchCase=\"'pdf'\" style=\"font-size:45px;\"></i>\r\n\r\n <i class=\"la la-file-csv\" *ngSwitchCase=\"'csv'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-excel\" *ngSwitchCase=\"'xlsx'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'png'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'svg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpeg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpg'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-alt\" *ngSwitchCase=\"'txt'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-word\" *ngSwitchCase=\"'docx'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'zip'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'rar'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-signature\" *ngSwitchCase=\"'sql'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-code\" *ngSwitchCase=\"'json'\" style=\"font-size:45px;\"></i>\r\n\r\n <i class=\"la la-file\" *ngSwitchDefault style=\"font-size:45px;\"></i>\r\n </ng-container>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name\" >\r\n <span>{{item?.Name}}</span>\r\n <span>{{item.Ext| translate}}&emsp;{{'download' | translate}}</span>\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n </ng-container>\r\n \r\n \r\n \r\n\r\n </div>\r\n \r\n\r\n\r\n </div>\r\n <div class=\"req_page lists\">\r\n <div class=\"prioritys\">\r\n <span class=\"priority\" [ngClass]=\"_TaskDetail?.Priority_Desc\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.Priority_DescAr ? _TaskDetail?.Priority_DescAr : (_TaskDetail?.Priority_Desc |translate)) : _TaskDetail?.Priority_Desc }}\r\n <ng-container *ngIf=\"_TaskDetail.Priority_Desc == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <div class=\"status\">\r\n <span class=\"\" [ngClass]=\"_TaskDetail?.ProcessStageEn\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.ProcessStageAr ? _TaskDetail?.ProcessStageAr : (_TaskDetail?.ProcessStageEn |translate)) : _TaskDetail?.ProcessStageEn }}\r\n <ng-container *ngIf=\"_TaskDetail?.ProcessStageEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"comments\">\r\n <i class=\"fa fa-comments-o\" aria-hidden=\"true\"></i> \r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-sm-12 user-tag\">\r\n \r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"comment-user-img\" src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\"\r\n >\r\n </div>\r\n <div class=\"input-comment\">\r\n <input class=\"form-control text-comment\" [(ngModel)]=\"inputValue\" type=\"text\" name=\"Comments\" id=\"Comments\" placeholder=\"Write Your Comment...\" (keyup)=\"submitComment($event)\">\r\n \r\n </div>\r\n \r\n </div>\r\n </div>\r\n\r\n <div class=\"row mt-3\">\r\n \r\n <ng-container *ngFor=\"let item of TimelineListReadonly;let i = index\">\r\n <div class=\"col-sm-12 user-tag\">\r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"comment-user-img\"\r\n src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\">\r\n </div>\r\n <div class=\"input-comment\">\r\n <span readonly class=\"form-control text-comment\">{{item?.Comments}}\r\n </span>\r\n </div>\r\n \r\n </div>\r\n \r\n <ng-container *ngIf=\"item?.uploadFiles &&item?.uploadFiles.length >0;\">\r\n <div class=\"msg p-l-30 bg-white w-100\">\r\n <h6 class=\"attach-title d-block\">{{'Attachments' | translate}}</h6>\r\n <ul class=\"attached_lists w-100\">\r\n <li *ngFor=\"let item of item.uploadFiles\">\r\n <a id=\"nofile\"\r\n href=\"{{environment.ServerUrl+'ticketmaster/uploadFilesBy/downloadbyrefrecid?RecId='+item.RecId}}\"\r\n target=\"_blank\" class=\"\">\r\n <span class=\"row\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 50px;\">\r\n \r\n <ng-container [ngSwitch]=\"item.ExtSm\">\r\n <i class=\"la la-file-pdf\" *ngSwitchCase=\"'pdf'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-csv\" *ngSwitchCase=\"'csv'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-excel\" *ngSwitchCase=\"'xlsx'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'png'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'svg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpeg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpg'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-alt\" *ngSwitchCase=\"'txt'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-word\" *ngSwitchCase=\"'docx'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'zip'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'rar'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-signature\" *ngSwitchCase=\"'sql'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-code\" *ngSwitchCase=\"'json'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file\" *ngSwitchDefault style=\"font-size:45px;\"></i>\r\n </ng-container>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name\">\r\n <span>{{item?.Name}}</span>\r\n <span>{{item.Ext| translate}}&emsp;{{'download' | translate}}</span>\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n </div>\r\n </ng-container>\r\n\r\n </ng-container>\r\n \r\n </div>\r\n\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-sm-12 request-Conversation\">\r\n\r\n <ul class=\"nav nav-tabs\">\r\n <li class=\"nav-item\">\r\n <a class=\"nav-link active\" [ngClass]=\"{'active': tabDisplayView==1}\" (click)=\"gridChangeTabs(1)\">{{'Timeline'|translate}}</a>\r\n </li>\r\n \r\n <li class=\"nav-item\">\r\n <a class=\"nav-link\" [ngClass]=\"{'active': tabDisplayView==2}\" (click)=\"gridChangeTabs(2)\" >{{'Action List'|translate}}</a>\r\n </li>\r\n\r\n </ul>\r\n <div class=\"tab-content\" style=\"padding: 0;\">\r\n <div class=\"tab-pane animated\" [ngClass]=\"{'active': tabDisplayView==1}\" id=\"Timeline\" *ngIf=\"tabDisplayView==1\">\r\n\r\n <div class=\"card select2-drop\">\r\n \r\n <div class=\"body activity-timeline clearfix\">\r\n\r\n <ng-container *ngFor=\"let item of TimelineList;let i = index\">\r\n\r\n <div class=\" timeline-item animated fadeIn {{item.ActivityTypeIdEn}} dark\"\r\n [ngClass]=\"{ 'faster': i ==0,\r\n 'slower': i ==1,\r\n 'slow': i >1\r\n }\">\r\n\r\n <div class=\"timeline-body\" [ngClass]=\"{'fullview': item.showform}\">\r\n <span class=\"con-pointer\"></span>\r\n <h5 (click)=\"item.showform = !item.showform;item.loadForm = true;getActivityFileUploads(item)\">{{item.ActivityTypeIdEn |translate}}\r\n <span class=\"pull-right date\"><span *ngIf=\"item.ActivityTypeIdEn=='Comments'|| item.ActivityTypeIdEn=='DefaultComments'\">{{item.CreatedBy}} | </span>{{item.CreatedDatetime | date:'dd/MM/yyyy h:mm a'}}</span>\r\n </h5>\r\n <div class=\"msg p-3 bg-white\" *ngIf=\"item.loadForm\" [ngClass]=\"{'d-none': !item.showform}\">\r\n\r\n <span class=\"pull-right\" (click)=\"openTaskDetailView(item)\"\r\n *ngIf=\"item.ActivityTypeIdEn=='Task' && item.RecId\">\r\n <i class=\"la la-external-link color-pomegranate\" style=\"font-size: 20px;\"></i></span>\r\n\r\n\r\n <ng-container *ngIf=\"item.ActivityTypeId\">\r\n\r\n <app-activities-view [EntityTypeId]=\"item.ActivityTypeId\" [RefTypeId]=\"refRecId\"\r\n [ActivityTypeId]=\"item.ActivityTypeId\" [FormData]=\"item\">\r\n </app-activities-view>\r\n\r\n <ng-container *ngIf=\"item?.uploadFiles &&item?.uploadFiles.length >0;\">\r\n <h6 class=\"attach-title\">{{'Attachments'|translate}} \r\n <!-- <i (click)=\"attachMethod()\" class=\"fa fa-paperclip themecolor ml-1\"></i> -->\r\n </h6>\r\n <ul class=\"attached_lists\" >\r\n <li *ngFor=\"let item of item.uploadFiles\">\r\n <!-- {{item?.Path}} -->\r\n <a id=\"nofile\" href=\"{{environment.ServerUrl+'ticketmaster/uploadFilesBy/downloadbyrefrecid?RecId='+item.RecId}}\" target=\"_blank\" class=\"\">\r\n <span class=\"row m-0\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 50px;\">\r\n \r\n <ng-container [ngSwitch]=\"item.ExtSm\">\r\n <i class=\"la la-file-pdf\" *ngSwitchCase=\"'pdf'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-csv\" *ngSwitchCase=\"'csv'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-excel\" *ngSwitchCase=\"'xlsx'\" style=\"font-size:45px;\"></i>\r\n \r\n \r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'png'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'svg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'jpeg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'jpg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" /> \r\n \r\n <!--<i class=\"la la-file-image\" *ngSwitchCase=\"'png'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'svg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpeg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpg'\" style=\"font-size:45px;\"></i>-->\r\n \r\n <i class=\"la la-file-alt\" *ngSwitchCase=\"'txt'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-word\" *ngSwitchCase=\"'docx'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'zip'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'rar'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-signature\" *ngSwitchCase=\"'sql'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-code\" *ngSwitchCase=\"'json'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file\" *ngSwitchDefault style=\"font-size:45px;\"></i>\r\n </ng-container>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name\" >\r\n <span>{{item?.Name}}</span>\r\n <span>{{item.Ext| translate}}&emsp;{{'download' | translate}}</span>\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n </ng-container>\r\n \r\n\r\n </ng-container>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n </ng-container>\r\n\r\n\r\n <div class=\"activity-loadmore text-center p-3\" *ngIf=\"TotalActivity > ActivityType.length\">\r\n <a href=\"javascript:void(0);\" class=\"load-more bg-themecolor color-white\"\r\n (click)=\"loadMoreActivities()\">\r\n {{'Load more'|translate}} <i class=\"la la-angle-double-down m-r-10 m-l-10\"></i> </a>\r\n </div>\r\n\r\n \r\n <div class=\"activity-create m-t-20\" *ngIf=\"commentsActivityItem && commentsActivityItem.RecId\">\r\n\r\n <div class=\"header clearfix\">\r\n <h2 class=\"pull-left\" style=\"color: #17191c;\">\r\n <i class=\"fa fa-comments-o m-r-10\"></i>\r\n {{'Comments'|translate}}</h2>\r\n\r\n </div>\r\n\r\n <ng-container>\r\n <app-activities-create [ViewFrom]=\"'Popup'\" [RefEntityTypeId]=\"EntityTypeId\"\r\n [EntityTypeId]=\"commentsActivityItem.RecId\" [RefTypeId]=\"refRecId\"\r\n [ActivityTypeId]=\"commentsActivityItem.RecId\" [IsHideCancelBtn]=\"true\"\r\n (closeActivityCreate)=\"closePopupCreateView($event.Type)\">\r\n </app-activities-create>\r\n </ng-container>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n </div>\r\n\r\n </div>\r\n\r\n <div class=\"tab-pane animated\" [ngClass]=\"{'active': tabDisplayView==2}\" id=\"ActionList\" >\r\n \r\n <div class=\"card select2-drop process_stage\">\r\n <app-grid [columnDefs]=\"columnDefs\"\r\n [GridTitle]=\"pageTitle\"\r\n [GridDescription]=\"pageDesp\"\r\n [columnDefs]=\"columnDefs\"\r\n [gridActionList]=\"gridActionList\"\r\n [selectMode]=\"selectMode\"\r\n [IsCreate]=\"isCreate\"\r\n [IsDelete]=\"isDelete\"\r\n [IsEdit]=\"isEdit\"\r\n [grid]=\"8\"\r\n (getPageList)=\"GetPageList($event.Criteria)\">\r\n </app-grid>\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n <ng-container *ngIf=\"showWorkflowPopup\">\r\n\r\n <app-workflow-dynamic-popup [showWorkflowPopups]=\"showWorkflowPopup\"\r\n [EntityTypeId]=\"EntityTypeId\"\r\n [EntityFormId]=\"workflowEntityFormId\"\r\n [PageGroupValues]=\"_TaskDetail\"\r\n (getWorkflowActionComments)=\"getWorkflowActionComments($event.comments, $event.updateFileds, $event.updateFieldsObject)\">\r\n </app-workflow-dynamic-popup>\r\n </ng-container>\r\n</div>\r\n\r\n<ng-container *ngIf=\"IsShowCreatePopup\">\r\n <div class=\"create_req\">\r\n <lib-create-form [PageType]=\"PageType\" [RequesterTypeId]=\"RequesterTypeId\" [Source]=\"Source\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\"\r\n [ChannelAr]=\"ChannelAr\" [RequesterId]=\"RequesterId\" [RequesterIdEn]=\"RequesterTypeIdEn\"\r\n [RequestField]=\"RequesterField\" (closeCreateModel)=\"hideCreatePopup($event.IsClose,$event.Data,$event.IsReload,$event.PageType)\"></lib-create-form>\r\n </div>\r\n</ng-container>\r\n<ng-container *ngIf=\"IsShowSendEmailPopup && EntityTypeRecId && refRecId\">\r\n <div class=\"create_req\">\r\n <lib-sendemail [EntityTypeId]=\"EntityTypeRecId\" [RecId]=\"refRecId\" (closeSendEmailModel)=\"hideEmailCreatePopup($event.IsClose,$event.Data,$event.IsReload)\"></lib-sendemail>\r\n </div>\r\n</ng-container>", styles: [".draghandle{position:absolute;z-index:100;top:0;bottom:0;right:0;float:right;border:1px solid #827d7d;background:#827d7d}.sidebar-left{width:1100px;float:left;box-shadow:-5px 0 #f7f7f7 inset}.wrapper #mainArea.content{margin-left:1100px}.activity-timeline .timeline-item.green,.activity-type .activity-item.green{color:#86c541}.activity-timeline .timeline-item.blue,.activity-type .activity-item.blue{color:#1d8ecd}.activity-timeline .timeline-item.warning,.activity-type .activity-item.warning{color:#f5a81d}.activity-timeline .timeline-item.danger,.activity-type .activity-item.danger{color:#ee2558}.activity-timeline .timeline-item.dark,.activity-type .activity-item.dark{color:#17191c}.activity-timeline .timeline-item.pomegranate,.activity-type .activity-item.pomegranate{color:#d35400!important}.activity-timeline .timeline-item{padding:15px 35px}.activity-timeline .timeline-item .msg{color:#000;margin:15px 0 10px}.activity-timeline .timeline-item:after{width:36px;height:36px;position:absolute;text-align:center;left:-18px;border-radius:100px;font-size:15px;font-weight:700;border:2px solid;border:none;padding:0;height:auto;top:25px;font: 14px/1 FontAwesome;content:\"\\f0e6\"}.activity-timeline .timeline-item.Email:after{content:\"\\e086\"}.activity-timeline .timeline-item.SMS:after{content:\"\\e04a\"}.activity-timeline .timeline-item.Notes:after{content:\"\\e04c\"}.activity-timeline .timeline-item.Comments:after{content:\"\\f0e6\"}.activity-timeline .timeline-item.Task:after{content:\"\\e067\"}.activity-timeline .timeline-item .timeline-body{padding:7px;border:1px solid #e1e2e1;position:relative;height:37px;background-color:#fafafa;margin-bottom:6px;border-radius:5px}.activity-timeline .timeline-item .timeline-body h5{cursor:pointer;font-size:15px;font-weight:400}.activity-timeline .timeline-item .timeline-body h5 .date{margin:0 10px;font-style:italic;font-size:small;font-weight:400}.activity-timeline .timeline-item .timeline-body.fullview{height:auto}.con-pointer{width:11px;height:11px;transform:rotate(45deg);position:absolute;top:11px;border:1px solid;left:-6.5px;border-width:0 0 1px 1px;background-position:-182px -292px;background-color:#fafafa;border-color:#e1e2e1}.activity-type{border-top:1px solid #ddd;margin-top:20px;background-color:#fff;padding:10px 0 0}.activity-type ul{list-style-type:none;padding:0}.activity-type ul li{padding:10px}.activity-type ul li .activity-item{font-size:16px;padding:10px 20px 25px;width:100%;border-radius:10px;display:inline-block;transition:all .2s ease-in-out;border:1px solid #fff}.activity-type ul li .activity-item i{margin-right:10px}.activity-type ul li .activity-item:hover{background:#fafafa;border:1px solid #ddd}.activity-type ul li.activity-select{margin-bottom:-10px}.activity-type ul li.activity-select .activity-item{border:1px solid #ddd;background-color:#fafafa}.activity-create{border-top:1px solid #ddd}.activity-type ul{width:100%;padding:0 10px;margin:0 0 -20px}.activity-type ul li{float:left}.breadcrumbs.details_pages{margin-bottom:0;border-radius:0}.breadcrumb-details{background:#fff;padding:20px 0;border:1px solid #0a6531;border:1px solid #ddd;border-top:none}.attached_lists li{display:block;width:100%;margin-top:10px}.attached_lists li a{border-radius:5px;border:1px solid #ddd;width:100%;display:inline-block;padding:7px;text-decoration:none;color:#000}.attached_lists li a .attached_lists_name span:first-child{font-weight:600;display:block;margin-bottom:5px}.attached_lists li a .attached_lists_name_Readonly{display:flex}.attached_lists li a .attached_lists_name_Readonly span:first-child{font-weight:600;margin-top:12px}.readonly{border:unset!important}.form-comments{margin-left:30px;margin-right:89px}.custom-dropdown .dropdown-content{display:none;position:absolute;background-color:#f9f9f9;min-width:160px;box-shadow:0 8px 16px #0003;z-index:1}.custom-dropdown .dropdown-content a{color:#000;padding:6px 8px;text-decoration:none;font-size:15px;display:block;text-align:left}.custom-dropdown .dropdown-content a:hover{background-color:#f1f1f1}.custom-dropdown .dropdown:hover .dropdown-content{display:block}.lang_Arabic .pull-right{float:left!important}.lang_Arabic .pull-left{float:right!important}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i4.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i4.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: WorkflowDynamicPopupComponent, selector: "app-workflow-dynamic-popup", inputs: ["currentStage", "ProcessId", "showWorkflowPopups", "isUpdateFields", "pageForm", "columnDefs", "caller", "EntityFormId", "EntityTypeId", "PageGroupValues"], outputs: ["getWorkflowActionComments"] }, { kind: "component", type: DynamicDetailsViewComponent, selector: "app-dynamic-details-view", inputs: ["ViewType", "EntityTypeId", "EntityFormId", "pageGroups", "defaultPageGroups", "PageGroupValues"] }, { kind: "component", type: ActivitiesCreateComponent, selector: "app-activities-create", inputs: ["IsHideCancelBtn", "EntityFormId", "EntityTypeId", "ActivityTypeId", "RefEntityTypeId", "RefTypeId", "ViewFrom", "ViewAction"], outputs: ["closeActivityCreate"] }, { kind: "component", type: ActivitiesViewComponent, selector: "app-activities-view", inputs: ["EntityFormId", "EntityTypeId", "ActivityTypeId", "RefTypeId", "FormData"] }, { kind: "component", type: GridComponent, selector: "app-grid", inputs: ["grid", "GridTitle", "InnerGridTitle", "GridDescription", "selectMode", "gridSelectOptions", "gridActionList", "gridActionStatus", "gridCurrentStatus", "IsGridActionList", "IsGridActionForm", "columnDefs", "InnerColumnDefs", "gridSelectOption", "IsCreate", "IsEdit", "IsDelete", "IsSorting", "IsRefresh", "IsSearch", "IsthSize", "IsActive", "IsDuplicate", "RowInsideGrid", "IsDetails", "IsBack", "IsAttach", "IsDynamicListpage", "IsAssign", "IsInnerGrid", "IsShowDetailsGo", "IsExport", "IsTicketGroupAssign", "GridSearchType", "IsClientPagination", "IsCategorySetupView", "IsInnerGridCreate", "IsInnerGridEdit", "IsInnerGridDelete", "IsHidden", "gridData", "GridDynamicExportData", "IsDynamicExport"], outputs: ["getGridAction", "getGridStatusAction", "getGridCheckedData", "openCreatePopup", "getPageList", "getInnerPageList", "goToDetails", "goToAction", "callButtonEvent", "callIconEvent", "callOnOffEvent", "copyTextEvent", "gridSelectOptionsData", "assignmentMethod", "ticketGroupAssignmentMethod", "attachMethod", "gotoBackToList", "editMethod", "ActiveMethod", "DuplicateMethod", "rowInsideMethod", "deleteMethod", "multipleDeleteMethod", "GetDetailsList", "GetListView", "categorySetupView", "openCreatePopupInnerGrid", "editMethodInnerGrid", "deleteMethodInnerGrid"] }, { kind: "component", type: CreateFormComponent, selector: "lib-create-form", inputs: ["IsDropdownModel", "PageType", "RequesterTypeId", "RequesterTypeIdEn", "RequesterId", "RequesterField", "Language", "HostUrl", "Host", "Source", "Channel", "ChannelEn", "ChannelAr"], outputs: ["closeCreateModel"] }, { kind: "component", type: SendemailComponent, selector: "lib-sendemail", inputs: ["EntityTypeId", "RecId"], outputs: ["closeSendEmailModel"] }, { kind: "pipe", type: i4.DatePipe, name: "date" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
10043
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SupportRequestDetailsComponent, decorators: [{
9667
10044
  type: Component,
9668
- args: [{ selector: 'app-support-request-create', template: "\r\n\r\n<div class=\"row \">\r\n\r\n <div class=\"col col-sm-12\">\r\n\r\n <div class=\"row\">\r\n <div class=\"whole dynamic_request_details\">\r\n <div class=\"card\">\r\n\r\n <!-- <div class=\"header\" style=\"border-bottom: 1px solid #ddd;\">\r\n <h2>\r\n {{Type=='Edit'?'Edit Request':'New Request Create'}}\r\n </h2>\r\n \r\n </div> -->\r\n\r\n <div class=\"body padding-0\">\r\n <div class=\"request-create\" >\r\n\r\n\r\n <ng-container *ngIf=\"EntityFormId \">\r\n <app-entity-dynamic-view [ParameterData]=\"ParameterData\"\r\n [RequestorField] =\"RequestField\" [RequestorFieldValue]=\"RequesterId\"\r\n [EntityFormId]=\"EntityFormId\" [PageGroupValues]=\"FormValues\" [ViewFrom]=\"'Details'\" [Type]=\"Type\"\r\n (submitFormValue)=\"emitTicketCreateForm($event.formdata,$event.pageForm)\"></app-entity-dynamic-view>\r\n </ng-container>\r\n\r\n <hr>\r\n\r\n <div class=\"m-b-20\" *ngIf=\"DocumentList && DocumentList.length > 0\">\r\n \r\n <h6 class=\"m-b-20\">{{'Files'|translate}} :</h6>\r\n\r\n\r\n <ul class=\"attached_lists\" >\r\n <li *ngFor=\"let doc of DocumentList\">\r\n <a class=\"\" [ngClass]=\"{'border-red': doc.IsManatory && !(doc.FileName) }\" >\r\n <span class=\"row m-0\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 65px;\">\r\n <button class=\"btn btn-outline attach-file-btn\" \r\n [ngClass]=\"{'btn-outline-danger':!(doc.FileName),'btn-success':doc.FileName }\">\r\n <i class=\"la la-upload\" style=\"font-size:25px;\"></i>\r\n <input class=\"attach-file\" type=\"file\" id=\"file_{{doc.RecId}}\" multiple (change)=\"docFileChange($event,doc)\" [(ngModel)]=\"doc.File\"\r\n [ngModelOptions]=\"{standalone: true}\">\r\n </button>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name\">\r\n <span [ngClass]=\"{'red': doc.IsManatory && !(doc.FileName) }\">\r\n {{ globalService.CurrentLanguage == 'Ar' ? (doc.DocumentNameAr ? doc.DocumentNameAr : (doc.DocumentName | translate)) :doc.DocumentName}}\r\n <!-- {{doc.DocumentName | translate}} -->\r\n <code class=\"red\" *ngIf=\"doc.IsManatory\">*</code></span>\r\n \r\n <ng-container *ngIf=\"doc.FileList.length >0; else elseTemplate\">\r\n <span class=\"themecolor\">{{doc.FileList.length}} {{'Files are selected' | translate }}</span>\r\n <br>\r\n <ng-container *ngFor=\"let _file of doc.FileList\">\r\n <span class=\"themecolor\">{{_file.FileName}}</span><br>\r\n </ng-container>\r\n \r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <span class=\"red\">{{'Files are not selected' | translate }}</span>\r\n </ng-template>\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n\r\n\r\n \r\n </div>\r\n\r\n <div class=\"text-center pull-right\">\r\n\r\n\r\n <button class=\"formcancelbtn btn btn-small m-l-5 m-r-5\" (click)=\"closeCreatePage()\">\r\n {{'Cancel'|translate}}\r\n </button>\r\n\r\n <button class=\"formsubmitbtn btn btn-small btn-theme m-l-5 m-r-5\" (click)=\"submitTicketCreate()\" style=\"color: #fff;font-weight: 600;\">\r\n {{Type=='Edit'?'Update Request':'Submit'|translate}} \r\n </button>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n </div>\r\n \r\n </div>\r\n\r\n </div>\r\n\r\n\r\n</div>\r\n\r\n\r\n", styles: [".attached_lists li{display:block;width:100%;margin-top:10px}.attached_lists li a{border-radius:5px;border:1px solid #ddd;width:100%;display:inline-block;padding:7px;text-decoration:none;color:#000}.attached_lists li a .attached_lists_name span:first-child{font-weight:600;display:block;margin-bottom:5px}.attach-file-btn{width:50px;height:40px;margin:0 5px;overflow:hidden;position:relative}.attach-file-btn .attach-file{position:absolute;left:0;top:0;bottom:0;right:0;width:100%;opacity:0;z-index:32}.formcancelbtn{padding-left:15px;padding-right:15px;border-radius:20px;min-width:50px;border:1px solid #c4cbcb}.formsubmitbtn{padding-left:15px;padding-right:15px;border-radius:20px;min-width:50px}\n"] }]
9669
- }], ctorParameters: function () { return [{ type: EntityTypeSetupService }, { type: AttachmentService }, { type: i2.Router }, { type: i2.ActivatedRoute }, { type: SupportRequestService }, { type: GlobalService }]; }, propDecorators: { EntityFormId: [{
10045
+ args: [{ selector: 'app-support-request-details', template: "<div class=\"details_sec whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n\r\n <div class=\"row \">\r\n\r\n\r\n <div class=\"col-sm-12 m-t-20 m-b-20\">\r\n <div class=\"breadcrumb-stage\">\r\n <div class=\"clearfix\">\r\n\r\n <div class=\"float-left breadcrumbs details_pages\" id=\"slide-view-list\" style=\"display: flex;width: calc(100% - 50px);\">\r\n <ng-container *ngFor=\"let item of StatusAndStageList; let i = index\">\r\n \r\n <a href=\"javascript:void(0);\"\r\n [ngClass]=\"{'active': item.StageId == selectedProcess?.ProcessStage,\r\n 'selected': item.StageId == _TaskDetail?.ProcessStage}\"\r\n (click)=\"selectProcess(item)\">\r\n <span class=\"breadcrumb__inner\">\r\n <span class=\"breadcrumb__title\">{{item.StageDescription|translate}}</span>\r\n </span>\r\n </a>\r\n </ng-container>\r\n </div>\r\n \r\n <div class=\"float-right arrow-border\">\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:13px;\" (click)=\"slider('left','slide-view-list')\"><i class=\"fa fa-arrow-left\"></i></a>\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:13px;\" (click)=\"slider('right','slide-view-list')\"><i class=\"fa fa-arrow-right\"></i></a>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"breadcrumb-action\">\r\n <span>\r\n <i class=\"la la-chevron-left\"></i>\r\n </span>\r\n <span>\r\n <i class=\"la la-chevron-right\"></i>\r\n </span>\r\n </div>\r\n\r\n <div *ngIf=\"selectedProcess && selectedProcess.ProcessStage\" class=\"breadcrumb-details animated\"\r\n [ngClass]=\"(showStageDetails)?'fadeIn':'fadeOut'\" style=\"padding: 20px;\">\r\n \r\n \r\n <div class=\"row\">\r\n <ng-container *ngFor=\"let item of selectedProcessList\">\r\n <div class=\"d-block field position-relative dynamic-view col col-12 col-sm-12 col-md-6 col-xl-6 m-b-20\">\r\n <span class=\"pull-right la la-times m-r-20\" style=\"font-size: 20px;position: absolute;right: 0;z-index: 111;\"\r\n (click)=\"closeProcess()\"></span>\r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'StageId'|translate}} </label>\r\n <span class=\"col\">: {{item.ProcessStage}} </span>\r\n </div>\r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Description'|translate}} </label>\r\n <span class=\"col\">: {{item?.ProcessStageEn}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Created User'|translate}} </label>\r\n <span class=\"col\">: {{item?.CreatedBy}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Start Date'|translate}} </label>\r\n <span class=\"col\">: {{item?.StartDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'End Date'|translate}} </label>\r\n <span class=\"col\">: {{item?.EndDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-md-4 text-left\">{{'Comments'|translate}} </label>\r\n <span class=\"col\">: {{item?.Comments}} </span>\r\n </div>\r\n \r\n </div>\r\n </ng-container>\r\n </div>\r\n \r\n <div class=\"d-block field position-relative dynamic-view\" *ngIf=\"false\">\r\n <span class=\"pull-right la la-times m-r-20\" style=\"font-size: 20px;\" (click)=\"closeProcess()\"></span>\r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'StageId'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess.ProcessStage}} </span>\r\n </div>\r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Description'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.ProcessStageEn}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Created User'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.CreatedBy}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Start Date'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.StartDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'End Date'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.EndDate | date}} </span>\r\n </div>\r\n \r\n <div class=\"row\">\r\n <label class=\"col col-sm-3\">{{'Comments'|translate}} </label>\r\n <span class=\"col\">: {{selectedProcess?.Comments}} </span>\r\n </div>\r\n \r\n </div>\r\n \r\n </div>\r\n \r\n \r\n </div>\r\n \r\n\r\n <div class=\"col col-sm-12\">\r\n\r\n\r\n <div class=\"row\">\r\n\r\n\r\n <div class=\"whole dynamic_request_details\">\r\n <div class=\"card\">\r\n\r\n\r\n <div class=\"req_page lists\" style=\"margin-bottom:unset !important;\">\r\n <div class=\"col-sm-12 user-tag p-0\">\r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"list-user-img\" src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\"\r\n >\r\n </div>\r\n <div class=\"detail-head\">{{_TaskDetail?.CreatedBy}}\r\n <span class=\"user-stage\">{{_TaskDetail?.CaseId |translate}}</span>\r\n </div>\r\n <div class=\"prioritys\">\r\n <span class=\"priority\" [ngClass]=\"_TaskDetail?.Priority_Desc\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.Priority_DescAr ? _TaskDetail?.Priority_DescAr : (_TaskDetail?.Priority_Desc |translate)) : _TaskDetail?.Priority_Desc }}\r\n <ng-container *ngIf=\"_TaskDetail.Priority_Desc == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <div class=\"status\">\r\n <span class=\"\" [ngClass]=\"_TaskDetail?.ProcessStageEn\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.ProcessStageAr ? _TaskDetail?.ProcessStageAr : (_TaskDetail?.ProcessStageEn |translate)) : _TaskDetail?.ProcessStageEn }}\r\n <ng-container *ngIf=\"_TaskDetail?.ProcessStageEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"clearfix\">\r\n <div class=\"custom-dropdown pull-left\">\r\n <!-- -->\r\n <div class=\"custom-dropdown\" style=\"color: #fff;border-radius: 10px;margin-bottom: 10px;background: #339e33;margin-top: 10px;\">\r\n <div class=\"dropdown\">\r\n <button class=\"dropbtn btn btn-success\">{{'Create'|translate}}</button>\r\n <div class=\"dropdown-content\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"showCreatePopup();PageType='Request'\">{{'Request' |translate}}</a>\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"showCreatePopup();PageType='Complaint'\">{{'Complaint' |translate}}</a>\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"showCreatePopup();PageType='SelfService'\">{{'SelfService' |translate}}</a>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <button style=\"margin: 10px 10px;\" class=\"btn btn-success pull-left\" *ngIf=\"EntityTypeRecId && refRecId\" (click)=\"showEmailCreatePopup()\">{{'Send Email'|translate}}</button>\r\n \r\n </div>\r\n <div class=\"addedDate\">\r\n <div >{{_TaskDetail?.CreatedDatetime | date :'dd/MM/yyyy h:mm a'}}</div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"content col-sm-12 clearfix\">\r\n <h4 class=\"themecolor float-left\">{{_TaskDetail?.Subject |translate}}</h4>\r\n <p>{{_TaskDetail?.Description|translate}}</p>\r\n </div>\r\n\r\n </div>\r\n\r\n <!-- <div class=\"header\">\r\n <h2>{{_TaskDetail?.Subject |translate}}\r\n <small>\r\n \r\n <div class=\"prioritys pull-left\">\r\n <span class=\"priority\" [ngClass]=\"_TaskDetail?.Priority_Desc\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.Priority_DescAr ? _TaskDetail?.Priority_DescAr : (_TaskDetail?.Priority_Desc |translate)) : _TaskDetail?.Priority_Desc }}\r\n <ng-container *ngIf=\"_TaskDetail.Priority_Desc == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n \r\n \r\n <span class=\"pull-left m-l-5 m-r-5 header-pipe\"></span>\r\n <span class=\"pull-left m-l-5 m-r-5\">{{'ProcessStage'|translate}} :</span>\r\n <span class=\"pull-left m-l-5 m-r-5\">\r\n {{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.ProcessStageAr ? _TaskDetail?.ProcessStageAr : (_TaskDetail?.ProcessStageEn |translate)) : _TaskDetail?.ProcessStageEn }}\r\n </span>\r\n <span class=\"pull-left m-l-5 m-r-5 header-pipe\"></span>\r\n <span class=\"pull-left m-l-5 m-r-5\">{{'Requested By' | translate}}</span>\r\n <span class=\"pull-left m-l-5 m-r-5 requestor\">{{_TaskDetail?.CreatedBy}}</span>\r\n <span class=\"pull-left m-l-5 m-r-5\">\r\n {{'On' |translate }}\r\n <span class=\"m-l-5 m-r-5\">\r\n {{_TaskDetail?.CreatedDatetime | date :'dd/MM/yyyy h:mm a'}}\r\n </span>\r\n </span>\r\n </small>\r\n <div class=\"pull-right\" *ngIf=\"IsWfAction\">\r\n <div class=\"custom-dropdown\" *ngIf=\"wfStageAction.length > 0\">\r\n <div class=\"dropdown\">\r\n <button href=\"javascript:void(0)\" class=\"btn btn-primary dropbtn\">{{'Action'|translate}} <i class=\"icon icon-options-vertical m-r-5\"></i></button>\r\n <div class=\"dropdown-content\">\r\n <span *ngIf=\"wfStageAction.length <= 0\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\">\r\n {{'No Action Found'|translate}}\r\n </a>\r\n </span>\r\n <span *ngFor=\"let item of wfStageAction\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"getStatusField(item)\">{{item.ActionDescription |translate}}</a>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </h2>\r\n\r\n </div> -->\r\n <div class=\"body\">\r\n <div class=\"request-details\">\r\n\r\n <h2 class=\"stage-title\">{{'Request Details'|translate}}</h2>\r\n\r\n <app-dynamic-details-view *ngIf=\"EntityFormId && _TaskDetail && _TaskDetail.RecId\"\r\n [EntityFormId]=\"EntityFormId\" [EntityTypeId]=\"EntityTypeIdRecId\" [PageGroupValues]=\"_TaskDetail\"\r\n [ViewType]=\"'Details'\" [pageGroups]=\"EntityPageGroupsData\"\r\n [defaultPageGroups]=\"EntityDefaultPageGroupsData\">\r\n </app-dynamic-details-view>\r\n\r\n <ng-container *ngIf=\"_TaskDetail?.uploadFiles &&_TaskDetail?.uploadFiles.length >0;\">\r\n <h6 class=\"attach-title\">{{'Attachments' | translate}}</h6>\r\n <ul class=\"attached_lists\" >\r\n <li *ngFor=\"let item of _TaskDetail.uploadFiles\">\r\n <a id=\"nofile\" href=\"{{environment.ServerUrl+'ticketmaster/uploadFilesBy/downloadbyrefrecid?RecId='+item.RecId}}\" target=\"_blank\" class=\"\">\r\n <span class=\"row\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 50px;\">\r\n\r\n <ng-container [ngSwitch]=\"item.ExtSm\">\r\n <i class=\"la la-file-pdf\" *ngSwitchCase=\"'pdf'\" style=\"font-size:45px;\"></i>\r\n\r\n <i class=\"la la-file-csv\" *ngSwitchCase=\"'csv'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-excel\" *ngSwitchCase=\"'xlsx'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'png'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'svg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpeg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpg'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-alt\" *ngSwitchCase=\"'txt'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-word\" *ngSwitchCase=\"'docx'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'zip'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'rar'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-signature\" *ngSwitchCase=\"'sql'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-code\" *ngSwitchCase=\"'json'\" style=\"font-size:45px;\"></i>\r\n\r\n <i class=\"la la-file\" *ngSwitchDefault style=\"font-size:45px;\"></i>\r\n </ng-container>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name\" >\r\n <span>{{item?.Name}}</span>\r\n <span>{{item.Ext| translate}}&emsp;{{'download' | translate}}</span>\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n </ng-container>\r\n \r\n \r\n \r\n\r\n </div>\r\n \r\n\r\n\r\n </div>\r\n <div class=\"req_page lists\">\r\n <div class=\"prioritys\">\r\n <span class=\"priority\" [ngClass]=\"_TaskDetail?.Priority_Desc\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.Priority_DescAr ? _TaskDetail?.Priority_DescAr : (_TaskDetail?.Priority_Desc |translate)) : _TaskDetail?.Priority_Desc }}\r\n <ng-container *ngIf=\"_TaskDetail.Priority_Desc == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <div class=\"status\">\r\n <span class=\"\" [ngClass]=\"_TaskDetail?.ProcessStageEn\">{{globalService.CurrentLanguage =='Ar' ? (_TaskDetail?.ProcessStageAr ? _TaskDetail?.ProcessStageAr : (_TaskDetail?.ProcessStageEn |translate)) : _TaskDetail?.ProcessStageEn }}\r\n <ng-container *ngIf=\"_TaskDetail?.ProcessStageEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n </div>\r\n <div class=\"comments\">\r\n <i class=\"fa fa-comments-o\" aria-hidden=\"true\"></i> \r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-sm-12 user-tag\">\r\n \r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"comment-user-img\" src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\"\r\n >\r\n </div>\r\n <div class=\"input-comment\">\r\n <input class=\"form-control text-comment\" [(ngModel)]=\"inputValue\" type=\"text\" name=\"Comments\" id=\"Comments\" placeholder=\"Write Your Comment...\" (keyup)=\"submitComment($event)\">\r\n \r\n </div>\r\n \r\n </div>\r\n </div>\r\n\r\n <div class=\"row mt-3\">\r\n \r\n <ng-container *ngFor=\"let item of TimelineListReadonly;let i = index\">\r\n <div class=\"col-sm-12 user-tag\">\r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"comment-user-img\"\r\n src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\">\r\n </div>\r\n <div class=\"input-comment\">\r\n <span readonly class=\"form-control text-comment\">{{item?.Comments}}\r\n </span>\r\n </div>\r\n \r\n </div>\r\n \r\n <ng-container *ngIf=\"item?.uploadFiles &&item?.uploadFiles.length >0;\">\r\n <div class=\"msg p-l-30 bg-white w-100\">\r\n <h6 class=\"attach-title d-block\">{{'Attachments' | translate}}</h6>\r\n <ul class=\"attached_lists w-100\">\r\n <li *ngFor=\"let item of item.uploadFiles\">\r\n <a id=\"nofile\"\r\n href=\"{{environment.ServerUrl+'ticketmaster/uploadFilesBy/downloadbyrefrecid?RecId='+item.RecId}}\"\r\n target=\"_blank\" class=\"\">\r\n <span class=\"row\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 50px;\">\r\n \r\n <ng-container [ngSwitch]=\"item.ExtSm\">\r\n <i class=\"la la-file-pdf\" *ngSwitchCase=\"'pdf'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-csv\" *ngSwitchCase=\"'csv'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-excel\" *ngSwitchCase=\"'xlsx'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'png'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'svg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpeg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpg'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-alt\" *ngSwitchCase=\"'txt'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-word\" *ngSwitchCase=\"'docx'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'zip'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'rar'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-signature\" *ngSwitchCase=\"'sql'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-code\" *ngSwitchCase=\"'json'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file\" *ngSwitchDefault style=\"font-size:45px;\"></i>\r\n </ng-container>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name\">\r\n <span>{{item?.Name}}</span>\r\n <span>{{item.Ext| translate}}&emsp;{{'download' | translate}}</span>\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n </div>\r\n </ng-container>\r\n\r\n </ng-container>\r\n \r\n </div>\r\n\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-sm-12 request-Conversation\">\r\n\r\n <ul class=\"nav nav-tabs\">\r\n <li class=\"nav-item\">\r\n <a class=\"nav-link active\" [ngClass]=\"{'active': tabDisplayView==1}\" (click)=\"gridChangeTabs(1)\">{{'Timeline'|translate}}</a>\r\n </li>\r\n \r\n <li class=\"nav-item\">\r\n <a class=\"nav-link\" [ngClass]=\"{'active': tabDisplayView==2}\" (click)=\"gridChangeTabs(2)\" >{{'Action List'|translate}}</a>\r\n </li>\r\n\r\n </ul>\r\n <div class=\"tab-content\" style=\"padding: 0;\">\r\n <div class=\"tab-pane animated\" [ngClass]=\"{'active': tabDisplayView==1}\" id=\"Timeline\" *ngIf=\"tabDisplayView==1\">\r\n\r\n <div class=\"card select2-drop\">\r\n \r\n <div class=\"body activity-timeline clearfix\">\r\n\r\n <ng-container *ngFor=\"let item of TimelineList;let i = index\">\r\n\r\n <div class=\" timeline-item animated fadeIn {{item.ActivityTypeIdEn}} dark\"\r\n [ngClass]=\"{ 'faster': i ==0,\r\n 'slower': i ==1,\r\n 'slow': i >1\r\n }\">\r\n\r\n <div class=\"timeline-body\" [ngClass]=\"{'fullview': item.showform}\">\r\n <span class=\"con-pointer\"></span>\r\n <h5 (click)=\"item.showform = !item.showform;item.loadForm = true;getActivityFileUploads(item)\">{{item.ActivityTypeIdEn |translate}}\r\n <span class=\"pull-right date\"><span *ngIf=\"item.ActivityTypeIdEn=='Comments'|| item.ActivityTypeIdEn=='DefaultComments'\">{{item.CreatedBy}} | </span>{{item.CreatedDatetime | date:'dd/MM/yyyy h:mm a'}}</span>\r\n </h5>\r\n <div class=\"msg p-3 bg-white\" *ngIf=\"item.loadForm\" [ngClass]=\"{'d-none': !item.showform}\">\r\n\r\n <span class=\"pull-right\" (click)=\"openTaskDetailView(item)\"\r\n *ngIf=\"item.ActivityTypeIdEn=='Task' && item.RecId\">\r\n <i class=\"la la-external-link color-pomegranate\" style=\"font-size: 20px;\"></i></span>\r\n\r\n\r\n <ng-container *ngIf=\"item.ActivityTypeId\">\r\n\r\n <app-activities-view [EntityTypeId]=\"item.ActivityTypeId\" [RefTypeId]=\"refRecId\"\r\n [ActivityTypeId]=\"item.ActivityTypeId\" [FormData]=\"item\">\r\n </app-activities-view>\r\n\r\n <ng-container *ngIf=\"item?.uploadFiles &&item?.uploadFiles.length >0;\">\r\n <h6 class=\"attach-title\">{{'Attachments'|translate}} \r\n <!-- <i (click)=\"attachMethod()\" class=\"fa fa-paperclip themecolor ml-1\"></i> -->\r\n </h6>\r\n <ul class=\"attached_lists\" >\r\n <li *ngFor=\"let item of item.uploadFiles\">\r\n <!-- {{item?.Path}} -->\r\n <a id=\"nofile\" href=\"{{environment.ServerUrl+'ticketmaster/uploadFilesBy/downloadbyrefrecid?RecId='+item.RecId}}\" target=\"_blank\" class=\"\">\r\n <span class=\"row m-0\">\r\n <span class=\"col padding-0 themecolor\" style=\"max-width: 50px;\">\r\n \r\n <ng-container [ngSwitch]=\"item.ExtSm\">\r\n <i class=\"la la-file-pdf\" *ngSwitchCase=\"'pdf'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file-csv\" *ngSwitchCase=\"'csv'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-excel\" *ngSwitchCase=\"'xlsx'\" style=\"font-size:45px;\"></i>\r\n \r\n \r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'png'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'svg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'jpeg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" />\r\n <img src=\"{{'/Account/ShowImageByPath?_Path='+item?.Path}}\" *ngSwitchCase=\"'jpg'\" style=\"width: 45px;height: 45px;object-fit: cover;\" /> \r\n \r\n <!--<i class=\"la la-file-image\" *ngSwitchCase=\"'png'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'svg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpeg'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-image\" *ngSwitchCase=\"'jpg'\" style=\"font-size:45px;\"></i>-->\r\n \r\n <i class=\"la la-file-alt\" *ngSwitchCase=\"'txt'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-word\" *ngSwitchCase=\"'docx'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'zip'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-archive\" *ngSwitchCase=\"'rar'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-signature\" *ngSwitchCase=\"'sql'\" style=\"font-size:45px;\"></i>\r\n <i class=\"la la-file-code\" *ngSwitchCase=\"'json'\" style=\"font-size:45px;\"></i>\r\n \r\n <i class=\"la la-file\" *ngSwitchDefault style=\"font-size:45px;\"></i>\r\n </ng-container>\r\n </span>\r\n <span class=\"col padding-0 attached_lists_name\" >\r\n <span>{{item?.Name}}</span>\r\n <span>{{item.Ext| translate}}&emsp;{{'download' | translate}}</span>\r\n </span>\r\n </span>\r\n </a>\r\n </li>\r\n </ul>\r\n </ng-container>\r\n \r\n\r\n </ng-container>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n </ng-container>\r\n\r\n\r\n <div class=\"activity-loadmore text-center p-3\" *ngIf=\"TotalActivity > ActivityType.length\">\r\n <a href=\"javascript:void(0);\" class=\"load-more bg-themecolor color-white\"\r\n (click)=\"loadMoreActivities()\">\r\n {{'Load more'|translate}} <i class=\"la la-angle-double-down m-r-10 m-l-10\"></i> </a>\r\n </div>\r\n\r\n \r\n <div class=\"activity-create m-t-20\" *ngIf=\"commentsActivityItem && commentsActivityItem.RecId\">\r\n\r\n <div class=\"header clearfix\">\r\n <h2 class=\"pull-left\" style=\"color: #17191c;\">\r\n <i class=\"fa fa-comments-o m-r-10\"></i>\r\n {{'Comments'|translate}}</h2>\r\n\r\n </div>\r\n\r\n <ng-container>\r\n <app-activities-create [ViewFrom]=\"'Popup'\" [RefEntityTypeId]=\"EntityTypeId\"\r\n [EntityTypeId]=\"commentsActivityItem.RecId\" [RefTypeId]=\"refRecId\"\r\n [ActivityTypeId]=\"commentsActivityItem.RecId\" [IsHideCancelBtn]=\"true\"\r\n (closeActivityCreate)=\"closePopupCreateView($event.Type)\">\r\n </app-activities-create>\r\n </ng-container>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n </div>\r\n\r\n </div>\r\n\r\n <div class=\"tab-pane animated\" [ngClass]=\"{'active': tabDisplayView==2}\" id=\"ActionList\" >\r\n \r\n <div class=\"card select2-drop process_stage\">\r\n <app-grid [columnDefs]=\"columnDefs\"\r\n [GridTitle]=\"pageTitle\"\r\n [GridDescription]=\"pageDesp\"\r\n [columnDefs]=\"columnDefs\"\r\n [gridActionList]=\"gridActionList\"\r\n [selectMode]=\"selectMode\"\r\n [IsCreate]=\"isCreate\"\r\n [IsDelete]=\"isDelete\"\r\n [IsEdit]=\"isEdit\"\r\n [grid]=\"8\"\r\n (getPageList)=\"GetPageList($event.Criteria)\">\r\n </app-grid>\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n <ng-container *ngIf=\"showWorkflowPopup\">\r\n\r\n <app-workflow-dynamic-popup [showWorkflowPopups]=\"showWorkflowPopup\"\r\n [EntityTypeId]=\"EntityTypeId\"\r\n [EntityFormId]=\"workflowEntityFormId\"\r\n [PageGroupValues]=\"_TaskDetail\"\r\n (getWorkflowActionComments)=\"getWorkflowActionComments($event.comments, $event.updateFileds, $event.updateFieldsObject)\">\r\n </app-workflow-dynamic-popup>\r\n </ng-container>\r\n</div>\r\n\r\n<ng-container *ngIf=\"IsShowCreatePopup\">\r\n <div class=\"create_req\">\r\n <lib-create-form [PageType]=\"PageType\" [RequesterTypeId]=\"RequesterTypeId\" [Source]=\"Source\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\"\r\n [ChannelAr]=\"ChannelAr\" [RequesterId]=\"RequesterId\" [RequesterIdEn]=\"RequesterTypeIdEn\"\r\n [RequestField]=\"RequesterField\" (closeCreateModel)=\"hideCreatePopup($event.IsClose,$event.Data,$event.IsReload,$event.PageType)\"></lib-create-form>\r\n </div>\r\n</ng-container>\r\n<ng-container *ngIf=\"IsShowSendEmailPopup && EntityTypeRecId && refRecId\">\r\n <div class=\"create_req\">\r\n <lib-sendemail [EntityTypeId]=\"EntityTypeRecId\" [RecId]=\"refRecId\" (closeSendEmailModel)=\"hideEmailCreatePopup($event.IsClose,$event.Data,$event.IsReload)\"></lib-sendemail>\r\n </div>\r\n</ng-container>", styles: [".draghandle{position:absolute;z-index:100;top:0;bottom:0;right:0;float:right;border:1px solid #827d7d;background:#827d7d}.sidebar-left{width:1100px;float:left;box-shadow:-5px 0 #f7f7f7 inset}.wrapper #mainArea.content{margin-left:1100px}.activity-timeline .timeline-item.green,.activity-type .activity-item.green{color:#86c541}.activity-timeline .timeline-item.blue,.activity-type .activity-item.blue{color:#1d8ecd}.activity-timeline .timeline-item.warning,.activity-type .activity-item.warning{color:#f5a81d}.activity-timeline .timeline-item.danger,.activity-type .activity-item.danger{color:#ee2558}.activity-timeline .timeline-item.dark,.activity-type .activity-item.dark{color:#17191c}.activity-timeline .timeline-item.pomegranate,.activity-type .activity-item.pomegranate{color:#d35400!important}.activity-timeline .timeline-item{padding:15px 35px}.activity-timeline .timeline-item .msg{color:#000;margin:15px 0 10px}.activity-timeline .timeline-item:after{width:36px;height:36px;position:absolute;text-align:center;left:-18px;border-radius:100px;font-size:15px;font-weight:700;border:2px solid;border:none;padding:0;height:auto;top:25px;font: 14px/1 FontAwesome;content:\"\\f0e6\"}.activity-timeline .timeline-item.Email:after{content:\"\\e086\"}.activity-timeline .timeline-item.SMS:after{content:\"\\e04a\"}.activity-timeline .timeline-item.Notes:after{content:\"\\e04c\"}.activity-timeline .timeline-item.Comments:after{content:\"\\f0e6\"}.activity-timeline .timeline-item.Task:after{content:\"\\e067\"}.activity-timeline .timeline-item .timeline-body{padding:7px;border:1px solid #e1e2e1;position:relative;height:37px;background-color:#fafafa;margin-bottom:6px;border-radius:5px}.activity-timeline .timeline-item .timeline-body h5{cursor:pointer;font-size:15px;font-weight:400}.activity-timeline .timeline-item .timeline-body h5 .date{margin:0 10px;font-style:italic;font-size:small;font-weight:400}.activity-timeline .timeline-item .timeline-body.fullview{height:auto}.con-pointer{width:11px;height:11px;transform:rotate(45deg);position:absolute;top:11px;border:1px solid;left:-6.5px;border-width:0 0 1px 1px;background-position:-182px -292px;background-color:#fafafa;border-color:#e1e2e1}.activity-type{border-top:1px solid #ddd;margin-top:20px;background-color:#fff;padding:10px 0 0}.activity-type ul{list-style-type:none;padding:0}.activity-type ul li{padding:10px}.activity-type ul li .activity-item{font-size:16px;padding:10px 20px 25px;width:100%;border-radius:10px;display:inline-block;transition:all .2s ease-in-out;border:1px solid #fff}.activity-type ul li .activity-item i{margin-right:10px}.activity-type ul li .activity-item:hover{background:#fafafa;border:1px solid #ddd}.activity-type ul li.activity-select{margin-bottom:-10px}.activity-type ul li.activity-select .activity-item{border:1px solid #ddd;background-color:#fafafa}.activity-create{border-top:1px solid #ddd}.activity-type ul{width:100%;padding:0 10px;margin:0 0 -20px}.activity-type ul li{float:left}.breadcrumbs.details_pages{margin-bottom:0;border-radius:0}.breadcrumb-details{background:#fff;padding:20px 0;border:1px solid #0a6531;border:1px solid #ddd;border-top:none}.attached_lists li{display:block;width:100%;margin-top:10px}.attached_lists li a{border-radius:5px;border:1px solid #ddd;width:100%;display:inline-block;padding:7px;text-decoration:none;color:#000}.attached_lists li a .attached_lists_name span:first-child{font-weight:600;display:block;margin-bottom:5px}.attached_lists li a .attached_lists_name_Readonly{display:flex}.attached_lists li a .attached_lists_name_Readonly span:first-child{font-weight:600;margin-top:12px}.readonly{border:unset!important}.form-comments{margin-left:30px;margin-right:89px}.custom-dropdown .dropdown-content{display:none;position:absolute;background-color:#f9f9f9;min-width:160px;box-shadow:0 8px 16px #0003;z-index:1}.custom-dropdown .dropdown-content a{color:#000;padding:6px 8px;text-decoration:none;font-size:15px;display:block;text-align:left}.custom-dropdown .dropdown-content a:hover{background-color:#f1f1f1}.custom-dropdown .dropdown:hover .dropdown-content{display:block}.lang_Arabic .pull-right{float:left!important}.lang_Arabic .pull-left{float:right!important}\n"] }]
10046
+ }], ctorParameters: function () { return [{ type: TaskService }, { type: EntityTypeSetupService }, { type: i3.FormBuilder }, { type: i2.ActivatedRoute }, { type: GridServiceService }, { type: TicketApiService }, { type: GlobalService }, { type: i2.Router }]; }, propDecorators: { EntityTypeRecId: [{
9670
10047
  type: Input
9671
- }], EntityTypeId: [{
10048
+ }], RecId: [{
9672
10049
  type: Input
9673
10050
  }], ViewFrom: [{
9674
10051
  type: Input
9675
- }], Type: [{
9676
- type: Input
9677
- }], FormValues: [{
9678
- type: Input
9679
- }], IssueType: [{
10052
+ }], IsWfAction: [{
9680
10053
  type: Input
9681
- }], IssueGroup: [{
10054
+ }], PageType: [{
9682
10055
  type: Input
9683
- }], IssueSubGroup: [{
10056
+ }], RequesterTypeId: [{
9684
10057
  type: Input
9685
- }], IssueTypeEn: [{
10058
+ }], RequesterTypeIdEn: [{
9686
10059
  type: Input
9687
- }], IssueGroupEn: [{
10060
+ }], RequesterId: [{
9688
10061
  type: Input
9689
- }], IssueSubGroupEn: [{
10062
+ }], RequesterField: [{
9690
10063
  type: Input
9691
- }], IssueTypeAr: [{
10064
+ }], Language: [{
9692
10065
  type: Input
9693
- }], IssueGroupAr: [{
10066
+ }], HostUrl: [{
9694
10067
  type: Input
9695
- }], IssueSubGroupAr: [{
10068
+ }], Host: [{
9696
10069
  type: Input
9697
10070
  }], Source: [{
9698
10071
  type: Input
9699
- }], CreatedByUserType: [{
9700
- type: Input
9701
10072
  }], Channel: [{
9702
10073
  type: Input
9703
10074
  }], ChannelEn: [{
9704
10075
  type: Input
9705
10076
  }], ChannelAr: [{
9706
10077
  type: Input
9707
- }], RequestField: [{
9708
- type: Input
9709
- }], RequesterId: [{
9710
- type: Input
9711
- }], RequesterIdEn: [{
9712
- type: Input
9713
- }], closeCreate: [{
10078
+ }], closeCreateModel: [{
9714
10079
  type: Output
9715
10080
  }] } });
9716
10081
 
@@ -9721,6 +10086,7 @@ class CaseListComponent {
9721
10086
  this.globalService = globalService;
9722
10087
  this.gridServiceService = gridServiceService;
9723
10088
  this.document = document;
10089
+ this.dropdownSettings = {};
9724
10090
  this.EntityTypeId = null;
9725
10091
  this.IssueType = 11;
9726
10092
  this.Channel = '3';
@@ -9760,11 +10126,14 @@ class CaseListComponent {
9760
10126
  { Field: 'ProcessStageEn', Name: 'Process Stage En' },
9761
10127
  { Field: 'ProcessStageAr', Name: 'Process Stage Ar' },
9762
10128
  ];
10129
+ this.ContractList = [];
10130
+ this.SelectedContract = [];
10131
+ this.CurrentSelectedContract = [];
9763
10132
  this.viewTypes = [
9764
10133
  { id: 1, name: 'Tab View', class: 'la la-table' },
9765
10134
  { id: 2, name: 'Details View', class: 'la la-id-card-o' },
9766
10135
  ];
9767
- this.selectedIndex = 0;
10136
+ this.selectedIndex = 1;
9768
10137
  this.viewTypeData = 1;
9769
10138
  this.selectMode = E_SelectMode.None;
9770
10139
  this.EntityTypeDetail = null;
@@ -9797,16 +10166,34 @@ class CaseListComponent {
9797
10166
  }
9798
10167
  ngOnInit() {
9799
10168
  this.loadGrid([], 0);
10169
+ if (this.SelectedContract.length > 0) {
10170
+ this.SelectedContract.map((x) => {
10171
+ if (x) {
10172
+ this.CurrentSelectedContract.push({ ContractId: x });
10173
+ }
10174
+ });
10175
+ }
9800
10176
  if (this.EntityTypeId) {
9801
10177
  this.getEntityTypeDetails();
9802
10178
  this.getWorkflowStatusWithStage();
9803
10179
  this.getActiveEntityForm();
9804
10180
  }
9805
10181
  this.getListDatas(this.Searchcriteria);
10182
+ this.dropdownSettings = {
10183
+ singleSelection: false,
10184
+ idField: 'ContractId',
10185
+ textField: 'ContractId',
10186
+ selectAllText: 'Select All',
10187
+ unSelectAllText: 'UnSelect All',
10188
+ itemsShowLimit: 1,
10189
+ allowSearchFilter: true,
10190
+ clearSearchFilter: true,
10191
+ maxHeight: 150
10192
+ };
9806
10193
  }
9807
10194
  getListDatas(Criteria) {
9808
10195
  this.Searchcriteria = Criteria;
9809
- this.entityTypeSetup.getDynamicAll(Criteria, this.EntityTypeId, this.StatusId, this.RequesterId).subscribe((res) => {
10196
+ this.entityTypeSetup.getDynamicAll(Criteria, this.EntityTypeId, this.StatusId, this.RequesterId, this.formateContractListToString(this.CurrentSelectedContract)).subscribe((res) => {
9810
10197
  // alert("data");
9811
10198
  this.selfServiceRequestData = res.Data;
9812
10199
  this.totalRecordCount = res.TotalCount;
@@ -9856,8 +10243,33 @@ class CaseListComponent {
9856
10243
  totalRecordCount: 0,
9857
10244
  });
9858
10245
  }
10246
+ onSelectContractListDropdown(item) {
10247
+ this.getListDatas(this.Searchcriteria);
10248
+ }
10249
+ onSelectAllContractListDropdown(item) {
10250
+ this.CurrentSelectedContract = this.ContractList;
10251
+ this.getListDatas(this.Searchcriteria);
10252
+ }
10253
+ onDeSelectAllContractListDropdown() {
10254
+ this.CurrentSelectedContract = [];
10255
+ this.getListDatas(this.Searchcriteria);
10256
+ }
10257
+ formateContractListToString(contractlist) {
10258
+ let ContractlistString;
10259
+ if (contractlist.length > 0) {
10260
+ contractlist.map(x => {
10261
+ if (ContractlistString) {
10262
+ ContractlistString += ',' + x.ContractId;
10263
+ }
10264
+ else {
10265
+ ContractlistString = x.ContractId;
10266
+ }
10267
+ });
10268
+ }
10269
+ return ContractlistString;
10270
+ }
9859
10271
  viewType(data, index) {
9860
- this.selectedIndex = index;
10272
+ this.selectedIndex = data.id;
9861
10273
  this.viewTypeData = data.id;
9862
10274
  }
9863
10275
  backtoCard() {
@@ -10108,7 +10520,6 @@ class CaseListComponent {
10108
10520
  this.slide(direction, Id);
10109
10521
  }
10110
10522
  slide(direction, Id) {
10111
- debugger;
10112
10523
  let container = document.getElementById(Id);
10113
10524
  let scrollCompleted = 0;
10114
10525
  let slideVar = setInterval(function () {
@@ -10126,10 +10537,10 @@ class CaseListComponent {
10126
10537
  }
10127
10538
  }
10128
10539
  CaseListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: CaseListComponent, deps: [{ token: SupportRequestService }, { token: EntityTypeSetupService }, { token: GlobalService }, { token: GridServiceService }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
10129
- CaseListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: CaseListComponent, selector: "app-case-list", inputs: { EntityTypeId: "EntityTypeId", RequesterTypeId: "RequesterTypeId", RequesterTypeIdEn: "RequesterTypeIdEn", RequesterId: "RequesterId", RequesterField: "RequesterField", IssueType: "IssueType", Source: "Source", Channel: "Channel", ChannelEn: "ChannelEn", ChannelAr: "ChannelAr", GridSearchType: "GridSearchType", IsClientPagination: "IsClientPagination" }, ngImport: i0, template: "<div class=\"req_page whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n <div class=\"whole m-t-10\">\r\n <div class=\"clearfix\" *ngIf=\"!isShowCreateRequest && !isDetails\">\r\n <div class=\"float-left\" style=\"width: calc(100% - 50px);\">\r\n <div class=\"progress-wrap\">\r\n <div id=\"progress-container\">\r\n <div class=\"line\"></div>\r\n <ul id=\"slider-arrow\">\r\n <li class=\"clearfix\" *ngFor=\"let item of StatusAndStageList;let i= index\" (click)=\"selectStage(item)\">\r\n <span class=\"circle-content\" [ngClass]=\"{'active':selectedStage==item.RecId}\">\r\n <i *ngIf=\"item.StageIcon else elseicon;\" [ngClass]=\"item.StageIcon\"></i>\r\n <ng-template #elseicon>\r\n <i class=\"la la-list-alt\" *ngIf=\"item?.StageId == -1\"></i>\r\n <i class=\"la la-hourglass-half\" *ngIf=\"item?.StageId == 0\"></i>\r\n <i class=\"las la-clipboard-check\" *ngIf=\"item?.StageId != 0 && item?.StageId != -1\"></i>\r\n </ng-template>\r\n </span>\r\n <br>\r\n <a href=\"javascript:void(0);\" class=\"text-center\">\r\n {{(globalService.CurrentLanguage == 'Ar') ? (item.StageDescriptionAr ? item.StageDescriptionAr : item.StageDescription | translate) : (item.StageDescription |translate)}} \r\n <br>\r\n <span class=\"badge\" *ngIf=\"selectedStage==item.RecId\">{{totalRecordCount}}</span>\r\n <!-- <br>\r\n <span> {{item?.StageId}} - {{item?.RecordsStatusEn |translate}}</span> -->\r\n </a>\r\n </li>\r\n </ul>\r\n <!-- <ul>\r\n <li><i class=\"fa fa-check-square-o\"></i> <p>Step 1</p></li>\r\n <li><i class=\"fa fa-times\"></i><p>Step 2</p></li>\r\n <li><p>Step 3</p></li>\r\n </ul> -->\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"!isShowCreateRequest && !isDetails\" class=\"float-right\" style=\"width: 50px;border-radius: 5px 5px 0 0;background: #dddddd;\">\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:22px;\" (click)=\"slider('left','slider-arrow')\"><i class=\"fa fa-arrow-left\"></i></a>\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:22px;\" (click)=\"slider('right','slider-arrow')\"><i class=\"fa fa-arrow-right\"></i></a>\r\n </div> \r\n </div>\r\n <div class=\"workflow\" *ngIf=\"!isShowCreateRequest && !isDetails && false\">\r\n <ul>\r\n <li *ngFor=\"let item of StatusAndStageList\" class=\"clearfix\">\r\n <a href=\"javascript:void(0);\" (click)=\"selectStage(item)\">StageDescriptionAr\r\n {{globalService.CurrentLanguage=='Ar' ? (item.StageDescriptionAr ? item.StageDescriptionAr : (item.StageDescription|translate) ) : (item.StageDescription |translate)}} - <sup *ngIf=\"selectedStage==item.RecId\"> {{totalRecordCount}}</sup>\r\n <span> {{item?.StageId}} - {{item?.RecordsStatusEn |translate}}</span>\r\n </a>\r\n </li>\r\n </ul>\r\n </div>\r\n <h2 class=\"heading pull-left\" style=\"font-size: 23px !important;\">{{pageTitle |translate}}\r\n <span *ngIf=\"isShowCreateRequest\">- {{'Create'|translate}}</span>\r\n <span *ngIf=\"displayPopupDetailView\">- {{'Details'|translate}}</span>\r\n </h2>\r\n <div class=\"pull-left\" *ngIf=\"!(isShowCreateRequest || isDetails)\">\r\n <div class=\"pull-left create_req hierarchy-view\">\r\n <button class=\"add_req_btn\" (click)=\"openPopupCreatePage()\">\r\n {{'CreateNew'|translate}}\r\n <i class=\"fa fa-plus\" style=\"float: right;margin: 4px 1px 2px 8px;\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"pull-right m-r-10\" *ngIf=\"isDetails\">\r\n <button class=\"btn btn-outline btn-danger\" (click)=\"closePopupDetailView()\">\r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}\r\n </button>\r\n </div>\r\n <div class=\"pull-right m-r-10\" *ngIf=\"isShowCreateRequest\">\r\n <button class=\"btn btn-outline btn-danger\" (click)=\"backtoCard()\">\r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}\r\n </button>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"!(isShowCreateRequest || isDetails)\">\r\n \r\n <div class=\"whole bg-white p-3\">\r\n <div class=\"m-r-10 pull-left status_dropdown_div\" *ngIf=\"false\">\r\n <div class=\"dropdown status_dropdown pull-left\" style=\"min-width: 200px;\" *ngIf=\"false\">\r\n\r\n <ng-select *ngIf=\"globalService.CurrentLanguage == 'Ar' else elseEng\" (change)=\"filterStatus()\"\r\n [(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'\u062D\u0627\u0644\u0629'\" bindLabel=\"NameAr\"\r\n bindValue=\"Name\">\r\n </ng-select>\r\n <ng-template #elseEng>\r\n <ng-select (change)=\"filterStatus()\" [(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\"\r\n [placeholder]=\"'Status'\" bindLabel=\"Name\" bindValue=\"Name\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n </div>\r\n <div class=\"pull-left\">\r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 240px;\">\r\n\r\n <ng-select *ngIf=\"globalService.CurrentLanguage == 'Ar' else elseTemplate\" [items]=\"FieldListDDL\"\r\n [placeholder]=\"'\u0646\u0648\u0639'\" bindLabel=\"FieldAr\" bindValue=\"Name\" (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n\r\n <ng-template #elseTemplate>\r\n <ng-select [items]=\"FieldListDDL\" [placeholder]=\"'Sort'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n <ng-container *ngIf=\"CurrentSortingField\">\r\n <span class=\"pull-right sort-icon\" style=\" font-size: 20px;\">\r\n <i class=\"la la-sort-amount-asc\" *ngIf=\"SortingField.direction=='0'\" (click)=\"SortDirection(1)\"></i>\r\n <i class=\"la la-sort-amount-desc\" *ngIf=\"SortingField.direction=='1'\" (click)=\"SortDirection(0)\"></i>\r\n </span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div class=\"pull-right\">\r\n <div class=\"custom-dropdown\" *ngIf=\"wfActionData.length > 0\">\r\n <!-- -->\r\n <div class=\"custom-dropdown\" style=\"color: #fff;border-radius: 10px;margin-bottom: 10px;background: #339e33;\">\r\n <div class=\"dropdown\">\r\n <button class=\"dropbtn btn btn-success\">{{'Action'|translate}}</button>\r\n <div class=\"dropdown-content\">\r\n <span *ngIf=\"wfActionData.length<= 0\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\">\r\n {{'No Action Found'|translate}}\r\n </a>\r\n </span>\r\n <span *ngFor=\"let item of wfActionData\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"getStatusField(item)\">{{item.ActionDescription |translate}}</a>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"pull-right\">\r\n\r\n <input placeholder=\"{{'Search the CaseId/Iqama/Name here' | translate }}\" type=\"text\" class=\"serach_box pull-left\"\r\n [(ngModel)]=\"SearchBox\" (keyup)=\"searchData($event)\">\r\n\r\n <a href=\"javascript:void(0)\" class=\"themecolor action-btn m-r-10\" style=\"color: #000;font-size: 20px;\"\r\n *ngFor=\"let item of viewTypes; let i = index\" [ngClass]=\"{'themecolor':selectedIndex != i}\">\r\n <span [class.active]=\"selectedIndex === i\" (click)=\"viewType(item, i)\">\r\n <i class=\"la {{item.class}}\"></i>\r\n </span>\r\n </a>\r\n\r\n\r\n </div>\r\n \r\n </div>\r\n\r\n <div class=\"body whole\">\r\n <div *ngIf=\"viewTypeData ==2\">\r\n <div class=\"lists\" *ngFor=\"let item of selfServiceRequestData\">\r\n\r\n <div class=\"assign_to_div\" (click)=\"openDetailsPopup(item)\">\r\n <p>{{'ID' | translate}}</p>\r\n <span>#{{item?.CaseId}}</span>\r\n </div>\r\n\r\n <div class=\"content\" (click)=\"openDetailsPopup(item)\">\r\n <h4 class=\"themecolor\">{{'#'+item.LabourId}} | {{item.LaborName}} </h4>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Iqama Number'|translate}} </i>: {{item.IqamaNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Passport Number'|translate}} </i>: {{item.PassportNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Border Number'|translate}} </i>: {{item.BorderNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Mobile Number'|translate}} </i>: {{item.MobileNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Nationality'|translate}} </i>: {{item.NationalityEn}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Profession'|translate}} </i>: {{item.ProfessionEn}}</span>\r\n <div class=\"line_2\">\r\n <div class=\"pull-left\">{{'Added On'|translate}} {{item.CreatedDatetime | date}} {{'By'|translate}}\r\n {{item.CreatedBy}}</div>\r\n </div>\r\n <p>{{item.Description}}</p>\r\n <!-- <span><i class=\"text-bold\">Assigned Date </i>: {{item.AssignedDate | date}}</span>\r\n <span><i class=\"text-bold\">DeadLine Date </i>: {{item.DeadLineDateTime | date}}</span> -->\r\n <!-- <p>Steps:1.Login to Bugasura with valid user.2.Select respective project and open it 3.In issues list search enter text for search and hit enter button4.</p> -->\r\n </div>\r\n\r\n <div class=\"req_id\" (click)=\"openDetailsPopup(item)\">\r\n <!-- <label>{{item.CaseTypeIdEn}}</label>\r\n <p>{{item.CaseTypeId}}</p> -->\r\n <span><span class=\"text-bold\">{{globalService.CurrentLanguage =='Ar' ? (item.CaseTypeIdAr ? item.CaseTypeIdAr\r\n :\r\n (item.CaseTypeIdEn |translate)) : item.CaseTypeIdEn}}</span></span>\r\n <span><i class=\"text-bold\">{{'Request Date'|translate}} </i>: {{(item.DateofRequest ? item.DateofRequest : DateOfRequest) | date}}</span>\r\n <span><i class=\"text-bold\">{{'Start Date'|translate}} </i>: {{item.StartDate | date}}</span>\r\n <span><i class=\"text-bold\">{{'End Date'|translate}} </i>: {{item.EndDate | date}}</span>\r\n <!-- <span><i class=\"text-bold\"> {{'DeadLine Date' | translate}} </i>: {{item.DeadLineDateTime | date}}</span> -->\r\n </div>\r\n <div class=\"prioritys\">\r\n <div class=\"custom-dropdown\" *ngIf=\"wfActionData.length > 0 && false\">\r\n <!-- *ngIf=\"wfActionData.length > 0\" -->\r\n <div class=\"custom-dropdown\" style=\"color: #fff;border-radius: 10px;margin-bottom: 10px;background: #339e33;\">\r\n <div class=\"dropdown\">\r\n <a href=\"javascript:void(0)\" class=\"dropbtn atext\">{{'Action'|translate}} <i class=\"fa fa-sort-desc m-r-5\"></i></a>\r\n <div class=\"dropdown-content\">\r\n <span *ngIf=\"wfActionData.length<= 0\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\">\r\n {{'No Action Found'|translate}}\r\n </a>\r\n </span>\r\n <span *ngFor=\"let item of wfActionData\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"getStatusField(item)\">{{item.ActionDescription |translate}}</a>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <span class=\"priority\" [ngClass]=\"item?.PriorityEn\">{{globalService.CurrentLanguage =='Ar' ? (item?.PriorityAr\r\n ?\r\n item?.PriorityAr : (item?.PriorityEn |translate)) : item?.PriorityEn }}\r\n <ng-container *ngIf=\"item.PriorityEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <span class=\"priority\" style=\"background: #3535f238;color: #9c5145;\">{{globalService.CurrentLanguage =='Ar' ? (item?.ProcessStageAr\r\n ?\r\n item?.ProcessStageAr : (item?.ProcessStageEn |translate)) : item?.ProcessStageEn }}\r\n </span>\r\n\r\n <div class=\"status\" [ngClass]=\"item?.StatusIdEn\">\r\n <span>{{item?.StatusIdEn |translate}}\r\n <ng-container *ngIf=\"item.StatusIdEn == null\">{{'New'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n\r\n </div>\r\n <!-- <div class=\"assign_to_div\">\r\n <p>{{'Assigned To' | translate}}</p>\r\n <i class=\"las la-user-circle\" title=\"{{item.AssignedTo }}\"></i>\r\n </div> -->\r\n <div class=\"comments\" (click)=\"openDetailsPopup(item)\">\r\n <div>\r\n <i class=\"fa fa-comments-o\" aria-hidden=\"true\"></i>\r\n <span>{{item.CommentsCount}}</span>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n <app-pagination *ngIf=\"!IsClientPagination\" [totalCount]=\"totalRecordCount\" [pageCount]=\"pageCount\"\r\n [currentPage]=\"pageNo\" [pageSize]=\"pageSize\" [gridSearchType]=\"GridSearchType\"\r\n (getPaginationListData)=\"getPaginationListData($event.pageCount,$event.pageSize)\">\r\n </app-pagination>\r\n </div>\r\n <div *ngIf=\"viewTypeData ==1\">\r\n <app-grid [columnDefs]=\"columnDefs\" [GridTitle]=\"pageTitle\" \r\n [selectMode]=\"selectMode\" [IsCreate]=\"false\" [IsDelete]=\"false\"\r\n [IsEdit]=\"false\" [grid]=\"1\" (getPageList)=\"getListDatas($event.Criteria)\" (getGridCheckedData)=\"getgridCheckedData($event.gridData)\" (goToDetails)=\"openDetailsPopup($event.data)\">\r\n </app-grid>\r\n </div>\r\n </div>\r\n\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"isDetails && detailsRecId\">\r\n\r\n <app-support-request-details [ViewFrom]=\"'Popup'\" [IsWfAction]=\"true\" [RecId]=\"detailsRecId\" [EntityTypeRecId]=\"detailsEntityTypeRecId\">\r\n </app-support-request-details>\r\n\r\n </ng-container>\r\n\r\n\r\n <ng-container *ngIf=\"isShowCreateRequest\">\r\n\r\n <app-support-request-create class=\"support_req_div\" *ngIf=\"CreateItemId\" [ViewFrom]=\"'Popup'\" [Source]=\"Source\"\r\n [IssueType]=\"11\" [IssueTypeEn]=\"'Customer Self Service'\"\r\n [CreatedByUserType]=\"RequesterTypeId\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\" [ChannelAr]=\"ChannelAr\"\r\n [RequesterId]=\"RequesterId\" [RequesterIdEn]=\"RequesterTypeIdEn\" [RequestField]=\"RequesterField\" [Type]=\"'Create'\"\r\n [EntityTypeId]=\"CreateItemId\" (closeCreate)=\"closePopupCreateView($event.Type,$event.Data)\">\r\n </app-support-request-create>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"showWorkflowPopup\">\r\n\r\n <app-workflow-dynamic-popup [showWorkflowPopups]=\"showWorkflowPopup\"\r\n [EntityTypeId]=\"EntityTypeId\"\r\n [EntityFormId]=\"workflowEntityFormId\"\r\n (getWorkflowActionComments)=\"getWorkflowActionComments($event.comments, $event.updateFileds, $event.updateFieldsObject)\">\r\n </app-workflow-dynamic-popup>\r\n </ng-container>\r\n</div>", styles: [".f-s-12{font-size:12px!important}.workflow ul{list-style-type:none;margin:0;padding:0;overflow:hidden}.workflow li{float:left;background:#ea6a6a}.workflow li a{display:block;color:#fff;text-align:center;padding:16px;text-decoration:none;cursor:pointer!important}.workflow li a:hover{background-color:#111}html,body{background-color:#f2f2f2;display:flex;justify-content:center;align-items:center;width:100%}.progress-wrap{padding-bottom:70px;margin-bottom:20px;width:100%;overflow:hidden}#progress-container{display:flex;position:relative;height:100%;width:100%;overflow:hidden;margin:auto}#progress-container a{font-size:10px;line-height:10px;max-width:70px;float:left;text-decoration:none}#progress-container a span.badge{margin-top:6px}#progress-container .line{height:1px;width:100%;border-bottom:4px solid #d4d4d4;position:absolute;margin-top:25px;z-index:0}@media (max-width: 600px){#progress-container .line{width:100%}}#progress-container ul{list-style-type:none;margin:0;padding:0;overflow:hidden;display:flex;z-index:1}#progress-container li{float:left}#progress-container li:last-child span{margin-right:0!important}#progress-container li .circle-content{margin-right:70px;display:inline-flex;border:#d4d4d4 solid 4px;background:white;padding:10px;border-radius:50%;text-align:center;justify-content:center;align-items:center;font-weight:700;color:#000;font-size:25px;cursor:pointer}#progress-container li .circle-content:before{font-size:12px;position:absolute;margin-top:50px;color:#2b2020}#progress-container li .circle-content a{color:#312a2a}#progress-container li .done{font-family:FontAwesome;border:#8cc43d solid 4px;color:#8cc43d}#progress-container li .done:after{content:\"\\f00c\"}#progress-container li .done a{color:#8cc43d}#progress-container li .active{color:#fff;border:#b9dfc5 solid 4px;background:#225d34}#progress-container li .active a{color:#225d34}.custom-dropdown .dropdown-content{display:none;position:absolute;background-color:#f9f9f9;min-width:160px;box-shadow:0 8px 16px #0003;z-index:1}.custom-dropdown .dropdown-content a{color:#000;padding:6px 8px;text-decoration:none;font-size:15px;display:block;text-align:left}.custom-dropdown .dropdown-content a:hover{background-color:#f1f1f1}.custom-dropdown .dropdown:hover .dropdown-content{display:block}.atext{color:#fff!important;text-decoration:none!important}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i7$1.NgSelectComponent, selector: "ng-select", inputs: ["bindLabel", "bindValue", "markFirst", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "appearance", "dropdownPosition", "appendTo", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "openOnEnter", "maxSelectedItems", "groupBy", "groupValue", "bufferAmount", "virtualScroll", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "tabIndex", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "typeahead", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { kind: "component", type: SupportRequestDetailsComponent, selector: "app-support-request-details", inputs: ["EntityTypeRecId", "RecId", "ViewFrom", "IsWfAction"] }, { kind: "component", type: SupportRequestCreateComponent, selector: "app-support-request-create", inputs: ["EntityFormId", "EntityTypeId", "ViewFrom", "Type", "FormValues", "IssueType", "IssueGroup", "IssueSubGroup", "IssueTypeEn", "IssueGroupEn", "IssueSubGroupEn", "IssueTypeAr", "IssueGroupAr", "IssueSubGroupAr", "Source", "CreatedByUserType", "Channel", "ChannelEn", "ChannelAr", "RequestField", "RequesterId", "RequesterIdEn"], outputs: ["closeCreate"] }, { kind: "component", type: PaginationComponent, selector: "app-pagination", inputs: ["currentPage", "totalCount", "pageCount", "pageSize", "gridSearchType"], outputs: ["getPaginationListData"] }, { kind: "component", type: WorkflowDynamicPopupComponent, selector: "app-workflow-dynamic-popup", inputs: ["currentStage", "ProcessId", "showWorkflowPopups", "isUpdateFields", "pageForm", "columnDefs", "caller", "EntityFormId", "EntityTypeId", "PageGroupValues"], outputs: ["getWorkflowActionComments"] }, { kind: "component", type: GridComponent, selector: "app-grid", inputs: ["grid", "GridTitle", "InnerGridTitle", "GridDescription", "selectMode", "gridSelectOptions", "gridActionList", "gridActionStatus", "gridCurrentStatus", "IsGridActionList", "IsGridActionForm", "columnDefs", "InnerColumnDefs", "gridSelectOption", "IsCreate", "IsEdit", "IsDelete", "IsSorting", "IsRefresh", "IsSearch", "IsthSize", "IsActive", "IsDuplicate", "RowInsideGrid", "IsDetails", "IsBack", "IsAttach", "IsDynamicListpage", "IsAssign", "IsInnerGrid", "IsShowDetailsGo", "IsExport", "IsTicketGroupAssign", "GridSearchType", "IsClientPagination", "IsCategorySetupView", "IsInnerGridCreate", "IsInnerGridEdit", "IsInnerGridDelete", "IsHidden", "gridData", "GridDynamicExportData", "IsDynamicExport"], outputs: ["getGridAction", "getGridStatusAction", "getGridCheckedData", "openCreatePopup", "getPageList", "getInnerPageList", "goToDetails", "goToAction", "callButtonEvent", "callIconEvent", "callOnOffEvent", "copyTextEvent", "gridSelectOptionsData", "assignmentMethod", "ticketGroupAssignmentMethod", "attachMethod", "gotoBackToList", "editMethod", "ActiveMethod", "DuplicateMethod", "rowInsideMethod", "deleteMethod", "multipleDeleteMethod", "GetDetailsList", "GetListView", "categorySetupView", "openCreatePopupInnerGrid", "editMethodInnerGrid", "deleteMethodInnerGrid"] }, { kind: "pipe", type: i4.DatePipe, name: "date" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
10540
+ CaseListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: CaseListComponent, selector: "app-case-list", inputs: { EntityTypeId: "EntityTypeId", RequesterTypeId: "RequesterTypeId", RequesterTypeIdEn: "RequesterTypeIdEn", RequesterId: "RequesterId", RequesterField: "RequesterField", IssueType: "IssueType", Source: "Source", Channel: "Channel", ChannelEn: "ChannelEn", ChannelAr: "ChannelAr", GridSearchType: "GridSearchType", IsClientPagination: "IsClientPagination", ContractList: "ContractList", SelectedContract: "SelectedContract" }, ngImport: i0, template: "<div class=\"req_page whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n <div class=\"whole m-t-10\">\r\n <div class=\"clearfix\" *ngIf=\"!isShowCreateRequest && !isDetails\">\r\n <div class=\"float-left\" style=\"width: calc(100% - 50px);\">\r\n <div class=\"progress-wrap\">\r\n <div id=\"progress-container\">\r\n <div class=\"line\"></div>\r\n <ul id=\"slider-arrow\">\r\n <li class=\"clearfix\" *ngFor=\"let item of StatusAndStageList;let i= index\" (click)=\"selectStage(item)\">\r\n <span class=\"circle-content\" [ngClass]=\"{'active':selectedStage==item.RecId}\">\r\n <i *ngIf=\"item.StageIcon else elseicon;\" [ngClass]=\"item.StageIcon\"></i>\r\n <ng-template #elseicon>\r\n <i class=\"la la-list-alt\" *ngIf=\"item?.StageId == -1\"></i>\r\n <i class=\"la la-hourglass-half\" *ngIf=\"item?.StageId == 0\"></i>\r\n <i class=\"las la-clipboard-check\" *ngIf=\"item?.StageId != 0 && item?.StageId != -1\"></i>\r\n </ng-template>\r\n </span>\r\n <br>\r\n <a href=\"javascript:void(0);\" class=\"text-center\">\r\n {{(globalService.CurrentLanguage == 'Ar') ? (item.StageDescriptionAr ? item.StageDescriptionAr : item.StageDescription | translate) : (item.StageDescription |translate)}} \r\n <br>\r\n <span class=\"badge\" *ngIf=\"selectedStage==item.RecId\">{{totalRecordCount}}</span>\r\n <!-- <br>\r\n <span> {{item?.StageId}} - {{item?.RecordsStatusEn |translate}}</span> -->\r\n </a>\r\n </li>\r\n </ul>\r\n <!-- <ul>\r\n <li><i class=\"fa fa-check-square-o\"></i> <p>Step 1</p></li>\r\n <li><i class=\"fa fa-times\"></i><p>Step 2</p></li>\r\n <li><p>Step 3</p></li>\r\n </ul> -->\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"!isShowCreateRequest && !isDetails\" class=\"float-right\" style=\"width: 50px;border-radius: 5px 5px 0 0;background: #dddddd;\">\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:22px;\" (click)=\"slider('left','slider-arrow')\"><i class=\"fa fa-arrow-left\"></i></a>\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:22px;\" (click)=\"slider('right','slider-arrow')\"><i class=\"fa fa-arrow-right\"></i></a>\r\n </div> \r\n </div>\r\n <div class=\"workflow\" *ngIf=\"!isShowCreateRequest && !isDetails && false\">\r\n <ul>\r\n <li *ngFor=\"let item of StatusAndStageList\" class=\"clearfix\">\r\n <a href=\"javascript:void(0);\" (click)=\"selectStage(item)\">StageDescriptionAr\r\n {{globalService.CurrentLanguage=='Ar' ? (item.StageDescriptionAr ? item.StageDescriptionAr : (item.StageDescription|translate) ) : (item.StageDescription |translate)}} - <sup *ngIf=\"selectedStage==item.RecId\"> {{totalRecordCount}}</sup>\r\n <span> {{item?.StageId}} - {{item?.RecordsStatusEn |translate}}</span>\r\n </a>\r\n </li>\r\n </ul>\r\n </div>\r\n <h2 class=\"heading pull-left\" style=\"font-size: 23px !important;\">{{pageTitle |translate}}\r\n <span *ngIf=\"isShowCreateRequest\">- {{'Create'|translate}}</span>\r\n <span *ngIf=\"displayPopupDetailView\">- {{'Details'|translate}}</span>\r\n </h2>\r\n <div class=\"pull-left\" *ngIf=\"!(isShowCreateRequest || isDetails)\">\r\n <div class=\"pull-left create_req hierarchy-view\">\r\n <button class=\"add_req_btn\" (click)=\"openPopupCreatePage()\">\r\n {{'CreateNew'|translate}}\r\n <i class=\"fa fa-plus\" style=\"float: right;margin: 4px 1px 2px 8px;\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"pull-right m-r-10\" *ngIf=\"isDetails\">\r\n <button class=\"btn btn-outline btn-danger\" (click)=\"closePopupDetailView()\">\r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}\r\n </button>\r\n </div>\r\n <div class=\"pull-right m-r-10\" *ngIf=\"isShowCreateRequest\">\r\n <button class=\"btn btn-outline btn-danger\" (click)=\"backtoCard()\">\r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}\r\n </button>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"!(isShowCreateRequest || isDetails)\">\r\n \r\n <div class=\"whole bg-white p-3\">\r\n <div class=\"m-r-10 pull-left status_dropdown_div\" *ngIf=\"false\">\r\n <div class=\"dropdown status_dropdown pull-left\" style=\"min-width: 200px;\" *ngIf=\"false\">\r\n\r\n <ng-select *ngIf=\"globalService.CurrentLanguage == 'Ar' else elseEng\" (change)=\"filterStatus()\"\r\n [(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'\u062D\u0627\u0644\u0629'\" bindLabel=\"NameAr\"\r\n bindValue=\"Name\">\r\n </ng-select>\r\n <ng-template #elseEng>\r\n <ng-select (change)=\"filterStatus()\" [(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\"\r\n [placeholder]=\"'Status'\" bindLabel=\"Name\" bindValue=\"Name\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n </div>\r\n \r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 150px;max-width: 180px;\">\r\n <!-- <ng-select [items]=\"ContractList\" [placeholder]=\"'ContractList'\"\r\n bindLabel=\"ContractId\" bindValue=\"ContractId\" [(ngModel)]=\"SelectedContract\" (change)=\"getListDatas(Searchcriteria)\">\r\n </ng-select> -->\r\n <ng-multiselect-dropdown [placeholder]=\"'select Contract'|translate\" [settings]=\"dropdownSettings\" [data]=\"ContractList\"\r\n [(ngModel)]=\"CurrentSelectedContract\" (onSelect)=\"onSelectContractListDropdown($event)\"\r\n (onSelectAll)=\"onSelectAllContractListDropdown($event)\" (onDeSelect)=\"onSelectContractListDropdown($event)\"\r\n (onDeSelectAll)=\"onDeSelectAllContractListDropdown()\">\r\n </ng-multiselect-dropdown>\r\n </div>\r\n </div>\r\n <div class=\"pull-left\">\r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 240px;\">\r\n\r\n <ng-select *ngIf=\"globalService.CurrentLanguage == 'Ar' else elseTemplate\" [items]=\"FieldListDDL\"\r\n [placeholder]=\"'\u0646\u0648\u0639'\" bindLabel=\"FieldAr\" bindValue=\"Name\" (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n\r\n <ng-template #elseTemplate>\r\n <ng-select [items]=\"FieldListDDL\" [placeholder]=\"'Sort'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n <ng-container *ngIf=\"CurrentSortingField\">\r\n <span class=\"pull-right sort-icon\" style=\" font-size: 20px;\">\r\n <i class=\"la la-sort-amount-asc\" *ngIf=\"SortingField.direction=='0'\" (click)=\"SortDirection(1)\"></i>\r\n <i class=\"la la-sort-amount-desc\" *ngIf=\"SortingField.direction=='1'\" (click)=\"SortDirection(0)\"></i>\r\n </span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div class=\"pull-right\">\r\n <div class=\"custom-dropdown\" *ngIf=\"wfActionData.length > 0\">\r\n <!-- -->\r\n <div class=\"custom-dropdown\" style=\"color: #fff;border-radius: 10px;margin-bottom: 10px;background: #339e33;\">\r\n <div class=\"dropdown\">\r\n <button class=\"dropbtn btn btn-success\">{{'Action'|translate}}</button>\r\n <div class=\"dropdown-content\">\r\n <span *ngIf=\"wfActionData.length<= 0\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\">\r\n {{'No Action Found'|translate}}\r\n </a>\r\n </span>\r\n <span *ngFor=\"let item of wfActionData\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"getStatusField(item)\">{{item.ActionDescription |translate}}</a>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"pull-right\">\r\n\r\n <input placeholder=\"{{'Search the CaseId/Iqama/Name here' | translate }}\" type=\"text\" class=\"serach_box pull-left\"\r\n [(ngModel)]=\"SearchBox\" (keyup)=\"searchData($event)\">\r\n\r\n <a href=\"javascript:void(0)\" class=\"themecolor action-btn m-r-5\" style=\"color: #000;font-size: 20px;\"\r\n *ngFor=\"let item of viewTypes; let i = index\" [ngClass]=\"{'themecolor':selectedIndex == item.id}\">\r\n <span [class.active]=\"selectedIndex === item.id\" (click)=\"viewType(item, i)\">\r\n <i class=\"la {{item.class}}\"></i>\r\n </span>\r\n </a>\r\n\r\n\r\n </div>\r\n \r\n </div>\r\n\r\n <div class=\"body whole\">\r\n <div *ngIf=\"viewTypeData ==2\">\r\n <div class=\"lists\" *ngFor=\"let item of selfServiceRequestData\">\r\n\r\n <div class=\"assign_to_div\" (click)=\"openDetailsPopup(item)\">\r\n <p>{{'ID' | translate}}</p>\r\n <span>#{{item?.CaseId}}</span>\r\n </div>\r\n\r\n <div class=\"content\" (click)=\"openDetailsPopup(item)\">\r\n <h4 class=\"themecolor\">{{'#'+item.LabourId}} | {{item.LaborName}} </h4>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Iqama Number'|translate}} </i>: {{item.IqamaNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Passport Number'|translate}} </i>: {{item.PassportNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Border Number'|translate}} </i>: {{item.BorderNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Mobile Number'|translate}} </i>: {{item.MobileNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Nationality'|translate}} </i>: {{item.NationalityEn}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Profession'|translate}} </i>: {{item.ProfessionEn}}</span>\r\n <div class=\"line_2\">\r\n <div class=\"pull-left\">{{'Added On'|translate}} {{item.CreatedDatetime | date}} {{'By'|translate}}\r\n {{item.CreatedBy}}</div>\r\n </div>\r\n <p>{{item.Description}}</p>\r\n <!-- <span><i class=\"text-bold\">Assigned Date </i>: {{item.AssignedDate | date}}</span>\r\n <span><i class=\"text-bold\">DeadLine Date </i>: {{item.DeadLineDateTime | date}}</span> -->\r\n <!-- <p>Steps:1.Login to Bugasura with valid user.2.Select respective project and open it 3.In issues list search enter text for search and hit enter button4.</p> -->\r\n </div>\r\n\r\n <div class=\"req_id\" (click)=\"openDetailsPopup(item)\">\r\n <!-- <label>{{item.CaseTypeIdEn}}</label>\r\n <p>{{item.CaseTypeId}}</p> -->\r\n <span><span class=\"text-bold\">{{globalService.CurrentLanguage =='Ar' ? (item.CaseTypeIdAr ? item.CaseTypeIdAr\r\n :\r\n (item.CaseTypeIdEn |translate)) : item.CaseTypeIdEn}}</span></span>\r\n <span><i class=\"text-bold\">{{'Request Date'|translate}} </i>: {{(item.DateofRequest ? item.DateofRequest : DateOfRequest) | date}}</span>\r\n <span><i class=\"text-bold\">{{'Start Date'|translate}} </i>: {{item.StartDate | date}}</span>\r\n <span><i class=\"text-bold\">{{'End Date'|translate}} </i>: {{item.EndDate | date}}</span>\r\n <!-- <span><i class=\"text-bold\"> {{'DeadLine Date' | translate}} </i>: {{item.DeadLineDateTime | date}}</span> -->\r\n </div>\r\n <div class=\"prioritys\">\r\n <div class=\"custom-dropdown\" *ngIf=\"wfActionData.length > 0 && false\">\r\n <!-- *ngIf=\"wfActionData.length > 0\" -->\r\n <div class=\"custom-dropdown\" style=\"color: #fff;border-radius: 10px;margin-bottom: 10px;background: #339e33;\">\r\n <div class=\"dropdown\">\r\n <a href=\"javascript:void(0)\" class=\"dropbtn atext\">{{'Action'|translate}} <i class=\"fa fa-sort-desc m-r-5\"></i></a>\r\n <div class=\"dropdown-content\">\r\n <span *ngIf=\"wfActionData.length<= 0\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\">\r\n {{'No Action Found'|translate}}\r\n </a>\r\n </span>\r\n <span *ngFor=\"let item of wfActionData\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"getStatusField(item)\">{{item.ActionDescription |translate}}</a>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <span class=\"priority\" [ngClass]=\"item?.PriorityEn\">{{globalService.CurrentLanguage =='Ar' ? (item?.PriorityAr\r\n ?\r\n item?.PriorityAr : (item?.PriorityEn |translate)) : item?.PriorityEn }}\r\n <ng-container *ngIf=\"item.PriorityEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <span class=\"priority\" style=\"background: #3535f238;color: #9c5145;\">{{globalService.CurrentLanguage =='Ar' ? (item?.ProcessStageAr\r\n ?\r\n item?.ProcessStageAr : (item?.ProcessStageEn |translate)) : item?.ProcessStageEn }}\r\n </span>\r\n\r\n <div class=\"status\" [ngClass]=\"item?.StatusIdEn\">\r\n <span>{{item?.StatusIdEn |translate}}\r\n <ng-container *ngIf=\"item.StatusIdEn == null\">{{'New'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n\r\n </div>\r\n <!-- <div class=\"assign_to_div\">\r\n <p>{{'Assigned To' | translate}}</p>\r\n <i class=\"las la-user-circle\" title=\"{{item.AssignedTo }}\"></i>\r\n </div> -->\r\n <div class=\"comments\" (click)=\"openDetailsPopup(item)\">\r\n <div>\r\n <i class=\"fa fa-comments-o\" aria-hidden=\"true\"></i>\r\n <span>{{item.CommentsCount}}</span>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n <app-pagination *ngIf=\"!IsClientPagination\" [totalCount]=\"totalRecordCount\" [pageCount]=\"pageCount\"\r\n [currentPage]=\"pageNo\" [pageSize]=\"pageSize\" [gridSearchType]=\"GridSearchType\"\r\n (getPaginationListData)=\"getPaginationListData($event.pageCount,$event.pageSize)\">\r\n </app-pagination>\r\n </div>\r\n <div *ngIf=\"viewTypeData ==1\">\r\n <app-grid [columnDefs]=\"columnDefs\" [GridTitle]=\"pageTitle\" \r\n [selectMode]=\"selectMode\" [IsCreate]=\"false\" [IsDelete]=\"false\"\r\n [IsEdit]=\"false\" [grid]=\"1\" (getPageList)=\"getListDatas($event.Criteria)\" (getGridCheckedData)=\"getgridCheckedData($event.gridData)\" (goToDetails)=\"openDetailsPopup($event.data)\">\r\n </app-grid>\r\n </div>\r\n </div>\r\n\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"isDetails && detailsRecId\">\r\n\r\n <app-support-request-details [ViewFrom]=\"'Popup'\" [IsWfAction]=\"true\" [RecId]=\"detailsRecId\" [EntityTypeRecId]=\"detailsEntityTypeRecId\">\r\n </app-support-request-details>\r\n\r\n </ng-container>\r\n\r\n\r\n <ng-container *ngIf=\"isShowCreateRequest\">\r\n\r\n <app-support-request-create class=\"support_req_div\" *ngIf=\"CreateItemId\" [ViewFrom]=\"'Popup'\" [Source]=\"Source\"\r\n [IssueType]=\"11\" [IssueTypeEn]=\"'Customer Self Service'\"\r\n [CreatedByUserType]=\"RequesterTypeId\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\" [ChannelAr]=\"ChannelAr\"\r\n [RequesterId]=\"RequesterId\" [RequesterIdEn]=\"RequesterTypeIdEn\" [RequestField]=\"RequesterField\" [Type]=\"'Create'\"\r\n [EntityTypeId]=\"CreateItemId\" (closeCreate)=\"closePopupCreateView($event.Type,$event.Data)\">\r\n </app-support-request-create>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"showWorkflowPopup\">\r\n\r\n <app-workflow-dynamic-popup [showWorkflowPopups]=\"showWorkflowPopup\"\r\n [EntityTypeId]=\"EntityTypeId\"\r\n [EntityFormId]=\"workflowEntityFormId\"\r\n (getWorkflowActionComments)=\"getWorkflowActionComments($event.comments, $event.updateFileds, $event.updateFieldsObject)\">\r\n </app-workflow-dynamic-popup>\r\n </ng-container>\r\n</div>", styles: [".f-s-12{font-size:12px!important}.workflow ul{list-style-type:none;margin:0;padding:0;overflow:hidden}.workflow li{float:left;background:#ea6a6a}.workflow li a{display:block;color:#fff;text-align:center;padding:16px;text-decoration:none;cursor:pointer!important}.workflow li a:hover{background-color:#111}html,body{background-color:#f2f2f2;display:flex;justify-content:center;align-items:center;width:100%}.progress-wrap{padding-bottom:70px;margin-bottom:20px;width:100%;overflow:hidden}#progress-container{display:flex;position:relative;height:100%;width:100%;overflow:hidden;margin:auto}#progress-container a{font-size:10px;line-height:10px;max-width:70px;float:left;text-decoration:none}#progress-container a span.badge{margin-top:6px}#progress-container .line{height:1px;width:100%;border-bottom:4px solid #d4d4d4;position:absolute;margin-top:25px;z-index:0}@media (max-width: 600px){#progress-container .line{width:100%}}#progress-container ul{list-style-type:none;margin:0;padding:0;overflow:hidden;display:flex;z-index:1}#progress-container li{float:left}#progress-container li:last-child span{margin-right:0!important}#progress-container li .circle-content{margin-right:70px;display:inline-flex;border:#d4d4d4 solid 4px;background:white;padding:10px;border-radius:50%;text-align:center;justify-content:center;align-items:center;font-weight:700;color:#000;font-size:25px;cursor:pointer}#progress-container li .circle-content:before{font-size:12px;position:absolute;margin-top:50px;color:#2b2020}#progress-container li .circle-content a{color:#312a2a}#progress-container li .done{font-family:FontAwesome;border:#8cc43d solid 4px;color:#8cc43d}#progress-container li .done:after{content:\"\\f00c\"}#progress-container li .done a{color:#8cc43d}#progress-container li .active{color:#fff;border:#b9dfc5 solid 4px;background:#225d34}#progress-container li .active a{color:#225d34}.custom-dropdown .dropdown-content{display:none;position:absolute;background-color:#f9f9f9;min-width:160px;box-shadow:0 8px 16px #0003;z-index:1}.custom-dropdown .dropdown-content a{color:#000;padding:6px 8px;text-decoration:none;font-size:15px;display:block;text-align:left}.custom-dropdown .dropdown-content a:hover{background-color:#f1f1f1}.custom-dropdown .dropdown:hover .dropdown-content{display:block}.atext{color:#fff!important;text-decoration:none!important}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i5$1.NgSelectComponent, selector: "ng-select", inputs: ["bindLabel", "bindValue", "markFirst", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "appearance", "dropdownPosition", "appendTo", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "openOnEnter", "maxSelectedItems", "groupBy", "groupValue", "bufferAmount", "virtualScroll", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "tabIndex", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "typeahead", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { kind: "component", type: i8.MultiSelectComponent, selector: "ng-multiselect-dropdown", inputs: ["disabled", "placeholder", "settings", "data"], outputs: ["onFilterChange", "onDropDownClose", "onSelect", "onDeSelect", "onSelectAll", "onDeSelectAll"] }, { kind: "component", type: SupportRequestDetailsComponent, selector: "app-support-request-details", inputs: ["EntityTypeRecId", "RecId", "ViewFrom", "IsWfAction", "PageType", "RequesterTypeId", "RequesterTypeIdEn", "RequesterId", "RequesterField", "Language", "HostUrl", "Host", "Source", "Channel", "ChannelEn", "ChannelAr"], outputs: ["closeCreateModel"] }, { kind: "component", type: SupportRequestCreateComponent, selector: "app-support-request-create", inputs: ["EntityFormId", "EntityTypeId", "ViewFrom", "Type", "FormValues", "IssueType", "IssueGroup", "IssueSubGroup", "IssueTypeEn", "IssueGroupEn", "IssueSubGroupEn", "IssueTypeAr", "IssueGroupAr", "IssueSubGroupAr", "Source", "CreatedByUserType", "Channel", "ChannelEn", "ChannelAr", "RequestField", "RequesterId", "RequesterIdEn"], outputs: ["closeCreate"] }, { kind: "component", type: PaginationComponent, selector: "app-pagination", inputs: ["currentPage", "totalCount", "pageCount", "pageSize", "gridSearchType"], outputs: ["getPaginationListData"] }, { kind: "component", type: WorkflowDynamicPopupComponent, selector: "app-workflow-dynamic-popup", inputs: ["currentStage", "ProcessId", "showWorkflowPopups", "isUpdateFields", "pageForm", "columnDefs", "caller", "EntityFormId", "EntityTypeId", "PageGroupValues"], outputs: ["getWorkflowActionComments"] }, { kind: "component", type: GridComponent, selector: "app-grid", inputs: ["grid", "GridTitle", "InnerGridTitle", "GridDescription", "selectMode", "gridSelectOptions", "gridActionList", "gridActionStatus", "gridCurrentStatus", "IsGridActionList", "IsGridActionForm", "columnDefs", "InnerColumnDefs", "gridSelectOption", "IsCreate", "IsEdit", "IsDelete", "IsSorting", "IsRefresh", "IsSearch", "IsthSize", "IsActive", "IsDuplicate", "RowInsideGrid", "IsDetails", "IsBack", "IsAttach", "IsDynamicListpage", "IsAssign", "IsInnerGrid", "IsShowDetailsGo", "IsExport", "IsTicketGroupAssign", "GridSearchType", "IsClientPagination", "IsCategorySetupView", "IsInnerGridCreate", "IsInnerGridEdit", "IsInnerGridDelete", "IsHidden", "gridData", "GridDynamicExportData", "IsDynamicExport"], outputs: ["getGridAction", "getGridStatusAction", "getGridCheckedData", "openCreatePopup", "getPageList", "getInnerPageList", "goToDetails", "goToAction", "callButtonEvent", "callIconEvent", "callOnOffEvent", "copyTextEvent", "gridSelectOptionsData", "assignmentMethod", "ticketGroupAssignmentMethod", "attachMethod", "gotoBackToList", "editMethod", "ActiveMethod", "DuplicateMethod", "rowInsideMethod", "deleteMethod", "multipleDeleteMethod", "GetDetailsList", "GetListView", "categorySetupView", "openCreatePopupInnerGrid", "editMethodInnerGrid", "deleteMethodInnerGrid"] }, { kind: "pipe", type: i4.DatePipe, name: "date" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
10130
10541
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: CaseListComponent, decorators: [{
10131
10542
  type: Component,
10132
- args: [{ selector: 'app-case-list', template: "<div class=\"req_page whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n <div class=\"whole m-t-10\">\r\n <div class=\"clearfix\" *ngIf=\"!isShowCreateRequest && !isDetails\">\r\n <div class=\"float-left\" style=\"width: calc(100% - 50px);\">\r\n <div class=\"progress-wrap\">\r\n <div id=\"progress-container\">\r\n <div class=\"line\"></div>\r\n <ul id=\"slider-arrow\">\r\n <li class=\"clearfix\" *ngFor=\"let item of StatusAndStageList;let i= index\" (click)=\"selectStage(item)\">\r\n <span class=\"circle-content\" [ngClass]=\"{'active':selectedStage==item.RecId}\">\r\n <i *ngIf=\"item.StageIcon else elseicon;\" [ngClass]=\"item.StageIcon\"></i>\r\n <ng-template #elseicon>\r\n <i class=\"la la-list-alt\" *ngIf=\"item?.StageId == -1\"></i>\r\n <i class=\"la la-hourglass-half\" *ngIf=\"item?.StageId == 0\"></i>\r\n <i class=\"las la-clipboard-check\" *ngIf=\"item?.StageId != 0 && item?.StageId != -1\"></i>\r\n </ng-template>\r\n </span>\r\n <br>\r\n <a href=\"javascript:void(0);\" class=\"text-center\">\r\n {{(globalService.CurrentLanguage == 'Ar') ? (item.StageDescriptionAr ? item.StageDescriptionAr : item.StageDescription | translate) : (item.StageDescription |translate)}} \r\n <br>\r\n <span class=\"badge\" *ngIf=\"selectedStage==item.RecId\">{{totalRecordCount}}</span>\r\n <!-- <br>\r\n <span> {{item?.StageId}} - {{item?.RecordsStatusEn |translate}}</span> -->\r\n </a>\r\n </li>\r\n </ul>\r\n <!-- <ul>\r\n <li><i class=\"fa fa-check-square-o\"></i> <p>Step 1</p></li>\r\n <li><i class=\"fa fa-times\"></i><p>Step 2</p></li>\r\n <li><p>Step 3</p></li>\r\n </ul> -->\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"!isShowCreateRequest && !isDetails\" class=\"float-right\" style=\"width: 50px;border-radius: 5px 5px 0 0;background: #dddddd;\">\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:22px;\" (click)=\"slider('left','slider-arrow')\"><i class=\"fa fa-arrow-left\"></i></a>\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:22px;\" (click)=\"slider('right','slider-arrow')\"><i class=\"fa fa-arrow-right\"></i></a>\r\n </div> \r\n </div>\r\n <div class=\"workflow\" *ngIf=\"!isShowCreateRequest && !isDetails && false\">\r\n <ul>\r\n <li *ngFor=\"let item of StatusAndStageList\" class=\"clearfix\">\r\n <a href=\"javascript:void(0);\" (click)=\"selectStage(item)\">StageDescriptionAr\r\n {{globalService.CurrentLanguage=='Ar' ? (item.StageDescriptionAr ? item.StageDescriptionAr : (item.StageDescription|translate) ) : (item.StageDescription |translate)}} - <sup *ngIf=\"selectedStage==item.RecId\"> {{totalRecordCount}}</sup>\r\n <span> {{item?.StageId}} - {{item?.RecordsStatusEn |translate}}</span>\r\n </a>\r\n </li>\r\n </ul>\r\n </div>\r\n <h2 class=\"heading pull-left\" style=\"font-size: 23px !important;\">{{pageTitle |translate}}\r\n <span *ngIf=\"isShowCreateRequest\">- {{'Create'|translate}}</span>\r\n <span *ngIf=\"displayPopupDetailView\">- {{'Details'|translate}}</span>\r\n </h2>\r\n <div class=\"pull-left\" *ngIf=\"!(isShowCreateRequest || isDetails)\">\r\n <div class=\"pull-left create_req hierarchy-view\">\r\n <button class=\"add_req_btn\" (click)=\"openPopupCreatePage()\">\r\n {{'CreateNew'|translate}}\r\n <i class=\"fa fa-plus\" style=\"float: right;margin: 4px 1px 2px 8px;\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"pull-right m-r-10\" *ngIf=\"isDetails\">\r\n <button class=\"btn btn-outline btn-danger\" (click)=\"closePopupDetailView()\">\r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}\r\n </button>\r\n </div>\r\n <div class=\"pull-right m-r-10\" *ngIf=\"isShowCreateRequest\">\r\n <button class=\"btn btn-outline btn-danger\" (click)=\"backtoCard()\">\r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}\r\n </button>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"!(isShowCreateRequest || isDetails)\">\r\n \r\n <div class=\"whole bg-white p-3\">\r\n <div class=\"m-r-10 pull-left status_dropdown_div\" *ngIf=\"false\">\r\n <div class=\"dropdown status_dropdown pull-left\" style=\"min-width: 200px;\" *ngIf=\"false\">\r\n\r\n <ng-select *ngIf=\"globalService.CurrentLanguage == 'Ar' else elseEng\" (change)=\"filterStatus()\"\r\n [(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'\u062D\u0627\u0644\u0629'\" bindLabel=\"NameAr\"\r\n bindValue=\"Name\">\r\n </ng-select>\r\n <ng-template #elseEng>\r\n <ng-select (change)=\"filterStatus()\" [(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\"\r\n [placeholder]=\"'Status'\" bindLabel=\"Name\" bindValue=\"Name\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n </div>\r\n <div class=\"pull-left\">\r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 240px;\">\r\n\r\n <ng-select *ngIf=\"globalService.CurrentLanguage == 'Ar' else elseTemplate\" [items]=\"FieldListDDL\"\r\n [placeholder]=\"'\u0646\u0648\u0639'\" bindLabel=\"FieldAr\" bindValue=\"Name\" (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n\r\n <ng-template #elseTemplate>\r\n <ng-select [items]=\"FieldListDDL\" [placeholder]=\"'Sort'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n <ng-container *ngIf=\"CurrentSortingField\">\r\n <span class=\"pull-right sort-icon\" style=\" font-size: 20px;\">\r\n <i class=\"la la-sort-amount-asc\" *ngIf=\"SortingField.direction=='0'\" (click)=\"SortDirection(1)\"></i>\r\n <i class=\"la la-sort-amount-desc\" *ngIf=\"SortingField.direction=='1'\" (click)=\"SortDirection(0)\"></i>\r\n </span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div class=\"pull-right\">\r\n <div class=\"custom-dropdown\" *ngIf=\"wfActionData.length > 0\">\r\n <!-- -->\r\n <div class=\"custom-dropdown\" style=\"color: #fff;border-radius: 10px;margin-bottom: 10px;background: #339e33;\">\r\n <div class=\"dropdown\">\r\n <button class=\"dropbtn btn btn-success\">{{'Action'|translate}}</button>\r\n <div class=\"dropdown-content\">\r\n <span *ngIf=\"wfActionData.length<= 0\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\">\r\n {{'No Action Found'|translate}}\r\n </a>\r\n </span>\r\n <span *ngFor=\"let item of wfActionData\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"getStatusField(item)\">{{item.ActionDescription |translate}}</a>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"pull-right\">\r\n\r\n <input placeholder=\"{{'Search the CaseId/Iqama/Name here' | translate }}\" type=\"text\" class=\"serach_box pull-left\"\r\n [(ngModel)]=\"SearchBox\" (keyup)=\"searchData($event)\">\r\n\r\n <a href=\"javascript:void(0)\" class=\"themecolor action-btn m-r-10\" style=\"color: #000;font-size: 20px;\"\r\n *ngFor=\"let item of viewTypes; let i = index\" [ngClass]=\"{'themecolor':selectedIndex != i}\">\r\n <span [class.active]=\"selectedIndex === i\" (click)=\"viewType(item, i)\">\r\n <i class=\"la {{item.class}}\"></i>\r\n </span>\r\n </a>\r\n\r\n\r\n </div>\r\n \r\n </div>\r\n\r\n <div class=\"body whole\">\r\n <div *ngIf=\"viewTypeData ==2\">\r\n <div class=\"lists\" *ngFor=\"let item of selfServiceRequestData\">\r\n\r\n <div class=\"assign_to_div\" (click)=\"openDetailsPopup(item)\">\r\n <p>{{'ID' | translate}}</p>\r\n <span>#{{item?.CaseId}}</span>\r\n </div>\r\n\r\n <div class=\"content\" (click)=\"openDetailsPopup(item)\">\r\n <h4 class=\"themecolor\">{{'#'+item.LabourId}} | {{item.LaborName}} </h4>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Iqama Number'|translate}} </i>: {{item.IqamaNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Passport Number'|translate}} </i>: {{item.PassportNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Border Number'|translate}} </i>: {{item.BorderNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Mobile Number'|translate}} </i>: {{item.MobileNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Nationality'|translate}} </i>: {{item.NationalityEn}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Profession'|translate}} </i>: {{item.ProfessionEn}}</span>\r\n <div class=\"line_2\">\r\n <div class=\"pull-left\">{{'Added On'|translate}} {{item.CreatedDatetime | date}} {{'By'|translate}}\r\n {{item.CreatedBy}}</div>\r\n </div>\r\n <p>{{item.Description}}</p>\r\n <!-- <span><i class=\"text-bold\">Assigned Date </i>: {{item.AssignedDate | date}}</span>\r\n <span><i class=\"text-bold\">DeadLine Date </i>: {{item.DeadLineDateTime | date}}</span> -->\r\n <!-- <p>Steps:1.Login to Bugasura with valid user.2.Select respective project and open it 3.In issues list search enter text for search and hit enter button4.</p> -->\r\n </div>\r\n\r\n <div class=\"req_id\" (click)=\"openDetailsPopup(item)\">\r\n <!-- <label>{{item.CaseTypeIdEn}}</label>\r\n <p>{{item.CaseTypeId}}</p> -->\r\n <span><span class=\"text-bold\">{{globalService.CurrentLanguage =='Ar' ? (item.CaseTypeIdAr ? item.CaseTypeIdAr\r\n :\r\n (item.CaseTypeIdEn |translate)) : item.CaseTypeIdEn}}</span></span>\r\n <span><i class=\"text-bold\">{{'Request Date'|translate}} </i>: {{(item.DateofRequest ? item.DateofRequest : DateOfRequest) | date}}</span>\r\n <span><i class=\"text-bold\">{{'Start Date'|translate}} </i>: {{item.StartDate | date}}</span>\r\n <span><i class=\"text-bold\">{{'End Date'|translate}} </i>: {{item.EndDate | date}}</span>\r\n <!-- <span><i class=\"text-bold\"> {{'DeadLine Date' | translate}} </i>: {{item.DeadLineDateTime | date}}</span> -->\r\n </div>\r\n <div class=\"prioritys\">\r\n <div class=\"custom-dropdown\" *ngIf=\"wfActionData.length > 0 && false\">\r\n <!-- *ngIf=\"wfActionData.length > 0\" -->\r\n <div class=\"custom-dropdown\" style=\"color: #fff;border-radius: 10px;margin-bottom: 10px;background: #339e33;\">\r\n <div class=\"dropdown\">\r\n <a href=\"javascript:void(0)\" class=\"dropbtn atext\">{{'Action'|translate}} <i class=\"fa fa-sort-desc m-r-5\"></i></a>\r\n <div class=\"dropdown-content\">\r\n <span *ngIf=\"wfActionData.length<= 0\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\">\r\n {{'No Action Found'|translate}}\r\n </a>\r\n </span>\r\n <span *ngFor=\"let item of wfActionData\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"getStatusField(item)\">{{item.ActionDescription |translate}}</a>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <span class=\"priority\" [ngClass]=\"item?.PriorityEn\">{{globalService.CurrentLanguage =='Ar' ? (item?.PriorityAr\r\n ?\r\n item?.PriorityAr : (item?.PriorityEn |translate)) : item?.PriorityEn }}\r\n <ng-container *ngIf=\"item.PriorityEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <span class=\"priority\" style=\"background: #3535f238;color: #9c5145;\">{{globalService.CurrentLanguage =='Ar' ? (item?.ProcessStageAr\r\n ?\r\n item?.ProcessStageAr : (item?.ProcessStageEn |translate)) : item?.ProcessStageEn }}\r\n </span>\r\n\r\n <div class=\"status\" [ngClass]=\"item?.StatusIdEn\">\r\n <span>{{item?.StatusIdEn |translate}}\r\n <ng-container *ngIf=\"item.StatusIdEn == null\">{{'New'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n\r\n </div>\r\n <!-- <div class=\"assign_to_div\">\r\n <p>{{'Assigned To' | translate}}</p>\r\n <i class=\"las la-user-circle\" title=\"{{item.AssignedTo }}\"></i>\r\n </div> -->\r\n <div class=\"comments\" (click)=\"openDetailsPopup(item)\">\r\n <div>\r\n <i class=\"fa fa-comments-o\" aria-hidden=\"true\"></i>\r\n <span>{{item.CommentsCount}}</span>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n <app-pagination *ngIf=\"!IsClientPagination\" [totalCount]=\"totalRecordCount\" [pageCount]=\"pageCount\"\r\n [currentPage]=\"pageNo\" [pageSize]=\"pageSize\" [gridSearchType]=\"GridSearchType\"\r\n (getPaginationListData)=\"getPaginationListData($event.pageCount,$event.pageSize)\">\r\n </app-pagination>\r\n </div>\r\n <div *ngIf=\"viewTypeData ==1\">\r\n <app-grid [columnDefs]=\"columnDefs\" [GridTitle]=\"pageTitle\" \r\n [selectMode]=\"selectMode\" [IsCreate]=\"false\" [IsDelete]=\"false\"\r\n [IsEdit]=\"false\" [grid]=\"1\" (getPageList)=\"getListDatas($event.Criteria)\" (getGridCheckedData)=\"getgridCheckedData($event.gridData)\" (goToDetails)=\"openDetailsPopup($event.data)\">\r\n </app-grid>\r\n </div>\r\n </div>\r\n\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"isDetails && detailsRecId\">\r\n\r\n <app-support-request-details [ViewFrom]=\"'Popup'\" [IsWfAction]=\"true\" [RecId]=\"detailsRecId\" [EntityTypeRecId]=\"detailsEntityTypeRecId\">\r\n </app-support-request-details>\r\n\r\n </ng-container>\r\n\r\n\r\n <ng-container *ngIf=\"isShowCreateRequest\">\r\n\r\n <app-support-request-create class=\"support_req_div\" *ngIf=\"CreateItemId\" [ViewFrom]=\"'Popup'\" [Source]=\"Source\"\r\n [IssueType]=\"11\" [IssueTypeEn]=\"'Customer Self Service'\"\r\n [CreatedByUserType]=\"RequesterTypeId\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\" [ChannelAr]=\"ChannelAr\"\r\n [RequesterId]=\"RequesterId\" [RequesterIdEn]=\"RequesterTypeIdEn\" [RequestField]=\"RequesterField\" [Type]=\"'Create'\"\r\n [EntityTypeId]=\"CreateItemId\" (closeCreate)=\"closePopupCreateView($event.Type,$event.Data)\">\r\n </app-support-request-create>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"showWorkflowPopup\">\r\n\r\n <app-workflow-dynamic-popup [showWorkflowPopups]=\"showWorkflowPopup\"\r\n [EntityTypeId]=\"EntityTypeId\"\r\n [EntityFormId]=\"workflowEntityFormId\"\r\n (getWorkflowActionComments)=\"getWorkflowActionComments($event.comments, $event.updateFileds, $event.updateFieldsObject)\">\r\n </app-workflow-dynamic-popup>\r\n </ng-container>\r\n</div>", styles: [".f-s-12{font-size:12px!important}.workflow ul{list-style-type:none;margin:0;padding:0;overflow:hidden}.workflow li{float:left;background:#ea6a6a}.workflow li a{display:block;color:#fff;text-align:center;padding:16px;text-decoration:none;cursor:pointer!important}.workflow li a:hover{background-color:#111}html,body{background-color:#f2f2f2;display:flex;justify-content:center;align-items:center;width:100%}.progress-wrap{padding-bottom:70px;margin-bottom:20px;width:100%;overflow:hidden}#progress-container{display:flex;position:relative;height:100%;width:100%;overflow:hidden;margin:auto}#progress-container a{font-size:10px;line-height:10px;max-width:70px;float:left;text-decoration:none}#progress-container a span.badge{margin-top:6px}#progress-container .line{height:1px;width:100%;border-bottom:4px solid #d4d4d4;position:absolute;margin-top:25px;z-index:0}@media (max-width: 600px){#progress-container .line{width:100%}}#progress-container ul{list-style-type:none;margin:0;padding:0;overflow:hidden;display:flex;z-index:1}#progress-container li{float:left}#progress-container li:last-child span{margin-right:0!important}#progress-container li .circle-content{margin-right:70px;display:inline-flex;border:#d4d4d4 solid 4px;background:white;padding:10px;border-radius:50%;text-align:center;justify-content:center;align-items:center;font-weight:700;color:#000;font-size:25px;cursor:pointer}#progress-container li .circle-content:before{font-size:12px;position:absolute;margin-top:50px;color:#2b2020}#progress-container li .circle-content a{color:#312a2a}#progress-container li .done{font-family:FontAwesome;border:#8cc43d solid 4px;color:#8cc43d}#progress-container li .done:after{content:\"\\f00c\"}#progress-container li .done a{color:#8cc43d}#progress-container li .active{color:#fff;border:#b9dfc5 solid 4px;background:#225d34}#progress-container li .active a{color:#225d34}.custom-dropdown .dropdown-content{display:none;position:absolute;background-color:#f9f9f9;min-width:160px;box-shadow:0 8px 16px #0003;z-index:1}.custom-dropdown .dropdown-content a{color:#000;padding:6px 8px;text-decoration:none;font-size:15px;display:block;text-align:left}.custom-dropdown .dropdown-content a:hover{background-color:#f1f1f1}.custom-dropdown .dropdown:hover .dropdown-content{display:block}.atext{color:#fff!important;text-decoration:none!important}\n"] }]
10543
+ args: [{ selector: 'app-case-list', template: "<div class=\"req_page whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n <div class=\"whole m-t-10\">\r\n <div class=\"clearfix\" *ngIf=\"!isShowCreateRequest && !isDetails\">\r\n <div class=\"float-left\" style=\"width: calc(100% - 50px);\">\r\n <div class=\"progress-wrap\">\r\n <div id=\"progress-container\">\r\n <div class=\"line\"></div>\r\n <ul id=\"slider-arrow\">\r\n <li class=\"clearfix\" *ngFor=\"let item of StatusAndStageList;let i= index\" (click)=\"selectStage(item)\">\r\n <span class=\"circle-content\" [ngClass]=\"{'active':selectedStage==item.RecId}\">\r\n <i *ngIf=\"item.StageIcon else elseicon;\" [ngClass]=\"item.StageIcon\"></i>\r\n <ng-template #elseicon>\r\n <i class=\"la la-list-alt\" *ngIf=\"item?.StageId == -1\"></i>\r\n <i class=\"la la-hourglass-half\" *ngIf=\"item?.StageId == 0\"></i>\r\n <i class=\"las la-clipboard-check\" *ngIf=\"item?.StageId != 0 && item?.StageId != -1\"></i>\r\n </ng-template>\r\n </span>\r\n <br>\r\n <a href=\"javascript:void(0);\" class=\"text-center\">\r\n {{(globalService.CurrentLanguage == 'Ar') ? (item.StageDescriptionAr ? item.StageDescriptionAr : item.StageDescription | translate) : (item.StageDescription |translate)}} \r\n <br>\r\n <span class=\"badge\" *ngIf=\"selectedStage==item.RecId\">{{totalRecordCount}}</span>\r\n <!-- <br>\r\n <span> {{item?.StageId}} - {{item?.RecordsStatusEn |translate}}</span> -->\r\n </a>\r\n </li>\r\n </ul>\r\n <!-- <ul>\r\n <li><i class=\"fa fa-check-square-o\"></i> <p>Step 1</p></li>\r\n <li><i class=\"fa fa-times\"></i><p>Step 2</p></li>\r\n <li><p>Step 3</p></li>\r\n </ul> -->\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"!isShowCreateRequest && !isDetails\" class=\"float-right\" style=\"width: 50px;border-radius: 5px 5px 0 0;background: #dddddd;\">\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:22px;\" (click)=\"slider('left','slider-arrow')\"><i class=\"fa fa-arrow-left\"></i></a>\r\n <a href=\"javascript:void(0);\" class=\"arrownext\" style=\"font-size:22px;\" (click)=\"slider('right','slider-arrow')\"><i class=\"fa fa-arrow-right\"></i></a>\r\n </div> \r\n </div>\r\n <div class=\"workflow\" *ngIf=\"!isShowCreateRequest && !isDetails && false\">\r\n <ul>\r\n <li *ngFor=\"let item of StatusAndStageList\" class=\"clearfix\">\r\n <a href=\"javascript:void(0);\" (click)=\"selectStage(item)\">StageDescriptionAr\r\n {{globalService.CurrentLanguage=='Ar' ? (item.StageDescriptionAr ? item.StageDescriptionAr : (item.StageDescription|translate) ) : (item.StageDescription |translate)}} - <sup *ngIf=\"selectedStage==item.RecId\"> {{totalRecordCount}}</sup>\r\n <span> {{item?.StageId}} - {{item?.RecordsStatusEn |translate}}</span>\r\n </a>\r\n </li>\r\n </ul>\r\n </div>\r\n <h2 class=\"heading pull-left\" style=\"font-size: 23px !important;\">{{pageTitle |translate}}\r\n <span *ngIf=\"isShowCreateRequest\">- {{'Create'|translate}}</span>\r\n <span *ngIf=\"displayPopupDetailView\">- {{'Details'|translate}}</span>\r\n </h2>\r\n <div class=\"pull-left\" *ngIf=\"!(isShowCreateRequest || isDetails)\">\r\n <div class=\"pull-left create_req hierarchy-view\">\r\n <button class=\"add_req_btn\" (click)=\"openPopupCreatePage()\">\r\n {{'CreateNew'|translate}}\r\n <i class=\"fa fa-plus\" style=\"float: right;margin: 4px 1px 2px 8px;\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"pull-right m-r-10\" *ngIf=\"isDetails\">\r\n <button class=\"btn btn-outline btn-danger\" (click)=\"closePopupDetailView()\">\r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}\r\n </button>\r\n </div>\r\n <div class=\"pull-right m-r-10\" *ngIf=\"isShowCreateRequest\">\r\n <button class=\"btn btn-outline btn-danger\" (click)=\"backtoCard()\">\r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}\r\n </button>\r\n </div>\r\n </div>\r\n <ng-container *ngIf=\"!(isShowCreateRequest || isDetails)\">\r\n \r\n <div class=\"whole bg-white p-3\">\r\n <div class=\"m-r-10 pull-left status_dropdown_div\" *ngIf=\"false\">\r\n <div class=\"dropdown status_dropdown pull-left\" style=\"min-width: 200px;\" *ngIf=\"false\">\r\n\r\n <ng-select *ngIf=\"globalService.CurrentLanguage == 'Ar' else elseEng\" (change)=\"filterStatus()\"\r\n [(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'\u062D\u0627\u0644\u0629'\" bindLabel=\"NameAr\"\r\n bindValue=\"Name\">\r\n </ng-select>\r\n <ng-template #elseEng>\r\n <ng-select (change)=\"filterStatus()\" [(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\"\r\n [placeholder]=\"'Status'\" bindLabel=\"Name\" bindValue=\"Name\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n </div>\r\n \r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 150px;max-width: 180px;\">\r\n <!-- <ng-select [items]=\"ContractList\" [placeholder]=\"'ContractList'\"\r\n bindLabel=\"ContractId\" bindValue=\"ContractId\" [(ngModel)]=\"SelectedContract\" (change)=\"getListDatas(Searchcriteria)\">\r\n </ng-select> -->\r\n <ng-multiselect-dropdown [placeholder]=\"'select Contract'|translate\" [settings]=\"dropdownSettings\" [data]=\"ContractList\"\r\n [(ngModel)]=\"CurrentSelectedContract\" (onSelect)=\"onSelectContractListDropdown($event)\"\r\n (onSelectAll)=\"onSelectAllContractListDropdown($event)\" (onDeSelect)=\"onSelectContractListDropdown($event)\"\r\n (onDeSelectAll)=\"onDeSelectAllContractListDropdown()\">\r\n </ng-multiselect-dropdown>\r\n </div>\r\n </div>\r\n <div class=\"pull-left\">\r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 240px;\">\r\n\r\n <ng-select *ngIf=\"globalService.CurrentLanguage == 'Ar' else elseTemplate\" [items]=\"FieldListDDL\"\r\n [placeholder]=\"'\u0646\u0648\u0639'\" bindLabel=\"FieldAr\" bindValue=\"Name\" (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n\r\n <ng-template #elseTemplate>\r\n <ng-select [items]=\"FieldListDDL\" [placeholder]=\"'Sort'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n <ng-container *ngIf=\"CurrentSortingField\">\r\n <span class=\"pull-right sort-icon\" style=\" font-size: 20px;\">\r\n <i class=\"la la-sort-amount-asc\" *ngIf=\"SortingField.direction=='0'\" (click)=\"SortDirection(1)\"></i>\r\n <i class=\"la la-sort-amount-desc\" *ngIf=\"SortingField.direction=='1'\" (click)=\"SortDirection(0)\"></i>\r\n </span>\r\n </ng-container>\r\n </div>\r\n </div>\r\n <div class=\"pull-right\">\r\n <div class=\"custom-dropdown\" *ngIf=\"wfActionData.length > 0\">\r\n <!-- -->\r\n <div class=\"custom-dropdown\" style=\"color: #fff;border-radius: 10px;margin-bottom: 10px;background: #339e33;\">\r\n <div class=\"dropdown\">\r\n <button class=\"dropbtn btn btn-success\">{{'Action'|translate}}</button>\r\n <div class=\"dropdown-content\">\r\n <span *ngIf=\"wfActionData.length<= 0\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\">\r\n {{'No Action Found'|translate}}\r\n </a>\r\n </span>\r\n <span *ngFor=\"let item of wfActionData\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"getStatusField(item)\">{{item.ActionDescription |translate}}</a>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"pull-right\">\r\n\r\n <input placeholder=\"{{'Search the CaseId/Iqama/Name here' | translate }}\" type=\"text\" class=\"serach_box pull-left\"\r\n [(ngModel)]=\"SearchBox\" (keyup)=\"searchData($event)\">\r\n\r\n <a href=\"javascript:void(0)\" class=\"themecolor action-btn m-r-5\" style=\"color: #000;font-size: 20px;\"\r\n *ngFor=\"let item of viewTypes; let i = index\" [ngClass]=\"{'themecolor':selectedIndex == item.id}\">\r\n <span [class.active]=\"selectedIndex === item.id\" (click)=\"viewType(item, i)\">\r\n <i class=\"la {{item.class}}\"></i>\r\n </span>\r\n </a>\r\n\r\n\r\n </div>\r\n \r\n </div>\r\n\r\n <div class=\"body whole\">\r\n <div *ngIf=\"viewTypeData ==2\">\r\n <div class=\"lists\" *ngFor=\"let item of selfServiceRequestData\">\r\n\r\n <div class=\"assign_to_div\" (click)=\"openDetailsPopup(item)\">\r\n <p>{{'ID' | translate}}</p>\r\n <span>#{{item?.CaseId}}</span>\r\n </div>\r\n\r\n <div class=\"content\" (click)=\"openDetailsPopup(item)\">\r\n <h4 class=\"themecolor\">{{'#'+item.LabourId}} | {{item.LaborName}} </h4>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Iqama Number'|translate}} </i>: {{item.IqamaNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Passport Number'|translate}} </i>: {{item.PassportNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Border Number'|translate}} </i>: {{item.BorderNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Mobile Number'|translate}} </i>: {{item.MobileNumber}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Nationality'|translate}} </i>: {{item.NationalityEn}}</span>\r\n <span class=\"f-s-12\"><i class=\"text-bold f-s-12\">{{'Profession'|translate}} </i>: {{item.ProfessionEn}}</span>\r\n <div class=\"line_2\">\r\n <div class=\"pull-left\">{{'Added On'|translate}} {{item.CreatedDatetime | date}} {{'By'|translate}}\r\n {{item.CreatedBy}}</div>\r\n </div>\r\n <p>{{item.Description}}</p>\r\n <!-- <span><i class=\"text-bold\">Assigned Date </i>: {{item.AssignedDate | date}}</span>\r\n <span><i class=\"text-bold\">DeadLine Date </i>: {{item.DeadLineDateTime | date}}</span> -->\r\n <!-- <p>Steps:1.Login to Bugasura with valid user.2.Select respective project and open it 3.In issues list search enter text for search and hit enter button4.</p> -->\r\n </div>\r\n\r\n <div class=\"req_id\" (click)=\"openDetailsPopup(item)\">\r\n <!-- <label>{{item.CaseTypeIdEn}}</label>\r\n <p>{{item.CaseTypeId}}</p> -->\r\n <span><span class=\"text-bold\">{{globalService.CurrentLanguage =='Ar' ? (item.CaseTypeIdAr ? item.CaseTypeIdAr\r\n :\r\n (item.CaseTypeIdEn |translate)) : item.CaseTypeIdEn}}</span></span>\r\n <span><i class=\"text-bold\">{{'Request Date'|translate}} </i>: {{(item.DateofRequest ? item.DateofRequest : DateOfRequest) | date}}</span>\r\n <span><i class=\"text-bold\">{{'Start Date'|translate}} </i>: {{item.StartDate | date}}</span>\r\n <span><i class=\"text-bold\">{{'End Date'|translate}} </i>: {{item.EndDate | date}}</span>\r\n <!-- <span><i class=\"text-bold\"> {{'DeadLine Date' | translate}} </i>: {{item.DeadLineDateTime | date}}</span> -->\r\n </div>\r\n <div class=\"prioritys\">\r\n <div class=\"custom-dropdown\" *ngIf=\"wfActionData.length > 0 && false\">\r\n <!-- *ngIf=\"wfActionData.length > 0\" -->\r\n <div class=\"custom-dropdown\" style=\"color: #fff;border-radius: 10px;margin-bottom: 10px;background: #339e33;\">\r\n <div class=\"dropdown\">\r\n <a href=\"javascript:void(0)\" class=\"dropbtn atext\">{{'Action'|translate}} <i class=\"fa fa-sort-desc m-r-5\"></i></a>\r\n <div class=\"dropdown-content\">\r\n <span *ngIf=\"wfActionData.length<= 0\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\">\r\n {{'No Action Found'|translate}}\r\n </a>\r\n </span>\r\n <span *ngFor=\"let item of wfActionData\">\r\n <a href=\"javascript:void(0);\" class=\"dropdownlist\" (click)=\"getStatusField(item)\">{{item.ActionDescription |translate}}</a>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <span class=\"priority\" [ngClass]=\"item?.PriorityEn\">{{globalService.CurrentLanguage =='Ar' ? (item?.PriorityAr\r\n ?\r\n item?.PriorityAr : (item?.PriorityEn |translate)) : item?.PriorityEn }}\r\n <ng-container *ngIf=\"item.PriorityEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <span class=\"priority\" style=\"background: #3535f238;color: #9c5145;\">{{globalService.CurrentLanguage =='Ar' ? (item?.ProcessStageAr\r\n ?\r\n item?.ProcessStageAr : (item?.ProcessStageEn |translate)) : item?.ProcessStageEn }}\r\n </span>\r\n\r\n <div class=\"status\" [ngClass]=\"item?.StatusIdEn\">\r\n <span>{{item?.StatusIdEn |translate}}\r\n <ng-container *ngIf=\"item.StatusIdEn == null\">{{'New'|translate}}</ng-container>\r\n </span>\r\n </div>\r\n\r\n </div>\r\n <!-- <div class=\"assign_to_div\">\r\n <p>{{'Assigned To' | translate}}</p>\r\n <i class=\"las la-user-circle\" title=\"{{item.AssignedTo }}\"></i>\r\n </div> -->\r\n <div class=\"comments\" (click)=\"openDetailsPopup(item)\">\r\n <div>\r\n <i class=\"fa fa-comments-o\" aria-hidden=\"true\"></i>\r\n <span>{{item.CommentsCount}}</span>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n <app-pagination *ngIf=\"!IsClientPagination\" [totalCount]=\"totalRecordCount\" [pageCount]=\"pageCount\"\r\n [currentPage]=\"pageNo\" [pageSize]=\"pageSize\" [gridSearchType]=\"GridSearchType\"\r\n (getPaginationListData)=\"getPaginationListData($event.pageCount,$event.pageSize)\">\r\n </app-pagination>\r\n </div>\r\n <div *ngIf=\"viewTypeData ==1\">\r\n <app-grid [columnDefs]=\"columnDefs\" [GridTitle]=\"pageTitle\" \r\n [selectMode]=\"selectMode\" [IsCreate]=\"false\" [IsDelete]=\"false\"\r\n [IsEdit]=\"false\" [grid]=\"1\" (getPageList)=\"getListDatas($event.Criteria)\" (getGridCheckedData)=\"getgridCheckedData($event.gridData)\" (goToDetails)=\"openDetailsPopup($event.data)\">\r\n </app-grid>\r\n </div>\r\n </div>\r\n\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"isDetails && detailsRecId\">\r\n\r\n <app-support-request-details [ViewFrom]=\"'Popup'\" [IsWfAction]=\"true\" [RecId]=\"detailsRecId\" [EntityTypeRecId]=\"detailsEntityTypeRecId\">\r\n </app-support-request-details>\r\n\r\n </ng-container>\r\n\r\n\r\n <ng-container *ngIf=\"isShowCreateRequest\">\r\n\r\n <app-support-request-create class=\"support_req_div\" *ngIf=\"CreateItemId\" [ViewFrom]=\"'Popup'\" [Source]=\"Source\"\r\n [IssueType]=\"11\" [IssueTypeEn]=\"'Customer Self Service'\"\r\n [CreatedByUserType]=\"RequesterTypeId\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\" [ChannelAr]=\"ChannelAr\"\r\n [RequesterId]=\"RequesterId\" [RequesterIdEn]=\"RequesterTypeIdEn\" [RequestField]=\"RequesterField\" [Type]=\"'Create'\"\r\n [EntityTypeId]=\"CreateItemId\" (closeCreate)=\"closePopupCreateView($event.Type,$event.Data)\">\r\n </app-support-request-create>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"showWorkflowPopup\">\r\n\r\n <app-workflow-dynamic-popup [showWorkflowPopups]=\"showWorkflowPopup\"\r\n [EntityTypeId]=\"EntityTypeId\"\r\n [EntityFormId]=\"workflowEntityFormId\"\r\n (getWorkflowActionComments)=\"getWorkflowActionComments($event.comments, $event.updateFileds, $event.updateFieldsObject)\">\r\n </app-workflow-dynamic-popup>\r\n </ng-container>\r\n</div>", styles: [".f-s-12{font-size:12px!important}.workflow ul{list-style-type:none;margin:0;padding:0;overflow:hidden}.workflow li{float:left;background:#ea6a6a}.workflow li a{display:block;color:#fff;text-align:center;padding:16px;text-decoration:none;cursor:pointer!important}.workflow li a:hover{background-color:#111}html,body{background-color:#f2f2f2;display:flex;justify-content:center;align-items:center;width:100%}.progress-wrap{padding-bottom:70px;margin-bottom:20px;width:100%;overflow:hidden}#progress-container{display:flex;position:relative;height:100%;width:100%;overflow:hidden;margin:auto}#progress-container a{font-size:10px;line-height:10px;max-width:70px;float:left;text-decoration:none}#progress-container a span.badge{margin-top:6px}#progress-container .line{height:1px;width:100%;border-bottom:4px solid #d4d4d4;position:absolute;margin-top:25px;z-index:0}@media (max-width: 600px){#progress-container .line{width:100%}}#progress-container ul{list-style-type:none;margin:0;padding:0;overflow:hidden;display:flex;z-index:1}#progress-container li{float:left}#progress-container li:last-child span{margin-right:0!important}#progress-container li .circle-content{margin-right:70px;display:inline-flex;border:#d4d4d4 solid 4px;background:white;padding:10px;border-radius:50%;text-align:center;justify-content:center;align-items:center;font-weight:700;color:#000;font-size:25px;cursor:pointer}#progress-container li .circle-content:before{font-size:12px;position:absolute;margin-top:50px;color:#2b2020}#progress-container li .circle-content a{color:#312a2a}#progress-container li .done{font-family:FontAwesome;border:#8cc43d solid 4px;color:#8cc43d}#progress-container li .done:after{content:\"\\f00c\"}#progress-container li .done a{color:#8cc43d}#progress-container li .active{color:#fff;border:#b9dfc5 solid 4px;background:#225d34}#progress-container li .active a{color:#225d34}.custom-dropdown .dropdown-content{display:none;position:absolute;background-color:#f9f9f9;min-width:160px;box-shadow:0 8px 16px #0003;z-index:1}.custom-dropdown .dropdown-content a{color:#000;padding:6px 8px;text-decoration:none;font-size:15px;display:block;text-align:left}.custom-dropdown .dropdown-content a:hover{background-color:#f1f1f1}.custom-dropdown .dropdown:hover .dropdown-content{display:block}.atext{color:#fff!important;text-decoration:none!important}\n"] }]
10133
10544
  }], ctorParameters: function () {
10134
10545
  return [{ type: SupportRequestService }, { type: EntityTypeSetupService }, { type: GlobalService }, { type: GridServiceService }, { type: undefined, decorators: [{
10135
10546
  type: Inject,
@@ -10159,6 +10570,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
10159
10570
  type: Input
10160
10571
  }], IsClientPagination: [{
10161
10572
  type: Input
10573
+ }], ContractList: [{
10574
+ type: Input
10575
+ }], SelectedContract: [{
10576
+ type: Input
10162
10577
  }] } });
10163
10578
 
10164
10579
  class SelfServiceFlowComponent {
@@ -10175,6 +10590,8 @@ class SelfServiceFlowComponent {
10175
10590
  this.IssueAllList = [];
10176
10591
  this.IssueCaseList = [];
10177
10592
  this.translatePipe = new TranslatePipe(this.globalService);
10593
+ this.ContractList = [];
10594
+ this.SelectedContract = [];
10178
10595
  }
10179
10596
  ngOnInit() {
10180
10597
  this.getIssueGroupRequesterMappingByRequesterType();
@@ -10211,15 +10628,14 @@ class SelfServiceFlowComponent {
10211
10628
  var http = new XMLHttpRequest();
10212
10629
  http.open('HEAD', image_url, false);
10213
10630
  http.send();
10214
- debugger;
10215
10631
  return http.status != 404;
10216
10632
  }
10217
10633
  }
10218
10634
  SelfServiceFlowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SelfServiceFlowComponent, deps: [{ token: SupportRequestService }, { token: i3.FormBuilder }, { token: EntityTypeSetupService }, { token: GlobalService }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
10219
- SelfServiceFlowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: SelfServiceFlowComponent, selector: "app-self-service-flow", inputs: { RequesterTypeId: "RequesterTypeId", RequesterTypeIdEn: "RequesterTypeIdEn", RequesterId: "RequesterId", RequesterField: "RequesterField", IssueType: "IssueType", Source: "Source", Channel: "Channel", ChannelEn: "ChannelEn", ChannelAr: "ChannelAr" }, ngImport: i0, template: "<div class=\"req_page whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n\r\n <div class=\"whole m-t-10 clearfix\">\r\n <div class=\"pull-left\">\r\n <h2 class=\"heading pull-left\">{{'Customer Self Service'|translate}}\r\n </h2>\r\n\r\n </div>\r\n <div class=\"pull-right m-r-10\" *ngIf=\"selectedCaseItem && selectedCaseItem.CaseId && !supportService.IsShowBackBtn\">\r\n <button class=\"btn btn-outline btn-danger\" (click)=\"backtoCard()\">\r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}</button>\r\n </div>\r\n </div>\r\n\r\n <div class=\"whole m-t-20 clearfix\">\r\n\r\n\r\n <ng-container *ngIf=\"selectedCaseItem && selectedCaseItem.CaseId;else flipcard\">\r\n\r\n <app-case-list [EntityTypeId]=\"selectedCaseItem.CaseId\" [RequesterTypeId]=\"RequesterTypeId\" [RequesterId]=\"RequesterId\"\r\n [RequesterTypeIdEn]=\"RequesterTypeIdEn\" [Source]=\"Source\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\"\r\n [ChannelAr]=\"ChannelAr\" [RequestField]=\"RequesterField\"></app-case-list>\r\n\r\n </ng-container>\r\n <ng-template #flipcard>\r\n\r\n <div class=\"form-card whole\">\r\n <!-- && !Notespopup -->\r\n <div class=\"form-group w-100\">\r\n \r\n <div class=\"tiles_div row\">\r\n <div class=\"col-sm-12 col-md-6 col-lg-3\" *ngFor=\"let item of IssueCaseList\">\r\n \r\n <div class=\"flip-card tiles\" (click)=\"selectCase(item)\">\r\n <div class=\"flip-card-inner\">\r\n <div class=\"flip-card-front\">\r\n <img *ngIf=\"item.IssueImage\" src=\"{{globalService.SystemConfigs.ERPUrl}}{{item.IssueImage}}\" alt=\"Case Img\">\r\n <h1>{{ globalService.CurrentLanguage=='Ar'?(item.CaseIdAr ?item.CaseIdAr : (item.CaseIdEn | translate)) :item.CaseIdEn}}</h1>\r\n </div>\r\n <div class=\"flip-card-back bg-themecolor\">\r\n <h1>\r\n {{ globalService.CurrentLanguage=='Ar'?(item.IssueAr ?item.IssueAr : (item.IssueEn | translate)) :item.IssueEn}}\r\n </h1>\r\n <p class=\"white-space-pre-line\">\r\n {{ globalService.CurrentLanguage=='Ar'?(item.IssueDescriptionAr ?item.IssueDescriptionAr : (item.IssueDescriptionEn | translate)) :item.IssueDescriptionEn}}\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n </div>\r\n </div>\r\n \r\n </div>\r\n \r\n </div>\r\n \r\n </ng-template>\r\n\r\n\r\n </div>\r\n\r\n</div>", styles: [""], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CaseListComponent, selector: "app-case-list", inputs: ["EntityTypeId", "RequesterTypeId", "RequesterTypeIdEn", "RequesterId", "RequesterField", "IssueType", "Source", "Channel", "ChannelEn", "ChannelAr", "GridSearchType", "IsClientPagination"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
10635
+ SelfServiceFlowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: SelfServiceFlowComponent, selector: "app-self-service-flow", inputs: { RequesterTypeId: "RequesterTypeId", RequesterTypeIdEn: "RequesterTypeIdEn", RequesterId: "RequesterId", RequesterField: "RequesterField", IssueType: "IssueType", Source: "Source", Channel: "Channel", ChannelEn: "ChannelEn", ChannelAr: "ChannelAr", ContractList: "ContractList", SelectedContract: "SelectedContract" }, ngImport: i0, template: "<div class=\"req_page whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n\r\n <div class=\"whole m-t-10 clearfix\">\r\n <div class=\"pull-left\">\r\n <h2 class=\"heading pull-left\">{{'Customer Self Service'|translate}}\r\n </h2>\r\n\r\n </div>\r\n <div class=\"pull-right m-r-10\" *ngIf=\"selectedCaseItem && selectedCaseItem.CaseId && !supportService.IsShowBackBtn\">\r\n <button class=\"btn btn-outline btn-danger\" (click)=\"backtoCard()\">\r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}</button>\r\n </div>\r\n </div>\r\n\r\n <div class=\"whole m-t-20 clearfix\">\r\n\r\n\r\n <ng-container *ngIf=\"selectedCaseItem && selectedCaseItem.CaseId;else flipcard\">\r\n\r\n <app-case-list [EntityTypeId]=\"selectedCaseItem.CaseId\" [RequesterTypeId]=\"RequesterTypeId\" [RequesterId]=\"RequesterId\"\r\n [RequesterTypeIdEn]=\"RequesterTypeIdEn\" [Source]=\"Source\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\"\r\n [ChannelAr]=\"ChannelAr\" [RequestField]=\"RequesterField\" [SelectedContract]=\"SelectedContract\" [ContractList]=\"ContractList\"></app-case-list>\r\n\r\n </ng-container>\r\n <ng-template #flipcard>\r\n\r\n <div class=\"form-card whole\">\r\n <!-- && !Notespopup -->\r\n <div class=\"form-group w-100\">\r\n \r\n <div class=\"tiles_div row\">\r\n <div class=\"col-sm-12 col-md-6 col-lg-3\" *ngFor=\"let item of IssueCaseList\">\r\n \r\n <div class=\"flip-card tiles\" (click)=\"selectCase(item)\">\r\n <div class=\"flip-card-inner\">\r\n <div class=\"flip-card-front\">\r\n <img *ngIf=\"item.IssueImage\" src=\"{{globalService.SystemConfigs.ERPUrl}}{{item.IssueImage}}\" alt=\"Case Img\">\r\n <h1>{{ globalService.CurrentLanguage=='Ar'?(item.CaseIdAr ?item.CaseIdAr : (item.CaseIdEn | translate)) :item.CaseIdEn}}</h1>\r\n </div>\r\n <div class=\"flip-card-back bg-themecolor\">\r\n <h1>\r\n {{ globalService.CurrentLanguage=='Ar'?(item.IssueAr ?item.IssueAr : (item.IssueEn | translate)) :item.IssueEn}}\r\n </h1>\r\n <p class=\"white-space-pre-line\">\r\n {{ globalService.CurrentLanguage=='Ar'?(item.IssueDescriptionAr ?item.IssueDescriptionAr : (item.IssueDescriptionEn | translate)) :item.IssueDescriptionEn}}\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n </div>\r\n </div>\r\n \r\n </div>\r\n \r\n </div>\r\n \r\n </ng-template>\r\n\r\n\r\n </div>\r\n\r\n</div>", styles: [""], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CaseListComponent, selector: "app-case-list", inputs: ["EntityTypeId", "RequesterTypeId", "RequesterTypeIdEn", "RequesterId", "RequesterField", "IssueType", "Source", "Channel", "ChannelEn", "ChannelAr", "GridSearchType", "IsClientPagination", "ContractList", "SelectedContract"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
10220
10636
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SelfServiceFlowComponent, decorators: [{
10221
10637
  type: Component,
10222
- args: [{ selector: 'app-self-service-flow', template: "<div class=\"req_page whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n\r\n <div class=\"whole m-t-10 clearfix\">\r\n <div class=\"pull-left\">\r\n <h2 class=\"heading pull-left\">{{'Customer Self Service'|translate}}\r\n </h2>\r\n\r\n </div>\r\n <div class=\"pull-right m-r-10\" *ngIf=\"selectedCaseItem && selectedCaseItem.CaseId && !supportService.IsShowBackBtn\">\r\n <button class=\"btn btn-outline btn-danger\" (click)=\"backtoCard()\">\r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}</button>\r\n </div>\r\n </div>\r\n\r\n <div class=\"whole m-t-20 clearfix\">\r\n\r\n\r\n <ng-container *ngIf=\"selectedCaseItem && selectedCaseItem.CaseId;else flipcard\">\r\n\r\n <app-case-list [EntityTypeId]=\"selectedCaseItem.CaseId\" [RequesterTypeId]=\"RequesterTypeId\" [RequesterId]=\"RequesterId\"\r\n [RequesterTypeIdEn]=\"RequesterTypeIdEn\" [Source]=\"Source\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\"\r\n [ChannelAr]=\"ChannelAr\" [RequestField]=\"RequesterField\"></app-case-list>\r\n\r\n </ng-container>\r\n <ng-template #flipcard>\r\n\r\n <div class=\"form-card whole\">\r\n <!-- && !Notespopup -->\r\n <div class=\"form-group w-100\">\r\n \r\n <div class=\"tiles_div row\">\r\n <div class=\"col-sm-12 col-md-6 col-lg-3\" *ngFor=\"let item of IssueCaseList\">\r\n \r\n <div class=\"flip-card tiles\" (click)=\"selectCase(item)\">\r\n <div class=\"flip-card-inner\">\r\n <div class=\"flip-card-front\">\r\n <img *ngIf=\"item.IssueImage\" src=\"{{globalService.SystemConfigs.ERPUrl}}{{item.IssueImage}}\" alt=\"Case Img\">\r\n <h1>{{ globalService.CurrentLanguage=='Ar'?(item.CaseIdAr ?item.CaseIdAr : (item.CaseIdEn | translate)) :item.CaseIdEn}}</h1>\r\n </div>\r\n <div class=\"flip-card-back bg-themecolor\">\r\n <h1>\r\n {{ globalService.CurrentLanguage=='Ar'?(item.IssueAr ?item.IssueAr : (item.IssueEn | translate)) :item.IssueEn}}\r\n </h1>\r\n <p class=\"white-space-pre-line\">\r\n {{ globalService.CurrentLanguage=='Ar'?(item.IssueDescriptionAr ?item.IssueDescriptionAr : (item.IssueDescriptionEn | translate)) :item.IssueDescriptionEn}}\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n </div>\r\n </div>\r\n \r\n </div>\r\n \r\n </div>\r\n \r\n </ng-template>\r\n\r\n\r\n </div>\r\n\r\n</div>" }]
10638
+ args: [{ selector: 'app-self-service-flow', template: "<div class=\"req_page whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n\r\n <div class=\"whole m-t-10 clearfix\">\r\n <div class=\"pull-left\">\r\n <h2 class=\"heading pull-left\">{{'Customer Self Service'|translate}}\r\n </h2>\r\n\r\n </div>\r\n <div class=\"pull-right m-r-10\" *ngIf=\"selectedCaseItem && selectedCaseItem.CaseId && !supportService.IsShowBackBtn\">\r\n <button class=\"btn btn-outline btn-danger\" (click)=\"backtoCard()\">\r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}</button>\r\n </div>\r\n </div>\r\n\r\n <div class=\"whole m-t-20 clearfix\">\r\n\r\n\r\n <ng-container *ngIf=\"selectedCaseItem && selectedCaseItem.CaseId;else flipcard\">\r\n\r\n <app-case-list [EntityTypeId]=\"selectedCaseItem.CaseId\" [RequesterTypeId]=\"RequesterTypeId\" [RequesterId]=\"RequesterId\"\r\n [RequesterTypeIdEn]=\"RequesterTypeIdEn\" [Source]=\"Source\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\"\r\n [ChannelAr]=\"ChannelAr\" [RequestField]=\"RequesterField\" [SelectedContract]=\"SelectedContract\" [ContractList]=\"ContractList\"></app-case-list>\r\n\r\n </ng-container>\r\n <ng-template #flipcard>\r\n\r\n <div class=\"form-card whole\">\r\n <!-- && !Notespopup -->\r\n <div class=\"form-group w-100\">\r\n \r\n <div class=\"tiles_div row\">\r\n <div class=\"col-sm-12 col-md-6 col-lg-3\" *ngFor=\"let item of IssueCaseList\">\r\n \r\n <div class=\"flip-card tiles\" (click)=\"selectCase(item)\">\r\n <div class=\"flip-card-inner\">\r\n <div class=\"flip-card-front\">\r\n <img *ngIf=\"item.IssueImage\" src=\"{{globalService.SystemConfigs.ERPUrl}}{{item.IssueImage}}\" alt=\"Case Img\">\r\n <h1>{{ globalService.CurrentLanguage=='Ar'?(item.CaseIdAr ?item.CaseIdAr : (item.CaseIdEn | translate)) :item.CaseIdEn}}</h1>\r\n </div>\r\n <div class=\"flip-card-back bg-themecolor\">\r\n <h1>\r\n {{ globalService.CurrentLanguage=='Ar'?(item.IssueAr ?item.IssueAr : (item.IssueEn | translate)) :item.IssueEn}}\r\n </h1>\r\n <p class=\"white-space-pre-line\">\r\n {{ globalService.CurrentLanguage=='Ar'?(item.IssueDescriptionAr ?item.IssueDescriptionAr : (item.IssueDescriptionEn | translate)) :item.IssueDescriptionEn}}\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n </div>\r\n </div>\r\n \r\n </div>\r\n \r\n </div>\r\n \r\n </ng-template>\r\n\r\n\r\n </div>\r\n\r\n</div>" }]
10223
10639
  }], ctorParameters: function () {
10224
10640
  return [{ type: SupportRequestService }, { type: i3.FormBuilder }, { type: EntityTypeSetupService }, { type: GlobalService }, { type: undefined, decorators: [{
10225
10641
  type: Inject,
@@ -10243,16 +10659,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
10243
10659
  type: Input
10244
10660
  }], ChannelAr: [{
10245
10661
  type: Input
10662
+ }], ContractList: [{
10663
+ type: Input
10664
+ }], SelectedContract: [{
10665
+ type: Input
10246
10666
  }] } });
10247
10667
 
10248
10668
  // import { environment } from 'arco-support-request';
10249
10669
  class RequestFlowComponent {
10250
- constructor(supportService, fb, entityTypeSetup, router, globalService, document) {
10670
+ constructor(supportService, fb, entityTypeSetup, router, globalService, gridServiceService, document) {
10251
10671
  this.supportService = supportService;
10252
10672
  this.fb = fb;
10253
10673
  this.entityTypeSetup = entityTypeSetup;
10254
10674
  this.router = router;
10255
10675
  this.globalService = globalService;
10676
+ this.gridServiceService = gridServiceService;
10256
10677
  this.document = document;
10257
10678
  this.issuType = "7";
10258
10679
  this.Language = 'Eng';
@@ -10260,6 +10681,11 @@ class RequestFlowComponent {
10260
10681
  this.Channel = '3';
10261
10682
  this.ChannelEn = 'Portal';
10262
10683
  this.ChannelAr = 'صفحة العميل';
10684
+ this.ContractList = [];
10685
+ this.SelectedContract = [];
10686
+ this.CurrentSelectedContract = [];
10687
+ this.DDContractList = [];
10688
+ this.dropdownSettings = {};
10263
10689
  this.viewHtml = true;
10264
10690
  this.translatePipe = new TranslatePipe(this.globalService);
10265
10691
  this.FieldListDDL = [
@@ -10343,6 +10769,27 @@ class RequestFlowComponent {
10343
10769
  this.isShowCreateRequest = false;
10344
10770
  this.selectCaseItem = null;
10345
10771
  this.isDetails = false;
10772
+ this.GridCheckedData = [];
10773
+ this.selectMode = E_SelectMode.None;
10774
+ this.columnDefs = [
10775
+ { Field: 'CaseId', Name: 'Case Id', FieldType: E_FieldType.details },
10776
+ { Field: 'CaseTypeIdAr', Name: 'Case Type Ar' },
10777
+ { Field: 'CaseTypeIdEn', Name: 'Case Type En' },
10778
+ { Field: 'Description', Name: 'Description' },
10779
+ { Field: 'Subject', Name: 'Subject' },
10780
+ { Field: 'StatusIdEn', Name: 'Status' },
10781
+ { Field: 'PriorityEn', Name: 'Priority En' },
10782
+ { Field: 'PriorityAr', Name: 'Priority Ar' },
10783
+ { Field: 'CreatedBy', Name: 'CreatedBy' },
10784
+ { Field: 'CreatedDatetime', Name: 'CreatedDatetime', DataType: E_DataType.dateTime },
10785
+ ];
10786
+ this.viewTypes = [
10787
+ { id: 1, name: 'Tab View', class: 'la la-table' },
10788
+ { id: 2, name: 'Details View', class: 'la la-id-card-o' },
10789
+ ];
10790
+ this.selectedIndex = 1;
10791
+ this.viewTypeData = 1;
10792
+ this.IsShowCreatePopup = false;
10346
10793
  router.events.subscribe(event => {
10347
10794
  if (event instanceof NavigationStart) {
10348
10795
  setTimeout(() => this.globalService.dataLoader = true, 0);
@@ -10360,6 +10807,13 @@ class RequestFlowComponent {
10360
10807
  }
10361
10808
  }
10362
10809
  ngOnInit() {
10810
+ if (this.SelectedContract.length > 0) {
10811
+ this.SelectedContract.map((x) => {
10812
+ if (x) {
10813
+ this.CurrentSelectedContract.push({ ContractId: x });
10814
+ }
10815
+ });
10816
+ }
10363
10817
  console.log('1', this.issuType);
10364
10818
  if (this.PageType == "Complaint") {
10365
10819
  this.issuType = "2";
@@ -10398,6 +10852,23 @@ class RequestFlowComponent {
10398
10852
  this.getategoryrequestertype();
10399
10853
  }
10400
10854
  this.globalService.getSystemConfig();
10855
+ this.ContractList.map((x) => {
10856
+ if (x) {
10857
+ this.DDContractList.push({ ContractId: x });
10858
+ }
10859
+ });
10860
+ this.dropdownSettings = {
10861
+ singleSelection: false,
10862
+ idField: 'ContractId',
10863
+ textField: 'ContractId',
10864
+ selectAllText: 'Select All',
10865
+ unSelectAllText: 'UnSelect All',
10866
+ itemsShowLimit: 1,
10867
+ // enableCheckAll:false,
10868
+ allowSearchFilter: true,
10869
+ clearSearchFilter: true,
10870
+ maxHeight: 150
10871
+ };
10401
10872
  }
10402
10873
  toggleTheme(e) {
10403
10874
  if (this.globalService.CurrentLanguage == 'Eng') {
@@ -10444,6 +10915,31 @@ class RequestFlowComponent {
10444
10915
  // document.getElementById("lib-lang-link").remove();
10445
10916
  }
10446
10917
  }
10918
+ onSelectContractListDropdown(item) {
10919
+ this.getListDatas(this.Searchcriteria);
10920
+ }
10921
+ onSelectAllContractListDropdown(item) {
10922
+ this.CurrentSelectedContract = this.DDContractList;
10923
+ this.getListDatas(this.Searchcriteria);
10924
+ }
10925
+ onDeSelectAllContractListDropdown() {
10926
+ this.CurrentSelectedContract = [];
10927
+ this.getListDatas(this.Searchcriteria);
10928
+ }
10929
+ formateContractListToString(contractlist) {
10930
+ let ContractlistString;
10931
+ if (contractlist.length > 0) {
10932
+ contractlist.map(x => {
10933
+ if (ContractlistString) {
10934
+ ContractlistString += ',' + x.ContractId;
10935
+ }
10936
+ else {
10937
+ ContractlistString = x.ContractId;
10938
+ }
10939
+ });
10940
+ }
10941
+ return ContractlistString;
10942
+ }
10447
10943
  searchData(event) {
10448
10944
  let filtervals = [];
10449
10945
  if (event.keyCode == 13 && this.SearchBox != null) {
@@ -10678,12 +11174,13 @@ class RequestFlowComponent {
10678
11174
  this.Searchcriteria.Where.push(filtervals);
10679
11175
  // let SupportRequestId = localStorage.getItem("RequesterTypeId");
10680
11176
  // this.entityTypeSetup.urlGetDynamicTicket(Criteria, this.EntityTypeId)
10681
- this.entityTypeSetup.getsupportRequestData(Criteria, this.RequesterTypeId, this.RequesterId, this.Source, this.StatusListValue).subscribe((res) => {
11177
+ this.entityTypeSetup.getsupportRequestData(Criteria, this.RequesterTypeId, this.RequesterId, this.Source, this.StatusListValue, this.formateContractListToString(this.CurrentSelectedContract)).subscribe((res) => {
10682
11178
  // alert("data");
10683
11179
  this.supportRequestData = res.Data;
10684
11180
  this.totalRecordCount = res.TotalCount;
10685
11181
  console.log('datas', res);
10686
11182
  this.getPageCount();
11183
+ this.loadGrid(res.Data, res.TotalCount);
10687
11184
  }, (error) => {
10688
11185
  console.log(error);
10689
11186
  Swal.fire({
@@ -10694,7 +11191,7 @@ class RequestFlowComponent {
10694
11191
  getStatusListCount() {
10695
11192
  // let SupportRequestId = localStorage.getItem("RequesterTypeId");
10696
11193
  this.supportService
10697
- .getStatusListCount(this.RequesterTypeId, this.RequesterId, this.issuType)
11194
+ .getStatusListCount(this.RequesterTypeId, this.RequesterId, this.issuType, this.formateContractListToString(this.CurrentSelectedContract))
10698
11195
  .subscribe((res) => {
10699
11196
  this.StatusList = res;
10700
11197
  if (this.StatusList != null && this.StatusList.length > 0) {
@@ -10758,7 +11255,6 @@ class RequestFlowComponent {
10758
11255
  this.IssueTypeDDL = [];
10759
11256
  this.dropdownIssuse = [];
10760
11257
  this.supportService.getIssueGroupRequesterMappingByRequesterType(this.RequesterTypeId).subscribe((res) => {
10761
- debugger;
10762
11258
  this.IssueTypeDDL = res;
10763
11259
  if (res) {
10764
11260
  this.IssueTypeDDL = res.filter(x => x.IssueType == this.issuType);
@@ -10839,7 +11335,6 @@ class RequestFlowComponent {
10839
11335
  item.showCategory = !item.showCategory;
10840
11336
  }
10841
11337
  selectGroup(item, Type) {
10842
- debugger;
10843
11338
  this.showChild = false;
10844
11339
  this.showsubChild = true;
10845
11340
  this.issueGroupName = item.IssueGroupEn;
@@ -10946,14 +11441,64 @@ class RequestFlowComponent {
10946
11441
  console.log(error);
10947
11442
  });
10948
11443
  }
11444
+ getgridCheckedData(item) {
11445
+ this.GridCheckedData = item;
11446
+ }
11447
+ goDetails(data) {
11448
+ this.openDetailsPopup(data);
11449
+ }
11450
+ viewType(data, index) {
11451
+ this.selectedIndex = data.id;
11452
+ this.viewTypeData = data.id;
11453
+ }
11454
+ loadGrid(data, TotalRecord) {
11455
+ if (data) {
11456
+ if (data.length > 0)
11457
+ this.gridServiceService.onGridRefresh.next({
11458
+ isTrue: true,
11459
+ list: data,
11460
+ count: data.length,
11461
+ grid: 1,
11462
+ totalRecordCount: TotalRecord,
11463
+ });
11464
+ else
11465
+ this.gridServiceService.onGridRefresh.next({
11466
+ isTrue: true,
11467
+ grid: 1,
11468
+ list: [],
11469
+ count: 0,
11470
+ totalRecordCount: 0,
11471
+ });
11472
+ }
11473
+ else
11474
+ this.gridServiceService.onGridRefresh.next({
11475
+ isTrue: true,
11476
+ grid: 1,
11477
+ list: [],
11478
+ count: 0,
11479
+ totalRecordCount: 0,
11480
+ });
11481
+ }
11482
+ showCreatePopup() {
11483
+ this.IsShowCreatePopup = true;
11484
+ }
11485
+ hideCreatePopup(IsHide, Data, IsReload) {
11486
+ this.IsShowCreatePopup = IsHide;
11487
+ if (Data) {
11488
+ this.openDetailsPopup(Data);
11489
+ }
11490
+ if (IsReload) {
11491
+ this.getListDatas(this.storeCriteria);
11492
+ }
11493
+ }
10949
11494
  }
10950
- RequestFlowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: RequestFlowComponent, deps: [{ token: SupportRequestService }, { token: i3.FormBuilder }, { token: EntityTypeSetupService }, { token: i2.Router }, { token: GlobalService }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
10951
- RequestFlowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: RequestFlowComponent, selector: "app-request-flow", inputs: { PageType: "PageType", RequesterTypeId: "RequesterTypeId", RequesterTypeIdEn: "RequesterTypeIdEn", RequesterId: "RequesterId", RequesterField: "RequesterField", Language: "Language", HostUrl: "HostUrl", Host: "Host", Source: "Source", Channel: "Channel", ChannelEn: "ChannelEn", ChannelAr: "ChannelAr", GridSearchType: "GridSearchType", IsClientPagination: "IsClientPagination" }, usesOnChanges: true, ngImport: i0, template: "<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/line-awesome/1.3.0/line-awesome/css/line-awesome.min.css\">\r\n<link rel=\"stylesheet\" href=\"https://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css\">\r\n\r\n\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/styles.css\">\r\n<link rel=\"stylesheet\" href=\"https://test.arco.sa/CustomerPortal/IndividualPortalTickets/SupportRequest/supportstyles.css\">\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/assets/css/main.css\">\r\n<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css\">\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/assets/css/bootstrap.min.css\">\r\n\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/assets/css/font-awesome.min.css\">\r\n\r\n<link rel=\"stylesheet\" href=\"https://unpkg.com/ngx-bootstrap/datepicker/bs-datepicker.css\">\r\n\r\n<link rel=\"stylesheet\" href=\"https://unpkg.com/@angular/material@11.2.13/prebuilt-themes/indigo-pink.css\">\r\n<!-- <div class=\"data-loader\" [ngClass]=\"{'show_loader': globalService.dataLoader == true}\">\r\n <div class=\"loading\">\r\n <div class=\"dataloadings\">\r\n </div>\r\n </div>\r\n</div> -->\r\n<ng-container *ngIf=\"globalService.dataLoader\">\r\n <div class=\"page-loader-wrapper active\">\r\n <div class=\"loader\">\r\n <div class=\"m-t-30\"><img src=\"https://test.arco.sa/CustomerPortal/IndividualPortalTickets/assets/images/arco-icon-96x96.png\" width=\"48\" height=\"48\" alt=\"ARCO\"></div>\r\n <p>Please wait...</p>\r\n </div>\r\n </div>\r\n</ng-container>\r\n<ng-container *ngIf=\"viewHtml\">\r\n\r\n<ng-container *ngIf=\"PageType=='SelfService';else caseTemplate\" >\r\n\r\n <app-self-service-flow [RequesterTypeId]=\"RequesterTypeId\" [RequesterTypeIdEn]=\"RequesterTypeIdEn\"\r\n [RequesterId]=\"RequesterId\" [Source]=\"Source\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\" [ChannelAr]=\"ChannelAr\"\r\n [RequestField]=\"RequesterField\"></app-self-service-flow>\r\n\r\n</ng-container>\r\n\r\n<ng-template #caseTemplate>\r\n\r\n <div class=\"req_page whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n\r\n <div *ngIf=\"isDetails\">\r\n <span class=\"back-arrow\" (click)=\"backToRequest()\">\r\n <i class=\"fa fa-arrow-left\"></i>\r\n {{'Back'|translate}}\r\n </span>\r\n </div>\r\n\r\n <div class=\"whole m-t-10 m-b-20 clearfix\">\r\n \r\n <div class=\"pull-left\">\r\n <h2 class=\"heading pull-left\">{{PageType|translate}}\r\n <span *ngIf=\"isDetails && CaseId\"> - #{{CaseId}}</span>\r\n </h2>\r\n \r\n <div class=\"pull-left create_req hierarchy-view\">\r\n <button class=\"add_req_btn\" *ngIf=\"!isShowCreateRequest && !isDetails\" (click)=\"openIssueType()\">\r\n {{'Create New'|translate}}\r\n <i class=\"fa fa-plus\" style=\"float: right;margin: 4px 1px 2px 8px;\"></i>\r\n </button>\r\n\r\n <div class=\"modal fade show\" *ngIf=\"displayPopUp\" id=\"request-create-popup\" tabindex=\"-1\" role=\"dialog\" (click)=\"ClickedOut($event)\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" role=\"document\" [ngClass]=\"{'modal-sm':dropdownmodal,'modal-lg':!dropdownmodal}\">\r\n <div class=\"modal-content request-modal\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\">{{'Create' | translate}} {{globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr : (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}</h5>\r\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"closeModel()\">\r\n <span aria-hidden=\"true\">&times;</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\" *ngIf=\"IssueTypeDDL.length > 0\">\r\n <div class=\"\" *ngIf=\"dropdownmodal\">\r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'Group'|translate}}</label>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage =='Ar'\" [items]=\"IssueTypeDDL[0].IssueGroup\" [placeholder]=\"'Group'|translate\" bindLabel=\"IssueGroupAr\" bindValue=\"IssueGroup\"\r\n (change)=\"selectGroup($event,IssueTypeDDL[0])\" >\r\n </ng-select>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage !='Ar'\" [items]=\"IssueTypeDDL[0].IssueGroup\" [placeholder]=\"'Group'|translate\" bindLabel=\"IssueGroupEn\" bindValue=\"IssueGroup\"\r\n (change)=\"selectGroup($event,IssueTypeDDL[0])\" >\r\n </ng-select>\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'SubGroup'|translate}}</label>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage =='Ar'\" [items]=\"dropdownIssuse\" [placeholder]=\"'SubGroup'|translate\" bindLabel=\"IssueAr\" bindValue=\"Issue\"\r\n (change)=\"selectSubGroup($event,true)\">\r\n </ng-select>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage !='Ar'\" [items]=\"dropdownIssuse\" [placeholder]=\"'SubGroup'|translate\" bindLabel=\"IssueEn\" bindValue=\"Issue\"\r\n (change)=\"selectSubGroup($event,true)\">\r\n </ng-select>\r\n </div>\r\n <div class=\"mb-3 text-center\">\r\n <button class=\"btn btn-small m-l-5 m-r-5 dropdownbtn\" [disabled]=\"!selectedSubGroup\" (click)=\"selectSubGroup(selectedSubGroup)\">\r\n {{'Next'|translate}}\r\n </button>\r\n </div>\r\n </div>\r\n \r\n \r\n <!-- <ng-container *ngFor=\"let _type of IssueTypeDDL\">\r\n \r\n \r\n \r\n <div class=\"row\">\r\n \r\n \r\n \r\n <ng-container *ngFor=\"let _issue of _type.IssueGroup\">\r\n <ng-container *ngIf=\"showChild\">\r\n \r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"Popup-boxes\" (click)=\"selectGroup(_issue,_type)\" [ngClass]=\"{'active': _issue.showSubGroup}\">\r\n \r\n \r\n <span >{{ globalService.CurrentLanguage =='Ar' ? (_issue.IssueGroupAr ?\r\n _issue.IssueGroupAr : (_issue.IssueGroupEn |translate)) : _issue.IssueGroupEn }}</span>\r\n \r\n </div>\r\n \r\n </div>\r\n \r\n </ng-container>\r\n \r\n <div class=\"col-sm-12 mb-3\" *ngIf=\"_issue.showSubGroup && !showChild && showsubChild\">\r\n <h6 class=\"\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToGroup(_issue)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ? selectedGroup?.IssueGroupAr :\r\n (selectedGroup?.IssueGroupEn |translate)) : selectedGroup?.IssueGroupEn }}\r\n \r\n </h6>\r\n </div>\r\n <ng-container *ngFor=\"let _sub of _issue.Issue\">\r\n <ng-container *ngIf=\"showsubChild && !showChild && _issue.showSubGroup\">\r\n \r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n \r\n <div class=\"Popup-boxes\" (click)=\"selectSubGroup(_sub)\">\r\n \r\n \r\n <span >{{globalService.CurrentLanguage =='Ar' ? (_sub.IssueAr ?\r\n _sub.IssueAr : (_sub.IssueEn |translate)) : _sub.IssueEn }}</span>\r\n \r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n \r\n \r\n \r\n\r\n \r\n </ng-container>\r\n </div>\r\n\r\n \r\n </ng-container> -->\r\n \r\n <ng-container *ngIf=\"isShowCreateRequest\">\r\n \r\n <div class=\"whole m-b-20 breadcrumbes\">\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr : (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}</span> > \r\n \r\n <ng-container *ngIf=\"selectedType.IssueGroup; else elseCategory\">\r\n \r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ? selectedGroup?.IssueGroupAr : (selectedGroup?.IssueGroupEn |translate)) : selectedGroup?.IssueGroupEn }}</span> > \r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedSubGroup?.IssueAr ? selectedSubGroup?.IssueAr : (selectedSubGroup?.IssueEn |translate)) : selectedSubGroup?.IssueEn }}</span> > \r\n \r\n </ng-container>\r\n <ng-template #elseCategory>\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedCategory?.CategoryIdAr ? selectedCategory?.CategoryIdAr : (selectedCategory?.CategoryIdEn |translate)) : selectedCategory?.CategoryIdEn }}</span> > \r\n </ng-template>\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectCaseItem.CaseIdAr ? selectCaseItem.CaseIdAr : (selectCaseItem.CaseIdEn |translate)) : selectCaseItem.CaseIdEn }}</span>\r\n </div>\r\n \r\n <app-support-request-create class=\"support_req_div\" *ngIf=\"CreateItemId\" \r\n [ViewFrom]=\"'Popup'\"\r\n \r\n [IssueType]=\"selectedType.IssueType\"\r\n [IssueTypeEn]=\"selectedType.IssueTypeEn\"\r\n [IssueTypeAr]=\"selectedType.IssueTypeAr\"\r\n \r\n [IssueGroup]=\"selectedGroup?.IssueGroup\"\r\n [IssueGroupEn]=\"selectedGroup?.IssueGroupEn\"\r\n [IssueGroupAr]=\"selectedGroup?.IssueGroupAr\"\r\n \r\n [IssueSubGroup]=\"selectedSubGroup?.Issue\" \r\n [IssueSubGroupEn]=\"selectedSubGroup?.IssueEn\" \r\n [IssueSubGroupAr]=\"selectedSubGroup?.IssueAr\" \r\n \r\n [Source]=\"Source\"\r\n [CreatedByUserType]=\"RequesterTypeId\"\r\n [Channel]=\"Channel\" \r\n [ChannelEn]=\"ChannelEn\" \r\n [ChannelAr]=\"ChannelAr\" \r\n [RequesterId]=\"RequesterId\"\r\n [RequesterIdEn]=\"RequesterTypeIdEn\"\r\n [RequestField]=\"RequesterField\"\r\n \r\n [Type]=\"'Create'\"\r\n [EntityTypeId]=\"CreateItemId\"\r\n (closeCreate)=\"closePopupCreateView($event.Type,$event.Data)\">\r\n </app-support-request-create>\r\n </ng-container>\r\n \r\n \r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"\" *ngIf=\"isCreate && !isShowCreateRequest\">\r\n <div class=\"step-fixed\" (click)=\"backToRequest()\" ></div>\r\n <ul class=\"steps\">\r\n <li>\r\n <!-- <h6> {{'Issue Type'|translate}}</h6> -->\r\n <div class=\"main_menu_brad\">\r\n \r\n <ng-container *ngFor=\"let _type of IssueTypeDDL\">\r\n <div class=\"main_menu_brad_inside clearfix\" [ngClass]=\"{'active': _type.showGroup || _type.showCategory}\">\r\n <i class=\"fa fa-caret-right\"></i>\r\n <span (click)=\"selectType(_type)\">{{ globalService.CurrentLanguage =='Ar' ? (_type.IssueTypeAr ? _type.IssueTypeAr\r\n : (_type.IssueTypeEn |translate)) : _type.IssueTypeEn }}</span>\r\n <div class=\"main_menu_brad_sub\" *ngIf=\"_type.showGroup || _type.showCategory\">\r\n <h6 class=\"m-b-10\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToType(_type)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr :\r\n (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}\r\n </h6>\r\n \r\n <ng-container *ngFor=\"let _issue of _type.IssueGroup\">\r\n <div class=\"main_menu_brad_inside clearfix\" [ngClass]=\"{'active': _issue.showSubGroup}\">\r\n <i class=\"fa fa-caret-right\"></i>\r\n <span (click)=\"selectGroup(_issue,_type)\">{{ globalService.CurrentLanguage =='Ar' ? (_issue.IssueGroupAr ?\r\n _issue.IssueGroupAr : (_issue.IssueGroupEn |translate)) : _issue.IssueGroupEn }}</span>\r\n <div class=\"main_menu_brad_sub\" *ngIf=\"_issue.showSubGroup\">\r\n <h6 class=\"m-b-10\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToGroup(_issue)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ? selectedGroup?.IssueGroupAr :\r\n (selectedGroup?.IssueGroupEn |translate)) : selectedGroup?.IssueGroupEn }}\r\n \r\n </h6>\r\n <ng-container *ngFor=\"let _sub of _issue.Issue\">\r\n <div class=\"main_menu_brad \">\r\n <div class=\"main_menu_brad_inside clearfix position-relative\">\r\n \r\n <span (click)=\"selectSubGroup(_sub)\">{{globalService.CurrentLanguage =='Ar' ? (_sub.IssueAr ?\r\n _sub.IssueAr : (_sub.IssueEn |translate)) : _sub.IssueEn }}</span>\r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n \r\n <ng-container *ngFor=\"let _cat of _type.Category\">\r\n <div class=\"main_menu_brad_inside clearfix\" [ngClass]=\"{'active': _cat.showCase}\">\r\n <i class=\"fa fa-caret-right\"></i>\r\n <span (click)=\"selectCategory(_cat,_type)\">\r\n {{ globalService.CurrentLanguage =='Ar' ? (_cat.CategoryIdAr ?\r\n _cat.CategoryIdAr : (_cat.CategoryIdEn |translate)) : _cat.CategoryIdEn }}</span>\r\n <div class=\"main_menu_brad_sub\" *ngIf=\"_cat.showCase\">\r\n <h6 class=\"m-b-10\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToCategory(_cat)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedCategory.CategoryIdAr ? selectedCategory.CategoryIdAr :\r\n (selectedCategory.CategoryIdEn |translate)) : selectedCategory.CategoryIdEn }}\r\n \r\n </h6>\r\n <ng-container *ngFor=\"let _case of _cat.Case\">\r\n <div class=\"main_menu_brad \">\r\n <div class=\"main_menu_brad_inside clearfix position-relative\">\r\n \r\n <span (click)=\"selectCase(_case)\">{{globalService.CurrentLanguage =='Ar' ? (_case.CaseIdAr ?\r\n _case.CaseIdAr : (_case.CaseIdEn |translate)) : _case.CaseIdEn }}</span>\r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n \r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n </div>\r\n </li>\r\n </ul>\r\n </div>\r\n \r\n \r\n </div>\r\n \r\n </div>\r\n <!-- <div class=\"pull-right m-r-10\">\r\n <button class=\"btn btn-outline btn-danger\" *ngIf=\"isDetails\" (click)=\"backToRequest()\">\r\n \r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}</button>\r\n </div> -->\r\n </div>\r\n \r\n \r\n <ng-container *ngIf=\"!isDetails\">\r\n \r\n <div class=\"whole m-b-20\">\r\n\r\n <div class=\"card-box \">\r\n <div class=\"header\">\r\n <h5 class=\"card-box-title m-0\">{{'Overview'| translate}}</h5>\r\n </div>\r\n <div class=\"body\">\r\n <div class=\"row\">\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span><i class=\"la la-ticket my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{TotalStatusCount}}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'Total Request'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span style=\"background: #fde3ff;color: #db32e8;\"><i class=\"la la-file my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{NewStatus }}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'New'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span style=\"background: #fff3ea;color: #ec8f48;\"><i\r\n class=\"la la-hourglass-half my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{InProgressStatusCount}}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'In Progress'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span style=\"background: #eafff1;color: #27b556;\"><i class=\"la la-check my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{ClosedStatusCount}}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'Closed'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n \r\n </div>\r\n \r\n <div class=\"whole\">\r\n\r\n <div class=\"pull-left w-50 p-r-10 p-l-10\">\r\n <input placeholder=\"{{'Search the CaseId here' | translate }}\" type=\"text\" class=\"w-100 serach_box pull-left\" [(ngModel)]=\"SearchBox\"\r\n (keyup)=\"searchData($event)\">\r\n </div>\r\n\r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseTemplate\" [items]=\"FieldListDDL\" [placeholder]=\"'\u0646\u0648\u0639'\" bindLabel=\"FieldAr\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n\r\n <ng-template #elseTemplate>\r\n <ng-select [items]=\"FieldListDDL\" [placeholder]=\"'Sort'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n <ng-container *ngIf=\"CurrentSortingField\">\r\n <span class=\"pull-left sort-icon\" style=\" font-size: 20px;\">\r\n <i class=\"la la-sort-amount-asc\" *ngIf=\"SortingField.direction=='0'\" (click)=\"SortDirection(1)\"></i>\r\n <i class=\"la la-sort-amount-desc\" *ngIf=\"SortingField.direction=='1'\" (click)=\"SortDirection(0)\"></i>\r\n </span>\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"dropdown status_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseEng\" (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'\u062D\u0627\u0644\u0629'\" bindLabel=\"NameAr\" bindValue=\"Name\">\r\n </ng-select>\r\n <ng-template #elseEng>\r\n <ng-select (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'Status'\" bindLabel=\"Name\" bindValue=\"Name\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n\r\n <!-- <div class=\"m-r-10 pull-left status_dropdown_div\">\r\n <div class=\"dropdown status_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseEng\" (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'\u062D\u0627\u0644\u0629'\" bindLabel=\"NameAr\" bindValue=\"Name\">\r\n </ng-select>\r\n <ng-template #elseEng>\r\n <ng-select (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'Status'\" bindLabel=\"Name\" bindValue=\"Name\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n </div>\r\n <div class=\"pull-right\">\r\n \r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseTemplate\" [items]=\"FieldListDDL\" [placeholder]=\"'\u0646\u0648\u0639'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n \r\n <ng-template #elseTemplate>\r\n <ng-select [items]=\"FieldListDDL\" [placeholder]=\"'Sort'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n <ng-container *ngIf=\"CurrentSortingField\">\r\n <span class=\"pull-left sort-icon\" style=\" font-size: 20px;\">\r\n <i class=\"la la-sort-amount-asc\" *ngIf=\"SortingField.direction=='0'\" (click)=\"SortDirection(1)\"></i>\r\n <i class=\"la la-sort-amount-desc\" *ngIf=\"SortingField.direction=='1'\" (click)=\"SortDirection(0)\"></i>\r\n </span>\r\n </ng-container>\r\n </div>\r\n \r\n <input placeholder=\"{{'Search the CaseId here' | translate }}\" type=\"text\" class=\"serach_box pull-left\" [(ngModel)]=\"SearchBox\"\r\n (keyup)=\"searchData($event)\">\r\n \r\n </div> -->\r\n <!-- <div class=\"view-type pull-left m-l-10 m-r-10\">\r\n <span class=\"themecolor m-r-5\" style=\"font-size: 22px;\"><i class=\"la la-id-card-o\"></i></span>\r\n <span class=\"m-r-5\" style=\"font-size: 22px;\"><i class=\"la la-table\"></i></span>\r\n </div> -->\r\n \r\n \r\n \r\n </div>\r\n \r\n <div class=\"body whole\">\r\n <div class=\"lists\" *ngFor=\"let item of supportRequestData\">\r\n \r\n <div class=\"col-sm-12 user-tag p-0\">\r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"list-user-img\" src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\"\r\n >\r\n </div>\r\n <div class=\"header\">\r\n <div class=\"\">{{item.CreatedBy}}</div>\r\n <!-- <div class=\"user-stage\" [ngClass]=\"item?.StatusIdEn\">\r\n <span>{{item?.StatusIdEn |translate}}\r\n <ng-container *ngIf=\"item.StatusIdEn == null\">{{'New'|translate}}</ng-container>\r\n </span> \r\n </div> -->\r\n <span><span class=\"user-stage\">{{globalService.CurrentLanguage =='Ar' ? (item.CaseTypeIdAr ? item.CaseTypeIdAr : (item.CaseTypeIdEn |translate)) : item.CaseTypeIdEn}}</span></span>\r\n </div>\r\n\r\n \r\n \r\n\r\n <div class=\"addedDate\">\r\n <div class=\"pull-left\">{{item.CreatedDatetime | date}} </div>\r\n </div>\r\n </div>\r\n\r\n <!-- <div class=\"assign_to_div\">\r\n <p>{{'ID' | translate}}</p>\r\n <span>#{{item?.CaseId}}</span>\r\n </div> -->\r\n \r\n <div class=\"content col-sm-12\">\r\n <h4 class=\"themecolor\"><u class=\"m-r-15\" (click)=\"openDetailsPopup(item)\">#{{item?.CaseId}}</u> {{item.Subject}}</h4>\r\n <!-- <span ><i class=\"text-bold\">Assigned To </i>: {{item.AssignedTo}}</span> -->\r\n \r\n <p>{{item.Description}}</p>\r\n <!-- <span><i class=\"text-bold\">Assigned Date </i>: {{item.AssignedDate | date}}</span>\r\n <span><i class=\"text-bold\">DeadLine Date </i>: {{item.DeadLineDateTime | date}}</span> -->\r\n <!-- <p>Steps:1.Login to Bugasura with valid user.2.Select respective project and open it 3.In issues list search enter text for search and hit enter button4.</p> -->\r\n </div>\r\n \r\n \r\n <!-- <div class=\"req_id\">\r\n <label>{{item.CaseTypeIdEn}}</label>\r\n <p>{{item.CaseTypeId}}</p>\r\n <span><span class=\"text-bold\">{{globalService.CurrentLanguage =='Ar' ? (item.CaseTypeIdAr ? item.CaseTypeIdAr : (item.CaseTypeIdEn |translate)) : item.CaseTypeIdEn}}</span></span>\r\n \r\n <span><i class=\"text-bold\"> {{'DeadLine Date' | translate}} </i>: {{item.DeadLineDateTime | date}}</span>\r\n </div> -->\r\n\r\n <div class=\"prioritys\">\r\n \r\n <span class=\"priority\" [ngClass]=\"item?.PriorityEn\">{{globalService.CurrentLanguage =='Ar' ? (item?.PriorityAr ? item?.PriorityAr : (item?.PriorityEn |translate)) : item?.PriorityEn }}\r\n <ng-container *ngIf=\"item.PriorityEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <div class=\"status\" [ngClass]=\"item?.StatusIdEn\">\r\n <span>{{item?.StatusIdEn |translate}}\r\n <ng-container *ngIf=\"item.StatusIdEn == null\">{{'New'|translate}}</ng-container>\r\n </span> \r\n </div>\r\n \r\n\r\n </div>\r\n\r\n <!-- <div class=\"assign_to_div\">\r\n <p>{{'Assigned To' | translate}}</p>\r\n <i class=\"las la-user-circle\" title=\"{{item.AssignedTo }}\"></i>\r\n </div> -->\r\n <div class=\"comments\">\r\n <div>\r\n <i class=\"fa fa-comments-o\" aria-hidden=\"true\"></i> \r\n <span>{{item.CommentsCount}}</span>\r\n </div>\r\n </div>\r\n </div>\r\n <app-pagination *ngIf=\"!IsClientPagination\" [totalCount]=\"totalRecordCount\" [pageCount]=\"pageCount\"\r\n [currentPage]=\"pageNo\" [pageSize]=\"pageSize\" [gridSearchType]=\"GridSearchType\"\r\n (getPaginationListData)=\"getPaginationListData($event.pageCount,$event.pageSize)\">\r\n </app-pagination>\r\n </div>\r\n </ng-container>\r\n \r\n \r\n <ng-container *ngIf=\"isDetails && detailsRecId\">\r\n \r\n <app-support-request-details [ViewFrom]=\"'Popup'\" [RecId]=\"detailsRecId\" [EntityTypeRecId]=\"detailsEntityTypeRecId\">\r\n </app-support-request-details>\r\n \r\n </ng-container>\r\n\r\n \r\n </div>\r\n</ng-template>\r\n\r\n\r\n</ng-container>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i7$1.NgSelectComponent, selector: "ng-select", inputs: ["bindLabel", "bindValue", "markFirst", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "appearance", "dropdownPosition", "appendTo", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "openOnEnter", "maxSelectedItems", "groupBy", "groupValue", "bufferAmount", "virtualScroll", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "tabIndex", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "typeahead", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { kind: "component", type: SupportRequestDetailsComponent, selector: "app-support-request-details", inputs: ["EntityTypeRecId", "RecId", "ViewFrom", "IsWfAction"] }, { kind: "component", type: SupportRequestCreateComponent, selector: "app-support-request-create", inputs: ["EntityFormId", "EntityTypeId", "ViewFrom", "Type", "FormValues", "IssueType", "IssueGroup", "IssueSubGroup", "IssueTypeEn", "IssueGroupEn", "IssueSubGroupEn", "IssueTypeAr", "IssueGroupAr", "IssueSubGroupAr", "Source", "CreatedByUserType", "Channel", "ChannelEn", "ChannelAr", "RequestField", "RequesterId", "RequesterIdEn"], outputs: ["closeCreate"] }, { kind: "component", type: PaginationComponent, selector: "app-pagination", inputs: ["currentPage", "totalCount", "pageCount", "pageSize", "gridSearchType"], outputs: ["getPaginationListData"] }, { kind: "component", type: SelfServiceFlowComponent, selector: "app-self-service-flow", inputs: ["RequesterTypeId", "RequesterTypeIdEn", "RequesterId", "RequesterField", "IssueType", "Source", "Channel", "ChannelEn", "ChannelAr"] }, { kind: "pipe", type: i4.DatePipe, name: "date" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
11495
+ RequestFlowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: RequestFlowComponent, deps: [{ token: SupportRequestService }, { token: i3.FormBuilder }, { token: EntityTypeSetupService }, { token: i2.Router }, { token: GlobalService }, { token: GridServiceService }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
11496
+ RequestFlowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: RequestFlowComponent, selector: "app-request-flow", inputs: { PageType: "PageType", RequesterTypeId: "RequesterTypeId", RequesterTypeIdEn: "RequesterTypeIdEn", RequesterId: "RequesterId", RequesterField: "RequesterField", Language: "Language", HostUrl: "HostUrl", Host: "Host", Source: "Source", Channel: "Channel", ChannelEn: "ChannelEn", ChannelAr: "ChannelAr", ContractList: "ContractList", SelectedContract: "SelectedContract", GridSearchType: "GridSearchType", IsClientPagination: "IsClientPagination" }, usesOnChanges: true, ngImport: i0, template: "<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/line-awesome/1.3.0/line-awesome/css/line-awesome.min.css\">\r\n<link rel=\"stylesheet\" href=\"https://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css\">\r\n\r\n\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/styles.css\">\r\n<link rel=\"stylesheet\" href=\"https://test.arco.sa/CustomerPortal/IndividualPortalTickets/SupportRequest/supportstyles.css\">\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/assets/css/main.css\">\r\n<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css\">\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/assets/css/bootstrap.min.css\">\r\n\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/assets/css/font-awesome.min.css\">\r\n\r\n<link rel=\"stylesheet\" href=\"https://unpkg.com/ngx-bootstrap/datepicker/bs-datepicker.css\">\r\n\r\n<link rel=\"stylesheet\" href=\"https://unpkg.com/@angular/material@11.2.13/prebuilt-themes/indigo-pink.css\">\r\n<!-- <div class=\"data-loader\" [ngClass]=\"{'show_loader': globalService.dataLoader == true}\">\r\n <div class=\"loading\">\r\n <div class=\"dataloadings\">\r\n </div>\r\n </div>\r\n</div> -->\r\n<ng-container *ngIf=\"globalService.dataLoader\">\r\n <div class=\"page-loader-wrapper active\">\r\n <div class=\"loader\">\r\n <div class=\"m-t-30\"><img src=\"https://test.arco.sa/CustomerPortal/IndividualPortalTickets/assets/images/arco-icon-96x96.png\" width=\"48\" height=\"48\" alt=\"ARCO\"></div>\r\n <p>Please wait...</p>\r\n </div>\r\n </div>\r\n</ng-container>\r\n<ng-container *ngIf=\"viewHtml\">\r\n\r\n<ng-container *ngIf=\"PageType=='SelfService';else caseTemplate\" >\r\n\r\n <app-self-service-flow [RequesterTypeId]=\"RequesterTypeId\" [RequesterTypeIdEn]=\"RequesterTypeIdEn\"\r\n [RequesterId]=\"RequesterId\" [Source]=\"Source\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\" [ChannelAr]=\"ChannelAr\"\r\n [RequestField]=\"RequesterField\" [ContractList]=\"DDContractList\" [SelectedContract]=\"SelectedContract\" ></app-self-service-flow>\r\n\r\n</ng-container>\r\n\r\n<ng-template #caseTemplate>\r\n\r\n <div class=\"req_page whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n\r\n <div *ngIf=\"isDetails\">\r\n <span class=\"back-arrow\" (click)=\"backToRequest()\">\r\n <i class=\"fa fa-arrow-left\"></i>\r\n {{'Back'|translate}}\r\n </span>\r\n </div>\r\n\r\n <div class=\"whole m-t-10 m-b-20 clearfix\">\r\n \r\n <div class=\"pull-left\">\r\n <h2 class=\"heading pull-left\">{{PageType|translate}}\r\n <span *ngIf=\"isDetails && CaseId\"> - #{{CaseId}}</span>\r\n </h2>\r\n \r\n <ng-container *ngIf=\"false\">\r\n \r\n <div class=\"pull-left create_req hierarchy-view\">\r\n <button class=\"add_req_btn\" *ngIf=\"!isShowCreateRequest && !isDetails\" (click)=\"openIssueType()\">\r\n {{'Create New'|translate}}\r\n <i class=\"fa fa-plus\" style=\"float: right;margin: 4px 1px 2px 8px;\"></i>\r\n </button>\r\n\r\n <div class=\"modal fade show\" *ngIf=\"displayPopUp\" id=\"request-create-popup\" tabindex=\"-1\" role=\"dialog\" (click)=\"ClickedOut($event)\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" role=\"document\" [ngClass]=\"{'modal-sm':dropdownmodal,'modal-lg':!dropdownmodal}\">\r\n <div class=\"modal-content request-modal\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\">{{'Create' | translate}} {{globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr : (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}</h5>\r\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"closeModel()\">\r\n <span aria-hidden=\"true\">&times;</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\" *ngIf=\"IssueTypeDDL.length > 0\">\r\n <div class=\"\" *ngIf=\"dropdownmodal\">\r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'Group'|translate}}</label>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage =='Ar'\" [items]=\"IssueTypeDDL[0].IssueGroup\" [placeholder]=\"'Group'|translate\" bindLabel=\"IssueGroupAr\" bindValue=\"IssueGroup\"\r\n (change)=\"selectGroup($event,IssueTypeDDL[0])\" >\r\n </ng-select>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage !='Ar'\" [items]=\"IssueTypeDDL[0].IssueGroup\" [placeholder]=\"'Group'|translate\" bindLabel=\"IssueGroupEn\" bindValue=\"IssueGroup\"\r\n (change)=\"selectGroup($event,IssueTypeDDL[0])\" >\r\n </ng-select>\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'SubGroup'|translate}}</label>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage =='Ar'\" [items]=\"dropdownIssuse\" [placeholder]=\"'SubGroup'|translate\" bindLabel=\"IssueAr\" bindValue=\"Issue\"\r\n (change)=\"selectSubGroup($event,true)\">\r\n </ng-select>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage !='Ar'\" [items]=\"dropdownIssuse\" [placeholder]=\"'SubGroup'|translate\" bindLabel=\"IssueEn\" bindValue=\"Issue\"\r\n (change)=\"selectSubGroup($event,true)\">\r\n </ng-select>\r\n </div>\r\n <div class=\"mb-3 text-center\">\r\n <button class=\"btn btn-small m-l-5 m-r-5 dropdownbtn\" [disabled]=\"!selectedSubGroup\" (click)=\"selectSubGroup(selectedSubGroup)\">\r\n {{'Next'|translate}}\r\n </button>\r\n </div>\r\n </div>\r\n \r\n \r\n <!-- <ng-container *ngFor=\"let _type of IssueTypeDDL\">\r\n \r\n \r\n \r\n <div class=\"row\">\r\n \r\n \r\n \r\n <ng-container *ngFor=\"let _issue of _type.IssueGroup\">\r\n <ng-container *ngIf=\"showChild\">\r\n \r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"Popup-boxes\" (click)=\"selectGroup(_issue,_type)\" [ngClass]=\"{'active': _issue.showSubGroup}\">\r\n \r\n \r\n <span >{{ globalService.CurrentLanguage =='Ar' ? (_issue.IssueGroupAr ?\r\n _issue.IssueGroupAr : (_issue.IssueGroupEn |translate)) : _issue.IssueGroupEn }}</span>\r\n \r\n </div>\r\n \r\n </div>\r\n \r\n </ng-container>\r\n \r\n <div class=\"col-sm-12 mb-3\" *ngIf=\"_issue.showSubGroup && !showChild && showsubChild\">\r\n <h6 class=\"\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToGroup(_issue)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ? selectedGroup?.IssueGroupAr :\r\n (selectedGroup?.IssueGroupEn |translate)) : selectedGroup?.IssueGroupEn }}\r\n \r\n </h6>\r\n </div>\r\n <ng-container *ngFor=\"let _sub of _issue.Issue\">\r\n <ng-container *ngIf=\"showsubChild && !showChild && _issue.showSubGroup\">\r\n \r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n \r\n <div class=\"Popup-boxes\" (click)=\"selectSubGroup(_sub)\">\r\n \r\n \r\n <span >{{globalService.CurrentLanguage =='Ar' ? (_sub.IssueAr ?\r\n _sub.IssueAr : (_sub.IssueEn |translate)) : _sub.IssueEn }}</span>\r\n \r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n \r\n \r\n \r\n\r\n \r\n </ng-container>\r\n </div>\r\n\r\n \r\n </ng-container> -->\r\n \r\n <ng-container *ngIf=\"isShowCreateRequest\">\r\n \r\n <div class=\"whole m-b-20 breadcrumbes\">\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr : (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}</span> > \r\n \r\n <ng-container *ngIf=\"selectedType.IssueGroup; else elseCategory\">\r\n \r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ? selectedGroup?.IssueGroupAr : (selectedGroup?.IssueGroupEn |translate)) : selectedGroup?.IssueGroupEn }}</span> > \r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedSubGroup?.IssueAr ? selectedSubGroup?.IssueAr : (selectedSubGroup?.IssueEn |translate)) : selectedSubGroup?.IssueEn }}</span> > \r\n \r\n </ng-container>\r\n <ng-template #elseCategory>\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedCategory?.CategoryIdAr ? selectedCategory?.CategoryIdAr : (selectedCategory?.CategoryIdEn |translate)) : selectedCategory?.CategoryIdEn }}</span> > \r\n </ng-template>\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectCaseItem.CaseIdAr ? selectCaseItem.CaseIdAr : (selectCaseItem.CaseIdEn |translate)) : selectCaseItem.CaseIdEn }}</span>\r\n </div>\r\n \r\n <app-support-request-create class=\"support_req_div\" *ngIf=\"CreateItemId\" \r\n [ViewFrom]=\"'Popup'\"\r\n \r\n [IssueType]=\"selectedType.IssueType\"\r\n [IssueTypeEn]=\"selectedType.IssueTypeEn\"\r\n [IssueTypeAr]=\"selectedType.IssueTypeAr\"\r\n \r\n [IssueGroup]=\"selectedGroup?.IssueGroup\"\r\n [IssueGroupEn]=\"selectedGroup?.IssueGroupEn\"\r\n [IssueGroupAr]=\"selectedGroup?.IssueGroupAr\"\r\n \r\n [IssueSubGroup]=\"selectedSubGroup?.Issue\" \r\n [IssueSubGroupEn]=\"selectedSubGroup?.IssueEn\" \r\n [IssueSubGroupAr]=\"selectedSubGroup?.IssueAr\" \r\n \r\n [Source]=\"Source\"\r\n [CreatedByUserType]=\"RequesterTypeId\"\r\n [Channel]=\"Channel\" \r\n [ChannelEn]=\"ChannelEn\" \r\n [ChannelAr]=\"ChannelAr\" \r\n [RequesterId]=\"RequesterId\"\r\n [RequesterIdEn]=\"RequesterTypeIdEn\"\r\n [RequestField]=\"RequesterField\"\r\n \r\n [Type]=\"'Create'\"\r\n [EntityTypeId]=\"CreateItemId\"\r\n (closeCreate)=\"closePopupCreateView($event.Type,$event.Data)\">\r\n </app-support-request-create>\r\n </ng-container>\r\n \r\n \r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"\" *ngIf=\"isCreate && !isShowCreateRequest\">\r\n <div class=\"step-fixed\" (click)=\"backToRequest()\" ></div>\r\n <ul class=\"steps\">\r\n <li>\r\n <!-- <h6> {{'Issue Type'|translate}}</h6> -->\r\n <div class=\"main_menu_brad\">\r\n \r\n <ng-container *ngFor=\"let _type of IssueTypeDDL\">\r\n <div class=\"main_menu_brad_inside clearfix\" [ngClass]=\"{'active': _type.showGroup || _type.showCategory}\">\r\n <i class=\"fa fa-caret-right\"></i>\r\n <span (click)=\"selectType(_type)\">{{ globalService.CurrentLanguage =='Ar' ? (_type.IssueTypeAr ? _type.IssueTypeAr\r\n : (_type.IssueTypeEn |translate)) : _type.IssueTypeEn }}</span>\r\n <div class=\"main_menu_brad_sub\" *ngIf=\"_type.showGroup || _type.showCategory\">\r\n <h6 class=\"m-b-10\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToType(_type)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr :\r\n (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}\r\n </h6>\r\n \r\n <ng-container *ngFor=\"let _issue of _type.IssueGroup\">\r\n <div class=\"main_menu_brad_inside clearfix\" [ngClass]=\"{'active': _issue.showSubGroup}\">\r\n <i class=\"fa fa-caret-right\"></i>\r\n <span (click)=\"selectGroup(_issue,_type)\">{{ globalService.CurrentLanguage =='Ar' ? (_issue.IssueGroupAr ?\r\n _issue.IssueGroupAr : (_issue.IssueGroupEn |translate)) : _issue.IssueGroupEn }}</span>\r\n <div class=\"main_menu_brad_sub\" *ngIf=\"_issue.showSubGroup\">\r\n <h6 class=\"m-b-10\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToGroup(_issue)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ? selectedGroup?.IssueGroupAr :\r\n (selectedGroup?.IssueGroupEn |translate)) : selectedGroup?.IssueGroupEn }}\r\n \r\n </h6>\r\n <ng-container *ngFor=\"let _sub of _issue.Issue\">\r\n <div class=\"main_menu_brad \">\r\n <div class=\"main_menu_brad_inside clearfix position-relative\">\r\n \r\n <span (click)=\"selectSubGroup(_sub)\">{{globalService.CurrentLanguage =='Ar' ? (_sub.IssueAr ?\r\n _sub.IssueAr : (_sub.IssueEn |translate)) : _sub.IssueEn }}</span>\r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n \r\n <ng-container *ngFor=\"let _cat of _type.Category\">\r\n <div class=\"main_menu_brad_inside clearfix\" [ngClass]=\"{'active': _cat.showCase}\">\r\n <i class=\"fa fa-caret-right\"></i>\r\n <span (click)=\"selectCategory(_cat,_type)\">\r\n {{ globalService.CurrentLanguage =='Ar' ? (_cat.CategoryIdAr ?\r\n _cat.CategoryIdAr : (_cat.CategoryIdEn |translate)) : _cat.CategoryIdEn }}</span>\r\n <div class=\"main_menu_brad_sub\" *ngIf=\"_cat.showCase\">\r\n <h6 class=\"m-b-10\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToCategory(_cat)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedCategory.CategoryIdAr ? selectedCategory.CategoryIdAr :\r\n (selectedCategory.CategoryIdEn |translate)) : selectedCategory.CategoryIdEn }}\r\n \r\n </h6>\r\n <ng-container *ngFor=\"let _case of _cat.Case\">\r\n <div class=\"main_menu_brad \">\r\n <div class=\"main_menu_brad_inside clearfix position-relative\">\r\n \r\n <span (click)=\"selectCase(_case)\">{{globalService.CurrentLanguage =='Ar' ? (_case.CaseIdAr ?\r\n _case.CaseIdAr : (_case.CaseIdEn |translate)) : _case.CaseIdEn }}</span>\r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n \r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n </div>\r\n </li>\r\n </ul>\r\n </div>\r\n \r\n \r\n </div>\r\n </ng-container>\r\n <div class=\"pull-left create_req hierarchy-view\">\r\n <button class=\"add_req_btn\" *ngIf=\"!isShowCreateRequest && !isDetails\" (click)=\"showCreatePopup()\">\r\n {{'Create New'|translate}}\r\n <i class=\"fa fa-plus\" style=\"float: right;margin: 4px 1px 2px 8px;\"></i>\r\n </button>\r\n\r\n <ng-container *ngIf=\"IsShowCreatePopup\">\r\n <lib-create-form [RequesterTypeId]=\"RequesterTypeId\" [PageType]=\"PageType\" [Source]=\"Source\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\"\r\n [ChannelAr]=\"ChannelAr\" [RequesterId]=\"RequesterId\" [RequesterIdEn]=\"RequesterTypeIdEn\"\r\n [RequestField]=\"RequesterField\" (closeCreateModel)=\"hideCreatePopup($event.IsClose,$event.Data,$event.IsReload)\"></lib-create-form>\r\n </ng-container>\r\n \r\n </div>\r\n </div>\r\n <!-- <div class=\"pull-right m-r-10\">\r\n <button class=\"btn btn-outline btn-danger\" *ngIf=\"isDetails\" (click)=\"backToRequest()\">\r\n \r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}</button>\r\n </div> -->\r\n </div>\r\n \r\n \r\n <ng-container *ngIf=\"!isDetails\">\r\n \r\n <div class=\"whole m-b-20\">\r\n\r\n <div class=\"card-box \">\r\n <div class=\"header\">\r\n <h5 class=\"card-box-title m-0\">{{'Overview'| translate}}</h5>\r\n </div>\r\n <div class=\"body\">\r\n <div class=\"row\">\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span><i class=\"la la-ticket my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{TotalStatusCount}}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'Total Request'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span style=\"background: #fde3ff;color: #db32e8;\"><i class=\"la la-file my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{NewStatus }}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'New'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span style=\"background: #fff3ea;color: #ec8f48;\"><i\r\n class=\"la la-hourglass-half my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{InProgressStatusCount}}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'In Progress'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span style=\"background: #eafff1;color: #27b556;\"><i class=\"la la-check my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{ClosedStatusCount}}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'Closed'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n \r\n </div>\r\n \r\n <div class=\"whole mb-3\">\r\n\r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 150px;\">\r\n <ng-multiselect-dropdown [placeholder]=\"'select Contract'|translate\" [settings]=\"dropdownSettings\"\r\n [data]=\"DDContractList\" [(ngModel)]=\"CurrentSelectedContract\" (onSelect)=\"onSelectContractListDropdown($event)\"\r\n (onSelectAll)=\"onSelectAllContractListDropdown($event)\" (onDeSelect)=\"onSelectContractListDropdown($event)\"\r\n (onDeSelectAll)=\"onDeSelectAllContractListDropdown()\">\r\n >\r\n </ng-multiselect-dropdown>\r\n <!-- <ng-select [items]=\"DDContractList\" [placeholder]=\"'ContractList'\"\r\n bindLabel=\"ContractId\" bindValue=\"ContractId\" [(ngModel)]=\"SelectedContract\" (change)=\"getListDatas(Searchcriteria)\">\r\n </ng-select> -->\r\n </div>\r\n </div>\r\n\r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseTemplate\" [items]=\"FieldListDDL\" [placeholder]=\"'\u0646\u0648\u0639'\" bindLabel=\"FieldAr\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n\r\n <ng-template #elseTemplate>\r\n <ng-select [items]=\"FieldListDDL\" [placeholder]=\"'Sort'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n <ng-container *ngIf=\"CurrentSortingField\">\r\n <span class=\"pull-left sort-icon\" style=\" font-size: 20px;\">\r\n <i class=\"la la-sort-amount-asc\" *ngIf=\"SortingField.direction=='0'\" (click)=\"SortDirection(1)\"></i>\r\n <i class=\"la la-sort-amount-desc\" *ngIf=\"SortingField.direction=='1'\" (click)=\"SortDirection(0)\"></i>\r\n </span>\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"dropdown status_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseEng\" (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'\u062D\u0627\u0644\u0629'\" bindLabel=\"NameAr\" bindValue=\"Name\">\r\n </ng-select>\r\n <ng-template #elseEng>\r\n <ng-select (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'Status'\" bindLabel=\"Name\" bindValue=\"Name\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n\r\n <div class=\"m-r-10 pull-left sort_div\" style=\"margin: 0px 5px;\">\r\n <input style=\"min-width: 250px !important;\" placeholder=\"{{'Search the CaseId here' | translate }}\" type=\"text\" class=\"w-100 serach_box pull-left\" [(ngModel)]=\"SearchBox\"\r\n (keyup)=\"searchData($event)\">\r\n </div>\r\n <a href=\"javascript:void(0)\" class=\"themecolor action-btn m-r-5\" style=\"color: #000;font-size: 20px;\"\r\n *ngFor=\"let item of viewTypes; let i = index\" [ngClass]=\"{'themecolor':selectedIndex == item.id}\">\r\n <span [class.active]=\"selectedIndex === item.id\" (click)=\"viewType(item, i)\">\r\n <i class=\"la {{item.class}}\"></i>\r\n </span>\r\n </a>\r\n <!-- <div class=\"m-r-10 pull-left status_dropdown_div\">\r\n <div class=\"dropdown status_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseEng\" (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'\u062D\u0627\u0644\u0629'\" bindLabel=\"NameAr\" bindValue=\"Name\">\r\n </ng-select>\r\n <ng-template #elseEng>\r\n <ng-select (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'Status'\" bindLabel=\"Name\" bindValue=\"Name\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n </div>\r\n <div class=\"pull-right\">\r\n \r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseTemplate\" [items]=\"FieldListDDL\" [placeholder]=\"'\u0646\u0648\u0639'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n \r\n <ng-template #elseTemplate>\r\n <ng-select [items]=\"FieldListDDL\" [placeholder]=\"'Sort'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n <ng-container *ngIf=\"CurrentSortingField\">\r\n <span class=\"pull-left sort-icon\" style=\" font-size: 20px;\">\r\n <i class=\"la la-sort-amount-asc\" *ngIf=\"SortingField.direction=='0'\" (click)=\"SortDirection(1)\"></i>\r\n <i class=\"la la-sort-amount-desc\" *ngIf=\"SortingField.direction=='1'\" (click)=\"SortDirection(0)\"></i>\r\n </span>\r\n </ng-container>\r\n </div>\r\n \r\n <input placeholder=\"{{'Search the CaseId here' | translate }}\" type=\"text\" class=\"serach_box pull-left\" [(ngModel)]=\"SearchBox\"\r\n (keyup)=\"searchData($event)\">\r\n \r\n </div> -->\r\n <!-- <div class=\"view-type pull-left m-l-10 m-r-10\">\r\n <span class=\"themecolor m-r-5\" style=\"font-size: 22px;\"><i class=\"la la-id-card-o\"></i></span>\r\n <span class=\"m-r-5\" style=\"font-size: 22px;\"><i class=\"la la-table\"></i></span>\r\n </div> -->\r\n \r\n \r\n \r\n </div>\r\n <div *ngIf=\"viewTypeData == 1\">\r\n <app-grid [columnDefs]=\"columnDefs\" [GridTitle]=\"pageTitle\" \r\n [selectMode]=\"selectMode\" [IsCreate]=\"false\" [IsDelete]=\"false\"\r\n [IsEdit]=\"false\" [grid]=\"1\" (goToDetails)=\"goDetails($event.data)\" (getPageList)=\"getListDatas($event.Criteria)\" (getGridCheckedData)=\"getgridCheckedData($event.gridData)\">\r\n </app-grid>\r\n </div>\r\n <div *ngIf=\"viewTypeData == 2\">\r\n <div class=\"body whole\">\r\n <div class=\"lists\" *ngFor=\"let item of supportRequestData\">\r\n \r\n <div class=\"col-sm-12 user-tag p-0\">\r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"list-user-img\" src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\"\r\n >\r\n </div>\r\n <div class=\"header\">\r\n <div class=\"\">{{item.CreatedBy}}</div>\r\n <!-- <div class=\"user-stage\" [ngClass]=\"item?.StatusIdEn\">\r\n <span>{{item?.StatusIdEn |translate}}\r\n <ng-container *ngIf=\"item.StatusIdEn == null\">{{'New'|translate}}</ng-container>\r\n </span> \r\n </div> -->\r\n <span><span class=\"user-stage\">{{globalService.CurrentLanguage =='Ar' ? (item.CaseTypeIdAr ? item.CaseTypeIdAr : (item.CaseTypeIdEn |translate)) : item.CaseTypeIdEn}}</span></span>\r\n </div>\r\n\r\n \r\n \r\n\r\n <div class=\"addedDate\">\r\n <div class=\"pull-left\">{{item.CreatedDatetime | date}} </div>\r\n </div>\r\n </div>\r\n\r\n <!-- <div class=\"assign_to_div\">\r\n <p>{{'ID' | translate}}</p>\r\n <span>#{{item?.CaseId}}</span>\r\n </div> -->\r\n \r\n <div class=\"content col-sm-12\">\r\n <h4 class=\"themecolor\"><u class=\"m-r-15\" (click)=\"openDetailsPopup(item)\">#{{item?.CaseId}}</u> {{item.Subject}}</h4>\r\n <!-- <span ><i class=\"text-bold\">Assigned To </i>: {{item.AssignedTo}}</span> -->\r\n \r\n <p>{{item.Description}}</p>\r\n <!-- <span><i class=\"text-bold\">Assigned Date </i>: {{item.AssignedDate | date}}</span>\r\n <span><i class=\"text-bold\">DeadLine Date </i>: {{item.DeadLineDateTime | date}}</span> -->\r\n <!-- <p>Steps:1.Login to Bugasura with valid user.2.Select respective project and open it 3.In issues list search enter text for search and hit enter button4.</p> -->\r\n </div>\r\n \r\n \r\n <!-- <div class=\"req_id\">\r\n <label>{{item.CaseTypeIdEn}}</label>\r\n <p>{{item.CaseTypeId}}</p>\r\n <span><span class=\"text-bold\">{{globalService.CurrentLanguage =='Ar' ? (item.CaseTypeIdAr ? item.CaseTypeIdAr : (item.CaseTypeIdEn |translate)) : item.CaseTypeIdEn}}</span></span>\r\n \r\n <span><i class=\"text-bold\"> {{'DeadLine Date' | translate}} </i>: {{item.DeadLineDateTime | date}}</span>\r\n </div> -->\r\n\r\n <div class=\"prioritys\">\r\n \r\n <span class=\"priority\" [ngClass]=\"item?.PriorityEn\">{{globalService.CurrentLanguage =='Ar' ? (item?.PriorityAr ? item?.PriorityAr : (item?.PriorityEn |translate)) : item?.PriorityEn }}\r\n <ng-container *ngIf=\"item.PriorityEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <div class=\"status\" [ngClass]=\"item?.StatusIdEn\">\r\n <span>{{item?.StatusIdEn |translate}}\r\n <ng-container *ngIf=\"item.StatusIdEn == null\">{{'New'|translate}}</ng-container>\r\n </span> \r\n </div>\r\n \r\n\r\n </div>\r\n\r\n <!-- <div class=\"assign_to_div\">\r\n <p>{{'Assigned To' | translate}}</p>\r\n <i class=\"las la-user-circle\" title=\"{{item.AssignedTo }}\"></i>\r\n </div> -->\r\n <div class=\"comments\">\r\n <div>\r\n <i class=\"fa fa-comments-o\" aria-hidden=\"true\"></i> \r\n <span>{{item.CommentsCount}}</span>\r\n </div>\r\n </div>\r\n </div>\r\n <app-pagination *ngIf=\"!IsClientPagination\" [totalCount]=\"totalRecordCount\" [pageCount]=\"pageCount\"\r\n [currentPage]=\"pageNo\" [pageSize]=\"pageSize\" [gridSearchType]=\"GridSearchType\"\r\n (getPaginationListData)=\"getPaginationListData($event.pageCount,$event.pageSize)\">\r\n </app-pagination>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n \r\n <ng-container *ngIf=\"isDetails && detailsRecId\">\r\n \r\n <app-support-request-details [PageType]=\"PageType\" [RequesterTypeId]=\"RequesterTypeId\" [Source]=\"Source\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\"\r\n [ChannelAr]=\"ChannelAr\" [RequesterId]=\"RequesterId\" [RequesterIdEn]=\"RequesterTypeIdEn\"\r\n [RequestField]=\"RequesterField\" [ViewFrom]=\"'Popup'\" [RecId]=\"detailsRecId\" [EntityTypeRecId]=\"detailsEntityTypeRecId\" (closeCreateModel)=\"hideCreatePopup($event.IsClose,$event.Data,$event.IsReload)\">\r\n </app-support-request-details>\r\n \r\n </ng-container>\r\n\r\n \r\n </div>\r\n</ng-template>\r\n\r\n\r\n</ng-container>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i5$1.NgSelectComponent, selector: "ng-select", inputs: ["bindLabel", "bindValue", "markFirst", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "appearance", "dropdownPosition", "appendTo", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "openOnEnter", "maxSelectedItems", "groupBy", "groupValue", "bufferAmount", "virtualScroll", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "tabIndex", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "typeahead", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { kind: "component", type: i8.MultiSelectComponent, selector: "ng-multiselect-dropdown", inputs: ["disabled", "placeholder", "settings", "data"], outputs: ["onFilterChange", "onDropDownClose", "onSelect", "onDeSelect", "onSelectAll", "onDeSelectAll"] }, { kind: "component", type: SupportRequestDetailsComponent, selector: "app-support-request-details", inputs: ["EntityTypeRecId", "RecId", "ViewFrom", "IsWfAction", "PageType", "RequesterTypeId", "RequesterTypeIdEn", "RequesterId", "RequesterField", "Language", "HostUrl", "Host", "Source", "Channel", "ChannelEn", "ChannelAr"], outputs: ["closeCreateModel"] }, { kind: "component", type: SupportRequestCreateComponent, selector: "app-support-request-create", inputs: ["EntityFormId", "EntityTypeId", "ViewFrom", "Type", "FormValues", "IssueType", "IssueGroup", "IssueSubGroup", "IssueTypeEn", "IssueGroupEn", "IssueSubGroupEn", "IssueTypeAr", "IssueGroupAr", "IssueSubGroupAr", "Source", "CreatedByUserType", "Channel", "ChannelEn", "ChannelAr", "RequestField", "RequesterId", "RequesterIdEn"], outputs: ["closeCreate"] }, { kind: "component", type: PaginationComponent, selector: "app-pagination", inputs: ["currentPage", "totalCount", "pageCount", "pageSize", "gridSearchType"], outputs: ["getPaginationListData"] }, { kind: "component", type: SelfServiceFlowComponent, selector: "app-self-service-flow", inputs: ["RequesterTypeId", "RequesterTypeIdEn", "RequesterId", "RequesterField", "IssueType", "Source", "Channel", "ChannelEn", "ChannelAr", "ContractList", "SelectedContract"] }, { kind: "component", type: GridComponent, selector: "app-grid", inputs: ["grid", "GridTitle", "InnerGridTitle", "GridDescription", "selectMode", "gridSelectOptions", "gridActionList", "gridActionStatus", "gridCurrentStatus", "IsGridActionList", "IsGridActionForm", "columnDefs", "InnerColumnDefs", "gridSelectOption", "IsCreate", "IsEdit", "IsDelete", "IsSorting", "IsRefresh", "IsSearch", "IsthSize", "IsActive", "IsDuplicate", "RowInsideGrid", "IsDetails", "IsBack", "IsAttach", "IsDynamicListpage", "IsAssign", "IsInnerGrid", "IsShowDetailsGo", "IsExport", "IsTicketGroupAssign", "GridSearchType", "IsClientPagination", "IsCategorySetupView", "IsInnerGridCreate", "IsInnerGridEdit", "IsInnerGridDelete", "IsHidden", "gridData", "GridDynamicExportData", "IsDynamicExport"], outputs: ["getGridAction", "getGridStatusAction", "getGridCheckedData", "openCreatePopup", "getPageList", "getInnerPageList", "goToDetails", "goToAction", "callButtonEvent", "callIconEvent", "callOnOffEvent", "copyTextEvent", "gridSelectOptionsData", "assignmentMethod", "ticketGroupAssignmentMethod", "attachMethod", "gotoBackToList", "editMethod", "ActiveMethod", "DuplicateMethod", "rowInsideMethod", "deleteMethod", "multipleDeleteMethod", "GetDetailsList", "GetListView", "categorySetupView", "openCreatePopupInnerGrid", "editMethodInnerGrid", "deleteMethodInnerGrid"] }, { kind: "component", type: CreateFormComponent, selector: "lib-create-form", inputs: ["IsDropdownModel", "PageType", "RequesterTypeId", "RequesterTypeIdEn", "RequesterId", "RequesterField", "Language", "HostUrl", "Host", "Source", "Channel", "ChannelEn", "ChannelAr"], outputs: ["closeCreateModel"] }, { kind: "pipe", type: i4.DatePipe, name: "date" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
10952
11497
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: RequestFlowComponent, decorators: [{
10953
11498
  type: Component,
10954
- args: [{ selector: 'app-request-flow', template: "<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/line-awesome/1.3.0/line-awesome/css/line-awesome.min.css\">\r\n<link rel=\"stylesheet\" href=\"https://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css\">\r\n\r\n\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/styles.css\">\r\n<link rel=\"stylesheet\" href=\"https://test.arco.sa/CustomerPortal/IndividualPortalTickets/SupportRequest/supportstyles.css\">\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/assets/css/main.css\">\r\n<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css\">\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/assets/css/bootstrap.min.css\">\r\n\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/assets/css/font-awesome.min.css\">\r\n\r\n<link rel=\"stylesheet\" href=\"https://unpkg.com/ngx-bootstrap/datepicker/bs-datepicker.css\">\r\n\r\n<link rel=\"stylesheet\" href=\"https://unpkg.com/@angular/material@11.2.13/prebuilt-themes/indigo-pink.css\">\r\n<!-- <div class=\"data-loader\" [ngClass]=\"{'show_loader': globalService.dataLoader == true}\">\r\n <div class=\"loading\">\r\n <div class=\"dataloadings\">\r\n </div>\r\n </div>\r\n</div> -->\r\n<ng-container *ngIf=\"globalService.dataLoader\">\r\n <div class=\"page-loader-wrapper active\">\r\n <div class=\"loader\">\r\n <div class=\"m-t-30\"><img src=\"https://test.arco.sa/CustomerPortal/IndividualPortalTickets/assets/images/arco-icon-96x96.png\" width=\"48\" height=\"48\" alt=\"ARCO\"></div>\r\n <p>Please wait...</p>\r\n </div>\r\n </div>\r\n</ng-container>\r\n<ng-container *ngIf=\"viewHtml\">\r\n\r\n<ng-container *ngIf=\"PageType=='SelfService';else caseTemplate\" >\r\n\r\n <app-self-service-flow [RequesterTypeId]=\"RequesterTypeId\" [RequesterTypeIdEn]=\"RequesterTypeIdEn\"\r\n [RequesterId]=\"RequesterId\" [Source]=\"Source\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\" [ChannelAr]=\"ChannelAr\"\r\n [RequestField]=\"RequesterField\"></app-self-service-flow>\r\n\r\n</ng-container>\r\n\r\n<ng-template #caseTemplate>\r\n\r\n <div class=\"req_page whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n\r\n <div *ngIf=\"isDetails\">\r\n <span class=\"back-arrow\" (click)=\"backToRequest()\">\r\n <i class=\"fa fa-arrow-left\"></i>\r\n {{'Back'|translate}}\r\n </span>\r\n </div>\r\n\r\n <div class=\"whole m-t-10 m-b-20 clearfix\">\r\n \r\n <div class=\"pull-left\">\r\n <h2 class=\"heading pull-left\">{{PageType|translate}}\r\n <span *ngIf=\"isDetails && CaseId\"> - #{{CaseId}}</span>\r\n </h2>\r\n \r\n <div class=\"pull-left create_req hierarchy-view\">\r\n <button class=\"add_req_btn\" *ngIf=\"!isShowCreateRequest && !isDetails\" (click)=\"openIssueType()\">\r\n {{'Create New'|translate}}\r\n <i class=\"fa fa-plus\" style=\"float: right;margin: 4px 1px 2px 8px;\"></i>\r\n </button>\r\n\r\n <div class=\"modal fade show\" *ngIf=\"displayPopUp\" id=\"request-create-popup\" tabindex=\"-1\" role=\"dialog\" (click)=\"ClickedOut($event)\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" role=\"document\" [ngClass]=\"{'modal-sm':dropdownmodal,'modal-lg':!dropdownmodal}\">\r\n <div class=\"modal-content request-modal\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\">{{'Create' | translate}} {{globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr : (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}</h5>\r\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"closeModel()\">\r\n <span aria-hidden=\"true\">&times;</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\" *ngIf=\"IssueTypeDDL.length > 0\">\r\n <div class=\"\" *ngIf=\"dropdownmodal\">\r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'Group'|translate}}</label>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage =='Ar'\" [items]=\"IssueTypeDDL[0].IssueGroup\" [placeholder]=\"'Group'|translate\" bindLabel=\"IssueGroupAr\" bindValue=\"IssueGroup\"\r\n (change)=\"selectGroup($event,IssueTypeDDL[0])\" >\r\n </ng-select>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage !='Ar'\" [items]=\"IssueTypeDDL[0].IssueGroup\" [placeholder]=\"'Group'|translate\" bindLabel=\"IssueGroupEn\" bindValue=\"IssueGroup\"\r\n (change)=\"selectGroup($event,IssueTypeDDL[0])\" >\r\n </ng-select>\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'SubGroup'|translate}}</label>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage =='Ar'\" [items]=\"dropdownIssuse\" [placeholder]=\"'SubGroup'|translate\" bindLabel=\"IssueAr\" bindValue=\"Issue\"\r\n (change)=\"selectSubGroup($event,true)\">\r\n </ng-select>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage !='Ar'\" [items]=\"dropdownIssuse\" [placeholder]=\"'SubGroup'|translate\" bindLabel=\"IssueEn\" bindValue=\"Issue\"\r\n (change)=\"selectSubGroup($event,true)\">\r\n </ng-select>\r\n </div>\r\n <div class=\"mb-3 text-center\">\r\n <button class=\"btn btn-small m-l-5 m-r-5 dropdownbtn\" [disabled]=\"!selectedSubGroup\" (click)=\"selectSubGroup(selectedSubGroup)\">\r\n {{'Next'|translate}}\r\n </button>\r\n </div>\r\n </div>\r\n \r\n \r\n <!-- <ng-container *ngFor=\"let _type of IssueTypeDDL\">\r\n \r\n \r\n \r\n <div class=\"row\">\r\n \r\n \r\n \r\n <ng-container *ngFor=\"let _issue of _type.IssueGroup\">\r\n <ng-container *ngIf=\"showChild\">\r\n \r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"Popup-boxes\" (click)=\"selectGroup(_issue,_type)\" [ngClass]=\"{'active': _issue.showSubGroup}\">\r\n \r\n \r\n <span >{{ globalService.CurrentLanguage =='Ar' ? (_issue.IssueGroupAr ?\r\n _issue.IssueGroupAr : (_issue.IssueGroupEn |translate)) : _issue.IssueGroupEn }}</span>\r\n \r\n </div>\r\n \r\n </div>\r\n \r\n </ng-container>\r\n \r\n <div class=\"col-sm-12 mb-3\" *ngIf=\"_issue.showSubGroup && !showChild && showsubChild\">\r\n <h6 class=\"\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToGroup(_issue)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ? selectedGroup?.IssueGroupAr :\r\n (selectedGroup?.IssueGroupEn |translate)) : selectedGroup?.IssueGroupEn }}\r\n \r\n </h6>\r\n </div>\r\n <ng-container *ngFor=\"let _sub of _issue.Issue\">\r\n <ng-container *ngIf=\"showsubChild && !showChild && _issue.showSubGroup\">\r\n \r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n \r\n <div class=\"Popup-boxes\" (click)=\"selectSubGroup(_sub)\">\r\n \r\n \r\n <span >{{globalService.CurrentLanguage =='Ar' ? (_sub.IssueAr ?\r\n _sub.IssueAr : (_sub.IssueEn |translate)) : _sub.IssueEn }}</span>\r\n \r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n \r\n \r\n \r\n\r\n \r\n </ng-container>\r\n </div>\r\n\r\n \r\n </ng-container> -->\r\n \r\n <ng-container *ngIf=\"isShowCreateRequest\">\r\n \r\n <div class=\"whole m-b-20 breadcrumbes\">\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr : (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}</span> > \r\n \r\n <ng-container *ngIf=\"selectedType.IssueGroup; else elseCategory\">\r\n \r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ? selectedGroup?.IssueGroupAr : (selectedGroup?.IssueGroupEn |translate)) : selectedGroup?.IssueGroupEn }}</span> > \r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedSubGroup?.IssueAr ? selectedSubGroup?.IssueAr : (selectedSubGroup?.IssueEn |translate)) : selectedSubGroup?.IssueEn }}</span> > \r\n \r\n </ng-container>\r\n <ng-template #elseCategory>\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedCategory?.CategoryIdAr ? selectedCategory?.CategoryIdAr : (selectedCategory?.CategoryIdEn |translate)) : selectedCategory?.CategoryIdEn }}</span> > \r\n </ng-template>\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectCaseItem.CaseIdAr ? selectCaseItem.CaseIdAr : (selectCaseItem.CaseIdEn |translate)) : selectCaseItem.CaseIdEn }}</span>\r\n </div>\r\n \r\n <app-support-request-create class=\"support_req_div\" *ngIf=\"CreateItemId\" \r\n [ViewFrom]=\"'Popup'\"\r\n \r\n [IssueType]=\"selectedType.IssueType\"\r\n [IssueTypeEn]=\"selectedType.IssueTypeEn\"\r\n [IssueTypeAr]=\"selectedType.IssueTypeAr\"\r\n \r\n [IssueGroup]=\"selectedGroup?.IssueGroup\"\r\n [IssueGroupEn]=\"selectedGroup?.IssueGroupEn\"\r\n [IssueGroupAr]=\"selectedGroup?.IssueGroupAr\"\r\n \r\n [IssueSubGroup]=\"selectedSubGroup?.Issue\" \r\n [IssueSubGroupEn]=\"selectedSubGroup?.IssueEn\" \r\n [IssueSubGroupAr]=\"selectedSubGroup?.IssueAr\" \r\n \r\n [Source]=\"Source\"\r\n [CreatedByUserType]=\"RequesterTypeId\"\r\n [Channel]=\"Channel\" \r\n [ChannelEn]=\"ChannelEn\" \r\n [ChannelAr]=\"ChannelAr\" \r\n [RequesterId]=\"RequesterId\"\r\n [RequesterIdEn]=\"RequesterTypeIdEn\"\r\n [RequestField]=\"RequesterField\"\r\n \r\n [Type]=\"'Create'\"\r\n [EntityTypeId]=\"CreateItemId\"\r\n (closeCreate)=\"closePopupCreateView($event.Type,$event.Data)\">\r\n </app-support-request-create>\r\n </ng-container>\r\n \r\n \r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"\" *ngIf=\"isCreate && !isShowCreateRequest\">\r\n <div class=\"step-fixed\" (click)=\"backToRequest()\" ></div>\r\n <ul class=\"steps\">\r\n <li>\r\n <!-- <h6> {{'Issue Type'|translate}}</h6> -->\r\n <div class=\"main_menu_brad\">\r\n \r\n <ng-container *ngFor=\"let _type of IssueTypeDDL\">\r\n <div class=\"main_menu_brad_inside clearfix\" [ngClass]=\"{'active': _type.showGroup || _type.showCategory}\">\r\n <i class=\"fa fa-caret-right\"></i>\r\n <span (click)=\"selectType(_type)\">{{ globalService.CurrentLanguage =='Ar' ? (_type.IssueTypeAr ? _type.IssueTypeAr\r\n : (_type.IssueTypeEn |translate)) : _type.IssueTypeEn }}</span>\r\n <div class=\"main_menu_brad_sub\" *ngIf=\"_type.showGroup || _type.showCategory\">\r\n <h6 class=\"m-b-10\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToType(_type)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr :\r\n (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}\r\n </h6>\r\n \r\n <ng-container *ngFor=\"let _issue of _type.IssueGroup\">\r\n <div class=\"main_menu_brad_inside clearfix\" [ngClass]=\"{'active': _issue.showSubGroup}\">\r\n <i class=\"fa fa-caret-right\"></i>\r\n <span (click)=\"selectGroup(_issue,_type)\">{{ globalService.CurrentLanguage =='Ar' ? (_issue.IssueGroupAr ?\r\n _issue.IssueGroupAr : (_issue.IssueGroupEn |translate)) : _issue.IssueGroupEn }}</span>\r\n <div class=\"main_menu_brad_sub\" *ngIf=\"_issue.showSubGroup\">\r\n <h6 class=\"m-b-10\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToGroup(_issue)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ? selectedGroup?.IssueGroupAr :\r\n (selectedGroup?.IssueGroupEn |translate)) : selectedGroup?.IssueGroupEn }}\r\n \r\n </h6>\r\n <ng-container *ngFor=\"let _sub of _issue.Issue\">\r\n <div class=\"main_menu_brad \">\r\n <div class=\"main_menu_brad_inside clearfix position-relative\">\r\n \r\n <span (click)=\"selectSubGroup(_sub)\">{{globalService.CurrentLanguage =='Ar' ? (_sub.IssueAr ?\r\n _sub.IssueAr : (_sub.IssueEn |translate)) : _sub.IssueEn }}</span>\r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n \r\n <ng-container *ngFor=\"let _cat of _type.Category\">\r\n <div class=\"main_menu_brad_inside clearfix\" [ngClass]=\"{'active': _cat.showCase}\">\r\n <i class=\"fa fa-caret-right\"></i>\r\n <span (click)=\"selectCategory(_cat,_type)\">\r\n {{ globalService.CurrentLanguage =='Ar' ? (_cat.CategoryIdAr ?\r\n _cat.CategoryIdAr : (_cat.CategoryIdEn |translate)) : _cat.CategoryIdEn }}</span>\r\n <div class=\"main_menu_brad_sub\" *ngIf=\"_cat.showCase\">\r\n <h6 class=\"m-b-10\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToCategory(_cat)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedCategory.CategoryIdAr ? selectedCategory.CategoryIdAr :\r\n (selectedCategory.CategoryIdEn |translate)) : selectedCategory.CategoryIdEn }}\r\n \r\n </h6>\r\n <ng-container *ngFor=\"let _case of _cat.Case\">\r\n <div class=\"main_menu_brad \">\r\n <div class=\"main_menu_brad_inside clearfix position-relative\">\r\n \r\n <span (click)=\"selectCase(_case)\">{{globalService.CurrentLanguage =='Ar' ? (_case.CaseIdAr ?\r\n _case.CaseIdAr : (_case.CaseIdEn |translate)) : _case.CaseIdEn }}</span>\r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n \r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n </div>\r\n </li>\r\n </ul>\r\n </div>\r\n \r\n \r\n </div>\r\n \r\n </div>\r\n <!-- <div class=\"pull-right m-r-10\">\r\n <button class=\"btn btn-outline btn-danger\" *ngIf=\"isDetails\" (click)=\"backToRequest()\">\r\n \r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}</button>\r\n </div> -->\r\n </div>\r\n \r\n \r\n <ng-container *ngIf=\"!isDetails\">\r\n \r\n <div class=\"whole m-b-20\">\r\n\r\n <div class=\"card-box \">\r\n <div class=\"header\">\r\n <h5 class=\"card-box-title m-0\">{{'Overview'| translate}}</h5>\r\n </div>\r\n <div class=\"body\">\r\n <div class=\"row\">\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span><i class=\"la la-ticket my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{TotalStatusCount}}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'Total Request'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span style=\"background: #fde3ff;color: #db32e8;\"><i class=\"la la-file my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{NewStatus }}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'New'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span style=\"background: #fff3ea;color: #ec8f48;\"><i\r\n class=\"la la-hourglass-half my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{InProgressStatusCount}}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'In Progress'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span style=\"background: #eafff1;color: #27b556;\"><i class=\"la la-check my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{ClosedStatusCount}}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'Closed'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n \r\n </div>\r\n \r\n <div class=\"whole\">\r\n\r\n <div class=\"pull-left w-50 p-r-10 p-l-10\">\r\n <input placeholder=\"{{'Search the CaseId here' | translate }}\" type=\"text\" class=\"w-100 serach_box pull-left\" [(ngModel)]=\"SearchBox\"\r\n (keyup)=\"searchData($event)\">\r\n </div>\r\n\r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseTemplate\" [items]=\"FieldListDDL\" [placeholder]=\"'\u0646\u0648\u0639'\" bindLabel=\"FieldAr\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n\r\n <ng-template #elseTemplate>\r\n <ng-select [items]=\"FieldListDDL\" [placeholder]=\"'Sort'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n <ng-container *ngIf=\"CurrentSortingField\">\r\n <span class=\"pull-left sort-icon\" style=\" font-size: 20px;\">\r\n <i class=\"la la-sort-amount-asc\" *ngIf=\"SortingField.direction=='0'\" (click)=\"SortDirection(1)\"></i>\r\n <i class=\"la la-sort-amount-desc\" *ngIf=\"SortingField.direction=='1'\" (click)=\"SortDirection(0)\"></i>\r\n </span>\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"dropdown status_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseEng\" (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'\u062D\u0627\u0644\u0629'\" bindLabel=\"NameAr\" bindValue=\"Name\">\r\n </ng-select>\r\n <ng-template #elseEng>\r\n <ng-select (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'Status'\" bindLabel=\"Name\" bindValue=\"Name\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n\r\n <!-- <div class=\"m-r-10 pull-left status_dropdown_div\">\r\n <div class=\"dropdown status_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseEng\" (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'\u062D\u0627\u0644\u0629'\" bindLabel=\"NameAr\" bindValue=\"Name\">\r\n </ng-select>\r\n <ng-template #elseEng>\r\n <ng-select (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'Status'\" bindLabel=\"Name\" bindValue=\"Name\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n </div>\r\n <div class=\"pull-right\">\r\n \r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseTemplate\" [items]=\"FieldListDDL\" [placeholder]=\"'\u0646\u0648\u0639'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n \r\n <ng-template #elseTemplate>\r\n <ng-select [items]=\"FieldListDDL\" [placeholder]=\"'Sort'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n <ng-container *ngIf=\"CurrentSortingField\">\r\n <span class=\"pull-left sort-icon\" style=\" font-size: 20px;\">\r\n <i class=\"la la-sort-amount-asc\" *ngIf=\"SortingField.direction=='0'\" (click)=\"SortDirection(1)\"></i>\r\n <i class=\"la la-sort-amount-desc\" *ngIf=\"SortingField.direction=='1'\" (click)=\"SortDirection(0)\"></i>\r\n </span>\r\n </ng-container>\r\n </div>\r\n \r\n <input placeholder=\"{{'Search the CaseId here' | translate }}\" type=\"text\" class=\"serach_box pull-left\" [(ngModel)]=\"SearchBox\"\r\n (keyup)=\"searchData($event)\">\r\n \r\n </div> -->\r\n <!-- <div class=\"view-type pull-left m-l-10 m-r-10\">\r\n <span class=\"themecolor m-r-5\" style=\"font-size: 22px;\"><i class=\"la la-id-card-o\"></i></span>\r\n <span class=\"m-r-5\" style=\"font-size: 22px;\"><i class=\"la la-table\"></i></span>\r\n </div> -->\r\n \r\n \r\n \r\n </div>\r\n \r\n <div class=\"body whole\">\r\n <div class=\"lists\" *ngFor=\"let item of supportRequestData\">\r\n \r\n <div class=\"col-sm-12 user-tag p-0\">\r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"list-user-img\" src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\"\r\n >\r\n </div>\r\n <div class=\"header\">\r\n <div class=\"\">{{item.CreatedBy}}</div>\r\n <!-- <div class=\"user-stage\" [ngClass]=\"item?.StatusIdEn\">\r\n <span>{{item?.StatusIdEn |translate}}\r\n <ng-container *ngIf=\"item.StatusIdEn == null\">{{'New'|translate}}</ng-container>\r\n </span> \r\n </div> -->\r\n <span><span class=\"user-stage\">{{globalService.CurrentLanguage =='Ar' ? (item.CaseTypeIdAr ? item.CaseTypeIdAr : (item.CaseTypeIdEn |translate)) : item.CaseTypeIdEn}}</span></span>\r\n </div>\r\n\r\n \r\n \r\n\r\n <div class=\"addedDate\">\r\n <div class=\"pull-left\">{{item.CreatedDatetime | date}} </div>\r\n </div>\r\n </div>\r\n\r\n <!-- <div class=\"assign_to_div\">\r\n <p>{{'ID' | translate}}</p>\r\n <span>#{{item?.CaseId}}</span>\r\n </div> -->\r\n \r\n <div class=\"content col-sm-12\">\r\n <h4 class=\"themecolor\"><u class=\"m-r-15\" (click)=\"openDetailsPopup(item)\">#{{item?.CaseId}}</u> {{item.Subject}}</h4>\r\n <!-- <span ><i class=\"text-bold\">Assigned To </i>: {{item.AssignedTo}}</span> -->\r\n \r\n <p>{{item.Description}}</p>\r\n <!-- <span><i class=\"text-bold\">Assigned Date </i>: {{item.AssignedDate | date}}</span>\r\n <span><i class=\"text-bold\">DeadLine Date </i>: {{item.DeadLineDateTime | date}}</span> -->\r\n <!-- <p>Steps:1.Login to Bugasura with valid user.2.Select respective project and open it 3.In issues list search enter text for search and hit enter button4.</p> -->\r\n </div>\r\n \r\n \r\n <!-- <div class=\"req_id\">\r\n <label>{{item.CaseTypeIdEn}}</label>\r\n <p>{{item.CaseTypeId}}</p>\r\n <span><span class=\"text-bold\">{{globalService.CurrentLanguage =='Ar' ? (item.CaseTypeIdAr ? item.CaseTypeIdAr : (item.CaseTypeIdEn |translate)) : item.CaseTypeIdEn}}</span></span>\r\n \r\n <span><i class=\"text-bold\"> {{'DeadLine Date' | translate}} </i>: {{item.DeadLineDateTime | date}}</span>\r\n </div> -->\r\n\r\n <div class=\"prioritys\">\r\n \r\n <span class=\"priority\" [ngClass]=\"item?.PriorityEn\">{{globalService.CurrentLanguage =='Ar' ? (item?.PriorityAr ? item?.PriorityAr : (item?.PriorityEn |translate)) : item?.PriorityEn }}\r\n <ng-container *ngIf=\"item.PriorityEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <div class=\"status\" [ngClass]=\"item?.StatusIdEn\">\r\n <span>{{item?.StatusIdEn |translate}}\r\n <ng-container *ngIf=\"item.StatusIdEn == null\">{{'New'|translate}}</ng-container>\r\n </span> \r\n </div>\r\n \r\n\r\n </div>\r\n\r\n <!-- <div class=\"assign_to_div\">\r\n <p>{{'Assigned To' | translate}}</p>\r\n <i class=\"las la-user-circle\" title=\"{{item.AssignedTo }}\"></i>\r\n </div> -->\r\n <div class=\"comments\">\r\n <div>\r\n <i class=\"fa fa-comments-o\" aria-hidden=\"true\"></i> \r\n <span>{{item.CommentsCount}}</span>\r\n </div>\r\n </div>\r\n </div>\r\n <app-pagination *ngIf=\"!IsClientPagination\" [totalCount]=\"totalRecordCount\" [pageCount]=\"pageCount\"\r\n [currentPage]=\"pageNo\" [pageSize]=\"pageSize\" [gridSearchType]=\"GridSearchType\"\r\n (getPaginationListData)=\"getPaginationListData($event.pageCount,$event.pageSize)\">\r\n </app-pagination>\r\n </div>\r\n </ng-container>\r\n \r\n \r\n <ng-container *ngIf=\"isDetails && detailsRecId\">\r\n \r\n <app-support-request-details [ViewFrom]=\"'Popup'\" [RecId]=\"detailsRecId\" [EntityTypeRecId]=\"detailsEntityTypeRecId\">\r\n </app-support-request-details>\r\n \r\n </ng-container>\r\n\r\n \r\n </div>\r\n</ng-template>\r\n\r\n\r\n</ng-container>\r\n" }]
11499
+ args: [{ selector: 'app-request-flow', template: "<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/line-awesome/1.3.0/line-awesome/css/line-awesome.min.css\">\r\n<link rel=\"stylesheet\" href=\"https://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css\">\r\n\r\n\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/styles.css\">\r\n<link rel=\"stylesheet\" href=\"https://test.arco.sa/CustomerPortal/IndividualPortalTickets/SupportRequest/supportstyles.css\">\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/assets/css/main.css\">\r\n<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css\">\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/assets/css/bootstrap.min.css\">\r\n\r\n<link rel=\"stylesheet\" href=\"https://erp.arco.sa/SupportRequest/assets/css/font-awesome.min.css\">\r\n\r\n<link rel=\"stylesheet\" href=\"https://unpkg.com/ngx-bootstrap/datepicker/bs-datepicker.css\">\r\n\r\n<link rel=\"stylesheet\" href=\"https://unpkg.com/@angular/material@11.2.13/prebuilt-themes/indigo-pink.css\">\r\n<!-- <div class=\"data-loader\" [ngClass]=\"{'show_loader': globalService.dataLoader == true}\">\r\n <div class=\"loading\">\r\n <div class=\"dataloadings\">\r\n </div>\r\n </div>\r\n</div> -->\r\n<ng-container *ngIf=\"globalService.dataLoader\">\r\n <div class=\"page-loader-wrapper active\">\r\n <div class=\"loader\">\r\n <div class=\"m-t-30\"><img src=\"https://test.arco.sa/CustomerPortal/IndividualPortalTickets/assets/images/arco-icon-96x96.png\" width=\"48\" height=\"48\" alt=\"ARCO\"></div>\r\n <p>Please wait...</p>\r\n </div>\r\n </div>\r\n</ng-container>\r\n<ng-container *ngIf=\"viewHtml\">\r\n\r\n<ng-container *ngIf=\"PageType=='SelfService';else caseTemplate\" >\r\n\r\n <app-self-service-flow [RequesterTypeId]=\"RequesterTypeId\" [RequesterTypeIdEn]=\"RequesterTypeIdEn\"\r\n [RequesterId]=\"RequesterId\" [Source]=\"Source\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\" [ChannelAr]=\"ChannelAr\"\r\n [RequestField]=\"RequesterField\" [ContractList]=\"DDContractList\" [SelectedContract]=\"SelectedContract\" ></app-self-service-flow>\r\n\r\n</ng-container>\r\n\r\n<ng-template #caseTemplate>\r\n\r\n <div class=\"req_page whole\" [ngClass]=\"{'lang_Arabic': globalService.CurrentLanguage=='Ar'}\">\r\n\r\n <div *ngIf=\"isDetails\">\r\n <span class=\"back-arrow\" (click)=\"backToRequest()\">\r\n <i class=\"fa fa-arrow-left\"></i>\r\n {{'Back'|translate}}\r\n </span>\r\n </div>\r\n\r\n <div class=\"whole m-t-10 m-b-20 clearfix\">\r\n \r\n <div class=\"pull-left\">\r\n <h2 class=\"heading pull-left\">{{PageType|translate}}\r\n <span *ngIf=\"isDetails && CaseId\"> - #{{CaseId}}</span>\r\n </h2>\r\n \r\n <ng-container *ngIf=\"false\">\r\n \r\n <div class=\"pull-left create_req hierarchy-view\">\r\n <button class=\"add_req_btn\" *ngIf=\"!isShowCreateRequest && !isDetails\" (click)=\"openIssueType()\">\r\n {{'Create New'|translate}}\r\n <i class=\"fa fa-plus\" style=\"float: right;margin: 4px 1px 2px 8px;\"></i>\r\n </button>\r\n\r\n <div class=\"modal fade show\" *ngIf=\"displayPopUp\" id=\"request-create-popup\" tabindex=\"-1\" role=\"dialog\" (click)=\"ClickedOut($event)\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n <div class=\"modal-dialog\" role=\"document\" [ngClass]=\"{'modal-sm':dropdownmodal,'modal-lg':!dropdownmodal}\">\r\n <div class=\"modal-content request-modal\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\">{{'Create' | translate}} {{globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr : (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}</h5>\r\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"closeModel()\">\r\n <span aria-hidden=\"true\">&times;</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\" *ngIf=\"IssueTypeDDL.length > 0\">\r\n <div class=\"\" *ngIf=\"dropdownmodal\">\r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'Group'|translate}}</label>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage =='Ar'\" [items]=\"IssueTypeDDL[0].IssueGroup\" [placeholder]=\"'Group'|translate\" bindLabel=\"IssueGroupAr\" bindValue=\"IssueGroup\"\r\n (change)=\"selectGroup($event,IssueTypeDDL[0])\" >\r\n </ng-select>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage !='Ar'\" [items]=\"IssueTypeDDL[0].IssueGroup\" [placeholder]=\"'Group'|translate\" bindLabel=\"IssueGroupEn\" bindValue=\"IssueGroup\"\r\n (change)=\"selectGroup($event,IssueTypeDDL[0])\" >\r\n </ng-select>\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label for=\"\" class=\"\">{{'SubGroup'|translate}}</label>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage =='Ar'\" [items]=\"dropdownIssuse\" [placeholder]=\"'SubGroup'|translate\" bindLabel=\"IssueAr\" bindValue=\"Issue\"\r\n (change)=\"selectSubGroup($event,true)\">\r\n </ng-select>\r\n <ng-select *ngIf=\"globalService.CurrentLanguage !='Ar'\" [items]=\"dropdownIssuse\" [placeholder]=\"'SubGroup'|translate\" bindLabel=\"IssueEn\" bindValue=\"Issue\"\r\n (change)=\"selectSubGroup($event,true)\">\r\n </ng-select>\r\n </div>\r\n <div class=\"mb-3 text-center\">\r\n <button class=\"btn btn-small m-l-5 m-r-5 dropdownbtn\" [disabled]=\"!selectedSubGroup\" (click)=\"selectSubGroup(selectedSubGroup)\">\r\n {{'Next'|translate}}\r\n </button>\r\n </div>\r\n </div>\r\n \r\n \r\n <!-- <ng-container *ngFor=\"let _type of IssueTypeDDL\">\r\n \r\n \r\n \r\n <div class=\"row\">\r\n \r\n \r\n \r\n <ng-container *ngFor=\"let _issue of _type.IssueGroup\">\r\n <ng-container *ngIf=\"showChild\">\r\n \r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"Popup-boxes\" (click)=\"selectGroup(_issue,_type)\" [ngClass]=\"{'active': _issue.showSubGroup}\">\r\n \r\n \r\n <span >{{ globalService.CurrentLanguage =='Ar' ? (_issue.IssueGroupAr ?\r\n _issue.IssueGroupAr : (_issue.IssueGroupEn |translate)) : _issue.IssueGroupEn }}</span>\r\n \r\n </div>\r\n \r\n </div>\r\n \r\n </ng-container>\r\n \r\n <div class=\"col-sm-12 mb-3\" *ngIf=\"_issue.showSubGroup && !showChild && showsubChild\">\r\n <h6 class=\"\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToGroup(_issue)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ? selectedGroup?.IssueGroupAr :\r\n (selectedGroup?.IssueGroupEn |translate)) : selectedGroup?.IssueGroupEn }}\r\n \r\n </h6>\r\n </div>\r\n <ng-container *ngFor=\"let _sub of _issue.Issue\">\r\n <ng-container *ngIf=\"showsubChild && !showChild && _issue.showSubGroup\">\r\n \r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n \r\n <div class=\"Popup-boxes\" (click)=\"selectSubGroup(_sub)\">\r\n \r\n \r\n <span >{{globalService.CurrentLanguage =='Ar' ? (_sub.IssueAr ?\r\n _sub.IssueAr : (_sub.IssueEn |translate)) : _sub.IssueEn }}</span>\r\n \r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n \r\n \r\n \r\n\r\n \r\n </ng-container>\r\n </div>\r\n\r\n \r\n </ng-container> -->\r\n \r\n <ng-container *ngIf=\"isShowCreateRequest\">\r\n \r\n <div class=\"whole m-b-20 breadcrumbes\">\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr : (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}</span> > \r\n \r\n <ng-container *ngIf=\"selectedType.IssueGroup; else elseCategory\">\r\n \r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ? selectedGroup?.IssueGroupAr : (selectedGroup?.IssueGroupEn |translate)) : selectedGroup?.IssueGroupEn }}</span> > \r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedSubGroup?.IssueAr ? selectedSubGroup?.IssueAr : (selectedSubGroup?.IssueEn |translate)) : selectedSubGroup?.IssueEn }}</span> > \r\n \r\n </ng-container>\r\n <ng-template #elseCategory>\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectedCategory?.CategoryIdAr ? selectedCategory?.CategoryIdAr : (selectedCategory?.CategoryIdEn |translate)) : selectedCategory?.CategoryIdEn }}</span> > \r\n </ng-template>\r\n <span>{{globalService.CurrentLanguage =='Ar' ? (selectCaseItem.CaseIdAr ? selectCaseItem.CaseIdAr : (selectCaseItem.CaseIdEn |translate)) : selectCaseItem.CaseIdEn }}</span>\r\n </div>\r\n \r\n <app-support-request-create class=\"support_req_div\" *ngIf=\"CreateItemId\" \r\n [ViewFrom]=\"'Popup'\"\r\n \r\n [IssueType]=\"selectedType.IssueType\"\r\n [IssueTypeEn]=\"selectedType.IssueTypeEn\"\r\n [IssueTypeAr]=\"selectedType.IssueTypeAr\"\r\n \r\n [IssueGroup]=\"selectedGroup?.IssueGroup\"\r\n [IssueGroupEn]=\"selectedGroup?.IssueGroupEn\"\r\n [IssueGroupAr]=\"selectedGroup?.IssueGroupAr\"\r\n \r\n [IssueSubGroup]=\"selectedSubGroup?.Issue\" \r\n [IssueSubGroupEn]=\"selectedSubGroup?.IssueEn\" \r\n [IssueSubGroupAr]=\"selectedSubGroup?.IssueAr\" \r\n \r\n [Source]=\"Source\"\r\n [CreatedByUserType]=\"RequesterTypeId\"\r\n [Channel]=\"Channel\" \r\n [ChannelEn]=\"ChannelEn\" \r\n [ChannelAr]=\"ChannelAr\" \r\n [RequesterId]=\"RequesterId\"\r\n [RequesterIdEn]=\"RequesterTypeIdEn\"\r\n [RequestField]=\"RequesterField\"\r\n \r\n [Type]=\"'Create'\"\r\n [EntityTypeId]=\"CreateItemId\"\r\n (closeCreate)=\"closePopupCreateView($event.Type,$event.Data)\">\r\n </app-support-request-create>\r\n </ng-container>\r\n \r\n \r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"\" *ngIf=\"isCreate && !isShowCreateRequest\">\r\n <div class=\"step-fixed\" (click)=\"backToRequest()\" ></div>\r\n <ul class=\"steps\">\r\n <li>\r\n <!-- <h6> {{'Issue Type'|translate}}</h6> -->\r\n <div class=\"main_menu_brad\">\r\n \r\n <ng-container *ngFor=\"let _type of IssueTypeDDL\">\r\n <div class=\"main_menu_brad_inside clearfix\" [ngClass]=\"{'active': _type.showGroup || _type.showCategory}\">\r\n <i class=\"fa fa-caret-right\"></i>\r\n <span (click)=\"selectType(_type)\">{{ globalService.CurrentLanguage =='Ar' ? (_type.IssueTypeAr ? _type.IssueTypeAr\r\n : (_type.IssueTypeEn |translate)) : _type.IssueTypeEn }}</span>\r\n <div class=\"main_menu_brad_sub\" *ngIf=\"_type.showGroup || _type.showCategory\">\r\n <h6 class=\"m-b-10\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToType(_type)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedType.IssueTypeAr ? selectedType.IssueTypeAr :\r\n (selectedType.IssueTypeEn |translate)) : selectedType.IssueTypeEn }}\r\n </h6>\r\n \r\n <ng-container *ngFor=\"let _issue of _type.IssueGroup\">\r\n <div class=\"main_menu_brad_inside clearfix\" [ngClass]=\"{'active': _issue.showSubGroup}\">\r\n <i class=\"fa fa-caret-right\"></i>\r\n <span (click)=\"selectGroup(_issue,_type)\">{{ globalService.CurrentLanguage =='Ar' ? (_issue.IssueGroupAr ?\r\n _issue.IssueGroupAr : (_issue.IssueGroupEn |translate)) : _issue.IssueGroupEn }}</span>\r\n <div class=\"main_menu_brad_sub\" *ngIf=\"_issue.showSubGroup\">\r\n <h6 class=\"m-b-10\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToGroup(_issue)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedGroup?.IssueGroupAr ? selectedGroup?.IssueGroupAr :\r\n (selectedGroup?.IssueGroupEn |translate)) : selectedGroup?.IssueGroupEn }}\r\n \r\n </h6>\r\n <ng-container *ngFor=\"let _sub of _issue.Issue\">\r\n <div class=\"main_menu_brad \">\r\n <div class=\"main_menu_brad_inside clearfix position-relative\">\r\n \r\n <span (click)=\"selectSubGroup(_sub)\">{{globalService.CurrentLanguage =='Ar' ? (_sub.IssueAr ?\r\n _sub.IssueAr : (_sub.IssueEn |translate)) : _sub.IssueEn }}</span>\r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n \r\n <ng-container *ngFor=\"let _cat of _type.Category\">\r\n <div class=\"main_menu_brad_inside clearfix\" [ngClass]=\"{'active': _cat.showCase}\">\r\n <i class=\"fa fa-caret-right\"></i>\r\n <span (click)=\"selectCategory(_cat,_type)\">\r\n {{ globalService.CurrentLanguage =='Ar' ? (_cat.CategoryIdAr ?\r\n _cat.CategoryIdAr : (_cat.CategoryIdEn |translate)) : _cat.CategoryIdEn }}</span>\r\n <div class=\"main_menu_brad_sub\" *ngIf=\"_cat.showCase\">\r\n <h6 class=\"m-b-10\">\r\n <i class=\"fa fa-arrow-left\" style=\"margin-right: 10px;\" (click)=\"backToCategory(_cat)\"></i>\r\n {{ globalService.CurrentLanguage =='Ar' ? (selectedCategory.CategoryIdAr ? selectedCategory.CategoryIdAr :\r\n (selectedCategory.CategoryIdEn |translate)) : selectedCategory.CategoryIdEn }}\r\n \r\n </h6>\r\n <ng-container *ngFor=\"let _case of _cat.Case\">\r\n <div class=\"main_menu_brad \">\r\n <div class=\"main_menu_brad_inside clearfix position-relative\">\r\n \r\n <span (click)=\"selectCase(_case)\">{{globalService.CurrentLanguage =='Ar' ? (_case.CaseIdAr ?\r\n _case.CaseIdAr : (_case.CaseIdEn |translate)) : _case.CaseIdEn }}</span>\r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n \r\n \r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n </div>\r\n </li>\r\n </ul>\r\n </div>\r\n \r\n \r\n </div>\r\n </ng-container>\r\n <div class=\"pull-left create_req hierarchy-view\">\r\n <button class=\"add_req_btn\" *ngIf=\"!isShowCreateRequest && !isDetails\" (click)=\"showCreatePopup()\">\r\n {{'Create New'|translate}}\r\n <i class=\"fa fa-plus\" style=\"float: right;margin: 4px 1px 2px 8px;\"></i>\r\n </button>\r\n\r\n <ng-container *ngIf=\"IsShowCreatePopup\">\r\n <lib-create-form [RequesterTypeId]=\"RequesterTypeId\" [PageType]=\"PageType\" [Source]=\"Source\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\"\r\n [ChannelAr]=\"ChannelAr\" [RequesterId]=\"RequesterId\" [RequesterIdEn]=\"RequesterTypeIdEn\"\r\n [RequestField]=\"RequesterField\" (closeCreateModel)=\"hideCreatePopup($event.IsClose,$event.Data,$event.IsReload)\"></lib-create-form>\r\n </ng-container>\r\n \r\n </div>\r\n </div>\r\n <!-- <div class=\"pull-right m-r-10\">\r\n <button class=\"btn btn-outline btn-danger\" *ngIf=\"isDetails\" (click)=\"backToRequest()\">\r\n \r\n <i class=\"la la-arrow-left\"></i>\r\n {{'Back'|translate}}</button>\r\n </div> -->\r\n </div>\r\n \r\n \r\n <ng-container *ngIf=\"!isDetails\">\r\n \r\n <div class=\"whole m-b-20\">\r\n\r\n <div class=\"card-box \">\r\n <div class=\"header\">\r\n <h5 class=\"card-box-title m-0\">{{'Overview'| translate}}</h5>\r\n </div>\r\n <div class=\"body\">\r\n <div class=\"row\">\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span><i class=\"la la-ticket my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{TotalStatusCount}}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'Total Request'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span style=\"background: #fde3ff;color: #db32e8;\"><i class=\"la la-file my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{NewStatus }}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'New'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span style=\"background: #fff3ea;color: #ec8f48;\"><i\r\n class=\"la la-hourglass-half my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{InProgressStatusCount}}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'In Progress'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col col-12 col-sm-6 col-lg-3\">\r\n <div class=\"boxes\">\r\n <div class=\"left\"><span style=\"background: #eafff1;color: #27b556;\"><i class=\"la la-check my-custom-icon\"></i></span></div>\r\n <div class=\"right\">\r\n <h3>{{ClosedStatusCount}}</h3>\r\n <p style=\"text-transform: uppercase;\">{{'Closed'|translate}}</p>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n \r\n </div>\r\n \r\n <div class=\"whole mb-3\">\r\n\r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 150px;\">\r\n <ng-multiselect-dropdown [placeholder]=\"'select Contract'|translate\" [settings]=\"dropdownSettings\"\r\n [data]=\"DDContractList\" [(ngModel)]=\"CurrentSelectedContract\" (onSelect)=\"onSelectContractListDropdown($event)\"\r\n (onSelectAll)=\"onSelectAllContractListDropdown($event)\" (onDeSelect)=\"onSelectContractListDropdown($event)\"\r\n (onDeSelectAll)=\"onDeSelectAllContractListDropdown()\">\r\n >\r\n </ng-multiselect-dropdown>\r\n <!-- <ng-select [items]=\"DDContractList\" [placeholder]=\"'ContractList'\"\r\n bindLabel=\"ContractId\" bindValue=\"ContractId\" [(ngModel)]=\"SelectedContract\" (change)=\"getListDatas(Searchcriteria)\">\r\n </ng-select> -->\r\n </div>\r\n </div>\r\n\r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseTemplate\" [items]=\"FieldListDDL\" [placeholder]=\"'\u0646\u0648\u0639'\" bindLabel=\"FieldAr\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n\r\n <ng-template #elseTemplate>\r\n <ng-select [items]=\"FieldListDDL\" [placeholder]=\"'Sort'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n <ng-container *ngIf=\"CurrentSortingField\">\r\n <span class=\"pull-left sort-icon\" style=\" font-size: 20px;\">\r\n <i class=\"la la-sort-amount-asc\" *ngIf=\"SortingField.direction=='0'\" (click)=\"SortDirection(1)\"></i>\r\n <i class=\"la la-sort-amount-desc\" *ngIf=\"SortingField.direction=='1'\" (click)=\"SortDirection(0)\"></i>\r\n </span>\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"dropdown status_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseEng\" (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'\u062D\u0627\u0644\u0629'\" bindLabel=\"NameAr\" bindValue=\"Name\">\r\n </ng-select>\r\n <ng-template #elseEng>\r\n <ng-select (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'Status'\" bindLabel=\"Name\" bindValue=\"Name\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n\r\n <div class=\"m-r-10 pull-left sort_div\" style=\"margin: 0px 5px;\">\r\n <input style=\"min-width: 250px !important;\" placeholder=\"{{'Search the CaseId here' | translate }}\" type=\"text\" class=\"w-100 serach_box pull-left\" [(ngModel)]=\"SearchBox\"\r\n (keyup)=\"searchData($event)\">\r\n </div>\r\n <a href=\"javascript:void(0)\" class=\"themecolor action-btn m-r-5\" style=\"color: #000;font-size: 20px;\"\r\n *ngFor=\"let item of viewTypes; let i = index\" [ngClass]=\"{'themecolor':selectedIndex == item.id}\">\r\n <span [class.active]=\"selectedIndex === item.id\" (click)=\"viewType(item, i)\">\r\n <i class=\"la {{item.class}}\"></i>\r\n </span>\r\n </a>\r\n <!-- <div class=\"m-r-10 pull-left status_dropdown_div\">\r\n <div class=\"dropdown status_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseEng\" (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'\u062D\u0627\u0644\u0629'\" bindLabel=\"NameAr\" bindValue=\"Name\">\r\n </ng-select>\r\n <ng-template #elseEng>\r\n <ng-select (change)=\"filterStatus()\"[(ngModel)]=\"StatusListValue\" [items]=\"StatusListDDL\" [placeholder]=\"'Status'\" bindLabel=\"Name\" bindValue=\"Name\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n </div>\r\n <div class=\"pull-right\">\r\n \r\n <div class=\"m-r-10 pull-left sort_div\">\r\n <div class=\"dropdown sort_dropdown pull-left\" style=\"min-width: 150px;\">\r\n \r\n <ng-select *ngIf=\"Language == 'Ar' else elseTemplate\" [items]=\"FieldListDDL\" [placeholder]=\"'\u0646\u0648\u0639'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n \r\n <ng-template #elseTemplate>\r\n <ng-select [items]=\"FieldListDDL\" [placeholder]=\"'Sort'\" bindLabel=\"Name\" bindValue=\"Field\"\r\n (change)=\"SortGridData($event)\">\r\n </ng-select>\r\n </ng-template>\r\n </div>\r\n <ng-container *ngIf=\"CurrentSortingField\">\r\n <span class=\"pull-left sort-icon\" style=\" font-size: 20px;\">\r\n <i class=\"la la-sort-amount-asc\" *ngIf=\"SortingField.direction=='0'\" (click)=\"SortDirection(1)\"></i>\r\n <i class=\"la la-sort-amount-desc\" *ngIf=\"SortingField.direction=='1'\" (click)=\"SortDirection(0)\"></i>\r\n </span>\r\n </ng-container>\r\n </div>\r\n \r\n <input placeholder=\"{{'Search the CaseId here' | translate }}\" type=\"text\" class=\"serach_box pull-left\" [(ngModel)]=\"SearchBox\"\r\n (keyup)=\"searchData($event)\">\r\n \r\n </div> -->\r\n <!-- <div class=\"view-type pull-left m-l-10 m-r-10\">\r\n <span class=\"themecolor m-r-5\" style=\"font-size: 22px;\"><i class=\"la la-id-card-o\"></i></span>\r\n <span class=\"m-r-5\" style=\"font-size: 22px;\"><i class=\"la la-table\"></i></span>\r\n </div> -->\r\n \r\n \r\n \r\n </div>\r\n <div *ngIf=\"viewTypeData == 1\">\r\n <app-grid [columnDefs]=\"columnDefs\" [GridTitle]=\"pageTitle\" \r\n [selectMode]=\"selectMode\" [IsCreate]=\"false\" [IsDelete]=\"false\"\r\n [IsEdit]=\"false\" [grid]=\"1\" (goToDetails)=\"goDetails($event.data)\" (getPageList)=\"getListDatas($event.Criteria)\" (getGridCheckedData)=\"getgridCheckedData($event.gridData)\">\r\n </app-grid>\r\n </div>\r\n <div *ngIf=\"viewTypeData == 2\">\r\n <div class=\"body whole\">\r\n <div class=\"lists\" *ngFor=\"let item of supportRequestData\">\r\n \r\n <div class=\"col-sm-12 user-tag p-0\">\r\n <div class=\"list-img\">\r\n <!-- <i class=\"list-user la la-user\"></i> -->\r\n <img class=\"list-user-img\" src=\"https://cdn1.iconfinder.com/data/icons/people-cultures/512/_saudi_arabian_man-128.png\"\r\n >\r\n </div>\r\n <div class=\"header\">\r\n <div class=\"\">{{item.CreatedBy}}</div>\r\n <!-- <div class=\"user-stage\" [ngClass]=\"item?.StatusIdEn\">\r\n <span>{{item?.StatusIdEn |translate}}\r\n <ng-container *ngIf=\"item.StatusIdEn == null\">{{'New'|translate}}</ng-container>\r\n </span> \r\n </div> -->\r\n <span><span class=\"user-stage\">{{globalService.CurrentLanguage =='Ar' ? (item.CaseTypeIdAr ? item.CaseTypeIdAr : (item.CaseTypeIdEn |translate)) : item.CaseTypeIdEn}}</span></span>\r\n </div>\r\n\r\n \r\n \r\n\r\n <div class=\"addedDate\">\r\n <div class=\"pull-left\">{{item.CreatedDatetime | date}} </div>\r\n </div>\r\n </div>\r\n\r\n <!-- <div class=\"assign_to_div\">\r\n <p>{{'ID' | translate}}</p>\r\n <span>#{{item?.CaseId}}</span>\r\n </div> -->\r\n \r\n <div class=\"content col-sm-12\">\r\n <h4 class=\"themecolor\"><u class=\"m-r-15\" (click)=\"openDetailsPopup(item)\">#{{item?.CaseId}}</u> {{item.Subject}}</h4>\r\n <!-- <span ><i class=\"text-bold\">Assigned To </i>: {{item.AssignedTo}}</span> -->\r\n \r\n <p>{{item.Description}}</p>\r\n <!-- <span><i class=\"text-bold\">Assigned Date </i>: {{item.AssignedDate | date}}</span>\r\n <span><i class=\"text-bold\">DeadLine Date </i>: {{item.DeadLineDateTime | date}}</span> -->\r\n <!-- <p>Steps:1.Login to Bugasura with valid user.2.Select respective project and open it 3.In issues list search enter text for search and hit enter button4.</p> -->\r\n </div>\r\n \r\n \r\n <!-- <div class=\"req_id\">\r\n <label>{{item.CaseTypeIdEn}}</label>\r\n <p>{{item.CaseTypeId}}</p>\r\n <span><span class=\"text-bold\">{{globalService.CurrentLanguage =='Ar' ? (item.CaseTypeIdAr ? item.CaseTypeIdAr : (item.CaseTypeIdEn |translate)) : item.CaseTypeIdEn}}</span></span>\r\n \r\n <span><i class=\"text-bold\"> {{'DeadLine Date' | translate}} </i>: {{item.DeadLineDateTime | date}}</span>\r\n </div> -->\r\n\r\n <div class=\"prioritys\">\r\n \r\n <span class=\"priority\" [ngClass]=\"item?.PriorityEn\">{{globalService.CurrentLanguage =='Ar' ? (item?.PriorityAr ? item?.PriorityAr : (item?.PriorityEn |translate)) : item?.PriorityEn }}\r\n <ng-container *ngIf=\"item.PriorityEn == null\">{{'Medium'|translate}}</ng-container>\r\n </span>\r\n <div class=\"status\" [ngClass]=\"item?.StatusIdEn\">\r\n <span>{{item?.StatusIdEn |translate}}\r\n <ng-container *ngIf=\"item.StatusIdEn == null\">{{'New'|translate}}</ng-container>\r\n </span> \r\n </div>\r\n \r\n\r\n </div>\r\n\r\n <!-- <div class=\"assign_to_div\">\r\n <p>{{'Assigned To' | translate}}</p>\r\n <i class=\"las la-user-circle\" title=\"{{item.AssignedTo }}\"></i>\r\n </div> -->\r\n <div class=\"comments\">\r\n <div>\r\n <i class=\"fa fa-comments-o\" aria-hidden=\"true\"></i> \r\n <span>{{item.CommentsCount}}</span>\r\n </div>\r\n </div>\r\n </div>\r\n <app-pagination *ngIf=\"!IsClientPagination\" [totalCount]=\"totalRecordCount\" [pageCount]=\"pageCount\"\r\n [currentPage]=\"pageNo\" [pageSize]=\"pageSize\" [gridSearchType]=\"GridSearchType\"\r\n (getPaginationListData)=\"getPaginationListData($event.pageCount,$event.pageSize)\">\r\n </app-pagination>\r\n </div>\r\n </div>\r\n </ng-container>\r\n \r\n \r\n <ng-container *ngIf=\"isDetails && detailsRecId\">\r\n \r\n <app-support-request-details [PageType]=\"PageType\" [RequesterTypeId]=\"RequesterTypeId\" [Source]=\"Source\" [Channel]=\"Channel\" [ChannelEn]=\"ChannelEn\"\r\n [ChannelAr]=\"ChannelAr\" [RequesterId]=\"RequesterId\" [RequesterIdEn]=\"RequesterTypeIdEn\"\r\n [RequestField]=\"RequesterField\" [ViewFrom]=\"'Popup'\" [RecId]=\"detailsRecId\" [EntityTypeRecId]=\"detailsEntityTypeRecId\" (closeCreateModel)=\"hideCreatePopup($event.IsClose,$event.Data,$event.IsReload)\">\r\n </app-support-request-details>\r\n \r\n </ng-container>\r\n\r\n \r\n </div>\r\n</ng-template>\r\n\r\n\r\n</ng-container>\r\n" }]
10955
11500
  }], ctorParameters: function () {
10956
- return [{ type: SupportRequestService }, { type: i3.FormBuilder }, { type: EntityTypeSetupService }, { type: i2.Router }, { type: GlobalService }, { type: undefined, decorators: [{
11501
+ return [{ type: SupportRequestService }, { type: i3.FormBuilder }, { type: EntityTypeSetupService }, { type: i2.Router }, { type: GlobalService }, { type: GridServiceService }, { type: undefined, decorators: [{
10957
11502
  type: Inject,
10958
11503
  args: [DOCUMENT]
10959
11504
  }] }];
@@ -10981,6 +11526,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
10981
11526
  type: Input
10982
11527
  }], ChannelAr: [{
10983
11528
  type: Input
11529
+ }], ContractList: [{
11530
+ type: Input
11531
+ }], SelectedContract: [{
11532
+ type: Input
10984
11533
  }], GridSearchType: [{
10985
11534
  type: Input
10986
11535
  }], IsClientPagination: [{
@@ -10993,7 +11542,7 @@ class SupportRequestIndexComponent {
10993
11542
  }
10994
11543
  }
10995
11544
  SupportRequestIndexComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SupportRequestIndexComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
10996
- SupportRequestIndexComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: SupportRequestIndexComponent, selector: "app-support-request-index", ngImport: i0, template: "<div class=\"container\">\r\n <!-- <router-outlet></router-outlet> -->\r\n <app-request-flow></app-request-flow>\r\n</div>", styles: [""], dependencies: [{ kind: "component", type: RequestFlowComponent, selector: "app-request-flow", inputs: ["PageType", "RequesterTypeId", "RequesterTypeIdEn", "RequesterId", "RequesterField", "Language", "HostUrl", "Host", "Source", "Channel", "ChannelEn", "ChannelAr", "GridSearchType", "IsClientPagination"] }], encapsulation: i0.ViewEncapsulation.None });
11545
+ SupportRequestIndexComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: SupportRequestIndexComponent, selector: "app-support-request-index", ngImport: i0, template: "<div class=\"container\">\r\n <!-- <router-outlet></router-outlet> -->\r\n <app-request-flow></app-request-flow>\r\n</div>", styles: [""], dependencies: [{ kind: "component", type: RequestFlowComponent, selector: "app-request-flow", inputs: ["PageType", "RequesterTypeId", "RequesterTypeIdEn", "RequesterId", "RequesterField", "Language", "HostUrl", "Host", "Source", "Channel", "ChannelEn", "ChannelAr", "ContractList", "SelectedContract", "GridSearchType", "IsClientPagination"] }], encapsulation: i0.ViewEncapsulation.None });
10997
11546
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SupportRequestIndexComponent, decorators: [{
10998
11547
  type: Component,
10999
11548
  args: [{ selector: 'app-support-request-index', encapsulation: ViewEncapsulation.None, template: "<div class=\"container\">\r\n <!-- <router-outlet></router-outlet> -->\r\n <app-request-flow></app-request-flow>\r\n</div>" }]
@@ -11107,7 +11656,7 @@ class ActionComponent {
11107
11656
  }
11108
11657
  }
11109
11658
  ActionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: ActionComponent, deps: [{ token: i3.FormBuilder }, { token: EntityTypeSetupService }, { token: SupportRequestService }], target: i0.ɵɵFactoryTarget.Component });
11110
- ActionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: ActionComponent, selector: "app-action", ngImport: i0, template: "\r\n<div class=\"m-3\">\r\n <div class=\"row\">\r\n <div class=\"col-2\">\r\n </div>\r\n <div class=\"col-8 action-block\">\r\n <h4 class=\"text-center\">How can we help you ?</h4>\r\n <hr>\r\n <form [formGroup]=\"ActionForm\">\r\n <!-- <div class=\"form-group\">\r\n <label for=\"CategoryId\" style=\"font-size:large;\">Category:</label>\r\n <ng-select formControlName=\"CategoryId\" [items]=\"CategoryDDL\" bindLabel=\"Description\" \r\n bindValue=\"CategoryId\" (change)=\"getSubCategoryDDl()\">\r\n </ng-select>\r\n </div> -->\r\n <div class=\"form-group\">\r\n <label for=\"TicketGroupID\" style=\"font-size:large;\">Issue Group:</label>\r\n <ng-select formControlName=\"TicketGroupID\" [items]=\"IssueGroupDDL\" bindLabel=\"TicketGroupName\" \r\n bindValue=\"TicketGroupID\" (change)=\"getDropDownForIssueSubGroup()\">\r\n </ng-select>\r\n <div class=\"text-danger\">\r\n <small *ngIf=\"ActionForm.get('TicketGroupID')?.touched &&\r\n ActionForm.get('TicketGroupID')?.hasError('required')\" class=\"error-message\">required.</small>\r\n </div>\r\n </div>\r\n <div class=\"form-group\" *ngIf=\"TicketGroupID != null \">\r\n <label for=\"SubGroupID\" style=\"font-size:large;\">Issue SubGroup:</label>\r\n <ng-select formControlName=\"SubGroupID\" [items]=\"IssueSubGroupDDL\" bindLabel=\"SubGroupName\" \r\n bindValue=\"SubGroupID\" (change)=\"getInstruction()\">\r\n </ng-select>\r\n <div class=\"text-danger\">\r\n <small *ngIf=\"ActionForm.get('SubGroupID')?.touched &&\r\n ActionForm.get('SubGroupID')?.hasError('required')\" class=\"error-message\">required.</small>\r\n </div>\r\n </div>\r\n\r\n <div class=\"form-group whole\" *ngIf=\"TicketGroupID != null && SubGroupID != null\">\r\n <label for=\"SubGroupID\" style=\"font-size:large;\">Instructions:</label>\r\n <!-- <div id=\"accordion\" *ngFor=\" let item of InstructionList; let i = index;\">\r\n <div class=\"card\">\r\n <div class=\"card-header\" [id]=\"item.RecId+i\">\r\n <h5 class=\"mb-0\">\r\n <button class=\"btn btn-link\" (click)=\"changeTab(item.RecId)\" data-toggle=\"collapse\" [attr.data-target]=\"'#'+item.RecId\" aria-controls=\"collapseOne\">\r\n {{item?.Question+ '?'}}\r\n </button>\r\n </h5>\r\n </div>\r\n \r\n <div [id]=\"item.RecId\" class=\"collapse\" [ngClass]=\"{'show':item.RecId== CurrentId}\" aria-labelledby=\"headingOne\" data-parent=\"#accordion\">\r\n <div class=\"card-body\">\r\n {{item?.Answer}}\r\n </div>\r\n </div>\r\n </div>\r\n </div> -->\r\n\r\n <div class=\"qsntns_answrs\" *ngFor=\" let item of InstructionList; let i = index;\">\r\n <a class=\"has-arrow menus_item\" data-toggle=\"collapse\" href=\"#col{{item.RecId}}\">\r\n <i class=\"la la-angle-down\" style=\"font-size: 20px;\"></i>\r\n <span> {{item?.Question+ '?'}}</span>\r\n </a>\r\n \r\n <ul class=\"collapse\" id=\"col{{item.RecId}}\">\r\n <p> {{item?.Answer}}</p>\r\n </ul>\r\n </div>\r\n </div>\r\n <!-- <div class=\"form-group\" *ngIf=\"TicketGroupID != null && SubGroupID != null\">\r\n <label for=\"SubGroupID\" style=\"font-size:large;\">Case Type:</label>\r\n <ng-select formControlName=\"CaseType\" [items]=\"CaseTypeList\" bindLabel=\"CaseTypeIdEn\" \r\n bindValue=\"CaseTypeId\">\r\n </ng-select>\r\n </div> -->\r\n <button *ngIf=\"SelectedCaseTypeId != null && SelectedCaseTypeId != 0 && displayPopupCreateView != true && SubGroupID != null\" (click)=\"openPopupCreatePage()\" type=\"button\" class=\"btn btn-primary btn-lg btn-block\">Create Case</button>\r\n </form>\r\n\r\n <!-- <div class=\"modal fade show\" *ngIf=\"CreateItemId\" [ngClass]=\"{'showPop':displayPopupCreateView}\" tabindex=\"-1\"\r\nrole=\"dialog\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n<div class=\"modal-dialog modal-lg\" style=\"width: 95%; max-width: 95%;\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\" id=\"exampleModalLabel\"></h5>\r\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"closePopupCreateView()\">\r\n <span aria-hidden=\"true\">&times;</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\"> -->\r\n <!-- [ViewFrom]=\"'Popup'\" -->\r\n\r\n <app-support-request-create [ViewFrom]=\"'Popup'\" *ngIf=\"displayPopupCreateView && CreateItemId &&SelectedCaseTypeId\" [Type]=\"'Create'\" [EntityTypeId]=\"CreateItemId\"\r\n (closeCreate)=\"closePopupCreateView($event.Type)\"></app-support-request-create>\r\n\r\n\r\n<!-- Modal -->\r\n<div class=\"modal fade show\"[ngClass]=\"{'showPop':this.supportService.displayListPopUp}\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n<div class=\"modal-dialog modal-lg\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <div>\r\n <!-- <h5 class=\"modal-title\" id=\"exampleModalLabel\">Requested Case List</h5> -->\r\n </div>\r\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"closeListPageModel()\">\r\n <span aria-hidden=\"true\">&times;</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\">\r\n <app-support-request-list *ngIf=\"SelectedCaseTypeId !=null\" [PageViewType]=\"'PopUp'\" [EntityTypeId]=\"SelectedCaseTypeId\"></app-support-request-list>\r\n </div>\r\n </div>\r\n</div>\r\n</div>\r\n <!-- </div>\r\n\r\n </div>\r\n</div>\r\n</div>-->\r\n </div>\r\n <div class=\"col-2\">\r\n </div>\r\n </div>\r\n</div> \r\n\r\n", styles: [".action-block{background-color:#fff;padding:20px;box-shadow:3px 3px 5px 2px #0000001a;border-radius:7px}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i7$1.NgSelectComponent, selector: "ng-select", inputs: ["bindLabel", "bindValue", "markFirst", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "appearance", "dropdownPosition", "appendTo", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "openOnEnter", "maxSelectedItems", "groupBy", "groupValue", "bufferAmount", "virtualScroll", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "tabIndex", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "typeahead", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { kind: "component", type: SupportRequestCreateComponent, selector: "app-support-request-create", inputs: ["EntityFormId", "EntityTypeId", "ViewFrom", "Type", "FormValues", "IssueType", "IssueGroup", "IssueSubGroup", "IssueTypeEn", "IssueGroupEn", "IssueSubGroupEn", "IssueTypeAr", "IssueGroupAr", "IssueSubGroupAr", "Source", "CreatedByUserType", "Channel", "ChannelEn", "ChannelAr", "RequestField", "RequesterId", "RequesterIdEn"], outputs: ["closeCreate"] }] });
11659
+ ActionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: ActionComponent, selector: "app-action", ngImport: i0, template: "\r\n<div class=\"m-3\">\r\n <div class=\"row\">\r\n <div class=\"col-2\">\r\n </div>\r\n <div class=\"col-8 action-block\">\r\n <h4 class=\"text-center\">How can we help you ?</h4>\r\n <hr>\r\n <form [formGroup]=\"ActionForm\">\r\n <!-- <div class=\"form-group\">\r\n <label for=\"CategoryId\" style=\"font-size:large;\">Category:</label>\r\n <ng-select formControlName=\"CategoryId\" [items]=\"CategoryDDL\" bindLabel=\"Description\" \r\n bindValue=\"CategoryId\" (change)=\"getSubCategoryDDl()\">\r\n </ng-select>\r\n </div> -->\r\n <div class=\"form-group\">\r\n <label for=\"TicketGroupID\" style=\"font-size:large;\">Issue Group:</label>\r\n <ng-select formControlName=\"TicketGroupID\" [items]=\"IssueGroupDDL\" bindLabel=\"TicketGroupName\" \r\n bindValue=\"TicketGroupID\" (change)=\"getDropDownForIssueSubGroup()\">\r\n </ng-select>\r\n <div class=\"text-danger\">\r\n <small *ngIf=\"ActionForm.get('TicketGroupID')?.touched &&\r\n ActionForm.get('TicketGroupID')?.hasError('required')\" class=\"error-message\">required.</small>\r\n </div>\r\n </div>\r\n <div class=\"form-group\" *ngIf=\"TicketGroupID != null \">\r\n <label for=\"SubGroupID\" style=\"font-size:large;\">Issue SubGroup:</label>\r\n <ng-select formControlName=\"SubGroupID\" [items]=\"IssueSubGroupDDL\" bindLabel=\"SubGroupName\" \r\n bindValue=\"SubGroupID\" (change)=\"getInstruction()\">\r\n </ng-select>\r\n <div class=\"text-danger\">\r\n <small *ngIf=\"ActionForm.get('SubGroupID')?.touched &&\r\n ActionForm.get('SubGroupID')?.hasError('required')\" class=\"error-message\">required.</small>\r\n </div>\r\n </div>\r\n\r\n <div class=\"form-group whole\" *ngIf=\"TicketGroupID != null && SubGroupID != null\">\r\n <label for=\"SubGroupID\" style=\"font-size:large;\">Instructions:</label>\r\n <!-- <div id=\"accordion\" *ngFor=\" let item of InstructionList; let i = index;\">\r\n <div class=\"card\">\r\n <div class=\"card-header\" [id]=\"item.RecId+i\">\r\n <h5 class=\"mb-0\">\r\n <button class=\"btn btn-link\" (click)=\"changeTab(item.RecId)\" data-toggle=\"collapse\" [attr.data-target]=\"'#'+item.RecId\" aria-controls=\"collapseOne\">\r\n {{item?.Question+ '?'}}\r\n </button>\r\n </h5>\r\n </div>\r\n \r\n <div [id]=\"item.RecId\" class=\"collapse\" [ngClass]=\"{'show':item.RecId== CurrentId}\" aria-labelledby=\"headingOne\" data-parent=\"#accordion\">\r\n <div class=\"card-body\">\r\n {{item?.Answer}}\r\n </div>\r\n </div>\r\n </div>\r\n </div> -->\r\n\r\n <div class=\"qsntns_answrs\" *ngFor=\" let item of InstructionList; let i = index;\">\r\n <a class=\"has-arrow menus_item\" data-toggle=\"collapse\" href=\"#col{{item.RecId}}\">\r\n <i class=\"la la-angle-down\" style=\"font-size: 20px;\"></i>\r\n <span> {{item?.Question+ '?'}}</span>\r\n </a>\r\n \r\n <ul class=\"collapse\" id=\"col{{item.RecId}}\">\r\n <p> {{item?.Answer}}</p>\r\n </ul>\r\n </div>\r\n </div>\r\n <!-- <div class=\"form-group\" *ngIf=\"TicketGroupID != null && SubGroupID != null\">\r\n <label for=\"SubGroupID\" style=\"font-size:large;\">Case Type:</label>\r\n <ng-select formControlName=\"CaseType\" [items]=\"CaseTypeList\" bindLabel=\"CaseTypeIdEn\" \r\n bindValue=\"CaseTypeId\">\r\n </ng-select>\r\n </div> -->\r\n <button *ngIf=\"SelectedCaseTypeId != null && SelectedCaseTypeId != 0 && displayPopupCreateView != true && SubGroupID != null\" (click)=\"openPopupCreatePage()\" type=\"button\" class=\"btn btn-primary btn-lg btn-block\">Create Case</button>\r\n </form>\r\n\r\n <!-- <div class=\"modal fade show\" *ngIf=\"CreateItemId\" [ngClass]=\"{'showPop':displayPopupCreateView}\" tabindex=\"-1\"\r\nrole=\"dialog\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n<div class=\"modal-dialog modal-lg\" style=\"width: 95%; max-width: 95%;\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\" id=\"exampleModalLabel\"></h5>\r\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"closePopupCreateView()\">\r\n <span aria-hidden=\"true\">&times;</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\"> -->\r\n <!-- [ViewFrom]=\"'Popup'\" -->\r\n\r\n <app-support-request-create [ViewFrom]=\"'Popup'\" *ngIf=\"displayPopupCreateView && CreateItemId &&SelectedCaseTypeId\" [Type]=\"'Create'\" [EntityTypeId]=\"CreateItemId\"\r\n (closeCreate)=\"closePopupCreateView($event.Type)\"></app-support-request-create>\r\n\r\n\r\n<!-- Modal -->\r\n<div class=\"modal fade show\"[ngClass]=\"{'showPop':this.supportService.displayListPopUp}\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n<div class=\"modal-dialog modal-lg\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <div>\r\n <!-- <h5 class=\"modal-title\" id=\"exampleModalLabel\">Requested Case List</h5> -->\r\n </div>\r\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"closeListPageModel()\">\r\n <span aria-hidden=\"true\">&times;</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\">\r\n <app-support-request-list *ngIf=\"SelectedCaseTypeId !=null\" [PageViewType]=\"'PopUp'\" [EntityTypeId]=\"SelectedCaseTypeId\"></app-support-request-list>\r\n </div>\r\n </div>\r\n</div>\r\n</div>\r\n <!-- </div>\r\n\r\n </div>\r\n</div>\r\n</div>-->\r\n </div>\r\n <div class=\"col-2\">\r\n </div>\r\n </div>\r\n</div> \r\n\r\n", styles: [".action-block{background-color:#fff;padding:20px;box-shadow:3px 3px 5px 2px #0000001a;border-radius:7px}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i5$1.NgSelectComponent, selector: "ng-select", inputs: ["bindLabel", "bindValue", "markFirst", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "appearance", "dropdownPosition", "appendTo", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "openOnEnter", "maxSelectedItems", "groupBy", "groupValue", "bufferAmount", "virtualScroll", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "tabIndex", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "typeahead", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }, { kind: "component", type: SupportRequestCreateComponent, selector: "app-support-request-create", inputs: ["EntityFormId", "EntityTypeId", "ViewFrom", "Type", "FormValues", "IssueType", "IssueGroup", "IssueSubGroup", "IssueTypeEn", "IssueGroupEn", "IssueSubGroupEn", "IssueTypeAr", "IssueGroupAr", "IssueSubGroupAr", "Source", "CreatedByUserType", "Channel", "ChannelEn", "ChannelAr", "RequestField", "RequesterId", "RequesterIdEn"], outputs: ["closeCreate"] }] });
11111
11660
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: ActionComponent, decorators: [{
11112
11661
  type: Component,
11113
11662
  args: [{ selector: 'app-action', template: "\r\n<div class=\"m-3\">\r\n <div class=\"row\">\r\n <div class=\"col-2\">\r\n </div>\r\n <div class=\"col-8 action-block\">\r\n <h4 class=\"text-center\">How can we help you ?</h4>\r\n <hr>\r\n <form [formGroup]=\"ActionForm\">\r\n <!-- <div class=\"form-group\">\r\n <label for=\"CategoryId\" style=\"font-size:large;\">Category:</label>\r\n <ng-select formControlName=\"CategoryId\" [items]=\"CategoryDDL\" bindLabel=\"Description\" \r\n bindValue=\"CategoryId\" (change)=\"getSubCategoryDDl()\">\r\n </ng-select>\r\n </div> -->\r\n <div class=\"form-group\">\r\n <label for=\"TicketGroupID\" style=\"font-size:large;\">Issue Group:</label>\r\n <ng-select formControlName=\"TicketGroupID\" [items]=\"IssueGroupDDL\" bindLabel=\"TicketGroupName\" \r\n bindValue=\"TicketGroupID\" (change)=\"getDropDownForIssueSubGroup()\">\r\n </ng-select>\r\n <div class=\"text-danger\">\r\n <small *ngIf=\"ActionForm.get('TicketGroupID')?.touched &&\r\n ActionForm.get('TicketGroupID')?.hasError('required')\" class=\"error-message\">required.</small>\r\n </div>\r\n </div>\r\n <div class=\"form-group\" *ngIf=\"TicketGroupID != null \">\r\n <label for=\"SubGroupID\" style=\"font-size:large;\">Issue SubGroup:</label>\r\n <ng-select formControlName=\"SubGroupID\" [items]=\"IssueSubGroupDDL\" bindLabel=\"SubGroupName\" \r\n bindValue=\"SubGroupID\" (change)=\"getInstruction()\">\r\n </ng-select>\r\n <div class=\"text-danger\">\r\n <small *ngIf=\"ActionForm.get('SubGroupID')?.touched &&\r\n ActionForm.get('SubGroupID')?.hasError('required')\" class=\"error-message\">required.</small>\r\n </div>\r\n </div>\r\n\r\n <div class=\"form-group whole\" *ngIf=\"TicketGroupID != null && SubGroupID != null\">\r\n <label for=\"SubGroupID\" style=\"font-size:large;\">Instructions:</label>\r\n <!-- <div id=\"accordion\" *ngFor=\" let item of InstructionList; let i = index;\">\r\n <div class=\"card\">\r\n <div class=\"card-header\" [id]=\"item.RecId+i\">\r\n <h5 class=\"mb-0\">\r\n <button class=\"btn btn-link\" (click)=\"changeTab(item.RecId)\" data-toggle=\"collapse\" [attr.data-target]=\"'#'+item.RecId\" aria-controls=\"collapseOne\">\r\n {{item?.Question+ '?'}}\r\n </button>\r\n </h5>\r\n </div>\r\n \r\n <div [id]=\"item.RecId\" class=\"collapse\" [ngClass]=\"{'show':item.RecId== CurrentId}\" aria-labelledby=\"headingOne\" data-parent=\"#accordion\">\r\n <div class=\"card-body\">\r\n {{item?.Answer}}\r\n </div>\r\n </div>\r\n </div>\r\n </div> -->\r\n\r\n <div class=\"qsntns_answrs\" *ngFor=\" let item of InstructionList; let i = index;\">\r\n <a class=\"has-arrow menus_item\" data-toggle=\"collapse\" href=\"#col{{item.RecId}}\">\r\n <i class=\"la la-angle-down\" style=\"font-size: 20px;\"></i>\r\n <span> {{item?.Question+ '?'}}</span>\r\n </a>\r\n \r\n <ul class=\"collapse\" id=\"col{{item.RecId}}\">\r\n <p> {{item?.Answer}}</p>\r\n </ul>\r\n </div>\r\n </div>\r\n <!-- <div class=\"form-group\" *ngIf=\"TicketGroupID != null && SubGroupID != null\">\r\n <label for=\"SubGroupID\" style=\"font-size:large;\">Case Type:</label>\r\n <ng-select formControlName=\"CaseType\" [items]=\"CaseTypeList\" bindLabel=\"CaseTypeIdEn\" \r\n bindValue=\"CaseTypeId\">\r\n </ng-select>\r\n </div> -->\r\n <button *ngIf=\"SelectedCaseTypeId != null && SelectedCaseTypeId != 0 && displayPopupCreateView != true && SubGroupID != null\" (click)=\"openPopupCreatePage()\" type=\"button\" class=\"btn btn-primary btn-lg btn-block\">Create Case</button>\r\n </form>\r\n\r\n <!-- <div class=\"modal fade show\" *ngIf=\"CreateItemId\" [ngClass]=\"{'showPop':displayPopupCreateView}\" tabindex=\"-1\"\r\nrole=\"dialog\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n<div class=\"modal-dialog modal-lg\" style=\"width: 95%; max-width: 95%;\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <h5 class=\"modal-title\" id=\"exampleModalLabel\"></h5>\r\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"closePopupCreateView()\">\r\n <span aria-hidden=\"true\">&times;</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\"> -->\r\n <!-- [ViewFrom]=\"'Popup'\" -->\r\n\r\n <app-support-request-create [ViewFrom]=\"'Popup'\" *ngIf=\"displayPopupCreateView && CreateItemId &&SelectedCaseTypeId\" [Type]=\"'Create'\" [EntityTypeId]=\"CreateItemId\"\r\n (closeCreate)=\"closePopupCreateView($event.Type)\"></app-support-request-create>\r\n\r\n\r\n<!-- Modal -->\r\n<div class=\"modal fade show\"[ngClass]=\"{'showPop':this.supportService.displayListPopUp}\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">\r\n<div class=\"modal-dialog modal-lg\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <div>\r\n <!-- <h5 class=\"modal-title\" id=\"exampleModalLabel\">Requested Case List</h5> -->\r\n </div>\r\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" (click)=\"closeListPageModel()\">\r\n <span aria-hidden=\"true\">&times;</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\">\r\n <app-support-request-list *ngIf=\"SelectedCaseTypeId !=null\" [PageViewType]=\"'PopUp'\" [EntityTypeId]=\"SelectedCaseTypeId\"></app-support-request-list>\r\n </div>\r\n </div>\r\n</div>\r\n</div>\r\n <!-- </div>\r\n\r\n </div>\r\n</div>\r\n</div>-->\r\n </div>\r\n <div class=\"col-2\">\r\n </div>\r\n </div>\r\n</div> \r\n\r\n", styles: [".action-block{background-color:#fff;padding:20px;box-shadow:3px 3px 5px 2px #0000001a;border-radius:7px}\n"] }]
@@ -11145,7 +11694,9 @@ SupportRequestModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", ve
11145
11694
  CaseListComponent,
11146
11695
  GridComponent,
11147
11696
  GridDatatypeComponent,
11148
- InnerGridComponent], imports: [CommonModule,
11697
+ InnerGridComponent,
11698
+ CreateFormComponent,
11699
+ SendemailComponent], imports: [CommonModule,
11149
11700
  // SupportRequestRoutingModule,
11150
11701
  FormsModule,
11151
11702
  ReactiveFormsModule,
@@ -11159,7 +11710,8 @@ SupportRequestModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", ve
11159
11710
  MatFormFieldModule,
11160
11711
  MatInputModule, BrowserModule,
11161
11712
  BrowserAnimationsModule,
11162
- NgxPaginationModule], exports: [RequestFlowComponent,
11713
+ NgxPaginationModule,
11714
+ NgMultiSelectDropDownModule], exports: [RequestFlowComponent,
11163
11715
  SelfServiceFlowComponent,
11164
11716
  TranslatePipe,
11165
11717
  NgxPaginationModule] });
@@ -11176,7 +11728,8 @@ SupportRequestModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
11176
11728
  materialModules,
11177
11729
  BrowserModule,
11178
11730
  BrowserAnimationsModule,
11179
- NgxPaginationModule, NgxPaginationModule] });
11731
+ NgxPaginationModule,
11732
+ NgMultiSelectDropDownModule, NgxPaginationModule] });
11180
11733
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SupportRequestModule, decorators: [{
11181
11734
  type: NgModule,
11182
11735
  args: [{
@@ -11204,7 +11757,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
11204
11757
  CaseListComponent,
11205
11758
  GridComponent,
11206
11759
  GridDatatypeComponent,
11207
- InnerGridComponent
11760
+ InnerGridComponent,
11761
+ CreateFormComponent,
11762
+ SendemailComponent
11208
11763
  ],
11209
11764
  imports: [
11210
11765
  CommonModule,
@@ -11221,6 +11776,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
11221
11776
  BrowserModule,
11222
11777
  BrowserAnimationsModule,
11223
11778
  NgxPaginationModule,
11779
+ NgMultiSelectDropDownModule,
11224
11780
  ],
11225
11781
  exports: [
11226
11782
  RequestFlowComponent,