@hitsoft/uretim-yonetimi 1.0.17 → 1.0.18

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