@hitsoft/abp.kadooglu 1.0.3 → 1.0.5

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.
@@ -1,14 +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
5
  import { Observable } from 'rxjs';
6
+ import { ScaleSignalRService } from '../../../services/scale-signalr.service';
6
7
  import { HitEntryWeighingService } from '../../../hit-proxy/hit-entry-weighing/hit-entry-weighing.service';
7
8
  import { HitStockTransferService } from '../../../hit-proxy/hit-stock-transfer/hit-stock-transfer.service';
8
9
  import { StockTransfer } from '../../../hit-proxy/hit-stock-transfer/models';
9
10
  import { EntryWeighing, EntryWeighingAccount, EntryWeighingDocument, EntryWeighingDriver, EntryWeighingGate, EntryWeighingScale, EntryWeighingStockItem, EntryWeighingTrailerPlate, EntryWeighingTruckPlate, EntryWeighingVehicleType } from '../../../hit-proxy/hit-entry-weighing/models';
10
11
  import * as i0 from "@angular/core";
11
- export declare class HitEntryWeighingFormComponent implements OnInit {
12
+ export declare class HitEntryWeighingFormComponent implements OnInit, OnDestroy {
12
13
  private service;
13
14
  private stockTransferService;
14
15
  private confirmation;
@@ -16,6 +17,7 @@ export declare class HitEntryWeighingFormComponent implements OnInit {
16
17
  private route;
17
18
  private router;
18
19
  private localizationService;
20
+ private scaleSignalRService;
19
21
  record: EntryWeighing | null;
20
22
  isUpdateMode: boolean;
21
23
  formPhase: 1 | 2;
@@ -161,9 +163,12 @@ export declare class HitEntryWeighingFormComponent implements OnInit {
161
163
  entryTypeTrtmYpilck: boolean;
162
164
  entryTypeMalGC: boolean;
163
165
  isDoingGoodsMovement: boolean;
166
+ private scaleSub;
167
+ private readonly scaleApiUrl;
168
+ private readonly scaleId;
164
169
  /** SAP response camelCase/PascalCase farkını handle eder */
165
170
  private getDocEntry;
166
- 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);
167
172
  ngOnInit(): void;
168
173
  get weighingStep(): number;
169
174
  /** İlk tartım yapıldıysa (step >= 2) detay alanlarını kilitle */
@@ -195,8 +200,10 @@ export declare class HitEntryWeighingFormComponent implements OnInit {
195
200
  geriGitPhase(): void;
196
201
  save(): void;
197
202
  doGoodsMovement(): void;
198
- doWeighing(): void;
199
203
  sabitle(): void;
204
+ ngOnDestroy(): void;
205
+ private _startScale;
206
+ private _stopScale;
200
207
  goBack(): void;
201
208
  private validateTCKN;
202
209
  static ɵfac: i0.ɵɵFactoryDeclaration<HitEntryWeighingFormComponent, never>;
@@ -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;
@@ -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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hitsoft/abp.kadooglu",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=9",
6
6
  "@angular/core": ">=9",