@hitsoft/uretim-yonetimi 1.0.12 → 1.0.14

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 (137) hide show
  1. package/config/enums/route-names.d.ts +3 -0
  2. package/config/index.d.ts +5 -0
  3. package/config/providers/create-barcode-route.provider.d.ts +9 -0
  4. package/config/providers/issues-for-production-route.provider.d.ts +9 -0
  5. package/config/providers/production-order-route.provider.d.ts +9 -0
  6. package/config/providers/receipt-from-production-route.provider.d.ts +9 -0
  7. package/config/providers/route.provider.d.ts +8 -0
  8. package/config/uretim-yonetimi-config.module.d.ts +8 -0
  9. package/esm2020/config/enums/index.mjs +2 -0
  10. package/esm2020/config/enums/route-names.mjs +2 -0
  11. package/esm2020/config/hitsoft-uretim-yonetimi-config.mjs +5 -0
  12. package/esm2020/config/providers/create-barcode-route.provider.mjs +19 -0
  13. package/esm2020/config/providers/index.mjs +2 -0
  14. package/esm2020/config/providers/issues-for-production-route.provider.mjs +19 -0
  15. package/esm2020/config/providers/production-order-route.provider.mjs +19 -0
  16. package/esm2020/config/providers/receipt-from-production-route.provider.mjs +19 -0
  17. package/esm2020/config/providers/route.provider.mjs +24 -0
  18. package/esm2020/config/public-api.mjs +4 -0
  19. package/esm2020/config/uretim-yonetimi-config.module.mjs +28 -0
  20. package/esm2020/hitsoft-uretim-yonetimi.mjs +5 -0
  21. package/esm2020/lib/components/hit-create-barcodes/hit-create-barcodes-routing.module.mjs +26 -0
  22. package/esm2020/lib/components/hit-create-barcodes/hit-create-barcodes.component.mjs +186 -0
  23. package/esm2020/lib/components/hit-create-barcodes/hit-create-barcodes.module.mjs +65 -0
  24. package/esm2020/lib/components/hit-issues-for-productions/hit-issues-for-productions-routing.module.mjs +26 -0
  25. package/esm2020/lib/components/hit-issues-for-productions/hit-issues-for-productions.component.mjs +252 -0
  26. package/esm2020/lib/components/hit-issues-for-productions/hit-issues-for-productions.module.mjs +68 -0
  27. package/esm2020/lib/components/hit-production-orders/hit-production-orders-routing.module.mjs +26 -0
  28. package/esm2020/lib/components/hit-production-orders/hit-production-orders.component.mjs +153 -0
  29. package/esm2020/lib/components/hit-production-orders/hit-production-orders.module.mjs +65 -0
  30. package/esm2020/lib/components/hit-receipt-from-productions/hit-receipt-from-production-routing.module.mjs +26 -0
  31. package/esm2020/lib/components/hit-receipt-from-productions/hit-receipt-from-productions.component.mjs +217 -0
  32. package/esm2020/lib/components/hit-receipt-from-productions/hit-receipt-from-productions.module.mjs +62 -0
  33. package/esm2020/lib/components/uretim-yonetimi.component.mjs +11 -0
  34. package/esm2020/lib/hit-proxy/devexpress-query-builder/devexpress-load-options.model.mjs +2 -0
  35. package/esm2020/lib/hit-proxy/devexpress-query-builder/devexpress-query-builder.mjs +54 -0
  36. package/esm2020/lib/hit-proxy/hit-create-barcodes/hit-create-barcodes.service.mjs +35 -0
  37. package/esm2020/lib/hit-proxy/hit-create-barcodes/models.mjs +3 -0
  38. package/esm2020/lib/hit-proxy/hit-issues-for-productions/hit-issues-for-productions.service.mjs +35 -0
  39. package/esm2020/lib/hit-proxy/hit-issues-for-productions/models.mjs +24 -0
  40. package/esm2020/lib/hit-proxy/hit-production-orders/hit-production-orders.service.mjs +44 -0
  41. package/esm2020/lib/hit-proxy/hit-production-orders/models.mjs +65 -0
  42. package/esm2020/lib/hit-proxy/hit-receipt-from-productions/hit-receipt-from-productions.service.mjs +30 -0
  43. package/esm2020/lib/hit-proxy/hit-receipt-from-productions/models.mjs +20 -0
  44. package/esm2020/lib/hit-proxy/models.mjs +80 -0
  45. package/esm2020/lib/uretim-yonetimi-routing.module.mjs +33 -0
  46. package/esm2020/lib/uretim-yonetimi.module.mjs +55 -0
  47. package/esm2020/public-api.mjs +6 -0
  48. package/fesm2015/hitsoft-uretim-yonetimi-config.mjs +121 -0
  49. package/fesm2015/hitsoft-uretim-yonetimi-config.mjs.map +1 -0
  50. package/fesm2015/hitsoft-uretim-yonetimi.mjs +1543 -0
  51. package/fesm2015/hitsoft-uretim-yonetimi.mjs.map +1 -0
  52. package/fesm2020/hitsoft-uretim-yonetimi-config.mjs +121 -0
  53. package/fesm2020/hitsoft-uretim-yonetimi-config.mjs.map +1 -0
  54. package/fesm2020/hitsoft-uretim-yonetimi.mjs +1521 -0
  55. package/fesm2020/hitsoft-uretim-yonetimi.mjs.map +1 -0
  56. package/index.d.ts +5 -0
  57. package/lib/components/hit-create-barcodes/hit-create-barcodes-routing.module.d.ts +7 -0
  58. package/lib/components/hit-create-barcodes/hit-create-barcodes.component.d.ts +45 -0
  59. package/lib/components/hit-create-barcodes/hit-create-barcodes.module.d.ts +16 -0
  60. package/lib/components/hit-issues-for-productions/hit-issues-for-productions-routing.module.d.ts +7 -0
  61. package/lib/components/hit-issues-for-productions/hit-issues-for-productions.component.d.ts +48 -0
  62. package/lib/components/hit-issues-for-productions/hit-issues-for-productions.module.d.ts +16 -0
  63. package/lib/components/hit-production-orders/hit-production-orders-routing.module.d.ts +7 -0
  64. package/lib/components/hit-production-orders/hit-production-orders.component.d.ts +44 -0
  65. package/lib/components/hit-production-orders/hit-production-orders.module.d.ts +16 -0
  66. package/lib/components/hit-receipt-from-productions/hit-receipt-from-production-routing.module.d.ts +7 -0
  67. package/lib/components/hit-receipt-from-productions/hit-receipt-from-productions.component.d.ts +57 -0
  68. package/lib/components/hit-receipt-from-productions/hit-receipt-from-productions.module.d.ts +16 -0
  69. package/lib/components/uretim-yonetimi.component.d.ts +5 -0
  70. package/lib/hit-proxy/devexpress-query-builder/devexpress-load-options.model.d.ts +17 -0
  71. package/lib/hit-proxy/devexpress-query-builder/devexpress-query-builder.d.ts +18 -0
  72. package/lib/hit-proxy/hit-create-barcodes/hit-create-barcodes.service.d.ts +23 -0
  73. package/lib/hit-proxy/hit-create-barcodes/models.d.ts +6 -0
  74. package/lib/hit-proxy/hit-issues-for-productions/hit-issues-for-productions.service.d.ts +17 -0
  75. package/lib/hit-proxy/hit-issues-for-productions/models.d.ts +30 -0
  76. package/lib/hit-proxy/hit-production-orders/hit-production-orders.service.d.ts +19 -0
  77. package/lib/hit-proxy/hit-production-orders/models.d.ts +85 -0
  78. package/lib/hit-proxy/hit-receipt-from-productions/hit-receipt-from-productions.service.d.ts +16 -0
  79. package/lib/hit-proxy/hit-receipt-from-productions/models.d.ts +39 -0
  80. package/lib/hit-proxy/models.d.ts +21 -0
  81. package/lib/uretim-yonetimi-routing.module.d.ts +7 -0
  82. package/lib/uretim-yonetimi.module.d.ts +17 -0
  83. package/package.json +42 -14
  84. package/{src/public-api.ts → public-api.d.ts} +0 -4
  85. package/.eslintrc.json +0 -44
  86. package/config/ng-package.json +0 -7
  87. package/config/src/enums/route-names.ts +0 -3
  88. package/config/src/providers/create-barcode-route.provider.ts +0 -21
  89. package/config/src/providers/issues-for-production-route.provider.ts +0 -21
  90. package/config/src/providers/production-order-route.provider.ts +0 -21
  91. package/config/src/providers/receipt-from-production-route.provider.ts +0 -21
  92. package/config/src/providers/route.provider.ts +0 -26
  93. package/config/src/uretim-yonetimi-config.module.ts +0 -22
  94. package/karma.conf.js +0 -44
  95. package/ng-package.json +0 -7
  96. package/src/lib/components/hit-create-barcodes/hit-create-barcodes-component.css +0 -10
  97. package/src/lib/components/hit-create-barcodes/hit-create-barcodes-routing.module.ts +0 -19
  98. package/src/lib/components/hit-create-barcodes/hit-create-barcodes.component.html +0 -80
  99. package/src/lib/components/hit-create-barcodes/hit-create-barcodes.component.ts +0 -219
  100. package/src/lib/components/hit-create-barcodes/hit-create-barcodes.module.ts +0 -39
  101. package/src/lib/components/hit-issues-for-productions/hit-issues-for-productions-routing.module.ts +0 -19
  102. package/src/lib/components/hit-issues-for-productions/hit-issues-for-productions.componenet.css +0 -7
  103. package/src/lib/components/hit-issues-for-productions/hit-issues-for-productions.component.html +0 -96
  104. package/src/lib/components/hit-issues-for-productions/hit-issues-for-productions.component.ts +0 -274
  105. package/src/lib/components/hit-issues-for-productions/hit-issues-for-productions.module.ts +0 -46
  106. package/src/lib/components/hit-production-orders/hit-production-orders-routing.module.ts +0 -19
  107. package/src/lib/components/hit-production-orders/hit-production-orders.component.html +0 -79
  108. package/src/lib/components/hit-production-orders/hit-production-orders.component.ts +0 -214
  109. package/src/lib/components/hit-production-orders/hit-production-orders.module.ts +0 -39
  110. package/src/lib/components/hit-receipt-from-productions/hit-receipt-from-production-component.css +0 -10
  111. package/src/lib/components/hit-receipt-from-productions/hit-receipt-from-production-routing.module.ts +0 -19
  112. package/src/lib/components/hit-receipt-from-productions/hit-receipt-from-productions.component.html +0 -101
  113. package/src/lib/components/hit-receipt-from-productions/hit-receipt-from-productions.component.ts +0 -258
  114. package/src/lib/components/hit-receipt-from-productions/hit-receipt-from-productions.module.ts +0 -38
  115. package/src/lib/components/uretim-yonetimi.component.ts +0 -9
  116. package/src/lib/hit-proxy/devexpress-query-builder/devexpress-load-options.model.ts +0 -20
  117. package/src/lib/hit-proxy/devexpress-query-builder/devexpress-query-builder.ts +0 -51
  118. package/src/lib/hit-proxy/hit-create-barcodes/hit-create-barcodes.service.ts +0 -41
  119. package/src/lib/hit-proxy/hit-create-barcodes/models.ts +0 -6
  120. package/src/lib/hit-proxy/hit-issues-for-productions/hit-issues-for-productions.service.ts +0 -39
  121. package/src/lib/hit-proxy/hit-issues-for-productions/models.ts +0 -42
  122. package/src/lib/hit-proxy/hit-production-orders/hit-production-orders.service.ts +0 -60
  123. package/src/lib/hit-proxy/hit-production-orders/models.ts +0 -137
  124. package/src/lib/hit-proxy/hit-receipt-from-productions/hit-receipt-from-productions.service.ts +0 -32
  125. package/src/lib/hit-proxy/hit-receipt-from-productions/models.ts +0 -43
  126. package/src/lib/hit-proxy/models.ts +0 -105
  127. package/src/lib/uretim-yonetimi-routing.module.ts +0 -30
  128. package/src/lib/uretim-yonetimi.component.spec.ts +0 -24
  129. package/src/lib/uretim-yonetimi.module.ts +0 -52
  130. package/src/lib/uretim-yonetimi.service.spec.ts +0 -15
  131. package/src/test.ts +0 -29
  132. package/tsconfig.lib.json +0 -20
  133. package/tsconfig.lib.prod.json +0 -10
  134. package/tsconfig.spec.json +0 -17
  135. /package/config/{src/enums/index.ts → enums/index.d.ts} +0 -0
  136. /package/config/{src/providers/index.ts → providers/index.d.ts} +0 -0
  137. /package/config/{src/public-api.ts → public-api.d.ts} +0 -0
