arco-support-request 0.0.83 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arco-support-request.d.ts +25 -28
- package/arco-support-request.metadata.json +1 -1
- package/bundles/arco-support-request.umd.js +1877 -1848
- package/bundles/arco-support-request.umd.js.map +1 -1
- package/bundles/arco-support-request.umd.min.js +1 -1
- package/bundles/arco-support-request.umd.min.js.map +1 -1
- package/esm2015/arco-support-request.js +26 -29
- package/esm2015/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.js +35 -31
- package/esm2015/lib/entity-type-setup/service/entity-type-setup.service.js +1 -1
- package/esm2015/lib/support-request/case-list/case-list.component.js +19 -19
- package/esm2015/lib/support-request/request-flow/request-flow.component.js +14 -3
- package/esm2015/lib/support-request/support-request-details/support-request-details.component.js +19 -6
- package/esm2015/lib/task/Services/task.service.js +1 -1
- package/esm2015/public-api.js +4 -1
- package/fesm2015/arco-support-request.js +1336 -1308
- package/fesm2015/arco-support-request.js.map +1 -1
- package/lib/support-request/case-list/case-list.component.d.ts +1 -1
- package/lib/support-request/request-flow/request-flow.component.d.ts +3 -1
- package/lib/support-request/support-request-details/support-request-details.component.d.ts +2 -2
- package/package.json +4 -4
- package/public-api.d.ts +3 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/common/http'), require('rxjs'), require('@angular/platform-browser'), require('sweetalert2'), require('@angular/router'), require('@ng-select/ng-select'), require('@kolkov/angular-editor'), require('handlebars'), require('@angular/platform-browser/animations'), require('@angular/material/datepicker'), require('@angular/material/core'), require('@angular/material/form-field'), require('@angular/material/input'), require('ngx-pagination')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('arco-support-request', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/common/http', 'rxjs', '@angular/platform-browser', 'sweetalert2', '@angular/router', '@ng-select/ng-select', '@kolkov/angular-editor', 'handlebars', '@angular/platform-browser/animations', '@angular/material/datepicker', '@angular/material/core', '@angular/material/form-field', '@angular/material/input', 'ngx-pagination'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['arco-support-request'] = {}, global.ng.core, global.ng.common, global.ng.forms, global.ng.common.http, global.rxjs, global.ng.platformBrowser, global
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['arco-support-request'] = {}, global.ng.core, global.ng.common, global.ng.forms, global.ng.common.http, global.rxjs, global.ng.platformBrowser, global.Swal, global.ng.router, global.ngSelect, global.angularEditor, global.handlebars, global.ng.platformBrowser.animations, global.ng.material.datepicker, global.ng.material.core, global.ng.material.formField, global.ng.material.input, global.ngxPagination));
|
|
5
5
|
}(this, (function (exports, i0, common, forms, i1$1, rxjs, i1, Swal, router, ngSelect, angularEditor, handlebars, animations, datepicker, core, formField, input, ngxPagination) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -5124,287 +5124,305 @@
|
|
|
5124
5124
|
{ type: GlobalService }
|
|
5125
5125
|
]; };
|
|
5126
5126
|
|
|
5127
|
-
var
|
|
5128
|
-
function
|
|
5129
|
-
this.
|
|
5130
|
-
this.
|
|
5131
|
-
this.
|
|
5127
|
+
var SupportRequestDetailsComponent = /** @class */ (function () {
|
|
5128
|
+
function SupportRequestDetailsComponent(taskService, EntityTypeSetupService, fb, actRoute, gridServiceService, ticketService, globalService, route) {
|
|
5129
|
+
this.taskService = taskService;
|
|
5130
|
+
this.EntityTypeSetupService = EntityTypeSetupService;
|
|
5131
|
+
this.fb = fb;
|
|
5132
|
+
this.actRoute = actRoute;
|
|
5132
5133
|
this.gridServiceService = gridServiceService;
|
|
5133
|
-
this.
|
|
5134
|
+
this.ticketService = ticketService;
|
|
5135
|
+
this.globalService = globalService;
|
|
5136
|
+
this.route = route;
|
|
5137
|
+
this.ViewFrom = "Page";
|
|
5138
|
+
this.IsWfAction = false;
|
|
5139
|
+
this.environment = environment;
|
|
5140
|
+
// _TaskDetail: TaskVM =null;
|
|
5141
|
+
this._TaskDetail = null;
|
|
5142
|
+
this.stageId = null;
|
|
5134
5143
|
this.EntityTypeId = null;
|
|
5135
|
-
this.
|
|
5136
|
-
this.
|
|
5137
|
-
this.
|
|
5138
|
-
this.
|
|
5139
|
-
this.
|
|
5140
|
-
this.
|
|
5141
|
-
this.
|
|
5142
|
-
this.
|
|
5143
|
-
this.
|
|
5144
|
-
this.
|
|
5145
|
-
this.
|
|
5146
|
-
this.
|
|
5147
|
-
this.
|
|
5148
|
-
this.
|
|
5144
|
+
this.EntityTypeIdRecId = null;
|
|
5145
|
+
this.refRecId = null;
|
|
5146
|
+
this.EntityFormId = null;
|
|
5147
|
+
this.EntityPageGroupsData = [];
|
|
5148
|
+
this.EntityDefaultPageGroupsData = [];
|
|
5149
|
+
this.pageTitle = "Process Stage";
|
|
5150
|
+
this.pageDesp = "Process Stage";
|
|
5151
|
+
this.selectMode = E_SelectMode.Multi;
|
|
5152
|
+
this.isAttach = false;
|
|
5153
|
+
this.isCreate = false;
|
|
5154
|
+
this.isEdit = false;
|
|
5155
|
+
this.isDelete = false;
|
|
5156
|
+
this.isExport = false;
|
|
5157
|
+
this.gridActionList = [];
|
|
5158
|
+
this.columnDefs = [
|
|
5159
|
+
{ Field: 'ProcessStage', Name: 'Process Stage Id' },
|
|
5160
|
+
{ Field: 'ProcessStageEn', Name: 'Process Stage' },
|
|
5161
|
+
{ Field: 'Comments', Name: 'Comments' },
|
|
5162
|
+
{ Field: 'StartDate', Name: 'Start Date', DataType: E_DataType.date },
|
|
5163
|
+
{ Field: 'EndDate', Name: 'End Date', DataType: E_DataType.date },
|
|
5164
|
+
];
|
|
5165
|
+
this.commentsData = [];
|
|
5166
|
+
this.commentsDataCount = 0;
|
|
5149
5167
|
this.Searchcriteria = {
|
|
5150
5168
|
Pagging: {
|
|
5151
|
-
PageNo:
|
|
5152
|
-
PageSize:
|
|
5169
|
+
PageNo: 1,
|
|
5170
|
+
PageSize: 10,
|
|
5153
5171
|
},
|
|
5154
5172
|
Where: [],
|
|
5155
|
-
SortOrder:
|
|
5173
|
+
SortOrder: 1,
|
|
5156
5174
|
};
|
|
5157
|
-
this.
|
|
5158
|
-
{ Field: 'CaseId', Name: 'Case Id', FieldType: E_FieldType.details },
|
|
5159
|
-
{ Field: 'LabourId', Name: 'Labour Id' },
|
|
5160
|
-
{ Field: 'LaborName', Name: 'Labor Name' },
|
|
5161
|
-
{ Field: 'IqamaNumber', Name: 'Iqama Number' },
|
|
5162
|
-
{ Field: 'PassportNumber', Name: 'Passport Number' },
|
|
5163
|
-
{ Field: 'BorderNumber', Name: 'Border Number' },
|
|
5164
|
-
{ Field: 'MobileNumber', Name: 'Mobile Number' },
|
|
5165
|
-
{ Field: 'NationalityEn', Name: 'Nationality' },
|
|
5166
|
-
{ Field: 'ProfessionEn', Name: 'Profession' },
|
|
5167
|
-
{ Field: 'DateofRequest', Name: 'Request Date', DataType: E_DataType.date },
|
|
5168
|
-
{ Field: 'StartDate', Name: 'Start Date', DataType: E_DataType.date },
|
|
5169
|
-
{ Field: 'EndDate', Name: 'End Date', DataType: E_DataType.date },
|
|
5170
|
-
{ Field: 'ProcessStageEn', Name: 'Process Stage En' },
|
|
5171
|
-
{ Field: 'ProcessStageAr', Name: 'Process Stage Ar' },
|
|
5172
|
-
];
|
|
5173
|
-
this.viewTypes = [
|
|
5174
|
-
{ id: 1, name: 'Tab View', class: 'la la-table' },
|
|
5175
|
-
{ id: 2, name: 'Details View', class: 'la la-id-card-o' },
|
|
5176
|
-
];
|
|
5177
|
-
this.selectedIndex = 0;
|
|
5178
|
-
this.viewTypeData = 1;
|
|
5179
|
-
this.selectMode = E_SelectMode.None;
|
|
5180
|
-
this.EntityTypeDetail = null;
|
|
5181
|
-
this.ActiveEntityTypeForm = null;
|
|
5175
|
+
this.displayPopupCreateView = false;
|
|
5182
5176
|
this.CreateItemId = null;
|
|
5183
|
-
this.
|
|
5184
|
-
this.
|
|
5185
|
-
this.
|
|
5186
|
-
this.
|
|
5187
|
-
this.
|
|
5188
|
-
this.
|
|
5189
|
-
|
|
5190
|
-
{ Id: 2, Name: 'CaseId', Field: 'CaseId', FieldAr: 'CaseId' },
|
|
5191
|
-
{ Id: 3, Name: 'LabourId', Field: 'LabourId', FieldAr: 'LabourId' },
|
|
5192
|
-
{ Id: 4, Name: 'LaborName', Field: 'LaborName', FieldAr: 'LaborName' },
|
|
5193
|
-
{ Id: 4, Name: 'PassportNumber', Field: 'PassportNumber', FieldAr: 'رقم الباسبور' },
|
|
5194
|
-
{ Id: 4, Name: 'BorderNumber', Field: 'BorderNumber', FieldAr: 'رقم الحدود' },
|
|
5195
|
-
{ Id: 4, Name: 'MobileNumber', Field: 'MobileNumber', FieldAr: 'رقم الجوال' },
|
|
5196
|
-
];
|
|
5197
|
-
this.isShowCreateRequest = false;
|
|
5177
|
+
this.selectedActivityItem = null;
|
|
5178
|
+
this.commentsActivityItem = null;
|
|
5179
|
+
this.detailsEntityTypeId = null;
|
|
5180
|
+
this.Activity = null;
|
|
5181
|
+
this.ActivityType = [];
|
|
5182
|
+
this.ActivityTypeReadonly = [];
|
|
5183
|
+
this.TotalActivity = 0;
|
|
5198
5184
|
this.StatusAndStageList = [];
|
|
5199
|
-
this.
|
|
5200
|
-
this.
|
|
5201
|
-
this.
|
|
5202
|
-
this.
|
|
5203
|
-
this.
|
|
5185
|
+
this.showStageDetails = false;
|
|
5186
|
+
this.selectedProcessList = [];
|
|
5187
|
+
this.tabDisplayView = 1;
|
|
5188
|
+
this.SortingField = { field: null, direction: null };
|
|
5189
|
+
this.activitySearchcriteria = {
|
|
5190
|
+
Pagging: {
|
|
5191
|
+
PageNo: 1,
|
|
5192
|
+
PageSize: 10,
|
|
5193
|
+
},
|
|
5194
|
+
Where: [],
|
|
5195
|
+
SortOrder: this.SortingField,
|
|
5196
|
+
};
|
|
5197
|
+
this.TaskList = [];
|
|
5198
|
+
this.ProcessStageList = [];
|
|
5199
|
+
this.TimelineList = [];
|
|
5200
|
+
this.TimelineListReadonly = [];
|
|
5201
|
+
this.TaskCommentFile = null;
|
|
5202
|
+
this.wfActionData = [
|
|
5203
|
+
{ id: 1, name: "New" },
|
|
5204
|
+
{ id: 2, name: "Forward" },
|
|
5205
|
+
{ id: 3, name: "Reply" },
|
|
5206
|
+
{ id: 4, name: "Esculation" },
|
|
5207
|
+
{ id: 5, name: "Delegation" },
|
|
5208
|
+
{ id: 6, name: "Complete" },
|
|
5209
|
+
{ id: 7, name: "Cancel" },
|
|
5210
|
+
];
|
|
5211
|
+
this.wfStageAction = null;
|
|
5204
5212
|
this.action = null;
|
|
5205
5213
|
this.showWorkflowPopup = false;
|
|
5206
|
-
this.
|
|
5214
|
+
this.workflowEntityFormId = null;
|
|
5215
|
+
this.assignmentForm = this.fb.group({
|
|
5216
|
+
ActionStatus: [''],
|
|
5217
|
+
AssignedTo: [''],
|
|
5218
|
+
TargetDate: [''],
|
|
5219
|
+
Description: [''],
|
|
5220
|
+
Comments: [''],
|
|
5221
|
+
});
|
|
5222
|
+
this.updateStatusAssignTo = [];
|
|
5223
|
+
this.actionPopup = false;
|
|
5224
|
+
this.targetDate = null;
|
|
5225
|
+
this.columnDef = [
|
|
5226
|
+
{ Field: "Description", Name: "Description" },
|
|
5227
|
+
{ Field: "AssignedTo", Name: "AssignedTo" },
|
|
5228
|
+
{ Field: "TargetDate", Name: "TargetDate", DataType: E_DataType.date },
|
|
5229
|
+
{ Field: "IsDoneEn", Name: "IsDone", },
|
|
5230
|
+
];
|
|
5231
|
+
this.translatePipe = new TranslatePipe(this.globalService);
|
|
5207
5232
|
}
|
|
5208
|
-
|
|
5209
|
-
this.
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5233
|
+
SupportRequestDetailsComponent.prototype.ngOnInit = function () {
|
|
5234
|
+
// this.actRoute.paramMap.subscribe((res) => {
|
|
5235
|
+
//
|
|
5236
|
+
// console.log(res);
|
|
5237
|
+
// if (this.ViewFrom != 'Popup') {
|
|
5238
|
+
// this.RecId = Number(res.get('RecId'));
|
|
5239
|
+
// this.EntityTypeRecId = Number(res.get('EntityTypeRecId'));
|
|
5240
|
+
// }
|
|
5241
|
+
// });
|
|
5242
|
+
this.getTaskDetails();
|
|
5243
|
+
this.getActivity();
|
|
5244
|
+
this.getWorkflowStatusWithStage();
|
|
5245
|
+
// this.getAssignGroupData();
|
|
5246
|
+
// this.getTaskAssignData();
|
|
5247
|
+
};
|
|
5248
|
+
SupportRequestDetailsComponent.prototype.getTaskDetails = function () {
|
|
5249
|
+
var _this = this;
|
|
5250
|
+
if (this.RecId != null) {
|
|
5251
|
+
this.EntityTypeSetupService.getDynamicById(this.EntityTypeRecId, this.RecId).subscribe(function (x) {
|
|
5252
|
+
// alert("a");
|
|
5253
|
+
// ;
|
|
5254
|
+
_this._TaskDetail = x;
|
|
5255
|
+
_this.stageId = x.ProcessStage;
|
|
5256
|
+
_this.EntityTypeId = x.EntityTypeId;
|
|
5257
|
+
_this.EntityTypeIdRecId = x.EntityTypeRecId;
|
|
5258
|
+
_this.refRecId = x.RecId;
|
|
5259
|
+
_this.GetPageList(_this.storeCriteria);
|
|
5260
|
+
if (_this._TaskDetail && _this._TaskDetail.uploadFiles && _this._TaskDetail.uploadFiles.length > 0) {
|
|
5261
|
+
_this._TaskDetail.uploadFiles.map(function (x) {
|
|
5262
|
+
if (x.Ext) {
|
|
5263
|
+
x.ExtSm = x.Ext.toLowerCase();
|
|
5264
|
+
x.ExtSm = x.ExtSm.replace('.', '');
|
|
5265
|
+
}
|
|
5266
|
+
});
|
|
5267
|
+
}
|
|
5268
|
+
_this.getActivities();
|
|
5269
|
+
_this.getEntityFormDetails();
|
|
5270
|
+
// this.getComments();
|
|
5271
|
+
if (_this.IsWfAction) {
|
|
5272
|
+
_this.getWfStageAction(x.EntityTypeId, x.ProcessStage);
|
|
5273
|
+
}
|
|
5274
|
+
}, function (error) { return error.error; });
|
|
5214
5275
|
}
|
|
5215
|
-
this.getListDatas(this.Searchcriteria);
|
|
5216
5276
|
};
|
|
5217
|
-
|
|
5277
|
+
SupportRequestDetailsComponent.prototype.getEntityFormDetails = function () {
|
|
5218
5278
|
var _this = this;
|
|
5219
|
-
this.
|
|
5220
|
-
this.
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
if (x.DateOfRequest) {
|
|
5228
|
-
x.DateofRequest = x.DateOfRequest;
|
|
5279
|
+
this.EntityDefaultPageGroupsData = [];
|
|
5280
|
+
this.EntityPageGroupsData = [];
|
|
5281
|
+
this.EntityTypeSetupService.getActiveEntityFormByDetails(this.EntityTypeId).subscribe(function (res) {
|
|
5282
|
+
if (res.FormData) {
|
|
5283
|
+
var _FormData = JSON.parse(res.FormData);
|
|
5284
|
+
if (_FormData.PageGroup) {
|
|
5285
|
+
if (Array.isArray(_FormData.PageGroup)) {
|
|
5286
|
+
_this.EntityPageGroupsData = _FormData.PageGroup;
|
|
5229
5287
|
}
|
|
5230
|
-
|
|
5231
|
-
|
|
5288
|
+
}
|
|
5289
|
+
if (_FormData.defaultPageGroups) {
|
|
5290
|
+
if (Array.isArray(_FormData.defaultPageGroups)) {
|
|
5291
|
+
_this.EntityDefaultPageGroupsData = _FormData.defaultPageGroups;
|
|
5292
|
+
}
|
|
5293
|
+
}
|
|
5232
5294
|
}
|
|
5233
|
-
_this.
|
|
5234
|
-
_this.getPageCount();
|
|
5295
|
+
_this.EntityFormId = res.RecId;
|
|
5235
5296
|
}, function (error) {
|
|
5236
5297
|
console.log(error);
|
|
5237
|
-
Swal__default['default'].fire({
|
|
5238
|
-
title: _this.translatePipe.transform(error.error),
|
|
5239
|
-
});
|
|
5240
5298
|
});
|
|
5241
5299
|
};
|
|
5242
|
-
|
|
5243
|
-
if (data) {
|
|
5244
|
-
if (data.length > 0)
|
|
5245
|
-
this.gridServiceService.onGridRefresh.next({
|
|
5246
|
-
isTrue: true,
|
|
5247
|
-
list: data,
|
|
5248
|
-
count: data.length,
|
|
5249
|
-
grid: 1,
|
|
5250
|
-
totalRecordCount: TotalRecord,
|
|
5251
|
-
});
|
|
5252
|
-
else
|
|
5253
|
-
this.gridServiceService.onGridRefresh.next({
|
|
5254
|
-
isTrue: true,
|
|
5255
|
-
grid: 1,
|
|
5256
|
-
list: [],
|
|
5257
|
-
count: 0,
|
|
5258
|
-
totalRecordCount: 0,
|
|
5259
|
-
});
|
|
5260
|
-
}
|
|
5261
|
-
else
|
|
5262
|
-
this.gridServiceService.onGridRefresh.next({
|
|
5263
|
-
isTrue: true,
|
|
5264
|
-
grid: 1,
|
|
5265
|
-
list: [],
|
|
5266
|
-
count: 0,
|
|
5267
|
-
totalRecordCount: 0,
|
|
5268
|
-
});
|
|
5269
|
-
};
|
|
5270
|
-
CaseListComponent.prototype.viewType = function (data, index) {
|
|
5271
|
-
this.selectedIndex = index;
|
|
5272
|
-
this.viewTypeData = data.id;
|
|
5273
|
-
};
|
|
5274
|
-
CaseListComponent.prototype.backtoCard = function () {
|
|
5275
|
-
this.CreateItemId = null;
|
|
5276
|
-
this.isShowCreateRequest = false;
|
|
5277
|
-
this.supportService.IsShowBackBtn = false;
|
|
5278
|
-
};
|
|
5279
|
-
CaseListComponent.prototype.getEntityTypeDetails = function () {
|
|
5300
|
+
SupportRequestDetailsComponent.prototype.getWorkflowActionComments = function (comments, updateFileds, updateFieldsObject) {
|
|
5280
5301
|
var _this = this;
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5302
|
+
// alert("zz");
|
|
5303
|
+
var updateFieldsObjectString = JSON.stringify(updateFieldsObject);
|
|
5304
|
+
this.EntityTypeSetupService.urlPostTaskWfAction(this.RecId, this.stageId, this.action, comments, updateFileds, updateFieldsObjectString, this.EntityTypeId).subscribe(function (res) {
|
|
5305
|
+
// this.wfActionData = res;
|
|
5306
|
+
_this.getTaskDetails();
|
|
5307
|
+
console.log(res);
|
|
5308
|
+
}, function (error) {
|
|
5309
|
+
var _a, _b, _c;
|
|
5310
|
+
error.error;
|
|
5311
|
+
if (((_a = error.error) === null || _a === void 0 ? void 0 : _a.status) == false) {
|
|
5312
|
+
var msg = JSON.parse((_b = error.error) === null || _b === void 0 ? void 0 : _b.msg);
|
|
5313
|
+
if (msg && msg.msg) {
|
|
5314
|
+
msg = msg.msg;
|
|
5315
|
+
}
|
|
5316
|
+
else {
|
|
5317
|
+
msg = (_c = error.error) === null || _c === void 0 ? void 0 : _c.msg;
|
|
5318
|
+
}
|
|
5319
|
+
Swal__default['default'].fire(_this.translatePipe.transform(msg));
|
|
5287
5320
|
}
|
|
5288
5321
|
else {
|
|
5289
|
-
_this.
|
|
5322
|
+
Swal__default['default'].fire(_this.translatePipe.transform(error.ExceptionMessage), _this.translatePipe.transform(error.message));
|
|
5290
5323
|
}
|
|
5291
|
-
}, function (error) {
|
|
5292
|
-
console.log(error);
|
|
5293
5324
|
});
|
|
5294
5325
|
};
|
|
5295
|
-
|
|
5326
|
+
SupportRequestDetailsComponent.prototype.getComments = function () {
|
|
5296
5327
|
var _this = this;
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
var list = JSON.parse(_listdata);
|
|
5308
|
-
if (list && list.length > 0) {
|
|
5309
|
-
this.columnDefs = [];
|
|
5310
|
-
this.columnDefs.push({
|
|
5311
|
-
Field: 'CaseId',
|
|
5312
|
-
Name: 'CaseId',
|
|
5313
|
-
FieldType: E_FieldType.details,
|
|
5328
|
+
// alert("getcommends");
|
|
5329
|
+
if (this.refRecId != null) {
|
|
5330
|
+
this.ticketService.urlGetTicketUpdateByRecId(this.refRecId).subscribe(function (x) {
|
|
5331
|
+
// alert("getcommends");
|
|
5332
|
+
_this.commentsData = x.Data;
|
|
5333
|
+
_this.commentsDataCount = x.TotalCount;
|
|
5334
|
+
}, function (error) {
|
|
5335
|
+
// Swal.fire(error);
|
|
5336
|
+
Swal__default['default'].fire({
|
|
5337
|
+
title: _this.translatePipe.transform(error.error),
|
|
5314
5338
|
});
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
if (fields) {
|
|
5318
|
-
var _column = {
|
|
5319
|
-
Field: fields.Description,
|
|
5320
|
-
Name: fields.Label,
|
|
5321
|
-
DataType: fields.DataType,
|
|
5322
|
-
};
|
|
5323
|
-
this.columnDefs.push(_column);
|
|
5324
|
-
}
|
|
5325
|
-
else {
|
|
5326
|
-
var _currfield = list[index];
|
|
5327
|
-
this.columnDefs.push(_currfield);
|
|
5328
|
-
}
|
|
5329
|
-
}
|
|
5330
|
-
this.columnDefs.push({ Field: "ProcessStageEn", Name: 'Process Stage' });
|
|
5331
|
-
}
|
|
5339
|
+
// error.error
|
|
5340
|
+
});
|
|
5332
5341
|
}
|
|
5333
5342
|
};
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
this.
|
|
5337
|
-
this.
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5343
|
+
SupportRequestDetailsComponent.prototype.getActivity = function () {
|
|
5344
|
+
var _this = this;
|
|
5345
|
+
//this.EntityType = data.EntityType;
|
|
5346
|
+
this.EntityTypeSetupService.getAllAssinedActivites(this.Searchcriteria, this.EntityTypeRecId)
|
|
5347
|
+
// this.EntityTypeSetupService.getActiveEntityTypeSetup(this.Searchcriteria, this.EntityType, "")
|
|
5348
|
+
.subscribe(function (res) {
|
|
5349
|
+
_this.ActivityFields = res.Data;
|
|
5350
|
+
if (_this.ActivityFields.length > 0) {
|
|
5351
|
+
var sortBy_1 = ['Task', 'SMS', 'Email', 'Notes', 'Comments']; //sort by descending order
|
|
5352
|
+
_this.ActivityFields = _this.ActivityFields.sort(function (a, b) { return sortBy_1.indexOf(b.Description) - sortBy_1.indexOf(a.Description); });
|
|
5353
|
+
var taskActivity = { Description: 'Task', RecId: 58, Type: 'Task' };
|
|
5354
|
+
_this.ActivityFields.push(taskActivity);
|
|
5355
|
+
_this.openDefaultComments();
|
|
5356
|
+
}
|
|
5357
|
+
});
|
|
5342
5358
|
};
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5359
|
+
SupportRequestDetailsComponent.prototype.getActivityFileUploads = function (item) {
|
|
5360
|
+
if (item.showform && item.RecId && item.ActivityTypeId) {
|
|
5361
|
+
this.EntityTypeSetupService.getActivityUploadFile(item.RecId, this.EntityTypeRecId, item.ActivityTypeId)
|
|
5362
|
+
.subscribe(function (res) {
|
|
5363
|
+
if (res && res.length > 0) {
|
|
5364
|
+
item.uploadFiles = res;
|
|
5365
|
+
}
|
|
5366
|
+
});
|
|
5367
|
+
}
|
|
5352
5368
|
};
|
|
5353
|
-
|
|
5354
|
-
|
|
5369
|
+
SupportRequestDetailsComponent.prototype.getActivityFileUploadsReadonly = function (item) {
|
|
5370
|
+
var _this = this;
|
|
5371
|
+
if (item.RecId && item.ActivityTypeId) {
|
|
5372
|
+
this.EntityTypeSetupService.getActivityUploadFile(item.RecId, this.EntityTypeRecId, item.ActivityTypeId)
|
|
5373
|
+
.subscribe(function (res) {
|
|
5374
|
+
if (res && res.length > 0) {
|
|
5375
|
+
item.uploadFiles = res;
|
|
5376
|
+
}
|
|
5377
|
+
_this.ActivityTypeReadonly.push(item);
|
|
5378
|
+
});
|
|
5379
|
+
}
|
|
5355
5380
|
};
|
|
5356
|
-
|
|
5357
|
-
this.
|
|
5358
|
-
this.CaseId = data.CaseId;
|
|
5359
|
-
this.detailsRecId = data.RecId; // RefRecId is the main recid
|
|
5360
|
-
this.detailsEntityTypeRecId = data.EntityTypeRecId;
|
|
5361
|
-
this.supportService.IsShowBackBtn = true;
|
|
5362
|
-
this.displayPopupDetailView = true;
|
|
5381
|
+
SupportRequestDetailsComponent.prototype.addEvents = function (data) {
|
|
5382
|
+
this.openPopupCreatePage(data);
|
|
5363
5383
|
};
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
this.
|
|
5367
|
-
|
|
5368
|
-
this.
|
|
5369
|
-
|
|
5384
|
+
SupportRequestDetailsComponent.prototype.openPopupCreatePage = function (item) {
|
|
5385
|
+
var _this = this;
|
|
5386
|
+
this.CreateItemId = null;
|
|
5387
|
+
setTimeout(function () { return (_this.CreateItemId = item.RecId); }, 0);
|
|
5388
|
+
this.selectedActivityItem = item;
|
|
5389
|
+
if (item.Description != 'Comments')
|
|
5390
|
+
this.displayPopupCreateView = true;
|
|
5391
|
+
// this.Activity=item.RecId;
|
|
5370
5392
|
};
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
this.SortingField.direction = '0';
|
|
5378
|
-
this.SortingField.field = item.Field;
|
|
5379
|
-
}
|
|
5380
|
-
else {
|
|
5381
|
-
this.CurrentSortingField = null;
|
|
5382
|
-
this.SortingField.direction = '0';
|
|
5393
|
+
SupportRequestDetailsComponent.prototype.closePopupCreateView = function (Type) {
|
|
5394
|
+
this.CreateItemId = null;
|
|
5395
|
+
this.displayPopupCreateView = false;
|
|
5396
|
+
if (Type == 'Create') {
|
|
5397
|
+
this.getActivities();
|
|
5398
|
+
this.openDefaultComments();
|
|
5383
5399
|
}
|
|
5384
|
-
this.getListDatas(this.Searchcriteria);
|
|
5385
5400
|
};
|
|
5386
|
-
|
|
5387
|
-
this.
|
|
5388
|
-
this.getListDatas(this.Searchcriteria);
|
|
5401
|
+
SupportRequestDetailsComponent.prototype.slider = function (direction, Id) {
|
|
5402
|
+
this.slide(direction, Id);
|
|
5389
5403
|
};
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5404
|
+
SupportRequestDetailsComponent.prototype.slide = function (direction, Id) {
|
|
5405
|
+
debugger;
|
|
5406
|
+
var container = document.getElementById(Id);
|
|
5407
|
+
var scrollCompleted = 0;
|
|
5408
|
+
var slideVar = setInterval(function () {
|
|
5409
|
+
if (direction == 'left') {
|
|
5410
|
+
container.scrollLeft -= 50;
|
|
5411
|
+
}
|
|
5412
|
+
else {
|
|
5413
|
+
container.scrollLeft += 50;
|
|
5414
|
+
}
|
|
5415
|
+
scrollCompleted += 10;
|
|
5416
|
+
if (scrollCompleted >= 50) {
|
|
5417
|
+
window.clearInterval(slideVar);
|
|
5418
|
+
}
|
|
5419
|
+
}, 50);
|
|
5402
5420
|
};
|
|
5403
|
-
|
|
5421
|
+
SupportRequestDetailsComponent.prototype.getWorkflowStatusWithStage = function () {
|
|
5404
5422
|
var _this = this;
|
|
5405
|
-
this.
|
|
5406
|
-
.getAllWfStage(null, this.EntityTypeId, true)
|
|
5423
|
+
this.EntityTypeSetupService.getAllWfStage(null, this.EntityTypeRecId, true)
|
|
5407
5424
|
.subscribe(function (res) {
|
|
5425
|
+
// alert("StatusAndStageList");
|
|
5408
5426
|
_this.StatusAndStageList = res.Data;
|
|
5409
5427
|
// .sort((a, b) => {
|
|
5410
5428
|
// if (a.StageId < b.StageId) return -1;
|
|
@@ -5412,902 +5430,460 @@
|
|
|
5412
5430
|
// else return 0;
|
|
5413
5431
|
// });
|
|
5414
5432
|
var showallIndex = _this.StatusAndStageList.findIndex(function (x) { return x.OrderId == -1; });
|
|
5415
|
-
|
|
5416
|
-
var
|
|
5417
|
-
_this.StatusAndStageList.splice(
|
|
5418
|
-
_this.selectStage(_this.StatusAndStageList[0]);
|
|
5419
|
-
console.log(res.Data);
|
|
5433
|
+
_this.StatusAndStageList.splice(showallIndex, 1);
|
|
5434
|
+
var showPendingIndex = _this.StatusAndStageList.findIndex(function (x) { return x.OrderId == 0; });
|
|
5435
|
+
_this.StatusAndStageList.splice(showPendingIndex, 1);
|
|
5420
5436
|
}, function (error) {
|
|
5421
5437
|
var _a;
|
|
5422
5438
|
console.log(error);
|
|
5423
5439
|
Swal__default['default'].fire(_this.translatePipe.transform((_a = error.error) === null || _a === void 0 ? void 0 : _a.ExceptionMessage), _this.translatePipe.transform(error === null || error === void 0 ? void 0 : error.message), 'error');
|
|
5424
5440
|
});
|
|
5425
5441
|
};
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
this.
|
|
5429
|
-
|
|
5430
|
-
if (item.StageId
|
|
5431
|
-
|
|
5442
|
+
SupportRequestDetailsComponent.prototype.selectProcess = function (item) {
|
|
5443
|
+
var _this = this;
|
|
5444
|
+
if (this.selectedProcess)
|
|
5445
|
+
this.showStageDetails = false;
|
|
5446
|
+
if (this.selectedProcess && this.selectedProcess.ProcessStage == item.StageId) {
|
|
5447
|
+
setTimeout(function () { return (_this.selectedProcess = null); }, 500);
|
|
5432
5448
|
}
|
|
5433
5449
|
else {
|
|
5434
|
-
this.
|
|
5435
|
-
this.
|
|
5450
|
+
this.showStageDetails = true;
|
|
5451
|
+
this.selectedProcessList = this.ProcessStageList.filter(function (x) { return x.ProcessStage == item.StageId; });
|
|
5452
|
+
this.selectedProcess =
|
|
5453
|
+
this.selectedProcessList[this.selectedProcessList.length - 1];
|
|
5436
5454
|
}
|
|
5437
|
-
this.getWfStageAction(this.EntityTypeId, this.StatusId);
|
|
5438
|
-
this.getListDatas(this.Searchcriteria);
|
|
5439
5455
|
};
|
|
5440
|
-
|
|
5456
|
+
SupportRequestDetailsComponent.prototype.closeProcess = function () {
|
|
5441
5457
|
var _this = this;
|
|
5442
|
-
this.
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5458
|
+
this.showStageDetails = false;
|
|
5459
|
+
setTimeout(function () { return (_this.selectedProcess = null); }, 500);
|
|
5460
|
+
};
|
|
5461
|
+
SupportRequestDetailsComponent.prototype.gridChangeTabs = function (data) {
|
|
5462
|
+
this.tabDisplayView = Number(data);
|
|
5463
|
+
};
|
|
5464
|
+
SupportRequestDetailsComponent.prototype.loadMoreActivities = function () {
|
|
5465
|
+
this.activitySearchcriteria.Pagging.PageSize += 10;
|
|
5466
|
+
this.getActivities();
|
|
5467
|
+
};
|
|
5468
|
+
SupportRequestDetailsComponent.prototype.getActivities = function () {
|
|
5469
|
+
var _this = this;
|
|
5470
|
+
debugger;
|
|
5471
|
+
// let ActivityId = 5;
|
|
5472
|
+
this.EntityTypeSetupService
|
|
5473
|
+
.getDynamicByEntityRefrecid(this.EntityTypeRecId, this.refRecId, this.activitySearchcriteria, this.Activity)
|
|
5474
|
+
.subscribe(function (res) {
|
|
5475
|
+
debugger;
|
|
5476
|
+
_this.ActivityType = res.Data;
|
|
5477
|
+
if (res && res.Data)
|
|
5478
|
+
_this.ActivityTypeReadonly = [];
|
|
5479
|
+
res.Data.forEach(function (x) {
|
|
5480
|
+
_this.getActivityFileUploadsReadonly(x);
|
|
5481
|
+
});
|
|
5482
|
+
_this.setTimeline();
|
|
5483
|
+
_this.TotalActivity = res.TotalCount;
|
|
5484
|
+
console.log('Activity', res.Data);
|
|
5485
|
+
});
|
|
5486
|
+
(function (error) {
|
|
5446
5487
|
error.error;
|
|
5447
5488
|
});
|
|
5448
5489
|
};
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5490
|
+
SupportRequestDetailsComponent.prototype.setTimeline = function () {
|
|
5491
|
+
var _d, _e, _f;
|
|
5492
|
+
this.TimelineList = [];
|
|
5493
|
+
this.TimelineListReadonly = [];
|
|
5494
|
+
if (Array.isArray(this.ActivityType)) {
|
|
5495
|
+
if (this.ActivityType.length > 0)
|
|
5496
|
+
(_d = this.TimelineList).push.apply(_d, __spread(this.ActivityType));
|
|
5497
|
+
(_e = this.TimelineListReadonly).push.apply(_e, __spread(this.ActivityType));
|
|
5453
5498
|
}
|
|
5454
|
-
this.
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
|
|
5460
|
-
}
|
|
5461
|
-
//
|
|
5462
|
-
// (
|
|
5463
|
-
//
|
|
5464
|
-
//
|
|
5465
|
-
//
|
|
5466
|
-
//
|
|
5467
|
-
// fieldConfig: res.Data,
|
|
5499
|
+
if (Array.isArray(this.ActivityTypeReadonly)) {
|
|
5500
|
+
if (this.ActivityTypeReadonly.length > 0)
|
|
5501
|
+
(_f = this.TimelineListReadonly).push.apply(_f, __spread(this.ActivityTypeReadonly));
|
|
5502
|
+
}
|
|
5503
|
+
// if (Array.isArray(this.TaskList)) {
|
|
5504
|
+
// if (this.TaskList.length > 0) this.TimelineList.push(...this.TaskList);
|
|
5505
|
+
// }
|
|
5506
|
+
// if (Array.isArray(this.ProcessStageList)) {
|
|
5507
|
+
// if (this.ProcessStageList.length > 0) {
|
|
5508
|
+
// this.ProcessStageList = this.ProcessStageList.map((x) => {
|
|
5509
|
+
// x.Type = 'Workflow';
|
|
5510
|
+
// x.ActivityTypeIdEn = 'Comments';
|
|
5511
|
+
// return x;
|
|
5468
5512
|
// });
|
|
5469
|
-
//
|
|
5470
|
-
// console.log(res);
|
|
5471
|
-
// },
|
|
5472
|
-
// (error) => {
|
|
5473
|
-
//
|
|
5474
|
-
// error.error;
|
|
5513
|
+
// this.TimelineList.push(...this.ProcessStageList);
|
|
5475
5514
|
// }
|
|
5476
|
-
//
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5515
|
+
// }
|
|
5516
|
+
this.TimelineList.sort(function (a, b) {
|
|
5517
|
+
if (a.CreatedDatetime < b.CreatedDatetime)
|
|
5518
|
+
return -1;
|
|
5519
|
+
else if (a.CreatedDatetime > b.CreatedDatetime)
|
|
5520
|
+
return 1;
|
|
5521
|
+
else
|
|
5522
|
+
return 0;
|
|
5523
|
+
});
|
|
5524
|
+
this.TimelineListReadonly.sort(function (a, b) {
|
|
5525
|
+
if (a.CreatedDatetime < b.CreatedDatetime)
|
|
5526
|
+
return -1;
|
|
5527
|
+
else if (a.CreatedDatetime > b.CreatedDatetime)
|
|
5528
|
+
return 1;
|
|
5529
|
+
else
|
|
5530
|
+
return 0;
|
|
5531
|
+
});
|
|
5480
5532
|
};
|
|
5481
|
-
|
|
5533
|
+
SupportRequestDetailsComponent.prototype.GetPageList = function (Criteria) {
|
|
5482
5534
|
var _this = this;
|
|
5483
|
-
|
|
5484
|
-
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
|
|
5535
|
+
if (this.EntityTypeId != null) {
|
|
5536
|
+
this.storeCriteria = Criteria;
|
|
5537
|
+
// let data: Observable<IEntityWFstageVM[]>;
|
|
5538
|
+
this.EntityTypeSetupService.getWfInsProcessStageComments(Criteria, this.EntityTypeId, this.refRecId).subscribe(function (res) {
|
|
5539
|
+
// alert("grid data");
|
|
5540
|
+
_this.ProcessStageList = res.Data;
|
|
5541
|
+
_this.setTimeline();
|
|
5542
|
+
console.log(res);
|
|
5543
|
+
_this.loadGrid(res.Data, res.TotalCount);
|
|
5544
|
+
}, function (error) {
|
|
5545
|
+
var _a;
|
|
5546
|
+
console.log(error);
|
|
5547
|
+
_this.loadGrid([], 0);
|
|
5548
|
+
Swal__default['default'].fire(_this.translatePipe.transform((_a = error.error) === null || _a === void 0 ? void 0 : _a.ExceptionMessage), _this.translatePipe.transform(error === null || error === void 0 ? void 0 : error.message), 'error');
|
|
5490
5549
|
});
|
|
5491
5550
|
}
|
|
5492
|
-
|
|
5493
|
-
|
|
5494
|
-
|
|
5551
|
+
};
|
|
5552
|
+
SupportRequestDetailsComponent.prototype.fileChange = function (event) {
|
|
5553
|
+
this.fileList = event.target.files;
|
|
5554
|
+
};
|
|
5555
|
+
SupportRequestDetailsComponent.prototype.commentSubmit = function () {
|
|
5556
|
+
var _this = this;
|
|
5557
|
+
var data = {
|
|
5558
|
+
commnets: this.Comments,
|
|
5559
|
+
refRecId: this.RecId,
|
|
5560
|
+
entitytyperecid: this.EntityTypeRecId
|
|
5561
|
+
};
|
|
5562
|
+
// this.service.urlComments(data).subscribe(
|
|
5563
|
+
// (x: any) => this.taskAssignData = x);
|
|
5564
|
+
var formData = new FormData();
|
|
5565
|
+
if (this.fileList && this.fileList.length > 0) {
|
|
5566
|
+
var file = this.fileList[0];
|
|
5567
|
+
formData.append('Files', file, file.name);
|
|
5568
|
+
}
|
|
5569
|
+
this.EntityTypeSetupService.postTaskComments(this.fileList, data).subscribe(function (x) {
|
|
5570
|
+
_this.Comments = null;
|
|
5571
|
+
_this.CommentsTitle = null;
|
|
5572
|
+
_this.TaskCommentFile = null;
|
|
5573
|
+
_this.getComments();
|
|
5574
|
+
}, function (error) { return error.error; });
|
|
5575
|
+
};
|
|
5576
|
+
// commentsActivityItem:any = null;
|
|
5577
|
+
SupportRequestDetailsComponent.prototype.openDefaultComments = function () {
|
|
5578
|
+
this.commentsActivityItem = this.ActivityFields.filter(function (x) { return x.ActionType == '5'; })[0];
|
|
5579
|
+
// if (comments && comments.length > 0) {
|
|
5580
|
+
// this.commentsActivityItem = null;
|
|
5581
|
+
// setTimeout(() => (this.commentsActivityItem = comments[0]), 0);
|
|
5582
|
+
// this.commentsActivityItem = comments[0];
|
|
5583
|
+
// this.openPopupCreatePage(comments[0]);
|
|
5584
|
+
// }
|
|
5585
|
+
// else {
|
|
5586
|
+
// this.openPopupCreatePage(this.ActivityFields[0]);
|
|
5587
|
+
// }
|
|
5588
|
+
};
|
|
5589
|
+
SupportRequestDetailsComponent.prototype.getWfStageAction = function (EntityTypeId, StageId) {
|
|
5590
|
+
var _this = this;
|
|
5591
|
+
if (EntityTypeId == null)
|
|
5592
|
+
return;
|
|
5593
|
+
this.EntityTypeSetupService.urlGetWfStageAction(EntityTypeId, StageId).subscribe(function (res) {
|
|
5594
|
+
// res = [{"Action":10,"ActionDescription":"InProgress","StageRecId":1,"ActionComplete":null,"ProcessId":null,"StageId":1,"StageTypeId":1,"ActionRecId":1,"StageDescription":"New"}]
|
|
5595
|
+
_this.wfStageAction = res;
|
|
5495
5596
|
console.log(res);
|
|
5496
5597
|
}, function (error) {
|
|
5497
|
-
var _a, _b, _c;
|
|
5498
5598
|
error.error;
|
|
5499
|
-
if (((_a = error.error) === null || _a === void 0 ? void 0 : _a.status) == false) {
|
|
5500
|
-
var msg = JSON.parse((_b = error.error) === null || _b === void 0 ? void 0 : _b.msg);
|
|
5501
|
-
if (msg && msg.msg) {
|
|
5502
|
-
msg = msg.msg;
|
|
5503
|
-
}
|
|
5504
|
-
else {
|
|
5505
|
-
msg = (_c = error.error) === null || _c === void 0 ? void 0 : _c.msg;
|
|
5506
|
-
}
|
|
5507
|
-
Swal__default['default'].fire(_this.translatePipe.transform(msg));
|
|
5508
|
-
}
|
|
5509
|
-
else {
|
|
5510
|
-
Swal__default['default'].fire(_this.translatePipe.transform(error.ExceptionMessage), _this.translatePipe.transform(error.message));
|
|
5511
|
-
}
|
|
5512
5599
|
});
|
|
5513
5600
|
};
|
|
5514
|
-
|
|
5515
|
-
|
|
5601
|
+
SupportRequestDetailsComponent.prototype.getStatusField = function (data) {
|
|
5602
|
+
this.action = data.ActionRecId;
|
|
5603
|
+
this.workflowEntityFormId = data.WorkFlowForm;
|
|
5604
|
+
this.showWorkflowPopup = true;
|
|
5605
|
+
this.EntityTypeSetupService.onshowWorkflowPopup.next({
|
|
5606
|
+
showWorkflowPopup: true,
|
|
5607
|
+
fieldConfig: [],
|
|
5608
|
+
});
|
|
5516
5609
|
};
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
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 {{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>",
|
|
5523
|
-
|
|
5524
|
-
|
|
5525
|
-
|
|
5526
|
-
|
|
5527
|
-
|
|
5528
|
-
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
GridSearchType: [{ type: i0.Input }],
|
|
5545
|
-
IsClientPagination: [{ type: i0.Input }]
|
|
5546
|
-
};
|
|
5547
|
-
function slide(direction, Id) {
|
|
5548
|
-
debugger;
|
|
5549
|
-
var container = document.getElementById(Id);
|
|
5550
|
-
var scrollCompleted = 0;
|
|
5551
|
-
var slideVar = setInterval(function () {
|
|
5552
|
-
if (direction == 'left') {
|
|
5553
|
-
container.scrollLeft -= 50;
|
|
5610
|
+
SupportRequestDetailsComponent.prototype.backToList = function () {
|
|
5611
|
+
this.route.navigate(['/EntityTypeSetup/task', this.EntityTypeRecId]);
|
|
5612
|
+
};
|
|
5613
|
+
SupportRequestDetailsComponent.prototype.ngOnDestroy = function () {
|
|
5614
|
+
this.globalService.showBackIcon = false;
|
|
5615
|
+
};
|
|
5616
|
+
SupportRequestDetailsComponent.prototype.closeModelPopup = function () {
|
|
5617
|
+
this.actionPopup = false;
|
|
5618
|
+
};
|
|
5619
|
+
SupportRequestDetailsComponent.prototype.GetFormattedDate = function (_date) {
|
|
5620
|
+
var todayTime = new Date(_date);
|
|
5621
|
+
var month = todayTime.getMonth() + 1;
|
|
5622
|
+
var day = todayTime.getDate();
|
|
5623
|
+
var year = todayTime.getFullYear();
|
|
5624
|
+
return year + "-" + month + "-" + day;
|
|
5625
|
+
};
|
|
5626
|
+
SupportRequestDetailsComponent.prototype.assignSubmit = function () {
|
|
5627
|
+
var _this = this;
|
|
5628
|
+
if (this.assignmentForm.value.TargetDate != "" && this.assignmentForm.value.TargetDate != null) {
|
|
5629
|
+
this.targetDate = this.GetFormattedDate(this.assignmentForm.value.TargetDate);
|
|
5630
|
+
this.submitData = {
|
|
5631
|
+
recId: this.RecId,
|
|
5632
|
+
ActionStatus: this.actionFormActionId,
|
|
5633
|
+
AssignedTo: this.assignmentForm.value.AssignedTo,
|
|
5634
|
+
Description: this.assignmentForm.value.Description,
|
|
5635
|
+
Comments: this.assignmentForm.value.Comments,
|
|
5636
|
+
};
|
|
5554
5637
|
}
|
|
5555
5638
|
else {
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
var SupportRequestDetailsComponent = /** @class */ (function () {
|
|
5566
|
-
function SupportRequestDetailsComponent(taskService, EntityTypeSetupService, fb, actRoute, gridServiceService, ticketService, globalService, route) {
|
|
5567
|
-
this.taskService = taskService;
|
|
5568
|
-
this.EntityTypeSetupService = EntityTypeSetupService;
|
|
5569
|
-
this.fb = fb;
|
|
5570
|
-
this.actRoute = actRoute;
|
|
5571
|
-
this.gridServiceService = gridServiceService;
|
|
5572
|
-
this.ticketService = ticketService;
|
|
5573
|
-
this.globalService = globalService;
|
|
5574
|
-
this.route = route;
|
|
5575
|
-
this.ViewFrom = "Page";
|
|
5576
|
-
this.IsWfAction = false;
|
|
5577
|
-
this.environment = environment;
|
|
5578
|
-
// _TaskDetail: TaskVM =null;
|
|
5579
|
-
this._TaskDetail = null;
|
|
5580
|
-
this.stageId = null;
|
|
5581
|
-
this.EntityTypeId = null;
|
|
5582
|
-
this.EntityTypeIdRecId = null;
|
|
5583
|
-
this.refRecId = null;
|
|
5584
|
-
this.EntityFormId = null;
|
|
5585
|
-
this.EntityPageGroupsData = [];
|
|
5586
|
-
this.EntityDefaultPageGroupsData = [];
|
|
5587
|
-
this.pageTitle = "Process Stage";
|
|
5588
|
-
this.pageDesp = "Process Stage";
|
|
5589
|
-
this.selectMode = E_SelectMode.Multi;
|
|
5590
|
-
this.isAttach = false;
|
|
5591
|
-
this.isCreate = false;
|
|
5592
|
-
this.isEdit = false;
|
|
5593
|
-
this.isDelete = false;
|
|
5594
|
-
this.isExport = false;
|
|
5595
|
-
this.gridActionList = [];
|
|
5596
|
-
this.columnDefs = [
|
|
5597
|
-
{ Field: 'ProcessStage', Name: 'Process Stage Id' },
|
|
5598
|
-
{ Field: 'ProcessStageEn', Name: 'Process Stage' },
|
|
5599
|
-
{ Field: 'Comments', Name: 'Comments' },
|
|
5600
|
-
{ Field: 'StartDate', Name: 'Start Date', DataType: E_DataType.date },
|
|
5601
|
-
{ Field: 'EndDate', Name: 'End Date', DataType: E_DataType.date },
|
|
5602
|
-
];
|
|
5603
|
-
this.commentsData = [];
|
|
5604
|
-
this.commentsDataCount = 0;
|
|
5605
|
-
this.Searchcriteria = {
|
|
5606
|
-
Pagging: {
|
|
5607
|
-
PageNo: 1,
|
|
5608
|
-
PageSize: 10,
|
|
5609
|
-
},
|
|
5610
|
-
Where: [],
|
|
5611
|
-
SortOrder: 1,
|
|
5612
|
-
};
|
|
5613
|
-
this.displayPopupCreateView = false;
|
|
5614
|
-
this.CreateItemId = null;
|
|
5615
|
-
this.selectedActivityItem = null;
|
|
5616
|
-
this.commentsActivityItem = null;
|
|
5617
|
-
this.detailsEntityTypeId = null;
|
|
5618
|
-
this.Activity = null;
|
|
5619
|
-
this.ActivityType = [];
|
|
5620
|
-
this.ActivityTypeReadonly = [];
|
|
5621
|
-
this.TotalActivity = 0;
|
|
5622
|
-
this.StatusAndStageList = [];
|
|
5623
|
-
this.showStageDetails = false;
|
|
5624
|
-
this.selectedProcessList = [];
|
|
5625
|
-
this.tabDisplayView = 1;
|
|
5626
|
-
this.SortingField = { field: null, direction: null };
|
|
5627
|
-
this.activitySearchcriteria = {
|
|
5628
|
-
Pagging: {
|
|
5629
|
-
PageNo: 1,
|
|
5630
|
-
PageSize: 10,
|
|
5631
|
-
},
|
|
5632
|
-
Where: [],
|
|
5633
|
-
SortOrder: this.SortingField,
|
|
5634
|
-
};
|
|
5635
|
-
this.TaskList = [];
|
|
5636
|
-
this.ProcessStageList = [];
|
|
5637
|
-
this.TimelineList = [];
|
|
5638
|
-
this.TimelineListReadonly = [];
|
|
5639
|
-
this.TaskCommentFile = null;
|
|
5640
|
-
this.wfActionData = [
|
|
5641
|
-
{ id: 1, name: "New" },
|
|
5642
|
-
{ id: 2, name: "Forward" },
|
|
5643
|
-
{ id: 3, name: "Reply" },
|
|
5644
|
-
{ id: 4, name: "Esculation" },
|
|
5645
|
-
{ id: 5, name: "Delegation" },
|
|
5646
|
-
{ id: 6, name: "Complete" },
|
|
5647
|
-
{ id: 7, name: "Cancel" },
|
|
5648
|
-
];
|
|
5649
|
-
this.wfStageAction = null;
|
|
5650
|
-
this.action = null;
|
|
5651
|
-
this.showWorkflowPopup = false;
|
|
5652
|
-
this.workflowEntityFormId = null;
|
|
5653
|
-
this.assignmentForm = this.fb.group({
|
|
5654
|
-
ActionStatus: [''],
|
|
5655
|
-
AssignedTo: [''],
|
|
5656
|
-
TargetDate: [''],
|
|
5657
|
-
Description: [''],
|
|
5658
|
-
Comments: [''],
|
|
5659
|
-
});
|
|
5660
|
-
this.updateStatusAssignTo = [];
|
|
5661
|
-
this.actionPopup = false;
|
|
5662
|
-
this.targetDate = null;
|
|
5663
|
-
this.columnDef = [
|
|
5664
|
-
{ Field: "Description", Name: "Description" },
|
|
5665
|
-
{ Field: "AssignedTo", Name: "AssignedTo" },
|
|
5666
|
-
{ Field: "TargetDate", Name: "TargetDate", DataType: E_DataType.date },
|
|
5667
|
-
{ Field: "IsDoneEn", Name: "IsDone", },
|
|
5668
|
-
];
|
|
5669
|
-
this.translatePipe = new TranslatePipe(this.globalService);
|
|
5670
|
-
}
|
|
5671
|
-
SupportRequestDetailsComponent.prototype.ngOnInit = function () {
|
|
5672
|
-
// this.actRoute.paramMap.subscribe((res) => {
|
|
5673
|
-
//
|
|
5674
|
-
// console.log(res);
|
|
5675
|
-
// if (this.ViewFrom != 'Popup') {
|
|
5676
|
-
// this.RecId = Number(res.get('RecId'));
|
|
5677
|
-
// this.EntityTypeRecId = Number(res.get('EntityTypeRecId'));
|
|
5678
|
-
// }
|
|
5679
|
-
// });
|
|
5680
|
-
this.getTaskDetails();
|
|
5681
|
-
this.getActivity();
|
|
5682
|
-
this.getWorkflowStatusWithStage();
|
|
5683
|
-
// this.getAssignGroupData();
|
|
5684
|
-
// this.getTaskAssignData();
|
|
5685
|
-
};
|
|
5686
|
-
SupportRequestDetailsComponent.prototype.getTaskDetails = function () {
|
|
5687
|
-
var _this = this;
|
|
5688
|
-
if (this.RecId != null) {
|
|
5689
|
-
this.EntityTypeSetupService.getDynamicById(this.EntityTypeRecId, this.RecId).subscribe(function (x) {
|
|
5690
|
-
// alert("a");
|
|
5691
|
-
// ;
|
|
5692
|
-
_this._TaskDetail = x;
|
|
5693
|
-
_this.stageId = x.ProcessStage;
|
|
5694
|
-
_this.EntityTypeId = x.EntityTypeId;
|
|
5695
|
-
_this.EntityTypeIdRecId = x.EntityTypeRecId;
|
|
5696
|
-
_this.refRecId = x.RecId;
|
|
5697
|
-
_this.GetPageList(_this.storeCriteria);
|
|
5698
|
-
if (_this._TaskDetail && _this._TaskDetail.uploadFiles && _this._TaskDetail.uploadFiles.length > 0) {
|
|
5699
|
-
_this._TaskDetail.uploadFiles.map(function (x) {
|
|
5700
|
-
if (x.Ext) {
|
|
5701
|
-
x.ExtSm = x.Ext.toLowerCase();
|
|
5702
|
-
x.ExtSm = x.ExtSm.replace('.', '');
|
|
5703
|
-
}
|
|
5704
|
-
});
|
|
5705
|
-
}
|
|
5706
|
-
_this.getActivities();
|
|
5707
|
-
_this.getEntityFormDetails();
|
|
5708
|
-
// this.getComments();
|
|
5709
|
-
if (_this.IsWfAction) {
|
|
5710
|
-
_this.getWfStageAction(x.EntityTypeId, x.ProcessStage);
|
|
5711
|
-
}
|
|
5712
|
-
}, function (error) { return error.error; });
|
|
5639
|
+
this.submitData = {
|
|
5640
|
+
recId: this.RecId,
|
|
5641
|
+
ActionStatus: this.actionFormActionId,
|
|
5642
|
+
AssignedTo: this.assignmentForm.value.AssignedTo,
|
|
5643
|
+
TargetDate: this.targetDate,
|
|
5644
|
+
Description: this.assignmentForm.value.Description,
|
|
5645
|
+
Comments: this.assignmentForm.value.Comments,
|
|
5646
|
+
};
|
|
5713
5647
|
}
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
_this.EntityPageGroupsData = _FormData.PageGroup;
|
|
5725
|
-
}
|
|
5726
|
-
}
|
|
5727
|
-
if (_FormData.defaultPageGroups) {
|
|
5728
|
-
if (Array.isArray(_FormData.defaultPageGroups)) {
|
|
5729
|
-
_this.EntityDefaultPageGroupsData = _FormData.defaultPageGroups;
|
|
5730
|
-
}
|
|
5731
|
-
}
|
|
5732
|
-
}
|
|
5733
|
-
_this.EntityFormId = res.RecId;
|
|
5734
|
-
}, function (error) {
|
|
5735
|
-
console.log(error);
|
|
5736
|
-
});
|
|
5737
|
-
};
|
|
5738
|
-
SupportRequestDetailsComponent.prototype.getWorkflowActionComments = function (comments, updateFileds, updateFieldsObject) {
|
|
5739
|
-
var _this = this;
|
|
5740
|
-
// alert("zz");
|
|
5741
|
-
var updateFieldsObjectString = JSON.stringify(updateFieldsObject);
|
|
5742
|
-
this.EntityTypeSetupService.urlPostTaskWfAction(this.RecId, this.stageId, this.action, comments, updateFileds, updateFieldsObjectString, this.EntityTypeId).subscribe(function (res) {
|
|
5743
|
-
// this.wfActionData = res;
|
|
5648
|
+
this.taskService.TaskAssignmentUpdateStatus(this.submitData, this.EntityTypeRecId).subscribe(function (x) {
|
|
5649
|
+
_this.assignmentForm.reset();
|
|
5650
|
+
_this.closeModelPopup();
|
|
5651
|
+
_this.taskService.showCommentPopup = false;
|
|
5652
|
+
_this.taskService.close();
|
|
5653
|
+
_this.getAssignmentByRefRecIdList(_this.HistoryListCriteria);
|
|
5654
|
+
// Swal.fire(x);
|
|
5655
|
+
Swal__default['default'].fire({
|
|
5656
|
+
title: _this.translatePipe.transform(x),
|
|
5657
|
+
});
|
|
5744
5658
|
_this.getTaskDetails();
|
|
5745
|
-
|
|
5659
|
+
_this.getComments();
|
|
5746
5660
|
}, function (error) {
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
Swal__default['default'].fire(_this.translatePipe.transform(msg));
|
|
5758
|
-
}
|
|
5759
|
-
else {
|
|
5760
|
-
Swal__default['default'].fire(_this.translatePipe.transform(error.ExceptionMessage), _this.translatePipe.transform(error.message));
|
|
5761
|
-
}
|
|
5661
|
+
_this.assignmentForm.reset();
|
|
5662
|
+
_this.closeModelPopup();
|
|
5663
|
+
_this.taskService.showCommentPopup = false;
|
|
5664
|
+
_this.taskService.close();
|
|
5665
|
+
// Swal.fire(error.error);
|
|
5666
|
+
Swal__default['default'].fire({
|
|
5667
|
+
title: _this.translatePipe.transform(error.error),
|
|
5668
|
+
});
|
|
5669
|
+
// alert("err");
|
|
5670
|
+
// error.error
|
|
5762
5671
|
});
|
|
5763
5672
|
};
|
|
5764
|
-
SupportRequestDetailsComponent.prototype.
|
|
5673
|
+
SupportRequestDetailsComponent.prototype.getAssignmentByRefRecIdList = function (Criteria) {
|
|
5765
5674
|
var _this = this;
|
|
5766
|
-
|
|
5767
|
-
if (this.
|
|
5768
|
-
this.
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
_this.
|
|
5675
|
+
this.HistoryListCriteria = Criteria;
|
|
5676
|
+
if (this.RecId != null) {
|
|
5677
|
+
this.globalService.dataLoader = true;
|
|
5678
|
+
this.taskService.assignmentbyrefrecid(Criteria, this.RecId, this.EntityTypeRecId).subscribe(function (x) {
|
|
5679
|
+
// alert("get");
|
|
5680
|
+
_this.loadGrid(x.Data, x.TotalCount);
|
|
5681
|
+
_this.globalService.dataLoader = false;
|
|
5772
5682
|
}, function (error) {
|
|
5773
5683
|
// Swal.fire(error);
|
|
5684
|
+
// error.error
|
|
5774
5685
|
Swal__default['default'].fire({
|
|
5775
5686
|
title: _this.translatePipe.transform(error.error),
|
|
5776
5687
|
});
|
|
5777
|
-
// error.error
|
|
5778
5688
|
});
|
|
5779
5689
|
}
|
|
5780
5690
|
};
|
|
5781
|
-
SupportRequestDetailsComponent.prototype.
|
|
5782
|
-
|
|
5783
|
-
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
this.EntityTypeSetupService.getActivityUploadFile(item.RecId, this.EntityTypeRecId, item.ActivityTypeId)
|
|
5800
|
-
.subscribe(function (res) {
|
|
5801
|
-
if (res && res.length > 0) {
|
|
5802
|
-
item.uploadFiles = res;
|
|
5803
|
-
}
|
|
5804
|
-
});
|
|
5691
|
+
SupportRequestDetailsComponent.prototype.loadGrid = function (data, TotalRecord) {
|
|
5692
|
+
if (data) {
|
|
5693
|
+
if (data.length > 0)
|
|
5694
|
+
this.gridServiceService.onGridRefresh.next({
|
|
5695
|
+
isTrue: true,
|
|
5696
|
+
list: data,
|
|
5697
|
+
grid: 8,
|
|
5698
|
+
count: data.length,
|
|
5699
|
+
totalRecordCount: TotalRecord,
|
|
5700
|
+
});
|
|
5701
|
+
else
|
|
5702
|
+
this.gridServiceService.onGridRefresh.next({
|
|
5703
|
+
isTrue: true,
|
|
5704
|
+
list: [],
|
|
5705
|
+
grid: 8,
|
|
5706
|
+
count: 0,
|
|
5707
|
+
totalRecordCount: 0,
|
|
5708
|
+
});
|
|
5805
5709
|
}
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
item.uploadFiles = res;
|
|
5814
|
-
}
|
|
5815
|
-
_this.ActivityTypeReadonly.push(item);
|
|
5710
|
+
else
|
|
5711
|
+
this.gridServiceService.onGridRefresh.next({
|
|
5712
|
+
isTrue: true,
|
|
5713
|
+
list: [],
|
|
5714
|
+
grid: 8,
|
|
5715
|
+
count: 0,
|
|
5716
|
+
totalRecordCount: 0,
|
|
5816
5717
|
});
|
|
5817
|
-
}
|
|
5818
|
-
};
|
|
5819
|
-
SupportRequestDetailsComponent.prototype.addEvents = function (data) {
|
|
5820
|
-
this.openPopupCreatePage(data);
|
|
5821
5718
|
};
|
|
5822
|
-
SupportRequestDetailsComponent.prototype.
|
|
5719
|
+
SupportRequestDetailsComponent.prototype.getTaskAssignData = function () {
|
|
5823
5720
|
var _this = this;
|
|
5824
|
-
this.
|
|
5825
|
-
setTimeout(function () { return (_this.CreateItemId = item.RecId); }, 0);
|
|
5826
|
-
this.selectedActivityItem = item;
|
|
5827
|
-
if (item.Description != 'Comments')
|
|
5828
|
-
this.displayPopupCreateView = true;
|
|
5829
|
-
// this.Activity=item.RecId;
|
|
5721
|
+
this.taskService.getTaskAssignData().subscribe(function (x) { return _this.taskAssignData = x; });
|
|
5830
5722
|
};
|
|
5831
|
-
SupportRequestDetailsComponent.prototype.
|
|
5832
|
-
|
|
5833
|
-
this.
|
|
5834
|
-
|
|
5835
|
-
this.
|
|
5836
|
-
this.openDefaultComments();
|
|
5723
|
+
SupportRequestDetailsComponent.prototype.submitComment = function (event) {
|
|
5724
|
+
debugger;
|
|
5725
|
+
if (event.keyCode == 13 && this.inputValue) {
|
|
5726
|
+
this.globalService.submitComments.next({ message: this.inputValue });
|
|
5727
|
+
this.inputValue = null;
|
|
5837
5728
|
}
|
|
5838
5729
|
};
|
|
5839
|
-
SupportRequestDetailsComponent
|
|
5840
|
-
|
|
5730
|
+
return SupportRequestDetailsComponent;
|
|
5731
|
+
}());
|
|
5732
|
+
SupportRequestDetailsComponent.decorators = [
|
|
5733
|
+
{ type: i0.Component, args: [{
|
|
5734
|
+
selector: 'app-support-request-details',
|
|
5735
|
+
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\">\r\n <h4 class=\"themecolor\">{{_TaskDetail?.Subject |translate}}</h4>\r\n <p>{{_TaskDetail?.Description}}</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}} {{'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}} {{'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}} {{'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\"\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",
|
|
5736
|
+
styles: ["@charset \"UTF-8\";.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:inset -5px 0 0 #f7f7f7}.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:none;padding:0;height:auto;top:25px;font:normal normal normal 14px/1 FontAwesome;content:\"\uF0E6\"}.activity-timeline .timeline-item.Email:after{content:\"\uE086\"}.activity-timeline .timeline-item.SMS:after{content:\"\uE04A\"}.activity-timeline .timeline-item.Notes:after{content:\"\uE04C\"}.activity-timeline .timeline-item.Comments:after{content:\"\uF0E6\"}.activity-timeline .timeline-item.Task:after{content:\"\uE067\"}.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;left:-6.5px;background-position:-182px -292px;background-color:#fafafa;border:1px solid #e1e2e1;border-width:0 0 1px 1px}.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;width:100%;padding:10px 20px 25px;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 #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 0 rgba(0,0,0,.2);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}"]
|
|
5737
|
+
},] }
|
|
5738
|
+
];
|
|
5739
|
+
SupportRequestDetailsComponent.ctorParameters = function () { return [
|
|
5740
|
+
{ type: TaskService },
|
|
5741
|
+
{ type: EntityTypeSetupService },
|
|
5742
|
+
{ type: forms.FormBuilder },
|
|
5743
|
+
{ type: router.ActivatedRoute },
|
|
5744
|
+
{ type: GridServiceService },
|
|
5745
|
+
{ type: TicketApiService },
|
|
5746
|
+
{ type: GlobalService },
|
|
5747
|
+
{ type: router.Router }
|
|
5748
|
+
]; };
|
|
5749
|
+
SupportRequestDetailsComponent.propDecorators = {
|
|
5750
|
+
EntityTypeRecId: [{ type: i0.Input }],
|
|
5751
|
+
RecId: [{ type: i0.Input }],
|
|
5752
|
+
ViewFrom: [{ type: i0.Input }],
|
|
5753
|
+
IsWfAction: [{ type: i0.Input }]
|
|
5754
|
+
};
|
|
5755
|
+
|
|
5756
|
+
var AttachmentService = /** @class */ (function () {
|
|
5757
|
+
function AttachmentService(http) {
|
|
5758
|
+
this.http = http;
|
|
5759
|
+
this.IsPopUp = false;
|
|
5760
|
+
}
|
|
5761
|
+
AttachmentService.prototype.getAttachmentList = function (MenuOrEntityRecId, attachmentType) {
|
|
5762
|
+
var url = Common.getAttachmentByMenuRecId(MenuOrEntityRecId, attachmentType);
|
|
5763
|
+
return this.http.get(url);
|
|
5841
5764
|
};
|
|
5842
|
-
|
|
5843
|
-
var
|
|
5844
|
-
|
|
5845
|
-
.
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
// });
|
|
5853
|
-
var showallIndex = _this.StatusAndStageList.findIndex(function (x) { return x.OrderId == -1; });
|
|
5854
|
-
_this.StatusAndStageList.splice(showallIndex, 1);
|
|
5855
|
-
var showPendingIndex = _this.StatusAndStageList.findIndex(function (x) { return x.OrderId == 0; });
|
|
5856
|
-
_this.StatusAndStageList.splice(showPendingIndex, 1);
|
|
5857
|
-
}, function (error) {
|
|
5858
|
-
var _a;
|
|
5859
|
-
console.log(error);
|
|
5860
|
-
Swal__default['default'].fire(_this.translatePipe.transform((_a = error.error) === null || _a === void 0 ? void 0 : _a.ExceptionMessage), _this.translatePipe.transform(error === null || error === void 0 ? void 0 : error.message), 'error');
|
|
5861
|
-
});
|
|
5765
|
+
AttachmentService.prototype.uploadAttachFile = function (obj, files) {
|
|
5766
|
+
var url = Common.uploadAttachFile();
|
|
5767
|
+
var data = {
|
|
5768
|
+
refRecId: obj.refRecId,
|
|
5769
|
+
DocumentType: obj.DocumentType,
|
|
5770
|
+
DocumentVersion: obj.DocumentVersion,
|
|
5771
|
+
Title: obj.Title,
|
|
5772
|
+
FileName: obj.FileName
|
|
5773
|
+
};
|
|
5774
|
+
return this.http.post(url, files, { params: data });
|
|
5862
5775
|
};
|
|
5863
|
-
|
|
5864
|
-
var
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
}
|
|
5870
|
-
else {
|
|
5871
|
-
this.showStageDetails = true;
|
|
5872
|
-
this.selectedProcessList = this.ProcessStageList.filter(function (x) { return x.ProcessStage == item.StageId; });
|
|
5873
|
-
this.selectedProcess =
|
|
5874
|
-
this.selectedProcessList[this.selectedProcessList.length - 1];
|
|
5875
|
-
}
|
|
5776
|
+
AttachmentService.prototype.getUploadFileList = function (DoctypeRecId, RefRecId) {
|
|
5777
|
+
var url = Common.getUploadFileList(DoctypeRecId, RefRecId);
|
|
5778
|
+
var obj = {
|
|
5779
|
+
DoctypeRecId: DoctypeRecId,
|
|
5780
|
+
RefRecId: RefRecId
|
|
5781
|
+
};
|
|
5782
|
+
return this.http.get(url, { observe: 'response' }); //obj,
|
|
5876
5783
|
};
|
|
5877
|
-
|
|
5878
|
-
var
|
|
5879
|
-
this.
|
|
5880
|
-
setTimeout(function () { return (_this.selectedProcess = null); }, 500);
|
|
5784
|
+
AttachmentService.prototype.ActivateUplaodFile = function (RecId) {
|
|
5785
|
+
var url = Common.activateUploadFile(RecId);
|
|
5786
|
+
return this.http.get(url);
|
|
5881
5787
|
};
|
|
5882
|
-
|
|
5883
|
-
|
|
5788
|
+
AttachmentService.prototype.InActivateUplaodFile = function (RecId) {
|
|
5789
|
+
var url = Common.inActivateUploadFile(RecId);
|
|
5790
|
+
return this.http.get(url);
|
|
5884
5791
|
};
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
|
|
5792
|
+
AttachmentService.prototype.getDocumentType = function (criteriastr) {
|
|
5793
|
+
// let obj={
|
|
5794
|
+
// "Pagging":{"PageNo":criteriastr.Pagging.PageNo,"PageSize":criteriastr.Pagging.PageSize},
|
|
5795
|
+
// "Where":[],
|
|
5796
|
+
// "SortOrder":{"field":null,"direction":null}
|
|
5797
|
+
// };
|
|
5798
|
+
// let criteria:any= JSON.stringify(obj);
|
|
5799
|
+
var url = Common.getDocumentType();
|
|
5800
|
+
return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
|
|
5888
5801
|
};
|
|
5889
|
-
|
|
5890
|
-
var
|
|
5891
|
-
|
|
5892
|
-
// let ActivityId = 5;
|
|
5893
|
-
this.EntityTypeSetupService
|
|
5894
|
-
.getDynamicByEntityRefrecid(this.EntityTypeRecId, this.refRecId, this.activitySearchcriteria, this.Activity)
|
|
5895
|
-
.subscribe(function (res) {
|
|
5896
|
-
debugger;
|
|
5897
|
-
_this.ActivityType = res.Data;
|
|
5898
|
-
if (res && res.Data)
|
|
5899
|
-
_this.ActivityTypeReadonly = [];
|
|
5900
|
-
res.Data.forEach(function (x) {
|
|
5901
|
-
_this.getActivityFileUploadsReadonly(x);
|
|
5902
|
-
});
|
|
5903
|
-
_this.setTimeline();
|
|
5904
|
-
_this.TotalActivity = res.TotalCount;
|
|
5905
|
-
console.log('Activity', res.Data);
|
|
5906
|
-
});
|
|
5907
|
-
(function (error) {
|
|
5908
|
-
error.error;
|
|
5909
|
-
});
|
|
5802
|
+
AttachmentService.prototype.getDocumentbyRecId = function (RecId) {
|
|
5803
|
+
var url = Common.getDocumentTypeByRecId(RecId);
|
|
5804
|
+
return this.http.get(url);
|
|
5910
5805
|
};
|
|
5911
|
-
|
|
5912
|
-
var
|
|
5913
|
-
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
|
|
5917
|
-
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
// if (Array.isArray(this.TaskList)) {
|
|
5925
|
-
// if (this.TaskList.length > 0) this.TimelineList.push(...this.TaskList);
|
|
5926
|
-
// }
|
|
5927
|
-
// if (Array.isArray(this.ProcessStageList)) {
|
|
5928
|
-
// if (this.ProcessStageList.length > 0) {
|
|
5929
|
-
// this.ProcessStageList = this.ProcessStageList.map((x) => {
|
|
5930
|
-
// x.Type = 'Workflow';
|
|
5931
|
-
// x.ActivityTypeIdEn = 'Comments';
|
|
5932
|
-
// return x;
|
|
5933
|
-
// });
|
|
5934
|
-
// this.TimelineList.push(...this.ProcessStageList);
|
|
5935
|
-
// }
|
|
5936
|
-
// }
|
|
5937
|
-
this.TimelineList.sort(function (a, b) {
|
|
5938
|
-
if (a.CreatedDatetime < b.CreatedDatetime)
|
|
5939
|
-
return -1;
|
|
5940
|
-
else if (a.CreatedDatetime > b.CreatedDatetime)
|
|
5941
|
-
return 1;
|
|
5942
|
-
else
|
|
5943
|
-
return 0;
|
|
5944
|
-
});
|
|
5945
|
-
this.TimelineListReadonly.sort(function (a, b) {
|
|
5946
|
-
if (a.CreatedDatetime < b.CreatedDatetime)
|
|
5947
|
-
return -1;
|
|
5948
|
-
else if (a.CreatedDatetime > b.CreatedDatetime)
|
|
5949
|
-
return 1;
|
|
5950
|
-
else
|
|
5951
|
-
return 0;
|
|
5952
|
-
});
|
|
5806
|
+
AttachmentService.prototype.deleteDocumentType = function (RecId) {
|
|
5807
|
+
var url = Common.deleteDocumentType(RecId);
|
|
5808
|
+
var content_ = "";
|
|
5809
|
+
var options_ = {
|
|
5810
|
+
body: content_,
|
|
5811
|
+
observe: "response",
|
|
5812
|
+
responseType: "blob",
|
|
5813
|
+
headers: new i1$1.HttpHeaders({
|
|
5814
|
+
"Content-Type": "application/json",
|
|
5815
|
+
"Accept": "application/json"
|
|
5816
|
+
})
|
|
5817
|
+
};
|
|
5818
|
+
return this.http.delete(url);
|
|
5953
5819
|
};
|
|
5954
|
-
|
|
5955
|
-
var
|
|
5956
|
-
|
|
5957
|
-
this.storeCriteria = Criteria;
|
|
5958
|
-
// let data: Observable<IEntityWFstageVM[]>;
|
|
5959
|
-
this.EntityTypeSetupService.getWfInsProcessStageComments(Criteria, this.EntityTypeId, this.refRecId).subscribe(function (res) {
|
|
5960
|
-
// alert("grid data");
|
|
5961
|
-
_this.ProcessStageList = res.Data;
|
|
5962
|
-
_this.setTimeline();
|
|
5963
|
-
console.log(res);
|
|
5964
|
-
_this.loadGrid(res.Data, res.TotalCount);
|
|
5965
|
-
}, function (error) {
|
|
5966
|
-
var _a;
|
|
5967
|
-
console.log(error);
|
|
5968
|
-
_this.loadGrid([], 0);
|
|
5969
|
-
Swal__default['default'].fire(_this.translatePipe.transform((_a = error.error) === null || _a === void 0 ? void 0 : _a.ExceptionMessage), _this.translatePipe.transform(error === null || error === void 0 ? void 0 : error.message), 'error');
|
|
5970
|
-
});
|
|
5971
|
-
}
|
|
5820
|
+
AttachmentService.prototype.createDocumentType = function (Obj) {
|
|
5821
|
+
var url = Common.createDocumentType();
|
|
5822
|
+
return this.http.post(url, Obj, { observe: 'response' });
|
|
5972
5823
|
};
|
|
5973
|
-
|
|
5974
|
-
|
|
5824
|
+
AttachmentService.prototype.updateDocumentType = function (Obj) {
|
|
5825
|
+
var url = Common.updateDocumentType();
|
|
5826
|
+
return this.http.put(url, Obj, { observe: 'response' });
|
|
5975
5827
|
};
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
var formData = new FormData();
|
|
5986
|
-
if (this.fileList && this.fileList.length > 0) {
|
|
5987
|
-
var file = this.fileList[0];
|
|
5988
|
-
formData.append('Files', file, file.name);
|
|
5989
|
-
}
|
|
5990
|
-
this.EntityTypeSetupService.postTaskComments(this.fileList, data).subscribe(function (x) {
|
|
5991
|
-
_this.Comments = null;
|
|
5992
|
-
_this.CommentsTitle = null;
|
|
5993
|
-
_this.TaskCommentFile = null;
|
|
5994
|
-
_this.getComments();
|
|
5995
|
-
}, function (error) { return error.error; });
|
|
5828
|
+
AttachmentService.prototype.getAttachmentSetupList = function (criteriastr) {
|
|
5829
|
+
// let obj={
|
|
5830
|
+
// "Pagging":{"PageNo":criteriastr.Pagging.PageNo,"PageSize":criteriastr.Pagging.PageSize},
|
|
5831
|
+
// "Where":[],
|
|
5832
|
+
// "SortOrder":{"field":null,"direction":null}
|
|
5833
|
+
// };
|
|
5834
|
+
// let criteria:any= JSON.stringify(obj);
|
|
5835
|
+
var url = Common.getAttachmentSetupList();
|
|
5836
|
+
return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
|
|
5996
5837
|
};
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
// if (comments && comments.length > 0) {
|
|
6001
|
-
// this.commentsActivityItem = null;
|
|
6002
|
-
// setTimeout(() => (this.commentsActivityItem = comments[0]), 0);
|
|
6003
|
-
// this.commentsActivityItem = comments[0];
|
|
6004
|
-
// this.openPopupCreatePage(comments[0]);
|
|
6005
|
-
// }
|
|
6006
|
-
// else {
|
|
6007
|
-
// this.openPopupCreatePage(this.ActivityFields[0]);
|
|
6008
|
-
// }
|
|
5838
|
+
AttachmentService.prototype.getDocumentTypeAssignUnAssign = function (MenuRecId) {
|
|
5839
|
+
var url = Common.getDocumentTypeAssignUnAssign(MenuRecId);
|
|
5840
|
+
return this.http.get(url);
|
|
6009
5841
|
};
|
|
6010
|
-
|
|
6011
|
-
var
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
this.EntityTypeSetupService.urlGetWfStageAction(EntityTypeId, StageId).subscribe(function (res) {
|
|
6015
|
-
// res = [{"Action":10,"ActionDescription":"InProgress","StageRecId":1,"ActionComplete":null,"ProcessId":null,"StageId":1,"StageTypeId":1,"ActionRecId":1,"StageDescription":"New"}]
|
|
6016
|
-
_this.wfStageAction = res;
|
|
6017
|
-
console.log(res);
|
|
6018
|
-
}, function (error) {
|
|
6019
|
-
error.error;
|
|
6020
|
-
});
|
|
5842
|
+
AttachmentService.prototype.assignDocumentType = function (data) {
|
|
5843
|
+
var st = data.DocumentTypeRecId.map(function (x) { return "DocumentTypeRecId=" + x; }).join("&");
|
|
5844
|
+
var url_ = environment.ServerUrl + "security/documenttype/menu/assign?" + st + "&MenuOrEntityRecId=" + data.MenuOrEntityRecId;
|
|
5845
|
+
return this.http.post(url_, null);
|
|
6021
5846
|
};
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
this.
|
|
6026
|
-
this.EntityTypeSetupService.onshowWorkflowPopup.next({
|
|
6027
|
-
showWorkflowPopup: true,
|
|
6028
|
-
fieldConfig: [],
|
|
6029
|
-
});
|
|
5847
|
+
AttachmentService.prototype.unassignDocumentType = function (data) {
|
|
5848
|
+
var st = data.DocumentTypeRecId.map(function (x) { return "DocumentTypeRecId=" + x; }).join("&");
|
|
5849
|
+
var url_ = environment.ServerUrl + "security/documenttype/menu/unassign?" + st + "&MenuOrEntityRecId=" + data.MenuOrEntityRecId;
|
|
5850
|
+
return this.http.post(url_, data);
|
|
6030
5851
|
};
|
|
6031
|
-
|
|
6032
|
-
|
|
5852
|
+
AttachmentService.prototype.getDocumentTypeAssignUnAssignForEntityType = function (EntityRecId) {
|
|
5853
|
+
var url = Common.getDocumentTypeAssignUnAssignForEntityType(EntityRecId);
|
|
5854
|
+
return this.http.get(url);
|
|
6033
5855
|
};
|
|
6034
|
-
|
|
6035
|
-
|
|
5856
|
+
AttachmentService.prototype.assignDocumentTypeForEntityType = function (data) {
|
|
5857
|
+
var st = data.DocumentTypeRecId.map(function (x) { return "DocumentTypeRecId=" + x; }).join("&");
|
|
5858
|
+
var url_ = environment.ServerUrl + "security/documenttype/entitytype/assign?" + st + "&MenuOrEntityRecId=" + data.MenuOrEntityRecId;
|
|
5859
|
+
return this.http.post(url_, null);
|
|
6036
5860
|
};
|
|
6037
|
-
|
|
6038
|
-
|
|
5861
|
+
AttachmentService.prototype.unassignDocumentTypeForEntityType = function (data) {
|
|
5862
|
+
var st = data.DocumentTypeRecId.map(function (x) { return "DocumentTypeRecId=" + x; }).join("&");
|
|
5863
|
+
var url_ = environment.ServerUrl + "security/documenttype/entitytype/unassign?" + st + "&MenuOrEntityRecId=" + data.MenuOrEntityRecId;
|
|
5864
|
+
return this.http.post(url_, data);
|
|
6039
5865
|
};
|
|
6040
|
-
|
|
6041
|
-
var
|
|
6042
|
-
|
|
6043
|
-
var day = todayTime.getDate();
|
|
6044
|
-
var year = todayTime.getFullYear();
|
|
6045
|
-
return year + "-" + month + "-" + day;
|
|
5866
|
+
AttachmentService.prototype.assignDocumentTypeForEntityTypeWithBody = function (data, EntityTypeId) {
|
|
5867
|
+
var url_ = environment.ServerUrl + "security/documenttypeformbody/entitytype/assign?MenuOrEntityRecId=" + EntityTypeId;
|
|
5868
|
+
return this.http.post(url_, data);
|
|
6046
5869
|
};
|
|
6047
|
-
|
|
6048
|
-
var
|
|
6049
|
-
|
|
6050
|
-
this.targetDate = this.GetFormattedDate(this.assignmentForm.value.TargetDate);
|
|
6051
|
-
this.submitData = {
|
|
6052
|
-
recId: this.RecId,
|
|
6053
|
-
ActionStatus: this.actionFormActionId,
|
|
6054
|
-
AssignedTo: this.assignmentForm.value.AssignedTo,
|
|
6055
|
-
Description: this.assignmentForm.value.Description,
|
|
6056
|
-
Comments: this.assignmentForm.value.Comments,
|
|
6057
|
-
};
|
|
6058
|
-
}
|
|
6059
|
-
else {
|
|
6060
|
-
this.submitData = {
|
|
6061
|
-
recId: this.RecId,
|
|
6062
|
-
ActionStatus: this.actionFormActionId,
|
|
6063
|
-
AssignedTo: this.assignmentForm.value.AssignedTo,
|
|
6064
|
-
TargetDate: this.targetDate,
|
|
6065
|
-
Description: this.assignmentForm.value.Description,
|
|
6066
|
-
Comments: this.assignmentForm.value.Comments,
|
|
6067
|
-
};
|
|
6068
|
-
}
|
|
6069
|
-
this.taskService.TaskAssignmentUpdateStatus(this.submitData, this.EntityTypeRecId).subscribe(function (x) {
|
|
6070
|
-
_this.assignmentForm.reset();
|
|
6071
|
-
_this.closeModelPopup();
|
|
6072
|
-
_this.taskService.showCommentPopup = false;
|
|
6073
|
-
_this.taskService.close();
|
|
6074
|
-
_this.getAssignmentByRefRecIdList(_this.HistoryListCriteria);
|
|
6075
|
-
// Swal.fire(x);
|
|
6076
|
-
Swal__default['default'].fire({
|
|
6077
|
-
title: _this.translatePipe.transform(x),
|
|
6078
|
-
});
|
|
6079
|
-
_this.getTaskDetails();
|
|
6080
|
-
_this.getComments();
|
|
6081
|
-
}, function (error) {
|
|
6082
|
-
_this.assignmentForm.reset();
|
|
6083
|
-
_this.closeModelPopup();
|
|
6084
|
-
_this.taskService.showCommentPopup = false;
|
|
6085
|
-
_this.taskService.close();
|
|
6086
|
-
// Swal.fire(error.error);
|
|
6087
|
-
Swal__default['default'].fire({
|
|
6088
|
-
title: _this.translatePipe.transform(error.error),
|
|
6089
|
-
});
|
|
6090
|
-
// alert("err");
|
|
6091
|
-
// error.error
|
|
6092
|
-
});
|
|
5870
|
+
AttachmentService.prototype.unassignDocumentTypeForEntityTypeWithBody = function (data, EntityTypeId) {
|
|
5871
|
+
var url_ = environment.ServerUrl + "security/documenttypeformbody/entitytype/unassign?MenuOrEntityRecId=" + EntityTypeId;
|
|
5872
|
+
return this.http.post(url_, data);
|
|
6093
5873
|
};
|
|
6094
|
-
|
|
6095
|
-
var
|
|
6096
|
-
this.
|
|
6097
|
-
if (this.RecId != null) {
|
|
6098
|
-
this.globalService.dataLoader = true;
|
|
6099
|
-
this.taskService.assignmentbyrefrecid(Criteria, this.RecId, this.EntityTypeRecId).subscribe(function (x) {
|
|
6100
|
-
// alert("get");
|
|
6101
|
-
_this.loadGrid(x.Data, x.TotalCount);
|
|
6102
|
-
_this.globalService.dataLoader = false;
|
|
6103
|
-
}, function (error) {
|
|
6104
|
-
// Swal.fire(error);
|
|
6105
|
-
// error.error
|
|
6106
|
-
Swal__default['default'].fire({
|
|
6107
|
-
title: _this.translatePipe.transform(error.error),
|
|
6108
|
-
});
|
|
6109
|
-
});
|
|
6110
|
-
}
|
|
5874
|
+
AttachmentService.prototype.getDocumentAssignList = function (Criteria, EntityRecId) {
|
|
5875
|
+
var url = Common.getDocumentAssignList(EntityRecId);
|
|
5876
|
+
return this.http.get(url);
|
|
6111
5877
|
};
|
|
6112
|
-
|
|
6113
|
-
|
|
6114
|
-
if (data.length > 0)
|
|
6115
|
-
this.gridServiceService.onGridRefresh.next({
|
|
6116
|
-
isTrue: true,
|
|
6117
|
-
list: data,
|
|
6118
|
-
grid: 8,
|
|
6119
|
-
count: data.length,
|
|
6120
|
-
totalRecordCount: TotalRecord,
|
|
6121
|
-
});
|
|
6122
|
-
else
|
|
6123
|
-
this.gridServiceService.onGridRefresh.next({
|
|
6124
|
-
isTrue: true,
|
|
6125
|
-
list: [],
|
|
6126
|
-
grid: 8,
|
|
6127
|
-
count: 0,
|
|
6128
|
-
totalRecordCount: 0,
|
|
6129
|
-
});
|
|
6130
|
-
}
|
|
6131
|
-
else
|
|
6132
|
-
this.gridServiceService.onGridRefresh.next({
|
|
6133
|
-
isTrue: true,
|
|
6134
|
-
list: [],
|
|
6135
|
-
grid: 8,
|
|
6136
|
-
count: 0,
|
|
6137
|
-
totalRecordCount: 0,
|
|
6138
|
-
});
|
|
5878
|
+
AttachmentService.prototype.open = function () {
|
|
5879
|
+
this.IsPopUp = true;
|
|
6139
5880
|
};
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
this.taskService.getTaskAssignData().subscribe(function (x) { return _this.taskAssignData = x; });
|
|
5881
|
+
AttachmentService.prototype.close = function () {
|
|
5882
|
+
this.IsPopUp = false;
|
|
6143
5883
|
};
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
this.globalService.submitComments.next({ message: this.inputValue });
|
|
6148
|
-
this.inputValue = null;
|
|
6149
|
-
}
|
|
6150
|
-
};
|
|
6151
|
-
return SupportRequestDetailsComponent;
|
|
6152
|
-
}());
|
|
6153
|
-
SupportRequestDetailsComponent.decorators = [
|
|
6154
|
-
{ type: i0.Component, args: [{
|
|
6155
|
-
selector: 'app-support-request-details',
|
|
6156
|
-
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\">\r\n <h4 class=\"themecolor\">{{_TaskDetail?.Subject |translate}}</h4>\r\n <p>{{_TaskDetail?.Description}}</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}} {{'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}} {{'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}} {{'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\"\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",
|
|
6157
|
-
styles: ["@charset \"UTF-8\";.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:inset -5px 0 0 #f7f7f7}.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:none;padding:0;height:auto;top:25px;font:normal normal normal 14px/1 FontAwesome;content:\"\uF0E6\"}.activity-timeline .timeline-item.Email:after{content:\"\uE086\"}.activity-timeline .timeline-item.SMS:after{content:\"\uE04A\"}.activity-timeline .timeline-item.Notes:after{content:\"\uE04C\"}.activity-timeline .timeline-item.Comments:after{content:\"\uF0E6\"}.activity-timeline .timeline-item.Task:after{content:\"\uE067\"}.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;left:-6.5px;background-position:-182px -292px;background-color:#fafafa;border:1px solid #e1e2e1;border-width:0 0 1px 1px}.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;width:100%;padding:10px 20px 25px;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 #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 0 rgba(0,0,0,.2);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}"]
|
|
6158
|
-
},] }
|
|
6159
|
-
];
|
|
6160
|
-
SupportRequestDetailsComponent.ctorParameters = function () { return [
|
|
6161
|
-
{ type: TaskService },
|
|
6162
|
-
{ type: EntityTypeSetupService },
|
|
6163
|
-
{ type: forms.FormBuilder },
|
|
6164
|
-
{ type: router.ActivatedRoute },
|
|
6165
|
-
{ type: GridServiceService },
|
|
6166
|
-
{ type: TicketApiService },
|
|
6167
|
-
{ type: GlobalService },
|
|
6168
|
-
{ type: router.Router }
|
|
6169
|
-
]; };
|
|
6170
|
-
SupportRequestDetailsComponent.propDecorators = {
|
|
6171
|
-
EntityTypeRecId: [{ type: i0.Input }],
|
|
6172
|
-
RecId: [{ type: i0.Input }],
|
|
6173
|
-
ViewFrom: [{ type: i0.Input }],
|
|
6174
|
-
IsWfAction: [{ type: i0.Input }]
|
|
6175
|
-
};
|
|
6176
|
-
function ngOnDestroy() {
|
|
6177
|
-
throw new Error('Function not implemented.');
|
|
6178
|
-
}
|
|
6179
|
-
|
|
6180
|
-
var AttachmentService = /** @class */ (function () {
|
|
6181
|
-
function AttachmentService(http) {
|
|
6182
|
-
this.http = http;
|
|
6183
|
-
this.IsPopUp = false;
|
|
6184
|
-
}
|
|
6185
|
-
AttachmentService.prototype.getAttachmentList = function (MenuOrEntityRecId, attachmentType) {
|
|
6186
|
-
var url = Common.getAttachmentByMenuRecId(MenuOrEntityRecId, attachmentType);
|
|
6187
|
-
return this.http.get(url);
|
|
6188
|
-
};
|
|
6189
|
-
AttachmentService.prototype.uploadAttachFile = function (obj, files) {
|
|
6190
|
-
var url = Common.uploadAttachFile();
|
|
6191
|
-
var data = {
|
|
6192
|
-
refRecId: obj.refRecId,
|
|
6193
|
-
DocumentType: obj.DocumentType,
|
|
6194
|
-
DocumentVersion: obj.DocumentVersion,
|
|
6195
|
-
Title: obj.Title,
|
|
6196
|
-
FileName: obj.FileName
|
|
6197
|
-
};
|
|
6198
|
-
return this.http.post(url, files, { params: data });
|
|
6199
|
-
};
|
|
6200
|
-
AttachmentService.prototype.getUploadFileList = function (DoctypeRecId, RefRecId) {
|
|
6201
|
-
var url = Common.getUploadFileList(DoctypeRecId, RefRecId);
|
|
6202
|
-
var obj = {
|
|
6203
|
-
DoctypeRecId: DoctypeRecId,
|
|
6204
|
-
RefRecId: RefRecId
|
|
6205
|
-
};
|
|
6206
|
-
return this.http.get(url, { observe: 'response' }); //obj,
|
|
6207
|
-
};
|
|
6208
|
-
AttachmentService.prototype.ActivateUplaodFile = function (RecId) {
|
|
6209
|
-
var url = Common.activateUploadFile(RecId);
|
|
6210
|
-
return this.http.get(url);
|
|
6211
|
-
};
|
|
6212
|
-
AttachmentService.prototype.InActivateUplaodFile = function (RecId) {
|
|
6213
|
-
var url = Common.inActivateUploadFile(RecId);
|
|
6214
|
-
return this.http.get(url);
|
|
6215
|
-
};
|
|
6216
|
-
AttachmentService.prototype.getDocumentType = function (criteriastr) {
|
|
6217
|
-
// let obj={
|
|
6218
|
-
// "Pagging":{"PageNo":criteriastr.Pagging.PageNo,"PageSize":criteriastr.Pagging.PageSize},
|
|
6219
|
-
// "Where":[],
|
|
6220
|
-
// "SortOrder":{"field":null,"direction":null}
|
|
6221
|
-
// };
|
|
6222
|
-
// let criteria:any= JSON.stringify(obj);
|
|
6223
|
-
var url = Common.getDocumentType();
|
|
6224
|
-
return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
|
|
6225
|
-
};
|
|
6226
|
-
AttachmentService.prototype.getDocumentbyRecId = function (RecId) {
|
|
6227
|
-
var url = Common.getDocumentTypeByRecId(RecId);
|
|
6228
|
-
return this.http.get(url);
|
|
6229
|
-
};
|
|
6230
|
-
AttachmentService.prototype.deleteDocumentType = function (RecId) {
|
|
6231
|
-
var url = Common.deleteDocumentType(RecId);
|
|
6232
|
-
var content_ = "";
|
|
6233
|
-
var options_ = {
|
|
6234
|
-
body: content_,
|
|
6235
|
-
observe: "response",
|
|
6236
|
-
responseType: "blob",
|
|
6237
|
-
headers: new i1$1.HttpHeaders({
|
|
6238
|
-
"Content-Type": "application/json",
|
|
6239
|
-
"Accept": "application/json"
|
|
6240
|
-
})
|
|
6241
|
-
};
|
|
6242
|
-
return this.http.delete(url);
|
|
6243
|
-
};
|
|
6244
|
-
AttachmentService.prototype.createDocumentType = function (Obj) {
|
|
6245
|
-
var url = Common.createDocumentType();
|
|
6246
|
-
return this.http.post(url, Obj, { observe: 'response' });
|
|
6247
|
-
};
|
|
6248
|
-
AttachmentService.prototype.updateDocumentType = function (Obj) {
|
|
6249
|
-
var url = Common.updateDocumentType();
|
|
6250
|
-
return this.http.put(url, Obj, { observe: 'response' });
|
|
6251
|
-
};
|
|
6252
|
-
AttachmentService.prototype.getAttachmentSetupList = function (criteriastr) {
|
|
6253
|
-
// let obj={
|
|
6254
|
-
// "Pagging":{"PageNo":criteriastr.Pagging.PageNo,"PageSize":criteriastr.Pagging.PageSize},
|
|
6255
|
-
// "Where":[],
|
|
6256
|
-
// "SortOrder":{"field":null,"direction":null}
|
|
6257
|
-
// };
|
|
6258
|
-
// let criteria:any= JSON.stringify(obj);
|
|
6259
|
-
var url = Common.getAttachmentSetupList();
|
|
6260
|
-
return this.http.get(url, { params: CriteriaBuilder(criteriastr) });
|
|
6261
|
-
};
|
|
6262
|
-
AttachmentService.prototype.getDocumentTypeAssignUnAssign = function (MenuRecId) {
|
|
6263
|
-
var url = Common.getDocumentTypeAssignUnAssign(MenuRecId);
|
|
6264
|
-
return this.http.get(url);
|
|
6265
|
-
};
|
|
6266
|
-
AttachmentService.prototype.assignDocumentType = function (data) {
|
|
6267
|
-
var st = data.DocumentTypeRecId.map(function (x) { return "DocumentTypeRecId=" + x; }).join("&");
|
|
6268
|
-
var url_ = environment.ServerUrl + "security/documenttype/menu/assign?" + st + "&MenuOrEntityRecId=" + data.MenuOrEntityRecId;
|
|
6269
|
-
return this.http.post(url_, null);
|
|
6270
|
-
};
|
|
6271
|
-
AttachmentService.prototype.unassignDocumentType = function (data) {
|
|
6272
|
-
var st = data.DocumentTypeRecId.map(function (x) { return "DocumentTypeRecId=" + x; }).join("&");
|
|
6273
|
-
var url_ = environment.ServerUrl + "security/documenttype/menu/unassign?" + st + "&MenuOrEntityRecId=" + data.MenuOrEntityRecId;
|
|
6274
|
-
return this.http.post(url_, data);
|
|
6275
|
-
};
|
|
6276
|
-
AttachmentService.prototype.getDocumentTypeAssignUnAssignForEntityType = function (EntityRecId) {
|
|
6277
|
-
var url = Common.getDocumentTypeAssignUnAssignForEntityType(EntityRecId);
|
|
6278
|
-
return this.http.get(url);
|
|
6279
|
-
};
|
|
6280
|
-
AttachmentService.prototype.assignDocumentTypeForEntityType = function (data) {
|
|
6281
|
-
var st = data.DocumentTypeRecId.map(function (x) { return "DocumentTypeRecId=" + x; }).join("&");
|
|
6282
|
-
var url_ = environment.ServerUrl + "security/documenttype/entitytype/assign?" + st + "&MenuOrEntityRecId=" + data.MenuOrEntityRecId;
|
|
6283
|
-
return this.http.post(url_, null);
|
|
6284
|
-
};
|
|
6285
|
-
AttachmentService.prototype.unassignDocumentTypeForEntityType = function (data) {
|
|
6286
|
-
var st = data.DocumentTypeRecId.map(function (x) { return "DocumentTypeRecId=" + x; }).join("&");
|
|
6287
|
-
var url_ = environment.ServerUrl + "security/documenttype/entitytype/unassign?" + st + "&MenuOrEntityRecId=" + data.MenuOrEntityRecId;
|
|
6288
|
-
return this.http.post(url_, data);
|
|
6289
|
-
};
|
|
6290
|
-
AttachmentService.prototype.assignDocumentTypeForEntityTypeWithBody = function (data, EntityTypeId) {
|
|
6291
|
-
var url_ = environment.ServerUrl + "security/documenttypeformbody/entitytype/assign?MenuOrEntityRecId=" + EntityTypeId;
|
|
6292
|
-
return this.http.post(url_, data);
|
|
6293
|
-
};
|
|
6294
|
-
AttachmentService.prototype.unassignDocumentTypeForEntityTypeWithBody = function (data, EntityTypeId) {
|
|
6295
|
-
var url_ = environment.ServerUrl + "security/documenttypeformbody/entitytype/unassign?MenuOrEntityRecId=" + EntityTypeId;
|
|
6296
|
-
return this.http.post(url_, data);
|
|
6297
|
-
};
|
|
6298
|
-
AttachmentService.prototype.getDocumentAssignList = function (Criteria, EntityRecId) {
|
|
6299
|
-
var url = Common.getDocumentAssignList(EntityRecId);
|
|
6300
|
-
return this.http.get(url);
|
|
6301
|
-
};
|
|
6302
|
-
AttachmentService.prototype.open = function () {
|
|
6303
|
-
this.IsPopUp = true;
|
|
6304
|
-
};
|
|
6305
|
-
AttachmentService.prototype.close = function () {
|
|
6306
|
-
this.IsPopUp = false;
|
|
6307
|
-
};
|
|
6308
|
-
AttachmentService.prototype.getSideMenuData = function () {
|
|
6309
|
-
var url = environment.ServerUrl + "entitytype/productivitymenuitems";
|
|
6310
|
-
return this.http.get(url);
|
|
5884
|
+
AttachmentService.prototype.getSideMenuData = function () {
|
|
5885
|
+
var url = environment.ServerUrl + "entitytype/productivitymenuitems";
|
|
5886
|
+
return this.http.get(url);
|
|
6311
5887
|
};
|
|
6312
5888
|
AttachmentService.prototype.getMenuItemData = function (criteriastr) {
|
|
6313
5889
|
var url = environment.ServerUrl + "security/menuitemsmap";
|
|
@@ -6636,10 +6212,12 @@
|
|
|
6636
6212
|
|
|
6637
6213
|
// import { environment } from 'arco-support-request';
|
|
6638
6214
|
var RequestFlowComponent = /** @class */ (function () {
|
|
6639
|
-
function RequestFlowComponent(supportService, fb, entityTypeSetup, globalService, document) {
|
|
6215
|
+
function RequestFlowComponent(supportService, fb, entityTypeSetup, router$1, globalService, document) {
|
|
6216
|
+
var _this = this;
|
|
6640
6217
|
this.supportService = supportService;
|
|
6641
6218
|
this.fb = fb;
|
|
6642
6219
|
this.entityTypeSetup = entityTypeSetup;
|
|
6220
|
+
this.router = router$1;
|
|
6643
6221
|
this.globalService = globalService;
|
|
6644
6222
|
this.document = document;
|
|
6645
6223
|
this.issuType = "7";
|
|
@@ -6730,6 +6308,14 @@
|
|
|
6730
6308
|
this.isShowCreateRequest = false;
|
|
6731
6309
|
this.selectCaseItem = null;
|
|
6732
6310
|
this.isDetails = false;
|
|
6311
|
+
router$1.events.subscribe(function (event) {
|
|
6312
|
+
if (event instanceof router.NavigationStart) {
|
|
6313
|
+
setTimeout(function () { return _this.globalService.dataLoader = true; }, 0);
|
|
6314
|
+
}
|
|
6315
|
+
else if (event instanceof router.NavigationEnd) {
|
|
6316
|
+
setTimeout(function () { return _this.globalService.dataLoader = false; }, 0);
|
|
6317
|
+
}
|
|
6318
|
+
});
|
|
6733
6319
|
}
|
|
6734
6320
|
RequestFlowComponent.prototype.ngOnChanges = function (changes) {
|
|
6735
6321
|
if (changes && changes.Language && changes.Language.firstChange == false) {
|
|
@@ -7349,7 +6935,7 @@
|
|
|
7349
6935
|
RequestFlowComponent.decorators = [
|
|
7350
6936
|
{ type: i0.Component, args: [{
|
|
7351
6937
|
selector: 'app-request-flow',
|
|
7352
|
-
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<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\" 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\">×</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 [items]=\"IssueTypeDDL[0].IssueGroup\" [placeholder]=\"'Request'\" 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 [items]=\"dropdownIssuse\" [placeholder]=\"'Request'\" 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-info\"></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\"></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-exclamation-circle\"></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\"></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=\"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 <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",
|
|
6938
|
+
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\">×</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 [items]=\"IssueTypeDDL[0].IssueGroup\" [placeholder]=\"'Request'\" 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 [items]=\"dropdownIssuse\" [placeholder]=\"'Request'\" 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=\"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 <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",
|
|
7353
6939
|
styles: [""]
|
|
7354
6940
|
},] }
|
|
7355
6941
|
];
|
|
@@ -7357,6 +6943,7 @@
|
|
|
7357
6943
|
{ type: SupportRequestService },
|
|
7358
6944
|
{ type: forms.FormBuilder },
|
|
7359
6945
|
{ type: EntityTypeSetupService },
|
|
6946
|
+
{ type: router.Router },
|
|
7360
6947
|
{ type: GlobalService },
|
|
7361
6948
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [common.DOCUMENT,] }] }
|
|
7362
6949
|
]; };
|
|
@@ -9287,35 +8874,39 @@
|
|
|
9287
8874
|
this.pageStartFrom = 1;
|
|
9288
8875
|
};
|
|
9289
8876
|
EntityDynamicFieldComponent.prototype.autoSearchDropdown = function (event, field, searchValue, RequestorField) {
|
|
9290
|
-
|
|
9291
|
-
if (
|
|
9292
|
-
|
|
9293
|
-
|
|
9294
|
-
|
|
9295
|
-
|
|
9296
|
-
var
|
|
9297
|
-
|
|
9298
|
-
|
|
9299
|
-
|
|
9300
|
-
|
|
9301
|
-
|
|
9302
|
-
|
|
9303
|
-
|
|
9304
|
-
|
|
9305
|
-
|
|
9306
|
-
|
|
9307
|
-
|
|
9308
|
-
|
|
9309
|
-
|
|
9310
|
-
|
|
9311
|
-
|
|
9312
|
-
|
|
9313
|
-
|
|
9314
|
-
|
|
9315
|
-
|
|
9316
|
-
|
|
9317
|
-
|
|
9318
|
-
|
|
8877
|
+
debugger;
|
|
8878
|
+
if (event.keyCode == 13) {
|
|
8879
|
+
this.globalService.dataLoader = true;
|
|
8880
|
+
this.tempFields = field;
|
|
8881
|
+
if (field.DataType == E_DataType.dropdown) {
|
|
8882
|
+
if (field.FieldData) {
|
|
8883
|
+
var jsonItem = JSON.parse(field.FieldData);
|
|
8884
|
+
if (jsonItem.isDynamic && jsonItem.rest && jsonItem.rest.URL) {
|
|
8885
|
+
var restData = jsonItem.rest;
|
|
8886
|
+
var _Searchcriteria = {
|
|
8887
|
+
Pagging: {
|
|
8888
|
+
PageNo: 1,
|
|
8889
|
+
PageSize: 100,
|
|
8890
|
+
},
|
|
8891
|
+
Where: [],
|
|
8892
|
+
SortOrder: 1,
|
|
8893
|
+
};
|
|
8894
|
+
if (!searchValue)
|
|
8895
|
+
searchValue = event.target.value;
|
|
8896
|
+
var filterobj_1 = {
|
|
8897
|
+
Field: restData.valueField,
|
|
8898
|
+
Operator: 'Contains',
|
|
8899
|
+
TableAlias: '',
|
|
8900
|
+
Value: searchValue,
|
|
8901
|
+
};
|
|
8902
|
+
jsonItem.rest.QueryStrings.filter(function (x) { return x.Type == "SearchValue"; }).map(function (y) {
|
|
8903
|
+
var temp = ":" + y.Name;
|
|
8904
|
+
filterobj_1.Field += temp;
|
|
8905
|
+
});
|
|
8906
|
+
if (filterobj_1.Field)
|
|
8907
|
+
_Searchcriteria.Where.push(filterobj_1);
|
|
8908
|
+
this.loadDropdown(field, _Searchcriteria, RequestorField, searchValue);
|
|
8909
|
+
}
|
|
9319
8910
|
}
|
|
9320
8911
|
}
|
|
9321
8912
|
}
|
|
@@ -9664,838 +9255,1274 @@
|
|
|
9664
9255
|
this.FiedlListData$[field.Description].push(temp);
|
|
9665
9256
|
}
|
|
9666
9257
|
}
|
|
9667
|
-
}
|
|
9258
|
+
}
|
|
9259
|
+
}
|
|
9260
|
+
}
|
|
9261
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
9262
|
+
finally {
|
|
9263
|
+
try {
|
|
9264
|
+
if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
|
|
9265
|
+
}
|
|
9266
|
+
finally { if (e_2) throw e_2.error; }
|
|
9267
|
+
}
|
|
9268
|
+
};
|
|
9269
|
+
EntityDynamicFieldComponent.prototype.addnewList = function (field) {
|
|
9270
|
+
if (!(this.FiedlListData$[field.Description] && this.FiedlListData$[field.Description].length > 0)) {
|
|
9271
|
+
this.FiedlListData$[field.Description] = [];
|
|
9272
|
+
var fieldVal = this.pageForm.form && this.pageForm.form.get(field.Description).value;
|
|
9273
|
+
if (fieldVal) {
|
|
9274
|
+
for (var key in fieldVal) {
|
|
9275
|
+
var temp = { key: key, value: fieldVal[key] };
|
|
9276
|
+
this.FiedlListData$[field.Description].push(temp);
|
|
9277
|
+
}
|
|
9278
|
+
}
|
|
9279
|
+
}
|
|
9280
|
+
this.FiedlListData$[field.Description].push({ key: null, value: null });
|
|
9281
|
+
var _fieldVal = {};
|
|
9282
|
+
this.FiedlListData$[field.Description].forEach(function (x) { return _fieldVal[x.key] = x.value; });
|
|
9283
|
+
this.pageForm.form.get(field.Description).setValue(_fieldVal);
|
|
9284
|
+
this.changeFiledValue('', field);
|
|
9285
|
+
};
|
|
9286
|
+
EntityDynamicFieldComponent.prototype.removeList = function (field, index) {
|
|
9287
|
+
// this.FiedlListData$[field.Description] = [];
|
|
9288
|
+
// let fieldVal = this.pageForm.form && this.pageForm.form.get(field.Description).value;
|
|
9289
|
+
// if (fieldVal) {
|
|
9290
|
+
// for (let key in fieldVal) {
|
|
9291
|
+
// let temp = { key: key, value: fieldVal[key] };
|
|
9292
|
+
// this.FiedlListData$[field.Description].push(temp);
|
|
9293
|
+
// }
|
|
9294
|
+
// }
|
|
9295
|
+
this.FiedlListData$[field.Description].splice(index, 1);
|
|
9296
|
+
var _fieldVal = {};
|
|
9297
|
+
this.FiedlListData$[field.Description].forEach(function (x) { return _fieldVal[x.key] = x.value; });
|
|
9298
|
+
this.pageForm.form.get(field.Description).setValue(_fieldVal);
|
|
9299
|
+
this.changeFiledValue('', field);
|
|
9300
|
+
};
|
|
9301
|
+
EntityDynamicFieldComponent.prototype.changeFiledList = function (field, item, index) {
|
|
9302
|
+
// this.FiedlListData$[field.Description] = [];
|
|
9303
|
+
// let fieldVal = this.pageForm.form && this.pageForm.form.get(field.Description).value;
|
|
9304
|
+
// if (fieldVal) {
|
|
9305
|
+
// for (let key in fieldVal) {
|
|
9306
|
+
// let temp = { key: key, value: fieldVal[key] };
|
|
9307
|
+
// this.FiedlListData$[field.Description].push(temp);
|
|
9308
|
+
// }
|
|
9309
|
+
// }
|
|
9310
|
+
// this.FiedlListData$[field.Description][index]=item;
|
|
9311
|
+
var _fieldVal = {};
|
|
9312
|
+
this.FiedlListData$[field.Description].forEach(function (x) { return _fieldVal[x.key] = x.value; });
|
|
9313
|
+
this.pageForm.form.get(field.Description).setValue(_fieldVal);
|
|
9314
|
+
this.changeFiledValue('', field);
|
|
9315
|
+
};
|
|
9316
|
+
EntityDynamicFieldComponent.prototype.hanbleBarData = function (_code, data) {
|
|
9317
|
+
if (!data || (typeof data != 'object'))
|
|
9318
|
+
data = {};
|
|
9319
|
+
data.CurrentData = this;
|
|
9320
|
+
data.Local = localStorage;
|
|
9321
|
+
data.Cookies = this.Cookies;
|
|
9322
|
+
data.System = this.globalService.SystemConfigs;
|
|
9323
|
+
if (_code && data) {
|
|
9324
|
+
var template = handlebars.compile(_code);
|
|
9325
|
+
var result = template(data);
|
|
9326
|
+
return result;
|
|
9327
|
+
}
|
|
9328
|
+
else {
|
|
9329
|
+
return _code;
|
|
9330
|
+
}
|
|
9331
|
+
};
|
|
9332
|
+
Object.defineProperty(EntityDynamicFieldComponent.prototype, "Cookies", {
|
|
9333
|
+
get: function () {
|
|
9334
|
+
var cookies = document.cookie.split(';');
|
|
9335
|
+
var cookie = {};
|
|
9336
|
+
for (var i = 0; i < cookies.length; i++) {
|
|
9337
|
+
var hash = (cookies[i].split('='));
|
|
9338
|
+
var _key = hash[0].toString().replace(" ", "");
|
|
9339
|
+
cookie[_key] = hash[1];
|
|
9340
|
+
}
|
|
9341
|
+
return cookie;
|
|
9342
|
+
},
|
|
9343
|
+
enumerable: false,
|
|
9344
|
+
configurable: true
|
|
9345
|
+
});
|
|
9346
|
+
return EntityDynamicFieldComponent;
|
|
9347
|
+
}());
|
|
9348
|
+
EntityDynamicFieldComponent.decorators = [
|
|
9349
|
+
{ type: i0.Component, args: [{
|
|
9350
|
+
selector: 'app-entity-dynamic-field',
|
|
9351
|
+
template: "<ng-container *ngIf=\"fieldsList.length != 0\">\r\n <div class=\"d-block field position-relative \" [ngClass]=\"{'dynamic-view':(Type=='View'|| Type=='Details'),'lang_Arabic': globalService.CurrentLanguage=='Ar'}\"\r\n *ngFor=\"let item of fieldsList; let fieldIndex = index\">\r\n <!-- textarea, image, file -->\r\n\r\n <ng-container *ngIf=\"Type !='Details' else elseTemplate\" [formGroup]=\"pageForm.form\">\r\n <ng-container\r\n *ngIf=\"(item.DataType == 10 || item.DataType == 7 || item.DataType == 8 || item.DataType == 11 || item.DataType == _dataType.HtmlEditor || item.DataType == _dataType.List) else thenBlack\">\r\n <ng-container>\r\n <!-- *ngIf=\"item.IsVisible\" -->\r\n <!-- Drop Down -->\r\n <div class=\"form-group\" *ngIf=\"item.DataType == 8\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly,field_readonly:item.IsInactive}\">\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12 col-lg-4 col-md-3 padding-0\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\">\r\n <!-- {{item.Label || item.Description }} -->\r\n\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n\r\n <span class=\"red required-custom\" *ngIf=\"item.IsMandatory || pageForm.form.get(item.Description)?.errors\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\">\r\n <!-- <ng-select [id]=\"item.Description\" (click)=\"loadDropdown(item)\"\r\n [items]=\"dropDown$[item.Description] | async\" [formControlName]=\"item.Description\"\r\n bindLabel=\"Description\" bindValue=\"Id\" (change)=\"changeFiledValue($event,item)\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\">\r\n </ng-select> -->\r\n\r\n <div class=\"position-relative\" style=\"position: relative;\">\r\n\r\n <div class=\"control-input\">\r\n <!-- {{item.showSelectedValues|translate}} -->\r\n <label class=\"form-control\" style=\"padding: 0px 2px;margin: 0px;\" [ngClass]=\"{'border-red': item.IsMandatory && !(pageForm.form.value[item.Description]) }\" (click)=\"showTable(item)\">\r\n {{item.showSelectedValues? (item.showSelectedValues ): pageForm.form.value[item.Description]}}\r\n </label>\r\n <input [id]=\"item.Description\" autocomplete=\"off\" [placeholder]=\"globalService.CurrentLanguage=='Ar'?(item.DescriptionAr ?item.DescriptionAr : (item.Description | translate)) :item.Description\" type=\"hidden\"\r\n [name]=\"item.Description\" [formControlName]=\"item.Description\"\r\n (click)=\"item.showTable =!item.showTable;loadDropdownColumn(item)\" class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\"\r\n (keyup)=\"changeFiledValue($event,item)\" readonly />\r\n </div>\r\n\r\n\r\n\r\n <div class=\"control-table autoComplete_dropdown\" *ngIf=\"item.showTable\" [ngClass]=\"{'d-none':item.IsInactive}\">\r\n\r\n <span class=\"close pull-right\" (click)=\"item.showTable =!item.showTable;\">x</span>\r\n\r\n <div class=\"control-table-search m-b-10 m-r-30\" style=\"position: relative;\">\r\n <input type=\"text\" [(ngModel)]=\"item.AutoSearchText\" [ngModelOptions]=\"{standalone: true}\"\r\n placeholder=\"{{'Search And Press Enter to Get Data'|translate}}....\" (keydown)=\"autoSearchDropdown($event,item)\" />\r\n <i class=\"la la-search\"\r\n style=\"position: absolute;\r\n top: 4px;\r\n right: 5px;\r\n color: #ddd;\r\n font-size: 18px; \"\r\n (click)=\"loadDropdown(item)\"></i>\r\n <small class=\"red\">{{'Search And Press Enter to Get Data'|translate}}</small>\r\n <!-- <button class=\"btn-outline-secondary table_buttons\" >\r\n <i class=\"la la-search\"></i>\r\n </button> -->\r\n </div>\r\n <table class=\"table table-bordered table-striped table-hover\">\r\n <thead>\r\n <tr>\r\n <td style=\"width: 30px;\"></td>\r\n <td *ngFor=\"let col of dropDownColumn$[item.Description]| Unique\">\r\n {{col|translate}}\r\n </td>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr\r\n *ngFor=\"let val of (dropDown$[item.Description] | async | filter:item.AutoSearchText) | paginate: {itemsPerPage:defineItemsPerPage, currentPage:pageStartFrom} \">\r\n <td style=\"width: 30px;\">\r\n <span (click)=\"item.showTable =!item.showTable;selectDropDownRow(val,item)\">\r\n <input class=\"themecolor\" name=\"{{item.Description}}\" type=\"radio\">\r\n </span>\r\n </td>\r\n <ng-container *ngFor=\"let col of dropDownColumn$[item.Description]| Unique\">\r\n <td> {{val[col]}} </td>\r\n </ng-container>\r\n\r\n </tr>\r\n </tbody>\r\n\r\n\r\n </table>\r\n\r\n <ng-container *ngIf=\"(dropDown$[item.Description]| async) as list\">\r\n\r\n <div class=\"bootom-pagenations whole row m-0\" *ngIf=\"list && list.length > 10\"> \r\n\r\n <pagination-controls class=\"inline-block pull-left col padding-0\" style=\"max-width: 100%;\" (pageChange)=\"pageStartFrom = $event\">\r\n </pagination-controls>\r\n\r\n <div class=\"inline-block page-style pull-right col padding-0\" style=\"max-width: 50px;\">\r\n <!-- <label class=\"pageLabel\">{{'Page Size'|translate}}: </label> -->\r\n <select class=\"form-control form-control-sm pageSize inline-block m-0\" style=\"width: 50px;\"\r\n [(ngModel)]=\"defineItemsPerPage\" [ngModelOptions]=\"{standalone: true}\" (change)=\"defineRecordCount($event)\">\r\n <option value=\"10\">10</option>\r\n <option value=\"15\">15</option>\r\n <option value=\"20\">20</option>\r\n <option value=\"25\">25</option>\r\n </select>\r\n </div>\r\n\r\n </div>\r\n </ng-container>\r\n </div>\r\n\r\n </div>\r\n\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n\r\n\r\n\r\n\r\n </div>\r\n\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,field_readonly:item.IsInactive}\">\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12 col-md-3 col-lg-4 padding-0\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\" (click)=\"showShortKey(item)\">\r\n <!-- {{item.Label || item.Description }} -->\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n <span class=\"red required-custom\" *ngIf=\"item.IsMandatory || pageForm.form.get(item.Description)?.errors\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\">\r\n <textarea class=\"dy-text-area\" rows=\"4\" [id]=\"item.Description\" [name]=\"item.Description\"\r\n [formControlName]=\"item.Description\" class=\"form-control\" [placeholder]=\"globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label\"\r\n (click)=\"activeInputId = item.Description\" (keyup)=\"changeFiledValue($event,item)\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\"></textarea>\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n\r\n\r\n <div class=\"canned-response\" *ngIf=\"item.DataType ==10\">\r\n\r\n <button type=\"button\" (click)=\"showshortcode =!showshortcode; getShortCodeCannedResponse()\"\r\n class=\"btn-outline-success badge bg-white\">\r\n <i class=\"la la-envelope-open-text themecolor\" style=\"font-size: 25px;\"></i> </button>\r\n <ul role=\"menu\" class=\"dropdown-menu show\" *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\r\n </div>\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n\r\n <!-- Image -->\r\n <div class=\"form-group\" *ngIf=\"item.DataType == 7\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly,field_readonly:item.IsInactive}\">\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12 col-lg-4 col-md-3 padding-0\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\">\r\n <!-- {{item.Label || item.Description }} -->\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n <span class=\"red required-custom\" *ngIf=\"item.IsMandatory || pageForm.form.get(item.Description)?.errors\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\">\r\n <input autocomplete=\"off\" [placeholder]=\"globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label\" type=\"file\" [id]=\"item.Description\"\r\n [name]=\"item.Description\" [formControlName]=\"item.Description\" class=\"form-control\"\r\n (click)=\"activeInputId = item.Description\" (change)=\"changeFile($event,item)\"\r\n accept=\"image/x-png,image/gif,image/jpeg\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\" />\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- file -->\r\n <div class=\"form-group\" *ngIf=\"item.DataType == 11\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly,field_readonly:item.IsInactive}\">\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12 col-lg-4 col-md-3 padding-0\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\">\r\n <!-- {{item.Label || item.Description }} -->\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n <span class=\"red required-custom\" *ngIf=\"item.IsMandatory || pageForm.form.get(item.Description)?.errors\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\">\r\n <input [id]=\"item.Description\" autocomplete=\"off\"\r\n style=\"width: calc(100% - 30px); display: inline-block; margin: 00 5px 0 0;\"\r\n [placeholder]=\"globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label\" type=\"file\" (change)=\"changeFile($event,item)\" [name]=\"item.Description\"\r\n [formControlName]=\"item.Description\" (click)=\"activeInputId = item.Description\" class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\" />\r\n\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"form-group\" *ngIf=\"item.DataType == _dataType.List\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\">\r\n \r\n <div class=\"row\">\r\n \r\n <div class=\"col text-right\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\">\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n <span class=\"red required-custom\" *ngIf=\"item.IsMandatory || pageForm.form.get(item.Description)?.errors\">*</span>\r\n <span class=\"padding-left-10\">\r\n <i (click)=\"addnewList(item)\" class=\"themeprimary la la-plus bold fs-15\"></i>\r\n </span>\r\n </label>\r\n </div>\r\n <div class=\"col control-input\">\r\n \r\n <div class=\"form-group\" *ngFor=\"let _list of FiedlListData$[item.Description]; let i = index\">\r\n <div class=\"row\">\r\n <span class=\"col-sm-3\">\r\n <input class=\"form-control\" type=\"text\" placeholder=\"key\" [(ngModel)]=\"_list.key\" [ngModelOptions]=\"{standalone: true}\" (keyup)=\"changeFiledList(item,_list,i)\" >\r\n </span>\r\n <span class=\"col-sm-1 no-padding\" style=\"width: auto;\">=</span>\r\n <span class=\"col-sm-3\">\r\n <input class=\"form-control\" type=\"text\" placeholder=\"value\" [(ngModel)]=\"_list.value\" [ngModelOptions]=\"{standalone: true}\" (keyup)=\"changeFiledList(item,_list,i)\" >\r\n </span>\r\n <span class=\"col-sm-1 no-padding\" (click)=\"removeList(item,i)\" style=\"width: auto;\">\r\n <i class=\"la la-times themeprimary\"></i>\r\n </span>\r\n \r\n </div>\r\n </div>\r\n \r\n \r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n </div>\r\n \r\n \r\n </div>\r\n \r\n </div>\r\n\r\n\r\n <div class=\"form-group\" *ngIf=\"item.DataType == _dataType.HtmlEditor\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly,field_readonly:item.IsInactive}\">\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12 col-lg-4 col-md-3 padding-0\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\">\r\n <!-- {{item.Label || item.Description }} -->\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n <span class=\"red required-custom\" *ngIf=\"item.IsMandatory || pageForm.form.get(item.Description)?.errors\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\">\r\n <angular-editor [id]=\"item.Description\" class=\"mail_editor\" [formControlName]=\"item.Description\"\r\n (keyup)=\"changeFiledValue($event,item)\" (click)=\"activeInputId = item.Description\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\"></angular-editor>\r\n\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\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\" *ngIf=\"!item.IsTableField\" [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly,field_readonly:item.IsInactive}\">\r\n <!-- *ngIf=\"item.IsVisible\" -->\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12 col-lg-4 col-md-3 padding-0\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\">\r\n <!-- {{item.Label }} -->\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n <span class=\"red required-custom\" *ngIf=\"item.IsMandatory || pageForm.form.get(item.Description)?.errors\">*</span>\r\n </label>\r\n </div>\r\n <!-- string, int, decimal, time, checkbox, image -->\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\"\r\n *ngIf=\"item.DataType == 1 || item.DataType == 2 || item.DataType == 5 || item.DataType == 6\">\r\n\r\n \r\n <ng-container *ngIf=\"item.IsTableField; else elseTemplate\">\r\n \r\n <label class=\"form-control field_muted\" style=\"padding-right: 0px;\">\r\n {{pageForm.form.value[item.Description]}}\r\n </label>\r\n\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <input [id]=\"item.Description\" autocomplete=\"off\"\r\n [placeholder]=\"globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label\"\r\n [type]=\"getType(item.DataType)\" [name]=\"item.Description\" [formControlName]=\"item.Description\"\r\n (click)=\"activeInputId = item.Description\" class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\"\r\n (keyup)=\"changeFiledValue($event,item)\" />\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n </ng-template>\r\n </div>\r\n <!-- checkbox -->\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\" *ngIf=\"item.DataType == 9\">\r\n <input [id]=\"item.Description\" autocomplete=\"off\" type=\"checkbox\" [formControlName]=\"item.Description\" style=\"margin-top: 7px;margin-bottom: 8px;\"\r\n class=\"form-control\" [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\"\r\n (change)=\"changeFiledValue($event,item)\" />\r\n\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n </div>\r\n\r\n\r\n <!-- date && date-time -->\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0 date_pick\" *ngIf=\"item.DataType == 3 || item.DataType == 4\">\r\n <input [id]=\"item.Description\" type=\"text\" [matDatepicker]=\"myDatepicker\" [placeholder]=\"globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label\"\r\n [name]=\"item.Description\" [formControlName]=\"item.Description\"\r\n (click)=\"activeInputId = item.Description\" class=\"form-control\" (dateChange)=\"changeFiledValue($event,item)\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\" />\r\n <div class=\"datepickerstyle\">\r\n <mat-datepicker-toggle [for]=\"myDatepicker\"></mat-datepicker-toggle>\r\n <mat-datepicker #myDatepicker></mat-datepicker>\r\n </div>\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n\r\n <div class=\" row\" *ngIf=\"!item.IsUiField\" >\r\n <label class=\"col col-sm-12 col-lg-4 col-md-3 padding-0\">\r\n <!-- {{item.Label }} -->\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n </label>\r\n <span class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\">: \r\n\r\n <ng-container *ngIf=\"item && item.Description\" [ngSwitch]=\"item.DataType\">\r\n <span *ngSwitchCase=\"_dataType.date\" class=\"tooltiptexts\">\r\n {{PageGroupValues[item.Description] | date :'dd/MM/yyyy'}}\r\n </span>\r\n\r\n <span *ngSwitchCase=\"_dataType.dateTime\" class=\"tooltiptexts\">\r\n {{PageGroupValues[item.Description] | date :'dd/MM/yyyy h:mm a'}}\r\n </span>\r\n\r\n <span *ngSwitchCase=\"_dataType.bool\">\r\n {{(PageGroupValues[item.Description] ==true ? 'Yes' : 'No') | translate }}\r\n </span>\r\n\r\n <span *ngSwitchCase=\"_dataType.dropdown\">\r\n {{ globalService.CurrentLanguage=='Ar'?(PageGroupValues[item.Description+\"_DescAr\"] ? PageGroupValues[item.Description+\"_DescAr\"] : PageGroupValues[item.Description])\r\n :(PageGroupValues[item.Description+\"_Desc\"] ? PageGroupValues[item.Description+\"_Desc\"] : PageGroupValues[item.Description]) }}\r\n </span>\r\n <span *ngSwitchCase=\"_dataType.LookUp\">\r\n <ng-container *ngIf=\"item.LookupData; else elseLookupTemplate\">\r\n {{PageGroupValues[getFiledKey(item.Description,item.LookupData)] }}\r\n </ng-container>\r\n <ng-template #elseLookupTemplate>\r\n {{ globalService.CurrentLanguage=='Ar'?(PageGroupValues[item.Description+\"_DescAr\"] ? PageGroupValues[item.Description+\"_DescAr\"] : PageGroupValues[item.Description])\r\n :(PageGroupValues[item.Description+\"_Desc\"] ? PageGroupValues[item.Description+\"_Desc\"] : PageGroupValues[item.Description]) }}\r\n </ng-template>\r\n </span>\r\n\r\n\r\n <div *ngSwitchCase=\"_dataType.HtmlEditor\" [innerHTML]=\"PageGroupValues[item.Description]\">\r\n </div>\r\n\r\n\r\n <span *ngSwitchDefault>\r\n {{ globalService.CurrentLanguage=='Ar'?(PageGroupValues[item.Description+\"_DescAr\"] ? PageGroupValues[item.Description+\"_DescAr\"] : PageGroupValues[item.Description])\r\n :(PageGroupValues[item.Description+\"_Desc\"] ? PageGroupValues[item.Description+\"_Desc\"] : PageGroupValues[item.Description]) }}\r\n \r\n </span>\r\n </ng-container>\r\n </span>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-container *ngIf=\"Type !='Details' && ActionType != '1' && ActionType != '2'\">\r\n <div class=\"settings position-absolute\">\r\n <i (click)=\"_deleteField(fieldIndex)\" class=\"la la-trash-o\"></i>\r\n <i (click)=\"_downField(fieldIndex)\" class=\"la la-arrow-down\"></i>\r\n <i (click)=\"_upField(fieldIndex)\" class=\"la la-arrow-up\"></i>\r\n </div>\r\n </ng-container>\r\n\r\n </div>\r\n</ng-container>\r\n",
|
|
9352
|
+
styles: [".field .settings{display:none;top:0;right:0;z-index:1;margin:auto 10px;cursor:pointer;padding:5px;-webkit-animation-name:fadeIn;animation-name:fadeIn;-webkit-animation-timing-function:ease;animation-timing-function:ease;-webkit-animation-duration:.3s;animation-duration:.3s}.field:hover .settings{display:block}.field .settings>i{padding:6px}.field .settings>i:hover{background:hsla(0,0%,50.2%,.198)}.field.dynamic-view .settings,.field.dynamic-view:hover .settings{display:none}.field .form-group .row>.col:first-child,.field .row>.col:first-child{max-width:180px}.req_page.lang_Arabic .field .row>.col:first-child{text-align:right!important}.field .form-group .row>.col{padding:0}.field .form-group .row>.col .control-label{font-size:13px}.field .form-group .row>.col.control-input .form-control{height:30px;padding:4px;font-size:13px}.control-table{background:#fff;border:2px solid #ddd;padding:5px;position:absolute;border-radius:5px;box-shadow:3px 6px 10px 7px rgba(0,0,0,.1);min-width:350px;box-shadow:1px;z-index:1}.control-table .control-table-search input{width:100%;border:1px solid #ddd;height:25px;padding:5px}.canned-response{position:absolute;right:10px;bottom:0;display:none}.canned-response .badge{border-radius:100px;height:41px;box-shadow:0 0 13px -5px rgba(0,0,0,.68)}.canned-response .badge:focus{outline:none}.hide{display:none!important}.datepickerstyle{float:left;right:-1px;position:absolute;top:-5px;box-shadow:none}.field_muted{background-color:#f5f5f5}.form-group .control-input input[type=checkbox]{height:15px!important;width:15px!important}"]
|
|
9353
|
+
},] }
|
|
9354
|
+
];
|
|
9355
|
+
EntityDynamicFieldComponent.ctorParameters = function () { return [
|
|
9356
|
+
{ type: EntityTypeSetupService },
|
|
9357
|
+
{ type: GlobalService }
|
|
9358
|
+
]; };
|
|
9359
|
+
EntityDynamicFieldComponent.propDecorators = {
|
|
9360
|
+
RequestorField: [{ type: i0.Input }],
|
|
9361
|
+
RequestorFieldValue: [{ type: i0.Input }],
|
|
9362
|
+
ParameterData: [{ type: i0.Input }],
|
|
9363
|
+
fieldsList: [{ type: i0.Input }],
|
|
9364
|
+
dynamicFormGroup: [{ type: i0.Input }],
|
|
9365
|
+
pageForm: [{ type: i0.Input }],
|
|
9366
|
+
PageGroupValues: [{ type: i0.Input }],
|
|
9367
|
+
submitted: [{ type: i0.Input }],
|
|
9368
|
+
Type: [{ type: i0.Input }],
|
|
9369
|
+
rowIndex: [{ type: i0.Input }],
|
|
9370
|
+
groupIndex: [{ type: i0.Input }],
|
|
9371
|
+
ActionType: [{ type: i0.Input }],
|
|
9372
|
+
EntityType: [{ type: i0.Input }],
|
|
9373
|
+
FieldChangeEvent: [{ type: i0.Output }],
|
|
9374
|
+
deleteField: [{ type: i0.Output }],
|
|
9375
|
+
downField: [{ type: i0.Output }],
|
|
9376
|
+
upField: [{ type: i0.Output }]
|
|
9377
|
+
};
|
|
9378
|
+
|
|
9379
|
+
var PageDetailsRow = /** @class */ (function () {
|
|
9380
|
+
function PageDetailsRow() {
|
|
9381
|
+
this.ID = "1";
|
|
9382
|
+
this.Groups = [];
|
|
9383
|
+
this.Width = 100;
|
|
9384
|
+
this.Height = 100;
|
|
9385
|
+
}
|
|
9386
|
+
return PageDetailsRow;
|
|
9387
|
+
}());
|
|
9388
|
+
var PageGroup = /** @class */ (function () {
|
|
9389
|
+
function PageGroup() {
|
|
9390
|
+
this.ID = "1";
|
|
9391
|
+
this.Width = 33;
|
|
9392
|
+
this.Height = 100;
|
|
9393
|
+
this.Class = "";
|
|
9394
|
+
this.Name = "";
|
|
9395
|
+
this.ViewType = ePageViewType.View;
|
|
9396
|
+
this.Direction = ePageDetailDirection.Vertical;
|
|
9397
|
+
this.Alignment = ePageDetailAlignment.left;
|
|
9398
|
+
this.Fields = [];
|
|
9399
|
+
this.Groups = []; // need to remove group it is worngin implementaion ag
|
|
9400
|
+
}
|
|
9401
|
+
return PageGroup;
|
|
9402
|
+
}());
|
|
9403
|
+
var ePageViewType;
|
|
9404
|
+
(function (ePageViewType) {
|
|
9405
|
+
ePageViewType[ePageViewType["View"] = 1] = "View";
|
|
9406
|
+
ePageViewType[ePageViewType["Edit"] = 2] = "Edit";
|
|
9407
|
+
ePageViewType[ePageViewType["ViewAndEdit"] = 3] = "ViewAndEdit";
|
|
9408
|
+
})(ePageViewType || (ePageViewType = {}));
|
|
9409
|
+
var ePageDetailAlignment;
|
|
9410
|
+
(function (ePageDetailAlignment) {
|
|
9411
|
+
ePageDetailAlignment[ePageDetailAlignment["left"] = 1] = "left";
|
|
9412
|
+
ePageDetailAlignment[ePageDetailAlignment["center"] = 2] = "center";
|
|
9413
|
+
ePageDetailAlignment[ePageDetailAlignment["right"] = 3] = "right";
|
|
9414
|
+
})(ePageDetailAlignment || (ePageDetailAlignment = {}));
|
|
9415
|
+
var ePageDetailDirection;
|
|
9416
|
+
(function (ePageDetailDirection) {
|
|
9417
|
+
ePageDetailDirection[ePageDetailDirection["Vertical"] = 1] = "Vertical";
|
|
9418
|
+
ePageDetailDirection[ePageDetailDirection["Horizontal"] = 2] = "Horizontal";
|
|
9419
|
+
})(ePageDetailDirection || (ePageDetailDirection = {}));
|
|
9420
|
+
|
|
9421
|
+
var DynamicDetailsViewComponent = /** @class */ (function () {
|
|
9422
|
+
function DynamicDetailsViewComponent(entityTypeSetup, router, fb, route) {
|
|
9423
|
+
this.entityTypeSetup = entityTypeSetup;
|
|
9424
|
+
this.router = router;
|
|
9425
|
+
this.fb = fb;
|
|
9426
|
+
this.route = route;
|
|
9427
|
+
this.ViewType = '';
|
|
9428
|
+
this.pageGroups = [];
|
|
9429
|
+
this.defaultPageGroups = [];
|
|
9430
|
+
this.PageGroupValues = {};
|
|
9431
|
+
this.EntityFieldList = [];
|
|
9432
|
+
this._PageForm = new PageForm(new forms.FormGroup({}));
|
|
9433
|
+
this.dropDown$ = Object.assign({});
|
|
9434
|
+
this.SelectedFiles = null;
|
|
9435
|
+
this.selectedFileItem = null;
|
|
9436
|
+
/* #region DataFIleds */
|
|
9437
|
+
this.showDataFiledPopup = false;
|
|
9438
|
+
/* #endregion */
|
|
9439
|
+
/* #region DynamicViewPopup */
|
|
9440
|
+
this.showDynamicViewPopup = false;
|
|
9441
|
+
}
|
|
9442
|
+
DynamicDetailsViewComponent.prototype.ngOnInit = function () {
|
|
9443
|
+
var _this = this;
|
|
9444
|
+
this.route.paramMap.subscribe(function (res) {
|
|
9445
|
+
// this.EntityTypeId = Number(res.get('EntityType') || "");
|
|
9446
|
+
// this.EntityFormId = Number(res.get('EntityForm') || "");
|
|
9447
|
+
if (_this.EntityTypeId && _this.ViewType != 'Details') {
|
|
9448
|
+
// this.getEntityTypeDetails()
|
|
9449
|
+
_this.getFieldListByEntityType();
|
|
9450
|
+
// this.dynamicFormGroup = this.getFieldFormGroup();
|
|
9451
|
+
_this.buildReactiveForm();
|
|
9452
|
+
}
|
|
9453
|
+
});
|
|
9454
|
+
if (this.EntityFormId) {
|
|
9455
|
+
this.getEntityForm();
|
|
9456
|
+
}
|
|
9457
|
+
};
|
|
9458
|
+
DynamicDetailsViewComponent.prototype.getEntityTypeDetails = function () {
|
|
9459
|
+
var _this = this;
|
|
9460
|
+
this.entityTypeSetup
|
|
9461
|
+
.getSingleEntityTypeSetupById(this.EntityTypeId)
|
|
9462
|
+
.subscribe(function (res) {
|
|
9463
|
+
_this.EntityTypeDetail = res;
|
|
9464
|
+
}, function (error) {
|
|
9465
|
+
console.log(error);
|
|
9466
|
+
});
|
|
9467
|
+
};
|
|
9468
|
+
DynamicDetailsViewComponent.prototype.saveDesignForm = function () {
|
|
9469
|
+
var _this = this;
|
|
9470
|
+
var pagedesign = JSON.stringify(this.pageGroups);
|
|
9471
|
+
// this.EntityTypeForm.FormData = pagedesign;
|
|
9472
|
+
var data = {
|
|
9473
|
+
RecId: this.EntityTypeForm.RecId,
|
|
9474
|
+
EntityTypeId: this.EntityTypeForm.EntityTypeRecId,
|
|
9475
|
+
FieldId: this.EntityTypeForm.FieldId,
|
|
9476
|
+
FieldControlType: this.EntityTypeForm.FieldControlType,
|
|
9477
|
+
DataSourceLink: this.EntityTypeForm.DataSourceLink,
|
|
9478
|
+
CascadeFieldId: this.EntityTypeForm.CascadeFieldId,
|
|
9479
|
+
IsVisible: this.EntityTypeForm.IsVisible,
|
|
9480
|
+
OrderId: this.EntityTypeForm.OrderId,
|
|
9481
|
+
FormType: this.EntityTypeForm.FormType,
|
|
9482
|
+
FormData: pagedesign,
|
|
9483
|
+
};
|
|
9484
|
+
this.entityTypeSetup.putEntityTypeForm(data).subscribe(function (res) {
|
|
9485
|
+
_this.getEntityForm();
|
|
9486
|
+
});
|
|
9487
|
+
};
|
|
9488
|
+
DynamicDetailsViewComponent.prototype.getFieldListByEntityType = function () {
|
|
9489
|
+
var _this = this;
|
|
9490
|
+
this.entityTypeSetup
|
|
9491
|
+
.getAllEntityTypeField(null, this.EntityTypeId)
|
|
9492
|
+
.subscribe(function (res) {
|
|
9493
|
+
_this.EntityFieldList = res.Data;
|
|
9494
|
+
// this.dynamicFormGroup = this.getFieldFormGroup();
|
|
9495
|
+
// this._PageForm.form = this.getFieldFormGroup();
|
|
9496
|
+
}, function (error) {
|
|
9497
|
+
console.log(error);
|
|
9498
|
+
});
|
|
9499
|
+
};
|
|
9500
|
+
DynamicDetailsViewComponent.prototype.getEntityForm = function () {
|
|
9501
|
+
var _this = this;
|
|
9502
|
+
this.entityTypeSetup
|
|
9503
|
+
.getSingleEntityTypeFormById(this.EntityFormId)
|
|
9504
|
+
.subscribe(function (res) {
|
|
9505
|
+
_this.EntityTypeForm = res;
|
|
9506
|
+
if (_this.EntityTypeForm.FormData) {
|
|
9507
|
+
var _FormData = JSON.parse(_this.EntityTypeForm.FormData);
|
|
9508
|
+
if (_FormData.PageGroup)
|
|
9509
|
+
_this.pageGroups = _FormData.PageGroup;
|
|
9510
|
+
// if (_FormData.defaultPageGroups) {
|
|
9511
|
+
// if (Array.isArray(_FormData.defaultPageGroups)) {
|
|
9512
|
+
// this.defaultPageGroups = _FormData.defaultPageGroups;
|
|
9513
|
+
// }
|
|
9514
|
+
// }
|
|
9515
|
+
if (_FormData.defaultPageGroups)
|
|
9516
|
+
_this.getAllDefaultEntityTypeForm(_FormData.defaultPageGroups);
|
|
9517
|
+
else
|
|
9518
|
+
_this.defaultPageGroups = [];
|
|
9519
|
+
if (_this.ViewType != 'Details') {
|
|
9520
|
+
if (_FormData.PageGroupValues)
|
|
9521
|
+
_this.PageGroupValues = _FormData.PageGroupValues;
|
|
9522
|
+
else
|
|
9523
|
+
_this.PageGroupValues = {};
|
|
9524
|
+
_this.buildReactiveForm();
|
|
9525
|
+
}
|
|
9526
|
+
}
|
|
9527
|
+
}, function (error) {
|
|
9528
|
+
console.log(error);
|
|
9529
|
+
});
|
|
9530
|
+
};
|
|
9531
|
+
DynamicDetailsViewComponent.prototype.addRow = function () {
|
|
9532
|
+
this.pageGroups.push(new PageDetailsRow());
|
|
9533
|
+
var row = this.pageGroups[this.pageGroups.length - 1];
|
|
9534
|
+
this.addGroup(row);
|
|
9535
|
+
};
|
|
9536
|
+
DynamicDetailsViewComponent.prototype.addGroup = function (row) {
|
|
9537
|
+
var group = new PageGroup();
|
|
9538
|
+
row.Groups.push(group);
|
|
9539
|
+
this.buildReactiveForm();
|
|
9540
|
+
this.setGroupWidth(row);
|
|
9541
|
+
};
|
|
9542
|
+
DynamicDetailsViewComponent.prototype.setGroupWidth = function (row) {
|
|
9543
|
+
for (var index = 0; index < row.Groups.length; index++) {
|
|
9544
|
+
var Width = 100 / row.Groups.length;
|
|
9545
|
+
row.Groups[index].Width = Width;
|
|
9546
|
+
row.Groups[index].Height = Width;
|
|
9547
|
+
}
|
|
9548
|
+
};
|
|
9549
|
+
DynamicDetailsViewComponent.prototype.getFieldFormGroup = function () {
|
|
9550
|
+
var e_1, _a;
|
|
9551
|
+
this.generateDropDownFields();
|
|
9552
|
+
if (this.EntityFieldList.length == 0)
|
|
9553
|
+
return this.fb.group({});
|
|
9554
|
+
var dynamicFormGroup = this.fb.group({});
|
|
9555
|
+
try {
|
|
9556
|
+
for (var _b = __values(this.EntityFieldList), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
9557
|
+
var iterator = _c.value;
|
|
9558
|
+
if (iterator.IsMandatory && iterator.DataType != E_DataType.file)
|
|
9559
|
+
dynamicFormGroup.addControl(iterator.Description, this.fb.control('', forms.Validators.required));
|
|
9560
|
+
else
|
|
9561
|
+
dynamicFormGroup.addControl(iterator.Description, this.fb.control(''));
|
|
9562
|
+
}
|
|
9563
|
+
}
|
|
9564
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
9565
|
+
finally {
|
|
9566
|
+
try {
|
|
9567
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
9568
|
+
}
|
|
9569
|
+
finally { if (e_1) throw e_1.error; }
|
|
9570
|
+
}
|
|
9571
|
+
return dynamicFormGroup;
|
|
9572
|
+
};
|
|
9573
|
+
DynamicDetailsViewComponent.prototype.generateDropDownFields = function () {
|
|
9574
|
+
var e_2, _a;
|
|
9575
|
+
var _this = this;
|
|
9576
|
+
var _loop_1 = function (iterator) {
|
|
9577
|
+
if (iterator.DataType == E_DataType.dropdown) {
|
|
9578
|
+
this_1.dropDown$[iterator.Description] = new rxjs.Observable(function (obx) {
|
|
9579
|
+
if (iterator.FieldData) {
|
|
9580
|
+
var jsonItem = JSON.parse(iterator.FieldData);
|
|
9581
|
+
if (jsonItem.isDynamic && jsonItem.api && jsonItem.api.url) {
|
|
9582
|
+
var url = jsonItem.api.url;
|
|
9583
|
+
_this.entityTypeSetup.getDyamicUrl(url).subscribe(function (res) {
|
|
9584
|
+
if (res && Array.isArray(res) && res.length > 0) {
|
|
9585
|
+
obx.next(res.map(function (x) { return Object.assign({
|
|
9586
|
+
Id: x[jsonItem.api.valueField],
|
|
9587
|
+
Description: x[jsonItem.api.textField],
|
|
9588
|
+
}); }));
|
|
9589
|
+
}
|
|
9590
|
+
else if (Object.keys(res).length > 0 &&
|
|
9591
|
+
Object.keys(res).includes('List')) {
|
|
9592
|
+
obx.next(res['List'].map(function (x) { return Object.assign({
|
|
9593
|
+
Id: x[jsonItem.api.valueField],
|
|
9594
|
+
Description: x[jsonItem.api.textField],
|
|
9595
|
+
}); }));
|
|
9596
|
+
}
|
|
9597
|
+
else
|
|
9598
|
+
obx.next([]);
|
|
9599
|
+
});
|
|
9600
|
+
}
|
|
9601
|
+
else {
|
|
9602
|
+
if (jsonItem.options &&
|
|
9603
|
+
Array.isArray(jsonItem.options) &&
|
|
9604
|
+
jsonItem.options.length > 0) {
|
|
9605
|
+
obx.next(jsonItem.options.map(function (x) { return Object.assign({
|
|
9606
|
+
Id: x.value,
|
|
9607
|
+
Description: x.text,
|
|
9608
|
+
}); }));
|
|
9609
|
+
}
|
|
9610
|
+
else
|
|
9611
|
+
obx.next([]);
|
|
9612
|
+
}
|
|
9613
|
+
}
|
|
9614
|
+
});
|
|
9615
|
+
}
|
|
9616
|
+
};
|
|
9617
|
+
var this_1 = this;
|
|
9618
|
+
try {
|
|
9619
|
+
for (var _b = __values(this.EntityFieldList), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
9620
|
+
var iterator = _c.value;
|
|
9621
|
+
_loop_1(iterator);
|
|
9668
9622
|
}
|
|
9669
9623
|
}
|
|
9670
9624
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
9671
9625
|
finally {
|
|
9672
9626
|
try {
|
|
9673
|
-
if (
|
|
9627
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
9674
9628
|
}
|
|
9675
9629
|
finally { if (e_2) throw e_2.error; }
|
|
9676
9630
|
}
|
|
9677
9631
|
};
|
|
9678
|
-
|
|
9679
|
-
if (
|
|
9680
|
-
this.
|
|
9681
|
-
|
|
9682
|
-
|
|
9683
|
-
|
|
9684
|
-
|
|
9685
|
-
|
|
9686
|
-
|
|
9687
|
-
|
|
9632
|
+
DynamicDetailsViewComponent.prototype.validationError = function (name, errorName) {
|
|
9633
|
+
if (name && errorName)
|
|
9634
|
+
return this.dynamicFormGroup.get(name).errors[errorName] ? true : false;
|
|
9635
|
+
else
|
|
9636
|
+
return this.dynamicFormGroup.get(name).errors ? true : false;
|
|
9637
|
+
};
|
|
9638
|
+
DynamicDetailsViewComponent.prototype.getType = function (_dataType) {
|
|
9639
|
+
switch (_dataType) {
|
|
9640
|
+
case E_DataType.int:
|
|
9641
|
+
case E_DataType.decimal:
|
|
9642
|
+
return 'number';
|
|
9643
|
+
case E_DataType.date:
|
|
9644
|
+
return 'date';
|
|
9645
|
+
case E_DataType.dateTime:
|
|
9646
|
+
return 'datetime-local';
|
|
9647
|
+
case E_DataType.timespan:
|
|
9648
|
+
return 'time';
|
|
9649
|
+
case E_DataType.bool:
|
|
9650
|
+
return 'checkbox';
|
|
9651
|
+
case E_DataType.string:
|
|
9652
|
+
return 'text';
|
|
9653
|
+
case E_DataType.image:
|
|
9654
|
+
return 'file';
|
|
9655
|
+
default:
|
|
9656
|
+
return 'text';
|
|
9688
9657
|
}
|
|
9689
|
-
this.FiedlListData$[field.Description].push({ key: null, value: null });
|
|
9690
|
-
var _fieldVal = {};
|
|
9691
|
-
this.FiedlListData$[field.Description].forEach(function (x) { return _fieldVal[x.key] = x.value; });
|
|
9692
|
-
this.pageForm.form.get(field.Description).setValue(_fieldVal);
|
|
9693
|
-
this.changeFiledValue('', field);
|
|
9694
9658
|
};
|
|
9695
|
-
|
|
9696
|
-
// this.FiedlListData$[field.Description] = [];
|
|
9697
|
-
// let fieldVal = this.pageForm.form && this.pageForm.form.get(field.Description).value;
|
|
9698
|
-
// if (fieldVal) {
|
|
9699
|
-
// for (let key in fieldVal) {
|
|
9700
|
-
// let temp = { key: key, value: fieldVal[key] };
|
|
9701
|
-
// this.FiedlListData$[field.Description].push(temp);
|
|
9702
|
-
// }
|
|
9703
|
-
// }
|
|
9704
|
-
this.FiedlListData$[field.Description].splice(index, 1);
|
|
9705
|
-
var _fieldVal = {};
|
|
9706
|
-
this.FiedlListData$[field.Description].forEach(function (x) { return _fieldVal[x.key] = x.value; });
|
|
9707
|
-
this.pageForm.form.get(field.Description).setValue(_fieldVal);
|
|
9708
|
-
this.changeFiledValue('', field);
|
|
9659
|
+
DynamicDetailsViewComponent.prototype.changeTextEvent = function (event) {
|
|
9709
9660
|
};
|
|
9710
|
-
|
|
9711
|
-
|
|
9712
|
-
|
|
9713
|
-
// if (fieldVal) {
|
|
9714
|
-
// for (let key in fieldVal) {
|
|
9715
|
-
// let temp = { key: key, value: fieldVal[key] };
|
|
9716
|
-
// this.FiedlListData$[field.Description].push(temp);
|
|
9717
|
-
// }
|
|
9718
|
-
// }
|
|
9719
|
-
// this.FiedlListData$[field.Description][index]=item;
|
|
9720
|
-
var _fieldVal = {};
|
|
9721
|
-
this.FiedlListData$[field.Description].forEach(function (x) { return _fieldVal[x.key] = x.value; });
|
|
9722
|
-
this.pageForm.form.get(field.Description).setValue(_fieldVal);
|
|
9723
|
-
this.changeFiledValue('', field);
|
|
9661
|
+
DynamicDetailsViewComponent.prototype.changeFile = function (event, item) {
|
|
9662
|
+
this.selectedFileItem = item;
|
|
9663
|
+
this.SelectedFiles = event.target.files;
|
|
9724
9664
|
};
|
|
9725
|
-
|
|
9726
|
-
|
|
9727
|
-
|
|
9728
|
-
data.CurrentData = this;
|
|
9729
|
-
data.Local = localStorage;
|
|
9730
|
-
data.Cookies = this.Cookies;
|
|
9731
|
-
data.System = this.globalService.SystemConfigs;
|
|
9732
|
-
if (_code && data) {
|
|
9733
|
-
var template = handlebars.compile(_code);
|
|
9734
|
-
var result = template(data);
|
|
9735
|
-
return result;
|
|
9736
|
-
}
|
|
9737
|
-
else {
|
|
9738
|
-
return _code;
|
|
9739
|
-
}
|
|
9665
|
+
DynamicDetailsViewComponent.prototype.addNestedGroup = function (rowIndex, groupIndex) {
|
|
9666
|
+
this.selectRowIndex = rowIndex;
|
|
9667
|
+
this.selectGroupIndex = groupIndex;
|
|
9740
9668
|
};
|
|
9741
|
-
|
|
9742
|
-
|
|
9743
|
-
|
|
9744
|
-
|
|
9745
|
-
|
|
9746
|
-
|
|
9747
|
-
|
|
9748
|
-
|
|
9749
|
-
|
|
9750
|
-
|
|
9751
|
-
|
|
9752
|
-
|
|
9753
|
-
|
|
9754
|
-
|
|
9755
|
-
|
|
9756
|
-
|
|
9757
|
-
|
|
9758
|
-
|
|
9759
|
-
selector: 'app-entity-dynamic-field',
|
|
9760
|
-
template: "<ng-container *ngIf=\"fieldsList.length != 0\">\r\n <div class=\"d-block field position-relative \" [ngClass]=\"{'dynamic-view':(Type=='View'|| Type=='Details'),'lang_Arabic': globalService.CurrentLanguage=='Ar'}\"\r\n *ngFor=\"let item of fieldsList; let fieldIndex = index\">\r\n <!-- textarea, image, file -->\r\n\r\n <ng-container *ngIf=\"Type !='Details' else elseTemplate\" [formGroup]=\"pageForm.form\">\r\n <ng-container\r\n *ngIf=\"(item.DataType == 10 || item.DataType == 7 || item.DataType == 8 || item.DataType == 11 || item.DataType == _dataType.HtmlEditor || item.DataType == _dataType.List) else thenBlack\">\r\n <ng-container>\r\n <!-- *ngIf=\"item.IsVisible\" -->\r\n <!-- Drop Down -->\r\n <div class=\"form-group\" *ngIf=\"item.DataType == 8\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly,field_readonly:item.IsInactive}\">\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12 col-lg-4 col-md-3 padding-0\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\">\r\n <!-- {{item.Label || item.Description }} -->\r\n\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n\r\n <span class=\"red\" *ngIf=\"item.IsMandatory || pageForm.form.get(item.Description)?.errors\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\">\r\n <!-- <ng-select [id]=\"item.Description\" (click)=\"loadDropdown(item)\"\r\n [items]=\"dropDown$[item.Description] | async\" [formControlName]=\"item.Description\"\r\n bindLabel=\"Description\" bindValue=\"Id\" (change)=\"changeFiledValue($event,item)\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\">\r\n </ng-select> -->\r\n\r\n <div class=\"position-relative\" style=\"position: relative;\">\r\n\r\n <div class=\"control-input\">\r\n <!-- {{item.showSelectedValues|translate}} -->\r\n <label class=\"form-control\" [ngClass]=\"{'border-red': item.IsMandatory && !(pageForm.form.value[item.Description]) }\" (click)=\"showTable(item)\">\r\n {{item.showSelectedValues? (item.showSelectedValues ): pageForm.form.value[item.Description]}}\r\n </label>\r\n <input [id]=\"item.Description\" autocomplete=\"off\" [placeholder]=\"globalService.CurrentLanguage=='Ar'?(item.DescriptionAr ?item.DescriptionAr : (item.Description | translate)) :item.Description\" type=\"hidden\"\r\n [name]=\"item.Description\" [formControlName]=\"item.Description\"\r\n (click)=\"item.showTable =!item.showTable;loadDropdownColumn(item)\" class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\"\r\n (keyup)=\"changeFiledValue($event,item)\" readonly />\r\n </div>\r\n\r\n\r\n\r\n <div class=\"control-table autoComplete_dropdown\" *ngIf=\"item.showTable\" [ngClass]=\"{'d-none':item.IsInactive}\">\r\n\r\n <span class=\"close pull-right\" (click)=\"item.showTable =!item.showTable;\">x</span>\r\n\r\n <div class=\"control-table-search m-b-10 m-r-30\" style=\"position: relative;\">\r\n <input type=\"text\" [(ngModel)]=\"item.AutoSearchText\" [ngModelOptions]=\"{standalone: true}\"\r\n placeholder=\"{{'Search Here to Get Data'|translate}}....\" (keyup)=\"autoSearchDropdown($event,item)\" />\r\n <i class=\"la la-search\"\r\n style=\"position: absolute;\r\n top: 4px;\r\n right: 5px;\r\n color: #ddd;\r\n font-size: 18px; \"\r\n (click)=\"loadDropdown(item)\"></i>\r\n <!-- <button class=\"btn-outline-secondary table_buttons\" >\r\n <i class=\"la la-search\"></i>\r\n </button> -->\r\n </div>\r\n <table class=\"table table-bordered table-striped table-hover\">\r\n <thead>\r\n <tr>\r\n <td style=\"width: 30px;\"></td>\r\n <td *ngFor=\"let col of dropDownColumn$[item.Description]| Unique\">\r\n {{col|translate}}\r\n </td>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr\r\n *ngFor=\"let val of (dropDown$[item.Description] | async | filter:item.AutoSearchText) | paginate: {itemsPerPage:defineItemsPerPage, currentPage:pageStartFrom} \">\r\n <td style=\"width: 30px;\">\r\n <span (click)=\"item.showTable =!item.showTable;selectDropDownRow(val,item)\">\r\n <input class=\"themecolor\" name=\"{{item.Description}}\" type=\"radio\">\r\n </span>\r\n </td>\r\n <ng-container *ngFor=\"let col of dropDownColumn$[item.Description]| Unique\">\r\n <td> {{val[col]}} </td>\r\n </ng-container>\r\n\r\n </tr>\r\n </tbody>\r\n\r\n\r\n </table>\r\n\r\n <ng-container *ngIf=\"(dropDown$[item.Description]| async) as list\">\r\n\r\n <div class=\"bootom-pagenations whole row m-0\" *ngIf=\"list && list.length > 10\"> \r\n\r\n <pagination-controls class=\"inline-block pull-left col padding-0\" style=\"max-width: 100%;\" (pageChange)=\"pageStartFrom = $event\">\r\n </pagination-controls>\r\n\r\n <div class=\"inline-block page-style pull-right col padding-0\" style=\"max-width: 50px;\">\r\n <!-- <label class=\"pageLabel\">{{'Page Size'|translate}}: </label> -->\r\n <select class=\"form-control form-control-sm pageSize inline-block m-0\" style=\"width: 50px;\"\r\n [(ngModel)]=\"defineItemsPerPage\" [ngModelOptions]=\"{standalone: true}\" (change)=\"defineRecordCount($event)\">\r\n <option value=\"10\">10</option>\r\n <option value=\"15\">15</option>\r\n <option value=\"20\">20</option>\r\n <option value=\"25\">25</option>\r\n </select>\r\n </div>\r\n\r\n </div>\r\n </ng-container>\r\n </div>\r\n\r\n </div>\r\n\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n\r\n\r\n\r\n\r\n </div>\r\n\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,field_readonly:item.IsInactive}\">\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12 col-md-3 col-lg-4 padding-0\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\" (click)=\"showShortKey(item)\">\r\n <!-- {{item.Label || item.Description }} -->\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory || pageForm.form.get(item.Description)?.errors\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\">\r\n <textarea class=\"dy-text-area\" rows=\"4\" [id]=\"item.Description\" [name]=\"item.Description\"\r\n [formControlName]=\"item.Description\" class=\"form-control\" [placeholder]=\"globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label\"\r\n (click)=\"activeInputId = item.Description\" (keyup)=\"changeFiledValue($event,item)\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\"></textarea>\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n\r\n\r\n <div class=\"canned-response\" *ngIf=\"item.DataType ==10\">\r\n\r\n <button type=\"button\" (click)=\"showshortcode =!showshortcode; getShortCodeCannedResponse()\"\r\n class=\"btn-outline-success badge bg-white\">\r\n <i class=\"la la-envelope-open-text themecolor\" style=\"font-size: 25px;\"></i> </button>\r\n <ul role=\"menu\" class=\"dropdown-menu show\" *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\r\n </div>\r\n\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n\r\n <!-- Image -->\r\n <div class=\"form-group\" *ngIf=\"item.DataType == 7\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly,field_readonly:item.IsInactive}\">\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12 col-lg-4 col-md-3 padding-0\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\">\r\n <!-- {{item.Label || item.Description }} -->\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory || pageForm.form.get(item.Description)?.errors\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\">\r\n <input autocomplete=\"off\" [placeholder]=\"globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label\" type=\"file\" [id]=\"item.Description\"\r\n [name]=\"item.Description\" [formControlName]=\"item.Description\" class=\"form-control\"\r\n (click)=\"activeInputId = item.Description\" (change)=\"changeFile($event,item)\"\r\n accept=\"image/x-png,image/gif,image/jpeg\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\" />\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- file -->\r\n <div class=\"form-group\" *ngIf=\"item.DataType == 11\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly,field_readonly:item.IsInactive}\">\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12 col-lg-4 col-md-3 padding-0\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\">\r\n <!-- {{item.Label || item.Description }} -->\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory || pageForm.form.get(item.Description)?.errors\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\">\r\n <input [id]=\"item.Description\" autocomplete=\"off\"\r\n style=\"width: calc(100% - 30px); display: inline-block; margin: 00 5px 0 0;\"\r\n [placeholder]=\"globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label\" type=\"file\" (change)=\"changeFile($event,item)\" [name]=\"item.Description\"\r\n [formControlName]=\"item.Description\" (click)=\"activeInputId = item.Description\" class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\" />\r\n\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"form-group\" *ngIf=\"item.DataType == _dataType.List\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly}\">\r\n \r\n <div class=\"row\">\r\n \r\n <div class=\"col text-right\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\">\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory || pageForm.form.get(item.Description)?.errors\">*</span>\r\n <span class=\"padding-left-10\">\r\n <i (click)=\"addnewList(item)\" class=\"themeprimary la la-plus bold fs-15\"></i>\r\n </span>\r\n </label>\r\n </div>\r\n <div class=\"col control-input\">\r\n \r\n <div class=\"form-group\" *ngFor=\"let _list of FiedlListData$[item.Description]; let i = index\">\r\n <div class=\"row\">\r\n <span class=\"col-sm-3\">\r\n <input class=\"form-control\" type=\"text\" placeholder=\"key\" [(ngModel)]=\"_list.key\" [ngModelOptions]=\"{standalone: true}\" (keyup)=\"changeFiledList(item,_list,i)\" >\r\n </span>\r\n <span class=\"col-sm-1 no-padding\" style=\"width: auto;\">=</span>\r\n <span class=\"col-sm-3\">\r\n <input class=\"form-control\" type=\"text\" placeholder=\"value\" [(ngModel)]=\"_list.value\" [ngModelOptions]=\"{standalone: true}\" (keyup)=\"changeFiledList(item,_list,i)\" >\r\n </span>\r\n <span class=\"col-sm-1 no-padding\" (click)=\"removeList(item,i)\" style=\"width: auto;\">\r\n <i class=\"la la-times themeprimary\"></i>\r\n </span>\r\n \r\n </div>\r\n </div>\r\n \r\n \r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n </div>\r\n \r\n \r\n </div>\r\n \r\n </div>\r\n\r\n\r\n <div class=\"form-group\" *ngIf=\"item.DataType == _dataType.HtmlEditor\"\r\n [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly,field_readonly:item.IsInactive}\">\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12 col-lg-4 col-md-3 padding-0\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\">\r\n <!-- {{item.Label || item.Description }} -->\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory || pageForm.form.get(item.Description)?.errors\">*</span>\r\n </label>\r\n </div>\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\">\r\n <angular-editor [id]=\"item.Description\" class=\"mail_editor\" [formControlName]=\"item.Description\"\r\n (keyup)=\"changeFiledValue($event,item)\" (click)=\"activeInputId = item.Description\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\"></angular-editor>\r\n\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\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\" *ngIf=\"!item.IsTableField\" [ngClass]=\"{hide: item.IsHide,inactiveLink:item.IsReadonly,field_readonly:item.IsInactive}\">\r\n <!-- *ngIf=\"item.IsVisible\" -->\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12 col-lg-4 col-md-3 padding-0\">\r\n <label class=\"control-label\" style=\"padding-right: 0px;\">\r\n <!-- {{item.Label }} -->\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n <span class=\"red\" *ngIf=\"item.IsMandatory || pageForm.form.get(item.Description)?.errors\">*</span>\r\n </label>\r\n </div>\r\n <!-- string, int, decimal, time, checkbox, image -->\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\"\r\n *ngIf=\"item.DataType == 1 || item.DataType == 2 || item.DataType == 5 || item.DataType == 6\">\r\n\r\n \r\n <ng-container *ngIf=\"item.IsTableField; else elseTemplate\">\r\n \r\n <label class=\"form-control field_muted\" style=\"padding-right: 0px;\">\r\n {{pageForm.form.value[item.Description]}}\r\n </label>\r\n\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <input [id]=\"item.Description\" autocomplete=\"off\"\r\n [placeholder]=\"globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label\"\r\n [type]=\"getType(item.DataType)\" [name]=\"item.Description\" [formControlName]=\"item.Description\"\r\n (click)=\"activeInputId = item.Description\" class=\"form-control\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\"\r\n (keyup)=\"changeFiledValue($event,item)\" />\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n </ng-template>\r\n </div>\r\n <!-- checkbox -->\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\" *ngIf=\"item.DataType == 9\">\r\n <input [id]=\"item.Description\" autocomplete=\"off\" type=\"checkbox\" [formControlName]=\"item.Description\"\r\n class=\"form-control\" [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\"\r\n (change)=\"changeFiledValue($event,item)\" />\r\n\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n </div>\r\n\r\n\r\n <!-- date && date-time -->\r\n <div class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0 date_pick\" *ngIf=\"item.DataType == 3 || item.DataType == 4\">\r\n <input [id]=\"item.Description\" type=\"text\" [matDatepicker]=\"myDatepicker\" [placeholder]=\"globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label\"\r\n [name]=\"item.Description\" [formControlName]=\"item.Description\"\r\n (click)=\"activeInputId = item.Description\" class=\"form-control\" (dateChange)=\"changeFiledValue($event,item)\"\r\n [ngClass]=\"{'is-invalid': pageForm.form.get(item.Description)?.errors }\" />\r\n <div class=\"datepickerstyle\">\r\n <mat-datepicker-toggle [for]=\"myDatepicker\"></mat-datepicker-toggle>\r\n <mat-datepicker #myDatepicker></mat-datepicker>\r\n </div>\r\n <app-validation-error [item]=\"item\" [pageForm]=\"pageForm\" [fieldsList]=\"fieldsList\">\r\n </app-validation-error>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n\r\n <div class=\" row\" *ngIf=\"!item.IsUiField\" >\r\n <label class=\"col col-sm-12 col-lg-4 col-md-3 padding-0\">\r\n <!-- {{item.Label }} -->\r\n {{ globalService.CurrentLanguage=='Ar'?(item.LabelAr ?item.LabelAr : (item.Label | translate)) :item.Label}}\r\n </label>\r\n <span class=\"col col-sm-12 col-lg-8 control-input col-md-9 padding-0\">: \r\n\r\n <ng-container *ngIf=\"item && item.Description\" [ngSwitch]=\"item.DataType\">\r\n <span *ngSwitchCase=\"_dataType.date\" class=\"tooltiptexts\">\r\n {{PageGroupValues[item.Description] | date :'dd/MM/yyyy'}}\r\n </span>\r\n\r\n <span *ngSwitchCase=\"_dataType.dateTime\" class=\"tooltiptexts\">\r\n {{PageGroupValues[item.Description] | date :'dd/MM/yyyy h:mm a'}}\r\n </span>\r\n\r\n <span *ngSwitchCase=\"_dataType.bool\">\r\n {{(PageGroupValues[item.Description] ==true ? 'Yes' : 'No') | translate }}\r\n </span>\r\n\r\n <span *ngSwitchCase=\"_dataType.dropdown\">\r\n {{ globalService.CurrentLanguage=='Ar'?(PageGroupValues[item.Description+\"_DescAr\"] ? PageGroupValues[item.Description+\"_DescAr\"] : PageGroupValues[item.Description])\r\n :(PageGroupValues[item.Description+\"_Desc\"] ? PageGroupValues[item.Description+\"_Desc\"] : PageGroupValues[item.Description]) }}\r\n </span>\r\n <span *ngSwitchCase=\"_dataType.LookUp\">\r\n <ng-container *ngIf=\"item.LookupData; else elseLookupTemplate\">\r\n {{PageGroupValues[getFiledKey(item.Description,item.LookupData)] }}\r\n </ng-container>\r\n <ng-template #elseLookupTemplate>\r\n {{ globalService.CurrentLanguage=='Ar'?(PageGroupValues[item.Description+\"_DescAr\"] ? PageGroupValues[item.Description+\"_DescAr\"] : PageGroupValues[item.Description])\r\n :(PageGroupValues[item.Description+\"_Desc\"] ? PageGroupValues[item.Description+\"_Desc\"] : PageGroupValues[item.Description]) }}\r\n </ng-template>\r\n </span>\r\n\r\n\r\n <div *ngSwitchCase=\"_dataType.HtmlEditor\" [innerHTML]=\"PageGroupValues[item.Description]\">\r\n </div>\r\n\r\n\r\n <span *ngSwitchDefault>\r\n {{ globalService.CurrentLanguage=='Ar'?(PageGroupValues[item.Description+\"_DescAr\"] ? PageGroupValues[item.Description+\"_DescAr\"] : PageGroupValues[item.Description])\r\n :(PageGroupValues[item.Description+\"_Desc\"] ? PageGroupValues[item.Description+\"_Desc\"] : PageGroupValues[item.Description]) }}\r\n \r\n </span>\r\n </ng-container>\r\n </span>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-container *ngIf=\"Type !='Details' && ActionType != '1' && ActionType != '2'\">\r\n <div class=\"settings position-absolute\">\r\n <i (click)=\"_deleteField(fieldIndex)\" class=\"la la-trash-o\"></i>\r\n <i (click)=\"_downField(fieldIndex)\" class=\"la la-arrow-down\"></i>\r\n <i (click)=\"_upField(fieldIndex)\" class=\"la la-arrow-up\"></i>\r\n </div>\r\n </ng-container>\r\n\r\n </div>\r\n</ng-container>\r\n",
|
|
9761
|
-
styles: [".field .settings{display:none;top:0;right:0;z-index:1;margin:auto 10px;cursor:pointer;padding:5px;-webkit-animation-name:fadeIn;animation-name:fadeIn;-webkit-animation-timing-function:ease;animation-timing-function:ease;-webkit-animation-duration:.3s;animation-duration:.3s}.field:hover .settings{display:block}.field .settings>i{padding:6px}.field .settings>i:hover{background:hsla(0,0%,50.2%,.198)}.field.dynamic-view .settings,.field.dynamic-view:hover .settings{display:none}.field .form-group .row>.col:first-child,.field .row>.col:first-child{max-width:180px}.req_page.lang_Arabic .field .row>.col:first-child{text-align:right!important}.field .form-group .row>.col{padding:0}.field .form-group .row>.col .control-label{font-size:13px}.field .form-group .row>.col.control-input .form-control{height:30px;padding:4px;font-size:13px}.control-table{background:#fff;border:2px solid #ddd;padding:5px;position:absolute;border-radius:5px;box-shadow:3px 6px 10px 7px rgba(0,0,0,.1);min-width:350px;box-shadow:1px;z-index:1}.control-table .control-table-search input{width:100%;border:1px solid #ddd;height:25px;padding:5px}.canned-response{position:absolute;right:10px;bottom:0;display:none}.canned-response .badge{border-radius:100px;height:41px;box-shadow:0 0 13px -5px rgba(0,0,0,.68)}.canned-response .badge:focus{outline:none}.hide{display:none!important}.datepickerstyle{float:left;right:-1px;position:absolute;top:-5px;box-shadow:none}.field_muted{background-color:#f5f5f5}.form-group .control-input input[type=checkbox]{height:15px!important;width:15px!important}"]
|
|
9762
|
-
},] }
|
|
9763
|
-
];
|
|
9764
|
-
EntityDynamicFieldComponent.ctorParameters = function () { return [
|
|
9765
|
-
{ type: EntityTypeSetupService },
|
|
9766
|
-
{ type: GlobalService }
|
|
9767
|
-
]; };
|
|
9768
|
-
EntityDynamicFieldComponent.propDecorators = {
|
|
9769
|
-
RequestorField: [{ type: i0.Input }],
|
|
9770
|
-
RequestorFieldValue: [{ type: i0.Input }],
|
|
9771
|
-
ParameterData: [{ type: i0.Input }],
|
|
9772
|
-
fieldsList: [{ type: i0.Input }],
|
|
9773
|
-
dynamicFormGroup: [{ type: i0.Input }],
|
|
9774
|
-
pageForm: [{ type: i0.Input }],
|
|
9775
|
-
PageGroupValues: [{ type: i0.Input }],
|
|
9776
|
-
submitted: [{ type: i0.Input }],
|
|
9777
|
-
Type: [{ type: i0.Input }],
|
|
9778
|
-
rowIndex: [{ type: i0.Input }],
|
|
9779
|
-
groupIndex: [{ type: i0.Input }],
|
|
9780
|
-
ActionType: [{ type: i0.Input }],
|
|
9781
|
-
EntityType: [{ type: i0.Input }],
|
|
9782
|
-
FieldChangeEvent: [{ type: i0.Output }],
|
|
9783
|
-
deleteField: [{ type: i0.Output }],
|
|
9784
|
-
downField: [{ type: i0.Output }],
|
|
9785
|
-
upField: [{ type: i0.Output }]
|
|
9786
|
-
};
|
|
9787
|
-
|
|
9788
|
-
var PageDetailsRow = /** @class */ (function () {
|
|
9789
|
-
function PageDetailsRow() {
|
|
9790
|
-
this.ID = "1";
|
|
9791
|
-
this.Groups = [];
|
|
9792
|
-
this.Width = 100;
|
|
9793
|
-
this.Height = 100;
|
|
9794
|
-
}
|
|
9795
|
-
return PageDetailsRow;
|
|
9796
|
-
}());
|
|
9797
|
-
var PageGroup = /** @class */ (function () {
|
|
9798
|
-
function PageGroup() {
|
|
9799
|
-
this.ID = "1";
|
|
9800
|
-
this.Width = 33;
|
|
9801
|
-
this.Height = 100;
|
|
9802
|
-
this.Class = "";
|
|
9803
|
-
this.Name = "";
|
|
9804
|
-
this.ViewType = ePageViewType.View;
|
|
9805
|
-
this.Direction = ePageDetailDirection.Vertical;
|
|
9806
|
-
this.Alignment = ePageDetailAlignment.left;
|
|
9807
|
-
this.Fields = [];
|
|
9808
|
-
this.Groups = []; // need to remove group it is worngin implementaion ag
|
|
9809
|
-
}
|
|
9810
|
-
return PageGroup;
|
|
9811
|
-
}());
|
|
9812
|
-
var ePageViewType;
|
|
9813
|
-
(function (ePageViewType) {
|
|
9814
|
-
ePageViewType[ePageViewType["View"] = 1] = "View";
|
|
9815
|
-
ePageViewType[ePageViewType["Edit"] = 2] = "Edit";
|
|
9816
|
-
ePageViewType[ePageViewType["ViewAndEdit"] = 3] = "ViewAndEdit";
|
|
9817
|
-
})(ePageViewType || (ePageViewType = {}));
|
|
9818
|
-
var ePageDetailAlignment;
|
|
9819
|
-
(function (ePageDetailAlignment) {
|
|
9820
|
-
ePageDetailAlignment[ePageDetailAlignment["left"] = 1] = "left";
|
|
9821
|
-
ePageDetailAlignment[ePageDetailAlignment["center"] = 2] = "center";
|
|
9822
|
-
ePageDetailAlignment[ePageDetailAlignment["right"] = 3] = "right";
|
|
9823
|
-
})(ePageDetailAlignment || (ePageDetailAlignment = {}));
|
|
9824
|
-
var ePageDetailDirection;
|
|
9825
|
-
(function (ePageDetailDirection) {
|
|
9826
|
-
ePageDetailDirection[ePageDetailDirection["Vertical"] = 1] = "Vertical";
|
|
9827
|
-
ePageDetailDirection[ePageDetailDirection["Horizontal"] = 2] = "Horizontal";
|
|
9828
|
-
})(ePageDetailDirection || (ePageDetailDirection = {}));
|
|
9829
|
-
|
|
9830
|
-
var DynamicDetailsViewComponent = /** @class */ (function () {
|
|
9831
|
-
function DynamicDetailsViewComponent(entityTypeSetup, router, fb, route) {
|
|
9832
|
-
this.entityTypeSetup = entityTypeSetup;
|
|
9833
|
-
this.router = router;
|
|
9834
|
-
this.fb = fb;
|
|
9835
|
-
this.route = route;
|
|
9836
|
-
this.ViewType = '';
|
|
9837
|
-
this.pageGroups = [];
|
|
9838
|
-
this.defaultPageGroups = [];
|
|
9839
|
-
this.PageGroupValues = {};
|
|
9840
|
-
this.EntityFieldList = [];
|
|
9841
|
-
this._PageForm = new PageForm(new forms.FormGroup({}));
|
|
9842
|
-
this.dropDown$ = Object.assign({});
|
|
9843
|
-
this.SelectedFiles = null;
|
|
9844
|
-
this.selectedFileItem = null;
|
|
9845
|
-
/* #region DataFIleds */
|
|
9669
|
+
DynamicDetailsViewComponent.prototype.groupSetting = function (rowIndex, groupIndex) {
|
|
9670
|
+
this.selectRowIndex = rowIndex;
|
|
9671
|
+
this.selectGroupIndex = groupIndex;
|
|
9672
|
+
};
|
|
9673
|
+
DynamicDetailsViewComponent.prototype.deleteGroup = function (rowIndex, groupIndex) {
|
|
9674
|
+
this.selectRowIndex = rowIndex;
|
|
9675
|
+
this.selectGroupIndex = groupIndex;
|
|
9676
|
+
this.pageGroups[this.selectRowIndex].Groups.splice(this.selectGroupIndex, 1);
|
|
9677
|
+
if (this.pageGroups[this.selectRowIndex].Groups.length == 0)
|
|
9678
|
+
this.pageGroups.splice(this.selectRowIndex, 1);
|
|
9679
|
+
};
|
|
9680
|
+
DynamicDetailsViewComponent.prototype.openDataField = function (rowIndex, groupIndex) {
|
|
9681
|
+
this.selectRowIndex = rowIndex;
|
|
9682
|
+
this.selectGroupIndex = groupIndex;
|
|
9683
|
+
this.showDataFiledPopup = true;
|
|
9684
|
+
// this.dataFieldPopup = true;
|
|
9685
|
+
};
|
|
9686
|
+
DynamicDetailsViewComponent.prototype.closeDataField = function () {
|
|
9846
9687
|
this.showDataFiledPopup = false;
|
|
9847
|
-
|
|
9848
|
-
|
|
9688
|
+
// this.dataFieldPopup = false;
|
|
9689
|
+
};
|
|
9690
|
+
DynamicDetailsViewComponent.prototype.submitDataFields = function (Fields) {
|
|
9691
|
+
// if (Fields && Fields.length > 0)
|
|
9692
|
+
for (var index = 0; index < Fields.length; index++) {
|
|
9693
|
+
this.pageGroups[this.selectRowIndex].Groups[this.selectGroupIndex].Fields.push(Fields[index]);
|
|
9694
|
+
}
|
|
9695
|
+
this.buildReactiveForm();
|
|
9696
|
+
this.showDataFiledPopup = false;
|
|
9697
|
+
};
|
|
9698
|
+
/* #endregion */
|
|
9699
|
+
/* #region Field Actions */
|
|
9700
|
+
DynamicDetailsViewComponent.prototype.deleteField = function (fieldIndex, groupIndex, rowIndex) {
|
|
9701
|
+
this.pageGroups[rowIndex].Groups[groupIndex].Fields.splice(fieldIndex, 1);
|
|
9702
|
+
this.buildReactiveForm();
|
|
9703
|
+
};
|
|
9704
|
+
DynamicDetailsViewComponent.prototype.downField = function (fieldIndex, groupIndex, rowIndex) {
|
|
9705
|
+
if (fieldIndex !=
|
|
9706
|
+
this.pageGroups[rowIndex].Groups[groupIndex].Fields.length - 1)
|
|
9707
|
+
moveItem(this.pageGroups[rowIndex].Groups[groupIndex].Fields, fieldIndex, fieldIndex + 1);
|
|
9708
|
+
this.buildReactiveForm();
|
|
9709
|
+
};
|
|
9710
|
+
DynamicDetailsViewComponent.prototype.upField = function (fieldIndex, groupIndex, rowIndex) {
|
|
9711
|
+
if (fieldIndex != 0)
|
|
9712
|
+
moveItem(this.pageGroups[rowIndex].Groups[groupIndex].Fields, fieldIndex, fieldIndex - 1);
|
|
9713
|
+
this.buildReactiveForm();
|
|
9714
|
+
};
|
|
9715
|
+
DynamicDetailsViewComponent.prototype.openDynamicViewPopup = function () {
|
|
9716
|
+
this.showDynamicViewPopup = true;
|
|
9717
|
+
};
|
|
9718
|
+
DynamicDetailsViewComponent.prototype.closeDynamicViewPopup = function () {
|
|
9849
9719
|
this.showDynamicViewPopup = false;
|
|
9850
|
-
}
|
|
9851
|
-
|
|
9852
|
-
|
|
9853
|
-
|
|
9854
|
-
|
|
9855
|
-
|
|
9856
|
-
|
|
9857
|
-
|
|
9858
|
-
_this.getFieldListByEntityType();
|
|
9859
|
-
// this.dynamicFormGroup = this.getFieldFormGroup();
|
|
9860
|
-
_this.buildReactiveForm();
|
|
9720
|
+
};
|
|
9721
|
+
/* #endregion */
|
|
9722
|
+
DynamicDetailsViewComponent.prototype.getAllFields = function () {
|
|
9723
|
+
var fields = [];
|
|
9724
|
+
for (var index = 0; index < this.pageGroups.length; index++) {
|
|
9725
|
+
var Groups = this.pageGroups[index].Groups;
|
|
9726
|
+
for (var i = 0; i < Groups.length; i++) {
|
|
9727
|
+
fields.push.apply(fields, __spread(Groups[i].Fields));
|
|
9861
9728
|
}
|
|
9862
|
-
});
|
|
9863
|
-
if (this.EntityFormId) {
|
|
9864
|
-
this.getEntityForm();
|
|
9865
9729
|
}
|
|
9730
|
+
return fields;
|
|
9866
9731
|
};
|
|
9867
|
-
DynamicDetailsViewComponent.prototype.
|
|
9868
|
-
var
|
|
9869
|
-
this.
|
|
9870
|
-
|
|
9871
|
-
.subscribe(function (res) {
|
|
9872
|
-
_this.EntityTypeDetail = res;
|
|
9873
|
-
}, function (error) {
|
|
9874
|
-
console.log(error);
|
|
9875
|
-
});
|
|
9876
|
-
};
|
|
9877
|
-
DynamicDetailsViewComponent.prototype.saveDesignForm = function () {
|
|
9878
|
-
var _this = this;
|
|
9879
|
-
var pagedesign = JSON.stringify(this.pageGroups);
|
|
9880
|
-
// this.EntityTypeForm.FormData = pagedesign;
|
|
9881
|
-
var data = {
|
|
9882
|
-
RecId: this.EntityTypeForm.RecId,
|
|
9883
|
-
EntityTypeId: this.EntityTypeForm.EntityTypeRecId,
|
|
9884
|
-
FieldId: this.EntityTypeForm.FieldId,
|
|
9885
|
-
FieldControlType: this.EntityTypeForm.FieldControlType,
|
|
9886
|
-
DataSourceLink: this.EntityTypeForm.DataSourceLink,
|
|
9887
|
-
CascadeFieldId: this.EntityTypeForm.CascadeFieldId,
|
|
9888
|
-
IsVisible: this.EntityTypeForm.IsVisible,
|
|
9889
|
-
OrderId: this.EntityTypeForm.OrderId,
|
|
9890
|
-
FormType: this.EntityTypeForm.FormType,
|
|
9891
|
-
FormData: pagedesign,
|
|
9892
|
-
};
|
|
9893
|
-
this.entityTypeSetup.putEntityTypeForm(data).subscribe(function (res) {
|
|
9894
|
-
_this.getEntityForm();
|
|
9895
|
-
});
|
|
9732
|
+
DynamicDetailsViewComponent.prototype.buildReactiveForm = function () {
|
|
9733
|
+
var fields = this.getAllFields();
|
|
9734
|
+
this._PageForm = new PageForm(this.createFormGroup(fields));
|
|
9735
|
+
this.BindDesignFormData();
|
|
9896
9736
|
};
|
|
9897
|
-
DynamicDetailsViewComponent.prototype.
|
|
9898
|
-
var
|
|
9899
|
-
this.
|
|
9900
|
-
|
|
9901
|
-
|
|
9902
|
-
|
|
9903
|
-
|
|
9904
|
-
|
|
9905
|
-
|
|
9906
|
-
|
|
9907
|
-
|
|
9737
|
+
DynamicDetailsViewComponent.prototype.createFormGroup = function (fields) {
|
|
9738
|
+
var e_3, _a;
|
|
9739
|
+
var form = this.fb.group({});
|
|
9740
|
+
if (Array.isArray(fields) && fields.length > 0) {
|
|
9741
|
+
try {
|
|
9742
|
+
for (var fields_1 = __values(fields), fields_1_1 = fields_1.next(); !fields_1_1.done; fields_1_1 = fields_1.next()) {
|
|
9743
|
+
var field = fields_1_1.value;
|
|
9744
|
+
var value = null;
|
|
9745
|
+
if (field.IsMandatory)
|
|
9746
|
+
form.addControl(field.Description, this.fb.control(value, forms.Validators.required));
|
|
9747
|
+
else
|
|
9748
|
+
form.addControl(field.Description, this.fb.control(value));
|
|
9749
|
+
}
|
|
9750
|
+
}
|
|
9751
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
9752
|
+
finally {
|
|
9753
|
+
try {
|
|
9754
|
+
if (fields_1_1 && !fields_1_1.done && (_a = fields_1.return)) _a.call(fields_1);
|
|
9755
|
+
}
|
|
9756
|
+
finally { if (e_3) throw e_3.error; }
|
|
9757
|
+
}
|
|
9758
|
+
}
|
|
9759
|
+
return form;
|
|
9908
9760
|
};
|
|
9909
|
-
DynamicDetailsViewComponent.prototype.
|
|
9761
|
+
DynamicDetailsViewComponent.prototype.getAllDefaultEntityTypeForm = function (EntityTypeId) {
|
|
9910
9762
|
var _this = this;
|
|
9911
|
-
this.entityTypeSetup
|
|
9912
|
-
|
|
9913
|
-
|
|
9914
|
-
|
|
9915
|
-
|
|
9916
|
-
|
|
9917
|
-
|
|
9918
|
-
_this.pageGroups = _FormData.PageGroup;
|
|
9919
|
-
// if (_FormData.defaultPageGroups) {
|
|
9920
|
-
// if (Array.isArray(_FormData.defaultPageGroups)) {
|
|
9921
|
-
// this.defaultPageGroups = _FormData.defaultPageGroups;
|
|
9922
|
-
// }
|
|
9923
|
-
// }
|
|
9924
|
-
if (_FormData.defaultPageGroups)
|
|
9925
|
-
_this.getAllDefaultEntityTypeForm(_FormData.defaultPageGroups);
|
|
9926
|
-
else
|
|
9927
|
-
_this.defaultPageGroups = [];
|
|
9928
|
-
if (_this.ViewType != 'Details') {
|
|
9929
|
-
if (_FormData.PageGroupValues)
|
|
9930
|
-
_this.PageGroupValues = _FormData.PageGroupValues;
|
|
9931
|
-
else
|
|
9932
|
-
_this.PageGroupValues = {};
|
|
9933
|
-
_this.buildReactiveForm();
|
|
9763
|
+
this.entityTypeSetup.getActiveEntityForm(EntityTypeId).subscribe(function (res) {
|
|
9764
|
+
if (res && res.FormData) {
|
|
9765
|
+
var _FormData = JSON.parse(res.FormData);
|
|
9766
|
+
if (_FormData.PageGroup) {
|
|
9767
|
+
if (Array.isArray(_FormData.PageGroup)) {
|
|
9768
|
+
_this.defaultPageGroups = _FormData.PageGroup;
|
|
9769
|
+
}
|
|
9934
9770
|
}
|
|
9771
|
+
_this.buildReactiveForm();
|
|
9935
9772
|
}
|
|
9936
9773
|
}, function (error) {
|
|
9937
9774
|
console.log(error);
|
|
9938
9775
|
});
|
|
9939
9776
|
};
|
|
9940
|
-
DynamicDetailsViewComponent.prototype.
|
|
9941
|
-
this.
|
|
9942
|
-
var row = this.pageGroups[this.pageGroups.length - 1];
|
|
9943
|
-
this.addGroup(row);
|
|
9777
|
+
DynamicDetailsViewComponent.prototype.getFieldFormValue = function (field) {
|
|
9778
|
+
return this._PageForm.form.get(field);
|
|
9944
9779
|
};
|
|
9945
|
-
DynamicDetailsViewComponent.prototype.
|
|
9946
|
-
var
|
|
9947
|
-
|
|
9948
|
-
this.buildReactiveForm();
|
|
9949
|
-
this.setGroupWidth(row);
|
|
9780
|
+
DynamicDetailsViewComponent.prototype.saveDesignFormData = function () {
|
|
9781
|
+
var formvalue = this._PageForm.form.value;
|
|
9782
|
+
alert('values----/n' + JSON.stringify(formvalue));
|
|
9950
9783
|
};
|
|
9951
|
-
DynamicDetailsViewComponent.prototype.
|
|
9952
|
-
|
|
9953
|
-
|
|
9954
|
-
|
|
9955
|
-
|
|
9956
|
-
|
|
9784
|
+
DynamicDetailsViewComponent.prototype.BindDesignFormData = function () {
|
|
9785
|
+
var _data = {
|
|
9786
|
+
textbox: 'ASASAS',
|
|
9787
|
+
textboxNumber: '1234',
|
|
9788
|
+
DateField: '06/13/2021',
|
|
9789
|
+
DateTime: '06/13/2025',
|
|
9790
|
+
textArea: 'xzxx cscc',
|
|
9791
|
+
Bolean: true,
|
|
9792
|
+
};
|
|
9793
|
+
this._PageForm.form.patchValue(this.PageGroupValues);
|
|
9957
9794
|
};
|
|
9958
|
-
DynamicDetailsViewComponent
|
|
9959
|
-
|
|
9960
|
-
|
|
9961
|
-
|
|
9962
|
-
|
|
9963
|
-
|
|
9964
|
-
|
|
9965
|
-
|
|
9966
|
-
|
|
9967
|
-
|
|
9968
|
-
|
|
9969
|
-
|
|
9970
|
-
|
|
9795
|
+
return DynamicDetailsViewComponent;
|
|
9796
|
+
}());
|
|
9797
|
+
DynamicDetailsViewComponent.decorators = [
|
|
9798
|
+
{ type: i0.Component, args: [{
|
|
9799
|
+
selector: 'app-dynamic-details-view',
|
|
9800
|
+
template: "\r\n<ng-container *ngIf=\"ViewType=='Details'; else elseTemplate\">\r\n\r\n <div class=\"row\" *ngFor=\"let row of pageGroups; let rowIndex = index\">\r\n\r\n <div class=\"col clearfix\" [style.flex-basis]=\"group.Width + '%'\"\r\n *ngFor=\"let group of row.Groups; let groupIndex = index\">\r\n\r\n <ng-container *ngIf=\"group.Fields && group.Fields.length > 0\">\r\n <app-entity-dynamic-field [fieldsList]=\"group.Fields\" [Type]=\"'Details'\" [PageGroupValues]=\"PageGroupValues\">\r\n </app-entity-dynamic-field>\r\n\r\n </ng-container>\r\n\r\n </div>\r\n\r\n </div>\r\n \r\n <ng-container *ngIf=\"defaultPageGroups && defaultPageGroups.length > 0\">\r\n <br>\r\n <hr>\r\n <h2 class=\"stage-title\">{{'Identification Details'|translate}}</h2>\r\n <br>\r\n \r\n <div class=\"row\" *ngFor=\"let row of defaultPageGroups; let rowIndex = index\">\r\n \r\n <div class=\"col clearfix \" [style.flex-basis]=\"group.Width + '%'\"\r\n *ngFor=\"let group of row.Groups; let groupIndex = index\">\r\n \r\n <ng-container *ngIf=\"group.Fields && group.Fields.length > 0\">\r\n <app-entity-dynamic-field [fieldsList]=\"group.Fields\" [Type]=\"'Details'\" [PageGroupValues]=\"PageGroupValues\">\r\n </app-entity-dynamic-field>\r\n \r\n </ng-container>\r\n \r\n </div>\r\n \r\n </div>\r\n </ng-container>\r\n</ng-container>\r\n<ng-template #elseTemplate>\r\n\r\n\r\n\r\n <div class=\"row dynamic-form-detail\">\r\n <div class=\"col col-lg-12\">\r\n <div class=\"card\">\r\n <div class=\"header clearfix\">\r\n <h2 class=\"float-left\">{{EntityTypeDetail?.Description}} {{'Design Form'|translate}}</h2>\r\n\r\n <a href=\"javascript:void(0)\" class=\"pull-right themecolor action-btn m-l-5\" (click)=\"getEntityForm()\">\r\n <i class=\"la la-refresh\"></i>\r\n </a>\r\n\r\n\r\n </div>\r\n <div class=\"page-details design-group-body\">\r\n\r\n <form [formGroup]=\"_PageForm.form\">\r\n <section class=\"details-wrapper engine-dev col-sm-12\" style=\"background: #eee;padding-top: 15px;\">\r\n <div class=\"row detail-row\" *ngFor=\"let row of pageGroups; let rowIndex = index\"\r\n style=\"background: #eee;\">\r\n\r\n <div class=\"detail-group col clearfix padding-0 {{group.Class}}\"\r\n [ngClass]=\"{'vertical-group': group.Direction == 1,'horizontal-group': group.Direction == 2}\"\r\n [style.flex-basis]=\"group.Width + '%'\" *ngFor=\"let group of row.Groups; let groupIndex = index\">\r\n\r\n <div class=\"card\">\r\n\r\n <ng-container *ngIf=\"group.Fields && group.Fields.length > 0\">\r\n <div class=\"body\">\r\n <!-- *ngIf=\"group.Fields && group.Fields.length > 0\" -->\r\n <app-entity-dynamic-field [fieldsList]=\"group.Fields\" [pageForm]=\"_PageForm\"\r\n [dynamicFormGroup]=\"_PageForm.form\" [submitted]=\"submitted\" [rowIndex]=\"rowIndex\"\r\n [groupIndex]=\"groupIndex\" [Type]=\"'Details'\" [PageGroupValues]=\"PageGroupValues\"\r\n (deleteField)=\"deleteField($event.fieldIndex,$event.groupIndex,$event.rowIndex)\"\r\n (upField)=\"upField($event.fieldIndex,$event.groupIndex,$event.rowIndex)\"\r\n (downField)=\"downField($event.fieldIndex,$event.groupIndex,$event.rowIndex)\">\r\n\r\n </app-entity-dynamic-field>\r\n </div>\r\n </ng-container>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n </section>\r\n </form>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n</ng-template>\r\n\r\n\r\n",
|
|
9801
|
+
styles: [".field .row>.col:first-child{max-width:210px}"]
|
|
9802
|
+
},] }
|
|
9803
|
+
];
|
|
9804
|
+
DynamicDetailsViewComponent.ctorParameters = function () { return [
|
|
9805
|
+
{ type: EntityTypeSetupService },
|
|
9806
|
+
{ type: router.Router },
|
|
9807
|
+
{ type: forms.FormBuilder },
|
|
9808
|
+
{ type: router.ActivatedRoute }
|
|
9809
|
+
]; };
|
|
9810
|
+
DynamicDetailsViewComponent.propDecorators = {
|
|
9811
|
+
ViewType: [{ type: i0.Input }],
|
|
9812
|
+
EntityTypeId: [{ type: i0.Input }],
|
|
9813
|
+
EntityFormId: [{ type: i0.Input }],
|
|
9814
|
+
pageGroups: [{ type: i0.Input }],
|
|
9815
|
+
defaultPageGroups: [{ type: i0.Input }],
|
|
9816
|
+
PageGroupValues: [{ type: i0.Input }]
|
|
9817
|
+
};
|
|
9818
|
+
function moveItem(data, from, to) {
|
|
9819
|
+
var f = data.splice(from, 1)[0];
|
|
9820
|
+
data.splice(to, 0, f);
|
|
9821
|
+
return data;
|
|
9822
|
+
}
|
|
9823
|
+
|
|
9824
|
+
var ActivitiesCreateComponent = /** @class */ (function () {
|
|
9825
|
+
function ActivitiesCreateComponent(entityTypeSetup, router, route, globalService) {
|
|
9826
|
+
this.entityTypeSetup = entityTypeSetup;
|
|
9827
|
+
this.router = router;
|
|
9828
|
+
this.route = route;
|
|
9829
|
+
this.globalService = globalService;
|
|
9830
|
+
this.translatePipe = new TranslatePipe(this.globalService);
|
|
9831
|
+
this.EntityFormId = null;
|
|
9832
|
+
this.EntityTypeId = null;
|
|
9833
|
+
this.ActivityTypeId = null;
|
|
9834
|
+
this.RefEntityTypeId = null;
|
|
9835
|
+
this.RefTypeId = null;
|
|
9836
|
+
this.ViewFrom = "Page";
|
|
9837
|
+
this.ViewAction = "Activity";
|
|
9838
|
+
this.closeActivityCreate = new i0.EventEmitter();
|
|
9839
|
+
this.createFormData = {};
|
|
9840
|
+
this.pageForm = {};
|
|
9841
|
+
}
|
|
9842
|
+
ActivitiesCreateComponent.prototype.ngOnInit = function () {
|
|
9843
|
+
var _this = this;
|
|
9844
|
+
this.route.paramMap.subscribe(function (res) {
|
|
9845
|
+
if (_this.ViewFrom != "Popup") {
|
|
9846
|
+
_this.EntityTypeId = Number(res.get('EntityTypeId'));
|
|
9847
|
+
_this.ActivityTypeId = Number(res.get('ActivityTypeId'));
|
|
9848
|
+
_this.RefTypeId = Number(res.get('RefTypeId'));
|
|
9971
9849
|
}
|
|
9972
|
-
|
|
9973
|
-
|
|
9974
|
-
|
|
9975
|
-
|
|
9976
|
-
|
|
9850
|
+
// this.EntityTypeId = Number(res.get('EntityTypeId'));
|
|
9851
|
+
});
|
|
9852
|
+
this.getActiveEntityForm();
|
|
9853
|
+
debugger;
|
|
9854
|
+
this.globalService.submitComments.subscribe(function (x) {
|
|
9855
|
+
debugger;
|
|
9856
|
+
if (x.message) {
|
|
9857
|
+
_this.createFormData.Comments = x.message;
|
|
9858
|
+
_this.submitTicketCreate(true);
|
|
9977
9859
|
}
|
|
9978
|
-
|
|
9979
|
-
}
|
|
9980
|
-
return dynamicFormGroup;
|
|
9860
|
+
});
|
|
9981
9861
|
};
|
|
9982
|
-
|
|
9983
|
-
var e_2, _a;
|
|
9862
|
+
ActivitiesCreateComponent.prototype.getActiveEntityForm = function () {
|
|
9984
9863
|
var _this = this;
|
|
9985
|
-
|
|
9986
|
-
|
|
9987
|
-
|
|
9988
|
-
|
|
9989
|
-
|
|
9990
|
-
|
|
9991
|
-
|
|
9992
|
-
|
|
9993
|
-
|
|
9994
|
-
|
|
9995
|
-
|
|
9996
|
-
|
|
9997
|
-
|
|
9998
|
-
|
|
9999
|
-
|
|
10000
|
-
|
|
10001
|
-
|
|
10002
|
-
Id: x[jsonItem.api.valueField],
|
|
10003
|
-
Description: x[jsonItem.api.textField],
|
|
10004
|
-
}); }));
|
|
10005
|
-
}
|
|
10006
|
-
else
|
|
10007
|
-
obx.next([]);
|
|
10008
|
-
});
|
|
10009
|
-
}
|
|
10010
|
-
else {
|
|
10011
|
-
if (jsonItem.options &&
|
|
10012
|
-
Array.isArray(jsonItem.options) &&
|
|
10013
|
-
jsonItem.options.length > 0) {
|
|
10014
|
-
obx.next(jsonItem.options.map(function (x) { return Object.assign({
|
|
10015
|
-
Id: x.value,
|
|
10016
|
-
Description: x.text,
|
|
10017
|
-
}); }));
|
|
10018
|
-
}
|
|
10019
|
-
else
|
|
10020
|
-
obx.next([]);
|
|
10021
|
-
}
|
|
10022
|
-
}
|
|
9864
|
+
this.entityTypeSetup.getActiveEntityForm(this.EntityTypeId).subscribe(function (res) {
|
|
9865
|
+
_this.EntityFormId = res.RecId;
|
|
9866
|
+
}, function (error) {
|
|
9867
|
+
console.log(error);
|
|
9868
|
+
});
|
|
9869
|
+
};
|
|
9870
|
+
ActivitiesCreateComponent.prototype.closeCreatePage = function () {
|
|
9871
|
+
this.closeActivityCreate.emit({ Type: "Cancel" });
|
|
9872
|
+
};
|
|
9873
|
+
ActivitiesCreateComponent.prototype.submitTicketCreate = function (isDisableFormValidation) {
|
|
9874
|
+
var _this = this;
|
|
9875
|
+
debugger;
|
|
9876
|
+
var CreateData = this.createFormData;
|
|
9877
|
+
if (isDisableFormValidation) {
|
|
9878
|
+
if (!this.createFormData.Comments) {
|
|
9879
|
+
Swal__default['default'].fire({
|
|
9880
|
+
title: this.translatePipe.transform('Fill all mandatory fields'),
|
|
10023
9881
|
});
|
|
10024
|
-
|
|
10025
|
-
|
|
10026
|
-
var this_1 = this;
|
|
10027
|
-
try {
|
|
10028
|
-
for (var _b = __values(this.EntityFieldList), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
10029
|
-
var iterator = _c.value;
|
|
10030
|
-
_loop_1(iterator);
|
|
9882
|
+
// Swal.fire('Fill all mandatory fields', '', 'warning');
|
|
9883
|
+
return;
|
|
10031
9884
|
}
|
|
10032
9885
|
}
|
|
10033
|
-
|
|
10034
|
-
|
|
10035
|
-
|
|
10036
|
-
|
|
9886
|
+
else {
|
|
9887
|
+
if (!this.pageForm.valid) {
|
|
9888
|
+
Swal__default['default'].fire({
|
|
9889
|
+
title: this.translatePipe.transform('Fill all mandatory fields'),
|
|
9890
|
+
});
|
|
9891
|
+
return;
|
|
10037
9892
|
}
|
|
10038
|
-
finally { if (e_2) throw e_2.error; }
|
|
10039
9893
|
}
|
|
10040
|
-
|
|
10041
|
-
|
|
10042
|
-
|
|
10043
|
-
|
|
10044
|
-
else
|
|
10045
|
-
return this.dynamicFormGroup.get(name).errors ? true : false;
|
|
10046
|
-
};
|
|
10047
|
-
DynamicDetailsViewComponent.prototype.getType = function (_dataType) {
|
|
10048
|
-
switch (_dataType) {
|
|
10049
|
-
case E_DataType.int:
|
|
10050
|
-
case E_DataType.decimal:
|
|
10051
|
-
return 'number';
|
|
10052
|
-
case E_DataType.date:
|
|
10053
|
-
return 'date';
|
|
10054
|
-
case E_DataType.dateTime:
|
|
10055
|
-
return 'datetime-local';
|
|
10056
|
-
case E_DataType.timespan:
|
|
10057
|
-
return 'time';
|
|
10058
|
-
case E_DataType.bool:
|
|
10059
|
-
return 'checkbox';
|
|
10060
|
-
case E_DataType.string:
|
|
10061
|
-
return 'text';
|
|
10062
|
-
case E_DataType.image:
|
|
10063
|
-
return 'file';
|
|
10064
|
-
default:
|
|
10065
|
-
return 'text';
|
|
9894
|
+
CreateData.EntityTypeId = this.RefEntityTypeId;
|
|
9895
|
+
if (this.ViewAction == 'Task') {
|
|
9896
|
+
CreateData.EntityTypeId = this.ActivityTypeId;
|
|
9897
|
+
CreateData.RefTicketId = this.RefTypeId;
|
|
10066
9898
|
}
|
|
9899
|
+
else {
|
|
9900
|
+
CreateData.ActivityTypeId = this.ActivityTypeId;
|
|
9901
|
+
CreateData.RefTypeId = this.RefTypeId;
|
|
9902
|
+
}
|
|
9903
|
+
var _data = JSON.stringify(CreateData);
|
|
9904
|
+
this.entityTypeSetup.createDynamic(_data).subscribe(function (res) {
|
|
9905
|
+
// alert('Success');
|
|
9906
|
+
_this.globalService.submitComments.next({ message: '' });
|
|
9907
|
+
_this.createFormData = {};
|
|
9908
|
+
// Swal.fire('Created Successfully', 'Success');
|
|
9909
|
+
Swal__default['default'].fire({
|
|
9910
|
+
title: _this.translatePipe.transform('Created Successfully'),
|
|
9911
|
+
});
|
|
9912
|
+
_this.pageForm.reset();
|
|
9913
|
+
_this.closeActivityCreate.emit({ Type: "Create" });
|
|
9914
|
+
}, function (error) {
|
|
9915
|
+
console.log(error);
|
|
9916
|
+
});
|
|
10067
9917
|
};
|
|
10068
|
-
|
|
10069
|
-
|
|
10070
|
-
|
|
10071
|
-
this.selectedFileItem = item;
|
|
10072
|
-
this.SelectedFiles = event.target.files;
|
|
10073
|
-
};
|
|
10074
|
-
DynamicDetailsViewComponent.prototype.addNestedGroup = function (rowIndex, groupIndex) {
|
|
10075
|
-
this.selectRowIndex = rowIndex;
|
|
10076
|
-
this.selectGroupIndex = groupIndex;
|
|
10077
|
-
};
|
|
10078
|
-
DynamicDetailsViewComponent.prototype.groupSetting = function (rowIndex, groupIndex) {
|
|
10079
|
-
this.selectRowIndex = rowIndex;
|
|
10080
|
-
this.selectGroupIndex = groupIndex;
|
|
10081
|
-
};
|
|
10082
|
-
DynamicDetailsViewComponent.prototype.deleteGroup = function (rowIndex, groupIndex) {
|
|
10083
|
-
this.selectRowIndex = rowIndex;
|
|
10084
|
-
this.selectGroupIndex = groupIndex;
|
|
10085
|
-
this.pageGroups[this.selectRowIndex].Groups.splice(this.selectGroupIndex, 1);
|
|
10086
|
-
if (this.pageGroups[this.selectRowIndex].Groups.length == 0)
|
|
10087
|
-
this.pageGroups.splice(this.selectRowIndex, 1);
|
|
10088
|
-
};
|
|
10089
|
-
DynamicDetailsViewComponent.prototype.openDataField = function (rowIndex, groupIndex) {
|
|
10090
|
-
this.selectRowIndex = rowIndex;
|
|
10091
|
-
this.selectGroupIndex = groupIndex;
|
|
10092
|
-
this.showDataFiledPopup = true;
|
|
10093
|
-
// this.dataFieldPopup = true;
|
|
9918
|
+
ActivitiesCreateComponent.prototype.emitTicketCreateForm = function (CreateData, pageForm) {
|
|
9919
|
+
this.createFormData = CreateData;
|
|
9920
|
+
this.pageForm = pageForm;
|
|
10094
9921
|
};
|
|
10095
|
-
|
|
10096
|
-
|
|
10097
|
-
|
|
9922
|
+
return ActivitiesCreateComponent;
|
|
9923
|
+
}());
|
|
9924
|
+
ActivitiesCreateComponent.decorators = [
|
|
9925
|
+
{ type: i0.Component, args: [{
|
|
9926
|
+
selector: 'app-activities-create',
|
|
9927
|
+
template: "\r\n\r\n\r\n\r\n\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=\"col-sm-12 dynamic_request_details\">\r\n <div class=\"card\" style=\"padding: 0;\">\r\n \r\n <!-- <div class=\"header\" style=\"border-bottom: 1px solid #ddd;\">\r\n <h2>Activity Create\r\n </h2>\r\n \r\n </div> -->\r\n\r\n <div class=\"body\" style=\"padding: 0;\">\r\n <div class=\"request-create p-4\">\r\n \r\n\r\n <ng-container *ngIf=\"EntityFormId \">\r\n <app-entity-dynamic-view [EntityFormId]=\"EntityFormId\" [ViewFrom]=\"'Details'\" [Type]=\"'Create'\"\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=\"text-center pull-right\">\r\n\r\n <button class=\"btn btn-small m-l-5 m-r-5 formcancelbtn\" (click)=\"closeCreatePage()\">\r\n {{'Cancel'|translate}}\r\n </button>\r\n\r\n <button class=\"btn btn-small btn-theme m-l-5 m-r-5 formsubmitbtn\" (click)=\"submitTicketCreate()\">\r\n {{'Submit'|translate}}\r\n </button>\r\n\r\n \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 <div class=\"col col-sm-3\">\r\n <div class=\"request-right-side p-t-10\">\r\n \r\n </div>\r\n </div>\r\n \r\n \r\n \r\n </div>\r\n\r\n",
|
|
9928
|
+
styles: [".formcancelbtn{border-radius:20px;border:1px solid #c4cbcb}.formcancelbtn,.formsubmitbtn{padding-left:15px;padding-right:15px;min-width:50px}.formsubmitbtn{border-radius:20px}"]
|
|
9929
|
+
},] }
|
|
9930
|
+
];
|
|
9931
|
+
ActivitiesCreateComponent.ctorParameters = function () { return [
|
|
9932
|
+
{ type: EntityTypeSetupService },
|
|
9933
|
+
{ type: router.Router },
|
|
9934
|
+
{ type: router.ActivatedRoute },
|
|
9935
|
+
{ type: GlobalService }
|
|
9936
|
+
]; };
|
|
9937
|
+
ActivitiesCreateComponent.propDecorators = {
|
|
9938
|
+
EntityFormId: [{ type: i0.Input }],
|
|
9939
|
+
EntityTypeId: [{ type: i0.Input }],
|
|
9940
|
+
ActivityTypeId: [{ type: i0.Input }],
|
|
9941
|
+
RefEntityTypeId: [{ type: i0.Input }],
|
|
9942
|
+
RefTypeId: [{ type: i0.Input }],
|
|
9943
|
+
ViewFrom: [{ type: i0.Input }],
|
|
9944
|
+
ViewAction: [{ type: i0.Input }],
|
|
9945
|
+
closeActivityCreate: [{ type: i0.Output }]
|
|
9946
|
+
};
|
|
9947
|
+
|
|
9948
|
+
var ActivitiesViewComponent = /** @class */ (function () {
|
|
9949
|
+
function ActivitiesViewComponent(entityTypeSetup) {
|
|
9950
|
+
this.entityTypeSetup = entityTypeSetup;
|
|
9951
|
+
this.EntityFormId = null;
|
|
9952
|
+
this.EntityTypeId = null;
|
|
9953
|
+
this.ActivityTypeId = null;
|
|
9954
|
+
this.RefTypeId = null;
|
|
9955
|
+
this.FormData = null;
|
|
9956
|
+
this.createFormData = {};
|
|
9957
|
+
this.pageForm = {};
|
|
9958
|
+
}
|
|
9959
|
+
ActivitiesViewComponent.prototype.ngOnInit = function () {
|
|
9960
|
+
this.getActiveEntityForm();
|
|
10098
9961
|
};
|
|
10099
|
-
|
|
10100
|
-
|
|
10101
|
-
|
|
10102
|
-
|
|
10103
|
-
}
|
|
10104
|
-
|
|
10105
|
-
|
|
9962
|
+
ActivitiesViewComponent.prototype.getActiveEntityForm = function () {
|
|
9963
|
+
var _this = this;
|
|
9964
|
+
this.entityTypeSetup.getActiveEntityForm(this.EntityTypeId).subscribe(function (res) {
|
|
9965
|
+
_this.EntityFormId = res.RecId;
|
|
9966
|
+
}, function (error) {
|
|
9967
|
+
console.log(error);
|
|
9968
|
+
});
|
|
10106
9969
|
};
|
|
10107
|
-
|
|
10108
|
-
|
|
10109
|
-
|
|
10110
|
-
this.pageGroups[rowIndex].Groups[groupIndex].Fields.splice(fieldIndex, 1);
|
|
10111
|
-
this.buildReactiveForm();
|
|
9970
|
+
ActivitiesViewComponent.prototype.emitTicketCreateForm = function (CreateData, pageForm) {
|
|
9971
|
+
this.createFormData = CreateData;
|
|
9972
|
+
this.pageForm = pageForm;
|
|
10112
9973
|
};
|
|
10113
|
-
|
|
10114
|
-
|
|
10115
|
-
|
|
10116
|
-
|
|
10117
|
-
|
|
9974
|
+
return ActivitiesViewComponent;
|
|
9975
|
+
}());
|
|
9976
|
+
ActivitiesViewComponent.decorators = [
|
|
9977
|
+
{ type: i0.Component, args: [{
|
|
9978
|
+
selector: 'app-activities-view',
|
|
9979
|
+
template: "<div class=\"row \">\r\n <div class=\"col col-sm-12\">\r\n <div class=\"row\">\r\n <div class=\"col-sm-12 dynamic_request_details activity-details-view\">\r\n <div class=\"card\">\r\n <div class=\"body\" style=\"padding: 0;\">\r\n <div class=\"request-create \">\r\n <ng-container *ngIf=\"EntityFormId \">\r\n <app-dynamic-details-view [EntityFormId]=\"EntityFormId\" [EntityTypeId]=\"EntityTypeId\"\r\n [PageGroupValues]=\"FormData\" [ViewType]=\"'Details'\">\r\n </app-dynamic-details-view>\r\n </ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>",
|
|
9980
|
+
styles: [".card{margin-bottom:0}"]
|
|
9981
|
+
},] }
|
|
9982
|
+
];
|
|
9983
|
+
ActivitiesViewComponent.ctorParameters = function () { return [
|
|
9984
|
+
{ type: EntityTypeSetupService }
|
|
9985
|
+
]; };
|
|
9986
|
+
ActivitiesViewComponent.propDecorators = {
|
|
9987
|
+
EntityFormId: [{ type: i0.Input }],
|
|
9988
|
+
EntityTypeId: [{ type: i0.Input }],
|
|
9989
|
+
ActivityTypeId: [{ type: i0.Input }],
|
|
9990
|
+
RefTypeId: [{ type: i0.Input }],
|
|
9991
|
+
FormData: [{ type: i0.Input }]
|
|
9992
|
+
};
|
|
9993
|
+
|
|
9994
|
+
var ValidationErrorComponent = /** @class */ (function () {
|
|
9995
|
+
function ValidationErrorComponent(GlobelService) {
|
|
9996
|
+
this.GlobelService = GlobelService;
|
|
9997
|
+
}
|
|
9998
|
+
ValidationErrorComponent.prototype.ngOnInit = function () {
|
|
10118
9999
|
};
|
|
10119
|
-
|
|
10120
|
-
|
|
10121
|
-
|
|
10122
|
-
|
|
10000
|
+
return ValidationErrorComponent;
|
|
10001
|
+
}());
|
|
10002
|
+
ValidationErrorComponent.decorators = [
|
|
10003
|
+
{ type: i0.Component, args: [{
|
|
10004
|
+
selector: 'app-validation-error',
|
|
10005
|
+
template: "\n <ng-container [formGroup]=\"pageForm.form\"> \n <ng-container *ngIf=\"pageForm.form.get(item.Description)?.errors\"\n class=\"invalid-feedback\">\n\n \n <ng-container *ngIf=\"pageForm.form.get(item.Description)['errors']['required']\">\n <ng-container *ngFor=\"let _Vmsg of item.ValidationMessage\">\n <span *ngIf=\"_Vmsg.Type=='Required'\" style=\"color: #bd4147\">{{GlobelService.CurrentLanguage =='Ar'? (_Vmsg.MsgAr ?_Vmsg.MsgAr : (_Vmsg.MsgEn | translate)) :_Vmsg.MsgEn }}</span>\n </ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"pageForm.form.get(item.Description)['errors']['min']\">\n <span class=\"red\">{{GlobelService.CurrentLanguage =='Ar'? (item.LabelAr ?item.LabelAr + ( 'must be greater then'|translate)+ pageForm.form.get(item.Description).errors.min.min : (item.Label + 'must be greater then')|translate)+ pageForm.form.get(item.Description).errors.min.min :item.Label + ( 'must be greater then'|translate)+ pageForm.form.get(item.Description).errors.min.min }}</span>\n <ng-container *ngFor=\"let _Vmsg of item.ValidationMessage\">\n <span *ngIf=\"_Vmsg.Type=='MinMax'\" style=\"color: #bd4147\">{{GlobelService.CurrentLanguage =='Ar'? (_Vmsg.MsgAr ?_Vmsg.MsgAr : (_Vmsg.MsgEn | translate)) :_Vmsg.MsgEn }}</span>\n </ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"pageForm.form.get(item.Description)['errors']['max']\">\n <span class=\"red\">{{GlobelService.CurrentLanguage =='Ar'? (item.LabelAr ?item.LabelAr + ( 'must be less then'|translate)+ pageForm.form.get(item.Description).errors.max.max : (item.Label + 'must be less then')|translate)+ pageForm.form.get(item.Description).errors.max.max :item.Label + ( 'must be less then'|translate)+ pageForm.form.get(item.Description).errors.max.max }}</span>\n <ng-container *ngFor=\"let _Vmsg of item.ValidationMessage\">\n <span *ngIf=\"_Vmsg.Type=='MinMax'\" style=\"color: #bd4147;\">{{GlobelService.CurrentLanguage =='Ar'? (_Vmsg.MsgAr ?_Vmsg.MsgAr : (_Vmsg.MsgEn | translate)) :_Vmsg.MsgEn }}</span>\n </ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"pageForm.form.get(item.Description)['errors']['minlength']\">\n <span class=\"red\">{{GlobelService.CurrentLanguage =='Ar'? (item.LabelAr ?item.LabelAr + ( 'must be at least'|translate)+ pageForm.form.get(item.Description).errors.minlength.requiredLength +( 'characters'|translate) : (item.Label + 'must be at least')|translate)+ pageForm.form.get(item.Description).errors.minlength.requiredLength +( 'characters'|translate) :item.Label + ( 'must be at least'|translate)+ pageForm.form.get(item.Description).errors.minlength.requiredLength +( 'characters'|translate) }}\n </span>\n\n <ng-container *ngFor=\"let _Vmsg of item.ValidationMessage\">\n <span *ngIf=\"_Vmsg.Type=='MinLength'\" style=\"color: #bd4147\">{{GlobelService.CurrentLanguage =='Ar'? (_Vmsg.MsgAr ?_Vmsg.MsgAr : (_Vmsg.MsgEn | translate)) :_Vmsg.MsgEn }}</span>\n </ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"pageForm.form.get(item.Description)['errors']['maxlength']\">\n <span class=\"red\">{{GlobelService.CurrentLanguage =='Ar'? (item.LabelAr ?item.LabelAr + ( 'more then'|translate)+pageForm.form.get(item.Description).errors.maxlength.requiredLength +( 'characters'|translate) : (item.Label | translate)+ ( 'more then'|translate)+pageForm.form.get(item.Description).errors.maxlength.requiredLength +( 'characters'|translate)) :item.Label + ( 'more then'|translate)+pageForm.form.get(item.Description).errors.maxlength.requiredLength +( 'characters'|translate) }}</span>\n\n <ng-container *ngFor=\"let _Vmsg of item.ValidationMessage\">\n <span *ngIf=\"_Vmsg.Type=='MaxLength'\" style=\"color: #bd4147\">{{GlobelService.CurrentLanguage =='Ar'? (_Vmsg.MsgAr ?_Vmsg.MsgAr : (_Vmsg.MsgEn | translate)) :_Vmsg.MsgEn }}</span>\n </ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"pageForm.form.get(item.Description)['errors']['pattern']\">\n <span class=\"red\">{{GlobelService.CurrentLanguage =='Ar'? (item.LabelAr ?item.LabelAr +( 'pattern not valid'|translate) : ((item.Label + 'pattern not valid')|translate)) :item.Label +( 'pattern not valid'|translate) }}</span>\n <ng-container *ngFor=\"let _Vmsg of item.ValidationMessage\">\n <span *ngIf=\"_Vmsg.Type=='Pattern'\" style=\"color: #bd4147\">{{GlobelService.CurrentLanguage =='Ar'? (_Vmsg.MsgAr ?_Vmsg.MsgAr : (_Vmsg.MsgEn | translate)) :_Vmsg.MsgEn }}</span>\n </ng-container>\n</ng-container>\n\n\n\n\n\n </ng-container>\n </ng-container>\n ",
|
|
10006
|
+
styles: ["\n span {\n display:block;\n }\n "]
|
|
10007
|
+
},] }
|
|
10008
|
+
];
|
|
10009
|
+
ValidationErrorComponent.ctorParameters = function () { return [
|
|
10010
|
+
{ type: GlobalService }
|
|
10011
|
+
]; };
|
|
10012
|
+
ValidationErrorComponent.propDecorators = {
|
|
10013
|
+
item: [{ type: i0.Input }],
|
|
10014
|
+
pageForm: [{ type: i0.Input }],
|
|
10015
|
+
fieldsList: [{ type: i0.Input }]
|
|
10016
|
+
};
|
|
10017
|
+
|
|
10018
|
+
var SelfServiceFlowComponent = /** @class */ (function () {
|
|
10019
|
+
function SelfServiceFlowComponent(supportService, fb, entityTypeSetup, globalService, document) {
|
|
10020
|
+
this.supportService = supportService;
|
|
10021
|
+
this.fb = fb;
|
|
10022
|
+
this.entityTypeSetup = entityTypeSetup;
|
|
10023
|
+
this.globalService = globalService;
|
|
10024
|
+
this.document = document;
|
|
10025
|
+
this.IssueType = 11;
|
|
10026
|
+
this.Channel = '3';
|
|
10027
|
+
this.ChannelEn = 'Portal';
|
|
10028
|
+
this.ChannelAr = 'صفحة العميل';
|
|
10029
|
+
this.IssueAllList = [];
|
|
10030
|
+
this.IssueCaseList = [];
|
|
10031
|
+
this.translatePipe = new TranslatePipe(this.globalService);
|
|
10032
|
+
}
|
|
10033
|
+
SelfServiceFlowComponent.prototype.ngOnInit = function () {
|
|
10034
|
+
this.getIssueGroupRequesterMappingByRequesterType();
|
|
10123
10035
|
};
|
|
10124
|
-
|
|
10125
|
-
|
|
10036
|
+
SelfServiceFlowComponent.prototype.getIssueGroupRequesterMappingByRequesterType = function () {
|
|
10037
|
+
var _this = this;
|
|
10038
|
+
this.IssueAllList = [];
|
|
10039
|
+
this.supportService.getIssueGroupRequesterMappingByRequesterType(this.RequesterTypeId).subscribe(function (res) {
|
|
10040
|
+
_this.IssueAllList = res.filter(function (x) { return x.IssueType == _this.IssueType; });
|
|
10041
|
+
_this.IssueCaseList = [];
|
|
10042
|
+
_this.IssueAllList.forEach(function (x) {
|
|
10043
|
+
x.IssueGroup.forEach(function (group) {
|
|
10044
|
+
var _a;
|
|
10045
|
+
(_a = _this.IssueCaseList).push.apply(_a, __spread(group.Issue));
|
|
10046
|
+
});
|
|
10047
|
+
});
|
|
10048
|
+
_this.IssueCaseList.map(function (x) {
|
|
10049
|
+
if (x.IssueImage && !x.IssueImage.includes("Account/ShowImageByPath")) {
|
|
10050
|
+
x.IssueImage = "/Account/ShowImageByPath?_Path=" + x.IssueImage;
|
|
10051
|
+
}
|
|
10052
|
+
});
|
|
10053
|
+
}, function (error) {
|
|
10054
|
+
console.log(error);
|
|
10055
|
+
Swal__default['default'].fire({
|
|
10056
|
+
title: _this.translatePipe.transform(error.error),
|
|
10057
|
+
});
|
|
10058
|
+
});
|
|
10126
10059
|
};
|
|
10127
|
-
|
|
10128
|
-
this.
|
|
10060
|
+
SelfServiceFlowComponent.prototype.selectCase = function (item) {
|
|
10061
|
+
this.selectedCaseItem = item;
|
|
10129
10062
|
};
|
|
10130
|
-
|
|
10131
|
-
|
|
10132
|
-
var fields = [];
|
|
10133
|
-
for (var index = 0; index < this.pageGroups.length; index++) {
|
|
10134
|
-
var Groups = this.pageGroups[index].Groups;
|
|
10135
|
-
for (var i = 0; i < Groups.length; i++) {
|
|
10136
|
-
fields.push.apply(fields, __spread(Groups[i].Fields));
|
|
10137
|
-
}
|
|
10138
|
-
}
|
|
10139
|
-
return fields;
|
|
10063
|
+
SelfServiceFlowComponent.prototype.backtoCard = function () {
|
|
10064
|
+
this.selectedCaseItem = null;
|
|
10140
10065
|
};
|
|
10141
|
-
|
|
10142
|
-
var
|
|
10143
|
-
|
|
10144
|
-
|
|
10066
|
+
SelfServiceFlowComponent.prototype.imageExists = function (image_url) {
|
|
10067
|
+
var http = new XMLHttpRequest();
|
|
10068
|
+
http.open('HEAD', image_url, false);
|
|
10069
|
+
http.send();
|
|
10070
|
+
debugger;
|
|
10071
|
+
return http.status != 404;
|
|
10145
10072
|
};
|
|
10146
|
-
|
|
10147
|
-
|
|
10148
|
-
|
|
10149
|
-
|
|
10150
|
-
|
|
10151
|
-
|
|
10152
|
-
|
|
10153
|
-
|
|
10154
|
-
|
|
10155
|
-
|
|
10156
|
-
|
|
10157
|
-
|
|
10158
|
-
|
|
10159
|
-
|
|
10160
|
-
|
|
10161
|
-
|
|
10162
|
-
|
|
10163
|
-
|
|
10164
|
-
|
|
10165
|
-
|
|
10166
|
-
|
|
10073
|
+
return SelfServiceFlowComponent;
|
|
10074
|
+
}());
|
|
10075
|
+
SelfServiceFlowComponent.decorators = [
|
|
10076
|
+
{ type: i0.Component, args: [{
|
|
10077
|
+
selector: 'app-self-service-flow',
|
|
10078
|
+
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>",
|
|
10079
|
+
styles: [""]
|
|
10080
|
+
},] }
|
|
10081
|
+
];
|
|
10082
|
+
SelfServiceFlowComponent.ctorParameters = function () { return [
|
|
10083
|
+
{ type: SupportRequestService },
|
|
10084
|
+
{ type: forms.FormBuilder },
|
|
10085
|
+
{ type: EntityTypeSetupService },
|
|
10086
|
+
{ type: GlobalService },
|
|
10087
|
+
{ type: undefined, decorators: [{ type: i0.Inject, args: [common.DOCUMENT,] }] }
|
|
10088
|
+
]; };
|
|
10089
|
+
SelfServiceFlowComponent.propDecorators = {
|
|
10090
|
+
RequesterTypeId: [{ type: i0.Input }],
|
|
10091
|
+
RequesterTypeIdEn: [{ type: i0.Input }],
|
|
10092
|
+
RequesterId: [{ type: i0.Input }],
|
|
10093
|
+
RequesterField: [{ type: i0.Input }],
|
|
10094
|
+
IssueType: [{ type: i0.Input }],
|
|
10095
|
+
Source: [{ type: i0.Input }],
|
|
10096
|
+
Channel: [{ type: i0.Input }],
|
|
10097
|
+
ChannelEn: [{ type: i0.Input }],
|
|
10098
|
+
ChannelAr: [{ type: i0.Input }]
|
|
10099
|
+
};
|
|
10100
|
+
|
|
10101
|
+
var CaseListComponent = /** @class */ (function () {
|
|
10102
|
+
function CaseListComponent(supportService, entityTypeSetup, globalService, gridServiceService, document) {
|
|
10103
|
+
this.supportService = supportService;
|
|
10104
|
+
this.entityTypeSetup = entityTypeSetup;
|
|
10105
|
+
this.globalService = globalService;
|
|
10106
|
+
this.gridServiceService = gridServiceService;
|
|
10107
|
+
this.document = document;
|
|
10108
|
+
this.EntityTypeId = null;
|
|
10109
|
+
this.IssueType = 11;
|
|
10110
|
+
this.Channel = '3';
|
|
10111
|
+
this.ChannelEn = 'Portal';
|
|
10112
|
+
this.ChannelAr = 'صفحة العميل';
|
|
10113
|
+
this.translatePipe = new TranslatePipe(this.globalService);
|
|
10114
|
+
this.selfServiceRequestData = [];
|
|
10115
|
+
this.GridSearchType = E_GridSearchType.None;
|
|
10116
|
+
this.IsClientPagination = false;
|
|
10117
|
+
this.totalCount = 0;
|
|
10118
|
+
this.totalRecordCount = 0;
|
|
10119
|
+
this.pageCount = 0;
|
|
10120
|
+
this.pageNo = 1;
|
|
10121
|
+
this.pageSize = 10;
|
|
10122
|
+
this.SortingField = { field: null, direction: null };
|
|
10123
|
+
this.Searchcriteria = {
|
|
10124
|
+
Pagging: {
|
|
10125
|
+
PageNo: this.pageNo,
|
|
10126
|
+
PageSize: this.pageSize,
|
|
10127
|
+
},
|
|
10128
|
+
Where: [],
|
|
10129
|
+
SortOrder: this.SortingField,
|
|
10130
|
+
};
|
|
10131
|
+
this.columnDefs = [
|
|
10132
|
+
{ Field: 'CaseId', Name: 'Case Id', FieldType: E_FieldType.details },
|
|
10133
|
+
{ Field: 'LabourId', Name: 'Labour Id' },
|
|
10134
|
+
{ Field: 'LaborName', Name: 'Labor Name' },
|
|
10135
|
+
{ Field: 'IqamaNumber', Name: 'Iqama Number' },
|
|
10136
|
+
{ Field: 'PassportNumber', Name: 'Passport Number' },
|
|
10137
|
+
{ Field: 'BorderNumber', Name: 'Border Number' },
|
|
10138
|
+
{ Field: 'MobileNumber', Name: 'Mobile Number' },
|
|
10139
|
+
{ Field: 'NationalityEn', Name: 'Nationality' },
|
|
10140
|
+
{ Field: 'ProfessionEn', Name: 'Profession' },
|
|
10141
|
+
{ Field: 'DateofRequest', Name: 'Request Date', DataType: E_DataType.date },
|
|
10142
|
+
{ Field: 'StartDate', Name: 'Start Date', DataType: E_DataType.date },
|
|
10143
|
+
{ Field: 'EndDate', Name: 'End Date', DataType: E_DataType.date },
|
|
10144
|
+
{ Field: 'ProcessStageEn', Name: 'Process Stage En' },
|
|
10145
|
+
{ Field: 'ProcessStageAr', Name: 'Process Stage Ar' },
|
|
10146
|
+
];
|
|
10147
|
+
this.viewTypes = [
|
|
10148
|
+
{ id: 1, name: 'Tab View', class: 'la la-table' },
|
|
10149
|
+
{ id: 2, name: 'Details View', class: 'la la-id-card-o' },
|
|
10150
|
+
];
|
|
10151
|
+
this.selectedIndex = 0;
|
|
10152
|
+
this.viewTypeData = 1;
|
|
10153
|
+
this.selectMode = E_SelectMode.None;
|
|
10154
|
+
this.EntityTypeDetail = null;
|
|
10155
|
+
this.ActiveEntityTypeForm = null;
|
|
10156
|
+
this.CreateItemId = null;
|
|
10157
|
+
this.detailsRecId = null;
|
|
10158
|
+
this.detailsEntityTypeRecId = null;
|
|
10159
|
+
this.displayPopupDetailView = false;
|
|
10160
|
+
this.CaseId = null;
|
|
10161
|
+
this.isDetails = false;
|
|
10162
|
+
this.FieldListDDL = [
|
|
10163
|
+
{ Id: 1, Name: 'Iqama Number', Field: 'IqamaNumber', FieldAr: 'رقم الاقامة' },
|
|
10164
|
+
{ Id: 2, Name: 'CaseId', Field: 'CaseId', FieldAr: 'CaseId' },
|
|
10165
|
+
{ Id: 3, Name: 'LabourId', Field: 'LabourId', FieldAr: 'LabourId' },
|
|
10166
|
+
{ Id: 4, Name: 'LaborName', Field: 'LaborName', FieldAr: 'LaborName' },
|
|
10167
|
+
{ Id: 4, Name: 'PassportNumber', Field: 'PassportNumber', FieldAr: 'رقم الباسبور' },
|
|
10168
|
+
{ Id: 4, Name: 'BorderNumber', Field: 'BorderNumber', FieldAr: 'رقم الحدود' },
|
|
10169
|
+
{ Id: 4, Name: 'MobileNumber', Field: 'MobileNumber', FieldAr: 'رقم الجوال' },
|
|
10170
|
+
];
|
|
10171
|
+
this.isShowCreateRequest = false;
|
|
10172
|
+
this.StatusAndStageList = [];
|
|
10173
|
+
this.StatusId = 1;
|
|
10174
|
+
this.selectedStage = 0;
|
|
10175
|
+
this.selectedStageobj = 0;
|
|
10176
|
+
this.wfActionData = [];
|
|
10177
|
+
this.workflowEntityFormId = null;
|
|
10178
|
+
this.action = null;
|
|
10179
|
+
this.showWorkflowPopup = false;
|
|
10180
|
+
this.GridCheckedData = [];
|
|
10181
|
+
}
|
|
10182
|
+
CaseListComponent.prototype.ngOnInit = function () {
|
|
10183
|
+
this.loadGrid([], 0);
|
|
10184
|
+
if (this.EntityTypeId) {
|
|
10185
|
+
this.getEntityTypeDetails();
|
|
10186
|
+
this.getWorkflowStatusWithStage();
|
|
10187
|
+
this.getActiveEntityForm();
|
|
10167
10188
|
}
|
|
10168
|
-
|
|
10189
|
+
this.getListDatas(this.Searchcriteria);
|
|
10169
10190
|
};
|
|
10170
|
-
|
|
10191
|
+
CaseListComponent.prototype.getListDatas = function (Criteria) {
|
|
10171
10192
|
var _this = this;
|
|
10172
|
-
this.
|
|
10173
|
-
|
|
10174
|
-
|
|
10175
|
-
|
|
10176
|
-
|
|
10177
|
-
|
|
10193
|
+
this.Searchcriteria = Criteria;
|
|
10194
|
+
this.entityTypeSetup.getDynamicAll(Criteria, this.EntityTypeId, this.StatusId, this.RequesterId).subscribe(function (res) {
|
|
10195
|
+
// alert("data");
|
|
10196
|
+
_this.selfServiceRequestData = res.Data;
|
|
10197
|
+
_this.totalRecordCount = res.TotalCount;
|
|
10198
|
+
console.log('datas', res);
|
|
10199
|
+
if (res && res.Data) {
|
|
10200
|
+
res.Data = res.Data.map(function (x) {
|
|
10201
|
+
if (x.DateOfRequest) {
|
|
10202
|
+
x.DateofRequest = x.DateOfRequest;
|
|
10178
10203
|
}
|
|
10179
|
-
|
|
10180
|
-
|
|
10204
|
+
return x;
|
|
10205
|
+
});
|
|
10181
10206
|
}
|
|
10207
|
+
_this.loadGrid(res.Data, res.TotalCount);
|
|
10208
|
+
_this.getPageCount();
|
|
10182
10209
|
}, function (error) {
|
|
10183
10210
|
console.log(error);
|
|
10211
|
+
Swal__default['default'].fire({
|
|
10212
|
+
title: _this.translatePipe.transform(error.error),
|
|
10213
|
+
});
|
|
10184
10214
|
});
|
|
10185
10215
|
};
|
|
10186
|
-
|
|
10187
|
-
|
|
10216
|
+
CaseListComponent.prototype.loadGrid = function (data, TotalRecord) {
|
|
10217
|
+
if (data) {
|
|
10218
|
+
if (data.length > 0)
|
|
10219
|
+
this.gridServiceService.onGridRefresh.next({
|
|
10220
|
+
isTrue: true,
|
|
10221
|
+
list: data,
|
|
10222
|
+
count: data.length,
|
|
10223
|
+
grid: 1,
|
|
10224
|
+
totalRecordCount: TotalRecord,
|
|
10225
|
+
});
|
|
10226
|
+
else
|
|
10227
|
+
this.gridServiceService.onGridRefresh.next({
|
|
10228
|
+
isTrue: true,
|
|
10229
|
+
grid: 1,
|
|
10230
|
+
list: [],
|
|
10231
|
+
count: 0,
|
|
10232
|
+
totalRecordCount: 0,
|
|
10233
|
+
});
|
|
10234
|
+
}
|
|
10235
|
+
else
|
|
10236
|
+
this.gridServiceService.onGridRefresh.next({
|
|
10237
|
+
isTrue: true,
|
|
10238
|
+
grid: 1,
|
|
10239
|
+
list: [],
|
|
10240
|
+
count: 0,
|
|
10241
|
+
totalRecordCount: 0,
|
|
10242
|
+
});
|
|
10188
10243
|
};
|
|
10189
|
-
|
|
10190
|
-
|
|
10191
|
-
|
|
10244
|
+
CaseListComponent.prototype.viewType = function (data, index) {
|
|
10245
|
+
this.selectedIndex = index;
|
|
10246
|
+
this.viewTypeData = data.id;
|
|
10192
10247
|
};
|
|
10193
|
-
|
|
10194
|
-
|
|
10195
|
-
|
|
10196
|
-
|
|
10197
|
-
DateField: '06/13/2021',
|
|
10198
|
-
DateTime: '06/13/2025',
|
|
10199
|
-
textArea: 'xzxx cscc',
|
|
10200
|
-
Bolean: true,
|
|
10201
|
-
};
|
|
10202
|
-
this._PageForm.form.patchValue(this.PageGroupValues);
|
|
10248
|
+
CaseListComponent.prototype.backtoCard = function () {
|
|
10249
|
+
this.CreateItemId = null;
|
|
10250
|
+
this.isShowCreateRequest = false;
|
|
10251
|
+
this.supportService.IsShowBackBtn = false;
|
|
10203
10252
|
};
|
|
10204
|
-
|
|
10205
|
-
}());
|
|
10206
|
-
DynamicDetailsViewComponent.decorators = [
|
|
10207
|
-
{ type: i0.Component, args: [{
|
|
10208
|
-
selector: 'app-dynamic-details-view',
|
|
10209
|
-
template: "\r\n<ng-container *ngIf=\"ViewType=='Details'; else elseTemplate\">\r\n\r\n <div class=\"row\" *ngFor=\"let row of pageGroups; let rowIndex = index\">\r\n\r\n <div class=\"col clearfix\" [style.flex-basis]=\"group.Width + '%'\"\r\n *ngFor=\"let group of row.Groups; let groupIndex = index\">\r\n\r\n <ng-container *ngIf=\"group.Fields && group.Fields.length > 0\">\r\n <app-entity-dynamic-field [fieldsList]=\"group.Fields\" [Type]=\"'Details'\" [PageGroupValues]=\"PageGroupValues\">\r\n </app-entity-dynamic-field>\r\n\r\n </ng-container>\r\n\r\n </div>\r\n\r\n </div>\r\n \r\n <ng-container *ngIf=\"defaultPageGroups && defaultPageGroups.length > 0\">\r\n <br>\r\n <hr>\r\n <h2 class=\"stage-title\">{{'Identification Details'|translate}}</h2>\r\n <br>\r\n \r\n <div class=\"row\" *ngFor=\"let row of defaultPageGroups; let rowIndex = index\">\r\n \r\n <div class=\"col clearfix \" [style.flex-basis]=\"group.Width + '%'\"\r\n *ngFor=\"let group of row.Groups; let groupIndex = index\">\r\n \r\n <ng-container *ngIf=\"group.Fields && group.Fields.length > 0\">\r\n <app-entity-dynamic-field [fieldsList]=\"group.Fields\" [Type]=\"'Details'\" [PageGroupValues]=\"PageGroupValues\">\r\n </app-entity-dynamic-field>\r\n \r\n </ng-container>\r\n \r\n </div>\r\n \r\n </div>\r\n </ng-container>\r\n</ng-container>\r\n<ng-template #elseTemplate>\r\n\r\n\r\n\r\n <div class=\"row dynamic-form-detail\">\r\n <div class=\"col col-lg-12\">\r\n <div class=\"card\">\r\n <div class=\"header clearfix\">\r\n <h2 class=\"float-left\">{{EntityTypeDetail?.Description}} {{'Design Form'|translate}}</h2>\r\n\r\n <a href=\"javascript:void(0)\" class=\"pull-right themecolor action-btn m-l-5\" (click)=\"getEntityForm()\">\r\n <i class=\"la la-refresh\"></i>\r\n </a>\r\n\r\n\r\n </div>\r\n <div class=\"page-details design-group-body\">\r\n\r\n <form [formGroup]=\"_PageForm.form\">\r\n <section class=\"details-wrapper engine-dev col-sm-12\" style=\"background: #eee;padding-top: 15px;\">\r\n <div class=\"row detail-row\" *ngFor=\"let row of pageGroups; let rowIndex = index\"\r\n style=\"background: #eee;\">\r\n\r\n <div class=\"detail-group col clearfix padding-0 {{group.Class}}\"\r\n [ngClass]=\"{'vertical-group': group.Direction == 1,'horizontal-group': group.Direction == 2}\"\r\n [style.flex-basis]=\"group.Width + '%'\" *ngFor=\"let group of row.Groups; let groupIndex = index\">\r\n\r\n <div class=\"card\">\r\n\r\n <ng-container *ngIf=\"group.Fields && group.Fields.length > 0\">\r\n <div class=\"body\">\r\n <!-- *ngIf=\"group.Fields && group.Fields.length > 0\" -->\r\n <app-entity-dynamic-field [fieldsList]=\"group.Fields\" [pageForm]=\"_PageForm\"\r\n [dynamicFormGroup]=\"_PageForm.form\" [submitted]=\"submitted\" [rowIndex]=\"rowIndex\"\r\n [groupIndex]=\"groupIndex\" [Type]=\"'Details'\" [PageGroupValues]=\"PageGroupValues\"\r\n (deleteField)=\"deleteField($event.fieldIndex,$event.groupIndex,$event.rowIndex)\"\r\n (upField)=\"upField($event.fieldIndex,$event.groupIndex,$event.rowIndex)\"\r\n (downField)=\"downField($event.fieldIndex,$event.groupIndex,$event.rowIndex)\">\r\n\r\n </app-entity-dynamic-field>\r\n </div>\r\n </ng-container>\r\n\r\n </div>\r\n\r\n\r\n </div>\r\n\r\n </div>\r\n </section>\r\n </form>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n\r\n\r\n</ng-template>\r\n\r\n\r\n",
|
|
10210
|
-
styles: [".field .row>.col:first-child{max-width:210px}"]
|
|
10211
|
-
},] }
|
|
10212
|
-
];
|
|
10213
|
-
DynamicDetailsViewComponent.ctorParameters = function () { return [
|
|
10214
|
-
{ type: EntityTypeSetupService },
|
|
10215
|
-
{ type: router.Router },
|
|
10216
|
-
{ type: forms.FormBuilder },
|
|
10217
|
-
{ type: router.ActivatedRoute }
|
|
10218
|
-
]; };
|
|
10219
|
-
DynamicDetailsViewComponent.propDecorators = {
|
|
10220
|
-
ViewType: [{ type: i0.Input }],
|
|
10221
|
-
EntityTypeId: [{ type: i0.Input }],
|
|
10222
|
-
EntityFormId: [{ type: i0.Input }],
|
|
10223
|
-
pageGroups: [{ type: i0.Input }],
|
|
10224
|
-
defaultPageGroups: [{ type: i0.Input }],
|
|
10225
|
-
PageGroupValues: [{ type: i0.Input }]
|
|
10226
|
-
};
|
|
10227
|
-
function moveItem(data, from, to) {
|
|
10228
|
-
var f = data.splice(from, 1)[0];
|
|
10229
|
-
data.splice(to, 0, f);
|
|
10230
|
-
return data;
|
|
10231
|
-
}
|
|
10232
|
-
|
|
10233
|
-
var ActivitiesCreateComponent = /** @class */ (function () {
|
|
10234
|
-
function ActivitiesCreateComponent(entityTypeSetup, router, route, globalService) {
|
|
10235
|
-
this.entityTypeSetup = entityTypeSetup;
|
|
10236
|
-
this.router = router;
|
|
10237
|
-
this.route = route;
|
|
10238
|
-
this.globalService = globalService;
|
|
10239
|
-
this.translatePipe = new TranslatePipe(this.globalService);
|
|
10240
|
-
this.EntityFormId = null;
|
|
10241
|
-
this.EntityTypeId = null;
|
|
10242
|
-
this.ActivityTypeId = null;
|
|
10243
|
-
this.RefEntityTypeId = null;
|
|
10244
|
-
this.RefTypeId = null;
|
|
10245
|
-
this.ViewFrom = "Page";
|
|
10246
|
-
this.ViewAction = "Activity";
|
|
10247
|
-
this.closeActivityCreate = new i0.EventEmitter();
|
|
10248
|
-
this.createFormData = {};
|
|
10249
|
-
this.pageForm = {};
|
|
10250
|
-
}
|
|
10251
|
-
ActivitiesCreateComponent.prototype.ngOnInit = function () {
|
|
10253
|
+
CaseListComponent.prototype.getEntityTypeDetails = function () {
|
|
10252
10254
|
var _this = this;
|
|
10253
|
-
this.
|
|
10254
|
-
|
|
10255
|
-
|
|
10256
|
-
|
|
10257
|
-
|
|
10255
|
+
this.entityTypeSetup
|
|
10256
|
+
.getSingleEntityTypeSetupById(this.EntityTypeId)
|
|
10257
|
+
.subscribe(function (res) {
|
|
10258
|
+
_this.EntityTypeDetail = res;
|
|
10259
|
+
if (_this.globalService.CurrentLanguage == 'Ar') {
|
|
10260
|
+
_this.pageTitle = _this.EntityTypeDetail.DescriptionAr;
|
|
10258
10261
|
}
|
|
10259
|
-
|
|
10260
|
-
|
|
10261
|
-
this.getActiveEntityForm();
|
|
10262
|
-
debugger;
|
|
10263
|
-
this.globalService.submitComments.subscribe(function (x) {
|
|
10264
|
-
debugger;
|
|
10265
|
-
if (x.message) {
|
|
10266
|
-
_this.createFormData.Comments = x.message;
|
|
10267
|
-
_this.submitTicketCreate(true);
|
|
10262
|
+
else {
|
|
10263
|
+
_this.pageTitle = _this.EntityTypeDetail.Description;
|
|
10268
10264
|
}
|
|
10265
|
+
}, function (error) {
|
|
10266
|
+
console.log(error);
|
|
10269
10267
|
});
|
|
10270
10268
|
};
|
|
10271
|
-
|
|
10269
|
+
CaseListComponent.prototype.getActiveEntityForm = function () {
|
|
10272
10270
|
var _this = this;
|
|
10273
|
-
this.entityTypeSetup.
|
|
10274
|
-
_this.
|
|
10271
|
+
this.entityTypeSetup.getActiveEntityFormByList(this.EntityTypeId).subscribe(function (res) {
|
|
10272
|
+
_this.ActiveEntityTypeForm = res;
|
|
10273
|
+
_this.getFormList();
|
|
10275
10274
|
}, function (error) {
|
|
10276
10275
|
console.log(error);
|
|
10277
10276
|
});
|
|
10278
10277
|
};
|
|
10279
|
-
|
|
10280
|
-
this.
|
|
10281
|
-
|
|
10282
|
-
|
|
10283
|
-
|
|
10284
|
-
|
|
10285
|
-
|
|
10286
|
-
|
|
10287
|
-
|
|
10288
|
-
|
|
10289
|
-
title: this.translatePipe.transform('Fill all mandatory fields'),
|
|
10290
|
-
});
|
|
10291
|
-
// Swal.fire('Fill all mandatory fields', '', 'warning');
|
|
10292
|
-
return;
|
|
10293
|
-
}
|
|
10294
|
-
}
|
|
10295
|
-
else {
|
|
10296
|
-
if (!this.pageForm.valid) {
|
|
10297
|
-
Swal__default['default'].fire({
|
|
10298
|
-
title: this.translatePipe.transform('Fill all mandatory fields'),
|
|
10278
|
+
CaseListComponent.prototype.getFormList = function () {
|
|
10279
|
+
var _listdata = this.ActiveEntityTypeForm.DetailsViewData;
|
|
10280
|
+
if (_listdata) {
|
|
10281
|
+
var list = JSON.parse(_listdata);
|
|
10282
|
+
if (list && list.length > 0) {
|
|
10283
|
+
this.columnDefs = [];
|
|
10284
|
+
this.columnDefs.push({
|
|
10285
|
+
Field: 'CaseId',
|
|
10286
|
+
Name: 'CaseId',
|
|
10287
|
+
FieldType: E_FieldType.details,
|
|
10299
10288
|
});
|
|
10300
|
-
|
|
10289
|
+
for (var index = 0; index < list.length; index++) {
|
|
10290
|
+
var fields = list[index].Fields;
|
|
10291
|
+
if (fields) {
|
|
10292
|
+
var _column = {
|
|
10293
|
+
Field: fields.Description,
|
|
10294
|
+
Name: fields.Label,
|
|
10295
|
+
DataType: fields.DataType,
|
|
10296
|
+
};
|
|
10297
|
+
this.columnDefs.push(_column);
|
|
10298
|
+
}
|
|
10299
|
+
else {
|
|
10300
|
+
var _currfield = list[index];
|
|
10301
|
+
this.columnDefs.push(_currfield);
|
|
10302
|
+
}
|
|
10303
|
+
}
|
|
10304
|
+
this.columnDefs.push({ Field: "ProcessStageEn", Name: 'Process Stage' });
|
|
10301
10305
|
}
|
|
10302
10306
|
}
|
|
10303
|
-
|
|
10304
|
-
|
|
10305
|
-
|
|
10306
|
-
|
|
10307
|
+
};
|
|
10308
|
+
CaseListComponent.prototype.openPopupCreatePage = function () {
|
|
10309
|
+
this.CreateItemId = this.EntityTypeId;
|
|
10310
|
+
this.isShowCreateRequest = true;
|
|
10311
|
+
this.supportService.IsShowBackBtn = true;
|
|
10312
|
+
};
|
|
10313
|
+
CaseListComponent.prototype.closePopupCreateView = function (Type, Data) {
|
|
10314
|
+
this.CreateItemId = null;
|
|
10315
|
+
this.isShowCreateRequest = false;
|
|
10316
|
+
};
|
|
10317
|
+
CaseListComponent.prototype.getPaginationListData = function (pageNo, pageSize) {
|
|
10318
|
+
this.pageNo = pageNo;
|
|
10319
|
+
if (pageSize)
|
|
10320
|
+
this.pageSize = pageSize;
|
|
10321
|
+
this.Searchcriteria.Pagging.PageNo = this.pageNo;
|
|
10322
|
+
this.Searchcriteria.Pagging.PageSize = this.pageSize;
|
|
10323
|
+
//this._getPageList();
|
|
10324
|
+
this.getListDatas(this.Searchcriteria);
|
|
10325
|
+
this.getPageCount();
|
|
10326
|
+
};
|
|
10327
|
+
CaseListComponent.prototype.getPageCount = function () {
|
|
10328
|
+
this.pageCount = Math.ceil(this.totalRecordCount / this.pageSize);
|
|
10329
|
+
};
|
|
10330
|
+
CaseListComponent.prototype.openDetailsPopup = function (data) {
|
|
10331
|
+
this.isDetails = true;
|
|
10332
|
+
this.CaseId = data.CaseId;
|
|
10333
|
+
this.detailsRecId = data.RecId; // RefRecId is the main recid
|
|
10334
|
+
this.detailsEntityTypeRecId = data.EntityTypeRecId;
|
|
10335
|
+
this.supportService.IsShowBackBtn = true;
|
|
10336
|
+
this.displayPopupDetailView = true;
|
|
10337
|
+
};
|
|
10338
|
+
CaseListComponent.prototype.closePopupDetailView = function () {
|
|
10339
|
+
this.isDetails = false;
|
|
10340
|
+
this.detailsRecId = null;
|
|
10341
|
+
this.detailsEntityTypeRecId = null;
|
|
10342
|
+
this.displayPopupDetailView = false;
|
|
10343
|
+
this.supportService.IsShowBackBtn = false;
|
|
10344
|
+
};
|
|
10345
|
+
CaseListComponent.prototype.SortGridData = function (item) {
|
|
10346
|
+
if (item) {
|
|
10347
|
+
this.CurrentSortingField = item.Name;
|
|
10348
|
+
if (this.SortingField.direction == '0')
|
|
10349
|
+
this.SortingField.direction = '1';
|
|
10350
|
+
else
|
|
10351
|
+
this.SortingField.direction = '0';
|
|
10352
|
+
this.SortingField.field = item.Field;
|
|
10307
10353
|
}
|
|
10308
10354
|
else {
|
|
10309
|
-
|
|
10310
|
-
|
|
10355
|
+
this.CurrentSortingField = null;
|
|
10356
|
+
this.SortingField.direction = '0';
|
|
10311
10357
|
}
|
|
10312
|
-
|
|
10313
|
-
|
|
10314
|
-
|
|
10315
|
-
|
|
10316
|
-
|
|
10317
|
-
|
|
10318
|
-
|
|
10319
|
-
|
|
10358
|
+
this.getListDatas(this.Searchcriteria);
|
|
10359
|
+
};
|
|
10360
|
+
CaseListComponent.prototype.SortDirection = function (direction) {
|
|
10361
|
+
this.SortingField.direction = direction;
|
|
10362
|
+
this.getListDatas(this.Searchcriteria);
|
|
10363
|
+
};
|
|
10364
|
+
CaseListComponent.prototype.searchData = function (event) {
|
|
10365
|
+
var filtervals = [];
|
|
10366
|
+
if (event.keyCode == 13 && this.SearchBox != null) {
|
|
10367
|
+
filtervals.push({
|
|
10368
|
+
Field: 'CaseId:IqamaNumber:PassportNumber:BorderNumber:MobileNumber:LabourId:LaborName',
|
|
10369
|
+
TableAlias: '',
|
|
10370
|
+
Operator: '',
|
|
10371
|
+
Value: this.SearchBox,
|
|
10320
10372
|
});
|
|
10321
|
-
|
|
10322
|
-
|
|
10373
|
+
this.Searchcriteria.Where = filtervals;
|
|
10374
|
+
this.getListDatas(this.Searchcriteria);
|
|
10375
|
+
}
|
|
10376
|
+
};
|
|
10377
|
+
CaseListComponent.prototype.getWorkflowStatusWithStage = function () {
|
|
10378
|
+
var _this = this;
|
|
10379
|
+
this.entityTypeSetup
|
|
10380
|
+
.getAllWfStage(null, this.EntityTypeId, true)
|
|
10381
|
+
.subscribe(function (res) {
|
|
10382
|
+
_this.StatusAndStageList = res.Data;
|
|
10383
|
+
// .sort((a, b) => {
|
|
10384
|
+
// if (a.StageId < b.StageId) return -1;
|
|
10385
|
+
// else if (a.StageId > b.StageId) return 1;
|
|
10386
|
+
// else return 0;
|
|
10387
|
+
// });
|
|
10388
|
+
var showallIndex = _this.StatusAndStageList.findIndex(function (x) { return x.OrderId == -1; });
|
|
10389
|
+
var arrayindex = _this.StatusAndStageList.length - 1;
|
|
10390
|
+
var element = _this.StatusAndStageList.splice(showallIndex, 1)[0];
|
|
10391
|
+
_this.StatusAndStageList.splice(arrayindex, 0, element);
|
|
10392
|
+
_this.selectStage(_this.StatusAndStageList[0]);
|
|
10393
|
+
console.log(res.Data);
|
|
10323
10394
|
}, function (error) {
|
|
10395
|
+
var _a;
|
|
10324
10396
|
console.log(error);
|
|
10397
|
+
Swal__default['default'].fire(_this.translatePipe.transform((_a = error.error) === null || _a === void 0 ? void 0 : _a.ExceptionMessage), _this.translatePipe.transform(error === null || error === void 0 ? void 0 : error.message), 'error');
|
|
10325
10398
|
});
|
|
10326
10399
|
};
|
|
10327
|
-
|
|
10328
|
-
this.
|
|
10329
|
-
this.
|
|
10330
|
-
|
|
10331
|
-
|
|
10332
|
-
|
|
10333
|
-
|
|
10334
|
-
|
|
10335
|
-
|
|
10336
|
-
|
|
10337
|
-
|
|
10338
|
-
|
|
10339
|
-
|
|
10340
|
-
ActivitiesCreateComponent.ctorParameters = function () { return [
|
|
10341
|
-
{ type: EntityTypeSetupService },
|
|
10342
|
-
{ type: router.Router },
|
|
10343
|
-
{ type: router.ActivatedRoute },
|
|
10344
|
-
{ type: GlobalService }
|
|
10345
|
-
]; };
|
|
10346
|
-
ActivitiesCreateComponent.propDecorators = {
|
|
10347
|
-
EntityFormId: [{ type: i0.Input }],
|
|
10348
|
-
EntityTypeId: [{ type: i0.Input }],
|
|
10349
|
-
ActivityTypeId: [{ type: i0.Input }],
|
|
10350
|
-
RefEntityTypeId: [{ type: i0.Input }],
|
|
10351
|
-
RefTypeId: [{ type: i0.Input }],
|
|
10352
|
-
ViewFrom: [{ type: i0.Input }],
|
|
10353
|
-
ViewAction: [{ type: i0.Input }],
|
|
10354
|
-
closeActivityCreate: [{ type: i0.Output }]
|
|
10355
|
-
};
|
|
10356
|
-
|
|
10357
|
-
var ActivitiesViewComponent = /** @class */ (function () {
|
|
10358
|
-
function ActivitiesViewComponent(entityTypeSetup) {
|
|
10359
|
-
this.entityTypeSetup = entityTypeSetup;
|
|
10360
|
-
this.EntityFormId = null;
|
|
10361
|
-
this.EntityTypeId = null;
|
|
10362
|
-
this.ActivityTypeId = null;
|
|
10363
|
-
this.RefTypeId = null;
|
|
10364
|
-
this.FormData = null;
|
|
10365
|
-
this.createFormData = {};
|
|
10366
|
-
this.pageForm = {};
|
|
10367
|
-
}
|
|
10368
|
-
ActivitiesViewComponent.prototype.ngOnInit = function () {
|
|
10369
|
-
this.getActiveEntityForm();
|
|
10400
|
+
CaseListComponent.prototype.selectStage = function (item) {
|
|
10401
|
+
this.totalRecordCount = 0;
|
|
10402
|
+
this.selectedStage = item.RecId;
|
|
10403
|
+
this.selectedStageobj = item;
|
|
10404
|
+
if (item.StageId != null) {
|
|
10405
|
+
this.StatusId = item.StageId;
|
|
10406
|
+
}
|
|
10407
|
+
else {
|
|
10408
|
+
this.StatusId = null;
|
|
10409
|
+
this.Searchcriteria.Where = null;
|
|
10410
|
+
}
|
|
10411
|
+
this.getWfStageAction(this.EntityTypeId, this.StatusId);
|
|
10412
|
+
this.getListDatas(this.Searchcriteria);
|
|
10370
10413
|
};
|
|
10371
|
-
|
|
10414
|
+
CaseListComponent.prototype.getWfStageAction = function (EntityTypeId, StageId) {
|
|
10372
10415
|
var _this = this;
|
|
10373
|
-
this.entityTypeSetup.
|
|
10374
|
-
_this.
|
|
10416
|
+
this.entityTypeSetup.urlGetWfStageAction(EntityTypeId, StageId).subscribe(function (res) {
|
|
10417
|
+
_this.wfActionData = res;
|
|
10418
|
+
console.log(res);
|
|
10375
10419
|
}, function (error) {
|
|
10376
|
-
|
|
10420
|
+
error.error;
|
|
10377
10421
|
});
|
|
10378
10422
|
};
|
|
10379
|
-
|
|
10380
|
-
this.
|
|
10381
|
-
|
|
10382
|
-
|
|
10383
|
-
|
|
10384
|
-
|
|
10385
|
-
|
|
10386
|
-
|
|
10387
|
-
|
|
10388
|
-
|
|
10389
|
-
|
|
10390
|
-
|
|
10391
|
-
|
|
10392
|
-
|
|
10393
|
-
|
|
10394
|
-
|
|
10395
|
-
|
|
10396
|
-
|
|
10397
|
-
|
|
10398
|
-
|
|
10399
|
-
|
|
10400
|
-
|
|
10401
|
-
|
|
10402
|
-
|
|
10403
|
-
|
|
10404
|
-
|
|
10405
|
-
|
|
10406
|
-
|
|
10407
|
-
ValidationErrorComponent.prototype.ngOnInit = function () {
|
|
10423
|
+
CaseListComponent.prototype.getStatusField = function (data) {
|
|
10424
|
+
if (this.GridCheckedData.length <= 0) {
|
|
10425
|
+
Swal__default['default'].fire(this.translatePipe.transform('Atleast Select One Row'));
|
|
10426
|
+
return;
|
|
10427
|
+
}
|
|
10428
|
+
this.action = data.ActionRecId;
|
|
10429
|
+
this.workflowEntityFormId = data.WorkFlowForm;
|
|
10430
|
+
this.showWorkflowPopup = true;
|
|
10431
|
+
this.entityTypeSetup.onshowWorkflowPopup.next({
|
|
10432
|
+
showWorkflowPopup: true,
|
|
10433
|
+
fieldConfig: [],
|
|
10434
|
+
});
|
|
10435
|
+
// this.EntityTypeSetupService.urlGetStatusField(data.ActionRecId).subscribe(
|
|
10436
|
+
// (res: any) => {
|
|
10437
|
+
//
|
|
10438
|
+
// this.wfStatusFields = res.Data;
|
|
10439
|
+
// this.EntityTypeSetupService.onshowWorkflowPopup.next({
|
|
10440
|
+
// showWorkflowPopup: true,
|
|
10441
|
+
// fieldConfig: res.Data,
|
|
10442
|
+
// });
|
|
10443
|
+
// // this.showWorkflowPopup = true;
|
|
10444
|
+
// console.log(res);
|
|
10445
|
+
// },
|
|
10446
|
+
// (error) => {
|
|
10447
|
+
//
|
|
10448
|
+
// error.error;
|
|
10449
|
+
// }
|
|
10450
|
+
// );
|
|
10408
10451
|
};
|
|
10409
|
-
|
|
10410
|
-
|
|
10411
|
-
ValidationErrorComponent.decorators = [
|
|
10412
|
-
{ type: i0.Component, args: [{
|
|
10413
|
-
selector: 'app-validation-error',
|
|
10414
|
-
template: "\n <ng-container [formGroup]=\"pageForm.form\"> \n <ng-container *ngIf=\"pageForm.form.get(item.Description)?.errors\"\n class=\"invalid-feedback\">\n\n \n <ng-container *ngIf=\"pageForm.form.get(item.Description)['errors']['required']\">\n <ng-container *ngFor=\"let _Vmsg of item.ValidationMessage\">\n <span *ngIf=\"_Vmsg.Type=='Required'\" style=\"color: #bd4147\">{{GlobelService.CurrentLanguage =='Ar'? (_Vmsg.MsgAr ?_Vmsg.MsgAr : (_Vmsg.MsgEn | translate)) :_Vmsg.MsgEn }}</span>\n </ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"pageForm.form.get(item.Description)['errors']['min']\">\n <span class=\"red\">{{GlobelService.CurrentLanguage =='Ar'? (item.LabelAr ?item.LabelAr + ( 'must be greater then'|translate)+ pageForm.form.get(item.Description).errors.min.min : (item.Label + 'must be greater then')|translate)+ pageForm.form.get(item.Description).errors.min.min :item.Label + ( 'must be greater then'|translate)+ pageForm.form.get(item.Description).errors.min.min }}</span>\n <ng-container *ngFor=\"let _Vmsg of item.ValidationMessage\">\n <span *ngIf=\"_Vmsg.Type=='MinMax'\" style=\"color: #bd4147\">{{GlobelService.CurrentLanguage =='Ar'? (_Vmsg.MsgAr ?_Vmsg.MsgAr : (_Vmsg.MsgEn | translate)) :_Vmsg.MsgEn }}</span>\n </ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"pageForm.form.get(item.Description)['errors']['max']\">\n <span class=\"red\">{{GlobelService.CurrentLanguage =='Ar'? (item.LabelAr ?item.LabelAr + ( 'must be less then'|translate)+ pageForm.form.get(item.Description).errors.max.max : (item.Label + 'must be less then')|translate)+ pageForm.form.get(item.Description).errors.max.max :item.Label + ( 'must be less then'|translate)+ pageForm.form.get(item.Description).errors.max.max }}</span>\n <ng-container *ngFor=\"let _Vmsg of item.ValidationMessage\">\n <span *ngIf=\"_Vmsg.Type=='MinMax'\" style=\"color: #bd4147;\">{{GlobelService.CurrentLanguage =='Ar'? (_Vmsg.MsgAr ?_Vmsg.MsgAr : (_Vmsg.MsgEn | translate)) :_Vmsg.MsgEn }}</span>\n </ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"pageForm.form.get(item.Description)['errors']['minlength']\">\n <span class=\"red\">{{GlobelService.CurrentLanguage =='Ar'? (item.LabelAr ?item.LabelAr + ( 'must be at least'|translate)+ pageForm.form.get(item.Description).errors.minlength.requiredLength +( 'characters'|translate) : (item.Label + 'must be at least')|translate)+ pageForm.form.get(item.Description).errors.minlength.requiredLength +( 'characters'|translate) :item.Label + ( 'must be at least'|translate)+ pageForm.form.get(item.Description).errors.minlength.requiredLength +( 'characters'|translate) }}\n </span>\n\n <ng-container *ngFor=\"let _Vmsg of item.ValidationMessage\">\n <span *ngIf=\"_Vmsg.Type=='MinLength'\" style=\"color: #bd4147\">{{GlobelService.CurrentLanguage =='Ar'? (_Vmsg.MsgAr ?_Vmsg.MsgAr : (_Vmsg.MsgEn | translate)) :_Vmsg.MsgEn }}</span>\n </ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"pageForm.form.get(item.Description)['errors']['maxlength']\">\n <span class=\"red\">{{GlobelService.CurrentLanguage =='Ar'? (item.LabelAr ?item.LabelAr + ( 'more then'|translate)+pageForm.form.get(item.Description).errors.maxlength.requiredLength +( 'characters'|translate) : (item.Label | translate)+ ( 'more then'|translate)+pageForm.form.get(item.Description).errors.maxlength.requiredLength +( 'characters'|translate)) :item.Label + ( 'more then'|translate)+pageForm.form.get(item.Description).errors.maxlength.requiredLength +( 'characters'|translate) }}</span>\n\n <ng-container *ngFor=\"let _Vmsg of item.ValidationMessage\">\n <span *ngIf=\"_Vmsg.Type=='MaxLength'\" style=\"color: #bd4147\">{{GlobelService.CurrentLanguage =='Ar'? (_Vmsg.MsgAr ?_Vmsg.MsgAr : (_Vmsg.MsgEn | translate)) :_Vmsg.MsgEn }}</span>\n </ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"pageForm.form.get(item.Description)['errors']['pattern']\">\n <span class=\"red\">{{GlobelService.CurrentLanguage =='Ar'? (item.LabelAr ?item.LabelAr +( 'pattern not valid'|translate) : ((item.Label + 'pattern not valid')|translate)) :item.Label +( 'pattern not valid'|translate) }}</span>\n <ng-container *ngFor=\"let _Vmsg of item.ValidationMessage\">\n <span *ngIf=\"_Vmsg.Type=='Pattern'\" style=\"color: #bd4147\">{{GlobelService.CurrentLanguage =='Ar'? (_Vmsg.MsgAr ?_Vmsg.MsgAr : (_Vmsg.MsgEn | translate)) :_Vmsg.MsgEn }}</span>\n </ng-container>\n</ng-container>\n\n\n\n\n\n </ng-container>\n </ng-container>\n ",
|
|
10415
|
-
styles: ["\n span {\n display:block;\n }\n "]
|
|
10416
|
-
},] }
|
|
10417
|
-
];
|
|
10418
|
-
ValidationErrorComponent.ctorParameters = function () { return [
|
|
10419
|
-
{ type: GlobalService }
|
|
10420
|
-
]; };
|
|
10421
|
-
ValidationErrorComponent.propDecorators = {
|
|
10422
|
-
item: [{ type: i0.Input }],
|
|
10423
|
-
pageForm: [{ type: i0.Input }],
|
|
10424
|
-
fieldsList: [{ type: i0.Input }]
|
|
10425
|
-
};
|
|
10426
|
-
|
|
10427
|
-
var SelfServiceFlowComponent = /** @class */ (function () {
|
|
10428
|
-
function SelfServiceFlowComponent(supportService, fb, entityTypeSetup, globalService, document) {
|
|
10429
|
-
this.supportService = supportService;
|
|
10430
|
-
this.fb = fb;
|
|
10431
|
-
this.entityTypeSetup = entityTypeSetup;
|
|
10432
|
-
this.globalService = globalService;
|
|
10433
|
-
this.document = document;
|
|
10434
|
-
this.IssueType = 11;
|
|
10435
|
-
this.Channel = '3';
|
|
10436
|
-
this.ChannelEn = 'Portal';
|
|
10437
|
-
this.ChannelAr = 'صفحة العميل';
|
|
10438
|
-
this.IssueAllList = [];
|
|
10439
|
-
this.IssueCaseList = [];
|
|
10440
|
-
this.translatePipe = new TranslatePipe(this.globalService);
|
|
10441
|
-
}
|
|
10442
|
-
SelfServiceFlowComponent.prototype.ngOnInit = function () {
|
|
10443
|
-
this.getIssueGroupRequesterMappingByRequesterType();
|
|
10452
|
+
CaseListComponent.prototype.getgridCheckedData = function (item) {
|
|
10453
|
+
this.GridCheckedData = item;
|
|
10444
10454
|
};
|
|
10445
|
-
|
|
10455
|
+
CaseListComponent.prototype.getWorkflowActionComments = function (comments, updateFileds, updateFieldsObject) {
|
|
10446
10456
|
var _this = this;
|
|
10447
|
-
|
|
10448
|
-
|
|
10449
|
-
|
|
10450
|
-
|
|
10451
|
-
|
|
10452
|
-
|
|
10453
|
-
|
|
10454
|
-
(_a = _this.IssueCaseList).push.apply(_a, __spread(group.Issue));
|
|
10455
|
-
});
|
|
10456
|
-
});
|
|
10457
|
-
_this.IssueCaseList.map(function (x) {
|
|
10458
|
-
if (x.IssueImage && !x.IssueImage.includes("Account/ShowImageByPath")) {
|
|
10459
|
-
x.IssueImage = "/Account/ShowImageByPath?_Path=" + x.IssueImage;
|
|
10460
|
-
}
|
|
10457
|
+
// alert("zz");
|
|
10458
|
+
// let updateFieldsObjectString = JSON.stringify(updateFieldsObject);
|
|
10459
|
+
var updateFieldsObjectString = '';
|
|
10460
|
+
var RecIds = [];
|
|
10461
|
+
if (this.GridCheckedData.length > 0) {
|
|
10462
|
+
this.GridCheckedData.forEach(function (x) {
|
|
10463
|
+
RecIds.push(x.RecId);
|
|
10461
10464
|
});
|
|
10465
|
+
}
|
|
10466
|
+
this.entityTypeSetup.urlPostTicketWfActionMultiple(RecIds, this.StatusId, this.action, comments, updateFileds, updateFieldsObjectString, this.EntityTypeId).subscribe(function (res) {
|
|
10467
|
+
Swal__default['default'].fire('Action Updated Successfully');
|
|
10468
|
+
_this.getListDatas(_this.Searchcriteria);
|
|
10469
|
+
console.log(res);
|
|
10462
10470
|
}, function (error) {
|
|
10463
|
-
|
|
10464
|
-
|
|
10465
|
-
|
|
10466
|
-
|
|
10471
|
+
var _a, _b, _c;
|
|
10472
|
+
error.error;
|
|
10473
|
+
if (((_a = error.error) === null || _a === void 0 ? void 0 : _a.status) == false) {
|
|
10474
|
+
var msg = JSON.parse((_b = error.error) === null || _b === void 0 ? void 0 : _b.msg);
|
|
10475
|
+
if (msg && msg.msg) {
|
|
10476
|
+
msg = msg.msg;
|
|
10477
|
+
}
|
|
10478
|
+
else {
|
|
10479
|
+
msg = (_c = error.error) === null || _c === void 0 ? void 0 : _c.msg;
|
|
10480
|
+
}
|
|
10481
|
+
Swal__default['default'].fire(_this.translatePipe.transform(msg));
|
|
10482
|
+
}
|
|
10483
|
+
else {
|
|
10484
|
+
Swal__default['default'].fire(_this.translatePipe.transform(error.ExceptionMessage), _this.translatePipe.transform(error.message));
|
|
10485
|
+
}
|
|
10467
10486
|
});
|
|
10468
10487
|
};
|
|
10469
|
-
|
|
10470
|
-
this.
|
|
10471
|
-
};
|
|
10472
|
-
SelfServiceFlowComponent.prototype.backtoCard = function () {
|
|
10473
|
-
this.selectedCaseItem = null;
|
|
10488
|
+
CaseListComponent.prototype.slider = function (direction, Id) {
|
|
10489
|
+
this.slide(direction, Id);
|
|
10474
10490
|
};
|
|
10475
|
-
|
|
10476
|
-
var http = new XMLHttpRequest();
|
|
10477
|
-
http.open('HEAD', image_url, false);
|
|
10478
|
-
http.send();
|
|
10491
|
+
CaseListComponent.prototype.slide = function (direction, Id) {
|
|
10479
10492
|
debugger;
|
|
10480
|
-
|
|
10493
|
+
var container = document.getElementById(Id);
|
|
10494
|
+
var scrollCompleted = 0;
|
|
10495
|
+
var slideVar = setInterval(function () {
|
|
10496
|
+
if (direction == 'left') {
|
|
10497
|
+
container.scrollLeft -= 50;
|
|
10498
|
+
}
|
|
10499
|
+
else {
|
|
10500
|
+
container.scrollLeft += 50;
|
|
10501
|
+
}
|
|
10502
|
+
scrollCompleted += 10;
|
|
10503
|
+
if (scrollCompleted >= 50) {
|
|
10504
|
+
window.clearInterval(slideVar);
|
|
10505
|
+
}
|
|
10506
|
+
}, 50);
|
|
10481
10507
|
};
|
|
10482
|
-
return
|
|
10508
|
+
return CaseListComponent;
|
|
10483
10509
|
}());
|
|
10484
|
-
|
|
10510
|
+
CaseListComponent.decorators = [
|
|
10485
10511
|
{ type: i0.Component, args: [{
|
|
10486
|
-
selector: 'app-
|
|
10487
|
-
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>",
|
|
10488
|
-
styles: [""]
|
|
10512
|
+
selector: 'app-case-list',
|
|
10513
|
+
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 {{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>",
|
|
10514
|
+
styles: ["@charset \"UTF-8\";.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}body,html{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:4px solid #d4d4d4;background:#fff;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:4px solid #8cc43d;color:#8cc43d}#progress-container li .done:after{content:\"\uF00C\"}#progress-container li .done a{color:#8cc43d}#progress-container li .active{color:#fff;border:4px solid #b9dfc5;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 0 rgba(0,0,0,.2);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}"]
|
|
10489
10515
|
},] }
|
|
10490
10516
|
];
|
|
10491
|
-
|
|
10517
|
+
CaseListComponent.ctorParameters = function () { return [
|
|
10492
10518
|
{ type: SupportRequestService },
|
|
10493
|
-
{ type: forms.FormBuilder },
|
|
10494
10519
|
{ type: EntityTypeSetupService },
|
|
10495
10520
|
{ type: GlobalService },
|
|
10521
|
+
{ type: GridServiceService },
|
|
10496
10522
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [common.DOCUMENT,] }] }
|
|
10497
10523
|
]; };
|
|
10498
|
-
|
|
10524
|
+
CaseListComponent.propDecorators = {
|
|
10525
|
+
EntityTypeId: [{ type: i0.Input }],
|
|
10499
10526
|
RequesterTypeId: [{ type: i0.Input }],
|
|
10500
10527
|
RequesterTypeIdEn: [{ type: i0.Input }],
|
|
10501
10528
|
RequesterId: [{ type: i0.Input }],
|
|
@@ -10504,7 +10531,9 @@
|
|
|
10504
10531
|
Source: [{ type: i0.Input }],
|
|
10505
10532
|
Channel: [{ type: i0.Input }],
|
|
10506
10533
|
ChannelEn: [{ type: i0.Input }],
|
|
10507
|
-
ChannelAr: [{ type: i0.Input }]
|
|
10534
|
+
ChannelAr: [{ type: i0.Input }],
|
|
10535
|
+
GridSearchType: [{ type: i0.Input }],
|
|
10536
|
+
IsClientPagination: [{ type: i0.Input }]
|
|
10508
10537
|
};
|
|
10509
10538
|
|
|
10510
10539
|
var WorkflowDynamicPopupComponent = /** @class */ (function () {
|
|
@@ -11571,37 +11600,37 @@
|
|
|
11571
11600
|
exports.ArcoSupportRequestModule = ArcoSupportRequestModule;
|
|
11572
11601
|
exports.ArcoSupportRequestService = ArcoSupportRequestService;
|
|
11573
11602
|
exports.RequestFlowComponent = RequestFlowComponent;
|
|
11603
|
+
exports.SearchPipe = SearchPipe;
|
|
11604
|
+
exports.SelfServiceFlowComponent = SelfServiceFlowComponent;
|
|
11574
11605
|
exports.SupportRequestModule = SupportRequestModule;
|
|
11606
|
+
exports.TranslatePipe = TranslatePipe;
|
|
11575
11607
|
exports.environment = environment;
|
|
11576
|
-
exports.ɵa =
|
|
11577
|
-
exports.ɵb =
|
|
11578
|
-
exports.ɵ
|
|
11579
|
-
exports.ɵ
|
|
11580
|
-
exports.ɵ
|
|
11581
|
-
exports.ɵ
|
|
11582
|
-
exports.ɵ
|
|
11583
|
-
exports.ɵ
|
|
11584
|
-
exports.ɵ
|
|
11585
|
-
exports.ɵ
|
|
11586
|
-
exports.ɵ
|
|
11587
|
-
exports.ɵ
|
|
11588
|
-
exports.ɵ
|
|
11589
|
-
exports.ɵ
|
|
11590
|
-
exports.ɵ
|
|
11591
|
-
exports.ɵ
|
|
11592
|
-
exports.ɵ
|
|
11593
|
-
exports.ɵ
|
|
11594
|
-
exports.ɵ
|
|
11595
|
-
exports.ɵ
|
|
11596
|
-
exports.ɵ
|
|
11597
|
-
exports.ɵ
|
|
11598
|
-
exports.ɵ
|
|
11599
|
-
exports.ɵ
|
|
11600
|
-
exports.ɵ
|
|
11601
|
-
exports.ɵ
|
|
11602
|
-
exports.ɵx = ValidationErrorComponent;
|
|
11603
|
-
exports.ɵy = SelfServiceFlowComponent;
|
|
11604
|
-
exports.ɵz = CaseListComponent;
|
|
11608
|
+
exports.ɵa = SupportRequestIndexComponent;
|
|
11609
|
+
exports.ɵb = HomeComponent;
|
|
11610
|
+
exports.ɵc = ActionComponent;
|
|
11611
|
+
exports.ɵd = EntityTypeSetupService;
|
|
11612
|
+
exports.ɵe = GlobalService;
|
|
11613
|
+
exports.ɵf = SupportRequestService;
|
|
11614
|
+
exports.ɵg = SupportRequestDetailsComponent;
|
|
11615
|
+
exports.ɵh = TaskService;
|
|
11616
|
+
exports.ɵi = GridServiceService;
|
|
11617
|
+
exports.ɵj = TicketApiService;
|
|
11618
|
+
exports.ɵk = SupportRequestCreateComponent;
|
|
11619
|
+
exports.ɵl = AttachmentService;
|
|
11620
|
+
exports.ɵm = PaginationComponent;
|
|
11621
|
+
exports.ɵn = EntityDynamicViewComponent;
|
|
11622
|
+
exports.ɵo = WorkflowDynamicPopupComponent;
|
|
11623
|
+
exports.ɵp = EntityDynamicFieldComponent;
|
|
11624
|
+
exports.ɵq = DynamicDetailsViewComponent;
|
|
11625
|
+
exports.ɵr = ActivitiesCreateComponent;
|
|
11626
|
+
exports.ɵs = ActivitiesViewComponent;
|
|
11627
|
+
exports.ɵt = FilterPipe;
|
|
11628
|
+
exports.ɵu = UniqueFilterPipe;
|
|
11629
|
+
exports.ɵv = ValidationErrorComponent;
|
|
11630
|
+
exports.ɵw = CaseListComponent;
|
|
11631
|
+
exports.ɵx = GridComponent;
|
|
11632
|
+
exports.ɵy = GridDatatypeComponent;
|
|
11633
|
+
exports.ɵz = InnerGridComponent;
|
|
11605
11634
|
|
|
11606
11635
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
11607
11636
|
|