arco-support-request 0.1.6 → 0.1.7

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 (26) hide show
  1. package/esm2020/lib/entity-type-setup/activities-create/activities-create.component.mjs +1 -4
  2. package/esm2020/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.mjs +9 -3
  3. package/esm2020/lib/entity-type-setup/service/entity-type-setup.service.mjs +16 -3
  4. package/esm2020/lib/support-request/case-list/case-list.component.mjs +11 -7
  5. package/esm2020/lib/support-request/create-form/create-form.component.mjs +225 -0
  6. package/esm2020/lib/support-request/request-flow/request-flow.component.mjs +102 -18
  7. package/esm2020/lib/support-request/self-service-flow/self-service-flow.component.mjs +8 -4
  8. package/esm2020/lib/support-request/sendemail/sendemail.component.mjs +72 -0
  9. package/esm2020/lib/support-request/support-request-details/support-request-details.component.mjs +66 -9
  10. package/esm2020/lib/support-request/support-request-index/support-request-index.component.mjs +1 -1
  11. package/esm2020/lib/support-request/support-request.module.mjs +9 -3
  12. package/esm2020/lib/support-request/support-request.service.mjs +15 -2
  13. package/fesm2015/arco-support-request.mjs +1421 -965
  14. package/fesm2015/arco-support-request.mjs.map +1 -1
  15. package/fesm2020/arco-support-request.mjs +1412 -956
  16. package/fesm2020/arco-support-request.mjs.map +1 -1
  17. package/lib/entity-type-setup/service/entity-type-setup.service.d.ts +3 -2
  18. package/lib/support-request/case-list/case-list.component.d.ts +3 -1
  19. package/lib/support-request/create-form/create-form.component.d.ts +56 -0
  20. package/lib/support-request/request-flow/request-flow.component.d.ts +26 -4
  21. package/lib/support-request/self-service-flow/self-service-flow.component.d.ts +3 -1
  22. package/lib/support-request/sendemail/sendemail.component.d.ts +24 -0
  23. package/lib/support-request/support-request-details/support-request-details.component.d.ts +25 -1
  24. package/lib/support-request/support-request.module.d.ts +15 -13
  25. package/lib/support-request/support-request.service.d.ts +2 -1
  26. package/package.json +1 -1
@@ -12,7 +12,7 @@ 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
17
  import * as handlebars from 'handlebars';
18
18
  import * as i5 from '@kolkov/angular-editor';
@@ -3174,11 +3174,14 @@ class EntityTypeSetupService {
3174
3174
  //----------------------myAssigned Cases------------------------------//
3175
3175
  //----------------------myAssigned Cases------------------------------//
3176
3176
  ///////Dynmaic Apis /////
3177
- getDynamicAll(criteriastr, entityTypeRecId, processStageId, CustomerId) {
3177
+ getDynamicAll(criteriastr, entityTypeRecId, processStageId, CustomerId, SelectedContract) {
3178
3178
  let url = dynamic.getDynamicAll(entityTypeRecId, processStageId);
3179
3179
  if (CustomerId) {
3180
3180
  url += '&CustomerId=' + CustomerId;
3181
3181
  }
3182
+ if (SelectedContract) {
3183
+ url += '&ContractNumber=' + SelectedContract;
3184
+ }
3182
3185
  return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
3183
3186
  }
3184
3187
  getDynamicAllForSupportReq(criteriastr, entityTypeRecId) {
@@ -3270,6 +3273,13 @@ class EntityTypeSetupService {
3270
3273
  }
3271
3274
  return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
3272
3275
  }
3276
+ getDynamicByEntityRefrecidwithoutCriteria(entityTypeRecId, RefTypeId, criteriastr, ActivityId) {
3277
+ let url = dynamic.getDynamicRefRecidEntity(entityTypeRecId, RefTypeId);
3278
+ if (ActivityId) {
3279
+ url = url + '&ActivityId=' + ActivityId;
3280
+ }
3281
+ return this.http.get(url);
3282
+ }
3273
3283
  //------------------------category-Teams----------------------------//
3274
3284
  getAllCategoryTypeTeams(criteriastr, CategoryId) {
3275
3285
  const url = EntityTypeCategoryTypeTeams.getAllCategoryTypeTeams(CategoryId);
@@ -3420,8 +3430,11 @@ class EntityTypeSetupService {
3420
3430
  params: CriteriaBuilder(criteriastr),
3421
3431
  });
3422
3432
  }
3423
- getsupportRequestData(criteriastr, Usertype, RequesterId, Source, processStageId) {
3433
+ getsupportRequestData(criteriastr, Usertype, RequesterId, Source, processStageId, SelectedContract) {
3424
3434
  let url = environment.ServerUrl + 'entitytype/supportrequestbyrequestertype?Usertype=' + Usertype + '&UserFieldId=' + RequesterId + '&processStageId=' + processStageId;
3435
+ if (SelectedContract) {
3436
+ url += '&ContractNumber=' + SelectedContract;
3437
+ }
3425
3438
  return this.http.get(url, {
3426
3439
  params: CriteriaBuilder(criteriastr),
3427
3440
  });
@@ -4074,6 +4087,16 @@ class SupportRequestService {
4074
4087
  let url = environment.ServerUrl + 'ticketmaster/subgroup/single/' + GroupId;
4075
4088
  return this.http.get(url);
4076
4089
  }
4090
+ sendEmail(data, file) {
4091
+ let url = `${environment.ServerUrl}entitytype/send/b2bemail?EntityTypeId=${data.EntityTypeId}&RefTypeId=${data.RefTypeId}&Subject=${data.Subject}&CC=${data.CC}&Mailtext=${data.Mailtext}`;
4092
+ if (file && file.length > 0) {
4093
+ let formData = new FormData();
4094
+ let _file = file[0];
4095
+ formData.append('formFile', _file, _file.name);
4096
+ return this.http.post(url, formData);
4097
+ }
4098
+ return this.http.post(url, null);
4099
+ }
4077
4100
  getInstructionDropDown(subGroupId) {
4078
4101
  let url = environment.ServerUrl +
4079
4102
  'subgroupassingnment/instructionbysubgroup?SubGroupId=' +
@@ -4095,12 +4118,15 @@ class SupportRequestService {
4095
4118
  let url = environment.ServerUrl + 'subgroupassingnment?SubGroupId=' + subGroupId;
4096
4119
  return this.http.get(url);
4097
4120
  }
4098
- getStatusListCount(Usertype, UserFieldId, issuType) {
4121
+ getStatusListCount(Usertype, UserFieldId, issuType, SelectedContract) {
4099
4122
  let url = environment.ServerUrl +
4100
4123
  'entitytype/supportrequestbyrequestertypecount?Usertype=' +
4101
4124
  Usertype + "&UserFieldId=" + UserFieldId;
4102
4125
  if (issuType)
4103
4126
  url = url + "&IssueType=" + issuType;
4127
+ if (SelectedContract) {
4128
+ url += '&ContractNumber=' + SelectedContract;
4129
+ }
4104
4130
  return this.http.get(url);
4105
4131
  }
4106
4132
  getsupportRequestData(criteriastr, Usertype) {
@@ -5344,8 +5370,10 @@ class EntityDynamicFieldComponent {
5344
5370
  if (!isDepandancyvalue) {
5345
5371
  return;
5346
5372
  }
5373
+ this.globalService.dataLoader = true;
5347
5374
  this.entityTypeSetup.dynamicAPi(restData, _formvalue, searchCriteria, SearchText, restData.Havecriteria)
5348
5375
  .subscribe((ress) => {
5376
+ this.globalService.dataLoader = false;
5349
5377
  let res = ress;
5350
5378
  if (restData.ResponseView) {
5351
5379
  let _rview = restData.ResponseView.split(".");
@@ -5390,11 +5418,15 @@ class EntityDynamicFieldComponent {
5390
5418
  }
5391
5419
  else
5392
5420
  obx.next([]);
5421
+ }, (error) => {
5422
+ this.globalService.dataLoader = false;
5393
5423
  });
5394
5424
  }
5395
5425
  else if (jsonItem.isDynamic && jsonItem.api && jsonItem.api.url) {
5396
5426
  const url = jsonItem.api.url;
5427
+ this.globalService.dataLoader = true;
5397
5428
  this.entityTypeSetup.getDyamicUrl(url).subscribe((ress) => {
5429
+ this.globalService.dataLoader = false;
5398
5430
  let res = ress;
5399
5431
  if (jsonItem.api && jsonItem.api.ResponseView) {
5400
5432
  let _rview = jsonItem.api.ResponseView.split(".");
@@ -5435,6 +5467,8 @@ class EntityDynamicFieldComponent {
5435
5467
  }
5436
5468
  else
5437
5469
  obx.next([]);
5470
+ }, (error) => {
5471
+ this.globalService.dataLoader = false;
5438
5472
  });
5439
5473
  }
5440
5474
  else {
@@ -5488,9 +5522,7 @@ class EntityDynamicFieldComponent {
5488
5522
  this.pageStartFrom = 1;
5489
5523
  }
5490
5524
  autoSearchDropdown(event, field, searchValue, RequestorField) {
5491
- debugger;
5492
5525
  if (event.keyCode == 13) {
5493
- this.globalService.dataLoader = true;
5494
5526
  this.tempFields = field;
5495
5527
  if (field.DataType == E_DataType.dropdown) {
5496
5528
  if (field.FieldData) {
@@ -7310,7 +7342,7 @@ class WorkflowDynamicPopupComponent {
7310
7342
  }
7311
7343
  }
7312
7344
  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" }] });
7345
+ 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
7346
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: WorkflowDynamicPopupComponent, decorators: [{
7315
7347
  type: Component,
7316
7348
  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 +7794,7 @@ class ActivitiesCreateComponent {
7762
7794
  // this.EntityTypeId = Number(res.get('EntityTypeId'));
7763
7795
  });
7764
7796
  this.getActiveEntityForm();
7765
- debugger;
7766
7797
  this.globalService.submitComments.subscribe(x => {
7767
- debugger;
7768
7798
  if (x.message) {
7769
7799
  this.createFormData.Comments = x.message;
7770
7800
  this.submitTicketCreate(true);
@@ -7782,7 +7812,6 @@ class ActivitiesCreateComponent {
7782
7812
  this.closeActivityCreate.emit({ Type: "Cancel" });
7783
7813
  }
7784
7814
  submitTicketCreate(isDisableFormValidation) {
7785
- debugger;
7786
7815
  let CreateData = this.createFormData;
7787
7816
  if (isDisableFormValidation) {
7788
7817
  if (!this.createFormData.Comments) {
@@ -8651,1062 +8680,1396 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
8651
8680
  type: Input
8652
8681
  }] } });
8653
8682
 
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,
8683
+ class AttachmentService {
8684
+ constructor(http) {
8685
+ this.http = http;
8686
+ this.IsPopUp = false;
8687
+ }
8688
+ getAttachmentList(MenuOrEntityRecId, attachmentType) {
8689
+ const url = Common.getAttachmentByMenuRecId(MenuOrEntityRecId, attachmentType);
8690
+ return this.http.get(url);
8691
+ }
8692
+ uploadAttachFile(obj, files) {
8693
+ const url = Common.uploadAttachFile();
8694
+ let data = {
8695
+ refRecId: obj.refRecId,
8696
+ DocumentType: obj.DocumentType,
8697
+ DocumentVersion: obj.DocumentVersion,
8698
+ Title: obj.Title,
8699
+ FileName: obj.FileName
8701
8700
  };
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,
8701
+ return this.http.post(url, files, { params: data });
8702
+ }
8703
+ getUploadFileList(DoctypeRecId, RefRecId) {
8704
+ const url = Common.getUploadFileList(DoctypeRecId, RefRecId);
8705
+ let obj = {
8706
+ DoctypeRecId: DoctypeRecId,
8707
+ RefRecId: RefRecId
8723
8708
  };
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);
8709
+ return this.http.get(url, { observe: 'response' }); //obj,
8759
8710
  }
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();
8711
+ ActivateUplaodFile(RecId) {
8712
+ const url = Common.activateUploadFile(RecId);
8713
+ return this.http.get(url);
8774
8714
  }
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
- }
8715
+ InActivateUplaodFile(RecId) {
8716
+ const url = Common.inActivateUploadFile(RecId);
8717
+ return this.http.get(url);
8802
8718
  }
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
- });
8719
+ getDocumentType(criteriastr) {
8720
+ // let obj={
8721
+ // "Pagging":{"PageNo":criteriastr.Pagging.PageNo,"PageSize":criteriastr.Pagging.PageSize},
8722
+ // "Where":[],
8723
+ // "SortOrder":{"field":null,"direction":null}
8724
+ // };
8725
+ // let criteria:any= JSON.stringify(obj);
8726
+ const url = Common.getDocumentType();
8727
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
8824
8728
  }
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
- });
8729
+ getDocumentbyRecId(RecId) {
8730
+ const url = Common.getDocumentTypeByRecId(RecId);
8731
+ return this.http.get(url);
8848
8732
  }
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
- }
8733
+ deleteDocumentType(RecId) {
8734
+ const url = Common.deleteDocumentType(RecId);
8735
+ const content_ = "";
8736
+ let options_ = {
8737
+ body: content_,
8738
+ observe: "response",
8739
+ responseType: "blob",
8740
+ headers: new HttpHeaders({
8741
+ "Content-Type": "application/json",
8742
+ "Accept": "application/json"
8743
+ })
8744
+ };
8745
+ return this.http.delete(url);
8864
8746
  }
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
- });
8747
+ createDocumentType(Obj) {
8748
+ const url = Common.createDocumentType();
8749
+ return this.http.post(url, Obj, { observe: 'response' });
8879
8750
  }
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
- }
8751
+ updateDocumentType(Obj) {
8752
+ const url = Common.updateDocumentType();
8753
+ return this.http.put(url, Obj, { observe: 'response' });
8889
8754
  }
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
- }
8755
+ getAttachmentSetupList(criteriastr) {
8756
+ // let obj={
8757
+ // "Pagging":{"PageNo":criteriastr.Pagging.PageNo,"PageSize":criteriastr.Pagging.PageSize},
8758
+ // "Where":[],
8759
+ // "SortOrder":{"field":null,"direction":null}
8760
+ // };
8761
+ // let criteria:any= JSON.stringify(obj);
8762
+ const url = Common.getAttachmentSetupList();
8763
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
8900
8764
  }
8901
- addEvents(data) {
8902
- this.openPopupCreatePage(data);
8765
+ getDocumentTypeAssignUnAssign(MenuRecId) {
8766
+ const url = Common.getDocumentTypeAssignUnAssign(MenuRecId);
8767
+ return this.http.get(url);
8903
8768
  }
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;
8769
+ assignDocumentType(data) {
8770
+ const st = data.DocumentTypeRecId.map(x => "DocumentTypeRecId=" + x).join("&");
8771
+ let url_ = `${environment.ServerUrl}security/documenttype/menu/assign?${st}&MenuOrEntityRecId=${data.MenuOrEntityRecId}`;
8772
+ return this.http.post(url_, null);
8911
8773
  }
8912
- closePopupCreateView(Type) {
8913
- this.CreateItemId = null;
8914
- this.displayPopupCreateView = false;
8915
- if (Type == 'Create') {
8916
- this.getActivities();
8917
- this.openDefaultComments();
8918
- }
8774
+ unassignDocumentType(data) {
8775
+ const st = data.DocumentTypeRecId.map(x => "DocumentTypeRecId=" + x).join("&");
8776
+ let url_ = `${environment.ServerUrl}security/documenttype/menu/unassign?${st}&MenuOrEntityRecId=${data.MenuOrEntityRecId}`;
8777
+ return this.http.post(url_, data);
8919
8778
  }
8920
- slider(direction, Id) {
8921
- this.slide(direction, Id);
8779
+ getDocumentTypeAssignUnAssignForEntityType(EntityRecId) {
8780
+ const url = Common.getDocumentTypeAssignUnAssignForEntityType(EntityRecId);
8781
+ return this.http.get(url);
8922
8782
  }
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);
8783
+ assignDocumentTypeForEntityType(data) {
8784
+ const st = data.DocumentTypeRecId.map(x => "DocumentTypeRecId=" + x).join("&");
8785
+ let url_ = `${environment.ServerUrl}security/documenttype/entitytype/assign?${st}&MenuOrEntityRecId=${data.MenuOrEntityRecId}`;
8786
+ return this.http.post(url_, null);
8939
8787
  }
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
- });
8788
+ unassignDocumentTypeForEntityType(data) {
8789
+ const st = data.DocumentTypeRecId.map(x => "DocumentTypeRecId=" + x).join("&");
8790
+ let url_ = `${environment.ServerUrl}security/documenttype/entitytype/unassign?${st}&MenuOrEntityRecId=${data.MenuOrEntityRecId}`;
8791
+ return this.http.post(url_, data);
8958
8792
  }
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
- }
8793
+ assignDocumentTypeForEntityTypeWithBody(data, EntityTypeId) {
8794
+ let url_ = `${environment.ServerUrl}security/documenttypeformbody/entitytype/assign?MenuOrEntityRecId=${EntityTypeId}`;
8795
+ return this.http.post(url_, data);
8971
8796
  }
8972
- closeProcess() {
8973
- this.showStageDetails = false;
8974
- setTimeout(() => (this.selectedProcess = null), 500);
8797
+ unassignDocumentTypeForEntityTypeWithBody(data, EntityTypeId) {
8798
+ let url_ = `${environment.ServerUrl}security/documenttypeformbody/entitytype/unassign?MenuOrEntityRecId=${EntityTypeId}`;
8799
+ return this.http.post(url_, data);
8975
8800
  }
8976
- gridChangeTabs(data) {
8977
- this.tabDisplayView = Number(data);
8801
+ getDocumentAssignList(Criteria, EntityRecId) {
8802
+ const url = Common.getDocumentAssignList(EntityRecId);
8803
+ return this.http.get(url);
8978
8804
  }
8979
- loadMoreActivities() {
8980
- this.activitySearchcriteria.Pagging.PageSize += 10;
8981
- this.getActivities();
8805
+ open() {
8806
+ this.IsPopUp = true;
8982
8807
  }
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
- };
8808
+ close() {
8809
+ this.IsPopUp = false;
9003
8810
  }
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
- });
8811
+ getSideMenuData() {
8812
+ let url = environment.ServerUrl + "entitytype/productivitymenuitems";
8813
+ return this.http.get(url);
9045
8814
  }
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
- }
8815
+ getMenuItemData(criteriastr) {
8816
+ let url = environment.ServerUrl + "security/menuitemsmap";
8817
+ return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
9062
8818
  }
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);
8819
+ getSingleMenuItemData(RecId) {
8820
+ let url = environment.ServerUrl + "security/menuitemsmap/" + RecId;
8821
+ return this.http.get(url);
9085
8822
  }
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
- // }
8823
+ createMenuItemData(data) {
8824
+ let url = environment.ServerUrl + "security/menuitemsmap/add";
8825
+ return this.http.post(url, data);
9098
8826
  }
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
- });
8827
+ updateMenuItemData(data) {
8828
+ let url = environment.ServerUrl + "security/menuitemsmap/update";
8829
+ return this.http.put(url, data);
9109
8830
  }
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
- });
8831
+ deleteMenuItemData(RecId) {
8832
+ let url = environment.ServerUrl + "security/menuitemsmap?recIds=" + RecId;
8833
+ return this.http.delete(url);
9118
8834
  }
