@hitsoft/abp.kadooglu 1.0.2 → 1.0.4
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.
- package/README.md +24 -24
- package/esm2020/config/enums/index.mjs +1 -1
- package/esm2020/config/providers/index.mjs +1 -1
- package/esm2020/config/public-api.mjs +1 -1
- package/esm2020/lib/components/kadooglu.component.mjs +1 -1
- package/esm2020/lib/hit-components/hit-entry-weighing/hit-entry-weighing-form/hit-entry-weighing-form.component.mjs +85 -23
- package/esm2020/lib/hit-components/hit-entry-weighing/hit-entry-weighing-list/hit-entry-weighing-list.component.mjs +44 -4
- package/esm2020/lib/hit-components/hit-factory-entry/hit-factory-entry-list/hit-factory-entry-list.component.mjs +8 -3
- package/esm2020/lib/hit-proxy/hit-entry-weighing/hit-entry-weighing.service.mjs +4 -1
- package/esm2020/lib/services/kadooglu.service.mjs +1 -1
- package/esm2020/lib/services/scale-signalr.service.mjs +61 -0
- package/esm2020/lib/shared/hit-modal/hit-modal.component.mjs +3 -3
- package/fesm2015/hitsoft-abp.kadooglu.mjs +214 -38
- package/fesm2015/hitsoft-abp.kadooglu.mjs.map +1 -1
- package/fesm2020/hitsoft-abp.kadooglu.mjs +204 -38
- package/fesm2020/hitsoft-abp.kadooglu.mjs.map +1 -1
- package/lib/hit-components/hit-entry-weighing/hit-entry-weighing-form/hit-entry-weighing-form.component.d.ts +24 -14
- package/lib/hit-components/hit-entry-weighing/hit-entry-weighing-list/hit-entry-weighing-list.component.d.ts +6 -0
- package/lib/hit-components/hit-factory-entry/hit-factory-entry-list/hit-factory-entry-list.component.d.ts +5 -0
- package/lib/hit-proxy/hit-entry-weighing/hit-entry-weighing.service.d.ts +3 -0
- package/lib/services/scale-signalr.service.d.ts +20 -0
- package/package.json +1 -1
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
3
|
import { ConfirmationService, ToasterService } from '@abp/ng.theme.shared';
|
|
4
4
|
import { LocalizationService } from '@abp/ng.core';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import { ScaleSignalRService } from '../../../services/scale-signalr.service';
|
|
5
7
|
import { HitEntryWeighingService } from '../../../hit-proxy/hit-entry-weighing/hit-entry-weighing.service';
|
|
6
8
|
import { HitStockTransferService } from '../../../hit-proxy/hit-stock-transfer/hit-stock-transfer.service';
|
|
7
9
|
import { StockTransfer } from '../../../hit-proxy/hit-stock-transfer/models';
|
|
8
10
|
import { EntryWeighing, EntryWeighingAccount, EntryWeighingDocument, EntryWeighingDriver, EntryWeighingGate, EntryWeighingScale, EntryWeighingStockItem, EntryWeighingTrailerPlate, EntryWeighingTruckPlate, EntryWeighingVehicleType } from '../../../hit-proxy/hit-entry-weighing/models';
|
|
9
11
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class HitEntryWeighingFormComponent implements OnInit {
|
|
12
|
+
export declare class HitEntryWeighingFormComponent implements OnInit, OnDestroy {
|
|
11
13
|
private service;
|
|
12
14
|
private stockTransferService;
|
|
13
15
|
private confirmation;
|
|
@@ -15,20 +17,21 @@ export declare class HitEntryWeighingFormComponent implements OnInit {
|
|
|
15
17
|
private route;
|
|
16
18
|
private router;
|
|
17
19
|
private localizationService;
|
|
20
|
+
private scaleSignalRService;
|
|
18
21
|
record: EntryWeighing | null;
|
|
19
22
|
isUpdateMode: boolean;
|
|
20
23
|
formPhase: 1 | 2;
|
|
21
24
|
weighingMode: 'first' | 'last' | null;
|
|
22
|
-
loadDocuments: () =>
|
|
23
|
-
loadScales: () =>
|
|
24
|
-
loadTruckPlates: () =>
|
|
25
|
-
loadTrailerPlates: () =>
|
|
26
|
-
loadDrivers: () =>
|
|
27
|
-
loadAccounts: () =>
|
|
28
|
-
loadStockItems: () =>
|
|
29
|
-
loadWaybills: () =>
|
|
30
|
-
loadGates: () =>
|
|
31
|
-
loadVehicleTypes: () =>
|
|
25
|
+
loadDocuments: () => Observable<EntryWeighingDocument[]>;
|
|
26
|
+
loadScales: () => Observable<EntryWeighingScale[]>;
|
|
27
|
+
loadTruckPlates: () => Observable<EntryWeighingTruckPlate[]>;
|
|
28
|
+
loadTrailerPlates: () => Observable<EntryWeighingTrailerPlate[]>;
|
|
29
|
+
loadDrivers: () => Observable<EntryWeighingDriver[]>;
|
|
30
|
+
loadAccounts: () => Observable<EntryWeighingAccount[]>;
|
|
31
|
+
loadStockItems: () => Observable<EntryWeighingStockItem[]>;
|
|
32
|
+
loadWaybills: () => Observable<StockTransfer[]>;
|
|
33
|
+
loadGates: () => Observable<EntryWeighingGate[]>;
|
|
34
|
+
loadVehicleTypes: () => Observable<EntryWeighingVehicleType[]>;
|
|
32
35
|
documentColumns: ({
|
|
33
36
|
dataField: string;
|
|
34
37
|
caption: string;
|
|
@@ -154,14 +157,18 @@ export declare class HitEntryWeighingFormComponent implements OnInit {
|
|
|
154
157
|
lastOperatorCode: string;
|
|
155
158
|
lastWeighingValue: number | null;
|
|
156
159
|
currentScaleValue: number | null;
|
|
160
|
+
fixedScaleValue: number | null;
|
|
157
161
|
isSaving: boolean;
|
|
158
162
|
isWeighing: boolean;
|
|
159
163
|
entryTypeTrtmYpilck: boolean;
|
|
160
164
|
entryTypeMalGC: boolean;
|
|
161
165
|
isDoingGoodsMovement: boolean;
|
|
166
|
+
private scaleSub;
|
|
167
|
+
private readonly scaleApiUrl;
|
|
168
|
+
private readonly scaleId;
|
|
162
169
|
/** SAP response camelCase/PascalCase farkını handle eder */
|
|
163
170
|
private getDocEntry;
|
|
164
|
-
constructor(service: HitEntryWeighingService, stockTransferService: HitStockTransferService, confirmation: ConfirmationService, toaster: ToasterService, route: ActivatedRoute, router: Router, localizationService: LocalizationService);
|
|
171
|
+
constructor(service: HitEntryWeighingService, stockTransferService: HitStockTransferService, confirmation: ConfirmationService, toaster: ToasterService, route: ActivatedRoute, router: Router, localizationService: LocalizationService, scaleSignalRService: ScaleSignalRService);
|
|
165
172
|
ngOnInit(): void;
|
|
166
173
|
get weighingStep(): number;
|
|
167
174
|
/** İlk tartım yapıldıysa (step >= 2) detay alanlarını kilitle */
|
|
@@ -193,7 +200,10 @@ export declare class HitEntryWeighingFormComponent implements OnInit {
|
|
|
193
200
|
geriGitPhase(): void;
|
|
194
201
|
save(): void;
|
|
195
202
|
doGoodsMovement(): void;
|
|
196
|
-
|
|
203
|
+
sabitle(): void;
|
|
204
|
+
ngOnDestroy(): void;
|
|
205
|
+
private _startScale;
|
|
206
|
+
private _stopScale;
|
|
197
207
|
goBack(): void;
|
|
198
208
|
private validateTCKN;
|
|
199
209
|
static ɵfac: i0.ɵɵFactoryDeclaration<HitEntryWeighingFormComponent, never>;
|
|
@@ -24,6 +24,10 @@ export declare class HitEntryWeighingListComponent implements OnInit {
|
|
|
24
24
|
weighingTypes: Set<string>;
|
|
25
25
|
disabledIdColumn: boolean;
|
|
26
26
|
filterMode: 'all' | 'pending';
|
|
27
|
+
statusFilterDataSource: {
|
|
28
|
+
text: string;
|
|
29
|
+
value: string;
|
|
30
|
+
}[];
|
|
27
31
|
constructor(service: HitEntryWeighingService, confirmation: ConfirmationService, router: Router, localizationService: LocalizationService, gateService: HitGateService);
|
|
28
32
|
ngOnInit(): void;
|
|
29
33
|
loadList(): void;
|
|
@@ -34,6 +38,7 @@ export declare class HitEntryWeighingListComponent implements OnInit {
|
|
|
34
38
|
yeniKayit(): void;
|
|
35
39
|
duzenle(row: EntryWeighing): void;
|
|
36
40
|
tartimYap(row: EntryWeighing, mode: 'first' | 'last'): void;
|
|
41
|
+
ozetiGoruntule(row: EntryWeighing): void;
|
|
37
42
|
sil(row: any): void;
|
|
38
43
|
formatPlate(plate: string | null): string;
|
|
39
44
|
formatEntryDateTime(dateStr: string | null, timeStr: string | null): string;
|
|
@@ -41,6 +46,7 @@ export declare class HitEntryWeighingListComponent implements OnInit {
|
|
|
41
46
|
getStatusLabel(status: string | null): string;
|
|
42
47
|
getStatusClass(status: string | null): string;
|
|
43
48
|
malGcYap(row: EntryWeighing): void;
|
|
49
|
+
barkodYazdir(row: EntryWeighing): void;
|
|
44
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<HitEntryWeighingListComponent, never>;
|
|
45
51
|
static ɵcmp: i0.ɵɵComponentDeclaration<HitEntryWeighingListComponent, "lib-hit-entry-weighing-list", never, {}, {}, never, never, false>;
|
|
46
52
|
}
|
|
@@ -19,6 +19,11 @@ export declare class HitFactoryEntryListComponent implements OnInit {
|
|
|
19
19
|
showForm: boolean;
|
|
20
20
|
disabledIdColumn: boolean;
|
|
21
21
|
selectedRecord: FactoryEntry | null;
|
|
22
|
+
factoryStatusFilterDataSource: {
|
|
23
|
+
value: string;
|
|
24
|
+
text: string;
|
|
25
|
+
}[];
|
|
26
|
+
calcFactoryStatus: (row: FactoryEntry) => string;
|
|
22
27
|
constructor(confirmation: ConfirmationService, service: HitFactoryEntryService, vehicleTypeService: HitVehicleTypeService, localizationService: LocalizationService);
|
|
23
28
|
ngOnInit(): void;
|
|
24
29
|
loadList(): void;
|
|
@@ -44,6 +44,9 @@ export declare class HitEntryWeighingService {
|
|
|
44
44
|
getGates(): Observable<EntryWeighingGate[]>;
|
|
45
45
|
getVehicleTypes(): Observable<EntryWeighingVehicleType[]>;
|
|
46
46
|
doGoodsMovement(docEntry: number): Observable<EntryWeighing>;
|
|
47
|
+
getWeighingSlip(docEntry: number): Observable<{
|
|
48
|
+
base64: string;
|
|
49
|
+
}>;
|
|
47
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<HitEntryWeighingService, never>;
|
|
48
51
|
static ɵprov: i0.ɵɵInjectableDeclaration<HitEntryWeighingService>;
|
|
49
52
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ScaleSignalRService implements OnDestroy {
|
|
5
|
+
private connection;
|
|
6
|
+
private readonly _weight$;
|
|
7
|
+
readonly weight$: Observable<number | null>;
|
|
8
|
+
/**
|
|
9
|
+
* SignalR bağlantısını başlatır ve ilgili kantar grubuna abone olur.
|
|
10
|
+
* Zaten bağlıysa sadece gruba abone olur.
|
|
11
|
+
*/
|
|
12
|
+
start(apiBaseUrl: string, scaleId: string): Promise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* Kantar grubundan çıkar ve bağlantıyı kapatır.
|
|
15
|
+
*/
|
|
16
|
+
stop(scaleId: string): Promise<void>;
|
|
17
|
+
ngOnDestroy(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScaleSignalRService, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ScaleSignalRService>;
|
|
20
|
+
}
|