arco-support-request 0.1.15 → 0.1.16
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/esm2020/lib/core/global.service.mjs +45 -15
- package/esm2020/lib/entity-type-setup/activities-create/activities-create.component.mjs +4 -1
- package/esm2020/lib/entity-type-setup/activities-view/activities-view.component.mjs +4 -1
- package/esm2020/lib/entity-type-setup/dynamic/dynamic-details-view/dynamic-details-view.component.mjs +7 -1
- package/esm2020/lib/entity-type-setup/dynamic/entity-dynamic-view/entity-dynamic-view.component.mjs +6 -5
- package/esm2020/lib/entity-type-setup/workflow-dynamic-popup/workflow-dynamic-popup.component.mjs +3 -1
- package/esm2020/lib/support-request/case-list/case-list.component.mjs +13 -21
- package/esm2020/lib/support-request/create-form/create-form.component.mjs +5 -1
- package/esm2020/lib/support-request/request-flow/request-flow.component.mjs +10 -20
- package/esm2020/lib/support-request/self-service-flow/self-service-flow.component.mjs +3 -4
- package/esm2020/lib/support-request/support-request-create/support-request-create.component.mjs +5 -1
- package/esm2020/lib/support-request/support-request-details/support-request-details.component.mjs +10 -35
- package/fesm2015/arco-support-request.mjs +92 -99
- package/fesm2015/arco-support-request.mjs.map +1 -1
- package/fesm2020/arco-support-request.mjs +91 -94
- package/fesm2020/arco-support-request.mjs.map +1 -1
- package/lib/support-request/case-list/case-list.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2038,20 +2038,51 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
|
|
|
2038
2038
|
}]
|
|
2039
2039
|
}], ctorParameters: function () { return [{ type: i1.Title }, { type: i1$1.HttpClient }]; } });
|
|
2040
2040
|
function errorMessageType(error) {
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
error
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2041
|
+
var _a, _b, _c, _d, _e;
|
|
2042
|
+
try {
|
|
2043
|
+
if (error &&
|
|
2044
|
+
error.error &&
|
|
2045
|
+
error.error.Errors &&
|
|
2046
|
+
error.error.Errors.length > 0)
|
|
2047
|
+
return error.error.Errors.map((x) => x.ErrorMessage).join('\n');
|
|
2048
|
+
else if (error && error.error && error.error.Message)
|
|
2049
|
+
return error.error.Message;
|
|
2050
|
+
else if (typeof error.error == 'string')
|
|
2051
|
+
return error.error;
|
|
2052
|
+
else if (((_a = error.error) === null || _a === void 0 ? void 0 : _a.status) == false) {
|
|
2053
|
+
try {
|
|
2054
|
+
let msg = JSON.parse((_b = error.error) === null || _b === void 0 ? void 0 : _b.msg);
|
|
2055
|
+
if (msg && msg.msg) {
|
|
2056
|
+
msg = msg.msg;
|
|
2057
|
+
}
|
|
2058
|
+
else {
|
|
2059
|
+
msg = (_c = error.error) === null || _c === void 0 ? void 0 : _c.msg;
|
|
2060
|
+
}
|
|
2061
|
+
return msg;
|
|
2062
|
+
}
|
|
2063
|
+
catch (err) {
|
|
2064
|
+
let msg = ((_d = error.error) === null || _d === void 0 ? void 0 : _d.msg);
|
|
2065
|
+
if (msg && msg.msg) {
|
|
2066
|
+
msg = msg.msg;
|
|
2067
|
+
}
|
|
2068
|
+
else {
|
|
2069
|
+
msg = (_e = error.error) === null || _e === void 0 ? void 0 : _e.msg;
|
|
2070
|
+
}
|
|
2071
|
+
return msg;
|
|
2072
|
+
}
|
|
2073
|
+
}
|
|
2074
|
+
else if (typeof error.error == "object") {
|
|
2075
|
+
return JSON.stringify(error.error);
|
|
2076
|
+
}
|
|
2077
|
+
else if (error.message)
|
|
2078
|
+
return error.message;
|
|
2079
|
+
else {
|
|
2080
|
+
console.log(error);
|
|
2081
|
+
// return "console error"
|
|
2082
|
+
}
|
|
2083
|
+
}
|
|
2084
|
+
catch (err) {
|
|
2085
|
+
return "Error,Contact system admin";
|
|
2055
2086
|
}
|
|
2056
2087
|
}
|
|
2057
2088
|
|
|
@@ -6182,6 +6213,7 @@ class EntityDynamicViewComponent {
|
|
|
6182
6213
|
this.getFieldListByEntityType(this.EntityTypeForm.EntityTypeId);
|
|
6183
6214
|
}, (error) => {
|
|
6184
6215
|
console.log(error);
|
|
6216
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
6185
6217
|
});
|
|
6186
6218
|
}
|
|
6187
6219
|
getFieldListByEntityType(EntityTypeId) {
|
|
@@ -6192,6 +6224,7 @@ class EntityDynamicViewComponent {
|
|
|
6192
6224
|
// this.TempFieldValidators();
|
|
6193
6225
|
}, (error) => {
|
|
6194
6226
|
console.log(error);
|
|
6227
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
6195
6228
|
});
|
|
6196
6229
|
}
|
|
6197
6230
|
getAllDefaultEntityTypeForm(EntityTypeId) {
|
|
@@ -6206,10 +6239,8 @@ class EntityDynamicViewComponent {
|
|
|
6206
6239
|
this.buildReactiveForm();
|
|
6207
6240
|
}
|
|
6208
6241
|
}, (error) => {
|
|
6209
|
-
Swal.fire({
|
|
6210
|
-
title: this.translatePipe.transform('Template form not found'),
|
|
6211
|
-
});
|
|
6212
6242
|
console.log(error);
|
|
6243
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
6213
6244
|
});
|
|
6214
6245
|
}
|
|
6215
6246
|
validationError(name, errorName) {
|
|
@@ -6803,11 +6834,12 @@ class EntityDynamicViewComponent {
|
|
|
6803
6834
|
}
|
|
6804
6835
|
}, (error) => {
|
|
6805
6836
|
console.log(error);
|
|
6806
|
-
Swal.fire(errorMessageType(error));
|
|
6837
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
6807
6838
|
});
|
|
6808
6839
|
}
|
|
6809
6840
|
}, (error) => {
|
|
6810
6841
|
console.log(error);
|
|
6842
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
6811
6843
|
});
|
|
6812
6844
|
}
|
|
6813
6845
|
getAllRules(EntityTypeId) {
|
|
@@ -7424,6 +7456,7 @@ class WorkflowDynamicPopupComponent {
|
|
|
7424
7456
|
this.EntityFormId = res.RecId;
|
|
7425
7457
|
}, (error) => {
|
|
7426
7458
|
console.log(error);
|
|
7459
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
7427
7460
|
});
|
|
7428
7461
|
}
|
|
7429
7462
|
}
|
|
@@ -7548,6 +7581,7 @@ class DynamicDetailsViewComponent {
|
|
|
7548
7581
|
this.EntityTypeDetail = res;
|
|
7549
7582
|
}, (error) => {
|
|
7550
7583
|
console.log(error);
|
|
7584
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
7551
7585
|
});
|
|
7552
7586
|
}
|
|
7553
7587
|
saveDesignForm() {
|
|
@@ -7578,6 +7612,7 @@ class DynamicDetailsViewComponent {
|
|
|
7578
7612
|
// this._PageForm.form = this.getFieldFormGroup();
|
|
7579
7613
|
}, (error) => {
|
|
7580
7614
|
console.log(error);
|
|
7615
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
7581
7616
|
});
|
|
7582
7617
|
}
|
|
7583
7618
|
getEntityForm() {
|
|
@@ -7608,6 +7643,7 @@ class DynamicDetailsViewComponent {
|
|
|
7608
7643
|
}
|
|
7609
7644
|
}, (error) => {
|
|
7610
7645
|
console.log(error);
|
|
7646
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
7611
7647
|
});
|
|
7612
7648
|
}
|
|
7613
7649
|
addRow() {
|
|
@@ -7815,6 +7851,7 @@ class DynamicDetailsViewComponent {
|
|
|
7815
7851
|
}
|
|
7816
7852
|
}, (error) => {
|
|
7817
7853
|
console.log(error);
|
|
7854
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
7818
7855
|
});
|
|
7819
7856
|
}
|
|
7820
7857
|
getFieldFormValue(field) {
|
|
@@ -7901,6 +7938,7 @@ class ActivitiesCreateComponent {
|
|
|
7901
7938
|
this.EntityFormId = res.RecId;
|
|
7902
7939
|
}, (error) => {
|
|
7903
7940
|
console.log(error);
|
|
7941
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
7904
7942
|
});
|
|
7905
7943
|
}
|
|
7906
7944
|
closeCreatePage() {
|
|
@@ -7947,6 +7985,7 @@ class ActivitiesCreateComponent {
|
|
|
7947
7985
|
this.closeActivityCreate.emit({ Type: "Create" });
|
|
7948
7986
|
}, (error) => {
|
|
7949
7987
|
console.log(error);
|
|
7988
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
7950
7989
|
});
|
|
7951
7990
|
}
|
|
7952
7991
|
emitTicketCreateForm(CreateData, pageForm) {
|
|
@@ -7998,6 +8037,7 @@ class ActivitiesViewComponent {
|
|
|
7998
8037
|
this.EntityFormId = res.RecId;
|
|
7999
8038
|
}, (error) => {
|
|
8000
8039
|
console.log(error);
|
|
8040
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
8001
8041
|
});
|
|
8002
8042
|
}
|
|
8003
8043
|
emitTicketCreateForm(CreateData, pageForm) {
|
|
@@ -9033,6 +9073,7 @@ class SupportRequestCreateComponent {
|
|
|
9033
9073
|
this.EntityFormId = res.RecId;
|
|
9034
9074
|
}, (error) => {
|
|
9035
9075
|
console.log(error);
|
|
9076
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
9036
9077
|
});
|
|
9037
9078
|
}
|
|
9038
9079
|
getAssignedDocumentList() {
|
|
@@ -9100,6 +9141,7 @@ class SupportRequestCreateComponent {
|
|
|
9100
9141
|
this.supportService.displayListPopUp = true;
|
|
9101
9142
|
}, (error) => {
|
|
9102
9143
|
console.log(error);
|
|
9144
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
9103
9145
|
});
|
|
9104
9146
|
}
|
|
9105
9147
|
else {
|
|
@@ -9175,6 +9217,7 @@ class SupportRequestCreateComponent {
|
|
|
9175
9217
|
// })
|
|
9176
9218
|
}, (error) => {
|
|
9177
9219
|
console.log(error);
|
|
9220
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
9178
9221
|
});
|
|
9179
9222
|
}
|
|
9180
9223
|
}
|
|
@@ -9351,6 +9394,7 @@ class CreateFormComponent {
|
|
|
9351
9394
|
}
|
|
9352
9395
|
}, (error) => {
|
|
9353
9396
|
console.log(error);
|
|
9397
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
9354
9398
|
});
|
|
9355
9399
|
}
|
|
9356
9400
|
selectType(item) {
|
|
@@ -9413,6 +9457,7 @@ class CreateFormComponent {
|
|
|
9413
9457
|
// });
|
|
9414
9458
|
}, (error) => {
|
|
9415
9459
|
console.log(error);
|
|
9460
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
9416
9461
|
});
|
|
9417
9462
|
}
|
|
9418
9463
|
selectCase(item) {
|
|
@@ -9703,6 +9748,7 @@ class SupportRequestDetailsComponent {
|
|
|
9703
9748
|
this.EntityFormId = res.RecId;
|
|
9704
9749
|
}, (error) => {
|
|
9705
9750
|
console.log(error);
|
|
9751
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
9706
9752
|
});
|
|
9707
9753
|
}
|
|
9708
9754
|
getWorkflowActionComments(comments, updateFileds, updateFieldsObject) {
|
|
@@ -9713,21 +9759,7 @@ class SupportRequestDetailsComponent {
|
|
|
9713
9759
|
this.getTaskDetails();
|
|
9714
9760
|
// console.log(res);
|
|
9715
9761
|
}, (error) => {
|
|
9716
|
-
|
|
9717
|
-
error.error;
|
|
9718
|
-
if (((_a = error.error) === null || _a === void 0 ? void 0 : _a.status) == false) {
|
|
9719
|
-
let msg = JSON.parse((_b = error.error) === null || _b === void 0 ? void 0 : _b.msg);
|
|
9720
|
-
if (msg && msg.msg) {
|
|
9721
|
-
msg = msg.msg;
|
|
9722
|
-
}
|
|
9723
|
-
else {
|
|
9724
|
-
msg = (_c = error.error) === null || _c === void 0 ? void 0 : _c.msg;
|
|
9725
|
-
}
|
|
9726
|
-
Swal.fire(this.translatePipe.transform(msg));
|
|
9727
|
-
}
|
|
9728
|
-
else {
|
|
9729
|
-
Swal.fire(this.translatePipe.transform(error.ExceptionMessage), this.translatePipe.transform(error.message));
|
|
9730
|
-
}
|
|
9762
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
9731
9763
|
});
|
|
9732
9764
|
}
|
|
9733
9765
|
getComments() {
|
|
@@ -9738,11 +9770,7 @@ class SupportRequestDetailsComponent {
|
|
|
9738
9770
|
this.commentsData = x.Data;
|
|
9739
9771
|
this.commentsDataCount = x.TotalCount;
|
|
9740
9772
|
}, (error) => {
|
|
9741
|
-
|
|
9742
|
-
Swal.fire({
|
|
9743
|
-
title: this.translatePipe.transform(error.error),
|
|
9744
|
-
});
|
|
9745
|
-
// error.error
|
|
9773
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
9746
9774
|
});
|
|
9747
9775
|
}
|
|
9748
9776
|
}
|
|
@@ -9835,9 +9863,8 @@ class SupportRequestDetailsComponent {
|
|
|
9835
9863
|
let showPendingIndex = this.StatusAndStageList.findIndex(x => x.OrderId == 0);
|
|
9836
9864
|
this.StatusAndStageList.splice(showPendingIndex, 1);
|
|
9837
9865
|
}, (error) => {
|
|
9838
|
-
var _a;
|
|
9839
9866
|
console.log(error);
|
|
9840
|
-
Swal.fire(
|
|
9867
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
9841
9868
|
});
|
|
9842
9869
|
}
|
|
9843
9870
|
selectProcess(item) {
|
|
@@ -9880,7 +9907,7 @@ class SupportRequestDetailsComponent {
|
|
|
9880
9907
|
// console.log('Activity', res.Data);
|
|
9881
9908
|
});
|
|
9882
9909
|
(error) => {
|
|
9883
|
-
|
|
9910
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
9884
9911
|
};
|
|
9885
9912
|
}
|
|
9886
9913
|
setTimeline() {
|
|
@@ -9936,10 +9963,9 @@ class SupportRequestDetailsComponent {
|
|
|
9936
9963
|
// console.log(res);
|
|
9937
9964
|
this.loadGrid(res.Data, res.TotalCount);
|
|
9938
9965
|
}, (error) => {
|
|
9939
|
-
var _a;
|
|
9940
9966
|
console.log(error);
|
|
9941
9967
|
this.loadGrid([], 0);
|
|
9942
|
-
Swal.fire(
|
|
9968
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
9943
9969
|
});
|
|
9944
9970
|
}
|
|
9945
9971
|
}
|
|
@@ -9987,7 +10013,7 @@ class SupportRequestDetailsComponent {
|
|
|
9987
10013
|
this.wfStageAction = res;
|
|
9988
10014
|
// console.log(res);
|
|
9989
10015
|
}, (error) => {
|
|
9990
|
-
|
|
10016
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
9991
10017
|
});
|
|
9992
10018
|
}
|
|
9993
10019
|
getStatusField(data) {
|
|
@@ -10053,12 +10079,7 @@ class SupportRequestDetailsComponent {
|
|
|
10053
10079
|
this.closeModelPopup();
|
|
10054
10080
|
this.taskService.showCommentPopup = false;
|
|
10055
10081
|
this.taskService.close();
|
|
10056
|
-
|
|
10057
|
-
Swal.fire({
|
|
10058
|
-
title: this.translatePipe.transform(error.error),
|
|
10059
|
-
});
|
|
10060
|
-
// alert("err");
|
|
10061
|
-
// error.error
|
|
10082
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
10062
10083
|
});
|
|
10063
10084
|
}
|
|
10064
10085
|
getAssignmentByRefRecIdList(Criteria) {
|
|
@@ -10070,11 +10091,7 @@ class SupportRequestDetailsComponent {
|
|
|
10070
10091
|
this.loadGrid(x.Data, x.TotalCount);
|
|
10071
10092
|
this.globalService.dataLoader = false;
|
|
10072
10093
|
}, (error) => {
|
|
10073
|
-
|
|
10074
|
-
// error.error
|
|
10075
|
-
Swal.fire({
|
|
10076
|
-
title: this.translatePipe.transform(error.error),
|
|
10077
|
-
});
|
|
10094
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
10078
10095
|
});
|
|
10079
10096
|
}
|
|
10080
10097
|
}
|
|
@@ -10375,9 +10392,7 @@ class CaseListComponent {
|
|
|
10375
10392
|
this.getPageCount();
|
|
10376
10393
|
}, (error) => {
|
|
10377
10394
|
console.log(error);
|
|
10378
|
-
Swal.fire(
|
|
10379
|
-
title: this.translatePipe.transform(error.error),
|
|
10380
|
-
});
|
|
10395
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
10381
10396
|
});
|
|
10382
10397
|
}
|
|
10383
10398
|
loadGrid(data, TotalRecord) {
|
|
@@ -10455,6 +10470,7 @@ class CaseListComponent {
|
|
|
10455
10470
|
}
|
|
10456
10471
|
}, (error) => {
|
|
10457
10472
|
console.log(error);
|
|
10473
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
10458
10474
|
});
|
|
10459
10475
|
}
|
|
10460
10476
|
getActiveEntityForm() {
|
|
@@ -10463,6 +10479,7 @@ class CaseListComponent {
|
|
|
10463
10479
|
this.getFormList();
|
|
10464
10480
|
}, (error) => {
|
|
10465
10481
|
console.log(error);
|
|
10482
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
10466
10483
|
});
|
|
10467
10484
|
}
|
|
10468
10485
|
getFormList() {
|
|
@@ -10503,6 +10520,7 @@ class CaseListComponent {
|
|
|
10503
10520
|
closePopupCreateView(Type, Data) {
|
|
10504
10521
|
this.CreateItemId = null;
|
|
10505
10522
|
this.isShowCreateRequest = false;
|
|
10523
|
+
this.openDetailsPopup(Data, true);
|
|
10506
10524
|
}
|
|
10507
10525
|
getPaginationListData(pageNo, pageSize) {
|
|
10508
10526
|
this.pageNo = pageNo;
|
|
@@ -10517,11 +10535,14 @@ class CaseListComponent {
|
|
|
10517
10535
|
getPageCount() {
|
|
10518
10536
|
this.pageCount = Math.ceil(this.totalRecordCount / this.pageSize);
|
|
10519
10537
|
}
|
|
10520
|
-
openDetailsPopup(data) {
|
|
10538
|
+
openDetailsPopup(data, afterCreate) {
|
|
10521
10539
|
this.isDetails = true;
|
|
10522
10540
|
this.CaseId = data.CaseId;
|
|
10523
10541
|
this.detailsRecId = data.RecId; // RefRecId is the main recid
|
|
10524
10542
|
this.detailsEntityTypeRecId = data.EntityTypeRecId;
|
|
10543
|
+
if (afterCreate) {
|
|
10544
|
+
this.detailsEntityTypeRecId = ((data === null || data === void 0 ? void 0 : data.EntityTypeId) ? data.EntityTypeId : this.EntityTypeId);
|
|
10545
|
+
}
|
|
10525
10546
|
this.supportService.IsShowBackBtn = true;
|
|
10526
10547
|
this.displayPopupDetailView = true;
|
|
10527
10548
|
}
|
|
@@ -10590,9 +10611,8 @@ class CaseListComponent {
|
|
|
10590
10611
|
this.selectStage(this.StatusAndStageList[0]);
|
|
10591
10612
|
// console.log(res.Data);
|
|
10592
10613
|
}, (error) => {
|
|
10593
|
-
var _a;
|
|
10594
10614
|
console.log(error);
|
|
10595
|
-
Swal.fire(
|
|
10615
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
10596
10616
|
});
|
|
10597
10617
|
}
|
|
10598
10618
|
selectStage(item) {
|
|
@@ -10614,7 +10634,7 @@ class CaseListComponent {
|
|
|
10614
10634
|
this.wfActionData = res;
|
|
10615
10635
|
// console.log(res);
|
|
10616
10636
|
}, (error) => {
|
|
10617
|
-
|
|
10637
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
10618
10638
|
});
|
|
10619
10639
|
}
|
|
10620
10640
|
getStatusField(data) {
|
|
@@ -10664,21 +10684,7 @@ class CaseListComponent {
|
|
|
10664
10684
|
this.getListDatas(this.Searchcriteria);
|
|
10665
10685
|
// console.log(res);
|
|
10666
10686
|
}, (error) => {
|
|
10667
|
-
|
|
10668
|
-
error.error;
|
|
10669
|
-
if (((_a = error.error) === null || _a === void 0 ? void 0 : _a.status) == false) {
|
|
10670
|
-
let msg = JSON.parse((_b = error.error) === null || _b === void 0 ? void 0 : _b.msg);
|
|
10671
|
-
if (msg && msg.msg) {
|
|
10672
|
-
msg = msg.msg;
|
|
10673
|
-
}
|
|
10674
|
-
else {
|
|
10675
|
-
msg = (_c = error.error) === null || _c === void 0 ? void 0 : _c.msg;
|
|
10676
|
-
}
|
|
10677
|
-
Swal.fire(this.translatePipe.transform(msg));
|
|
10678
|
-
}
|
|
10679
|
-
else {
|
|
10680
|
-
Swal.fire(this.translatePipe.transform(error.ExceptionMessage), this.translatePipe.transform(error.message));
|
|
10681
|
-
}
|
|
10687
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
10682
10688
|
});
|
|
10683
10689
|
}
|
|
10684
10690
|
slider(direction, Id) {
|
|
@@ -10778,9 +10784,7 @@ class SelfServiceFlowComponent {
|
|
|
10778
10784
|
});
|
|
10779
10785
|
}, (error) => {
|
|
10780
10786
|
console.log(error);
|
|
10781
|
-
Swal.fire(
|
|
10782
|
-
title: this.translatePipe.transform(error.error),
|
|
10783
|
-
});
|
|
10787
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
10784
10788
|
});
|
|
10785
10789
|
}
|
|
10786
10790
|
selectCase(item) {
|
|
@@ -11200,9 +11204,7 @@ class RequestFlowComponent {
|
|
|
11200
11204
|
});
|
|
11201
11205
|
}, (error) => {
|
|
11202
11206
|
console.log(error);
|
|
11203
|
-
Swal.fire(
|
|
11204
|
-
title: this.translatePipe.transform(error.error),
|
|
11205
|
-
});
|
|
11207
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
11206
11208
|
});
|
|
11207
11209
|
}
|
|
11208
11210
|
getIssueGroupRequesterMappingByRequesterType() {
|
|
@@ -11218,9 +11220,7 @@ class RequestFlowComponent {
|
|
|
11218
11220
|
});
|
|
11219
11221
|
}, (error) => {
|
|
11220
11222
|
console.log(error);
|
|
11221
|
-
Swal.fire(
|
|
11222
|
-
title: this.translatePipe.transform(error.error),
|
|
11223
|
-
});
|
|
11223
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
11224
11224
|
});
|
|
11225
11225
|
}
|
|
11226
11226
|
getDropDownForIssueSubGroup() {
|
|
@@ -11233,9 +11233,7 @@ class RequestFlowComponent {
|
|
|
11233
11233
|
this.IssueSubGroupDDL = res;
|
|
11234
11234
|
}, (error) => {
|
|
11235
11235
|
console.log(error);
|
|
11236
|
-
Swal.fire(
|
|
11237
|
-
title: this.translatePipe.transform(error.error),
|
|
11238
|
-
});
|
|
11236
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
11239
11237
|
});
|
|
11240
11238
|
}
|
|
11241
11239
|
}
|
|
@@ -11275,9 +11273,7 @@ class RequestFlowComponent {
|
|
|
11275
11273
|
//this.getCaseType();
|
|
11276
11274
|
}, (error) => {
|
|
11277
11275
|
console.log(error);
|
|
11278
|
-
Swal.fire(
|
|
11279
|
-
title: this.translatePipe.transform(error.error),
|
|
11280
|
-
});
|
|
11276
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
11281
11277
|
});
|
|
11282
11278
|
}
|
|
11283
11279
|
getIssuebyissuerequester() {
|
|
@@ -11299,10 +11295,7 @@ class RequestFlowComponent {
|
|
|
11299
11295
|
}
|
|
11300
11296
|
}, (error) => {
|
|
11301
11297
|
console.log(error);
|
|
11302
|
-
Swal.fire(
|
|
11303
|
-
title: this.translatePipe.transform(error.error),
|
|
11304
|
-
});
|
|
11305
|
-
// this.caseTypeList = [{ RecId: 43, Description: 'Vacation Request' }];
|
|
11298
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
11306
11299
|
});
|
|
11307
11300
|
}
|
|
11308
11301
|
changeTab(id) {
|
|
@@ -11367,9 +11360,7 @@ class RequestFlowComponent {
|
|
|
11367
11360
|
this.loadGrid(res.Data, res.TotalCount);
|
|
11368
11361
|
}, (error) => {
|
|
11369
11362
|
console.log(error);
|
|
11370
|
-
Swal.fire(
|
|
11371
|
-
title: this.translatePipe.transform(error.error),
|
|
11372
|
-
});
|
|
11363
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
11373
11364
|
});
|
|
11374
11365
|
}
|
|
11375
11366
|
getStatusListCount() {
|
|
@@ -11455,6 +11446,7 @@ class RequestFlowComponent {
|
|
|
11455
11446
|
// this.openIssueGroup();
|
|
11456
11447
|
}, (error) => {
|
|
11457
11448
|
console.log(error);
|
|
11449
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
11458
11450
|
});
|
|
11459
11451
|
}
|
|
11460
11452
|
closeModel() {
|
|
@@ -11623,6 +11615,7 @@ class RequestFlowComponent {
|
|
|
11623
11615
|
this.RequesterField = this.SupportRequestUser.FieldTypeIdEn;
|
|
11624
11616
|
}, (error) => {
|
|
11625
11617
|
console.log(error);
|
|
11618
|
+
Swal.fire(errorMessageType(error), "", 'error');
|
|
11626
11619
|
});
|
|
11627
11620
|
}
|
|
11628
11621
|
getgridCheckedData(item) {
|