@hitsoft/uretim-yonetimi 1.0.0

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