@hitsoft/abp.kadooglu 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/README.md +24 -0
  2. package/config/enums/index.d.ts +1 -0
  3. package/config/enums/route-names.d.ts +12 -0
  4. package/config/index.d.ts +5 -0
  5. package/config/kadooglu-config.module.d.ts +8 -0
  6. package/config/providers/hit-providers/hit-carrier-person-route.provider.d.ts +9 -0
  7. package/config/providers/hit-providers/hit-entry-weighing-route.provider.d.ts +9 -0
  8. package/config/providers/hit-providers/hit-factory-entry-route.provider.d.ts +9 -0
  9. package/config/providers/hit-providers/hit-gate-route.provider.d.ts +9 -0
  10. package/config/providers/hit-providers/hit-knt-item-esl-route.provider.d.ts +9 -0
  11. package/config/providers/hit-providers/hit-plate-route.provider.d.ts +9 -0
  12. package/config/providers/hit-providers/hit-route.provider.d.ts +8 -0
  13. package/config/providers/hit-providers/hit-scale-route.provider.d.ts +9 -0
  14. package/config/providers/hit-providers/hit-tanimlamalar-route.provider.d.ts +9 -0
  15. package/config/providers/hit-providers/hit-vehicle-type-route.provider.d.ts +9 -0
  16. package/config/providers/index.d.ts +1 -0
  17. package/config/providers/route.provider.d.ts +8 -0
  18. package/config/public-api.d.ts +3 -0
  19. package/esm2020/config/enums/index.mjs +2 -0
  20. package/esm2020/config/enums/route-names.mjs +2 -0
  21. package/esm2020/config/hitsoft-abp.kadooglu-config.mjs +5 -0
  22. package/esm2020/config/kadooglu-config.module.mjs +40 -0
  23. package/esm2020/config/providers/hit-providers/hit-carrier-person-route.provider.mjs +20 -0
  24. package/esm2020/config/providers/hit-providers/hit-entry-weighing-route.provider.mjs +20 -0
  25. package/esm2020/config/providers/hit-providers/hit-factory-entry-route.provider.mjs +20 -0
  26. package/esm2020/config/providers/hit-providers/hit-gate-route.provider.mjs +20 -0
  27. package/esm2020/config/providers/hit-providers/hit-knt-item-esl-route.provider.mjs +20 -0
  28. package/esm2020/config/providers/hit-providers/hit-plate-route.provider.mjs +20 -0
  29. package/esm2020/config/providers/hit-providers/hit-route.provider.mjs +24 -0
  30. package/esm2020/config/providers/hit-providers/hit-scale-route.provider.mjs +20 -0
  31. package/esm2020/config/providers/hit-providers/hit-tanimlamalar-route.provider.mjs +20 -0
  32. package/esm2020/config/providers/hit-providers/hit-vehicle-type-route.provider.mjs +20 -0
  33. package/esm2020/config/providers/index.mjs +2 -0
  34. package/esm2020/config/providers/route.provider.mjs +24 -0
  35. package/esm2020/config/public-api.mjs +4 -0
  36. package/esm2020/hitsoft-abp.kadooglu.mjs +5 -0
  37. package/esm2020/lib/components/kadooglu.component.mjs +18 -0
  38. package/esm2020/lib/hit-components/hit-carrier-person/hit-carrier-person-form/hit-carrier-person-form.component.mjs +160 -0
  39. package/esm2020/lib/hit-components/hit-carrier-person/hit-carrier-person-list/hit-carrier-person-list.component.mjs +101 -0
  40. package/esm2020/lib/hit-components/hit-carrier-person/hit-carrier-person-routing.module.mjs +21 -0
  41. package/esm2020/lib/hit-components/hit-carrier-person/hit-carrier-person.module.mjs +68 -0
  42. package/esm2020/lib/hit-components/hit-entry-weighing/hit-entry-weighing-form/hit-entry-weighing-form.component.mjs +544 -0
  43. package/esm2020/lib/hit-components/hit-entry-weighing/hit-entry-weighing-list/hit-entry-weighing-list.component.mjs +202 -0
  44. package/esm2020/lib/hit-components/hit-entry-weighing/hit-entry-weighing-routing.module.mjs +24 -0
  45. package/esm2020/lib/hit-components/hit-entry-weighing/hit-entry-weighing.module.mjs +77 -0
  46. package/esm2020/lib/hit-components/hit-factory-entry/hit-factory-entry-form/hit-factory-entry-form.component.mjs +380 -0
  47. package/esm2020/lib/hit-components/hit-factory-entry/hit-factory-entry-list/hit-factory-entry-list.component.mjs +115 -0
  48. package/esm2020/lib/hit-components/hit-factory-entry/hit-factory-entry-routing.module.mjs +21 -0
  49. package/esm2020/lib/hit-components/hit-factory-entry/hit-factory-entry.module.mjs +83 -0
  50. package/esm2020/lib/hit-components/hit-gate/hit-gate-form/hit-gate-form.component.mjs +148 -0
  51. package/esm2020/lib/hit-components/hit-gate/hit-gate-list/hit-gate-list.component.mjs +93 -0
  52. package/esm2020/lib/hit-components/hit-gate/hit-gate-routing.module.mjs +21 -0
  53. package/esm2020/lib/hit-components/hit-gate/hit-gate.module.mjs +71 -0
  54. package/esm2020/lib/hit-components/hit-knt-item-esl/hit-knt-item-esl-form/hit-knt-item-esl-form.component.mjs +140 -0
  55. package/esm2020/lib/hit-components/hit-knt-item-esl/hit-knt-item-esl-list/hit-knt-item-esl-list.component.mjs +78 -0
  56. package/esm2020/lib/hit-components/hit-knt-item-esl/hit-knt-item-esl-routing.module.mjs +21 -0
  57. package/esm2020/lib/hit-components/hit-knt-item-esl/hit-knt-item-esl.module.mjs +68 -0
  58. package/esm2020/lib/hit-components/hit-plate/hit-plate-form/hit-plate-form.component.mjs +102 -0
  59. package/esm2020/lib/hit-components/hit-plate/hit-plate-list/hit-plate-list.component.mjs +101 -0
  60. package/esm2020/lib/hit-components/hit-plate/hit-plate-routing.module.mjs +21 -0
  61. package/esm2020/lib/hit-components/hit-plate/hit-plate.module.mjs +68 -0
  62. package/esm2020/lib/hit-components/hit-scale/hit-scale-form/hit-scale-form.component.mjs +127 -0
  63. package/esm2020/lib/hit-components/hit-scale/hit-scale-list/hit-scale-list.component.mjs +106 -0
  64. package/esm2020/lib/hit-components/hit-scale/hit-scale-routing.module.mjs +21 -0
  65. package/esm2020/lib/hit-components/hit-scale/hit-scale.module.mjs +71 -0
  66. package/esm2020/lib/hit-components/hit-vehicle-type/hit-vehicle-type-form/hit-vehicle-type-form.component.mjs +143 -0
  67. package/esm2020/lib/hit-components/hit-vehicle-type/hit-vehicle-type-list/hit-vehicle-type-list.component.mjs +96 -0
  68. package/esm2020/lib/hit-components/hit-vehicle-type/hit-vehicle-type-routing.module.mjs +21 -0
  69. package/esm2020/lib/hit-components/hit-vehicle-type/hit-vehicle-type.module.mjs +68 -0
  70. package/esm2020/lib/hit-proxy/hit-business-partner/hit-business-partner.service.mjs +22 -0
  71. package/esm2020/lib/hit-proxy/hit-business-partner/models.mjs +2 -0
  72. package/esm2020/lib/hit-proxy/hit-carrier-person/hit-carrier-person.service.mjs +33 -0
  73. package/esm2020/lib/hit-proxy/hit-carrier-person/models.mjs +2 -0
  74. package/esm2020/lib/hit-proxy/hit-entry-weighing/hit-entry-weighing.service.mjs +95 -0
  75. package/esm2020/lib/hit-proxy/hit-entry-weighing/models.mjs +2 -0
  76. package/esm2020/lib/hit-proxy/hit-factory-entry/hit-factory-entry.service.mjs +34 -0
  77. package/esm2020/lib/hit-proxy/hit-factory-entry/models.mjs +2 -0
  78. package/esm2020/lib/hit-proxy/hit-gate/hit-gate.service.mjs +33 -0
  79. package/esm2020/lib/hit-proxy/hit-gate/models.mjs +2 -0
  80. package/esm2020/lib/hit-proxy/hit-item/hit-item.service.mjs +22 -0
  81. package/esm2020/lib/hit-proxy/hit-item/models.mjs +2 -0
  82. package/esm2020/lib/hit-proxy/hit-knt-item-esl/hit-knt-item-esl.service.mjs +33 -0
  83. package/esm2020/lib/hit-proxy/hit-knt-item-esl/models.mjs +2 -0
  84. package/esm2020/lib/hit-proxy/hit-plate/hit-plate.service.mjs +33 -0
  85. package/esm2020/lib/hit-proxy/hit-plate/models.mjs +2 -0
  86. package/esm2020/lib/hit-proxy/hit-purchase-delivery-note/hit-purchase-delivery-note.service.mjs +22 -0
  87. package/esm2020/lib/hit-proxy/hit-purchase-delivery-note/models.mjs +2 -0
  88. package/esm2020/lib/hit-proxy/hit-scale/hit-scale.service.mjs +33 -0
  89. package/esm2020/lib/hit-proxy/hit-scale/models.mjs +2 -0
  90. package/esm2020/lib/hit-proxy/hit-stock-transfer/hit-stock-transfer.service.mjs +22 -0
  91. package/esm2020/lib/hit-proxy/hit-stock-transfer/models.mjs +2 -0
  92. package/esm2020/lib/hit-proxy/hit-user-gate/hit-user-gate.service.mjs +31 -0
  93. package/esm2020/lib/hit-proxy/hit-user-gate/models.mjs +2 -0
  94. package/esm2020/lib/hit-proxy/hit-vehicle-type/hit-vehicle-type.service.mjs +33 -0
  95. package/esm2020/lib/hit-proxy/hit-vehicle-type/models.mjs +2 -0
  96. package/esm2020/lib/hit-proxy/hit-warehouse/hit-warehouse.service.mjs +21 -0
  97. package/esm2020/lib/hit-proxy/hit-warehouse/models.mjs +2 -0
  98. package/esm2020/lib/hit-proxy/models.mjs +2 -0
  99. package/esm2020/lib/kadooglu-routing.module.mjs +41 -0
  100. package/esm2020/lib/kadooglu.module.mjs +49 -0
  101. package/esm2020/lib/services/kadooglu.service.mjs +21 -0
  102. package/esm2020/lib/shared/hit-modal/hit-modal.component.mjs +110 -0
  103. package/esm2020/lib/shared/hit-modal/hit-ui.module.mjs +35 -0
  104. package/esm2020/public-api.mjs +9 -0
  105. package/fesm2015/hitsoft-abp.kadooglu-config.mjs +243 -0
  106. package/fesm2015/hitsoft-abp.kadooglu-config.mjs.map +1 -0
  107. package/fesm2015/hitsoft-abp.kadooglu.mjs +3774 -0
  108. package/fesm2015/hitsoft-abp.kadooglu.mjs.map +1 -0
  109. package/fesm2020/hitsoft-abp.kadooglu-config.mjs +243 -0
  110. package/fesm2020/hitsoft-abp.kadooglu-config.mjs.map +1 -0
  111. package/fesm2020/hitsoft-abp.kadooglu.mjs +3728 -0
  112. package/fesm2020/hitsoft-abp.kadooglu.mjs.map +1 -0
  113. package/index.d.ts +5 -0
  114. package/lib/components/kadooglu.component.d.ts +10 -0
  115. package/lib/hit-components/hit-carrier-person/hit-carrier-person-form/hit-carrier-person-form.component.d.ts +49 -0
  116. package/lib/hit-components/hit-carrier-person/hit-carrier-person-list/hit-carrier-person-list.component.d.ts +30 -0
  117. package/lib/hit-components/hit-carrier-person/hit-carrier-person-routing.module.d.ts +7 -0
  118. package/lib/hit-components/hit-carrier-person/hit-carrier-person.module.d.ts +19 -0
  119. package/lib/hit-components/hit-entry-weighing/hit-entry-weighing-form/hit-entry-weighing-form.component.d.ts +200 -0
  120. package/lib/hit-components/hit-entry-weighing/hit-entry-weighing-list/hit-entry-weighing-list.component.d.ts +46 -0
  121. package/lib/hit-components/hit-entry-weighing/hit-entry-weighing-routing.module.d.ts +7 -0
  122. package/lib/hit-components/hit-entry-weighing/hit-entry-weighing.module.d.ts +19 -0
  123. package/lib/hit-components/hit-factory-entry/hit-factory-entry-form/hit-factory-entry-form.component.d.ts +119 -0
  124. package/lib/hit-components/hit-factory-entry/hit-factory-entry-list/hit-factory-entry-list.component.d.ts +32 -0
  125. package/lib/hit-components/hit-factory-entry/hit-factory-entry-routing.module.d.ts +7 -0
  126. package/lib/hit-components/hit-factory-entry/hit-factory-entry.module.d.ts +19 -0
  127. package/lib/hit-components/hit-gate/hit-gate-form/hit-gate-form.component.d.ts +42 -0
  128. package/lib/hit-components/hit-gate/hit-gate-list/hit-gate-list.component.d.ts +29 -0
  129. package/lib/hit-components/hit-gate/hit-gate-routing.module.d.ts +7 -0
  130. package/lib/hit-components/hit-gate/hit-gate.module.d.ts +19 -0
  131. package/lib/hit-components/hit-knt-item-esl/hit-knt-item-esl-form/hit-knt-item-esl-form.component.d.ts +46 -0
  132. package/lib/hit-components/hit-knt-item-esl/hit-knt-item-esl-list/hit-knt-item-esl-list.component.d.ts +27 -0
  133. package/lib/hit-components/hit-knt-item-esl/hit-knt-item-esl-routing.module.d.ts +7 -0
  134. package/lib/hit-components/hit-knt-item-esl/hit-knt-item-esl.module.d.ts +19 -0
  135. package/lib/hit-components/hit-plate/hit-plate-form/hit-plate-form.component.d.ts +29 -0
  136. package/lib/hit-components/hit-plate/hit-plate-list/hit-plate-list.component.d.ts +30 -0
  137. package/lib/hit-components/hit-plate/hit-plate-routing.module.d.ts +7 -0
  138. package/lib/hit-components/hit-plate/hit-plate.module.d.ts +19 -0
  139. package/lib/hit-components/hit-scale/hit-scale-form/hit-scale-form.component.d.ts +44 -0
  140. package/lib/hit-components/hit-scale/hit-scale-list/hit-scale-list.component.d.ts +41 -0
  141. package/lib/hit-components/hit-scale/hit-scale-routing.module.d.ts +7 -0
  142. package/lib/hit-components/hit-scale/hit-scale.module.d.ts +19 -0
  143. package/lib/hit-components/hit-vehicle-type/hit-vehicle-type-form/hit-vehicle-type-form.component.d.ts +46 -0
  144. package/lib/hit-components/hit-vehicle-type/hit-vehicle-type-list/hit-vehicle-type-list.component.d.ts +29 -0
  145. package/lib/hit-components/hit-vehicle-type/hit-vehicle-type-routing.module.d.ts +7 -0
  146. package/lib/hit-components/hit-vehicle-type/hit-vehicle-type.module.d.ts +19 -0
  147. package/lib/hit-proxy/hit-business-partner/hit-business-partner.service.d.ts +13 -0
  148. package/lib/hit-proxy/hit-business-partner/models.d.ts +5 -0
  149. package/lib/hit-proxy/hit-carrier-person/hit-carrier-person.service.d.ts +17 -0
  150. package/lib/hit-proxy/hit-carrier-person/models.d.ts +22 -0
  151. package/lib/hit-proxy/hit-entry-weighing/hit-entry-weighing.service.d.ts +49 -0
  152. package/lib/hit-proxy/hit-entry-weighing/models.d.ts +107 -0
  153. package/lib/hit-proxy/hit-factory-entry/hit-factory-entry.service.d.ts +17 -0
  154. package/lib/hit-proxy/hit-factory-entry/models.d.ts +40 -0
  155. package/lib/hit-proxy/hit-gate/hit-gate.service.d.ts +17 -0
  156. package/lib/hit-proxy/hit-gate/models.d.ts +10 -0
  157. package/lib/hit-proxy/hit-item/hit-item.service.d.ts +13 -0
  158. package/lib/hit-proxy/hit-item/models.d.ts +4 -0
  159. package/lib/hit-proxy/hit-knt-item-esl/hit-knt-item-esl.service.d.ts +21 -0
  160. package/lib/hit-proxy/hit-knt-item-esl/models.d.ts +16 -0
  161. package/lib/hit-proxy/hit-plate/hit-plate.service.d.ts +17 -0
  162. package/lib/hit-proxy/hit-plate/models.d.ts +14 -0
  163. package/lib/hit-proxy/hit-purchase-delivery-note/hit-purchase-delivery-note.service.d.ts +13 -0
  164. package/lib/hit-proxy/hit-purchase-delivery-note/models.d.ts +9 -0
  165. package/lib/hit-proxy/hit-scale/hit-scale.service.d.ts +17 -0
  166. package/lib/hit-proxy/hit-scale/models.d.ts +20 -0
  167. package/lib/hit-proxy/hit-stock-transfer/hit-stock-transfer.service.d.ts +13 -0
  168. package/lib/hit-proxy/hit-stock-transfer/models.d.ts +15 -0
  169. package/lib/hit-proxy/hit-user-gate/hit-user-gate.service.d.ts +18 -0
  170. package/lib/hit-proxy/hit-user-gate/models.d.ts +7 -0
  171. package/lib/hit-proxy/hit-vehicle-type/hit-vehicle-type.service.d.ts +17 -0
  172. package/lib/hit-proxy/hit-vehicle-type/models.d.ts +18 -0
  173. package/lib/hit-proxy/hit-warehouse/hit-warehouse.service.d.ts +13 -0
  174. package/lib/hit-proxy/hit-warehouse/models.d.ts +4 -0
  175. package/lib/hit-proxy/models.d.ts +8 -0
  176. package/lib/kadooglu-routing.module.d.ts +7 -0
  177. package/lib/kadooglu.module.d.ts +17 -0
  178. package/lib/services/kadooglu.service.d.ts +10 -0
  179. package/lib/shared/hit-modal/hit-modal.component.d.ts +30 -0
  180. package/lib/shared/hit-modal/hit-ui.module.d.ts +11 -0
  181. package/package.json +41 -0
  182. package/public-api.d.ts +4 -0
@@ -0,0 +1,3774 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, Component, EventEmitter, ViewEncapsulation, ViewChild, Input, Output, NgModule } from '@angular/core';
3
+ import * as i1 from '@abp/ng.core';
4
+ import { CoreModule, LazyModuleFactory } from '@abp/ng.core';
5
+ import { locale } from 'devextreme/localization';
6
+ import * as i6 from '@angular/common';
7
+ import { CommonModule } from '@angular/common';
8
+ import * as i2$1 from '@abp/ng.theme.shared';
9
+ import { ThemeSharedModule } from '@abp/ng.theme.shared';
10
+ import * as i1$1 from '@angular/router';
11
+ import { RouterModule } from '@angular/router';
12
+ import * as i2 from '@angular/forms';
13
+ import { FormsModule } from '@angular/forms';
14
+ import * as i4 from '@abp/ng.components/page';
15
+ import { PageModule } from '@abp/ng.components/page';
16
+ import { CommercialUiModule } from '@volo/abp.commercial.ng.ui';
17
+ import { map } from 'rxjs/operators';
18
+ import { map as map$1, forkJoin } from 'rxjs';
19
+ import * as i5 from 'devextreme-angular';
20
+ import { DxDataGridModule, DxTextBoxModule, DxDateBoxModule, DxNumberBoxModule, DxSelectBoxModule, DxTextAreaModule, DxTagBoxModule, DxButtonModule, DxCheckBoxModule } from 'devextreme-angular';
21
+ import * as i5$1 from 'devextreme-angular/ui/nested';
22
+ import * as i7 from 'devextreme-angular/core';
23
+ import * as i8 from '@ng-bootstrap/ng-bootstrap';
24
+ import { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';
25
+
26
+ class KadoogluService {
27
+ constructor(restService) {
28
+ this.restService = restService;
29
+ this.apiName = 'Kadooglu';
30
+ }
31
+ sample() {
32
+ return this.restService.request({ method: 'GET', url: '/api/Kadooglu/sample' }, { apiName: this.apiName });
33
+ }
34
+ }
35
+ KadoogluService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KadoogluService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
36
+ KadoogluService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KadoogluService, providedIn: 'root' });
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KadoogluService, decorators: [{
38
+ type: Injectable,
39
+ args: [{
40
+ providedIn: 'root',
41
+ }]
42
+ }], ctorParameters: function () { return [{ type: i1.RestService }]; } });
43
+
44
+ class KadoogluComponent {
45
+ constructor(service) {
46
+ this.service = service;
47
+ }
48
+ ngOnInit() {
49
+ this.service.sample().subscribe(console.log);
50
+ }
51
+ }
52
+ KadoogluComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KadoogluComponent, deps: [{ token: KadoogluService }], target: i0.ɵɵFactoryTarget.Component });
53
+ KadoogluComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: KadoogluComponent, selector: "lib-kadooglu", ngImport: i0, template: ` <p>kadooglu works!</p> `, isInline: true });
54
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KadoogluComponent, decorators: [{
55
+ type: Component,
56
+ args: [{ selector: 'lib-kadooglu', template: ` <p>kadooglu works!</p> ` }]
57
+ }], ctorParameters: function () { return [{ type: KadoogluService }]; } });
58
+
59
+ class HitFactoryEntryService {
60
+ constructor(restService) {
61
+ this.restService = restService;
62
+ this.apiName = 'Kadooglu';
63
+ this.baseUrl = '/api/entegration-service/factory-entries';
64
+ }
65
+ getList(params) {
66
+ const defaultParams = Object.assign({ maxResultCount: 100, skipCount: 0 }, params);
67
+ return this.restService.request({ method: 'GET', url: this.baseUrl, params: defaultParams }, { apiName: this.apiName }).pipe(map(r => { var _a; return (_a = r === null || r === void 0 ? void 0 : r.items) !== null && _a !== void 0 ? _a : []; }));
68
+ }
69
+ get(id) {
70
+ return this.restService.request({ method: 'GET', url: `${this.baseUrl}/${id}` }, { apiName: this.apiName }).pipe(map(r => r === null || r === void 0 ? void 0 : r.items));
71
+ }
72
+ create(body) {
73
+ return this.restService.request({ method: 'POST', url: this.baseUrl, body }, { apiName: this.apiName }).pipe(map(r => r === null || r === void 0 ? void 0 : r.items));
74
+ }
75
+ update(id, body) {
76
+ return this.restService.request({ method: 'PATCH', url: `${this.baseUrl}/${id}`, body }, { apiName: this.apiName }).pipe(map(r => r === null || r === void 0 ? void 0 : r.items));
77
+ }
78
+ delete(id) {
79
+ return this.restService.request({ method: 'DELETE', url: `${this.baseUrl}/${id}` }, { apiName: this.apiName });
80
+ }
81
+ }
82
+ HitFactoryEntryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitFactoryEntryService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
83
+ HitFactoryEntryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitFactoryEntryService, providedIn: 'root' });
84
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitFactoryEntryService, decorators: [{
85
+ type: Injectable,
86
+ args: [{ providedIn: 'root' }]
87
+ }], ctorParameters: function () { return [{ type: i1.RestService }]; } });
88
+
89
+ class HitVehicleTypeService {
90
+ constructor(restService) {
91
+ this.restService = restService;
92
+ this.apiName = 'Kadooglu';
93
+ this.baseUrl = '/api/entegration-service/vehicle-types';
94
+ }
95
+ getList(params) {
96
+ return this.restService.request({ method: 'GET', url: this.baseUrl, params }, { apiName: this.apiName }).pipe(map$1(response => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.items) !== null && _a !== void 0 ? _a : []; }));
97
+ }
98
+ get(code) {
99
+ return this.restService.request({ method: 'GET', url: `${this.baseUrl}/${code}` }, { apiName: this.apiName }).pipe(map$1(r => r === null || r === void 0 ? void 0 : r.items));
100
+ }
101
+ create(body) {
102
+ return this.restService.request({ method: 'POST', url: this.baseUrl, body }, { apiName: this.apiName }).pipe(map$1(r => r === null || r === void 0 ? void 0 : r.items));
103
+ }
104
+ update(code, body) {
105
+ return this.restService.request({ method: 'PATCH', url: `${this.baseUrl}/${code}`, body }, { apiName: this.apiName }).pipe(map$1(r => r === null || r === void 0 ? void 0 : r.items));
106
+ }
107
+ delete(code) {
108
+ return this.restService.request({ method: 'DELETE', url: `${this.baseUrl}/${code}` }, { apiName: this.apiName });
109
+ }
110
+ }
111
+ HitVehicleTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitVehicleTypeService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
112
+ HitVehicleTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitVehicleTypeService, providedIn: 'root' });
113
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitVehicleTypeService, decorators: [{
114
+ type: Injectable,
115
+ args: [{ providedIn: 'root' }]
116
+ }], ctorParameters: function () { return [{ type: i1.RestService }]; } });
117
+
118
+ class HitCarrierPersonService {
119
+ constructor(restService) {
120
+ this.restService = restService;
121
+ this.apiName = 'Kadooglu';
122
+ this.baseUrl = '/api/entegration-service/carrierpersons';
123
+ }
124
+ getList(params) {
125
+ return this.restService.request({ method: 'GET', url: this.baseUrl, params }, { apiName: this.apiName }).pipe(map$1(r => { var _a; return (_a = r === null || r === void 0 ? void 0 : r.items) !== null && _a !== void 0 ? _a : []; }));
126
+ }
127
+ get(code) {
128
+ return this.restService.request({ method: 'GET', url: `${this.baseUrl}/${code}` }, { apiName: this.apiName }).pipe(map$1(r => r === null || r === void 0 ? void 0 : r.items));
129
+ }
130
+ create(body) {
131
+ return this.restService.request({ method: 'POST', url: this.baseUrl, body }, { apiName: this.apiName }).pipe(map$1(r => r === null || r === void 0 ? void 0 : r.items));
132
+ }
133
+ update(code, body) {
134
+ return this.restService.request({ method: 'PATCH', url: `${this.baseUrl}/${code}`, body }, { apiName: this.apiName }).pipe(map$1(r => r === null || r === void 0 ? void 0 : r.items));
135
+ }
136
+ delete(code) {
137
+ return this.restService.request({ method: 'DELETE', url: `${this.baseUrl}/${code}` }, { apiName: this.apiName });
138
+ }
139
+ }
140
+ HitCarrierPersonService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitCarrierPersonService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
141
+ HitCarrierPersonService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitCarrierPersonService, providedIn: 'root' });
142
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitCarrierPersonService, decorators: [{
143
+ type: Injectable,
144
+ args: [{ providedIn: 'root' }]
145
+ }], ctorParameters: function () { return [{ type: i1.RestService }]; } });
146
+
147
+ class HitPlateService {
148
+ constructor(restService) {
149
+ this.restService = restService;
150
+ this.apiName = 'Kadooglu';
151
+ this.baseUrl = '/api/entegration-service/plates';
152
+ }
153
+ getList(params) {
154
+ return this.restService.request({ method: 'GET', url: this.baseUrl, params }, { apiName: this.apiName }).pipe(map$1(response => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.items) !== null && _a !== void 0 ? _a : []; }));
155
+ }
156
+ get(code) {
157
+ return this.restService.request({ method: 'GET', url: `${this.baseUrl}/${code}` }, { apiName: this.apiName }).pipe(map$1(r => r === null || r === void 0 ? void 0 : r.items));
158
+ }
159
+ create(body) {
160
+ return this.restService.request({ method: 'POST', url: this.baseUrl, body }, { apiName: this.apiName }).pipe(map$1(r => r === null || r === void 0 ? void 0 : r.items));
161
+ }
162
+ update(code, body) {
163
+ return this.restService.request({ method: 'PATCH', url: `${this.baseUrl}/${code}`, body }, { apiName: this.apiName }).pipe(map$1(r => r === null || r === void 0 ? void 0 : r.items));
164
+ }
165
+ delete(code) {
166
+ return this.restService.request({ method: 'DELETE', url: `${this.baseUrl}/${code}` }, { apiName: this.apiName });
167
+ }
168
+ }
169
+ HitPlateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitPlateService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
170
+ HitPlateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitPlateService, providedIn: 'root' });
171
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitPlateService, decorators: [{
172
+ type: Injectable,
173
+ args: [{ providedIn: 'root' }]
174
+ }], ctorParameters: function () { return [{ type: i1.RestService }]; } });
175
+
176
+ class HitBusinessPartnerService {
177
+ constructor(restService) {
178
+ this.restService = restService;
179
+ this.apiName = 'Kadooglu';
180
+ this.baseUrl = '/api/entegration-service/business-partners';
181
+ }
182
+ getList(params) {
183
+ const defaultParams = Object.assign({ maxResultCount: 1000 }, params);
184
+ return this.restService.request({ method: 'GET', url: this.baseUrl, params: defaultParams }, { apiName: this.apiName }).pipe(map$1(response => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.items) !== null && _a !== void 0 ? _a : []; }));
185
+ }
186
+ }
187
+ HitBusinessPartnerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitBusinessPartnerService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
188
+ HitBusinessPartnerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitBusinessPartnerService, providedIn: 'root' });
189
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitBusinessPartnerService, decorators: [{
190
+ type: Injectable,
191
+ args: [{ providedIn: 'root' }]
192
+ }], ctorParameters: function () { return [{ type: i1.RestService }]; } });
193
+
194
+ class HitUserGateService {
195
+ constructor(restService) {
196
+ this.restService = restService;
197
+ this.apiName = 'Kadooglu';
198
+ this.baseUrl = '/api/entegration-service/user-gates';
199
+ this.gateBaseUrl = '/api/entegration-service/gates';
200
+ }
201
+ getByGateCode(gateCode) {
202
+ return this.restService.request({ method: 'GET', url: this.baseUrl, params: { gateCode } }, { apiName: this.apiName }).pipe(map$1(r => { var _a; return (_a = r === null || r === void 0 ? void 0 : r.items) !== null && _a !== void 0 ? _a : []; }));
203
+ }
204
+ getMyGates() {
205
+ return this.restService.request({ method: 'GET', url: `${this.gateBaseUrl}/my-gates` }, { apiName: this.apiName }).pipe(map$1(r => { var _a; return (_a = r === null || r === void 0 ? void 0 : r.items) !== null && _a !== void 0 ? _a : []; }));
206
+ }
207
+ getMyDefaultGateCode() {
208
+ return this.restService.request({ method: 'GET', url: `${this.baseUrl}/my-default-gate` }, { apiName: this.apiName }).pipe(map$1(r => { var _a; return (_a = r === null || r === void 0 ? void 0 : r.items) !== null && _a !== void 0 ? _a : null; }));
209
+ }
210
+ saveGateUsers(gateCode, users) {
211
+ return this.restService.request({ method: 'POST', url: `${this.baseUrl}/gate/${gateCode}`, body: users }, { apiName: this.apiName }).pipe(map$1(r => { var _a; return (_a = r === null || r === void 0 ? void 0 : r.items) !== null && _a !== void 0 ? _a : false; }));
212
+ }
213
+ }
214
+ HitUserGateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitUserGateService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
215
+ HitUserGateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitUserGateService, providedIn: 'root' });
216
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitUserGateService, decorators: [{
217
+ type: Injectable,
218
+ args: [{ providedIn: 'root' }]
219
+ }], ctorParameters: function () { return [{ type: i1.RestService }]; } });
220
+
221
+ class HitModalComponent {
222
+ constructor() {
223
+ this.displayName = '';
224
+ this.keyExpr = 'code';
225
+ this.modalSize = 'xl';
226
+ /** Data array that will be shown in the lookup modal grid (eager / pre-loaded). */
227
+ this.getFn = [];
228
+ /** Function returning Observable — called lazily when the modal opens. */
229
+ this.loadFn = null;
230
+ this.columns = [];
231
+ this.isVisible = true;
232
+ this.disabled = false;
233
+ this.selected = new EventEmitter();
234
+ this.data = [];
235
+ this.openModal = false;
236
+ this.isLoading = false;
237
+ this.textDisplay = '';
238
+ }
239
+ /** Pre-populate display text (e.g. in edit mode). Setter ensures reactive updates. */
240
+ set editingData(val) {
241
+ if (val === null || val === undefined) {
242
+ this.textDisplay = '';
243
+ return;
244
+ }
245
+ if (typeof val === 'string') {
246
+ this.textDisplay = val;
247
+ }
248
+ else if (this.displayName && val[this.displayName] !== undefined) {
249
+ this.textDisplay = val[this.displayName];
250
+ }
251
+ }
252
+ clickForOpenModal() {
253
+ this.openModal = true;
254
+ if (this.loadFn) {
255
+ this.isLoading = true;
256
+ this.data = [];
257
+ this.loadFn().subscribe({
258
+ next: (result) => {
259
+ this.data = result;
260
+ this.isLoading = false;
261
+ },
262
+ error: () => {
263
+ this.data = [];
264
+ this.isLoading = false;
265
+ },
266
+ });
267
+ }
268
+ else {
269
+ this.data = this.getFn;
270
+ }
271
+ }
272
+ setTitle() {
273
+ var _a, _b, _c, _d, _e, _f;
274
+ this.openModal = false;
275
+ const selectedData = (_b = (_a = this.dxdataInstance) === null || _a === void 0 ? void 0 : _a.instance.getSelectedRowsData()) !== null && _b !== void 0 ? _b : [];
276
+ const selectedKeys = (_d = (_c = this.dxdataInstance) === null || _c === void 0 ? void 0 : _c.instance.getSelectedRowKeys()) !== null && _d !== void 0 ? _d : [];
277
+ if (selectedKeys.length > 0) {
278
+ this.textDisplay = (_f = (_e = selectedData[0]) === null || _e === void 0 ? void 0 : _e[this.displayName]) !== null && _f !== void 0 ? _f : '';
279
+ this.selected.emit(selectedData[0]);
280
+ }
281
+ }
282
+ setTitleOnDoubleClick(e) {
283
+ var _a;
284
+ this.openModal = false;
285
+ if (e === null || e === void 0 ? void 0 : e.data) {
286
+ this.textDisplay = (_a = e.data[this.displayName]) !== null && _a !== void 0 ? _a : '';
287
+ this.selected.emit(e.data);
288
+ }
289
+ }
290
+ clearValue() {
291
+ this.textDisplay = '';
292
+ this.selected.emit(null);
293
+ }
294
+ }
295
+ HitModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
296
+ HitModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: HitModalComponent, selector: "hit-lookup-select", inputs: { displayName: "displayName", keyExpr: "keyExpr", modalSize: "modalSize", getFn: "getFn", loadFn: "loadFn", columns: "columns", isVisible: "isVisible", disabled: "disabled", editingData: "editingData" }, outputs: { selected: "selected" }, viewQueries: [{ propertyName: "dxdataInstance", first: true, predicate: ["dxdataInstance"], descendants: true }], ngImport: i0, template: "<div class=\"hit-lookup-group\">\r\n <dx-text-box\r\n [ngModel]=\"textDisplay\"\r\n [disabled]=\"true\"\r\n [readOnly]=\"true\"\r\n maxlength=\"64\">\r\n </dx-text-box>\r\n <div class=\"hit-lookup-actions\" *ngIf=\"isVisible\">\r\n <button\r\n class=\"hit-lookup-btn hit-lookup-btn-clear\"\r\n type=\"button\"\r\n *ngIf=\"textDisplay\"\r\n (click)=\"clearValue()\"\r\n [disabled]=\"disabled\"\r\n title=\"Temizle\">\r\n <i class=\"fa fa-times\"></i>\r\n </button>\r\n <button\r\n class=\"hit-lookup-btn\"\r\n type=\"button\"\r\n (click)=\"clickForOpenModal()\"\r\n [disabled]=\"disabled\"\r\n title=\"Ara\">\r\n <i class=\"fa fa-search\"></i>\r\n </button>\r\n </div>\r\n</div>\r\n\r\n<abp-modal [(visible)]=\"openModal\" [options]=\"{ size: modalSize }\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpUi::Search' | abpLocalization }}</h3>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <!-- Loading overlay -->\r\n <div *ngIf=\"isLoading\" class=\"d-flex flex-column align-items-center justify-content-center\" style=\"height: 55vh;\">\r\n <div class=\"spinner-border text-primary mb-3\" style=\"width: 3rem; height: 3rem;\" role=\"status\">\r\n <span class=\"visually-hidden\">Y\u00FCkleniyor...</span>\r\n </div>\r\n <span class=\"text-muted\">Veriler y\u00FCkleniyor...</span>\r\n </div>\r\n <dx-data-grid\r\n *ngIf=\"!isLoading\"\r\n #dxdataInstance\r\n [columns]=\"columns\"\r\n [dataSource]=\"data\"\r\n [keyExpr]=\"keyExpr\"\r\n [showRowLines]=\"true\"\r\n [showBorders]=\"true\"\r\n [hoverStateEnabled]=\"true\"\r\n [repaintChangesOnly]=\"true\"\r\n [allowColumnResizing]=\"true\"\r\n columnResizingMode=\"widget\"\r\n [allowColumnReordering]=\"true\"\r\n [columnAutoWidth]=\"true\"\r\n [focusedRowEnabled]=\"true\"\r\n [columnHidingEnabled]=\"true\"\r\n style=\"height: 55vh;\"\r\n (onRowDblClick)=\"setTitleOnDoubleClick($event)\">\r\n <dxo-pager\r\n [visible]=\"true\"\r\n [showInfo]=\"true\"\r\n [allowedPageSizes]=\"[50, 100, 200]\"\r\n [showNavigationButtons]=\"true\"\r\n [showPageSizeSelector]=\"true\">\r\n </dxo-pager>\r\n <dxo-paging [pageSize]=\"50\"></dxo-paging>\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-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 <dxo-selection mode=\"single\"></dxo-selection>\r\n </dx-data-grid>\r\n </ng-template>\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" buttonType=\"button\" (click)=\"setTitle()\">\r\n {{ 'AbpUi::Select' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", styles: ["@charset \"UTF-8\";hit-lookup-select{display:block}hit-lookup-select .hit-lookup-group{display:flex;align-items:stretch;width:100%}hit-lookup-select .hit-lookup-group dx-text-box{flex:1 1 auto;min-width:0}hit-lookup-select .hit-lookup-group dx-text-box .dx-textbox{height:100%}hit-lookup-select .hit-lookup-group dx-text-box .dx-texteditor{border-top-right-radius:0;border-bottom-right-radius:0;border-right:none;height:36px}hit-lookup-select .hit-lookup-group dx-text-box .dx-texteditor-input{font-weight:600}hit-lookup-select .hit-lookup-group .hit-lookup-actions{display:flex;flex-shrink:0}hit-lookup-select .hit-lookup-group .hit-lookup-actions .hit-lookup-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:1px solid #0d6efd;background:transparent;color:#0d6efd;font-size:.85rem;cursor:pointer;transition:background-color .15s ease,color .15s ease,border-color .15s ease;border-radius:0;outline:none}hit-lookup-select .hit-lookup-group .hit-lookup-actions .hit-lookup-btn:hover:not(:disabled){background-color:#0d6efd;color:#fff}hit-lookup-select .hit-lookup-group .hit-lookup-actions .hit-lookup-btn:active:not(:disabled){background-color:#0b5ed7;border-color:#0b5ed7;color:#fff}hit-lookup-select .hit-lookup-group .hit-lookup-actions .hit-lookup-btn:disabled{opacity:.5;cursor:not-allowed}hit-lookup-select .hit-lookup-group .hit-lookup-actions .hit-lookup-btn:last-child{border-top-right-radius:4px;border-bottom-right-radius:4px}hit-lookup-select .hit-lookup-group .hit-lookup-actions .hit-lookup-btn.hit-lookup-btn-clear{border-color:#dc3545;color:#dc3545;font-size:.75rem;width:30px}hit-lookup-select .hit-lookup-group .hit-lookup-actions .hit-lookup-btn.hit-lookup-btn-clear:hover:not(:disabled){background-color:#dc3545;color:#fff}\n"], dependencies: [{ kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2$1.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i2$1.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i2$1.ModalCloseDirective, selector: "[abpClose]" }, { kind: "component", type: i5.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: i5$1.DxoHeaderFilterComponent, selector: "dxo-header-filter", inputs: ["allowSearch", "dataSource", "groupInterval", "height", "searchMode", "width", "searchTimeout", "texts", "visible", "showRelevantValues"] }, { kind: "component", type: i5$1.DxoFilterPanelComponent, selector: "dxo-filter-panel", inputs: ["customizeText", "filterEnabled", "texts", "visible"], outputs: ["filterEnabledChange"] }, { kind: "component", type: i5$1.DxoFilterRowComponent, selector: "dxo-filter-row", inputs: ["applyFilter", "applyFilterText", "betweenEndText", "betweenStartText", "operationDescriptions", "resetOperationText", "showAllText", "showOperationChooser", "visible"] }, { kind: "component", type: i5$1.DxoPagerComponent, selector: "dxo-pager", inputs: ["allowedPageSizes", "displayMode", "infoText", "label", "showInfo", "showNavigationButtons", "showPageSizeSelector", "visible"] }, { kind: "component", type: i5$1.DxoPagingComponent, selector: "dxo-paging", inputs: ["enabled", "pageIndex", "pageSize"], outputs: ["pageIndexChange", "pageSizeChange"] }, { kind: "component", type: i5$1.DxoScrollingComponent, selector: "dxo-scrolling", inputs: ["columnRenderingMode", "mode", "preloadEnabled", "renderAsync", "rowRenderingMode", "scrollByContent", "scrollByThumb", "showScrollbar", "useNative"] }, { kind: "component", type: i5$1.DxoSelectionComponent, selector: "dxo-selection", inputs: ["allowSelectAll", "deferred", "mode", "selectAllMode", "showCheckBoxesMode", "recursive"] }, { kind: "component", type: i5$1.DxoSortingComponent, selector: "dxo-sorting", inputs: ["ascendingText", "clearText", "descendingText", "mode", "showSortIndexes"] }, { kind: "component", type: i5.DxTextBoxComponent, selector: "dx-text-box", inputs: ["accessKey", "activeStateEnabled", "buttons", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "inputAttr", "isValid", "label", "labelMode", "mask", "maskChar", "maskInvalidMessage", "maskRules", "maxLength", "mode", "name", "placeholder", "readOnly", "rtlEnabled", "showClearButton", "showMaskMode", "spellcheck", "stylingMode", "tabIndex", "text", "useMaskedValue", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "valueChangeEvent", "visible", "width"], outputs: ["onChange", "onContentReady", "onCopy", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onKeyDown", "onKeyUp", "onOptionChanged", "onPaste", "onValueChanged", "accessKeyChange", "activeStateEnabledChange", "buttonsChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isValidChange", "labelChange", "labelModeChange", "maskChange", "maskCharChange", "maskInvalidMessageChange", "maskRulesChange", "maxLengthChange", "modeChange", "nameChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "showClearButtonChange", "showMaskModeChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "useMaskedValueChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }], encapsulation: i0.ViewEncapsulation.None });
297
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitModalComponent, decorators: [{
298
+ type: Component,
299
+ args: [{ selector: 'hit-lookup-select', encapsulation: ViewEncapsulation.None, template: "<div class=\"hit-lookup-group\">\r\n <dx-text-box\r\n [ngModel]=\"textDisplay\"\r\n [disabled]=\"true\"\r\n [readOnly]=\"true\"\r\n maxlength=\"64\">\r\n </dx-text-box>\r\n <div class=\"hit-lookup-actions\" *ngIf=\"isVisible\">\r\n <button\r\n class=\"hit-lookup-btn hit-lookup-btn-clear\"\r\n type=\"button\"\r\n *ngIf=\"textDisplay\"\r\n (click)=\"clearValue()\"\r\n [disabled]=\"disabled\"\r\n title=\"Temizle\">\r\n <i class=\"fa fa-times\"></i>\r\n </button>\r\n <button\r\n class=\"hit-lookup-btn\"\r\n type=\"button\"\r\n (click)=\"clickForOpenModal()\"\r\n [disabled]=\"disabled\"\r\n title=\"Ara\">\r\n <i class=\"fa fa-search\"></i>\r\n </button>\r\n </div>\r\n</div>\r\n\r\n<abp-modal [(visible)]=\"openModal\" [options]=\"{ size: modalSize }\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpUi::Search' | abpLocalization }}</h3>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <!-- Loading overlay -->\r\n <div *ngIf=\"isLoading\" class=\"d-flex flex-column align-items-center justify-content-center\" style=\"height: 55vh;\">\r\n <div class=\"spinner-border text-primary mb-3\" style=\"width: 3rem; height: 3rem;\" role=\"status\">\r\n <span class=\"visually-hidden\">Y\u00FCkleniyor...</span>\r\n </div>\r\n <span class=\"text-muted\">Veriler y\u00FCkleniyor...</span>\r\n </div>\r\n <dx-data-grid\r\n *ngIf=\"!isLoading\"\r\n #dxdataInstance\r\n [columns]=\"columns\"\r\n [dataSource]=\"data\"\r\n [keyExpr]=\"keyExpr\"\r\n [showRowLines]=\"true\"\r\n [showBorders]=\"true\"\r\n [hoverStateEnabled]=\"true\"\r\n [repaintChangesOnly]=\"true\"\r\n [allowColumnResizing]=\"true\"\r\n columnResizingMode=\"widget\"\r\n [allowColumnReordering]=\"true\"\r\n [columnAutoWidth]=\"true\"\r\n [focusedRowEnabled]=\"true\"\r\n [columnHidingEnabled]=\"true\"\r\n style=\"height: 55vh;\"\r\n (onRowDblClick)=\"setTitleOnDoubleClick($event)\">\r\n <dxo-pager\r\n [visible]=\"true\"\r\n [showInfo]=\"true\"\r\n [allowedPageSizes]=\"[50, 100, 200]\"\r\n [showNavigationButtons]=\"true\"\r\n [showPageSizeSelector]=\"true\">\r\n </dxo-pager>\r\n <dxo-paging [pageSize]=\"50\"></dxo-paging>\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-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 <dxo-selection mode=\"single\"></dxo-selection>\r\n </dx-data-grid>\r\n </ng-template>\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" buttonType=\"button\" (click)=\"setTitle()\">\r\n {{ 'AbpUi::Select' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", styles: ["@charset \"UTF-8\";hit-lookup-select{display:block}hit-lookup-select .hit-lookup-group{display:flex;align-items:stretch;width:100%}hit-lookup-select .hit-lookup-group dx-text-box{flex:1 1 auto;min-width:0}hit-lookup-select .hit-lookup-group dx-text-box .dx-textbox{height:100%}hit-lookup-select .hit-lookup-group dx-text-box .dx-texteditor{border-top-right-radius:0;border-bottom-right-radius:0;border-right:none;height:36px}hit-lookup-select .hit-lookup-group dx-text-box .dx-texteditor-input{font-weight:600}hit-lookup-select .hit-lookup-group .hit-lookup-actions{display:flex;flex-shrink:0}hit-lookup-select .hit-lookup-group .hit-lookup-actions .hit-lookup-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:1px solid #0d6efd;background:transparent;color:#0d6efd;font-size:.85rem;cursor:pointer;transition:background-color .15s ease,color .15s ease,border-color .15s ease;border-radius:0;outline:none}hit-lookup-select .hit-lookup-group .hit-lookup-actions .hit-lookup-btn:hover:not(:disabled){background-color:#0d6efd;color:#fff}hit-lookup-select .hit-lookup-group .hit-lookup-actions .hit-lookup-btn:active:not(:disabled){background-color:#0b5ed7;border-color:#0b5ed7;color:#fff}hit-lookup-select .hit-lookup-group .hit-lookup-actions .hit-lookup-btn:disabled{opacity:.5;cursor:not-allowed}hit-lookup-select .hit-lookup-group .hit-lookup-actions .hit-lookup-btn:last-child{border-top-right-radius:4px;border-bottom-right-radius:4px}hit-lookup-select .hit-lookup-group .hit-lookup-actions .hit-lookup-btn.hit-lookup-btn-clear{border-color:#dc3545;color:#dc3545;font-size:.75rem;width:30px}hit-lookup-select .hit-lookup-group .hit-lookup-actions .hit-lookup-btn.hit-lookup-btn-clear:hover:not(:disabled){background-color:#dc3545;color:#fff}\n"] }]
300
+ }], propDecorators: { dxdataInstance: [{
301
+ type: ViewChild,
302
+ args: ['dxdataInstance', { static: false }]
303
+ }], displayName: [{
304
+ type: Input
305
+ }], keyExpr: [{
306
+ type: Input
307
+ }], modalSize: [{
308
+ type: Input
309
+ }], getFn: [{
310
+ type: Input
311
+ }], loadFn: [{
312
+ type: Input
313
+ }], columns: [{
314
+ type: Input
315
+ }], isVisible: [{
316
+ type: Input
317
+ }], disabled: [{
318
+ type: Input
319
+ }], editingData: [{
320
+ type: Input
321
+ }], selected: [{
322
+ type: Output
323
+ }] } });
324
+
325
+ class HitFactoryEntryFormComponent {
326
+ constructor(confirmation, service, carrierPersonService, plateService, vehicleTypeService, businessPartnerService, userGateService, localizationService) {
327
+ this.confirmation = confirmation;
328
+ this.service = service;
329
+ this.carrierPersonService = carrierPersonService;
330
+ this.plateService = plateService;
331
+ this.vehicleTypeService = vehicleTypeService;
332
+ this.businessPartnerService = businessPartnerService;
333
+ this.userGateService = userGateService;
334
+ this.localizationService = localizationService;
335
+ this.visible = false;
336
+ this.visibleChange = new EventEmitter();
337
+ this.record = null;
338
+ this.saved = new EventEmitter();
339
+ this.cancelled = new EventEmitter();
340
+ // Lookup data arrays for modals
341
+ this.typeData = [];
342
+ this.carrierData = [];
343
+ // Lazy loaders for plate lookups — filtered by u_IsTrailer
344
+ this.loadVehiclePlates = () => this.plateService.getList().pipe(map(plates => plates.filter(p => p.u_IsTrailer !== 'Y')));
345
+ this.loadTrailerPlates = () => this.plateService.getList().pipe(map(plates => plates.filter(p => p.u_IsTrailer === 'Y')));
346
+ this.gateData = [];
347
+ this.defaultGateCode = '';
348
+ // Column configs for lookup modals
349
+ this.typeColumns = [
350
+ { dataField: 'code', caption: 'Kod', width: 100 },
351
+ { dataField: 'name', caption: 'Ad' },
352
+ ];
353
+ this.plateColumns = [
354
+ { dataField: 'code', caption: 'Plaka', width: 100 },
355
+ { dataField: 'name', caption: 'Name' },
356
+ ];
357
+ this.carrierColumns = [
358
+ { dataField: 'code', caption: 'T.C. Kimlik No', width: 140 },
359
+ { dataField: 'name', caption: 'Ad Soyad' },
360
+ ];
361
+ this.businessPartnerColumns = [
362
+ { dataField: 'cardCode', caption: 'Cari Kod', width: 120 },
363
+ { dataField: 'cardName', caption: 'Cari Unvan' },
364
+ ];
365
+ // Form fields
366
+ this.gateCode = '';
367
+ this.entryDateTime = null;
368
+ this.exitDateTime = null;
369
+ this.selectedTypeCode = '';
370
+ this.selectedTypeName = '';
371
+ this.selectedPlateNo = '';
372
+ this.tcNo = '';
373
+ this.selectedCarrierName = '';
374
+ this.businessPartnerData = [];
375
+ this.selectedBusinessPartnerCode = '';
376
+ this.selectedBusinessPartnerName = '';
377
+ this.description = '';
378
+ // Plate input mode
379
+ this.plateInputMode = 'lookup';
380
+ this.manualPlateNo = '';
381
+ // Trailer plate
382
+ this.trailerPlateInputMode = 'lookup';
383
+ this.selectedTrailerPlateNo = '';
384
+ this.manualTrailerPlateNo = '';
385
+ // Carrier TC mode
386
+ this.tcLookupMode = false;
387
+ this.isTcQuerying = false;
388
+ this.isNewCarrier = false;
389
+ // New carrier fields
390
+ this.newCarrierFirstname = '';
391
+ this.newCarrierLastname = '';
392
+ this.newCarrierTel = '';
393
+ this.isTcCitizen = true;
394
+ this.isLoading = false;
395
+ }
396
+ ngOnInit() {
397
+ this.vehicleTypeService.getList().subscribe(d => (this.typeData = d));
398
+ this.carrierPersonService.getList().subscribe(d => (this.carrierData = d));
399
+ this.businessPartnerService.getList().subscribe(d => (this.businessPartnerData = d));
400
+ this.userGateService.getMyGates().subscribe(d => (this.gateData = d));
401
+ this.userGateService.getMyDefaultGateCode().subscribe(d => (this.defaultGateCode = d !== null && d !== void 0 ? d : ''));
402
+ }
403
+ ngOnChanges(changes) {
404
+ var _a;
405
+ if (((_a = changes['visible']) === null || _a === void 0 ? void 0 : _a.currentValue) === true) {
406
+ this.initForm();
407
+ }
408
+ }
409
+ initForm() {
410
+ var _a, _b, _c, _d, _e, _f;
411
+ this.isTcCitizen = true;
412
+ this.plateInputMode = 'lookup';
413
+ this.manualPlateNo = '';
414
+ this.trailerPlateInputMode = 'lookup';
415
+ this.selectedTrailerPlateNo = '';
416
+ this.manualTrailerPlateNo = '';
417
+ this.tcLookupMode = false;
418
+ this.isNewCarrier = false;
419
+ this.newCarrierFirstname = '';
420
+ this.newCarrierLastname = '';
421
+ this.newCarrierTel = '';
422
+ if (this.record) {
423
+ this.gateCode = (_a = this.record.u_GateCode) !== null && _a !== void 0 ? _a : '';
424
+ this.entryDateTime = this.buildDateTime(this.record.u_EntryDate, this.record.u_EntryTime);
425
+ this.exitDateTime = this.buildDateTime(this.record.u_ExitDate, this.record.u_ExitTime);
426
+ this.selectedTypeCode = this.record.u_EntryType;
427
+ this.selectedTypeName = this.record.u_EntryType;
428
+ this.selectedPlateNo = this.formatPlate(this.record.u_Plate);
429
+ this.selectedTrailerPlateNo = this.formatPlate((_b = this.record.u_DorsePlate) !== null && _b !== void 0 ? _b : '');
430
+ this.tcNo = this.record.u_TcNo;
431
+ this.selectedCarrierName = this.record.u_Driver;
432
+ this.description = this.record.u_Description;
433
+ this.selectedBusinessPartnerCode = (_c = this.record.u_CardCode) !== null && _c !== void 0 ? _c : '';
434
+ this.selectedBusinessPartnerName = (_f = (_e = (_d = this.businessPartnerData.find(p => p.cardCode === this.record.u_CardCode)) === null || _d === void 0 ? void 0 : _d.cardName) !== null && _e !== void 0 ? _e : this.record.u_CardCode) !== null && _f !== void 0 ? _f : '';
435
+ }
436
+ else {
437
+ this.gateCode = this.defaultGateCode;
438
+ this.entryDateTime = new Date();
439
+ this.exitDateTime = null;
440
+ this.selectedTypeCode = '';
441
+ this.selectedTypeName = '';
442
+ this.selectedPlateNo = '';
443
+ this.tcNo = '';
444
+ this.selectedCarrierName = '';
445
+ this.description = '';
446
+ this.selectedBusinessPartnerCode = '';
447
+ this.selectedBusinessPartnerName = '';
448
+ }
449
+ }
450
+ buildDateTime(dateStr, timeNum) {
451
+ if (!dateStr)
452
+ return null;
453
+ const d = new Date(dateStr);
454
+ if (timeNum != null) {
455
+ d.setHours(Math.floor(timeNum / 100), timeNum % 100, 0, 0);
456
+ }
457
+ return d;
458
+ }
459
+ onTypeSelected(e) {
460
+ if (!e)
461
+ return;
462
+ this.selectedTypeCode = e.code;
463
+ this.selectedTypeName = e.name;
464
+ }
465
+ onPlateSelected(e) {
466
+ if (!e)
467
+ return;
468
+ this.selectedPlateNo = this.formatPlate(e.code);
469
+ }
470
+ onTrailerPlateSelected(e) {
471
+ if (!e)
472
+ return;
473
+ this.selectedTrailerPlateNo = this.formatPlate(e.code);
474
+ }
475
+ onManualPlateFocusOut() {
476
+ this.manualPlateNo = this.formatPlate(this.manualPlateNo);
477
+ }
478
+ onManualTrailerPlateFocusOut() {
479
+ this.manualTrailerPlateNo = this.formatPlate(this.manualTrailerPlateNo);
480
+ }
481
+ /** Türk plakasını "34 HMA 001" formatına dönüştürür */
482
+ formatPlate(value) {
483
+ if (!value)
484
+ return value;
485
+ const raw = value.replace(/[^A-Za-z0-9ÇĞİÖŞÜçğıöşü]/g, '').toUpperCase();
486
+ const match = raw.match(/^(\d{2})([A-ZÇĞİÖŞÜ]{1,3})(\d{1,4})$/);
487
+ if (match) {
488
+ return `${match[1]} ${match[2]} ${match[3]}`;
489
+ }
490
+ return value.trim().toUpperCase();
491
+ }
492
+ onCarrierLookupSelected(e) {
493
+ if (!e)
494
+ return;
495
+ this.selectedCarrierName = e.name;
496
+ this.tcNo = e.code;
497
+ this.isNewCarrier = false;
498
+ this.tcLookupMode = false;
499
+ }
500
+ onBusinessPartnerSelected(e) {
501
+ if (!e) {
502
+ this.selectedBusinessPartnerCode = '';
503
+ this.selectedBusinessPartnerName = '';
504
+ return;
505
+ }
506
+ this.selectedBusinessPartnerCode = e.cardCode;
507
+ this.selectedBusinessPartnerName = e.cardName;
508
+ }
509
+ queryCarrierByTcNo() {
510
+ var _a;
511
+ const tc = (_a = this.tcNo) === null || _a === void 0 ? void 0 : _a.trim();
512
+ if (!tc) {
513
+ this.confirmation.warn(this.localizationService.instant('Kadooglu::PleaseEnterTcNo'), '', {
514
+ hideYesBtn: true,
515
+ cancelText: this.localizationService.instant('Kadooglu::Cancel'),
516
+ dismissible: false,
517
+ });
518
+ return;
519
+ }
520
+ this.isTcQuerying = true;
521
+ this.carrierPersonService.get(tc).subscribe({
522
+ next: (carrier) => {
523
+ this.isTcQuerying = false;
524
+ if (carrier) {
525
+ this.selectedCarrierName = carrier.name;
526
+ this.isNewCarrier = false;
527
+ }
528
+ else {
529
+ this.selectedCarrierName = '';
530
+ this.isNewCarrier = true;
531
+ this.newCarrierFirstname = '';
532
+ this.newCarrierLastname = '';
533
+ this.newCarrierTel = '';
534
+ }
535
+ },
536
+ error: () => {
537
+ this.isTcQuerying = false;
538
+ this.isNewCarrier = true;
539
+ this.newCarrierFirstname = '';
540
+ this.newCarrierLastname = '';
541
+ this.newCarrierTel = '';
542
+ },
543
+ });
544
+ }
545
+ save() {
546
+ var _a, _b, _c;
547
+ const effectivePlateNo = this.formatPlate(this.plateInputMode === 'manual'
548
+ ? this.manualPlateNo.trim().toUpperCase()
549
+ : this.selectedPlateNo);
550
+ const effectiveTrailerPlateNo = this.formatPlate(this.trailerPlateInputMode === 'manual'
551
+ ? this.manualTrailerPlateNo.trim().toUpperCase()
552
+ : this.selectedTrailerPlateNo);
553
+ if (!this.selectedTypeCode || !effectivePlateNo || !((_a = this.tcNo) === null || _a === void 0 ? void 0 : _a.trim())) {
554
+ this.confirmation.warn(this.localizationService.instant('Kadooglu::FillRequiredFields'), '', {
555
+ hideYesBtn: true,
556
+ cancelText: this.localizationService.instant('Kadooglu::Cancel'),
557
+ dismissible: false,
558
+ });
559
+ return;
560
+ }
561
+ if (this.isTcCitizen && !this.validateTCKN(this.tcNo)) {
562
+ this.confirmation.warn('Geçersiz T.C. Kimlik No. Lütfen 11 haneli, geçerli bir TCKN giriniz.', '', {
563
+ hideYesBtn: true,
564
+ cancelText: this.localizationService.instant('Kadooglu::Cancel'),
565
+ dismissible: false,
566
+ });
567
+ return;
568
+ }
569
+ if (this.isNewCarrier && (!((_b = this.newCarrierFirstname) === null || _b === void 0 ? void 0 : _b.trim()) || !((_c = this.newCarrierLastname) === null || _c === void 0 ? void 0 : _c.trim()))) {
570
+ this.confirmation.warn(this.localizationService.instant('Kadooglu::EnterNewDriverName'), '', {
571
+ hideYesBtn: true,
572
+ cancelText: this.localizationService.instant('Kadooglu::Cancel'),
573
+ dismissible: false,
574
+ });
575
+ return;
576
+ }
577
+ const dto = {
578
+ u_GateCode: this.gateCode,
579
+ u_EntryDate: this.entryDateTime
580
+ ? this.entryDateTime.toISOString().split('T')[0]
581
+ : undefined,
582
+ u_EntryTime: this.entryDateTime
583
+ ? this.entryDateTime.getHours() * 100 + this.entryDateTime.getMinutes()
584
+ : undefined,
585
+ u_ExitDate: this.exitDateTime
586
+ ? this.exitDateTime.toISOString().split('T')[0]
587
+ : undefined,
588
+ u_ExitTime: this.exitDateTime
589
+ ? this.exitDateTime.getHours() * 100 + this.exitDateTime.getMinutes()
590
+ : undefined,
591
+ u_EntryType: this.selectedTypeCode,
592
+ u_Plate: effectivePlateNo,
593
+ u_DorsePlate: effectiveTrailerPlateNo || undefined,
594
+ u_TcNo: this.tcNo.trim(),
595
+ u_Driver: this.isNewCarrier
596
+ ? `${this.newCarrierFirstname.trim()} ${this.newCarrierLastname.trim()}`
597
+ : undefined,
598
+ u_DriverFirstname: this.isNewCarrier ? this.newCarrierFirstname.trim() : undefined,
599
+ u_DriverLastname: this.isNewCarrier ? this.newCarrierLastname.trim() : undefined,
600
+ u_DriverTel: this.isNewCarrier ? (this.newCarrierTel.trim() || undefined) : undefined,
601
+ u_CardCode: this.selectedBusinessPartnerCode,
602
+ u_Description: this.description,
603
+ };
604
+ const doSave = () => {
605
+ var _a;
606
+ const obs$ = ((_a = this.record) === null || _a === void 0 ? void 0 : _a.docEntry)
607
+ ? this.service.update(this.record.docEntry.toString(), dto)
608
+ : this.service.create(dto);
609
+ this.isLoading = true;
610
+ obs$.subscribe({
611
+ next: () => {
612
+ this.isLoading = false;
613
+ this.saved.emit();
614
+ },
615
+ error: () => {
616
+ this.isLoading = false;
617
+ },
618
+ });
619
+ };
620
+ const isManual = this.plateInputMode === 'manual' ||
621
+ (this.trailerPlateInputMode === 'manual' && !!effectiveTrailerPlateNo);
622
+ if (isManual) {
623
+ this.isLoading = true;
624
+ this.plateService.getList().subscribe(plates => {
625
+ this.isLoading = false;
626
+ // Manuel plaka duplicate kontrolü
627
+ if (this.plateInputMode === 'manual') {
628
+ const duplicate = plates.find(p => p.code.trim().toUpperCase() === effectivePlateNo);
629
+ if (duplicate) {
630
+ this.confirmation.warn(this.localizationService.instant('Kadooglu::PlateAlreadyExists', effectivePlateNo), '', { hideYesBtn: true, cancelText: this.localizationService.instant('Kadooglu::Cancel'), dismissible: false });
631
+ this.plateInputMode = 'lookup';
632
+ this.selectedPlateNo = duplicate.code;
633
+ return;
634
+ }
635
+ }
636
+ // Manuel dorse plaka duplicate kontrolü
637
+ if (this.trailerPlateInputMode === 'manual' && effectiveTrailerPlateNo) {
638
+ const trailerDuplicate = plates.find(p => p.code.trim().toUpperCase() === effectiveTrailerPlateNo);
639
+ if (trailerDuplicate) {
640
+ this.confirmation.warn(this.localizationService.instant('Kadooglu::PlateAlreadyExists', effectiveTrailerPlateNo), '', { hideYesBtn: true, cancelText: this.localizationService.instant('Kadooglu::Cancel'), dismissible: false });
641
+ this.trailerPlateInputMode = 'lookup';
642
+ this.selectedTrailerPlateNo = trailerDuplicate.code;
643
+ return;
644
+ }
645
+ }
646
+ doSave();
647
+ });
648
+ }
649
+ else {
650
+ doSave();
651
+ }
652
+ }
653
+ onModalVisibleChange(val) {
654
+ this.visible = val;
655
+ this.visibleChange.emit(val);
656
+ if (!val) {
657
+ this.cancelled.emit();
658
+ }
659
+ }
660
+ cancel() {
661
+ this.onModalVisibleChange(false);
662
+ }
663
+ validateTCKN(value) {
664
+ const tc = value === null || value === void 0 ? void 0 : value.trim();
665
+ if (!tc || tc.length !== 11)
666
+ return false;
667
+ if (!/^\d{11}$/.test(tc))
668
+ return false;
669
+ if (tc[0] === '0')
670
+ return false;
671
+ const d = tc.split('').map(Number);
672
+ const d10 = ((d[0] + d[2] + d[4] + d[6] + d[8]) * 7 - (d[1] + d[3] + d[5] + d[7])) % 10;
673
+ if (d10 !== d[9])
674
+ return false;
675
+ const d11 = d.slice(0, 10).reduce((a, b) => a + b, 0) % 10;
676
+ return d11 === d[10];
677
+ }
678
+ }
679
+ HitFactoryEntryFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitFactoryEntryFormComponent, deps: [{ token: i2$1.ConfirmationService }, { token: HitFactoryEntryService }, { token: HitCarrierPersonService }, { token: HitPlateService }, { token: HitVehicleTypeService }, { token: HitBusinessPartnerService }, { token: HitUserGateService }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
680
+ HitFactoryEntryFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: HitFactoryEntryFormComponent, selector: "lib-hit-factory-entry-form", inputs: { visible: "visible", record: "record" }, outputs: { visibleChange: "visibleChange", saved: "saved", cancelled: "cancelled" }, usesOnChanges: true, ngImport: i0, template: "<abp-modal [visible]=\"visible\" (visibleChange)=\"onModalVisibleChange($event)\" [options]=\"{ size: 'lg', backdrop: 'static' }\">\r\n <ng-template #abpHeader>\r\n <h3>{{ record?.docEntry ? ('AbpUi::Edit' | abpLocalization) : ('Kadooglu::NewRecord' | abpLocalization) }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n\r\n <!-- Giri\u015F / \u00C7\u0131k\u0131\u015F Bilgileri -->\r\n <div class=\"border rounded p-3 mb-2\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-clock me-2\"></i>{{ 'Kadooglu::EntryExitInfo' | abpLocalization }}\r\n </div>\r\n <div class=\"row mb-3\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::EntryDateTime' | abpLocalization }}</label>\r\n <dx-date-box\r\n [(value)]=\"entryDateTime\"\r\n type=\"datetime\"\r\n displayFormat=\"dd.MM.yyyy HH:mm\"\r\n width=\"100%\">\r\n </dx-date-box>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::ExitDateTime' | abpLocalization }}</label>\r\n <dx-date-box\r\n [(value)]=\"exitDateTime\"\r\n type=\"datetime\"\r\n displayFormat=\"dd.MM.yyyy HH:mm\"\r\n [showClearButton]=\"true\"\r\n width=\"100%\">\r\n </dx-date-box>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-4\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::Gate' | abpLocalization }}</label>\r\n <dx-select-box\r\n [(value)]=\"gateCode\"\r\n [dataSource]=\"gateData\"\r\n displayExpr=\"name\"\r\n valueExpr=\"code\"\r\n [placeholder]=\"'Kadooglu::SelectGate' | abpLocalization\"\r\n width=\"100%\">\r\n </dx-select-box>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Ara\u00E7 Bilgileri -->\r\n <div class=\"border rounded p-3 mb-2\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-truck me-2\"></i>{{ 'Kadooglu::VehicleInfo' | abpLocalization }}\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">\r\n Ara\u00E7 Hareket T\u00FCr\u00FC <span class=\"text-danger\">*</span>\r\n </label>\r\n <hit-lookup-select\r\n [getFn]=\"typeData\"\r\n [columns]=\"typeColumns\"\r\n displayName=\"name\"\r\n [editingData]=\"selectedTypeName\"\r\n (selected)=\"onTypeSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">\r\n {{ 'Kadooglu::Plate' | abpLocalization }} <span class=\"text-danger\">*</span>\r\n </label>\r\n <ng-container *ngIf=\"plateInputMode === 'lookup'\">\r\n <hit-lookup-select\r\n [loadFn]=\"loadVehiclePlates\"\r\n [columns]=\"plateColumns\"\r\n displayName=\"code\"\r\n keyExpr=\"code\"\r\n [editingData]=\"selectedPlateNo\"\r\n (selected)=\"onPlateSelected($event)\">\r\n </hit-lookup-select>\r\n <div class=\"mt-1\">\r\n <a href=\"javascript:void(0)\" class=\"small text-primary\" (click)=\"plateInputMode = 'manual'\">\r\n <i class=\"fa fa-keyboard me-1\"></i> {{ 'Kadooglu::ManualEntry' | abpLocalization }}\r\n </a>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"plateInputMode === 'manual'\">\r\n <dx-text-box\r\n [(value)]=\"manualPlateNo\"\r\n [placeholder]=\"'Kadooglu::EnterPlate' | abpLocalization\"\r\n width=\"100%\"\r\n (onFocusOut)=\"onManualPlateFocusOut()\">\r\n </dx-text-box>\r\n <div class=\"mt-1\">\r\n <a href=\"javascript:void(0)\" class=\"small text-primary\" (click)=\"plateInputMode = 'lookup'\">\r\n <i class=\"fa fa-list me-1\"></i> {{ 'Kadooglu::SelectFromList' | abpLocalization }}\r\n </a>\r\n </div>\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">\r\n {{ 'Kadooglu::DorsePlate' | abpLocalization }}\r\n </label>\r\n <ng-container *ngIf=\"trailerPlateInputMode === 'lookup'\">\r\n <hit-lookup-select\r\n [loadFn]=\"loadTrailerPlates\"\r\n [columns]=\"plateColumns\"\r\n displayName=\"code\"\r\n keyExpr=\"code\"\r\n [editingData]=\"selectedTrailerPlateNo\"\r\n (selected)=\"onTrailerPlateSelected($event)\">\r\n </hit-lookup-select>\r\n <div class=\"mt-1\">\r\n <a href=\"javascript:void(0)\" class=\"small text-primary\" (click)=\"trailerPlateInputMode = 'manual'\">\r\n <i class=\"fa fa-keyboard me-1\"></i> {{ 'Kadooglu::ManualEntry' | abpLocalization }}\r\n </a>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"trailerPlateInputMode === 'manual'\">\r\n <dx-text-box\r\n [(value)]=\"manualTrailerPlateNo\"\r\n [placeholder]=\"'Kadooglu::EnterPlate' | abpLocalization\"\r\n width=\"100%\"\r\n (onFocusOut)=\"onManualTrailerPlateFocusOut()\">\r\n </dx-text-box>\r\n <div class=\"mt-1\">\r\n <a href=\"javascript:void(0)\" class=\"small text-primary\" (click)=\"trailerPlateInputMode = 'lookup'\">\r\n <i class=\"fa fa-list me-1\"></i> {{ 'Kadooglu::SelectFromList' | abpLocalization }}\r\n </a>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n\r\n <!-- S\u00FCr\u00FCc\u00FC & Firma -->\r\n <div class=\"border rounded p-3 mb-2\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-id-card me-2\"></i>{{ 'Kadooglu::DriverAndCompany' | abpLocalization }}\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <div class=\"d-flex align-items-center gap-2 mb-1\">\r\n <label class=\"form-label mb-0 small fw-semibold text-muted\">\r\n {{ isTcCitizen ? ('Kadooglu::TcIdentityNo' | abpLocalization) : 'Kimlik No' }} <span class=\"text-danger\">*</span>\r\n </label>\r\n <dx-check-box [(value)]=\"isTcCitizen\" text=\"T.C. Vatanda\u015F\u0131\"></dx-check-box>\r\n </div>\r\n <ng-container *ngIf=\"!tcLookupMode\">\r\n <div class=\"d-flex gap-2\">\r\n <dx-text-box\r\n [(value)]=\"tcNo\"\r\n [placeholder]=\"isTcCitizen ? ('Kadooglu::TcIdentityNo' | abpLocalization) : 'Kimlik No'\"\r\n width=\"100%\">\r\n </dx-text-box>\r\n <button type=\"button\" class=\"btn btn-outline-primary btn-sm text-nowrap\"\r\n [disabled]=\"isTcQuerying\"\r\n (click)=\"queryCarrierByTcNo()\">\r\n <i class=\"fa fa-search me-1\"></i>\r\n {{ (isTcQuerying ? 'Kadooglu::Querying' : 'Kadooglu::Query') | abpLocalization }}\r\n </button>\r\n </div>\r\n <div class=\"mt-1\">\r\n <a href=\"javascript:void(0)\" class=\"small text-primary\" (click)=\"tcLookupMode = true\">\r\n <i class=\"fa fa-list me-1\"></i> {{ 'Kadooglu::SelectFromList' | abpLocalization }}\r\n </a>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"tcLookupMode\">\r\n <hit-lookup-select\r\n [getFn]=\"carrierData\"\r\n [columns]=\"carrierColumns\"\r\n displayName=\"name\"\r\n [editingData]=\"selectedCarrierName\"\r\n (selected)=\"onCarrierLookupSelected($event)\">\r\n </hit-lookup-select>\r\n <div class=\"mt-1\">\r\n <a href=\"javascript:void(0)\" class=\"small text-primary\" (click)=\"tcLookupMode = false\">\r\n <i class=\"fa fa-keyboard me-1\"></i> {{ 'Kadooglu::QueryByTc' | abpLocalization }}\r\n </a>\r\n </div>\r\n </ng-container>\r\n </div>\r\n\r\n <!-- Mevcut s\u00FCr\u00FCc\u00FC: sadece ad\u0131 g\u00F6ster (readonly) -->\r\n <ng-container *ngIf=\"!isNewCarrier\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">\r\n {{ 'Kadooglu::DriverNameSurname' | abpLocalization }}\r\n </label>\r\n <dx-text-box\r\n [(value)]=\"selectedCarrierName\"\r\n [disabled]=\"true\"\r\n width=\"100%\">\r\n </dx-text-box>\r\n </div>\r\n </ng-container>\r\n\r\n <!-- Yeni s\u00FCr\u00FCc\u00FC: Ad, Soyad, Telefon alanlar\u0131n\u0131 g\u00F6ster -->\r\n <ng-container *ngIf=\"isNewCarrier\">\r\n <div class=\"row mb-3\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">\r\n {{ 'Kadooglu::FirstName' | abpLocalization }} <span class=\"text-danger\">*</span>\r\n </label>\r\n <dx-text-box\r\n [(value)]=\"newCarrierFirstname\"\r\n [placeholder]=\"'Kadooglu::FirstName' | abpLocalization\"\r\n width=\"100%\">\r\n </dx-text-box>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">\r\n {{ 'Kadooglu::LastName' | abpLocalization }} <span class=\"text-danger\">*</span>\r\n </label>\r\n <dx-text-box\r\n [(value)]=\"newCarrierLastname\"\r\n [placeholder]=\"'Kadooglu::LastName' | abpLocalization\"\r\n width=\"100%\">\r\n </dx-text-box>\r\n </div>\r\n </div>\r\n <div class=\"mb-3\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">\r\n {{ 'Kadooglu::Phone' | abpLocalization }}\r\n </label>\r\n <dx-text-box\r\n [(value)]=\"newCarrierTel\"\r\n [placeholder]=\"'Kadooglu::Phone' | abpLocalization\"\r\n width=\"100%\">\r\n </dx-text-box>\r\n </div>\r\n <div class=\"alert alert-info small py-1 mb-3\">\r\n <i class=\"fa fa-info-circle me-1\"></i>\r\n {{ 'Kadooglu::NewDriverAlert' | abpLocalization }}\r\n </div>\r\n </ng-container>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">\r\n {{ 'Kadooglu::BusinessPartner' | abpLocalization }}\r\n </label>\r\n <hit-lookup-select\r\n [getFn]=\"businessPartnerData\"\r\n [columns]=\"businessPartnerColumns\"\r\n displayName=\"cardName\"\r\n keyExpr=\"cardCode\"\r\n [editingData]=\"selectedBusinessPartnerName\"\r\n (selected)=\"onBusinessPartnerSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n </div>\r\n\r\n <!-- A\u00E7\u0131klama -->\r\n <div class=\"mb-3\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::Description' | abpLocalization }}</label>\r\n <dx-text-area\r\n [(value)]=\"description\"\r\n [height]=\"80\"\r\n width=\"100%\">\r\n </dx-text-area>\r\n </div>\r\n\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"cancel()\">\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button\r\n iconClass=\"fa fa-save\"\r\n buttonType=\"button\"\r\n [loading]=\"isLoading\"\r\n (click)=\"save()\">\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$1.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i2$1.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "component", type: HitModalComponent, selector: "hit-lookup-select", inputs: ["displayName", "keyExpr", "modalSize", "getFn", "loadFn", "columns", "isVisible", "disabled", "editingData"], outputs: ["selected"] }, { kind: "component", type: i5.DxDateBoxComponent, selector: "dx-date-box", inputs: ["acceptCustomValue", "accessKey", "activeStateEnabled", "adaptivityEnabled", "applyButtonText", "applyValueMode", "buttons", "calendarOptions", "cancelButtonText", "dateOutOfRangeMessage", "dateSerializationFormat", "deferRendering", "disabled", "disabledDates", "displayFormat", "dropDownButtonTemplate", "dropDownOptions", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "inputAttr", "interval", "invalidDateMessage", "isValid", "label", "labelMode", "max", "maxLength", "min", "name", "opened", "openOnFieldClick", "pickerType", "placeholder", "readOnly", "rtlEnabled", "showAnalogClock", "showClearButton", "showDropDownButton", "spellcheck", "stylingMode", "tabIndex", "text", "todayButtonText", "type", "useMaskBehavior", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "valueChangeEvent", "visible", "width"], outputs: ["onChange", "onClosed", "onContentReady", "onCopy", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onKeyDown", "onKeyUp", "onOpened", "onOptionChanged", "onPaste", "onValueChanged", "acceptCustomValueChange", "accessKeyChange", "activeStateEnabledChange", "adaptivityEnabledChange", "applyButtonTextChange", "applyValueModeChange", "buttonsChange", "calendarOptionsChange", "cancelButtonTextChange", "dateOutOfRangeMessageChange", "dateSerializationFormatChange", "deferRenderingChange", "disabledChange", "disabledDatesChange", "displayFormatChange", "dropDownButtonTemplateChange", "dropDownOptionsChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "intervalChange", "invalidDateMessageChange", "isValidChange", "labelChange", "labelModeChange", "maxChange", "maxLengthChange", "minChange", "nameChange", "openedChange", "openOnFieldClickChange", "pickerTypeChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "showAnalogClockChange", "showClearButtonChange", "showDropDownButtonChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "todayButtonTextChange", "typeChange", "useMaskBehaviorChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "component", type: i5.DxSelectBoxComponent, selector: "dx-select-box", inputs: ["acceptCustomValue", "accessKey", "activeStateEnabled", "buttons", "customItemCreateEvent", "dataSource", "deferRendering", "disabled", "displayExpr", "displayValue", "dropDownButtonTemplate", "dropDownOptions", "elementAttr", "fieldTemplate", "focusStateEnabled", "grouped", "groupTemplate", "height", "hint", "hoverStateEnabled", "inputAttr", "isValid", "items", "itemTemplate", "label", "labelMode", "maxLength", "minSearchLength", "name", "noDataText", "opened", "openOnFieldClick", "placeholder", "readOnly", "rtlEnabled", "searchEnabled", "searchExpr", "searchMode", "searchTimeout", "selectedItem", "showClearButton", "showDataBeforeSearch", "showDropDownButton", "showSelectionControls", "spellcheck", "stylingMode", "tabIndex", "text", "useItemTextAsTitle", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "valueChangeEvent", "valueExpr", "visible", "width", "wrapItemText"], outputs: ["onChange", "onClosed", "onContentReady", "onCopy", "onCustomItemCreating", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onItemClick", "onKeyDown", "onKeyUp", "onOpened", "onOptionChanged", "onPaste", "onSelectionChanged", "onValueChanged", "acceptCustomValueChange", "accessKeyChange", "activeStateEnabledChange", "buttonsChange", "customItemCreateEventChange", "dataSourceChange", "deferRenderingChange", "disabledChange", "displayExprChange", "displayValueChange", "dropDownButtonTemplateChange", "dropDownOptionsChange", "elementAttrChange", "fieldTemplateChange", "focusStateEnabledChange", "groupedChange", "groupTemplateChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isValidChange", "itemsChange", "itemTemplateChange", "labelChange", "labelModeChange", "maxLengthChange", "minSearchLengthChange", "nameChange", "noDataTextChange", "openedChange", "openOnFieldClickChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "searchEnabledChange", "searchExprChange", "searchModeChange", "searchTimeoutChange", "selectedItemChange", "showClearButtonChange", "showDataBeforeSearchChange", "showDropDownButtonChange", "showSelectionControlsChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "useItemTextAsTitleChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "valueExprChange", "visibleChange", "widthChange", "wrapItemTextChange", "onBlur"] }, { kind: "component", type: i5.DxTextBoxComponent, selector: "dx-text-box", inputs: ["accessKey", "activeStateEnabled", "buttons", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "inputAttr", "isValid", "label", "labelMode", "mask", "maskChar", "maskInvalidMessage", "maskRules", "maxLength", "mode", "name", "placeholder", "readOnly", "rtlEnabled", "showClearButton", "showMaskMode", "spellcheck", "stylingMode", "tabIndex", "text", "useMaskedValue", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "valueChangeEvent", "visible", "width"], outputs: ["onChange", "onContentReady", "onCopy", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onKeyDown", "onKeyUp", "onOptionChanged", "onPaste", "onValueChanged", "accessKeyChange", "activeStateEnabledChange", "buttonsChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isValidChange", "labelChange", "labelModeChange", "maskChange", "maskCharChange", "maskInvalidMessageChange", "maskRulesChange", "maxLengthChange", "modeChange", "nameChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "showClearButtonChange", "showMaskModeChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "useMaskedValueChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "component", type: i5.DxTextAreaComponent, selector: "dx-text-area", inputs: ["accessKey", "activeStateEnabled", "autoResizeEnabled", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "inputAttr", "isValid", "label", "labelMode", "maxHeight", "maxLength", "minHeight", "name", "placeholder", "readOnly", "rtlEnabled", "spellcheck", "stylingMode", "tabIndex", "text", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "valueChangeEvent", "visible", "width"], outputs: ["onChange", "onContentReady", "onCopy", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onKeyDown", "onKeyUp", "onOptionChanged", "onPaste", "onValueChanged", "accessKeyChange", "activeStateEnabledChange", "autoResizeEnabledChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isValidChange", "labelChange", "labelModeChange", "maxHeightChange", "maxLengthChange", "minHeightChange", "nameChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "component", type: i5.DxCheckBoxComponent, selector: "dx-check-box", inputs: ["accessKey", "activeStateEnabled", "disabled", "elementAttr", "enableThreeStateBehavior", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "iconSize", "isValid", "name", "readOnly", "rtlEnabled", "tabIndex", "text", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "visible", "width"], outputs: ["onContentReady", "onDisposing", "onInitialized", "onOptionChanged", "onValueChanged", "accessKeyChange", "activeStateEnabledChange", "disabledChange", "elementAttrChange", "enableThreeStateBehaviorChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "iconSizeChange", "isValidChange", "nameChange", "readOnlyChange", "rtlEnabledChange", "tabIndexChange", "textChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
681
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitFactoryEntryFormComponent, decorators: [{
682
+ type: Component,
683
+ args: [{ selector: 'lib-hit-factory-entry-form', template: "<abp-modal [visible]=\"visible\" (visibleChange)=\"onModalVisibleChange($event)\" [options]=\"{ size: 'lg', backdrop: 'static' }\">\r\n <ng-template #abpHeader>\r\n <h3>{{ record?.docEntry ? ('AbpUi::Edit' | abpLocalization) : ('Kadooglu::NewRecord' | abpLocalization) }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n\r\n <!-- Giri\u015F / \u00C7\u0131k\u0131\u015F Bilgileri -->\r\n <div class=\"border rounded p-3 mb-2\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-clock me-2\"></i>{{ 'Kadooglu::EntryExitInfo' | abpLocalization }}\r\n </div>\r\n <div class=\"row mb-3\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::EntryDateTime' | abpLocalization }}</label>\r\n <dx-date-box\r\n [(value)]=\"entryDateTime\"\r\n type=\"datetime\"\r\n displayFormat=\"dd.MM.yyyy HH:mm\"\r\n width=\"100%\">\r\n </dx-date-box>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::ExitDateTime' | abpLocalization }}</label>\r\n <dx-date-box\r\n [(value)]=\"exitDateTime\"\r\n type=\"datetime\"\r\n displayFormat=\"dd.MM.yyyy HH:mm\"\r\n [showClearButton]=\"true\"\r\n width=\"100%\">\r\n </dx-date-box>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-4\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::Gate' | abpLocalization }}</label>\r\n <dx-select-box\r\n [(value)]=\"gateCode\"\r\n [dataSource]=\"gateData\"\r\n displayExpr=\"name\"\r\n valueExpr=\"code\"\r\n [placeholder]=\"'Kadooglu::SelectGate' | abpLocalization\"\r\n width=\"100%\">\r\n </dx-select-box>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Ara\u00E7 Bilgileri -->\r\n <div class=\"border rounded p-3 mb-2\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-truck me-2\"></i>{{ 'Kadooglu::VehicleInfo' | abpLocalization }}\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">\r\n Ara\u00E7 Hareket T\u00FCr\u00FC <span class=\"text-danger\">*</span>\r\n </label>\r\n <hit-lookup-select\r\n [getFn]=\"typeData\"\r\n [columns]=\"typeColumns\"\r\n displayName=\"name\"\r\n [editingData]=\"selectedTypeName\"\r\n (selected)=\"onTypeSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">\r\n {{ 'Kadooglu::Plate' | abpLocalization }} <span class=\"text-danger\">*</span>\r\n </label>\r\n <ng-container *ngIf=\"plateInputMode === 'lookup'\">\r\n <hit-lookup-select\r\n [loadFn]=\"loadVehiclePlates\"\r\n [columns]=\"plateColumns\"\r\n displayName=\"code\"\r\n keyExpr=\"code\"\r\n [editingData]=\"selectedPlateNo\"\r\n (selected)=\"onPlateSelected($event)\">\r\n </hit-lookup-select>\r\n <div class=\"mt-1\">\r\n <a href=\"javascript:void(0)\" class=\"small text-primary\" (click)=\"plateInputMode = 'manual'\">\r\n <i class=\"fa fa-keyboard me-1\"></i> {{ 'Kadooglu::ManualEntry' | abpLocalization }}\r\n </a>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"plateInputMode === 'manual'\">\r\n <dx-text-box\r\n [(value)]=\"manualPlateNo\"\r\n [placeholder]=\"'Kadooglu::EnterPlate' | abpLocalization\"\r\n width=\"100%\"\r\n (onFocusOut)=\"onManualPlateFocusOut()\">\r\n </dx-text-box>\r\n <div class=\"mt-1\">\r\n <a href=\"javascript:void(0)\" class=\"small text-primary\" (click)=\"plateInputMode = 'lookup'\">\r\n <i class=\"fa fa-list me-1\"></i> {{ 'Kadooglu::SelectFromList' | abpLocalization }}\r\n </a>\r\n </div>\r\n </ng-container>\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">\r\n {{ 'Kadooglu::DorsePlate' | abpLocalization }}\r\n </label>\r\n <ng-container *ngIf=\"trailerPlateInputMode === 'lookup'\">\r\n <hit-lookup-select\r\n [loadFn]=\"loadTrailerPlates\"\r\n [columns]=\"plateColumns\"\r\n displayName=\"code\"\r\n keyExpr=\"code\"\r\n [editingData]=\"selectedTrailerPlateNo\"\r\n (selected)=\"onTrailerPlateSelected($event)\">\r\n </hit-lookup-select>\r\n <div class=\"mt-1\">\r\n <a href=\"javascript:void(0)\" class=\"small text-primary\" (click)=\"trailerPlateInputMode = 'manual'\">\r\n <i class=\"fa fa-keyboard me-1\"></i> {{ 'Kadooglu::ManualEntry' | abpLocalization }}\r\n </a>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"trailerPlateInputMode === 'manual'\">\r\n <dx-text-box\r\n [(value)]=\"manualTrailerPlateNo\"\r\n [placeholder]=\"'Kadooglu::EnterPlate' | abpLocalization\"\r\n width=\"100%\"\r\n (onFocusOut)=\"onManualTrailerPlateFocusOut()\">\r\n </dx-text-box>\r\n <div class=\"mt-1\">\r\n <a href=\"javascript:void(0)\" class=\"small text-primary\" (click)=\"trailerPlateInputMode = 'lookup'\">\r\n <i class=\"fa fa-list me-1\"></i> {{ 'Kadooglu::SelectFromList' | abpLocalization }}\r\n </a>\r\n </div>\r\n </ng-container>\r\n </div>\r\n </div>\r\n\r\n <!-- S\u00FCr\u00FCc\u00FC & Firma -->\r\n <div class=\"border rounded p-3 mb-2\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-id-card me-2\"></i>{{ 'Kadooglu::DriverAndCompany' | abpLocalization }}\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <div class=\"d-flex align-items-center gap-2 mb-1\">\r\n <label class=\"form-label mb-0 small fw-semibold text-muted\">\r\n {{ isTcCitizen ? ('Kadooglu::TcIdentityNo' | abpLocalization) : 'Kimlik No' }} <span class=\"text-danger\">*</span>\r\n </label>\r\n <dx-check-box [(value)]=\"isTcCitizen\" text=\"T.C. Vatanda\u015F\u0131\"></dx-check-box>\r\n </div>\r\n <ng-container *ngIf=\"!tcLookupMode\">\r\n <div class=\"d-flex gap-2\">\r\n <dx-text-box\r\n [(value)]=\"tcNo\"\r\n [placeholder]=\"isTcCitizen ? ('Kadooglu::TcIdentityNo' | abpLocalization) : 'Kimlik No'\"\r\n width=\"100%\">\r\n </dx-text-box>\r\n <button type=\"button\" class=\"btn btn-outline-primary btn-sm text-nowrap\"\r\n [disabled]=\"isTcQuerying\"\r\n (click)=\"queryCarrierByTcNo()\">\r\n <i class=\"fa fa-search me-1\"></i>\r\n {{ (isTcQuerying ? 'Kadooglu::Querying' : 'Kadooglu::Query') | abpLocalization }}\r\n </button>\r\n </div>\r\n <div class=\"mt-1\">\r\n <a href=\"javascript:void(0)\" class=\"small text-primary\" (click)=\"tcLookupMode = true\">\r\n <i class=\"fa fa-list me-1\"></i> {{ 'Kadooglu::SelectFromList' | abpLocalization }}\r\n </a>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngIf=\"tcLookupMode\">\r\n <hit-lookup-select\r\n [getFn]=\"carrierData\"\r\n [columns]=\"carrierColumns\"\r\n displayName=\"name\"\r\n [editingData]=\"selectedCarrierName\"\r\n (selected)=\"onCarrierLookupSelected($event)\">\r\n </hit-lookup-select>\r\n <div class=\"mt-1\">\r\n <a href=\"javascript:void(0)\" class=\"small text-primary\" (click)=\"tcLookupMode = false\">\r\n <i class=\"fa fa-keyboard me-1\"></i> {{ 'Kadooglu::QueryByTc' | abpLocalization }}\r\n </a>\r\n </div>\r\n </ng-container>\r\n </div>\r\n\r\n <!-- Mevcut s\u00FCr\u00FCc\u00FC: sadece ad\u0131 g\u00F6ster (readonly) -->\r\n <ng-container *ngIf=\"!isNewCarrier\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">\r\n {{ 'Kadooglu::DriverNameSurname' | abpLocalization }}\r\n </label>\r\n <dx-text-box\r\n [(value)]=\"selectedCarrierName\"\r\n [disabled]=\"true\"\r\n width=\"100%\">\r\n </dx-text-box>\r\n </div>\r\n </ng-container>\r\n\r\n <!-- Yeni s\u00FCr\u00FCc\u00FC: Ad, Soyad, Telefon alanlar\u0131n\u0131 g\u00F6ster -->\r\n <ng-container *ngIf=\"isNewCarrier\">\r\n <div class=\"row mb-3\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">\r\n {{ 'Kadooglu::FirstName' | abpLocalization }} <span class=\"text-danger\">*</span>\r\n </label>\r\n <dx-text-box\r\n [(value)]=\"newCarrierFirstname\"\r\n [placeholder]=\"'Kadooglu::FirstName' | abpLocalization\"\r\n width=\"100%\">\r\n </dx-text-box>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">\r\n {{ 'Kadooglu::LastName' | abpLocalization }} <span class=\"text-danger\">*</span>\r\n </label>\r\n <dx-text-box\r\n [(value)]=\"newCarrierLastname\"\r\n [placeholder]=\"'Kadooglu::LastName' | abpLocalization\"\r\n width=\"100%\">\r\n </dx-text-box>\r\n </div>\r\n </div>\r\n <div class=\"mb-3\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">\r\n {{ 'Kadooglu::Phone' | abpLocalization }}\r\n </label>\r\n <dx-text-box\r\n [(value)]=\"newCarrierTel\"\r\n [placeholder]=\"'Kadooglu::Phone' | abpLocalization\"\r\n width=\"100%\">\r\n </dx-text-box>\r\n </div>\r\n <div class=\"alert alert-info small py-1 mb-3\">\r\n <i class=\"fa fa-info-circle me-1\"></i>\r\n {{ 'Kadooglu::NewDriverAlert' | abpLocalization }}\r\n </div>\r\n </ng-container>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">\r\n {{ 'Kadooglu::BusinessPartner' | abpLocalization }}\r\n </label>\r\n <hit-lookup-select\r\n [getFn]=\"businessPartnerData\"\r\n [columns]=\"businessPartnerColumns\"\r\n displayName=\"cardName\"\r\n keyExpr=\"cardCode\"\r\n [editingData]=\"selectedBusinessPartnerName\"\r\n (selected)=\"onBusinessPartnerSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n </div>\r\n\r\n <!-- A\u00E7\u0131klama -->\r\n <div class=\"mb-3\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::Description' | abpLocalization }}</label>\r\n <dx-text-area\r\n [(value)]=\"description\"\r\n [height]=\"80\"\r\n width=\"100%\">\r\n </dx-text-area>\r\n </div>\r\n\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"cancel()\">\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button\r\n iconClass=\"fa fa-save\"\r\n buttonType=\"button\"\r\n [loading]=\"isLoading\"\r\n (click)=\"save()\">\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
684
+ }], ctorParameters: function () { return [{ type: i2$1.ConfirmationService }, { type: HitFactoryEntryService }, { type: HitCarrierPersonService }, { type: HitPlateService }, { type: HitVehicleTypeService }, { type: HitBusinessPartnerService }, { type: HitUserGateService }, { type: i1.LocalizationService }]; }, propDecorators: { visible: [{
685
+ type: Input
686
+ }], visibleChange: [{
687
+ type: Output
688
+ }], record: [{
689
+ type: Input
690
+ }], saved: [{
691
+ type: Output
692
+ }], cancelled: [{
693
+ type: Output
694
+ }] } });
695
+
696
+ class HitFactoryEntryListComponent {
697
+ constructor(confirmation, service, vehicleTypeService, localizationService) {
698
+ this.confirmation = confirmation;
699
+ this.service = service;
700
+ this.vehicleTypeService = vehicleTypeService;
701
+ this.localizationService = localizationService;
702
+ this.filteredData = [];
703
+ this.vehicleTypeMap = new Map();
704
+ this.showForm = false;
705
+ this.disabledIdColumn = false;
706
+ this.selectedRecord = null;
707
+ }
708
+ ngOnInit() {
709
+ this.vehicleTypeService.getList().subscribe(types => {
710
+ this.vehicleTypeMap = new Map(types.map(t => [t.code, t.name]));
711
+ });
712
+ this.loadList();
713
+ }
714
+ loadList() {
715
+ this.service.getList().subscribe(data => {
716
+ this.filteredData = data;
717
+ });
718
+ }
719
+ onToolbarPreparing(e) {
720
+ e.toolbarOptions.items.unshift({
721
+ location: 'after',
722
+ widget: 'dxButton',
723
+ options: {
724
+ icon: 'plus',
725
+ text: this.localizationService.instant('Kadooglu::NewRecord'),
726
+ type: 'default',
727
+ onClick: () => this.yeniKayit(),
728
+ },
729
+ });
730
+ }
731
+ yeniKayit() {
732
+ this.selectedRecord = null;
733
+ this.showForm = true;
734
+ }
735
+ duzenle(row) {
736
+ this.selectedRecord = Object.assign({}, row);
737
+ this.showForm = true;
738
+ }
739
+ sil(row) {
740
+ this.confirmation
741
+ .warn(`"${row.u_Plate}" plakalı kaydı silmek istediğinize emin misiniz?`, '', {
742
+ yesText: 'Evet',
743
+ cancelText: 'Hayır',
744
+ })
745
+ .subscribe(status => {
746
+ if (status === 'confirm') {
747
+ this.service.delete(row.docEntry.toString()).subscribe(() => this.loadList());
748
+ }
749
+ });
750
+ }
751
+ onFormSaved() {
752
+ this.showForm = false;
753
+ this.loadList();
754
+ }
755
+ onFormCancelled() {
756
+ this.showForm = false;
757
+ }
758
+ formatEntryDateTime(dateStr, timeNum) {
759
+ if (!dateStr)
760
+ return '';
761
+ // Tarihi yerel saat olarak parse et (UTC yorumunu önlemek için T00:00 eklenmeden)
762
+ const parts = dateStr.split('T')[0].split('-');
763
+ if (parts.length < 3)
764
+ return dateStr;
765
+ const d = new Date(+parts[0], +parts[1] - 1, +parts[2]);
766
+ if (isNaN(d.getTime()))
767
+ return dateStr;
768
+ if (timeNum != null) {
769
+ d.setHours(Math.floor(timeNum / 100), timeNum % 100, 0, 0);
770
+ }
771
+ const dd = String(d.getDate()).padStart(2, '0');
772
+ const mm = String(d.getMonth() + 1).padStart(2, '0');
773
+ const yyyy = d.getFullYear();
774
+ const hh = String(d.getHours()).padStart(2, '0');
775
+ const min = String(d.getMinutes()).padStart(2, '0');
776
+ return `${dd}.${mm}.${yyyy} ${hh}:${min}`;
777
+ }
778
+ formatPlate(plate) {
779
+ if (!plate)
780
+ return '';
781
+ const p = plate.replace(/\s+/g, '').toUpperCase();
782
+ const match = p.match(/^(\d{2})([A-ZÇĞİÖŞÜ]{1,3})(\d{1,4})$/);
783
+ return match ? `${match[1]} ${match[2]} ${match[3]}` : plate;
784
+ }
785
+ getVehicleTypeName(code) {
786
+ var _a;
787
+ if (!code)
788
+ return '';
789
+ return (_a = this.vehicleTypeMap.get(code)) !== null && _a !== void 0 ? _a : code;
790
+ }
791
+ }
792
+ HitFactoryEntryListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitFactoryEntryListComponent, deps: [{ token: i2$1.ConfirmationService }, { token: HitFactoryEntryService }, { token: HitVehicleTypeService }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
793
+ HitFactoryEntryListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: HitFactoryEntryListComponent, selector: "lib-hit-factory-entry-list", ngImport: i0, template: "<abp-page [breadcrumb]=\"false\">\r\n <abp-page-toolbar-container class=\"col\">\r\n <div class=\"row align-items-center\">\r\n <div class=\"col\">\r\n <h3 class=\"page-title\">{{ 'Kadooglu::FactoryEntryTitle' | abpLocalization }}</h3>\r\n </div>\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\r\n <!-- Grid -->\r\n <dx-data-grid\r\n [dataSource]=\"filteredData\"\r\n [columnAutoWidth]=\"true\"\r\n [showBorders]=\"true\"\r\n [showRowLines]=\"true\"\r\n [hoverStateEnabled]=\"true\"\r\n [allowColumnResizing]=\"true\"\r\n columnResizingMode=\"widget\"\r\n [rowAlternationEnabled]=\"true\"\r\n keyExpr=\"docEntry\"\r\n (onToolbarPreparing)=\"onToolbarPreparing($event)\"\r\n style=\"height: calc(100vh - 280px);\">\r\n\r\n <dxo-filter-row [visible]=\"true\"></dxo-filter-row>\r\n <dxo-header-filter [visible]=\"true\"></dxo-header-filter>\r\n <dxo-search-panel [visible]=\"true\" [width]=\"200\" [placeholder]=\"'Kadooglu::Ara' | abpLocalization\"></dxo-search-panel>\r\n\r\n <dxo-pager\r\n [visible]=\"true\"\r\n [showInfo]=\"true\"\r\n [allowedPageSizes]=\"[10, 20, 50]\"\r\n [showPageSizeSelector]=\"true\"\r\n [showNavigationButtons]=\"true\">\r\n </dxo-pager>\r\n <dxo-paging [pageSize]=\"10\"></dxo-paging>\r\n\r\n <dxi-column [fixed]=\"true\" dataField=\"docEntry\" width=\"120\" [allowGrouping]=\"false\" [allowFiltering]=\"false\"\r\n [allowHeaderFiltering]=\"false\" [allowHiding]=\"false\" [allowReordering]=\"false\"\r\n cellTemplate=\"operationTemplate\" caption=\"{{ 'AbpUi::Actions' | abpLocalization }}\">\r\n <div *dxTemplate=\"let row of 'operationTemplate'\">\r\n <div ngbDropdown container=\"body\" class=\"d-inline-block\">\r\n <button class=\"btn btn-primary btn-sm dropdown-toggle\" data-toggle=\"dropdown\"\r\n aria-haspopup=\"true\" ngbDropdownToggle [disabled]=\"disabledIdColumn\">\r\n <i class=\"fa fa-cog mr-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpUi::Actions' | abpLocalization }}\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"duzenle(row.data)\">\r\n <i class=\"fa fa-edit\" aria-hidden=\"true\"></i> {{ 'AbpUi::Edit' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </dxi-column>\r\n\r\n <dxi-column\r\n dataField=\"u_EntryDate\"\r\n caption=\"{{ 'Kadooglu::EntryDateTime' | abpLocalization }}\"\r\n cellTemplate=\"entryDateTemplate\">\r\n </dxi-column>\r\n\r\n <dxi-column dataField=\"u_EntryType\" caption=\"Ara\u00E7 Hareket T\u00FCr\u00FC\"\r\n cellTemplate=\"vehicleTypeTemplate\">\r\n </dxi-column>\r\n <dxi-column dataField=\"u_Plate\" caption=\"{{ 'Kadooglu::Plate' | abpLocalization }}\" cellTemplate=\"plateTemplate\"></dxi-column>\r\n <dxi-column dataField=\"u_DorsePlate\" caption=\"{{ 'Kadooglu::DorsePlate' | abpLocalization }}\" cellTemplate=\"dorsePlateTemplate\"></dxi-column>\r\n <dxi-column dataField=\"u_Driver\" caption=\"{{ 'Kadooglu::Driver' | abpLocalization }}\"></dxi-column>\r\n <dxi-column dataField=\"u_TcNo\" caption=\"{{ 'Kadooglu::TcIdentityNo' | abpLocalization }}\"></dxi-column>\r\n <dxi-column dataField=\"u_CardCode\" caption=\"{{ 'Kadooglu::BusinessPartner' | abpLocalization }}\"></dxi-column>\r\n\r\n <div *dxTemplate=\"let cell of 'vehicleTypeTemplate'\">\r\n {{ getVehicleTypeName(cell.data.u_EntryType) }}\r\n </div>\r\n\r\n <div *dxTemplate=\"let cell of 'entryDateTemplate'\">\r\n {{ formatEntryDateTime(cell.data.u_EntryDate, cell.data.u_EntryTime) }}\r\n </div>\r\n\r\n <div *dxTemplate=\"let cell of 'plateTemplate'\">\r\n <span *ngIf=\"cell.data.u_Plate\" class=\"tr-plate\">\r\n <span class=\"tr-plate-blue\">TR</span>\r\n <span class=\"tr-plate-text\">{{ formatPlate(cell.data.u_Plate) }}</span>\r\n </span>\r\n </div>\r\n\r\n <div *dxTemplate=\"let cell of 'dorsePlateTemplate'\">\r\n <span *ngIf=\"cell.data.u_DorsePlate\" class=\"tr-plate\">\r\n <span class=\"tr-plate-blue\">TR</span>\r\n <span class=\"tr-plate-text\">{{ formatPlate(cell.data.u_DorsePlate) }}</span>\r\n </span>\r\n </div>\r\n </dx-data-grid>\r\n\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<lib-hit-factory-entry-form\r\n [(visible)]=\"showForm\"\r\n [record]=\"selectedRecord\"\r\n (saved)=\"onFormSaved()\"\r\n (cancelled)=\"onFormCancelled()\">\r\n</lib-hit-factory-entry-form>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: i4.PageToolbarContainerComponent, selector: "abp-page-toolbar-container" }, { kind: "component", type: i5.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: i5$1.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: i5$1.DxoHeaderFilterComponent, selector: "dxo-header-filter", inputs: ["allowSearch", "dataSource", "groupInterval", "height", "searchMode", "width", "searchTimeout", "texts", "visible", "showRelevantValues"] }, { kind: "component", type: i5$1.DxoFilterRowComponent, selector: "dxo-filter-row", inputs: ["applyFilter", "applyFilterText", "betweenEndText", "betweenStartText", "operationDescriptions", "resetOperationText", "showAllText", "showOperationChooser", "visible"] }, { kind: "component", type: i5$1.DxoPagerComponent, selector: "dxo-pager", inputs: ["allowedPageSizes", "displayMode", "infoText", "label", "showInfo", "showNavigationButtons", "showPageSizeSelector", "visible"] }, { kind: "component", type: i5$1.DxoPagingComponent, selector: "dxo-paging", inputs: ["enabled", "pageIndex", "pageSize"], outputs: ["pageIndexChange", "pageSizeChange"] }, { kind: "component", type: i5$1.DxoSearchPanelComponent, selector: "dxo-search-panel", inputs: ["highlightCaseSensitive", "highlightSearchText", "placeholder", "searchVisibleColumnsOnly", "text", "visible", "width"], outputs: ["textChange"] }, { kind: "directive", type: i7.DxTemplateDirective, selector: "[dxTemplate]", inputs: ["dxTemplateOf"] }, { kind: "directive", type: i8.NgbDropdown, selector: "[ngbDropdown]", inputs: ["autoClose", "dropdownClass", "open", "placement", "container", "display"], outputs: ["openChange"], exportAs: ["ngbDropdown"] }, { kind: "directive", type: i8.NgbDropdownToggle, selector: "[ngbDropdownToggle]" }, { kind: "directive", type: i8.NgbDropdownMenu, selector: "[ngbDropdownMenu]" }, { kind: "directive", type: i8.NgbDropdownItem, selector: "[ngbDropdownItem]", inputs: ["disabled"] }, { kind: "component", type: HitFactoryEntryFormComponent, selector: "lib-hit-factory-entry-form", inputs: ["visible", "record"], outputs: ["visibleChange", "saved", "cancelled"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
794
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitFactoryEntryListComponent, decorators: [{
795
+ type: Component,
796
+ args: [{ selector: 'lib-hit-factory-entry-list', template: "<abp-page [breadcrumb]=\"false\">\r\n <abp-page-toolbar-container class=\"col\">\r\n <div class=\"row align-items-center\">\r\n <div class=\"col\">\r\n <h3 class=\"page-title\">{{ 'Kadooglu::FactoryEntryTitle' | abpLocalization }}</h3>\r\n </div>\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\r\n <!-- Grid -->\r\n <dx-data-grid\r\n [dataSource]=\"filteredData\"\r\n [columnAutoWidth]=\"true\"\r\n [showBorders]=\"true\"\r\n [showRowLines]=\"true\"\r\n [hoverStateEnabled]=\"true\"\r\n [allowColumnResizing]=\"true\"\r\n columnResizingMode=\"widget\"\r\n [rowAlternationEnabled]=\"true\"\r\n keyExpr=\"docEntry\"\r\n (onToolbarPreparing)=\"onToolbarPreparing($event)\"\r\n style=\"height: calc(100vh - 280px);\">\r\n\r\n <dxo-filter-row [visible]=\"true\"></dxo-filter-row>\r\n <dxo-header-filter [visible]=\"true\"></dxo-header-filter>\r\n <dxo-search-panel [visible]=\"true\" [width]=\"200\" [placeholder]=\"'Kadooglu::Ara' | abpLocalization\"></dxo-search-panel>\r\n\r\n <dxo-pager\r\n [visible]=\"true\"\r\n [showInfo]=\"true\"\r\n [allowedPageSizes]=\"[10, 20, 50]\"\r\n [showPageSizeSelector]=\"true\"\r\n [showNavigationButtons]=\"true\">\r\n </dxo-pager>\r\n <dxo-paging [pageSize]=\"10\"></dxo-paging>\r\n\r\n <dxi-column [fixed]=\"true\" dataField=\"docEntry\" width=\"120\" [allowGrouping]=\"false\" [allowFiltering]=\"false\"\r\n [allowHeaderFiltering]=\"false\" [allowHiding]=\"false\" [allowReordering]=\"false\"\r\n cellTemplate=\"operationTemplate\" caption=\"{{ 'AbpUi::Actions' | abpLocalization }}\">\r\n <div *dxTemplate=\"let row of 'operationTemplate'\">\r\n <div ngbDropdown container=\"body\" class=\"d-inline-block\">\r\n <button class=\"btn btn-primary btn-sm dropdown-toggle\" data-toggle=\"dropdown\"\r\n aria-haspopup=\"true\" ngbDropdownToggle [disabled]=\"disabledIdColumn\">\r\n <i class=\"fa fa-cog mr-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpUi::Actions' | abpLocalization }}\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"duzenle(row.data)\">\r\n <i class=\"fa fa-edit\" aria-hidden=\"true\"></i> {{ 'AbpUi::Edit' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </dxi-column>\r\n\r\n <dxi-column\r\n dataField=\"u_EntryDate\"\r\n caption=\"{{ 'Kadooglu::EntryDateTime' | abpLocalization }}\"\r\n cellTemplate=\"entryDateTemplate\">\r\n </dxi-column>\r\n\r\n <dxi-column dataField=\"u_EntryType\" caption=\"Ara\u00E7 Hareket T\u00FCr\u00FC\"\r\n cellTemplate=\"vehicleTypeTemplate\">\r\n </dxi-column>\r\n <dxi-column dataField=\"u_Plate\" caption=\"{{ 'Kadooglu::Plate' | abpLocalization }}\" cellTemplate=\"plateTemplate\"></dxi-column>\r\n <dxi-column dataField=\"u_DorsePlate\" caption=\"{{ 'Kadooglu::DorsePlate' | abpLocalization }}\" cellTemplate=\"dorsePlateTemplate\"></dxi-column>\r\n <dxi-column dataField=\"u_Driver\" caption=\"{{ 'Kadooglu::Driver' | abpLocalization }}\"></dxi-column>\r\n <dxi-column dataField=\"u_TcNo\" caption=\"{{ 'Kadooglu::TcIdentityNo' | abpLocalization }}\"></dxi-column>\r\n <dxi-column dataField=\"u_CardCode\" caption=\"{{ 'Kadooglu::BusinessPartner' | abpLocalization }}\"></dxi-column>\r\n\r\n <div *dxTemplate=\"let cell of 'vehicleTypeTemplate'\">\r\n {{ getVehicleTypeName(cell.data.u_EntryType) }}\r\n </div>\r\n\r\n <div *dxTemplate=\"let cell of 'entryDateTemplate'\">\r\n {{ formatEntryDateTime(cell.data.u_EntryDate, cell.data.u_EntryTime) }}\r\n </div>\r\n\r\n <div *dxTemplate=\"let cell of 'plateTemplate'\">\r\n <span *ngIf=\"cell.data.u_Plate\" class=\"tr-plate\">\r\n <span class=\"tr-plate-blue\">TR</span>\r\n <span class=\"tr-plate-text\">{{ formatPlate(cell.data.u_Plate) }}</span>\r\n </span>\r\n </div>\r\n\r\n <div *dxTemplate=\"let cell of 'dorsePlateTemplate'\">\r\n <span *ngIf=\"cell.data.u_DorsePlate\" class=\"tr-plate\">\r\n <span class=\"tr-plate-blue\">TR</span>\r\n <span class=\"tr-plate-text\">{{ formatPlate(cell.data.u_DorsePlate) }}</span>\r\n </span>\r\n </div>\r\n </dx-data-grid>\r\n\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<lib-hit-factory-entry-form\r\n [(visible)]=\"showForm\"\r\n [record]=\"selectedRecord\"\r\n (saved)=\"onFormSaved()\"\r\n (cancelled)=\"onFormCancelled()\">\r\n</lib-hit-factory-entry-form>\r\n" }]
797
+ }], ctorParameters: function () { return [{ type: i2$1.ConfirmationService }, { type: HitFactoryEntryService }, { type: HitVehicleTypeService }, { type: i1.LocalizationService }]; } });
798
+
799
+ const routes$8 = [
800
+ { path: '', component: HitFactoryEntryListComponent },
801
+ ];
802
+ class HitFactoryEntryRoutingModule {
803
+ }
804
+ HitFactoryEntryRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitFactoryEntryRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
805
+ HitFactoryEntryRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitFactoryEntryRoutingModule, imports: [i1$1.RouterModule], exports: [RouterModule] });
806
+ HitFactoryEntryRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitFactoryEntryRoutingModule, imports: [RouterModule.forChild(routes$8), RouterModule] });
807
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitFactoryEntryRoutingModule, decorators: [{
808
+ type: NgModule,
809
+ args: [{
810
+ imports: [RouterModule.forChild(routes$8)],
811
+ exports: [RouterModule],
812
+ }]
813
+ }] });
814
+
815
+ class HitUIModule {
816
+ }
817
+ HitUIModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitUIModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
818
+ HitUIModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitUIModule, declarations: [HitModalComponent], imports: [CoreModule,
819
+ ThemeSharedModule,
820
+ FormsModule,
821
+ DxDataGridModule,
822
+ DxTextBoxModule], exports: [HitModalComponent] });
823
+ HitUIModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitUIModule, imports: [CoreModule,
824
+ ThemeSharedModule,
825
+ FormsModule,
826
+ DxDataGridModule,
827
+ DxTextBoxModule] });
828
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitUIModule, decorators: [{
829
+ type: NgModule,
830
+ args: [{
831
+ declarations: [HitModalComponent],
832
+ imports: [
833
+ CoreModule,
834
+ ThemeSharedModule,
835
+ FormsModule,
836
+ DxDataGridModule,
837
+ DxTextBoxModule,
838
+ ],
839
+ exports: [HitModalComponent],
840
+ }]
841
+ }] });
842
+
843
+ class HitFactoryEntryModule {
844
+ }
845
+ HitFactoryEntryModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitFactoryEntryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
846
+ HitFactoryEntryModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitFactoryEntryModule, declarations: [HitFactoryEntryListComponent, HitFactoryEntryFormComponent], imports: [CommonModule,
847
+ FormsModule,
848
+ CoreModule,
849
+ ThemeSharedModule,
850
+ PageModule,
851
+ CommercialUiModule,
852
+ HitFactoryEntryRoutingModule,
853
+ HitUIModule,
854
+ DxDataGridModule,
855
+ DxDateBoxModule,
856
+ DxNumberBoxModule,
857
+ DxSelectBoxModule,
858
+ DxTextBoxModule,
859
+ DxTextAreaModule,
860
+ DxTagBoxModule,
861
+ DxButtonModule,
862
+ DxCheckBoxModule,
863
+ NgbDropdownModule] });
864
+ HitFactoryEntryModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitFactoryEntryModule, imports: [CommonModule,
865
+ FormsModule,
866
+ CoreModule,
867
+ ThemeSharedModule,
868
+ PageModule,
869
+ CommercialUiModule,
870
+ HitFactoryEntryRoutingModule,
871
+ HitUIModule,
872
+ DxDataGridModule,
873
+ DxDateBoxModule,
874
+ DxNumberBoxModule,
875
+ DxSelectBoxModule,
876
+ DxTextBoxModule,
877
+ DxTextAreaModule,
878
+ DxTagBoxModule,
879
+ DxButtonModule,
880
+ DxCheckBoxModule,
881
+ NgbDropdownModule] });
882
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitFactoryEntryModule, decorators: [{
883
+ type: NgModule,
884
+ args: [{
885
+ declarations: [HitFactoryEntryListComponent, HitFactoryEntryFormComponent],
886
+ imports: [
887
+ CommonModule,
888
+ FormsModule,
889
+ CoreModule,
890
+ ThemeSharedModule,
891
+ PageModule,
892
+ CommercialUiModule,
893
+ HitFactoryEntryRoutingModule,
894
+ HitUIModule,
895
+ DxDataGridModule,
896
+ DxDateBoxModule,
897
+ DxNumberBoxModule,
898
+ DxSelectBoxModule,
899
+ DxTextBoxModule,
900
+ DxTextAreaModule,
901
+ DxTagBoxModule,
902
+ DxButtonModule,
903
+ DxCheckBoxModule,
904
+ NgbDropdownModule,
905
+ ],
906
+ }]
907
+ }] });
908
+ function loadHitFactoryEntryModuleAsChild() {
909
+ return Promise.resolve(HitFactoryEntryModule);
910
+ }
911
+
912
+ class HitScaleService {
913
+ constructor(restService) {
914
+ this.restService = restService;
915
+ this.apiName = 'Kadooglu';
916
+ this.baseUrl = '/api/entegration-service/scales';
917
+ }
918
+ getList(params) {
919
+ return this.restService.request({ method: 'GET', url: this.baseUrl, params }, { apiName: this.apiName }).pipe(map$1(response => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.items) !== null && _a !== void 0 ? _a : []; }));
920
+ }
921
+ get(code) {
922
+ return this.restService.request({ method: 'GET', url: `${this.baseUrl}/${code}` }, { apiName: this.apiName }).pipe(map$1(r => r === null || r === void 0 ? void 0 : r.items));
923
+ }
924
+ create(body) {
925
+ return this.restService.request({ method: 'POST', url: this.baseUrl, body }, { apiName: this.apiName }).pipe(map$1(r => r === null || r === void 0 ? void 0 : r.items));
926
+ }
927
+ update(code, body) {
928
+ return this.restService.request({ method: 'PATCH', url: `${this.baseUrl}/${code}`, body }, { apiName: this.apiName }).pipe(map$1(r => r === null || r === void 0 ? void 0 : r.items));
929
+ }
930
+ delete(code) {
931
+ return this.restService.request({ method: 'DELETE', url: `${this.baseUrl}/${code}` }, { apiName: this.apiName });
932
+ }
933
+ }
934
+ HitScaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitScaleService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
935
+ HitScaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitScaleService, providedIn: 'root' });
936
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitScaleService, decorators: [{
937
+ type: Injectable,
938
+ args: [{ providedIn: 'root' }]
939
+ }], ctorParameters: function () { return [{ type: i1.RestService }]; } });
940
+
941
+ class HitItemService {
942
+ constructor(restService) {
943
+ this.restService = restService;
944
+ this.apiName = 'Kadooglu';
945
+ this.baseUrl = '/api/entegration-service/items';
946
+ }
947
+ getList(params) {
948
+ const defaultParams = Object.assign({ maxResultCount: 1000 }, params);
949
+ return this.restService.request({ method: 'GET', url: this.baseUrl, params: defaultParams }, { apiName: this.apiName }).pipe(map$1(response => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.items) !== null && _a !== void 0 ? _a : []; }));
950
+ }
951
+ }
952
+ HitItemService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitItemService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
953
+ HitItemService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitItemService, providedIn: 'root' });
954
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitItemService, decorators: [{
955
+ type: Injectable,
956
+ args: [{ providedIn: 'root' }]
957
+ }], ctorParameters: function () { return [{ type: i1.RestService }]; } });
958
+
959
+ class HitPurchaseDeliveryNoteService {
960
+ constructor(restService) {
961
+ this.restService = restService;
962
+ this.apiName = 'Kadooglu';
963
+ this.baseUrl = '/api/entegration-service/purchase-delivery-notes';
964
+ }
965
+ getList(params) {
966
+ const defaultParams = Object.assign({ maxResultCount: 1000 }, params);
967
+ return this.restService.request({ method: 'GET', url: this.baseUrl, params: defaultParams }, { apiName: this.apiName }).pipe(map$1(response => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.items) !== null && _a !== void 0 ? _a : []; }));
968
+ }
969
+ }
970
+ HitPurchaseDeliveryNoteService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitPurchaseDeliveryNoteService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
971
+ HitPurchaseDeliveryNoteService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitPurchaseDeliveryNoteService, providedIn: 'root' });
972
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitPurchaseDeliveryNoteService, decorators: [{
973
+ type: Injectable,
974
+ args: [{ providedIn: 'root' }]
975
+ }], ctorParameters: function () { return [{ type: i1.RestService }]; } });
976
+
977
+ class HitStockTransferService {
978
+ constructor(restService) {
979
+ this.restService = restService;
980
+ this.apiName = 'Kadooglu';
981
+ this.baseUrl = '/api/entegration-service/stock-transfers';
982
+ }
983
+ getList(params) {
984
+ const defaultParams = Object.assign({ maxResultCount: 1000 }, params);
985
+ return this.restService.request({ method: 'GET', url: this.baseUrl, params: defaultParams }, { apiName: this.apiName }).pipe(map$1(response => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.items) !== null && _a !== void 0 ? _a : []; }));
986
+ }
987
+ }
988
+ HitStockTransferService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitStockTransferService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
989
+ HitStockTransferService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitStockTransferService, providedIn: 'root' });
990
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitStockTransferService, decorators: [{
991
+ type: Injectable,
992
+ args: [{ providedIn: 'root' }]
993
+ }], ctorParameters: function () { return [{ type: i1.RestService }]; } });
994
+
995
+ class HitGateService {
996
+ constructor(restService) {
997
+ this.restService = restService;
998
+ this.apiName = 'Kadooglu';
999
+ this.baseUrl = '/api/entegration-service/gates';
1000
+ }
1001
+ getList(params) {
1002
+ return this.restService.request({ method: 'GET', url: this.baseUrl, params }, { apiName: this.apiName }).pipe(map$1(response => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.items) !== null && _a !== void 0 ? _a : []; }));
1003
+ }
1004
+ get(code) {
1005
+ return this.restService.request({ method: 'GET', url: `${this.baseUrl}/${code}` }, { apiName: this.apiName }).pipe(map$1(r => r === null || r === void 0 ? void 0 : r.items));
1006
+ }
1007
+ create(body) {
1008
+ return this.restService.request({ method: 'POST', url: this.baseUrl, body }, { apiName: this.apiName }).pipe(map$1(r => r === null || r === void 0 ? void 0 : r.items));
1009
+ }
1010
+ update(code, body) {
1011
+ return this.restService.request({ method: 'PATCH', url: `${this.baseUrl}/${code}`, body }, { apiName: this.apiName }).pipe(map$1(r => r === null || r === void 0 ? void 0 : r.items));
1012
+ }
1013
+ delete(code) {
1014
+ return this.restService.request({ method: 'DELETE', url: `${this.baseUrl}/${code}` }, { apiName: this.apiName });
1015
+ }
1016
+ }
1017
+ HitGateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitGateService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
1018
+ HitGateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitGateService, providedIn: 'root' });
1019
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitGateService, decorators: [{
1020
+ type: Injectable,
1021
+ args: [{ providedIn: 'root' }]
1022
+ }], ctorParameters: function () { return [{ type: i1.RestService }]; } });
1023
+
1024
+ class HitEntryWeighingService {
1025
+ constructor(restService, scaleService, plateService, carrierPersonService, businessPartnerService, itemService, purchaseDeliveryNoteService, stockTransferService, gateService, vehicleTypeService) {
1026
+ this.restService = restService;
1027
+ this.scaleService = scaleService;
1028
+ this.plateService = plateService;
1029
+ this.carrierPersonService = carrierPersonService;
1030
+ this.businessPartnerService = businessPartnerService;
1031
+ this.itemService = itemService;
1032
+ this.purchaseDeliveryNoteService = purchaseDeliveryNoteService;
1033
+ this.stockTransferService = stockTransferService;
1034
+ this.gateService = gateService;
1035
+ this.vehicleTypeService = vehicleTypeService;
1036
+ this.apiName = 'Kadooglu';
1037
+ this.baseUrl = '/api/entegration-service/entry-weighings';
1038
+ }
1039
+ getList(params) {
1040
+ const defaultParams = Object.assign({ maxResultCount: 50 }, params);
1041
+ return this.restService.request({ method: 'GET', url: this.baseUrl, params: defaultParams }, { apiName: this.apiName }).pipe(map$1(response => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.items) !== null && _a !== void 0 ? _a : []; }));
1042
+ }
1043
+ get(docEntry) {
1044
+ return this.restService.request({ method: 'GET', url: `${this.baseUrl}/${docEntry}` }, { apiName: this.apiName }).pipe(map$1(response => response === null || response === void 0 ? void 0 : response.items));
1045
+ }
1046
+ create(body) {
1047
+ return this.restService.request({ method: 'POST', url: this.baseUrl, body }, { apiName: this.apiName }).pipe(map$1(response => response === null || response === void 0 ? void 0 : response.items));
1048
+ }
1049
+ update(docEntry, body) {
1050
+ return this.restService.request({ method: 'PATCH', url: `${this.baseUrl}/${docEntry}`, body }, { apiName: this.apiName }).pipe(map$1(response => response === null || response === void 0 ? void 0 : response.items));
1051
+ }
1052
+ delete(docEntry) {
1053
+ return this.restService.request({ method: 'DELETE', url: `${this.baseUrl}/${docEntry}` }, { apiName: this.apiName });
1054
+ }
1055
+ doWeighing(docEntry, body) {
1056
+ return this.restService.request({ method: 'POST', url: `${this.baseUrl}/${docEntry}/do-weighing`, body }, { apiName: this.apiName }).pipe(map$1(response => response === null || response === void 0 ? void 0 : response.items));
1057
+ }
1058
+ // --- Lookup methods ---
1059
+ getDocuments() {
1060
+ return this.purchaseDeliveryNoteService.getList().pipe(map$1(notes => notes.map(n => { var _a; return ({ code: n.docNum.toString(), name: (_a = n.cardName) !== null && _a !== void 0 ? _a : '' }); })));
1061
+ }
1062
+ getScales() {
1063
+ return this.scaleService.getList().pipe(map$1(scales => scales.map(s => ({ code: s.code, name: s.name }))));
1064
+ }
1065
+ getTruckPlates() {
1066
+ return this.plateService.getList().pipe(map$1(plates => plates
1067
+ .filter(p => p.u_IsTrailer === 'N' || !p.u_IsTrailer)
1068
+ .map(p => ({ code: p.code, plateNo: p.code }))));
1069
+ }
1070
+ getTrailerPlates() {
1071
+ return this.plateService.getList().pipe(map$1(plates => plates
1072
+ .filter(p => p.u_IsTrailer === 'Y')
1073
+ .map(p => ({ code: p.code, plateNo: p.code }))));
1074
+ }
1075
+ getDrivers() {
1076
+ return this.carrierPersonService.getList().pipe(map$1(persons => persons
1077
+ .filter(p => p.u_Active === 'Y')
1078
+ .map(p => { var _a, _b; return ({ code: p.code, name: `${(_a = p.u_Firstname) !== null && _a !== void 0 ? _a : ''} ${(_b = p.u_Lastname) !== null && _b !== void 0 ? _b : ''}`.trim() }); })));
1079
+ }
1080
+ getAccounts() {
1081
+ return this.businessPartnerService.getList().pipe(map$1(partners => partners.map(p => ({ code: p.cardCode, title: p.cardName }))));
1082
+ }
1083
+ getStockItems() {
1084
+ return this.itemService.getList().pipe(map$1(items => items.map(i => ({ code: i.itemCode, name: i.itemName }))));
1085
+ }
1086
+ getGates() {
1087
+ return this.gateService.getList().pipe(map$1(gates => gates.map(g => ({ code: g.code, name: g.name }))));
1088
+ }
1089
+ getVehicleTypes() {
1090
+ return this.vehicleTypeService.getList().pipe(map$1(types => types.map(t => ({
1091
+ code: t.code, name: t.name,
1092
+ u_TrtmYpilck: t.u_TrtmYpilck, u_MalGC: t.u_MalGC
1093
+ }))));
1094
+ }
1095
+ doGoodsMovement(docEntry) {
1096
+ return this.restService.request({ method: 'POST', url: `${this.baseUrl}/${docEntry}/do-goods-movement` }, { apiName: this.apiName }).pipe(map$1(r => r === null || r === void 0 ? void 0 : r.items));
1097
+ }
1098
+ }
1099
+ HitEntryWeighingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitEntryWeighingService, deps: [{ token: i1.RestService }, { token: HitScaleService }, { token: HitPlateService }, { token: HitCarrierPersonService }, { token: HitBusinessPartnerService }, { token: HitItemService }, { token: HitPurchaseDeliveryNoteService }, { token: HitStockTransferService }, { token: HitGateService }, { token: HitVehicleTypeService }], target: i0.ɵɵFactoryTarget.Injectable });
1100
+ HitEntryWeighingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitEntryWeighingService, providedIn: 'root' });
1101
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitEntryWeighingService, decorators: [{
1102
+ type: Injectable,
1103
+ args: [{ providedIn: 'root' }]
1104
+ }], ctorParameters: function () { return [{ type: i1.RestService }, { type: HitScaleService }, { type: HitPlateService }, { type: HitCarrierPersonService }, { type: HitBusinessPartnerService }, { type: HitItemService }, { type: HitPurchaseDeliveryNoteService }, { type: HitStockTransferService }, { type: HitGateService }, { type: HitVehicleTypeService }]; } });
1105
+
1106
+ class HitEntryWeighingListComponent {
1107
+ constructor(service, confirmation, router, localizationService, gateService) {
1108
+ this.service = service;
1109
+ this.confirmation = confirmation;
1110
+ this.router = router;
1111
+ this.localizationService = localizationService;
1112
+ this.gateService = gateService;
1113
+ this.allData = [];
1114
+ this.filteredData = [];
1115
+ this.vehicleTypeList = [];
1116
+ this.gateList = [];
1117
+ this.malGcTypes = new Set();
1118
+ this.weighingTypes = new Set();
1119
+ this.disabledIdColumn = false;
1120
+ this.filterMode = 'pending';
1121
+ }
1122
+ ngOnInit() {
1123
+ this.gateService.getList().subscribe(gates => (this.gateList = gates));
1124
+ this.service.getVehicleTypes().subscribe(types => {
1125
+ this.vehicleTypeList = types;
1126
+ this.malGcTypes = new Set(types.filter(t => t.u_MalGC === 'Y').map(t => t.code));
1127
+ this.weighingTypes = new Set(types.filter(t => t.u_TrtmYpilck === 'Y').map(t => t.code));
1128
+ this.loadList();
1129
+ });
1130
+ }
1131
+ loadList() {
1132
+ this.service.getList().subscribe(data => {
1133
+ this.allData = data.filter(x => this.weighingTypes.has(x.u_EntryType));
1134
+ this.applyFilter();
1135
+ });
1136
+ }
1137
+ setFilter(mode) {
1138
+ var _a, _b;
1139
+ this.filterMode = mode;
1140
+ this.applyFilter();
1141
+ (_b = (_a = this.dataGrid) === null || _a === void 0 ? void 0 : _a.instance) === null || _b === void 0 ? void 0 : _b.repaint();
1142
+ }
1143
+ onToolbarPreparing(e) {
1144
+ const allText = this.localizationService.instant('Kadooglu::AllWeighings');
1145
+ const pendingText = this.localizationService.instant('Kadooglu::PendingWeighings');
1146
+ const newRecordText = this.localizationService.instant('Kadooglu::NewRecord');
1147
+ e.toolbarOptions.items.unshift({
1148
+ location: 'after',
1149
+ widget: 'dxButton',
1150
+ options: {
1151
+ icon: 'plus',
1152
+ text: newRecordText,
1153
+ type: 'default',
1154
+ onClick: () => this.yeniKayit(),
1155
+ },
1156
+ }, {
1157
+ location: 'before',
1158
+ widget: 'dxButton',
1159
+ options: {
1160
+ text: allText,
1161
+ type: this.filterMode === 'all' ? 'success' : 'normal',
1162
+ stylingMode: this.filterMode === 'all' ? 'contained' : 'outlined',
1163
+ onClick: () => this.setFilter('all'),
1164
+ },
1165
+ }, {
1166
+ location: 'before',
1167
+ widget: 'dxButton',
1168
+ options: {
1169
+ text: pendingText,
1170
+ type: this.filterMode === 'pending' ? 'success' : 'normal',
1171
+ stylingMode: this.filterMode === 'pending' ? 'contained' : 'outlined',
1172
+ onClick: () => this.setFilter('pending'),
1173
+ },
1174
+ });
1175
+ }
1176
+ applyFilter() {
1177
+ if (this.filterMode === 'pending') {
1178
+ this.filteredData = this.allData.filter(x => {
1179
+ var _a;
1180
+ if (x.u_Status === '4')
1181
+ return false;
1182
+ if (x.u_Status === '2' && this.malGcTypes.has(x.u_EntryType))
1183
+ return true;
1184
+ return !((_a = x.u_LastWeighing) !== null && _a !== void 0 ? _a : x.u_LastWeighing);
1185
+ });
1186
+ }
1187
+ else {
1188
+ this.filteredData = [...this.allData];
1189
+ }
1190
+ }
1191
+ isMalGC(entryType) {
1192
+ var _a, _b;
1193
+ return (_b = (_a = this.malGcTypes) === null || _a === void 0 ? void 0 : _a.has(entryType)) !== null && _b !== void 0 ? _b : false;
1194
+ }
1195
+ yeniKayit() {
1196
+ this.router.navigate(['/kadooglu/entry-weighing/new']);
1197
+ }
1198
+ duzenle(row) {
1199
+ var _a;
1200
+ this.router.navigate(['/kadooglu/entry-weighing', (_a = row.docEntry) !== null && _a !== void 0 ? _a : row.docEntry], {
1201
+ state: { rowData: row }
1202
+ });
1203
+ }
1204
+ tartimYap(row, mode) {
1205
+ var _a;
1206
+ this.router.navigate(['/kadooglu/entry-weighing', (_a = row.docEntry) !== null && _a !== void 0 ? _a : row.docEntry], {
1207
+ queryParams: { mode },
1208
+ state: { rowData: row }
1209
+ });
1210
+ }
1211
+ sil(row) {
1212
+ var _a;
1213
+ const docEntry = (_a = row.docEntry) !== null && _a !== void 0 ? _a : row.docEntry;
1214
+ this.confirmation
1215
+ .warn(`"${row.u_Plate || row.u_Plate || row.docNum || row.docNum}" kaydı silmek istediğinize emin misiniz?`, ``, {
1216
+ yesText: 'Evet',
1217
+ cancelText: 'Hayır',
1218
+ })
1219
+ .subscribe(status => {
1220
+ if (status === 'confirm') {
1221
+ this.service.delete(docEntry).subscribe(() => this.loadList());
1222
+ }
1223
+ });
1224
+ }
1225
+ formatPlate(plate) {
1226
+ if (!plate)
1227
+ return '';
1228
+ const p = plate.replace(/\s+/g, '').toUpperCase();
1229
+ const match = p.match(/^(\d{2})([A-ZÇĞİÖŞÜ]{1,3})(\d{1,4})$/);
1230
+ return match ? `${match[1]} ${match[2]} ${match[3]}` : plate;
1231
+ }
1232
+ formatEntryDateTime(dateStr, timeStr) {
1233
+ if (!dateStr)
1234
+ return '';
1235
+ const parts = dateStr.split('T')[0].split('-');
1236
+ if (parts.length < 3)
1237
+ return dateStr;
1238
+ const d = new Date(+parts[0], +parts[1] - 1, +parts[2]);
1239
+ if (isNaN(d.getTime()))
1240
+ return dateStr;
1241
+ const dd = String(d.getDate()).padStart(2, '0');
1242
+ const mm = String(d.getMonth() + 1).padStart(2, '0');
1243
+ const yyyy = d.getFullYear();
1244
+ const time = this.formatTime(timeStr);
1245
+ return time ? `${dd}.${mm}.${yyyy} ${time}` : `${dd}.${mm}.${yyyy}`;
1246
+ }
1247
+ formatTime(time) {
1248
+ if (!time)
1249
+ return '';
1250
+ const t = time.replace(/[^0-9]/g, '');
1251
+ if (t.length === 4)
1252
+ return t.substring(0, 2) + ':' + t.substring(2);
1253
+ if (t.length === 3)
1254
+ return '0' + t.substring(0, 1) + ':' + t.substring(1);
1255
+ return time;
1256
+ }
1257
+ getStatusLabel(status) {
1258
+ switch (status) {
1259
+ case '0': return this.localizationService.instant('Kadooglu::StatusEntered');
1260
+ case '1': return this.localizationService.instant('Kadooglu::StatusFirstWeighingDone');
1261
+ case '2': return this.localizationService.instant('Kadooglu::StatusLastWeighingDone');
1262
+ case '3': return this.localizationService.instant('Kadooglu::StatusExited');
1263
+ case '4': return this.localizationService.instant('Kadooglu::StatusGoodsMovementDone');
1264
+ default: return this.localizationService.instant('Kadooglu::StatusUnknown');
1265
+ }
1266
+ }
1267
+ getStatusClass(status) {
1268
+ switch (status) {
1269
+ case '0': return 'badge rounded-pill bg-secondary fs-6 fw-normal';
1270
+ case '1': return 'badge rounded-pill bg-info fs-6 fw-normal';
1271
+ case '2': return 'badge rounded-pill bg-success fs-6 fw-normal';
1272
+ case '3': return 'badge rounded-pill bg-success fs-6 fw-normal';
1273
+ case '4': return 'badge rounded-pill bg-success fs-6 fw-normal';
1274
+ default: return 'badge rounded-pill bg-secondary fs-6 fw-normal';
1275
+ }
1276
+ }
1277
+ malGcYap(row) {
1278
+ var _a;
1279
+ const docEntry = (_a = row.docEntry) !== null && _a !== void 0 ? _a : row.docEntry;
1280
+ this.confirmation
1281
+ .warn(this.localizationService.instant('Kadooglu::MalGcConfirmMessage', String(row.u_Plate || row.docNum)), '', {
1282
+ yesText: this.localizationService.instant('Kadooglu::Yes'),
1283
+ cancelText: this.localizationService.instant('Kadooglu::No'),
1284
+ })
1285
+ .subscribe(status => {
1286
+ if (status === 'confirm') {
1287
+ this.service.doGoodsMovement(docEntry).subscribe(() => this.loadList());
1288
+ }
1289
+ });
1290
+ }
1291
+ }
1292
+ HitEntryWeighingListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitEntryWeighingListComponent, deps: [{ token: HitEntryWeighingService }, { token: i2$1.ConfirmationService }, { token: i1$1.Router }, { token: i1.LocalizationService }, { token: HitGateService }], target: i0.ɵɵFactoryTarget.Component });
1293
+ HitEntryWeighingListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: HitEntryWeighingListComponent, selector: "lib-hit-entry-weighing-list", viewQueries: [{ propertyName: "dataGrid", first: true, predicate: ["dataGrid"], descendants: true }], ngImport: i0, template: "<abp-page [breadcrumb]=\"false\">\r\n <abp-page-toolbar-container class=\"col\">\r\n <div class=\"row align-items-center\">\r\n <div class=\"col\">\r\n <h3 class=\"page-title\">{{ 'Kadooglu::EntryWeighingTitle' | abpLocalization }}</h3>\r\n </div>\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\r\n #dataGrid\r\n [dataSource]=\"filteredData\"\r\n [columnAutoWidth]=\"true\"\r\n [showBorders]=\"true\"\r\n [showRowLines]=\"true\"\r\n [hoverStateEnabled]=\"true\"\r\n [allowColumnResizing]=\"true\"\r\n columnResizingMode=\"widget\"\r\n [rowAlternationEnabled]=\"true\"\r\n keyExpr=\"docEntry\"\r\n (onToolbarPreparing)=\"onToolbarPreparing($event)\"\r\n style=\"height: calc(100vh - 280px);\">\r\n\r\n <dxo-filter-row [visible]=\"true\"></dxo-filter-row>\r\n <dxo-header-filter [visible]=\"true\"></dxo-header-filter>\r\n <dxo-search-panel [visible]=\"true\" [width]=\"200\" [placeholder]=\"'Kadooglu::Ara' | abpLocalization\"></dxo-search-panel>\r\n\r\n <dxo-pager\r\n [visible]=\"true\"\r\n [showInfo]=\"true\"\r\n [allowedPageSizes]=\"[10, 20, 50]\"\r\n [showPageSizeSelector]=\"true\"\r\n [showNavigationButtons]=\"true\">\r\n </dxo-pager>\r\n <dxo-paging [pageSize]=\"10\"></dxo-paging>\r\n <dxi-column [fixed]=\"true\" dataField=\"docEntry\" [allowGrouping]=\"false\" [allowFiltering]=\"false\"\r\n [allowHeaderFiltering]=\"false\" [allowHiding]=\"false\" [allowReordering]=\"false\"\r\n alignment=\"center\"\r\n cellTemplate=\"operationTemplate\" caption=\"{{ 'AbpUi::Actions' | abpLocalization }}\">\r\n <div *dxTemplate=\"let row of 'operationTemplate'\" style=\"text-align:center\">\r\n <!-- Devam eden tart\u0131m: i\u015Flemler dropdown (status '0' ve '1') -->\r\n <div ngbDropdown container=\"body\" class=\"d-inline-block\">\r\n <button class=\"btn btn-primary btn-sm dropdown-toggle\" style=\"min-width: 110px;\" data-toggle=\"dropdown\"\r\n aria-haspopup=\"true\" ngbDropdownToggle [disabled]=\"disabledIdColumn\">\r\n <i class=\"fa fa-cog mr-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpUi::Actions' | abpLocalization }}\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem *ngIf=\"row.data.u_Status === '0'\" (click)=\"tartimYap(row.data, 'first')\">\r\n <i class=\"fa fa-balance-scale\" aria-hidden=\"true\"></i> {{ 'Kadooglu::PerformFirstWeighing' | abpLocalization }}\r\n </button>\r\n <button ngbDropdownItem *ngIf=\"row.data.u_Status === '1'\" (click)=\"tartimYap(row.data, 'last')\">\r\n <i class=\"fa fa-balance-scale\" aria-hidden=\"true\"></i> {{ 'Kadooglu::PerformLastWeighing' | abpLocalization }}\r\n </button>\r\n <button ngbDropdownItem *ngIf=\"row.data.u_Status === '2' && isMalGC(row.data.u_EntryType)\" (click)=\"malGcYap(row.data)\">\r\n <i class=\"fa fa-exchange\" aria-hidden=\"true\"></i> {{ 'Kadooglu::MalGcYap' | abpLocalization }}\r\n </button>\r\n <button ngbDropdownItem *ngIf=\"row.data.u_Status === '0'\" (click)=\"duzenle(row.data)\">\r\n <i class=\"fa fa-edit\" aria-hidden=\"true\"></i> {{ 'AbpUi::Edit' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </dxi-column>\r\n\r\n <dxi-column\r\n dataField=\"u_Status\"\r\n caption=\"{{ 'Kadooglu::Status' | abpLocalization }}\"\r\n [fixed]=\"true\"\r\n alignment=\"center\"\r\n cellTemplate=\"statusTemplate\"\r\n [allowFiltering]=\"false\">\r\n </dxi-column>\r\n\r\n <dxi-column dataField=\"docNum\" caption=\"{{ 'Kadooglu::DocumentNo' | abpLocalization }}\" width=\"100\"></dxi-column>\r\n\r\n <dxi-column dataField=\"u_GateCode\" caption=\"{{ 'Kadooglu::Gate' | abpLocalization }}\">\r\n <dxo-lookup [dataSource]=\"gateList\" valueExpr=\"code\" displayExpr=\"name\"></dxo-lookup>\r\n </dxi-column>\r\n\r\n <dxi-column\r\n dataField=\"u_EntryDate\"\r\n caption=\"{{ 'Kadooglu::EntryDateTime' | abpLocalization }}\"\r\n cellTemplate=\"entryDateTimeTemplate\"\r\n [allowFiltering]=\"true\">\r\n </dxi-column>\r\n\r\n <dxi-column dataField=\"u_EntryType\" caption=\"Ara\u00E7 Hareket T\u00FCr\u00FC\">\r\n <dxo-lookup [dataSource]=\"vehicleTypeList\" valueExpr=\"code\" displayExpr=\"name\"></dxo-lookup>\r\n </dxi-column>\r\n <dxi-column dataField=\"u_Plate\" caption=\"{{ 'Kadooglu::TruckPlate' | abpLocalization }}\" cellTemplate=\"plateTemplate\"></dxi-column>\r\n <dxi-column dataField=\"u_DorsePlate\" caption=\"{{ 'Kadooglu::DorsePlate' | abpLocalization }}\" cellTemplate=\"dorsePlateTemplate\"></dxi-column>\r\n <dxi-column dataField=\"u_Driver\" caption=\"{{ 'Kadooglu::DriverName' | abpLocalization }}\"></dxi-column>\r\n <dxi-column dataField=\"u_DriverCode\" caption=\"{{ 'Kadooglu::DriverCode' | abpLocalization }}\"></dxi-column>\r\n <dxi-column dataField=\"u_TcNo\" caption=\"{{ 'Kadooglu::TcIdentityNo' | abpLocalization }}\"></dxi-column>\r\n <dxi-column dataField=\"u_CardCode\" caption=\"{{ 'Kadooglu::CardCode' | abpLocalization }}\"></dxi-column>\r\n <dxi-column dataField=\"u_ItemCode\" caption=\"{{ 'Kadooglu::ItemCode' | abpLocalization }}\"></dxi-column>\r\n <dxi-column dataField=\"u_DespatchAdviceNo\" caption=\"{{ 'Kadooglu::DespatchAdviceNo' | abpLocalization }}\"></dxi-column>\r\n <dxi-column dataField=\"u_ScaleCode\" caption=\"{{ 'Kadooglu::ScaleCode' | abpLocalization }}\"></dxi-column>\r\n\r\n <dxi-column\r\n dataField=\"u_FirstWeighing\"\r\n caption=\"{{ 'Kadooglu::FirstWeighingKg' | abpLocalization }}\"\r\n dataType=\"number\"\r\n [format]=\"{ type: 'fixedPoint', precision: 0 }\">\r\n </dxi-column>\r\n\r\n <dxi-column\r\n dataField=\"u_LastWeighing\"\r\n caption=\"{{ 'Kadooglu::LastWeighingKg' | abpLocalization }}\"\r\n dataType=\"number\"\r\n [format]=\"{ type: 'fixedPoint', precision: 0 }\">\r\n </dxi-column>\r\n\r\n <dxi-column\r\n dataField=\"u_Net\"\r\n caption=\"{{ 'Kadooglu::NetKg' | abpLocalization }}\"\r\n dataType=\"number\"\r\n [format]=\"{ type: 'fixedPoint', precision: 0 }\">\r\n </dxi-column>\r\n\r\n <dxi-column\r\n dataField=\"u_ExitDate\"\r\n caption=\"{{ 'Kadooglu::ExitDate' | abpLocalization }}\"\r\n cellTemplate=\"exitDateTimeTemplate\"\r\n [allowFiltering]=\"true\">\r\n </dxi-column>\r\n <dxi-column dataField=\"u_Description\" caption=\"{{ 'Kadooglu::Description' | abpLocalization }}\"></dxi-column>\r\n\r\n <div *dxTemplate=\"let cell of 'plateTemplate'\">\r\n <span *ngIf=\"cell.data.u_Plate\" class=\"tr-plate\">\r\n <span class=\"tr-plate-blue\">TR</span>\r\n <span class=\"tr-plate-text\">{{ formatPlate(cell.data.u_Plate) }}</span>\r\n </span>\r\n </div>\r\n\r\n <div *dxTemplate=\"let cell of 'dorsePlateTemplate'\">\r\n <span *ngIf=\"cell.data.u_DorsePlate\" class=\"tr-plate\">\r\n <span class=\"tr-plate-blue\">TR</span>\r\n <span class=\"tr-plate-text\">{{ formatPlate(cell.data.u_DorsePlate) }}</span>\r\n </span>\r\n </div>\r\n\r\n <div *dxTemplate=\"let cell of 'entryDateTimeTemplate'\">\r\n {{ formatEntryDateTime(cell.data.u_EntryDate, cell.data.u_EntryTime) }}\r\n </div>\r\n\r\n <div *dxTemplate=\"let cell of 'exitDateTimeTemplate'\">\r\n <span *ngIf=\"cell.data.u_ExitDate\">\r\n {{ cell.data.u_ExitDate | date:'dd.MM.yyyy' }}\r\n <span *ngIf=\"cell.data.u_ExitTime\" class=\"text-muted ms-1\">{{ formatTime(cell.data.u_ExitTime) }}</span>\r\n </span>\r\n </div>\r\n\r\n <div *dxTemplate=\"let cell of 'statusTemplate'\">\r\n <span [class]=\"getStatusClass(cell.data.u_Status)\" style=\"padding: 0.25em .5em .25em .5em;\">\r\n {{ getStatusLabel(cell.data.u_Status) }}\r\n </span>\r\n </div>\r\n </dx-data-grid>\r\n </div>\r\n </div>\r\n</abp-page>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: i4.PageToolbarContainerComponent, selector: "abp-page-toolbar-container" }, { kind: "component", type: i5.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: i5$1.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: i5$1.DxoHeaderFilterComponent, selector: "dxo-header-filter", inputs: ["allowSearch", "dataSource", "groupInterval", "height", "searchMode", "width", "searchTimeout", "texts", "visible", "showRelevantValues"] }, { kind: "component", type: i5$1.DxoLookupComponent, selector: "dxo-lookup", inputs: ["allowClearing", "calculateCellValue", "dataSource", "displayExpr", "valueExpr"] }, { kind: "component", type: i5$1.DxoFilterRowComponent, selector: "dxo-filter-row", inputs: ["applyFilter", "applyFilterText", "betweenEndText", "betweenStartText", "operationDescriptions", "resetOperationText", "showAllText", "showOperationChooser", "visible"] }, { kind: "component", type: i5$1.DxoPagerComponent, selector: "dxo-pager", inputs: ["allowedPageSizes", "displayMode", "infoText", "label", "showInfo", "showNavigationButtons", "showPageSizeSelector", "visible"] }, { kind: "component", type: i5$1.DxoPagingComponent, selector: "dxo-paging", inputs: ["enabled", "pageIndex", "pageSize"], outputs: ["pageIndexChange", "pageSizeChange"] }, { kind: "component", type: i5$1.DxoSearchPanelComponent, selector: "dxo-search-panel", inputs: ["highlightCaseSensitive", "highlightSearchText", "placeholder", "searchVisibleColumnsOnly", "text", "visible", "width"], outputs: ["textChange"] }, { kind: "directive", type: i7.DxTemplateDirective, selector: "[dxTemplate]", inputs: ["dxTemplateOf"] }, { kind: "directive", type: i8.NgbDropdown, selector: "[ngbDropdown]", inputs: ["autoClose", "dropdownClass", "open", "placement", "container", "display"], outputs: ["openChange"], exportAs: ["ngbDropdown"] }, { kind: "directive", type: i8.NgbDropdownToggle, selector: "[ngbDropdownToggle]" }, { kind: "directive", type: i8.NgbDropdownMenu, selector: "[ngbDropdownMenu]" }, { kind: "directive", type: i8.NgbDropdownItem, selector: "[ngbDropdownItem]", inputs: ["disabled"] }, { kind: "pipe", type: i6.DatePipe, name: "date" }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
1294
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitEntryWeighingListComponent, decorators: [{
1295
+ type: Component,
1296
+ args: [{ selector: 'lib-hit-entry-weighing-list', template: "<abp-page [breadcrumb]=\"false\">\r\n <abp-page-toolbar-container class=\"col\">\r\n <div class=\"row align-items-center\">\r\n <div class=\"col\">\r\n <h3 class=\"page-title\">{{ 'Kadooglu::EntryWeighingTitle' | abpLocalization }}</h3>\r\n </div>\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\r\n #dataGrid\r\n [dataSource]=\"filteredData\"\r\n [columnAutoWidth]=\"true\"\r\n [showBorders]=\"true\"\r\n [showRowLines]=\"true\"\r\n [hoverStateEnabled]=\"true\"\r\n [allowColumnResizing]=\"true\"\r\n columnResizingMode=\"widget\"\r\n [rowAlternationEnabled]=\"true\"\r\n keyExpr=\"docEntry\"\r\n (onToolbarPreparing)=\"onToolbarPreparing($event)\"\r\n style=\"height: calc(100vh - 280px);\">\r\n\r\n <dxo-filter-row [visible]=\"true\"></dxo-filter-row>\r\n <dxo-header-filter [visible]=\"true\"></dxo-header-filter>\r\n <dxo-search-panel [visible]=\"true\" [width]=\"200\" [placeholder]=\"'Kadooglu::Ara' | abpLocalization\"></dxo-search-panel>\r\n\r\n <dxo-pager\r\n [visible]=\"true\"\r\n [showInfo]=\"true\"\r\n [allowedPageSizes]=\"[10, 20, 50]\"\r\n [showPageSizeSelector]=\"true\"\r\n [showNavigationButtons]=\"true\">\r\n </dxo-pager>\r\n <dxo-paging [pageSize]=\"10\"></dxo-paging>\r\n <dxi-column [fixed]=\"true\" dataField=\"docEntry\" [allowGrouping]=\"false\" [allowFiltering]=\"false\"\r\n [allowHeaderFiltering]=\"false\" [allowHiding]=\"false\" [allowReordering]=\"false\"\r\n alignment=\"center\"\r\n cellTemplate=\"operationTemplate\" caption=\"{{ 'AbpUi::Actions' | abpLocalization }}\">\r\n <div *dxTemplate=\"let row of 'operationTemplate'\" style=\"text-align:center\">\r\n <!-- Devam eden tart\u0131m: i\u015Flemler dropdown (status '0' ve '1') -->\r\n <div ngbDropdown container=\"body\" class=\"d-inline-block\">\r\n <button class=\"btn btn-primary btn-sm dropdown-toggle\" style=\"min-width: 110px;\" data-toggle=\"dropdown\"\r\n aria-haspopup=\"true\" ngbDropdownToggle [disabled]=\"disabledIdColumn\">\r\n <i class=\"fa fa-cog mr-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpUi::Actions' | abpLocalization }}\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem *ngIf=\"row.data.u_Status === '0'\" (click)=\"tartimYap(row.data, 'first')\">\r\n <i class=\"fa fa-balance-scale\" aria-hidden=\"true\"></i> {{ 'Kadooglu::PerformFirstWeighing' | abpLocalization }}\r\n </button>\r\n <button ngbDropdownItem *ngIf=\"row.data.u_Status === '1'\" (click)=\"tartimYap(row.data, 'last')\">\r\n <i class=\"fa fa-balance-scale\" aria-hidden=\"true\"></i> {{ 'Kadooglu::PerformLastWeighing' | abpLocalization }}\r\n </button>\r\n <button ngbDropdownItem *ngIf=\"row.data.u_Status === '2' && isMalGC(row.data.u_EntryType)\" (click)=\"malGcYap(row.data)\">\r\n <i class=\"fa fa-exchange\" aria-hidden=\"true\"></i> {{ 'Kadooglu::MalGcYap' | abpLocalization }}\r\n </button>\r\n <button ngbDropdownItem *ngIf=\"row.data.u_Status === '0'\" (click)=\"duzenle(row.data)\">\r\n <i class=\"fa fa-edit\" aria-hidden=\"true\"></i> {{ 'AbpUi::Edit' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </dxi-column>\r\n\r\n <dxi-column\r\n dataField=\"u_Status\"\r\n caption=\"{{ 'Kadooglu::Status' | abpLocalization }}\"\r\n [fixed]=\"true\"\r\n alignment=\"center\"\r\n cellTemplate=\"statusTemplate\"\r\n [allowFiltering]=\"false\">\r\n </dxi-column>\r\n\r\n <dxi-column dataField=\"docNum\" caption=\"{{ 'Kadooglu::DocumentNo' | abpLocalization }}\" width=\"100\"></dxi-column>\r\n\r\n <dxi-column dataField=\"u_GateCode\" caption=\"{{ 'Kadooglu::Gate' | abpLocalization }}\">\r\n <dxo-lookup [dataSource]=\"gateList\" valueExpr=\"code\" displayExpr=\"name\"></dxo-lookup>\r\n </dxi-column>\r\n\r\n <dxi-column\r\n dataField=\"u_EntryDate\"\r\n caption=\"{{ 'Kadooglu::EntryDateTime' | abpLocalization }}\"\r\n cellTemplate=\"entryDateTimeTemplate\"\r\n [allowFiltering]=\"true\">\r\n </dxi-column>\r\n\r\n <dxi-column dataField=\"u_EntryType\" caption=\"Ara\u00E7 Hareket T\u00FCr\u00FC\">\r\n <dxo-lookup [dataSource]=\"vehicleTypeList\" valueExpr=\"code\" displayExpr=\"name\"></dxo-lookup>\r\n </dxi-column>\r\n <dxi-column dataField=\"u_Plate\" caption=\"{{ 'Kadooglu::TruckPlate' | abpLocalization }}\" cellTemplate=\"plateTemplate\"></dxi-column>\r\n <dxi-column dataField=\"u_DorsePlate\" caption=\"{{ 'Kadooglu::DorsePlate' | abpLocalization }}\" cellTemplate=\"dorsePlateTemplate\"></dxi-column>\r\n <dxi-column dataField=\"u_Driver\" caption=\"{{ 'Kadooglu::DriverName' | abpLocalization }}\"></dxi-column>\r\n <dxi-column dataField=\"u_DriverCode\" caption=\"{{ 'Kadooglu::DriverCode' | abpLocalization }}\"></dxi-column>\r\n <dxi-column dataField=\"u_TcNo\" caption=\"{{ 'Kadooglu::TcIdentityNo' | abpLocalization }}\"></dxi-column>\r\n <dxi-column dataField=\"u_CardCode\" caption=\"{{ 'Kadooglu::CardCode' | abpLocalization }}\"></dxi-column>\r\n <dxi-column dataField=\"u_ItemCode\" caption=\"{{ 'Kadooglu::ItemCode' | abpLocalization }}\"></dxi-column>\r\n <dxi-column dataField=\"u_DespatchAdviceNo\" caption=\"{{ 'Kadooglu::DespatchAdviceNo' | abpLocalization }}\"></dxi-column>\r\n <dxi-column dataField=\"u_ScaleCode\" caption=\"{{ 'Kadooglu::ScaleCode' | abpLocalization }}\"></dxi-column>\r\n\r\n <dxi-column\r\n dataField=\"u_FirstWeighing\"\r\n caption=\"{{ 'Kadooglu::FirstWeighingKg' | abpLocalization }}\"\r\n dataType=\"number\"\r\n [format]=\"{ type: 'fixedPoint', precision: 0 }\">\r\n </dxi-column>\r\n\r\n <dxi-column\r\n dataField=\"u_LastWeighing\"\r\n caption=\"{{ 'Kadooglu::LastWeighingKg' | abpLocalization }}\"\r\n dataType=\"number\"\r\n [format]=\"{ type: 'fixedPoint', precision: 0 }\">\r\n </dxi-column>\r\n\r\n <dxi-column\r\n dataField=\"u_Net\"\r\n caption=\"{{ 'Kadooglu::NetKg' | abpLocalization }}\"\r\n dataType=\"number\"\r\n [format]=\"{ type: 'fixedPoint', precision: 0 }\">\r\n </dxi-column>\r\n\r\n <dxi-column\r\n dataField=\"u_ExitDate\"\r\n caption=\"{{ 'Kadooglu::ExitDate' | abpLocalization }}\"\r\n cellTemplate=\"exitDateTimeTemplate\"\r\n [allowFiltering]=\"true\">\r\n </dxi-column>\r\n <dxi-column dataField=\"u_Description\" caption=\"{{ 'Kadooglu::Description' | abpLocalization }}\"></dxi-column>\r\n\r\n <div *dxTemplate=\"let cell of 'plateTemplate'\">\r\n <span *ngIf=\"cell.data.u_Plate\" class=\"tr-plate\">\r\n <span class=\"tr-plate-blue\">TR</span>\r\n <span class=\"tr-plate-text\">{{ formatPlate(cell.data.u_Plate) }}</span>\r\n </span>\r\n </div>\r\n\r\n <div *dxTemplate=\"let cell of 'dorsePlateTemplate'\">\r\n <span *ngIf=\"cell.data.u_DorsePlate\" class=\"tr-plate\">\r\n <span class=\"tr-plate-blue\">TR</span>\r\n <span class=\"tr-plate-text\">{{ formatPlate(cell.data.u_DorsePlate) }}</span>\r\n </span>\r\n </div>\r\n\r\n <div *dxTemplate=\"let cell of 'entryDateTimeTemplate'\">\r\n {{ formatEntryDateTime(cell.data.u_EntryDate, cell.data.u_EntryTime) }}\r\n </div>\r\n\r\n <div *dxTemplate=\"let cell of 'exitDateTimeTemplate'\">\r\n <span *ngIf=\"cell.data.u_ExitDate\">\r\n {{ cell.data.u_ExitDate | date:'dd.MM.yyyy' }}\r\n <span *ngIf=\"cell.data.u_ExitTime\" class=\"text-muted ms-1\">{{ formatTime(cell.data.u_ExitTime) }}</span>\r\n </span>\r\n </div>\r\n\r\n <div *dxTemplate=\"let cell of 'statusTemplate'\">\r\n <span [class]=\"getStatusClass(cell.data.u_Status)\" style=\"padding: 0.25em .5em .25em .5em;\">\r\n {{ getStatusLabel(cell.data.u_Status) }}\r\n </span>\r\n </div>\r\n </dx-data-grid>\r\n </div>\r\n </div>\r\n</abp-page>\r\n" }]
1297
+ }], ctorParameters: function () { return [{ type: HitEntryWeighingService }, { type: i2$1.ConfirmationService }, { type: i1$1.Router }, { type: i1.LocalizationService }, { type: HitGateService }]; }, propDecorators: { dataGrid: [{
1298
+ type: ViewChild,
1299
+ args: ['dataGrid', { static: false }]
1300
+ }] } });
1301
+
1302
+ class HitEntryWeighingFormComponent {
1303
+ constructor(service, stockTransferService, confirmation, toaster, route, router, localizationService) {
1304
+ this.service = service;
1305
+ this.stockTransferService = stockTransferService;
1306
+ this.confirmation = confirmation;
1307
+ this.toaster = toaster;
1308
+ this.route = route;
1309
+ this.router = router;
1310
+ this.localizationService = localizationService;
1311
+ this.record = null;
1312
+ // Wizard phase: 1 = Araç & Belge, 2 = Tartım Paneli
1313
+ this.formPhase = 1;
1314
+ // Weighing mode from query param: 'first' | 'last' | null (null = normal new/edit)
1315
+ this.weighingMode = null;
1316
+ // Lookup loader functions (called lazily when modal opens)
1317
+ this.loadDocuments = () => this.service.getDocuments();
1318
+ this.loadScales = () => this.service.getScales();
1319
+ this.loadTruckPlates = () => this.service.getTruckPlates();
1320
+ this.loadTrailerPlates = () => this.service.getTrailerPlates();
1321
+ this.loadDrivers = () => this.service.getDrivers();
1322
+ this.loadAccounts = () => this.service.getAccounts();
1323
+ this.loadStockItems = () => this.service.getStockItems();
1324
+ this.loadWaybills = () => this.stockTransferService.getList();
1325
+ this.loadGates = () => this.service.getGates();
1326
+ this.loadVehicleTypes = () => this.service.getVehicleTypes();
1327
+ // Column configs
1328
+ this.documentColumns = [
1329
+ { dataField: 'code', caption: 'Belge No', width: 120 },
1330
+ { dataField: 'name', caption: 'Cari Adı' },
1331
+ ];
1332
+ this.scaleColumns = [
1333
+ { dataField: 'code', caption: 'Kod', width: 80 },
1334
+ { dataField: 'name', caption: 'Kantar Adı' },
1335
+ ];
1336
+ this.truckPlateColumns = [
1337
+ { dataField: 'code', caption: 'Kod', width: 100 },
1338
+ { dataField: 'plateNo', caption: 'Plaka' },
1339
+ ];
1340
+ this.trailerPlateColumns = [
1341
+ { dataField: 'code', caption: 'Kod', width: 100 },
1342
+ { dataField: 'plateNo', caption: 'Plaka' },
1343
+ ];
1344
+ this.driverColumns = [
1345
+ { dataField: 'code', caption: 'Kod', width: 100 },
1346
+ { dataField: 'name', caption: 'Ad Soyad' },
1347
+ ];
1348
+ this.accountColumns = [
1349
+ { dataField: 'code', caption: 'Kod', width: 100 },
1350
+ { dataField: 'title', caption: 'Unvan' },
1351
+ ];
1352
+ this.stockItemColumns = [
1353
+ { dataField: 'code', caption: 'Kod', width: 100 },
1354
+ { dataField: 'name', caption: 'Stok Adı' },
1355
+ ];
1356
+ this.waybillColumns = [
1357
+ { dataField: 'docNum', caption: 'Belge No', width: 120 },
1358
+ { dataField: 'cardName', caption: 'Cari Adı' },
1359
+ { dataField: 'fromWarehouse', caption: 'Çıkış Deposu', width: 140 },
1360
+ { dataField: 'comments', caption: 'Açıklama' },
1361
+ ];
1362
+ this.gateColumns = [
1363
+ { dataField: 'code', caption: 'Kod', width: 80 },
1364
+ { dataField: 'name', caption: 'Kapı Adı' },
1365
+ ];
1366
+ this.vehicleTypeColumns = [
1367
+ { dataField: 'code', caption: 'Kod', width: 80 },
1368
+ { dataField: 'name', caption: 'Giriş Tipi' },
1369
+ ];
1370
+ // Form fields
1371
+ this.documentCode = '';
1372
+ this.documentName = '';
1373
+ this.scaleCode = '1';
1374
+ this.scaleName = 'Kantar 1';
1375
+ this.accountCode = '';
1376
+ this.accountTitle = '';
1377
+ this.truckPlateCode = '';
1378
+ this.truckPlateNo = '';
1379
+ this.trailerPlateCode = '';
1380
+ this.trailerPlateNo = '';
1381
+ this.driverCode = '';
1382
+ this.driverName = '';
1383
+ this.stockCode = '';
1384
+ this.stockName = '';
1385
+ this.containerNo = '';
1386
+ this.description = '';
1387
+ this.waybillNo = '';
1388
+ this.departureLocation = '';
1389
+ this.arrivalLocation = 'Fabrika';
1390
+ // ZZZ_TEST2 yeni alanlar
1391
+ this.gateCode = '';
1392
+ this.gateName = '';
1393
+ this.entryDate = null;
1394
+ this.entryTime = '';
1395
+ this.exitDate = null;
1396
+ this.exitTime = '';
1397
+ this.entryTypeCode = '';
1398
+ this.entryTypeName = '';
1399
+ this.driverFullName = '';
1400
+ this.tcNo = '';
1401
+ this.isTcCitizen = true;
1402
+ // Tartım bilgileri (readonly)
1403
+ this.firstOperatorCode = '';
1404
+ this.firstWeighingValue = null;
1405
+ this.lastOperatorCode = '';
1406
+ this.lastWeighingValue = null;
1407
+ this.currentScaleValue = null;
1408
+ this.isSaving = false;
1409
+ this.isWeighing = false;
1410
+ this.entryTypeTrtmYpilck = false;
1411
+ this.entryTypeMalGC = false;
1412
+ this.isDoingGoodsMovement = false;
1413
+ }
1414
+ /** SAP response camelCase/PascalCase farkını handle eder */
1415
+ getDocEntry(rec) {
1416
+ var _a;
1417
+ if (!rec)
1418
+ return undefined;
1419
+ return (_a = rec.docEntry) !== null && _a !== void 0 ? _a : rec.docEntry;
1420
+ }
1421
+ ngOnInit() {
1422
+ var _a;
1423
+ // Read weighing mode from query params
1424
+ const mode = this.route.snapshot.queryParamMap.get('mode');
1425
+ if (mode === 'first' || mode === 'last') {
1426
+ this.weighingMode = mode;
1427
+ }
1428
+ // Önce router state'den satır verisini oku (liste ekranından aktarılan)
1429
+ const stateData = (_a = history.state) === null || _a === void 0 ? void 0 : _a.rowData;
1430
+ const id = this.route.snapshot.paramMap.get('id');
1431
+ if (stateData) {
1432
+ // State'den gelen veriyi kullan (API çağrısı olmadan)
1433
+ this.record = stateData;
1434
+ this.initForm();
1435
+ // Son tartım modundaysa direkt tartım panelini aç
1436
+ if (this.weighingMode === 'last') {
1437
+ this.formPhase = 2;
1438
+ }
1439
+ }
1440
+ else if (id) {
1441
+ // Fallback: state yoksa API'den yükle
1442
+ this.service.get(+id).subscribe(record => {
1443
+ this.record = record;
1444
+ this.initForm();
1445
+ // Son tartım modundaysa direkt tartım panelini aç
1446
+ if (this.weighingMode === 'last') {
1447
+ this.formPhase = 2;
1448
+ }
1449
+ });
1450
+ }
1451
+ }
1452
+ get weighingStep() {
1453
+ var _a;
1454
+ const status = (_a = this.record) === null || _a === void 0 ? void 0 : _a.u_Status;
1455
+ if (this.lastWeighingValue !== null || status === '2')
1456
+ return 3;
1457
+ if (this.firstWeighingValue !== null || status === '1')
1458
+ return 2;
1459
+ return 1;
1460
+ }
1461
+ /** İlk tartım yapıldıysa (step >= 2) detay alanlarını kilitle */
1462
+ get isFormLocked() {
1463
+ return this.weighingStep >= 2;
1464
+ }
1465
+ /** Her iki tartım da tamamlandıysa (step === 3) tüm ekranı kilitle */
1466
+ get isFullyCompleted() {
1467
+ return this.weighingStep === 3;
1468
+ }
1469
+ get entryDateTime() {
1470
+ return this.buildDateTime(this.entryDate, this.entryTime);
1471
+ }
1472
+ get exitDateTime() {
1473
+ return this.buildDateTime(this.exitDate, this.exitTime);
1474
+ }
1475
+ /** Tarih string + sayısal saat (ör. 830 = 08:30) değerinden Date oluşturur */
1476
+ buildDateTime(dateStr, timeVal) {
1477
+ if (!dateStr)
1478
+ return null;
1479
+ const d = new Date(dateStr);
1480
+ if (isNaN(d.getTime()))
1481
+ return null;
1482
+ const t = Number(timeVal);
1483
+ if (!isNaN(t)) {
1484
+ d.setHours(Math.floor(t / 100), t % 100, 0, 0);
1485
+ }
1486
+ return d;
1487
+ }
1488
+ get netWeight() {
1489
+ if (this.firstWeighingValue !== null && this.lastWeighingValue !== null) {
1490
+ return Math.abs(this.firstWeighingValue - this.lastWeighingValue);
1491
+ }
1492
+ return null;
1493
+ }
1494
+ get weighingModeLabel() {
1495
+ return this.weighingMode === 'first'
1496
+ ? this.localizationService.instant('Kadooglu::FirstWeighing')
1497
+ : this.localizationService.instant('Kadooglu::LastWeighing');
1498
+ }
1499
+ initForm() {
1500
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23;
1501
+ if (this.record) {
1502
+ const r = this.record; // SAP camelCase fallback
1503
+ this.scaleCode = (_b = (_a = r.u_ScaleCode) !== null && _a !== void 0 ? _a : r.u_ScaleCode) !== null && _b !== void 0 ? _b : '';
1504
+ this.accountCode = (_d = (_c = r.u_CardCode) !== null && _c !== void 0 ? _c : r.u_CardCode) !== null && _d !== void 0 ? _d : '';
1505
+ this.truckPlateCode = (_f = (_e = r.u_Plate) !== null && _e !== void 0 ? _e : r.u_Plate) !== null && _f !== void 0 ? _f : '';
1506
+ this.truckPlateNo = (_h = (_g = r.u_Plate) !== null && _g !== void 0 ? _g : r.u_Plate) !== null && _h !== void 0 ? _h : '';
1507
+ this.trailerPlateCode = (_j = r.u_DorsePlate) !== null && _j !== void 0 ? _j : '';
1508
+ this.trailerPlateNo = (_k = r.u_DorsePlate) !== null && _k !== void 0 ? _k : '';
1509
+ this.driverCode = (_m = (_l = r.u_DriverCode) !== null && _l !== void 0 ? _l : r.u_DriverCode) !== null && _m !== void 0 ? _m : '';
1510
+ this.stockCode = (_p = (_o = r.u_ItemCode) !== null && _o !== void 0 ? _o : r.u_ItemCode) !== null && _p !== void 0 ? _p : '';
1511
+ this.containerNo = (_r = (_q = r.u_ContainerNo) !== null && _q !== void 0 ? _q : r.u_ContainerNo) !== null && _r !== void 0 ? _r : '';
1512
+ this.waybillNo = (_t = (_s = r.u_DespatchAdviceNo) !== null && _s !== void 0 ? _s : r.u_DespatchAdviceNo) !== null && _t !== void 0 ? _t : '';
1513
+ this.departureLocation = (_v = (_u = r.u_ShipPlace) !== null && _u !== void 0 ? _u : r.u_ShipPlace) !== null && _v !== void 0 ? _v : '';
1514
+ this.arrivalLocation = (_x = (_w = r.u_ShipTo) !== null && _w !== void 0 ? _w : r.u_ShipTo) !== null && _x !== void 0 ? _x : 'Fabrika';
1515
+ this.firstOperatorCode = (_z = (_y = r.u_FirstOpt) !== null && _y !== void 0 ? _y : r.u_FirstOpt) !== null && _z !== void 0 ? _z : '';
1516
+ this.lastOperatorCode = (_1 = (_0 = r.u_LastOpt) !== null && _0 !== void 0 ? _0 : r.u_LastOpt) !== null && _1 !== void 0 ? _1 : '';
1517
+ const rawFirst = (_3 = (_2 = r.u_FirstWeighing) !== null && _2 !== void 0 ? _2 : r.u_FirstWeighing) !== null && _3 !== void 0 ? _3 : null;
1518
+ this.firstWeighingValue = (rawFirst != null && rawFirst !== 0) ? rawFirst : null;
1519
+ const rawLast = (_5 = (_4 = r.u_LastWeighing) !== null && _4 !== void 0 ? _4 : r.u_LastWeighing) !== null && _5 !== void 0 ? _5 : null;
1520
+ this.lastWeighingValue = (rawLast != null && rawLast !== 0) ? rawLast : null;
1521
+ this.description = (_7 = (_6 = r.u_Description) !== null && _6 !== void 0 ? _6 : r.u_Description) !== null && _7 !== void 0 ? _7 : '';
1522
+ // ZZZ_TEST2 yeni alanlar
1523
+ this.gateCode = (_9 = (_8 = r.u_GateCode) !== null && _8 !== void 0 ? _8 : r.u_GateCode) !== null && _9 !== void 0 ? _9 : '';
1524
+ this.entryDate = (_11 = (_10 = r.u_EntryDate) !== null && _10 !== void 0 ? _10 : r.u_EntryDate) !== null && _11 !== void 0 ? _11 : null;
1525
+ this.entryTime = (_13 = (_12 = r.u_EntryTime) !== null && _12 !== void 0 ? _12 : r.u_EntryTime) !== null && _13 !== void 0 ? _13 : '';
1526
+ this.exitDate = (_15 = (_14 = r.u_ExitDate) !== null && _14 !== void 0 ? _14 : r.u_ExitDate) !== null && _15 !== void 0 ? _15 : null;
1527
+ this.exitTime = (_17 = (_16 = r.u_ExitTime) !== null && _16 !== void 0 ? _16 : r.u_ExitTime) !== null && _17 !== void 0 ? _17 : '';
1528
+ this.entryTypeCode = (_19 = (_18 = r.u_EntryType) !== null && _18 !== void 0 ? _18 : r.u_EntryType) !== null && _19 !== void 0 ? _19 : '';
1529
+ this.driverFullName = (_21 = (_20 = r.u_Driver) !== null && _20 !== void 0 ? _20 : r.u_Driver) !== null && _21 !== void 0 ? _21 : '';
1530
+ this.tcNo = (_23 = (_22 = r.u_TcNo) !== null && _22 !== void 0 ? _22 : r.u_TcNo) !== null && _23 !== void 0 ? _23 : '';
1531
+ this.isTcCitizen = true;
1532
+ // Lookup alanlarının görünen isimlerini çözümle
1533
+ this.resolveDisplayNames();
1534
+ }
1535
+ }
1536
+ /** Kayıttaki kod alanlarına karşılık gelen görünen isimleri lookup servislerinden çözümler */
1537
+ resolveDisplayNames() {
1538
+ const lookups = {};
1539
+ if (this.gateCode) {
1540
+ lookups['gates'] = this.loadGates();
1541
+ }
1542
+ if (this.entryTypeCode) {
1543
+ lookups['vehicleTypes'] = this.loadVehicleTypes();
1544
+ }
1545
+ if (this.scaleCode) {
1546
+ lookups['scales'] = this.loadScales();
1547
+ }
1548
+ if (this.accountCode) {
1549
+ lookups['accounts'] = this.loadAccounts();
1550
+ }
1551
+ if (this.driverCode) {
1552
+ lookups['drivers'] = this.loadDrivers();
1553
+ }
1554
+ if (this.stockCode) {
1555
+ lookups['stockItems'] = this.loadStockItems();
1556
+ }
1557
+ const keys = Object.keys(lookups);
1558
+ if (keys.length === 0)
1559
+ return;
1560
+ forkJoin(lookups).subscribe((results) => {
1561
+ if (results.gates) {
1562
+ const gate = results.gates.find((g) => g.code === this.gateCode);
1563
+ if (gate)
1564
+ this.gateName = gate.name;
1565
+ }
1566
+ if (results.vehicleTypes) {
1567
+ const vt = results.vehicleTypes.find((t) => t.code === this.entryTypeCode);
1568
+ if (vt) {
1569
+ this.entryTypeName = vt.name;
1570
+ this.entryTypeTrtmYpilck = vt.u_TrtmYpilck === 'Y';
1571
+ this.entryTypeMalGC = vt.u_MalGC === 'Y';
1572
+ }
1573
+ }
1574
+ if (results.scales) {
1575
+ const scale = results.scales.find((s) => s.code === this.scaleCode);
1576
+ if (scale)
1577
+ this.scaleName = scale.name;
1578
+ }
1579
+ if (results.accounts) {
1580
+ const account = results.accounts.find((a) => a.code === this.accountCode);
1581
+ if (account)
1582
+ this.accountTitle = account.title;
1583
+ }
1584
+ if (results.drivers) {
1585
+ const driver = results.drivers.find((d) => d.code === this.driverCode);
1586
+ if (driver)
1587
+ this.driverName = driver.name;
1588
+ }
1589
+ if (results.stockItems) {
1590
+ const item = results.stockItems.find((i) => i.code === this.stockCode);
1591
+ if (item)
1592
+ this.stockName = item.name;
1593
+ }
1594
+ });
1595
+ }
1596
+ onDocumentSelected(e) {
1597
+ if (!e)
1598
+ return;
1599
+ this.documentCode = e.code;
1600
+ this.documentName = e.name;
1601
+ }
1602
+ onScaleSelected(e) {
1603
+ if (!e)
1604
+ return;
1605
+ this.scaleCode = e.code;
1606
+ this.scaleName = e.name;
1607
+ }
1608
+ onAccountSelected(e) {
1609
+ if (!e)
1610
+ return;
1611
+ this.accountCode = e.code;
1612
+ this.accountTitle = e.title;
1613
+ }
1614
+ onTruckPlateSelected(e) {
1615
+ if (!e)
1616
+ return;
1617
+ this.truckPlateCode = e.code;
1618
+ this.truckPlateNo = e.plateNo;
1619
+ }
1620
+ onTrailerPlateSelected(e) {
1621
+ if (!e)
1622
+ return;
1623
+ this.trailerPlateCode = e.code;
1624
+ this.trailerPlateNo = e.plateNo;
1625
+ }
1626
+ onDriverSelected(e) {
1627
+ if (!e)
1628
+ return;
1629
+ this.driverCode = e.code;
1630
+ this.driverName = e.name;
1631
+ }
1632
+ onStockItemSelected(e) {
1633
+ if (!e)
1634
+ return;
1635
+ this.stockCode = e.code;
1636
+ this.stockName = e.name;
1637
+ }
1638
+ onGateSelected(e) {
1639
+ if (!e)
1640
+ return;
1641
+ this.gateCode = e.code;
1642
+ this.gateName = e.name;
1643
+ }
1644
+ onVehicleTypeSelected(e) {
1645
+ if (!e)
1646
+ return;
1647
+ this.entryTypeCode = e.code;
1648
+ this.entryTypeName = e.name;
1649
+ this.entryTypeTrtmYpilck = e.u_TrtmYpilck === 'Y';
1650
+ this.entryTypeMalGC = e.u_MalGC === 'Y';
1651
+ }
1652
+ onWaybillSelected(e) {
1653
+ var _a, _b, _c;
1654
+ if (!e)
1655
+ return;
1656
+ this.waybillNo = e.docNum.toString();
1657
+ if (e.cardCode) {
1658
+ this.accountCode = e.cardCode;
1659
+ this.accountTitle = e.cardName;
1660
+ }
1661
+ if (e.fromWarehouse) {
1662
+ this.departureLocation = e.fromWarehouse;
1663
+ }
1664
+ if (e.comments) {
1665
+ this.description = e.comments;
1666
+ }
1667
+ const lines = (_a = e.stockTransferLines) !== null && _a !== void 0 ? _a : [];
1668
+ const uniqueCodes = [...new Set(lines.map(l => l.itemCode).filter(c => !!c))];
1669
+ if (uniqueCodes.length === 1) {
1670
+ this.stockCode = uniqueCodes[0];
1671
+ this.stockName = (_c = (_b = lines.find(l => l.itemCode === uniqueCodes[0])) === null || _b === void 0 ? void 0 : _b.itemDescription) !== null && _c !== void 0 ? _c : '';
1672
+ }
1673
+ else {
1674
+ this.stockCode = '';
1675
+ this.stockName = '';
1676
+ }
1677
+ }
1678
+ /** Phase 1 → Phase 2 geçişi */
1679
+ ileriGit() {
1680
+ if (!this.truckPlateCode) {
1681
+ this.confirmation.warn(this.localizationService.instant('Kadooglu::SelectTruckPlate'), '', {
1682
+ hideYesBtn: true,
1683
+ cancelText: this.localizationService.instant('Kadooglu::Cancel'),
1684
+ dismissible: false,
1685
+ });
1686
+ return;
1687
+ }
1688
+ if (this.entryTypeTrtmYpilck && !this.stockCode) {
1689
+ this.confirmation.warn(this.localizationService.instant('Kadooglu::StockCodeRequired'), '', {
1690
+ hideYesBtn: true,
1691
+ cancelText: this.localizationService.instant('Kadooglu::Cancel'),
1692
+ dismissible: false,
1693
+ });
1694
+ return;
1695
+ }
1696
+ this.formPhase = 2;
1697
+ }
1698
+ /** Phase 2 → Phase 1 geri dön */
1699
+ geriGitPhase() {
1700
+ this.formPhase = 1;
1701
+ }
1702
+ save() {
1703
+ // Tartım modundaysa doWeighing API çağır
1704
+ const docEntry = this.getDocEntry(this.record);
1705
+ if (this.weighingMode && docEntry) {
1706
+ if (this.currentScaleValue == null) {
1707
+ this.confirmation.warn(this.localizationService.instant('Kadooglu::DoWeighingFirst'), '', {
1708
+ hideYesBtn: true,
1709
+ cancelText: this.localizationService.instant('Kadooglu::Cancel'),
1710
+ dismissible: false,
1711
+ });
1712
+ return;
1713
+ }
1714
+ this.isSaving = true;
1715
+ this.service.doWeighing(docEntry, {
1716
+ weighingValue: this.currentScaleValue,
1717
+ operatorCode: ''
1718
+ }).subscribe({
1719
+ next: () => {
1720
+ // Tartım değerlerini weighingMode'a göre güncelle
1721
+ if (this.weighingMode === 'first') {
1722
+ this.firstWeighingValue = this.currentScaleValue;
1723
+ }
1724
+ else {
1725
+ this.lastWeighingValue = this.currentScaleValue;
1726
+ }
1727
+ this.isSaving = false;
1728
+ this.toaster.success(this.weighingMode === 'first'
1729
+ ? this.localizationService.instant('Kadooglu::FirstWeighingSaved')
1730
+ : this.localizationService.instant('Kadooglu::LastWeighingSaved'));
1731
+ // Kısa bir gecikme ile listeye dön (kullanıcı progress bar değişimini görsün)
1732
+ setTimeout(() => {
1733
+ this.router.navigate(['/kadooglu/entry-weighing']);
1734
+ }, 1500);
1735
+ },
1736
+ error: () => {
1737
+ this.isSaving = false;
1738
+ this.toaster.error(this.localizationService.instant('Kadooglu::WeighingRecordError'));
1739
+ },
1740
+ });
1741
+ return;
1742
+ }
1743
+ // Normal kayıt modu (yeni kayıt veya düzenleme)
1744
+ if (!this.truckPlateCode) {
1745
+ this.confirmation.warn(this.localizationService.instant('Kadooglu::SelectTruckPlate'), '', {
1746
+ hideYesBtn: true,
1747
+ cancelText: this.localizationService.instant('Kadooglu::Cancel'),
1748
+ dismissible: false,
1749
+ });
1750
+ return;
1751
+ }
1752
+ const now = new Date();
1753
+ const currentDate = now.toISOString().split('T')[0];
1754
+ const currentTime = now.toTimeString().split(' ')[0]; // HH:mm:ss
1755
+ const dto = {
1756
+ u_GateCode: this.gateCode || undefined,
1757
+ u_EntryDate: this.entryDate || currentDate,
1758
+ u_EntryTime: this.entryTime || currentTime,
1759
+ u_ExitDate: this.exitDate || null,
1760
+ u_ExitTime: this.exitTime || undefined,
1761
+ u_Plate: this.truckPlateCode,
1762
+ u_DorsePlate: this.trailerPlateCode || undefined,
1763
+ u_EntryType: this.entryTypeCode || undefined,
1764
+ u_Description: this.description || undefined,
1765
+ u_Driver: this.driverFullName || undefined,
1766
+ u_DriverCode: this.driverCode || undefined,
1767
+ u_TcNo: this.tcNo || undefined,
1768
+ u_CardCode: this.accountCode || undefined,
1769
+ u_ScaleCode: this.scaleCode || undefined,
1770
+ u_ItemCode: this.stockCode || undefined,
1771
+ u_DespatchAdviceNo: this.waybillNo || undefined,
1772
+ u_DespatchExist: 'N',
1773
+ u_ShipTo: this.arrivalLocation || undefined,
1774
+ u_ContainerNo: this.containerNo || undefined,
1775
+ u_ShipPlace: this.departureLocation || undefined,
1776
+ };
1777
+ const obs$ = docEntry
1778
+ ? this.service.update(docEntry, dto)
1779
+ : this.service.create(dto);
1780
+ this.isSaving = true;
1781
+ obs$.subscribe({
1782
+ next: () => {
1783
+ this.isSaving = false;
1784
+ this.toaster.success(this.localizationService.instant('Kadooglu::RecordSavedSuccess'));
1785
+ this.router.navigate(['/kadooglu/entry-weighing']);
1786
+ },
1787
+ error: () => {
1788
+ this.isSaving = false;
1789
+ this.toaster.error(this.localizationService.instant('Kadooglu::RecordSaveError'));
1790
+ },
1791
+ });
1792
+ }
1793
+ doGoodsMovement() {
1794
+ const docEntry = this.getDocEntry(this.record);
1795
+ if (!docEntry)
1796
+ return;
1797
+ this.isDoingGoodsMovement = true;
1798
+ this.service.doGoodsMovement(docEntry).subscribe({
1799
+ next: updated => {
1800
+ this.record = updated;
1801
+ this.isDoingGoodsMovement = false;
1802
+ this.toaster.success(this.localizationService.instant('Kadooglu::GoodsMovementSuccess'));
1803
+ },
1804
+ error: () => {
1805
+ this.isDoingGoodsMovement = false;
1806
+ },
1807
+ });
1808
+ }
1809
+ doWeighing() {
1810
+ // Random değer üret 30000-40000 arası
1811
+ this.currentScaleValue = Math.floor(Math.random() * 10001) + 30000;
1812
+ }
1813
+ goBack() {
1814
+ this.router.navigate(['/kadooglu/entry-weighing']);
1815
+ }
1816
+ validateTCKN(value) {
1817
+ const tc = value === null || value === void 0 ? void 0 : value.trim();
1818
+ if (!tc || tc.length !== 11)
1819
+ return false;
1820
+ if (!/^\d{11}$/.test(tc))
1821
+ return false;
1822
+ if (tc[0] === '0')
1823
+ return false;
1824
+ const d = tc.split('').map(Number);
1825
+ const d10 = ((d[0] + d[2] + d[4] + d[6] + d[8]) * 7 - (d[1] + d[3] + d[5] + d[7])) % 10;
1826
+ if (d10 !== d[9])
1827
+ return false;
1828
+ const d11 = d.slice(0, 10).reduce((a, b) => a + b, 0) % 10;
1829
+ return d11 === d[10];
1830
+ }
1831
+ }
1832
+ HitEntryWeighingFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitEntryWeighingFormComponent, deps: [{ token: HitEntryWeighingService }, { token: HitStockTransferService }, { token: i2$1.ConfirmationService }, { token: i2$1.ToasterService }, { token: i1$1.ActivatedRoute }, { token: i1$1.Router }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
1833
+ HitEntryWeighingFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: HitEntryWeighingFormComponent, selector: "lib-hit-entry-weighing-form", ngImport: i0, template: "<abp-page [breadcrumb]=\"false\">\r\n <abp-page-toolbar-container class=\"col\">\r\n <div class=\"row align-items-center\">\r\n <div class=\"col\">\r\n <h3 class=\"page-title\">\r\n {{ 'Kadooglu::EntryWeighingTitle' | abpLocalization }}\r\n <span *ngIf=\"weighingMode\" class=\"badge ms-2 fs-6\"\r\n [ngClass]=\"{\r\n 'bg-warning text-dark': weighingMode === 'first',\r\n 'bg-primary': weighingMode === 'last'\r\n }\">\r\n {{ weighingModeLabel }}\r\n </span>\r\n <span *ngIf=\"!weighingMode\" class=\"badge ms-2 fs-6\"\r\n [ngClass]=\"{\r\n 'bg-secondary': weighingStep === 1,\r\n 'bg-info': weighingStep === 2,\r\n 'bg-success': weighingStep === 3\r\n }\">\r\n {{ (weighingStep === 1 ? 'Kadooglu::RecordStep' : weighingStep === 2 ? 'Kadooglu::FirstWeighing' : 'Kadooglu::Completed') | abpLocalization }}\r\n </span>\r\n </h3>\r\n </div>\r\n </div>\r\n </abp-page-toolbar-container>\r\n\r\n <!-- Step Indicator -->\r\n <div class=\"card mb-3\">\r\n <div class=\"card-body py-3\">\r\n <div class=\"d-flex align-items-center justify-content-center\">\r\n\r\n <!-- Step 1: Ara\u00E7 & Belge -->\r\n <div class=\"d-flex flex-column align-items-center\">\r\n <div class=\"rounded-circle d-flex align-items-center justify-content-center fw-bold text-white\"\r\n style=\"width:40px; height:40px; font-size:1rem;\"\r\n [style.background-color]=\"formPhase > 1 || isFullyCompleted ? '#198754' : (formPhase === 1 ? '#0d6efd' : '#6c757d')\">\r\n <i *ngIf=\"formPhase > 1 || isFullyCompleted\" class=\"fa fa-check\"></i>\r\n <span *ngIf=\"formPhase <= 1 && !isFullyCompleted\">1</span>\r\n </div>\r\n <small class=\"mt-1 fw-semibold\" [class.text-success]=\"formPhase > 1 || isFullyCompleted\" [class.text-primary]=\"formPhase === 1 && !isFullyCompleted\">{{ 'Kadooglu::VehicleAndDocument' | abpLocalization }}</small>\r\n </div>\r\n\r\n <div class=\"flex-grow-1 mx-2\" style=\"height:3px; max-width:120px;\"\r\n [style.background-color]=\"formPhase > 1 ? '#198754' : '#dee2e6'\"></div>\r\n\r\n <!-- Step 2: Tart\u0131m -->\r\n <div class=\"d-flex flex-column align-items-center\">\r\n <div class=\"rounded-circle d-flex align-items-center justify-content-center fw-bold text-white\"\r\n style=\"width:40px; height:40px; font-size:1rem;\"\r\n [style.background-color]=\"weighingStep === 3 ? '#198754' : (formPhase === 2 ? '#0d6efd' : '#6c757d')\">\r\n <i *ngIf=\"weighingStep === 3\" class=\"fa fa-check\"></i>\r\n <span *ngIf=\"weighingStep < 3\">2</span>\r\n </div>\r\n <small class=\"mt-1 fw-semibold\" [class.text-success]=\"weighingStep === 3\" [class.text-primary]=\"formPhase === 2 && weighingStep < 3\" [class.text-muted]=\"formPhase < 2 && weighingStep < 3\">{{ 'Kadooglu::WeighingStep' | abpLocalization }}</small>\r\n </div>\r\n\r\n <div class=\"flex-grow-1 mx-2\" style=\"height:3px; max-width:120px;\"\r\n [style.background-color]=\"weighingStep === 3 ? '#198754' : '#dee2e6'\"></div>\r\n\r\n <!-- Step 3: Tamamland\u0131 -->\r\n <div class=\"d-flex flex-column align-items-center\">\r\n <div class=\"rounded-circle d-flex align-items-center justify-content-center fw-bold text-white\"\r\n style=\"width:40px; height:40px; font-size:1rem;\"\r\n [style.background-color]=\"weighingStep === 3 ? '#198754' : '#6c757d'\">\r\n <i *ngIf=\"weighingStep === 3\" class=\"fa fa-check\"></i>\r\n <span *ngIf=\"weighingStep < 3\">3</span>\r\n </div>\r\n <small class=\"mt-1 fw-semibold\" [class.text-success]=\"weighingStep === 3\" [class.text-muted]=\"weighingStep < 3\">{{ 'Kadooglu::Completed' | abpLocalization }}</small>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- ========== PHASE 1: Ara\u00E7 & Belge ========== -->\r\n <div *ngIf=\"formPhase === 1 && !isFullyCompleted\">\r\n <div class=\"row\">\r\n <div class=\"col-12\">\r\n <div class=\"card\">\r\n <div class=\"card-header fw-bold\">\r\n <i class=\"fa fa-truck me-2\"></i>{{ 'Kadooglu::VehicleAndDocument' | abpLocalization }}\r\n </div>\r\n <div class=\"card-body\">\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n\r\n <!-- Kap\u0131 Se\u00E7imi -->\r\n <div class=\"mb-3\">\r\n <label class=\"form-label fw-semibold\">{{ 'Kadooglu::GateSelection' | abpLocalization }}</label>\r\n <hit-lookup-select\r\n [loadFn]=\"loadGates\"\r\n [columns]=\"gateColumns\"\r\n displayName=\"name\"\r\n [editingData]=\"gateName\"\r\n [disabled]=\"isFormLocked\"\r\n (selected)=\"onGateSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n\r\n <!-- Giri\u015F Tipi -->\r\n <div class=\"mb-3\">\r\n <label class=\"form-label fw-semibold\">Ara\u00E7 Hareket T\u00FCr\u00FC</label>\r\n <hit-lookup-select\r\n [loadFn]=\"loadVehicleTypes\"\r\n [columns]=\"vehicleTypeColumns\"\r\n displayName=\"name\"\r\n [editingData]=\"entryTypeName\"\r\n [disabled]=\"isFormLocked\"\r\n (selected)=\"onVehicleTypeSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n\r\n <!-- Ara\u00E7 Giri\u015F Tarihi / Saati -->\r\n <div class=\"mb-3\">\r\n <label class=\"form-label fw-semibold\">{{ 'Kadooglu::EntryDate' | abpLocalization }}</label>\r\n <dx-date-box\r\n [value]=\"entryDateTime\"\r\n type=\"datetime\"\r\n displayFormat=\"dd.MM.yyyy HH:mm\"\r\n [disabled]=\"true\"\r\n width=\"100%\">\r\n </dx-date-box>\r\n </div>\r\n\r\n <!-- Ara\u00E7 \u00C7\u0131k\u0131\u015F Tarihi / Saati -->\r\n <div class=\"mb-3\">\r\n <label class=\"form-label fw-semibold\">{{ 'Kadooglu::ExitDate' | abpLocalization }}</label>\r\n <dx-date-box\r\n [value]=\"exitDateTime\"\r\n type=\"datetime\"\r\n displayFormat=\"dd.MM.yyyy HH:mm\"\r\n [disabled]=\"true\"\r\n width=\"100%\">\r\n </dx-date-box>\r\n </div>\r\n\r\n <!-- Kamyon / Ara\u00E7 Plakas\u0131 -->\r\n <div class=\"mb-3\">\r\n <label class=\"form-label fw-semibold\">\r\n {{ 'Kadooglu::TruckPlate' | abpLocalization }}\r\n <span class=\"text-danger\">*</span>\r\n </label>\r\n <hit-lookup-select\r\n [loadFn]=\"loadTruckPlates\"\r\n [columns]=\"truckPlateColumns\"\r\n displayName=\"plateNo\"\r\n [editingData]=\"truckPlateNo\"\r\n [disabled]=\"isFormLocked\"\r\n (selected)=\"onTruckPlateSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n\r\n <!-- Dorse Plakas\u0131 -->\r\n <div class=\"mb-3\" *ngIf=\"trailerPlateNo\">\r\n <label class=\"form-label fw-semibold\">{{ 'Kadooglu::TrailerPlate' | abpLocalization }}</label>\r\n <hit-lookup-select\r\n [loadFn]=\"loadTrailerPlates\"\r\n [columns]=\"trailerPlateColumns\"\r\n displayName=\"plateNo\"\r\n [editingData]=\"trailerPlateNo\"\r\n [disabled]=\"isFormLocked\"\r\n (selected)=\"onTrailerPlateSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n\r\n <!-- S\u00FCr\u00FCc\u00FC Ad\u0131 -->\r\n <div class=\"mb-3\">\r\n <label class=\"form-label fw-semibold\">{{ 'Kadooglu::DriverName' | abpLocalization }}</label>\r\n <dx-text-box\r\n [(value)]=\"driverFullName\"\r\n [placeholder]=\"'Kadooglu::EnterDriverName' | abpLocalization\"\r\n [readOnly]=\"isFormLocked\"\r\n width=\"100%\">\r\n </dx-text-box>\r\n </div>\r\n\r\n <!-- TC Kimlik No -->\r\n <div class=\"mb-3\">\r\n <div class=\"d-flex align-items-center gap-2 mb-1\">\r\n <label class=\"form-label fw-semibold mb-0\">{{ isTcCitizen ? ('Kadooglu::TcIdentityNo' | abpLocalization) : 'Kimlik No' }}</label>\r\n <dx-check-box [(value)]=\"isTcCitizen\" text=\"T.C. Vatanda\u015F\u0131\"></dx-check-box>\r\n </div>\r\n <dx-text-box\r\n [(value)]=\"tcNo\"\r\n [placeholder]=\"isTcCitizen ? ('Kadooglu::TcIdentityNo' | abpLocalization) : 'Kimlik No'\"\r\n [readOnly]=\"isFormLocked\"\r\n width=\"100%\">\r\n </dx-text-box>\r\n </div>\r\n\r\n </div>\r\n <div class=\"col-md-6\">\r\n\r\n <!-- \u015Eof\u00F6r Kodu -->\r\n <div class=\"mb-3\">\r\n <label class=\"form-label fw-semibold\">{{ 'Kadooglu::DriverCode' | abpLocalization }}</label>\r\n <hit-lookup-select\r\n [loadFn]=\"loadDrivers\"\r\n [columns]=\"driverColumns\"\r\n displayName=\"name\"\r\n [editingData]=\"driverName\"\r\n [disabled]=\"isFormLocked\"\r\n (selected)=\"onDriverSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n\r\n <!-- Cari -->\r\n <div class=\"mb-3\">\r\n <label class=\"form-label fw-semibold\">{{ 'Kadooglu::BusinessPartner' | abpLocalization }}</label>\r\n <hit-lookup-select\r\n [loadFn]=\"loadAccounts\"\r\n [columns]=\"accountColumns\"\r\n displayName=\"title\"\r\n [editingData]=\"accountTitle\"\r\n [disabled]=\"isFormLocked\"\r\n (selected)=\"onAccountSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n\r\n <!-- Stok Nakli -->\r\n <div class=\"mb-3\">\r\n <label class=\"form-label fw-semibold\">\r\n {{ 'Kadooglu::WaybillNumber' | abpLocalization }}\r\n </label>\r\n <hit-lookup-select\r\n [loadFn]=\"loadWaybills\"\r\n [columns]=\"waybillColumns\"\r\n displayName=\"docNum\"\r\n keyExpr=\"docEntry\"\r\n [editingData]=\"waybillNo\"\r\n [disabled]=\"isFormLocked\"\r\n (selected)=\"onWaybillSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n\r\n <!-- Kantar Kodu -->\r\n <div class=\"mb-3\">\r\n <label class=\"form-label fw-semibold\">{{ 'Kadooglu::ScaleCode' | abpLocalization }}</label>\r\n <hit-lookup-select\r\n [loadFn]=\"loadScales\"\r\n [columns]=\"scaleColumns\"\r\n displayName=\"name\"\r\n [editingData]=\"scaleName\"\r\n [disabled]=\"isFormLocked\"\r\n (selected)=\"onScaleSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n\r\n <!-- Stok Kodu -->\r\n <div class=\"mb-3\">\r\n <label class=\"form-label fw-semibold\">{{ 'Kadooglu::ItemCode' | abpLocalization }}</label>\r\n <hit-lookup-select\r\n [loadFn]=\"loadStockItems\"\r\n [columns]=\"stockItemColumns\"\r\n displayName=\"name\"\r\n [editingData]=\"stockName\"\r\n [disabled]=\"isFormLocked\"\r\n (selected)=\"onStockItemSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n\r\n <!-- Konteyner Numaras\u0131 -->\r\n <div class=\"mb-3\">\r\n <label class=\"form-label fw-semibold\">{{ 'Kadooglu::ContainerNo' | abpLocalization }}</label>\r\n <dx-text-box\r\n [(value)]=\"containerNo\"\r\n [placeholder]=\"'Kadooglu::ManualEntry' | abpLocalization\"\r\n [readOnly]=\"isFormLocked\"\r\n width=\"100%\">\r\n </dx-text-box>\r\n </div>\r\n\r\n <!-- Kalk\u0131\u015F / Var\u0131\u015F Yeri -->\r\n <div class=\"row mb-3\">\r\n <div class=\"col-6\">\r\n <label class=\"form-label fw-semibold\">{{ 'Kadooglu::DeparturePlace' | abpLocalization }}</label>\r\n <dx-text-box\r\n [(value)]=\"departureLocation\"\r\n [disabled]=\"true\"\r\n [placeholder]=\"'Kadooglu::AutoFilledFromWaybill' | abpLocalization\"\r\n width=\"100%\">\r\n </dx-text-box>\r\n </div>\r\n <div class=\"col-6\">\r\n <label class=\"form-label fw-semibold\">{{ 'Kadooglu::ArrivalPlace' | abpLocalization }}</label>\r\n <dx-text-box\r\n [(value)]=\"arrivalLocation\"\r\n [disabled]=\"true\"\r\n width=\"100%\">\r\n </dx-text-box>\r\n </div>\r\n </div>\r\n\r\n <!-- A\u00E7\u0131klama -->\r\n <div class=\"mb-3\">\r\n <label class=\"form-label fw-semibold\">{{ 'Kadooglu::Description' | abpLocalization }}</label>\r\n <dx-text-area\r\n [(value)]=\"description\"\r\n [height]=\"70\"\r\n [readOnly]=\"isFormLocked\"\r\n width=\"100%\">\r\n </dx-text-area>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Phase 1 Alt Butonlar -->\r\n <div class=\"d-flex justify-content-between mt-3 mb-3\">\r\n <button class=\"btn btn-secondary\" (click)=\"goBack()\">\r\n <i class=\"fa fa-arrow-left me-1\"></i> {{ 'Kadooglu::Back' | abpLocalization }}\r\n </button>\r\n <div class=\"d-flex gap-2\">\r\n <abp-button\r\n *ngIf=\"!weighingMode && !isFormLocked\"\r\n iconClass=\"fa fa-save\"\r\n buttonType=\"button\"\r\n [loading]=\"isSaving\"\r\n (click)=\"save()\">\r\n {{ 'Kadooglu::Save' | abpLocalization }}\r\n </abp-button>\r\n <button class=\"btn btn-primary\" (click)=\"ileriGit()\">\r\n {{ 'Kadooglu::Next' | abpLocalization }} <i class=\"fa fa-arrow-right ms-1\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- ========== PHASE 2: Tart\u0131m Paneli ========== -->\r\n <div *ngIf=\"formPhase === 2 && !isFullyCompleted\">\r\n <div class=\"row\">\r\n <div class=\"col-12\">\r\n <div class=\"card\">\r\n <div class=\"card-header fw-bold\">\r\n <i class=\"fa fa-balance-scale me-2\"></i>{{ 'Kadooglu::WeighingPanel' | abpLocalization }}\r\n <span *ngIf=\"weighingMode\" class=\"badge ms-2\"\r\n [ngClass]=\"weighingMode === 'first' ? 'bg-warning text-dark' : 'bg-primary'\">\r\n {{ weighingModeLabel }}\r\n </span>\r\n </div>\r\n <div class=\"card-body\">\r\n\r\n <div class=\"row\">\r\n <div class=\"col-md-6 mx-auto\">\r\n\r\n <!-- Kantardaki De\u011Fer -->\r\n <div class=\"card bg-light mb-3\">\r\n <div class=\"card-body text-center py-4\">\r\n <div class=\"text-muted small mb-1\">{{ 'Kadooglu::ScaleValue' | abpLocalization }}</div>\r\n <div style=\"font-size: 2.5rem; font-weight: bold; letter-spacing: 0.05em;\">\r\n {{ currentScaleValue != null ? (currentScaleValue | number:'1.0-0') + ' kg' : '\u2014 kg' }}\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Tart\u0131m Yap butonu -->\r\n <button\r\n *ngIf=\"!isFullyCompleted\"\r\n class=\"btn btn-primary btn-lg w-100 mb-4\"\r\n (click)=\"doWeighing()\">\r\n <i class=\"fa fa-balance-scale me-2\"></i>\r\n {{ 'Kadooglu::PerformWeighing' | abpLocalization }}\r\n </button>\r\n\r\n <!-- \u0130lk Tart\u0131m -->\r\n <div class=\"mb-3\">\r\n <div class=\"text-muted small fw-semibold text-uppercase mb-1\">{{ 'Kadooglu::FirstWeighing' | abpLocalization }}</div>\r\n <div *ngIf=\"firstWeighingValue != null; else noFirstWeighing\" class=\"card card-body p-2\">\r\n <div class=\"d-flex justify-content-between align-items-center\">\r\n <span class=\"fw-bold fs-5\">{{ firstWeighingValue | number:'1.0-0' }} kg</span>\r\n <span class=\"text-muted small\">{{ 'Kadooglu::Operator' | abpLocalization }}: {{ firstOperatorCode }}</span>\r\n </div>\r\n </div>\r\n <ng-template #noFirstWeighing>\r\n <div class=\"card card-body p-2 text-muted text-center fst-italic\">{{ 'Kadooglu::NotYetDone' | abpLocalization }}</div>\r\n </ng-template>\r\n </div>\r\n\r\n <!-- Son Tart\u0131m -->\r\n <div class=\"mb-3\">\r\n <div class=\"text-muted small fw-semibold text-uppercase mb-1\">{{ 'Kadooglu::LastWeighing' | abpLocalization }}</div>\r\n <div *ngIf=\"lastWeighingValue != null; else noLastWeighing\" class=\"card card-body p-2\">\r\n <div class=\"d-flex justify-content-between align-items-center\">\r\n <span class=\"fw-bold fs-5\">{{ lastWeighingValue | number:'1.0-0' }} kg</span>\r\n <span class=\"text-muted small\">{{ 'Kadooglu::Operator' | abpLocalization }}: {{ lastOperatorCode }}</span>\r\n </div>\r\n </div>\r\n <ng-template #noLastWeighing>\r\n <div class=\"card card-body p-2 text-muted text-center fst-italic\">{{ 'Kadooglu::NotYetDone' | abpLocalization }}</div>\r\n </ng-template>\r\n </div>\r\n\r\n <!-- Net Y\u00FCk (sadece step=3'te g\u00F6ster) -->\r\n <div *ngIf=\"weighingStep === 3 && netWeight != null\" class=\"card border-success mb-3\">\r\n <div class=\"card-body text-center py-3\" style=\"background-color: rgba(25,135,84,0.08);\">\r\n <div class=\"text-success small fw-semibold text-uppercase mb-1\">{{ 'Kadooglu::NetWeight' | abpLocalization }}</div>\r\n <div class=\"text-success fw-bold\" style=\"font-size: 2rem;\">\r\n {{ netWeight | number:'1.0-0' }} kg\r\n </div>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Phase 2 Alt Butonlar -->\r\n <div class=\"d-flex justify-content-between mt-3 mb-3\">\r\n <button class=\"btn btn-secondary\" (click)=\"geriGitPhase()\">\r\n <i class=\"fa fa-arrow-left me-1\"></i> {{ 'Kadooglu::Back' | abpLocalization }}\r\n </button>\r\n <abp-button\r\n *ngIf=\"!isFullyCompleted\"\r\n iconClass=\"fa fa-save\"\r\n buttonType=\"button\"\r\n [loading]=\"isSaving\"\r\n (click)=\"save()\">\r\n {{ 'Kadooglu::Save' | abpLocalization }}\r\n </abp-button>\r\n </div>\r\n </div>\r\n\r\n <!-- ========== SUMMARY: Tamamland\u0131 G\u00F6r\u00FCn\u00FCm\u00FC ========== -->\r\n <div *ngIf=\"isFullyCompleted\">\r\n\r\n <!-- \u00DCst B\u00F6l\u00FCm \u2014 Tart\u0131m Sonu\u00E7 Kartlar\u0131 -->\r\n <div class=\"row mb-4\">\r\n <!-- \u0130lk Tart\u0131m -->\r\n <div class=\"col-md-4 mb-3 mb-md-0\">\r\n <div class=\"bg-white shadow-sm rounded py-3 px-4 h-100\" style=\"border-left: 4px solid #0d6efd;\">\r\n <div class=\"text-uppercase text-muted small fw-semibold mb-1\">{{ 'Kadooglu::FirstWeighing' | abpLocalization }}</div>\r\n <div class=\"fw-bold\" style=\"font-size: 1.75rem; letter-spacing: 0.02em;\">\r\n {{ firstWeighingValue != null ? (firstWeighingValue | number:'1.0-0') + ' kg' : '\u2014 kg' }}\r\n </div>\r\n <div class=\"text-muted small mt-1\">{{ 'Kadooglu::Operator' | abpLocalization }}: {{ firstOperatorCode || '\u2014' }}</div>\r\n </div>\r\n </div>\r\n <!-- Son Tart\u0131m -->\r\n <div class=\"col-md-4 mb-3 mb-md-0\">\r\n <div class=\"bg-white shadow-sm rounded py-3 px-4 h-100\" style=\"border-left: 4px solid #6f42c1;\">\r\n <div class=\"text-uppercase text-muted small fw-semibold mb-1\">{{ 'Kadooglu::LastWeighing' | abpLocalization }}</div>\r\n <div class=\"fw-bold\" style=\"font-size: 1.75rem; letter-spacing: 0.02em;\">\r\n {{ lastWeighingValue != null ? (lastWeighingValue | number:'1.0-0') + ' kg' : '\u2014 kg' }}\r\n </div>\r\n <div class=\"text-muted small mt-1\">{{ 'Kadooglu::Operator' | abpLocalization }}: {{ lastOperatorCode || '\u2014' }}</div>\r\n </div>\r\n </div>\r\n <!-- Net Y\u00FCk -->\r\n <div class=\"col-md-4\">\r\n <div class=\"shadow-sm rounded py-3 px-4 h-100\" style=\"border-left: 4px solid #198754; background: rgba(25,135,84,0.06);\">\r\n <div class=\"text-uppercase text-muted small fw-semibold mb-1\">{{ 'Kadooglu::NetWeight' | abpLocalization }}</div>\r\n <div class=\"fw-bold\" style=\"font-size: 1.75rem; letter-spacing: 0.02em; color: #198754;\">\r\n {{ netWeight != null ? (netWeight | number:'1.0-0') + ' kg' : '\u2014 kg' }}\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Alt B\u00F6l\u00FCm \u2014 Detay Bilgileri -->\r\n <div class=\"card shadow-sm\">\r\n <div class=\"card-header fw-bold\">\r\n <i class=\"fa fa-file-text me-2\"></i>{{ 'Kadooglu::RecordDetails' | abpLocalization }}\r\n </div>\r\n <div class=\"card-body\">\r\n <div class=\"row\">\r\n <!-- Sol S\u00FCtun -->\r\n <div class=\"col-md-6\">\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">{{ 'Kadooglu::Gate' | abpLocalization }}</div>\r\n <div class=\"col-7 fw-medium\">{{ gateName || '\u2014' }}</div>\r\n </div>\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">Ara\u00E7 Hareket T\u00FCr\u00FC</div>\r\n <div class=\"col-7 fw-medium\">{{ entryTypeName || '\u2014' }}</div>\r\n </div>\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">{{ 'Kadooglu::EntryDate' | abpLocalization }}</div>\r\n <div class=\"col-7 fw-medium\">{{ entryDate ? (entryDate | date:'dd.MM.yyyy') : '\u2014' }} {{ entryTime || '' }}</div>\r\n </div>\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">{{ 'Kadooglu::ExitDate' | abpLocalization }}</div>\r\n <div class=\"col-7 fw-medium\">{{ exitDate ? (exitDate | date:'dd.MM.yyyy') : '\u2014' }} {{ exitTime || '' }}</div>\r\n </div>\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">{{ 'Kadooglu::TruckPlate' | abpLocalization }}</div>\r\n <div class=\"col-7 fw-medium\">{{ truckPlateNo || '\u2014' }}</div>\r\n </div>\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">{{ 'Kadooglu::TrailerPlate' | abpLocalization }}</div>\r\n <div class=\"col-7 fw-medium\">{{ trailerPlateNo || '\u2014' }}</div>\r\n </div>\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">{{ 'Kadooglu::DriverName' | abpLocalization }}</div>\r\n <div class=\"col-7 fw-medium\">{{ driverFullName || '\u2014' }}</div>\r\n </div>\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">{{ 'Kadooglu::TcIdentityNo' | abpLocalization }}</div>\r\n <div class=\"col-7 fw-medium\">{{ tcNo || '\u2014' }}</div>\r\n </div>\r\n </div>\r\n <!-- Sa\u011F S\u00FCtun -->\r\n <div class=\"col-md-6\">\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">{{ 'Kadooglu::DriverCode' | abpLocalization }}</div>\r\n <div class=\"col-7 fw-medium\">{{ driverName || '\u2014' }}</div>\r\n </div>\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">{{ 'Kadooglu::BusinessPartner' | abpLocalization }}</div>\r\n <div class=\"col-7 fw-medium\">{{ accountTitle || '\u2014' }}</div>\r\n </div>\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">{{ 'Kadooglu::WaybillNumber' | abpLocalization }}</div>\r\n <div class=\"col-7 fw-medium\">{{ waybillNo || '\u2014' }}</div>\r\n </div>\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">{{ 'Kadooglu::ScaleCode' | abpLocalization }}</div>\r\n <div class=\"col-7 fw-medium\">{{ scaleName || '\u2014' }}</div>\r\n </div>\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">{{ 'Kadooglu::ItemCode' | abpLocalization }}</div>\r\n <div class=\"col-7 fw-medium\">{{ stockName || '\u2014' }}</div>\r\n </div>\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">{{ 'Kadooglu::ContainerNo' | abpLocalization }}</div>\r\n <div class=\"col-7 fw-medium\">{{ containerNo || '\u2014' }}</div>\r\n </div>\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">{{ 'Kadooglu::DepartureToArrival' | abpLocalization }}</div>\r\n <div class=\"col-7 fw-medium\">{{ (departureLocation || '\u2014') + ' \u2192 ' + (arrivalLocation || '\u2014') }}</div>\r\n </div>\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">{{ 'Kadooglu::Description' | abpLocalization }}</div>\r\n <div class=\"col-7 fw-medium\">{{ description || '\u2014' }}</div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Alt Butonlar -->\r\n <div class=\"d-flex justify-content-between mt-3 mb-3\">\r\n <button class=\"btn btn-secondary\" (click)=\"goBack()\">\r\n <i class=\"fa fa-arrow-left me-1\"></i> {{ 'Kadooglu::BackToList' | abpLocalization }}\r\n </button>\r\n <button\r\n *ngIf=\"entryTypeMalGC && record?.u_Status === '2'\"\r\n class=\"btn btn-warning\"\r\n type=\"button\"\r\n [disabled]=\"isDoingGoodsMovement\"\r\n (click)=\"doGoodsMovement()\">\r\n <i [class]=\"isDoingGoodsMovement ? 'fa fa-spinner fa-spin me-1' : 'fa fa-exchange me-1'\" aria-hidden=\"true\"></i>\r\n {{ 'Kadooglu::MalGcYap' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n\r\n</abp-page>\r\n", dependencies: [{ kind: "directive", type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$1.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i4.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: i4.PageToolbarContainerComponent, selector: "abp-page-toolbar-container" }, { kind: "component", type: HitModalComponent, selector: "hit-lookup-select", inputs: ["displayName", "keyExpr", "modalSize", "getFn", "loadFn", "columns", "isVisible", "disabled", "editingData"], outputs: ["selected"] }, { kind: "component", type: i5.DxDateBoxComponent, selector: "dx-date-box", inputs: ["acceptCustomValue", "accessKey", "activeStateEnabled", "adaptivityEnabled", "applyButtonText", "applyValueMode", "buttons", "calendarOptions", "cancelButtonText", "dateOutOfRangeMessage", "dateSerializationFormat", "deferRendering", "disabled", "disabledDates", "displayFormat", "dropDownButtonTemplate", "dropDownOptions", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "inputAttr", "interval", "invalidDateMessage", "isValid", "label", "labelMode", "max", "maxLength", "min", "name", "opened", "openOnFieldClick", "pickerType", "placeholder", "readOnly", "rtlEnabled", "showAnalogClock", "showClearButton", "showDropDownButton", "spellcheck", "stylingMode", "tabIndex", "text", "todayButtonText", "type", "useMaskBehavior", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "valueChangeEvent", "visible", "width"], outputs: ["onChange", "onClosed", "onContentReady", "onCopy", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onKeyDown", "onKeyUp", "onOpened", "onOptionChanged", "onPaste", "onValueChanged", "acceptCustomValueChange", "accessKeyChange", "activeStateEnabledChange", "adaptivityEnabledChange", "applyButtonTextChange", "applyValueModeChange", "buttonsChange", "calendarOptionsChange", "cancelButtonTextChange", "dateOutOfRangeMessageChange", "dateSerializationFormatChange", "deferRenderingChange", "disabledChange", "disabledDatesChange", "displayFormatChange", "dropDownButtonTemplateChange", "dropDownOptionsChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "intervalChange", "invalidDateMessageChange", "isValidChange", "labelChange", "labelModeChange", "maxChange", "maxLengthChange", "minChange", "nameChange", "openedChange", "openOnFieldClickChange", "pickerTypeChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "showAnalogClockChange", "showClearButtonChange", "showDropDownButtonChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "todayButtonTextChange", "typeChange", "useMaskBehaviorChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "component", type: i5.DxTextBoxComponent, selector: "dx-text-box", inputs: ["accessKey", "activeStateEnabled", "buttons", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "inputAttr", "isValid", "label", "labelMode", "mask", "maskChar", "maskInvalidMessage", "maskRules", "maxLength", "mode", "name", "placeholder", "readOnly", "rtlEnabled", "showClearButton", "showMaskMode", "spellcheck", "stylingMode", "tabIndex", "text", "useMaskedValue", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "valueChangeEvent", "visible", "width"], outputs: ["onChange", "onContentReady", "onCopy", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onKeyDown", "onKeyUp", "onOptionChanged", "onPaste", "onValueChanged", "accessKeyChange", "activeStateEnabledChange", "buttonsChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isValidChange", "labelChange", "labelModeChange", "maskChange", "maskCharChange", "maskInvalidMessageChange", "maskRulesChange", "maxLengthChange", "modeChange", "nameChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "showClearButtonChange", "showMaskModeChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "useMaskedValueChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "component", type: i5.DxTextAreaComponent, selector: "dx-text-area", inputs: ["accessKey", "activeStateEnabled", "autoResizeEnabled", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "inputAttr", "isValid", "label", "labelMode", "maxHeight", "maxLength", "minHeight", "name", "placeholder", "readOnly", "rtlEnabled", "spellcheck", "stylingMode", "tabIndex", "text", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "valueChangeEvent", "visible", "width"], outputs: ["onChange", "onContentReady", "onCopy", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onKeyDown", "onKeyUp", "onOptionChanged", "onPaste", "onValueChanged", "accessKeyChange", "activeStateEnabledChange", "autoResizeEnabledChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isValidChange", "labelChange", "labelModeChange", "maxHeightChange", "maxLengthChange", "minHeightChange", "nameChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "component", type: i5.DxCheckBoxComponent, selector: "dx-check-box", inputs: ["accessKey", "activeStateEnabled", "disabled", "elementAttr", "enableThreeStateBehavior", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "iconSize", "isValid", "name", "readOnly", "rtlEnabled", "tabIndex", "text", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "visible", "width"], outputs: ["onContentReady", "onDisposing", "onInitialized", "onOptionChanged", "onValueChanged", "accessKeyChange", "activeStateEnabledChange", "disabledChange", "elementAttrChange", "enableThreeStateBehaviorChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "iconSizeChange", "isValidChange", "nameChange", "readOnlyChange", "rtlEnabledChange", "tabIndexChange", "textChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "pipe", type: i6.DecimalPipe, name: "number" }, { kind: "pipe", type: i6.DatePipe, name: "date" }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
1834
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitEntryWeighingFormComponent, decorators: [{
1835
+ type: Component,
1836
+ args: [{ selector: 'lib-hit-entry-weighing-form', template: "<abp-page [breadcrumb]=\"false\">\r\n <abp-page-toolbar-container class=\"col\">\r\n <div class=\"row align-items-center\">\r\n <div class=\"col\">\r\n <h3 class=\"page-title\">\r\n {{ 'Kadooglu::EntryWeighingTitle' | abpLocalization }}\r\n <span *ngIf=\"weighingMode\" class=\"badge ms-2 fs-6\"\r\n [ngClass]=\"{\r\n 'bg-warning text-dark': weighingMode === 'first',\r\n 'bg-primary': weighingMode === 'last'\r\n }\">\r\n {{ weighingModeLabel }}\r\n </span>\r\n <span *ngIf=\"!weighingMode\" class=\"badge ms-2 fs-6\"\r\n [ngClass]=\"{\r\n 'bg-secondary': weighingStep === 1,\r\n 'bg-info': weighingStep === 2,\r\n 'bg-success': weighingStep === 3\r\n }\">\r\n {{ (weighingStep === 1 ? 'Kadooglu::RecordStep' : weighingStep === 2 ? 'Kadooglu::FirstWeighing' : 'Kadooglu::Completed') | abpLocalization }}\r\n </span>\r\n </h3>\r\n </div>\r\n </div>\r\n </abp-page-toolbar-container>\r\n\r\n <!-- Step Indicator -->\r\n <div class=\"card mb-3\">\r\n <div class=\"card-body py-3\">\r\n <div class=\"d-flex align-items-center justify-content-center\">\r\n\r\n <!-- Step 1: Ara\u00E7 & Belge -->\r\n <div class=\"d-flex flex-column align-items-center\">\r\n <div class=\"rounded-circle d-flex align-items-center justify-content-center fw-bold text-white\"\r\n style=\"width:40px; height:40px; font-size:1rem;\"\r\n [style.background-color]=\"formPhase > 1 || isFullyCompleted ? '#198754' : (formPhase === 1 ? '#0d6efd' : '#6c757d')\">\r\n <i *ngIf=\"formPhase > 1 || isFullyCompleted\" class=\"fa fa-check\"></i>\r\n <span *ngIf=\"formPhase <= 1 && !isFullyCompleted\">1</span>\r\n </div>\r\n <small class=\"mt-1 fw-semibold\" [class.text-success]=\"formPhase > 1 || isFullyCompleted\" [class.text-primary]=\"formPhase === 1 && !isFullyCompleted\">{{ 'Kadooglu::VehicleAndDocument' | abpLocalization }}</small>\r\n </div>\r\n\r\n <div class=\"flex-grow-1 mx-2\" style=\"height:3px; max-width:120px;\"\r\n [style.background-color]=\"formPhase > 1 ? '#198754' : '#dee2e6'\"></div>\r\n\r\n <!-- Step 2: Tart\u0131m -->\r\n <div class=\"d-flex flex-column align-items-center\">\r\n <div class=\"rounded-circle d-flex align-items-center justify-content-center fw-bold text-white\"\r\n style=\"width:40px; height:40px; font-size:1rem;\"\r\n [style.background-color]=\"weighingStep === 3 ? '#198754' : (formPhase === 2 ? '#0d6efd' : '#6c757d')\">\r\n <i *ngIf=\"weighingStep === 3\" class=\"fa fa-check\"></i>\r\n <span *ngIf=\"weighingStep < 3\">2</span>\r\n </div>\r\n <small class=\"mt-1 fw-semibold\" [class.text-success]=\"weighingStep === 3\" [class.text-primary]=\"formPhase === 2 && weighingStep < 3\" [class.text-muted]=\"formPhase < 2 && weighingStep < 3\">{{ 'Kadooglu::WeighingStep' | abpLocalization }}</small>\r\n </div>\r\n\r\n <div class=\"flex-grow-1 mx-2\" style=\"height:3px; max-width:120px;\"\r\n [style.background-color]=\"weighingStep === 3 ? '#198754' : '#dee2e6'\"></div>\r\n\r\n <!-- Step 3: Tamamland\u0131 -->\r\n <div class=\"d-flex flex-column align-items-center\">\r\n <div class=\"rounded-circle d-flex align-items-center justify-content-center fw-bold text-white\"\r\n style=\"width:40px; height:40px; font-size:1rem;\"\r\n [style.background-color]=\"weighingStep === 3 ? '#198754' : '#6c757d'\">\r\n <i *ngIf=\"weighingStep === 3\" class=\"fa fa-check\"></i>\r\n <span *ngIf=\"weighingStep < 3\">3</span>\r\n </div>\r\n <small class=\"mt-1 fw-semibold\" [class.text-success]=\"weighingStep === 3\" [class.text-muted]=\"weighingStep < 3\">{{ 'Kadooglu::Completed' | abpLocalization }}</small>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- ========== PHASE 1: Ara\u00E7 & Belge ========== -->\r\n <div *ngIf=\"formPhase === 1 && !isFullyCompleted\">\r\n <div class=\"row\">\r\n <div class=\"col-12\">\r\n <div class=\"card\">\r\n <div class=\"card-header fw-bold\">\r\n <i class=\"fa fa-truck me-2\"></i>{{ 'Kadooglu::VehicleAndDocument' | abpLocalization }}\r\n </div>\r\n <div class=\"card-body\">\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n\r\n <!-- Kap\u0131 Se\u00E7imi -->\r\n <div class=\"mb-3\">\r\n <label class=\"form-label fw-semibold\">{{ 'Kadooglu::GateSelection' | abpLocalization }}</label>\r\n <hit-lookup-select\r\n [loadFn]=\"loadGates\"\r\n [columns]=\"gateColumns\"\r\n displayName=\"name\"\r\n [editingData]=\"gateName\"\r\n [disabled]=\"isFormLocked\"\r\n (selected)=\"onGateSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n\r\n <!-- Giri\u015F Tipi -->\r\n <div class=\"mb-3\">\r\n <label class=\"form-label fw-semibold\">Ara\u00E7 Hareket T\u00FCr\u00FC</label>\r\n <hit-lookup-select\r\n [loadFn]=\"loadVehicleTypes\"\r\n [columns]=\"vehicleTypeColumns\"\r\n displayName=\"name\"\r\n [editingData]=\"entryTypeName\"\r\n [disabled]=\"isFormLocked\"\r\n (selected)=\"onVehicleTypeSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n\r\n <!-- Ara\u00E7 Giri\u015F Tarihi / Saati -->\r\n <div class=\"mb-3\">\r\n <label class=\"form-label fw-semibold\">{{ 'Kadooglu::EntryDate' | abpLocalization }}</label>\r\n <dx-date-box\r\n [value]=\"entryDateTime\"\r\n type=\"datetime\"\r\n displayFormat=\"dd.MM.yyyy HH:mm\"\r\n [disabled]=\"true\"\r\n width=\"100%\">\r\n </dx-date-box>\r\n </div>\r\n\r\n <!-- Ara\u00E7 \u00C7\u0131k\u0131\u015F Tarihi / Saati -->\r\n <div class=\"mb-3\">\r\n <label class=\"form-label fw-semibold\">{{ 'Kadooglu::ExitDate' | abpLocalization }}</label>\r\n <dx-date-box\r\n [value]=\"exitDateTime\"\r\n type=\"datetime\"\r\n displayFormat=\"dd.MM.yyyy HH:mm\"\r\n [disabled]=\"true\"\r\n width=\"100%\">\r\n </dx-date-box>\r\n </div>\r\n\r\n <!-- Kamyon / Ara\u00E7 Plakas\u0131 -->\r\n <div class=\"mb-3\">\r\n <label class=\"form-label fw-semibold\">\r\n {{ 'Kadooglu::TruckPlate' | abpLocalization }}\r\n <span class=\"text-danger\">*</span>\r\n </label>\r\n <hit-lookup-select\r\n [loadFn]=\"loadTruckPlates\"\r\n [columns]=\"truckPlateColumns\"\r\n displayName=\"plateNo\"\r\n [editingData]=\"truckPlateNo\"\r\n [disabled]=\"isFormLocked\"\r\n (selected)=\"onTruckPlateSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n\r\n <!-- Dorse Plakas\u0131 -->\r\n <div class=\"mb-3\" *ngIf=\"trailerPlateNo\">\r\n <label class=\"form-label fw-semibold\">{{ 'Kadooglu::TrailerPlate' | abpLocalization }}</label>\r\n <hit-lookup-select\r\n [loadFn]=\"loadTrailerPlates\"\r\n [columns]=\"trailerPlateColumns\"\r\n displayName=\"plateNo\"\r\n [editingData]=\"trailerPlateNo\"\r\n [disabled]=\"isFormLocked\"\r\n (selected)=\"onTrailerPlateSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n\r\n <!-- S\u00FCr\u00FCc\u00FC Ad\u0131 -->\r\n <div class=\"mb-3\">\r\n <label class=\"form-label fw-semibold\">{{ 'Kadooglu::DriverName' | abpLocalization }}</label>\r\n <dx-text-box\r\n [(value)]=\"driverFullName\"\r\n [placeholder]=\"'Kadooglu::EnterDriverName' | abpLocalization\"\r\n [readOnly]=\"isFormLocked\"\r\n width=\"100%\">\r\n </dx-text-box>\r\n </div>\r\n\r\n <!-- TC Kimlik No -->\r\n <div class=\"mb-3\">\r\n <div class=\"d-flex align-items-center gap-2 mb-1\">\r\n <label class=\"form-label fw-semibold mb-0\">{{ isTcCitizen ? ('Kadooglu::TcIdentityNo' | abpLocalization) : 'Kimlik No' }}</label>\r\n <dx-check-box [(value)]=\"isTcCitizen\" text=\"T.C. Vatanda\u015F\u0131\"></dx-check-box>\r\n </div>\r\n <dx-text-box\r\n [(value)]=\"tcNo\"\r\n [placeholder]=\"isTcCitizen ? ('Kadooglu::TcIdentityNo' | abpLocalization) : 'Kimlik No'\"\r\n [readOnly]=\"isFormLocked\"\r\n width=\"100%\">\r\n </dx-text-box>\r\n </div>\r\n\r\n </div>\r\n <div class=\"col-md-6\">\r\n\r\n <!-- \u015Eof\u00F6r Kodu -->\r\n <div class=\"mb-3\">\r\n <label class=\"form-label fw-semibold\">{{ 'Kadooglu::DriverCode' | abpLocalization }}</label>\r\n <hit-lookup-select\r\n [loadFn]=\"loadDrivers\"\r\n [columns]=\"driverColumns\"\r\n displayName=\"name\"\r\n [editingData]=\"driverName\"\r\n [disabled]=\"isFormLocked\"\r\n (selected)=\"onDriverSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n\r\n <!-- Cari -->\r\n <div class=\"mb-3\">\r\n <label class=\"form-label fw-semibold\">{{ 'Kadooglu::BusinessPartner' | abpLocalization }}</label>\r\n <hit-lookup-select\r\n [loadFn]=\"loadAccounts\"\r\n [columns]=\"accountColumns\"\r\n displayName=\"title\"\r\n [editingData]=\"accountTitle\"\r\n [disabled]=\"isFormLocked\"\r\n (selected)=\"onAccountSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n\r\n <!-- Stok Nakli -->\r\n <div class=\"mb-3\">\r\n <label class=\"form-label fw-semibold\">\r\n {{ 'Kadooglu::WaybillNumber' | abpLocalization }}\r\n </label>\r\n <hit-lookup-select\r\n [loadFn]=\"loadWaybills\"\r\n [columns]=\"waybillColumns\"\r\n displayName=\"docNum\"\r\n keyExpr=\"docEntry\"\r\n [editingData]=\"waybillNo\"\r\n [disabled]=\"isFormLocked\"\r\n (selected)=\"onWaybillSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n\r\n <!-- Kantar Kodu -->\r\n <div class=\"mb-3\">\r\n <label class=\"form-label fw-semibold\">{{ 'Kadooglu::ScaleCode' | abpLocalization }}</label>\r\n <hit-lookup-select\r\n [loadFn]=\"loadScales\"\r\n [columns]=\"scaleColumns\"\r\n displayName=\"name\"\r\n [editingData]=\"scaleName\"\r\n [disabled]=\"isFormLocked\"\r\n (selected)=\"onScaleSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n\r\n <!-- Stok Kodu -->\r\n <div class=\"mb-3\">\r\n <label class=\"form-label fw-semibold\">{{ 'Kadooglu::ItemCode' | abpLocalization }}</label>\r\n <hit-lookup-select\r\n [loadFn]=\"loadStockItems\"\r\n [columns]=\"stockItemColumns\"\r\n displayName=\"name\"\r\n [editingData]=\"stockName\"\r\n [disabled]=\"isFormLocked\"\r\n (selected)=\"onStockItemSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n\r\n <!-- Konteyner Numaras\u0131 -->\r\n <div class=\"mb-3\">\r\n <label class=\"form-label fw-semibold\">{{ 'Kadooglu::ContainerNo' | abpLocalization }}</label>\r\n <dx-text-box\r\n [(value)]=\"containerNo\"\r\n [placeholder]=\"'Kadooglu::ManualEntry' | abpLocalization\"\r\n [readOnly]=\"isFormLocked\"\r\n width=\"100%\">\r\n </dx-text-box>\r\n </div>\r\n\r\n <!-- Kalk\u0131\u015F / Var\u0131\u015F Yeri -->\r\n <div class=\"row mb-3\">\r\n <div class=\"col-6\">\r\n <label class=\"form-label fw-semibold\">{{ 'Kadooglu::DeparturePlace' | abpLocalization }}</label>\r\n <dx-text-box\r\n [(value)]=\"departureLocation\"\r\n [disabled]=\"true\"\r\n [placeholder]=\"'Kadooglu::AutoFilledFromWaybill' | abpLocalization\"\r\n width=\"100%\">\r\n </dx-text-box>\r\n </div>\r\n <div class=\"col-6\">\r\n <label class=\"form-label fw-semibold\">{{ 'Kadooglu::ArrivalPlace' | abpLocalization }}</label>\r\n <dx-text-box\r\n [(value)]=\"arrivalLocation\"\r\n [disabled]=\"true\"\r\n width=\"100%\">\r\n </dx-text-box>\r\n </div>\r\n </div>\r\n\r\n <!-- A\u00E7\u0131klama -->\r\n <div class=\"mb-3\">\r\n <label class=\"form-label fw-semibold\">{{ 'Kadooglu::Description' | abpLocalization }}</label>\r\n <dx-text-area\r\n [(value)]=\"description\"\r\n [height]=\"70\"\r\n [readOnly]=\"isFormLocked\"\r\n width=\"100%\">\r\n </dx-text-area>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Phase 1 Alt Butonlar -->\r\n <div class=\"d-flex justify-content-between mt-3 mb-3\">\r\n <button class=\"btn btn-secondary\" (click)=\"goBack()\">\r\n <i class=\"fa fa-arrow-left me-1\"></i> {{ 'Kadooglu::Back' | abpLocalization }}\r\n </button>\r\n <div class=\"d-flex gap-2\">\r\n <abp-button\r\n *ngIf=\"!weighingMode && !isFormLocked\"\r\n iconClass=\"fa fa-save\"\r\n buttonType=\"button\"\r\n [loading]=\"isSaving\"\r\n (click)=\"save()\">\r\n {{ 'Kadooglu::Save' | abpLocalization }}\r\n </abp-button>\r\n <button class=\"btn btn-primary\" (click)=\"ileriGit()\">\r\n {{ 'Kadooglu::Next' | abpLocalization }} <i class=\"fa fa-arrow-right ms-1\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- ========== PHASE 2: Tart\u0131m Paneli ========== -->\r\n <div *ngIf=\"formPhase === 2 && !isFullyCompleted\">\r\n <div class=\"row\">\r\n <div class=\"col-12\">\r\n <div class=\"card\">\r\n <div class=\"card-header fw-bold\">\r\n <i class=\"fa fa-balance-scale me-2\"></i>{{ 'Kadooglu::WeighingPanel' | abpLocalization }}\r\n <span *ngIf=\"weighingMode\" class=\"badge ms-2\"\r\n [ngClass]=\"weighingMode === 'first' ? 'bg-warning text-dark' : 'bg-primary'\">\r\n {{ weighingModeLabel }}\r\n </span>\r\n </div>\r\n <div class=\"card-body\">\r\n\r\n <div class=\"row\">\r\n <div class=\"col-md-6 mx-auto\">\r\n\r\n <!-- Kantardaki De\u011Fer -->\r\n <div class=\"card bg-light mb-3\">\r\n <div class=\"card-body text-center py-4\">\r\n <div class=\"text-muted small mb-1\">{{ 'Kadooglu::ScaleValue' | abpLocalization }}</div>\r\n <div style=\"font-size: 2.5rem; font-weight: bold; letter-spacing: 0.05em;\">\r\n {{ currentScaleValue != null ? (currentScaleValue | number:'1.0-0') + ' kg' : '\u2014 kg' }}\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Tart\u0131m Yap butonu -->\r\n <button\r\n *ngIf=\"!isFullyCompleted\"\r\n class=\"btn btn-primary btn-lg w-100 mb-4\"\r\n (click)=\"doWeighing()\">\r\n <i class=\"fa fa-balance-scale me-2\"></i>\r\n {{ 'Kadooglu::PerformWeighing' | abpLocalization }}\r\n </button>\r\n\r\n <!-- \u0130lk Tart\u0131m -->\r\n <div class=\"mb-3\">\r\n <div class=\"text-muted small fw-semibold text-uppercase mb-1\">{{ 'Kadooglu::FirstWeighing' | abpLocalization }}</div>\r\n <div *ngIf=\"firstWeighingValue != null; else noFirstWeighing\" class=\"card card-body p-2\">\r\n <div class=\"d-flex justify-content-between align-items-center\">\r\n <span class=\"fw-bold fs-5\">{{ firstWeighingValue | number:'1.0-0' }} kg</span>\r\n <span class=\"text-muted small\">{{ 'Kadooglu::Operator' | abpLocalization }}: {{ firstOperatorCode }}</span>\r\n </div>\r\n </div>\r\n <ng-template #noFirstWeighing>\r\n <div class=\"card card-body p-2 text-muted text-center fst-italic\">{{ 'Kadooglu::NotYetDone' | abpLocalization }}</div>\r\n </ng-template>\r\n </div>\r\n\r\n <!-- Son Tart\u0131m -->\r\n <div class=\"mb-3\">\r\n <div class=\"text-muted small fw-semibold text-uppercase mb-1\">{{ 'Kadooglu::LastWeighing' | abpLocalization }}</div>\r\n <div *ngIf=\"lastWeighingValue != null; else noLastWeighing\" class=\"card card-body p-2\">\r\n <div class=\"d-flex justify-content-between align-items-center\">\r\n <span class=\"fw-bold fs-5\">{{ lastWeighingValue | number:'1.0-0' }} kg</span>\r\n <span class=\"text-muted small\">{{ 'Kadooglu::Operator' | abpLocalization }}: {{ lastOperatorCode }}</span>\r\n </div>\r\n </div>\r\n <ng-template #noLastWeighing>\r\n <div class=\"card card-body p-2 text-muted text-center fst-italic\">{{ 'Kadooglu::NotYetDone' | abpLocalization }}</div>\r\n </ng-template>\r\n </div>\r\n\r\n <!-- Net Y\u00FCk (sadece step=3'te g\u00F6ster) -->\r\n <div *ngIf=\"weighingStep === 3 && netWeight != null\" class=\"card border-success mb-3\">\r\n <div class=\"card-body text-center py-3\" style=\"background-color: rgba(25,135,84,0.08);\">\r\n <div class=\"text-success small fw-semibold text-uppercase mb-1\">{{ 'Kadooglu::NetWeight' | abpLocalization }}</div>\r\n <div class=\"text-success fw-bold\" style=\"font-size: 2rem;\">\r\n {{ netWeight | number:'1.0-0' }} kg\r\n </div>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Phase 2 Alt Butonlar -->\r\n <div class=\"d-flex justify-content-between mt-3 mb-3\">\r\n <button class=\"btn btn-secondary\" (click)=\"geriGitPhase()\">\r\n <i class=\"fa fa-arrow-left me-1\"></i> {{ 'Kadooglu::Back' | abpLocalization }}\r\n </button>\r\n <abp-button\r\n *ngIf=\"!isFullyCompleted\"\r\n iconClass=\"fa fa-save\"\r\n buttonType=\"button\"\r\n [loading]=\"isSaving\"\r\n (click)=\"save()\">\r\n {{ 'Kadooglu::Save' | abpLocalization }}\r\n </abp-button>\r\n </div>\r\n </div>\r\n\r\n <!-- ========== SUMMARY: Tamamland\u0131 G\u00F6r\u00FCn\u00FCm\u00FC ========== -->\r\n <div *ngIf=\"isFullyCompleted\">\r\n\r\n <!-- \u00DCst B\u00F6l\u00FCm \u2014 Tart\u0131m Sonu\u00E7 Kartlar\u0131 -->\r\n <div class=\"row mb-4\">\r\n <!-- \u0130lk Tart\u0131m -->\r\n <div class=\"col-md-4 mb-3 mb-md-0\">\r\n <div class=\"bg-white shadow-sm rounded py-3 px-4 h-100\" style=\"border-left: 4px solid #0d6efd;\">\r\n <div class=\"text-uppercase text-muted small fw-semibold mb-1\">{{ 'Kadooglu::FirstWeighing' | abpLocalization }}</div>\r\n <div class=\"fw-bold\" style=\"font-size: 1.75rem; letter-spacing: 0.02em;\">\r\n {{ firstWeighingValue != null ? (firstWeighingValue | number:'1.0-0') + ' kg' : '\u2014 kg' }}\r\n </div>\r\n <div class=\"text-muted small mt-1\">{{ 'Kadooglu::Operator' | abpLocalization }}: {{ firstOperatorCode || '\u2014' }}</div>\r\n </div>\r\n </div>\r\n <!-- Son Tart\u0131m -->\r\n <div class=\"col-md-4 mb-3 mb-md-0\">\r\n <div class=\"bg-white shadow-sm rounded py-3 px-4 h-100\" style=\"border-left: 4px solid #6f42c1;\">\r\n <div class=\"text-uppercase text-muted small fw-semibold mb-1\">{{ 'Kadooglu::LastWeighing' | abpLocalization }}</div>\r\n <div class=\"fw-bold\" style=\"font-size: 1.75rem; letter-spacing: 0.02em;\">\r\n {{ lastWeighingValue != null ? (lastWeighingValue | number:'1.0-0') + ' kg' : '\u2014 kg' }}\r\n </div>\r\n <div class=\"text-muted small mt-1\">{{ 'Kadooglu::Operator' | abpLocalization }}: {{ lastOperatorCode || '\u2014' }}</div>\r\n </div>\r\n </div>\r\n <!-- Net Y\u00FCk -->\r\n <div class=\"col-md-4\">\r\n <div class=\"shadow-sm rounded py-3 px-4 h-100\" style=\"border-left: 4px solid #198754; background: rgba(25,135,84,0.06);\">\r\n <div class=\"text-uppercase text-muted small fw-semibold mb-1\">{{ 'Kadooglu::NetWeight' | abpLocalization }}</div>\r\n <div class=\"fw-bold\" style=\"font-size: 1.75rem; letter-spacing: 0.02em; color: #198754;\">\r\n {{ netWeight != null ? (netWeight | number:'1.0-0') + ' kg' : '\u2014 kg' }}\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Alt B\u00F6l\u00FCm \u2014 Detay Bilgileri -->\r\n <div class=\"card shadow-sm\">\r\n <div class=\"card-header fw-bold\">\r\n <i class=\"fa fa-file-text me-2\"></i>{{ 'Kadooglu::RecordDetails' | abpLocalization }}\r\n </div>\r\n <div class=\"card-body\">\r\n <div class=\"row\">\r\n <!-- Sol S\u00FCtun -->\r\n <div class=\"col-md-6\">\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">{{ 'Kadooglu::Gate' | abpLocalization }}</div>\r\n <div class=\"col-7 fw-medium\">{{ gateName || '\u2014' }}</div>\r\n </div>\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">Ara\u00E7 Hareket T\u00FCr\u00FC</div>\r\n <div class=\"col-7 fw-medium\">{{ entryTypeName || '\u2014' }}</div>\r\n </div>\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">{{ 'Kadooglu::EntryDate' | abpLocalization }}</div>\r\n <div class=\"col-7 fw-medium\">{{ entryDate ? (entryDate | date:'dd.MM.yyyy') : '\u2014' }} {{ entryTime || '' }}</div>\r\n </div>\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">{{ 'Kadooglu::ExitDate' | abpLocalization }}</div>\r\n <div class=\"col-7 fw-medium\">{{ exitDate ? (exitDate | date:'dd.MM.yyyy') : '\u2014' }} {{ exitTime || '' }}</div>\r\n </div>\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">{{ 'Kadooglu::TruckPlate' | abpLocalization }}</div>\r\n <div class=\"col-7 fw-medium\">{{ truckPlateNo || '\u2014' }}</div>\r\n </div>\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">{{ 'Kadooglu::TrailerPlate' | abpLocalization }}</div>\r\n <div class=\"col-7 fw-medium\">{{ trailerPlateNo || '\u2014' }}</div>\r\n </div>\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">{{ 'Kadooglu::DriverName' | abpLocalization }}</div>\r\n <div class=\"col-7 fw-medium\">{{ driverFullName || '\u2014' }}</div>\r\n </div>\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">{{ 'Kadooglu::TcIdentityNo' | abpLocalization }}</div>\r\n <div class=\"col-7 fw-medium\">{{ tcNo || '\u2014' }}</div>\r\n </div>\r\n </div>\r\n <!-- Sa\u011F S\u00FCtun -->\r\n <div class=\"col-md-6\">\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">{{ 'Kadooglu::DriverCode' | abpLocalization }}</div>\r\n <div class=\"col-7 fw-medium\">{{ driverName || '\u2014' }}</div>\r\n </div>\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">{{ 'Kadooglu::BusinessPartner' | abpLocalization }}</div>\r\n <div class=\"col-7 fw-medium\">{{ accountTitle || '\u2014' }}</div>\r\n </div>\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">{{ 'Kadooglu::WaybillNumber' | abpLocalization }}</div>\r\n <div class=\"col-7 fw-medium\">{{ waybillNo || '\u2014' }}</div>\r\n </div>\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">{{ 'Kadooglu::ScaleCode' | abpLocalization }}</div>\r\n <div class=\"col-7 fw-medium\">{{ scaleName || '\u2014' }}</div>\r\n </div>\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">{{ 'Kadooglu::ItemCode' | abpLocalization }}</div>\r\n <div class=\"col-7 fw-medium\">{{ stockName || '\u2014' }}</div>\r\n </div>\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">{{ 'Kadooglu::ContainerNo' | abpLocalization }}</div>\r\n <div class=\"col-7 fw-medium\">{{ containerNo || '\u2014' }}</div>\r\n </div>\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">{{ 'Kadooglu::DepartureToArrival' | abpLocalization }}</div>\r\n <div class=\"col-7 fw-medium\">{{ (departureLocation || '\u2014') + ' \u2192 ' + (arrivalLocation || '\u2014') }}</div>\r\n </div>\r\n <div class=\"row mb-2 py-1\" style=\"border-bottom: 1px solid #f0f0f0;\">\r\n <div class=\"col-5 text-muted small fw-semibold\">{{ 'Kadooglu::Description' | abpLocalization }}</div>\r\n <div class=\"col-7 fw-medium\">{{ description || '\u2014' }}</div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Alt Butonlar -->\r\n <div class=\"d-flex justify-content-between mt-3 mb-3\">\r\n <button class=\"btn btn-secondary\" (click)=\"goBack()\">\r\n <i class=\"fa fa-arrow-left me-1\"></i> {{ 'Kadooglu::BackToList' | abpLocalization }}\r\n </button>\r\n <button\r\n *ngIf=\"entryTypeMalGC && record?.u_Status === '2'\"\r\n class=\"btn btn-warning\"\r\n type=\"button\"\r\n [disabled]=\"isDoingGoodsMovement\"\r\n (click)=\"doGoodsMovement()\">\r\n <i [class]=\"isDoingGoodsMovement ? 'fa fa-spinner fa-spin me-1' : 'fa fa-exchange me-1'\" aria-hidden=\"true\"></i>\r\n {{ 'Kadooglu::MalGcYap' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n\r\n</abp-page>\r\n" }]
1837
+ }], ctorParameters: function () { return [{ type: HitEntryWeighingService }, { type: HitStockTransferService }, { type: i2$1.ConfirmationService }, { type: i2$1.ToasterService }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: i1.LocalizationService }]; } });
1838
+
1839
+ const routes$7 = [
1840
+ { path: '', component: HitEntryWeighingListComponent },
1841
+ { path: 'new', component: HitEntryWeighingFormComponent },
1842
+ { path: ':id', component: HitEntryWeighingFormComponent },
1843
+ ];
1844
+ class HitEntryWeighingRoutingModule {
1845
+ }
1846
+ HitEntryWeighingRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitEntryWeighingRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1847
+ HitEntryWeighingRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitEntryWeighingRoutingModule, imports: [i1$1.RouterModule], exports: [RouterModule] });
1848
+ HitEntryWeighingRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitEntryWeighingRoutingModule, imports: [RouterModule.forChild(routes$7), RouterModule] });
1849
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitEntryWeighingRoutingModule, decorators: [{
1850
+ type: NgModule,
1851
+ args: [{
1852
+ imports: [RouterModule.forChild(routes$7)],
1853
+ exports: [RouterModule],
1854
+ }]
1855
+ }] });
1856
+
1857
+ class HitEntryWeighingModule {
1858
+ }
1859
+ HitEntryWeighingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitEntryWeighingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1860
+ HitEntryWeighingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitEntryWeighingModule, declarations: [HitEntryWeighingListComponent, HitEntryWeighingFormComponent], imports: [CommonModule,
1861
+ FormsModule,
1862
+ CoreModule,
1863
+ ThemeSharedModule,
1864
+ PageModule,
1865
+ CommercialUiModule,
1866
+ HitEntryWeighingRoutingModule,
1867
+ HitUIModule,
1868
+ DxDataGridModule,
1869
+ DxDateBoxModule,
1870
+ DxTextBoxModule,
1871
+ DxTextAreaModule,
1872
+ DxNumberBoxModule,
1873
+ DxButtonModule,
1874
+ NgbDropdownModule,
1875
+ DxCheckBoxModule] });
1876
+ HitEntryWeighingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitEntryWeighingModule, imports: [CommonModule,
1877
+ FormsModule,
1878
+ CoreModule,
1879
+ ThemeSharedModule,
1880
+ PageModule,
1881
+ CommercialUiModule,
1882
+ HitEntryWeighingRoutingModule,
1883
+ HitUIModule,
1884
+ DxDataGridModule,
1885
+ DxDateBoxModule,
1886
+ DxTextBoxModule,
1887
+ DxTextAreaModule,
1888
+ DxNumberBoxModule,
1889
+ DxButtonModule,
1890
+ NgbDropdownModule,
1891
+ DxCheckBoxModule] });
1892
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitEntryWeighingModule, decorators: [{
1893
+ type: NgModule,
1894
+ args: [{
1895
+ declarations: [HitEntryWeighingListComponent, HitEntryWeighingFormComponent],
1896
+ imports: [
1897
+ CommonModule,
1898
+ FormsModule,
1899
+ CoreModule,
1900
+ ThemeSharedModule,
1901
+ PageModule,
1902
+ CommercialUiModule,
1903
+ HitEntryWeighingRoutingModule,
1904
+ HitUIModule,
1905
+ DxDataGridModule,
1906
+ DxDateBoxModule,
1907
+ DxTextBoxModule,
1908
+ DxTextAreaModule,
1909
+ DxNumberBoxModule,
1910
+ DxButtonModule,
1911
+ NgbDropdownModule,
1912
+ DxCheckBoxModule
1913
+ ],
1914
+ }]
1915
+ }] });
1916
+ function loadHitEntryWeighingModuleAsChild() {
1917
+ return Promise.resolve(HitEntryWeighingModule);
1918
+ }
1919
+
1920
+ class HitWarehouseService {
1921
+ constructor(restService) {
1922
+ this.restService = restService;
1923
+ this.apiName = 'Kadooglu';
1924
+ this.baseUrl = '/api/entegration-service/warehouses';
1925
+ }
1926
+ getList() {
1927
+ return this.restService.request({ method: 'GET', url: this.baseUrl }, { apiName: this.apiName }).pipe(map$1(response => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.items) !== null && _a !== void 0 ? _a : []; }));
1928
+ }
1929
+ }
1930
+ HitWarehouseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitWarehouseService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
1931
+ HitWarehouseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitWarehouseService, providedIn: 'root' });
1932
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitWarehouseService, decorators: [{
1933
+ type: Injectable,
1934
+ args: [{ providedIn: 'root' }]
1935
+ }], ctorParameters: function () { return [{ type: i1.RestService }]; } });
1936
+
1937
+ class HitVehicleTypeFormComponent {
1938
+ constructor(service, warehouseService, confirmation) {
1939
+ this.service = service;
1940
+ this.warehouseService = warehouseService;
1941
+ this.confirmation = confirmation;
1942
+ this.visible = false;
1943
+ this.visibleChange = new EventEmitter();
1944
+ this.record = null;
1945
+ this.saved = new EventEmitter();
1946
+ this.cancelled = new EventEmitter();
1947
+ this.code = '';
1948
+ this.name = '';
1949
+ this.trtmYpilck = false;
1950
+ this.malGC = false;
1951
+ this.sourceWH = '';
1952
+ this.targetWH = '';
1953
+ this.isActive = false;
1954
+ this.isLoading = false;
1955
+ this.warehouseData = [];
1956
+ this.warehouseColumns = [
1957
+ { dataField: 'warehouseCode', caption: 'Kod', width: 120 },
1958
+ { dataField: 'warehouseName', caption: 'Depo Adı' },
1959
+ ];
1960
+ }
1961
+ ngOnInit() {
1962
+ this.warehouseService.getList().subscribe(d => (this.warehouseData = d));
1963
+ }
1964
+ ngOnChanges(changes) {
1965
+ var _a;
1966
+ if (((_a = changes['visible']) === null || _a === void 0 ? void 0 : _a.currentValue) === true) {
1967
+ this.initForm();
1968
+ }
1969
+ }
1970
+ initForm() {
1971
+ var _a, _b;
1972
+ if (this.record) {
1973
+ this.code = this.record.code;
1974
+ this.name = this.record.name;
1975
+ this.trtmYpilck = this.record.u_TrtmYpilck === 'Y';
1976
+ this.malGC = this.record.u_MalGC === 'Y';
1977
+ this.sourceWH = (_a = this.record.u_SourceWH) !== null && _a !== void 0 ? _a : '';
1978
+ this.targetWH = (_b = this.record.u_TargetWH) !== null && _b !== void 0 ? _b : '';
1979
+ this.isActive = this.record.u_Active === 'Y';
1980
+ }
1981
+ else {
1982
+ this.code = '';
1983
+ this.name = '';
1984
+ this.trtmYpilck = false;
1985
+ this.malGC = false;
1986
+ this.sourceWH = '';
1987
+ this.targetWH = '';
1988
+ this.isActive = true;
1989
+ }
1990
+ }
1991
+ onSourceWHSelected(wh) {
1992
+ this.sourceWH = wh.warehouseCode;
1993
+ }
1994
+ onTargetWHSelected(wh) {
1995
+ this.targetWH = wh.warehouseCode;
1996
+ }
1997
+ save() {
1998
+ var _a;
1999
+ if (!this.code || !this.name) {
2000
+ this.confirmation.warn('Lütfen Kod ve Ad alanlarını doldurunuz.', '', {
2001
+ hideYesBtn: true,
2002
+ cancelText: 'Kapat',
2003
+ dismissible: false,
2004
+ });
2005
+ return;
2006
+ }
2007
+ if (this.malGC && (!this.sourceWH || !this.targetWH)) {
2008
+ this.confirmation.warn('Mal G/Ç yapılacak araç türleri için Kaynak ve Hedef Depo zorunludur.', '', {
2009
+ hideYesBtn: true,
2010
+ cancelText: 'Kapat',
2011
+ dismissible: false,
2012
+ });
2013
+ return;
2014
+ }
2015
+ if (this.malGC && this.sourceWH && this.targetWH && this.sourceWH === this.targetWH) {
2016
+ this.confirmation.warn('Kaynak Depo ve Hedef Depo aynı olamaz.', '', {
2017
+ hideYesBtn: true,
2018
+ cancelText: 'Kapat',
2019
+ dismissible: false,
2020
+ });
2021
+ return;
2022
+ }
2023
+ const dto = {
2024
+ code: this.code,
2025
+ name: this.name,
2026
+ u_TrtmYpilck: this.trtmYpilck ? 'Y' : 'N',
2027
+ u_MalGC: this.malGC ? 'Y' : 'N',
2028
+ u_SourceWH: this.sourceWH,
2029
+ u_TargetWH: this.targetWH,
2030
+ u_Active: this.isActive ? 'Y' : 'N',
2031
+ };
2032
+ const obs$ = ((_a = this.record) === null || _a === void 0 ? void 0 : _a.code)
2033
+ ? this.service.update(this.record.code, dto)
2034
+ : this.service.create(dto);
2035
+ this.isLoading = true;
2036
+ obs$.subscribe({
2037
+ next: () => {
2038
+ this.isLoading = false;
2039
+ this.saved.emit();
2040
+ },
2041
+ error: () => {
2042
+ this.isLoading = false;
2043
+ },
2044
+ });
2045
+ }
2046
+ onModalVisibleChange(val) {
2047
+ this.visible = val;
2048
+ this.visibleChange.emit(val);
2049
+ if (!val) {
2050
+ this.cancelled.emit();
2051
+ }
2052
+ }
2053
+ cancel() {
2054
+ this.onModalVisibleChange(false);
2055
+ }
2056
+ }
2057
+ HitVehicleTypeFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitVehicleTypeFormComponent, deps: [{ token: HitVehicleTypeService }, { token: HitWarehouseService }, { token: i2$1.ConfirmationService }], target: i0.ɵɵFactoryTarget.Component });
2058
+ HitVehicleTypeFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: HitVehicleTypeFormComponent, selector: "lib-hit-vehicle-type-form", inputs: { visible: "visible", record: "record" }, outputs: { visibleChange: "visibleChange", saved: "saved", cancelled: "cancelled" }, usesOnChanges: true, ngImport: i0, template: "<abp-modal [visible]=\"visible\" (visibleChange)=\"onModalVisibleChange($event)\" [options]=\"{ size: 'lg', backdrop: 'static' }\">\r\n <ng-template #abpHeader>\r\n <h3>{{ record?.code ? ('AbpUi::Edit' | abpLocalization) : ('Kadooglu::NewRecord' | abpLocalization) }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <div class=\"border rounded p-3 mb-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-truck me-2\"></i>{{ 'Kadooglu::BasicInfo' | abpLocalization }}\r\n </div>\r\n <div class=\"row mb-3\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::Code' | abpLocalization }} <span class=\"text-danger\">*</span></label>\r\n <dx-text-box [(value)]=\"code\" [disabled]=\"!!record?.code\" placeholder=\"Ara\u00E7 hareket t\u00FCr\u00FC kodu\" width=\"100%\"></dx-text-box>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::Name' | abpLocalization }} <span class=\"text-danger\">*</span></label>\r\n <dx-text-box [(value)]=\"name\" placeholder=\"Ara\u00E7 hareket t\u00FCr\u00FC ad\u0131\" width=\"100%\"></dx-text-box>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-12 mb-2\">\r\n <dx-check-box [(value)]=\"trtmYpilck\" [text]=\"'Kadooglu::IsWeighingRequired' | abpLocalization\"></dx-check-box>\r\n </div>\r\n <div class=\"col-md-12\">\r\n <dx-check-box [(value)]=\"malGC\" text=\"Mal G/\u00C7 Yap\u0131lacak M\u0131?\"></dx-check-box>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div *ngIf=\"malGC\" class=\"border rounded p-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-warehouse me-2\"></i>{{ 'Kadooglu::WarehouseSettings' | abpLocalization }}\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::SourceWarehouse' | abpLocalization }}</label>\r\n <hit-lookup-select\r\n [getFn]=\"warehouseData\"\r\n [columns]=\"warehouseColumns\"\r\n displayName=\"warehouseCode\"\r\n keyExpr=\"warehouseCode\"\r\n [editingData]=\"sourceWH\"\r\n (selected)=\"onSourceWHSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::TargetWarehouse' | abpLocalization }}</label>\r\n <hit-lookup-select\r\n [getFn]=\"warehouseData\"\r\n [columns]=\"warehouseColumns\"\r\n displayName=\"warehouseCode\"\r\n keyExpr=\"warehouseCode\"\r\n [editingData]=\"targetWH\"\r\n (selected)=\"onTargetWHSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Durum -->\r\n <div class=\"border rounded p-3 mt-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-toggle-on me-2\"></i>{{ 'Kadooglu::Status' | abpLocalization }}\r\n </div>\r\n <dx-check-box [(value)]=\"isActive\" [text]=\"'Kadooglu::IsActive' | abpLocalization\"></dx-check-box>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"cancel()\">\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-save\" buttonType=\"button\" [loading]=\"isLoading\" (click)=\"save()\">\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$1.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i2$1.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "component", type: HitModalComponent, selector: "hit-lookup-select", inputs: ["displayName", "keyExpr", "modalSize", "getFn", "loadFn", "columns", "isVisible", "disabled", "editingData"], outputs: ["selected"] }, { kind: "component", type: i5.DxTextBoxComponent, selector: "dx-text-box", inputs: ["accessKey", "activeStateEnabled", "buttons", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "inputAttr", "isValid", "label", "labelMode", "mask", "maskChar", "maskInvalidMessage", "maskRules", "maxLength", "mode", "name", "placeholder", "readOnly", "rtlEnabled", "showClearButton", "showMaskMode", "spellcheck", "stylingMode", "tabIndex", "text", "useMaskedValue", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "valueChangeEvent", "visible", "width"], outputs: ["onChange", "onContentReady", "onCopy", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onKeyDown", "onKeyUp", "onOptionChanged", "onPaste", "onValueChanged", "accessKeyChange", "activeStateEnabledChange", "buttonsChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isValidChange", "labelChange", "labelModeChange", "maskChange", "maskCharChange", "maskInvalidMessageChange", "maskRulesChange", "maxLengthChange", "modeChange", "nameChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "showClearButtonChange", "showMaskModeChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "useMaskedValueChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "component", type: i5.DxCheckBoxComponent, selector: "dx-check-box", inputs: ["accessKey", "activeStateEnabled", "disabled", "elementAttr", "enableThreeStateBehavior", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "iconSize", "isValid", "name", "readOnly", "rtlEnabled", "tabIndex", "text", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "visible", "width"], outputs: ["onContentReady", "onDisposing", "onInitialized", "onOptionChanged", "onValueChanged", "accessKeyChange", "activeStateEnabledChange", "disabledChange", "elementAttrChange", "enableThreeStateBehaviorChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "iconSizeChange", "isValidChange", "nameChange", "readOnlyChange", "rtlEnabledChange", "tabIndexChange", "textChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
2059
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitVehicleTypeFormComponent, decorators: [{
2060
+ type: Component,
2061
+ args: [{ selector: 'lib-hit-vehicle-type-form', template: "<abp-modal [visible]=\"visible\" (visibleChange)=\"onModalVisibleChange($event)\" [options]=\"{ size: 'lg', backdrop: 'static' }\">\r\n <ng-template #abpHeader>\r\n <h3>{{ record?.code ? ('AbpUi::Edit' | abpLocalization) : ('Kadooglu::NewRecord' | abpLocalization) }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <div class=\"border rounded p-3 mb-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-truck me-2\"></i>{{ 'Kadooglu::BasicInfo' | abpLocalization }}\r\n </div>\r\n <div class=\"row mb-3\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::Code' | abpLocalization }} <span class=\"text-danger\">*</span></label>\r\n <dx-text-box [(value)]=\"code\" [disabled]=\"!!record?.code\" placeholder=\"Ara\u00E7 hareket t\u00FCr\u00FC kodu\" width=\"100%\"></dx-text-box>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::Name' | abpLocalization }} <span class=\"text-danger\">*</span></label>\r\n <dx-text-box [(value)]=\"name\" placeholder=\"Ara\u00E7 hareket t\u00FCr\u00FC ad\u0131\" width=\"100%\"></dx-text-box>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-12 mb-2\">\r\n <dx-check-box [(value)]=\"trtmYpilck\" [text]=\"'Kadooglu::IsWeighingRequired' | abpLocalization\"></dx-check-box>\r\n </div>\r\n <div class=\"col-md-12\">\r\n <dx-check-box [(value)]=\"malGC\" text=\"Mal G/\u00C7 Yap\u0131lacak M\u0131?\"></dx-check-box>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div *ngIf=\"malGC\" class=\"border rounded p-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-warehouse me-2\"></i>{{ 'Kadooglu::WarehouseSettings' | abpLocalization }}\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::SourceWarehouse' | abpLocalization }}</label>\r\n <hit-lookup-select\r\n [getFn]=\"warehouseData\"\r\n [columns]=\"warehouseColumns\"\r\n displayName=\"warehouseCode\"\r\n keyExpr=\"warehouseCode\"\r\n [editingData]=\"sourceWH\"\r\n (selected)=\"onSourceWHSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::TargetWarehouse' | abpLocalization }}</label>\r\n <hit-lookup-select\r\n [getFn]=\"warehouseData\"\r\n [columns]=\"warehouseColumns\"\r\n displayName=\"warehouseCode\"\r\n keyExpr=\"warehouseCode\"\r\n [editingData]=\"targetWH\"\r\n (selected)=\"onTargetWHSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Durum -->\r\n <div class=\"border rounded p-3 mt-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-toggle-on me-2\"></i>{{ 'Kadooglu::Status' | abpLocalization }}\r\n </div>\r\n <dx-check-box [(value)]=\"isActive\" [text]=\"'Kadooglu::IsActive' | abpLocalization\"></dx-check-box>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"cancel()\">\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-save\" buttonType=\"button\" [loading]=\"isLoading\" (click)=\"save()\">\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
2062
+ }], ctorParameters: function () { return [{ type: HitVehicleTypeService }, { type: HitWarehouseService }, { type: i2$1.ConfirmationService }]; }, propDecorators: { visible: [{
2063
+ type: Input
2064
+ }], visibleChange: [{
2065
+ type: Output
2066
+ }], record: [{
2067
+ type: Input
2068
+ }], saved: [{
2069
+ type: Output
2070
+ }], cancelled: [{
2071
+ type: Output
2072
+ }] } });
2073
+
2074
+ class HitVehicleTypeListComponent {
2075
+ constructor(service, confirmation) {
2076
+ this.service = service;
2077
+ this.confirmation = confirmation;
2078
+ this.allData = [];
2079
+ this.filteredData = [];
2080
+ this.filterCode = '';
2081
+ this.filterName = '';
2082
+ this.showForm = false;
2083
+ this.disabledIdColumn = false;
2084
+ this.selectedRecord = null;
2085
+ }
2086
+ ngOnInit() {
2087
+ this.loadList();
2088
+ }
2089
+ onToolbarPreparing(e) {
2090
+ e.toolbarOptions.items.unshift({
2091
+ location: 'after',
2092
+ widget: 'dxButton',
2093
+ options: {
2094
+ icon: 'plus',
2095
+ text: 'Yeni Kayıt',
2096
+ type: 'default',
2097
+ onClick: () => this.yeniKayit(),
2098
+ },
2099
+ });
2100
+ }
2101
+ loadList() {
2102
+ this.service.getList().subscribe(data => {
2103
+ this.allData = data;
2104
+ this.filteredData = [...data];
2105
+ });
2106
+ }
2107
+ bul() {
2108
+ this.filteredData = this.allData.filter(x => {
2109
+ var _a, _b;
2110
+ if (this.filterCode && !((_a = x.code) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(this.filterCode.toLowerCase()))) {
2111
+ return false;
2112
+ }
2113
+ if (this.filterName && !((_b = x.name) === null || _b === void 0 ? void 0 : _b.toLowerCase().includes(this.filterName.toLowerCase()))) {
2114
+ return false;
2115
+ }
2116
+ return true;
2117
+ });
2118
+ }
2119
+ temizle() {
2120
+ this.filterCode = '';
2121
+ this.filterName = '';
2122
+ this.filteredData = [...this.allData];
2123
+ }
2124
+ yeniKayit() {
2125
+ this.selectedRecord = null;
2126
+ this.showForm = true;
2127
+ }
2128
+ duzenle(row) {
2129
+ this.selectedRecord = Object.assign({}, row);
2130
+ this.showForm = true;
2131
+ }
2132
+ sil(row) {
2133
+ this.confirmation
2134
+ .warn(`"${row.name}" araç türünü silmek istediğinize emin misiniz?`, '', {
2135
+ yesText: 'Evet',
2136
+ cancelText: 'Hayır',
2137
+ })
2138
+ .subscribe(status => {
2139
+ if (status === 'confirm') {
2140
+ this.service.delete(row.code).subscribe(() => this.loadList());
2141
+ }
2142
+ });
2143
+ }
2144
+ onFormSaved() {
2145
+ this.showForm = false;
2146
+ this.loadList();
2147
+ }
2148
+ onFormCancelled() {
2149
+ this.showForm = false;
2150
+ }
2151
+ }
2152
+ HitVehicleTypeListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitVehicleTypeListComponent, deps: [{ token: HitVehicleTypeService }, { token: i2$1.ConfirmationService }], target: i0.ɵɵFactoryTarget.Component });
2153
+ HitVehicleTypeListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: HitVehicleTypeListComponent, selector: "lib-hit-vehicle-type-list", ngImport: i0, template: "<abp-page [breadcrumb]=\"false\">\r\n <abp-page-toolbar-container class=\"col\">\r\n <div class=\"row align-items-center\">\r\n <div class=\"col\">\r\n <h3 class=\"page-title\">Ara\u00E7 Hareket T\u00FCrleri</h3>\r\n </div>\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\r\n <dx-data-grid\r\n [dataSource]=\"filteredData\"\r\n [columnAutoWidth]=\"true\"\r\n [showBorders]=\"true\"\r\n [showRowLines]=\"true\"\r\n [hoverStateEnabled]=\"true\"\r\n [allowColumnResizing]=\"true\"\r\n columnResizingMode=\"widget\"\r\n [rowAlternationEnabled]=\"true\"\r\n (onToolbarPreparing)=\"onToolbarPreparing($event)\"\r\n keyExpr=\"code\"\r\n style=\"height: calc(100vh - 320px);\">\r\n\r\n <dxo-filter-row [visible]=\"true\"></dxo-filter-row>\r\n <dxo-header-filter [visible]=\"true\"></dxo-header-filter>\r\n <dxo-search-panel [visible]=\"true\" [width]=\"200\" [placeholder]=\"'Kadooglu::Ara' | abpLocalization\"></dxo-search-panel>\r\n\r\n <dxo-pager\r\n [visible]=\"true\"\r\n [showInfo]=\"true\"\r\n [allowedPageSizes]=\"[10, 20, 50]\"\r\n [showPageSizeSelector]=\"true\"\r\n [showNavigationButtons]=\"true\">\r\n </dxo-pager>\r\n <dxo-paging [pageSize]=\"10\"></dxo-paging>\r\n <dxi-column [fixed]=\"true\" dataField=\"id\" width=\"120\" [allowGrouping]=\"false\" [allowFiltering]=\"false\"\r\n [allowHeaderFiltering]=\"false\" [allowHiding]=\"false\" [allowReordering]=\"false\"\r\n cellTemplate=\"operationTemplate\" caption=\"{{ 'AbpUi::Actions' | abpLocalization }}\">\r\n <div *dxTemplate=\"let row of 'operationTemplate'\">\r\n <div ngbDropdown container=\"body\" class=\"d-inline-block\">\r\n <button class=\"btn btn-primary btn-sm dropdown-toggle\" data-toggle=\"dropdown\"\r\n aria-haspopup=\"true\" ngbDropdownToggle [disabled]=\"disabledIdColumn\">\r\n <i class=\"fa fa-cog mr-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpUi::Actions' | abpLocalization }}\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"duzenle(row.data)\">\r\n <i class=\"fa fa-edit\" aria-hidden=\"true\"></i> {{ 'AbpUi::Edit' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </dxi-column>\r\n\r\n <dxi-column dataField=\"code\" caption=\"{{ 'Kadooglu::Code' | abpLocalization }}\" [width]=\"150\"></dxi-column>\r\n <dxi-column dataField=\"name\" caption=\"{{ 'Kadooglu::Name' | abpLocalization }}\"></dxi-column>\r\n <dxi-column dataField=\"u_SourceWH\" caption=\"{{ 'Kadooglu::SourceWarehouse' | abpLocalization }}\" [width]=\"130\"></dxi-column>\r\n <dxi-column dataField=\"u_TargetWH\" caption=\"{{ 'Kadooglu::TargetWarehouse' | abpLocalization }}\" [width]=\"130\"></dxi-column>\r\n <dxi-column\r\n dataField=\"u_TrtmYpilck\"\r\n caption=\"{{ 'Kadooglu::WeighingStep' | abpLocalization }}\"\r\n [width]=\"90\"\r\n cellTemplate=\"trtmTemplate\"\r\n [allowFiltering]=\"false\">\r\n </dxi-column>\r\n <dxi-column\r\n dataField=\"u_MalGC\"\r\n caption=\"G/\u00C7 Yap\u0131lacak m\u0131?\"\r\n [width]=\"130\"\r\n cellTemplate=\"malGcTemplate\"\r\n [allowFiltering]=\"false\">\r\n </dxi-column>\r\n <dxi-column dataField=\"u_Active\" caption=\"{{ 'Kadooglu::IsActive' | abpLocalization }}\" [width]=\"80\"></dxi-column>\r\n\r\n <div *dxTemplate=\"let cell of 'trtmTemplate'\">\r\n <i class=\"fa\" [ngClass]=\"cell.value === 'Y' ? 'fa-check text-success' : 'fa-times text-secondary'\"></i>\r\n </div>\r\n <div *dxTemplate=\"let cell of 'malGcTemplate'\">\r\n <i class=\"fa\" [ngClass]=\"cell.value === 'Y' ? 'fa-check text-success' : 'fa-times text-secondary'\"></i>\r\n </div>\r\n </dx-data-grid>\r\n\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<lib-hit-vehicle-type-form\r\n [(visible)]=\"showForm\"\r\n [record]=\"selectedRecord\"\r\n (saved)=\"onFormSaved()\"\r\n (cancelled)=\"onFormCancelled()\">\r\n</lib-hit-vehicle-type-form>\r\n", dependencies: [{ kind: "directive", type: i6.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i4.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: i4.PageToolbarContainerComponent, selector: "abp-page-toolbar-container" }, { kind: "component", type: i5.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: i5$1.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: i5$1.DxoHeaderFilterComponent, selector: "dxo-header-filter", inputs: ["allowSearch", "dataSource", "groupInterval", "height", "searchMode", "width", "searchTimeout", "texts", "visible", "showRelevantValues"] }, { kind: "component", type: i5$1.DxoFilterRowComponent, selector: "dxo-filter-row", inputs: ["applyFilter", "applyFilterText", "betweenEndText", "betweenStartText", "operationDescriptions", "resetOperationText", "showAllText", "showOperationChooser", "visible"] }, { kind: "component", type: i5$1.DxoPagerComponent, selector: "dxo-pager", inputs: ["allowedPageSizes", "displayMode", "infoText", "label", "showInfo", "showNavigationButtons", "showPageSizeSelector", "visible"] }, { kind: "component", type: i5$1.DxoPagingComponent, selector: "dxo-paging", inputs: ["enabled", "pageIndex", "pageSize"], outputs: ["pageIndexChange", "pageSizeChange"] }, { kind: "component", type: i5$1.DxoSearchPanelComponent, selector: "dxo-search-panel", inputs: ["highlightCaseSensitive", "highlightSearchText", "placeholder", "searchVisibleColumnsOnly", "text", "visible", "width"], outputs: ["textChange"] }, { kind: "directive", type: i7.DxTemplateDirective, selector: "[dxTemplate]", inputs: ["dxTemplateOf"] }, { kind: "directive", type: i8.NgbDropdown, selector: "[ngbDropdown]", inputs: ["autoClose", "dropdownClass", "open", "placement", "container", "display"], outputs: ["openChange"], exportAs: ["ngbDropdown"] }, { kind: "directive", type: i8.NgbDropdownToggle, selector: "[ngbDropdownToggle]" }, { kind: "directive", type: i8.NgbDropdownMenu, selector: "[ngbDropdownMenu]" }, { kind: "directive", type: i8.NgbDropdownItem, selector: "[ngbDropdownItem]", inputs: ["disabled"] }, { kind: "component", type: HitVehicleTypeFormComponent, selector: "lib-hit-vehicle-type-form", inputs: ["visible", "record"], outputs: ["visibleChange", "saved", "cancelled"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
2154
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitVehicleTypeListComponent, decorators: [{
2155
+ type: Component,
2156
+ args: [{ selector: 'lib-hit-vehicle-type-list', template: "<abp-page [breadcrumb]=\"false\">\r\n <abp-page-toolbar-container class=\"col\">\r\n <div class=\"row align-items-center\">\r\n <div class=\"col\">\r\n <h3 class=\"page-title\">Ara\u00E7 Hareket T\u00FCrleri</h3>\r\n </div>\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\r\n <dx-data-grid\r\n [dataSource]=\"filteredData\"\r\n [columnAutoWidth]=\"true\"\r\n [showBorders]=\"true\"\r\n [showRowLines]=\"true\"\r\n [hoverStateEnabled]=\"true\"\r\n [allowColumnResizing]=\"true\"\r\n columnResizingMode=\"widget\"\r\n [rowAlternationEnabled]=\"true\"\r\n (onToolbarPreparing)=\"onToolbarPreparing($event)\"\r\n keyExpr=\"code\"\r\n style=\"height: calc(100vh - 320px);\">\r\n\r\n <dxo-filter-row [visible]=\"true\"></dxo-filter-row>\r\n <dxo-header-filter [visible]=\"true\"></dxo-header-filter>\r\n <dxo-search-panel [visible]=\"true\" [width]=\"200\" [placeholder]=\"'Kadooglu::Ara' | abpLocalization\"></dxo-search-panel>\r\n\r\n <dxo-pager\r\n [visible]=\"true\"\r\n [showInfo]=\"true\"\r\n [allowedPageSizes]=\"[10, 20, 50]\"\r\n [showPageSizeSelector]=\"true\"\r\n [showNavigationButtons]=\"true\">\r\n </dxo-pager>\r\n <dxo-paging [pageSize]=\"10\"></dxo-paging>\r\n <dxi-column [fixed]=\"true\" dataField=\"id\" width=\"120\" [allowGrouping]=\"false\" [allowFiltering]=\"false\"\r\n [allowHeaderFiltering]=\"false\" [allowHiding]=\"false\" [allowReordering]=\"false\"\r\n cellTemplate=\"operationTemplate\" caption=\"{{ 'AbpUi::Actions' | abpLocalization }}\">\r\n <div *dxTemplate=\"let row of 'operationTemplate'\">\r\n <div ngbDropdown container=\"body\" class=\"d-inline-block\">\r\n <button class=\"btn btn-primary btn-sm dropdown-toggle\" data-toggle=\"dropdown\"\r\n aria-haspopup=\"true\" ngbDropdownToggle [disabled]=\"disabledIdColumn\">\r\n <i class=\"fa fa-cog mr-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpUi::Actions' | abpLocalization }}\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"duzenle(row.data)\">\r\n <i class=\"fa fa-edit\" aria-hidden=\"true\"></i> {{ 'AbpUi::Edit' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </dxi-column>\r\n\r\n <dxi-column dataField=\"code\" caption=\"{{ 'Kadooglu::Code' | abpLocalization }}\" [width]=\"150\"></dxi-column>\r\n <dxi-column dataField=\"name\" caption=\"{{ 'Kadooglu::Name' | abpLocalization }}\"></dxi-column>\r\n <dxi-column dataField=\"u_SourceWH\" caption=\"{{ 'Kadooglu::SourceWarehouse' | abpLocalization }}\" [width]=\"130\"></dxi-column>\r\n <dxi-column dataField=\"u_TargetWH\" caption=\"{{ 'Kadooglu::TargetWarehouse' | abpLocalization }}\" [width]=\"130\"></dxi-column>\r\n <dxi-column\r\n dataField=\"u_TrtmYpilck\"\r\n caption=\"{{ 'Kadooglu::WeighingStep' | abpLocalization }}\"\r\n [width]=\"90\"\r\n cellTemplate=\"trtmTemplate\"\r\n [allowFiltering]=\"false\">\r\n </dxi-column>\r\n <dxi-column\r\n dataField=\"u_MalGC\"\r\n caption=\"G/\u00C7 Yap\u0131lacak m\u0131?\"\r\n [width]=\"130\"\r\n cellTemplate=\"malGcTemplate\"\r\n [allowFiltering]=\"false\">\r\n </dxi-column>\r\n <dxi-column dataField=\"u_Active\" caption=\"{{ 'Kadooglu::IsActive' | abpLocalization }}\" [width]=\"80\"></dxi-column>\r\n\r\n <div *dxTemplate=\"let cell of 'trtmTemplate'\">\r\n <i class=\"fa\" [ngClass]=\"cell.value === 'Y' ? 'fa-check text-success' : 'fa-times text-secondary'\"></i>\r\n </div>\r\n <div *dxTemplate=\"let cell of 'malGcTemplate'\">\r\n <i class=\"fa\" [ngClass]=\"cell.value === 'Y' ? 'fa-check text-success' : 'fa-times text-secondary'\"></i>\r\n </div>\r\n </dx-data-grid>\r\n\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<lib-hit-vehicle-type-form\r\n [(visible)]=\"showForm\"\r\n [record]=\"selectedRecord\"\r\n (saved)=\"onFormSaved()\"\r\n (cancelled)=\"onFormCancelled()\">\r\n</lib-hit-vehicle-type-form>\r\n" }]
2157
+ }], ctorParameters: function () { return [{ type: HitVehicleTypeService }, { type: i2$1.ConfirmationService }]; } });
2158
+
2159
+ const routes$6 = [
2160
+ { path: '', component: HitVehicleTypeListComponent },
2161
+ ];
2162
+ class HitVehicleTypeRoutingModule {
2163
+ }
2164
+ HitVehicleTypeRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitVehicleTypeRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2165
+ HitVehicleTypeRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitVehicleTypeRoutingModule, imports: [i1$1.RouterModule], exports: [RouterModule] });
2166
+ HitVehicleTypeRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitVehicleTypeRoutingModule, imports: [RouterModule.forChild(routes$6), RouterModule] });
2167
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitVehicleTypeRoutingModule, decorators: [{
2168
+ type: NgModule,
2169
+ args: [{
2170
+ imports: [RouterModule.forChild(routes$6)],
2171
+ exports: [RouterModule],
2172
+ }]
2173
+ }] });
2174
+
2175
+ class HitVehicleTypeModule {
2176
+ }
2177
+ HitVehicleTypeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitVehicleTypeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2178
+ HitVehicleTypeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitVehicleTypeModule, declarations: [HitVehicleTypeListComponent, HitVehicleTypeFormComponent], imports: [CommonModule,
2179
+ FormsModule,
2180
+ CoreModule,
2181
+ ThemeSharedModule,
2182
+ PageModule,
2183
+ CommercialUiModule,
2184
+ HitVehicleTypeRoutingModule,
2185
+ HitUIModule,
2186
+ DxDataGridModule,
2187
+ DxTextBoxModule,
2188
+ DxButtonModule,
2189
+ NgbDropdownModule,
2190
+ DxCheckBoxModule] });
2191
+ HitVehicleTypeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitVehicleTypeModule, imports: [CommonModule,
2192
+ FormsModule,
2193
+ CoreModule,
2194
+ ThemeSharedModule,
2195
+ PageModule,
2196
+ CommercialUiModule,
2197
+ HitVehicleTypeRoutingModule,
2198
+ HitUIModule,
2199
+ DxDataGridModule,
2200
+ DxTextBoxModule,
2201
+ DxButtonModule,
2202
+ NgbDropdownModule,
2203
+ DxCheckBoxModule] });
2204
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitVehicleTypeModule, decorators: [{
2205
+ type: NgModule,
2206
+ args: [{
2207
+ declarations: [HitVehicleTypeListComponent, HitVehicleTypeFormComponent],
2208
+ imports: [
2209
+ CommonModule,
2210
+ FormsModule,
2211
+ CoreModule,
2212
+ ThemeSharedModule,
2213
+ PageModule,
2214
+ CommercialUiModule,
2215
+ HitVehicleTypeRoutingModule,
2216
+ HitUIModule,
2217
+ DxDataGridModule,
2218
+ DxTextBoxModule,
2219
+ DxButtonModule,
2220
+ NgbDropdownModule,
2221
+ DxCheckBoxModule,
2222
+ ],
2223
+ }]
2224
+ }] });
2225
+ function loadHitVehicleTypeModuleAsChild() {
2226
+ return Promise.resolve(HitVehicleTypeModule);
2227
+ }
2228
+
2229
+ class HitScaleFormComponent {
2230
+ constructor(service, confirmation) {
2231
+ this.service = service;
2232
+ this.confirmation = confirmation;
2233
+ this.visible = false;
2234
+ this.visibleChange = new EventEmitter();
2235
+ this.record = null;
2236
+ this.saved = new EventEmitter();
2237
+ this.cancelled = new EventEmitter();
2238
+ this.code = '';
2239
+ this.name = '';
2240
+ this.u_Port = '';
2241
+ this.u_BaudRate = '';
2242
+ this.u_DataBits = '';
2243
+ this.u_StopBits = '';
2244
+ this.u_Parity = '';
2245
+ this.isActive = false;
2246
+ this.isLoading = false;
2247
+ this.dataBitsOptions = [
2248
+ { value: '7', display: '7BITS' },
2249
+ { value: '8', display: '8BITS' },
2250
+ ];
2251
+ this.stopBitsOptions = [
2252
+ { value: '1', display: 'One' },
2253
+ { value: '2', display: 'Two' },
2254
+ ];
2255
+ this.parityOptions = [
2256
+ { value: 'N', display: 'None' },
2257
+ { value: 'O', display: 'Odd' },
2258
+ { value: 'E', display: 'Even' },
2259
+ ];
2260
+ }
2261
+ ngOnInit() { }
2262
+ ngOnChanges(changes) {
2263
+ var _a;
2264
+ if (((_a = changes['visible']) === null || _a === void 0 ? void 0 : _a.currentValue) === true) {
2265
+ this.initForm();
2266
+ }
2267
+ }
2268
+ initForm() {
2269
+ var _a, _b, _c, _d, _e;
2270
+ if (this.record) {
2271
+ this.code = this.record.code;
2272
+ this.name = this.record.name;
2273
+ this.u_Port = (_a = this.record.u_Port) !== null && _a !== void 0 ? _a : '';
2274
+ this.u_BaudRate = (_b = this.record.u_BaudRate) !== null && _b !== void 0 ? _b : '';
2275
+ this.u_DataBits = (_c = this.record.u_DataBits) !== null && _c !== void 0 ? _c : '';
2276
+ this.u_StopBits = (_d = this.record.u_StopBits) !== null && _d !== void 0 ? _d : '';
2277
+ this.u_Parity = (_e = this.record.u_Parity) !== null && _e !== void 0 ? _e : '';
2278
+ this.isActive = this.record.u_Active === 'Y';
2279
+ }
2280
+ else {
2281
+ this.code = '';
2282
+ this.name = '';
2283
+ this.u_Port = '';
2284
+ this.u_BaudRate = '';
2285
+ this.u_DataBits = '';
2286
+ this.u_StopBits = '';
2287
+ this.u_Parity = '';
2288
+ this.isActive = true;
2289
+ }
2290
+ }
2291
+ save() {
2292
+ var _a;
2293
+ if (!this.code || !this.name) {
2294
+ this.confirmation.warn('Lütfen Kod ve Ad alanlarını doldurunuz.', '', {
2295
+ hideYesBtn: true,
2296
+ cancelText: 'Kapat',
2297
+ dismissible: false,
2298
+ });
2299
+ return;
2300
+ }
2301
+ const dto = {
2302
+ code: this.code,
2303
+ name: this.name,
2304
+ u_Port: this.u_Port,
2305
+ u_BaudRate: this.u_BaudRate,
2306
+ u_DataBits: this.u_DataBits,
2307
+ u_StopBits: this.u_StopBits,
2308
+ u_Parity: this.u_Parity,
2309
+ u_Active: this.isActive ? 'Y' : 'N',
2310
+ };
2311
+ const obs$ = ((_a = this.record) === null || _a === void 0 ? void 0 : _a.code)
2312
+ ? this.service.update(this.record.code, dto)
2313
+ : this.service.create(dto);
2314
+ this.isLoading = true;
2315
+ obs$.subscribe({
2316
+ next: () => {
2317
+ this.isLoading = false;
2318
+ this.saved.emit();
2319
+ },
2320
+ error: () => {
2321
+ this.isLoading = false;
2322
+ },
2323
+ });
2324
+ }
2325
+ onModalVisibleChange(val) {
2326
+ this.visible = val;
2327
+ this.visibleChange.emit(val);
2328
+ if (!val) {
2329
+ this.cancelled.emit();
2330
+ }
2331
+ }
2332
+ cancel() {
2333
+ this.onModalVisibleChange(false);
2334
+ }
2335
+ }
2336
+ HitScaleFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitScaleFormComponent, deps: [{ token: HitScaleService }, { token: i2$1.ConfirmationService }], target: i0.ɵɵFactoryTarget.Component });
2337
+ HitScaleFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: HitScaleFormComponent, selector: "lib-hit-scale-form", inputs: { visible: "visible", record: "record" }, outputs: { visibleChange: "visibleChange", saved: "saved", cancelled: "cancelled" }, usesOnChanges: true, ngImport: i0, template: "<abp-modal [visible]=\"visible\" (visibleChange)=\"onModalVisibleChange($event)\" [options]=\"{ size: 'lg', backdrop: 'static' }\">\r\n <ng-template #abpHeader>\r\n <h3>{{ record?.code ? ('AbpUi::Edit' | abpLocalization) : ('Kadooglu::NewRecord' | abpLocalization) }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <div class=\"border rounded p-3 mb-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-cog me-2\"></i>{{ 'Kadooglu::BasicInfo' | abpLocalization }}\r\n </div>\r\n <div class=\"row mb-3\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::Code' | abpLocalization }} <span class=\"text-danger\">*</span></label>\r\n <dx-text-box [(value)]=\"code\" [disabled]=\"!!record?.code\" placeholder=\"Kantar kodu\" width=\"100%\"></dx-text-box>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::Name' | abpLocalization }} <span class=\"text-danger\">*</span></label>\r\n <dx-text-box [(value)]=\"name\" placeholder=\"Kantar ad\u0131\" width=\"100%\"></dx-text-box>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"border rounded p-3 mb-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-plug me-2\"></i>{{ 'Kadooglu::SerialPortSettings' | abpLocalization }}\r\n </div>\r\n <div class=\"row mb-3\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::Port' | abpLocalization }}</label>\r\n <dx-text-box [(value)]=\"u_Port\" [placeholder]=\"'Kadooglu::PortExample' | abpLocalization\" width=\"100%\"></dx-text-box>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::BaudRate' | abpLocalization }}</label>\r\n <dx-text-box [(value)]=\"u_BaudRate\" [placeholder]=\"'Kadooglu::BaudRateExample' | abpLocalization\" width=\"100%\"></dx-text-box>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-4\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::DataBits' | abpLocalization }}</label>\r\n <dx-select-box [(value)]=\"u_DataBits\" [items]=\"dataBitsOptions\" valueExpr=\"value\" displayExpr=\"display\" width=\"100%\"></dx-select-box>\r\n </div>\r\n <div class=\"col-md-4\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::StopBits' | abpLocalization }}</label>\r\n <dx-select-box [(value)]=\"u_StopBits\" [items]=\"stopBitsOptions\" valueExpr=\"value\" displayExpr=\"display\" width=\"100%\"></dx-select-box>\r\n </div>\r\n <div class=\"col-md-4\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::Parity' | abpLocalization }}</label>\r\n <dx-select-box [(value)]=\"u_Parity\" [items]=\"parityOptions\" valueExpr=\"value\" displayExpr=\"display\" width=\"100%\"></dx-select-box>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Durum -->\r\n <div class=\"border rounded p-3 mt-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-toggle-on me-2\"></i>{{ 'Kadooglu::Status' | abpLocalization }}\r\n </div>\r\n <dx-check-box [(value)]=\"isActive\" [text]=\"'Kadooglu::IsActive' | abpLocalization\"></dx-check-box>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"cancel()\">\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-save\" buttonType=\"button\" [loading]=\"isLoading\" (click)=\"save()\">\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "component", type: i2$1.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i2$1.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "component", type: i5.DxTextBoxComponent, selector: "dx-text-box", inputs: ["accessKey", "activeStateEnabled", "buttons", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "inputAttr", "isValid", "label", "labelMode", "mask", "maskChar", "maskInvalidMessage", "maskRules", "maxLength", "mode", "name", "placeholder", "readOnly", "rtlEnabled", "showClearButton", "showMaskMode", "spellcheck", "stylingMode", "tabIndex", "text", "useMaskedValue", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "valueChangeEvent", "visible", "width"], outputs: ["onChange", "onContentReady", "onCopy", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onKeyDown", "onKeyUp", "onOptionChanged", "onPaste", "onValueChanged", "accessKeyChange", "activeStateEnabledChange", "buttonsChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isValidChange", "labelChange", "labelModeChange", "maskChange", "maskCharChange", "maskInvalidMessageChange", "maskRulesChange", "maxLengthChange", "modeChange", "nameChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "showClearButtonChange", "showMaskModeChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "useMaskedValueChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "component", type: i5.DxSelectBoxComponent, selector: "dx-select-box", inputs: ["acceptCustomValue", "accessKey", "activeStateEnabled", "buttons", "customItemCreateEvent", "dataSource", "deferRendering", "disabled", "displayExpr", "displayValue", "dropDownButtonTemplate", "dropDownOptions", "elementAttr", "fieldTemplate", "focusStateEnabled", "grouped", "groupTemplate", "height", "hint", "hoverStateEnabled", "inputAttr", "isValid", "items", "itemTemplate", "label", "labelMode", "maxLength", "minSearchLength", "name", "noDataText", "opened", "openOnFieldClick", "placeholder", "readOnly", "rtlEnabled", "searchEnabled", "searchExpr", "searchMode", "searchTimeout", "selectedItem", "showClearButton", "showDataBeforeSearch", "showDropDownButton", "showSelectionControls", "spellcheck", "stylingMode", "tabIndex", "text", "useItemTextAsTitle", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "valueChangeEvent", "valueExpr", "visible", "width", "wrapItemText"], outputs: ["onChange", "onClosed", "onContentReady", "onCopy", "onCustomItemCreating", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onItemClick", "onKeyDown", "onKeyUp", "onOpened", "onOptionChanged", "onPaste", "onSelectionChanged", "onValueChanged", "acceptCustomValueChange", "accessKeyChange", "activeStateEnabledChange", "buttonsChange", "customItemCreateEventChange", "dataSourceChange", "deferRenderingChange", "disabledChange", "displayExprChange", "displayValueChange", "dropDownButtonTemplateChange", "dropDownOptionsChange", "elementAttrChange", "fieldTemplateChange", "focusStateEnabledChange", "groupedChange", "groupTemplateChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isValidChange", "itemsChange", "itemTemplateChange", "labelChange", "labelModeChange", "maxLengthChange", "minSearchLengthChange", "nameChange", "noDataTextChange", "openedChange", "openOnFieldClickChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "searchEnabledChange", "searchExprChange", "searchModeChange", "searchTimeoutChange", "selectedItemChange", "showClearButtonChange", "showDataBeforeSearchChange", "showDropDownButtonChange", "showSelectionControlsChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "useItemTextAsTitleChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "valueExprChange", "visibleChange", "widthChange", "wrapItemTextChange", "onBlur"] }, { kind: "component", type: i5.DxCheckBoxComponent, selector: "dx-check-box", inputs: ["accessKey", "activeStateEnabled", "disabled", "elementAttr", "enableThreeStateBehavior", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "iconSize", "isValid", "name", "readOnly", "rtlEnabled", "tabIndex", "text", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "visible", "width"], outputs: ["onContentReady", "onDisposing", "onInitialized", "onOptionChanged", "onValueChanged", "accessKeyChange", "activeStateEnabledChange", "disabledChange", "elementAttrChange", "enableThreeStateBehaviorChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "iconSizeChange", "isValidChange", "nameChange", "readOnlyChange", "rtlEnabledChange", "tabIndexChange", "textChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
2338
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitScaleFormComponent, decorators: [{
2339
+ type: Component,
2340
+ args: [{ selector: 'lib-hit-scale-form', template: "<abp-modal [visible]=\"visible\" (visibleChange)=\"onModalVisibleChange($event)\" [options]=\"{ size: 'lg', backdrop: 'static' }\">\r\n <ng-template #abpHeader>\r\n <h3>{{ record?.code ? ('AbpUi::Edit' | abpLocalization) : ('Kadooglu::NewRecord' | abpLocalization) }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <div class=\"border rounded p-3 mb-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-cog me-2\"></i>{{ 'Kadooglu::BasicInfo' | abpLocalization }}\r\n </div>\r\n <div class=\"row mb-3\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::Code' | abpLocalization }} <span class=\"text-danger\">*</span></label>\r\n <dx-text-box [(value)]=\"code\" [disabled]=\"!!record?.code\" placeholder=\"Kantar kodu\" width=\"100%\"></dx-text-box>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::Name' | abpLocalization }} <span class=\"text-danger\">*</span></label>\r\n <dx-text-box [(value)]=\"name\" placeholder=\"Kantar ad\u0131\" width=\"100%\"></dx-text-box>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"border rounded p-3 mb-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-plug me-2\"></i>{{ 'Kadooglu::SerialPortSettings' | abpLocalization }}\r\n </div>\r\n <div class=\"row mb-3\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::Port' | abpLocalization }}</label>\r\n <dx-text-box [(value)]=\"u_Port\" [placeholder]=\"'Kadooglu::PortExample' | abpLocalization\" width=\"100%\"></dx-text-box>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::BaudRate' | abpLocalization }}</label>\r\n <dx-text-box [(value)]=\"u_BaudRate\" [placeholder]=\"'Kadooglu::BaudRateExample' | abpLocalization\" width=\"100%\"></dx-text-box>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-4\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::DataBits' | abpLocalization }}</label>\r\n <dx-select-box [(value)]=\"u_DataBits\" [items]=\"dataBitsOptions\" valueExpr=\"value\" displayExpr=\"display\" width=\"100%\"></dx-select-box>\r\n </div>\r\n <div class=\"col-md-4\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::StopBits' | abpLocalization }}</label>\r\n <dx-select-box [(value)]=\"u_StopBits\" [items]=\"stopBitsOptions\" valueExpr=\"value\" displayExpr=\"display\" width=\"100%\"></dx-select-box>\r\n </div>\r\n <div class=\"col-md-4\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::Parity' | abpLocalization }}</label>\r\n <dx-select-box [(value)]=\"u_Parity\" [items]=\"parityOptions\" valueExpr=\"value\" displayExpr=\"display\" width=\"100%\"></dx-select-box>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Durum -->\r\n <div class=\"border rounded p-3 mt-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-toggle-on me-2\"></i>{{ 'Kadooglu::Status' | abpLocalization }}\r\n </div>\r\n <dx-check-box [(value)]=\"isActive\" [text]=\"'Kadooglu::IsActive' | abpLocalization\"></dx-check-box>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"cancel()\">\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-save\" buttonType=\"button\" [loading]=\"isLoading\" (click)=\"save()\">\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
2341
+ }], ctorParameters: function () { return [{ type: HitScaleService }, { type: i2$1.ConfirmationService }]; }, propDecorators: { visible: [{
2342
+ type: Input
2343
+ }], visibleChange: [{
2344
+ type: Output
2345
+ }], record: [{
2346
+ type: Input
2347
+ }], saved: [{
2348
+ type: Output
2349
+ }], cancelled: [{
2350
+ type: Output
2351
+ }] } });
2352
+
2353
+ class HitScaleListComponent {
2354
+ constructor(service, confirmation) {
2355
+ this.service = service;
2356
+ this.confirmation = confirmation;
2357
+ this.allData = [];
2358
+ this.filteredData = [];
2359
+ this.dataBitsLookup = [
2360
+ { value: '7', display: '7BITS' },
2361
+ { value: '8', display: '8BITS' },
2362
+ ];
2363
+ this.stopBitsLookup = [
2364
+ { value: '1', display: 'One' },
2365
+ { value: '2', display: 'Two' },
2366
+ ];
2367
+ this.parityLookup = [
2368
+ { value: 'N', display: 'None' },
2369
+ { value: 'O', display: 'Odd' },
2370
+ { value: 'E', display: 'Even' },
2371
+ ];
2372
+ this.filterCode = '';
2373
+ this.filterName = '';
2374
+ this.showForm = false;
2375
+ this.disabledIdColumn = false;
2376
+ this.selectedRecord = null;
2377
+ }
2378
+ ngOnInit() {
2379
+ this.loadList();
2380
+ }
2381
+ onToolbarPreparing(e) {
2382
+ e.toolbarOptions.items.unshift({
2383
+ location: 'after',
2384
+ widget: 'dxButton',
2385
+ options: {
2386
+ icon: 'plus',
2387
+ text: 'Yeni Kayıt',
2388
+ type: 'default',
2389
+ onClick: () => this.yeniKayit(),
2390
+ },
2391
+ });
2392
+ }
2393
+ loadList() {
2394
+ this.service.getList().subscribe(data => {
2395
+ this.allData = data;
2396
+ this.filteredData = [...data];
2397
+ });
2398
+ }
2399
+ bul() {
2400
+ this.filteredData = this.allData.filter(x => {
2401
+ var _a, _b;
2402
+ if (this.filterCode && !((_a = x.code) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(this.filterCode.toLowerCase())))
2403
+ return false;
2404
+ if (this.filterName && !((_b = x.name) === null || _b === void 0 ? void 0 : _b.toLowerCase().includes(this.filterName.toLowerCase())))
2405
+ return false;
2406
+ return true;
2407
+ });
2408
+ }
2409
+ temizle() {
2410
+ this.filterCode = '';
2411
+ this.filterName = '';
2412
+ this.filteredData = [...this.allData];
2413
+ }
2414
+ yeniKayit() {
2415
+ this.selectedRecord = null;
2416
+ this.showForm = true;
2417
+ }
2418
+ duzenle(row) {
2419
+ this.selectedRecord = Object.assign({}, row);
2420
+ this.showForm = true;
2421
+ }
2422
+ sil(row) {
2423
+ this.confirmation
2424
+ .warn(`"${row.name}" kantarını silmek istediğinize emin misiniz?`, '', {
2425
+ yesText: 'Evet',
2426
+ cancelText: 'Hayır',
2427
+ })
2428
+ .subscribe(status => {
2429
+ if (status === 'confirm') {
2430
+ this.service.delete(row.code).subscribe(() => this.loadList());
2431
+ }
2432
+ });
2433
+ }
2434
+ onFormSaved() {
2435
+ this.showForm = false;
2436
+ this.loadList();
2437
+ }
2438
+ onFormCancelled() {
2439
+ this.showForm = false;
2440
+ }
2441
+ }
2442
+ HitScaleListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitScaleListComponent, deps: [{ token: HitScaleService }, { token: i2$1.ConfirmationService }], target: i0.ɵɵFactoryTarget.Component });
2443
+ HitScaleListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: HitScaleListComponent, selector: "lib-hit-scale-list", ngImport: i0, template: "<abp-page [breadcrumb]=\"false\">\r\n <abp-page-toolbar-container class=\"col\">\r\n <div class=\"row align-items-center\">\r\n <div class=\"col\">\r\n <h3 class=\"page-title\">{{ 'Kadooglu::ScaleTitle' | abpLocalization }}</h3>\r\n </div>\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\r\n <dx-data-grid\r\n [dataSource]=\"filteredData\"\r\n [columnAutoWidth]=\"true\"\r\n [showBorders]=\"true\"\r\n [showRowLines]=\"true\"\r\n [hoverStateEnabled]=\"true\"\r\n [allowColumnResizing]=\"true\"\r\n columnResizingMode=\"widget\"\r\n [rowAlternationEnabled]=\"true\"\r\n (onToolbarPreparing)=\"onToolbarPreparing($event)\"\r\n keyExpr=\"code\"\r\n style=\"height: calc(100vh - 320px);\">\r\n\r\n <dxo-filter-row [visible]=\"true\"></dxo-filter-row>\r\n <dxo-header-filter [visible]=\"true\"></dxo-header-filter>\r\n <dxo-search-panel [visible]=\"true\" [width]=\"200\" [placeholder]=\"'Kadooglu::Ara' | abpLocalization\"></dxo-search-panel>\r\n <dxo-pager [visible]=\"true\" [showInfo]=\"true\" [allowedPageSizes]=\"[10,20,50]\"\r\n [showPageSizeSelector]=\"true\" [showNavigationButtons]=\"true\"></dxo-pager>\r\n <dxo-paging [pageSize]=\"10\"></dxo-paging>\r\n <dxi-column [fixed]=\"true\" dataField=\"id\" width=\"120\" [allowGrouping]=\"false\" [allowFiltering]=\"false\"\r\n [allowHeaderFiltering]=\"false\" [allowHiding]=\"false\" [allowReordering]=\"false\"\r\n cellTemplate=\"operationTemplate\" caption=\"{{ 'AbpUi::Actions' | abpLocalization }}\">\r\n <div *dxTemplate=\"let row of 'operationTemplate'\">\r\n <div ngbDropdown container=\"body\" class=\"d-inline-block\">\r\n <button class=\"btn btn-primary btn-sm dropdown-toggle\" data-toggle=\"dropdown\"\r\n aria-haspopup=\"true\" ngbDropdownToggle [disabled]=\"disabledIdColumn\">\r\n <i class=\"fa fa-cog mr-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpUi::Actions' | abpLocalization }}\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"duzenle(row.data)\">\r\n <i class=\"fa fa-edit\" aria-hidden=\"true\"></i> {{ 'AbpUi::Edit' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </dxi-column>\r\n <dxi-column dataField=\"code\" caption=\"{{ 'Kadooglu::Code' | abpLocalization }}\" [width]=\"150\"></dxi-column>\r\n <dxi-column dataField=\"name\" caption=\"{{ 'Kadooglu::Name' | abpLocalization }}\"></dxi-column>\r\n <dxi-column dataField=\"u_Port\" caption=\"{{ 'Kadooglu::Port' | abpLocalization }}\" [width]=\"120\"></dxi-column>\r\n <dxi-column dataField=\"u_BaudRate\" caption=\"{{ 'Kadooglu::BaudRate' | abpLocalization }}\" [width]=\"120\"></dxi-column>\r\n <dxi-column dataField=\"u_DataBits\" caption=\"{{ 'Kadooglu::DataBits' | abpLocalization }}\" [width]=\"100\">\r\n <dxo-lookup [dataSource]=\"dataBitsLookup\" valueExpr=\"value\" displayExpr=\"display\"></dxo-lookup>\r\n </dxi-column>\r\n <dxi-column dataField=\"u_StopBits\" caption=\"{{ 'Kadooglu::StopBits' | abpLocalization }}\" [width]=\"100\">\r\n <dxo-lookup [dataSource]=\"stopBitsLookup\" valueExpr=\"value\" displayExpr=\"display\"></dxo-lookup>\r\n </dxi-column>\r\n <dxi-column dataField=\"u_Parity\" caption=\"{{ 'Kadooglu::Parity' | abpLocalization }}\" [width]=\"100\">\r\n </dxi-column>\r\n <dxi-column dataField=\"u_Active\" caption=\"{{ 'Kadooglu::IsActive' | abpLocalization }}\" [width]=\"80\"></dxi-column>\r\n </dx-data-grid>\r\n\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<lib-hit-scale-form\r\n [(visible)]=\"showForm\"\r\n [record]=\"selectedRecord\"\r\n (saved)=\"onFormSaved()\"\r\n (cancelled)=\"onFormCancelled()\">\r\n</lib-hit-scale-form>\r\n", dependencies: [{ kind: "component", type: i4.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: i4.PageToolbarContainerComponent, selector: "abp-page-toolbar-container" }, { kind: "component", type: i5.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: i5$1.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: i5$1.DxoHeaderFilterComponent, selector: "dxo-header-filter", inputs: ["allowSearch", "dataSource", "groupInterval", "height", "searchMode", "width", "searchTimeout", "texts", "visible", "showRelevantValues"] }, { kind: "component", type: i5$1.DxoLookupComponent, selector: "dxo-lookup", inputs: ["allowClearing", "calculateCellValue", "dataSource", "displayExpr", "valueExpr"] }, { kind: "component", type: i5$1.DxoFilterRowComponent, selector: "dxo-filter-row", inputs: ["applyFilter", "applyFilterText", "betweenEndText", "betweenStartText", "operationDescriptions", "resetOperationText", "showAllText", "showOperationChooser", "visible"] }, { kind: "component", type: i5$1.DxoPagerComponent, selector: "dxo-pager", inputs: ["allowedPageSizes", "displayMode", "infoText", "label", "showInfo", "showNavigationButtons", "showPageSizeSelector", "visible"] }, { kind: "component", type: i5$1.DxoPagingComponent, selector: "dxo-paging", inputs: ["enabled", "pageIndex", "pageSize"], outputs: ["pageIndexChange", "pageSizeChange"] }, { kind: "component", type: i5$1.DxoSearchPanelComponent, selector: "dxo-search-panel", inputs: ["highlightCaseSensitive", "highlightSearchText", "placeholder", "searchVisibleColumnsOnly", "text", "visible", "width"], outputs: ["textChange"] }, { kind: "directive", type: i7.DxTemplateDirective, selector: "[dxTemplate]", inputs: ["dxTemplateOf"] }, { kind: "directive", type: i8.NgbDropdown, selector: "[ngbDropdown]", inputs: ["autoClose", "dropdownClass", "open", "placement", "container", "display"], outputs: ["openChange"], exportAs: ["ngbDropdown"] }, { kind: "directive", type: i8.NgbDropdownToggle, selector: "[ngbDropdownToggle]" }, { kind: "directive", type: i8.NgbDropdownMenu, selector: "[ngbDropdownMenu]" }, { kind: "directive", type: i8.NgbDropdownItem, selector: "[ngbDropdownItem]", inputs: ["disabled"] }, { kind: "component", type: HitScaleFormComponent, selector: "lib-hit-scale-form", inputs: ["visible", "record"], outputs: ["visibleChange", "saved", "cancelled"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
2444
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitScaleListComponent, decorators: [{
2445
+ type: Component,
2446
+ args: [{ selector: 'lib-hit-scale-list', template: "<abp-page [breadcrumb]=\"false\">\r\n <abp-page-toolbar-container class=\"col\">\r\n <div class=\"row align-items-center\">\r\n <div class=\"col\">\r\n <h3 class=\"page-title\">{{ 'Kadooglu::ScaleTitle' | abpLocalization }}</h3>\r\n </div>\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\r\n <dx-data-grid\r\n [dataSource]=\"filteredData\"\r\n [columnAutoWidth]=\"true\"\r\n [showBorders]=\"true\"\r\n [showRowLines]=\"true\"\r\n [hoverStateEnabled]=\"true\"\r\n [allowColumnResizing]=\"true\"\r\n columnResizingMode=\"widget\"\r\n [rowAlternationEnabled]=\"true\"\r\n (onToolbarPreparing)=\"onToolbarPreparing($event)\"\r\n keyExpr=\"code\"\r\n style=\"height: calc(100vh - 320px);\">\r\n\r\n <dxo-filter-row [visible]=\"true\"></dxo-filter-row>\r\n <dxo-header-filter [visible]=\"true\"></dxo-header-filter>\r\n <dxo-search-panel [visible]=\"true\" [width]=\"200\" [placeholder]=\"'Kadooglu::Ara' | abpLocalization\"></dxo-search-panel>\r\n <dxo-pager [visible]=\"true\" [showInfo]=\"true\" [allowedPageSizes]=\"[10,20,50]\"\r\n [showPageSizeSelector]=\"true\" [showNavigationButtons]=\"true\"></dxo-pager>\r\n <dxo-paging [pageSize]=\"10\"></dxo-paging>\r\n <dxi-column [fixed]=\"true\" dataField=\"id\" width=\"120\" [allowGrouping]=\"false\" [allowFiltering]=\"false\"\r\n [allowHeaderFiltering]=\"false\" [allowHiding]=\"false\" [allowReordering]=\"false\"\r\n cellTemplate=\"operationTemplate\" caption=\"{{ 'AbpUi::Actions' | abpLocalization }}\">\r\n <div *dxTemplate=\"let row of 'operationTemplate'\">\r\n <div ngbDropdown container=\"body\" class=\"d-inline-block\">\r\n <button class=\"btn btn-primary btn-sm dropdown-toggle\" data-toggle=\"dropdown\"\r\n aria-haspopup=\"true\" ngbDropdownToggle [disabled]=\"disabledIdColumn\">\r\n <i class=\"fa fa-cog mr-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpUi::Actions' | abpLocalization }}\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"duzenle(row.data)\">\r\n <i class=\"fa fa-edit\" aria-hidden=\"true\"></i> {{ 'AbpUi::Edit' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </dxi-column>\r\n <dxi-column dataField=\"code\" caption=\"{{ 'Kadooglu::Code' | abpLocalization }}\" [width]=\"150\"></dxi-column>\r\n <dxi-column dataField=\"name\" caption=\"{{ 'Kadooglu::Name' | abpLocalization }}\"></dxi-column>\r\n <dxi-column dataField=\"u_Port\" caption=\"{{ 'Kadooglu::Port' | abpLocalization }}\" [width]=\"120\"></dxi-column>\r\n <dxi-column dataField=\"u_BaudRate\" caption=\"{{ 'Kadooglu::BaudRate' | abpLocalization }}\" [width]=\"120\"></dxi-column>\r\n <dxi-column dataField=\"u_DataBits\" caption=\"{{ 'Kadooglu::DataBits' | abpLocalization }}\" [width]=\"100\">\r\n <dxo-lookup [dataSource]=\"dataBitsLookup\" valueExpr=\"value\" displayExpr=\"display\"></dxo-lookup>\r\n </dxi-column>\r\n <dxi-column dataField=\"u_StopBits\" caption=\"{{ 'Kadooglu::StopBits' | abpLocalization }}\" [width]=\"100\">\r\n <dxo-lookup [dataSource]=\"stopBitsLookup\" valueExpr=\"value\" displayExpr=\"display\"></dxo-lookup>\r\n </dxi-column>\r\n <dxi-column dataField=\"u_Parity\" caption=\"{{ 'Kadooglu::Parity' | abpLocalization }}\" [width]=\"100\">\r\n </dxi-column>\r\n <dxi-column dataField=\"u_Active\" caption=\"{{ 'Kadooglu::IsActive' | abpLocalization }}\" [width]=\"80\"></dxi-column>\r\n </dx-data-grid>\r\n\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<lib-hit-scale-form\r\n [(visible)]=\"showForm\"\r\n [record]=\"selectedRecord\"\r\n (saved)=\"onFormSaved()\"\r\n (cancelled)=\"onFormCancelled()\">\r\n</lib-hit-scale-form>\r\n" }]
2447
+ }], ctorParameters: function () { return [{ type: HitScaleService }, { type: i2$1.ConfirmationService }]; } });
2448
+
2449
+ const routes$5 = [
2450
+ { path: '', component: HitScaleListComponent },
2451
+ ];
2452
+ class HitScaleRoutingModule {
2453
+ }
2454
+ HitScaleRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitScaleRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2455
+ HitScaleRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitScaleRoutingModule, imports: [i1$1.RouterModule], exports: [RouterModule] });
2456
+ HitScaleRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitScaleRoutingModule, imports: [RouterModule.forChild(routes$5), RouterModule] });
2457
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitScaleRoutingModule, decorators: [{
2458
+ type: NgModule,
2459
+ args: [{
2460
+ imports: [RouterModule.forChild(routes$5)],
2461
+ exports: [RouterModule],
2462
+ }]
2463
+ }] });
2464
+
2465
+ class HitScaleModule {
2466
+ }
2467
+ HitScaleModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitScaleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2468
+ HitScaleModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitScaleModule, declarations: [HitScaleListComponent, HitScaleFormComponent], imports: [CommonModule,
2469
+ FormsModule,
2470
+ CoreModule,
2471
+ ThemeSharedModule,
2472
+ PageModule,
2473
+ CommercialUiModule,
2474
+ HitScaleRoutingModule,
2475
+ HitUIModule,
2476
+ DxDataGridModule,
2477
+ DxTextBoxModule,
2478
+ DxButtonModule,
2479
+ NgbDropdownModule,
2480
+ DxSelectBoxModule,
2481
+ DxCheckBoxModule] });
2482
+ HitScaleModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitScaleModule, imports: [CommonModule,
2483
+ FormsModule,
2484
+ CoreModule,
2485
+ ThemeSharedModule,
2486
+ PageModule,
2487
+ CommercialUiModule,
2488
+ HitScaleRoutingModule,
2489
+ HitUIModule,
2490
+ DxDataGridModule,
2491
+ DxTextBoxModule,
2492
+ DxButtonModule,
2493
+ NgbDropdownModule,
2494
+ DxSelectBoxModule,
2495
+ DxCheckBoxModule] });
2496
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitScaleModule, decorators: [{
2497
+ type: NgModule,
2498
+ args: [{
2499
+ declarations: [HitScaleListComponent, HitScaleFormComponent],
2500
+ imports: [
2501
+ CommonModule,
2502
+ FormsModule,
2503
+ CoreModule,
2504
+ ThemeSharedModule,
2505
+ PageModule,
2506
+ CommercialUiModule,
2507
+ HitScaleRoutingModule,
2508
+ HitUIModule,
2509
+ DxDataGridModule,
2510
+ DxTextBoxModule,
2511
+ DxButtonModule,
2512
+ NgbDropdownModule,
2513
+ DxSelectBoxModule,
2514
+ DxCheckBoxModule,
2515
+ ],
2516
+ }]
2517
+ }] });
2518
+ function loadHitScaleModuleAsChild() {
2519
+ return Promise.resolve(HitScaleModule);
2520
+ }
2521
+
2522
+ class HitGateFormComponent {
2523
+ constructor(service, confirmation, userGateService, restService) {
2524
+ this.service = service;
2525
+ this.confirmation = confirmation;
2526
+ this.userGateService = userGateService;
2527
+ this.restService = restService;
2528
+ this.visible = false;
2529
+ this.visibleChange = new EventEmitter();
2530
+ this.record = null;
2531
+ this.saved = new EventEmitter();
2532
+ this.cancelled = new EventEmitter();
2533
+ this.code = '';
2534
+ this.name = '';
2535
+ this.isActive = false;
2536
+ this.isLoading = false;
2537
+ this.userGates = [];
2538
+ this.allAbpUsers = [];
2539
+ this.selectedUserIdToAdd = '';
2540
+ }
2541
+ ngOnInit() {
2542
+ this.restService.request({ method: 'GET', url: '/api/identity/users', params: { maxResultCount: 200 } }, { apiName: 'AbpIdentity' }).pipe(map$1(r => { var _a; return (_a = r === null || r === void 0 ? void 0 : r.items) !== null && _a !== void 0 ? _a : []; })).subscribe(users => {
2543
+ this.allAbpUsers = users.map((u) => {
2544
+ var _a;
2545
+ return ({
2546
+ id: u.id,
2547
+ tenantId: (_a = u.tenantId) !== null && _a !== void 0 ? _a : '',
2548
+ userName: u.userName,
2549
+ });
2550
+ });
2551
+ });
2552
+ }
2553
+ ngOnChanges(changes) {
2554
+ var _a;
2555
+ if (((_a = changes['visible']) === null || _a === void 0 ? void 0 : _a.currentValue) === true) {
2556
+ this.initForm();
2557
+ }
2558
+ }
2559
+ initForm() {
2560
+ if (this.record) {
2561
+ this.code = this.record.code;
2562
+ this.name = this.record.name;
2563
+ this.isActive = this.record.u_Active === 'Y';
2564
+ this.userGateService.getByGateCode(this.record.code).subscribe(items => {
2565
+ this.userGates = items.map(item => {
2566
+ var _a, _b;
2567
+ return (Object.assign(Object.assign({}, item), { userName: (_b = (_a = this.allAbpUsers.find(u => u.id === item.u_UserId)) === null || _a === void 0 ? void 0 : _a.userName) !== null && _b !== void 0 ? _b : '' }));
2568
+ });
2569
+ });
2570
+ }
2571
+ else {
2572
+ this.code = '';
2573
+ this.name = '';
2574
+ this.isActive = true;
2575
+ this.userGates = [];
2576
+ }
2577
+ }
2578
+ addUser() {
2579
+ if (!this.selectedUserIdToAdd)
2580
+ return;
2581
+ const user = this.allAbpUsers.find(u => u.id === this.selectedUserIdToAdd);
2582
+ if (!user)
2583
+ return;
2584
+ if (this.userGates.some(g => g.u_UserId === user.id))
2585
+ return;
2586
+ this.userGates = [
2587
+ ...this.userGates,
2588
+ {
2589
+ u_GateCode: this.code,
2590
+ u_UserId: user.id,
2591
+ u_TenantId: user.tenantId,
2592
+ u_IsDefault: 'N',
2593
+ userName: user.userName,
2594
+ },
2595
+ ];
2596
+ this.selectedUserIdToAdd = '';
2597
+ }
2598
+ removeUser(index) {
2599
+ this.userGates = this.userGates.filter((_, i) => i !== index);
2600
+ }
2601
+ setDefault(index) {
2602
+ this.userGates = this.userGates.map((g, i) => (Object.assign(Object.assign({}, g), { u_IsDefault: i === index ? 'Y' : 'N' })));
2603
+ }
2604
+ save() {
2605
+ var _a;
2606
+ if (!this.code || !this.name) {
2607
+ this.confirmation.warn('Lütfen Kod ve Ad alanlarını doldurunuz.', '', {
2608
+ hideYesBtn: true,
2609
+ cancelText: 'Kapat',
2610
+ dismissible: false,
2611
+ });
2612
+ return;
2613
+ }
2614
+ const dto = { code: this.code, name: this.name, u_Active: this.isActive ? 'Y' : 'N' };
2615
+ const obs$ = ((_a = this.record) === null || _a === void 0 ? void 0 : _a.code)
2616
+ ? this.service.update(this.record.code, dto)
2617
+ : this.service.create(dto);
2618
+ this.isLoading = true;
2619
+ obs$.subscribe({
2620
+ next: (gate) => {
2621
+ var _a;
2622
+ const gateCode = (_a = gate === null || gate === void 0 ? void 0 : gate.code) !== null && _a !== void 0 ? _a : this.code;
2623
+ this.userGateService.saveGateUsers(gateCode, this.userGates).subscribe({
2624
+ next: () => {
2625
+ this.isLoading = false;
2626
+ this.saved.emit();
2627
+ },
2628
+ error: () => {
2629
+ this.isLoading = false;
2630
+ },
2631
+ });
2632
+ },
2633
+ error: () => {
2634
+ this.isLoading = false;
2635
+ },
2636
+ });
2637
+ }
2638
+ onModalVisibleChange(val) {
2639
+ this.visible = val;
2640
+ this.visibleChange.emit(val);
2641
+ if (!val) {
2642
+ this.cancelled.emit();
2643
+ }
2644
+ }
2645
+ cancel() {
2646
+ this.onModalVisibleChange(false);
2647
+ }
2648
+ }
2649
+ HitGateFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitGateFormComponent, deps: [{ token: HitGateService }, { token: i2$1.ConfirmationService }, { token: HitUserGateService }, { token: i1.RestService }], target: i0.ɵɵFactoryTarget.Component });
2650
+ HitGateFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: HitGateFormComponent, selector: "lib-hit-gate-form", inputs: { visible: "visible", record: "record" }, outputs: { visibleChange: "visibleChange", saved: "saved", cancelled: "cancelled" }, usesOnChanges: true, ngImport: i0, template: "<abp-modal [visible]=\"visible\" (visibleChange)=\"onModalVisibleChange($event)\" [options]=\"{ size: 'xl', backdrop: 'static' }\">\r\n <ng-template #abpHeader>\r\n <h3>{{ record?.code ? ('AbpUi::Edit' | abpLocalization) : ('Kadooglu::NewRecord' | abpLocalization) }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <div class=\"border rounded p-3 mb-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-door-open me-2\"></i>{{ 'Kadooglu::BasicInfo' | abpLocalization }}\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::Code' | abpLocalization }} <span class=\"text-danger\">*</span></label>\r\n <dx-text-box [(value)]=\"code\" [disabled]=\"!!record?.code\" placeholder=\"Kap\u0131 kodu\" width=\"100%\"></dx-text-box>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::Name' | abpLocalization }} <span class=\"text-danger\">*</span></label>\r\n <dx-text-box [(value)]=\"name\" placeholder=\"Kap\u0131 ad\u0131\" width=\"100%\"></dx-text-box>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"border rounded p-3 mb-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-users me-2\"></i>{{ 'Kadooglu::UserAuthorization' | abpLocalization }}\r\n </div>\r\n\r\n <div class=\"d-flex gap-2 mb-3\">\r\n <dx-select-box\r\n [(value)]=\"selectedUserIdToAdd\"\r\n [dataSource]=\"allAbpUsers\"\r\n displayExpr=\"userName\"\r\n valueExpr=\"id\"\r\n [placeholder]=\"'Kadooglu::SelectUser' | abpLocalization\"\r\n [searchEnabled]=\"true\"\r\n style=\"flex: 1\">\r\n </dx-select-box>\r\n <button type=\"button\" class=\"btn btn-outline-primary btn-sm text-nowrap\" (click)=\"addUser()\">\r\n <i class=\"fa fa-plus me-1\"></i>{{ 'Kadooglu::Add' | abpLocalization }}\r\n </button>\r\n </div>\r\n\r\n <dx-data-grid\r\n [dataSource]=\"userGates\"\r\n [showBorders]=\"true\"\r\n [showRowLines]=\"true\"\r\n [columnAutoWidth]=\"true\"\r\n [noDataText]=\"'Kadooglu::NoUsersAdded' | abpLocalization\">\r\n <dxi-column dataField=\"userName\" caption=\"{{ 'Kadooglu::User' | abpLocalization }}\" [allowEditing]=\"false\"></dxi-column>\r\n <dxi-column dataField=\"u_UserId\" caption=\"{{ 'Kadooglu::UserId' | abpLocalization }}\" [allowEditing]=\"false\" [visible]=\"false\"></dxi-column>\r\n <dxi-column caption=\"{{ 'Kadooglu::Default' | abpLocalization }}\" [width]=\"100\" cellTemplate=\"defaultTemplate\"></dxi-column>\r\n <dxi-column caption=\"{{ 'AbpUi::Delete' | abpLocalization }}\" [width]=\"70\" cellTemplate=\"deleteTemplate\"></dxi-column>\r\n\r\n <div *dxTemplate=\"let d of 'defaultTemplate'\">\r\n <div class=\"text-center\">\r\n <input\r\n type=\"checkbox\"\r\n [checked]=\"d.data.u_IsDefault === 'Y'\"\r\n (change)=\"setDefault(d.rowIndex)\">\r\n </div>\r\n </div>\r\n <div *dxTemplate=\"let d of 'deleteTemplate'\">\r\n <div class=\"text-center\">\r\n <button type=\"button\" class=\"btn btn-outline-danger btn-sm\" (click)=\"removeUser(d.rowIndex)\">\r\n <i class=\"fa fa-trash\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n </dx-data-grid>\r\n </div>\r\n\r\n <!-- Durum -->\r\n <div class=\"border rounded p-3 mt-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-toggle-on me-2\"></i>{{ 'Kadooglu::Status' | abpLocalization }}\r\n </div>\r\n <dx-check-box [(value)]=\"isActive\" [text]=\"'Kadooglu::IsActive' | abpLocalization\"></dx-check-box>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"cancel()\">\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-save\" buttonType=\"button\" [loading]=\"isLoading\" (click)=\"save()\">\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "component", type: i2$1.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i2$1.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "component", type: i5.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: i5$1.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: "directive", type: i7.DxTemplateDirective, selector: "[dxTemplate]", inputs: ["dxTemplateOf"] }, { kind: "component", type: i5.DxTextBoxComponent, selector: "dx-text-box", inputs: ["accessKey", "activeStateEnabled", "buttons", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "inputAttr", "isValid", "label", "labelMode", "mask", "maskChar", "maskInvalidMessage", "maskRules", "maxLength", "mode", "name", "placeholder", "readOnly", "rtlEnabled", "showClearButton", "showMaskMode", "spellcheck", "stylingMode", "tabIndex", "text", "useMaskedValue", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "valueChangeEvent", "visible", "width"], outputs: ["onChange", "onContentReady", "onCopy", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onKeyDown", "onKeyUp", "onOptionChanged", "onPaste", "onValueChanged", "accessKeyChange", "activeStateEnabledChange", "buttonsChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isValidChange", "labelChange", "labelModeChange", "maskChange", "maskCharChange", "maskInvalidMessageChange", "maskRulesChange", "maxLengthChange", "modeChange", "nameChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "showClearButtonChange", "showMaskModeChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "useMaskedValueChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "component", type: i5.DxSelectBoxComponent, selector: "dx-select-box", inputs: ["acceptCustomValue", "accessKey", "activeStateEnabled", "buttons", "customItemCreateEvent", "dataSource", "deferRendering", "disabled", "displayExpr", "displayValue", "dropDownButtonTemplate", "dropDownOptions", "elementAttr", "fieldTemplate", "focusStateEnabled", "grouped", "groupTemplate", "height", "hint", "hoverStateEnabled", "inputAttr", "isValid", "items", "itemTemplate", "label", "labelMode", "maxLength", "minSearchLength", "name", "noDataText", "opened", "openOnFieldClick", "placeholder", "readOnly", "rtlEnabled", "searchEnabled", "searchExpr", "searchMode", "searchTimeout", "selectedItem", "showClearButton", "showDataBeforeSearch", "showDropDownButton", "showSelectionControls", "spellcheck", "stylingMode", "tabIndex", "text", "useItemTextAsTitle", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "valueChangeEvent", "valueExpr", "visible", "width", "wrapItemText"], outputs: ["onChange", "onClosed", "onContentReady", "onCopy", "onCustomItemCreating", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onItemClick", "onKeyDown", "onKeyUp", "onOpened", "onOptionChanged", "onPaste", "onSelectionChanged", "onValueChanged", "acceptCustomValueChange", "accessKeyChange", "activeStateEnabledChange", "buttonsChange", "customItemCreateEventChange", "dataSourceChange", "deferRenderingChange", "disabledChange", "displayExprChange", "displayValueChange", "dropDownButtonTemplateChange", "dropDownOptionsChange", "elementAttrChange", "fieldTemplateChange", "focusStateEnabledChange", "groupedChange", "groupTemplateChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isValidChange", "itemsChange", "itemTemplateChange", "labelChange", "labelModeChange", "maxLengthChange", "minSearchLengthChange", "nameChange", "noDataTextChange", "openedChange", "openOnFieldClickChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "searchEnabledChange", "searchExprChange", "searchModeChange", "searchTimeoutChange", "selectedItemChange", "showClearButtonChange", "showDataBeforeSearchChange", "showDropDownButtonChange", "showSelectionControlsChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "useItemTextAsTitleChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "valueExprChange", "visibleChange", "widthChange", "wrapItemTextChange", "onBlur"] }, { kind: "component", type: i5.DxCheckBoxComponent, selector: "dx-check-box", inputs: ["accessKey", "activeStateEnabled", "disabled", "elementAttr", "enableThreeStateBehavior", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "iconSize", "isValid", "name", "readOnly", "rtlEnabled", "tabIndex", "text", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "visible", "width"], outputs: ["onContentReady", "onDisposing", "onInitialized", "onOptionChanged", "onValueChanged", "accessKeyChange", "activeStateEnabledChange", "disabledChange", "elementAttrChange", "enableThreeStateBehaviorChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "iconSizeChange", "isValidChange", "nameChange", "readOnlyChange", "rtlEnabledChange", "tabIndexChange", "textChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
2651
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitGateFormComponent, decorators: [{
2652
+ type: Component,
2653
+ args: [{ selector: 'lib-hit-gate-form', template: "<abp-modal [visible]=\"visible\" (visibleChange)=\"onModalVisibleChange($event)\" [options]=\"{ size: 'xl', backdrop: 'static' }\">\r\n <ng-template #abpHeader>\r\n <h3>{{ record?.code ? ('AbpUi::Edit' | abpLocalization) : ('Kadooglu::NewRecord' | abpLocalization) }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <div class=\"border rounded p-3 mb-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-door-open me-2\"></i>{{ 'Kadooglu::BasicInfo' | abpLocalization }}\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::Code' | abpLocalization }} <span class=\"text-danger\">*</span></label>\r\n <dx-text-box [(value)]=\"code\" [disabled]=\"!!record?.code\" placeholder=\"Kap\u0131 kodu\" width=\"100%\"></dx-text-box>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::Name' | abpLocalization }} <span class=\"text-danger\">*</span></label>\r\n <dx-text-box [(value)]=\"name\" placeholder=\"Kap\u0131 ad\u0131\" width=\"100%\"></dx-text-box>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"border rounded p-3 mb-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-users me-2\"></i>{{ 'Kadooglu::UserAuthorization' | abpLocalization }}\r\n </div>\r\n\r\n <div class=\"d-flex gap-2 mb-3\">\r\n <dx-select-box\r\n [(value)]=\"selectedUserIdToAdd\"\r\n [dataSource]=\"allAbpUsers\"\r\n displayExpr=\"userName\"\r\n valueExpr=\"id\"\r\n [placeholder]=\"'Kadooglu::SelectUser' | abpLocalization\"\r\n [searchEnabled]=\"true\"\r\n style=\"flex: 1\">\r\n </dx-select-box>\r\n <button type=\"button\" class=\"btn btn-outline-primary btn-sm text-nowrap\" (click)=\"addUser()\">\r\n <i class=\"fa fa-plus me-1\"></i>{{ 'Kadooglu::Add' | abpLocalization }}\r\n </button>\r\n </div>\r\n\r\n <dx-data-grid\r\n [dataSource]=\"userGates\"\r\n [showBorders]=\"true\"\r\n [showRowLines]=\"true\"\r\n [columnAutoWidth]=\"true\"\r\n [noDataText]=\"'Kadooglu::NoUsersAdded' | abpLocalization\">\r\n <dxi-column dataField=\"userName\" caption=\"{{ 'Kadooglu::User' | abpLocalization }}\" [allowEditing]=\"false\"></dxi-column>\r\n <dxi-column dataField=\"u_UserId\" caption=\"{{ 'Kadooglu::UserId' | abpLocalization }}\" [allowEditing]=\"false\" [visible]=\"false\"></dxi-column>\r\n <dxi-column caption=\"{{ 'Kadooglu::Default' | abpLocalization }}\" [width]=\"100\" cellTemplate=\"defaultTemplate\"></dxi-column>\r\n <dxi-column caption=\"{{ 'AbpUi::Delete' | abpLocalization }}\" [width]=\"70\" cellTemplate=\"deleteTemplate\"></dxi-column>\r\n\r\n <div *dxTemplate=\"let d of 'defaultTemplate'\">\r\n <div class=\"text-center\">\r\n <input\r\n type=\"checkbox\"\r\n [checked]=\"d.data.u_IsDefault === 'Y'\"\r\n (change)=\"setDefault(d.rowIndex)\">\r\n </div>\r\n </div>\r\n <div *dxTemplate=\"let d of 'deleteTemplate'\">\r\n <div class=\"text-center\">\r\n <button type=\"button\" class=\"btn btn-outline-danger btn-sm\" (click)=\"removeUser(d.rowIndex)\">\r\n <i class=\"fa fa-trash\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n </dx-data-grid>\r\n </div>\r\n\r\n <!-- Durum -->\r\n <div class=\"border rounded p-3 mt-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-toggle-on me-2\"></i>{{ 'Kadooglu::Status' | abpLocalization }}\r\n </div>\r\n <dx-check-box [(value)]=\"isActive\" [text]=\"'Kadooglu::IsActive' | abpLocalization\"></dx-check-box>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"cancel()\">\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-save\" buttonType=\"button\" [loading]=\"isLoading\" (click)=\"save()\">\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
2654
+ }], ctorParameters: function () { return [{ type: HitGateService }, { type: i2$1.ConfirmationService }, { type: HitUserGateService }, { type: i1.RestService }]; }, propDecorators: { visible: [{
2655
+ type: Input
2656
+ }], visibleChange: [{
2657
+ type: Output
2658
+ }], record: [{
2659
+ type: Input
2660
+ }], saved: [{
2661
+ type: Output
2662
+ }], cancelled: [{
2663
+ type: Output
2664
+ }] } });
2665
+
2666
+ class HitGateListComponent {
2667
+ constructor(service, confirmation) {
2668
+ this.service = service;
2669
+ this.confirmation = confirmation;
2670
+ this.allData = [];
2671
+ this.filteredData = [];
2672
+ this.filterCode = '';
2673
+ this.filterName = '';
2674
+ this.showForm = false;
2675
+ this.disabledIdColumn = false;
2676
+ this.selectedRecord = null;
2677
+ }
2678
+ ngOnInit() {
2679
+ this.loadList();
2680
+ }
2681
+ onToolbarPreparing(e) {
2682
+ e.toolbarOptions.items.unshift({
2683
+ location: 'after',
2684
+ widget: 'dxButton',
2685
+ options: {
2686
+ icon: 'plus',
2687
+ text: 'Yeni Kayıt',
2688
+ type: 'default',
2689
+ onClick: () => this.yeniKayit(),
2690
+ },
2691
+ });
2692
+ }
2693
+ loadList() {
2694
+ this.service.getList().subscribe(data => {
2695
+ this.allData = data;
2696
+ this.filteredData = [...data];
2697
+ });
2698
+ }
2699
+ bul() {
2700
+ this.filteredData = this.allData.filter(x => {
2701
+ var _a, _b;
2702
+ if (this.filterCode && !((_a = x.code) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(this.filterCode.toLowerCase())))
2703
+ return false;
2704
+ if (this.filterName && !((_b = x.name) === null || _b === void 0 ? void 0 : _b.toLowerCase().includes(this.filterName.toLowerCase())))
2705
+ return false;
2706
+ return true;
2707
+ });
2708
+ }
2709
+ temizle() {
2710
+ this.filterCode = '';
2711
+ this.filterName = '';
2712
+ this.filteredData = [...this.allData];
2713
+ }
2714
+ yeniKayit() {
2715
+ this.selectedRecord = null;
2716
+ this.showForm = true;
2717
+ }
2718
+ duzenle(row) {
2719
+ this.selectedRecord = Object.assign({}, row);
2720
+ this.showForm = true;
2721
+ }
2722
+ sil(row) {
2723
+ this.confirmation
2724
+ .warn(`"${row.name}" kapısını silmek istediğinize emin misiniz?`, '', {
2725
+ yesText: 'Evet',
2726
+ cancelText: 'Hayır',
2727
+ })
2728
+ .subscribe(status => {
2729
+ if (status === 'confirm') {
2730
+ this.service.delete(row.code).subscribe(() => this.loadList());
2731
+ }
2732
+ });
2733
+ }
2734
+ onFormSaved() {
2735
+ this.showForm = false;
2736
+ this.loadList();
2737
+ }
2738
+ onFormCancelled() {
2739
+ this.showForm = false;
2740
+ }
2741
+ }
2742
+ HitGateListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitGateListComponent, deps: [{ token: HitGateService }, { token: i2$1.ConfirmationService }], target: i0.ɵɵFactoryTarget.Component });
2743
+ HitGateListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: HitGateListComponent, selector: "lib-hit-gate-list", ngImport: i0, template: "<abp-page [breadcrumb]=\"false\">\r\n <abp-page-toolbar-container class=\"col\">\r\n <div class=\"row align-items-center\">\r\n <div class=\"col\">\r\n <h3 class=\"page-title\">{{ 'Kadooglu::GateTitle' | abpLocalization }}</h3>\r\n </div>\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\r\n [dataSource]=\"filteredData\"\r\n [columnAutoWidth]=\"true\"\r\n [showBorders]=\"true\"\r\n [showRowLines]=\"true\"\r\n [hoverStateEnabled]=\"true\"\r\n [allowColumnResizing]=\"true\"\r\n columnResizingMode=\"widget\"\r\n [rowAlternationEnabled]=\"true\"\r\n (onToolbarPreparing)=\"onToolbarPreparing($event)\"\r\n keyExpr=\"code\"\r\n style=\"height: calc(100vh - 320px);\">\r\n\r\n <dxo-filter-row [visible]=\"true\"></dxo-filter-row>\r\n <dxo-header-filter [visible]=\"true\"></dxo-header-filter>\r\n <dxo-search-panel [visible]=\"true\" [width]=\"200\" [placeholder]=\"'Kadooglu::Ara' | abpLocalization\"></dxo-search-panel>\r\n <dxo-pager [visible]=\"true\" [showInfo]=\"true\" [allowedPageSizes]=\"[10,20,50]\"\r\n [showPageSizeSelector]=\"true\" [showNavigationButtons]=\"true\"></dxo-pager>\r\n <dxo-paging [pageSize]=\"10\"></dxo-paging>\r\n <dxi-column [fixed]=\"true\" dataField=\"id\" width=\"120\" [allowGrouping]=\"false\" [allowFiltering]=\"false\"\r\n [allowHeaderFiltering]=\"false\" [allowHiding]=\"false\" [allowReordering]=\"false\"\r\n cellTemplate=\"operationTemplate\" caption=\"{{ 'AbpUi::Actions' | abpLocalization }}\">\r\n <div *dxTemplate=\"let row of 'operationTemplate'\">\r\n <div ngbDropdown container=\"body\" class=\"d-inline-block\">\r\n <button class=\"btn btn-primary btn-sm dropdown-toggle\" data-toggle=\"dropdown\"\r\n aria-haspopup=\"true\" ngbDropdownToggle [disabled]=\"disabledIdColumn\">\r\n <i class=\"fa fa-cog mr-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpUi::Actions' | abpLocalization }}\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"duzenle(row.data)\">\r\n <i class=\"fa fa-edit\" aria-hidden=\"true\"></i> {{ 'AbpUi::Edit' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </dxi-column>\r\n <dxi-column dataField=\"code\" caption=\"{{ 'Kadooglu::Code' | abpLocalization }}\" [width]=\"150\"></dxi-column>\r\n <dxi-column dataField=\"name\" caption=\"{{ 'Kadooglu::Name' | abpLocalization }}\"></dxi-column>\r\n <dxi-column dataField=\"u_Active\" caption=\"{{ 'Kadooglu::IsActive' | abpLocalization }}\" [width]=\"80\"></dxi-column>\r\n </dx-data-grid>\r\n\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<lib-hit-gate-form\r\n [(visible)]=\"showForm\"\r\n [record]=\"selectedRecord\"\r\n (saved)=\"onFormSaved()\"\r\n (cancelled)=\"onFormCancelled()\">\r\n</lib-hit-gate-form>\r\n", dependencies: [{ kind: "component", type: i4.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: i4.PageToolbarContainerComponent, selector: "abp-page-toolbar-container" }, { kind: "component", type: i5.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: i5$1.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: i5$1.DxoHeaderFilterComponent, selector: "dxo-header-filter", inputs: ["allowSearch", "dataSource", "groupInterval", "height", "searchMode", "width", "searchTimeout", "texts", "visible", "showRelevantValues"] }, { kind: "component", type: i5$1.DxoFilterRowComponent, selector: "dxo-filter-row", inputs: ["applyFilter", "applyFilterText", "betweenEndText", "betweenStartText", "operationDescriptions", "resetOperationText", "showAllText", "showOperationChooser", "visible"] }, { kind: "component", type: i5$1.DxoPagerComponent, selector: "dxo-pager", inputs: ["allowedPageSizes", "displayMode", "infoText", "label", "showInfo", "showNavigationButtons", "showPageSizeSelector", "visible"] }, { kind: "component", type: i5$1.DxoPagingComponent, selector: "dxo-paging", inputs: ["enabled", "pageIndex", "pageSize"], outputs: ["pageIndexChange", "pageSizeChange"] }, { kind: "component", type: i5$1.DxoSearchPanelComponent, selector: "dxo-search-panel", inputs: ["highlightCaseSensitive", "highlightSearchText", "placeholder", "searchVisibleColumnsOnly", "text", "visible", "width"], outputs: ["textChange"] }, { kind: "directive", type: i7.DxTemplateDirective, selector: "[dxTemplate]", inputs: ["dxTemplateOf"] }, { kind: "directive", type: i8.NgbDropdown, selector: "[ngbDropdown]", inputs: ["autoClose", "dropdownClass", "open", "placement", "container", "display"], outputs: ["openChange"], exportAs: ["ngbDropdown"] }, { kind: "directive", type: i8.NgbDropdownToggle, selector: "[ngbDropdownToggle]" }, { kind: "directive", type: i8.NgbDropdownMenu, selector: "[ngbDropdownMenu]" }, { kind: "directive", type: i8.NgbDropdownItem, selector: "[ngbDropdownItem]", inputs: ["disabled"] }, { kind: "component", type: HitGateFormComponent, selector: "lib-hit-gate-form", inputs: ["visible", "record"], outputs: ["visibleChange", "saved", "cancelled"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
2744
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitGateListComponent, decorators: [{
2745
+ type: Component,
2746
+ args: [{ selector: 'lib-hit-gate-list', template: "<abp-page [breadcrumb]=\"false\">\r\n <abp-page-toolbar-container class=\"col\">\r\n <div class=\"row align-items-center\">\r\n <div class=\"col\">\r\n <h3 class=\"page-title\">{{ 'Kadooglu::GateTitle' | abpLocalization }}</h3>\r\n </div>\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\r\n [dataSource]=\"filteredData\"\r\n [columnAutoWidth]=\"true\"\r\n [showBorders]=\"true\"\r\n [showRowLines]=\"true\"\r\n [hoverStateEnabled]=\"true\"\r\n [allowColumnResizing]=\"true\"\r\n columnResizingMode=\"widget\"\r\n [rowAlternationEnabled]=\"true\"\r\n (onToolbarPreparing)=\"onToolbarPreparing($event)\"\r\n keyExpr=\"code\"\r\n style=\"height: calc(100vh - 320px);\">\r\n\r\n <dxo-filter-row [visible]=\"true\"></dxo-filter-row>\r\n <dxo-header-filter [visible]=\"true\"></dxo-header-filter>\r\n <dxo-search-panel [visible]=\"true\" [width]=\"200\" [placeholder]=\"'Kadooglu::Ara' | abpLocalization\"></dxo-search-panel>\r\n <dxo-pager [visible]=\"true\" [showInfo]=\"true\" [allowedPageSizes]=\"[10,20,50]\"\r\n [showPageSizeSelector]=\"true\" [showNavigationButtons]=\"true\"></dxo-pager>\r\n <dxo-paging [pageSize]=\"10\"></dxo-paging>\r\n <dxi-column [fixed]=\"true\" dataField=\"id\" width=\"120\" [allowGrouping]=\"false\" [allowFiltering]=\"false\"\r\n [allowHeaderFiltering]=\"false\" [allowHiding]=\"false\" [allowReordering]=\"false\"\r\n cellTemplate=\"operationTemplate\" caption=\"{{ 'AbpUi::Actions' | abpLocalization }}\">\r\n <div *dxTemplate=\"let row of 'operationTemplate'\">\r\n <div ngbDropdown container=\"body\" class=\"d-inline-block\">\r\n <button class=\"btn btn-primary btn-sm dropdown-toggle\" data-toggle=\"dropdown\"\r\n aria-haspopup=\"true\" ngbDropdownToggle [disabled]=\"disabledIdColumn\">\r\n <i class=\"fa fa-cog mr-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpUi::Actions' | abpLocalization }}\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"duzenle(row.data)\">\r\n <i class=\"fa fa-edit\" aria-hidden=\"true\"></i> {{ 'AbpUi::Edit' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </dxi-column>\r\n <dxi-column dataField=\"code\" caption=\"{{ 'Kadooglu::Code' | abpLocalization }}\" [width]=\"150\"></dxi-column>\r\n <dxi-column dataField=\"name\" caption=\"{{ 'Kadooglu::Name' | abpLocalization }}\"></dxi-column>\r\n <dxi-column dataField=\"u_Active\" caption=\"{{ 'Kadooglu::IsActive' | abpLocalization }}\" [width]=\"80\"></dxi-column>\r\n </dx-data-grid>\r\n\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<lib-hit-gate-form\r\n [(visible)]=\"showForm\"\r\n [record]=\"selectedRecord\"\r\n (saved)=\"onFormSaved()\"\r\n (cancelled)=\"onFormCancelled()\">\r\n</lib-hit-gate-form>\r\n" }]
2747
+ }], ctorParameters: function () { return [{ type: HitGateService }, { type: i2$1.ConfirmationService }]; } });
2748
+
2749
+ const routes$4 = [
2750
+ { path: '', component: HitGateListComponent },
2751
+ ];
2752
+ class HitGateRoutingModule {
2753
+ }
2754
+ HitGateRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitGateRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2755
+ HitGateRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitGateRoutingModule, imports: [i1$1.RouterModule], exports: [RouterModule] });
2756
+ HitGateRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitGateRoutingModule, imports: [RouterModule.forChild(routes$4), RouterModule] });
2757
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitGateRoutingModule, decorators: [{
2758
+ type: NgModule,
2759
+ args: [{
2760
+ imports: [RouterModule.forChild(routes$4)],
2761
+ exports: [RouterModule],
2762
+ }]
2763
+ }] });
2764
+
2765
+ class HitGateModule {
2766
+ }
2767
+ HitGateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitGateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2768
+ HitGateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitGateModule, declarations: [HitGateListComponent, HitGateFormComponent], imports: [CommonModule,
2769
+ FormsModule,
2770
+ CoreModule,
2771
+ ThemeSharedModule,
2772
+ PageModule,
2773
+ CommercialUiModule,
2774
+ HitGateRoutingModule,
2775
+ HitUIModule,
2776
+ DxDataGridModule,
2777
+ DxTextBoxModule,
2778
+ DxButtonModule,
2779
+ DxSelectBoxModule,
2780
+ DxCheckBoxModule,
2781
+ NgbDropdownModule] });
2782
+ HitGateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitGateModule, imports: [CommonModule,
2783
+ FormsModule,
2784
+ CoreModule,
2785
+ ThemeSharedModule,
2786
+ PageModule,
2787
+ CommercialUiModule,
2788
+ HitGateRoutingModule,
2789
+ HitUIModule,
2790
+ DxDataGridModule,
2791
+ DxTextBoxModule,
2792
+ DxButtonModule,
2793
+ DxSelectBoxModule,
2794
+ DxCheckBoxModule,
2795
+ NgbDropdownModule] });
2796
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitGateModule, decorators: [{
2797
+ type: NgModule,
2798
+ args: [{
2799
+ declarations: [HitGateListComponent, HitGateFormComponent],
2800
+ imports: [
2801
+ CommonModule,
2802
+ FormsModule,
2803
+ CoreModule,
2804
+ ThemeSharedModule,
2805
+ PageModule,
2806
+ CommercialUiModule,
2807
+ HitGateRoutingModule,
2808
+ HitUIModule,
2809
+ DxDataGridModule,
2810
+ DxTextBoxModule,
2811
+ DxButtonModule,
2812
+ DxSelectBoxModule,
2813
+ DxCheckBoxModule,
2814
+ NgbDropdownModule,
2815
+ ],
2816
+ }]
2817
+ }] });
2818
+ function loadHitGateModuleAsChild() {
2819
+ return Promise.resolve(HitGateModule);
2820
+ }
2821
+
2822
+ class HitCarrierPersonFormComponent {
2823
+ constructor(service, confirmation, plateService) {
2824
+ this.service = service;
2825
+ this.confirmation = confirmation;
2826
+ this.plateService = plateService;
2827
+ this.visible = false;
2828
+ this.visibleChange = new EventEmitter();
2829
+ this.record = null;
2830
+ this.saved = new EventEmitter();
2831
+ this.cancelled = new EventEmitter();
2832
+ this.code = '';
2833
+ this.name = '';
2834
+ this.u_Firstname = '';
2835
+ this.u_Lastname = '';
2836
+ this.u_Plate = '';
2837
+ this.u_Tel = '';
2838
+ this.isActive = false;
2839
+ this.u_DefBP = '';
2840
+ this.u_CarrierFirm = '';
2841
+ this.isTcCitizen = true;
2842
+ this.isLoading = false;
2843
+ this.plateData = [];
2844
+ this.plateColumns = [
2845
+ { dataField: 'code', caption: 'Plaka', width: 120 },
2846
+ { dataField: 'name', caption: 'Açıklama' },
2847
+ { dataField: 'u_Model', caption: 'Model' },
2848
+ ];
2849
+ }
2850
+ ngOnInit() {
2851
+ this.plateService.getList().subscribe(d => (this.plateData = d));
2852
+ }
2853
+ ngOnChanges(changes) {
2854
+ var _a;
2855
+ if (((_a = changes['visible']) === null || _a === void 0 ? void 0 : _a.currentValue) === true) {
2856
+ this.initForm();
2857
+ }
2858
+ }
2859
+ initForm() {
2860
+ var _a, _b, _c, _d, _e, _f;
2861
+ this.isTcCitizen = true;
2862
+ if (this.record) {
2863
+ this.code = this.record.code;
2864
+ this.name = this.record.name;
2865
+ this.u_Firstname = (_a = this.record.u_Firstname) !== null && _a !== void 0 ? _a : '';
2866
+ this.u_Lastname = (_b = this.record.u_Lastname) !== null && _b !== void 0 ? _b : '';
2867
+ this.u_Plate = (_c = this.record.u_Plate) !== null && _c !== void 0 ? _c : '';
2868
+ this.u_Tel = (_d = this.record.u_Tel) !== null && _d !== void 0 ? _d : '';
2869
+ this.isActive = this.record.u_Active === 'Y';
2870
+ this.u_DefBP = (_e = this.record.u_DefBP) !== null && _e !== void 0 ? _e : '';
2871
+ this.u_CarrierFirm = (_f = this.record.u_CarrierFirm) !== null && _f !== void 0 ? _f : '';
2872
+ }
2873
+ else {
2874
+ this.code = '';
2875
+ this.name = '';
2876
+ this.u_Firstname = '';
2877
+ this.u_Lastname = '';
2878
+ this.u_Plate = '';
2879
+ this.u_Tel = '';
2880
+ this.isActive = true;
2881
+ this.u_DefBP = '';
2882
+ this.u_CarrierFirm = '';
2883
+ }
2884
+ }
2885
+ onPlateSelected(e) {
2886
+ if (!e)
2887
+ return;
2888
+ this.u_Plate = e.code;
2889
+ }
2890
+ save() {
2891
+ var _a, _b;
2892
+ const fullName = [this.u_Firstname, this.u_Lastname].filter(Boolean).join(' ').trim();
2893
+ if (!this.code || !fullName) {
2894
+ this.confirmation.warn('Lütfen T.C. No, Ad ve Soyad alanlarını doldurunuz.', '', {
2895
+ hideYesBtn: true,
2896
+ cancelText: 'Kapat',
2897
+ dismissible: false,
2898
+ });
2899
+ return;
2900
+ }
2901
+ if (this.isTcCitizen && !((_a = this.record) === null || _a === void 0 ? void 0 : _a.code) && !this.validateTCKN(this.code)) {
2902
+ this.confirmation.warn('Geçersiz T.C. Kimlik No. Lütfen 11 haneli, geçerli bir TCKN giriniz.', '', {
2903
+ hideYesBtn: true,
2904
+ cancelText: 'Kapat',
2905
+ dismissible: false,
2906
+ });
2907
+ return;
2908
+ }
2909
+ const dto = {
2910
+ code: this.code,
2911
+ name: fullName,
2912
+ u_Firstname: this.u_Firstname,
2913
+ u_Lastname: this.u_Lastname,
2914
+ u_Plate: this.u_Plate,
2915
+ u_Tel: this.u_Tel,
2916
+ u_Active: this.isActive ? 'Y' : 'N',
2917
+ u_DefBP: this.u_DefBP,
2918
+ u_CarrierFirm: this.u_CarrierFirm,
2919
+ };
2920
+ const obs$ = ((_b = this.record) === null || _b === void 0 ? void 0 : _b.code)
2921
+ ? this.service.update(this.record.code, dto)
2922
+ : this.service.create(dto);
2923
+ this.isLoading = true;
2924
+ obs$.subscribe({
2925
+ next: () => {
2926
+ this.isLoading = false;
2927
+ this.saved.emit();
2928
+ },
2929
+ error: () => {
2930
+ this.isLoading = false;
2931
+ },
2932
+ });
2933
+ }
2934
+ onModalVisibleChange(val) {
2935
+ this.visible = val;
2936
+ this.visibleChange.emit(val);
2937
+ if (!val) {
2938
+ this.cancelled.emit();
2939
+ }
2940
+ }
2941
+ cancel() {
2942
+ this.onModalVisibleChange(false);
2943
+ }
2944
+ validateTCKN(value) {
2945
+ const tc = value === null || value === void 0 ? void 0 : value.trim();
2946
+ if (!tc || tc.length !== 11)
2947
+ return false;
2948
+ if (!/^\d{11}$/.test(tc))
2949
+ return false;
2950
+ if (tc[0] === '0')
2951
+ return false;
2952
+ const d = tc.split('').map(Number);
2953
+ const d10 = ((d[0] + d[2] + d[4] + d[6] + d[8]) * 7 - (d[1] + d[3] + d[5] + d[7])) % 10;
2954
+ if (d10 !== d[9])
2955
+ return false;
2956
+ const d11 = d.slice(0, 10).reduce((a, b) => a + b, 0) % 10;
2957
+ return d11 === d[10];
2958
+ }
2959
+ }
2960
+ HitCarrierPersonFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitCarrierPersonFormComponent, deps: [{ token: HitCarrierPersonService }, { token: i2$1.ConfirmationService }, { token: HitPlateService }], target: i0.ɵɵFactoryTarget.Component });
2961
+ HitCarrierPersonFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: HitCarrierPersonFormComponent, selector: "lib-hit-carrier-person-form", inputs: { visible: "visible", record: "record" }, outputs: { visibleChange: "visibleChange", saved: "saved", cancelled: "cancelled" }, usesOnChanges: true, ngImport: i0, template: "<abp-modal [visible]=\"visible\" (visibleChange)=\"onModalVisibleChange($event)\" [options]=\"{ size: 'lg', backdrop: 'static' }\">\r\n <ng-template #abpHeader>\r\n <h3>{{ record?.code ? ('AbpUi::Edit' | abpLocalization) : ('Kadooglu::NewRecord' | abpLocalization) }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <!-- B\u00F6l\u00FCm 1: Kimlik Bilgileri -->\r\n <div class=\"border rounded p-3 mb-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-id-card me-2\"></i>{{ 'Kadooglu::IdentityInfo' | abpLocalization }}\r\n </div>\r\n\r\n <div class=\"row mb-3\">\r\n <div class=\"col-md-12\">\r\n <div class=\"d-flex align-items-center gap-2 mb-1\">\r\n <label class=\"form-label mb-0 small fw-semibold text-muted\">\r\n {{ isTcCitizen ? ('Kadooglu::TcIdentityNo' | abpLocalization) : 'Kimlik No' }} <span class=\"text-danger\">*</span>\r\n </label>\r\n <dx-check-box [(value)]=\"isTcCitizen\" text=\"T.C. Vatanda\u015F\u0131\"></dx-check-box>\r\n </div>\r\n <dx-text-box [(value)]=\"code\" [disabled]=\"!!record?.code\"\r\n [placeholder]=\"isTcCitizen ? ('Kadooglu::TcIdentityNo' | abpLocalization) : 'Kimlik No'\" width=\"100%\"></dx-text-box>\r\n </div>\r\n </div>\r\n\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">\r\n {{ 'Kadooglu::FirstName' | abpLocalization }} <span class=\"text-danger\">*</span>\r\n </label>\r\n <dx-text-box [(value)]=\"u_Firstname\" [placeholder]=\"'Kadooglu::FirstName' | abpLocalization\" width=\"100%\"></dx-text-box>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">\r\n {{ 'Kadooglu::LastName' | abpLocalization }} <span class=\"text-danger\">*</span>\r\n </label>\r\n <dx-text-box [(value)]=\"u_Lastname\" [placeholder]=\"'Kadooglu::LastName' | abpLocalization\" width=\"100%\"></dx-text-box>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- B\u00F6l\u00FCm 2: \u0130leti\u015Fim & Ara\u00E7 Bilgileri -->\r\n <div class=\"border rounded p-3 mb-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-truck me-2\"></i>{{ 'Kadooglu::ContactAndVehicleInfo' | abpLocalization }}\r\n </div>\r\n\r\n <div class=\"row mb-3\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::Phone' | abpLocalization }}</label>\r\n <dx-text-box [(value)]=\"u_Tel\" placeholder=\"Telefon numaras\u0131\" width=\"100%\"></dx-text-box>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::Plate' | abpLocalization }}</label>\r\n <hit-lookup-select\r\n [getFn]=\"plateData\"\r\n [columns]=\"plateColumns\"\r\n displayName=\"code\"\r\n keyExpr=\"code\"\r\n [editingData]=\"u_Plate\"\r\n (selected)=\"onPlateSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n </div>\r\n\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::CarrierFirm' | abpLocalization }}</label>\r\n <dx-text-box [(value)]=\"u_CarrierFirm\" placeholder=\"Firma ad\u0131\" width=\"100%\"></dx-text-box>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::DefaultBusinessPartner' | abpLocalization }}</label>\r\n <dx-text-box [(value)]=\"u_DefBP\" placeholder=\"Varsay\u0131lan cari\" width=\"100%\"></dx-text-box>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- B\u00F6l\u00FCm 3: Durum -->\r\n <div class=\"border rounded p-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-toggle-on me-2\"></i>{{ 'Kadooglu::Status' | abpLocalization }}\r\n </div>\r\n <dx-check-box [(value)]=\"isActive\" [text]=\"'Kadooglu::IsActive' | abpLocalization\"></dx-check-box>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"cancel()\">\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-save\" buttonType=\"button\" [loading]=\"isLoading\" (click)=\"save()\">\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "component", type: i2$1.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i2$1.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "component", type: HitModalComponent, selector: "hit-lookup-select", inputs: ["displayName", "keyExpr", "modalSize", "getFn", "loadFn", "columns", "isVisible", "disabled", "editingData"], outputs: ["selected"] }, { kind: "component", type: i5.DxTextBoxComponent, selector: "dx-text-box", inputs: ["accessKey", "activeStateEnabled", "buttons", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "inputAttr", "isValid", "label", "labelMode", "mask", "maskChar", "maskInvalidMessage", "maskRules", "maxLength", "mode", "name", "placeholder", "readOnly", "rtlEnabled", "showClearButton", "showMaskMode", "spellcheck", "stylingMode", "tabIndex", "text", "useMaskedValue", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "valueChangeEvent", "visible", "width"], outputs: ["onChange", "onContentReady", "onCopy", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onKeyDown", "onKeyUp", "onOptionChanged", "onPaste", "onValueChanged", "accessKeyChange", "activeStateEnabledChange", "buttonsChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isValidChange", "labelChange", "labelModeChange", "maskChange", "maskCharChange", "maskInvalidMessageChange", "maskRulesChange", "maxLengthChange", "modeChange", "nameChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "showClearButtonChange", "showMaskModeChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "useMaskedValueChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "component", type: i5.DxCheckBoxComponent, selector: "dx-check-box", inputs: ["accessKey", "activeStateEnabled", "disabled", "elementAttr", "enableThreeStateBehavior", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "iconSize", "isValid", "name", "readOnly", "rtlEnabled", "tabIndex", "text", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "visible", "width"], outputs: ["onContentReady", "onDisposing", "onInitialized", "onOptionChanged", "onValueChanged", "accessKeyChange", "activeStateEnabledChange", "disabledChange", "elementAttrChange", "enableThreeStateBehaviorChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "iconSizeChange", "isValidChange", "nameChange", "readOnlyChange", "rtlEnabledChange", "tabIndexChange", "textChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
2962
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitCarrierPersonFormComponent, decorators: [{
2963
+ type: Component,
2964
+ args: [{ selector: 'lib-hit-carrier-person-form', template: "<abp-modal [visible]=\"visible\" (visibleChange)=\"onModalVisibleChange($event)\" [options]=\"{ size: 'lg', backdrop: 'static' }\">\r\n <ng-template #abpHeader>\r\n <h3>{{ record?.code ? ('AbpUi::Edit' | abpLocalization) : ('Kadooglu::NewRecord' | abpLocalization) }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <!-- B\u00F6l\u00FCm 1: Kimlik Bilgileri -->\r\n <div class=\"border rounded p-3 mb-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-id-card me-2\"></i>{{ 'Kadooglu::IdentityInfo' | abpLocalization }}\r\n </div>\r\n\r\n <div class=\"row mb-3\">\r\n <div class=\"col-md-12\">\r\n <div class=\"d-flex align-items-center gap-2 mb-1\">\r\n <label class=\"form-label mb-0 small fw-semibold text-muted\">\r\n {{ isTcCitizen ? ('Kadooglu::TcIdentityNo' | abpLocalization) : 'Kimlik No' }} <span class=\"text-danger\">*</span>\r\n </label>\r\n <dx-check-box [(value)]=\"isTcCitizen\" text=\"T.C. Vatanda\u015F\u0131\"></dx-check-box>\r\n </div>\r\n <dx-text-box [(value)]=\"code\" [disabled]=\"!!record?.code\"\r\n [placeholder]=\"isTcCitizen ? ('Kadooglu::TcIdentityNo' | abpLocalization) : 'Kimlik No'\" width=\"100%\"></dx-text-box>\r\n </div>\r\n </div>\r\n\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">\r\n {{ 'Kadooglu::FirstName' | abpLocalization }} <span class=\"text-danger\">*</span>\r\n </label>\r\n <dx-text-box [(value)]=\"u_Firstname\" [placeholder]=\"'Kadooglu::FirstName' | abpLocalization\" width=\"100%\"></dx-text-box>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">\r\n {{ 'Kadooglu::LastName' | abpLocalization }} <span class=\"text-danger\">*</span>\r\n </label>\r\n <dx-text-box [(value)]=\"u_Lastname\" [placeholder]=\"'Kadooglu::LastName' | abpLocalization\" width=\"100%\"></dx-text-box>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- B\u00F6l\u00FCm 2: \u0130leti\u015Fim & Ara\u00E7 Bilgileri -->\r\n <div class=\"border rounded p-3 mb-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-truck me-2\"></i>{{ 'Kadooglu::ContactAndVehicleInfo' | abpLocalization }}\r\n </div>\r\n\r\n <div class=\"row mb-3\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::Phone' | abpLocalization }}</label>\r\n <dx-text-box [(value)]=\"u_Tel\" placeholder=\"Telefon numaras\u0131\" width=\"100%\"></dx-text-box>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::Plate' | abpLocalization }}</label>\r\n <hit-lookup-select\r\n [getFn]=\"plateData\"\r\n [columns]=\"plateColumns\"\r\n displayName=\"code\"\r\n keyExpr=\"code\"\r\n [editingData]=\"u_Plate\"\r\n (selected)=\"onPlateSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n </div>\r\n\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::CarrierFirm' | abpLocalization }}</label>\r\n <dx-text-box [(value)]=\"u_CarrierFirm\" placeholder=\"Firma ad\u0131\" width=\"100%\"></dx-text-box>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::DefaultBusinessPartner' | abpLocalization }}</label>\r\n <dx-text-box [(value)]=\"u_DefBP\" placeholder=\"Varsay\u0131lan cari\" width=\"100%\"></dx-text-box>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- B\u00F6l\u00FCm 3: Durum -->\r\n <div class=\"border rounded p-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-toggle-on me-2\"></i>{{ 'Kadooglu::Status' | abpLocalization }}\r\n </div>\r\n <dx-check-box [(value)]=\"isActive\" [text]=\"'Kadooglu::IsActive' | abpLocalization\"></dx-check-box>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"cancel()\">\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-save\" buttonType=\"button\" [loading]=\"isLoading\" (click)=\"save()\">\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
2965
+ }], ctorParameters: function () { return [{ type: HitCarrierPersonService }, { type: i2$1.ConfirmationService }, { type: HitPlateService }]; }, propDecorators: { visible: [{
2966
+ type: Input
2967
+ }], visibleChange: [{
2968
+ type: Output
2969
+ }], record: [{
2970
+ type: Input
2971
+ }], saved: [{
2972
+ type: Output
2973
+ }], cancelled: [{
2974
+ type: Output
2975
+ }] } });
2976
+
2977
+ class HitCarrierPersonListComponent {
2978
+ constructor(service, confirmation) {
2979
+ this.service = service;
2980
+ this.confirmation = confirmation;
2981
+ this.allData = [];
2982
+ this.filteredData = [];
2983
+ this.filterCode = '';
2984
+ this.filterName = '';
2985
+ this.showForm = false;
2986
+ this.disabledIdColumn = false;
2987
+ this.selectedRecord = null;
2988
+ }
2989
+ ngOnInit() {
2990
+ this.loadList();
2991
+ }
2992
+ onToolbarPreparing(e) {
2993
+ e.toolbarOptions.items.unshift({
2994
+ location: 'after',
2995
+ widget: 'dxButton',
2996
+ options: {
2997
+ icon: 'plus',
2998
+ text: 'Yeni Kayıt',
2999
+ type: 'default',
3000
+ onClick: () => this.yeniKayit(),
3001
+ },
3002
+ });
3003
+ }
3004
+ loadList() {
3005
+ this.service.getList().subscribe(data => {
3006
+ this.allData = data;
3007
+ this.filteredData = [...data];
3008
+ });
3009
+ }
3010
+ bul() {
3011
+ this.filteredData = this.allData.filter(x => {
3012
+ var _a, _b;
3013
+ if (this.filterCode && !((_a = x.code) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(this.filterCode.toLowerCase())))
3014
+ return false;
3015
+ if (this.filterName && !((_b = x.name) === null || _b === void 0 ? void 0 : _b.toLowerCase().includes(this.filterName.toLowerCase())))
3016
+ return false;
3017
+ return true;
3018
+ });
3019
+ }
3020
+ temizle() {
3021
+ this.filterCode = '';
3022
+ this.filterName = '';
3023
+ this.filteredData = [...this.allData];
3024
+ }
3025
+ yeniKayit() {
3026
+ this.selectedRecord = null;
3027
+ this.showForm = true;
3028
+ }
3029
+ duzenle(row) {
3030
+ this.selectedRecord = Object.assign({}, row);
3031
+ this.showForm = true;
3032
+ }
3033
+ sil(row) {
3034
+ this.confirmation
3035
+ .warn(`"${row.name}" şoförünü silmek istediğinize emin misiniz?`, ``, {
3036
+ yesText: 'Evet',
3037
+ cancelText: 'Hayır',
3038
+ })
3039
+ .subscribe(status => {
3040
+ if (status === 'confirm') {
3041
+ this.service.delete(row.code).subscribe(() => this.loadList());
3042
+ }
3043
+ });
3044
+ }
3045
+ onFormSaved() {
3046
+ this.showForm = false;
3047
+ this.loadList();
3048
+ }
3049
+ onFormCancelled() {
3050
+ this.showForm = false;
3051
+ }
3052
+ formatPlate(plate) {
3053
+ if (!plate)
3054
+ return '';
3055
+ const p = plate.replace(/\s+/g, '').toUpperCase();
3056
+ const match = p.match(/^(\d{2})([A-ZÇĞİÖŞÜ]{1,3})(\d{1,4})$/);
3057
+ return match ? `${match[1]} ${match[2]} ${match[3]}` : plate;
3058
+ }
3059
+ }
3060
+ HitCarrierPersonListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitCarrierPersonListComponent, deps: [{ token: HitCarrierPersonService }, { token: i2$1.ConfirmationService }], target: i0.ɵɵFactoryTarget.Component });
3061
+ HitCarrierPersonListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: HitCarrierPersonListComponent, selector: "lib-hit-carrier-person-list", ngImport: i0, template: "<abp-page [breadcrumb]=\"false\">\r\n <abp-page-toolbar-container class=\"col\">\r\n <div class=\"row align-items-center\">\r\n <div class=\"col\">\r\n <h3 class=\"page-title\">{{ 'Kadooglu::CarrierPersonTitle' | abpLocalization }}</h3>\r\n </div>\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\r\n #carrierPersonGrid\r\n [dataSource]=\"filteredData\"\r\n [columnAutoWidth]=\"true\"\r\n [showBorders]=\"true\"\r\n [showRowLines]=\"true\"\r\n [hoverStateEnabled]=\"true\"\r\n [allowColumnResizing]=\"true\"\r\n columnResizingMode=\"widget\"\r\n [rowAlternationEnabled]=\"true\"\r\n (onToolbarPreparing)=\"onToolbarPreparing($event)\"\r\n keyExpr=\"code\"\r\n style=\"height: calc(100vh - 320px);\">\r\n\r\n <dxo-filter-row [visible]=\"true\"></dxo-filter-row>\r\n <dxo-header-filter [visible]=\"true\"></dxo-header-filter>\r\n <dxo-search-panel [visible]=\"true\" [width]=\"200\" [placeholder]=\"'Kadooglu::Ara' | abpLocalization\"></dxo-search-panel>\r\n <dxo-pager [visible]=\"true\" [showInfo]=\"true\" [allowedPageSizes]=\"[10,20,50]\"\r\n [showPageSizeSelector]=\"true\" [showNavigationButtons]=\"true\"></dxo-pager>\r\n <dxo-paging [pageSize]=\"10\"></dxo-paging>\r\n\r\n <dxi-column [fixed]=\"true\" dataField=\"id\" width=\"120\" [allowGrouping]=\"false\" [allowFiltering]=\"false\"\r\n [allowHeaderFiltering]=\"false\" [allowHiding]=\"false\" [allowReordering]=\"false\"\r\n cellTemplate=\"operationTemplate\" caption=\"{{ 'AbpUi::Actions' | abpLocalization }}\">\r\n <div *dxTemplate=\"let row of 'operationTemplate'\">\r\n <div ngbDropdown container=\"body\" class=\"d-inline-block\">\r\n <button class=\"btn btn-primary btn-sm dropdown-toggle\" data-toggle=\"dropdown\"\r\n aria-haspopup=\"true\" ngbDropdownToggle [disabled]=\"disabledIdColumn\">\r\n <i class=\"fa fa-cog mr-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpUi::Actions' | abpLocalization }}\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"duzenle(row.data)\">\r\n <i class=\"fa fa-edit\" aria-hidden=\"true\"></i> {{ 'AbpUi::Edit' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </dxi-column>\r\n\r\n <dxi-column dataField=\"code\" caption=\"{{ 'Kadooglu::TcIdentityNo' | abpLocalization }}\" [width]=\"140\"></dxi-column>\r\n <dxi-column dataField=\"name\" caption=\"{{ 'Kadooglu::FullName' | abpLocalization }}\"></dxi-column>\r\n <dxi-column dataField=\"u_Firstname\" caption=\"{{ 'Kadooglu::FirstName' | abpLocalization }}\" [width]=\"130\"></dxi-column>\r\n <dxi-column dataField=\"u_Lastname\" caption=\"{{ 'Kadooglu::LastName' | abpLocalization }}\" [width]=\"130\"></dxi-column>\r\n <dxi-column dataField=\"u_Plate\" caption=\"{{ 'Kadooglu::Plate' | abpLocalization }}\" cellTemplate=\"plateTemplate\"></dxi-column>\r\n <dxi-column dataField=\"u_Tel\" caption=\"{{ 'Kadooglu::Phone' | abpLocalization }}\" [width]=\"130\"></dxi-column>\r\n <dxi-column dataField=\"u_Active\" caption=\"{{ 'Kadooglu::IsActive' | abpLocalization }}\" [width]=\"80\"></dxi-column>\r\n <dxi-column dataField=\"u_DefBP\" caption=\"{{ 'Kadooglu::DefaultBP' | abpLocalization }}\" [width]=\"100\"></dxi-column>\r\n <dxi-column dataField=\"u_CarrierFirm\" caption=\"{{ 'Kadooglu::CarrierFirm' | abpLocalization }}\" [width]=\"150\"></dxi-column>\r\n <div *dxTemplate=\"let cell of 'plateTemplate'\">\r\n <span *ngIf=\"cell.data.u_Plate\" class=\"tr-plate\">\r\n <span class=\"tr-plate-blue\">TR</span>\r\n <span class=\"tr-plate-text\">{{ formatPlate(cell.data.u_Plate) }}</span>\r\n </span>\r\n </div>\r\n </dx-data-grid>\r\n\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<lib-hit-carrier-person-form\r\n [(visible)]=\"showForm\"\r\n [record]=\"selectedRecord\"\r\n (saved)=\"onFormSaved()\"\r\n (cancelled)=\"onFormCancelled()\">\r\n</lib-hit-carrier-person-form>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: i4.PageToolbarContainerComponent, selector: "abp-page-toolbar-container" }, { kind: "directive", type: i8.NgbDropdown, selector: "[ngbDropdown]", inputs: ["autoClose", "dropdownClass", "open", "placement", "container", "display"], outputs: ["openChange"], exportAs: ["ngbDropdown"] }, { kind: "directive", type: i8.NgbDropdownToggle, selector: "[ngbDropdownToggle]" }, { kind: "directive", type: i8.NgbDropdownMenu, selector: "[ngbDropdownMenu]" }, { kind: "directive", type: i8.NgbDropdownItem, selector: "[ngbDropdownItem]", inputs: ["disabled"] }, { kind: "component", type: i5.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: i5$1.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: i5$1.DxoHeaderFilterComponent, selector: "dxo-header-filter", inputs: ["allowSearch", "dataSource", "groupInterval", "height", "searchMode", "width", "searchTimeout", "texts", "visible", "showRelevantValues"] }, { kind: "component", type: i5$1.DxoFilterRowComponent, selector: "dxo-filter-row", inputs: ["applyFilter", "applyFilterText", "betweenEndText", "betweenStartText", "operationDescriptions", "resetOperationText", "showAllText", "showOperationChooser", "visible"] }, { kind: "component", type: i5$1.DxoPagerComponent, selector: "dxo-pager", inputs: ["allowedPageSizes", "displayMode", "infoText", "label", "showInfo", "showNavigationButtons", "showPageSizeSelector", "visible"] }, { kind: "component", type: i5$1.DxoPagingComponent, selector: "dxo-paging", inputs: ["enabled", "pageIndex", "pageSize"], outputs: ["pageIndexChange", "pageSizeChange"] }, { kind: "component", type: i5$1.DxoSearchPanelComponent, selector: "dxo-search-panel", inputs: ["highlightCaseSensitive", "highlightSearchText", "placeholder", "searchVisibleColumnsOnly", "text", "visible", "width"], outputs: ["textChange"] }, { kind: "directive", type: i7.DxTemplateDirective, selector: "[dxTemplate]", inputs: ["dxTemplateOf"] }, { kind: "component", type: HitCarrierPersonFormComponent, selector: "lib-hit-carrier-person-form", inputs: ["visible", "record"], outputs: ["visibleChange", "saved", "cancelled"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
3062
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitCarrierPersonListComponent, decorators: [{
3063
+ type: Component,
3064
+ args: [{ selector: 'lib-hit-carrier-person-list', template: "<abp-page [breadcrumb]=\"false\">\r\n <abp-page-toolbar-container class=\"col\">\r\n <div class=\"row align-items-center\">\r\n <div class=\"col\">\r\n <h3 class=\"page-title\">{{ 'Kadooglu::CarrierPersonTitle' | abpLocalization }}</h3>\r\n </div>\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\r\n #carrierPersonGrid\r\n [dataSource]=\"filteredData\"\r\n [columnAutoWidth]=\"true\"\r\n [showBorders]=\"true\"\r\n [showRowLines]=\"true\"\r\n [hoverStateEnabled]=\"true\"\r\n [allowColumnResizing]=\"true\"\r\n columnResizingMode=\"widget\"\r\n [rowAlternationEnabled]=\"true\"\r\n (onToolbarPreparing)=\"onToolbarPreparing($event)\"\r\n keyExpr=\"code\"\r\n style=\"height: calc(100vh - 320px);\">\r\n\r\n <dxo-filter-row [visible]=\"true\"></dxo-filter-row>\r\n <dxo-header-filter [visible]=\"true\"></dxo-header-filter>\r\n <dxo-search-panel [visible]=\"true\" [width]=\"200\" [placeholder]=\"'Kadooglu::Ara' | abpLocalization\"></dxo-search-panel>\r\n <dxo-pager [visible]=\"true\" [showInfo]=\"true\" [allowedPageSizes]=\"[10,20,50]\"\r\n [showPageSizeSelector]=\"true\" [showNavigationButtons]=\"true\"></dxo-pager>\r\n <dxo-paging [pageSize]=\"10\"></dxo-paging>\r\n\r\n <dxi-column [fixed]=\"true\" dataField=\"id\" width=\"120\" [allowGrouping]=\"false\" [allowFiltering]=\"false\"\r\n [allowHeaderFiltering]=\"false\" [allowHiding]=\"false\" [allowReordering]=\"false\"\r\n cellTemplate=\"operationTemplate\" caption=\"{{ 'AbpUi::Actions' | abpLocalization }}\">\r\n <div *dxTemplate=\"let row of 'operationTemplate'\">\r\n <div ngbDropdown container=\"body\" class=\"d-inline-block\">\r\n <button class=\"btn btn-primary btn-sm dropdown-toggle\" data-toggle=\"dropdown\"\r\n aria-haspopup=\"true\" ngbDropdownToggle [disabled]=\"disabledIdColumn\">\r\n <i class=\"fa fa-cog mr-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpUi::Actions' | abpLocalization }}\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"duzenle(row.data)\">\r\n <i class=\"fa fa-edit\" aria-hidden=\"true\"></i> {{ 'AbpUi::Edit' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </dxi-column>\r\n\r\n <dxi-column dataField=\"code\" caption=\"{{ 'Kadooglu::TcIdentityNo' | abpLocalization }}\" [width]=\"140\"></dxi-column>\r\n <dxi-column dataField=\"name\" caption=\"{{ 'Kadooglu::FullName' | abpLocalization }}\"></dxi-column>\r\n <dxi-column dataField=\"u_Firstname\" caption=\"{{ 'Kadooglu::FirstName' | abpLocalization }}\" [width]=\"130\"></dxi-column>\r\n <dxi-column dataField=\"u_Lastname\" caption=\"{{ 'Kadooglu::LastName' | abpLocalization }}\" [width]=\"130\"></dxi-column>\r\n <dxi-column dataField=\"u_Plate\" caption=\"{{ 'Kadooglu::Plate' | abpLocalization }}\" cellTemplate=\"plateTemplate\"></dxi-column>\r\n <dxi-column dataField=\"u_Tel\" caption=\"{{ 'Kadooglu::Phone' | abpLocalization }}\" [width]=\"130\"></dxi-column>\r\n <dxi-column dataField=\"u_Active\" caption=\"{{ 'Kadooglu::IsActive' | abpLocalization }}\" [width]=\"80\"></dxi-column>\r\n <dxi-column dataField=\"u_DefBP\" caption=\"{{ 'Kadooglu::DefaultBP' | abpLocalization }}\" [width]=\"100\"></dxi-column>\r\n <dxi-column dataField=\"u_CarrierFirm\" caption=\"{{ 'Kadooglu::CarrierFirm' | abpLocalization }}\" [width]=\"150\"></dxi-column>\r\n <div *dxTemplate=\"let cell of 'plateTemplate'\">\r\n <span *ngIf=\"cell.data.u_Plate\" class=\"tr-plate\">\r\n <span class=\"tr-plate-blue\">TR</span>\r\n <span class=\"tr-plate-text\">{{ formatPlate(cell.data.u_Plate) }}</span>\r\n </span>\r\n </div>\r\n </dx-data-grid>\r\n\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<lib-hit-carrier-person-form\r\n [(visible)]=\"showForm\"\r\n [record]=\"selectedRecord\"\r\n (saved)=\"onFormSaved()\"\r\n (cancelled)=\"onFormCancelled()\">\r\n</lib-hit-carrier-person-form>\r\n" }]
3065
+ }], ctorParameters: function () { return [{ type: HitCarrierPersonService }, { type: i2$1.ConfirmationService }]; } });
3066
+
3067
+ const routes$3 = [
3068
+ { path: '', component: HitCarrierPersonListComponent },
3069
+ ];
3070
+ class HitCarrierPersonRoutingModule {
3071
+ }
3072
+ HitCarrierPersonRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitCarrierPersonRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3073
+ HitCarrierPersonRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitCarrierPersonRoutingModule, imports: [i1$1.RouterModule], exports: [RouterModule] });
3074
+ HitCarrierPersonRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitCarrierPersonRoutingModule, imports: [RouterModule.forChild(routes$3), RouterModule] });
3075
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitCarrierPersonRoutingModule, decorators: [{
3076
+ type: NgModule,
3077
+ args: [{
3078
+ imports: [RouterModule.forChild(routes$3)],
3079
+ exports: [RouterModule],
3080
+ }]
3081
+ }] });
3082
+
3083
+ class HitCarrierPersonModule {
3084
+ }
3085
+ HitCarrierPersonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitCarrierPersonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3086
+ HitCarrierPersonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitCarrierPersonModule, declarations: [HitCarrierPersonListComponent, HitCarrierPersonFormComponent], imports: [CommonModule,
3087
+ FormsModule,
3088
+ CoreModule,
3089
+ ThemeSharedModule,
3090
+ PageModule,
3091
+ CommercialUiModule,
3092
+ HitCarrierPersonRoutingModule,
3093
+ HitUIModule,
3094
+ NgbDropdownModule,
3095
+ DxDataGridModule,
3096
+ DxTextBoxModule,
3097
+ DxButtonModule,
3098
+ DxCheckBoxModule] });
3099
+ HitCarrierPersonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitCarrierPersonModule, imports: [CommonModule,
3100
+ FormsModule,
3101
+ CoreModule,
3102
+ ThemeSharedModule,
3103
+ PageModule,
3104
+ CommercialUiModule,
3105
+ HitCarrierPersonRoutingModule,
3106
+ HitUIModule,
3107
+ NgbDropdownModule,
3108
+ DxDataGridModule,
3109
+ DxTextBoxModule,
3110
+ DxButtonModule,
3111
+ DxCheckBoxModule] });
3112
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitCarrierPersonModule, decorators: [{
3113
+ type: NgModule,
3114
+ args: [{
3115
+ declarations: [HitCarrierPersonListComponent, HitCarrierPersonFormComponent],
3116
+ imports: [
3117
+ CommonModule,
3118
+ FormsModule,
3119
+ CoreModule,
3120
+ ThemeSharedModule,
3121
+ PageModule,
3122
+ CommercialUiModule,
3123
+ HitCarrierPersonRoutingModule,
3124
+ HitUIModule,
3125
+ NgbDropdownModule,
3126
+ DxDataGridModule,
3127
+ DxTextBoxModule,
3128
+ DxButtonModule,
3129
+ DxCheckBoxModule,
3130
+ ],
3131
+ }]
3132
+ }] });
3133
+ function loadHitCarrierPersonModuleAsChild() {
3134
+ return Promise.resolve(HitCarrierPersonModule);
3135
+ }
3136
+
3137
+ class HitPlateFormComponent {
3138
+ constructor(service, confirmation) {
3139
+ this.service = service;
3140
+ this.confirmation = confirmation;
3141
+ this.visible = false;
3142
+ this.visibleChange = new EventEmitter();
3143
+ this.record = null;
3144
+ this.saved = new EventEmitter();
3145
+ this.cancelled = new EventEmitter();
3146
+ this.code = '';
3147
+ this.name = '';
3148
+ this.u_Model = '';
3149
+ this.u_IsTrailer = false;
3150
+ this.isActive = false;
3151
+ this.isLoading = false;
3152
+ }
3153
+ ngOnInit() { }
3154
+ ngOnChanges(changes) {
3155
+ var _a;
3156
+ if (((_a = changes['visible']) === null || _a === void 0 ? void 0 : _a.currentValue) === true) {
3157
+ this.initForm();
3158
+ }
3159
+ }
3160
+ initForm() {
3161
+ var _a;
3162
+ if (this.record) {
3163
+ this.code = this.record.code;
3164
+ this.name = this.record.name;
3165
+ this.u_Model = (_a = this.record.u_Model) !== null && _a !== void 0 ? _a : '';
3166
+ this.u_IsTrailer = this.record.u_IsTrailer === 'Y';
3167
+ this.isActive = this.record.u_Active === 'Y';
3168
+ }
3169
+ else {
3170
+ this.code = '';
3171
+ this.name = '';
3172
+ this.u_Model = '';
3173
+ this.u_IsTrailer = false;
3174
+ this.isActive = true;
3175
+ }
3176
+ }
3177
+ save() {
3178
+ var _a;
3179
+ if (!this.code) {
3180
+ this.confirmation.warn('Lütfen Plaka alanını doldurunuz.', '', {
3181
+ hideYesBtn: true,
3182
+ cancelText: 'Kapat',
3183
+ dismissible: false,
3184
+ });
3185
+ return;
3186
+ }
3187
+ const dto = {
3188
+ code: this.code,
3189
+ name: this.name,
3190
+ u_Model: this.u_Model,
3191
+ u_IsTrailer: this.u_IsTrailer ? 'Y' : 'N',
3192
+ u_Active: this.isActive ? 'Y' : 'N',
3193
+ };
3194
+ const obs$ = ((_a = this.record) === null || _a === void 0 ? void 0 : _a.code)
3195
+ ? this.service.update(this.record.code, dto)
3196
+ : this.service.create(dto);
3197
+ this.isLoading = true;
3198
+ obs$.subscribe({
3199
+ next: () => {
3200
+ this.isLoading = false;
3201
+ this.saved.emit();
3202
+ },
3203
+ error: () => {
3204
+ this.isLoading = false;
3205
+ },
3206
+ });
3207
+ }
3208
+ onModalVisibleChange(val) {
3209
+ this.visible = val;
3210
+ this.visibleChange.emit(val);
3211
+ if (!val) {
3212
+ this.cancelled.emit();
3213
+ }
3214
+ }
3215
+ cancel() {
3216
+ this.onModalVisibleChange(false);
3217
+ }
3218
+ }
3219
+ HitPlateFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitPlateFormComponent, deps: [{ token: HitPlateService }, { token: i2$1.ConfirmationService }], target: i0.ɵɵFactoryTarget.Component });
3220
+ HitPlateFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: HitPlateFormComponent, selector: "lib-hit-plate-form", inputs: { visible: "visible", record: "record" }, outputs: { visibleChange: "visibleChange", saved: "saved", cancelled: "cancelled" }, usesOnChanges: true, ngImport: i0, template: "<abp-modal [visible]=\"visible\" (visibleChange)=\"onModalVisibleChange($event)\" [options]=\"{ size: 'md', backdrop: 'static' }\">\r\n <ng-template #abpHeader>\r\n <h3>{{ record?.code ? ('AbpUi::Edit' | abpLocalization) : ('Kadooglu::NewRecord' | abpLocalization) }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <div class=\"border rounded p-3 mb-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-car me-2\"></i>{{ 'Kadooglu::BasicInfo' | abpLocalization }}\r\n </div>\r\n <div class=\"row mb-3\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::Plate' | abpLocalization }} <span class=\"text-danger\">*</span></label>\r\n <dx-text-box [(value)]=\"code\" [disabled]=\"!!record?.code\" [placeholder]=\"'Kadooglu::EnterPlateNumber' | abpLocalization\" width=\"100%\"></dx-text-box>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::Description' | abpLocalization }}</label>\r\n <dx-text-box [(value)]=\"name\" [placeholder]=\"'Kadooglu::Description' | abpLocalization\" width=\"100%\"></dx-text-box>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::Model' | abpLocalization }}</label>\r\n <dx-text-box [(value)]=\"u_Model\" [placeholder]=\"'Kadooglu::EnterVehicleModel' | abpLocalization\" width=\"100%\"></dx-text-box>\r\n </div>\r\n <div class=\"col-md-6 d-flex align-items-end pb-1\">\r\n <dx-check-box [(value)]=\"u_IsTrailer\" [text]=\"'Kadooglu::IsTrailer' | abpLocalization\"></dx-check-box>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Durum -->\r\n <div class=\"border rounded p-3 mt-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-toggle-on me-2\"></i>{{ 'Kadooglu::Status' | abpLocalization }}\r\n </div>\r\n <dx-check-box [(value)]=\"isActive\" [text]=\"'Kadooglu::IsActive' | abpLocalization\"></dx-check-box>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"cancel()\">\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-save\" buttonType=\"button\" [loading]=\"isLoading\" (click)=\"save()\">\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "component", type: i2$1.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i2$1.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "component", type: i5.DxTextBoxComponent, selector: "dx-text-box", inputs: ["accessKey", "activeStateEnabled", "buttons", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "inputAttr", "isValid", "label", "labelMode", "mask", "maskChar", "maskInvalidMessage", "maskRules", "maxLength", "mode", "name", "placeholder", "readOnly", "rtlEnabled", "showClearButton", "showMaskMode", "spellcheck", "stylingMode", "tabIndex", "text", "useMaskedValue", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "valueChangeEvent", "visible", "width"], outputs: ["onChange", "onContentReady", "onCopy", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onKeyDown", "onKeyUp", "onOptionChanged", "onPaste", "onValueChanged", "accessKeyChange", "activeStateEnabledChange", "buttonsChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isValidChange", "labelChange", "labelModeChange", "maskChange", "maskCharChange", "maskInvalidMessageChange", "maskRulesChange", "maxLengthChange", "modeChange", "nameChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "showClearButtonChange", "showMaskModeChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "useMaskedValueChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "component", type: i5.DxCheckBoxComponent, selector: "dx-check-box", inputs: ["accessKey", "activeStateEnabled", "disabled", "elementAttr", "enableThreeStateBehavior", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "iconSize", "isValid", "name", "readOnly", "rtlEnabled", "tabIndex", "text", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "visible", "width"], outputs: ["onContentReady", "onDisposing", "onInitialized", "onOptionChanged", "onValueChanged", "accessKeyChange", "activeStateEnabledChange", "disabledChange", "elementAttrChange", "enableThreeStateBehaviorChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "iconSizeChange", "isValidChange", "nameChange", "readOnlyChange", "rtlEnabledChange", "tabIndexChange", "textChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
3221
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitPlateFormComponent, decorators: [{
3222
+ type: Component,
3223
+ args: [{ selector: 'lib-hit-plate-form', template: "<abp-modal [visible]=\"visible\" (visibleChange)=\"onModalVisibleChange($event)\" [options]=\"{ size: 'md', backdrop: 'static' }\">\r\n <ng-template #abpHeader>\r\n <h3>{{ record?.code ? ('AbpUi::Edit' | abpLocalization) : ('Kadooglu::NewRecord' | abpLocalization) }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <div class=\"border rounded p-3 mb-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-car me-2\"></i>{{ 'Kadooglu::BasicInfo' | abpLocalization }}\r\n </div>\r\n <div class=\"row mb-3\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::Plate' | abpLocalization }} <span class=\"text-danger\">*</span></label>\r\n <dx-text-box [(value)]=\"code\" [disabled]=\"!!record?.code\" [placeholder]=\"'Kadooglu::EnterPlateNumber' | abpLocalization\" width=\"100%\"></dx-text-box>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::Description' | abpLocalization }}</label>\r\n <dx-text-box [(value)]=\"name\" [placeholder]=\"'Kadooglu::Description' | abpLocalization\" width=\"100%\"></dx-text-box>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::Model' | abpLocalization }}</label>\r\n <dx-text-box [(value)]=\"u_Model\" [placeholder]=\"'Kadooglu::EnterVehicleModel' | abpLocalization\" width=\"100%\"></dx-text-box>\r\n </div>\r\n <div class=\"col-md-6 d-flex align-items-end pb-1\">\r\n <dx-check-box [(value)]=\"u_IsTrailer\" [text]=\"'Kadooglu::IsTrailer' | abpLocalization\"></dx-check-box>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Durum -->\r\n <div class=\"border rounded p-3 mt-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-toggle-on me-2\"></i>{{ 'Kadooglu::Status' | abpLocalization }}\r\n </div>\r\n <dx-check-box [(value)]=\"isActive\" [text]=\"'Kadooglu::IsActive' | abpLocalization\"></dx-check-box>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"cancel()\">\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-save\" buttonType=\"button\" [loading]=\"isLoading\" (click)=\"save()\">\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
3224
+ }], ctorParameters: function () { return [{ type: HitPlateService }, { type: i2$1.ConfirmationService }]; }, propDecorators: { visible: [{
3225
+ type: Input
3226
+ }], visibleChange: [{
3227
+ type: Output
3228
+ }], record: [{
3229
+ type: Input
3230
+ }], saved: [{
3231
+ type: Output
3232
+ }], cancelled: [{
3233
+ type: Output
3234
+ }] } });
3235
+
3236
+ class HitPlateListComponent {
3237
+ constructor(service, confirmation) {
3238
+ this.service = service;
3239
+ this.confirmation = confirmation;
3240
+ this.allData = [];
3241
+ this.filteredData = [];
3242
+ this.filterCode = '';
3243
+ this.filterName = '';
3244
+ this.showForm = false;
3245
+ this.disabledIdColumn = false;
3246
+ this.selectedRecord = null;
3247
+ }
3248
+ ngOnInit() {
3249
+ this.loadList();
3250
+ }
3251
+ onToolbarPreparing(e) {
3252
+ e.toolbarOptions.items.unshift({
3253
+ location: 'after',
3254
+ widget: 'dxButton',
3255
+ options: {
3256
+ icon: 'plus',
3257
+ text: 'Yeni Kayıt',
3258
+ type: 'default',
3259
+ onClick: () => this.yeniKayit(),
3260
+ },
3261
+ });
3262
+ }
3263
+ loadList() {
3264
+ this.service.getList().subscribe(data => {
3265
+ this.allData = data;
3266
+ this.filteredData = [...data];
3267
+ });
3268
+ }
3269
+ bul() {
3270
+ this.filteredData = this.allData.filter(x => {
3271
+ var _a, _b;
3272
+ if (this.filterCode && !((_a = x.code) === null || _a === void 0 ? void 0 : _a.toLowerCase().includes(this.filterCode.toLowerCase())))
3273
+ return false;
3274
+ if (this.filterName && !((_b = x.name) === null || _b === void 0 ? void 0 : _b.toLowerCase().includes(this.filterName.toLowerCase())))
3275
+ return false;
3276
+ return true;
3277
+ });
3278
+ }
3279
+ temizle() {
3280
+ this.filterCode = '';
3281
+ this.filterName = '';
3282
+ this.filteredData = [...this.allData];
3283
+ }
3284
+ yeniKayit() {
3285
+ this.selectedRecord = null;
3286
+ this.showForm = true;
3287
+ }
3288
+ duzenle(row) {
3289
+ this.selectedRecord = Object.assign({}, row);
3290
+ this.showForm = true;
3291
+ }
3292
+ sil(row) {
3293
+ this.confirmation
3294
+ .warn(`"${row.code}" plakasını silmek istediğinize emin misiniz?`, '', {
3295
+ yesText: 'Evet',
3296
+ cancelText: 'Hayır',
3297
+ })
3298
+ .subscribe(status => {
3299
+ if (status === 'confirm') {
3300
+ this.service.delete(row.code).subscribe(() => this.loadList());
3301
+ }
3302
+ });
3303
+ }
3304
+ onFormSaved() {
3305
+ this.showForm = false;
3306
+ this.loadList();
3307
+ }
3308
+ onFormCancelled() {
3309
+ this.showForm = false;
3310
+ }
3311
+ formatPlate(plate) {
3312
+ if (!plate)
3313
+ return '';
3314
+ const p = plate.replace(/\s+/g, '').toUpperCase();
3315
+ const match = p.match(/^(\d{2})([A-ZÇĞİÖŞÜ]{1,3})(\d{1,4})$/);
3316
+ return match ? `${match[1]} ${match[2]} ${match[3]}` : plate;
3317
+ }
3318
+ }
3319
+ HitPlateListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitPlateListComponent, deps: [{ token: HitPlateService }, { token: i2$1.ConfirmationService }], target: i0.ɵɵFactoryTarget.Component });
3320
+ HitPlateListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: HitPlateListComponent, selector: "lib-hit-plate-list", ngImport: i0, template: "<abp-page [breadcrumb]=\"false\">\r\n <abp-page-toolbar-container class=\"col\">\r\n <div class=\"row align-items-center\">\r\n <div class=\"col\">\r\n <h3 class=\"page-title\">{{ 'Kadooglu::PlateTitle' | abpLocalization }}</h3>\r\n </div>\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\r\n <dx-data-grid\r\n [dataSource]=\"filteredData\"\r\n [columnAutoWidth]=\"true\"\r\n [showBorders]=\"true\"\r\n [showRowLines]=\"true\"\r\n [hoverStateEnabled]=\"true\"\r\n [allowColumnResizing]=\"true\"\r\n columnResizingMode=\"widget\"\r\n [rowAlternationEnabled]=\"true\"\r\n (onToolbarPreparing)=\"onToolbarPreparing($event)\"\r\n keyExpr=\"code\"\r\n style=\"height: calc(100vh - 320px);\">\r\n\r\n <dxo-filter-row [visible]=\"true\"></dxo-filter-row>\r\n <dxo-header-filter [visible]=\"true\"></dxo-header-filter>\r\n <dxo-search-panel [visible]=\"true\" [width]=\"200\" [placeholder]=\"'Kadooglu::Ara' | abpLocalization\"></dxo-search-panel>\r\n <dxo-pager [visible]=\"true\" [showInfo]=\"true\" [allowedPageSizes]=\"[10,20,50]\"\r\n [showPageSizeSelector]=\"true\" [showNavigationButtons]=\"true\"></dxo-pager>\r\n <dxo-paging [pageSize]=\"10\"></dxo-paging>\r\n <dxi-column [fixed]=\"true\" dataField=\"id\" width=\"120\" [allowGrouping]=\"false\" [allowFiltering]=\"false\"\r\n [allowHeaderFiltering]=\"false\" [allowHiding]=\"false\" [allowReordering]=\"false\"\r\n cellTemplate=\"operationTemplate\" caption=\"{{ 'AbpUi::Actions' | abpLocalization }}\">\r\n <div *dxTemplate=\"let row of 'operationTemplate'\">\r\n <div ngbDropdown container=\"body\" class=\"d-inline-block\">\r\n <button class=\"btn btn-primary btn-sm dropdown-toggle\" data-toggle=\"dropdown\"\r\n aria-haspopup=\"true\" ngbDropdownToggle [disabled]=\"disabledIdColumn\">\r\n <i class=\"fa fa-cog mr-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpUi::Actions' | abpLocalization }}\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"duzenle(row.data)\">\r\n <i class=\"fa fa-edit\" aria-hidden=\"true\"></i> {{ 'AbpUi::Edit' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </dxi-column>\r\n <dxi-column dataField=\"code\" caption=\"{{ 'Kadooglu::Plate' | abpLocalization }}\" [width]=\"180\" cellTemplate=\"plateTemplate\"></dxi-column>\r\n <dxi-column dataField=\"name\" caption=\"{{ 'Kadooglu::Description' | abpLocalization }}\"></dxi-column>\r\n <dxi-column dataField=\"u_Model\" caption=\"{{ 'Kadooglu::Model' | abpLocalization }}\" [width]=\"150\"></dxi-column>\r\n <dxi-column dataField=\"u_IsTrailer\" caption=\"{{ 'Kadooglu::IsTrailer' | abpLocalization }}\" [width]=\"100\"></dxi-column>\r\n <dxi-column dataField=\"u_Active\" caption=\"{{ 'Kadooglu::IsActive' | abpLocalization }}\" [width]=\"80\"></dxi-column>\r\n <div *dxTemplate=\"let cell of 'plateTemplate'\">\r\n <span *ngIf=\"cell.data.code\" class=\"tr-plate\">\r\n <span class=\"tr-plate-blue\">TR</span>\r\n <span class=\"tr-plate-text\">{{ formatPlate(cell.data.code) }}</span>\r\n </span>\r\n </div>\r\n </dx-data-grid>\r\n\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<lib-hit-plate-form\r\n [(visible)]=\"showForm\"\r\n [record]=\"selectedRecord\"\r\n (saved)=\"onFormSaved()\"\r\n (cancelled)=\"onFormCancelled()\">\r\n</lib-hit-plate-form>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: i4.PageToolbarContainerComponent, selector: "abp-page-toolbar-container" }, { kind: "component", type: i5.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: i5$1.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: i5$1.DxoHeaderFilterComponent, selector: "dxo-header-filter", inputs: ["allowSearch", "dataSource", "groupInterval", "height", "searchMode", "width", "searchTimeout", "texts", "visible", "showRelevantValues"] }, { kind: "component", type: i5$1.DxoFilterRowComponent, selector: "dxo-filter-row", inputs: ["applyFilter", "applyFilterText", "betweenEndText", "betweenStartText", "operationDescriptions", "resetOperationText", "showAllText", "showOperationChooser", "visible"] }, { kind: "component", type: i5$1.DxoPagerComponent, selector: "dxo-pager", inputs: ["allowedPageSizes", "displayMode", "infoText", "label", "showInfo", "showNavigationButtons", "showPageSizeSelector", "visible"] }, { kind: "component", type: i5$1.DxoPagingComponent, selector: "dxo-paging", inputs: ["enabled", "pageIndex", "pageSize"], outputs: ["pageIndexChange", "pageSizeChange"] }, { kind: "component", type: i5$1.DxoSearchPanelComponent, selector: "dxo-search-panel", inputs: ["highlightCaseSensitive", "highlightSearchText", "placeholder", "searchVisibleColumnsOnly", "text", "visible", "width"], outputs: ["textChange"] }, { kind: "directive", type: i7.DxTemplateDirective, selector: "[dxTemplate]", inputs: ["dxTemplateOf"] }, { kind: "directive", type: i8.NgbDropdown, selector: "[ngbDropdown]", inputs: ["autoClose", "dropdownClass", "open", "placement", "container", "display"], outputs: ["openChange"], exportAs: ["ngbDropdown"] }, { kind: "directive", type: i8.NgbDropdownToggle, selector: "[ngbDropdownToggle]" }, { kind: "directive", type: i8.NgbDropdownMenu, selector: "[ngbDropdownMenu]" }, { kind: "directive", type: i8.NgbDropdownItem, selector: "[ngbDropdownItem]", inputs: ["disabled"] }, { kind: "component", type: HitPlateFormComponent, selector: "lib-hit-plate-form", inputs: ["visible", "record"], outputs: ["visibleChange", "saved", "cancelled"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
3321
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitPlateListComponent, decorators: [{
3322
+ type: Component,
3323
+ args: [{ selector: 'lib-hit-plate-list', template: "<abp-page [breadcrumb]=\"false\">\r\n <abp-page-toolbar-container class=\"col\">\r\n <div class=\"row align-items-center\">\r\n <div class=\"col\">\r\n <h3 class=\"page-title\">{{ 'Kadooglu::PlateTitle' | abpLocalization }}</h3>\r\n </div>\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\r\n <dx-data-grid\r\n [dataSource]=\"filteredData\"\r\n [columnAutoWidth]=\"true\"\r\n [showBorders]=\"true\"\r\n [showRowLines]=\"true\"\r\n [hoverStateEnabled]=\"true\"\r\n [allowColumnResizing]=\"true\"\r\n columnResizingMode=\"widget\"\r\n [rowAlternationEnabled]=\"true\"\r\n (onToolbarPreparing)=\"onToolbarPreparing($event)\"\r\n keyExpr=\"code\"\r\n style=\"height: calc(100vh - 320px);\">\r\n\r\n <dxo-filter-row [visible]=\"true\"></dxo-filter-row>\r\n <dxo-header-filter [visible]=\"true\"></dxo-header-filter>\r\n <dxo-search-panel [visible]=\"true\" [width]=\"200\" [placeholder]=\"'Kadooglu::Ara' | abpLocalization\"></dxo-search-panel>\r\n <dxo-pager [visible]=\"true\" [showInfo]=\"true\" [allowedPageSizes]=\"[10,20,50]\"\r\n [showPageSizeSelector]=\"true\" [showNavigationButtons]=\"true\"></dxo-pager>\r\n <dxo-paging [pageSize]=\"10\"></dxo-paging>\r\n <dxi-column [fixed]=\"true\" dataField=\"id\" width=\"120\" [allowGrouping]=\"false\" [allowFiltering]=\"false\"\r\n [allowHeaderFiltering]=\"false\" [allowHiding]=\"false\" [allowReordering]=\"false\"\r\n cellTemplate=\"operationTemplate\" caption=\"{{ 'AbpUi::Actions' | abpLocalization }}\">\r\n <div *dxTemplate=\"let row of 'operationTemplate'\">\r\n <div ngbDropdown container=\"body\" class=\"d-inline-block\">\r\n <button class=\"btn btn-primary btn-sm dropdown-toggle\" data-toggle=\"dropdown\"\r\n aria-haspopup=\"true\" ngbDropdownToggle [disabled]=\"disabledIdColumn\">\r\n <i class=\"fa fa-cog mr-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpUi::Actions' | abpLocalization }}\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"duzenle(row.data)\">\r\n <i class=\"fa fa-edit\" aria-hidden=\"true\"></i> {{ 'AbpUi::Edit' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </dxi-column>\r\n <dxi-column dataField=\"code\" caption=\"{{ 'Kadooglu::Plate' | abpLocalization }}\" [width]=\"180\" cellTemplate=\"plateTemplate\"></dxi-column>\r\n <dxi-column dataField=\"name\" caption=\"{{ 'Kadooglu::Description' | abpLocalization }}\"></dxi-column>\r\n <dxi-column dataField=\"u_Model\" caption=\"{{ 'Kadooglu::Model' | abpLocalization }}\" [width]=\"150\"></dxi-column>\r\n <dxi-column dataField=\"u_IsTrailer\" caption=\"{{ 'Kadooglu::IsTrailer' | abpLocalization }}\" [width]=\"100\"></dxi-column>\r\n <dxi-column dataField=\"u_Active\" caption=\"{{ 'Kadooglu::IsActive' | abpLocalization }}\" [width]=\"80\"></dxi-column>\r\n <div *dxTemplate=\"let cell of 'plateTemplate'\">\r\n <span *ngIf=\"cell.data.code\" class=\"tr-plate\">\r\n <span class=\"tr-plate-blue\">TR</span>\r\n <span class=\"tr-plate-text\">{{ formatPlate(cell.data.code) }}</span>\r\n </span>\r\n </div>\r\n </dx-data-grid>\r\n\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<lib-hit-plate-form\r\n [(visible)]=\"showForm\"\r\n [record]=\"selectedRecord\"\r\n (saved)=\"onFormSaved()\"\r\n (cancelled)=\"onFormCancelled()\">\r\n</lib-hit-plate-form>\r\n" }]
3324
+ }], ctorParameters: function () { return [{ type: HitPlateService }, { type: i2$1.ConfirmationService }]; } });
3325
+
3326
+ const routes$2 = [
3327
+ { path: '', component: HitPlateListComponent },
3328
+ ];
3329
+ class HitPlateRoutingModule {
3330
+ }
3331
+ HitPlateRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitPlateRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3332
+ HitPlateRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitPlateRoutingModule, imports: [i1$1.RouterModule], exports: [RouterModule] });
3333
+ HitPlateRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitPlateRoutingModule, imports: [RouterModule.forChild(routes$2), RouterModule] });
3334
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitPlateRoutingModule, decorators: [{
3335
+ type: NgModule,
3336
+ args: [{
3337
+ imports: [RouterModule.forChild(routes$2)],
3338
+ exports: [RouterModule],
3339
+ }]
3340
+ }] });
3341
+
3342
+ class HitPlateModule {
3343
+ }
3344
+ HitPlateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitPlateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3345
+ HitPlateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitPlateModule, declarations: [HitPlateListComponent, HitPlateFormComponent], imports: [CommonModule,
3346
+ FormsModule,
3347
+ CoreModule,
3348
+ ThemeSharedModule,
3349
+ PageModule,
3350
+ CommercialUiModule,
3351
+ HitPlateRoutingModule,
3352
+ HitUIModule,
3353
+ DxDataGridModule,
3354
+ DxTextBoxModule,
3355
+ DxButtonModule,
3356
+ NgbDropdownModule,
3357
+ DxCheckBoxModule] });
3358
+ HitPlateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitPlateModule, imports: [CommonModule,
3359
+ FormsModule,
3360
+ CoreModule,
3361
+ ThemeSharedModule,
3362
+ PageModule,
3363
+ CommercialUiModule,
3364
+ HitPlateRoutingModule,
3365
+ HitUIModule,
3366
+ DxDataGridModule,
3367
+ DxTextBoxModule,
3368
+ DxButtonModule,
3369
+ NgbDropdownModule,
3370
+ DxCheckBoxModule] });
3371
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitPlateModule, decorators: [{
3372
+ type: NgModule,
3373
+ args: [{
3374
+ declarations: [HitPlateListComponent, HitPlateFormComponent],
3375
+ imports: [
3376
+ CommonModule,
3377
+ FormsModule,
3378
+ CoreModule,
3379
+ ThemeSharedModule,
3380
+ PageModule,
3381
+ CommercialUiModule,
3382
+ HitPlateRoutingModule,
3383
+ HitUIModule,
3384
+ DxDataGridModule,
3385
+ DxTextBoxModule,
3386
+ DxButtonModule,
3387
+ NgbDropdownModule,
3388
+ DxCheckBoxModule,
3389
+ ],
3390
+ }]
3391
+ }] });
3392
+ function loadHitPlateModuleAsChild() {
3393
+ return Promise.resolve(HitPlateModule);
3394
+ }
3395
+
3396
+ class HitKntItemEslService {
3397
+ constructor(restService) {
3398
+ this.restService = restService;
3399
+ this.apiName = 'Kadooglu';
3400
+ this.baseUrl = '/api/entegration-service/knt-item-esls';
3401
+ }
3402
+ getList(params) {
3403
+ return this.restService.request({ method: 'GET', url: this.baseUrl, params: Object.assign({ maxResultCount: 50 }, params) }, { apiName: this.apiName }).pipe(map$1(response => { var _a; return (_a = response === null || response === void 0 ? void 0 : response.items) !== null && _a !== void 0 ? _a : []; }));
3404
+ }
3405
+ get(code) {
3406
+ return this.restService.request({ method: 'GET', url: `${this.baseUrl}/${code}` }, { apiName: this.apiName }).pipe(map$1(response => response === null || response === void 0 ? void 0 : response.items));
3407
+ }
3408
+ create(body) {
3409
+ return this.restService.request({ method: 'POST', url: this.baseUrl, body }, { apiName: this.apiName }).pipe(map$1(r => r === null || r === void 0 ? void 0 : r.items));
3410
+ }
3411
+ update(code, body) {
3412
+ return this.restService.request({ method: 'PATCH', url: `${this.baseUrl}/${code}`, body }, { apiName: this.apiName }).pipe(map$1(r => r === null || r === void 0 ? void 0 : r.items));
3413
+ }
3414
+ delete(code) {
3415
+ return this.restService.request({ method: 'DELETE', url: `${this.baseUrl}/${code}` }, { apiName: this.apiName });
3416
+ }
3417
+ }
3418
+ HitKntItemEslService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitKntItemEslService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
3419
+ HitKntItemEslService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitKntItemEslService, providedIn: 'root' });
3420
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitKntItemEslService, decorators: [{
3421
+ type: Injectable,
3422
+ args: [{ providedIn: 'root' }]
3423
+ }], ctorParameters: function () { return [{ type: i1.RestService }]; } });
3424
+
3425
+ class HitKntItemEslFormComponent {
3426
+ constructor(service, itemService, confirmation, localizationService) {
3427
+ this.service = service;
3428
+ this.itemService = itemService;
3429
+ this.confirmation = confirmation;
3430
+ this.localizationService = localizationService;
3431
+ this.visible = false;
3432
+ this.visibleChange = new EventEmitter();
3433
+ this.record = null;
3434
+ this.saved = new EventEmitter();
3435
+ this.cancelled = new EventEmitter();
3436
+ this.code = '';
3437
+ this.u_CikisKalemTanimi = '';
3438
+ this.u_GirisKalemKodu = '';
3439
+ this.u_GirisKalemTanimi = '';
3440
+ this.isActive = false;
3441
+ this.isLoading = false;
3442
+ this.loadItems = () => this.itemService.getList();
3443
+ this.itemColumns = [
3444
+ { dataField: 'itemCode', caption: 'Kod', width: 120 },
3445
+ { dataField: 'itemName', caption: 'Kalem Adı' },
3446
+ ];
3447
+ }
3448
+ ngOnInit() { }
3449
+ ngOnChanges(changes) {
3450
+ var _a;
3451
+ if (((_a = changes['visible']) === null || _a === void 0 ? void 0 : _a.currentValue) === true) {
3452
+ this.initForm();
3453
+ }
3454
+ }
3455
+ initForm() {
3456
+ var _a, _b, _c;
3457
+ if (this.record) {
3458
+ this.code = this.record.code;
3459
+ this.u_CikisKalemTanimi = (_a = this.record.u_CikisKalemTanimi) !== null && _a !== void 0 ? _a : '';
3460
+ this.u_GirisKalemKodu = (_b = this.record.u_GirisKalemKodu) !== null && _b !== void 0 ? _b : '';
3461
+ this.u_GirisKalemTanimi = (_c = this.record.u_GirisKalemTanimi) !== null && _c !== void 0 ? _c : '';
3462
+ this.isActive = this.record.u_Active === 'Y';
3463
+ }
3464
+ else {
3465
+ this.code = '';
3466
+ this.u_CikisKalemTanimi = '';
3467
+ this.u_GirisKalemKodu = '';
3468
+ this.u_GirisKalemTanimi = '';
3469
+ this.isActive = true;
3470
+ }
3471
+ }
3472
+ onExitItemSelected(item) {
3473
+ if (!item)
3474
+ return;
3475
+ this.code = item.itemCode;
3476
+ this.u_CikisKalemTanimi = item.itemName;
3477
+ }
3478
+ onEntryItemSelected(item) {
3479
+ if (!item)
3480
+ return;
3481
+ this.u_GirisKalemKodu = item.itemCode;
3482
+ this.u_GirisKalemTanimi = item.itemName;
3483
+ }
3484
+ save() {
3485
+ var _a;
3486
+ if (!this.code) {
3487
+ this.confirmation.warn(this.localizationService.instant('Kadooglu::SelectExitItemCode'), '', {
3488
+ hideYesBtn: true,
3489
+ cancelText: this.localizationService.instant('AbpUi::Cancel'),
3490
+ dismissible: false,
3491
+ });
3492
+ return;
3493
+ }
3494
+ if (!this.u_GirisKalemKodu) {
3495
+ this.confirmation.warn(this.localizationService.instant('Kadooglu::SelectEntryItemCode'), '', {
3496
+ hideYesBtn: true,
3497
+ cancelText: this.localizationService.instant('AbpUi::Cancel'),
3498
+ dismissible: false,
3499
+ });
3500
+ return;
3501
+ }
3502
+ if (this.code === this.u_GirisKalemKodu) {
3503
+ this.confirmation.warn(this.localizationService.instant('Kadooglu::EntryExitItemCodeMustBeDifferent'), '', {
3504
+ hideYesBtn: true,
3505
+ cancelText: this.localizationService.instant('AbpUi::Cancel'),
3506
+ dismissible: false,
3507
+ });
3508
+ return;
3509
+ }
3510
+ const dto = {
3511
+ code: this.code,
3512
+ u_CikisKalemKodu: this.code,
3513
+ u_CikisKalemTanimi: this.u_CikisKalemTanimi,
3514
+ u_GirisKalemKodu: this.u_GirisKalemKodu,
3515
+ u_GirisKalemTanimi: this.u_GirisKalemTanimi,
3516
+ u_Active: this.isActive ? 'Y' : 'N',
3517
+ };
3518
+ const obs$ = ((_a = this.record) === null || _a === void 0 ? void 0 : _a.code)
3519
+ ? this.service.update(this.record.code, dto)
3520
+ : this.service.create(dto);
3521
+ this.isLoading = true;
3522
+ obs$.subscribe({
3523
+ next: () => {
3524
+ this.isLoading = false;
3525
+ this.saved.emit();
3526
+ },
3527
+ error: () => {
3528
+ this.isLoading = false;
3529
+ },
3530
+ });
3531
+ }
3532
+ onModalVisibleChange(val) {
3533
+ this.visible = val;
3534
+ this.visibleChange.emit(val);
3535
+ if (!val) {
3536
+ this.cancelled.emit();
3537
+ }
3538
+ }
3539
+ cancel() {
3540
+ this.onModalVisibleChange(false);
3541
+ }
3542
+ }
3543
+ HitKntItemEslFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitKntItemEslFormComponent, deps: [{ token: HitKntItemEslService }, { token: HitItemService }, { token: i2$1.ConfirmationService }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
3544
+ HitKntItemEslFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: HitKntItemEslFormComponent, selector: "lib-hit-knt-item-esl-form", inputs: { visible: "visible", record: "record" }, outputs: { visibleChange: "visibleChange", saved: "saved", cancelled: "cancelled" }, usesOnChanges: true, ngImport: i0, template: "<abp-modal [visible]=\"visible\" (visibleChange)=\"onModalVisibleChange($event)\" [options]=\"{ size: 'lg', backdrop: 'static' }\">\r\n <ng-template #abpHeader>\r\n <h3>{{ record?.code ? ('AbpUi::Edit' | abpLocalization) : ('Kadooglu::NewRecord' | abpLocalization) }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <div class=\"border rounded p-3 mb-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-link me-2\"></i>{{ 'Kadooglu::BasicInfo' | abpLocalization }}\r\n </div>\r\n <div class=\"row mb-3\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::ExitItemCode' | abpLocalization }} <span class=\"text-danger\">*</span></label>\r\n <hit-lookup-select\r\n [loadFn]=\"loadItems\"\r\n [columns]=\"itemColumns\"\r\n displayName=\"itemName\"\r\n keyExpr=\"itemCode\"\r\n [editingData]=\"u_CikisKalemTanimi\"\r\n [disabled]=\"!!record?.code\"\r\n (selected)=\"onExitItemSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::ExitItemDesc' | abpLocalization }}</label>\r\n <dx-text-box [(value)]=\"u_CikisKalemTanimi\" [readOnly]=\"true\" width=\"100%\"></dx-text-box>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::EntryItemCode' | abpLocalization }} <span class=\"text-danger\">*</span></label>\r\n <hit-lookup-select\r\n [loadFn]=\"loadItems\"\r\n [columns]=\"itemColumns\"\r\n displayName=\"itemName\"\r\n keyExpr=\"itemCode\"\r\n [editingData]=\"u_GirisKalemTanimi\"\r\n (selected)=\"onEntryItemSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::EntryItemDesc' | abpLocalization }}</label>\r\n <dx-text-box [(value)]=\"u_GirisKalemTanimi\" [readOnly]=\"true\" width=\"100%\"></dx-text-box>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Durum -->\r\n <div class=\"border rounded p-3 mt-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-toggle-on me-2\"></i>{{ 'Kadooglu::Status' | abpLocalization }}\r\n </div>\r\n <dx-check-box [(value)]=\"isActive\" [text]=\"'Kadooglu::IsActive' | abpLocalization\"></dx-check-box>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"cancel()\">\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-save\" buttonType=\"button\" [loading]=\"isLoading\" (click)=\"save()\">\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "component", type: i2$1.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i2$1.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "component", type: HitModalComponent, selector: "hit-lookup-select", inputs: ["displayName", "keyExpr", "modalSize", "getFn", "loadFn", "columns", "isVisible", "disabled", "editingData"], outputs: ["selected"] }, { kind: "component", type: i5.DxTextBoxComponent, selector: "dx-text-box", inputs: ["accessKey", "activeStateEnabled", "buttons", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "inputAttr", "isValid", "label", "labelMode", "mask", "maskChar", "maskInvalidMessage", "maskRules", "maxLength", "mode", "name", "placeholder", "readOnly", "rtlEnabled", "showClearButton", "showMaskMode", "spellcheck", "stylingMode", "tabIndex", "text", "useMaskedValue", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "valueChangeEvent", "visible", "width"], outputs: ["onChange", "onContentReady", "onCopy", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onKeyDown", "onKeyUp", "onOptionChanged", "onPaste", "onValueChanged", "accessKeyChange", "activeStateEnabledChange", "buttonsChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isValidChange", "labelChange", "labelModeChange", "maskChange", "maskCharChange", "maskInvalidMessageChange", "maskRulesChange", "maxLengthChange", "modeChange", "nameChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "showClearButtonChange", "showMaskModeChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "useMaskedValueChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "component", type: i5.DxCheckBoxComponent, selector: "dx-check-box", inputs: ["accessKey", "activeStateEnabled", "disabled", "elementAttr", "enableThreeStateBehavior", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "iconSize", "isValid", "name", "readOnly", "rtlEnabled", "tabIndex", "text", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "visible", "width"], outputs: ["onContentReady", "onDisposing", "onInitialized", "onOptionChanged", "onValueChanged", "accessKeyChange", "activeStateEnabledChange", "disabledChange", "elementAttrChange", "enableThreeStateBehaviorChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "iconSizeChange", "isValidChange", "nameChange", "readOnlyChange", "rtlEnabledChange", "tabIndexChange", "textChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
3545
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitKntItemEslFormComponent, decorators: [{
3546
+ type: Component,
3547
+ args: [{ selector: 'lib-hit-knt-item-esl-form', template: "<abp-modal [visible]=\"visible\" (visibleChange)=\"onModalVisibleChange($event)\" [options]=\"{ size: 'lg', backdrop: 'static' }\">\r\n <ng-template #abpHeader>\r\n <h3>{{ record?.code ? ('AbpUi::Edit' | abpLocalization) : ('Kadooglu::NewRecord' | abpLocalization) }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <div class=\"border rounded p-3 mb-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-link me-2\"></i>{{ 'Kadooglu::BasicInfo' | abpLocalization }}\r\n </div>\r\n <div class=\"row mb-3\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::ExitItemCode' | abpLocalization }} <span class=\"text-danger\">*</span></label>\r\n <hit-lookup-select\r\n [loadFn]=\"loadItems\"\r\n [columns]=\"itemColumns\"\r\n displayName=\"itemName\"\r\n keyExpr=\"itemCode\"\r\n [editingData]=\"u_CikisKalemTanimi\"\r\n [disabled]=\"!!record?.code\"\r\n (selected)=\"onExitItemSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::ExitItemDesc' | abpLocalization }}</label>\r\n <dx-text-box [(value)]=\"u_CikisKalemTanimi\" [readOnly]=\"true\" width=\"100%\"></dx-text-box>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::EntryItemCode' | abpLocalization }} <span class=\"text-danger\">*</span></label>\r\n <hit-lookup-select\r\n [loadFn]=\"loadItems\"\r\n [columns]=\"itemColumns\"\r\n displayName=\"itemName\"\r\n keyExpr=\"itemCode\"\r\n [editingData]=\"u_GirisKalemTanimi\"\r\n (selected)=\"onEntryItemSelected($event)\">\r\n </hit-lookup-select>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <label class=\"form-label mb-1 small fw-semibold text-muted\">{{ 'Kadooglu::EntryItemDesc' | abpLocalization }}</label>\r\n <dx-text-box [(value)]=\"u_GirisKalemTanimi\" [readOnly]=\"true\" width=\"100%\"></dx-text-box>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Durum -->\r\n <div class=\"border rounded p-3 mt-3\">\r\n <div class=\"border-bottom pb-2 mb-3 fw-bold text-secondary\">\r\n <i class=\"fa fa-toggle-on me-2\"></i>{{ 'Kadooglu::Status' | abpLocalization }}\r\n </div>\r\n <dx-check-box [(value)]=\"isActive\" [text]=\"'Kadooglu::IsActive' | abpLocalization\"></dx-check-box>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" (click)=\"cancel()\">\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-save\" buttonType=\"button\" [loading]=\"isLoading\" (click)=\"save()\">\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
3548
+ }], ctorParameters: function () { return [{ type: HitKntItemEslService }, { type: HitItemService }, { type: i2$1.ConfirmationService }, { type: i1.LocalizationService }]; }, propDecorators: { visible: [{
3549
+ type: Input
3550
+ }], visibleChange: [{
3551
+ type: Output
3552
+ }], record: [{
3553
+ type: Input
3554
+ }], saved: [{
3555
+ type: Output
3556
+ }], cancelled: [{
3557
+ type: Output
3558
+ }] } });
3559
+
3560
+ class HitKntItemEslListComponent {
3561
+ constructor(service, confirmation, localizationService) {
3562
+ this.service = service;
3563
+ this.confirmation = confirmation;
3564
+ this.localizationService = localizationService;
3565
+ this.allData = [];
3566
+ this.filteredData = [];
3567
+ this.showForm = false;
3568
+ this.disabledIdColumn = false;
3569
+ this.selectedRecord = null;
3570
+ }
3571
+ ngOnInit() {
3572
+ this.loadList();
3573
+ }
3574
+ onToolbarPreparing(e) {
3575
+ e.toolbarOptions.items.unshift({
3576
+ location: 'after',
3577
+ widget: 'dxButton',
3578
+ options: {
3579
+ icon: 'plus',
3580
+ text: this.localizationService.instant('Kadooglu::NewRecord'),
3581
+ type: 'default',
3582
+ onClick: () => this.yeniKayit(),
3583
+ },
3584
+ });
3585
+ }
3586
+ loadList() {
3587
+ this.service.getList().subscribe(data => {
3588
+ this.allData = data;
3589
+ this.filteredData = [...data];
3590
+ });
3591
+ }
3592
+ yeniKayit() {
3593
+ this.selectedRecord = null;
3594
+ this.showForm = true;
3595
+ }
3596
+ duzenle(row) {
3597
+ this.selectedRecord = Object.assign({}, row);
3598
+ this.showForm = true;
3599
+ }
3600
+ sil(row) {
3601
+ this.confirmation
3602
+ .warn(`"${row.code}" kodlu kaydı silmek istediğinize emin misiniz?`, '', {
3603
+ yesText: 'Evet',
3604
+ cancelText: 'Hayır',
3605
+ })
3606
+ .subscribe(status => {
3607
+ if (status === 'confirm') {
3608
+ this.service.delete(row.code).subscribe(() => this.loadList());
3609
+ }
3610
+ });
3611
+ }
3612
+ onFormSaved() {
3613
+ this.showForm = false;
3614
+ this.loadList();
3615
+ }
3616
+ onFormCancelled() {
3617
+ this.showForm = false;
3618
+ }
3619
+ }
3620
+ HitKntItemEslListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitKntItemEslListComponent, deps: [{ token: HitKntItemEslService }, { token: i2$1.ConfirmationService }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
3621
+ HitKntItemEslListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: HitKntItemEslListComponent, selector: "lib-hit-knt-item-esl-list", ngImport: i0, template: "<abp-page [breadcrumb]=\"false\">\r\n <abp-page-toolbar-container class=\"col\">\r\n <div class=\"row align-items-center\">\r\n <div class=\"col\">\r\n <h3 class=\"page-title\">{{ 'Kadooglu::KntItemEslTitle' | abpLocalization }}</h3>\r\n </div>\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\r\n <dx-data-grid\r\n [dataSource]=\"filteredData\"\r\n [columnAutoWidth]=\"true\"\r\n [showBorders]=\"true\"\r\n [showRowLines]=\"true\"\r\n [hoverStateEnabled]=\"true\"\r\n [allowColumnResizing]=\"true\"\r\n columnResizingMode=\"widget\"\r\n [rowAlternationEnabled]=\"true\"\r\n (onToolbarPreparing)=\"onToolbarPreparing($event)\"\r\n keyExpr=\"code\"\r\n style=\"height: calc(100vh - 320px);\">\r\n\r\n <dxo-filter-row [visible]=\"true\"></dxo-filter-row>\r\n <dxo-header-filter [visible]=\"true\"></dxo-header-filter>\r\n <dxo-search-panel [visible]=\"true\" [width]=\"200\" [placeholder]=\"'Kadooglu::Ara' | abpLocalization\"></dxo-search-panel>\r\n <dxo-pager [visible]=\"true\" [showInfo]=\"true\" [allowedPageSizes]=\"[10,20,50]\"\r\n [showPageSizeSelector]=\"true\" [showNavigationButtons]=\"true\"></dxo-pager>\r\n <dxo-paging [pageSize]=\"10\"></dxo-paging>\r\n <dxi-column [fixed]=\"true\" dataField=\"id\" width=\"120\" [allowGrouping]=\"false\" [allowFiltering]=\"false\"\r\n [allowHeaderFiltering]=\"false\" [allowHiding]=\"false\" [allowReordering]=\"false\"\r\n cellTemplate=\"operationTemplate\" caption=\"{{ 'AbpUi::Actions' | abpLocalization }}\">\r\n <div *dxTemplate=\"let row of 'operationTemplate'\">\r\n <div ngbDropdown container=\"body\" class=\"d-inline-block\">\r\n <button class=\"btn btn-primary btn-sm dropdown-toggle\" data-toggle=\"dropdown\"\r\n aria-haspopup=\"true\" ngbDropdownToggle [disabled]=\"disabledIdColumn\">\r\n <i class=\"fa fa-cog mr-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpUi::Actions' | abpLocalization }}\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"duzenle(row.data)\">\r\n <i class=\"fa fa-edit\" aria-hidden=\"true\"></i> {{ 'AbpUi::Edit' | abpLocalization }}\r\n </button>\r\n <button ngbDropdownItem (click)=\"sil(row.data)\">\r\n <i class=\"fa fa-trash\" aria-hidden=\"true\"></i> {{ 'AbpUi::Delete' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </dxi-column>\r\n <dxi-column dataField=\"u_CikisKalemKodu\" caption=\"{{ 'Kadooglu::ExitItemCode' | abpLocalization }}\" [width]=\"180\"></dxi-column>\r\n <dxi-column dataField=\"u_CikisKalemTanimi\" caption=\"{{ 'Kadooglu::ExitItemDesc' | abpLocalization }}\"></dxi-column>\r\n <dxi-column dataField=\"u_GirisKalemKodu\" caption=\"{{ 'Kadooglu::EntryItemCode' | abpLocalization }}\" [width]=\"180\"></dxi-column>\r\n <dxi-column dataField=\"u_GirisKalemTanimi\" caption=\"{{ 'Kadooglu::EntryItemDesc' | abpLocalization }}\"></dxi-column>\r\n <dxi-column dataField=\"u_Active\" caption=\"{{ 'Kadooglu::IsActive' | abpLocalization }}\" [width]=\"80\"></dxi-column>\r\n </dx-data-grid>\r\n\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<lib-hit-knt-item-esl-form\r\n [(visible)]=\"showForm\"\r\n [record]=\"selectedRecord\"\r\n (saved)=\"onFormSaved()\"\r\n (cancelled)=\"onFormCancelled()\">\r\n</lib-hit-knt-item-esl-form>\r\n", dependencies: [{ kind: "component", type: i4.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: i4.PageToolbarContainerComponent, selector: "abp-page-toolbar-container" }, { kind: "component", type: i5.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: i5$1.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: i5$1.DxoHeaderFilterComponent, selector: "dxo-header-filter", inputs: ["allowSearch", "dataSource", "groupInterval", "height", "searchMode", "width", "searchTimeout", "texts", "visible", "showRelevantValues"] }, { kind: "component", type: i5$1.DxoFilterRowComponent, selector: "dxo-filter-row", inputs: ["applyFilter", "applyFilterText", "betweenEndText", "betweenStartText", "operationDescriptions", "resetOperationText", "showAllText", "showOperationChooser", "visible"] }, { kind: "component", type: i5$1.DxoPagerComponent, selector: "dxo-pager", inputs: ["allowedPageSizes", "displayMode", "infoText", "label", "showInfo", "showNavigationButtons", "showPageSizeSelector", "visible"] }, { kind: "component", type: i5$1.DxoPagingComponent, selector: "dxo-paging", inputs: ["enabled", "pageIndex", "pageSize"], outputs: ["pageIndexChange", "pageSizeChange"] }, { kind: "component", type: i5$1.DxoSearchPanelComponent, selector: "dxo-search-panel", inputs: ["highlightCaseSensitive", "highlightSearchText", "placeholder", "searchVisibleColumnsOnly", "text", "visible", "width"], outputs: ["textChange"] }, { kind: "directive", type: i7.DxTemplateDirective, selector: "[dxTemplate]", inputs: ["dxTemplateOf"] }, { kind: "directive", type: i8.NgbDropdown, selector: "[ngbDropdown]", inputs: ["autoClose", "dropdownClass", "open", "placement", "container", "display"], outputs: ["openChange"], exportAs: ["ngbDropdown"] }, { kind: "directive", type: i8.NgbDropdownToggle, selector: "[ngbDropdownToggle]" }, { kind: "directive", type: i8.NgbDropdownMenu, selector: "[ngbDropdownMenu]" }, { kind: "directive", type: i8.NgbDropdownItem, selector: "[ngbDropdownItem]", inputs: ["disabled"] }, { kind: "component", type: HitKntItemEslFormComponent, selector: "lib-hit-knt-item-esl-form", inputs: ["visible", "record"], outputs: ["visibleChange", "saved", "cancelled"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }] });
3622
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitKntItemEslListComponent, decorators: [{
3623
+ type: Component,
3624
+ args: [{ selector: 'lib-hit-knt-item-esl-list', template: "<abp-page [breadcrumb]=\"false\">\r\n <abp-page-toolbar-container class=\"col\">\r\n <div class=\"row align-items-center\">\r\n <div class=\"col\">\r\n <h3 class=\"page-title\">{{ 'Kadooglu::KntItemEslTitle' | abpLocalization }}</h3>\r\n </div>\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\r\n <dx-data-grid\r\n [dataSource]=\"filteredData\"\r\n [columnAutoWidth]=\"true\"\r\n [showBorders]=\"true\"\r\n [showRowLines]=\"true\"\r\n [hoverStateEnabled]=\"true\"\r\n [allowColumnResizing]=\"true\"\r\n columnResizingMode=\"widget\"\r\n [rowAlternationEnabled]=\"true\"\r\n (onToolbarPreparing)=\"onToolbarPreparing($event)\"\r\n keyExpr=\"code\"\r\n style=\"height: calc(100vh - 320px);\">\r\n\r\n <dxo-filter-row [visible]=\"true\"></dxo-filter-row>\r\n <dxo-header-filter [visible]=\"true\"></dxo-header-filter>\r\n <dxo-search-panel [visible]=\"true\" [width]=\"200\" [placeholder]=\"'Kadooglu::Ara' | abpLocalization\"></dxo-search-panel>\r\n <dxo-pager [visible]=\"true\" [showInfo]=\"true\" [allowedPageSizes]=\"[10,20,50]\"\r\n [showPageSizeSelector]=\"true\" [showNavigationButtons]=\"true\"></dxo-pager>\r\n <dxo-paging [pageSize]=\"10\"></dxo-paging>\r\n <dxi-column [fixed]=\"true\" dataField=\"id\" width=\"120\" [allowGrouping]=\"false\" [allowFiltering]=\"false\"\r\n [allowHeaderFiltering]=\"false\" [allowHiding]=\"false\" [allowReordering]=\"false\"\r\n cellTemplate=\"operationTemplate\" caption=\"{{ 'AbpUi::Actions' | abpLocalization }}\">\r\n <div *dxTemplate=\"let row of 'operationTemplate'\">\r\n <div ngbDropdown container=\"body\" class=\"d-inline-block\">\r\n <button class=\"btn btn-primary btn-sm dropdown-toggle\" data-toggle=\"dropdown\"\r\n aria-haspopup=\"true\" ngbDropdownToggle [disabled]=\"disabledIdColumn\">\r\n <i class=\"fa fa-cog mr-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpUi::Actions' | abpLocalization }}\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"duzenle(row.data)\">\r\n <i class=\"fa fa-edit\" aria-hidden=\"true\"></i> {{ 'AbpUi::Edit' | abpLocalization }}\r\n </button>\r\n <button ngbDropdownItem (click)=\"sil(row.data)\">\r\n <i class=\"fa fa-trash\" aria-hidden=\"true\"></i> {{ 'AbpUi::Delete' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </dxi-column>\r\n <dxi-column dataField=\"u_CikisKalemKodu\" caption=\"{{ 'Kadooglu::ExitItemCode' | abpLocalization }}\" [width]=\"180\"></dxi-column>\r\n <dxi-column dataField=\"u_CikisKalemTanimi\" caption=\"{{ 'Kadooglu::ExitItemDesc' | abpLocalization }}\"></dxi-column>\r\n <dxi-column dataField=\"u_GirisKalemKodu\" caption=\"{{ 'Kadooglu::EntryItemCode' | abpLocalization }}\" [width]=\"180\"></dxi-column>\r\n <dxi-column dataField=\"u_GirisKalemTanimi\" caption=\"{{ 'Kadooglu::EntryItemDesc' | abpLocalization }}\"></dxi-column>\r\n <dxi-column dataField=\"u_Active\" caption=\"{{ 'Kadooglu::IsActive' | abpLocalization }}\" [width]=\"80\"></dxi-column>\r\n </dx-data-grid>\r\n\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<lib-hit-knt-item-esl-form\r\n [(visible)]=\"showForm\"\r\n [record]=\"selectedRecord\"\r\n (saved)=\"onFormSaved()\"\r\n (cancelled)=\"onFormCancelled()\">\r\n</lib-hit-knt-item-esl-form>\r\n" }]
3625
+ }], ctorParameters: function () { return [{ type: HitKntItemEslService }, { type: i2$1.ConfirmationService }, { type: i1.LocalizationService }]; } });
3626
+
3627
+ const routes$1 = [
3628
+ { path: '', component: HitKntItemEslListComponent },
3629
+ ];
3630
+ class HitKntItemEslRoutingModule {
3631
+ }
3632
+ HitKntItemEslRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitKntItemEslRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3633
+ HitKntItemEslRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitKntItemEslRoutingModule, imports: [i1$1.RouterModule], exports: [RouterModule] });
3634
+ HitKntItemEslRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitKntItemEslRoutingModule, imports: [RouterModule.forChild(routes$1), RouterModule] });
3635
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitKntItemEslRoutingModule, decorators: [{
3636
+ type: NgModule,
3637
+ args: [{
3638
+ imports: [RouterModule.forChild(routes$1)],
3639
+ exports: [RouterModule],
3640
+ }]
3641
+ }] });
3642
+
3643
+ class HitKntItemEslModule {
3644
+ }
3645
+ HitKntItemEslModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitKntItemEslModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3646
+ HitKntItemEslModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitKntItemEslModule, declarations: [HitKntItemEslListComponent, HitKntItemEslFormComponent], imports: [CommonModule,
3647
+ FormsModule,
3648
+ CoreModule,
3649
+ ThemeSharedModule,
3650
+ PageModule,
3651
+ CommercialUiModule,
3652
+ HitKntItemEslRoutingModule,
3653
+ HitUIModule,
3654
+ DxDataGridModule,
3655
+ DxTextBoxModule,
3656
+ DxButtonModule,
3657
+ DxCheckBoxModule,
3658
+ NgbDropdownModule] });
3659
+ HitKntItemEslModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitKntItemEslModule, imports: [CommonModule,
3660
+ FormsModule,
3661
+ CoreModule,
3662
+ ThemeSharedModule,
3663
+ PageModule,
3664
+ CommercialUiModule,
3665
+ HitKntItemEslRoutingModule,
3666
+ HitUIModule,
3667
+ DxDataGridModule,
3668
+ DxTextBoxModule,
3669
+ DxButtonModule,
3670
+ DxCheckBoxModule,
3671
+ NgbDropdownModule] });
3672
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitKntItemEslModule, decorators: [{
3673
+ type: NgModule,
3674
+ args: [{
3675
+ declarations: [HitKntItemEslListComponent, HitKntItemEslFormComponent],
3676
+ imports: [
3677
+ CommonModule,
3678
+ FormsModule,
3679
+ CoreModule,
3680
+ ThemeSharedModule,
3681
+ PageModule,
3682
+ CommercialUiModule,
3683
+ HitKntItemEslRoutingModule,
3684
+ HitUIModule,
3685
+ DxDataGridModule,
3686
+ DxTextBoxModule,
3687
+ DxButtonModule,
3688
+ DxCheckBoxModule,
3689
+ NgbDropdownModule,
3690
+ ],
3691
+ }]
3692
+ }] });
3693
+ function loadHitKntItemEslModuleAsChild() {
3694
+ return Promise.resolve(HitKntItemEslModule);
3695
+ }
3696
+
3697
+ const routes = [
3698
+ {
3699
+ path: '',
3700
+ pathMatch: 'full',
3701
+ component: KadoogluComponent,
3702
+ },
3703
+ { path: 'factory-entry', loadChildren: loadHitFactoryEntryModuleAsChild },
3704
+ { path: 'entry-weighing', loadChildren: loadHitEntryWeighingModuleAsChild },
3705
+ { path: 'vehicle-type', loadChildren: loadHitVehicleTypeModuleAsChild },
3706
+ { path: 'scale', loadChildren: loadHitScaleModuleAsChild },
3707
+ { path: 'gate', loadChildren: loadHitGateModuleAsChild },
3708
+ { path: 'carrier-person', loadChildren: loadHitCarrierPersonModuleAsChild },
3709
+ { path: 'plate', loadChildren: loadHitPlateModuleAsChild },
3710
+ { path: 'knt-item-esl', loadChildren: loadHitKntItemEslModuleAsChild },
3711
+ ];
3712
+ class KadoogluRoutingModule {
3713
+ }
3714
+ KadoogluRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KadoogluRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3715
+ KadoogluRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: KadoogluRoutingModule, imports: [i1$1.RouterModule], exports: [RouterModule] });
3716
+ KadoogluRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KadoogluRoutingModule, imports: [RouterModule.forChild(routes), RouterModule] });
3717
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KadoogluRoutingModule, decorators: [{
3718
+ type: NgModule,
3719
+ args: [{
3720
+ imports: [RouterModule.forChild(routes)],
3721
+ exports: [RouterModule],
3722
+ }]
3723
+ }] });
3724
+
3725
+ class KadoogluModule {
3726
+ constructor(localizationService) {
3727
+ this.localizationService = localizationService;
3728
+ this.localizationService.currentLang$.subscribe(item => {
3729
+ locale(item);
3730
+ });
3731
+ }
3732
+ static forChild() {
3733
+ return {
3734
+ ngModule: KadoogluModule,
3735
+ providers: [],
3736
+ };
3737
+ }
3738
+ static forLazy() {
3739
+ return new LazyModuleFactory(KadoogluModule.forChild());
3740
+ }
3741
+ }
3742
+ KadoogluModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KadoogluModule, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.NgModule });
3743
+ KadoogluModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: KadoogluModule, declarations: [KadoogluComponent], imports: [CommonModule,
3744
+ CoreModule,
3745
+ ThemeSharedModule,
3746
+ KadoogluRoutingModule], exports: [KadoogluComponent] });
3747
+ KadoogluModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KadoogluModule, imports: [CommonModule,
3748
+ CoreModule,
3749
+ ThemeSharedModule,
3750
+ KadoogluRoutingModule] });
3751
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: KadoogluModule, decorators: [{
3752
+ type: NgModule,
3753
+ args: [{
3754
+ declarations: [KadoogluComponent],
3755
+ imports: [
3756
+ CommonModule,
3757
+ CoreModule,
3758
+ ThemeSharedModule,
3759
+ KadoogluRoutingModule,
3760
+ ],
3761
+ exports: [KadoogluComponent],
3762
+ }]
3763
+ }], ctorParameters: function () { return [{ type: i1.LocalizationService }]; } });
3764
+
3765
+ /*
3766
+ * Public API Surface of kadooglu
3767
+ */
3768
+
3769
+ /**
3770
+ * Generated bundle index. Do not edit.
3771
+ */
3772
+
3773
+ export { HitFactoryEntryService, KadoogluComponent, KadoogluModule, KadoogluService };
3774
+ //# sourceMappingURL=hitsoft-abp.kadooglu.mjs.map