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) {
@@ -5344,8 +5372,10 @@ class EntityDynamicFieldComponent {
5344
5372
  if (!isDepandancyvalue) {
5345
5373
  return;
5346
5374
  }
5375
+ this.globalService.dataLoader = true;
5347
5376
  this.entityTypeSetup.dynamicAPi(restData, _formvalue, searchCriteria, SearchText, restData.Havecriteria)
5348
5377
  .subscribe((ress) => {
5378
+ this.globalService.dataLoader = false;
5349
5379
  let res = ress;
5350
5380
  if (restData.ResponseView) {
5351
5381
  let _rview = restData.ResponseView.split(".");
@@ -5390,11 +5420,15 @@ class EntityDynamicFieldComponent {
5390
5420
  }
5391
5421
  else
5392
5422
  obx.next([]);
5423
+ }, (error) => {
5424
+ this.globalService.dataLoader = false;
5393
5425
  });
5394
5426
  }
5395
5427
  else if (jsonItem.isDynamic && jsonItem.api && jsonItem.api.url) {
5396
5428
  const url = jsonItem.api.url;
5429
+ this.globalService.dataLoader = true;
5397
5430
  this.entityTypeSetup.getDyamicUrl(url).subscribe((ress) => {
5431
+ this.globalService.dataLoader = false;
5398
5432
  let res = ress;
5399
5433
  if (jsonItem.api && jsonItem.api.ResponseView) {
5400
5434
  let _rview = jsonItem.api.ResponseView.split(".");
@@ -5435,6 +5469,8 @@ class EntityDynamicFieldComponent {
5435
5469
  }
5436
5470
  else
5437
5471
  obx.next([]);
5472
+ }, (error) => {
5473
+ this.globalService.dataLoader = false;
5438
5474
  });
5439
5475
  }
5440
5476
  else {
@@ -5488,9 +5524,7 @@ class EntityDynamicFieldComponent {
5488
5524
  this.pageStartFrom = 1;
5489
5525
  }
5490
5526
  autoSearchDropdown(event, field, searchValue, RequestorField) {
5491
- debugger;
5492
5527
  if (event.keyCode == 13) {
5493
- this.globalService.dataLoader = true;
5494
5528
  this.tempFields = field;
5495
5529
  if (field.DataType == E_DataType.dropdown) {
5496
5530
  if (field.FieldData) {
@@ -7310,7 +7344,7 @@ class WorkflowDynamicPopupComponent {
7310
7344
  }
7311
7345
  }
7312
7346
  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 });
7313
- 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" }] });
7347
+ 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" }] });
7314
7348
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: WorkflowDynamicPopupComponent, decorators: [{
7315
7349
  type: Component,
7316
7350
  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"] }]
@@ -7762,9 +7796,7 @@ class ActivitiesCreateComponent {
7762
7796
  // this.EntityTypeId = Number(res.get('EntityTypeId'));
7763
7797
  });
7764
7798
  this.getActiveEntityForm();
7765
- debugger;
7766
7799
  this.globalService.submitComments.subscribe(x => {
7767
- debugger;
7768
7800
  if (x.message) {
7769
7801
  this.createFormData.Comments = x.message;
7770
7802
  this.submitTicketCreate(true);
@@ -7782,7 +7814,6 @@ class ActivitiesCreateComponent {
7782
7814
  this.closeActivityCreate.emit({ Type: "Cancel" });
7783
7815
  }
7784
7816
  submitTicketCreate(isDisableFormValidation) {
7785
- debugger;
7786
7817
  let CreateData = this.createFormData;
7787
7818
  if (isDisableFormValidation) {
7788
7819
  if (!this.createFormData.Comments) {
@@ -8651,1062 +8682,1396 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
8651
8682
  type: Input
8652
8683
  }] } });
8653
8684
 
8654
- class SupportRequestDetailsComponent {
8655
- constructor(taskService, EntityTypeSetupService, fb, actRoute, gridServiceService, ticketService, globalService, route) {
8656
- this.taskService = taskService;
8657
- this.EntityTypeSetupService = EntityTypeSetupService;
8658
- this.fb = fb;
8659
- this.actRoute = actRoute;
8660
- this.gridServiceService = gridServiceService;
8661
- this.ticketService = ticketService;
8662
- this.globalService = globalService;
8663
- this.route = route;
8664
- this.ViewFrom = "Page";
8665
- this.IsWfAction = false;
8666
- this.environment = environment;
8667
- // _TaskDetail: TaskVM =null;
8668
- this._TaskDetail = null;
8669
- this.stageId = null;
8670
- this.EntityTypeId = null;
8671
- this.EntityTypeIdRecId = null;
8672
- this.refRecId = null;
8673
- this.EntityFormId = null;
8674
- this.EntityPageGroupsData = [];
8675
- this.EntityDefaultPageGroupsData = [];
8676
- this.pageTitle = "Process Stage";
8677
- this.pageDesp = "Process Stage";
8678
- this.selectMode = E_SelectMode.Multi;
8679
- this.isAttach = false;
8680
- this.isCreate = false;
8681
- this.isEdit = false;
8682
- this.isDelete = false;
8683
- this.isExport = false;
8684
- this.gridActionList = [];
8685
- this.columnDefs = [
8686
- { Field: 'ProcessStage', Name: 'Process Stage Id' },
8687
- { Field: 'ProcessStageEn', Name: 'Process Stage' },
8688
- { Field: 'Comments', Name: 'Comments' },
8689
- { Field: 'StartDate', Name: 'Start Date', DataType: E_DataType.date },
8690
- { Field: 'EndDate', Name: 'End Date', DataType: E_DataType.date },
8691
- ];
8692
- this.commentsData = [];
8693
- this.commentsDataCount = 0;
8694
- this.Searchcriteria = {
8695
- Pagging: {
8696
- PageNo: 1,
8697
- PageSize: 10,
8698
- },
8699
- Where: [],
8700
- SortOrder: 1,
8685
+ class AttachmentService {
8686
+ constructor(http) {
8687
+ this.http = http;
8688
+ this.IsPopUp = false;
8689
+ }
8690
+ getAttachmentList(MenuOrEntityRecId, attachmentType) {
8691
+ const url = Common.getAttachmentByMenuRecId(MenuOrEntityRecId, attachmentType);
8692
+ return this.http.get(url);
8693
+ }
8694
+ uploadAttachFile(obj, files) {
8695
+ const url = Common.uploadAttachFile();
8696
+ let data = {
8697
+ refRecId: obj.refRecId,
8698
+ DocumentType: obj.DocumentType,
8699
+ DocumentVersion: obj.DocumentVersion,
8700
+ Title: obj.Title,
8701
+ FileName: obj.FileName
8701
8702
  };
8702
- this.displayPopupCreateView = false;
8703
- this.CreateItemId = null;
8704
- this.selectedActivityItem = null;
8705
- this.commentsActivityItem = null;
8706
- this.detailsEntityTypeId = null;
8707
- this.Activity = null;
8708
- this.ActivityType = [];
8709
- this.ActivityTypeReadonly = [];
8710
- this.TotalActivity = 0;
8711
- this.StatusAndStageList = [];
8712
- this.showStageDetails = false;
8713
- this.selectedProcessList = [];
8714
- this.tabDisplayView = 1;
8715
- this.SortingField = { field: null, direction: null };
8716
- this.activitySearchcriteria = {
8717
- Pagging: {
8718
- PageNo: 1,
8719
- PageSize: 10,
8720
- },
8721
- Where: [],
8722
- SortOrder: this.SortingField,
8703
+ return this.http.post(url, files, { params: data });
8704
+ }
8705
+ getUploadFileList(DoctypeRecId, RefRecId) {
8706
+ const url = Common.getUploadFileList(DoctypeRecId, RefRecId);
8707
+ let obj = {
8708
+ DoctypeRecId: DoctypeRecId,
8709
+ RefRecId: RefRecId
8723
8710
  };
8724
- this.TaskList = [];
8725
- this.ProcessStageList = [];
8726
- this.TimelineList = [];
8727
- this.TimelineListReadonly = [];
8728
- this.TaskCommentFile = null;
8729
- this.wfActionData = [
8730
- { id: 1, name: "New" },
8731
- { id: 2, name: "Forward" },
8732
- { id: 3, name: "Reply" },
8733
- { id: 4, name: "Esculation" },
8734
- { id: 5, name: "Delegation" },
8735
- { id: 6, name: "Complete" },
8736
- { id: 7, name: "Cancel" },
8737
- ];
8738
- this.wfStageAction = null;
8739
- this.action = null;
8740
- this.showWorkflowPopup = false;
8741
- this.workflowEntityFormId = null;
8742
- this.assignmentForm = this.fb.group({
8743
- ActionStatus: [''],
8744
- AssignedTo: [''],
8745
- TargetDate: [''],
8746
- Description: [''],
8747
- Comments: [''],
8748
- });
8749
- this.updateStatusAssignTo = [];
8750
- this.actionPopup = false;
8751
- this.targetDate = null;
8752
- this.columnDef = [
8753
- { Field: "Description", Name: "Description" },
8754
- { Field: "AssignedTo", Name: "AssignedTo" },
8755
- { Field: "TargetDate", Name: "TargetDate", DataType: E_DataType.date },
8756
- { Field: "IsDoneEn", Name: "IsDone", },
8757
- ];
8758
- this.translatePipe = new TranslatePipe(this.globalService);
8711
+ return this.http.get(url, { observe: 'response' }); //obj,
8759
8712
  }
8760
- ngOnInit() {
8761
- // this.actRoute.paramMap.subscribe((res) => {
8762
- //
8763
- // console.log(res);
8764
- // if (this.ViewFrom != 'Popup') {
8765
- // this.RecId = Number(res.get('RecId'));
8766
- // this.EntityTypeRecId = Number(res.get('EntityTypeRecId'));
8767
- // }
8768
- // });
8769
- this.getTaskDetails();
8770
- this.getActivity();
8771
- this.getWorkflowStatusWithStage();
8772
- // this.getAssignGroupData();
8773
- // this.getTaskAssignData();
8713
+ ActivateUplaodFile(RecId) {
8714
+ const url = Common.activateUploadFile(RecId);
8715
+ return this.http.get(url);
8774
8716
  }
8775
- getTaskDetails() {
8776
- if (this.RecId != null) {
8777
- this.EntityTypeSetupService.getDynamicById(this.EntityTypeRecId, this.RecId).subscribe((x) => {
8778
- // alert("a");
8779
- // ;
8780
- this._TaskDetail = x;
8781
- this.stageId = x.ProcessStage;
8782
- this.EntityTypeId = x.EntityTypeId;
8783
- this.EntityTypeIdRecId = x.EntityTypeRecId;
8784
- this.refRecId = x.RecId;
8785
- this.GetPageList(this.storeCriteria);
8786
- if (this._TaskDetail && this._TaskDetail.uploadFiles && this._TaskDetail.uploadFiles.length > 0) {
8787
- this._TaskDetail.uploadFiles.map(x => {
8788
- if (x.Ext) {
8789
- x.ExtSm = x.Ext.toLowerCase();
8790
- x.ExtSm = x.ExtSm.replace('.', '');
8791
- }
8792
- });
8793
- }
8794
- this.getActivities();
8795
- this.getEntityFormDetails();
8796
- // this.getComments();
8797
- if (this.IsWfAction) {
8798
- this.getWfStageAction(x.EntityTypeId, x.ProcessStage);
8799
- }
8800
- }, (error) => error.error);
8801
- }
8717
+ InActivateUplaodFile(RecId) {
8718
+ const url = Common.inActivateUploadFile(RecId);
8719
+ return this.http.get(url);
8802
8720
  }
8803
- getEntityFormDetails() {
8804
- this.EntityDefaultPageGroupsData = [];
8805
- this.EntityPageGroupsData = [];
8806
- this.EntityTypeSetupService.getActiveEntityFormByDetails(this.EntityTypeId).subscribe((res) => {
8807
- if (res.FormData) {
8808
- let _FormData = JSON.parse(res.FormData);
8809
- if (_FormData.PageGroup) {
8810
- if (Array.isArray(_FormData.PageGroup)) {
8811
- this.EntityPageGroupsData = _FormData.PageGroup;
8812
- }
8813
- }
8814
- if (_FormData.defaultPageGroups) {
8815
- if (Array.isArray(_FormData.defaultPageGroups)) {
8816
- this.EntityDefaultPageGroupsData = _FormData.defaultPageGroups;
8817
- }
8818
- }
8819
- }
8820
- this.EntityFormId = res.RecId;
8821
- }, (error) => {
8822
- console.log(error);
8823
- });
8721
+ getDocumentType(criteriastr) {
8722
+ // let obj={
8723
+ // "Pagging":{"PageNo":criteriastr.Pagging.PageNo,"PageSize":criteriastr.Pagging.PageSize},
8724
+ // "Where":[],
8725
+ // "SortOrder":{"field":null,"direction":null}
8726
+ // };
8727
+ // let criteria:any= JSON.stringify(obj);
8728
+ const url = Common.getDocumentType();
8729
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
8824
8730
  }
8825
- getWorkflowActionComments(comments, updateFileds, updateFieldsObject) {
8826
- // alert("zz");
8827
- let updateFieldsObjectString = JSON.stringify(updateFieldsObject);
8828
- this.EntityTypeSetupService.urlPostTaskWfAction(this.RecId, this.stageId, this.action, comments, updateFileds, updateFieldsObjectString, this.EntityTypeId).subscribe((res) => {
8829
- // this.wfActionData = res;
8830
- this.getTaskDetails();
8831
- console.log(res);
8832
- }, (error) => {
8833
- error.error;
8834
- if (error.error?.status == false) {
8835
- let msg = JSON.parse(error.error?.msg);
8836
- if (msg && msg.msg) {
8837
- msg = msg.msg;
8838
- }
8839
- else {
8840
- msg = error.error?.msg;
8841
- }
8842
- Swal.fire(this.translatePipe.transform(msg));
8843
- }
8844
- else {
8845
- Swal.fire(this.translatePipe.transform(error.ExceptionMessage), this.translatePipe.transform(error.message));
8846
- }
8847
- });
8731
+ getDocumentbyRecId(RecId) {
8732
+ const url = Common.getDocumentTypeByRecId(RecId);
8733
+ return this.http.get(url);
8848
8734
  }
8849
- getComments() {
8850
- // alert("getcommends");
8851
- if (this.refRecId != null) {
8852
- this.ticketService.urlGetTicketUpdateByRecId(this.refRecId).subscribe((x) => {
8853
- // alert("getcommends");
8854
- this.commentsData = x.Data;
8855
- this.commentsDataCount = x.TotalCount;
8856
- }, (error) => {
8857
- // Swal.fire(error);
8858
- Swal.fire({
8859
- title: this.translatePipe.transform(error.error),
8860
- });
8861
- // error.error
8862
- });
8863
- }
8735
+ deleteDocumentType(RecId) {
8736
+ const url = Common.deleteDocumentType(RecId);
8737
+ const content_ = "";
8738
+ let options_ = {
8739
+ body: content_,
8740
+ observe: "response",
8741
+ responseType: "blob",
8742
+ headers: new HttpHeaders({
8743
+ "Content-Type": "application/json",
8744
+ "Accept": "application/json"
8745
+ })
8746
+ };
8747
+ return this.http.delete(url);
8864
8748
  }
8865
- getActivity() {
8866
- //this.EntityType = data.EntityType;
8867
- this.EntityTypeSetupService.getAllAssinedActivites(this.Searchcriteria, this.EntityTypeRecId)
8868
- // this.EntityTypeSetupService.getActiveEntityTypeSetup(this.Searchcriteria, this.EntityType, "")
8869
- .subscribe((res) => {
8870
- this.ActivityFields = res.Data;
8871
- if (this.ActivityFields.length > 0) {
8872
- const sortBy = ['Task', 'SMS', 'Email', 'Notes', 'Comments']; //sort by descending order
8873
- this.ActivityFields = this.ActivityFields.sort((a, b) => sortBy.indexOf(b.Description) - sortBy.indexOf(a.Description));
8874
- let taskActivity = { Description: 'Task', RecId: 58, Type: 'Task' };
8875
- this.ActivityFields.push(taskActivity);
8876
- this.openDefaultComments();
8877
- }
8878
- });
8749
+ createDocumentType(Obj) {
8750
+ const url = Common.createDocumentType();
8751
+ return this.http.post(url, Obj, { observe: 'response' });
8879
8752
  }
8880
- getActivityFileUploads(item) {
8881
- if (item.showform && item.RecId && item.ActivityTypeId) {
8882
- this.EntityTypeSetupService.getActivityUploadFile(item.RecId, this.EntityTypeRecId, item.ActivityTypeId)
8883
- .subscribe((res) => {
8884
- if (res && res.length > 0) {
8885
- item.uploadFiles = res;
8886
- }
8887
- });
8888
- }
8753
+ updateDocumentType(Obj) {
8754
+ const url = Common.updateDocumentType();
8755
+ return this.http.put(url, Obj, { observe: 'response' });
8889
8756
  }
8890
- getActivityFileUploadsReadonly(item) {
8891
- if (item.RecId && item.ActivityTypeId) {
8892
- this.EntityTypeSetupService.getActivityUploadFile(item.RecId, this.EntityTypeRecId, item.ActivityTypeId)
8893
- .subscribe((res) => {
8894
- if (res && res.length > 0) {
8895
- item.uploadFiles = res;
8896
- }
8897
- this.ActivityTypeReadonly.push(item);
8898
- });
8899
- }
8757
+ getAttachmentSetupList(criteriastr) {
8758
+ // let obj={
8759
+ // "Pagging":{"PageNo":criteriastr.Pagging.PageNo,"PageSize":criteriastr.Pagging.PageSize},
8760
+ // "Where":[],
8761
+ // "SortOrder":{"field":null,"direction":null}
8762
+ // };
8763
+ // let criteria:any= JSON.stringify(obj);
8764
+ const url = Common.getAttachmentSetupList();
8765
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
8900
8766
  }
8901
- addEvents(data) {
8902
- this.openPopupCreatePage(data);
8767
+ getDocumentTypeAssignUnAssign(MenuRecId) {
8768
+ const url = Common.getDocumentTypeAssignUnAssign(MenuRecId);
8769
+ return this.http.get(url);
8903
8770
  }
8904
- openPopupCreatePage(item) {
8905
- this.CreateItemId = null;
8906
- setTimeout(() => (this.CreateItemId = item.RecId), 0);
8907
- this.selectedActivityItem = item;
8908
- if (item.Description != 'Comments')
8909
- this.displayPopupCreateView = true;
8910
- // this.Activity=item.RecId;
8771
+ assignDocumentType(data) {
8772
+ const st = data.DocumentTypeRecId.map(x => "DocumentTypeRecId=" + x).join("&");
8773
+ let url_ = `${environment.ServerUrl}security/documenttype/menu/assign?${st}&MenuOrEntityRecId=${data.MenuOrEntityRecId}`;
8774
+ return this.http.post(url_, null);
8911
8775
  }
8912
- closePopupCreateView(Type) {
8913
- this.CreateItemId = null;
8914
- this.displayPopupCreateView = false;
8915
- if (Type == 'Create') {
8916
- this.getActivities();
8917
- this.openDefaultComments();
8918
- }
8776
+ unassignDocumentType(data) {
8777
+ const st = data.DocumentTypeRecId.map(x => "DocumentTypeRecId=" + x).join("&");
8778
+ let url_ = `${environment.ServerUrl}security/documenttype/menu/unassign?${st}&MenuOrEntityRecId=${data.MenuOrEntityRecId}`;
8779
+ return this.http.post(url_, data);
8919
8780
  }
8920
- slider(direction, Id) {
8921
- this.slide(direction, Id);
8781
+ getDocumentTypeAssignUnAssignForEntityType(EntityRecId) {
8782
+ const url = Common.getDocumentTypeAssignUnAssignForEntityType(EntityRecId);
8783
+ return this.http.get(url);
8922
8784
  }
8923
- slide(direction, Id) {
8924
- debugger;
8925
- let container = document.getElementById(Id);
8926
- let scrollCompleted = 0;
8927
- let slideVar = setInterval(function () {
8928
- if (direction == 'left') {
8929
- container.scrollLeft -= 50;
8930
- }
8931
- else {
8932
- container.scrollLeft += 50;
8933
- }
8934
- scrollCompleted += 10;
8935
- if (scrollCompleted >= 50) {
8936
- window.clearInterval(slideVar);
8937
- }
8938
- }, 50);
8785
+ assignDocumentTypeForEntityType(data) {
8786
+ const st = data.DocumentTypeRecId.map(x => "DocumentTypeRecId=" + x).join("&");
8787
+ let url_ = `${environment.ServerUrl}security/documenttype/entitytype/assign?${st}&MenuOrEntityRecId=${data.MenuOrEntityRecId}`;
8788
+ return this.http.post(url_, null);
8939
8789
  }
8940
- getWorkflowStatusWithStage() {
8941
- this.EntityTypeSetupService.getAllWfStage(null, this.EntityTypeRecId, true)
8942
- .subscribe((res) => {
8943
- // alert("StatusAndStageList");
8944
- this.StatusAndStageList = res.Data;
8945
- // .sort((a, b) => {
8946
- // if (a.StageId < b.StageId) return -1;
8947
- // else if (a.StageId > b.StageId) return 1;
8948
- // else return 0;
8949
- // });
8950
- let showallIndex = this.StatusAndStageList.findIndex(x => x.OrderId == -1);
8951
- this.StatusAndStageList.splice(showallIndex, 1);
8952
- let showPendingIndex = this.StatusAndStageList.findIndex(x => x.OrderId == 0);
8953
- this.StatusAndStageList.splice(showPendingIndex, 1);
8954
- }, (error) => {
8955
- console.log(error);
8956
- Swal.fire(this.translatePipe.transform(error.error?.ExceptionMessage), this.translatePipe.transform(error?.message), 'error');
8957
- });
8790
+ unassignDocumentTypeForEntityType(data) {
8791
+ const st = data.DocumentTypeRecId.map(x => "DocumentTypeRecId=" + x).join("&");
8792
+ let url_ = `${environment.ServerUrl}security/documenttype/entitytype/unassign?${st}&MenuOrEntityRecId=${data.MenuOrEntityRecId}`;
8793
+ return this.http.post(url_, data);
8958
8794
  }
8959
- selectProcess(item) {
8960
- if (this.selectedProcess)
8961
- this.showStageDetails = false;
8962
- if (this.selectedProcess && this.selectedProcess.ProcessStage == item.StageId) {
8963
- setTimeout(() => (this.selectedProcess = null), 500);
8964
- }
8965
- else {
8966
- this.showStageDetails = true;
8967
- this.selectedProcessList = this.ProcessStageList.filter((x) => x.ProcessStage == item.StageId);
8968
- this.selectedProcess =
8969
- this.selectedProcessList[this.selectedProcessList.length - 1];
8970
- }
8795
+ assignDocumentTypeForEntityTypeWithBody(data, EntityTypeId) {
8796
+ let url_ = `${environment.ServerUrl}security/documenttypeformbody/entitytype/assign?MenuOrEntityRecId=${EntityTypeId}`;
8797
+ return this.http.post(url_, data);
8971
8798
  }
8972
- closeProcess() {
8973
- this.showStageDetails = false;
8974
- setTimeout(() => (this.selectedProcess = null), 500);
8799
+ unassignDocumentTypeForEntityTypeWithBody(data, EntityTypeId) {
8800
+ let url_ = `${environment.ServerUrl}security/documenttypeformbody/entitytype/unassign?MenuOrEntityRecId=${EntityTypeId}`;
8801
+ return this.http.post(url_, data);
8975
8802
  }
8976
- gridChangeTabs(data) {
8977
- this.tabDisplayView = Number(data);
8803
+ getDocumentAssignList(Criteria, EntityRecId) {
8804
+ const url = Common.getDocumentAssignList(EntityRecId);
8805
+ return this.http.get(url);
8978
8806
  }
8979
- loadMoreActivities() {
8980
- this.activitySearchcriteria.Pagging.PageSize += 10;
8981
- this.getActivities();
8807
+ open() {
8808
+ this.IsPopUp = true;
8982
8809
  }
8983
- getActivities() {
8984
- debugger;
8985
- // let ActivityId = 5;
8986
- this.EntityTypeSetupService
8987
- .getDynamicByEntityRefrecid(this.EntityTypeRecId, this.refRecId, this.activitySearchcriteria, this.Activity)
8988
- .subscribe((res) => {
8989
- debugger;
8990
- this.ActivityType = res.Data;
8991
- if (res && res.Data)
8992
- this.ActivityTypeReadonly = [];
8993
- res.Data.forEach(x => {
8994
- this.getActivityFileUploadsReadonly(x);
8995
- });
8996
- this.setTimeline();
8997
- this.TotalActivity = res.TotalCount;
8998
- console.log('Activity', res.Data);
8999
- });
9000
- (error) => {
9001
- error.error;
9002
- };
8810
+ close() {
8811
+ this.IsPopUp = false;
9003
8812
  }
9004
- setTimeline() {
9005
- this.TimelineList = [];
9006
- this.TimelineListReadonly = [];
9007
- if (Array.isArray(this.ActivityType)) {
9008
- if (this.ActivityType.length > 0)
9009
- this.TimelineList.push(...this.ActivityType);
9010
- this.TimelineListReadonly.push(...this.ActivityType);
9011
- }
9012
- if (Array.isArray(this.ActivityTypeReadonly)) {
9013
- if (this.ActivityTypeReadonly.length > 0)
9014
- this.TimelineListReadonly.push(...this.ActivityTypeReadonly);
9015
- }
9016
- // if (Array.isArray(this.TaskList)) {
9017
- // if (this.TaskList.length > 0) this.TimelineList.push(...this.TaskList);
9018
- // }
9019
- // if (Array.isArray(this.ProcessStageList)) {
9020
- // if (this.ProcessStageList.length > 0) {
9021
- // this.ProcessStageList = this.ProcessStageList.map((x) => {
9022
- // x.Type = 'Workflow';
9023
- // x.ActivityTypeIdEn = 'Comments';
9024
- // return x;
9025
- // });
9026
- // this.TimelineList.push(...this.ProcessStageList);
9027
- // }
9028
- // }
9029
- this.TimelineList.sort((a, b) => {
9030
- if (a.CreatedDatetime < b.CreatedDatetime)
9031
- return -1;
9032
- else if (a.CreatedDatetime > b.CreatedDatetime)
9033
- return 1;
9034
- else
9035
- return 0;
9036
- });
9037
- this.TimelineListReadonly.sort((a, b) => {
9038
- if (a.CreatedDatetime < b.CreatedDatetime)
9039
- return -1;
9040
- else if (a.CreatedDatetime > b.CreatedDatetime)
9041
- return 1;
9042
- else
9043
- return 0;
9044
- });
8813
+ getSideMenuData() {
8814
+ let url = environment.ServerUrl + "entitytype/productivitymenuitems";
8815
+ return this.http.get(url);
9045
8816
  }
9046
- GetPageList(Criteria) {
9047
- if (this.EntityTypeId != null) {
9048
- this.storeCriteria = Criteria;
9049
- // let data: Observable<IEntityWFstageVM[]>;
9050
- this.EntityTypeSetupService.getWfInsProcessStageComments(Criteria, this.EntityTypeId, this.refRecId).subscribe((res) => {
9051
- // alert("grid data");
9052
- this.ProcessStageList = res.Data;
9053
- this.setTimeline();
9054
- console.log(res);
9055
- this.loadGrid(res.Data, res.TotalCount);
9056
- }, (error) => {
9057
- console.log(error);
9058
- this.loadGrid([], 0);
9059
- Swal.fire(this.translatePipe.transform(error.error?.ExceptionMessage), this.translatePipe.transform(error?.message), 'error');
9060
- });
9061
- }
8817
+ getMenuItemData(criteriastr) {
8818
+ let url = environment.ServerUrl + "security/menuitemsmap";
8819
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
9062
8820
  }
9063
- fileChange(event) {
9064
- this.fileList = event.target.files;
9065
- }
9066
- commentSubmit() {
9067
- let data = {
9068
- commnets: this.Comments,
9069
- refRecId: this.RecId,
9070
- entitytyperecid: this.EntityTypeRecId
9071
- };
9072
- // this.service.urlComments(data).subscribe(
9073
- // (x: any) => this.taskAssignData = x);
9074
- let formData = new FormData();
9075
- if (this.fileList && this.fileList.length > 0) {
9076
- let file = this.fileList[0];
9077
- formData.append('Files', file, file.name);
9078
- }
9079
- this.EntityTypeSetupService.postTaskComments(this.fileList, data).subscribe((x) => {
9080
- this.Comments = null;
9081
- this.CommentsTitle = null;
9082
- this.TaskCommentFile = null;
9083
- this.getComments();
9084
- }, (error) => error.error);
8821
+ getSingleMenuItemData(RecId) {
8822
+ let url = environment.ServerUrl + "security/menuitemsmap/" + RecId;
8823
+ return this.http.get(url);
9085
8824
  }
9086
- // commentsActivityItem:any = null;
9087
- openDefaultComments() {
9088
- this.commentsActivityItem = this.ActivityFields.filter((x) => x.ActionType == '5')[0];
9089
- // if (comments && comments.length > 0) {
9090
- // this.commentsActivityItem = null;
9091
- // setTimeout(() => (this.commentsActivityItem = comments[0]), 0);
9092
- // this.commentsActivityItem = comments[0];
9093
- // this.openPopupCreatePage(comments[0]);
9094
- // }
9095
- // else {
9096
- // this.openPopupCreatePage(this.ActivityFields[0]);
9097
- // }
8825
+ createMenuItemData(data) {
8826
+ let url = environment.ServerUrl + "security/menuitemsmap/add";
8827
+ return this.http.post(url, data);
9098
8828
  }
9099
- getWfStageAction(EntityTypeId, StageId) {
9100
- if (EntityTypeId == null)
9101
- return;
9102
- this.EntityTypeSetupService.urlGetWfStageAction(EntityTypeId, StageId).subscribe((res) => {
9103
- // res = [{"Action":10,"ActionDescription":"InProgress","StageRecId":1,"ActionComplete":null,"ProcessId":null,"StageId":1,"StageTypeId":1,"ActionRecId":1,"StageDescription":"New"}]
9104
- this.wfStageAction = res;
9105
- console.log(res);
9106
- }, (error) => {
9107
- error.error;
9108
- });
8829
+ updateMenuItemData(data) {
8830
+ let url = environment.ServerUrl + "security/menuitemsmap/update";
8831
+ return this.http.put(url, data);
9109
8832
  }
9110
- getStatusField(data) {
9111
- this.action = data.ActionRecId;
9112
- this.workflowEntityFormId = data.WorkFlowForm;
9113
- this.showWorkflowPopup = true;
9114
- this.EntityTypeSetupService.onshowWorkflowPopup.next({
9115
- showWorkflowPopup: true,
9116
- fieldConfig: [],
9117
- });
8833
+ deleteMenuItemData(RecId) {
8834
+ let url = environment.ServerUrl + "security/menuitemsmap?recIds=" + RecId;
8835
+ return this.http.delete(url);
9118
8836
  }
9119
- backToList() {
9120
- this.route.navigate(['/EntityTypeSetup/task', this.EntityTypeRecId]);
8837
+ }
8838
+ 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 });
8839
+ AttachmentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: AttachmentService, providedIn: 'root' });
8840
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: AttachmentService, decorators: [{
8841
+ type: Injectable,
8842
+ args: [{
8843
+ providedIn: 'root'
8844
+ }]
8845
+ }], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
8846
+ const Common = {
8847
+ getAttachmentByMenuRecId: (MenuOrEntityRecId, attachmentType) => `${environment.ServerUrl}security/documenttype/showattachement?MenuOrEntityRecId=${MenuOrEntityRecId}&attachmentType=${attachmentType}`,
8848
+ uploadAttachFile: () => `${environment.ServerUrl}security/documenttype/uploadfile`,
8849
+ getUploadFileList: (DoctypeRecId, RefRecId) => `${environment.ServerUrl}security/documenttype/uploadfilelist/${DoctypeRecId}/${RefRecId}`,
8850
+ activateUploadFile: (RecId) => `${environment.ServerUrl}security/documenttype/activefile?RecId=${RecId}`,
8851
+ inActivateUploadFile: (RecId) => `${environment.ServerUrl}security/documenttype/inactivefile?RecId=${RecId}`,
8852
+ getDocumentType: () => `${environment.ServerUrl}security/documenttype`,
8853
+ getDocumentTypeByRecId: (RecId) => `${environment.ServerUrl}security/documenttype/${RecId}`,
8854
+ deleteDocumentType: (RecId) => `${environment.ServerUrl}security/documenttype?recIds=${RecId}`,
8855
+ createDocumentType: () => `${environment.ServerUrl}security/documenttype/add`,
8856
+ updateDocumentType: () => `${environment.ServerUrl}security/documenttype/update`,
8857
+ getAttachmentSetupList: () => `${environment.ServerUrl}entitytype/productivitymenuitems`,
8858
+ getDocumentTypeAssignUnAssign: (MenuRecId) => `${environment.ServerUrl}security/documenttype/menu/assignandunassign?MenuOrEntityRecId=${MenuRecId}`,
8859
+ assignDocumentType: () => `${environment.ServerUrl}security/documenttype/menu/assign`,
8860
+ unassignDocumentType: () => `${environment.ServerUrl}security/documenttype/menu/unassign`,
8861
+ getDocumentTypeAssignUnAssignForEntityType: (EntityRecId) => `${environment.ServerUrl}security/documenttype/entitytype/assignandunassign?MenuOrEntityRecId=${EntityRecId}`,
8862
+ getDocumentAssignList: (EntityRecId) => `${environment.ServerUrl}security/documenttype/entitytype/assignandunassign?MenuOrEntityRecId=${EntityRecId}`,
8863
+ assignDocumentTypeForEntityType: () => `${environment.ServerUrl}security/documenttype/entitytype/assign`,
8864
+ unassignDocumentTypeForEntityType: () => `${environment.ServerUrl}security/documenttype/entitytype/unassign`,
8865
+ assignDocumentTypeForEntityTypewithdocumenttypeformbody: () => `${environment.ServerUrl}security/documenttype/documenttypeformbody/entitytype/assign`,
8866
+ unassignDocumentTypeForEntityTypedocumenttypeformbody: () => `${environment.ServerUrl}security/documenttype/documenttypeformbody/entitytype/unassign`,
8867
+ };
8868
+ const BaseUrl = {
8869
+ commonURL: "/api/v1/common",
8870
+ };
8871
+
8872
+ class SupportRequestCreateComponent {
8873
+ constructor(entityTypeSetup, attachmentService, router, route, supportService, globalService) {
8874
+ this.entityTypeSetup = entityTypeSetup;
8875
+ this.attachmentService = attachmentService;
8876
+ this.router = router;
8877
+ this.route = route;
8878
+ this.supportService = supportService;
8879
+ this.globalService = globalService;
8880
+ this.EntityFormId = null;
8881
+ this.EntityTypeId = null;
8882
+ this.ViewFrom = "Page";
8883
+ this.Type = "Create";
8884
+ this.FormValues = null;
8885
+ this.IssueType = null;
8886
+ this.IssueGroup = null;
8887
+ this.IssueSubGroup = null;
8888
+ this.IssueTypeEn = null;
8889
+ this.IssueGroupEn = null;
8890
+ this.IssueSubGroupEn = null;
8891
+ this.IssueTypeAr = null;
8892
+ this.IssueGroupAr = null;
8893
+ this.IssueSubGroupAr = null;
8894
+ this.Source = null;
8895
+ this.CreatedByUserType = null;
8896
+ this.Channel = null;
8897
+ this.ChannelEn = null;
8898
+ this.ChannelAr = null;
8899
+ this.RequestField = null;
8900
+ this.RequesterId = null;
8901
+ this.RequesterIdEn = null;
8902
+ this.closeCreate = new EventEmitter();
8903
+ this.ParameterData = null;
8904
+ this.DocumentList = [];
8905
+ this.createFormData = {};
8906
+ this.pageForm = {};
8907
+ this.translatePipe = new TranslatePipe(this.globalService);
9121
8908
  }
9122
- ngOnDestroy() {
9123
- this.globalService.showBackIcon = false;
8909
+ ngOnInit() {
8910
+ this.route.paramMap.subscribe((res) => {
8911
+ if (this.ViewFrom != "Popup") {
8912
+ this.EntityTypeId = Number(res.get('EntityTypeId'));
8913
+ 8;
8914
+ }
8915
+ // this.EntityTypeId = Number(res.get('EntityTypeId'));
8916
+ });
8917
+ this.getActiveEntityForm();
8918
+ this.getAssignedDocumentList();
8919
+ this.ParameterData = {
8920
+ IssueType: this.IssueType,
8921
+ IssueTypeEn: this.IssueTypeEn,
8922
+ IssueTypeAr: this.IssueTypeAr,
8923
+ IssueGroup: this.IssueGroup,
8924
+ IssueGroupEn: this.IssueGroupEn,
8925
+ IssueGroupAr: this.IssueGroupAr,
8926
+ Issue: this.IssueSubGroup,
8927
+ IssueEn: this.IssueSubGroupEn,
8928
+ IssueAr: this.IssueSubGroupAr,
8929
+ CreatedByUserType: this.CreatedByUserType,
8930
+ Source: this.Source,
8931
+ Channel: this.Channel,
8932
+ ChannelEn: this.ChannelEn,
8933
+ ChannelAr: this.ChannelAr,
8934
+ UserType: this.RequesterIdEn,
8935
+ CustomerId: this.RequesterId,
8936
+ };
9124
8937
  }
9125
- closeModelPopup() {
9126
- this.actionPopup = false;
8938
+ getActiveEntityForm() {
8939
+ this.entityTypeSetup.getActiveEntityFormByDetails(this.EntityTypeId).subscribe((res) => {
8940
+ this.EntityFormId = res.RecId;
8941
+ }, (error) => {
8942
+ console.log(error);
8943
+ });
9127
8944
  }
9128
- GetFormattedDate(_date) {
9129
- var todayTime = new Date(_date);
9130
- var month = todayTime.getMonth() + 1;
9131
- var day = todayTime.getDate();
9132
- var year = todayTime.getFullYear();
9133
- return year + "-" + month + "-" + day;
8945
+ getAssignedDocumentList() {
8946
+ this.attachmentService.getAttachmentList(this.EntityTypeId, 2).subscribe((success) => {
8947
+ this.DocumentList = success;
8948
+ this.DocumentList.map(x => {
8949
+ x.FileList = [];
8950
+ return x;
8951
+ });
8952
+ }, (error) => {
8953
+ });
9134
8954
  }
9135
- assignSubmit() {
9136
- if (this.assignmentForm.value.TargetDate != "" && this.assignmentForm.value.TargetDate != null) {
9137
- this.targetDate = this.GetFormattedDate(this.assignmentForm.value.TargetDate);
9138
- this.submitData = {
9139
- recId: this.RecId,
9140
- ActionStatus: this.actionFormActionId,
9141
- AssignedTo: this.assignmentForm.value.AssignedTo,
9142
- Description: this.assignmentForm.value.Description,
9143
- Comments: this.assignmentForm.value.Comments,
9144
- };
8955
+ docFileChange(event, item) {
8956
+ let _file = event.target.files;
8957
+ item.FileList = [];
8958
+ if (_file && _file.length > 0) {
8959
+ let _Sfile = _file;
8960
+ for (let index = 0; index < _file.length; index++) {
8961
+ let _file = {
8962
+ File: _Sfile.item(index),
8963
+ FileName: _Sfile.item(index).name
8964
+ };
8965
+ item.FileList.push(_file);
8966
+ }
8967
+ item.File = _file.item(0);
8968
+ item.FileName = _file.item(0).name;
9145
8969
  }
9146
8970
  else {
9147
- this.submitData = {
9148
- recId: this.RecId,
9149
- ActionStatus: this.actionFormActionId,
9150
- AssignedTo: this.assignmentForm.value.AssignedTo,
9151
- TargetDate: this.targetDate,
9152
- Description: this.assignmentForm.value.Description,
9153
- Comments: this.assignmentForm.value.Comments,
9154
- };
8971
+ item.FileList = [];
8972
+ item.File = null;
8973
+ item.FileName = null;
9155
8974
  }
9156
- this.taskService.TaskAssignmentUpdateStatus(this.submitData, this.EntityTypeRecId).subscribe((x) => {
9157
- this.assignmentForm.reset();
9158
- this.closeModelPopup();
9159
- this.taskService.showCommentPopup = false;
9160
- this.taskService.close();
9161
- this.getAssignmentByRefRecIdList(this.HistoryListCriteria);
9162
- // Swal.fire(x);
9163
- Swal.fire({
9164
- title: this.translatePipe.transform(x),
9165
- });
9166
- this.getTaskDetails();
9167
- this.getComments();
9168
- }, (error) => {
9169
- this.assignmentForm.reset();
9170
- this.closeModelPopup();
9171
- this.taskService.showCommentPopup = false;
9172
- this.taskService.close();
9173
- // Swal.fire(error.error);
8975
+ }
8976
+ closeCreatePage() {
8977
+ // this.router.navigate([AllRoutes.Entity.DynamicTicketList]);
8978
+ this.closeCreate.emit({ Type: "Cancel" });
8979
+ }
8980
+ submitTicketCreate() {
8981
+ let CreateData = this.createFormData;
8982
+ if (!this.pageForm.valid) {
8983
+ // Swal.fire('Fill all mandatory fields', '', 'warning');
9174
8984
  Swal.fire({
9175
- title: this.translatePipe.transform(error.error),
8985
+ title: this.translatePipe.transform('Fill all mandatory fields'),
9176
8986
  });
9177
- // alert("err");
9178
- // error.error
9179
- });
9180
- }
9181
- getAssignmentByRefRecIdList(Criteria) {
9182
- this.HistoryListCriteria = Criteria;
9183
- if (this.RecId != null) {
9184
- this.globalService.dataLoader = true;
9185
- this.taskService.assignmentbyrefrecid(Criteria, this.RecId, this.EntityTypeRecId).subscribe((x) => {
9186
- // alert("get");
9187
- this.loadGrid(x.Data, x.TotalCount);
9188
- this.globalService.dataLoader = false;
9189
- }, (error) => {
9190
- // Swal.fire(error);
9191
- // error.error
8987
+ return;
8988
+ }
8989
+ if (this.Type == "Edit") {
8990
+ if (!this.FormValues || !this.FormValues.RecId) {
8991
+ // Swal.fire("", "Form record not found", "warning");
9192
8992
  Swal.fire({
9193
- title: this.translatePipe.transform(error.error),
8993
+ title: this.translatePipe.transform('Form record not found'),
8994
+ });
8995
+ return;
8996
+ }
8997
+ CreateData.EntityTypeId = this.EntityTypeId;
8998
+ CreateData.RecId = this.FormValues.RecId;
8999
+ let _data = JSON.stringify(CreateData);
9000
+ this.entityTypeSetup.updateDynamic(_data).subscribe((res) => {
9001
+ // Swal.fire("Updated sucessfully");
9002
+ Swal.fire({
9003
+ title: this.translatePipe.transform('Updated sucessfully'),
9194
9004
  });
9005
+ this.pageForm.reset();
9006
+ this.closeCreate.emit({ Type: "Edit" });
9007
+ this.supportService.displayListPopUp = true;
9008
+ }, (error) => {
9009
+ console.log(error);
9195
9010
  });
9196
9011
  }
9197
- }
9198
- loadGrid(data, TotalRecord) {
9199
- if (data) {
9200
- if (data.length > 0)
9201
- this.gridServiceService.onGridRefresh.next({
9202
- isTrue: true,
9203
- list: data,
9204
- grid: 8,
9205
- count: data.length,
9206
- totalRecordCount: TotalRecord,
9012
+ else {
9013
+ CreateData.EntityTypeId = this.EntityTypeId;
9014
+ CreateData.IssueType = this.IssueType;
9015
+ CreateData.IssueGroup = this.IssueGroup;
9016
+ CreateData.Issue = this.IssueSubGroup;
9017
+ CreateData.Source = this.Source;
9018
+ CreateData.CreatedByUserType = this.CreatedByUserType;
9019
+ CreateData.Channel = this.Channel;
9020
+ if (this.RequestField && this.RequesterId) {
9021
+ CreateData[this.RequestField] = this.RequesterId;
9022
+ }
9023
+ let _data = JSON.stringify(CreateData);
9024
+ let checkFileMandatory = true;
9025
+ for (let index = 0; index < this.DocumentList.length; index++) {
9026
+ let doc = this.DocumentList[index];
9027
+ if (doc.IsManatory) {
9028
+ if (!(doc.FileList && doc.FileList.length > 0)) {
9029
+ checkFileMandatory = false;
9030
+ break;
9031
+ }
9032
+ }
9033
+ }
9034
+ if (!checkFileMandatory) {
9035
+ Swal.fire({
9036
+ title: this.translatePipe.transform('Attach the mandatory files'),
9207
9037
  });
9208
- else
9209
- this.gridServiceService.onGridRefresh.next({
9210
- isTrue: true,
9211
- list: [],
9212
- grid: 8,
9213
- count: 0,
9214
- totalRecordCount: 0,
9038
+ return;
9039
+ }
9040
+ let fileObj = [];
9041
+ this.DocumentList.map(x => {
9042
+ if (x.FileList && x.FileList.length > 0) {
9043
+ for (let index = 0; index < x.FileList.length; index++) {
9044
+ const element = x.FileList[index];
9045
+ let temp = { File: element.File, DoctypeRecId: x.RecId };
9046
+ fileObj.push(temp);
9047
+ }
9048
+ }
9049
+ });
9050
+ fileObj = fileObj.filter(x => (x && x.DoctypeRecId));
9051
+ const formData = new FormData();
9052
+ fileObj.forEach((f) => formData.append('fileUpload', f.File));
9053
+ this.entityTypeSetup.createDynamic(_data, formData, fileObj).subscribe((res) => {
9054
+ Swal.fire({
9055
+ title: this.translatePipe.transform('Created Successfully'),
9056
+ confirmButtonText: this.translatePipe.transform("Ok"),
9215
9057
  });
9216
- }
9217
- else
9218
- this.gridServiceService.onGridRefresh.next({
9219
- isTrue: true,
9220
- list: [],
9221
- grid: 8,
9222
- count: 0,
9223
- totalRecordCount: 0,
9058
+ this.pageForm.reset();
9059
+ this.closeCreate.emit({ Type: "Create", Data: res });
9060
+ this.supportService.displayListPopUp = true;
9061
+ // Swal.fire({
9062
+ // title: 'Created Successfully,Do you want to Continue? ',
9063
+ // showDenyButton: true,
9064
+ // showCancelButton: true,
9065
+ // denyButtonText: `Yes Go Details `,
9066
+ // cancelButtonText: `Create New`,
9067
+ // confirmButtonText: `No`,
9068
+ // }).then((result) => {
9069
+ // if (result.isConfirmed) {
9070
+ // this.pageForm.reset();
9071
+ // this.closeCreate.emit({ Type: "Create" });
9072
+ // } else if (result.isDenied) {
9073
+ // this.pageForm.reset();
9074
+ // this.router.navigate([
9075
+ // AllRoutes.Entity.DynamicTicketDetails,
9076
+ // res.RecId,
9077
+ // res.EntityTypeId,
9078
+ // ])
9079
+ // } else if (result.isDismissed) {
9080
+ // this.pageForm.reset();
9081
+ // }
9082
+ // })
9083
+ }, (error) => {
9084
+ console.log(error);
9224
9085
  });
9225
- }
9226
- getTaskAssignData() {
9227
- this.taskService.getTaskAssignData().subscribe((x) => this.taskAssignData = x);
9228
- }
9229
- submitComment(event) {
9230
- debugger;
9231
- if (event.keyCode == 13 && this.inputValue) {
9232
- this.globalService.submitComments.next({ message: this.inputValue });
9233
- this.inputValue = null;
9234
9086
  }
9235
9087
  }
9088
+ emitTicketCreateForm(CreateData, pageForm) {
9089
+ this.createFormData = CreateData;
9090
+ this.pageForm = pageForm;
9091
+ }
9236
9092
  }
9237
- 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 });
9238
- 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" }] });
9239
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SupportRequestDetailsComponent, decorators: [{
9093
+ 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 });
9094
+ 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" }] });
9095
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SupportRequestCreateComponent, decorators: [{
9240
9096
  type: Component,
9241
- 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"] }]
9242
- }], ctorParameters: function () { return [{ type: TaskService }, { type: EntityTypeSetupService }, { type: i3.FormBuilder }, { type: i2.ActivatedRoute }, { type: GridServiceService }, { type: TicketApiService }, { type: GlobalService }, { type: i2.Router }]; }, propDecorators: { EntityTypeRecId: [{
9097
+ 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"] }]
9098
+ }], ctorParameters: function () { return [{ type: EntityTypeSetupService }, { type: AttachmentService }, { type: i2.Router }, { type: i2.ActivatedRoute }, { type: SupportRequestService }, { type: GlobalService }]; }, propDecorators: { EntityFormId: [{
9243
9099
  type: Input
9244
- }], RecId: [{
9100
+ }], EntityTypeId: [{
9245
9101
  type: Input
9246
9102
  }], ViewFrom: [{
9247
9103
  type: Input
9248
- }], IsWfAction: [{
9104
+ }], Type: [{
9105
+ type: Input
9106
+ }], FormValues: [{
9107
+ type: Input
9108
+ }], IssueType: [{
9109
+ type: Input
9110
+ }], IssueGroup: [{
9111
+ type: Input
9112
+ }], IssueSubGroup: [{
9113
+ type: Input
9114
+ }], IssueTypeEn: [{
9115
+ type: Input
9116
+ }], IssueGroupEn: [{
9117
+ type: Input
9118
+ }], IssueSubGroupEn: [{
9119
+ type: Input
9120
+ }], IssueTypeAr: [{
9121
+ type: Input
9122
+ }], IssueGroupAr: [{
9123
+ type: Input
9124
+ }], IssueSubGroupAr: [{
9125
+ type: Input
9126
+ }], Source: [{
9127
+ type: Input
9128
+ }], CreatedByUserType: [{
9129
+ type: Input
9130
+ }], Channel: [{
9131
+ type: Input
9132
+ }], ChannelEn: [{
9133
+ type: Input
9134
+ }], ChannelAr: [{
9135
+ type: Input
9136
+ }], RequestField: [{
9137
+ type: Input
9138
+ }], RequesterId: [{
9139
+ type: Input
9140
+ }], RequesterIdEn: [{
9249
9141
  type: Input
9142
+ }], closeCreate: [{
9143
+ type: Output
9250
9144
  }] } });
9251
9145
 
9252
- class AttachmentService {
9253
- constructor(http) {
9254
- this.http = http;
9255
- this.IsPopUp = false;
9146
+ class CreateFormComponent {
9147
+ constructor(globalService, supportService) {
9148
+ this.globalService = globalService;
9149
+ this.supportService = supportService;
9150
+ this.IsDropdownModel = true;
9151
+ this.Language = 'Eng';
9152
+ this.Channel = '3';
9153
+ this.ChannelEn = 'Portal';
9154
+ this.ChannelAr = 'صفحة العميل';
9155
+ this.closeCreateModel = new EventEmitter();
9156
+ this.selectedType = null;
9157
+ this.selectedSubGroup = null;
9158
+ this.selectedGroup = null;
9159
+ this.IssueTypeDDL = [];
9160
+ this.DropdownIssueSubgroup = [];
9161
+ this.isShowCreateRequest = false;
9162
+ this.CreateItemId = null;
9163
+ this.selectCaseItem = null;
9164
+ this.IssueType = "7";
9165
+ this.selectedCategory = null;
9166
+ this.IssueGroupName = "Ticket SubGroup";
9167
+ this.IssueAllList = [];
9168
+ this.IssueCaseList = [];
9256
9169
  }
9257
- getAttachmentList(MenuOrEntityRecId, attachmentType) {
9258
- const url = Common.getAttachmentByMenuRecId(MenuOrEntityRecId, attachmentType);
9259
- return this.http.get(url);
9170
+ ngOnInit() {
9171
+ if (this.PageType == "Complaint") {
9172
+ this.IssueType = "2";
9173
+ }
9174
+ else if (this.PageType == "Request") {
9175
+ this.IssueType = "7";
9176
+ }
9177
+ else if (this.PageType == "SelfService") {
9178
+ this.IssueType = "11";
9179
+ }
9180
+ else
9181
+ this.IssueType = "7";
9182
+ if (this.RequesterTypeId == "0000001") {
9183
+ this.RequesterTypeIdEn = "IndividualCustomer";
9184
+ }
9185
+ else if (this.RequesterTypeId == "0000002") {
9186
+ this.RequesterTypeIdEn = "BusinessCustomer";
9187
+ }
9188
+ else {
9189
+ this.RequesterTypeIdEn = null;
9190
+ }
9191
+ if (this.RequesterTypeId && this.PageType != "SelfService") {
9192
+ this.getIssueType();
9193
+ }
9194
+ if (this.PageType == "SelfService") {
9195
+ this.getIssueGroupRequesterMappingByRequesterType();
9196
+ }
9260
9197
  }
9261
- uploadAttachFile(obj, files) {
9262
- const url = Common.uploadAttachFile();
9263
- let data = {
9264
- refRecId: obj.refRecId,
9265
- DocumentType: obj.DocumentType,
9266
- DocumentVersion: obj.DocumentVersion,
9267
- Title: obj.Title,
9268
- FileName: obj.FileName
9269
- };
9270
- return this.http.post(url, files, { params: data });
9198
+ ClickedOut(event) {
9199
+ // console.log(event.target.className);
9200
+ if (event.target.className === "modal fade show") {
9201
+ this.closeModel();
9202
+ }
9271
9203
  }
9272
- getUploadFileList(DoctypeRecId, RefRecId) {
9273
- const url = Common.getUploadFileList(DoctypeRecId, RefRecId);
9274
- let obj = {
9275
- DoctypeRecId: DoctypeRecId,
9276
- RefRecId: RefRecId
9277
- };
9278
- return this.http.get(url, { observe: 'response' }); //obj,
9204
+ closeModel(data, IsReload) {
9205
+ this.isShowCreateRequest = false;
9206
+ this.selectedCaseSelfService = null;
9207
+ this.closeCreateModel.emit({ IsClose: false, Data: data, IsReload: IsReload, PageType: this.PageType });
9279
9208
  }
9280
- ActivateUplaodFile(RecId) {
9281
- const url = Common.activateUploadFile(RecId);
9282
- return this.http.get(url);
9209
+ selectSubGroup(item, IsHideForm) {
9210
+ item.showRequest = !item.showRequest;
9211
+ this.selectedSubGroup = item;
9212
+ if (IsHideForm) {
9213
+ return;
9214
+ }
9215
+ else {
9216
+ this.IsDropdownModel = false;
9217
+ this.showCreateRequest(this.selectedSubGroup);
9218
+ }
9283
9219
  }
9284
- InActivateUplaodFile(RecId) {
9285
- const url = Common.inActivateUploadFile(RecId);
9286
- return this.http.get(url);
9220
+ showCreateRequest(item) {
9221
+ item.showSubGroup = !item.showSubGroup;
9222
+ this.isShowCreateRequest = true;
9223
+ this.selectCaseItem = item;
9224
+ this.CreateItemId = item.CaseId;
9287
9225
  }
9288
- getDocumentType(criteriastr) {
9289
- // let obj={
9290
- // "Pagging":{"PageNo":criteriastr.Pagging.PageNo,"PageSize":criteriastr.Pagging.PageSize},
9291
- // "Where":[],
9292
- // "SortOrder":{"field":null,"direction":null}
9293
- // };
9294
- // let criteria:any= JSON.stringify(obj);
9295
- const url = Common.getDocumentType();
9296
- return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
9226
+ closePopupCreateView(Type, Data) {
9227
+ this.CreateItemId = null;
9228
+ this.isShowCreateRequest = false;
9229
+ this.selectedCaseSelfService = null;
9230
+ if (Type == 'Create') {
9231
+ if (Data && Data.RecId && Data.EntityTypeId) {
9232
+ let _data = Data;
9233
+ _data.RefRecId = Data.RecId;
9234
+ _data.CaseTypeId = Data.EntityTypeId;
9235
+ this.closeModel(_data, true);
9236
+ }
9237
+ }
9238
+ else {
9239
+ this.closeModel();
9240
+ }
9297
9241
  }
9298
- getDocumentbyRecId(RecId) {
9299
- const url = Common.getDocumentTypeByRecId(RecId);
9300
- return this.http.get(url);
9242
+ getIssueType() {
9243
+ this.IsDropdownModel = true;
9244
+ this.IssueTypeDDL = [];
9245
+ this.DropdownIssueSubgroup = [];
9246
+ this.supportService.getIssueGroupRequesterMappingByRequesterType(this.RequesterTypeId).subscribe((res) => {
9247
+ this.IssueTypeDDL = res;
9248
+ if (res) {
9249
+ this.IssueTypeDDL = res.filter(x => x.IssueType == this.IssueType);
9250
+ this.selectedType = this.IssueTypeDDL[0];
9251
+ this.selectType(this.selectedType);
9252
+ }
9253
+ }, (error) => {
9254
+ console.log(error);
9255
+ });
9301
9256
  }
9302
- deleteDocumentType(RecId) {
9303
- const url = Common.deleteDocumentType(RecId);
9304
- const content_ = "";
9305
- let options_ = {
9306
- body: content_,
9307
- observe: "response",
9308
- responseType: "blob",
9309
- headers: new HttpHeaders({
9310
- "Content-Type": "application/json",
9311
- "Accept": "application/json"
9312
- })
9313
- };
9314
- return this.http.delete(url);
9257
+ selectType(item) {
9258
+ this.IssueTypeDDL = this.IssueTypeDDL.map((x) => {
9259
+ if (x.IssueType != item.IssueType) {
9260
+ x.showGroup = false;
9261
+ x.showCategory = false;
9262
+ }
9263
+ if (x.IssueGroup) {
9264
+ x.IssueGroup.map((x) => {
9265
+ x.showSubGroup = false;
9266
+ });
9267
+ }
9268
+ if (x.Category) {
9269
+ x.Category.map((x) => {
9270
+ x.showCase = false;
9271
+ });
9272
+ }
9273
+ return x;
9274
+ });
9275
+ if (item.IssueGroup) {
9276
+ item.showGroup = !item.showGroup;
9277
+ this.selectedGroup = null;
9278
+ this.selectedSubGroup = null;
9279
+ }
9280
+ if (item.Category) {
9281
+ item.showCategory = !item.showCategory;
9282
+ this.selectedCategory = null;
9283
+ this.selectCaseItem = null;
9284
+ }
9285
+ this.selectedType = item;
9315
9286
  }
9316
- createDocumentType(Obj) {
9317
- const url = Common.createDocumentType();
9318
- return this.http.post(url, Obj, { observe: 'response' });
9287
+ selectGroup(item, Type) {
9288
+ this.IssueGroupName = item.IssueGroupEn;
9289
+ Type.IssueGroup = Type.IssueGroup.map((x) => {
9290
+ if (x.IssueGroup != item.IssueGroup) {
9291
+ x.showSubGroup = false;
9292
+ }
9293
+ return x;
9294
+ });
9295
+ item.showSubGroup = !item.showSubGroup;
9296
+ this.selectedGroup = item;
9297
+ this.selectedSubGroup = null;
9298
+ this.DropdownIssueSubgroup = item.Issue;
9319
9299
  }
9320
- updateDocumentType(Obj) {
9321
- const url = Common.updateDocumentType();
9322
- return this.http.put(url, Obj, { observe: 'response' });
9300
+ getIssueGroupRequesterMappingByRequesterType() {
9301
+ this.IssueAllList = [];
9302
+ this.supportService.getIssueGroupRequesterMappingByRequesterType(this.RequesterTypeId).subscribe((res) => {
9303
+ this.IssueAllList = res.filter(x => x.IssueType == Number(this.IssueType));
9304
+ this.IssueCaseList = [];
9305
+ this.IssueAllList.forEach(x => {
9306
+ x.IssueGroup.forEach(group => {
9307
+ this.IssueCaseList.push(...group.Issue);
9308
+ });
9309
+ });
9310
+ // this.IssueCaseList.map(x => {
9311
+ // if (x.IssueImage && !x.IssueImage.includes("Account/ShowImageByPath")) {
9312
+ // x.IssueImage = "/Account/ShowImageByPath?_Path=" + x.IssueImage
9313
+ // }
9314
+ // });
9315
+ }, (error) => {
9316
+ console.log(error);
9317
+ });
9323
9318
  }
9324
- getAttachmentSetupList(criteriastr) {
9325
- // let obj={
9326
- // "Pagging":{"PageNo":criteriastr.Pagging.PageNo,"PageSize":criteriastr.Pagging.PageSize},
9327
- // "Where":[],
9328
- // "SortOrder":{"field":null,"direction":null}
9329
- // };
9330
- // let criteria:any= JSON.stringify(obj);
9331
- const url = Common.getAttachmentSetupList();
9332
- return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
9319
+ selectCase(item) {
9320
+ console.log('caselst', item);
9321
+ this.selectedCaseSelfService = item;
9333
9322
  }
9334
- getDocumentTypeAssignUnAssign(MenuRecId) {
9335
- const url = Common.getDocumentTypeAssignUnAssign(MenuRecId);
9336
- return this.http.get(url);
9323
+ openSelfServiceForm() {
9324
+ this.IsDropdownModel = false;
9325
+ this.showCreateRequest(this.selectedCaseSelfService);
9337
9326
  }
9338
- assignDocumentType(data) {
9339
- const st = data.DocumentTypeRecId.map(x => "DocumentTypeRecId=" + x).join("&");
9340
- let url_ = `${environment.ServerUrl}security/documenttype/menu/assign?${st}&MenuOrEntityRecId=${data.MenuOrEntityRecId}`;
9341
- return this.http.post(url_, null);
9327
+ }
9328
+ 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 });
9329
+ 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" }] });
9330
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: CreateFormComponent, decorators: [{
9331
+ type: Component,
9332
+ 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>" }]
9333
+ }], ctorParameters: function () { return [{ type: GlobalService }, { type: SupportRequestService }]; }, propDecorators: { IsDropdownModel: [{
9334
+ type: Input
9335
+ }], PageType: [{
9336
+ type: Input
9337
+ }], RequesterTypeId: [{
9338
+ type: Input
9339
+ }], RequesterTypeIdEn: [{
9340
+ type: Input
9341
+ }], RequesterId: [{
9342
+ type: Input
9343
+ }], RequesterField: [{
9344
+ type: Input
9345
+ }], Language: [{
9346
+ type: Input
9347
+ }], HostUrl: [{
9348
+ type: Input
9349
+ }], Host: [{
9350
+ type: Input
9351
+ }], Source: [{
9352
+ type: Input
9353
+ }], Channel: [{
9354
+ type: Input
9355
+ }], ChannelEn: [{
9356
+ type: Input
9357
+ }], ChannelAr: [{
9358
+ type: Input
9359
+ }], closeCreateModel: [{
9360
+ type: Output
9361
+ }] } });
9362
+
9363
+ class SendemailComponent {
9364
+ constructor(fb, supportService) {
9365
+ this.fb = fb;
9366
+ this.supportService = supportService;
9367
+ this.closeSendEmailModel = new EventEmitter();
9368
+ this.SendEmailForm = this.fb.group({
9369
+ RefTypeId: [null, [Validators.required]],
9370
+ EntityTypeId: [null, [Validators.required]],
9371
+ Subject: [null, [Validators.required]],
9372
+ Mailtext: [null, [Validators.required]],
9373
+ CC: [null, [Validators.required]],
9374
+ Attachment: [null],
9375
+ });
9376
+ this.fileToUpload = null;
9342
9377
  }
9343
- unassignDocumentType(data) {
9344
- const st = data.DocumentTypeRecId.map(x => "DocumentTypeRecId=" + x).join("&");
9345
- let url_ = `${environment.ServerUrl}security/documenttype/menu/unassign?${st}&MenuOrEntityRecId=${data.MenuOrEntityRecId}`;
9346
- return this.http.post(url_, data);
9378
+ ngOnInit() {
9379
+ if (this.EntityTypeId && this.RecId) {
9380
+ this.SendEmailForm.reset();
9381
+ this.SendEmailForm.patchValue({
9382
+ EntityTypeId: this.EntityTypeId,
9383
+ RefTypeId: this.RecId
9384
+ });
9385
+ }
9347
9386
  }
9348
- getDocumentTypeAssignUnAssignForEntityType(EntityRecId) {
9349
- const url = Common.getDocumentTypeAssignUnAssignForEntityType(EntityRecId);
9350
- return this.http.get(url);
9387
+ handleFileInput(event) {
9388
+ this.fileToUpload = event.target.files;
9389
+ }
9390
+ submit(values) {
9391
+ const data = {
9392
+ EntityTypeId: values.EntityTypeId,
9393
+ RefTypeId: values.RefTypeId,
9394
+ Subject: values.Subject,
9395
+ Mailtext: values.Mailtext,
9396
+ CC: values.CC,
9397
+ };
9398
+ this.supportService.sendEmail(data, this.fileToUpload).subscribe((res => {
9399
+ this.closeModel();
9400
+ this.SendEmailForm.reset();
9401
+ Swal.fire('Created Successfully', 'Success');
9402
+ }), (error => {
9403
+ console.log(error);
9404
+ this.closeModel();
9405
+ this.SendEmailForm.reset();
9406
+ Swal.fire(errorMessageType(error));
9407
+ }));
9408
+ }
9409
+ closeModel() {
9410
+ this.closeSendEmailModel.emit({ IsClose: false, Data: null, IsReload: false });
9411
+ }
9412
+ }
9413
+ 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 });
9414
+ 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" }] });
9415
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SendemailComponent, decorators: [{
9416
+ type: Component,
9417
+ 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>" }]
9418
+ }], ctorParameters: function () { return [{ type: i3.FormBuilder }, { type: SupportRequestService }]; }, propDecorators: { EntityTypeId: [{
9419
+ type: Input
9420
+ }], RecId: [{
9421
+ type: Input
9422
+ }], closeSendEmailModel: [{
9423
+ type: Output
9424
+ }] } });
9425
+
9426
+ class SupportRequestDetailsComponent {
9427
+ constructor(taskService, EntityTypeSetupService, fb, actRoute, gridServiceService, ticketService, globalService, route) {
9428
+ this.taskService = taskService;
9429
+ this.EntityTypeSetupService = EntityTypeSetupService;
9430
+ this.fb = fb;
9431
+ this.actRoute = actRoute;
9432
+ this.gridServiceService = gridServiceService;
9433
+ this.ticketService = ticketService;
9434
+ this.globalService = globalService;
9435
+ this.route = route;
9436
+ this.ViewFrom = "Page";
9437
+ this.IsWfAction = false;
9438
+ this.Language = 'Eng';
9439
+ this.Channel = '3';
9440
+ this.ChannelEn = 'Portal';
9441
+ this.ChannelAr = 'صفحة العميل';
9442
+ this.closeCreateModel = new EventEmitter();
9443
+ this.environment = environment;
9444
+ // _TaskDetail: TaskVM =null;
9445
+ this._TaskDetail = null;
9446
+ this.stageId = null;
9447
+ this.EntityTypeId = null;
9448
+ this.EntityTypeIdRecId = null;
9449
+ this.refRecId = null;
9450
+ this.EntityFormId = null;
9451
+ this.EntityPageGroupsData = [];
9452
+ this.EntityDefaultPageGroupsData = [];
9453
+ this.pageTitle = "Process Stage";
9454
+ this.pageDesp = "Process Stage";
9455
+ this.selectMode = E_SelectMode.Multi;
9456
+ this.isAttach = false;
9457
+ this.isCreate = false;
9458
+ this.isEdit = false;
9459
+ this.isDelete = false;
9460
+ this.isExport = false;
9461
+ this.gridActionList = [];
9462
+ this.columnDefs = [
9463
+ { Field: 'ProcessStage', Name: 'Process Stage Id' },
9464
+ { Field: 'ProcessStageEn', Name: 'Process Stage' },
9465
+ { Field: 'Comments', Name: 'Comments' },
9466
+ { Field: 'StartDate', Name: 'Start Date', DataType: E_DataType.date },
9467
+ { Field: 'EndDate', Name: 'End Date', DataType: E_DataType.date },
9468
+ ];
9469
+ this.commentsData = [];
9470
+ this.commentsDataCount = 0;
9471
+ this.Searchcriteria = {
9472
+ Pagging: {
9473
+ PageNo: 1,
9474
+ PageSize: 10,
9475
+ },
9476
+ Where: [],
9477
+ SortOrder: 1,
9478
+ };
9479
+ this.displayPopupCreateView = false;
9480
+ this.CreateItemId = null;
9481
+ this.selectedActivityItem = null;
9482
+ this.commentsActivityItem = null;
9483
+ this.detailsEntityTypeId = null;
9484
+ this.Activity = null;
9485
+ this.ActivityType = [];
9486
+ this.ActivityTypeReadonly = [];
9487
+ this.TotalActivity = 0;
9488
+ this.StatusAndStageList = [];
9489
+ this.showStageDetails = false;
9490
+ this.selectedProcessList = [];
9491
+ this.tabDisplayView = 1;
9492
+ this.SortingField = { field: null, direction: null };
9493
+ this.activitySearchcriteria = {
9494
+ Pagging: {
9495
+ PageNo: 1,
9496
+ PageSize: 10,
9497
+ },
9498
+ Where: [],
9499
+ SortOrder: this.SortingField,
9500
+ };
9501
+ this.TaskList = [];
9502
+ this.ProcessStageList = [];
9503
+ this.TimelineList = [];
9504
+ this.TimelineListReadonly = [];
9505
+ this.TaskCommentFile = null;
9506
+ this.wfActionData = [
9507
+ { id: 1, name: "New" },
9508
+ { id: 2, name: "Forward" },
9509
+ { id: 3, name: "Reply" },
9510
+ { id: 4, name: "Esculation" },
9511
+ { id: 5, name: "Delegation" },
9512
+ { id: 6, name: "Complete" },
9513
+ { id: 7, name: "Cancel" },
9514
+ ];
9515
+ this.wfStageAction = null;
9516
+ this.action = null;
9517
+ this.showWorkflowPopup = false;
9518
+ this.workflowEntityFormId = null;
9519
+ this.assignmentForm = this.fb.group({
9520
+ ActionStatus: [''],
9521
+ AssignedTo: [''],
9522
+ TargetDate: [''],
9523
+ Description: [''],
9524
+ Comments: [''],
9525
+ });
9526
+ this.updateStatusAssignTo = [];
9527
+ this.actionPopup = false;
9528
+ this.targetDate = null;
9529
+ this.columnDef = [
9530
+ { Field: "Description", Name: "Description" },
9531
+ { Field: "AssignedTo", Name: "AssignedTo" },
9532
+ { Field: "TargetDate", Name: "TargetDate", DataType: E_DataType.date },
9533
+ { Field: "IsDoneEn", Name: "IsDone", },
9534
+ ];
9535
+ this.translatePipe = new TranslatePipe(this.globalService);
9536
+ this.IsShowCreatePopup = false;
9537
+ this.IsShowSendEmailPopup = false;
9538
+ }
9539
+ ngOnInit() {
9540
+ // this.actRoute.paramMap.subscribe((res) => {
9541
+ //
9542
+ // console.log(res);
9543
+ // if (this.ViewFrom != 'Popup') {
9544
+ // this.RecId = Number(res.get('RecId'));
9545
+ // this.EntityTypeRecId = Number(res.get('EntityTypeRecId'));
9546
+ // }
9547
+ // });
9548
+ this.getTaskDetails();
9549
+ this.getActivity();
9550
+ this.getWorkflowStatusWithStage();
9551
+ // this.getAssignGroupData();
9552
+ // this.getTaskAssignData();
9553
+ }
9554
+ getTaskDetails() {
9555
+ if (this.RecId != null) {
9556
+ this.EntityTypeSetupService.getDynamicById(this.EntityTypeRecId, this.RecId).subscribe((x) => {
9557
+ // alert("a");
9558
+ // ;
9559
+ this._TaskDetail = x;
9560
+ this.stageId = x.ProcessStage;
9561
+ this.EntityTypeId = x.EntityTypeId;
9562
+ this.EntityTypeIdRecId = x.EntityTypeRecId;
9563
+ this.refRecId = x.RecId;
9564
+ this.GetPageList(this.storeCriteria);
9565
+ if (this._TaskDetail && this._TaskDetail.uploadFiles && this._TaskDetail.uploadFiles.length > 0) {
9566
+ this._TaskDetail.uploadFiles.map(x => {
9567
+ if (x.Ext) {
9568
+ x.ExtSm = x.Ext.toLowerCase();
9569
+ x.ExtSm = x.ExtSm.replace('.', '');
9570
+ }
9571
+ });
9572
+ }
9573
+ this.getActivities();
9574
+ this.getEntityFormDetails();
9575
+ // this.getComments();
9576
+ if (this.IsWfAction) {
9577
+ this.getWfStageAction(x.EntityTypeId, x.ProcessStage);
9578
+ }
9579
+ }, (error) => error.error);
9580
+ }
9581
+ }
9582
+ getEntityFormDetails() {
9583
+ this.EntityDefaultPageGroupsData = [];
9584
+ this.EntityPageGroupsData = [];
9585
+ this.EntityTypeSetupService.getActiveEntityFormByDetails(this.EntityTypeId).subscribe((res) => {
9586
+ if (res.FormData) {
9587
+ let _FormData = JSON.parse(res.FormData);
9588
+ if (_FormData.PageGroup) {
9589
+ if (Array.isArray(_FormData.PageGroup)) {
9590
+ this.EntityPageGroupsData = _FormData.PageGroup;
9591
+ }
9592
+ }
9593
+ if (_FormData.defaultPageGroups) {
9594
+ if (Array.isArray(_FormData.defaultPageGroups)) {
9595
+ this.EntityDefaultPageGroupsData = _FormData.defaultPageGroups;
9596
+ }
9597
+ }
9598
+ }
9599
+ this.EntityFormId = res.RecId;
9600
+ }, (error) => {
9601
+ console.log(error);
9602
+ });
9603
+ }
9604
+ getWorkflowActionComments(comments, updateFileds, updateFieldsObject) {
9605
+ // alert("zz");
9606
+ let updateFieldsObjectString = JSON.stringify(updateFieldsObject);
9607
+ this.EntityTypeSetupService.urlPostTaskWfAction(this.RecId, this.stageId, this.action, comments, updateFileds, updateFieldsObjectString, this.EntityTypeId).subscribe((res) => {
9608
+ // this.wfActionData = res;
9609
+ this.getTaskDetails();
9610
+ console.log(res);
9611
+ }, (error) => {
9612
+ error.error;
9613
+ if (error.error?.status == false) {
9614
+ let msg = JSON.parse(error.error?.msg);
9615
+ if (msg && msg.msg) {
9616
+ msg = msg.msg;
9617
+ }
9618
+ else {
9619
+ msg = error.error?.msg;
9620
+ }
9621
+ Swal.fire(this.translatePipe.transform(msg));
9622
+ }
9623
+ else {
9624
+ Swal.fire(this.translatePipe.transform(error.ExceptionMessage), this.translatePipe.transform(error.message));
9625
+ }
9626
+ });
9351
9627
  }
9352
- assignDocumentTypeForEntityType(data) {
9353
- const st = data.DocumentTypeRecId.map(x => "DocumentTypeRecId=" + x).join("&");
9354
- let url_ = `${environment.ServerUrl}security/documenttype/entitytype/assign?${st}&MenuOrEntityRecId=${data.MenuOrEntityRecId}`;
9355
- return this.http.post(url_, null);
9628
+ getComments() {
9629
+ // alert("getcommends");
9630
+ if (this.refRecId != null) {
9631
+ this.ticketService.urlGetTicketUpdateByRecId(this.refRecId).subscribe((x) => {
9632
+ // alert("getcommends");
9633
+ this.commentsData = x.Data;
9634
+ this.commentsDataCount = x.TotalCount;
9635
+ }, (error) => {
9636
+ // Swal.fire(error);
9637
+ Swal.fire({
9638
+ title: this.translatePipe.transform(error.error),
9639
+ });
9640
+ // error.error
9641
+ });
9642
+ }
9356
9643
  }
9357
- unassignDocumentTypeForEntityType(data) {
9358
- const st = data.DocumentTypeRecId.map(x => "DocumentTypeRecId=" + x).join("&");
9359
- let url_ = `${environment.ServerUrl}security/documenttype/entitytype/unassign?${st}&MenuOrEntityRecId=${data.MenuOrEntityRecId}`;
9360
- return this.http.post(url_, data);
9644
+ getActivity() {
9645
+ //this.EntityType = data.EntityType;
9646
+ this.EntityTypeSetupService.getAllAssinedActivites(this.Searchcriteria, this.EntityTypeRecId)
9647
+ // this.EntityTypeSetupService.getActiveEntityTypeSetup(this.Searchcriteria, this.EntityType, "")
9648
+ .subscribe((res) => {
9649
+ this.ActivityFields = res.Data;
9650
+ if (this.ActivityFields.length > 0) {
9651
+ const sortBy = ['Task', 'SMS', 'Email', 'Notes', 'Comments']; //sort by descending order
9652
+ this.ActivityFields = this.ActivityFields.sort((a, b) => sortBy.indexOf(b.Description) - sortBy.indexOf(a.Description));
9653
+ let taskActivity = { Description: 'Task', RecId: 58, Type: 'Task' };
9654
+ this.ActivityFields.push(taskActivity);
9655
+ this.openDefaultComments();
9656
+ }
9657
+ });
9361
9658
  }
9362
- assignDocumentTypeForEntityTypeWithBody(data, EntityTypeId) {
9363
- let url_ = `${environment.ServerUrl}security/documenttypeformbody/entitytype/assign?MenuOrEntityRecId=${EntityTypeId}`;
9364
- return this.http.post(url_, data);
9659
+ getActivityFileUploads(item) {
9660
+ if (item.showform && item.RecId && item.ActivityTypeId) {
9661
+ this.EntityTypeSetupService.getActivityUploadFile(item.RecId, this.EntityTypeRecId, item.ActivityTypeId)
9662
+ .subscribe((res) => {
9663
+ if (res && res.length > 0) {
9664
+ item.uploadFiles = res;
9665
+ }
9666
+ });
9667
+ }
9365
9668
  }
9366
- unassignDocumentTypeForEntityTypeWithBody(data, EntityTypeId) {
9367
- let url_ = `${environment.ServerUrl}security/documenttypeformbody/entitytype/unassign?MenuOrEntityRecId=${EntityTypeId}`;
9368
- return this.http.post(url_, data);
9669
+ getActivityFileUploadsReadonly(item) {
9670
+ if (item.RecId && item.ActivityTypeId) {
9671
+ this.EntityTypeSetupService.getActivityUploadFile(item.RecId, this.EntityTypeRecId, item.ActivityTypeId)
9672
+ .subscribe((res) => {
9673
+ if (res && res.length > 0) {
9674
+ item.uploadFiles = res;
9675
+ }
9676
+ this.ActivityTypeReadonly.push(item);
9677
+ });
9678
+ }
9369
9679
  }
9370
- getDocumentAssignList(Criteria, EntityRecId) {
9371
- const url = Common.getDocumentAssignList(EntityRecId);
9372
- return this.http.get(url);
9680
+ addEvents(data) {
9681
+ this.openPopupCreatePage(data);
9373
9682
  }
9374
- open() {
9375
- this.IsPopUp = true;
9683
+ openPopupCreatePage(item) {
9684
+ this.CreateItemId = null;
9685
+ setTimeout(() => (this.CreateItemId = item.RecId), 0);
9686
+ this.selectedActivityItem = item;
9687
+ if (item.Description != 'Comments')
9688
+ this.displayPopupCreateView = true;
9689
+ // this.Activity=item.RecId;
9376
9690
  }
9377
- close() {
9378
- this.IsPopUp = false;
9691
+ closePopupCreateView(Type) {
9692
+ this.CreateItemId = null;
9693
+ this.displayPopupCreateView = false;
9694
+ if (Type == 'Create') {
9695
+ this.getActivities();
9696
+ this.openDefaultComments();
9697
+ }
9379
9698
  }
9380
- getSideMenuData() {
9381
- let url = environment.ServerUrl + "entitytype/productivitymenuitems";
9382
- return this.http.get(url);
9699
+ slider(direction, Id) {
9700
+ this.slide(direction, Id);
9383
9701
  }
9384
- getMenuItemData(criteriastr) {
9385
- let url = environment.ServerUrl + "security/menuitemsmap";
9386
- return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
9702
+ slide(direction, Id) {
9703
+ let container = document.getElementById(Id);
9704
+ let scrollCompleted = 0;
9705
+ let slideVar = setInterval(function () {
9706
+ if (direction == 'left') {
9707
+ container.scrollLeft -= 50;
9708
+ }
9709
+ else {
9710
+ container.scrollLeft += 50;
9711
+ }
9712
+ scrollCompleted += 10;
9713
+ if (scrollCompleted >= 50) {
9714
+ window.clearInterval(slideVar);
9715
+ }
9716
+ }, 50);
9387
9717
  }
9388
- getSingleMenuItemData(RecId) {
9389
- let url = environment.ServerUrl + "security/menuitemsmap/" + RecId;
9390
- return this.http.get(url);
9718
+ getWorkflowStatusWithStage() {
9719
+ this.EntityTypeSetupService.getAllWfStage(null, this.EntityTypeRecId, true)
9720
+ .subscribe((res) => {
9721
+ // alert("StatusAndStageList");
9722
+ this.StatusAndStageList = res.Data;
9723
+ // .sort((a, b) => {
9724
+ // if (a.StageId < b.StageId) return -1;
9725
+ // else if (a.StageId > b.StageId) return 1;
9726
+ // else return 0;
9727
+ // });
9728
+ let showallIndex = this.StatusAndStageList.findIndex(x => x.OrderId == -1);
9729
+ this.StatusAndStageList.splice(showallIndex, 1);
9730
+ let showPendingIndex = this.StatusAndStageList.findIndex(x => x.OrderId == 0);
9731
+ this.StatusAndStageList.splice(showPendingIndex, 1);
9732
+ }, (error) => {
9733
+ console.log(error);
9734
+ Swal.fire(this.translatePipe.transform(error.error?.ExceptionMessage), this.translatePipe.transform(error?.message), 'error');
9735
+ });
9391
9736
  }
9392
- createMenuItemData(data) {
9393
- let url = environment.ServerUrl + "security/menuitemsmap/add";
9394
- return this.http.post(url, data);
9737
+ selectProcess(item) {
9738
+ if (this.selectedProcess)
9739
+ this.showStageDetails = false;
9740
+ if (this.selectedProcess && this.selectedProcess.ProcessStage == item.StageId) {
9741
+ setTimeout(() => (this.selectedProcess = null), 500);
9742
+ }
9743
+ else {
9744
+ this.showStageDetails = true;
9745
+ this.selectedProcessList = this.ProcessStageList.filter((x) => x.ProcessStage == item.StageId);
9746
+ this.selectedProcess =
9747
+ this.selectedProcessList[this.selectedProcessList.length - 1];
9748
+ }
9395
9749
  }
9396
- updateMenuItemData(data) {
9397
- let url = environment.ServerUrl + "security/menuitemsmap/update";
9398
- return this.http.put(url, data);
9750
+ closeProcess() {
9751
+ this.showStageDetails = false;
9752
+ setTimeout(() => (this.selectedProcess = null), 500);
9399
9753
  }
9400
- deleteMenuItemData(RecId) {
9401
- let url = environment.ServerUrl + "security/menuitemsmap?recIds=" + RecId;
9402
- return this.http.delete(url);
9754
+ gridChangeTabs(data) {
9755
+ this.tabDisplayView = Number(data);
9403
9756
  }
9404
- }
9405
- 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 });
9406
- AttachmentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: AttachmentService, providedIn: 'root' });
9407
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: AttachmentService, decorators: [{
9408
- type: Injectable,
9409
- args: [{
9410
- providedIn: 'root'
9411
- }]
9412
- }], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
9413
- const Common = {
9414
- getAttachmentByMenuRecId: (MenuOrEntityRecId, attachmentType) => `${environment.ServerUrl}security/documenttype/showattachement?MenuOrEntityRecId=${MenuOrEntityRecId}&attachmentType=${attachmentType}`,
9415
- uploadAttachFile: () => `${environment.ServerUrl}security/documenttype/uploadfile`,
9416
- getUploadFileList: (DoctypeRecId, RefRecId) => `${environment.ServerUrl}security/documenttype/uploadfilelist/${DoctypeRecId}/${RefRecId}`,
9417
- activateUploadFile: (RecId) => `${environment.ServerUrl}security/documenttype/activefile?RecId=${RecId}`,
9418
- inActivateUploadFile: (RecId) => `${environment.ServerUrl}security/documenttype/inactivefile?RecId=${RecId}`,
9419
- getDocumentType: () => `${environment.ServerUrl}security/documenttype`,
9420
- getDocumentTypeByRecId: (RecId) => `${environment.ServerUrl}security/documenttype/${RecId}`,
9421
- deleteDocumentType: (RecId) => `${environment.ServerUrl}security/documenttype?recIds=${RecId}`,
9422
- createDocumentType: () => `${environment.ServerUrl}security/documenttype/add`,
9423
- updateDocumentType: () => `${environment.ServerUrl}security/documenttype/update`,
9424
- getAttachmentSetupList: () => `${environment.ServerUrl}entitytype/productivitymenuitems`,
9425
- getDocumentTypeAssignUnAssign: (MenuRecId) => `${environment.ServerUrl}security/documenttype/menu/assignandunassign?MenuOrEntityRecId=${MenuRecId}`,
9426
- assignDocumentType: () => `${environment.ServerUrl}security/documenttype/menu/assign`,
9427
- unassignDocumentType: () => `${environment.ServerUrl}security/documenttype/menu/unassign`,
9428
- getDocumentTypeAssignUnAssignForEntityType: (EntityRecId) => `${environment.ServerUrl}security/documenttype/entitytype/assignandunassign?MenuOrEntityRecId=${EntityRecId}`,
9429
- getDocumentAssignList: (EntityRecId) => `${environment.ServerUrl}security/documenttype/entitytype/assignandunassign?MenuOrEntityRecId=${EntityRecId}`,
9430
- assignDocumentTypeForEntityType: () => `${environment.ServerUrl}security/documenttype/entitytype/assign`,
9431
- unassignDocumentTypeForEntityType: () => `${environment.ServerUrl}security/documenttype/entitytype/unassign`,
9432
- assignDocumentTypeForEntityTypewithdocumenttypeformbody: () => `${environment.ServerUrl}security/documenttype/documenttypeformbody/entitytype/assign`,
9433
- unassignDocumentTypeForEntityTypedocumenttypeformbody: () => `${environment.ServerUrl}security/documenttype/documenttypeformbody/entitytype/unassign`,
9434
- };
9435
- const BaseUrl = {
9436
- commonURL: "/api/v1/common",
9437
- };
9438
-
9439
- class SupportRequestCreateComponent {
9440
- constructor(entityTypeSetup, attachmentService, router, route, supportService, globalService) {
9441
- this.entityTypeSetup = entityTypeSetup;
9442
- this.attachmentService = attachmentService;
9443
- this.router = router;
9444
- this.route = route;
9445
- this.supportService = supportService;
9446
- this.globalService = globalService;
9447
- this.EntityFormId = null;
9448
- this.EntityTypeId = null;
9449
- this.ViewFrom = "Page";
9450
- this.Type = "Create";
9451
- this.FormValues = null;
9452
- this.IssueType = null;
9453
- this.IssueGroup = null;
9454
- this.IssueSubGroup = null;
9455
- this.IssueTypeEn = null;
9456
- this.IssueGroupEn = null;
9457
- this.IssueSubGroupEn = null;
9458
- this.IssueTypeAr = null;
9459
- this.IssueGroupAr = null;
9460
- this.IssueSubGroupAr = null;
9461
- this.Source = null;
9462
- this.CreatedByUserType = null;
9463
- this.Channel = null;
9464
- this.ChannelEn = null;
9465
- this.ChannelAr = null;
9466
- this.RequestField = null;
9467
- this.RequesterId = null;
9468
- this.RequesterIdEn = null;
9469
- this.closeCreate = new EventEmitter();
9470
- this.ParameterData = null;
9471
- this.DocumentList = [];
9472
- this.createFormData = {};
9473
- this.pageForm = {};
9474
- this.translatePipe = new TranslatePipe(this.globalService);
9757
+ loadMoreActivities() {
9758
+ this.activitySearchcriteria.Pagging.PageSize += 10;
9759
+ this.getActivities();
9475
9760
  }
9476
- ngOnInit() {
9477
- this.route.paramMap.subscribe((res) => {
9478
- if (this.ViewFrom != "Popup") {
9479
- this.EntityTypeId = Number(res.get('EntityTypeId'));
9480
- 8;
9481
- }
9482
- // this.EntityTypeId = Number(res.get('EntityTypeId'));
9761
+ getActivities() {
9762
+ // let ActivityId = 5;
9763
+ this.EntityTypeSetupService
9764
+ .getDynamicByEntityRefrecidwithoutCriteria(this.EntityTypeRecId, this.refRecId, this.activitySearchcriteria, this.Activity)
9765
+ .subscribe((res) => {
9766
+ this.ActivityType = res.Data;
9767
+ if (res && res.Data)
9768
+ this.ActivityTypeReadonly = [];
9769
+ res.Data.forEach(x => {
9770
+ this.getActivityFileUploadsReadonly(x);
9771
+ });
9772
+ this.setTimeline();
9773
+ this.TotalActivity = res.TotalCount;
9774
+ console.log('Activity', res.Data);
9483
9775
  });
9484
- this.getActiveEntityForm();
9485
- this.getAssignedDocumentList();
9486
- this.ParameterData = {
9487
- IssueType: this.IssueType,
9488
- IssueTypeEn: this.IssueTypeEn,
9489
- IssueTypeAr: this.IssueTypeAr,
9490
- IssueGroup: this.IssueGroup,
9491
- IssueGroupEn: this.IssueGroupEn,
9492
- IssueGroupAr: this.IssueGroupAr,
9493
- Issue: this.IssueSubGroup,
9494
- IssueEn: this.IssueSubGroupEn,
9495
- IssueAr: this.IssueSubGroupAr,
9496
- CreatedByUserType: this.CreatedByUserType,
9497
- Source: this.Source,
9498
- Channel: this.Channel,
9499
- ChannelEn: this.ChannelEn,
9500
- ChannelAr: this.ChannelAr,
9501
- UserType: this.RequesterIdEn,
9502
- CustomerId: this.RequesterId,
9776
+ (error) => {
9777
+ error.error;
9503
9778
  };
9504
9779
  }
9505
- getActiveEntityForm() {
9506
- this.entityTypeSetup.getActiveEntityFormByDetails(this.EntityTypeId).subscribe((res) => {
9507
- this.EntityFormId = res.RecId;
9508
- }, (error) => {
9509
- console.log(error);
9780
+ setTimeline() {
9781
+ this.TimelineList = [];
9782
+ this.TimelineListReadonly = [];
9783
+ if (Array.isArray(this.ActivityType)) {
9784
+ if (this.ActivityType.length > 0)
9785
+ this.TimelineList.push(...this.ActivityType);
9786
+ this.TimelineListReadonly.push(...this.ActivityType);
9787
+ }
9788
+ if (Array.isArray(this.ActivityTypeReadonly)) {
9789
+ if (this.ActivityTypeReadonly.length > 0)
9790
+ this.TimelineListReadonly.push(...this.ActivityTypeReadonly);
9791
+ }
9792
+ // if (Array.isArray(this.TaskList)) {
9793
+ // if (this.TaskList.length > 0) this.TimelineList.push(...this.TaskList);
9794
+ // }
9795
+ // if (Array.isArray(this.ProcessStageList)) {
9796
+ // if (this.ProcessStageList.length > 0) {
9797
+ // this.ProcessStageList = this.ProcessStageList.map((x) => {
9798
+ // x.Type = 'Workflow';
9799
+ // x.ActivityTypeIdEn = 'Comments';
9800
+ // return x;
9801
+ // });
9802
+ // this.TimelineList.push(...this.ProcessStageList);
9803
+ // }
9804
+ // }
9805
+ this.TimelineList.sort((a, b) => {
9806
+ if (a.CreatedDatetime < b.CreatedDatetime)
9807
+ return -1;
9808
+ else if (a.CreatedDatetime > b.CreatedDatetime)
9809
+ return 1;
9810
+ else
9811
+ return 0;
9812
+ });
9813
+ this.TimelineListReadonly.sort((a, b) => {
9814
+ if (a.CreatedDatetime < b.CreatedDatetime)
9815
+ return -1;
9816
+ else if (a.CreatedDatetime > b.CreatedDatetime)
9817
+ return 1;
9818
+ else
9819
+ return 0;
9510
9820
  });
9511
9821
  }
9512
- getAssignedDocumentList() {
9513
- this.attachmentService.getAttachmentList(this.EntityTypeId, 2).subscribe((success) => {
9514
- this.DocumentList = success;
9515
- this.DocumentList.map(x => {
9516
- x.FileList = [];
9517
- return x;
9822
+ GetPageList(Criteria) {
9823
+ if (this.EntityTypeId != null) {
9824
+ this.storeCriteria = Criteria;
9825
+ // let data: Observable<IEntityWFstageVM[]>;
9826
+ this.EntityTypeSetupService.getWfInsProcessStageComments(Criteria, this.EntityTypeId, this.refRecId).subscribe((res) => {
9827
+ // alert("grid data");
9828
+ this.ProcessStageList = res.Data;
9829
+ this.setTimeline();
9830
+ console.log(res);
9831
+ this.loadGrid(res.Data, res.TotalCount);
9832
+ }, (error) => {
9833
+ console.log(error);
9834
+ this.loadGrid([], 0);
9835
+ Swal.fire(this.translatePipe.transform(error.error?.ExceptionMessage), this.translatePipe.transform(error?.message), 'error');
9518
9836
  });
9837
+ }
9838
+ }
9839
+ fileChange(event) {
9840
+ this.fileList = event.target.files;
9841
+ }
9842
+ commentSubmit() {
9843
+ let data = {
9844
+ commnets: this.Comments,
9845
+ refRecId: this.RecId,
9846
+ entitytyperecid: this.EntityTypeRecId
9847
+ };
9848
+ // this.service.urlComments(data).subscribe(
9849
+ // (x: any) => this.taskAssignData = x);
9850
+ let formData = new FormData();
9851
+ if (this.fileList && this.fileList.length > 0) {
9852
+ let file = this.fileList[0];
9853
+ formData.append('Files', file, file.name);
9854
+ }
9855
+ this.EntityTypeSetupService.postTaskComments(this.fileList, data).subscribe((x) => {
9856
+ this.Comments = null;
9857
+ this.CommentsTitle = null;
9858
+ this.TaskCommentFile = null;
9859
+ this.getComments();
9860
+ }, (error) => error.error);
9861
+ }
9862
+ // commentsActivityItem:any = null;
9863
+ openDefaultComments() {
9864
+ this.commentsActivityItem = this.ActivityFields.filter((x) => x.ActionType == '5')[0];
9865
+ // if (comments && comments.length > 0) {
9866
+ // this.commentsActivityItem = null;
9867
+ // setTimeout(() => (this.commentsActivityItem = comments[0]), 0);
9868
+ // this.commentsActivityItem = comments[0];
9869
+ // this.openPopupCreatePage(comments[0]);
9870
+ // }
9871
+ // else {
9872
+ // this.openPopupCreatePage(this.ActivityFields[0]);
9873
+ // }
9874
+ }
9875
+ getWfStageAction(EntityTypeId, StageId) {
9876
+ if (EntityTypeId == null)
9877
+ return;
9878
+ this.EntityTypeSetupService.urlGetWfStageAction(EntityTypeId, StageId).subscribe((res) => {
9879
+ // res = [{"Action":10,"ActionDescription":"InProgress","StageRecId":1,"ActionComplete":null,"ProcessId":null,"StageId":1,"StageTypeId":1,"ActionRecId":1,"StageDescription":"New"}]
9880
+ this.wfStageAction = res;
9881
+ console.log(res);
9519
9882
  }, (error) => {
9883
+ error.error;
9520
9884
  });
9521
9885
  }
9522
- docFileChange(event, item) {
9523
- let _file = event.target.files;
9524
- item.FileList = [];
9525
- if (_file && _file.length > 0) {
9526
- let _Sfile = _file;
9527
- for (let index = 0; index < _file.length; index++) {
9528
- let _file = {
9529
- File: _Sfile.item(index),
9530
- FileName: _Sfile.item(index).name
9531
- };
9532
- item.FileList.push(_file);
9533
- }
9534
- item.File = _file.item(0);
9535
- item.FileName = _file.item(0).name;
9886
+ getStatusField(data) {
9887
+ this.action = data.ActionRecId;
9888
+ this.workflowEntityFormId = data.WorkFlowForm;
9889
+ this.showWorkflowPopup = true;
9890
+ this.EntityTypeSetupService.onshowWorkflowPopup.next({
9891
+ showWorkflowPopup: true,
9892
+ fieldConfig: [],
9893
+ });
9894
+ }
9895
+ backToList() {
9896
+ this.route.navigate(['/EntityTypeSetup/task', this.EntityTypeRecId]);
9897
+ }
9898
+ ngOnDestroy() {
9899
+ this.globalService.showBackIcon = false;
9900
+ }
9901
+ closeModelPopup() {
9902
+ this.actionPopup = false;
9903
+ }
9904
+ GetFormattedDate(_date) {
9905
+ var todayTime = new Date(_date);
9906
+ var month = todayTime.getMonth() + 1;
9907
+ var day = todayTime.getDate();
9908
+ var year = todayTime.getFullYear();
9909
+ return year + "-" + month + "-" + day;
9910
+ }
9911
+ assignSubmit() {
9912
+ if (this.assignmentForm.value.TargetDate != "" && this.assignmentForm.value.TargetDate != null) {
9913
+ this.targetDate = this.GetFormattedDate(this.assignmentForm.value.TargetDate);
9914
+ this.submitData = {
9915
+ recId: this.RecId,
9916
+ ActionStatus: this.actionFormActionId,
9917
+ AssignedTo: this.assignmentForm.value.AssignedTo,
9918
+ Description: this.assignmentForm.value.Description,
9919
+ Comments: this.assignmentForm.value.Comments,
9920
+ };
9536
9921
  }
9537
9922
  else {
9538
- item.FileList = [];
9539
- item.File = null;
9540
- item.FileName = null;
9923
+ this.submitData = {
9924
+ recId: this.RecId,
9925
+ ActionStatus: this.actionFormActionId,
9926
+ AssignedTo: this.assignmentForm.value.AssignedTo,
9927
+ TargetDate: this.targetDate,
9928
+ Description: this.assignmentForm.value.Description,
9929
+ Comments: this.assignmentForm.value.Comments,
9930
+ };
9541
9931
  }
9542
- }
9543
- closeCreatePage() {
9544
- // this.router.navigate([AllRoutes.Entity.DynamicTicketList]);
9545
- this.closeCreate.emit({ Type: "Cancel" });
9546
- }
9547
- submitTicketCreate() {
9548
- let CreateData = this.createFormData;
9549
- if (!this.pageForm.valid) {
9550
- // Swal.fire('Fill all mandatory fields', '', 'warning');
9932
+ this.taskService.TaskAssignmentUpdateStatus(this.submitData, this.EntityTypeRecId).subscribe((x) => {
9933
+ this.assignmentForm.reset();
9934
+ this.closeModelPopup();
9935
+ this.taskService.showCommentPopup = false;
9936
+ this.taskService.close();
9937
+ this.getAssignmentByRefRecIdList(this.HistoryListCriteria);
9938
+ // Swal.fire(x);
9551
9939
  Swal.fire({
9552
- title: this.translatePipe.transform('Fill all mandatory fields'),
9940
+ title: this.translatePipe.transform(x),
9553
9941
  });
9554
- return;
9555
- }
9556
- if (this.Type == "Edit") {
9557
- if (!this.FormValues || !this.FormValues.RecId) {
9558
- // Swal.fire("", "Form record not found", "warning");
9559
- Swal.fire({
9560
- title: this.translatePipe.transform('Form record not found'),
9561
- });
9562
- return;
9563
- }
9564
- CreateData.EntityTypeId = this.EntityTypeId;
9565
- CreateData.RecId = this.FormValues.RecId;
9566
- let _data = JSON.stringify(CreateData);
9567
- this.entityTypeSetup.updateDynamic(_data).subscribe((res) => {
9568
- // Swal.fire("Updated sucessfully");
9942
+ this.getTaskDetails();
9943
+ this.getComments();
9944
+ }, (error) => {
9945
+ this.assignmentForm.reset();
9946
+ this.closeModelPopup();
9947
+ this.taskService.showCommentPopup = false;
9948
+ this.taskService.close();
9949
+ // Swal.fire(error.error);
9950
+ Swal.fire({
9951
+ title: this.translatePipe.transform(error.error),
9952
+ });
9953
+ // alert("err");
9954
+ // error.error
9955
+ });
9956
+ }
9957
+ getAssignmentByRefRecIdList(Criteria) {
9958
+ this.HistoryListCriteria = Criteria;
9959
+ if (this.RecId != null) {
9960
+ this.globalService.dataLoader = true;
9961
+ this.taskService.assignmentbyrefrecid(Criteria, this.RecId, this.EntityTypeRecId).subscribe((x) => {
9962
+ // alert("get");
9963
+ this.loadGrid(x.Data, x.TotalCount);
9964
+ this.globalService.dataLoader = false;
9965
+ }, (error) => {
9966
+ // Swal.fire(error);
9967
+ // error.error
9569
9968
  Swal.fire({
9570
- title: this.translatePipe.transform('Updated sucessfully'),
9969
+ title: this.translatePipe.transform(error.error),
9571
9970
  });
9572
- this.pageForm.reset();
9573
- this.closeCreate.emit({ Type: "Edit" });
9574
- this.supportService.displayListPopUp = true;
9575
- }, (error) => {
9576
- console.log(error);
9577
9971
  });
9578
9972
  }
9579
- else {
9580
- CreateData.EntityTypeId = this.EntityTypeId;
9581
- CreateData.IssueType = this.IssueType;
9582
- CreateData.IssueGroup = this.IssueGroup;
9583
- CreateData.Issue = this.IssueSubGroup;
9584
- CreateData.Source = this.Source;
9585
- CreateData.CreatedByUserType = this.CreatedByUserType;
9586
- CreateData.Channel = this.Channel;
9587
- if (this.RequestField && this.RequesterId) {
9588
- CreateData[this.RequestField] = this.RequesterId;
9589
- }
9590
- let _data = JSON.stringify(CreateData);
9591
- let checkFileMandatory = true;
9592
- for (let index = 0; index < this.DocumentList.length; index++) {
9593
- let doc = this.DocumentList[index];
9594
- if (doc.IsManatory) {
9595
- if (!(doc.FileList && doc.FileList.length > 0)) {
9596
- checkFileMandatory = false;
9597
- break;
9598
- }
9599
- }
9600
- }
9601
- if (!checkFileMandatory) {
9602
- Swal.fire({
9603
- title: this.translatePipe.transform('Attach the mandatory files'),
9973
+ }
9974
+ loadGrid(data, TotalRecord) {
9975
+ if (data) {
9976
+ if (data.length > 0)
9977
+ this.gridServiceService.onGridRefresh.next({
9978
+ isTrue: true,
9979
+ list: data,
9980
+ grid: 8,
9981
+ count: data.length,
9982
+ totalRecordCount: TotalRecord,
9604
9983
  });
9605
- return;
9606
- }
9607
- let fileObj = [];
9608
- this.DocumentList.map(x => {
9609
- if (x.FileList && x.FileList.length > 0) {
9610
- for (let index = 0; index < x.FileList.length; index++) {
9611
- const element = x.FileList[index];
9612
- let temp = { File: element.File, DoctypeRecId: x.RecId };
9613
- fileObj.push(temp);
9614
- }
9615
- }
9616
- });
9617
- fileObj = fileObj.filter(x => (x && x.DoctypeRecId));
9618
- const formData = new FormData();
9619
- fileObj.forEach((f) => formData.append('fileUpload', f.File));
9620
- this.entityTypeSetup.createDynamic(_data, formData, fileObj).subscribe((res) => {
9621
- Swal.fire({
9622
- title: this.translatePipe.transform('Created Successfully'),
9623
- confirmButtonText: this.translatePipe.transform("Ok"),
9984
+ else
9985
+ this.gridServiceService.onGridRefresh.next({
9986
+ isTrue: true,
9987
+ list: [],
9988
+ grid: 8,
9989
+ count: 0,
9990
+ totalRecordCount: 0,
9624
9991
  });
9625
- this.pageForm.reset();
9626
- this.closeCreate.emit({ Type: "Create", Data: res });
9627
- this.supportService.displayListPopUp = true;
9628
- // Swal.fire({
9629
- // title: 'Created Successfully,Do you want to Continue? ',
9630
- // showDenyButton: true,
9631
- // showCancelButton: true,
9632
- // denyButtonText: `Yes Go Details `,
9633
- // cancelButtonText: `Create New`,
9634
- // confirmButtonText: `No`,
9635
- // }).then((result) => {
9636
- // if (result.isConfirmed) {
9637
- // this.pageForm.reset();
9638
- // this.closeCreate.emit({ Type: "Create" });
9639
- // } else if (result.isDenied) {
9640
- // this.pageForm.reset();
9641
- // this.router.navigate([
9642
- // AllRoutes.Entity.DynamicTicketDetails,
9643
- // res.RecId,
9644
- // res.EntityTypeId,
9645
- // ])
9646
- // } else if (result.isDismissed) {
9647
- // this.pageForm.reset();
9648
- // }
9649
- // })
9650
- }, (error) => {
9651
- console.log(error);
9992
+ }
9993
+ else
9994
+ this.gridServiceService.onGridRefresh.next({
9995
+ isTrue: true,
9996
+ list: [],
9997
+ grid: 8,
9998
+ count: 0,
9999
+ totalRecordCount: 0,
9652
10000
  });
10001
+ }
10002
+ getTaskAssignData() {
10003
+ this.taskService.getTaskAssignData().subscribe((x) => this.taskAssignData = x);
10004
+ }
10005
+ submitComment(event) {
10006
+ if (event.keyCode == 13 && this.inputValue) {
10007
+ this.globalService.submitComments.next({ message: this.inputValue });
10008
+ this.inputValue = null;
9653
10009
  }
9654
10010
  }
9655
- emitTicketCreateForm(CreateData, pageForm) {
9656
- this.createFormData = CreateData;
9657
- this.pageForm = pageForm;
10011
+ showCreatePopup() {
10012
+ this.IsShowCreatePopup = true;
10013
+ }
10014
+ hideCreatePopup(IsHide, Data, IsReload, PageType) {
10015
+ this.IsShowCreatePopup = IsHide;
10016
+ if (Data && PageType == 'SelfService') {
10017
+ if (Data.RecId && Data.EntityTypeRecId) {
10018
+ this.RecId = Data.RecId;
10019
+ this.EntityTypeIdRecId = Data.EntityTypeRecId;
10020
+ this.IsWfAction = true;
10021
+ this.getTaskDetails();
10022
+ this.getActivity();
10023
+ this.getWorkflowStatusWithStage();
10024
+ }
10025
+ }
10026
+ else {
10027
+ this.closeCreateModel.emit({ IsClose: IsHide, Data: Data, IsReload: IsReload });
10028
+ }
10029
+ }
10030
+ showEmailCreatePopup() {
10031
+ this.IsShowSendEmailPopup = true;
10032
+ }
10033
+ hideEmailCreatePopup(IsHide, Data, IsReload) {
10034
+ this.IsShowSendEmailPopup = IsHide;
9658
10035
  }
9659
10036
  }
9660
- 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 });
9661
- 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" }] });
9662
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SupportRequestCreateComponent, decorators: [{
10037
+ 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 });
10038
+ 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" }] });
10039
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SupportRequestDetailsComponent, decorators: [{
9663
10040
  type: Component,
9664
- 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"] }]
9665
- }], ctorParameters: function () { return [{ type: EntityTypeSetupService }, { type: AttachmentService }, { type: i2.Router }, { type: i2.ActivatedRoute }, { type: SupportRequestService }, { type: GlobalService }]; }, propDecorators: { EntityFormId: [{
10041
+ 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"] }]
10042
+ }], ctorParameters: function () { return [{ type: TaskService }, { type: EntityTypeSetupService }, { type: i3.FormBuilder }, { type: i2.ActivatedRoute }, { type: GridServiceService }, { type: TicketApiService }, { type: GlobalService }, { type: i2.Router }]; }, propDecorators: { EntityTypeRecId: [{
9666
10043
  type: Input
9667
- }], EntityTypeId: [{
10044
+ }], RecId: [{
9668
10045
  type: Input
9669
10046
  }], ViewFrom: [{
9670
10047
  type: Input
9671
- }], Type: [{
9672
- type: Input
9673
- }], FormValues: [{
9674
- type: Input
9675
- }], IssueType: [{
10048
+ }], IsWfAction: [{
9676
10049
  type: Input
9677
- }], IssueGroup: [{
10050
+ }], PageType: [{
9678
10051
  type: Input
9679
- }], IssueSubGroup: [{
10052
+ }], RequesterTypeId: [{
9680
10053
  type: Input
9681
- }], IssueTypeEn: [{
10054
+ }], RequesterTypeIdEn: [{
9682
10055
  type: Input
9683
- }], IssueGroupEn: [{
10056
+ }], RequesterId: [{
9684
10057
  type: Input
9685
- }], IssueSubGroupEn: [{
10058
+ }], RequesterField: [{
9686
10059
  type: Input
9687
- }], IssueTypeAr: [{
10060
+ }], Language: [{
9688
10061
  type: Input
9689
- }], IssueGroupAr: [{
10062
+ }], HostUrl: [{
9690
10063
  type: Input
9691
- }], IssueSubGroupAr: [{
10064
+ }], Host: [{
9692
10065
  type: Input
9693
10066
  }], Source: [{
9694
10067
  type: Input
9695
- }], CreatedByUserType: [{
9696
- type: Input
9697
10068
  }], Channel: [{
9698
10069
  type: Input
9699
10070
  }], ChannelEn: [{
9700
10071
  type: Input
9701
10072
  }], ChannelAr: [{
9702
10073
  type: Input
9703
- }], RequestField: [{
9704
- type: Input
9705
- }], RequesterId: [{
9706
- type: Input
9707
- }], RequesterIdEn: [{
9708
- type: Input
9709
- }], closeCreate: [{
10074
+ }], closeCreateModel: [{
9710
10075
  type: Output
9711
10076
  }] } });
9712
10077
 
@@ -9717,6 +10082,7 @@ class CaseListComponent {
9717
10082
  this.globalService = globalService;
9718
10083
  this.gridServiceService = gridServiceService;
9719
10084
  this.document = document;
10085
+ this.dropdownSettings = {};
9720
10086
  this.EntityTypeId = null;
9721
10087
  this.IssueType = 11;
9722
10088
  this.Channel = '3';
@@ -9756,11 +10122,14 @@ class CaseListComponent {
9756
10122
  { Field: 'ProcessStageEn', Name: 'Process Stage En' },
9757
10123
  { Field: 'ProcessStageAr', Name: 'Process Stage Ar' },
9758
10124
  ];
10125
+ this.ContractList = [];
10126
+ this.SelectedContract = [];
10127
+ this.CurrentSelectedContract = [];
9759
10128
  this.viewTypes = [
9760
10129
  { id: 1, name: 'Tab View', class: 'la la-table' },
9761
10130
  { id: 2, name: 'Details View', class: 'la la-id-card-o' },
9762
10131
  ];
9763
- this.selectedIndex = 0;
10132
+ this.selectedIndex = 1;
9764
10133
  this.viewTypeData = 1;
9765
10134
  this.selectMode = E_SelectMode.None;
9766
10135
  this.EntityTypeDetail = null;
@@ -9793,16 +10162,34 @@ class CaseListComponent {
9793
10162
  }
9794
10163
  ngOnInit() {
9795
10164
  this.loadGrid([], 0);
10165
+ if (this.SelectedContract.length > 0) {
10166
+ this.SelectedContract.map((x) => {
10167
+ if (x) {
10168
+ this.CurrentSelectedContract.push({ ContractId: x });
10169
+ }
10170
+ });
10171
+ }
9796
10172
  if (this.EntityTypeId) {
9797
10173
  this.getEntityTypeDetails();
9798
10174
  this.getWorkflowStatusWithStage();
9799
10175
  this.getActiveEntityForm();
9800
10176
  }
9801
10177
  this.getListDatas(this.Searchcriteria);
10178
+ this.dropdownSettings = {
10179
+ singleSelection: false,
10180
+ idField: 'ContractId',
10181
+ textField: 'ContractId',
10182
+ selectAllText: 'Select All',
10183
+ unSelectAllText: 'UnSelect All',
10184
+ itemsShowLimit: 1,
10185
+ allowSearchFilter: true,
10186
+ clearSearchFilter: true,
10187
+ maxHeight: 150
10188
+ };
9802
10189
  }
9803
10190
  getListDatas(Criteria) {
9804
10191
  this.Searchcriteria = Criteria;
9805
- this.entityTypeSetup.getDynamicAll(Criteria, this.EntityTypeId, this.StatusId, this.RequesterId).subscribe((res) => {
10192
+ this.entityTypeSetup.getDynamicAll(Criteria, this.EntityTypeId, this.StatusId, this.RequesterId, this.formateContractListToString(this.CurrentSelectedContract)).subscribe((res) => {
9806
10193
  // alert("data");
9807
10194
  this.selfServiceRequestData = res.Data;
9808
10195
  this.totalRecordCount = res.TotalCount;
@@ -9852,8 +10239,33 @@ class CaseListComponent {
9852
10239
  totalRecordCount: 0,
9853
10240
  });
9854
10241
  }
10242
+ onSelectContractListDropdown(item) {
10243
+ this.getListDatas(this.Searchcriteria);
10244
+ }
10245
+ onSelectAllContractListDropdown(item) {
10246
+ this.CurrentSelectedContract = this.ContractList;
10247
+ this.getListDatas(this.Searchcriteria);
10248
+ }
10249
+ onDeSelectAllContractListDropdown() {
10250
+ this.CurrentSelectedContract = [];
10251
+ this.getListDatas(this.Searchcriteria);
10252
+ }
10253
+ formateContractListToString(contractlist) {
10254
+ let ContractlistString;
10255
+ if (contractlist.length > 0) {
10256
+ contractlist.map(x => {
10257
+ if (ContractlistString) {
10258
+ ContractlistString += ',' + x.ContractId;
10259
+ }
10260
+ else {
10261
+ ContractlistString = x.ContractId;
10262
+ }
10263
+ });
10264
+ }
10265
+ return ContractlistString;
10266
+ }
9855
10267
  viewType(data, index) {
9856
- this.selectedIndex = index;
10268
+ this.selectedIndex = data.id;
9857
10269
  this.viewTypeData = data.id;
9858
10270
  }
9859
10271
  backtoCard() {
@@ -10102,7 +10514,6 @@ class CaseListComponent {
10102
10514
  this.slide(direction, Id);
10103
10515
  }
10104
10516
  slide(direction, Id) {
10105
- debugger;
10106
10517
  let container = document.getElementById(Id);
10107
10518
  let scrollCompleted = 0;
10108
10519
  let slideVar = setInterval(function () {
@@ -10120,10 +10531,10 @@ class CaseListComponent {
10120
10531
  }
10121
10532
  }
10122
10533
  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 });
10123
- 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" }] });
10534
+ 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" }] });
10124
10535
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: CaseListComponent, decorators: [{
10125
10536
  type: Component,
10126
- 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"] }]
10537
+ 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"] }]
10127
10538
  }], ctorParameters: function () { return [{ type: SupportRequestService }, { type: EntityTypeSetupService }, { type: GlobalService }, { type: GridServiceService }, { type: undefined, decorators: [{
10128
10539
  type: Inject,
10129
10540
  args: [DOCUMENT]
@@ -10151,6 +10562,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
10151
10562
  type: Input
10152
10563
  }], IsClientPagination: [{
10153
10564
  type: Input
10565
+ }], ContractList: [{
10566
+ type: Input
10567
+ }], SelectedContract: [{
10568
+ type: Input
10154
10569
  }] } });
10155
10570
 
10156
10571
  class SelfServiceFlowComponent {
@@ -10167,6 +10582,8 @@ class SelfServiceFlowComponent {
10167
10582
  this.IssueAllList = [];
10168
10583
  this.IssueCaseList = [];
10169
10584
  this.translatePipe = new TranslatePipe(this.globalService);
10585
+ this.ContractList = [];
10586
+ this.SelectedContract = [];
10170
10587
  }
10171
10588
  ngOnInit() {
10172
10589
  this.getIssueGroupRequesterMappingByRequesterType();
@@ -10203,15 +10620,14 @@ class SelfServiceFlowComponent {
10203
10620
  var http = new XMLHttpRequest();
10204
10621
  http.open('HEAD', image_url, false);
10205
10622
  http.send();
10206
- debugger;
10207
10623
  return http.status != 404;
10208
10624
  }
10209
10625
  }
10210
10626
  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 });
10211
- 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" }] });
10627
+ 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" }] });
10212
10628
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SelfServiceFlowComponent, decorators: [{
10213
10629
  type: Component,
10214
- 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>" }]
10630
+ 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>" }]
10215
10631
  }], ctorParameters: function () { return [{ type: SupportRequestService }, { type: i3.FormBuilder }, { type: EntityTypeSetupService }, { type: GlobalService }, { type: undefined, decorators: [{
10216
10632
  type: Inject,
10217
10633
  args: [DOCUMENT]
@@ -10233,16 +10649,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
10233
10649
  type: Input
10234
10650
  }], ChannelAr: [{
10235
10651
  type: Input
10652
+ }], ContractList: [{
10653
+ type: Input
10654
+ }], SelectedContract: [{
10655
+ type: Input
10236
10656
  }] } });
10237
10657
 
10238
10658
  // import { environment } from 'arco-support-request';
10239
10659
  class RequestFlowComponent {
10240
- constructor(supportService, fb, entityTypeSetup, router, globalService, document) {
10660
+ constructor(supportService, fb, entityTypeSetup, router, globalService, gridServiceService, document) {
10241
10661
  this.supportService = supportService;
10242
10662
  this.fb = fb;
10243
10663
  this.entityTypeSetup = entityTypeSetup;
10244
10664
  this.router = router;
10245
10665
  this.globalService = globalService;
10666
+ this.gridServiceService = gridServiceService;
10246
10667
  this.document = document;
10247
10668
  this.issuType = "7";
10248
10669
  this.Language = 'Eng';
@@ -10250,6 +10671,11 @@ class RequestFlowComponent {
10250
10671
  this.Channel = '3';
10251
10672
  this.ChannelEn = 'Portal';
10252
10673
  this.ChannelAr = 'صفحة العميل';
10674
+ this.ContractList = [];
10675
+ this.SelectedContract = [];
10676
+ this.CurrentSelectedContract = [];
10677
+ this.DDContractList = [];
10678
+ this.dropdownSettings = {};
10253
10679
  this.viewHtml = true;
10254
10680
  this.translatePipe = new TranslatePipe(this.globalService);
10255
10681
  this.FieldListDDL = [
@@ -10333,6 +10759,27 @@ class RequestFlowComponent {
10333
10759
  this.isShowCreateRequest = false;
10334
10760
  this.selectCaseItem = null;
10335
10761
  this.isDetails = false;
10762
+ this.GridCheckedData = [];
10763
+ this.selectMode = E_SelectMode.None;
10764
+ this.columnDefs = [
10765
+ { Field: 'CaseId', Name: 'Case Id', FieldType: E_FieldType.details },
10766
+ { Field: 'CaseTypeIdAr', Name: 'Case Type Ar' },
10767
+ { Field: 'CaseTypeIdEn', Name: 'Case Type En' },
10768
+ { Field: 'Description', Name: 'Description' },
10769
+ { Field: 'Subject', Name: 'Subject' },
10770
+ { Field: 'StatusIdEn', Name: 'Status' },
10771
+ { Field: 'PriorityEn', Name: 'Priority En' },
10772
+ { Field: 'PriorityAr', Name: 'Priority Ar' },
10773
+ { Field: 'CreatedBy', Name: 'CreatedBy' },
10774
+ { Field: 'CreatedDatetime', Name: 'CreatedDatetime', DataType: E_DataType.dateTime },
10775
+ ];
10776
+ this.viewTypes = [
10777
+ { id: 1, name: 'Tab View', class: 'la la-table' },
10778
+ { id: 2, name: 'Details View', class: 'la la-id-card-o' },
10779
+ ];
10780
+ this.selectedIndex = 1;
10781
+ this.viewTypeData = 1;
10782
+ this.IsShowCreatePopup = false;
10336
10783
  router.events.subscribe(event => {
10337
10784
  if (event instanceof NavigationStart) {
10338
10785
  setTimeout(() => this.globalService.dataLoader = true, 0);
@@ -10350,6 +10797,13 @@ class RequestFlowComponent {
10350
10797
  }
10351
10798
  }
10352
10799
  ngOnInit() {
10800
+ if (this.SelectedContract.length > 0) {
10801
+ this.SelectedContract.map((x) => {
10802
+ if (x) {
10803
+ this.CurrentSelectedContract.push({ ContractId: x });
10804
+ }
10805
+ });
10806
+ }
10353
10807
  console.log('1', this.issuType);
10354
10808
  if (this.PageType == "Complaint") {
10355
10809
  this.issuType = "2";
@@ -10388,6 +10842,23 @@ class RequestFlowComponent {
10388
10842
  this.getategoryrequestertype();
10389
10843
  }
10390
10844
  this.globalService.getSystemConfig();
10845
+ this.ContractList.map((x) => {
10846
+ if (x) {
10847
+ this.DDContractList.push({ ContractId: x });
10848
+ }
10849
+ });
10850
+ this.dropdownSettings = {
10851
+ singleSelection: false,
10852
+ idField: 'ContractId',
10853
+ textField: 'ContractId',
10854
+ selectAllText: 'Select All',
10855
+ unSelectAllText: 'UnSelect All',
10856
+ itemsShowLimit: 1,
10857
+ // enableCheckAll:false,
10858
+ allowSearchFilter: true,
10859
+ clearSearchFilter: true,
10860
+ maxHeight: 150
10861
+ };
10391
10862
  }
10392
10863
  toggleTheme(e) {
10393
10864
  if (this.globalService.CurrentLanguage == 'Eng') {
@@ -10434,6 +10905,31 @@ class RequestFlowComponent {
10434
10905
  // document.getElementById("lib-lang-link").remove();
10435
10906
  }
10436
10907
  }
10908
+ onSelectContractListDropdown(item) {
10909
+ this.getListDatas(this.Searchcriteria);
10910
+ }
10911
+ onSelectAllContractListDropdown(item) {
10912
+ this.CurrentSelectedContract = this.DDContractList;
10913
+ this.getListDatas(this.Searchcriteria);
10914
+ }
10915
+ onDeSelectAllContractListDropdown() {
10916
+ this.CurrentSelectedContract = [];
10917
+ this.getListDatas(this.Searchcriteria);
10918
+ }
10919
+ formateContractListToString(contractlist) {
10920
+ let ContractlistString;
10921
+ if (contractlist.length > 0) {
10922
+ contractlist.map(x => {
10923
+ if (ContractlistString) {
10924
+ ContractlistString += ',' + x.ContractId;
10925
+ }
10926
+ else {
10927
+ ContractlistString = x.ContractId;
10928
+ }
10929
+ });
10930
+ }
10931
+ return ContractlistString;
10932
+ }
10437
10933
  searchData(event) {
10438
10934
  let filtervals = [];
10439
10935
  if (event.keyCode == 13 && this.SearchBox != null) {
@@ -10668,12 +11164,13 @@ class RequestFlowComponent {
10668
11164
  this.Searchcriteria.Where.push(filtervals);
10669
11165
  // let SupportRequestId = localStorage.getItem("RequesterTypeId");
10670
11166
  // this.entityTypeSetup.urlGetDynamicTicket(Criteria, this.EntityTypeId)
10671
- this.entityTypeSetup.getsupportRequestData(Criteria, this.RequesterTypeId, this.RequesterId, this.Source, this.StatusListValue).subscribe((res) => {
11167
+ this.entityTypeSetup.getsupportRequestData(Criteria, this.RequesterTypeId, this.RequesterId, this.Source, this.StatusListValue, this.formateContractListToString(this.CurrentSelectedContract)).subscribe((res) => {
10672
11168
  // alert("data");
10673
11169
  this.supportRequestData = res.Data;
10674
11170
  this.totalRecordCount = res.TotalCount;
10675
11171
  console.log('datas', res);
10676
11172
  this.getPageCount();
11173
+ this.loadGrid(res.Data, res.TotalCount);
10677
11174
  }, (error) => {
10678
11175
  console.log(error);
10679
11176
  Swal.fire({
@@ -10684,7 +11181,7 @@ class RequestFlowComponent {
10684
11181
  getStatusListCount() {
10685
11182
  // let SupportRequestId = localStorage.getItem("RequesterTypeId");
10686
11183
  this.supportService
10687
- .getStatusListCount(this.RequesterTypeId, this.RequesterId, this.issuType)
11184
+ .getStatusListCount(this.RequesterTypeId, this.RequesterId, this.issuType, this.formateContractListToString(this.CurrentSelectedContract))
10688
11185
  .subscribe((res) => {
10689
11186
  this.StatusList = res;
10690
11187
  if (this.StatusList != null && this.StatusList.length > 0) {
@@ -10748,7 +11245,6 @@ class RequestFlowComponent {
10748
11245
  this.IssueTypeDDL = [];
10749
11246
  this.dropdownIssuse = [];
10750
11247
  this.supportService.getIssueGroupRequesterMappingByRequesterType(this.RequesterTypeId).subscribe((res) => {
10751
- debugger;
10752
11248
  this.IssueTypeDDL = res;
10753
11249
  if (res) {
10754
11250
  this.IssueTypeDDL = res.filter(x => x.IssueType == this.issuType);
@@ -10829,7 +11325,6 @@ class RequestFlowComponent {
10829
11325
  item.showCategory = !item.showCategory;
10830
11326
  }
10831
11327
  selectGroup(item, Type) {
10832
- debugger;
10833
11328
  this.showChild = false;
10834
11329
  this.showsubChild = true;
10835
11330
  this.issueGroupName = item.IssueGroupEn;
@@ -10936,13 +11431,63 @@ class RequestFlowComponent {
10936
11431
  console.log(error);
10937
11432
  });
10938
11433
  }
11434
+ getgridCheckedData(item) {
11435
+ this.GridCheckedData = item;
11436
+ }
11437
+ goDetails(data) {
11438
+ this.openDetailsPopup(data);
11439
+ }
11440
+ viewType(data, index) {
11441
+ this.selectedIndex = data.id;
11442
+ this.viewTypeData = data.id;
11443
+ }
11444
+ loadGrid(data, TotalRecord) {
11445
+ if (data) {
11446
+ if (data.length > 0)
11447
+ this.gridServiceService.onGridRefresh.next({
11448
+ isTrue: true,
11449
+ list: data,
11450
+ count: data.length,
11451
+ grid: 1,
11452
+ totalRecordCount: TotalRecord,
11453
+ });
11454
+ else
11455
+ this.gridServiceService.onGridRefresh.next({
11456
+ isTrue: true,
11457
+ grid: 1,
11458
+ list: [],
11459
+ count: 0,
11460
+ totalRecordCount: 0,
11461
+ });
11462
+ }
11463
+ else
11464
+ this.gridServiceService.onGridRefresh.next({
11465
+ isTrue: true,
11466
+ grid: 1,
11467
+ list: [],
11468
+ count: 0,
11469
+ totalRecordCount: 0,
11470
+ });
11471
+ }
11472
+ showCreatePopup() {
11473
+ this.IsShowCreatePopup = true;
11474
+ }
11475
+ hideCreatePopup(IsHide, Data, IsReload) {
11476
+ this.IsShowCreatePopup = IsHide;
11477
+ if (Data) {
11478
+ this.openDetailsPopup(Data);
11479
+ }
11480
+ if (IsReload) {
11481
+ this.getListDatas(this.storeCriteria);
11482
+ }
11483
+ }
10939
11484
  }
10940
- 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 });
10941
- 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" }] });
11485
+ 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 });
11486
+ 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" }] });
10942
11487
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: RequestFlowComponent, decorators: [{
10943
11488
  type: Component,
10944
- 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" }]
10945
- }], ctorParameters: function () { return [{ type: SupportRequestService }, { type: i3.FormBuilder }, { type: EntityTypeSetupService }, { type: i2.Router }, { type: GlobalService }, { type: undefined, decorators: [{
11489
+ 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" }]
11490
+ }], ctorParameters: function () { return [{ type: SupportRequestService }, { type: i3.FormBuilder }, { type: EntityTypeSetupService }, { type: i2.Router }, { type: GlobalService }, { type: GridServiceService }, { type: undefined, decorators: [{
10946
11491
  type: Inject,
10947
11492
  args: [DOCUMENT]
10948
11493
  }] }]; }, propDecorators: { PageType: [{
@@ -10969,6 +11514,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
10969
11514
  type: Input
10970
11515
  }], ChannelAr: [{
10971
11516
  type: Input
11517
+ }], ContractList: [{
11518
+ type: Input
11519
+ }], SelectedContract: [{
11520
+ type: Input
10972
11521
  }], GridSearchType: [{
10973
11522
  type: Input
10974
11523
  }], IsClientPagination: [{
@@ -10981,7 +11530,7 @@ class SupportRequestIndexComponent {
10981
11530
  }
10982
11531
  }
10983
11532
  SupportRequestIndexComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SupportRequestIndexComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
10984
- 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 });
11533
+ 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 });
10985
11534
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SupportRequestIndexComponent, decorators: [{
10986
11535
  type: Component,
10987
11536
  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>" }]
@@ -11095,7 +11644,7 @@ class ActionComponent {
11095
11644
  }
11096
11645
  }
11097
11646
  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 });
11098
- 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"] }] });
11647
+ 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"] }] });
11099
11648
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: ActionComponent, decorators: [{
11100
11649
  type: Component,
11101
11650
  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"] }]
@@ -11133,7 +11682,9 @@ SupportRequestModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", ve
11133
11682
  CaseListComponent,
11134
11683
  GridComponent,
11135
11684
  GridDatatypeComponent,
11136
- InnerGridComponent], imports: [CommonModule,
11685
+ InnerGridComponent,
11686
+ CreateFormComponent,
11687
+ SendemailComponent], imports: [CommonModule,
11137
11688
  // SupportRequestRoutingModule,
11138
11689
  FormsModule,
11139
11690
  ReactiveFormsModule,
@@ -11147,7 +11698,8 @@ SupportRequestModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", ve
11147
11698
  MatFormFieldModule,
11148
11699
  MatInputModule, BrowserModule,
11149
11700
  BrowserAnimationsModule,
11150
- NgxPaginationModule], exports: [RequestFlowComponent,
11701
+ NgxPaginationModule,
11702
+ NgMultiSelectDropDownModule], exports: [RequestFlowComponent,
11151
11703
  SelfServiceFlowComponent,
11152
11704
  TranslatePipe,
11153
11705
  NgxPaginationModule] });
@@ -11164,7 +11716,8 @@ SupportRequestModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
11164
11716
  materialModules,
11165
11717
  BrowserModule,
11166
11718
  BrowserAnimationsModule,
11167
- NgxPaginationModule, NgxPaginationModule] });
11719
+ NgxPaginationModule,
11720
+ NgMultiSelectDropDownModule, NgxPaginationModule] });
11168
11721
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SupportRequestModule, decorators: [{
11169
11722
  type: NgModule,
11170
11723
  args: [{
@@ -11192,7 +11745,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
11192
11745
  CaseListComponent,
11193
11746
  GridComponent,
11194
11747
  GridDatatypeComponent,
11195
- InnerGridComponent
11748
+ InnerGridComponent,
11749
+ CreateFormComponent,
11750
+ SendemailComponent
11196
11751
  ],
11197
11752
  imports: [
11198
11753
  CommonModule,
@@ -11209,6 +11764,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
11209
11764
  BrowserModule,
11210
11765
  BrowserAnimationsModule,
11211
11766
  NgxPaginationModule,
11767
+ NgMultiSelectDropDownModule,
11212
11768
  ],
11213
11769
  exports: [
11214
11770
  RequestFlowComponent,