@sachin9822/reports-lib 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/environments/environment.d.ts +5 -0
- package/esm2020/environments/environment.mjs +10 -0
- package/esm2020/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.mjs +87 -36
- package/esm2020/lib/interceptors/auth-http.interceptor.mjs +88 -0
- package/esm2020/lib/models/accgl-details-enquiry-reportmodel.mjs +2 -0
- package/esm2020/lib/models/journal-voucher-entry-model.mjs +2 -0
- package/esm2020/lib/models/security/authorise-profile-system-function.model.mjs +2 -0
- package/esm2020/lib/models/security/authorise-profile-system-report.model.mjs +2 -0
- package/esm2020/lib/models/security/authorise-profile-system-shortcurt.model.mjs +2 -0
- package/esm2020/lib/models/security/authorize-profile-ratesheet.model.mjs +2 -0
- package/esm2020/lib/models/security/authorize-profile.model.mjs +2 -0
- package/esm2020/lib/models/security/user-session.model.mjs +6 -0
- package/esm2020/lib/models/view-pending-queue-option.enum.mjs +13 -0
- package/esm2020/lib/reports-lib-routing.module.mjs +2 -6
- package/esm2020/lib/reports-lib.module.mjs +50 -15
- package/esm2020/lib/services/active-x.service.mjs +63 -0
- package/esm2020/lib/services/report.service.mjs +24 -0
- package/esm2020/lib/services/session.service.mjs +54 -0
- package/esm2020/public-api.mjs +1 -2
- package/fesm2015/sachin9822-reports-lib.mjs +350 -66
- package/fesm2015/sachin9822-reports-lib.mjs.map +1 -1
- package/fesm2020/sachin9822-reports-lib.mjs +355 -66
- package/fesm2020/sachin9822-reports-lib.mjs.map +1 -1
- package/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.d.ts +21 -28
- package/lib/interceptors/auth-http.interceptor.d.ts +15 -0
- package/lib/models/accgl-details-enquiry-reportmodel.d.ts +8 -0
- package/lib/models/journal-voucher-entry-model.d.ts +18 -0
- package/lib/models/security/authorise-profile-system-function.model.d.ts +9 -0
- package/lib/models/security/authorise-profile-system-report.model.d.ts +6 -0
- package/lib/models/security/authorise-profile-system-shortcurt.model.d.ts +4 -0
- package/lib/models/security/authorize-profile-ratesheet.model.d.ts +5 -0
- package/lib/models/security/authorize-profile.model.d.ts +9 -0
- package/lib/models/security/user-session.model.d.ts +31 -0
- package/lib/models/view-pending-queue-option.enum.d.ts +10 -0
- package/lib/reports-lib.module.d.ts +8 -5
- package/lib/services/active-x.service.d.ts +23 -0
- package/lib/services/report.service.d.ts +13 -0
- package/lib/services/session.service.d.ts +21 -0
- package/package.json +1 -1
- package/public-api.d.ts +0 -1
- package/esm2020/lib/components/transaction-enquiry-report/transaction-enquiry-report.component.mjs +0 -14
- package/lib/components/transaction-enquiry-report/transaction-enquiry-report.component.d.ts +0 -8
@@ -1,10 +1,24 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
|
-
import { Injectable, Component, NgModule } from '@angular/core';
|
3
|
-
import
|
2
|
+
import { Injectable, Component, NgModule, Inject } from '@angular/core';
|
3
|
+
import Decimal from 'decimal.js';
|
4
|
+
import * as i3 from '@angular/common';
|
5
|
+
import { formatDate, CommonModule } from '@angular/common';
|
6
|
+
import * as i1 from '@angular/common/http';
|
7
|
+
import { HttpClient, HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
|
8
|
+
import * as i2 from 'ag-grid-angular';
|
4
9
|
import { AgGridModule } from 'ag-grid-angular';
|
5
|
-
import
|
10
|
+
import * as i4 from '@angular/forms';
|
11
|
+
import { FormsModule } from '@angular/forms';
|
6
12
|
import * as i1$1 from '@angular/router';
|
7
13
|
import { RouterModule } from '@angular/router';
|
14
|
+
import * as i1$2 from 'angular-oauth2-oidc';
|
15
|
+
import { OAuthService, OAuthModule } from 'angular-oauth2-oidc';
|
16
|
+
import { v4 } from 'uuid';
|
17
|
+
import { forkJoin, BehaviorSubject } from 'rxjs';
|
18
|
+
import * as i2$1 from 'ngx-webstorage-service';
|
19
|
+
import { isStorageAvailable, SESSION_STORAGE } from 'ngx-webstorage-service';
|
20
|
+
import * as i1$3 from '@ng-idle/core';
|
21
|
+
import { NgIdleModule } from '@ng-idle/core';
|
8
22
|
|
9
23
|
class ReportsLibService {
|
10
24
|
constructor() { }
|
@@ -38,70 +52,122 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
38
52
|
` }]
|
39
53
|
}], ctorParameters: function () { return []; } });
|
40
54
|
|
55
|
+
class ReportService {
|
56
|
+
constructor(http) {
|
57
|
+
this.http = http;
|
58
|
+
this.serviceUrl = "https://4xplus-local.xpressmoney.tech:8699";
|
59
|
+
this.reportUrl = "/api/v1/Report";
|
60
|
+
}
|
61
|
+
getAccGLDetailsReport(date, dateType, sysCompanyCode, sysUserId, companyName) {
|
62
|
+
const formattedDate = date.toISOString().split('T')[0];
|
63
|
+
const apiPath = `${this.serviceUrl}${this.reportUrl}/AccGLFDetailsEnquiryReport/${formattedDate}/${dateType}/${sysCompanyCode}/${sysUserId}/${companyName}`;
|
64
|
+
return this.http.get(apiPath);
|
65
|
+
}
|
66
|
+
}
|
67
|
+
ReportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ReportService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
68
|
+
ReportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ReportService, providedIn: 'root' });
|
69
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ReportService, decorators: [{
|
70
|
+
type: Injectable,
|
71
|
+
args: [{
|
72
|
+
providedIn: 'root'
|
73
|
+
}]
|
74
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
|
75
|
+
|
41
76
|
class AccGlDetailsEnquiryReportComponent {
|
42
|
-
constructor() {
|
77
|
+
constructor(reportService) {
|
78
|
+
this.reportService = reportService;
|
79
|
+
this.dateTypeFilter = 1;
|
80
|
+
this.defaultColDef = {
|
81
|
+
resizable: true,
|
82
|
+
sortable: true,
|
83
|
+
filter: true,
|
84
|
+
cellStyle: { userSelect: 'text' }
|
85
|
+
};
|
43
86
|
this.columnDefs = [
|
44
|
-
{
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
},
|
49
|
-
{ headerName: '
|
50
|
-
{ headerName: '
|
51
|
-
{ headerName: '
|
52
|
-
{ headerName: '
|
53
|
-
{ headerName: '
|
54
|
-
{ headerName: '
|
55
|
-
|
56
|
-
|
57
|
-
{
|
58
|
-
{
|
59
|
-
{ name: 'Bill Murray', email: 'bill@example.com', salary: 70000 },
|
60
|
-
{ name: 'John Doe', email: 'john@example.com', salary: 50000 },
|
61
|
-
{ name: 'Jane Smith', email: 'jane@example.com', salary: 60000 },
|
62
|
-
{ name: 'Bill Murray', email: 'bill@example.com', salary: 70000 },
|
63
|
-
{ name: 'John Doe', email: 'john@example.com', salary: 50000 },
|
64
|
-
{ name: 'Jane Smith', email: 'jane@example.com', salary: 60000 },
|
65
|
-
{ name: 'Bill Murray', email: 'bill@example.com', salary: 70000 },
|
66
|
-
{ name: 'John Doe', email: 'john@example.com', salary: 50000 },
|
67
|
-
{ name: 'Jane Smith', email: 'jane@example.com', salary: 60000 },
|
68
|
-
{ name: 'John Doe', email: 'john@example.com', salary: 50000 },
|
69
|
-
{ name: 'Jane Smith', email: 'jane@example.com', salary: 60000 },
|
70
|
-
{ name: 'Bill Murray', email: 'bill@example.com', salary: 70000 },
|
71
|
-
{ name: 'John Doe', email: 'john@example.com', salary: 50000 },
|
72
|
-
{ name: 'Jane Smith', email: 'jane@example.com', salary: 60000 },
|
87
|
+
{ headerName: 'Sr. No', valueGetter: 'node.rowIndex + 1', },
|
88
|
+
{ headerName: 'Journal ID', field: 'journalID' },
|
89
|
+
{ headerName: 'Trans No', field: 'transactionNo' },
|
90
|
+
{ headerName: 'Trans Code', field: 'transactionCode', },
|
91
|
+
{ headerName: 'Journal Type', field: 'journalType' },
|
92
|
+
{ headerName: 'Posting Date', field: 'postingDate', valueFormatter: this.formatDate },
|
93
|
+
{ headerName: 'Value Date', field: 'valueDate', valueFormatter: this.formatDate },
|
94
|
+
{ headerName: 'Description', field: 'description', width: 385 },
|
95
|
+
{ headerName: 'Account Code', field: 'accountCode', },
|
96
|
+
{ headerName: 'Currency', field: 'currency', },
|
97
|
+
{ headerName: 'Rate', field: 'rate', },
|
98
|
+
{ headerName: 'FxDebit', field: 'forexDebit', },
|
99
|
+
{ headerName: 'Local Debit', field: 'localDebit', },
|
100
|
+
{ headerName: 'FxCredit', field: 'forexCredit', },
|
101
|
+
{ headerName: 'Local Credit', field: 'localCredit', },
|
73
102
|
];
|
103
|
+
this.rowData = [];
|
104
|
+
this.gridOptions = {
|
105
|
+
enableRangeSelection: true,
|
106
|
+
getContextMenuItems: () => [
|
107
|
+
'copy',
|
108
|
+
'copyWithHeaders'
|
109
|
+
]
|
110
|
+
};
|
111
|
+
this.accGlDetailsEnquiryReportModel = undefined;
|
74
112
|
}
|
75
113
|
ngOnInit() {
|
114
|
+
const today = new Date();
|
115
|
+
this.date = today.toISOString().substring(0, 10); // yyyy-MM-dd format
|
76
116
|
}
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
117
|
+
getAccGLDetailsReport() {
|
118
|
+
// '2025-02-06','VD','BH','sachin.kamble@xpressmoney.tech','xpress money'
|
119
|
+
debugger;
|
120
|
+
this.sysCompanyCode = 'BH';
|
121
|
+
this.sysUserId = 'sachin.kamble@xpressmoney.tech';
|
122
|
+
this.companyName = "Xpress Money";
|
123
|
+
if (this.dateTypeFilter == 1) {
|
124
|
+
this.dateType = 'VD';
|
125
|
+
}
|
126
|
+
else {
|
127
|
+
this.dateType = 'PD';
|
128
|
+
}
|
129
|
+
this.reportService.getAccGLDetailsReport(new Date(this.date), this.dateType, this.sysCompanyCode, this.sysUserId, this.companyName)
|
130
|
+
.subscribe(data => {
|
131
|
+
this.accGlDetailsEnquiryReportModel = data;
|
132
|
+
if (this.accGlDetailsEnquiryReportModel != undefined || this.accGlDetailsEnquiryReportModel != null) {
|
133
|
+
if (this.accGlDetailsEnquiryReportModel) {
|
134
|
+
this.rowData = this.accGlDetailsEnquiryReportModel.journalVoucherEntries.map(entry => {
|
135
|
+
return {
|
136
|
+
...entry,
|
137
|
+
rate: new Decimal(entry.rate).toFixed(15),
|
138
|
+
forexDebit: new Decimal(entry.forexDebit).toFixed(15),
|
139
|
+
localDebit: new Decimal(entry.localDebit).toFixed(15),
|
140
|
+
forexCredit: new Decimal(entry.forexCredit).toFixed(15),
|
141
|
+
localCredit: new Decimal(entry.localCredit).toFixed(15)
|
142
|
+
};
|
143
|
+
});
|
144
|
+
this.companyName = this.accGlDetailsEnquiryReportModel.companyName;
|
145
|
+
const userName = this.accGlDetailsEnquiryReportModel.reportUser;
|
146
|
+
this.reportUser = userName.toLowerCase();
|
147
|
+
const rawDate = this.accGlDetailsEnquiryReportModel.reportTime;
|
148
|
+
this.reportTime = formatDate(rawDate, 'dd/MM/yyyy HH:mm', 'en-US');
|
149
|
+
this.formattedDate = formatDate(new Date(this.date), 'dd/MM/yyyy', 'en-US');
|
150
|
+
}
|
151
|
+
console.log(this.accGlDetailsEnquiryReportModel);
|
152
|
+
}
|
153
|
+
}, error => { console.log(error); });
|
154
|
+
}
|
155
|
+
formatDate(params) {
|
156
|
+
return formatDate(new Date(params.value), 'dd/MM/yyyy', 'en-US');
|
88
157
|
}
|
89
158
|
}
|
90
|
-
|
91
|
-
TransactionEnquiryReportComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TransactionEnquiryReportComponent, selector: "lib-transaction-enquiry-report", ngImport: i0, template: "<p>transaction-enquiry-report works!</p>\n", styles: [""] });
|
92
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type:
|
159
|
+
AccGlDetailsEnquiryReportComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AccGlDetailsEnquiryReportComponent, deps: [{ token: ReportService }], target: i0.ɵɵFactoryTarget.Component });
|
160
|
+
AccGlDetailsEnquiryReportComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: AccGlDetailsEnquiryReportComponent, selector: "lib-acc-gl-details-enquiry-report", ngImport: i0, template: "<div style=\"display: flex; flex-direction: column; width: 100%; padding: 10px; box-sizing: border-box;\">\n\n\n <div style=\"display: flex; flex-wrap: wrap; gap: 10px; align-items: center;\">\n\n <form class=\"d-flex flex-wrap gap-3 align-items-center w-100\">\n\n\n <!-- <div class=\"d-flex align-items-center gap-2\">\n <label for=\"dateTypeFilter\" style=\"font-weight: 500;\" class=\"mb-0 \">Date Type</label>\n <select class=\"form-control\" name=\"dateTypeFilter\" [(ngModel)]=\"dateTypeFilter\" id=\"dateTypeFilter\"\n style=\"width: 140px;\">\n <option [ngValue]=\"1\">Value Date</option>\n <option [ngValue]=\"2\">Posting Date</option>\n </select>\n </div>\n\n\n <div class=\"d-flex align-items-center gap-2\">\n <label for=\"date\" style=\"font-weight: 500;\" class=\"mb-0\">Date</label>\n <input type=\"date\" class=\"form-control\" name=\"date\" [(ngModel)]=\"date\" id=\"date\" style=\"width: 150px;\">\n </div> -->\n\n<!-- ----------------------------------------------------- -->\n<div class=\"d-flex align-items-center gap-2\">\n <label for=\"dateTypeFilter\" style=\"font-weight: 500;\" class=\"mb-0\">Date Type</label>\n <div class=\"required-box\">\n <select class=\"form-control\" name=\"dateTypeFilter\" [(ngModel)]=\"dateTypeFilter\" id=\"dateTypeFilter\">\n <option [ngValue]=\"1\">Value Date</option>\n <option [ngValue]=\"2\">Posting Date</option>\n </select>\n </div>\n</div>\n\n<div class=\"d-flex align-items-center gap-2\">\n <label for=\"date\" style=\"font-weight: 500;\" class=\"mb-0\">Date</label>\n <div class=\"required-box\">\n <input type=\"date\" class=\"form-control\" name=\"date\" [(ngModel)]=\"date\" id=\"date\">\n </div>\n</div>\n\n<!-- -------------- -->\n\n <div>\n <button type=\"button\" style=\"border: 2px solid rgb(13, 110, 253);\" class=\"btn btn-primary\" (click)=\"getAccGLDetailsReport()\">\n View Report\n </button>\n </div>\n\n </form>\n\n\n\n\n\n </div>\n\n\n <hr style=\"margin: 15px 0;\" />\n\n<!-- -------------------------------------------------------------------------------- -->\n <div style=\"border: 1px solid #ccc; padding: 10px; overflow: auto;\">\n\n<!-- *ngIf=\"accGlDetailsEnquiryReportModel != undefined\" -->\n <div style=\"flex:1; overflow-y: auto;\" *ngIf=\"accGlDetailsEnquiryReportModel != undefined\" >\n\n <label style=\"font-size: 21.333px; font-weight: bold; color: black; \">{{companyName}} - General Ledger Account Details Enquiry</label>\n\n <!-- <div class=\"d-flex align-items-center gap-2\">\n <label style=\"font-weight: bold; font-size: 21.333px; color:#004494 ;\" class=\"mb-0\">{{companyName}}</label>\n <label class=\"mb-0\" style=\"font-weight: bold; font-size: 21.333px; color:black ;\"> - General Ledger Account Details Enquiry</label>\n </div> -->\n\n <div class=\"d-flex align-items-center gap-2 mt-4\">\n <label for=\"date\" style=\"font-weight: 500; font-size: 13px;\" class=\"mb-0\">Report User :</label>\n <label class=\"mb-0\" style=\"font-size: 13px;\">{{reportUser}}</label>\n </div>\n\n <div class=\"d-flex align-items-center gap-2 mt-2\">\n <label for=\"date\" style=\"font-weight: 500; font-size: 13px;\" class=\"mb-0\">Report Time :</label>\n <label class=\"mb-0\" style=\"font-size: 13px;\">{{reportTime}}</label>\n </div>\n\n <label style=\"font-weight: bold; font-size: 16px; text-decoration: underline;\" class=\"mt-2\" >Search Criteria</label>\n\n <div class=\"d-flex align-items-center gap-2 mt-2 mb-2\">\n <label for=\"date\" style=\"font-weight: 500; font-size: 13px;\" class=\"mb-0\">Date :</label>\n <label class=\"mb-0\" style=\"font-size: 13px;\">{{formattedDate}}</label>\n </div>\n\n\n\n\n <ag-grid-angular style=\"width: 100%; height: 500px;\" class=\"ag-theme-alpine ag-small-grid\" [rowData]=\"rowData\"\n [columnDefs]=\"columnDefs\" [defaultColDef]=\"defaultColDef\" [enableRangeSelection]=\"true\"\n [enableBrowserTooltips]=\"true\" [gridOptions]=\"gridOptions\" [animateRows]=\"true\" \n [rowHeight]=\"27\" [headerHeight]=\"35\">\n\n </ag-grid-angular>\n\n\n <div class=\"d-flex align-items-center gap-2 mt-2\">\n <label for=\"date\" style=\"font-weight: 500; font-size: 13px;\" class=\"mb-0\">Report User And Time :</label>\n <label class=\"mb-0\" style=\"font-size: 13px;\">{{reportUser}} @ {{reportTime}}</label>\n </div>\n\n\n </div>\n\n\n\n\n\n\n </div>\n</div>", styles: [".ag-theme-alpine{-webkit-user-select:text!important;user-select:text!important}.ag-small-grid .ag-cell,.ag-small-grid .ag-header-cell{font-size:11px;padding:2px 4px}::ng-deep .ag-theme-alpine .ag-cell{border-right:1px solid #ccc}::ng-deep .ag-theme-alpine .ag-row .ag-cell:last-child{border-right:none}::ng-deep .ag-theme-alpine .ag-header-cell{border-right:1px solid #ccc}::ng-deep .ag-theme-alpine .ag-header-row .ag-header-cell:last-child{border-right:none}::ng-deep .ag-theme-alpine .ag-pinned-left-cols-container .ag-cell{border-right:1px solid #ccc!important}::ng-deep .ag-theme-alpine .ag-pinned-left-header .ag-header-cell{border-right:1px solid #ccc!important}.required-box{position:relative;display:inline-block}.required-box .form-control{border:2px solid #C3007D;padding-right:15px;height:38px}.required-box:after{content:\"*\";color:#c3007d;position:absolute;top:1px;right:5px;font-size:16px;pointer-events:none;font-size:22px;font-weight:700}\n"], dependencies: [{ kind: "component", type: i2.AgGridAngular, selector: "ag-grid-angular", inputs: ["gridOptions", "modules", "statusBar", "sideBar", "suppressContextMenu", "preventDefaultOnContextMenu", "allowContextMenuWithControlKey", "suppressMenuHide", "enableBrowserTooltips", "tooltipShowDelay", "tooltipHideDelay", "tooltipMouseTrack", "popupParent", "copyHeadersToClipboard", "copyGroupHeadersToClipboard", "clipboardDelimiter", "suppressCopyRowsToClipboard", "suppressCopySingleCellRanges", "suppressLastEmptyLineOnPaste", "suppressClipboardPaste", "suppressClipboardApi", "columnDefs", "defaultColDef", "defaultColGroupDef", "columnTypes", "maintainColumnOrder", "suppressFieldDotNotation", "deltaColumnMode", "applyColumnDefOrder", "immutableColumns", "suppressSetColumnStateEvents", "suppressColumnStateEvents", "colWidth", "minColWidth", "maxColWidth", "headerHeight", "groupHeaderHeight", "floatingFiltersHeight", "pivotHeaderHeight", "pivotGroupHeaderHeight", "allowDragFromColumnsToolPanel", "suppressMovableColumns", "suppressColumnMoveAnimation", "suppressDragLeaveHidesColumns", "suppressRowGroupHidesColumns", "colResizeDefault", "suppressAutoSize", "autoSizePadding", "skipHeaderOnAutoSize", "components", "frameworkComponents", "editType", "singleClickEdit", "suppressClickEdit", "readOnlyEdit", "stopEditingWhenCellsLoseFocus", "enterMovesDown", "enterMovesDownAfterEdit", "enableCellEditingOnBackspace", "undoRedoCellEditing", "undoRedoCellEditingLimit", "stopEditingWhenGridLosesFocus", "defaultCsvExportParams", "suppressCsvExport", "defaultExcelExportParams", "suppressExcelExport", "excelStyles", "defaultExportParams", "quickFilterText", "cacheQuickFilter", "excludeChildrenWhenTreeDataFiltering", "enableCharts", "chartThemes", "customChartThemes", "chartThemeOverrides", "enableChartToolPanelsButton", "chartToolPanelsDef", "loadingCellRenderer", "loadingCellRendererFramework", "loadingCellRendererParams", "loadingCellRendererSelector", "localeText", "masterDetail", "keepDetailRows", "keepDetailRowsCount", "detailCellRenderer", "detailCellRendererFramework", "detailCellRendererParams", "detailRowHeight", "detailRowAutoHeight", "context", "alignedGrids", "tabIndex", "rowBuffer", "valueCache", "valueCacheNeverExpires", "enableCellExpressions", "suppressParentsInRowNodes", "suppressTouch", "suppressFocusAfterRefresh", "suppressAsyncEvents", "suppressBrowserResizeObserver", "suppressPropertyNamesCheck", "suppressChangeDetection", "debug", "overlayLoadingTemplate", "loadingOverlayComponent", "loadingOverlayComponentFramework", "loadingOverlayComponentParams", "suppressLoadingOverlay", "overlayNoRowsTemplate", "noRowsOverlayComponent", "noRowsOverlayComponentFramework", "noRowsOverlayComponentParams", "suppressNoRowsOverlay", "pagination", "paginationPageSize", "paginationAutoPageSize", "paginateChildRows", "suppressPaginationPanel", "pivotMode", "pivotPanelShow", "pivotColumnGroupTotals", "pivotRowTotals", "pivotSuppressAutoColumn", "suppressExpandablePivotGroups", "functionsReadOnly", "aggFuncs", "suppressAggFuncInHeader", "suppressAggAtRootLevel", "aggregateOnlyChangedColumns", "suppressAggFilteredOnly", "removePivotHeaderRowWhenSingleValueColumn", "animateRows", "enableCellChangeFlash", "cellFlashDelay", "cellFadeDelay", "allowShowChangeAfterFilter", "domLayout", "ensureDomOrder", "enableRtl", "suppressColumnVirtualisation", "suppressMaxRenderedRowRestriction", "suppressRowVirtualisation", "rowDragManaged", "suppressRowDrag", "suppressMoveWhenRowDragging", "rowDragEntireRow", "rowDragMultiRow", "rowDragText", "fullWidthCellRenderer", "fullWidthCellRendererFramework", "fullWidthCellRendererParams", "embedFullWidthRows", "deprecatedEmbedFullWidthRows", "groupDisplayType", "groupDefaultExpanded", "autoGroupColumnDef", "groupMaintainOrder", "groupSelectsChildren", "groupAggFiltering", "groupIncludeFooter", "groupIncludeTotalFooter", "groupSuppressBlankHeader", "groupSelectsFiltered", "showOpenedGroup", "groupRemoveSingleChildren", "groupRemoveLowestSingleChildren", "groupHideOpenParents", "rowGroupPanelShow", "groupRowRenderer", "groupRowRendererFramework", "groupRowRendererParams", "suppressMakeColumnVisibleAfterUnGroup", "treeData", "rowGroupPanelSuppressSort", "groupRowsSticky", "groupRowInnerRenderer", "groupRowInnerRendererFramework", "groupMultiAutoColumn", "groupUseEntireRow", "groupSuppressAutoColumn", "rememberGroupStateWhenNewData", "pinnedTopRowData", "pinnedBottomRowData", "rowModelType", "rowData", "immutableData", "asyncTransactionWaitMillis", "suppressModelUpdateAfterUpdateTransaction", "deltaRowDataMode", "batchUpdateWaitMillis", "datasource", "cacheOverflowSize", "infiniteInitialRowCount", "serverSideInitialRowCount", "serverSideStoreType", "serverSideInfiniteScroll", "cacheBlockSize", "maxBlocksInCache", "maxConcurrentDatasourceRequests", "blockLoadDebounceMillis", "purgeClosedRowNodes", "serverSideDatasource", "serverSideSortAllLevels", "serverSideFilterAllLevels", "serverSideSortOnServer", "serverSideFilterOnServer", "serverSideSortingAlwaysResets", "serverSideFilteringAlwaysResets", "suppressEnterpriseResetOnNewColumns", "viewportDatasource", "viewportRowModelPageSize", "viewportRowModelBufferSize", "alwaysShowHorizontalScroll", "alwaysShowVerticalScroll", "debounceVerticalScrollbar", "suppressHorizontalScroll", "suppressScrollOnNewData", "suppressScrollWhenPopupsAreOpen", "suppressAnimationFrame", "suppressMiddleClickScrolls", "suppressPreventDefaultOnMouseWheel", "scrollbarWidth", "rowSelection", "rowMultiSelectWithClick", "suppressRowDeselection", "suppressRowClickSelection", "suppressCellSelection", "suppressCellFocus", "suppressMultiRangeSelection", "enableCellTextSelection", "enableRangeSelection", "enableRangeHandle", "enableFillHandle", "fillHandleDirection", "suppressClearOnFillReduction", "sortingOrder", "accentedSort", "unSortIcon", "suppressMultiSort", "alwaysMultiSort", "multiSortKey", "suppressMaintainUnsortedOrder", "icons", "rowHeight", "rowStyle", "rowClass", "rowClassRules", "suppressRowHoverHighlight", "suppressRowTransform", "columnHoverHighlight", "deltaSort", "treeDataDisplayType", "angularCompileRows", "angularCompileFilters", "functionsPassive", "enableGroupEdit", "getContextMenuItems", "getMainMenuItems", "postProcessPopup", "processCellForClipboard", "processHeaderForClipboard", "processGroupHeaderForClipboard", "processCellFromClipboard", "sendToClipboard", "processDataFromClipboard", "isExternalFilterPresent", "doesExternalFilterPass", "getChartToolbarItems", "createChartContainer", "navigateToNextHeader", "tabToNextHeader", "navigateToNextCell", "tabToNextCell", "suppressKeyboardEvent", "localeTextFunc", "getLocaleText", "getDocument", "paginationNumberFormatter", "groupRowAggNodes", "getGroupRowAgg", "isGroupOpenByDefault", "initialGroupOrderComparator", "defaultGroupOrderComparator", "processSecondaryColDef", "processSecondaryColGroupDef", "processPivotResultColDef", "processPivotResultColGroupDef", "getDataPath", "defaultGroupSortComparator", "getChildCount", "getServerSideGroupLevelParams", "getServerSideStoreParams", "isServerSideGroupOpenByDefault", "isApplyServerSideTransaction", "isServerSideGroup", "getServerSideGroupKey", "getBusinessKeyForNode", "getRowNodeId", "getRowId", "resetRowDataOnUpdate", "processRowPostCreate", "isRowSelectable", "isRowMaster", "fillOperation", "postSort", "postSortRows", "getRowStyle", "getRowClass", "getRowHeight", "isFullWidthCell", "isFullWidthRow"], outputs: ["toolPanelVisibleChanged", "toolPanelSizeChanged", "pasteStart", "pasteEnd", "columnVisible", "columnPinned", "columnResized", "columnMoved", "columnValueChanged", "columnPivotModeChanged", "columnPivotChanged", "columnGroupOpened", "newColumnsLoaded", "gridColumnsChanged", "displayedColumnsChanged", "virtualColumnsChanged", "columnEverythingChanged", "componentStateChanged", "cellValueChanged", "cellEditRequest", "rowValueChanged", "cellEditingStarted", "cellEditingStopped", "rowEditingStarted", "rowEditingStopped", "filterOpened", "filterChanged", "filterModified", "chartCreated", "chartRangeSelectionChanged", "chartOptionsChanged", "chartDestroyed", "cellKeyDown", "cellKeyPress", "gridReady", "firstDataRendered", "gridSizeChanged", "modelUpdated", "virtualRowRemoved", "viewportChanged", "bodyScroll", "bodyScrollEnd", "dragStarted", "dragStopped", "paginationChanged", "rowDragEnter", "rowDragMove", "rowDragLeave", "rowDragEnd", "columnRowGroupChanged", "rowGroupOpened", "expandOrCollapseAll", "pinnedRowDataChanged", "rowDataChanged", "rowDataUpdated", "asyncTransactionsFlushed", "cellClicked", "cellDoubleClicked", "cellFocused", "cellMouseOver", "cellMouseOut", "cellMouseDown", "rowClicked", "rowDoubleClicked", "rowSelected", "selectionChanged", "cellContextMenu", "rangeSelectionChanged", "sortChanged", "columnRowGroupChangeRequest", "columnPivotChangeRequest", "columnValueChangeRequest", "columnAggFuncChangeRequest"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i4.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i4.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i4.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }] });
|
161
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AccGlDetailsEnquiryReportComponent, decorators: [{
|
93
162
|
type: Component,
|
94
|
-
args: [{ selector: 'lib-
|
95
|
-
}], ctorParameters: function () { return []; } });
|
163
|
+
args: [{ selector: 'lib-acc-gl-details-enquiry-report', template: "<div style=\"display: flex; flex-direction: column; width: 100%; padding: 10px; box-sizing: border-box;\">\n\n\n <div style=\"display: flex; flex-wrap: wrap; gap: 10px; align-items: center;\">\n\n <form class=\"d-flex flex-wrap gap-3 align-items-center w-100\">\n\n\n <!-- <div class=\"d-flex align-items-center gap-2\">\n <label for=\"dateTypeFilter\" style=\"font-weight: 500;\" class=\"mb-0 \">Date Type</label>\n <select class=\"form-control\" name=\"dateTypeFilter\" [(ngModel)]=\"dateTypeFilter\" id=\"dateTypeFilter\"\n style=\"width: 140px;\">\n <option [ngValue]=\"1\">Value Date</option>\n <option [ngValue]=\"2\">Posting Date</option>\n </select>\n </div>\n\n\n <div class=\"d-flex align-items-center gap-2\">\n <label for=\"date\" style=\"font-weight: 500;\" class=\"mb-0\">Date</label>\n <input type=\"date\" class=\"form-control\" name=\"date\" [(ngModel)]=\"date\" id=\"date\" style=\"width: 150px;\">\n </div> -->\n\n<!-- ----------------------------------------------------- -->\n<div class=\"d-flex align-items-center gap-2\">\n <label for=\"dateTypeFilter\" style=\"font-weight: 500;\" class=\"mb-0\">Date Type</label>\n <div class=\"required-box\">\n <select class=\"form-control\" name=\"dateTypeFilter\" [(ngModel)]=\"dateTypeFilter\" id=\"dateTypeFilter\">\n <option [ngValue]=\"1\">Value Date</option>\n <option [ngValue]=\"2\">Posting Date</option>\n </select>\n </div>\n</div>\n\n<div class=\"d-flex align-items-center gap-2\">\n <label for=\"date\" style=\"font-weight: 500;\" class=\"mb-0\">Date</label>\n <div class=\"required-box\">\n <input type=\"date\" class=\"form-control\" name=\"date\" [(ngModel)]=\"date\" id=\"date\">\n </div>\n</div>\n\n<!-- -------------- -->\n\n <div>\n <button type=\"button\" style=\"border: 2px solid rgb(13, 110, 253);\" class=\"btn btn-primary\" (click)=\"getAccGLDetailsReport()\">\n View Report\n </button>\n </div>\n\n </form>\n\n\n\n\n\n </div>\n\n\n <hr style=\"margin: 15px 0;\" />\n\n<!-- -------------------------------------------------------------------------------- -->\n <div style=\"border: 1px solid #ccc; padding: 10px; overflow: auto;\">\n\n<!-- *ngIf=\"accGlDetailsEnquiryReportModel != undefined\" -->\n <div style=\"flex:1; overflow-y: auto;\" *ngIf=\"accGlDetailsEnquiryReportModel != undefined\" >\n\n <label style=\"font-size: 21.333px; font-weight: bold; color: black; \">{{companyName}} - General Ledger Account Details Enquiry</label>\n\n <!-- <div class=\"d-flex align-items-center gap-2\">\n <label style=\"font-weight: bold; font-size: 21.333px; color:#004494 ;\" class=\"mb-0\">{{companyName}}</label>\n <label class=\"mb-0\" style=\"font-weight: bold; font-size: 21.333px; color:black ;\"> - General Ledger Account Details Enquiry</label>\n </div> -->\n\n <div class=\"d-flex align-items-center gap-2 mt-4\">\n <label for=\"date\" style=\"font-weight: 500; font-size: 13px;\" class=\"mb-0\">Report User :</label>\n <label class=\"mb-0\" style=\"font-size: 13px;\">{{reportUser}}</label>\n </div>\n\n <div class=\"d-flex align-items-center gap-2 mt-2\">\n <label for=\"date\" style=\"font-weight: 500; font-size: 13px;\" class=\"mb-0\">Report Time :</label>\n <label class=\"mb-0\" style=\"font-size: 13px;\">{{reportTime}}</label>\n </div>\n\n <label style=\"font-weight: bold; font-size: 16px; text-decoration: underline;\" class=\"mt-2\" >Search Criteria</label>\n\n <div class=\"d-flex align-items-center gap-2 mt-2 mb-2\">\n <label for=\"date\" style=\"font-weight: 500; font-size: 13px;\" class=\"mb-0\">Date :</label>\n <label class=\"mb-0\" style=\"font-size: 13px;\">{{formattedDate}}</label>\n </div>\n\n\n\n\n <ag-grid-angular style=\"width: 100%; height: 500px;\" class=\"ag-theme-alpine ag-small-grid\" [rowData]=\"rowData\"\n [columnDefs]=\"columnDefs\" [defaultColDef]=\"defaultColDef\" [enableRangeSelection]=\"true\"\n [enableBrowserTooltips]=\"true\" [gridOptions]=\"gridOptions\" [animateRows]=\"true\" \n [rowHeight]=\"27\" [headerHeight]=\"35\">\n\n </ag-grid-angular>\n\n\n <div class=\"d-flex align-items-center gap-2 mt-2\">\n <label for=\"date\" style=\"font-weight: 500; font-size: 13px;\" class=\"mb-0\">Report User And Time :</label>\n <label class=\"mb-0\" style=\"font-size: 13px;\">{{reportUser}} @ {{reportTime}}</label>\n </div>\n\n\n </div>\n\n\n\n\n\n\n </div>\n</div>", styles: [".ag-theme-alpine{-webkit-user-select:text!important;user-select:text!important}.ag-small-grid .ag-cell,.ag-small-grid .ag-header-cell{font-size:11px;padding:2px 4px}::ng-deep .ag-theme-alpine .ag-cell{border-right:1px solid #ccc}::ng-deep .ag-theme-alpine .ag-row .ag-cell:last-child{border-right:none}::ng-deep .ag-theme-alpine .ag-header-cell{border-right:1px solid #ccc}::ng-deep .ag-theme-alpine .ag-header-row .ag-header-cell:last-child{border-right:none}::ng-deep .ag-theme-alpine .ag-pinned-left-cols-container .ag-cell{border-right:1px solid #ccc!important}::ng-deep .ag-theme-alpine .ag-pinned-left-header .ag-header-cell{border-right:1px solid #ccc!important}.required-box{position:relative;display:inline-block}.required-box .form-control{border:2px solid #C3007D;padding-right:15px;height:38px}.required-box:after{content:\"*\";color:#c3007d;position:absolute;top:1px;right:5px;font-size:16px;pointer-events:none;font-size:22px;font-weight:700}\n"] }]
|
164
|
+
}], ctorParameters: function () { return [{ type: ReportService }]; } });
|
96
165
|
|
97
166
|
const routes = [
|
98
167
|
{
|
99
168
|
path: 'acc-gl-details-enquiry-report',
|
100
169
|
component: AccGlDetailsEnquiryReportComponent
|
101
|
-
},
|
102
|
-
path: 'transaction-enquiry-report',
|
103
|
-
component: TransactionEnquiryReportComponent
|
104
|
-
}
|
170
|
+
},
|
105
171
|
];
|
106
172
|
class ReportsLibRoutingModule {
|
107
173
|
}
|
@@ -116,36 +182,259 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
116
182
|
}]
|
117
183
|
}] });
|
118
184
|
|
185
|
+
// The file contents for the current environment will overwrite these during build.
|
186
|
+
// The build system defaults to the dev environment which uses `environment.ts`, but if you do
|
187
|
+
// `ng build --env=prod` then `environment.prod.ts` will be used instead.
|
188
|
+
// The list of which env maps to which file can be found in `.angular-cli.json`.
|
189
|
+
const environment = {
|
190
|
+
production: false,
|
191
|
+
selfHostUrl: 'http://localhost:9000/api/scriptx',
|
192
|
+
configFile: 'assets/config/app-config.json'
|
193
|
+
};
|
194
|
+
|
195
|
+
class ActiveXService {
|
196
|
+
constructor(backend) {
|
197
|
+
this.backend = backend;
|
198
|
+
this.macAddress = "";
|
199
|
+
this.ipAddress = "";
|
200
|
+
this.machineName = "";
|
201
|
+
this.processorId = "";
|
202
|
+
this.printerName = "";
|
203
|
+
this.scriptxServiceUrl = environment.selfHostUrl;
|
204
|
+
this.scriptxHttpClient = new HttpClient(backend);
|
205
|
+
this.requestSelfHostedServiceInfo()
|
206
|
+
.subscribe((responseList) => {
|
207
|
+
this.machineName = responseList[0];
|
208
|
+
this.macAddress = responseList[1];
|
209
|
+
this.ipAddress = responseList[2];
|
210
|
+
this.processorId = responseList[3];
|
211
|
+
this.isSelfHostAvailable = true;
|
212
|
+
}, err => {
|
213
|
+
this.isSelfHostAvailable = false;
|
214
|
+
console.error(err);
|
215
|
+
});
|
216
|
+
}
|
217
|
+
getMACAddress() {
|
218
|
+
return this.macAddress;
|
219
|
+
}
|
220
|
+
getIPAddress() {
|
221
|
+
return this.ipAddress;
|
222
|
+
}
|
223
|
+
getMachineName() {
|
224
|
+
return this.machineName;
|
225
|
+
}
|
226
|
+
getPrinterName() {
|
227
|
+
return this.printerName;
|
228
|
+
}
|
229
|
+
getProcessorId() {
|
230
|
+
return this.processorId;
|
231
|
+
}
|
232
|
+
requestSelfHostedServiceInfo() {
|
233
|
+
let responseGetMachineName = this.scriptxHttpClient.get(this.scriptxServiceUrl + "/GetMachineName");
|
234
|
+
let responseGetMacAddress = this.scriptxHttpClient.get(this.scriptxServiceUrl + "/GetMacAddress");
|
235
|
+
let responseGetIpAddress = this.scriptxHttpClient.get(this.scriptxServiceUrl + "/GetIpAddress");
|
236
|
+
let responseGetProcessId = this.scriptxHttpClient.get(this.scriptxServiceUrl + "/GetProcessId");
|
237
|
+
return forkJoin([
|
238
|
+
responseGetMachineName,
|
239
|
+
responseGetMacAddress,
|
240
|
+
responseGetIpAddress,
|
241
|
+
responseGetProcessId,
|
242
|
+
]);
|
243
|
+
}
|
244
|
+
}
|
245
|
+
ActiveXService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ActiveXService, deps: [{ token: i1.HttpBackend }], target: i0.ɵɵFactoryTarget.Injectable });
|
246
|
+
ActiveXService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ActiveXService });
|
247
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ActiveXService, decorators: [{
|
248
|
+
type: Injectable
|
249
|
+
}], ctorParameters: function () { return [{ type: i1.HttpBackend }]; } });
|
250
|
+
|
251
|
+
class SessionService {
|
252
|
+
constructor(storage, oauthService) {
|
253
|
+
this.storage = storage;
|
254
|
+
this.oauthService = oauthService;
|
255
|
+
this.userSessionKey = 'FossilUserSessionModel';
|
256
|
+
this.onSessionChanged = new BehaviorSubject(null);
|
257
|
+
}
|
258
|
+
GetObjectByKey(key) {
|
259
|
+
if (isStorageAvailable(sessionStorage) && this.storage !== undefined) {
|
260
|
+
return this.storage.get(key);
|
261
|
+
}
|
262
|
+
return null;
|
263
|
+
}
|
264
|
+
SetObject(key, value) {
|
265
|
+
if (isStorageAvailable(sessionStorage) && this.storage !== undefined) {
|
266
|
+
this.storage.set(key, value);
|
267
|
+
}
|
268
|
+
this.UpdateSession();
|
269
|
+
}
|
270
|
+
RemoveObject(key) {
|
271
|
+
if (isStorageAvailable(sessionStorage) && this.storage !== undefined) {
|
272
|
+
this.storage.remove(key);
|
273
|
+
}
|
274
|
+
this.UpdateSession();
|
275
|
+
}
|
276
|
+
GetUserSession() {
|
277
|
+
return this.GetObjectByKey(this.userSessionKey);
|
278
|
+
}
|
279
|
+
// TODO Consider if this should close the session on the server side or just reset the client session
|
280
|
+
Clear() {
|
281
|
+
if (isStorageAvailable(sessionStorage) && this.storage !== undefined) {
|
282
|
+
this.storage.remove(this.userSessionKey);
|
283
|
+
}
|
284
|
+
}
|
285
|
+
UpdateSession() {
|
286
|
+
this.session = this.GetUserSession();
|
287
|
+
this.onSessionChanged.next(this.session);
|
288
|
+
}
|
289
|
+
}
|
290
|
+
SessionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SessionService, deps: [{ token: SESSION_STORAGE }, { token: i1$2.OAuthService }], target: i0.ɵɵFactoryTarget.Injectable });
|
291
|
+
SessionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SessionService });
|
292
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SessionService, decorators: [{
|
293
|
+
type: Injectable
|
294
|
+
}], ctorParameters: function () { return [{ type: i2$1.InMemoryStorageService, decorators: [{
|
295
|
+
type: Inject,
|
296
|
+
args: [SESSION_STORAGE]
|
297
|
+
}] }, { type: i1$2.OAuthService }]; } });
|
298
|
+
|
299
|
+
class AuthHttpInterceptor {
|
300
|
+
constructor(oAuthService, activeXService, session) {
|
301
|
+
this.oAuthService = oAuthService;
|
302
|
+
this.activeXService = activeXService;
|
303
|
+
this.session = session;
|
304
|
+
}
|
305
|
+
intercept(request, next) {
|
306
|
+
const token = this.oAuthService.getAccessToken();
|
307
|
+
const guid = v4().replace(/-/g, '');
|
308
|
+
let clonedRequest = request.clone({
|
309
|
+
withCredentials: true
|
310
|
+
});
|
311
|
+
if (token) {
|
312
|
+
clonedRequest = clonedRequest.clone({
|
313
|
+
setHeaders: {
|
314
|
+
Authorization: `Bearer ${token}`
|
315
|
+
},
|
316
|
+
withCredentials: true
|
317
|
+
});
|
318
|
+
}
|
319
|
+
if (!request.headers.has('request-trace-id')) {
|
320
|
+
clonedRequest = clonedRequest.clone({
|
321
|
+
setHeaders: {
|
322
|
+
'request-trace-id': guid
|
323
|
+
}
|
324
|
+
});
|
325
|
+
}
|
326
|
+
const macAddress = this.activeXService.getMACAddress();
|
327
|
+
if (!request.headers.has('MAC-Address')) {
|
328
|
+
clonedRequest = clonedRequest.clone({
|
329
|
+
setHeaders: {
|
330
|
+
'MAC-Address': macAddress || ''
|
331
|
+
},
|
332
|
+
withCredentials: true
|
333
|
+
});
|
334
|
+
}
|
335
|
+
const ipAddress = this.activeXService.getIPAddress();
|
336
|
+
if (!request.headers.has('IP-Address')) {
|
337
|
+
clonedRequest = clonedRequest.clone({
|
338
|
+
setHeaders: {
|
339
|
+
'IP-Address': ipAddress || ''
|
340
|
+
},
|
341
|
+
withCredentials: true
|
342
|
+
});
|
343
|
+
}
|
344
|
+
const machineName = this.activeXService.getMachineName();
|
345
|
+
if (!request.headers.has('Machine-Name')) {
|
346
|
+
clonedRequest = clonedRequest.clone({
|
347
|
+
setHeaders: {
|
348
|
+
'Machine-Name': machineName || ''
|
349
|
+
},
|
350
|
+
withCredentials: true
|
351
|
+
});
|
352
|
+
}
|
353
|
+
let userBranch = 'NotSelected';
|
354
|
+
let userCompany = 'NotSelected';
|
355
|
+
if (this.session) {
|
356
|
+
const userSession = this.session.GetUserSession();
|
357
|
+
userBranch = userSession?.branch || 'NotInSession';
|
358
|
+
userCompany = userSession?.companyShortCode || 'NotInSession';
|
359
|
+
}
|
360
|
+
clonedRequest = clonedRequest.clone({
|
361
|
+
setHeaders: {
|
362
|
+
'UserBranch': userBranch || ''
|
363
|
+
},
|
364
|
+
withCredentials: true
|
365
|
+
});
|
366
|
+
clonedRequest = clonedRequest.clone({
|
367
|
+
setHeaders: {
|
368
|
+
'UserCompany': userCompany || ''
|
369
|
+
},
|
370
|
+
withCredentials: true
|
371
|
+
});
|
372
|
+
return next.handle(clonedRequest);
|
373
|
+
}
|
374
|
+
}
|
375
|
+
AuthHttpInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AuthHttpInterceptor, deps: [{ token: i1$2.OAuthService }, { token: ActiveXService }, { token: SessionService }], target: i0.ɵɵFactoryTarget.Injectable });
|
376
|
+
AuthHttpInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AuthHttpInterceptor });
|
377
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AuthHttpInterceptor, decorators: [{
|
378
|
+
type: Injectable
|
379
|
+
}], ctorParameters: function () { return [{ type: i1$2.OAuthService }, { type: ActiveXService }, { type: SessionService }]; } });
|
380
|
+
|
119
381
|
class ReportsLibModule {
|
120
382
|
}
|
121
383
|
ReportsLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ReportsLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
122
384
|
ReportsLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: ReportsLibModule, declarations: [ReportsLibComponent,
|
123
|
-
AccGlDetailsEnquiryReportComponent,
|
124
|
-
TransactionEnquiryReportComponent], imports: [HttpClientModule,
|
385
|
+
AccGlDetailsEnquiryReportComponent], imports: [HttpClientModule,
|
125
386
|
AgGridModule,
|
126
|
-
ReportsLibRoutingModule
|
127
|
-
|
128
|
-
|
129
|
-
|
387
|
+
ReportsLibRoutingModule,
|
388
|
+
CommonModule,
|
389
|
+
HttpClientModule, i1$3.NgIdleModule, i1$2.OAuthModule, FormsModule], exports: [ReportsLibComponent,
|
390
|
+
AccGlDetailsEnquiryReportComponent] });
|
391
|
+
ReportsLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ReportsLibModule, providers: [
|
392
|
+
ActiveXService,
|
393
|
+
SessionService,
|
394
|
+
{
|
395
|
+
provide: HTTP_INTERCEPTORS,
|
396
|
+
useClass: AuthHttpInterceptor,
|
397
|
+
deps: [OAuthService, ActiveXService, SessionService],
|
398
|
+
multi: true
|
399
|
+
},
|
400
|
+
], imports: [HttpClientModule,
|
130
401
|
AgGridModule,
|
131
|
-
ReportsLibRoutingModule
|
402
|
+
ReportsLibRoutingModule,
|
403
|
+
CommonModule,
|
404
|
+
HttpClientModule,
|
405
|
+
NgIdleModule.forRoot(),
|
406
|
+
OAuthModule.forRoot(),
|
407
|
+
FormsModule] });
|
132
408
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ReportsLibModule, decorators: [{
|
133
409
|
type: NgModule,
|
134
410
|
args: [{
|
135
411
|
declarations: [
|
136
412
|
ReportsLibComponent,
|
137
|
-
AccGlDetailsEnquiryReportComponent
|
138
|
-
TransactionEnquiryReportComponent
|
413
|
+
AccGlDetailsEnquiryReportComponent
|
139
414
|
],
|
140
415
|
imports: [
|
141
416
|
HttpClientModule,
|
142
417
|
AgGridModule,
|
143
|
-
ReportsLibRoutingModule
|
418
|
+
ReportsLibRoutingModule,
|
419
|
+
CommonModule,
|
420
|
+
HttpClientModule,
|
421
|
+
NgIdleModule.forRoot(),
|
422
|
+
OAuthModule.forRoot(),
|
423
|
+
FormsModule
|
424
|
+
],
|
425
|
+
providers: [
|
426
|
+
ActiveXService,
|
427
|
+
SessionService,
|
428
|
+
{
|
429
|
+
provide: HTTP_INTERCEPTORS,
|
430
|
+
useClass: AuthHttpInterceptor,
|
431
|
+
deps: [OAuthService, ActiveXService, SessionService],
|
432
|
+
multi: true
|
433
|
+
},
|
144
434
|
],
|
145
435
|
exports: [
|
146
436
|
ReportsLibComponent,
|
147
|
-
AccGlDetailsEnquiryReportComponent
|
148
|
-
TransactionEnquiryReportComponent
|
437
|
+
AccGlDetailsEnquiryReportComponent
|
149
438
|
]
|
150
439
|
}]
|
151
440
|
}] });
|
@@ -158,5 +447,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
158
447
|
* Generated bundle index. Do not edit.
|
159
448
|
*/
|
160
449
|
|
161
|
-
export { AccGlDetailsEnquiryReportComponent, ReportsLibComponent, ReportsLibModule, ReportsLibService
|
450
|
+
export { AccGlDetailsEnquiryReportComponent, ReportsLibComponent, ReportsLibModule, ReportsLibService };
|
162
451
|
//# sourceMappingURL=sachin9822-reports-lib.mjs.map
|