@hitsoft/uretim-yonetimi 1.0.15 → 1.0.17

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