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