@@ -0,0 +1,1521 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, Injectable, ChangeDetectionStrategy, ViewChild, NgModule } from '@angular/core';
3
+ import * as i1 from '@abp/ng.core';
4
+ import { ListService, AuthGuard, PermissionGuard, CoreModule, LazyModuleFactory } from '@abp/ng.core';
5
+ import * as i3 from '@abp/ng.theme.shared';
6
+ import { ThemeSharedModule } from '@abp/ng.theme.shared';
7
+ import * as i1$1 from '@angular/router';
8
+ import { RouterModule } from '@angular/router';
9
+ import { NgbDateAdapter, NgbCollapseModule, NgbDatepickerModule, NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';
10
+ import { NgxValidateCoreModule } from '@ngx-validate/core';
11
+ import { CommercialUiModule } from '@volo/abp.commercial.ng.ui';
12
+ import * as i7 from '@abp/ng.components/page';
13
+ import { PageModule } from '@abp/ng.components/page';
14
+ import { DateAdapter } from '@abp/ng.theme.shared/extensions';
15
+ import { firstValueFrom } from 'rxjs';
16
+ import * as i4 from '@angular/forms';
17
+ import * as i6 from '@angular/common';
18
+ import * as i8 from 'devextreme-angular';
19
+ import { DxTextBoxModule, DxButtonModule, DxDataGridModule, DxNumberBoxModule, DevExtremeModule, DxLoadIndicatorModule } from 'devextreme-angular';
20
+ import * as i8$1 from 'devextreme-angular/ui/nested';
21
+ import * as AspNetData from 'devextreme-aspnet-data-nojquery';
22
+ import * as i5 from '@angular/platform-browser';
23
+ import * as i9 from 'devextreme-angular/core';
24
+
25
+ class UretimYonetimiComponent {
26
+ }
27
+ UretimYonetimiComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: UretimYonetimiComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
28
+ UretimYonetimiComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: UretimYonetimiComponent, selector: "lib-uretim-yonetimi", ngImport: i0, template: ` <p>uretim-yonetimi works!</p> `, isInline: true });
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: UretimYonetimiComponent, decorators: [{
30
+ type: Component,
31
+ args: [{ selector: 'lib-uretim-yonetimi', template: ` <p>uretim-yonetimi works!</p> ` }]
32
+ }] });
33
+
34
+ class ProductionOrder {
35
+ }
36
+ class Warehouse {
37
+ }
38
+ class HammaddeDepo {
39
+ }
40
+ class ItemInfos {
41
+ }
42
+ class Item {
43
+ }
44
+ class ProductionOrderList {
45
+ constructor() {
46
+ this.ProductionOrderLines = [];
47
+ }
48
+ }
49
+ class ProductionOrderLineForListing {
50
+ constructor(itemCode, itemName, warehouseCode, quantity, plannedQty, batchNumber, baseType = 202, baseEntry = -1, baseLine = -1) {
51
+ this.ItemCode = itemCode;
52
+ this.ItemName = itemName;
53
+ this.WarehouseCode = warehouseCode;
54
+ this.Quantity = quantity;
55
+ this.PlannedQty = plannedQty;
56
+ this.BatchNumber = batchNumber;
57
+ this.BaseType = baseType;
58
+ this.BaseEntry = baseEntry;
59
+ this.BaseLine = baseLine;
60
+ }
61
+ }
62
+ class ProductionOrderPatchDto {
63
+ constructor(productionOrderLines = []) {
64
+ this.ProductionOrderLines = productionOrderLines;
65
+ }
66
+ }
67
+ class ProductionOrderLine$1 {
68
+ constructor(itemNo, warehouse, baseQuantity, plannedQuantity, issuedQuantity, productionOrderIssueType, documentAbsoluteEntry, lineNumber, batchNumbers) {
69
+ this.DocumentAbsoluteEntry = documentAbsoluteEntry;
70
+ this.LineNumber = lineNumber;
71
+ this.ItemNo = itemNo;
72
+ this.BaseQuantity = baseQuantity;
73
+ this.PlannedQuantity = plannedQuantity;
74
+ this.IssuedQuantity = issuedQuantity;
75
+ this.Warehouse = warehouse;
76
+ this.ProductionOrderIssueType = productionOrderIssueType;
77
+ this.BatchNumbers = batchNumbers;
78
+ }
79
+ }
80
+ class BatchNumber$1 {
81
+ constructor(batchNumber, quantity) {
82
+ this.BatchNumber = batchNumber;
83
+ this.Quantity = quantity;
84
+ }
85
+ }
86
+ class ProductionOrdersGetDto {
87
+ }
88
+ class TuketilenHammadde {
89
+ constructor(chemicalCode, lotNumber, expirationDate, weight, terminalCode) {
90
+ this.chemicalCode = chemicalCode;
91
+ this.lotNumber = lotNumber;
92
+ this.expirationDate = expirationDate;
93
+ this.weightGr = weight; // Gram cinsinden
94
+ this.weightKg = weight ? weight / 1000 : 0; // Kilogram cinsine dönüştürülmüş hali
95
+ this.terminalCode = terminalCode;
96
+ }
97
+ }
98
+
99
+ class ResultBase {
100
+ }
101
+ class HitHelper {
102
+ static getMeasurementFormatted(suffix) {
103
+ return suffix ? '#,##0.00 ' + suffix : '#,##0.00';
104
+ }
105
+ static getMeasurementFormattedWithLocalization(value, unit) {
106
+ const locale = navigator.language || 'tr-TR';
107
+ const formatted = new Intl.NumberFormat(locale, {
108
+ minimumFractionDigits: 2,
109
+ maximumFractionDigits: 2,
110
+ }).format(value);
111
+ return unit ? `${formatted} ${unit}` : formatted;
112
+ }
113
+ static getFormattedErrors(errors) {
114
+ if (!errors?.length) {
115
+ return '';
116
+ }
117
+ if (errors.length === 1) {
118
+ return errors[0];
119
+ }
120
+ return errors
121
+ .map((err, index) => `${index + 1}. ${err}`)
122
+ .join('\n');
123
+ }
124
+ static parseQR(code) {
125
+ const aiRegexMap = {
126
+ '240': /^240(.+?)10/,
127
+ '10': /10(.+?)17/,
128
+ '17': /17(\d{6})/,
129
+ '3103': /3103(\d{6})/,
130
+ '21': /21([A-Z]{2}\d{8})$/,
131
+ };
132
+ const chemicalCodeMatch = code.match(aiRegexMap['240']);
133
+ const lotNumberMatch = code.match(aiRegexMap['10']);
134
+ const expDateMatch = code.match(aiRegexMap['17']);
135
+ const weightMatch = code.match(aiRegexMap['3103']);
136
+ const terminalCodeMatch = code.match(aiRegexMap['21']);
137
+ if (!chemicalCodeMatch || !lotNumberMatch || !expDateMatch || !weightMatch || !terminalCodeMatch) {
138
+ return null;
139
+ }
140
+ var onMu = false;
141
+ while (!onMu) {
142
+ if (lotNumberMatch[1].substring(0, 2) == "10") {
143
+ chemicalCodeMatch[1] += "10";
144
+ lotNumberMatch[1] = lotNumberMatch[1].substring(2);
145
+ }
146
+ else {
147
+ onMu = true;
148
+ }
149
+ }
150
+ var onYediMi = false;
151
+ while (!onYediMi) {
152
+ if (expDateMatch[1].substring(0, 2) == "17") {
153
+ lotNumberMatch[1] += "10";
154
+ expDateMatch[1] = expDateMatch[1].substring(2);
155
+ }
156
+ else {
157
+ onYediMi = true;
158
+ }
159
+ }
160
+ if (!chemicalCodeMatch || !lotNumberMatch || !expDateMatch || !weightMatch || !terminalCodeMatch) {
161
+ return null;
162
+ }
163
+ const expDateRaw = expDateMatch[1]; // YYMMDD
164
+ const expirationDate = `20${expDateRaw.slice(0, 2)}-${expDateRaw.slice(2, 4)}-${expDateRaw.slice(4, 6)}`;
165
+ return new Hammadde(chemicalCodeMatch[1], lotNumberMatch[1], expirationDate, parseInt(weightMatch[1]), terminalCodeMatch[1]);
166
+ }
167
+ }
168
+ class Hammadde {
169
+ constructor(chemicalCode, lotNumber, expirationDate, weight, terminalCode) {
170
+ this.chemicalCode = chemicalCode;
171
+ this.lotNumber = lotNumber;
172
+ this.expirationDate = expirationDate;
173
+ this.weightGr = weight; // Gram cinsinden
174
+ this.weightKg = weight ? weight / 1000 : 0; // Kilogram cinsine dönüştürülmüş hali
175
+ this.terminalCode = terminalCode;
176
+ }
177
+ }
178
+
179
+ class HitProductionOrdersService {
180
+ constructor(restService) {
181
+ this.restService = restService;
182
+ this.apiName = 'UretimYonetimi';
183
+ this.get = (id) => this.restService.request({
184
+ method: 'GET',
185
+ url: `${this.resourceEndpoint}?id=${id + ''}`,
186
+ }, { apiName: this.apiName });
187
+ this.get2 = (id) => this.restService.request({
188
+ method: 'GET',
189
+ url: `${this.resourceEndpoint}?id=${id + ''}`,
190
+ }, { apiName: this.apiName });
191
+ this.patch = (input) => this.restService.request({
192
+ method: 'PATCH',
193
+ url: `${this.resourceEndpoint}`,
194
+ body: input
195
+ }, { apiName: this.apiName });
196
+ this.getWarehouses = () => this.restService.request({
197
+ method: 'GET',
198
+ url: `${this.resourceEndpoint}/get-warehouses`,
199
+ }, { apiName: this.apiName });
200
+ this.getWareHouseInfo = (itemCode, orderNo) => this.restService.request({
201
+ method: 'GET',
202
+ url: `${this.resourceEndpoint}/get-warehouse-info?itemCode=${itemCode}&orderNo=${orderNo}`,
203
+ }, { apiName: this.apiName });
204
+ this.getItemInfo = (itemCode) => this.restService.request({
205
+ method: 'GET',
206
+ url: `${this.resourceEndpoint}/get-item-info?itemCode=${itemCode}`,
207
+ }, { apiName: this.apiName });
208
+ this.resourceEndpoint = '/api/uretim-yonetimi/production-orders';
209
+ }
210
+ }
211
+ HitProductionOrdersService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitProductionOrdersService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
212
+ HitProductionOrdersService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitProductionOrdersService, providedIn: 'root' });
213
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitProductionOrdersService, decorators: [{
214
+ type: Injectable,
215
+ args: [{
216
+ providedIn: 'root',
217
+ }]
218
+ }], ctorParameters: function () { return [{ type: i1.RestService }]; } });
219
+
220
+ class HitProductionOrdersComponent {
221
+ constructor(ngZone, list, track, service, confirmation, fb, productionOrdersService) {
222
+ this.ngZone = ngZone;
223
+ this.list = list;
224
+ this.track = track;
225
+ this.service = service;
226
+ this.confirmation = confirmation;
227
+ this.fb = fb;
228
+ this.productionOrdersService = productionOrdersService;
229
+ this.HitHelper = HitHelper;
230
+ this.options = {
231
+ hideYesBtn: true,
232
+ cancelText: 'Kapat',
233
+ dismissible: false,
234
+ };
235
+ this.isLoading = false;
236
+ this.isEmriBarkoduGecerliMi = false;
237
+ this.searcheBasildiMi = false;
238
+ this.hammaddeQR = '';
239
+ this.qrOkutulduMu = false;
240
+ this.warehouses = [];
241
+ }
242
+ ngOnInit() {
243
+ this.getWarehouses();
244
+ }
245
+ ngAfterViewInit() {
246
+ this.nmbBoxBarkodNumarasi.instance.focus();
247
+ }
248
+ async getProductionOrderDetails() {
249
+ if (!this.isEmriBarkodu) {
250
+ return;
251
+ }
252
+ try {
253
+ this.isLoading = true;
254
+ this.isEmriBarkoduGecerliMi = false;
255
+ this.searcheBasildiMi = true;
256
+ const response = await firstValueFrom(this.productionOrdersService.get(this.isEmriBarkodu));
257
+ const response2 = await this.productionOrdersService.get2(this.isEmriBarkodu).subscribe();
258
+ if (response?.items) {
259
+ this.unitOfMeasure = response.items.unitOfMeasurement;
260
+ this.productionOrder = response.items;
261
+ this.productionOrderList = new ProductionOrderList();
262
+ this.isEmriBarkoduGecerliMi = true;
263
+ this.ngZone.run(() => {
264
+ setTimeout(() => {
265
+ this.nmbBoxHammaddeQR.instance.focus();
266
+ }, 0);
267
+ });
268
+ }
269
+ }
270
+ catch (error) {
271
+ this.isEmriBarkoduGecerliMi = false;
272
+ this.searcheBasildiMi = false;
273
+ }
274
+ finally {
275
+ this.isLoading = false;
276
+ }
277
+ }
278
+ async parseAndAddQR() {
279
+ if (!this.hammaddeQR) {
280
+ return;
281
+ }
282
+ const parsed = HitHelper.parseQR(this.hammaddeQR);
283
+ if (!parsed) {
284
+ this.confirmation.error('', 'Geçersiz barkod!', this.options).subscribe({
285
+ next: () => {
286
+ this.hammaddeQR = '';
287
+ this.nmbBoxHammaddeQR.instance.focus();
288
+ },
289
+ });
290
+ return;
291
+ }
292
+ const response = await firstValueFrom(this.service.getWareHouseInfo(parsed.chemicalCode, this.productionOrder.absoluteEntry.toString()));
293
+ const response2 = await firstValueFrom(this.service.getItemInfo(parsed.chemicalCode));
294
+ if (response?.items && response.isSuccessful) {
295
+ const productionOrderLineForListing = new ProductionOrderLineForListing(parsed.chemicalCode, response2.items.itemName, response.items.selectedWarehouse, parsed.weightKg, parsed.weightKg, parsed.lotNumber, 202, this.productionOrder.absoluteEntry, 0);
296
+ this.productionOrderList.ProductionOrderLines.push(productionOrderLineForListing);
297
+ this.qrOkutulduMu = true;
298
+ }
299
+ this.hammaddeQR = '';
300
+ }
301
+ patchProductionOrder() {
302
+ this.isLoading = true;
303
+ this.isEmriBarkoduGecerliMi = false;
304
+ const productionOrderLines = this.productionOrderList.ProductionOrderLines.map(productionLine => {
305
+ return new ProductionOrderLine$1(productionLine.ItemCode, productionLine.WarehouseCode, productionLine.Quantity, productionLine.Quantity, productionLine.Quantity, '', productionLine.BaseEntry, 0, [new BatchNumber$1(productionLine.BatchNumber, productionLine.Quantity)]);
306
+ });
307
+ this.productionOrderPatch = new ProductionOrderPatchDto(productionOrderLines);
308
+ this.service.patch(this.productionOrderPatch).subscribe({
309
+ next: result => {
310
+ if (result.isSuccessful) {
311
+ this.confirmation.success('', 'İşlem başarılı!', this.options).subscribe(() => {
312
+ });
313
+ }
314
+ },
315
+ });
316
+ this.clearAll();
317
+ this.isLoading = false;
318
+ }
319
+ clearAll() {
320
+ this.isEmriBarkoduGecerliMi = false;
321
+ this.searcheBasildiMi = false;
322
+ this.qrOkutulduMu = false;
323
+ this.productionOrderPatch = null;
324
+ this.isEmriBarkodu = null;
325
+ this.hammaddeQR = '';
326
+ this.productionOrder = null;
327
+ this.unitOfMeasure = null;
328
+ this.ngZone.run(() => {
329
+ setTimeout(() => {
330
+ this.nmbBoxBarkodNumarasi.instance.focus();
331
+ }, 0);
332
+ });
333
+ }
334
+ getWarehouses() {
335
+ this.isLoading = true;
336
+ this.service.getWarehouses().subscribe(result => {
337
+ if (result.items) {
338
+ this.warehouses = result.items.slice();
339
+ }
340
+ });
341
+ this.isLoading = false;
342
+ }
343
+ }
344
+ HitProductionOrdersComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitProductionOrdersComponent, deps: [{ token: i0.NgZone }, { token: i1.ListService }, { token: i1.TrackByService }, { token: HitProductionOrdersService }, { token: i3.ConfirmationService }, { token: i4.FormBuilder }, { token: HitProductionOrdersService }], target: i0.ɵɵFactoryTarget.Component });
345
+ HitProductionOrdersComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: HitProductionOrdersComponent, selector: "lib-hit-production-orders", providers: [ListService, { provide: NgbDateAdapter, useClass: DateAdapter }], viewQueries: [{ propertyName: "nmbBoxBarkodNumarasi", first: true, predicate: ["barkodNumarasiRef"], descendants: true }, { propertyName: "nmbBoxHammaddeQR", first: true, predicate: ["hammaddeQRRef"], descendants: true }], ngImport: i0, template: "<abp-page [breadcrumb]=\"false\">\r\n <abp-page-toolbar-container class=\"col\">\r\n <div class=\"row\">\r\n <h3 class=\"page-title\">\r\n {{ 'UretimYonetimi::ProductionOrders' | abpLocalization }}\r\n </h3>\r\n </div>\r\n <div class=\"row text-lg-end pt-2\">\r\n <div class=\"col-8\">\r\n <button class=\"btn btn-success btn-sm\" type=\"button\" (click)=\"patchProductionOrder()\"\r\n [disabled]=\"!isEmriBarkoduGecerliMi\">\r\n <i class=\"fa fa-plus me-1\"></i>\r\n {{ 'UretimYonetimi::ProductionOrders.Create' | abpLocalization }}\r\n </button>\r\n </div>\r\n <div class=\"col-4\">\r\n <button class=\"btn btn-warning btn-sm\" type=\"button\" (click)=\"clearAll()\">\r\n <i class=\"fa fa-broom me-1\"></i>\r\n {{ 'UretimYonetimi::ProductionOrders.Clean' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </abp-page-toolbar-container>\r\n <div class=\"card mt-2\">\r\n <div class=\"card-body\">\r\n <div style=\"display: flex; align-items: center;\">\r\n <dx-number-box #barkodNumarasiRef class=\"me-1\" style=\"width:100%;\"\r\n [label]=\"'UretimYonetimi::ProductionOrders.WorkOrderNo' | abpLocalization\"\r\n [(value)]=\"isEmriBarkodu\" (onEnterKey)=\"getProductionOrderDetails()\"\r\n [disabled]=\"searcheBasildiMi || isEmriBarkoduGecerliMi\">\r\n </dx-number-box>\r\n <dx-button style=\"margin-top: 7.5px;\" icon=\"search\" type=\"default\" (onClick)=\"getProductionOrderDetails()\"\r\n [disabled]=\"searcheBasildiMi || isEmriBarkoduGecerliMi\">\r\n </dx-button>\r\n </div>\r\n <div class=\"mt-3\" *ngIf=\"isEmriBarkoduGecerliMi\">\r\n <dx-text-box style=\"width:100%;\"\r\n [label]=\"'UretimYonetimi::ProductionOrders.WorkOrderName' | abpLocalization\"\r\n [(value)]=\"productionOrder.productDescription\"\r\n [disabled]=\"true\">\r\n </dx-text-box>\r\n <dx-number-box style=\"width:100%;\"\r\n [label]=\"'UretimYonetimi::ProductionOrders.PlannedQty' | abpLocalization\"\r\n format=\"#,##0.00\"\r\n [(value)]=\"productionOrder.plannedQuantity\"\r\n [disabled]=\"true\">\r\n </dx-number-box>\r\n <div style=\"display: flex; align-items: center;\">\r\n <dx-text-box #hammaddeQRRef style=\"width:100%;\" class=\"me-1\"\r\n [label]=\"'UretimYonetimi::ProductionOrders.QrBarcode' | abpLocalization\"\r\n [maxLength]=\"256\"\r\n [(value)]=\"hammaddeQR\" (onEnterKey)=\"parseAndAddQR()\"\r\n [placeholder]=\"'UretimYonetimi::ProductionOrders.QrBarcode.Placeholder' | abpLocalization\"\r\n [disabled]=\"qrOkutulduMu\">\r\n </dx-text-box>\r\n <dx-button style=\"margin-top: 7.5px;\" icon=\"plus\" type=\"default\" (onClick)=\"parseAndAddQR()\"\r\n [disabled]=\"qrOkutulduMu\">\r\n </dx-button>\r\n </div>\r\n\r\n <div *ngIf=\"productionOrderList.ProductionOrderLines?.length\" class=\"mt-3\">\r\n <dx-data-grid [dataSource]=\"productionOrderList.ProductionOrderLines\" [showBorders]=\"true\"\r\n [columnAutoWidth]=\"true\" (onRowRemoved)=\"qrOkutulduMu=false\">\r\n <dxo-editing mode=\"row\" [allowUpdating]=\"true\" [allowDeleting]=\"true\" [useIcons]=\"true\">\r\n </dxo-editing>\r\n <dxi-column dataField=\"ItemName\" [caption]=\"'UretimYonetimi::ProductionOrders.ItemName' | abpLocalization\" [allowEditing]=\"false\"></dxi-column>\r\n <dxi-column dataField=\"Quantity\" [caption]=\"'UretimYonetimi::ProductionOrders.Quantity' | abpLocalization\" dataType=\"number\" [format]=\"'#0.00 kg'\"></dxi-column>\r\n <dxi-column dataField=\"WarehouseCode\" [caption]=\"'UretimYonetimi::ProductionOrders.Warehouse' | abpLocalization\" [width]=\"150\" [allowSorting]=\"false\">\r\n <dxo-lookup [dataSource]=\"warehouses\" displayExpr=\"whsName\" valueExpr=\"whsCode\">\r\n </dxo-lookup>\r\n </dxi-column>\r\n <dxi-column dataField=\"ItemCode\" [caption]=\"'UretimYonetimi::ProductionOrders.ItemCode' | abpLocalization\" [allowEditing]=\"false\"></dxi-column>\r\n <dxi-column dataField=\"BatchNumber\" [caption]=\"'UretimYonetimi::ProductionOrders.BatchNumber' | abpLocalization\" [allowEditing]=\"false\"></dxi-column>\r\n </dx-data-grid>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</abp-page>\r\n", dependencies: [{ kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i7.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: i7.PageToolbarContainerComponent, selector: "abp-page-toolbar-container" }, { kind: "component", type: i8.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: i8.DxButtonComponent, selector: "dx-button", inputs: ["accessKey", "activeStateEnabled", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "icon", "rtlEnabled", "stylingMode", "tabIndex", "template", "text", "type", "useSubmitBehavior", "validationGroup", "visible", "width"], outputs: ["onClick", "onContentReady", "onDisposing", "onInitialized", "onOptionChanged", "accessKeyChange", "activeStateEnabledChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "iconChange", "rtlEnabledChange", "stylingModeChange", "tabIndexChange", "templateChange", "textChange", "typeChange", "useSubmitBehaviorChange", "validationGroupChange", "visibleChange", "widthChange"] }, { kind: "component", type: i8.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: i8$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: i8$1.DxoLookupComponent, selector: "dxo-lookup", inputs: ["allowClearing", "calculateCellValue", "dataSource", "displayExpr", "valueExpr"] }, { kind: "component", type: i8$1.DxoEditingComponent, selector: "dxo-editing", inputs: ["allowAdding", "allowDeleting", "allowUpdating", "changes", "confirmDelete", "editColumnName", "editRowKey", "form", "mode", "newRowPosition", "popup", "refreshMode", "selectTextOnEditStart", "startEditAction", "texts", "useIcons", "allowAddShape", "allowChangeConnection", "allowChangeConnectorPoints", "allowChangeConnectorText", "allowChangeShapeText", "allowDeleteConnector", "allowDeleteShape", "allowMoveShape", "allowResizeShape", "allowDependencyAdding", "allowDependencyDeleting", "allowResourceAdding", "allowResourceDeleting", "allowResourceUpdating", "allowTaskAdding", "allowTaskDeleting", "allowTaskResourceUpdating", "allowTaskUpdating", "enabled", "allowDragging", "allowResizing", "allowTimeZoneEditing"], outputs: ["changesChange", "editColumnNameChange", "editRowKeyChange"] }, { kind: "component", type: i8.DxNumberBoxComponent, selector: "dx-number-box", inputs: ["accessKey", "activeStateEnabled", "buttons", "disabled", "elementAttr", "focusStateEnabled", "format", "height", "hint", "hoverStateEnabled", "inputAttr", "invalidValueMessage", "isValid", "label", "labelMode", "max", "min", "mode", "name", "placeholder", "readOnly", "rtlEnabled", "showClearButton", "showSpinButtons", "step", "stylingMode", "tabIndex", "text", "useLargeSpinButtons", "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", "formatChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "invalidValueMessageChange", "isValidChange", "labelChange", "labelModeChange", "maxChange", "minChange", "modeChange", "nameChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "showClearButtonChange", "showSpinButtonsChange", "stepChange", "stylingModeChange", "tabIndexChange", "textChange", "useLargeSpinButtonsChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }], changeDetection: i0.ChangeDetectionStrategy.Default });
346
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitProductionOrdersComponent, decorators: [{
347
+ type: Component,
348
+ args: [{ selector: 'lib-hit-production-orders', changeDetection: ChangeDetectionStrategy.Default, providers: [ListService, { provide: NgbDateAdapter, useClass: DateAdapter }], template: "<abp-page [breadcrumb]=\"false\">\r\n <abp-page-toolbar-container class=\"col\">\r\n <div class=\"row\">\r\n <h3 class=\"page-title\">\r\n {{ 'UretimYonetimi::ProductionOrders' | abpLocalization }}\r\n </h3>\r\n </div>\r\n <div class=\"row text-lg-end pt-2\">\r\n <div class=\"col-8\">\r\n <button class=\"btn btn-success btn-sm\" type=\"button\" (click)=\"patchProductionOrder()\"\r\n [disabled]=\"!isEmriBarkoduGecerliMi\">\r\n <i class=\"fa fa-plus me-1\"></i>\r\n {{ 'UretimYonetimi::ProductionOrders.Create' | abpLocalization }}\r\n </button>\r\n </div>\r\n <div class=\"col-4\">\r\n <button class=\"btn btn-warning btn-sm\" type=\"button\" (click)=\"clearAll()\">\r\n <i class=\"fa fa-broom me-1\"></i>\r\n {{ 'UretimYonetimi::ProductionOrders.Clean' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </abp-page-toolbar-container>\r\n <div class=\"card mt-2\">\r\n <div class=\"card-body\">\r\n <div style=\"display: flex; align-items: center;\">\r\n <dx-number-box #barkodNumarasiRef class=\"me-1\" style=\"width:100%;\"\r\n [label]=\"'UretimYonetimi::ProductionOrders.WorkOrderNo' | abpLocalization\"\r\n [(value)]=\"isEmriBarkodu\" (onEnterKey)=\"getProductionOrderDetails()\"\r\n [disabled]=\"searcheBasildiMi || isEmriBarkoduGecerliMi\">\r\n </dx-number-box>\r\n <dx-button style=\"margin-top: 7.5px;\" icon=\"search\" type=\"default\" (onClick)=\"getProductionOrderDetails()\"\r\n [disabled]=\"searcheBasildiMi || isEmriBarkoduGecerliMi\">\r\n </dx-button>\r\n </div>\r\n <div class=\"mt-3\" *ngIf=\"isEmriBarkoduGecerliMi\">\r\n <dx-text-box style=\"width:100%;\"\r\n [label]=\"'UretimYonetimi::ProductionOrders.WorkOrderName' | abpLocalization\"\r\n [(value)]=\"productionOrder.productDescription\"\r\n [disabled]=\"true\">\r\n </dx-text-box>\r\n <dx-number-box style=\"width:100%;\"\r\n [label]=\"'UretimYonetimi::ProductionOrders.PlannedQty' | abpLocalization\"\r\n format=\"#,##0.00\"\r\n [(value)]=\"productionOrder.plannedQuantity\"\r\n [disabled]=\"true\">\r\n </dx-number-box>\r\n <div style=\"display: flex; align-items: center;\">\r\n <dx-text-box #hammaddeQRRef style=\"width:100%;\" class=\"me-1\"\r\n [label]=\"'UretimYonetimi::ProductionOrders.QrBarcode' | abpLocalization\"\r\n [maxLength]=\"256\"\r\n [(value)]=\"hammaddeQR\" (onEnterKey)=\"parseAndAddQR()\"\r\n [placeholder]=\"'UretimYonetimi::ProductionOrders.QrBarcode.Placeholder' | abpLocalization\"\r\n [disabled]=\"qrOkutulduMu\">\r\n </dx-text-box>\r\n <dx-button style=\"margin-top: 7.5px;\" icon=\"plus\" type=\"default\" (onClick)=\"parseAndAddQR()\"\r\n [disabled]=\"qrOkutulduMu\">\r\n </dx-button>\r\n </div>\r\n\r\n <div *ngIf=\"productionOrderList.ProductionOrderLines?.length\" class=\"mt-3\">\r\n <dx-data-grid [dataSource]=\"productionOrderList.ProductionOrderLines\" [showBorders]=\"true\"\r\n [columnAutoWidth]=\"true\" (onRowRemoved)=\"qrOkutulduMu=false\">\r\n <dxo-editing mode=\"row\" [allowUpdating]=\"true\" [allowDeleting]=\"true\" [useIcons]=\"true\">\r\n </dxo-editing>\r\n <dxi-column dataField=\"ItemName\" [caption]=\"'UretimYonetimi::ProductionOrders.ItemName' | abpLocalization\" [allowEditing]=\"false\"></dxi-column>\r\n <dxi-column dataField=\"Quantity\" [caption]=\"'UretimYonetimi::ProductionOrders.Quantity' | abpLocalization\" dataType=\"number\" [format]=\"'#0.00 kg'\"></dxi-column>\r\n <dxi-column dataField=\"WarehouseCode\" [caption]=\"'UretimYonetimi::ProductionOrders.Warehouse' | abpLocalization\" [width]=\"150\" [allowSorting]=\"false\">\r\n <dxo-lookup [dataSource]=\"warehouses\" displayExpr=\"whsName\" valueExpr=\"whsCode\">\r\n </dxo-lookup>\r\n </dxi-column>\r\n <dxi-column dataField=\"ItemCode\" [caption]=\"'UretimYonetimi::ProductionOrders.ItemCode' | abpLocalization\" [allowEditing]=\"false\"></dxi-column>\r\n <dxi-column dataField=\"BatchNumber\" [caption]=\"'UretimYonetimi::ProductionOrders.BatchNumber' | abpLocalization\" [allowEditing]=\"false\"></dxi-column>\r\n </dx-data-grid>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</abp-page>\r\n" }]
349
+ }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i1.ListService }, { type: i1.TrackByService }, { type: HitProductionOrdersService }, { type: i3.ConfirmationService }, { type: i4.FormBuilder }, { type: HitProductionOrdersService }]; }, propDecorators: { nmbBoxBarkodNumarasi: [{
350
+ type: ViewChild,
351
+ args: ['barkodNumarasiRef', { static: false }]
352
+ }], nmbBoxHammaddeQR: [{
353
+ type: ViewChild,
354
+ args: ['hammaddeQRRef', { static: false }]
355
+ }] } });
356
+
357
+ const routes$4 = [
358
+ {
359
+ path: '',
360
+ component: HitProductionOrdersComponent,
361
+ canActivate: [AuthGuard, PermissionGuard],
362
+ },
363
+ ];
364
+ class HitProductionOrdersRoutingModule {
365
+ }
366
+ HitProductionOrdersRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitProductionOrdersRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
367
+ HitProductionOrdersRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitProductionOrdersRoutingModule, imports: [i1$1.RouterModule], exports: [RouterModule] });
368
+ HitProductionOrdersRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitProductionOrdersRoutingModule, imports: [RouterModule.forChild(routes$4), RouterModule] });
369
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitProductionOrdersRoutingModule, decorators: [{
370
+ type: NgModule,
371
+ args: [{
372
+ imports: [RouterModule.forChild(routes$4)],
373
+ exports: [RouterModule],
374
+ }]
375
+ }] });
376
+
377
+ class HitProductionOrderModule {
378
+ }
379
+ HitProductionOrderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitProductionOrderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
380
+ HitProductionOrderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitProductionOrderModule, declarations: [HitProductionOrdersComponent], imports: [HitProductionOrdersRoutingModule,
381
+ CoreModule,
382
+ ThemeSharedModule,
383
+ CommercialUiModule,
384
+ NgxValidateCoreModule,
385
+ NgbCollapseModule,
386
+ NgbDatepickerModule,
387
+ NgbDropdownModule,
388
+ PageModule,
389
+ DxTextBoxModule,
390
+ DxButtonModule,
391
+ DxDataGridModule,
392
+ DxNumberBoxModule] });
393
+ HitProductionOrderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitProductionOrderModule, imports: [HitProductionOrdersRoutingModule,
394
+ CoreModule,
395
+ ThemeSharedModule,
396
+ CommercialUiModule,
397
+ NgxValidateCoreModule,
398
+ NgbCollapseModule,
399
+ NgbDatepickerModule,
400
+ NgbDropdownModule,
401
+ PageModule,
402
+ DxTextBoxModule,
403
+ DxButtonModule,
404
+ DxDataGridModule,
405
+ DxNumberBoxModule] });
406
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitProductionOrderModule, decorators: [{
407
+ type: NgModule,
408
+ args: [{
409
+ declarations: [HitProductionOrdersComponent],
410
+ imports: [
411
+ HitProductionOrdersRoutingModule,
412
+ CoreModule,
413
+ ThemeSharedModule,
414
+ CommercialUiModule,
415
+ NgxValidateCoreModule,
416
+ NgbCollapseModule,
417
+ NgbDatepickerModule,
418
+ NgbDropdownModule,
419
+ PageModule,
420
+ DxTextBoxModule,
421
+ DxButtonModule,
422
+ DxDataGridModule,
423
+ DxNumberBoxModule
424
+ ],
425
+ }]
426
+ }] });
427
+ function loadHitProductionOrdersAsChild() {
428
+ return Promise.resolve(HitProductionOrderModule);
429
+ }
430
+
431
+ class GetProductionOrderDto {
432
+ }
433
+ class ReceiptFromProductionsPostDto {
434
+ constructor() {
435
+ this.documentLines = [];
436
+ }
437
+ }
438
+ class ReceiptFromProductionsLines {
439
+ constructor() {
440
+ this.batchNumbers = [];
441
+ }
442
+ }
443
+ class ReceiptFromProductionsBatchNumbers {
444
+ }
445
+ class ProductionOrderLine {
446
+ constructor() {
447
+ this.quantity = 0;
448
+ }
449
+ }
450
+
451
+ class DevexpressRestService {
452
+ constructor(envService, toaster) {
453
+ this.envService = envService;
454
+ this.toaster = toaster;
455
+ this.localizationKey = 'tr';
456
+ this.createStore = (options) => AspNetData.createStore({
457
+ key: options.key,
458
+ loadParams: options.params,
459
+ loadUrl: `${this.envService.getEnvironment().apis.eDonusum.url + '/' + options.loadUrl}`,
460
+ insertUrl: `${this.envService.getEnvironment().apis.eDonusum.url + '/' + options.insertUrl}`,
461
+ insertMethod: 'POST',
462
+ updateUrl: `${this.envService.getEnvironment().apis.eDonusum.url + '/' + options.updateUrl}`,
463
+ updateMethod: 'PUT',
464
+ deleteUrl: `${this.envService.getEnvironment().apis.eDonusum.url + '/' + options.deleteUrl}`,
465
+ deleteMethod: 'DELETE',
466
+ onLoading(loadOptions) {
467
+ },
468
+ onBeforeSend(operation, ajaxSettings) {
469
+ let languages = {};
470
+ languages = JSON.parse(localStorage.getItem('abpSession'));
471
+ if (operation === "insert" || operation === "update" || operation === "delete") {
472
+ console.log(ajaxSettings);
473
+ if (operation == "delete") {
474
+ ajaxSettings.url = ajaxSettings.url + "/" + localStorage.getItem("appointment-deleted-id");
475
+ }
476
+ ajaxSettings.contentType = "application/json";
477
+ ajaxSettings.data = ajaxSettings.data.values;
478
+ }
479
+ ajaxSettings.headers = {
480
+ Authorization: 'Bearer ' + localStorage.getItem('access_token'),
481
+ 'Accept-Language': languages.language
482
+ };
483
+ }, onAjaxError: this.onAjaxError
484
+ });
485
+ }
486
+ onAjaxError(e) {
487
+ let jsonObj = e.xhr.responseJSON || JSON.parse(e.xhr.responseText);
488
+ e.error = jsonObj ? ` ${jsonObj.error.message} : ${jsonObj.error.details}` : 'null text';
489
+ }
490
+ }
491
+ DevexpressRestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DevexpressRestService, deps: [{ token: i1.EnvironmentService }, { token: i3.ToasterService }], target: i0.ɵɵFactoryTarget.Injectable });
492
+ DevexpressRestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DevexpressRestService, providedIn: 'root' });
493
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DevexpressRestService, decorators: [{
494
+ type: Injectable,
495
+ args: [{
496
+ providedIn: 'root'
497
+ }]
498
+ }], ctorParameters: function () { return [{ type: i1.EnvironmentService }, { type: i3.ToasterService }]; } });
499
+
500
+ class HitReceiptFromProductionsService {
501
+ constructor(restService, devexService) {
502
+ this.restService = restService;
503
+ this.devexService = devexService;
504
+ this.apiName = 'UretimYonetimi';
505
+ this.create = (input) => this.restService.request({
506
+ method: 'POST',
507
+ url: `${this.resourceEndpoint}`,
508
+ body: input,
509
+ }, { apiName: this.apiName });
510
+ this.getBarcodeInfo = (productionOrderId, receiptId, barcodeNumber) => this.restService.request({
511
+ method: 'POST',
512
+ url: `/api/uretim-yonetimi/create-barcodes/get-barcode?productionOrderId=${productionOrderId}&receiptId=${receiptId}&barcodeNumber=${barcodeNumber}`,
513
+ }, { apiName: this.apiName });
514
+ this.resourceEndpoint = '/api/uretim-yonetimi/receipt-from-productions';
515
+ }
516
+ }
517
+ HitReceiptFromProductionsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitReceiptFromProductionsService, deps: [{ token: i1.RestService }, { token: DevexpressRestService }], target: i0.ɵɵFactoryTarget.Injectable });
518
+ HitReceiptFromProductionsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitReceiptFromProductionsService, providedIn: 'root' });
519
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitReceiptFromProductionsService, decorators: [{
520
+ type: Injectable,
521
+ args: [{
522
+ providedIn: 'root',
523
+ }]
524
+ }], ctorParameters: function () { return [{ type: i1.RestService }, { type: DevexpressRestService }]; } });
525
+
526
+ class HitReceiptFromProductionsComponent {
527
+ constructor(ngZone, list, track, service, confirmation, productionOrdersService, sanitizer) {
528
+ this.ngZone = ngZone;
529
+ this.list = list;
530
+ this.track = track;
531
+ this.service = service;
532
+ this.confirmation = confirmation;
533
+ this.productionOrdersService = productionOrdersService;
534
+ this.sanitizer = sanitizer;
535
+ this.HitHelper = HitHelper;
536
+ this.isLoading = false;
537
+ this.options = {
538
+ hideYesBtn: true,
539
+ cancelText: 'Kapat',
540
+ dismissible: false,
541
+ };
542
+ this.isProductionOrderValid = false;
543
+ this.searcheBasildiMi = false;
544
+ this.showModal = false;
545
+ this.pdfSrc = null;
546
+ this.productionOrder = new GetProductionOrderDto();
547
+ this.receiptFromProductionsPostDtoQuantity = 0;
548
+ this.receiptFromProductionsPostDto = new ReceiptFromProductionsPostDto();
549
+ this.receiptFromProductionsPostDtoDocumentLine = new ReceiptFromProductionsLines();
550
+ this.receiptFromProductionsPostDtoBatchNumber = new ReceiptFromProductionsBatchNumbers();
551
+ this.warehouses = [];
552
+ }
553
+ ngOnInit() {
554
+ this.clearAll();
555
+ this.getWarehouses();
556
+ }
557
+ ngAfterViewInit() {
558
+ this.focusOnBarkodNumarasi();
559
+ }
560
+ generateReport() {
561
+ this.service
562
+ .getBarcodeInfo(this.isEmriNumarasiForBarcode, this.newRecordDocEntry, 1)
563
+ .subscribe({
564
+ next: response => {
565
+ const base64Data = response.base64; // base64 string (sadece veri kısmı, "data:application/pdf;base64,..." değilse)
566
+ // Base64'ü decode edip binary veriye çeviriyoruz
567
+ const byteCharacters = atob(base64Data);
568
+ const byteNumbers = new Array(byteCharacters.length);
569
+ for (let i = 0; i < byteCharacters.length; i++) {
570
+ byteNumbers[i] = byteCharacters.charCodeAt(i);
571
+ }
572
+ const byteArray = new Uint8Array(byteNumbers);
573
+ // Blob oluşturuyoruz
574
+ const blob = new Blob([byteArray], { type: 'application/pdf' });
575
+ // Blob'tan URL oluşturup yeni sekmede açıyoruz (veya download edebilirsin)
576
+ this.blobUrl = URL.createObjectURL(blob);
577
+ this.pdfSrc = this.bypassAndSanitize(this.blobUrl);
578
+ },
579
+ });
580
+ }
581
+ bypassAndSanitize(url) {
582
+ return this.sanitizer.bypassSecurityTrustResourceUrl(url);
583
+ }
584
+ downloadPdf(blobUrl) {
585
+ const a = document.createElement('a');
586
+ a.href = blobUrl;
587
+ const parts = blobUrl.split('/');
588
+ const lastPart = parts.pop(); // "myfile.pdf"
589
+ a.download = lastPart + '.pdf'; // Kaydedilecek dosya adı
590
+ a.style.display = 'none';
591
+ // iOS'ta desteklenmesi için target=_blank eklenebilir
592
+ a.target = '_blank';
593
+ // DOM'a ekleyip tıklat
594
+ document.body.appendChild(a);
595
+ a.click();
596
+ document.body.removeChild(a);
597
+ }
598
+ async getProductionOrder() {
599
+ this.clearForm();
600
+ this.isLoading = true;
601
+ this.searcheBasildiMi = true;
602
+ this.productionOrdersService.get(this.barkodNumarasi).subscribe({
603
+ next: result => {
604
+ if (result.isSuccessful) {
605
+ this.productionOrder = result.items;
606
+ this.receiptFromProductionsPostDtoQuantity =
607
+ result.items.plannedQuantity - result.items.completedQuantity;
608
+ this.receiptFromProductionsPostDtoDocumentLine.baseEntry = this.barkodNumarasi;
609
+ this.receiptFromProductionsPostDtoDocumentLine.baseType = 202;
610
+ this.receiptFromProductionsPostDtoDocumentLine.quantity =
611
+ this.receiptFromProductionsPostDtoQuantity;
612
+ this.receiptFromProductionsPostDtoDocumentLine.warehouseCode = result.items.warehouse;
613
+ this.receiptFromProductionsPostDtoBatchNumber.batchNumber = result.items.u_trkBatch;
614
+ this.receiptFromProductionsPostDtoBatchNumber.quantity =
615
+ this.receiptFromProductionsPostDtoQuantity;
616
+ this.unitOfMeasure = result.items.unitOfMeasurement;
617
+ this.isProductionOrderValid = true;
618
+ this.focusOnToplananMiktar();
619
+ }
620
+ else {
621
+ if (result?.isSuccessful == false) {
622
+ this.confirmation.status$.subscribe({
623
+ next: () => {
624
+ this.clearAll();
625
+ },
626
+ });
627
+ }
628
+ }
629
+ },
630
+ });
631
+ this.isLoading = false;
632
+ }
633
+ async postReceiptFromProductions() {
634
+ this.isLoading = true;
635
+ this.isProductionOrderValid = false;
636
+ this.receiptFromProductionsPostDtoDocumentLine.batchNumbers = [
637
+ this.receiptFromProductionsPostDtoBatchNumber,
638
+ ];
639
+ this.receiptFromProductionsPostDto.documentLines = [
640
+ this.receiptFromProductionsPostDtoDocumentLine,
641
+ ];
642
+ this.service.create(this.receiptFromProductionsPostDto).subscribe({
643
+ next: result => {
644
+ if (result.isSuccessful) {
645
+ this.confirmation.success('İşlem Başarılı', '', this.options).subscribe(() => {
646
+ this.newRecordDocEntry = result.items.docEntry;
647
+ this.isEmriNumarasiForBarcode = this.barkodNumarasi;
648
+ this.showModal = true;
649
+ this.clearAll();
650
+ });
651
+ }
652
+ else {
653
+ this.confirmation.status$.subscribe(() => {
654
+ this.focusOnToplananMiktar();
655
+ });
656
+ }
657
+ },
658
+ error: () => {
659
+ this.confirmation.status$.subscribe(() => {
660
+ this.clearAll();
661
+ this.focusOnToplananMiktar();
662
+ });
663
+ },
664
+ });
665
+ this.isLoading = false;
666
+ }
667
+ clearAll() {
668
+ this.barkodNumarasi = null;
669
+ this.clearForm();
670
+ }
671
+ clearForm() {
672
+ this.productionOrder = new GetProductionOrderDto();
673
+ this.receiptFromProductionsPostDto = new ReceiptFromProductionsPostDto();
674
+ this.receiptFromProductionsPostDtoDocumentLine = new ReceiptFromProductionsLines();
675
+ this.receiptFromProductionsPostDtoBatchNumber = new ReceiptFromProductionsBatchNumbers();
676
+ this.unitOfMeasure = null;
677
+ this.isProductionOrderValid = false;
678
+ this.searcheBasildiMi = false;
679
+ this.focusOnBarkodNumarasi();
680
+ }
681
+ async getWarehouses() {
682
+ this.isLoading = true;
683
+ this.productionOrdersService.getWarehouses().subscribe({
684
+ next: result => {
685
+ if (result.items) {
686
+ this.warehouses = result.items.slice();
687
+ }
688
+ },
689
+ });
690
+ this.isLoading = false;
691
+ }
692
+ focusOnBarkodNumarasi() {
693
+ this.ngZone.run(() => {
694
+ setTimeout(() => {
695
+ this.nmbBoxBarkodNumarasi.instance.focus();
696
+ }, 0);
697
+ });
698
+ }
699
+ focusOnToplananMiktar() {
700
+ this.ngZone.run(() => {
701
+ setTimeout(() => {
702
+ this.nmbBoxToplananMiktar.instance.focus();
703
+ }, 0);
704
+ });
705
+ }
706
+ getWarehouseName(code) {
707
+ const match = this.warehouses.find(x => x.whsCode === code);
708
+ return match ? match.whsName : '';
709
+ }
710
+ quantityChanged(e) {
711
+ this.receiptFromProductionsPostDtoBatchNumber.quantity = e.value;
712
+ this.receiptFromProductionsPostDtoDocumentLine.quantity = e.value;
713
+ }
714
+ }
715
+ HitReceiptFromProductionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitReceiptFromProductionsComponent, deps: [{ token: i0.NgZone }, { token: i1.ListService }, { token: i1.TrackByService }, { token: HitReceiptFromProductionsService }, { token: i3.ConfirmationService }, { token: HitProductionOrdersService }, { token: i5.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
716
+ HitReceiptFromProductionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: HitReceiptFromProductionsComponent, selector: "lib-hit-receipt-from-productions", providers: [ListService, { provide: NgbDateAdapter, useClass: DateAdapter }], viewQueries: [{ propertyName: "nmbBoxBarkodNumarasi", first: true, predicate: ["barkodNumarasiRef"], descendants: true }, { propertyName: "nmbBoxToplananMiktar", first: true, predicate: ["toplananMiktarRef"], descendants: true }], ngImport: i0, template: "<abp-page [breadcrumb]=\"false\" style=\"padding: 0;\">\r\n <abp-page-toolbar-container class=\"col\">\r\n <div class=\"row\">\r\n <h3 class=\"page-title\">\r\n {{ 'UretimYonetimi::ReceiptFromProductions.Title' | abpLocalization }}\r\n </h3>\r\n </div>\r\n <div class=\"row text-lg-end pt-2\">\r\n <div class=\"col-8\">\r\n <button class=\"btn btn-success btn-sm\" type=\"button\"\r\n (click)=\"postReceiptFromProductions()\"\r\n [disabled]=\"!isProductionOrderValid\">\r\n <i class=\"fa fa-plus me-1\" aria-hidden=\"true\"></i>\r\n {{ 'UretimYonetimi::ReceiptFromProductions.Create' | abpLocalization }}\r\n </button>\r\n </div>\r\n <div class=\"col-4\">\r\n <button class=\"btn btn-warning btn-sm\" type=\"button\" (click)=\"clearAll()\">\r\n <i class=\"fa fa-broom me-1\" aria-hidden=\"true\"></i>\r\n {{ 'UretimYonetimi::ReceiptFromProductions.Clean' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </abp-page-toolbar-container>\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <div style=\"display: flex; align-items: center;\">\r\n <dx-number-box class=\"me-1 w-100\"\r\n #barkodNumarasiRef\r\n [label]=\"'UretimYonetimi::ReceiptFromProductions.WorkOrderNo' | abpLocalization\"\r\n [(value)]=\"barkodNumarasi\"\r\n (onChange)=\"getProductionOrder()\"\r\n (onEnterKey)=\"getProductionOrder()\"\r\n [disabled]=\"searcheBasildiMi || isProductionOrderValid\">\r\n </dx-number-box>\r\n <dx-button style=\"margin-top: 7.5px;\" icon=\"search\" type=\"default\"\r\n (onClick)=\"getProductionOrder()\"\r\n [disabled]=\"searcheBasildiMi || isProductionOrderValid\">\r\n </dx-button>\r\n </div>\r\n <div *ngIf=\"isProductionOrderValid\">\r\n <dx-text-box [label]=\"'UretimYonetimi::ReceiptFromProductions.StokCode' | abpLocalization\"\r\n [(value)]=\"productionOrder.itemNo\"\r\n [disabled]=\"true\">\r\n </dx-text-box>\r\n\r\n <dx-text-box [label]=\"'UretimYonetimi::ReceiptFromProductions.StokDesc' | abpLocalization\"\r\n [(value)]=\"productionOrder.productDescription\"\r\n [maxLength]=\"128\" [disabled]=\"true\">\r\n </dx-text-box>\r\n\r\n <dx-text-box [label]=\"'UretimYonetimi::ReceiptFromProductions.ToWhs' | abpLocalization\" [maxLength]=\"128\"\r\n [value]=\"getWarehouseName(receiptFromProductionsPostDtoDocumentLine.warehouseCode)\"\r\n [disabled]=\"true\">\r\n </dx-text-box>\r\n\r\n <dx-text-box [label]=\"'UretimYonetimi::ReceiptFromProductions.BatchNumber' | abpLocalization\"\r\n [(value)]=\"receiptFromProductionsPostDtoBatchNumber.batchNumber\"\r\n [maxLength]=\"128\" [disabled]=\"true\">\r\n </dx-text-box>\r\n\r\n <dx-number-box [label]=\"'UretimYonetimi::ReceiptFromProductions.PlannedQty' | abpLocalization\"\r\n [(value)]=\"productionOrder.plannedQuantity\"\r\n [format]=\"HitHelper.getMeasurementFormatted(unitOfMeasure)\"\r\n [disabled]=\"true\">\r\n </dx-number-box>\r\n\r\n <dx-number-box [label]=\"'UretimYonetimi::ReceiptFromProductions.CompletedQty' | abpLocalization\"\r\n [(value)]=\"productionOrder.completedQuantity\"\r\n [format]=\"HitHelper.getMeasurementFormatted(unitOfMeasure)\"\r\n [disabled]=\"true\">\r\n </dx-number-box>\r\n\r\n <dx-number-box [label]=\"'UretimYonetimi::ReceiptFromProductions.Quantity' | abpLocalization\"\r\n [(value)]=\"receiptFromProductionsPostDtoBatchNumber.quantity\"\r\n (onValueChanged)=\"quantityChanged($event)\"\r\n [format]=\"HitHelper.getMeasurementFormatted(unitOfMeasure)\"\r\n [showSpinButtons]=\"true\" [min]=\"0\" #toplananMiktarRef>\r\n </dx-number-box>\r\n </div>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"showModal\" (appear)=\"generateReport()\" (disappear)=\"clearAll()\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'UretimYonetimi::CreateBarcodes.BarcodePreview' | abpLocalization }}</h3>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <iframe *ngIf=\"pdfSrc\" [src]=\"pdfSrc\" width=\"100%\" height=\"300\"\r\n webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>\r\n </ng-template>\r\n <ng-template #abpFooter>\r\n <button (click)=\"downloadPdf(blobUrl)\" type=\"button\"\r\n class=\"btn btn-secondary mobilde-gorunur\" abpClose> \u0130ndir\r\n </button>\r\n <button type=\"button\"\r\n class=\"btn btn-secondary\" abpClose> {{ 'UretimYonetimi::CreateBarcodes.Close' | abpLocalization }}\r\n </button>\r\n </ng-template>\r\n</abp-modal>\r\n", styles: [".mobilde-gorunur{display:none}@media (max-width: 768px){.mobilde-gorunur{display:block}}\n"], dependencies: [{ kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i3.ModalCloseDirective, selector: "[abpClose]" }, { kind: "component", type: i7.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: i7.PageToolbarContainerComponent, selector: "abp-page-toolbar-container" }, { kind: "component", type: i8.DxButtonComponent, selector: "dx-button", inputs: ["accessKey", "activeStateEnabled", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "icon", "rtlEnabled", "stylingMode", "tabIndex", "template", "text", "type", "useSubmitBehavior", "validationGroup", "visible", "width"], outputs: ["onClick", "onContentReady", "onDisposing", "onInitialized", "onOptionChanged", "accessKeyChange", "activeStateEnabledChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "iconChange", "rtlEnabledChange", "stylingModeChange", "tabIndexChange", "templateChange", "textChange", "typeChange", "useSubmitBehaviorChange", "validationGroupChange", "visibleChange", "widthChange"] }, { kind: "component", type: i8.DxNumberBoxComponent, selector: "dx-number-box", inputs: ["accessKey", "activeStateEnabled", "buttons", "disabled", "elementAttr", "focusStateEnabled", "format", "height", "hint", "hoverStateEnabled", "inputAttr", "invalidValueMessage", "isValid", "label", "labelMode", "max", "min", "mode", "name", "placeholder", "readOnly", "rtlEnabled", "showClearButton", "showSpinButtons", "step", "stylingMode", "tabIndex", "text", "useLargeSpinButtons", "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", "formatChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "invalidValueMessageChange", "isValidChange", "labelChange", "labelModeChange", "maxChange", "minChange", "modeChange", "nameChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "showClearButtonChange", "showSpinButtonsChange", "stepChange", "stylingModeChange", "tabIndexChange", "textChange", "useLargeSpinButtonsChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "component", type: i8.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" }], changeDetection: i0.ChangeDetectionStrategy.Default });
717
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitReceiptFromProductionsComponent, decorators: [{
718
+ type: Component,
719
+ args: [{ selector: 'lib-hit-receipt-from-productions', changeDetection: ChangeDetectionStrategy.Default, providers: [ListService, { provide: NgbDateAdapter, useClass: DateAdapter }], template: "<abp-page [breadcrumb]=\"false\" style=\"padding: 0;\">\r\n <abp-page-toolbar-container class=\"col\">\r\n <div class=\"row\">\r\n <h3 class=\"page-title\">\r\n {{ 'UretimYonetimi::ReceiptFromProductions.Title' | abpLocalization }}\r\n </h3>\r\n </div>\r\n <div class=\"row text-lg-end pt-2\">\r\n <div class=\"col-8\">\r\n <button class=\"btn btn-success btn-sm\" type=\"button\"\r\n (click)=\"postReceiptFromProductions()\"\r\n [disabled]=\"!isProductionOrderValid\">\r\n <i class=\"fa fa-plus me-1\" aria-hidden=\"true\"></i>\r\n {{ 'UretimYonetimi::ReceiptFromProductions.Create' | abpLocalization }}\r\n </button>\r\n </div>\r\n <div class=\"col-4\">\r\n <button class=\"btn btn-warning btn-sm\" type=\"button\" (click)=\"clearAll()\">\r\n <i class=\"fa fa-broom me-1\" aria-hidden=\"true\"></i>\r\n {{ 'UretimYonetimi::ReceiptFromProductions.Clean' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </abp-page-toolbar-container>\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <div style=\"display: flex; align-items: center;\">\r\n <dx-number-box class=\"me-1 w-100\"\r\n #barkodNumarasiRef\r\n [label]=\"'UretimYonetimi::ReceiptFromProductions.WorkOrderNo' | abpLocalization\"\r\n [(value)]=\"barkodNumarasi\"\r\n (onChange)=\"getProductionOrder()\"\r\n (onEnterKey)=\"getProductionOrder()\"\r\n [disabled]=\"searcheBasildiMi || isProductionOrderValid\">\r\n </dx-number-box>\r\n <dx-button style=\"margin-top: 7.5px;\" icon=\"search\" type=\"default\"\r\n (onClick)=\"getProductionOrder()\"\r\n [disabled]=\"searcheBasildiMi || isProductionOrderValid\">\r\n </dx-button>\r\n </div>\r\n <div *ngIf=\"isProductionOrderValid\">\r\n <dx-text-box [label]=\"'UretimYonetimi::ReceiptFromProductions.StokCode' | abpLocalization\"\r\n [(value)]=\"productionOrder.itemNo\"\r\n [disabled]=\"true\">\r\n </dx-text-box>\r\n\r\n <dx-text-box [label]=\"'UretimYonetimi::ReceiptFromProductions.StokDesc' | abpLocalization\"\r\n [(value)]=\"productionOrder.productDescription\"\r\n [maxLength]=\"128\" [disabled]=\"true\">\r\n </dx-text-box>\r\n\r\n <dx-text-box [label]=\"'UretimYonetimi::ReceiptFromProductions.ToWhs' | abpLocalization\" [maxLength]=\"128\"\r\n [value]=\"getWarehouseName(receiptFromProductionsPostDtoDocumentLine.warehouseCode)\"\r\n [disabled]=\"true\">\r\n </dx-text-box>\r\n\r\n <dx-text-box [label]=\"'UretimYonetimi::ReceiptFromProductions.BatchNumber' | abpLocalization\"\r\n [(value)]=\"receiptFromProductionsPostDtoBatchNumber.batchNumber\"\r\n [maxLength]=\"128\" [disabled]=\"true\">\r\n </dx-text-box>\r\n\r\n <dx-number-box [label]=\"'UretimYonetimi::ReceiptFromProductions.PlannedQty' | abpLocalization\"\r\n [(value)]=\"productionOrder.plannedQuantity\"\r\n [format]=\"HitHelper.getMeasurementFormatted(unitOfMeasure)\"\r\n [disabled]=\"true\">\r\n </dx-number-box>\r\n\r\n <dx-number-box [label]=\"'UretimYonetimi::ReceiptFromProductions.CompletedQty' | abpLocalization\"\r\n [(value)]=\"productionOrder.completedQuantity\"\r\n [format]=\"HitHelper.getMeasurementFormatted(unitOfMeasure)\"\r\n [disabled]=\"true\">\r\n </dx-number-box>\r\n\r\n <dx-number-box [label]=\"'UretimYonetimi::ReceiptFromProductions.Quantity' | abpLocalization\"\r\n [(value)]=\"receiptFromProductionsPostDtoBatchNumber.quantity\"\r\n (onValueChanged)=\"quantityChanged($event)\"\r\n [format]=\"HitHelper.getMeasurementFormatted(unitOfMeasure)\"\r\n [showSpinButtons]=\"true\" [min]=\"0\" #toplananMiktarRef>\r\n </dx-number-box>\r\n </div>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"showModal\" (appear)=\"generateReport()\" (disappear)=\"clearAll()\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'UretimYonetimi::CreateBarcodes.BarcodePreview' | abpLocalization }}</h3>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <iframe *ngIf=\"pdfSrc\" [src]=\"pdfSrc\" width=\"100%\" height=\"300\"\r\n webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>\r\n </ng-template>\r\n <ng-template #abpFooter>\r\n <button (click)=\"downloadPdf(blobUrl)\" type=\"button\"\r\n class=\"btn btn-secondary mobilde-gorunur\" abpClose> \u0130ndir\r\n </button>\r\n <button type=\"button\"\r\n class=\"btn btn-secondary\" abpClose> {{ 'UretimYonetimi::CreateBarcodes.Close' | abpLocalization }}\r\n </button>\r\n </ng-template>\r\n</abp-modal>\r\n", styles: [".mobilde-gorunur{display:none}@media (max-width: 768px){.mobilde-gorunur{display:block}}\n"] }]
720
+ }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i1.ListService }, { type: i1.TrackByService }, { type: HitReceiptFromProductionsService }, { type: i3.ConfirmationService }, { type: HitProductionOrdersService }, { type: i5.DomSanitizer }]; }, propDecorators: { nmbBoxBarkodNumarasi: [{
721
+ type: ViewChild,
722
+ args: ['barkodNumarasiRef', { static: false }]
723
+ }], nmbBoxToplananMiktar: [{
724
+ type: ViewChild,
725
+ args: ['toplananMiktarRef', { static: false }]
726
+ }] } });
727
+
728
+ const routes$3 = [
729
+ {
730
+ path: '',
731
+ component: HitReceiptFromProductionsComponent,
732
+ canActivate: [AuthGuard, PermissionGuard],
733
+ },
734
+ ];
735
+ class HitReceiptFromProductionRoutingModule {
736
+ }
737
+ HitReceiptFromProductionRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitReceiptFromProductionRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
738
+ HitReceiptFromProductionRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitReceiptFromProductionRoutingModule, imports: [i1$1.RouterModule], exports: [RouterModule] });
739
+ HitReceiptFromProductionRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitReceiptFromProductionRoutingModule, imports: [RouterModule.forChild(routes$3), RouterModule] });
740
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitReceiptFromProductionRoutingModule, decorators: [{
741
+ type: NgModule,
742
+ args: [{
743
+ imports: [RouterModule.forChild(routes$3)],
744
+ exports: [RouterModule],
745
+ }]
746
+ }] });
747
+
748
+ class HitReceiptFromProductionsModule {
749
+ }
750
+ HitReceiptFromProductionsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitReceiptFromProductionsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
751
+ HitReceiptFromProductionsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitReceiptFromProductionsModule, declarations: [HitReceiptFromProductionsComponent], imports: [HitReceiptFromProductionRoutingModule,
752
+ CoreModule,
753
+ ThemeSharedModule,
754
+ CommercialUiModule,
755
+ NgxValidateCoreModule,
756
+ NgbCollapseModule,
757
+ NgbDatepickerModule,
758
+ NgbDropdownModule,
759
+ PageModule,
760
+ DxButtonModule,
761
+ DxNumberBoxModule,
762
+ DevExtremeModule] });
763
+ HitReceiptFromProductionsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitReceiptFromProductionsModule, imports: [HitReceiptFromProductionRoutingModule,
764
+ CoreModule,
765
+ ThemeSharedModule,
766
+ CommercialUiModule,
767
+ NgxValidateCoreModule,
768
+ NgbCollapseModule,
769
+ NgbDatepickerModule,
770
+ NgbDropdownModule,
771
+ PageModule,
772
+ DxButtonModule,
773
+ DxNumberBoxModule,
774
+ DevExtremeModule] });
775
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitReceiptFromProductionsModule, decorators: [{
776
+ type: NgModule,
777
+ args: [{
778
+ declarations: [HitReceiptFromProductionsComponent],
779
+ imports: [
780
+ HitReceiptFromProductionRoutingModule,
781
+ CoreModule,
782
+ ThemeSharedModule,
783
+ CommercialUiModule,
784
+ NgxValidateCoreModule,
785
+ NgbCollapseModule,
786
+ NgbDatepickerModule,
787
+ NgbDropdownModule,
788
+ PageModule,
789
+ DxButtonModule,
790
+ DxNumberBoxModule,
791
+ DevExtremeModule,
792
+ ],
793
+ }]
794
+ }] });
795
+ function loadHitReceiptFromProductionsAsChild() {
796
+ return Promise.resolve(HitReceiptFromProductionsModule);
797
+ }
798
+
799
+ class IssuesForProductionPostDto {
800
+ constructor(issueLines = []) {
801
+ this.DocumentLines = issueLines;
802
+ }
803
+ }
804
+ class IssueLine {
805
+ constructor() {
806
+ this.IsQRReady = false;
807
+ this.Quantity = 0;
808
+ this.BaseType = 202;
809
+ this.BatchNumbers = [];
810
+ }
811
+ }
812
+ class BatchNumber {
813
+ constructor(batchNumber, quantity) {
814
+ this.BatchNumber = batchNumber;
815
+ this.Quantity = quantity;
816
+ }
817
+ }
818
+ class IssuesForProductionPatchDto {
819
+ }
820
+ class IssuesForProductionGetDto {
821
+ }
822
+
823
+ class HitIssuesForProductionsService {
824
+ constructor(restService, devexService) {
825
+ this.restService = restService;
826
+ this.devexService = devexService;
827
+ this.apiName = 'UretimYonetimi';
828
+ this.post = (input) => this.restService.request({
829
+ method: 'POST',
830
+ url: `${this.resourceEndpoint}`,
831
+ body: input,
832
+ }, { apiName: this.apiName });
833
+ this.patch = (input) => this.restService.request({
834
+ method: 'POST',
835
+ url: `${this.resourceEndpoint}`,
836
+ body: input,
837
+ }, { apiName: this.apiName });
838
+ this.get = (itemCode, orderNo) => this.restService.request({
839
+ method: 'GET',
840
+ url: `${this.resourceEndpoint}?itemCode=${itemCode}&orderNo=${orderNo}`,
841
+ }, { apiName: this.apiName });
842
+ this.resourceEndpoint = '/api/uretim-yonetimi/issues-for-productions';
843
+ }
844
+ }
845
+ HitIssuesForProductionsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitIssuesForProductionsService, deps: [{ token: i1.RestService }, { token: DevexpressRestService }], target: i0.ɵɵFactoryTarget.Injectable });
846
+ HitIssuesForProductionsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitIssuesForProductionsService, providedIn: 'root' });
847
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitIssuesForProductionsService, decorators: [{
848
+ type: Injectable,
849
+ args: [{
850
+ providedIn: 'root',
851
+ }]
852
+ }], ctorParameters: function () { return [{ type: i1.RestService }, { type: DevexpressRestService }]; } });
853
+
854
+ class HitIssuesForProductionsComponent {
855
+ constructor(ngZone, list, track, service, confirmation, fb, productionOrdersService) {
856
+ this.ngZone = ngZone;
857
+ this.list = list;
858
+ this.track = track;
859
+ this.service = service;
860
+ this.confirmation = confirmation;
861
+ this.fb = fb;
862
+ this.productionOrdersService = productionOrdersService;
863
+ this.options = {
864
+ hideYesBtn: true,
865
+ cancelText: 'Kapat',
866
+ dismissible: false,
867
+ };
868
+ this.isLoading = false;
869
+ this.isEmriBarkoduGecerliMi = false;
870
+ this.searcheBasildiMi = false;
871
+ this.hammaddeQR = '';
872
+ this.warehouses = [];
873
+ this.HitHelper = HitHelper;
874
+ }
875
+ ngAfterViewInit() {
876
+ this.focusBarkodInput();
877
+ }
878
+ ngOnInit() {
879
+ this.clearAll();
880
+ this.getWarehouses();
881
+ }
882
+ async getProductionOrder() {
883
+ if (!this.isEmriBarkodu) {
884
+ this.focusBarkodInput();
885
+ return;
886
+ }
887
+ this.isLoading = true;
888
+ this.isEmriBarkoduGecerliMi = false;
889
+ this.searcheBasildiMi = true;
890
+ this.productionOrdersService.get(this.isEmriBarkodu).subscribe({
891
+ next: (response) => {
892
+ if (response.isSuccessful) {
893
+ this.productionOrder = response.items;
894
+ this.isEmriBarkoduGecerliMi = true;
895
+ this.unitOfMeasure = response.items.unitOfMeasurement;
896
+ const issueLines = this.productionOrder.getProductionOrderLine.map((issueLine) => {
897
+ issueLine.quantity = 0;
898
+ const newIssueLine = new IssueLine();
899
+ newIssueLine.ItemCode = issueLine.itemCode;
900
+ newIssueLine.BaseLine = issueLine.lineNum;
901
+ newIssueLine.WarehouseCode = issueLine.warehouse;
902
+ newIssueLine.BaseEntry = issueLine.absoluteEntry;
903
+ newIssueLine.BatchNumbers = [new BatchNumber(issueLine.batchNumber, issueLine.plannedQty)];
904
+ return newIssueLine;
905
+ });
906
+ this.issuesForProductionPost = new IssuesForProductionPostDto(issueLines);
907
+ this.ngZone.run(() => {
908
+ setTimeout(() => {
909
+ this.nmbBoxHammaddeQR.instance.focus();
910
+ }, 0);
911
+ });
912
+ }
913
+ else {
914
+ this.isEmriBarkoduGecerliMi = false;
915
+ this.searcheBasildiMi = false;
916
+ }
917
+ },
918
+ error: (e) => {
919
+ this.isLoading = false;
920
+ this.isEmriBarkoduGecerliMi = false;
921
+ this.searcheBasildiMi = false;
922
+ this.confirmation.status$.subscribe({
923
+ next: () => {
924
+ this.clearAll();
925
+ }
926
+ });
927
+ this.focusBarkodInput();
928
+ }
929
+ });
930
+ this.isLoading = false;
931
+ }
932
+ async parseAndAddQR() {
933
+ if (!this.hammaddeQR) {
934
+ this.focusQRInput();
935
+ return;
936
+ }
937
+ this.isLoading = true;
938
+ const parsed = HitHelper.parseQR(this.hammaddeQR);
939
+ if (!parsed) {
940
+ this.confirmation.error('', 'Geçersiz barkod!', this.options).subscribe({
941
+ next: () => {
942
+ this.hammaddeQR = '';
943
+ this.focusQRInput();
944
+ }
945
+ });
946
+ return;
947
+ }
948
+ this.service.get(parsed.chemicalCode, this.productionOrder.absoluteEntry.toString()).subscribe({
949
+ next: (response) => {
950
+ if (response.isSuccessful) {
951
+ const issueLine = this.productionOrder.getProductionOrderLine.find((x) => x.itemCode === parsed.chemicalCode);
952
+ if (issueLine == null) {
953
+ this.confirmation.error('', "Bu iş emrinde " + parsed.chemicalCode + " kodlu stok bulunmuyor. ", this.options);
954
+ }
955
+ const issueLineForPost = this.issuesForProductionPost.DocumentLines.find((x) => x.ItemCode === parsed.chemicalCode);
956
+ if (issueLine) {
957
+ if (issueLine.issuedQty + issueLine.quantity + parsed.weightKg > issueLine.plannedQty + (issueLine.plannedQty * 0.02)) {
958
+ this.confirmation.error('', 'Toplanan miktar planlanan miktarı aşıyor!', this.options);
959
+ return;
960
+ }
961
+ issueLine.quantity += parsed.weightKg;
962
+ issueLine.batchNumber = parsed.lotNumber;
963
+ issueLineForPost.Quantity += parsed.weightKg;
964
+ if (issueLineForPost.IsQRReady) {
965
+ issueLineForPost.BatchNumbers.push(new BatchNumber(parsed.lotNumber, parsed.weightKg));
966
+ }
967
+ else {
968
+ issueLineForPost.BatchNumbers = [new BatchNumber(parsed.lotNumber, parsed.weightKg)];
969
+ issueLineForPost.IsQRReady = true;
970
+ }
971
+ }
972
+ }
973
+ },
974
+ error: (e) => {
975
+ this.confirmation.status$.subscribe({
976
+ next: () => {
977
+ this.focusQRInput();
978
+ this.hammaddeQR = '';
979
+ this.isLoading = false;
980
+ }
981
+ });
982
+ },
983
+ complete: () => {
984
+ this.focusQRInput();
985
+ this.hammaddeQR = '';
986
+ this.isLoading = false;
987
+ }
988
+ });
989
+ }
990
+ async postIssuesForProduction() {
991
+ if (!this.issuesForProductionPost) {
992
+ this.focusBarkodInput();
993
+ return;
994
+ }
995
+ this.isLoading = true;
996
+ this.isEmriBarkoduGecerliMi = false;
997
+ this.issuesForProductionPost.DocumentLines.forEach((x) => {
998
+ x.BaseEntry = this.productionOrder.absoluteEntry;
999
+ });
1000
+ this.issuesForProductionPost.DocumentLines = this.issuesForProductionPost.DocumentLines.filter((x) => x.IsQRReady);
1001
+ this.service.post(this.issuesForProductionPost).subscribe({
1002
+ next: (response) => {
1003
+ if (response.isSuccessful) {
1004
+ this.confirmation.success('', 'İşlem başarılı!', this.options).subscribe(() => {
1005
+ this.clearAll();
1006
+ });
1007
+ }
1008
+ else {
1009
+ this.confirmation.status$.subscribe({
1010
+ next: () => {
1011
+ this.focusQRInput();
1012
+ }
1013
+ });
1014
+ }
1015
+ },
1016
+ error: (e) => {
1017
+ this.confirmation.status$.subscribe({
1018
+ next: () => {
1019
+ this.clearAll();
1020
+ this.focusQRInput();
1021
+ }
1022
+ });
1023
+ }
1024
+ });
1025
+ this.isLoading = false;
1026
+ }
1027
+ clearAll() {
1028
+ this.isEmriBarkoduGecerliMi = false;
1029
+ this.searcheBasildiMi = false;
1030
+ this.issuesForProductionPost = null;
1031
+ this.isEmriBarkodu = null;
1032
+ this.hammaddeQR = '';
1033
+ this.productionOrder = null;
1034
+ this.focusBarkodInput();
1035
+ this.unitOfMeasure = null;
1036
+ }
1037
+ getWarehouses() {
1038
+ this.isLoading = true;
1039
+ this.productionOrdersService.getWarehouses().subscribe({
1040
+ next: (result) => {
1041
+ if (result.items) {
1042
+ this.warehouses = result.items.slice();
1043
+ }
1044
+ }
1045
+ });
1046
+ this.isLoading = false;
1047
+ }
1048
+ onRowPrepared(e) {
1049
+ if (e.rowType === 'data') {
1050
+ if (e.data.plannedQty <= e.data.issuedQty) {
1051
+ e.rowElement.classList.add('hit-grey-row');
1052
+ }
1053
+ else if (e.data.quantity > 0) {
1054
+ e.rowElement.classList.add('hit-green-row');
1055
+ }
1056
+ }
1057
+ }
1058
+ focusQRInput() {
1059
+ this.ngZone.run(() => {
1060
+ setTimeout(() => {
1061
+ this.nmbBoxHammaddeQR.instance.focus();
1062
+ }, 0);
1063
+ });
1064
+ }
1065
+ focusBarkodInput() {
1066
+ this.ngZone.run(() => {
1067
+ setTimeout(() => {
1068
+ this.nmbBoxBarkodNumarasi.instance.focus();
1069
+ }, 0);
1070
+ });
1071
+ }
1072
+ }
1073
+ HitIssuesForProductionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitIssuesForProductionsComponent, deps: [{ token: i0.NgZone }, { token: i1.ListService }, { token: i1.TrackByService }, { token: HitIssuesForProductionsService }, { token: i3.ConfirmationService }, { token: i4.FormBuilder }, { token: HitProductionOrdersService }], target: i0.ɵɵFactoryTarget.Component });
1074
+ HitIssuesForProductionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: HitIssuesForProductionsComponent, selector: "lib-hit-issues-for-productions", providers: [ListService, { provide: NgbDateAdapter, useClass: DateAdapter }], viewQueries: [{ propertyName: "nmbBoxBarkodNumarasi", first: true, predicate: ["barkodNumarasiRef"], descendants: true }, { propertyName: "nmbBoxHammaddeQR", first: true, predicate: ["hammaddeQRRef"], descendants: true }, { propertyName: "dataGrid", first: true, predicate: ["getProductionOrderLineGrid"], descendants: true }], ngImport: i0, template: "<abp-page [breadcrumb]=\"false\">\r\n <abp-page-toolbar-container class=\"col\">\r\n <div class=\"row\">\r\n <h3 class=\"page-title\">\r\n {{ 'UretimYonetimi::IssuesForProductions.Title' | abpLocalization }}\r\n </h3>\r\n </div>\r\n <div class=\"row text-lg-end pt-2\">\r\n <div class=\"col-8\">\r\n <button class=\"btn btn-success btn-sm\" type=\"button\" (click)=\"postIssuesForProduction()\"\r\n [disabled]=\"!isEmriBarkoduGecerliMi\">\r\n <i class=\"fa fa-plus me-1\"></i>\r\n {{ 'UretimYonetimi::IssuesForProductions.Create' | abpLocalization }}\r\n </button>\r\n </div>\r\n <div class=\"col-4\">\r\n <button class=\"btn btn-warning btn-sm\" type=\"button\" (click)=\"clearAll()\">\r\n <i class=\"fa fa-broom me-1\"></i>\r\n {{ 'UretimYonetimi::IssuesForProductions.Clean' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </abp-page-toolbar-container>\r\n <div class=\"card mt-2\">\r\n <div class=\"card-body\">\r\n <div style=\"display: flex; align-items: center;\">\r\n <dx-number-box #barkodNumarasiRef class=\"me-1\" style=\"width:100%;\"\r\n [label]=\"'UretimYonetimi::IssuesForProductions.WorkOrderNo' | abpLocalization\" [(value)]=\"isEmriBarkodu\"\r\n (onChange)=\"getProductionOrder()\" (onEnterKey)=\"getProductionOrder()\" [disabled]=\"searcheBasildiMi || isEmriBarkoduGecerliMi\">\r\n </dx-number-box>\r\n <dx-button style=\"margin-top: 7.5px;\" icon=\"search\" type=\"default\" (onClick)=\"getProductionOrder()\"\r\n [disabled]=\"searcheBasildiMi || isEmriBarkoduGecerliMi\">\r\n </dx-button>\r\n </div>\r\n <div class=\"mt-3\" *ngIf=\"isEmriBarkoduGecerliMi\">\r\n <dx-text-box style=\"width:100%;\"\r\n [label]=\"'UretimYonetimi::IssuesForProductions.WorkOrderName' | abpLocalization\"\r\n [(value)]=\"productionOrder.productDescription\" [disabled]=\"true\">\r\n </dx-text-box>\r\n <dx-number-box style=\"width:100%;\" [label]=\"'UretimYonetimi::IssuesForProductions.PlannedQty' | abpLocalization\"\r\n [(value)]=\"productionOrder.plannedQuantity\" [disabled]=\"true\"\r\n [format]=\"HitHelper.getMeasurementFormatted(unitOfMeasure)\">\r\n </dx-number-box>\r\n\r\n <div style=\"display: flex; align-items: center;\">\r\n <dx-text-box #hammaddeQRRef style=\"width:100%;\" class=\"me-1\"\r\n [label]=\"'UretimYonetimi::IssuesForProductions.IssueQRCode' | abpLocalization\" [maxLength]=\"256\"\r\n [(value)]=\"hammaddeQR\" (onEnterKey)=\"parseAndAddQR()\"\r\n [placeholder]=\"'UretimYonetimi::IssuesForProductions.IssueQRCode.Placeholder' | abpLocalization\">\r\n </dx-text-box>\r\n <dx-button style=\"margin-top: 7.5px;\" icon=\"plus\" type=\"default\" (onClick)=\"parseAndAddQR()\">\r\n </dx-button>\r\n </div>\r\n\r\n <div *ngIf=\"productionOrder.getProductionOrderLine?.length\" class=\"mt-3\">\r\n <dx-data-grid #getProductionOrderLineGrid [dataSource]=\"productionOrder.getProductionOrderLine\"\r\n [showBorders]=\"true\" [columnAutoWidth]=\"true\" [sorting]=\"{ mode: 'none' }\"\r\n (onRowPrepared)=\"onRowPrepared($event)\">\r\n <dxi-column dataField=\"itemName\"\r\n caption=\"{{'UretimYonetimi::IssuesForProductions.ItemName' | abpLocalization}}\"></dxi-column>\r\n <dxi-column cellTemplate=\"templateQty\"\r\n caption=\"{{ 'UretimYonetimi::IssuesForProductions.Quantity' | abpLocalization }}\"\r\n dataType=\"number\"></dxi-column>\r\n <dxi-column cellTemplate=\"templatePlannedQty\"\r\n caption=\"{{'UretimYonetimi::IssuesForProductions.PlannedQty' | abpLocalization}}\"\r\n dataType=\"number\"></dxi-column>\r\n <dxi-column cellTemplate=\"templateIssuedQty\"\r\n caption=\"{{'UretimYonetimi::IssuesForProductions.CompletedQty' | abpLocalization}}\"\r\n dataType=\"number\"></dxi-column>\r\n <dxi-column dataField=\"itemCode\"\r\n caption=\"{{'UretimYonetimi::IssuesForProductions.ItemCode' | abpLocalization}}\"\r\n [width]=\"150\"></dxi-column>\r\n <dxi-column dataField=\"batchNumber\"\r\n caption=\"{{'UretimYonetimi::IssuesForProductions.BatchNumber' | abpLocalization}}\"\r\n [width]=\"120\"></dxi-column>\r\n <dxi-column dataField=\"warehouse\"\r\n caption=\"{{'UretimYonetimi::IssuesForProductions.Warehouse' | abpLocalization}}\" [width]=\"120\">\r\n\r\n <dxo-lookup [dataSource]=\"warehouses\" displayExpr=\"whsName\" valueExpr=\"whsCode\">\r\n </dxo-lookup>\r\n </dxi-column>\r\n <div *dxTemplate=\"let data of 'templateQty'\">\r\n {{ HitHelper.getMeasurementFormattedWithLocalization(data.key.quantity, data.key.unitOfMeasurement) }}\r\n </div>\r\n <div *dxTemplate=\"let data of 'templatePlannedQty'\">\r\n {{ HitHelper.getMeasurementFormattedWithLocalization(data.key.plannedQty, data.key.unitOfMeasurement) }}\r\n </div>\r\n <div *dxTemplate=\"let data of 'templateIssuedQty'\">\r\n {{ HitHelper.getMeasurementFormattedWithLocalization(data.key.issuedQty, data.key.unitOfMeasurement) }}\r\n </div>\r\n </dx-data-grid>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</abp-page>\r\n", styles: ["::ng-deep .hit-green-row{background-color:#daf5dc!important}::ng-deep .hit-grey-row{background-color:#80808070!important}\n"], dependencies: [{ kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i7.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: i7.PageToolbarContainerComponent, selector: "abp-page-toolbar-container" }, { kind: "component", type: i8.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: "directive", type: i9.DxTemplateDirective, selector: "[dxTemplate]", inputs: ["dxTemplateOf"] }, { kind: "component", type: i8.DxButtonComponent, selector: "dx-button", inputs: ["accessKey", "activeStateEnabled", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "icon", "rtlEnabled", "stylingMode", "tabIndex", "template", "text", "type", "useSubmitBehavior", "validationGroup", "visible", "width"], outputs: ["onClick", "onContentReady", "onDisposing", "onInitialized", "onOptionChanged", "accessKeyChange", "activeStateEnabledChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "iconChange", "rtlEnabledChange", "stylingModeChange", "tabIndexChange", "templateChange", "textChange", "typeChange", "useSubmitBehaviorChange", "validationGroupChange", "visibleChange", "widthChange"] }, { kind: "component", type: i8.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: i8$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: i8$1.DxoLookupComponent, selector: "dxo-lookup", inputs: ["allowClearing", "calculateCellValue", "dataSource", "displayExpr", "valueExpr"] }, { kind: "component", type: i8.DxNumberBoxComponent, selector: "dx-number-box", inputs: ["accessKey", "activeStateEnabled", "buttons", "disabled", "elementAttr", "focusStateEnabled", "format", "height", "hint", "hoverStateEnabled", "inputAttr", "invalidValueMessage", "isValid", "label", "labelMode", "max", "min", "mode", "name", "placeholder", "readOnly", "rtlEnabled", "showClearButton", "showSpinButtons", "step", "stylingMode", "tabIndex", "text", "useLargeSpinButtons", "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", "formatChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "invalidValueMessageChange", "isValidChange", "labelChange", "labelModeChange", "maxChange", "minChange", "modeChange", "nameChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "showClearButtonChange", "showSpinButtonsChange", "stepChange", "stylingModeChange", "tabIndexChange", "textChange", "useLargeSpinButtonsChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }], changeDetection: i0.ChangeDetectionStrategy.Default });
1075
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitIssuesForProductionsComponent, decorators: [{
1076
+ type: Component,
1077
+ args: [{ selector: 'lib-hit-issues-for-productions', changeDetection: ChangeDetectionStrategy.Default, providers: [ListService, { provide: NgbDateAdapter, useClass: DateAdapter }], template: "<abp-page [breadcrumb]=\"false\">\r\n <abp-page-toolbar-container class=\"col\">\r\n <div class=\"row\">\r\n <h3 class=\"page-title\">\r\n {{ 'UretimYonetimi::IssuesForProductions.Title' | abpLocalization }}\r\n </h3>\r\n </div>\r\n <div class=\"row text-lg-end pt-2\">\r\n <div class=\"col-8\">\r\n <button class=\"btn btn-success btn-sm\" type=\"button\" (click)=\"postIssuesForProduction()\"\r\n [disabled]=\"!isEmriBarkoduGecerliMi\">\r\n <i class=\"fa fa-plus me-1\"></i>\r\n {{ 'UretimYonetimi::IssuesForProductions.Create' | abpLocalization }}\r\n </button>\r\n </div>\r\n <div class=\"col-4\">\r\n <button class=\"btn btn-warning btn-sm\" type=\"button\" (click)=\"clearAll()\">\r\n <i class=\"fa fa-broom me-1\"></i>\r\n {{ 'UretimYonetimi::IssuesForProductions.Clean' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </abp-page-toolbar-container>\r\n <div class=\"card mt-2\">\r\n <div class=\"card-body\">\r\n <div style=\"display: flex; align-items: center;\">\r\n <dx-number-box #barkodNumarasiRef class=\"me-1\" style=\"width:100%;\"\r\n [label]=\"'UretimYonetimi::IssuesForProductions.WorkOrderNo' | abpLocalization\" [(value)]=\"isEmriBarkodu\"\r\n (onChange)=\"getProductionOrder()\" (onEnterKey)=\"getProductionOrder()\" [disabled]=\"searcheBasildiMi || isEmriBarkoduGecerliMi\">\r\n </dx-number-box>\r\n <dx-button style=\"margin-top: 7.5px;\" icon=\"search\" type=\"default\" (onClick)=\"getProductionOrder()\"\r\n [disabled]=\"searcheBasildiMi || isEmriBarkoduGecerliMi\">\r\n </dx-button>\r\n </div>\r\n <div class=\"mt-3\" *ngIf=\"isEmriBarkoduGecerliMi\">\r\n <dx-text-box style=\"width:100%;\"\r\n [label]=\"'UretimYonetimi::IssuesForProductions.WorkOrderName' | abpLocalization\"\r\n [(value)]=\"productionOrder.productDescription\" [disabled]=\"true\">\r\n </dx-text-box>\r\n <dx-number-box style=\"width:100%;\" [label]=\"'UretimYonetimi::IssuesForProductions.PlannedQty' | abpLocalization\"\r\n [(value)]=\"productionOrder.plannedQuantity\" [disabled]=\"true\"\r\n [format]=\"HitHelper.getMeasurementFormatted(unitOfMeasure)\">\r\n </dx-number-box>\r\n\r\n <div style=\"display: flex; align-items: center;\">\r\n <dx-text-box #hammaddeQRRef style=\"width:100%;\" class=\"me-1\"\r\n [label]=\"'UretimYonetimi::IssuesForProductions.IssueQRCode' | abpLocalization\" [maxLength]=\"256\"\r\n [(value)]=\"hammaddeQR\" (onEnterKey)=\"parseAndAddQR()\"\r\n [placeholder]=\"'UretimYonetimi::IssuesForProductions.IssueQRCode.Placeholder' | abpLocalization\">\r\n </dx-text-box>\r\n <dx-button style=\"margin-top: 7.5px;\" icon=\"plus\" type=\"default\" (onClick)=\"parseAndAddQR()\">\r\n </dx-button>\r\n </div>\r\n\r\n <div *ngIf=\"productionOrder.getProductionOrderLine?.length\" class=\"mt-3\">\r\n <dx-data-grid #getProductionOrderLineGrid [dataSource]=\"productionOrder.getProductionOrderLine\"\r\n [showBorders]=\"true\" [columnAutoWidth]=\"true\" [sorting]=\"{ mode: 'none' }\"\r\n (onRowPrepared)=\"onRowPrepared($event)\">\r\n <dxi-column dataField=\"itemName\"\r\n caption=\"{{'UretimYonetimi::IssuesForProductions.ItemName' | abpLocalization}}\"></dxi-column>\r\n <dxi-column cellTemplate=\"templateQty\"\r\n caption=\"{{ 'UretimYonetimi::IssuesForProductions.Quantity' | abpLocalization }}\"\r\n dataType=\"number\"></dxi-column>\r\n <dxi-column cellTemplate=\"templatePlannedQty\"\r\n caption=\"{{'UretimYonetimi::IssuesForProductions.PlannedQty' | abpLocalization}}\"\r\n dataType=\"number\"></dxi-column>\r\n <dxi-column cellTemplate=\"templateIssuedQty\"\r\n caption=\"{{'UretimYonetimi::IssuesForProductions.CompletedQty' | abpLocalization}}\"\r\n dataType=\"number\"></dxi-column>\r\n <dxi-column dataField=\"itemCode\"\r\n caption=\"{{'UretimYonetimi::IssuesForProductions.ItemCode' | abpLocalization}}\"\r\n [width]=\"150\"></dxi-column>\r\n <dxi-column dataField=\"batchNumber\"\r\n caption=\"{{'UretimYonetimi::IssuesForProductions.BatchNumber' | abpLocalization}}\"\r\n [width]=\"120\"></dxi-column>\r\n <dxi-column dataField=\"warehouse\"\r\n caption=\"{{'UretimYonetimi::IssuesForProductions.Warehouse' | abpLocalization}}\" [width]=\"120\">\r\n\r\n <dxo-lookup [dataSource]=\"warehouses\" displayExpr=\"whsName\" valueExpr=\"whsCode\">\r\n </dxo-lookup>\r\n </dxi-column>\r\n <div *dxTemplate=\"let data of 'templateQty'\">\r\n {{ HitHelper.getMeasurementFormattedWithLocalization(data.key.quantity, data.key.unitOfMeasurement) }}\r\n </div>\r\n <div *dxTemplate=\"let data of 'templatePlannedQty'\">\r\n {{ HitHelper.getMeasurementFormattedWithLocalization(data.key.plannedQty, data.key.unitOfMeasurement) }}\r\n </div>\r\n <div *dxTemplate=\"let data of 'templateIssuedQty'\">\r\n {{ HitHelper.getMeasurementFormattedWithLocalization(data.key.issuedQty, data.key.unitOfMeasurement) }}\r\n </div>\r\n </dx-data-grid>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</abp-page>\r\n", styles: ["::ng-deep .hit-green-row{background-color:#daf5dc!important}::ng-deep .hit-grey-row{background-color:#80808070!important}\n"] }]
1078
+ }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i1.ListService }, { type: i1.TrackByService }, { type: HitIssuesForProductionsService }, { type: i3.ConfirmationService }, { type: i4.FormBuilder }, { type: HitProductionOrdersService }]; }, propDecorators: { nmbBoxBarkodNumarasi: [{
1079
+ type: ViewChild,
1080
+ args: ['barkodNumarasiRef', { static: false }]
1081
+ }], nmbBoxHammaddeQR: [{
1082
+ type: ViewChild,
1083
+ args: ['hammaddeQRRef', { static: false }]
1084
+ }], dataGrid: [{
1085
+ type: ViewChild,
1086
+ args: ['getProductionOrderLineGrid', { static: false }]
1087
+ }] } });
1088
+
1089
+ const routes$2 = [
1090
+ {
1091
+ path: '',
1092
+ component: HitIssuesForProductionsComponent,
1093
+ canActivate: [AuthGuard, PermissionGuard],
1094
+ },
1095
+ ];
1096
+ class HitIssuesForProductionsRoutingModule {
1097
+ }
1098
+ HitIssuesForProductionsRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitIssuesForProductionsRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1099
+ HitIssuesForProductionsRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitIssuesForProductionsRoutingModule, imports: [i1$1.RouterModule], exports: [RouterModule] });
1100
+ HitIssuesForProductionsRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitIssuesForProductionsRoutingModule, imports: [RouterModule.forChild(routes$2), RouterModule] });
1101
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitIssuesForProductionsRoutingModule, decorators: [{
1102
+ type: NgModule,
1103
+ args: [{
1104
+ imports: [RouterModule.forChild(routes$2)],
1105
+ exports: [RouterModule],
1106
+ }]
1107
+ }] });
1108
+
1109
+ class HitIssuesForProductionModule {
1110
+ }
1111
+ HitIssuesForProductionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitIssuesForProductionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1112
+ HitIssuesForProductionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitIssuesForProductionModule, declarations: [HitIssuesForProductionsComponent], imports: [HitIssuesForProductionsRoutingModule,
1113
+ CoreModule,
1114
+ ThemeSharedModule,
1115
+ CommercialUiModule,
1116
+ NgxValidateCoreModule,
1117
+ NgbCollapseModule,
1118
+ NgbDatepickerModule,
1119
+ NgbDropdownModule,
1120
+ PageModule,
1121
+ DxTextBoxModule,
1122
+ DxButtonModule,
1123
+ DxDataGridModule,
1124
+ DxLoadIndicatorModule,
1125
+ DevExtremeModule] });
1126
+ HitIssuesForProductionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitIssuesForProductionModule, imports: [HitIssuesForProductionsRoutingModule,
1127
+ CoreModule,
1128
+ ThemeSharedModule,
1129
+ CommercialUiModule,
1130
+ NgxValidateCoreModule,
1131
+ NgbCollapseModule,
1132
+ NgbDatepickerModule,
1133
+ NgbDropdownModule,
1134
+ PageModule,
1135
+ DxTextBoxModule,
1136
+ DxButtonModule,
1137
+ DxDataGridModule,
1138
+ DxLoadIndicatorModule,
1139
+ DevExtremeModule] });
1140
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitIssuesForProductionModule, decorators: [{
1141
+ type: NgModule,
1142
+ args: [{
1143
+ declarations: [HitIssuesForProductionsComponent],
1144
+ imports: [
1145
+ HitIssuesForProductionsRoutingModule,
1146
+ CoreModule,
1147
+ ThemeSharedModule,
1148
+ CommercialUiModule,
1149
+ NgxValidateCoreModule,
1150
+ NgbCollapseModule,
1151
+ NgbDatepickerModule,
1152
+ NgbDropdownModule,
1153
+ PageModule,
1154
+ DxTextBoxModule,
1155
+ DxButtonModule,
1156
+ DxDataGridModule,
1157
+ DxLoadIndicatorModule,
1158
+ DevExtremeModule
1159
+ ],
1160
+ }]
1161
+ }] });
1162
+ function loadHitIssuesForProductionsAsChild() {
1163
+ return Promise.resolve(HitIssuesForProductionModule);
1164
+ }
1165
+
1166
+ class HitCreateBarcodesService {
1167
+ constructor(restService) {
1168
+ this.restService = restService;
1169
+ this.apiName = 'UretimYonetimi';
1170
+ this.getReceiptFromProductions = (orderNo) => this.restService.request({
1171
+ method: 'GET',
1172
+ url: `${this.resourceEndpoint}/get-receipt-from-productions?productionOrderId=${orderNo}`,
1173
+ }, { apiName: this.apiName });
1174
+ this.getBarcodeInfo = (productionOrderId, receiptId, barcodeNumber) => this.restService.request({
1175
+ method: 'POST',
1176
+ url: `${this.resourceEndpoint}/get-barcode?productionOrderId=${productionOrderId}&receiptId=${receiptId}&barcodeNumber=${barcodeNumber}`,
1177
+ }, { apiName: this.apiName });
1178
+ this.resourceEndpoint = '/api/uretim-yonetimi/create-barcodes';
1179
+ }
1180
+ }
1181
+ HitCreateBarcodesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitCreateBarcodesService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
1182
+ HitCreateBarcodesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitCreateBarcodesService, providedIn: 'root' });
1183
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitCreateBarcodesService, decorators: [{
1184
+ type: Injectable,
1185
+ args: [{
1186
+ providedIn: 'root',
1187
+ }]
1188
+ }], ctorParameters: function () { return [{ type: i1.RestService }]; } });
1189
+ class BarcodeViewerComponent {
1190
+ constructor(http, sanitizer) {
1191
+ this.http = http;
1192
+ this.sanitizer = sanitizer;
1193
+ this.pdfSrc = null;
1194
+ this.resourceEndpoint = '/api/uretim-yonetimi/create-barcodes';
1195
+ }
1196
+ }
1197
+
1198
+ class HitCreateBarcodesComponent {
1199
+ constructor(ngZone, list, track, service, confirmation, productionOrdersService, sanitizer) {
1200
+ this.ngZone = ngZone;
1201
+ this.list = list;
1202
+ this.track = track;
1203
+ this.service = service;
1204
+ this.confirmation = confirmation;
1205
+ this.productionOrdersService = productionOrdersService;
1206
+ this.sanitizer = sanitizer;
1207
+ this.isLoading = false;
1208
+ this.isEmriBarkoduGecerliMi = false;
1209
+ this.searchBasildiMi = false;
1210
+ this.printingQuantity = 1;
1211
+ this.showModal = false;
1212
+ this.pdfSrc = null;
1213
+ }
1214
+ async getProductionOrder() {
1215
+ if (!this.isEmriBarkodu) {
1216
+ return;
1217
+ }
1218
+ this.isLoading = true;
1219
+ this.isEmriBarkoduGecerliMi = false;
1220
+ this.searchBasildiMi = true;
1221
+ this.productionOrdersService.get(this.isEmriBarkodu).subscribe({
1222
+ next: response => {
1223
+ if (response?.isSuccessful) {
1224
+ this.productionOrder = response.items;
1225
+ this.isEmriBarkoduGecerliMi = true;
1226
+ this.getReceiptFromProductions();
1227
+ }
1228
+ else {
1229
+ this.isEmriBarkoduGecerliMi = false;
1230
+ }
1231
+ },
1232
+ error: e => {
1233
+ this.isEmriBarkoduGecerliMi = false;
1234
+ this.searchBasildiMi = true;
1235
+ this.confirmation.status$.subscribe({
1236
+ next: () => {
1237
+ this.clearAll();
1238
+ },
1239
+ });
1240
+ },
1241
+ });
1242
+ this.isLoading = false;
1243
+ }
1244
+ ngAfterViewInit() {
1245
+ this.focusOnBarkodNumarasi();
1246
+ }
1247
+ clearAll() {
1248
+ this.isEmriBarkoduGecerliMi = false;
1249
+ this.searchBasildiMi = false;
1250
+ this.isEmriBarkodu = null;
1251
+ this.productionOrder = null;
1252
+ this.receiptFromProductions = null;
1253
+ this.focusOnBarkodNumarasi();
1254
+ }
1255
+ generateReport() {
1256
+ this.service
1257
+ .getBarcodeInfo(this.isEmriBarkodu, this.selectedReceiptFromProductions.docEntry, this.printingQuantity)
1258
+ .subscribe({
1259
+ next: response => {
1260
+ const base64Data = response.base64; // base64 string (sadece veri kısmı, "data:application/pdf;base64,..." değilse)
1261
+ // Base64'ü decode edip binary veriye çeviriyoruz
1262
+ const byteCharacters = atob(base64Data);
1263
+ const byteNumbers = new Array(byteCharacters.length);
1264
+ for (let i = 0; i < byteCharacters.length; i++) {
1265
+ byteNumbers[i] = byteCharacters.charCodeAt(i);
1266
+ }
1267
+ const byteArray = new Uint8Array(byteNumbers);
1268
+ // Blob oluşturuyoruz
1269
+ const blob = new Blob([byteArray], { type: 'application/pdf' });
1270
+ // Blob'tan URL oluşturup yeni sekmede açıyoruz (veya download edebilirsin)
1271
+ this.blobUrl = URL.createObjectURL(blob);
1272
+ this.pdfSrc = this.bypassAndSanitize(this.blobUrl);
1273
+ },
1274
+ });
1275
+ }
1276
+ bypassAndSanitize(url) {
1277
+ return this.sanitizer.bypassSecurityTrustResourceUrl(url);
1278
+ }
1279
+ downloadPdf(blobUrl) {
1280
+ const a = document.createElement('a');
1281
+ a.href = blobUrl;
1282
+ const parts = blobUrl.split('/');
1283
+ const lastPart = parts.pop(); // "myfile.pdf"
1284
+ a.download = lastPart + '.pdf'; // Kaydedilecek dosya adı
1285
+ a.style.display = 'none';
1286
+ // iOS'ta desteklenmesi için target=_blank eklenebilir
1287
+ a.target = '_blank';
1288
+ // DOM'a ekleyip tıklat
1289
+ document.body.appendChild(a);
1290
+ a.click();
1291
+ document.body.removeChild(a);
1292
+ }
1293
+ async getReceiptFromProductions() {
1294
+ if (!this.isEmriBarkodu) {
1295
+ return;
1296
+ }
1297
+ this.isLoading = true;
1298
+ this.service.getReceiptFromProductions(this.isEmriBarkodu + '').subscribe({
1299
+ next: response => {
1300
+ if (response?.isSuccessful) {
1301
+ this.receiptFromProductions = response.items;
1302
+ this.receiptFromProductions.forEach((item) => {
1303
+ item.docDateString = this.formatDate(item.docDate);
1304
+ });
1305
+ setTimeout(() => {
1306
+ if (this.receiptFromProductions?.length === 1) {
1307
+ const key = this.receiptFromProductions[0];
1308
+ this.dataGrid.instance.selectRows([key], false);
1309
+ }
1310
+ });
1311
+ }
1312
+ else {
1313
+ this.confirmation.status$.subscribe({
1314
+ next: () => {
1315
+ this.clearAll();
1316
+ },
1317
+ });
1318
+ }
1319
+ },
1320
+ error: e => {
1321
+ this.confirmation.status$.subscribe({
1322
+ next: () => {
1323
+ this.clearAll();
1324
+ },
1325
+ });
1326
+ },
1327
+ });
1328
+ this.isLoading = false;
1329
+ }
1330
+ selectReceiptFromProductions(e) {
1331
+ e.component.byKey(e.currentSelectedRowKeys[0]).done(receiptFromProductions => {
1332
+ if (receiptFromProductions) {
1333
+ this.selectedReceiptFromProductions = receiptFromProductions;
1334
+ }
1335
+ });
1336
+ }
1337
+ formatDate(date) {
1338
+ if (!date)
1339
+ return '';
1340
+ const pad = (n) => n.toString().padStart(2, '0');
1341
+ const d = new Date(date);
1342
+ const day = pad(d.getDate());
1343
+ const month = pad(d.getMonth() + 1); // Aylar 0-indexli
1344
+ const year = d.getFullYear();
1345
+ const hour = pad(d.getHours());
1346
+ const minute = pad(d.getMinutes());
1347
+ return `${day}/${month}/${year} ${hour}:${minute}`;
1348
+ }
1349
+ focusOnBarkodNumarasi() {
1350
+ this.ngZone.run(() => {
1351
+ setTimeout(() => {
1352
+ this.nmbBoxBarkodNumarasi.instance.focus();
1353
+ }, 0);
1354
+ });
1355
+ }
1356
+ }
1357
+ HitCreateBarcodesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitCreateBarcodesComponent, deps: [{ token: i0.NgZone }, { token: i1.ListService }, { token: i1.TrackByService }, { token: HitCreateBarcodesService }, { token: i3.ConfirmationService }, { token: HitProductionOrdersService }, { token: i5.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
1358
+ HitCreateBarcodesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: HitCreateBarcodesComponent, selector: "lib-hit-create-barcodes", providers: [ListService, { provide: NgbDateAdapter, useClass: DateAdapter }], viewQueries: [{ propertyName: "nmbBoxBarkodNumarasi", first: true, predicate: ["barkodNumarasiRef"], descendants: true }, { propertyName: "dataGrid", first: true, predicate: ["gridRFP"], descendants: true }], ngImport: i0, template: "<abp-page [breadcrumb]=\"false\">\r\n <abp-page-toolbar-container class=\"col\">\r\n <div class=\"row\">\r\n <h3 class=\"page-title\">\r\n {{ 'UretimYonetimi::CreateBarcodes.Title' | abpLocalization }}\r\n </h3>\r\n </div>\r\n <div class=\"row text-lg-end pt-2\">\r\n <div class=\"col-8\">\r\n <button class=\"btn btn-success btn-sm\" type=\"button\" [disabled]=\"!this.selectedReceiptFromProductions\"\r\n (click)=\"showModal=true\">\r\n <i class=\"fa fa-plus me-1\"></i>\r\n {{ 'UretimYonetimi::CreateBarcodes.Print' | abpLocalization }}\r\n </button>\r\n </div>\r\n <div class=\"col-4\">\r\n <button class=\"btn btn-warning btn-sm\" type=\"button\" (click)=\"clearAll()\">\r\n <i class=\"fa fa-broom me-1\"></i>\r\n {{ 'UretimYonetimi::CreateBarcodes.Clean' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </abp-page-toolbar-container>\r\n <div class=\"card mt-2\">\r\n <div class=\"card-body\" style=\"height: calc(100vh - 241px); overflow: auto;\">\r\n <div style=\"display: flex; align-items: center;\">\r\n <dx-number-box #barkodNumarasiRef class=\"me-1\" style=\"width:100%;\"\r\n [label]=\"'UretimYonetimi::CreateBarcodes.WorkOrderNo' | abpLocalization\"\r\n [(value)]=\"isEmriBarkodu\"\r\n (onChange)=\"getProductionOrder()\" (onEnterKey)=\"getProductionOrder()\"\r\n [disabled]=\"searchBasildiMi || isEmriBarkoduGecerliMi\">\r\n </dx-number-box>\r\n <dx-button style=\"margin-top: 7.5px;\" icon=\"search\" type=\"default\" (onClick)=\"getProductionOrder()\"\r\n [disabled]=\"searchBasildiMi || isEmriBarkoduGecerliMi\">\r\n </dx-button>\r\n </div>\r\n\r\n <div class=\"mt-3\" *ngIf=\"isEmriBarkoduGecerliMi\">\r\n <dx-text-box style=\"width:100%;\" [label]=\"'UretimYonetimi::CreateBarcodes.ItemCode' | abpLocalization\"\r\n [(value)]=\"productionOrder.itemNo\" [disabled]=\"true\">\r\n </dx-text-box>\r\n <dx-text-box style=\"width:100%;\" [label]=\"'UretimYonetimi::CreateBarcodes.ItemName' | abpLocalization\"\r\n [(value)]=\"productionOrder.productDescription\" [disabled]=\"true\">\r\n </dx-text-box>\r\n <dx-text-box style=\"width:100%;\" [label]=\"'UretimYonetimi::CreateBarcodes.BatchNumber' | abpLocalization\"\r\n [(value)]=\"productionOrder.u_trkBatch\" [disabled]=\"true\">\r\n </dx-text-box>\r\n <dx-number-box style=\"width:100%;\" [label]=\"'UretimYonetimi::CreateBarcodes.PrintingQuantity' | abpLocalization\"\r\n [(value)]=\"printingQuantity\">\r\n </dx-number-box>\r\n <dx-data-grid #gridRFP class=\"mt-3\" [dataSource]=\"receiptFromProductions\" [columnAutoWidth]=\"true\"\r\n (onSelectionChanged)=\"selectReceiptFromProductions($event)\">\r\n <dxi-column dataField=\"quantity\"\r\n [caption]=\"'UretimYonetimi::CreateBarcodes.Quantity' | abpLocalization\"></dxi-column>\r\n <dxi-column dataField=\"docDateString\"\r\n [caption]=\"'UretimYonetimi::CreateBarcodes.Date' | abpLocalization\"></dxi-column>\r\n <dxo-selection mode=\"single\"></dxo-selection>\r\n </dx-data-grid>\r\n </div>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"showModal\" (appear)=\"generateReport()\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'UretimYonetimi::CreateBarcodes.BarcodePreview' | abpLocalization }}</h3>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <iframe *ngIf=\"pdfSrc\" [src]=\"pdfSrc\" width=\"100%\" height=\"300\"\r\n webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>\r\n </ng-template>\r\n <ng-template #abpFooter>\r\n <button (click)=\"downloadPdf(blobUrl)\" type=\"button\"\r\n class=\"btn btn-secondary mobilde-gorunur\" abpClose> \u0130ndir\r\n </button>\r\n <button type=\"button\"\r\n class=\"btn btn-secondary\" abpClose> {{ 'UretimYonetimi::CreateBarcodes.Close' | abpLocalization }}\r\n </button>\r\n </ng-template>\r\n</abp-modal>\r\n", styles: [".mobilde-gorunur{display:none}@media (max-width: 768px){.mobilde-gorunur{display:block}}\n"], dependencies: [{ kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i3.ModalCloseDirective, selector: "[abpClose]" }, { kind: "component", type: i7.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: i7.PageToolbarContainerComponent, selector: "abp-page-toolbar-container" }, { kind: "component", type: i8.DxButtonComponent, selector: "dx-button", inputs: ["accessKey", "activeStateEnabled", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "icon", "rtlEnabled", "stylingMode", "tabIndex", "template", "text", "type", "useSubmitBehavior", "validationGroup", "visible", "width"], outputs: ["onClick", "onContentReady", "onDisposing", "onInitialized", "onOptionChanged", "accessKeyChange", "activeStateEnabledChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "iconChange", "rtlEnabledChange", "stylingModeChange", "tabIndexChange", "templateChange", "textChange", "typeChange", "useSubmitBehaviorChange", "validationGroupChange", "visibleChange", "widthChange"] }, { kind: "component", type: i8.DxNumberBoxComponent, selector: "dx-number-box", inputs: ["accessKey", "activeStateEnabled", "buttons", "disabled", "elementAttr", "focusStateEnabled", "format", "height", "hint", "hoverStateEnabled", "inputAttr", "invalidValueMessage", "isValid", "label", "labelMode", "max", "min", "mode", "name", "placeholder", "readOnly", "rtlEnabled", "showClearButton", "showSpinButtons", "step", "stylingMode", "tabIndex", "text", "useLargeSpinButtons", "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", "formatChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "invalidValueMessageChange", "isValidChange", "labelChange", "labelModeChange", "maxChange", "minChange", "modeChange", "nameChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "showClearButtonChange", "showSpinButtonsChange", "stepChange", "stylingModeChange", "tabIndexChange", "textChange", "useLargeSpinButtonsChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "component", type: i8.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: i8.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: i8$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: i8$1.DxoSelectionComponent, selector: "dxo-selection", inputs: ["allowSelectAll", "deferred", "mode", "selectAllMode", "showCheckBoxesMode", "recursive"] }, { kind: "pipe", type: i1.LocalizationPipe, name: "abpLocalization" }], changeDetection: i0.ChangeDetectionStrategy.Default });
1359
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitCreateBarcodesComponent, decorators: [{
1360
+ type: Component,
1361
+ args: [{ selector: 'lib-hit-create-barcodes', changeDetection: ChangeDetectionStrategy.Default, providers: [ListService, { provide: NgbDateAdapter, useClass: DateAdapter }], template: "<abp-page [breadcrumb]=\"false\">\r\n <abp-page-toolbar-container class=\"col\">\r\n <div class=\"row\">\r\n <h3 class=\"page-title\">\r\n {{ 'UretimYonetimi::CreateBarcodes.Title' | abpLocalization }}\r\n </h3>\r\n </div>\r\n <div class=\"row text-lg-end pt-2\">\r\n <div class=\"col-8\">\r\n <button class=\"btn btn-success btn-sm\" type=\"button\" [disabled]=\"!this.selectedReceiptFromProductions\"\r\n (click)=\"showModal=true\">\r\n <i class=\"fa fa-plus me-1\"></i>\r\n {{ 'UretimYonetimi::CreateBarcodes.Print' | abpLocalization }}\r\n </button>\r\n </div>\r\n <div class=\"col-4\">\r\n <button class=\"btn btn-warning btn-sm\" type=\"button\" (click)=\"clearAll()\">\r\n <i class=\"fa fa-broom me-1\"></i>\r\n {{ 'UretimYonetimi::CreateBarcodes.Clean' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </abp-page-toolbar-container>\r\n <div class=\"card mt-2\">\r\n <div class=\"card-body\" style=\"height: calc(100vh - 241px); overflow: auto;\">\r\n <div style=\"display: flex; align-items: center;\">\r\n <dx-number-box #barkodNumarasiRef class=\"me-1\" style=\"width:100%;\"\r\n [label]=\"'UretimYonetimi::CreateBarcodes.WorkOrderNo' | abpLocalization\"\r\n [(value)]=\"isEmriBarkodu\"\r\n (onChange)=\"getProductionOrder()\" (onEnterKey)=\"getProductionOrder()\"\r\n [disabled]=\"searchBasildiMi || isEmriBarkoduGecerliMi\">\r\n </dx-number-box>\r\n <dx-button style=\"margin-top: 7.5px;\" icon=\"search\" type=\"default\" (onClick)=\"getProductionOrder()\"\r\n [disabled]=\"searchBasildiMi || isEmriBarkoduGecerliMi\">\r\n </dx-button>\r\n </div>\r\n\r\n <div class=\"mt-3\" *ngIf=\"isEmriBarkoduGecerliMi\">\r\n <dx-text-box style=\"width:100%;\" [label]=\"'UretimYonetimi::CreateBarcodes.ItemCode' | abpLocalization\"\r\n [(value)]=\"productionOrder.itemNo\" [disabled]=\"true\">\r\n </dx-text-box>\r\n <dx-text-box style=\"width:100%;\" [label]=\"'UretimYonetimi::CreateBarcodes.ItemName' | abpLocalization\"\r\n [(value)]=\"productionOrder.productDescription\" [disabled]=\"true\">\r\n </dx-text-box>\r\n <dx-text-box style=\"width:100%;\" [label]=\"'UretimYonetimi::CreateBarcodes.BatchNumber' | abpLocalization\"\r\n [(value)]=\"productionOrder.u_trkBatch\" [disabled]=\"true\">\r\n </dx-text-box>\r\n <dx-number-box style=\"width:100%;\" [label]=\"'UretimYonetimi::CreateBarcodes.PrintingQuantity' | abpLocalization\"\r\n [(value)]=\"printingQuantity\">\r\n </dx-number-box>\r\n <dx-data-grid #gridRFP class=\"mt-3\" [dataSource]=\"receiptFromProductions\" [columnAutoWidth]=\"true\"\r\n (onSelectionChanged)=\"selectReceiptFromProductions($event)\">\r\n <dxi-column dataField=\"quantity\"\r\n [caption]=\"'UretimYonetimi::CreateBarcodes.Quantity' | abpLocalization\"></dxi-column>\r\n <dxi-column dataField=\"docDateString\"\r\n [caption]=\"'UretimYonetimi::CreateBarcodes.Date' | abpLocalization\"></dxi-column>\r\n <dxo-selection mode=\"single\"></dxo-selection>\r\n </dx-data-grid>\r\n </div>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"showModal\" (appear)=\"generateReport()\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'UretimYonetimi::CreateBarcodes.BarcodePreview' | abpLocalization }}</h3>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <iframe *ngIf=\"pdfSrc\" [src]=\"pdfSrc\" width=\"100%\" height=\"300\"\r\n webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>\r\n </ng-template>\r\n <ng-template #abpFooter>\r\n <button (click)=\"downloadPdf(blobUrl)\" type=\"button\"\r\n class=\"btn btn-secondary mobilde-gorunur\" abpClose> \u0130ndir\r\n </button>\r\n <button type=\"button\"\r\n class=\"btn btn-secondary\" abpClose> {{ 'UretimYonetimi::CreateBarcodes.Close' | abpLocalization }}\r\n </button>\r\n </ng-template>\r\n</abp-modal>\r\n", styles: [".mobilde-gorunur{display:none}@media (max-width: 768px){.mobilde-gorunur{display:block}}\n"] }]
1362
+ }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i1.ListService }, { type: i1.TrackByService }, { type: HitCreateBarcodesService }, { type: i3.ConfirmationService }, { type: HitProductionOrdersService }, { type: i5.DomSanitizer }]; }, propDecorators: { nmbBoxBarkodNumarasi: [{
1363
+ type: ViewChild,
1364
+ args: ['barkodNumarasiRef', { static: false }]
1365
+ }], dataGrid: [{
1366
+ type: ViewChild,
1367
+ args: ['gridRFP', { static: false }]
1368
+ }] } });
1369
+
1370
+ const routes$1 = [
1371
+ {
1372
+ path: '',
1373
+ component: HitCreateBarcodesComponent,
1374
+ canActivate: [AuthGuard, PermissionGuard],
1375
+ },
1376
+ ];
1377
+ class HitCreateBarcodesRoutingModule {
1378
+ }
1379
+ HitCreateBarcodesRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitCreateBarcodesRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1380
+ HitCreateBarcodesRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitCreateBarcodesRoutingModule, imports: [i1$1.RouterModule], exports: [RouterModule] });
1381
+ HitCreateBarcodesRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitCreateBarcodesRoutingModule, imports: [RouterModule.forChild(routes$1), RouterModule] });
1382
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitCreateBarcodesRoutingModule, decorators: [{
1383
+ type: NgModule,
1384
+ args: [{
1385
+ imports: [RouterModule.forChild(routes$1)],
1386
+ exports: [RouterModule],
1387
+ }]
1388
+ }] });
1389
+
1390
+ class HitCreateBarcodesModule {
1391
+ }
1392
+ HitCreateBarcodesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitCreateBarcodesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1393
+ HitCreateBarcodesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: HitCreateBarcodesModule, declarations: [HitCreateBarcodesComponent], imports: [HitCreateBarcodesRoutingModule,
1394
+ CoreModule,
1395
+ ThemeSharedModule,
1396
+ CommercialUiModule,
1397
+ NgxValidateCoreModule,
1398
+ NgbCollapseModule,
1399
+ NgbDatepickerModule,
1400
+ NgbDropdownModule,
1401
+ PageModule,
1402
+ DxButtonModule,
1403
+ DxNumberBoxModule,
1404
+ DxTextBoxModule,
1405
+ DxDataGridModule] });
1406
+ HitCreateBarcodesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitCreateBarcodesModule, imports: [HitCreateBarcodesRoutingModule,
1407
+ CoreModule,
1408
+ ThemeSharedModule,
1409
+ CommercialUiModule,
1410
+ NgxValidateCoreModule,
1411
+ NgbCollapseModule,
1412
+ NgbDatepickerModule,
1413
+ NgbDropdownModule,
1414
+ PageModule,
1415
+ DxButtonModule,
1416
+ DxNumberBoxModule,
1417
+ DxTextBoxModule,
1418
+ DxDataGridModule] });
1419
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitCreateBarcodesModule, decorators: [{
1420
+ type: NgModule,
1421
+ args: [{
1422
+ declarations: [HitCreateBarcodesComponent],
1423
+ imports: [
1424
+ HitCreateBarcodesRoutingModule,
1425
+ CoreModule,
1426
+ ThemeSharedModule,
1427
+ CommercialUiModule,
1428
+ NgxValidateCoreModule,
1429
+ NgbCollapseModule,
1430
+ NgbDatepickerModule,
1431
+ NgbDropdownModule,
1432
+ PageModule,
1433
+ DxButtonModule,
1434
+ DxNumberBoxModule,
1435
+ DxTextBoxModule,
1436
+ DxDataGridModule,
1437
+ ],
1438
+ }]
1439
+ }] });
1440
+ function loadHitCreateBarcodesAsChild() {
1441
+ return Promise.resolve(HitCreateBarcodesModule);
1442
+ }
1443
+
1444
+ const routes = [
1445
+ {
1446
+ path: '',
1447
+ pathMatch: 'full',
1448
+ component: UretimYonetimiComponent,
1449
+ },
1450
+ { path: 'create-barcodes', loadChildren: loadHitCreateBarcodesAsChild },
1451
+ { path: 'production-orders', loadChildren: loadHitProductionOrdersAsChild },
1452
+ { path: 'issues-for-productions', loadChildren: loadHitIssuesForProductionsAsChild },
1453
+ { path: 'receipt-from-productions', loadChildren: loadHitReceiptFromProductionsAsChild }
1454
+ ];
1455
+ class UretimYonetimiRoutingModule {
1456
+ }
1457
+ UretimYonetimiRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: UretimYonetimiRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1458
+ UretimYonetimiRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: UretimYonetimiRoutingModule, imports: [i1$1.RouterModule], exports: [RouterModule] });
1459
+ UretimYonetimiRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: UretimYonetimiRoutingModule, imports: [RouterModule.forChild(routes), RouterModule] });
1460
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: UretimYonetimiRoutingModule, decorators: [{
1461
+ type: NgModule,
1462
+ args: [{
1463
+ imports: [RouterModule.forChild(routes)],
1464
+ exports: [RouterModule],
1465
+ }]
1466
+ }] });
1467
+
1468
+ class UretimYonetimiModule {
1469
+ constructor(replacementService, localizationService) {
1470
+ this.replacementService = replacementService;
1471
+ this.localizationService = localizationService;
1472
+ replacementService.add({
1473
+ key: 'ProductionOrderComponentKey',
1474
+ component: HitProductionOrdersComponent,
1475
+ });
1476
+ replacementService.add({
1477
+ key: 'ReceiptFromProductionsKey',
1478
+ component: HitReceiptFromProductionsComponent,
1479
+ });
1480
+ replacementService.add({
1481
+ key: 'IssuesForProductionsKey',
1482
+ component: HitIssuesForProductionsComponent,
1483
+ });
1484
+ replacementService.add({
1485
+ key: 'CreateBarcodesKey',
1486
+ component: HitCreateBarcodesComponent,
1487
+ });
1488
+ }
1489
+ static forChild() {
1490
+ return {
1491
+ ngModule: UretimYonetimiModule,
1492
+ providers: [],
1493
+ };
1494
+ }
1495
+ static forLazy() {
1496
+ return new LazyModuleFactory(UretimYonetimiModule.forChild());
1497
+ }
1498
+ ;
1499
+ }
1500
+ UretimYonetimiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: UretimYonetimiModule, deps: [{ token: i1.ReplaceableComponentsService }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.NgModule });
1501
+ UretimYonetimiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: UretimYonetimiModule, declarations: [UretimYonetimiComponent], imports: [CoreModule, ThemeSharedModule, UretimYonetimiRoutingModule], exports: [UretimYonetimiComponent] });
1502
+ UretimYonetimiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: UretimYonetimiModule, imports: [CoreModule, ThemeSharedModule, UretimYonetimiRoutingModule] });
1503
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: UretimYonetimiModule, decorators: [{
1504
+ type: NgModule,
1505
+ args: [{
1506
+ declarations: [UretimYonetimiComponent],
1507
+ imports: [CoreModule, ThemeSharedModule, UretimYonetimiRoutingModule],
1508
+ exports: [UretimYonetimiComponent],
1509
+ }]
1510
+ }], ctorParameters: function () { return [{ type: i1.ReplaceableComponentsService }, { type: i1.LocalizationService }]; } });
1511
+
1512
+ /*
1513
+ * Public API Surface of uretim-yonetimi
1514
+ */
1515
+
1516
+ /**
1517
+ * Generated bundle index. Do not edit.
1518
+ */
1519
+
1520
+ export { UretimYonetimiComponent, UretimYonetimiModule };
1521
+ //# sourceMappingURL=hitsoft-uretim-yonetimi.mjs.map