@hitsoft/ovolt 0.0.1
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/README.md +24 -0
- package/config/enums/index.d.ts +1 -0
- package/config/enums/route-names.d.ts +3 -0
- package/config/index.d.ts +5 -0
- package/config/ovolt-config.module.d.ts +8 -0
- package/config/providers/index.d.ts +1 -0
- package/config/providers/process-log-route.provider.d.ts +9 -0
- package/config/providers/route.provider.d.ts +8 -0
- package/config/providers/system-parameter-route.provider.d.ts +9 -0
- package/config/public-api.d.ts +3 -0
- package/esm2020/config/enums/index.mjs +2 -0
- package/esm2020/config/enums/route-names.mjs +2 -0
- package/esm2020/config/hitsoft-ovolt-config.mjs +5 -0
- package/esm2020/config/hitsoft.Entegration-ovolt-config.mjs +5 -0
- package/esm2020/config/ovolt-config.module.mjs +24 -0
- package/esm2020/config/providers/index.mjs +2 -0
- package/esm2020/config/providers/process-log-route.provider.mjs +19 -0
- package/esm2020/config/providers/route.provider.mjs +24 -0
- package/esm2020/config/providers/system-parameter-route.provider.mjs +19 -0
- package/esm2020/config/public-api.mjs +4 -0
- package/esm2020/hitsoft-ovolt.mjs +5 -0
- package/esm2020/hitsoft.Entegration-ovolt.mjs +5 -0
- package/esm2020/lib/components/hit-process-logs/components/hit-process-log.component.mjs +98 -0
- package/esm2020/lib/components/hit-process-logs/hit-process-log-routing.module.mjs +26 -0
- package/esm2020/lib/components/hit-process-logs/hit-process-log.module.mjs +69 -0
- package/esm2020/lib/components/hit-proxy/devexpress-query-builder/devexpress-load-options.model.mjs +2 -0
- package/esm2020/lib/components/hit-proxy/devexpress-query-builder/devexpress-query-builder.mjs +53 -0
- package/esm2020/lib/components/hit-proxy/hit-process-logs/hit-process-log.service.mjs +31 -0
- package/esm2020/lib/components/hit-proxy/hit-process-logs/models.mjs +2 -0
- package/esm2020/lib/components/hit-proxy/hit-system-parameters/hit-system-parameter.service.mjs +22 -0
- package/esm2020/lib/components/hit-proxy/hit-system-parameters/index.mjs +3 -0
- package/esm2020/lib/components/hit-system-parameters/components/hit-system-parameter.component.mjs +122 -0
- package/esm2020/lib/components/hit-system-parameters/hit-system-parameter-routing.module.mjs +26 -0
- package/esm2020/lib/components/hit-system-parameters/hit-system-parameter.module.mjs +52 -0
- package/esm2020/lib/components/ovolt.component.mjs +18 -0
- package/esm2020/lib/ovolt-routing.module.mjs +29 -0
- package/esm2020/lib/ovolt.module.mjs +29 -0
- package/esm2020/lib/process-logs/process-log/components/process-log.component.mjs +112 -0
- package/esm2020/lib/process-logs/process-log/process-log-routing.module.mjs +26 -0
- package/esm2020/lib/process-logs/process-log/process-log.module.mjs +52 -0
- package/esm2020/lib/proxy/general-transactions/rest-company-type.enum.mjs +8 -0
- package/esm2020/lib/proxy/process-logs/models.mjs +2 -0
- package/esm2020/lib/proxy/process-logs/process-log.service.mjs +51 -0
- package/esm2020/lib/proxy/shared/models.mjs +2 -0
- package/esm2020/lib/proxy/system-parameters/models.mjs +2 -0
- package/esm2020/lib/proxy/system-parameters/system-parameter.service.mjs +41 -0
- package/esm2020/lib/services/ovolt.service.mjs +21 -0
- package/esm2020/public-api.mjs +7 -0
- package/fesm2015/hitsoft-ovolt-config.mjs +85 -0
- package/fesm2015/hitsoft-ovolt-config.mjs.map +1 -0
- package/fesm2015/hitsoft-ovolt.mjs +630 -0
- package/fesm2015/hitsoft-ovolt.mjs.map +1 -0
- package/fesm2015/hitsoft.Entegration-ovolt-config.mjs +85 -0
- package/fesm2015/hitsoft.Entegration-ovolt-config.mjs.map +1 -0
- package/fesm2015/hitsoft.Entegration-ovolt.mjs +630 -0
- package/fesm2015/hitsoft.Entegration-ovolt.mjs.map +1 -0
- package/fesm2020/hitsoft-ovolt-config.mjs +85 -0
- package/fesm2020/hitsoft-ovolt-config.mjs.map +1 -0
- package/fesm2020/hitsoft-ovolt.mjs +631 -0
- package/fesm2020/hitsoft-ovolt.mjs.map +1 -0
- package/fesm2020/hitsoft.Entegration-ovolt-config.mjs +85 -0
- package/fesm2020/hitsoft.Entegration-ovolt-config.mjs.map +1 -0
- package/fesm2020/hitsoft.Entegration-ovolt.mjs +631 -0
- package/fesm2020/hitsoft.Entegration-ovolt.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/hit-process-logs/components/hit-process-log.component.d.ts +29 -0
- package/lib/components/hit-process-logs/hit-process-log-routing.module.d.ts +7 -0
- package/lib/components/hit-process-logs/hit-process-log.module.d.ts +16 -0
- package/lib/components/hit-proxy/devexpress-query-builder/devexpress-load-options.model.d.ts +8 -0
- package/lib/components/hit-proxy/devexpress-query-builder/devexpress-query-builder.d.ts +16 -0
- package/lib/components/hit-proxy/hit-process-logs/hit-process-log.service.d.ts +14 -0
- package/lib/components/hit-proxy/hit-process-logs/models.d.ts +3 -0
- package/lib/components/hit-proxy/hit-system-parameters/hit-system-parameter.service.d.ts +12 -0
- package/lib/components/hit-proxy/hit-system-parameters/index.d.ts +2 -0
- package/lib/components/hit-system-parameters/components/hit-system-parameter.component.d.ts +30 -0
- package/lib/components/hit-system-parameters/hit-system-parameter-routing.module.d.ts +7 -0
- package/lib/components/hit-system-parameters/hit-system-parameter.module.d.ts +15 -0
- package/lib/components/ovolt.component.d.ts +10 -0
- package/lib/ovolt-routing.module.d.ts +7 -0
- package/lib/ovolt.module.d.ts +13 -0
- package/lib/process-logs/process-log/components/process-log.component.d.ts +35 -0
- package/lib/process-logs/process-log/process-log-routing.module.d.ts +7 -0
- package/lib/process-logs/process-log/process-log.module.d.ts +15 -0
- package/lib/proxy/general-transactions/rest-company-type.enum.d.ts +5 -0
- package/lib/proxy/process-logs/models.d.ts +41 -0
- package/lib/proxy/process-logs/process-log.service.d.ts +19 -0
- package/lib/proxy/shared/models.d.ts +3 -0
- package/lib/proxy/system-parameters/models.d.ts +80 -0
- package/lib/proxy/system-parameters/system-parameter.service.d.ts +16 -0
- package/lib/services/ovolt.service.d.ts +10 -0
- package/package.json +41 -0
- package/public-api.d.ts +3 -0
|
@@ -0,0 +1,631 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable, Component, ChangeDetectionStrategy, ViewChild, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@abp/ng.core';
|
|
4
|
+
import { downloadBlob, ListService, AuthGuard, PermissionGuard, CoreModule, mapEnumToOptions, LazyModuleFactory } from '@abp/ng.core';
|
|
5
|
+
import * as i2 from '@abp/ng.theme.shared';
|
|
6
|
+
import { ThemeSharedModule } from '@abp/ng.theme.shared';
|
|
7
|
+
import * as i1$1 from '@angular/router';
|
|
8
|
+
import { RouterModule } from '@angular/router';
|
|
9
|
+
import { CommercialUiModule } from '@volo/abp.commercial.ng.ui';
|
|
10
|
+
import * as i5 from '@abp/ng.components/page';
|
|
11
|
+
import { PageModule } from '@abp/ng.components/page';
|
|
12
|
+
import * as i7$1 from '@ngx-validate/core';
|
|
13
|
+
import { NgxValidateCoreModule } from '@ngx-validate/core';
|
|
14
|
+
import { NgbDateAdapter, NgbCollapseModule, NgbDatepickerModule, NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';
|
|
15
|
+
import * as i6 from 'devextreme-angular';
|
|
16
|
+
import { DxDataGridModule, DxButtonModule, DxPopupModule, DxScrollViewModule, DxTemplateModule, DxTemplateHost } from 'devextreme-angular';
|
|
17
|
+
import { switchMap, finalize } from 'rxjs';
|
|
18
|
+
import { DateAdapter } from '@abp/ng.theme.shared/extensions';
|
|
19
|
+
import * as AspNetData from 'devextreme-aspnet-data-nojquery';
|
|
20
|
+
import * as i4 from '@angular/common';
|
|
21
|
+
import * as i7 from 'devextreme-angular/ui/nested';
|
|
22
|
+
import * as i8 from 'devextreme-angular/core';
|
|
23
|
+
import * as i1$2 from '@angular/forms';
|
|
24
|
+
import { Validators } from '@angular/forms';
|
|
25
|
+
import { finalize as finalize$1 } from 'rxjs/operators';
|
|
26
|
+
|
|
27
|
+
class OvoltService {
|
|
28
|
+
constructor(restService) {
|
|
29
|
+
this.restService = restService;
|
|
30
|
+
this.apiName = 'Ovolt';
|
|
31
|
+
}
|
|
32
|
+
sample() {
|
|
33
|
+
return this.restService.request({ method: 'GET', url: '/api/Ovolt/sample' }, { apiName: this.apiName });
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
OvoltService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OvoltService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
37
|
+
OvoltService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OvoltService, providedIn: 'root' });
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OvoltService, decorators: [{
|
|
39
|
+
type: Injectable,
|
|
40
|
+
args: [{
|
|
41
|
+
providedIn: 'root',
|
|
42
|
+
}]
|
|
43
|
+
}], ctorParameters: function () { return [{ type: i1.RestService }]; } });
|
|
44
|
+
|
|
45
|
+
class OvoltComponent {
|
|
46
|
+
constructor(service) {
|
|
47
|
+
this.service = service;
|
|
48
|
+
}
|
|
49
|
+
ngOnInit() {
|
|
50
|
+
this.service.sample().subscribe(console.log);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
OvoltComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OvoltComponent, deps: [{ token: OvoltService }], target: i0.ɵɵFactoryTarget.Component });
|
|
54
|
+
OvoltComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: OvoltComponent, selector: "lib-ovolt", ngImport: i0, template: ` <p>ovolt works!</p> `, isInline: true });
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OvoltComponent, decorators: [{
|
|
56
|
+
type: Component,
|
|
57
|
+
args: [{ selector: 'lib-ovolt', template: ` <p>ovolt works!</p> ` }]
|
|
58
|
+
}], ctorParameters: function () { return [{ type: OvoltService }]; } });
|
|
59
|
+
|
|
60
|
+
class ProcessLogService {
|
|
61
|
+
constructor(restService) {
|
|
62
|
+
this.restService = restService;
|
|
63
|
+
this.apiName = 'Ovolt';
|
|
64
|
+
this.create = (input) => this.restService.request({
|
|
65
|
+
method: 'POST',
|
|
66
|
+
url: '/api/ovolt/process-logs',
|
|
67
|
+
body: input,
|
|
68
|
+
}, { apiName: this.apiName });
|
|
69
|
+
this.delete = (id) => this.restService.request({
|
|
70
|
+
method: 'DELETE',
|
|
71
|
+
url: `/api/ovolt/process-logs/${id}`,
|
|
72
|
+
}, { apiName: this.apiName });
|
|
73
|
+
this.get = (id) => this.restService.request({
|
|
74
|
+
method: 'GET',
|
|
75
|
+
url: `/api/ovolt/process-logs/${id}`,
|
|
76
|
+
}, { apiName: this.apiName });
|
|
77
|
+
this.getDownloadToken = () => this.restService.request({
|
|
78
|
+
method: 'GET',
|
|
79
|
+
url: '/api/ovolt/process-logs/download-token',
|
|
80
|
+
}, { apiName: this.apiName });
|
|
81
|
+
this.getList = (input) => this.restService.request({
|
|
82
|
+
method: 'GET',
|
|
83
|
+
url: '/api/ovolt/process-logs',
|
|
84
|
+
params: { filterText: input.filterText, processId: input.processId, type: input.type, name: input.name, status: input.status, request: input.request, response: input.response, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
|
|
85
|
+
}, { apiName: this.apiName });
|
|
86
|
+
this.getListAsExcelFile = (input) => this.restService.request({
|
|
87
|
+
method: 'GET',
|
|
88
|
+
responseType: 'blob',
|
|
89
|
+
url: '/api/ovolt/process-logs/as-excel-file',
|
|
90
|
+
params: { downloadToken: input.downloadToken, filterText: input.filterText, name: input.name },
|
|
91
|
+
}, { apiName: this.apiName });
|
|
92
|
+
this.update = (id, input) => this.restService.request({
|
|
93
|
+
method: 'PUT',
|
|
94
|
+
url: `/api/ovolt/process-logs/${id}`,
|
|
95
|
+
body: input,
|
|
96
|
+
}, { apiName: this.apiName });
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
ProcessLogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ProcessLogService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
100
|
+
ProcessLogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ProcessLogService, providedIn: 'root' });
|
|
101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ProcessLogService, decorators: [{
|
|
102
|
+
type: Injectable,
|
|
103
|
+
args: [{
|
|
104
|
+
providedIn: 'root',
|
|
105
|
+
}]
|
|
106
|
+
}], ctorParameters: function () { return [{ type: i1.RestService }]; } });
|
|
107
|
+
|
|
108
|
+
class DevexpressRestService {
|
|
109
|
+
constructor(envService, toaster) {
|
|
110
|
+
this.envService = envService;
|
|
111
|
+
this.toaster = toaster;
|
|
112
|
+
this.createStore = (options) => AspNetData.createStore({
|
|
113
|
+
key: options.key,
|
|
114
|
+
loadParams: options.params,
|
|
115
|
+
loadUrl: `${this.envService.getEnvironment().apis.Ovolt.url + '/' + options.loadUrl}`,
|
|
116
|
+
insertUrl: `${this.envService.getEnvironment().apis.Ovolt.url + '/' + options.insertUrl}`,
|
|
117
|
+
insertMethod: 'POST',
|
|
118
|
+
updateUrl: `${this.envService.getEnvironment().apis.Ovolt.url + '/' + options.updateUrl}`,
|
|
119
|
+
updateMethod: 'PUT',
|
|
120
|
+
deleteUrl: `${this.envService.getEnvironment().apis.Ovolt.url + '/' + options.deleteUrl}`,
|
|
121
|
+
deleteMethod: 'DELETE',
|
|
122
|
+
onLoading(loadOptions) {
|
|
123
|
+
},
|
|
124
|
+
onBeforeSend(operation, ajaxSettings) {
|
|
125
|
+
if (operation === "insert" || operation === "update" || operation === "delete") {
|
|
126
|
+
console.log(ajaxSettings);
|
|
127
|
+
if (operation == "delete") {
|
|
128
|
+
ajaxSettings.url = ajaxSettings.url + "/" + localStorage.getItem("appointment-deleted-id");
|
|
129
|
+
}
|
|
130
|
+
ajaxSettings.contentType = "application/json";
|
|
131
|
+
ajaxSettings.data = ajaxSettings.data.values;
|
|
132
|
+
}
|
|
133
|
+
ajaxSettings.headers = {
|
|
134
|
+
Authorization: 'Bearer ' + localStorage.getItem('access_token'),
|
|
135
|
+
};
|
|
136
|
+
}, onAjaxError: this.onAjaxError
|
|
137
|
+
});
|
|
138
|
+
console.log(this.envService.getEnvironment());
|
|
139
|
+
}
|
|
140
|
+
onAjaxError(e) {
|
|
141
|
+
//let devexError: DevxError = JSON.parse(e.message)
|
|
142
|
+
let jsonObj = e.xhr.responseJSON || JSON.parse(e.xhr.responseText);
|
|
143
|
+
e.error = jsonObj ? ` ${jsonObj.error.message} : ${jsonObj.error.details}` : 'null text';
|
|
144
|
+
//e.error=devexError.error.message
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
DevexpressRestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DevexpressRestService, deps: [{ token: i1.EnvironmentService }, { token: i2.ToasterService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
148
|
+
DevexpressRestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DevexpressRestService, providedIn: 'root' });
|
|
149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DevexpressRestService, decorators: [{
|
|
150
|
+
type: Injectable,
|
|
151
|
+
args: [{
|
|
152
|
+
providedIn: 'root'
|
|
153
|
+
}]
|
|
154
|
+
}], ctorParameters: function () { return [{ type: i1.EnvironmentService }, { type: i2.ToasterService }]; } });
|
|
155
|
+
|
|
156
|
+
class HitProcessLogService {
|
|
157
|
+
constructor(restService, devexService) {
|
|
158
|
+
this.restService = restService;
|
|
159
|
+
this.devexService = devexService;
|
|
160
|
+
this.apiName = 'Ovolt';
|
|
161
|
+
this.getRequestModel = (input) => this.restService.request({
|
|
162
|
+
method: 'POST',
|
|
163
|
+
url: '/api/ovolt/process-logs/get-request-model',
|
|
164
|
+
body: input
|
|
165
|
+
}, { apiName: this.apiName });
|
|
166
|
+
}
|
|
167
|
+
get LoadProcessLogs() {
|
|
168
|
+
return this.devexService.createStore({
|
|
169
|
+
key: 'id',
|
|
170
|
+
loadUrl: 'api/ovolt/process-logs/load',
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
HitProcessLogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitProcessLogService, deps: [{ token: i1.RestService }, { token: DevexpressRestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
175
|
+
HitProcessLogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitProcessLogService, providedIn: 'root' });
|
|
176
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitProcessLogService, decorators: [{
|
|
177
|
+
type: Injectable,
|
|
178
|
+
args: [{
|
|
179
|
+
providedIn: 'root',
|
|
180
|
+
}]
|
|
181
|
+
}], ctorParameters: function () { return [{ type: i1.RestService }, { type: DevexpressRestService }]; } });
|
|
182
|
+
|
|
183
|
+
class HitProcessLogComponent {
|
|
184
|
+
constructor(service, track, hitProcessLogService) {
|
|
185
|
+
this.service = service;
|
|
186
|
+
this.track = track;
|
|
187
|
+
this.hitProcessLogService = hitProcessLogService;
|
|
188
|
+
this.isExportToExcelBusy = false;
|
|
189
|
+
this.isRequestModalOpen = false;
|
|
190
|
+
this.isLoadingRequestModel = false;
|
|
191
|
+
this.statusFilter = (value, operation, target) => {
|
|
192
|
+
// Header filter (true / false)
|
|
193
|
+
if (target === "headerFilter") {
|
|
194
|
+
return ["status", "=", value];
|
|
195
|
+
}
|
|
196
|
+
// Search panel
|
|
197
|
+
if (target === "search") {
|
|
198
|
+
if (value === "✔")
|
|
199
|
+
return ["status", "=", true];
|
|
200
|
+
if (value === "✖")
|
|
201
|
+
return ["status", "=", false];
|
|
202
|
+
}
|
|
203
|
+
// Filter row
|
|
204
|
+
return ["status", "=", value];
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
ngOnInit() {
|
|
208
|
+
this.initDataSource();
|
|
209
|
+
this.closeButtonOptions = {
|
|
210
|
+
text: 'Close',
|
|
211
|
+
stylingMode: 'outlined',
|
|
212
|
+
type: 'normal',
|
|
213
|
+
onClick: () => {
|
|
214
|
+
this.isRequestModalOpen = false;
|
|
215
|
+
},
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
initDataSource() {
|
|
219
|
+
// Store'u sadece bir kere oluşturuyoruz
|
|
220
|
+
this.processLogDataSource = this.hitProcessLogService.LoadProcessLogs;
|
|
221
|
+
}
|
|
222
|
+
showRequest(id) {
|
|
223
|
+
// Yükleme durumunu başlat (gerekirse)
|
|
224
|
+
this.isLoadingRequestModel = true;
|
|
225
|
+
// Önce popup'ı kapat (önceki tıklamalarda açık kalmış olabilir)
|
|
226
|
+
this.isRequestModalOpen = false;
|
|
227
|
+
this.hitProcessLogService.getRequestModel({ logId: id })
|
|
228
|
+
.subscribe({
|
|
229
|
+
next: (data) => {
|
|
230
|
+
this.selectedRequestModel = typeof data === 'string' ? JSON.parse(data) : data;
|
|
231
|
+
// Veri geldikten sonra popup'ı aç
|
|
232
|
+
this.isRequestModalOpen = true;
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
this.isLoadingRequestModel = false;
|
|
236
|
+
}
|
|
237
|
+
editProcessLog(record) {
|
|
238
|
+
console.log('Edit:', record);
|
|
239
|
+
// Modal form açılacak şekilde implement edilebilir
|
|
240
|
+
}
|
|
241
|
+
deleteProcessLog(record) {
|
|
242
|
+
if (confirm('Are you sure you want to delete this record?')) {
|
|
243
|
+
this.service.delete(record.id).subscribe(() => {
|
|
244
|
+
// Grid'i refresh ediyoruz
|
|
245
|
+
this.dxGrid.instance.refresh();
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
exportToExcel() {
|
|
250
|
+
this.isExportToExcelBusy = true;
|
|
251
|
+
this.service
|
|
252
|
+
.getDownloadToken()
|
|
253
|
+
.pipe(switchMap(({ token }) => this.service.getListAsExcelFile({ downloadToken: token })), finalize(() => (this.isExportToExcelBusy = false)))
|
|
254
|
+
.subscribe(result => downloadBlob(result, 'ProcessLogs.xlsx'));
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
HitProcessLogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitProcessLogComponent, deps: [{ token: ProcessLogService }, { token: i1.TrackByService }, { token: HitProcessLogService }], target: i0.ɵɵFactoryTarget.Component });
|
|
258
|
+
HitProcessLogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: HitProcessLogComponent, selector: "lib-hit-process-log", providers: [ListService, { provide: NgbDateAdapter, useClass: DateAdapter }], viewQueries: [{ propertyName: "dxGrid", first: true, predicate: ["dxGrid"], descendants: true }], ngImport: i0, template: "<abp-page [title]=\"'Ovolt::ProcessLogs' | abpLocalization\">\r\n <abp-page-toolbar-container class=\"col\">\r\n <div class=\"text-lg-end pt-2\">\r\n <dx-button text=\"{{ 'Ovolt::ExportToExcel' | abpLocalization }}\" type=\"default\" (onClick)=\"exportToExcel()\"\r\n [disabled]=\"isExportToExcelBusy\"></dx-button>\r\n </div>\r\n </abp-page-toolbar-container>\r\n\r\n <div class=\"card mt-2\">\r\n <div class=\"card-body\">\r\n <dx-data-grid #dxGrid [dataSource]=\"processLogDataSource\" [showRowLines]=\"true\" [showBorders]=\"true\"\r\n [remoteOperations]=\"true\" [hoverStateEnabled]=\"true\" [repaintChangesOnly]=\"true\" [allowColumnResizing]=\"true\"\r\n columnResizingMode=\"widget\" [allowColumnReordering]=\"true\" [columnAutoWidth]=\"true\" [columnHidingEnabled]=\"true\"\r\n keyExpr=\"id\">\r\n <dxo-paging [pageSize]=\"50\"></dxo-paging>\r\n <dxo-column-fixing [enabled]=\"true\"></dxo-column-fixing>\r\n <dxo-header-filter [allowSearch]=\"true\" [visible]=\"true\"></dxo-header-filter>\r\n <dxo-filter-row [visible]=\"true\"></dxo-filter-row>\r\n <dxo-column-fixing [enabled]=\"true\"></dxo-column-fixing>\r\n <dxo-filter-builder [allowHierarchicalFields]=\"true\"></dxo-filter-builder>\r\n <dxo-filter-panel [visible]=\"true\"></dxo-filter-panel>\r\n <dxo-sorting mode=\"single\"></dxo-sorting>\r\n <dxo-scrolling mode=\"horizontal\" showScrollbar=\"always\"></dxo-scrolling>\r\n\r\n <!-- Columns -->\r\n <!-- <dxi-column\r\n caption=\"{{ 'Ovolt::Actions' | abpLocalization }}\"\r\n [width]=\"150\"\r\n [allowFiltering]=\"false\"\r\n [allowSorting]=\"false\"\r\n [fixed]=\"true\"\r\n [cellTemplate]=\"'actionsTemplate'\"\r\n ></dxi-column> -->\r\n <!-- Templates (Grid Child) -->\r\n <!-- <div *dxTemplate=\"let data of 'actionsTemplate'\">\r\n <dx-button text=\"{{ 'AbpUi::Edit' | abpLocalization }}\" type=\"default\" stylingMode=\"contained\"\r\n (onClick)=\"editProcessLog(data.data)\" class=\"me-2\"></dx-button>\r\n <dx-button text=\"{{ 'AbpUi::Delete' | abpLocalization }}\" type=\"danger\" stylingMode=\"contained\"\r\n (onClick)=\"deleteProcessLog(data.data)\"></dx-button>\r\n </div> -->\r\n\r\n <!-- <dxi-column dataField=\"status\" caption=\"{{ 'Ovolt::Status' | abpLocalization }}\"></dxi-column> -->\r\n <dxi-column dataField=\"status\" caption=\"{{ 'Ovolt::Status' | abpLocalization }}\"\r\n [cellTemplate]=\"'statusTemplate'\" [calculateFilterExpression]=\"statusFilter\">\r\n </dxi-column>\r\n\r\n <div *dxTemplate=\"let data of 'statusTemplate'\">\r\n <span *ngIf=\"data.value\" style=\"color: green; font-size: 18px;\">\u2714</span>\r\n <span *ngIf=\"!data.value\" style=\"color: red; font-size: 18px;\">\u2716</span>\r\n </div>\r\n\r\n\r\n <dxi-column dataField=\"processId\" caption=\"{{ 'Ovolt::ProcessId' | abpLocalization }}\"></dxi-column>\r\n <!-- <dxi-column dataField=\"type\" caption=\"{{ 'Ovolt::Type' | abpLocalization }}\"></dxi-column> -->\r\n <dxi-column dataField=\"name\" caption=\"{{ 'Ovolt::Name' | abpLocalization }}\"></dxi-column>\r\n\r\n <dxi-column [fixed]=\"true\" caption=\"{{ 'Ovolt::Request' | abpLocalization }}\" dataField=\"id\"\r\n [cellTemplate]=\"'requestTemplate'\">\r\n <div *dxTemplate=\"let data of 'requestTemplate'\">\r\n <dx-button text=\"{{ 'Ovolt::ShowRequest' | abpLocalization }}\" type=\"default\"\r\n (onClick)=\"showRequest(data.data.id)\"></dx-button>\r\n </div>\r\n </dxi-column>\r\n\r\n\r\n <dxi-column caption=\"{{ 'Ovolt::Response' | abpLocalization }}\" dataField=\"response\"></dxi-column>\r\n <dxi-column caption=\"{{ 'Ovolt::CreationTime' | abpLocalization }}\" dataField=\"creationTime\" dataType=\"datetime\"\r\n [format]=\" 'dd.MM.yyyy HH:mm:ss' \">\r\n </dxi-column>\r\n\r\n </dx-data-grid>\r\n </div>\r\n </div>\r\n\r\n <!-- Request JSON Popup -->\r\n <dx-popup [(visible)]=\"isRequestModalOpen\" [showTitle]=\"true\" [title]=\"'Ovolt::Request' | abpLocalization\"\r\n [hideOnOutsideClick]=\"true\" [showCloseButton]=\"false\">\r\n <dxi-toolbar-item widget=\"dxButton\" toolbar=\"bottom\" location=\"after\" [options]=\"closeButtonOptions\">\r\n </dxi-toolbar-item>\r\n <div *dxTemplate=\"let data of 'content'\" class=\"p-3\">\r\n <dx-scroll-view>\r\n <pre style=\"white-space: pre-wrap; word-wrap: break-word;\">\r\n {{ selectedRequestModel | json }}\r\n </pre>\r\n </dx-scroll-view>\r\n </div>\r\n </dx-popup>\r\n</abp-page>", dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: i5.PageToolbarContainerComponent, selector: "abp-page-toolbar-container" }, { kind: "component", type: i6.DxDataGridComponent, selector: "dx-data-grid", inputs: ["accessKey", "activeStateEnabled", "allowColumnReordering", "allowColumnResizing", "autoNavigateToFocusedRow", "cacheEnabled", "cellHintEnabled", "columnAutoWidth", "columnChooser", "columnFixing", "columnHidingEnabled", "columnMinWidth", "columnResizingMode", "columns", "columnWidth", "customizeColumns", "dataRowTemplate", "dataSource", "dateSerializationFormat", "disabled", "editing", "elementAttr", "errorRowEnabled", "export", "filterBuilder", "filterBuilderPopup", "filterPanel", "filterRow", "filterSyncEnabled", "filterValue", "focusedColumnIndex", "focusedRowEnabled", "focusedRowIndex", "focusedRowKey", "grouping", "groupPanel", "headerFilter", "height", "highlightChanges", "hint", "hoverStateEnabled", "keyboardNavigation", "keyExpr", "loadPanel", "masterDetail", "noDataText", "pager", "paging", "remoteOperations", "renderAsync", "repaintChangesOnly", "rowAlternationEnabled", "rowDragging", "rowTemplate", "rtlEnabled", "scrolling", "searchPanel", "selectedRowKeys", "selection", "selectionFilter", "showBorders", "showColumnHeaders", "showColumnLines", "showRowLines", "sortByGroupSummaryInfo", "sorting", "stateStoring", "summary", "syncLookupFilterValues", "tabIndex", "toolbar", "twoWayBindingEnabled", "visible", "width", "wordWrapEnabled"], outputs: ["onAdaptiveDetailRowPreparing", "onCellClick", "onCellDblClick", "onCellHoverChanged", "onCellPrepared", "onContentReady", "onContextMenuPreparing", "onDataErrorOccurred", "onDisposing", "onEditCanceled", "onEditCanceling", "onEditingStart", "onEditorPrepared", "onEditorPreparing", "onExporting", "onFocusedCellChanged", "onFocusedCellChanging", "onFocusedRowChanged", "onFocusedRowChanging", "onInitialized", "onInitNewRow", "onKeyDown", "onOptionChanged", "onRowClick", "onRowCollapsed", "onRowCollapsing", "onRowDblClick", "onRowExpanded", "onRowExpanding", "onRowInserted", "onRowInserting", "onRowPrepared", "onRowRemoved", "onRowRemoving", "onRowUpdated", "onRowUpdating", "onRowValidating", "onSaved", "onSaving", "onSelectionChanged", "onToolbarPreparing", "accessKeyChange", "activeStateEnabledChange", "allowColumnReorderingChange", "allowColumnResizingChange", "autoNavigateToFocusedRowChange", "cacheEnabledChange", "cellHintEnabledChange", "columnAutoWidthChange", "columnChooserChange", "columnFixingChange", "columnHidingEnabledChange", "columnMinWidthChange", "columnResizingModeChange", "columnsChange", "columnWidthChange", "customizeColumnsChange", "dataRowTemplateChange", "dataSourceChange", "dateSerializationFormatChange", "disabledChange", "editingChange", "elementAttrChange", "errorRowEnabledChange", "exportChange", "filterBuilderChange", "filterBuilderPopupChange", "filterPanelChange", "filterRowChange", "filterSyncEnabledChange", "filterValueChange", "focusedColumnIndexChange", "focusedRowEnabledChange", "focusedRowIndexChange", "focusedRowKeyChange", "groupingChange", "groupPanelChange", "headerFilterChange", "heightChange", "highlightChangesChange", "hintChange", "hoverStateEnabledChange", "keyboardNavigationChange", "keyExprChange", "loadPanelChange", "masterDetailChange", "noDataTextChange", "pagerChange", "pagingChange", "remoteOperationsChange", "renderAsyncChange", "repaintChangesOnlyChange", "rowAlternationEnabledChange", "rowDraggingChange", "rowTemplateChange", "rtlEnabledChange", "scrollingChange", "searchPanelChange", "selectedRowKeysChange", "selectionChange", "selectionFilterChange", "showBordersChange", "showColumnHeadersChange", "showColumnLinesChange", "showRowLinesChange", "sortByGroupSummaryInfoChange", "sortingChange", "stateStoringChange", "summaryChange", "syncLookupFilterValuesChange", "tabIndexChange", "toolbarChange", "twoWayBindingEnabledChange", "visibleChange", "widthChange", "wordWrapEnabledChange"] }, { kind: "component", type: i7.DxoColumnFixingComponent, selector: "dxo-column-fixing", inputs: ["enabled", "texts"] }, { kind: "component", type: i7.DxiColumnComponent, selector: "dxi-column", inputs: ["alignment", "allowEditing", "allowExporting", "allowFiltering", "allowFixing", "allowGrouping", "allowHeaderFiltering", "allowHiding", "allowReordering", "allowResizing", "allowSearch", "allowSorting", "autoExpandGroup", "buttons", "calculateCellValue", "calculateDisplayValue", "calculateFilterExpression", "calculateGroupValue", "calculateSortValue", "caption", "cellTemplate", "columns", "cssClass", "customizeText", "dataField", "dataType", "editCellTemplate", "editorOptions", "encodeHtml", "falseText", "filterOperations", "filterType", "filterValue", "filterValues", "fixed", "fixedPosition", "format", "formItem", "groupCellTemplate", "groupIndex", "headerCellTemplate", "headerFilter", "hidingPriority", "isBand", "lookup", "minWidth", "name", "ownerBand", "renderAsync", "selectedFilterOperation", "setCellValue", "showEditorAlways", "showInColumnChooser", "showWhenGrouped", "sortIndex", "sortingMethod", "sortOrder", "trueText", "type", "validationRules", "visible", "visibleIndex", "width"], outputs: ["filterValueChange", "filterValuesChange", "groupIndexChange", "selectedFilterOperationChange", "sortIndexChange", "sortOrderChange", "visibleChange", "visibleIndexChange"] }, { kind: "component", type: i7.DxoHeaderFilterComponent, selector: "dxo-header-filter", inputs: ["allowSearch", "dataSource", "groupInterval", "height", "searchMode", "width", "searchTimeout", "texts", "visible", "showRelevantValues"] }, { kind: "component", type: i7.DxiToolbarItemComponent, selector: "dxi-toolbar-item", inputs: ["cssClass", "disabled", "html", "locateInMenu", "location", "menuItemTemplate", "options", "showText", "template", "text", "toolbar", "visible", "widget"] }, { kind: "component", type: i7.DxoFilterBuilderComponent, selector: "dxo-filter-builder", inputs: ["accessKey", "activeStateEnabled", "allowHierarchicalFields", "customOperations", "disabled", "elementAttr", "fields", "filterOperationDescriptions", "focusStateEnabled", "groupOperationDescriptions", "groupOperations", "height", "hint", "hoverStateEnabled", "maxGroupLevel", "onContentReady", "onDisposing", "onEditorPrepared", "onEditorPreparing", "onInitialized", "onOptionChanged", "onValueChanged", "rtlEnabled", "tabIndex", "value", "visible", "width"], outputs: ["valueChange"] }, { kind: "component", type: i7.DxoFilterPanelComponent, selector: "dxo-filter-panel", inputs: ["customizeText", "filterEnabled", "texts", "visible"], outputs: ["filterEnabledChange"] }, { kind: "component", type: i7.DxoFilterRowComponent, selector: "dxo-filter-row", inputs: ["applyFilter", "applyFilterText", "betweenEndText", "betweenStartText", "operationDescriptions", "resetOperationText", "showAllText", "showOperationChooser", "visible"] }, { kind: "component", type: i7.DxoPagingComponent, selector: "dxo-paging", inputs: ["enabled", "pageIndex", "pageSize"], outputs: ["pageIndexChange", "pageSizeChange"] }, { kind: "component", type: i7.DxoScrollingComponent, selector: "dxo-scrolling", inputs: ["columnRenderingMode", "mode", "preloadEnabled", "renderAsync", "rowRenderingMode", "scrollByContent", "scrollByThumb", "showScrollbar", "useNative"] }, { kind: "component", type: i7.DxoSortingComponent, selector: "dxo-sorting", inputs: ["ascendingText", "clearText", "descendingText", "mode", "showSortIndexes"] }, { kind: "directive", type: i8.DxTemplateDirective, selector: "[dxTemplate]", inputs: ["dxTemplateOf"] }, { kind: "component", type: i6.DxButtonComponent, selector: "dx-button", inputs: ["accessKey", "activeStateEnabled", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "icon", "rtlEnabled", "stylingMode", "tabIndex", "template", "text", "type", "useSubmitBehavior", "validationGroup", "visible", "width"], outputs: ["onClick", "onContentReady", "onDisposing", "onInitialized", "onOptionChanged", "accessKeyChange", "activeStateEnabledChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "iconChange", "rtlEnabledChange", "stylingModeChange", "tabIndexChange", "templateChange", "textChange", "typeChange", "useSubmitBehaviorChange", "validationGroupChange", "visibleChange", "widthChange"] }, { kind: "component", type: i6.DxPopupComponent, selector: "dx-popup", inputs: ["accessKey", "animation", "closeOnOutsideClick", "container", "contentTemplate", "copyRootClassesToWrapper", "deferRendering", "disabled", "dragAndResizeArea", "dragEnabled", "dragOutsideBoundary", "elementAttr", "focusStateEnabled", "fullScreen", "height", "hideOnOutsideClick", "hideOnParentScroll", "hint", "hoverStateEnabled", "maxHeight", "maxWidth", "minHeight", "minWidth", "position", "resizeEnabled", "restorePosition", "rtlEnabled", "shading", "shadingColor", "showCloseButton", "showTitle", "tabIndex", "title", "titleTemplate", "toolbarItems", "visible", "width", "wrapperAttr"], outputs: ["onContentReady", "onDisposing", "onHidden", "onHiding", "onInitialized", "onOptionChanged", "onResize", "onResizeEnd", "onResizeStart", "onShowing", "onShown", "onTitleRendered", "accessKeyChange", "animationChange", "closeOnOutsideClickChange", "containerChange", "contentTemplateChange", "copyRootClassesToWrapperChange", "deferRenderingChange", "disabledChange", "dragAndResizeAreaChange", "dragEnabledChange", "dragOutsideBoundaryChange", "elementAttrChange", "focusStateEnabledChange", "fullScreenChange", "heightChange", "hideOnOutsideClickChange", "hideOnParentScrollChange", "hintChange", "hoverStateEnabledChange", "maxHeightChange", "maxWidthChange", "minHeightChange", "minWidthChange", "positionChange", "resizeEnabledChange", "restorePositionChange", "rtlEnabledChange", "shadingChange", "shadingColorChange", "showCloseButtonChange", "showTitleChange", "tabIndexChange", "titleChange", "titleTemplateChange", "toolbarItemsChange", "visibleChange", "widthChange", "wrapperAttrChange"] }, { kind: "component", type: i6.DxScrollViewComponent, selector: "dx-scroll-view", inputs: ["bounceEnabled", "direction", "disabled", "elementAttr", "height", "pulledDownText", "pullingDownText", "reachBottomText", "refreshingText", "rtlEnabled", "scrollByContent", "scrollByThumb", "showScrollbar", "useNative", "width"], outputs: ["onDisposing", "onInitialized", "onOptionChanged", "onPullDown", "onReachBottom", "onScroll", "onUpdated", "bounceEnabledChange", "directionChange", "disabledChange", "elementAttrChange", "heightChange", "pulledDownTextChange", "pullingDownTextChange", "reachBottomTextChange", "refreshingTextChange", "rtlEnabledChange", "scrollByContentChange", "scrollByThumbChange", "showScrollbarChange", "useNativeChange", "widthChange"] }, { kind: "pipe", type: i4.JsonPipe, name: "json" }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }], changeDetection: i0.ChangeDetectionStrategy.Default });
|
|
259
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitProcessLogComponent, decorators: [{
|
|
260
|
+
type: Component,
|
|
261
|
+
args: [{ selector: 'lib-hit-process-log', changeDetection: ChangeDetectionStrategy.Default, providers: [ListService, { provide: NgbDateAdapter, useClass: DateAdapter }], template: "<abp-page [title]=\"'Ovolt::ProcessLogs' | abpLocalization\">\r\n <abp-page-toolbar-container class=\"col\">\r\n <div class=\"text-lg-end pt-2\">\r\n <dx-button text=\"{{ 'Ovolt::ExportToExcel' | abpLocalization }}\" type=\"default\" (onClick)=\"exportToExcel()\"\r\n [disabled]=\"isExportToExcelBusy\"></dx-button>\r\n </div>\r\n </abp-page-toolbar-container>\r\n\r\n <div class=\"card mt-2\">\r\n <div class=\"card-body\">\r\n <dx-data-grid #dxGrid [dataSource]=\"processLogDataSource\" [showRowLines]=\"true\" [showBorders]=\"true\"\r\n [remoteOperations]=\"true\" [hoverStateEnabled]=\"true\" [repaintChangesOnly]=\"true\" [allowColumnResizing]=\"true\"\r\n columnResizingMode=\"widget\" [allowColumnReordering]=\"true\" [columnAutoWidth]=\"true\" [columnHidingEnabled]=\"true\"\r\n keyExpr=\"id\">\r\n <dxo-paging [pageSize]=\"50\"></dxo-paging>\r\n <dxo-column-fixing [enabled]=\"true\"></dxo-column-fixing>\r\n <dxo-header-filter [allowSearch]=\"true\" [visible]=\"true\"></dxo-header-filter>\r\n <dxo-filter-row [visible]=\"true\"></dxo-filter-row>\r\n <dxo-column-fixing [enabled]=\"true\"></dxo-column-fixing>\r\n <dxo-filter-builder [allowHierarchicalFields]=\"true\"></dxo-filter-builder>\r\n <dxo-filter-panel [visible]=\"true\"></dxo-filter-panel>\r\n <dxo-sorting mode=\"single\"></dxo-sorting>\r\n <dxo-scrolling mode=\"horizontal\" showScrollbar=\"always\"></dxo-scrolling>\r\n\r\n <!-- Columns -->\r\n <!-- <dxi-column\r\n caption=\"{{ 'Ovolt::Actions' | abpLocalization }}\"\r\n [width]=\"150\"\r\n [allowFiltering]=\"false\"\r\n [allowSorting]=\"false\"\r\n [fixed]=\"true\"\r\n [cellTemplate]=\"'actionsTemplate'\"\r\n ></dxi-column> -->\r\n <!-- Templates (Grid Child) -->\r\n <!-- <div *dxTemplate=\"let data of 'actionsTemplate'\">\r\n <dx-button text=\"{{ 'AbpUi::Edit' | abpLocalization }}\" type=\"default\" stylingMode=\"contained\"\r\n (onClick)=\"editProcessLog(data.data)\" class=\"me-2\"></dx-button>\r\n <dx-button text=\"{{ 'AbpUi::Delete' | abpLocalization }}\" type=\"danger\" stylingMode=\"contained\"\r\n (onClick)=\"deleteProcessLog(data.data)\"></dx-button>\r\n </div> -->\r\n\r\n <!-- <dxi-column dataField=\"status\" caption=\"{{ 'Ovolt::Status' | abpLocalization }}\"></dxi-column> -->\r\n <dxi-column dataField=\"status\" caption=\"{{ 'Ovolt::Status' | abpLocalization }}\"\r\n [cellTemplate]=\"'statusTemplate'\" [calculateFilterExpression]=\"statusFilter\">\r\n </dxi-column>\r\n\r\n <div *dxTemplate=\"let data of 'statusTemplate'\">\r\n <span *ngIf=\"data.value\" style=\"color: green; font-size: 18px;\">\u2714</span>\r\n <span *ngIf=\"!data.value\" style=\"color: red; font-size: 18px;\">\u2716</span>\r\n </div>\r\n\r\n\r\n <dxi-column dataField=\"processId\" caption=\"{{ 'Ovolt::ProcessId' | abpLocalization }}\"></dxi-column>\r\n <!-- <dxi-column dataField=\"type\" caption=\"{{ 'Ovolt::Type' | abpLocalization }}\"></dxi-column> -->\r\n <dxi-column dataField=\"name\" caption=\"{{ 'Ovolt::Name' | abpLocalization }}\"></dxi-column>\r\n\r\n <dxi-column [fixed]=\"true\" caption=\"{{ 'Ovolt::Request' | abpLocalization }}\" dataField=\"id\"\r\n [cellTemplate]=\"'requestTemplate'\">\r\n <div *dxTemplate=\"let data of 'requestTemplate'\">\r\n <dx-button text=\"{{ 'Ovolt::ShowRequest' | abpLocalization }}\" type=\"default\"\r\n (onClick)=\"showRequest(data.data.id)\"></dx-button>\r\n </div>\r\n </dxi-column>\r\n\r\n\r\n <dxi-column caption=\"{{ 'Ovolt::Response' | abpLocalization }}\" dataField=\"response\"></dxi-column>\r\n <dxi-column caption=\"{{ 'Ovolt::CreationTime' | abpLocalization }}\" dataField=\"creationTime\" dataType=\"datetime\"\r\n [format]=\" 'dd.MM.yyyy HH:mm:ss' \">\r\n </dxi-column>\r\n\r\n </dx-data-grid>\r\n </div>\r\n </div>\r\n\r\n <!-- Request JSON Popup -->\r\n <dx-popup [(visible)]=\"isRequestModalOpen\" [showTitle]=\"true\" [title]=\"'Ovolt::Request' | abpLocalization\"\r\n [hideOnOutsideClick]=\"true\" [showCloseButton]=\"false\">\r\n <dxi-toolbar-item widget=\"dxButton\" toolbar=\"bottom\" location=\"after\" [options]=\"closeButtonOptions\">\r\n </dxi-toolbar-item>\r\n <div *dxTemplate=\"let data of 'content'\" class=\"p-3\">\r\n <dx-scroll-view>\r\n <pre style=\"white-space: pre-wrap; word-wrap: break-word;\">\r\n {{ selectedRequestModel | json }}\r\n </pre>\r\n </dx-scroll-view>\r\n </div>\r\n </dx-popup>\r\n</abp-page>" }]
|
|
262
|
+
}], ctorParameters: function () { return [{ type: ProcessLogService }, { type: i1.TrackByService }, { type: HitProcessLogService }]; }, propDecorators: { dxGrid: [{
|
|
263
|
+
type: ViewChild,
|
|
264
|
+
args: ['dxGrid', { static: false }]
|
|
265
|
+
}] } });
|
|
266
|
+
|
|
267
|
+
const routes$2 = [
|
|
268
|
+
{
|
|
269
|
+
path: '',
|
|
270
|
+
component: HitProcessLogComponent,
|
|
271
|
+
canActivate: [AuthGuard, PermissionGuard],
|
|
272
|
+
},
|
|
273
|
+
];
|
|
274
|
+
class HitProcessLogRoutingModule {
|
|
275
|
+
}
|
|
276
|
+
HitProcessLogRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitProcessLogRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
277
|
+
HitProcessLogRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitProcessLogRoutingModule, imports: [i1$1.RouterModule], exports: [RouterModule] });
|
|
278
|
+
HitProcessLogRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitProcessLogRoutingModule, imports: [RouterModule.forChild(routes$2), RouterModule] });
|
|
279
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitProcessLogRoutingModule, decorators: [{
|
|
280
|
+
type: NgModule,
|
|
281
|
+
args: [{
|
|
282
|
+
imports: [RouterModule.forChild(routes$2)],
|
|
283
|
+
exports: [RouterModule],
|
|
284
|
+
}]
|
|
285
|
+
}] });
|
|
286
|
+
|
|
287
|
+
class HitProcessLogModule {
|
|
288
|
+
}
|
|
289
|
+
HitProcessLogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitProcessLogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
290
|
+
HitProcessLogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitProcessLogModule, declarations: [HitProcessLogComponent], imports: [HitProcessLogRoutingModule,
|
|
291
|
+
CoreModule,
|
|
292
|
+
ThemeSharedModule,
|
|
293
|
+
CommercialUiModule,
|
|
294
|
+
NgxValidateCoreModule,
|
|
295
|
+
NgbCollapseModule,
|
|
296
|
+
NgbDatepickerModule,
|
|
297
|
+
NgbDropdownModule,
|
|
298
|
+
PageModule,
|
|
299
|
+
DxDataGridModule,
|
|
300
|
+
DxButtonModule,
|
|
301
|
+
DxPopupModule,
|
|
302
|
+
DxScrollViewModule,
|
|
303
|
+
DxTemplateModule] });
|
|
304
|
+
HitProcessLogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitProcessLogModule, providers: [DxTemplateHost], imports: [HitProcessLogRoutingModule,
|
|
305
|
+
CoreModule,
|
|
306
|
+
ThemeSharedModule,
|
|
307
|
+
CommercialUiModule,
|
|
308
|
+
NgxValidateCoreModule,
|
|
309
|
+
NgbCollapseModule,
|
|
310
|
+
NgbDatepickerModule,
|
|
311
|
+
NgbDropdownModule,
|
|
312
|
+
PageModule,
|
|
313
|
+
DxDataGridModule,
|
|
314
|
+
DxButtonModule,
|
|
315
|
+
DxPopupModule,
|
|
316
|
+
DxScrollViewModule,
|
|
317
|
+
DxTemplateModule] });
|
|
318
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitProcessLogModule, decorators: [{
|
|
319
|
+
type: NgModule,
|
|
320
|
+
args: [{
|
|
321
|
+
declarations: [HitProcessLogComponent],
|
|
322
|
+
imports: [
|
|
323
|
+
HitProcessLogRoutingModule,
|
|
324
|
+
CoreModule,
|
|
325
|
+
ThemeSharedModule,
|
|
326
|
+
CommercialUiModule,
|
|
327
|
+
NgxValidateCoreModule,
|
|
328
|
+
NgbCollapseModule,
|
|
329
|
+
NgbDatepickerModule,
|
|
330
|
+
NgbDropdownModule,
|
|
331
|
+
PageModule,
|
|
332
|
+
DxDataGridModule,
|
|
333
|
+
DxButtonModule,
|
|
334
|
+
DxPopupModule,
|
|
335
|
+
DxScrollViewModule,
|
|
336
|
+
DxTemplateModule
|
|
337
|
+
],
|
|
338
|
+
providers: [DxTemplateHost],
|
|
339
|
+
}]
|
|
340
|
+
}] });
|
|
341
|
+
function loadHitProcessLogModuleAsChild() {
|
|
342
|
+
return Promise.resolve(HitProcessLogModule);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
var RestCompanyType;
|
|
346
|
+
(function (RestCompanyType) {
|
|
347
|
+
RestCompanyType[RestCompanyType["Ovolt"] = 0] = "Ovolt";
|
|
348
|
+
RestCompanyType[RestCompanyType["Evs"] = 1] = "Evs";
|
|
349
|
+
})(RestCompanyType || (RestCompanyType = {}));
|
|
350
|
+
const restCompanyTypeOptions = mapEnumToOptions(RestCompanyType);
|
|
351
|
+
|
|
352
|
+
class SystemParameterService {
|
|
353
|
+
constructor(restService) {
|
|
354
|
+
this.restService = restService;
|
|
355
|
+
this.apiName = 'Ovolt';
|
|
356
|
+
this.create = (input) => this.restService.request({
|
|
357
|
+
method: 'POST',
|
|
358
|
+
url: '/api/ovolt/system-parameters',
|
|
359
|
+
body: input,
|
|
360
|
+
}, { apiName: this.apiName });
|
|
361
|
+
this.delete = (id) => this.restService.request({
|
|
362
|
+
method: 'DELETE',
|
|
363
|
+
url: `/api/ovolt/system-parameters/${id}`,
|
|
364
|
+
}, { apiName: this.apiName });
|
|
365
|
+
this.get = (id) => this.restService.request({
|
|
366
|
+
method: 'GET',
|
|
367
|
+
url: `/api/ovolt/system-parameters/${id}`,
|
|
368
|
+
}, { apiName: this.apiName });
|
|
369
|
+
this.getList = (input) => this.restService.request({
|
|
370
|
+
method: 'GET',
|
|
371
|
+
url: '/api/ovolt/system-parameters',
|
|
372
|
+
params: { filterText: input.filterText, sharzNetCustomerSeries: input.sharzNetCustomerSeries, upEnerjiCustomerSeries: input.upEnerjiCustomerSeries, sharzNetCustomerGroupCodeMin: input.sharzNetCustomerGroupCodeMin, sharzNetCustomerGroupCodeMax: input.sharzNetCustomerGroupCodeMax, upEnerjiCustomerGroupCodeMin: input.upEnerjiCustomerGroupCodeMin, upEnerjiCustomerGroupCodeMax: input.upEnerjiCustomerGroupCodeMax, sharzNetCustomerDebitorAccount: input.sharzNetCustomerDebitorAccount, upEnerjiCustomerDebitorAccount: input.upEnerjiCustomerDebitorAccount, vendorSeries: input.vendorSeries, vendorGroupCodeMin: input.vendorGroupCodeMin, vendorGroupCodeMax: input.vendorGroupCodeMax, itemCode: input.itemCode, vatGroup: input.vatGroup, warehouseCode: input.warehouseCode, cogsCostingCode1: input.cogsCostingCode1, cogsCostingCode2: input.cogsCostingCode2, cogsCostingCode3: input.cogsCostingCode3, poKey: input.poKey, selectedRestCompany: input.selectedRestCompany, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
|
|
373
|
+
}, { apiName: this.apiName });
|
|
374
|
+
this.update = (id, input) => this.restService.request({
|
|
375
|
+
method: 'PUT',
|
|
376
|
+
url: `/api/ovolt/system-parameters/${id}`,
|
|
377
|
+
body: input,
|
|
378
|
+
}, { apiName: this.apiName });
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
SystemParameterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SystemParameterService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
382
|
+
SystemParameterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SystemParameterService, providedIn: 'root' });
|
|
383
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SystemParameterService, decorators: [{
|
|
384
|
+
type: Injectable,
|
|
385
|
+
args: [{
|
|
386
|
+
providedIn: 'root',
|
|
387
|
+
}]
|
|
388
|
+
}], ctorParameters: function () { return [{ type: i1.RestService }]; } });
|
|
389
|
+
|
|
390
|
+
class HitSystemParameterService {
|
|
391
|
+
constructor(restService) {
|
|
392
|
+
this.restService = restService;
|
|
393
|
+
this.apiName = 'Ovolt';
|
|
394
|
+
this.getSystemParameter = () => this.restService.request({
|
|
395
|
+
method: 'GET',
|
|
396
|
+
url: `/api/ovolt/system-parameters/get-system-parameters`,
|
|
397
|
+
}, { apiName: this.apiName });
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
HitSystemParameterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitSystemParameterService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
401
|
+
HitSystemParameterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitSystemParameterService, providedIn: 'root' });
|
|
402
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitSystemParameterService, decorators: [{
|
|
403
|
+
type: Injectable,
|
|
404
|
+
args: [{
|
|
405
|
+
providedIn: 'root',
|
|
406
|
+
}]
|
|
407
|
+
}], ctorParameters: function () { return [{ type: i1.RestService }]; } });
|
|
408
|
+
|
|
409
|
+
class HitSystemParameterComponent {
|
|
410
|
+
constructor(fb, service, hitService, toaster, track) {
|
|
411
|
+
this.fb = fb;
|
|
412
|
+
this.service = service;
|
|
413
|
+
this.hitService = hitService;
|
|
414
|
+
this.toaster = toaster;
|
|
415
|
+
this.track = track;
|
|
416
|
+
this.isBusy = false;
|
|
417
|
+
this.restCompanyTypeOptions = restCompanyTypeOptions;
|
|
418
|
+
this.fields = [
|
|
419
|
+
'sharzNetCustomerSeries', 'upEnerjiCustomerSeries', 'sharzNetCustomerGroupCode', 'upEnerjiCustomerGroupCode',
|
|
420
|
+
'sharzNetCustomerDebitorAccount', 'upEnerjiCustomerDebitorAccount', 'vendorSeries', 'vendorGroupCode',
|
|
421
|
+
'itemCode', 'vatGroup', 'warehouseCode', 'cogsCostingCode1', 'cogsCostingCode2', 'cogsCostingCode3'
|
|
422
|
+
];
|
|
423
|
+
this.fieldLocalizationMap = {
|
|
424
|
+
sharzNetCustomerSeries: 'SharzNetCustomerSeries',
|
|
425
|
+
upEnerjiCustomerSeries: 'UpEnerjiCustomerSeries',
|
|
426
|
+
sharzNetCustomerGroupCode: 'SharzNetCustomerGroupCode',
|
|
427
|
+
upEnerjiCustomerGroupCode: 'UpEnerjiCustomerGroupCode',
|
|
428
|
+
sharzNetCustomerDebitorAccount: 'SharzNetCustomerDebitorAccount',
|
|
429
|
+
upEnerjiCustomerDebitorAccount: 'UpEnerjiCustomerDebitorAccount',
|
|
430
|
+
vendorSeries: 'VendorSeries',
|
|
431
|
+
vendorGroupCode: 'VendorGroupCode',
|
|
432
|
+
itemCode: 'ItemCode',
|
|
433
|
+
vatGroup: 'VatGroup',
|
|
434
|
+
warehouseCode: 'WarehouseCode',
|
|
435
|
+
cogsCostingCode1: 'COGSCostingCode1',
|
|
436
|
+
cogsCostingCode2: 'COGSCostingCode2',
|
|
437
|
+
cogsCostingCode3: 'COGSCostingCode3',
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
ngOnInit() {
|
|
441
|
+
this.buildForm();
|
|
442
|
+
this.loadData();
|
|
443
|
+
}
|
|
444
|
+
buildForm() {
|
|
445
|
+
this.form = this.fb.group({
|
|
446
|
+
selectedRestCompany: [null, Validators.required],
|
|
447
|
+
sharzNetCustomerSeries: [null, [Validators.required]],
|
|
448
|
+
upEnerjiCustomerSeries: [null, [Validators.required]],
|
|
449
|
+
sharzNetCustomerGroupCode: [null, [Validators.required, Validators.min(1)]],
|
|
450
|
+
upEnerjiCustomerGroupCode: [null, [Validators.required, Validators.min(1)]],
|
|
451
|
+
sharzNetCustomerDebitorAccount: [null, [Validators.required]],
|
|
452
|
+
upEnerjiCustomerDebitorAccount: [null, [Validators.required]],
|
|
453
|
+
vendorSeries: [null, [Validators.required]],
|
|
454
|
+
vendorGroupCode: [null, [Validators.required]],
|
|
455
|
+
itemCode: [null, [Validators.required]],
|
|
456
|
+
vatGroup: [null, [Validators.required]],
|
|
457
|
+
warehouseCode: [null, [Validators.required, Validators.min(1)]],
|
|
458
|
+
cogsCostingCode1: [null],
|
|
459
|
+
cogsCostingCode2: [null],
|
|
460
|
+
cogsCostingCode3: [null],
|
|
461
|
+
poKey: [null, [Validators.required]],
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
loadData() {
|
|
465
|
+
this.isBusy = true;
|
|
466
|
+
this.hitService.getSystemParameter()
|
|
467
|
+
.pipe(finalize$1(() => (this.isBusy = false)))
|
|
468
|
+
.subscribe({
|
|
469
|
+
next: (result) => {
|
|
470
|
+
if (result) {
|
|
471
|
+
this.selected = result;
|
|
472
|
+
this.form.patchValue({
|
|
473
|
+
...result,
|
|
474
|
+
selectedRestCompany: result.selectedRestCompany // zaten "Ovolt" veya "Evs"
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
error: (err) => {
|
|
479
|
+
console.error(err);
|
|
480
|
+
this.toaster.error('Veri yüklenirken hata oluştu.');
|
|
481
|
+
}
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
save() {
|
|
485
|
+
if (this.form.invalid) {
|
|
486
|
+
this.form.markAllAsTouched();
|
|
487
|
+
return;
|
|
488
|
+
}
|
|
489
|
+
const payload = this.form.value;
|
|
490
|
+
this.isBusy = true;
|
|
491
|
+
const request = this.selected?.id
|
|
492
|
+
? this.service.update(this.selected.id, payload)
|
|
493
|
+
: this.service.create(payload);
|
|
494
|
+
request.pipe(finalize$1(() => (this.isBusy = false)))
|
|
495
|
+
.subscribe({
|
|
496
|
+
next: (res) => {
|
|
497
|
+
this.selected = res;
|
|
498
|
+
this.form.patchValue(res);
|
|
499
|
+
this.toaster.success('Kaydedildi');
|
|
500
|
+
},
|
|
501
|
+
error: (err) => {
|
|
502
|
+
console.error(err);
|
|
503
|
+
this.toaster.error('Kaydetme sırasında hata oluştu.');
|
|
504
|
+
}
|
|
505
|
+
});
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
HitSystemParameterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitSystemParameterComponent, deps: [{ token: i1$2.FormBuilder }, { token: SystemParameterService }, { token: HitSystemParameterService }, { token: i2.ToasterService }, { token: i1.TrackByService }], target: i0.ɵɵFactoryTarget.Component });
|
|
509
|
+
HitSystemParameterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: HitSystemParameterComponent, selector: "lib-hit-system-parameter", providers: [ListService, { provide: NgbDateAdapter, useClass: DateAdapter }], ngImport: i0, template: "<abp-page [title]=\"'Ovolt::SystemParameters' | abpLocalization\">\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\">\r\n\r\n <!-- Rest Company Select -->\r\n <div class=\"row mb-2\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label\" for=\"system-parameter-selected-rest-company\">\r\n {{ 'Ovolt::SelectedRestCompany' | abpLocalization }}\r\n </label>\r\n <select id=\"selectedRestCompany\" formControlName=\"selectedRestCompany\" class=\"form-select\">\r\n <option *ngFor=\"let option of restCompanyTypeOptions; trackBy: track.by('key')\"\r\n [value]=\"option.key\">\r\n {{ 'Ovolt::Enum:RestCompanyType.' + option.key | abpLocalization }}\r\n </option>\r\n </select>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label\" for=\"system-parameter-pokey\">\r\n {{ 'Ovolt::POKey' | abpLocalization }}\r\n </label>\r\n <input id=\"system-parameter-pokey\" formControlName=\"poKey\" class=\"form-control\" />\r\n </div>\r\n </div>\r\n\r\n\r\n <!-- Di\u011Fer Alanlar Grid -->\r\n <div class=\"row\">\r\n <div class=\"col-md-6 mb-2\" *ngFor=\"let field of fields\">\r\n <label>{{ ('Ovolt::' + fieldLocalizationMap[field]) | abpLocalization }}</label>\r\n <input [type]=\"(field.includes('Code') && !field.includes('CostingCode')) ? 'number' : 'text'\"\r\n class=\"form-control\" [formControlName]=\"field\" />\r\n <div *ngIf=\"form.get(field)?.touched && form.get(field)?.invalid\" class=\"text-danger\">\r\n {{ 'Ovolt::FieldRequiredOrInvalid' | abpLocalization }}\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n <div class=\"text-end mt-4\">\r\n <button type=\"submit\" class=\"btn btn-primary\" [disabled]=\"isBusy\">\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </button>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n</abp-page>", dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$2.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: i1$2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit", "markAsDirtyWhenSubmit"], outputs: ["ngSubmit"] }, { kind: "directive", type: i7$1.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i7$1.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "component", type: i5.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }], changeDetection: i0.ChangeDetectionStrategy.Default });
|
|
510
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitSystemParameterComponent, decorators: [{
|
|
511
|
+
type: Component,
|
|
512
|
+
args: [{ selector: 'lib-hit-system-parameter', changeDetection: ChangeDetectionStrategy.Default, providers: [ListService, { provide: NgbDateAdapter, useClass: DateAdapter }], template: "<abp-page [title]=\"'Ovolt::SystemParameters' | abpLocalization\">\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\">\r\n\r\n <!-- Rest Company Select -->\r\n <div class=\"row mb-2\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label\" for=\"system-parameter-selected-rest-company\">\r\n {{ 'Ovolt::SelectedRestCompany' | abpLocalization }}\r\n </label>\r\n <select id=\"selectedRestCompany\" formControlName=\"selectedRestCompany\" class=\"form-select\">\r\n <option *ngFor=\"let option of restCompanyTypeOptions; trackBy: track.by('key')\"\r\n [value]=\"option.key\">\r\n {{ 'Ovolt::Enum:RestCompanyType.' + option.key | abpLocalization }}\r\n </option>\r\n </select>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label\" for=\"system-parameter-pokey\">\r\n {{ 'Ovolt::POKey' | abpLocalization }}\r\n </label>\r\n <input id=\"system-parameter-pokey\" formControlName=\"poKey\" class=\"form-control\" />\r\n </div>\r\n </div>\r\n\r\n\r\n <!-- Di\u011Fer Alanlar Grid -->\r\n <div class=\"row\">\r\n <div class=\"col-md-6 mb-2\" *ngFor=\"let field of fields\">\r\n <label>{{ ('Ovolt::' + fieldLocalizationMap[field]) | abpLocalization }}</label>\r\n <input [type]=\"(field.includes('Code') && !field.includes('CostingCode')) ? 'number' : 'text'\"\r\n class=\"form-control\" [formControlName]=\"field\" />\r\n <div *ngIf=\"form.get(field)?.touched && form.get(field)?.invalid\" class=\"text-danger\">\r\n {{ 'Ovolt::FieldRequiredOrInvalid' | abpLocalization }}\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n <div class=\"text-end mt-4\">\r\n <button type=\"submit\" class=\"btn btn-primary\" [disabled]=\"isBusy\">\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </button>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n</abp-page>" }]
|
|
513
|
+
}], ctorParameters: function () { return [{ type: i1$2.FormBuilder }, { type: SystemParameterService }, { type: HitSystemParameterService }, { type: i2.ToasterService }, { type: i1.TrackByService }]; } });
|
|
514
|
+
|
|
515
|
+
const routes$1 = [
|
|
516
|
+
{
|
|
517
|
+
path: '',
|
|
518
|
+
component: HitSystemParameterComponent,
|
|
519
|
+
canActivate: [AuthGuard, PermissionGuard],
|
|
520
|
+
},
|
|
521
|
+
];
|
|
522
|
+
class HitSystemParameterRoutingModule {
|
|
523
|
+
}
|
|
524
|
+
HitSystemParameterRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitSystemParameterRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
525
|
+
HitSystemParameterRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitSystemParameterRoutingModule, imports: [i1$1.RouterModule], exports: [RouterModule] });
|
|
526
|
+
HitSystemParameterRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitSystemParameterRoutingModule, imports: [RouterModule.forChild(routes$1), RouterModule] });
|
|
527
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitSystemParameterRoutingModule, decorators: [{
|
|
528
|
+
type: NgModule,
|
|
529
|
+
args: [{
|
|
530
|
+
imports: [RouterModule.forChild(routes$1)],
|
|
531
|
+
exports: [RouterModule],
|
|
532
|
+
}]
|
|
533
|
+
}] });
|
|
534
|
+
|
|
535
|
+
class HitSystemParameterModule {
|
|
536
|
+
}
|
|
537
|
+
HitSystemParameterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitSystemParameterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
538
|
+
HitSystemParameterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitSystemParameterModule, declarations: [HitSystemParameterComponent], imports: [HitSystemParameterRoutingModule,
|
|
539
|
+
CoreModule,
|
|
540
|
+
ThemeSharedModule,
|
|
541
|
+
CommercialUiModule,
|
|
542
|
+
NgxValidateCoreModule,
|
|
543
|
+
NgbCollapseModule,
|
|
544
|
+
NgbDatepickerModule,
|
|
545
|
+
NgbDropdownModule,
|
|
546
|
+
PageModule] });
|
|
547
|
+
HitSystemParameterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitSystemParameterModule, imports: [HitSystemParameterRoutingModule,
|
|
548
|
+
CoreModule,
|
|
549
|
+
ThemeSharedModule,
|
|
550
|
+
CommercialUiModule,
|
|
551
|
+
NgxValidateCoreModule,
|
|
552
|
+
NgbCollapseModule,
|
|
553
|
+
NgbDatepickerModule,
|
|
554
|
+
NgbDropdownModule,
|
|
555
|
+
PageModule] });
|
|
556
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitSystemParameterModule, decorators: [{
|
|
557
|
+
type: NgModule,
|
|
558
|
+
args: [{
|
|
559
|
+
declarations: [HitSystemParameterComponent],
|
|
560
|
+
imports: [
|
|
561
|
+
HitSystemParameterRoutingModule,
|
|
562
|
+
CoreModule,
|
|
563
|
+
ThemeSharedModule,
|
|
564
|
+
CommercialUiModule,
|
|
565
|
+
NgxValidateCoreModule,
|
|
566
|
+
NgbCollapseModule,
|
|
567
|
+
NgbDatepickerModule,
|
|
568
|
+
NgbDropdownModule,
|
|
569
|
+
PageModule,
|
|
570
|
+
],
|
|
571
|
+
}]
|
|
572
|
+
}] });
|
|
573
|
+
function loadHitSystemParameterModuleAsChild() {
|
|
574
|
+
return Promise.resolve(HitSystemParameterModule);
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
const routes = [
|
|
578
|
+
{
|
|
579
|
+
path: '',
|
|
580
|
+
pathMatch: 'full',
|
|
581
|
+
component: OvoltComponent,
|
|
582
|
+
},
|
|
583
|
+
{ path: 'process-logs', loadChildren: loadHitProcessLogModuleAsChild },
|
|
584
|
+
{ path: 'system-parameters', loadChildren: loadHitSystemParameterModuleAsChild },
|
|
585
|
+
];
|
|
586
|
+
class OvoltRoutingModule {
|
|
587
|
+
}
|
|
588
|
+
OvoltRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OvoltRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
589
|
+
OvoltRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: OvoltRoutingModule, imports: [i1$1.RouterModule], exports: [RouterModule] });
|
|
590
|
+
OvoltRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OvoltRoutingModule, imports: [RouterModule.forChild(routes), RouterModule] });
|
|
591
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OvoltRoutingModule, decorators: [{
|
|
592
|
+
type: NgModule,
|
|
593
|
+
args: [{
|
|
594
|
+
imports: [RouterModule.forChild(routes)],
|
|
595
|
+
exports: [RouterModule],
|
|
596
|
+
}]
|
|
597
|
+
}] });
|
|
598
|
+
|
|
599
|
+
class OvoltModule {
|
|
600
|
+
static forChild() {
|
|
601
|
+
return {
|
|
602
|
+
ngModule: OvoltModule,
|
|
603
|
+
providers: [],
|
|
604
|
+
};
|
|
605
|
+
}
|
|
606
|
+
static forLazy() {
|
|
607
|
+
return new LazyModuleFactory(OvoltModule.forChild());
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
OvoltModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OvoltModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
611
|
+
OvoltModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: OvoltModule, declarations: [OvoltComponent], imports: [CoreModule, ThemeSharedModule, OvoltRoutingModule], exports: [OvoltComponent] });
|
|
612
|
+
OvoltModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OvoltModule, imports: [CoreModule, ThemeSharedModule, OvoltRoutingModule] });
|
|
613
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: OvoltModule, decorators: [{
|
|
614
|
+
type: NgModule,
|
|
615
|
+
args: [{
|
|
616
|
+
declarations: [OvoltComponent],
|
|
617
|
+
imports: [CoreModule, ThemeSharedModule, OvoltRoutingModule],
|
|
618
|
+
exports: [OvoltComponent],
|
|
619
|
+
}]
|
|
620
|
+
}] });
|
|
621
|
+
|
|
622
|
+
/*
|
|
623
|
+
* Public API Surface of ovolt
|
|
624
|
+
*/
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* Generated bundle index. Do not edit.
|
|
628
|
+
*/
|
|
629
|
+
|
|
630
|
+
export { OvoltComponent, OvoltModule, OvoltService };
|
|
631
|
+
//# sourceMappingURL=hitsoft.Entegration-ovolt.mjs.map
|