9119
- backToList() {
9120
- this.route.navigate(['/EntityTypeSetup/task', this.EntityTypeRecId]);
8835
+ }
8836
+ 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 });
8837
+ AttachmentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: AttachmentService, providedIn: 'root' });
8838
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: AttachmentService, decorators: [{
8839
+ type: Injectable,
8840
+ args: [{
8841
+ providedIn: 'root'
8842
+ }]
8843
+ }], ctorParameters: function () { return [{ type: i1$1.HttpClient }]; } });
8844
+ const Common = {
8845
+ getAttachmentByMenuRecId: (MenuOrEntityRecId, attachmentType) => `${environment.ServerUrl}security/documenttype/showattachement?MenuOrEntityRecId=${MenuOrEntityRecId}&attachmentType=${attachmentType}`,
8846
+ uploadAttachFile: () => `${environment.ServerUrl}security/documenttype/uploadfile`,
8847
+ getUploadFileList: (DoctypeRecId, RefRecId) => `${environment.ServerUrl}security/documenttype/uploadfilelist/${DoctypeRecId}/${RefRecId}`,
8848
+ activateUploadFile: (RecId) => `${environment.ServerUrl}security/documenttype/activefile?RecId=${RecId}`,
8849
+ inActivateUploadFile: (RecId) => `${environment.ServerUrl}security/documenttype/inactivefile?RecId=${RecId}`,
8850
+ getDocumentType: () => `${environment.ServerUrl}security/documenttype`,
8851
+ getDocumentTypeByRecId: (RecId) => `${environment.ServerUrl}security/documenttype/${RecId}`,
8852
+ deleteDocumentType: (RecId) => `${environment.ServerUrl}security/documenttype?recIds=${RecId}`,
8853
+ createDocumentType: () => `${environment.ServerUrl}security/documenttype/add`,
8854
+ updateDocumentType: () => `${environment.ServerUrl}security/documenttype/update`,
8855
+ getAttachmentSetupList: () => `${environment.ServerUrl}entitytype/productivitymenuitems`,
8856
+ getDocumentTypeAssignUnAssign: (MenuRecId) => `${environment.ServerUrl}security/documenttype/menu/assignandunassign?MenuOrEntityRecId=${MenuRecId}`,
8857
+ assignDocumentType: () => `${environment.ServerUrl}security/documenttype/menu/assign`,
8858
+ unassignDocumentType: () => `${environment.ServerUrl}security/documenttype/menu/unassign`,
8859
+ getDocumentTypeAssignUnAssignForEntityType: (EntityRecId) => `${environment.ServerUrl}security/documenttype/entitytype/assignandunassign?MenuOrEntityRecId=${EntityRecId}`,
8860
+ getDocumentAssignList: (EntityRecId) => `${environment.ServerUrl}security/documenttype/entitytype/assignandunassign?MenuOrEntityRecId=${EntityRecId}`,
8861
+ assignDocumentTypeForEntityType: () => `${environment.ServerUrl}security/documenttype/entitytype/assign`,
8862
+ unassignDocumentTypeForEntityType: () => `${environment.ServerUrl}security/documenttype/entitytype/unassign`,
8863
+ assignDocumentTypeForEntityTypewithdocumenttypeformbody: () => `${environment.ServerUrl}security/documenttype/documenttypeformbody/entitytype/assign`,
8864
+ unassignDocumentTypeForEntityTypedocumenttypeformbody: () => `${environment.ServerUrl}security/documenttype/documenttypeformbody/entitytype/unassign`,
8865
+ };
8866
+ const BaseUrl = {
8867
+ commonURL: "/api/v1/common",
8868
+ };
8869
+
8870
+ class SupportRequestCreateComponent {
8871
+ constructor(entityTypeSetup, attachmentService, router, route, supportService, globalService) {
8872
+ this.entityTypeSetup = entityTypeSetup;
8873
+ this.attachmentService = attachmentService;
8874
+ this.router = router;
8875
+ this.route = route;
8876
+ this.supportService = supportService;
8877
+ this.globalService = globalService;
8878
+ this.EntityFormId = null;
8879
+ this.EntityTypeId = null;
8880
+ this.ViewFrom = "Page";
8881
+ this.Type = "Create";
8882
+ this.FormValues = null;
8883
+ this.IssueType = null;
8884
+ this.IssueGroup = null;
8885
+ this.IssueSubGroup = null;
8886
+ this.IssueTypeEn = null;
8887
+ this.IssueGroupEn = null;
8888
+ this.IssueSubGroupEn = null;
8889
+ this.IssueTypeAr = null;
8890
+ this.IssueGroupAr = null;
8891
+ this.IssueSubGroupAr = null;
8892
+ this.Source = null;
8893
+ this.CreatedByUserType = null;
8894
+ this.Channel = null;
8895
+ this.ChannelEn = null;
8896
+ this.ChannelAr = null;
8897
+ this.RequestField = null;
8898
+ this.RequesterId = null;
8899
+ this.RequesterIdEn = null;
8900
+ this.closeCreate = new EventEmitter();
8901
+ this.ParameterData = null;
8902
+ this.DocumentList = [];
8903
+ this.createFormData = {};
8904
+ this.pageForm = {};
8905
+ this.translatePipe = new TranslatePipe(this.globalService);
9121
8906
  }
9122
- ngOnDestroy() {
9123
- this.globalService.showBackIcon = false;
8907
+ ngOnInit() {
8908
+ this.route.paramMap.subscribe((res) => {
8909
+ if (this.ViewFrom != "Popup") {
8910
+ this.EntityTypeId = Number(res.get('EntityTypeId'));
8911
+ 8;
8912
+ }
8913
+ // this.EntityTypeId = Number(res.get('EntityTypeId'));
8914
+ });
8915
+ this.getActiveEntityForm();
8916
+ this.getAssignedDocumentList();
8917
+ this.ParameterData = {
8918
+ IssueType: this.IssueType,
8919
+ IssueTypeEn: this.IssueTypeEn,
8920
+ IssueTypeAr: this.IssueTypeAr,
8921
+ IssueGroup: this.IssueGroup,
8922
+ IssueGroupEn: this.IssueGroupEn,
8923
+ IssueGroupAr: this.IssueGroupAr,
8924
+ Issue: this.IssueSubGroup,
8925
+ IssueEn: this.IssueSubGroupEn,
8926
+ IssueAr: this.IssueSubGroupAr,
8927
+ CreatedByUserType: this.CreatedByUserType,
8928
+ Source: this.Source,
8929
+ Channel: this.Channel,
8930
+ ChannelEn: this.ChannelEn,
8931
+ ChannelAr: this.ChannelAr,
8932
+ UserType: this.RequesterIdEn,
8933
+ CustomerId: this.RequesterId,
8934
+ };
9124
8935
  }
9125
- closeModelPopup() {
9126
- this.actionPopup = false;
8936
+ getActiveEntityForm() {
8937
+ this.entityTypeSetup.getActiveEntityFormByDetails(this.EntityTypeId).subscribe((res) => {
8938
+ this.EntityFormId = res.RecId;
8939
+ }, (error) => {
8940
+ console.log(error);
8941
+ });
9127
8942
  }
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;
8943
+ getAssignedDocumentList() {
8944
+ this.attachmentService.getAttachmentList(this.EntityTypeId, 2).subscribe((success) => {
8945
+ this.DocumentList = success;
8946
+ this.DocumentList.map(x => {
8947
+ x.FileList = [];
8948
+ return x;
8949
+ });
8950
+ }, (error) => {
8951
+ });
9134
8952
  }
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
- };
8953
+ docFileChange(event, item) {
8954
+ let _file = event.target.files;
8955
+ item.FileList = [];
8956
+ if (_file && _file.length > 0) {
8957
+ let _Sfile = _file;
8958
+ for (let index = 0; index < _file.length; index++) {
8959
+ let _file = {
8960
+ File: _Sfile.item(index),
8961
+ FileName: _Sfile.item(index).name
8962
+ };
8963
+ item.FileList.push(_file);
8964
+ }
8965
+ item.File = _file.item(0);
8966
+ item.FileName = _file.item(0).name;
9145
8967
  }
9146
8968
  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
- };
8969
+ item.FileList = [];
8970
+ item.File = null;
8971
+ item.FileName = null;
9155
8972
  }
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);
8973
+ }
8974
+ closeCreatePage() {
8975
+ // this.router.navigate([AllRoutes.Entity.DynamicTicketList]);
8976
+ this.closeCreate.emit({ Type: "Cancel" });
8977
+ }
8978
+ submitTicketCreate() {
8979
+ let CreateData = this.createFormData;
8980
+ if (!this.pageForm.valid) {
8981
+ // Swal.fire('Fill all mandatory fields', '', 'warning');
9174
8982
  Swal.fire({
9175
- title: this.translatePipe.transform(error.error),
8983
+ title: this.translatePipe.transform('Fill all mandatory fields'),
9176
8984
  });
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
8985
+ return;
8986
+ }
8987
+ if (this.Type == "Edit") {
8988
+ if (!this.FormValues || !this.FormValues.RecId) {
8989
+ // Swal.fire("", "Form record not found", "warning");
9192
8990
  Swal.fire({
9193
- title: this.translatePipe.transform(error.error),
8991
+ title: this.translatePipe.transform('Form record not found'),
8992
+ });
8993
+ return;
8994
+ }
8995
+ CreateData.EntityTypeId = this.EntityTypeId;
8996
+ CreateData.RecId = this.FormValues.RecId;
8997
+ let _data = JSON.stringify(CreateData);
8998
+ this.entityTypeSetup.updateDynamic(_data).subscribe((res) => {
8999
+ // Swal.fire("Updated sucessfully");
9000
+ Swal.fire({
9001
+ title: this.translatePipe.transform('Updated sucessfully'),
9194
9002
  });
9003
+ this.pageForm.reset();
9004
+ this.closeCreate.emit({ Type: "Edit" });
9005
+ this.supportService.displayListPopUp = true;
9006
+ }, (error) => {
9007
+ console.log(error);
9195
9008
  });
9196
9009
  }
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,
9010
+ else {
9011
+ CreateData.EntityTypeId = this.EntityTypeId;
9012
+ CreateData.IssueType = this.IssueType;
9013
+ CreateData.IssueGroup = this.IssueGroup;
9014
+ CreateData.Issue = this.IssueSubGroup;
9015
+ CreateData.Source = this.Source;
9016
+ CreateData.CreatedByUserType = this.CreatedByUserType;
9017
+ CreateData.Channel = this.Channel;
9018
+ if (this.RequestField && this.RequesterId) {
9019
+ CreateData[this.RequestField] = this.RequesterId;
9020
+ }
9021
+ let _data = JSON.stringify(CreateData);
9022
+ let checkFileMandatory = true;
9023
+ for (let index = 0; index < this.DocumentList.length; index++) {
9024
+ let doc = this.DocumentList[index];
9025
+ if (doc.IsManatory) {
9026
+ if (!(doc.FileList && doc.FileList.length > 0)) {
9027
+ checkFileMandatory = false;
9028
+ break;
9029
+ }
9030
+ }
9031
+ }
9032
+ if (!checkFileMandatory) {
9033
+ Swal.fire({
9034
+ title: this.translatePipe.transform('Attach the mandatory files'),
9207
9035
  });
9208
- else
9209
- this.gridServiceService.onGridRefresh.next({
9210
- isTrue: true,
9211
- list: [],
9212
- grid: 8,
9213
- count: 0,
9214
- totalRecordCount: 0,
9036
+ return;
9037
+ }
9038
+ let fileObj = [];
9039
+ this.DocumentList.map(x => {
9040
+ if (x.FileList && x.FileList.length > 0) {
9041
+ for (let index = 0; index < x.FileList.length; index++) {
9042
+ const element = x.FileList[index];
9043
+ let temp = { File: element.File, DoctypeRecId: x.RecId };
9044
+ fileObj.push(temp);
9045
+ }
9046
+ }
9047
+ });
9048
+ fileObj = fileObj.filter(x => (x && x.DoctypeRecId));
9049
+ const formData = new FormData();
9050
+ fileObj.forEach((f) => formData.append('fileUpload', f.File));
9051
+ this.entityTypeSetup.createDynamic(_data, formData, fileObj).subscribe((res) => {
9052
+ Swal.fire({
9053
+ title: this.translatePipe.transform('Created Successfully'),
9054
+ confirmButtonText: this.translatePipe.transform("Ok"),
9215
9055
  });
9216
- }
9217
- else
9218
- this.gridServiceService.onGridRefresh.next({
9219
- isTrue: true,
9220
- list: [],
9221
- grid: 8,
9222
- count: 0,
9223
- totalRecordCount: 0,
9056
+ this.pageForm.reset();
9057
+ this.closeCreate.emit({ Type: "Create", Data: res });
9058
+ this.supportService.displayListPopUp = true;
9059
+ // Swal.fire({
9060
+ // title: 'Created Successfully,Do you want to Continue? ',
9061
+ // showDenyButton: true,
9062
+ // showCancelButton: true,
9063
+ // denyButtonText: `Yes Go Details `,
9064
+ // cancelButtonText: `Create New`,
9065
+ // confirmButtonText: `No`,
9066
+ // }).then((result) => {
9067
+ // if (result.isConfirmed) {
9068
+ // this.pageForm.reset();
9069
+ // this.closeCreate.emit({ Type: "Create" });
9070
+ // } else if (result.isDenied) {
9071
+ // this.pageForm.reset();
9072
+ // this.router.navigate([
9073
+ // AllRoutes.Entity.DynamicTicketDetails,
9074
+ // res.RecId,
9075
+ // res.EntityTypeId,
9076
+ // ])
9077
+ // } else if (result.isDismissed) {
9078
+ // this.pageForm.reset();
9079
+ // }
9080
+ // })
9081
+ }, (error) => {
9082
+ console.log(error);
9224
9083
  });
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
9084
  }
9235
9085
  }
9086
+ emitTicketCreateForm(CreateData, pageForm) {
9087
+ this.createFormData = CreateData;
9088
+ this.pageForm = pageForm;
9089
+ }
9236
9090
  }
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: [{
9091
+ 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 });
9092
+ 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" }] });
9093
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SupportRequestCreateComponent, decorators: [{
9240
9094
  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: [{
9095
+ 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"] }]
9096
+ }], ctorParameters: function () { return [{ type: EntityTypeSetupService }, { type: AttachmentService }, { type: i2.Router }, { type: i2.ActivatedRoute }, { type: SupportRequestService }, { type: GlobalService }]; }, propDecorators: { EntityFormId: [{
9243
9097
  type: Input
9244
- }], RecId: [{
9098
+ }], EntityTypeId: [{
9245
9099
  type: Input
9246
9100
  }], ViewFrom: [{
9247
9101
  type: Input
9248
- }], IsWfAction: [{
9102
+ }], Type: [{
9103
+ type: Input
9104
+ }], FormValues: [{
9105
+ type: Input
9106
+ }], IssueType: [{
9107
+ type: Input
9108
+ }], IssueGroup: [{
9109
+ type: Input
9110
+ }], IssueSubGroup: [{
9111
+ type: Input
9112
+ }], IssueTypeEn: [{
9113
+ type: Input
9114
+ }], IssueGroupEn: [{
9115
+ type: Input
9116
+ }], IssueSubGroupEn: [{
9117
+ type: Input
9118
+ }], IssueTypeAr: [{
9119
+ type: Input
9120
+ }], IssueGroupAr: [{
9121
+ type: Input
9122
+ }], IssueSubGroupAr: [{
9123
+ type: Input
9124
+ }], Source: [{
9125
+ type: Input
9126
+ }], CreatedByUserType: [{
9127
+ type: Input
9128
+ }], Channel: [{
9129
+ type: Input
9130
+ }], ChannelEn: [{
9131
+ type: Input
9132
+ }], ChannelAr: [{
9133
+ type: Input
9134
+ }], RequestField: [{
9135
+ type: Input
9136
+ }], RequesterId: [{
9137
+ type: Input
9138
+ }], RequesterIdEn: [{
9249
9139
  type: Input
9140
+ }], closeCreate: [{
9141
+ type: Output
9250
9142
  }] } });
9251
9143
 
9252
- class AttachmentService {
9253
- constructor(http) {
9254
- this.http = http;
9255
- this.IsPopUp = false;
9144
+ class CreateFormComponent {
9145
+ constructor(globalService, supportService) {
9146
+ this.globalService = globalService;
9147
+ this.supportService = supportService;
9148
+ this.IsDropdownModel = true;
9149
+ this.Language = 'Eng';
9150
+ this.Channel = '3';
9151
+ this.ChannelEn = 'Portal';
9152
+ this.ChannelAr = 'صفحة العميل';
9153
+ this.closeCreateModel = new EventEmitter();
9154
+ this.selectedType = null;
9155
+ this.selectedSubGroup = null;
9156
+ this.selectedGroup = null;
9157
+ this.IssueTypeDDL = [];
9158
+ this.DropdownIssueSubgroup = [];
9159
+ this.isShowCreateRequest = false;
9160
+ this.CreateItemId = null;
9161
+ this.selectCaseItem = null;
9162
+ this.IssueType = "7";
9163
+ this.selectedCategory = null;
9164
+ this.IssueGroupName = "Ticket SubGroup";
9165
+ this.IssueAllList = [];
9166
+ this.IssueCaseList = [];
9256
9167
  }
9257
- getAttachmentList(MenuOrEntityRecId, attachmentType) {
9258
- const url = Common.getAttachmentByMenuRecId(MenuOrEntityRecId, attachmentType);
9259
- return this.http.get(url);
9168
+ ngOnInit() {
9169
+ if (this.PageType == "Complaint") {
9170
+ this.IssueType = "2";
9171
+ }
9172
+ else if (this.PageType == "Request") {
9173
+ this.IssueType = "7";
9174
+ }
9175
+ else if (this.PageType == "SelfService") {
9176
+ this.IssueType = "11";
9177
+ }
9178
+ else
9179
+ this.IssueType = "7";
9180
+ if (this.RequesterTypeId == "0000001") {
9181
+ this.RequesterTypeIdEn = "IndividualCustomer";
9182
+ }
9183
+ else if (this.RequesterTypeId == "0000002") {
9184
+ this.RequesterTypeIdEn = "BusinessCustomer";
9185
+ }
9186
+ else {
9187
+ this.RequesterTypeIdEn = null;
9188
+ }
9189
+ if (this.RequesterTypeId && this.PageType != "SelfService") {
9190
+ this.getIssueType();
9191
+ }
9192
+ if (this.PageType == "SelfService") {
9193
+ this.getIssueGroupRequesterMappingByRequesterType();
9194
+ }
9260
9195
  }
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 });
9196
+ ClickedOut(event) {
9197
+ // console.log(event.target.className);
9198
+ if (event.target.className === "modal fade show") {
9199
+ this.closeModel();
9200
+ }
9271
9201
  }
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,
9202
+ closeModel(data, IsReload) {
9203
+ this.isShowCreateRequest = false;
9204
+ this.selectedCaseSelfService = null;
9205
+ this.closeCreateModel.emit({ IsClose: false, Data: data, IsReload: IsReload, PageType: this.PageType });
9279
9206
  }
9280
- ActivateUplaodFile(RecId) {
9281
- const url = Common.activateUploadFile(RecId);
9282
- return this.http.get(url);
9207
+ selectSubGroup(item, IsHideForm) {
9208
+ item.showRequest = !item.showRequest;
9209
+ this.selectedSubGroup = item;
9210
+ if (IsHideForm) {
9211
+ return;
9212
+ }
9213
+ else {
9214
+ this.IsDropdownModel = false;
9215
+ this.showCreateRequest(this.selectedSubGroup);
9216
+ }
9283
9217
  }
9284
- InActivateUplaodFile(RecId) {
9285
- const url = Common.inActivateUploadFile(RecId);
9286
- return this.http.get(url);
9218
+ showCreateRequest(item) {
9219
+ item.showSubGroup = !item.showSubGroup;
9220
+ this.isShowCreateRequest = true;
9221
+ this.selectCaseItem = item;
9222
+ this.CreateItemId = item.CaseId;
9287
9223
  }
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) });
9224
+ closePopupCreateView(Type, Data) {
9225
+ this.CreateItemId = null;
9226
+ this.isShowCreateRequest = false;
9227
+ this.selectedCaseSelfService = null;
9228
+ if (Type == 'Create') {
9229
+ if (Data && Data.RecId && Data.EntityTypeId) {
9230
+ let _data = Data;
9231
+ _data.RefRecId = Data.RecId;
9232
+ _data.CaseTypeId = Data.EntityTypeId;
9233
+ this.closeModel(_data, true);
9234
+ }
9235
+ }
9236
+ else {
9237
+ this.closeModel();
9238
+ }
9297
9239
  }
9298
- getDocumentbyRecId(RecId) {
9299
- const url = Common.getDocumentTypeByRecId(RecId);
9300
- return this.http.get(url);
9240
+ getIssueType() {
9241
+ this.IsDropdownModel = true;
9242
+ this.IssueTypeDDL = [];
9243
+ this.DropdownIssueSubgroup = [];
9244
+ this.supportService.getIssueGroupRequesterMappingByRequesterType(this.RequesterTypeId).subscribe((res) => {
9245
+ this.IssueTypeDDL = res;
9246
+ if (res) {
9247
+ this.IssueTypeDDL = res.filter(x => x.IssueType == this.IssueType);
9248
+ this.selectedType = this.IssueTypeDDL[0];
9249
+ this.selectType(this.selectedType);
9250
+ }
9251
+ }, (error) => {
9252
+ console.log(error);
9253
+ });
9301
9254
  }
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);
9255
+ selectType(item) {
9256
+ this.IssueTypeDDL = this.IssueTypeDDL.map((x) => {
9257
+ if (x.IssueType != item.IssueType) {
9258
+ x.showGroup = false;
9259
+ x.showCategory = false;
9260
+ }
9261
+ if (x.IssueGroup) {
9262
+ x.IssueGroup.map((x) => {
9263
+ x.showSubGroup = false;
9264
+ });
9265
+ }
9266
+ if (x.Category) {
9267
+ x.Category.map((x) => {
9268
+ x.showCase = false;
9269
+ });
9270
+ }
9271
+ return x;
9272
+ });
9273
+ if (item.IssueGroup) {
9274
+ item.showGroup = !item.showGroup;
9275
+ this.selectedGroup = null;
9276
+ this.selectedSubGroup = null;
9277
+ }
9278
+ if (item.Category) {
9279
+ item.showCategory = !item.showCategory;
9280
+ this.selectedCategory = null;
9281
+ this.selectCaseItem = null;
9282
+ }
9283
+ this.selectedType = item;
9315
9284
  }
9316
- createDocumentType(Obj) {
9317
- const url = Common.createDocumentType();
9318
- return this.http.post(url, Obj, { observe: 'response' });
9285
+ selectGroup(item, Type) {
9286
+ this.IssueGroupName = item.IssueGroupEn;
9287
+ Type.IssueGroup = Type.IssueGroup.map((x) => {
9288
+ if (x.IssueGroup != item.IssueGroup) {
9289
+ x.showSubGroup = false;
9290
+ }
9291
+ return x;
9292
+ });
9293
+ item.showSubGroup = !item.showSubGroup;
9294
+ this.selectedGroup = item;
9295
+ this.selectedSubGroup = null;
9296
+ this.DropdownIssueSubgroup = item.Issue;
9319
9297
  }
9320
- updateDocumentType(Obj) {
9321
- const url = Common.updateDocumentType();
9322
- return this.http.put(url, Obj, { observe: 'response' });
9298
+ getIssueGroupRequesterMappingByRequesterType() {
9299
+ this.IssueAllList = [];
9300
+ this.supportService.getIssueGroupRequesterMappingByRequesterType(this.RequesterTypeId).subscribe((res) => {
9301
+ this.IssueAllList = res.filter(x => x.IssueType == Number(this.IssueType));
9302
+ this.IssueCaseList = [];
9303
+ this.IssueAllList.forEach(x => {
9304
+ x.IssueGroup.forEach(group => {
9305
+ this.IssueCaseList.push(...group.Issue);
9306
+ });
9307
+ });
9308
+ // this.IssueCaseList.map(x => {
9309
+ // if (x.IssueImage && !x.IssueImage.includes("Account/ShowImageByPath")) {
9310
+ // x.IssueImage = "/Account/ShowImageByPath?_Path=" + x.IssueImage
9311
+ // }
9312
+ // });
9313
+ }, (error) => {
9314
+ console.log(error);
9315
+ });
9323
9316
  }
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) });
9317
+ selectCase(item) {
9318
+ console.log('caselst', item);
9319
+ this.selectedCaseSelfService = item;
9333
9320
  }
9334
- getDocumentTypeAssignUnAssign(MenuRecId) {
9335
- const url = Common.getDocumentTypeAssignUnAssign(MenuRecId);
9336
- return this.http.get(url);
9321
+ openSelfServiceForm() {
9322
+ this.IsDropdownModel = false;
9323
+ this.showCreateRequest(this.selectedCaseSelfService);
9337
9324
  }
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);
9325
+ }
9326
+ 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 });
9327
+ 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" }] });
9328
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: CreateFormComponent, decorators: [{
9329
+ type: Component,
9330
+ 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>" }]
9331
+ }], ctorParameters: function () { return [{ type: GlobalService }, { type: SupportRequestService }]; }, propDecorators: { IsDropdownModel: [{
9332
+ type: Input
9333
+ }], PageType: [{
9334
+ type: Input
9335
+ }], RequesterTypeId: [{
9336
+ type: Input
9337
+ }], RequesterTypeIdEn: [{
9338
+ type: Input
9339
+ }], RequesterId: [{
9340
+ type: Input
9341
+ }], RequesterField: [{
9342
+ type: Input
9343
+ }], Language: [{
9344
+ type: Input
9345
+ }], HostUrl: [{
9346
+ type: Input
9347
+ }], Host: [{
9348
+ type: Input
9349
+ }], Source: [{
9350
+ type: Input
9351
+ }], Channel: [{
9352
+ type: Input
9353
+ }], ChannelEn: [{
9354
+ type: Input
9355
+ }], ChannelAr: [{
9356
+ type: Input
9357
+ }], closeCreateModel: [{
9358
+ type: Output
9359
+ }] } });
9360
+
9361
+ class SendemailComponent {
9362
+ constructor(fb, supportService) {
9363
+ this.fb = fb;
9364
+ this.supportService = supportService;
9365
+ this.closeSendEmailModel = new EventEmitter();
9366
+ this.SendEmailForm = this.fb.group({
9367
+ RefTypeId: [null, [Validators.required]],
9368
+ EntityTypeId: [null, [Validators.required]],
9369
+ Subject: [null, [Validators.required]],
9370
+ Mailtext: [null, [Validators.required]],
9371
+ CC: [null, [Validators.required]],
9372
+ Attachment: [null],
9373
+ });
9374
+ this.fileToUpload = null;
9342
9375
  }
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);
9376
+ ngOnInit() {
9377
+ if (this.EntityTypeId && this.RecId) {
9378
+ this.SendEmailForm.reset();
9379
+ this.SendEmailForm.patchValue({
9380
+ EntityTypeId: this.EntityTypeId,
9381
+ RefTypeId: this.RecId
9382
+ });
9383
+ }
9347
9384
  }
