@hitsoft/uretim-yonetimi 1.0.17 → 1.0.19

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