@hitsoft/uretim-yonetimi 1.0.10 → 1.0.12

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