9348
- getDocumentTypeAssignUnAssignForEntityType(EntityRecId) {
9349
- const url = Common.getDocumentTypeAssignUnAssignForEntityType(EntityRecId);
9350
- return this.http.get(url);
9385
+ handleFileInput(event) {
9386
+ this.fileToUpload = event.target.files;
9351
9387
  }
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);
9388
+ submit(values) {
9389
+ const data = {
9390
+ EntityTypeId: values.EntityTypeId,
9391
+ RefTypeId: values.RefTypeId,
9392
+ Subject: values.Subject,
9393
+ Mailtext: values.Mailtext,
9394
+ CC: values.CC,
9395
+ };
9396
+ this.supportService.sendEmail(data, this.fileToUpload).subscribe((res => {
9397
+ this.closeModel();
9398
+ this.SendEmailForm.reset();
9399
+ Swal.fire('Created Successfully', 'Success');
9400
+ }), (error => {
9401
+ console.log(error);
9402
+ this.closeModel();
9403
+ this.SendEmailForm.reset();
9404
+ Swal.fire(errorMessageType(error));
9405
+ }));
9406
+ }
9407
+ closeModel() {
9408
+ this.closeSendEmailModel.emit({ IsClose: false, Data: null, IsReload: false });
9409
+ }
9410
+ }
9411
+ 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 });
9412
+ 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" }] });
9413
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SendemailComponent, decorators: [{
9414
+ type: Component,
9415
+ 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>" }]
9416
+ }], ctorParameters: function () { return [{ type: i3.FormBuilder }, { type: SupportRequestService }]; }, propDecorators: { EntityTypeId: [{
9417
+ type: Input
9418
+ }], RecId: [{
9419
+ type: Input
9420
+ }], closeSendEmailModel: [{
9421
+ type: Output
9422
+ }] } });
9423
+
9424
+ class SupportRequestDetailsComponent {
9425
+ constructor(taskService, EntityTypeSetupService, fb, actRoute, gridServiceService, ticketService, globalService, route) {
9426
+ this.taskService = taskService;
9427
+ this.EntityTypeSetupService = EntityTypeSetupService;
9428
+ this.fb = fb;
9429
+ this.actRoute = actRoute;
9430
+ this.gridServiceService = gridServiceService;
9431
+ this.ticketService = ticketService;
9432
+ this.globalService = globalService;
9433
+ this.route = route;
9434
+ this.ViewFrom = "Page";
9435
+ this.IsWfAction = false;
9436
+ this.Language = 'Eng';
9437
+ this.Channel = '3';
9438
+ this.ChannelEn = 'Portal';
9439
+ this.ChannelAr = 'صفحة العميل';
9440
+ this.closeCreateModel = new EventEmitter();
9441
+ this.environment = environment;
9442
+ // _TaskDetail: TaskVM =null;
9443
+ this._TaskDetail = null;
9444
+ this.stageId = null;
9445
+ this.EntityTypeId = null;
9446
+ this.EntityTypeIdRecId = null;
9447
+ this.refRecId = null;
9448
+ this.EntityFormId = null;
9449
+ this.EntityPageGroupsData = [];
9450
+ this.EntityDefaultPageGroupsData = [];
9451
+ this.pageTitle = "Process Stage";
9452
+ this.pageDesp = "Process Stage";
9453
+ this.selectMode = E_SelectMode.Multi;
9454
+ this.isAttach = false;
9455
+ this.isCreate = false;
9456
+ this.isEdit = false;
9457
+ this.isDelete = false;
9458
+ this.isExport = false;
9459
+ this.gridActionList = [];
9460
+ this.columnDefs = [
9461
+ { Field: 'ProcessStage', Name: 'Process Stage Id' },
9462
+ { Field: 'ProcessStageEn', Name: 'Process Stage' },
9463
+ { Field: 'Comments', Name: 'Comments' },
9464
+ { Field: 'StartDate', Name: 'Start Date', DataType: E_DataType.date },
9465
+ { Field: 'EndDate', Name: 'End Date', DataType: E_DataType.date },
9466
+ ];
9467
+ this.commentsData = [];
9468
+ this.commentsDataCount = 0;
9469
+ this.Searchcriteria = {
9470
+ Pagging: {
9471
+ PageNo: 1,
9472
+ PageSize: 10,
9473
+ },
9474
+ Where: [],
9475
+ SortOrder: 1,
9476
+ };
9477
+ this.displayPopupCreateView = false;
9478
+ this.CreateItemId = null;
9479
+ this.selectedActivityItem = null;
9480
+ this.commentsActivityItem = null;
9481
+ this.detailsEntityTypeId = null;
9482
+ this.Activity = null;
9483
+ this.ActivityType = [];
9484
+ this.ActivityTypeReadonly = [];
9485
+ this.TotalActivity = 0;
9486
+ this.StatusAndStageList = [];
9487
+ this.showStageDetails = false;
9488
+ this.selectedProcessList = [];
9489
+ this.tabDisplayView = 1;
9490
+ this.SortingField = { field: null, direction: null };
9491
+ this.activitySearchcriteria = {
9492
+ Pagging: {
9493
+ PageNo: 1,
9494
+ PageSize: 10,
9495
+ },
9496
+ Where: [],
9497
+ SortOrder: this.SortingField,
9498
+ };
9499
+ this.TaskList = [];
9500
+ this.ProcessStageList = [];
9501
+ this.TimelineList = [];
9502
+ this.TimelineListReadonly = [];
9503
+ this.TaskCommentFile = null;
9504
+ this.wfActionData = [
9505
+ { id: 1, name: "New" },
9506
+ { id: 2, name: "Forward" },
9507
+ { id: 3, name: "Reply" },
9508
+ { id: 4, name: "Esculation" },
9509
+ { id: 5, name: "Delegation" },
9510
+ { id: 6, name: "Complete" },
9511
+ { id: 7, name: "Cancel" },
9512
+ ];
9513
+ this.wfStageAction = null;
9514
+ this.action = null;
9515
+ this.showWorkflowPopup = false;
9516
+ this.workflowEntityFormId = null;
9517
+ this.assignmentForm = this.fb.group({
9518
+ ActionStatus: [''],
9519
+ AssignedTo: [''],
9520
+ TargetDate: [''],
9521
+ Description: [''],
9522
+ Comments: [''],
9523
+ });
9524
+ this.updateStatusAssignTo = [];
9525
+ this.actionPopup = false;
9526
+ this.targetDate = null;
9527
+ this.columnDef = [
9528
+ { Field: "Description", Name: "Description" },
9529
+ { Field: "AssignedTo", Name: "AssignedTo" },
9530
+ { Field: "TargetDate", Name: "TargetDate", DataType: E_DataType.date },
9531
+ { Field: "IsDoneEn", Name: "IsDone", },
9532
+ ];
9533
+ this.translatePipe = new TranslatePipe(this.globalService);
9534
+ this.IsShowCreatePopup = false;
9535
+ this.IsShowSendEmailPopup = false;
9536
+ }
9537
+ ngOnInit() {
9538
+ // this.actRoute.paramMap.subscribe((res) => {
9539
+ //
9540
+ // console.log(res);
9541
+ // if (this.ViewFrom != 'Popup') {
9542
+ // this.RecId = Number(res.get('RecId'));
9543
+ // this.EntityTypeRecId = Number(res.get('EntityTypeRecId'));
9544
+ // }
9545
+ // });
9546
+ this.getTaskDetails();
9547
+ this.getActivity();
9548
+ this.getWorkflowStatusWithStage();
9549
+ // this.getAssignGroupData();
9550
+ // this.getTaskAssignData();
9551
+ }
9552
+ getTaskDetails() {
9553
+ if (this.RecId != null) {
9554
+ this.EntityTypeSetupService.getDynamicById(this.EntityTypeRecId, this.RecId).subscribe((x) => {
9555
+ // alert("a");
9556
+ // ;
9557
+ this._TaskDetail = x;
9558
+ this.stageId = x.ProcessStage;
9559
+ this.EntityTypeId = x.EntityTypeId;
9560
+ this.EntityTypeIdRecId = x.EntityTypeRecId;
9561
+ this.refRecId = x.RecId;
9562
+ this.GetPageList(this.storeCriteria);
9563
+ if (this._TaskDetail && this._TaskDetail.uploadFiles && this._TaskDetail.uploadFiles.length > 0) {
9564
+ this._TaskDetail.uploadFiles.map(x => {
9565
+ if (x.Ext) {
9566
+ x.ExtSm = x.Ext.toLowerCase();
9567
+ x.ExtSm = x.ExtSm.replace('.', '');
9568
+ }
9569
+ });
9570
+ }
9571
+ this.getActivities();
9572
+ this.getEntityFormDetails();
9573
+ // this.getComments();
9574
+ if (this.IsWfAction) {
9575
+ this.getWfStageAction(x.EntityTypeId, x.ProcessStage);
9576
+ }
9577
+ }, (error) => error.error);
9578
+ }
9356
9579
  }
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);
9580
+ getEntityFormDetails() {
9581
+ this.EntityDefaultPageGroupsData = [];
9582
+ this.EntityPageGroupsData = [];
9583
+ this.EntityTypeSetupService.getActiveEntityFormByDetails(this.EntityTypeId).subscribe((res) => {
9584
+ if (res.FormData) {
9585
+ let _FormData = JSON.parse(res.FormData);
9586
+ if (_FormData.PageGroup) {
9587
+ if (Array.isArray(_FormData.PageGroup)) {
9588
+ this.EntityPageGroupsData = _FormData.PageGroup;
9589
+ }
9590
+ }
9591
+ if (_FormData.defaultPageGroups) {
9592
+ if (Array.isArray(_FormData.defaultPageGroups)) {
9593
+ this.EntityDefaultPageGroupsData = _FormData.defaultPageGroups;
9594
+ }
9595
+ }
9596
+ }
9597
+ this.EntityFormId = res.RecId;
9598
+ }, (error) => {
9599
+ console.log(error);
9600
+ });
9361
9601
  }
9362
- assignDocumentTypeForEntityTypeWithBody(data, EntityTypeId) {
9363
- let url_ = `${environment.ServerUrl}security/documenttypeformbody/entitytype/assign?MenuOrEntityRecId=${EntityTypeId}`;
9364
- return this.http.post(url_, data);
9602
+ getWorkflowActionComments(comments, updateFileds, updateFieldsObject) {
9603
+ // alert("zz");
9604
+ let updateFieldsObjectString = JSON.stringify(updateFieldsObject);
9605
+ this.EntityTypeSetupService.urlPostTaskWfAction(this.RecId, this.stageId, this.action, comments, updateFileds, updateFieldsObjectString, this.EntityTypeId).subscribe((res) => {
9606
+ // this.wfActionData = res;
9607
+ this.getTaskDetails();
9608
+ console.log(res);
9609
+ }, (error) => {
9610
+ error.error;
9611
+ if (error.error?.status == false) {
9612
+ let msg = JSON.parse(error.error?.msg);
9613
+ if (msg && msg.msg) {
9614
+ msg = msg.msg;
9615
+ }
9616
+ else {
9617
+ msg = error.error?.msg;
9618
+ }
9619
+ Swal.fire(this.translatePipe.transform(msg));
9620
+ }
9621
+ else {
9622
+ Swal.fire(this.translatePipe.transform(error.ExceptionMessage), this.translatePipe.transform(error.message));
9623
+ }
9624
+ });
9365
9625
  }
9366
- unassignDocumentTypeForEntityTypeWithBody(data, EntityTypeId) {
9367
- let url_ = `${environment.ServerUrl}security/documenttypeformbody/entitytype/unassign?MenuOrEntityRecId=${EntityTypeId}`;
9368
- return this.http.post(url_, data);
9626
+ getComments() {
9627
+ // alert("getcommends");
9628
+ if (this.refRecId != null) {
9629
+ this.ticketService.urlGetTicketUpdateByRecId(this.refRecId).subscribe((x) => {
9630
+ // alert("getcommends");
9631
+ this.commentsData = x.Data;
9632
+ this.commentsDataCount = x.TotalCount;
9633
+ }, (error) => {
9634
+ // Swal.fire(error);
9635
+ Swal.fire({
9636
+ title: this.translatePipe.transform(error.error),
9637
+ });
9638
+ // error.error
9639
+ });
9640
+ }
9369
9641
  }
9370
- getDocumentAssignList(Criteria, EntityRecId) {
9371
- const url = Common.getDocumentAssignList(EntityRecId);
9372
- return this.http.get(url);
9642
+ getActivity() {
9643
+ //this.EntityType = data.EntityType;
9644
+ this.EntityTypeSetupService.getAllAssinedActivites(this.Searchcriteria, this.EntityTypeRecId)
9645
+ // this.EntityTypeSetupService.getActiveEntityTypeSetup(this.Searchcriteria, this.EntityType, "")
9646
+ .subscribe((res) => {
9647
+ this.ActivityFields = res.Data;
9648
+ if (this.ActivityFields.length > 0) {
9649
+ const sortBy = ['Task', 'SMS', 'Email', 'Notes', 'Comments']; //sort by descending order
9650
+ this.ActivityFields = this.ActivityFields.sort((a, b) => sortBy.indexOf(b.Description) - sortBy.indexOf(a.Description));
9651
+ let taskActivity = { Description: 'Task', RecId: 58, Type: 'Task' };
9652
+ this.ActivityFields.push(taskActivity);
9653
+ this.openDefaultComments();
9654
+ }
9655
+ });
9373
9656
  }
9374
- open() {
9375
- this.IsPopUp = true;
9657
+ getActivityFileUploads(item) {
9658
+ if (item.showform && item.RecId && item.ActivityTypeId) {
9659
+ this.EntityTypeSetupService.getActivityUploadFile(item.RecId, this.EntityTypeRecId, item.ActivityTypeId)
9660
+ .subscribe((res) => {
9661
+ if (res && res.length > 0) {
9662
+ item.uploadFiles = res;
9663
+ }
9664
+ });
9665
+ }
9376
9666
  }
9377
- close() {
9378
- this.IsPopUp = false;
9667
+ getActivityFileUploadsReadonly(item) {
9668
+ if (item.RecId && item.ActivityTypeId) {
9669
+ this.EntityTypeSetupService.getActivityUploadFile(item.RecId, this.EntityTypeRecId, item.ActivityTypeId)
9670
+ .subscribe((res) => {
9671
+ if (res && res.length > 0) {
9672
+ item.uploadFiles = res;
9673
+ }
9674
+ this.ActivityTypeReadonly.push(item);
9675
+ });
9676
+ }
9379
9677
  }
9380
- getSideMenuData() {
9381
- let url = environment.ServerUrl + "entitytype/productivitymenuitems";
9382
- return this.http.get(url);
9678
+ addEvents(data) {
9679
+ this.openPopupCreatePage(data);
9383
9680
  }
9384
- getMenuItemData(criteriastr) {
9385
- let url = environment.ServerUrl + "security/menuitemsmap";
9386
- return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
9681
+ openPopupCreatePage(item) {
9682
+ this.CreateItemId = null;
9683
+ setTimeout(() => (this.CreateItemId = item.RecId), 0);
9684
+ this.selectedActivityItem = item;
9685
+ if (item.Description != 'Comments')
9686
+ this.displayPopupCreateView = true;
9687
+ // this.Activity=item.RecId;
9387
9688
  }
9388
- getSingleMenuItemData(RecId) {
9389
- let url = environment.ServerUrl + "security/menuitemsmap/" + RecId;
9390
- return this.http.get(url);
9689
+ closePopupCreateView(Type) {
9690
+ this.CreateItemId = null;
9691
+ this.displayPopupCreateView = false;
9692
+ if (Type == 'Create') {
9693
+ this.getActivities();
9694
+ this.openDefaultComments();
9695
+ }
9391
9696
  }
9392
- createMenuItemData(data) {
9393
- let url = environment.ServerUrl + "security/menuitemsmap/add";
9394
- return this.http.post(url, data);
9697
+ slider(direction, Id) {
9698
+ this.slide(direction, Id);
9395
9699
  }
9396
- updateMenuItemData(data) {
9397
- let url = environment.ServerUrl + "security/menuitemsmap/update";
9398
- return this.http.put(url, data);
9700
+ slide(direction, Id) {
9701
+ let container = document.getElementById(Id);
9702
+ let scrollCompleted = 0;
9703
+ let slideVar = setInterval(function () {
9704
+ if (direction == 'left') {
9705
+ container.scrollLeft -= 50;
9706
+ }
9707
+ else {
9708
+ container.scrollLeft += 50;
9709
+ }
9710
+ scrollCompleted += 10;
9711
+ if (scrollCompleted >= 50) {
9712
+ window.clearInterval(slideVar);
9713
+ }
9714
+ }, 50);
9399
9715
  }
9400
- deleteMenuItemData(RecId) {
9401
- let url = environment.ServerUrl + "security/menuitemsmap?recIds=" + RecId;
9402
- return this.http.delete(url);
9716
+ getWorkflowStatusWithStage() {
9717
+ this.EntityTypeSetupService.getAllWfStage(null, this.EntityTypeRecId, true)
9718
+ .subscribe((res) => {
9719
+ // alert("StatusAndStageList");
9720
+ this.StatusAndStageList = res.Data;
9721
+ // .sort((a, b) => {
9722
+ // if (a.StageId < b.StageId) return -1;
9723
+ // else if (a.StageId > b.StageId) return 1;
9724
+ // else return 0;
9725
+ // });
9726
+ let showallIndex = this.StatusAndStageList.findIndex(x => x.OrderId == -1);
9727
+ this.StatusAndStageList.splice(showallIndex, 1);
9728
+ let showPendingIndex = this.StatusAndStageList.findIndex(x => x.OrderId == 0);
9729
+ this.StatusAndStageList.splice(showPendingIndex, 1);
9730
+ }, (error) => {
9731
+ console.log(error);
9732
+ Swal.fire(this.translatePipe.transform(error.error?.ExceptionMessage), this.translatePipe.transform(error?.message), 'error');
9733
+ });
9403
9734
  }
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);
9735
+ selectProcess(item) {
9736
+ if (this.selectedProcess)
9737
+ this.showStageDetails = false;
9738
+ if (this.selectedProcess && this.selectedProcess.ProcessStage == item.StageId) {
9739
+ setTimeout(() => (this.selectedProcess = null), 500);
9740
+ }
9741
+ else {
9742
+ this.showStageDetails = true;
9743
+ this.selectedProcessList = this.ProcessStageList.filter((x) => x.ProcessStage == item.StageId);
9744
+ this.selectedProcess =
9745
+ this.selectedProcessList[this.selectedProcessList.length - 1];
9746
+ }
9475
9747
  }
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'));
9748
+ closeProcess() {
9749
+ this.showStageDetails = false;
9750
+ setTimeout(() => (this.selectedProcess = null), 500);
9751
+ }
9752
+ gridChangeTabs(data) {
9753
+ this.tabDisplayView = Number(data);
9754
+ }
9755
+ loadMoreActivities() {
9756
+ this.activitySearchcriteria.Pagging.PageSize += 10;
9757
+ this.getActivities();
9758
+ }
9759
+ getActivities() {
9760
+ // let ActivityId = 5;
9761
+ this.EntityTypeSetupService
9762
+ .getDynamicByEntityRefrecidwithoutCriteria(this.EntityTypeRecId, this.refRecId, this.activitySearchcriteria, this.Activity)
9763
+ .subscribe((res) => {
9764
+ this.ActivityType = res.Data;
9765
+ if (res && res.Data)
9766
+ this.ActivityTypeReadonly = [];
9767
+ res.Data.forEach(x => {
9768
+ this.getActivityFileUploadsReadonly(x);
9769
+ });
9770
+ this.setTimeline();
9771
+ this.TotalActivity = res.TotalCount;
9772
+ console.log('Activity', res.Data);
9483
9773
  });
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,
9774
+ (error) => {
9775
+ error.error;
9503
9776
  };
9504
9777
  }
9505
- getActiveEntityForm() {
9506
- this.entityTypeSetup.getActiveEntityFormByDetails(this.EntityTypeId).subscribe((res) => {
9507
- this.EntityFormId = res.RecId;
9508
- }, (error) => {
9509
- console.log(error);
9778
+ setTimeline() {
9779
+ this.TimelineList = [];
9780
+ this.TimelineListReadonly = [];
9781
+ if (Array.isArray(this.ActivityType)) {
9782
+ if (this.ActivityType.length > 0)
9783
+ this.TimelineList.push(...this.ActivityType);
9784
+ this.TimelineListReadonly.push(...this.ActivityType);
9785
+ }
9786
+ if (Array.isArray(this.ActivityTypeReadonly)) {
9787
+ if (this.ActivityTypeReadonly.length > 0)
9788
+ this.TimelineListReadonly.push(...this.ActivityTypeReadonly);
9789
+ }
9790
+ // if (Array.isArray(this.TaskList)) {
9791
+ // if (this.TaskList.length > 0) this.TimelineList.push(...this.TaskList);
9792
+ // }
9793
+ // if (Array.isArray(this.ProcessStageList)) {
9794
+ // if (this.ProcessStageList.length > 0) {
9795
+ // this.ProcessStageList = this.ProcessStageList.map((x) => {
9796
+ // x.Type = 'Workflow';
9797
+ // x.ActivityTypeIdEn = 'Comments';
9798
+ // return x;
9799
+ // });
9800
+ // this.TimelineList.push(...this.ProcessStageList);
9801
+ // }
9802
+ // }
9803
+ this.TimelineList.sort((a, b) => {
9804
+ if (a.CreatedDatetime < b.CreatedDatetime)
9805
+ return -1;
9806
+ else if (a.CreatedDatetime > b.CreatedDatetime)
9807
+ return 1;
9808
+ else
9809
+ return 0;
9810
+ });
9811
+ this.TimelineListReadonly.sort((a, b) => {
9812
+ if (a.CreatedDatetime < b.CreatedDatetime)
9813
+ return -1;
9814
+ else if (a.CreatedDatetime > b.CreatedDatetime)
9815
+ return 1;
9816
+ else
9817
+ return 0;
9510
9818
  });
9511
9819
  }
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;
9820
+ GetPageList(Criteria) {
9821
+ if (this.EntityTypeId != null) {
9822
+ this.storeCriteria = Criteria;
9823
+ // let data: Observable<IEntityWFstageVM[]>;
9824
+ this.EntityTypeSetupService.getWfInsProcessStageComments(Criteria, this.EntityTypeId, this.refRecId).subscribe((res) => {
9825
+ // alert("grid data");
9826
+ this.ProcessStageList = res.Data;
9827
+ this.setTimeline();
9828
+ console.log(res);
9829
+ this.loadGrid(res.Data, res.TotalCount);
9830
+ }, (error) => {
9831
+ console.log(error);
9832
+ this.loadGrid([], 0);
9833
+ Swal.fire(this.translatePipe.transform(error.error?.ExceptionMessage), this.translatePipe.transform(error?.message), 'error');
9518
9834
  });
9835
+ }
9836
+ }
9837
+ fileChange(event) {
9838
+ this.fileList = event.target.files;
9839
+ }
9840
+ commentSubmit() {
9841
+ let data = {
9842
+ commnets: this.Comments,
9843
+ refRecId: this.RecId,
9844
+ entitytyperecid: this.EntityTypeRecId
9845
+ };
9846
+ // this.service.urlComments(data).subscribe(
9847
+ // (x: any) => this.taskAssignData = x);
9848
+ let formData = new FormData();
9849
+ if (this.fileList && this.fileList.length > 0) {
9850
+ let file = this.fileList[0];
9851
+ formData.append('Files', file, file.name);
9852
+ }
9853
+ this.EntityTypeSetupService.postTaskComments(this.fileList, data).subscribe((x) => {
9854
+ this.Comments = null;
9855
+ this.CommentsTitle = null;
9856
+ this.TaskCommentFile = null;
9857
+ this.getComments();
9858
+ }, (error) => error.error);
9859
+ }
9860
+ // commentsActivityItem:any = null;
9861
+ openDefaultComments() {
9862
+ this.commentsActivityItem = this.ActivityFields.filter((x) => x.ActionType == '5')[0];
9863
+ // if (comments && comments.length > 0) {
9864
+ // this.commentsActivityItem = null;
9865
+ // setTimeout(() => (this.commentsActivityItem = comments[0]), 0);
9866
+ // this.commentsActivityItem = comments[0];
9867
+ // this.openPopupCreatePage(comments[0]);
9868
+ // }
9869
+ // else {
9870
+ // this.openPopupCreatePage(this.ActivityFields[0]);
9871
+ // }
9872
+ }
9873
+ getWfStageAction(EntityTypeId, StageId) {
9874
+ if (EntityTypeId == null)
9875
+ return;
9876
+ this.EntityTypeSetupService.urlGetWfStageAction(EntityTypeId, StageId).subscribe((res) => {
9877
+ // res = [{"Action":10,"ActionDescription":"InProgress","StageRecId":1,"ActionComplete":null,"ProcessId":null,"StageId":1,"StageTypeId":1,"ActionRecId":1,"StageDescription":"New"}]
9878
+ this.wfStageAction = res;
9879
+ console.log(res);
9519
9880
  }, (error) => {
9881
+ error.error;
9520
9882
  });
9521
9883
  }
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;
9884
+ getStatusField(data) {
9885
+ this.action = data.ActionRecId;
9886
+ this.workflowEntityFormId = data.WorkFlowForm;
9887
+ this.showWorkflowPopup = true;
9888
+ this.EntityTypeSetupService.onshowWorkflowPopup.next({
9889
+ showWorkflowPopup: true,
9890
+ fieldConfig: [],
9891
+ });
9892
+ }
9893
+ backToList() {
9894
+ this.route.navigate(['/EntityTypeSetup/task', this.EntityTypeRecId]);
9895
+ }
9896
+ ngOnDestroy() {
9897
+ this.globalService.showBackIcon = false;
9898
+ }
9899
+ closeModelPopup() {
9900
+ this.actionPopup = false;
9901
+ }
9902
+ GetFormattedDate(_date) {
9903
+ var todayTime = new Date(_date);
9904
+ var month = todayTime.getMonth() + 1;
9905
+ var day = todayTime.getDate();
9906
+ var year = todayTime.getFullYear();
9907
+ return year + "-" + month + "-" + day;
9908
+ }
9909
+ assignSubmit() {
9910
+ if (this.assignmentForm.value.TargetDate != "" && this.assignmentForm.value.TargetDate != null) {
9911
+ this.targetDate = this.GetFormattedDate(this.assignmentForm.value.TargetDate);
9912
+ this.submitData = {
9913
+ recId: this.RecId,
9914
+ ActionStatus: this.actionFormActionId,
9915
+ AssignedTo: this.assignmentForm.value.AssignedTo,
9916
+ Description: this.assignmentForm.value.Description,
9917
+ Comments: this.assignmentForm.value.Comments,
9918
+ };
9536
9919
  }
9537
9920
  else {
9538
- item.FileList = [];
9539
- item.File = null;
9540
- item.FileName = null;
9921
+ this.submitData = {
9922
+ recId: this.RecId,
9923
+ ActionStatus: this.actionFormActionId,
9924
+ AssignedTo: this.assignmentForm.value.AssignedTo,
9925
+ TargetDate: this.targetDate,
9926
+ Description: this.assignmentForm.value.Description,
9927
+ Comments: this.assignmentForm.value.Comments,
9928
+ };
9541
9929
  }
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');
9930
+ this.taskService.TaskAssignmentUpdateStatus(this.submitData, this.EntityTypeRecId).subscribe((x) => {
9931
+ this.assignmentForm.reset();
9932
+ this.closeModelPopup();
9933
+ this.taskService.showCommentPopup = false;
9934
+ this.taskService.close();
9935
+ this.getAssignmentByRefRecIdList(this.HistoryListCriteria);
9936
+ // Swal.fire(x);
9937
+ Swal.fire({
9938
+ title: this.translatePipe.transform(x),
9939
+ });
9940
+ this.getTaskDetails();
9941
+ this.getComments();
9942
+ }, (error) => {
9943
+ this.assignmentForm.reset();
9944
+ this.closeModelPopup();
9945
+ this.taskService.showCommentPopup = false;
9946
+ this.taskService.close();
9947
+ // Swal.fire(error.error);
9551
9948
  Swal.fire({
9552
- title: this.translatePipe.transform('Fill all mandatory fields'),
9949
+ title: this.translatePipe.transform(error.error),
9553
9950
  });
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");
9951
+ // alert("err");
9952
+ // error.error
9953
+ });
9954
+ }
9955
+ getAssignmentByRefRecIdList(Criteria) {
9956
+ this.HistoryListCriteria = Criteria;
9957
+ if (this.RecId != null) {
9958
+ this.globalService.dataLoader = true;
9959
+ this.taskService.assignmentbyrefrecid(Criteria, this.RecId, this.EntityTypeRecId).subscribe((x) => {
9960
+ // alert("get");
9961
+ this.loadGrid(x.Data, x.TotalCount);
9962
+ this.globalService.dataLoader = false;
9963
+ }, (error) => {
9964
+ // Swal.fire(error);
9965
+ // error.error
9569
9966
  Swal.fire({
9570
- title: this.translatePipe.transform('Updated sucessfully'),
9967
+ title: this.translatePipe.transform(error.error),
9571
9968
  });
9572
- this.pageForm.reset();
9573
- this.closeCreate.emit({ Type: "Edit" });
9574
- this.supportService.displayListPopUp = true;
9575
- }, (error) => {
9576
- console.log(error);
9577
9969
  });
9578
9970
  }
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'),
9971
+ }
9972
+ loadGrid(data, TotalRecord) {
9973
+ if (data) {
9974
+ if (data.length > 0)
9975
+ this.gridServiceService.onGridRefresh.next({
9976
+ isTrue: true,
9977
+ list: data,
9978
+ grid: 8,
9979
+ count: data.length,
9980
+ totalRecordCount: TotalRecord,
9604
9981
  });
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"),
9982
+ else
9983
+ this.gridServiceService.onGridRefresh.next({
9984
+ isTrue: true,
9985
+ list: [],
9986
+ grid: 8,
9987
+ count: 0,
9988
+ totalRecordCount: 0,
9624
9989
  });
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);
9990
+ }
9991
+ else
9992
+ this.gridServiceService.onGridRefresh.next({
9993
+ isTrue: true,
9994
+ list: [],
9995
+ grid: 8,
9996
+ count: 0,
9997
+ totalRecordCount: 0,
9652
9998
  });
9999
+ }
10000
+ getTaskAssignData() {
10001
+ this.taskService.getTaskAssignData().subscribe((x) => this.taskAssignData = x);
10002
+ }
10003
+ submitComment(event) {
10004
+ if (event.keyCode == 13 && this.inputValue) {
10005
+ this.globalService.submitComments.next({ message: this.inputValue });
10006
+ this.inputValue = null;
9653
10007
  }
9654
10008
  }
9655
- emitTicketCreateForm(CreateData, pageForm) {
9656
- this.createFormData = CreateData;
9657
- this.pageForm = pageForm;
10009
+ showCreatePopup() {
10010
+ this.IsShowCreatePopup = true;
10011
+ }
10012
+ hideCreatePopup(IsHide, Data, IsReload, PageType) {
10013
+ this.IsShowCreatePopup = IsHide;
10014
+ if (Data && PageType == 'SelfService') {
10015
+ if (Data.RecId && Data.EntityTypeRecId) {
10016
+ this.RecId = Data.RecId;
10017
+ this.EntityTypeIdRecId = Data.EntityTypeRecId;
10018
+ this.IsWfAction = true;
10019
+ this.getTaskDetails();
10020
+ this.getActivity();
10021
+ this.getWorkflowStatusWithStage();
10022
+ }
10023
+ }
10024
+ else {
10025
+ this.closeCreateModel.emit({ IsClose: IsHide, Data: Data, IsReload: IsReload });
10026
+ }
10027
+ }
10028
+ showEmailCreatePopup() {
10029
+ this.IsShowSendEmailPopup = true;
10030
+ }
10031
+ hideEmailCreatePopup(IsHide, Data, IsReload) {
10032
+ this.IsShowSendEmailPopup = IsHide;
9658
10033
  }
9659
10034
  }
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: [{
10035
+ 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 });
10036
+ 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" }] });
10037
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SupportRequestDetailsComponent, decorators: [{
9663
10038
  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: [{
10039
+ 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"] }]
10040
+ }], 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
10041
  type: Input
9667
- }], EntityTypeId: [{
10042
+ }], RecId: [{
9668
10043
  type: Input
9669
10044
  }], ViewFrom: [{
9670
10045
  type: Input
9671
- }], Type: [{
9672
- type: Input
9673
- }], FormValues: [{
9674
- type: Input
9675
- }], IssueType: [{
10046
+ }], IsWfAction: [{
9676
10047
  type: Input
9677
- }], IssueGroup: [{
10048
+ }], PageType: [{
9678
10049
  type: Input
9679
- }], IssueSubGroup: [{
10050
+ }], RequesterTypeId: [{
9680
10051
  type: Input
9681
- }], IssueTypeEn: [{
10052
+ }], RequesterTypeIdEn: [{
9682
10053
  type: Input
9683
- }], IssueGroupEn: [{
10054
+ }], RequesterId: [{
9684
10055
  type: Input
9685
- }], IssueSubGroupEn: [{
10056
+ }], RequesterField: [{
9686
10057
  type: Input
9687
- }], IssueTypeAr: [{
10058
+ }], Language: [{
9688
10059
  type: Input
9689
- }], IssueGroupAr: [{
10060
+ }], HostUrl: [{
9690
10061
  type: Input
9691
- }], IssueSubGroupAr: [{
10062
+ }], Host: [{
9692
10063
  type: Input
9693
10064
  }], Source: [{
9694
10065
  type: Input
9695
- }], CreatedByUserType: [{
9696
- type: Input
9697
10066
  }], Channel: [{
9698
10067
  type: Input
9699
10068
  }], ChannelEn: [{
9700
10069
  type: Input
9701
10070
  }], ChannelAr: [{
9702
10071
  type: Input
9703
- }], RequestField: [{
9704
- type: Input
9705
- }], RequesterId: [{
9706
- type: Input
9707
- }], RequesterIdEn: [{
9708
- type: Input
9709
- }], closeCreate: [{
10072
+ }], closeCreateModel: [{
9710
10073
  type: Output
9711
10074
  }] } });
9712
10075
 
@@ -9756,11 +10119,12 @@ class CaseListComponent {
9756
10119
  { Field: 'ProcessStageEn', Name: 'Process Stage En' },
9757
10120
  { Field: 'ProcessStageAr', Name: 'Process Stage Ar' },
9758
10121
  ];
10122
+ this.ContractList = [];
9759
10123
  this.viewTypes = [
9760
10124
  { id: 1, name: 'Tab View', class: 'la la-table' },
9761
10125
  { id: 2, name: 'Details View', class: 'la la-id-card-o' },
9762
10126
  ];
9763
- this.selectedIndex = 0;
10127
+ this.selectedIndex = 1;
9764
10128
  this.viewTypeData = 1;
9765
10129
  this.selectMode = E_SelectMode.None;
9766
10130
  this.EntityTypeDetail = null;
@@ -9802,7 +10166,7 @@ class CaseListComponent {
9802
10166
  }
9803
10167
  getListDatas(Criteria) {
9804
10168
  this.Searchcriteria = Criteria;
9805
- this.entityTypeSetup.getDynamicAll(Criteria, this.EntityTypeId, this.StatusId, this.RequesterId).subscribe((res) => {
10169
+ this.entityTypeSetup.getDynamicAll(Criteria, this.EntityTypeId, this.StatusId, this.RequesterId, this.SelectedContract).subscribe((res) => {
9806
10170
  // alert("data");
9807
10171
  this.selfServiceRequestData = res.Data;
9808
10172
  this.totalRecordCount = res.TotalCount;
@@ -9853,7 +10217,7 @@ class CaseListComponent {
9853
10217
  });
9854
10218
  }
9855
10219
  viewType(data, index) {
9856
- this.selectedIndex = index;
10220
+ this.selectedIndex = data.id;
9857
10221
  this.viewTypeData = data.id;
9858
10222
  }
9859
10223
  backtoCard() {
@@ -10102,7 +10466,6 @@ class CaseListComponent {
10102
10466
  this.slide(direction, Id);
10103
10467
  }
10104
10468
  slide(direction, Id) {
10105
- debugger;
10106
10469
  let container = document.getElementById(Id);
10107
10470
  let scrollCompleted = 0;
10108
10471
  let slideVar = setInterval(function () {
@@ -10120,10 +10483,10 @@ class CaseListComponent {
10120
10483
  }
10121
10484
  }
10122
10485
  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" }] });
10486
+ 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;\">\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 </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: 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
10487
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: CaseListComponent, decorators: [{
10125
10488
  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"] }]
10489
+ 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;\">\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 </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
10490
  }], ctorParameters: function () { return [{ type: SupportRequestService }, { type: EntityTypeSetupService }, { type: GlobalService }, { type: GridServiceService }, { type: undefined, decorators: [{
10128
10491
  type: Inject,
10129
10492
  args: [DOCUMENT]
@@ -10151,6 +10514,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
10151
10514
  type: Input
10152
10515
  }], IsClientPagination: [{
10153
10516
  type: Input
10517
+ }], ContractList: [{
10518
+ type: Input
10519
+ }], SelectedContract: [{
10520
+ type: Input
10154
10521
  }] } });
10155
10522
 
10156
10523
  class SelfServiceFlowComponent {
@@ -10167,6 +10534,7 @@ class SelfServiceFlowComponent {
10167
10534
  this.IssueAllList = [];
10168
10535
  this.IssueCaseList = [];
10169
10536
  this.translatePipe = new TranslatePipe(this.globalService);
10537
+ this.ContractList = [];
10170
10538
  }
10171
10539
  ngOnInit() {
10172
10540
  this.getIssueGroupRequesterMappingByRequesterType();
@@ -10203,15 +10571,14 @@ class SelfServiceFlowComponent {
10203
10571
  var http = new XMLHttpRequest();
10204
10572
  http.open('HEAD', image_url, false);
10205
10573
  http.send();
10206
- debugger;
10207
10574
  return http.status != 404;
10208
10575
  }
10209
10576
  }
10210
10577
  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" }] });
10578
+ 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
10579
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SelfServiceFlowComponent, decorators: [{
10213
10580
  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>" }]
10581
+ 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
10582
  }], ctorParameters: function () { return [{ type: SupportRequestService }, { type: i3.FormBuilder }, { type: EntityTypeSetupService }, { type: GlobalService }, { type: undefined, decorators: [{
10216
10583
  type: Inject,
10217
10584
  args: [DOCUMENT]
@@ -10233,16 +10600,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
10233
10600
  type: Input
10234
10601
  }], ChannelAr: [{
10235
10602
  type: Input
10603
+ }], ContractList: [{
10604
+ type: Input
10605
+ }], SelectedContract: [{
10606
+ type: Input
10236
10607
  }] } });
10237
10608
 
10238
10609
  // import { environment } from 'arco-support-request';
10239
10610
  class RequestFlowComponent {
10240
- constructor(supportService, fb, entityTypeSetup, router, globalService, document) {
10611
+ constructor(supportService, fb, entityTypeSetup, router, globalService, gridServiceService, document) {
10241
10612
  this.supportService = supportService;
10242
10613
  this.fb = fb;
10243
10614
  this.entityTypeSetup = entityTypeSetup;
10244
10615
  this.router = router;
10245
10616
  this.globalService = globalService;
10617
+ this.gridServiceService = gridServiceService;
10246
10618
  this.document = document;
10247
10619
  this.issuType = "7";
10248
10620
  this.Language = 'Eng';
@@ -10250,6 +10622,7 @@ class RequestFlowComponent {
10250
10622
  this.Channel = '3';
10251
10623
  this.ChannelEn = 'Portal';
10252
10624
  this.ChannelAr = 'صفحة العميل';
10625
+ this.DDContractList = [];
10253
10626
  this.viewHtml = true;
10254
10627
  this.translatePipe = new TranslatePipe(this.globalService);
10255
10628
  this.FieldListDDL = [
@@ -10333,6 +10706,27 @@ class RequestFlowComponent {
10333
10706
  this.isShowCreateRequest = false;
10334
10707
  this.selectCaseItem = null;
10335
10708
  this.isDetails = false;
10709
+ this.GridCheckedData = [];
10710
+ this.selectMode = E_SelectMode.None;
10711
+ this.columnDefs = [
10712
+ { Field: 'CaseId', Name: 'Case Id', FieldType: E_FieldType.details },
10713
+ { Field: 'CaseTypeIdAr', Name: 'Case Type Ar' },
10714
+ { Field: 'CaseTypeIdEn', Name: 'Case Type En' },
10715
+ { Field: 'Description', Name: 'Description' },
10716
+ { Field: 'Subject', Name: 'Subject' },
10717
+ { Field: 'StatusIdEn', Name: 'Status' },
10718
+ { Field: 'PriorityEn', Name: 'Priority En' },
10719
+ { Field: 'PriorityAr', Name: 'Priority Ar' },
10720
+ { Field: 'CreatedBy', Name: 'CreatedBy' },
10721
+ { Field: 'CreatedDatetime', Name: 'CreatedDatetime', DataType: E_DataType.dateTime },
10722
+ ];
10723
+ this.viewTypes = [
10724
+ { id: 1, name: 'Tab View', class: 'la la-table' },
10725
+ { id: 2, name: 'Details View', class: 'la la-id-card-o' },
10726
+ ];
10727
+ this.selectedIndex = 1;
10728
+ this.viewTypeData = 1;
10729
+ this.IsShowCreatePopup = false;
10336
10730
  router.events.subscribe(event => {
10337
10731
  if (event instanceof NavigationStart) {
10338
10732
  setTimeout(() => this.globalService.dataLoader = true, 0);
@@ -10388,6 +10782,11 @@ class RequestFlowComponent {
10388
10782
  this.getategoryrequestertype();
10389
10783
  }
10390
10784
  this.globalService.getSystemConfig();
10785
+ this.ContractList.map((x) => {
10786
+ if (x) {
10787
+ this.DDContractList.push({ ContractId: x });
10788
+ }
10789
+ });
10391
10790
  }
10392
10791
  toggleTheme(e) {
10393
10792
  if (this.globalService.CurrentLanguage == 'Eng') {
@@ -10668,12 +11067,13 @@ class RequestFlowComponent {
10668
11067
  this.Searchcriteria.Where.push(filtervals);
10669
11068
  // let SupportRequestId = localStorage.getItem("RequesterTypeId");
10670
11069
  // this.entityTypeSetup.urlGetDynamicTicket(Criteria, this.EntityTypeId)
10671
- this.entityTypeSetup.getsupportRequestData(Criteria, this.RequesterTypeId, this.RequesterId, this.Source, this.StatusListValue).subscribe((res) => {
11070
+ this.entityTypeSetup.getsupportRequestData(Criteria, this.RequesterTypeId, this.RequesterId, this.Source, this.StatusListValue, this.SelectedContract).subscribe((res) => {
10672
11071
  // alert("data");
10673
11072
  this.supportRequestData = res.Data;
10674
11073
  this.totalRecordCount = res.TotalCount;
10675
11074
  console.log('datas', res);
10676
11075
  this.getPageCount();
11076
+ this.loadGrid(res.Data, res.TotalCount);
10677
11077
  }, (error) => {
10678
11078
  console.log(error);
10679
11079
  Swal.fire({
@@ -10684,7 +11084,7 @@ class RequestFlowComponent {
10684
11084
  getStatusListCount() {
10685
11085
  // let SupportRequestId = localStorage.getItem("RequesterTypeId");
10686
11086
  this.supportService
10687
- .getStatusListCount(this.RequesterTypeId, this.RequesterId, this.issuType)
11087
+ .getStatusListCount(this.RequesterTypeId, this.RequesterId, this.issuType, this.SelectedContract)
10688
11088
  .subscribe((res) => {
10689
11089
  this.StatusList = res;
10690
11090
  if (this.StatusList != null && this.StatusList.length > 0) {
@@ -10748,7 +11148,6 @@ class RequestFlowComponent {
10748
11148
  this.IssueTypeDDL = [];
10749
11149
  this.dropdownIssuse = [];
10750
11150
  this.supportService.getIssueGroupRequesterMappingByRequesterType(this.RequesterTypeId).subscribe((res) => {
10751
- debugger;
10752
11151
  this.IssueTypeDDL = res;
10753
11152
  if (res) {
10754
11153
  this.IssueTypeDDL = res.filter(x => x.IssueType == this.issuType);
@@ -10829,7 +11228,6 @@ class RequestFlowComponent {
10829
11228
  item.showCategory = !item.showCategory;
10830
11229
  }
10831
11230
  selectGroup(item, Type) {
10832
- debugger;
10833
11231
  this.showChild = false;
10834
11232
  this.showsubChild = true;
10835
11233
  this.issueGroupName = item.IssueGroupEn;
@@ -10936,13 +11334,63 @@ class RequestFlowComponent {
10936
11334
  console.log(error);
10937
11335
  });
10938
11336
  }
11337
+ getgridCheckedData(item) {
11338
+ this.GridCheckedData = item;
11339
+ }
11340
+ goDetails(data) {
11341
+ this.openDetailsPopup(data);
11342
+ }
11343
+ viewType(data, index) {
11344
+ this.selectedIndex = data.id;
11345
+ this.viewTypeData = data.id;
11346
+ }
11347
+ loadGrid(data, TotalRecord) {
11348
+ if (data) {
11349
+ if (data.length > 0)
11350
+ this.gridServiceService.onGridRefresh.next({
11351
+ isTrue: true,
11352
+ list: data,
11353
+ count: data.length,
11354
+ grid: 1,
11355
+ totalRecordCount: TotalRecord,
11356
+ });
11357
+ else
11358
+ this.gridServiceService.onGridRefresh.next({
11359
+ isTrue: true,
11360
+ grid: 1,
11361
+ list: [],
11362
+ count: 0,
11363
+ totalRecordCount: 0,
11364
+ });
11365
+ }
11366
+ else
11367
+ this.gridServiceService.onGridRefresh.next({
11368
+ isTrue: true,
11369
+ grid: 1,
11370
+ list: [],
11371
+ count: 0,
11372
+ totalRecordCount: 0,
11373
+ });
11374
+ }
11375
+ showCreatePopup() {
11376
+ this.IsShowCreatePopup = true;
11377
+ }
11378
+ hideCreatePopup(IsHide, Data, IsReload) {
11379
+ this.IsShowCreatePopup = IsHide;
11380
+ if (Data) {
11381
+ this.openDetailsPopup(Data);
11382
+ }
11383
+ if (IsReload) {
11384
+ this.getListDatas(this.storeCriteria);
11385
+ }
11386
+ }
10939
11387
  }
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" }] });
11388
+ 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 });
11389
+ 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 <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 <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 <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: 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
11390
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: RequestFlowComponent, decorators: [{
10943
11391
  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: [{
11392
+ 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 <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 <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 <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" }]
11393
+ }], ctorParameters: function () { return [{ type: SupportRequestService }, { type: i3.FormBuilder }, { type: EntityTypeSetupService }, { type: i2.Router }, { type: GlobalService }, { type: GridServiceService }, { type: undefined, decorators: [{
10946
11394
  type: Inject,
10947
11395
  args: [DOCUMENT]
10948
11396
  }] }]; }, propDecorators: { PageType: [{
@@ -10969,6 +11417,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
10969
11417
  type: Input
10970
11418
  }], ChannelAr: [{
10971
11419
  type: Input
11420
+ }], ContractList: [{
11421
+ type: Input
11422
+ }], SelectedContract: [{
11423
+ type: Input
10972
11424
  }], GridSearchType: [{
10973
11425
  type: Input
10974
11426
  }], IsClientPagination: [{
@@ -10981,7 +11433,7 @@ class SupportRequestIndexComponent {
10981
11433
  }
10982
11434
  }
10983
11435
  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 });
11436
+ 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
11437
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: SupportRequestIndexComponent, decorators: [{
10986
11438
  type: Component,
10987
11439
  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 +11547,7 @@ class ActionComponent {
11095
11547
  }
11096
11548
  }
11097
11549
  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"] }] });
11550
+ 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
11551
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: ActionComponent, decorators: [{
11100
11552
  type: Component,
11101
11553
  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 +11585,9 @@ SupportRequestModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", ve
11133
11585
  CaseListComponent,
11134
11586
  GridComponent,
11135
11587
  GridDatatypeComponent,
11136
- InnerGridComponent], imports: [CommonModule,
11588
+ InnerGridComponent,
11589
+ CreateFormComponent,
11590
+ SendemailComponent], imports: [CommonModule,
11137
11591
  // SupportRequestRoutingModule,
11138
11592
  FormsModule,
11139
11593
  ReactiveFormsModule,
@@ -11192,7 +11646,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
11192
11646
  CaseListComponent,
11193
11647
  GridComponent,
11194
11648
  GridDatatypeComponent,
11195
- InnerGridComponent
11649
+ InnerGridComponent,
11650
+ CreateFormComponent,
11651
+ SendemailComponent
11196
11652
  ],
11197
11653
  imports: [
11198
11654
  CommonModule,