@hitsoft/abp.kadooglu 1.0.11 → 1.0.13

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 (34) hide show
  1. package/esm2020/lib/hit-components/hit-carrier-person/hit-carrier-person-form/hit-carrier-person-form.component.mjs +4 -3
  2. package/esm2020/lib/hit-components/hit-entry-weighing/hit-entry-weighing-form/hit-entry-weighing-form.component.mjs +278 -109
  3. package/esm2020/lib/hit-components/hit-entry-weighing/hit-entry-weighing-list/hit-entry-weighing-list.component.mjs +40 -29
  4. package/esm2020/lib/hit-components/hit-factory-entry/hit-factory-entry-form/hit-factory-entry-form.component.mjs +52 -6
  5. package/esm2020/lib/hit-components/hit-factory-entry/hit-factory-entry-list/hit-factory-entry-list.component.mjs +3 -3
  6. package/esm2020/lib/hit-components/hit-knt-item-esl/hit-knt-item-esl-form/hit-knt-item-esl-form.component.mjs +4 -4
  7. package/esm2020/lib/hit-components/hit-vehicle-type/hit-vehicle-type-form/hit-vehicle-type-form.component.mjs +1 -1
  8. package/esm2020/lib/hit-proxy/hit-carrier-person/models.mjs +1 -1
  9. package/esm2020/lib/hit-proxy/hit-entry-weighing/hit-entry-weighing.service.mjs +2 -2
  10. package/esm2020/lib/hit-proxy/hit-entry-weighing/models.mjs +1 -1
  11. package/esm2020/lib/hit-proxy/hit-factory-entry/models.mjs +1 -1
  12. package/esm2020/lib/hit-proxy/hit-purchase-delivery-note/hit-purchase-delivery-note.service.mjs +4 -1
  13. package/esm2020/lib/hit-proxy/hit-purchase-delivery-note/models.mjs +1 -1
  14. package/esm2020/lib/hit-proxy/hit-stock-transfer/hit-stock-transfer.service.mjs +4 -1
  15. package/esm2020/lib/hit-proxy/hit-stock-transfer/models.mjs +1 -1
  16. package/esm2020/lib/services/scale-signalr.service.mjs +4 -1
  17. package/esm2020/lib/shared/hit-modal/hit-modal.component.mjs +68 -16
  18. package/fesm2015/hitsoft-abp.kadooglu.mjs +456 -166
  19. package/fesm2015/hitsoft-abp.kadooglu.mjs.map +1 -1
  20. package/fesm2020/hitsoft-abp.kadooglu.mjs +444 -160
  21. package/fesm2020/hitsoft-abp.kadooglu.mjs.map +1 -1
  22. package/lib/hit-components/hit-entry-weighing/hit-entry-weighing-form/hit-entry-weighing-form.component.d.ts +20 -7
  23. package/lib/hit-components/hit-entry-weighing/hit-entry-weighing-list/hit-entry-weighing-list.component.d.ts +8 -1
  24. package/lib/hit-components/hit-factory-entry/hit-factory-entry-form/hit-factory-entry-form.component.d.ts +2 -0
  25. package/lib/hit-proxy/hit-carrier-person/models.d.ts +2 -0
  26. package/lib/hit-proxy/hit-entry-weighing/models.d.ts +5 -0
  27. package/lib/hit-proxy/hit-factory-entry/models.d.ts +13 -4
  28. package/lib/hit-proxy/hit-purchase-delivery-note/hit-purchase-delivery-note.service.d.ts +1 -0
  29. package/lib/hit-proxy/hit-purchase-delivery-note/models.d.ts +6 -0
  30. package/lib/hit-proxy/hit-stock-transfer/hit-stock-transfer.service.d.ts +1 -0
  31. package/lib/hit-proxy/hit-stock-transfer/models.d.ts +2 -0
  32. package/lib/services/scale-signalr.service.d.ts +2 -0
  33. package/lib/shared/hit-modal/hit-modal.component.d.ts +25 -2
  34. package/package.json +1 -1
@@ -6,12 +6,20 @@ import { Observable } from 'rxjs';
6
6
  import { ScaleSignalRService } from '../../../services/scale-signalr.service';
7
7
  import { HitEntryWeighingService } from '../../../hit-proxy/hit-entry-weighing/hit-entry-weighing.service';
8
8
  import { HitStockTransferService } from '../../../hit-proxy/hit-stock-transfer/hit-stock-transfer.service';
9
- import { StockTransfer } from '../../../hit-proxy/hit-stock-transfer/models';
9
+ import { HitPurchaseDeliveryNoteService } from '../../../hit-proxy/hit-purchase-delivery-note/hit-purchase-delivery-note.service';
10
+ import { HitCarrierPersonService } from '../../../hit-proxy/hit-carrier-person/hit-carrier-person.service';
11
+ import { HitUserGateService } from '../../../hit-proxy/hit-user-gate/hit-user-gate.service';
12
+ import { HitGateService } from '../../../hit-proxy/hit-gate/hit-gate.service';
13
+ import { LookupTab } from '../../../shared/hit-modal/hit-modal.component';
10
14
  import { EntryWeighing, EntryWeighingAccount, EntryWeighingDocument, EntryWeighingDriver, EntryWeighingGate, EntryWeighingScale, EntryWeighingStockItem, EntryWeighingTrailerPlate, EntryWeighingTruckPlate, EntryWeighingVehicleType } from '../../../hit-proxy/hit-entry-weighing/models';
11
15
  import * as i0 from "@angular/core";
12
16
  export declare class HitEntryWeighingFormComponent implements OnInit, OnDestroy {
13
17
  private service;
14
18
  private stockTransferService;
19
+ private purchaseDeliveryNoteService;
20
+ private carrierPersonService;
21
+ private userGateService;
22
+ private gateService;
15
23
  private confirmation;
16
24
  private toaster;
17
25
  private route;
@@ -29,9 +37,7 @@ export declare class HitEntryWeighingFormComponent implements OnInit, OnDestroy
29
37
  loadDrivers: () => Observable<EntryWeighingDriver[]>;
30
38
  loadAccounts: () => Observable<EntryWeighingAccount[]>;
31
39
  loadStockItems: () => Observable<EntryWeighingStockItem[]>;
32
- waybillDefaultDateFrom: Date;
33
- waybillDefaultDateTo: Date;
34
- loadWaybills: (params?: any) => Observable<StockTransfer[]>;
40
+ waybillTabs: LookupTab[];
35
41
  loadGates: () => Observable<EntryWeighingGate[]>;
36
42
  loadVehicleTypes: () => Observable<EntryWeighingVehicleType[]>;
37
43
  documentColumns: any[];
@@ -41,7 +47,6 @@ export declare class HitEntryWeighingFormComponent implements OnInit, OnDestroy
41
47
  driverColumns: any[];
42
48
  accountColumns: any[];
43
49
  stockItemColumns: any[];
44
- waybillColumns: any[];
45
50
  gateColumns: any[];
46
51
  vehicleTypeColumns: any[];
47
52
  documentCode: string;
@@ -82,6 +87,7 @@ export declare class HitEntryWeighingFormComponent implements OnInit, OnDestroy
82
87
  fixedScaleValue: number | null;
83
88
  isSaving: boolean;
84
89
  isWeighing: boolean;
90
+ isWaybillLoading: boolean;
85
91
  entryTypeTrtmYpilck: boolean;
86
92
  entryTypeMalGC: boolean;
87
93
  isDoingGoodsMovement: boolean;
@@ -93,7 +99,7 @@ export declare class HitEntryWeighingFormComponent implements OnInit, OnDestroy
93
99
  private readonly scaleId;
94
100
  /** SAP response camelCase/PascalCase farkını handle eder */
95
101
  private getDocEntry;
96
- constructor(service: HitEntryWeighingService, stockTransferService: HitStockTransferService, confirmation: ConfirmationService, toaster: ToasterService, route: ActivatedRoute, router: Router, localizationService: LocalizationService, scaleSignalRService: ScaleSignalRService);
102
+ constructor(service: HitEntryWeighingService, stockTransferService: HitStockTransferService, purchaseDeliveryNoteService: HitPurchaseDeliveryNoteService, carrierPersonService: HitCarrierPersonService, userGateService: HitUserGateService, gateService: HitGateService, confirmation: ConfirmationService, toaster: ToasterService, route: ActivatedRoute, router: Router, localizationService: LocalizationService, scaleSignalRService: ScaleSignalRService);
97
103
  ngOnInit(): void;
98
104
  get weighingStep(): number;
99
105
  /** İlk tartım yapıldıysa (step >= 2) detay alanlarını kilitle */
@@ -118,17 +124,24 @@ export declare class HitEntryWeighingFormComponent implements OnInit, OnDestroy
118
124
  onStockItemSelected(e: EntryWeighingStockItem): void;
119
125
  onGateSelected(e: EntryWeighingGate): void;
120
126
  onVehicleTypeSelected(e: EntryWeighingVehicleType): void;
121
- onWaybillSelected(e: StockTransfer): void;
127
+ onWaybillSelected(e: any): void;
128
+ /** İrsaliye detayından Araç & Sürücü bilgilerini otomatik doldurur */
129
+ private applyWaybillAutoFill;
122
130
  /** Phase 1 → Phase 2 geçişi */
123
131
  ileriGit(): void;
124
132
  /** Phase 2 → Phase 1 geri dön */
125
133
  geriGitPhase(): void;
126
134
  save(): void;
127
135
  doGoodsMovement(): void;
136
+ barkodYazdir(): void;
128
137
  sabitle(): void;
129
138
  ngOnDestroy(): void;
130
139
  private _startScale;
131
140
  private _stopScale;
141
+ /** Yeni kayıt için giriş tarihini şu anki tarih/saat ile doldurur */
142
+ private setDefaultEntryDateTime;
143
+ /** Yeni kayıt için kullanıcının varsayılan kapısını yükler */
144
+ private loadDefaultGate;
132
145
  goBack(): void;
133
146
  private validateTCKN;
134
147
  static ɵfac: i0.ɵɵFactoryDeclaration<HitEntryWeighingFormComponent, never>;
@@ -8,6 +8,7 @@ import { EntryWeighing } from '../../../hit-proxy/hit-entry-weighing/models';
8
8
  import { VehicleType } from '../../../hit-proxy/hit-vehicle-type/models';
9
9
  import { HitGateService } from '../../../hit-proxy/hit-gate/hit-gate.service';
10
10
  import { Gate } from '../../../hit-proxy/hit-gate/models';
11
+ import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
11
12
  import * as i0 from "@angular/core";
12
13
  export declare class HitEntryWeighingListComponent implements OnInit {
13
14
  private service;
@@ -15,6 +16,7 @@ export declare class HitEntryWeighingListComponent implements OnInit {
15
16
  private router;
16
17
  private localizationService;
17
18
  private gateService;
19
+ private sanitizer;
18
20
  dataGrid: DxDataGridComponent;
19
21
  allData: EntryWeighing[];
20
22
  filteredData: EntryWeighing[];
@@ -28,7 +30,10 @@ export declare class HitEntryWeighingListComponent implements OnInit {
28
30
  text: string;
29
31
  value: string;
30
32
  }[];
31
- constructor(service: HitEntryWeighingService, confirmation: ConfirmationService, router: Router, localizationService: LocalizationService, gateService: HitGateService);
33
+ printModalVisible: boolean;
34
+ safePrintUrl: SafeResourceUrl | null;
35
+ private printBlobUrl;
36
+ constructor(service: HitEntryWeighingService, confirmation: ConfirmationService, router: Router, localizationService: LocalizationService, gateService: HitGateService, sanitizer: DomSanitizer);
32
37
  ngOnInit(): void;
33
38
  loadList(): void;
34
39
  setFilter(mode: 'all' | 'pending'): void;
@@ -47,6 +52,8 @@ export declare class HitEntryWeighingListComponent implements OnInit {
47
52
  getStatusClass(status: string | null): string;
48
53
  malGcYap(row: EntryWeighing): void;
49
54
  barkodYazdir(row: EntryWeighing): void;
55
+ doPrint(): void;
56
+ closePrintModal(): void;
50
57
  static ɵfac: i0.ɵɵFactoryDeclaration<HitEntryWeighingListComponent, never>;
51
58
  static ɵcmp: i0.ɵɵComponentDeclaration<HitEntryWeighingListComponent, "lib-hit-entry-weighing-list", never, {}, {}, never, never, false>;
52
59
  }
@@ -75,6 +75,7 @@ export declare class HitFactoryEntryFormComponent implements OnInit, OnChanges {
75
75
  exitDateTime: Date | null;
76
76
  selectedTypeCode: string;
77
77
  selectedTypeName: string;
78
+ selectedType: VehicleType | null;
78
79
  selectedPlateNo: string;
79
80
  tcNo: string;
80
81
  selectedCarrierName: string;
@@ -101,6 +102,7 @@ export declare class HitFactoryEntryFormComponent implements OnInit, OnChanges {
101
102
  private initForm;
102
103
  private buildDateTime;
103
104
  onTypeSelected(e: VehicleType): void;
105
+ get showExtraFields(): boolean;
104
106
  onPlateSelected(e: Plate): void;
105
107
  onTrailerPlateSelected(e: Plate): void;
106
108
  onManualPlateFocusOut(): void;
@@ -8,6 +8,7 @@ export interface CarrierPerson {
8
8
  u_Active: string;
9
9
  u_DefBP: string;
10
10
  u_CarrierFirm: string;
11
+ u_TcVtndsiMi?: string;
11
12
  }
12
13
  export interface SaveCarrierPersonDto {
13
14
  code: string;
@@ -19,4 +20,5 @@ export interface SaveCarrierPersonDto {
19
20
  u_Active: string;
20
21
  u_DefBP: string;
21
22
  u_CarrierFirm: string;
23
+ u_TcVtndsiMi?: string;
22
24
  }
@@ -17,6 +17,7 @@ export interface EntryWeighingTrailerPlate {
17
17
  export interface EntryWeighingDriver {
18
18
  code: string;
19
19
  name: string;
20
+ u_TcVtndsiMi?: string;
20
21
  }
21
22
  export interface EntryWeighingAccount {
22
23
  code: string;
@@ -71,7 +72,11 @@ export interface EntryWeighing {
71
72
  u_CardCode: string;
72
73
  u_ScaleCode: string;
73
74
  u_FirstWeighing: number | null;
75
+ u_FWDate: string | null;
76
+ u_FWTime: string | null;
74
77
  u_LastWeighing: number | null;
78
+ u_LWDate: string | null;
79
+ u_LWTime: string | null;
75
80
  u_Net: number | null;
76
81
  u_ItemCode: string;
77
82
  u_DespatchAdviceNo: string;
@@ -9,6 +9,10 @@ export interface FactoryEntry {
9
9
  u_EntryTime?: number;
10
10
  u_ExitDate?: string;
11
11
  u_ExitTime?: number;
12
+ u_FWDate?: string;
13
+ u_FWTime?: number;
14
+ u_LWDate?: string;
15
+ u_LWTime?: number;
12
16
  u_Plate?: string;
13
17
  u_DorsePlate?: string;
14
18
  u_EntryType?: string;
@@ -19,16 +23,18 @@ export interface FactoryEntry {
19
23
  u_Status?: string;
20
24
  u_AbpUsername?: string;
21
25
  u_GateCode?: string;
26
+ u_DespatchAdviceNo?: string;
27
+ u_DespatchExist?: string;
22
28
  }
23
29
  export interface SaveFactoryEntryDto {
24
30
  u_GateCode?: string;
25
31
  u_EntryType: string;
26
- u_Plate: string;
32
+ u_Plate?: string;
27
33
  u_DorsePlate?: string;
28
- u_TcNo: string;
34
+ u_TcNo?: string;
29
35
  u_Driver?: string;
30
- u_CardCode: string;
31
- u_Description: string;
36
+ u_CardCode?: string;
37
+ u_Description?: string;
32
38
  u_EntryDate?: string;
33
39
  u_EntryTime?: number;
34
40
  u_ExitDate?: string;
@@ -37,4 +43,7 @@ export interface SaveFactoryEntryDto {
37
43
  u_DriverFirstname?: string;
38
44
  u_DriverLastname?: string;
39
45
  u_DriverTel?: string;
46
+ u_TcVtndsiMi?: string;
47
+ u_WaybillDocEntry?: number;
48
+ u_WaybillSourceType?: string;
40
49
  }
@@ -8,6 +8,7 @@ export declare class HitPurchaseDeliveryNoteService {
8
8
  baseUrl: string;
9
9
  constructor(restService: RestService);
10
10
  getList(params?: any): Observable<PurchaseDeliveryNote[]>;
11
+ get(docEntry: number): Observable<PurchaseDeliveryNote>;
11
12
  static ɵfac: i0.ɵɵFactoryDeclaration<HitPurchaseDeliveryNoteService, never>;
12
13
  static ɵprov: i0.ɵɵInjectableDeclaration<HitPurchaseDeliveryNoteService>;
13
14
  }
@@ -6,4 +6,10 @@ export interface PurchaseDeliveryNote {
6
6
  docDate: string;
7
7
  docTotal: number;
8
8
  comments: string;
9
+ u_EFATNO?: string;
10
+ u_AracPlakasi?: string;
11
+ u_DorsePlakalar?: string;
12
+ u_SoforAd?: string;
13
+ u_SoforSoyadi?: string;
14
+ u_SoforKimlik?: string;
9
15
  }
@@ -8,6 +8,7 @@ export declare class HitStockTransferService {
8
8
  baseUrl: string;
9
9
  constructor(restService: RestService);
10
10
  getList(params?: any): Observable<StockTransfer[]>;
11
+ get(docEntry: number): Observable<StockTransfer>;
11
12
  static ɵfac: i0.ɵɵFactoryDeclaration<HitStockTransferService, never>;
12
13
  static ɵprov: i0.ɵɵInjectableDeclaration<HitStockTransferService>;
13
14
  }
@@ -15,5 +15,7 @@ export interface StockTransfer {
15
15
  u_SoforAd?: string;
16
16
  u_SoforSoyadi?: string;
17
17
  u_AracPlakasi?: string;
18
+ u_DorsePlakalar?: string;
19
+ u_SoforKimlik?: string;
18
20
  stockTransferLines?: StockTransferLine[];
19
21
  }
@@ -7,9 +7,11 @@ export declare class ScaleSignalRService implements OnDestroy {
7
7
  private readonly _weight$;
8
8
  private readonly _connectionLost$;
9
9
  private readonly _reconnecting$;
10
+ private readonly _reconnected$;
10
11
  readonly weight$: Observable<number | null>;
11
12
  readonly connectionLost$: Observable<void>;
12
13
  readonly reconnecting$: Observable<void>;
14
+ readonly reconnected$: Observable<void>;
13
15
  /**
14
16
  * SignalR bağlantısını başlatır ve ilgili kantar grubuna abone olur.
15
17
  * Zaten bağlıysa sadece gruba abone olur.
@@ -3,6 +3,23 @@ import { LocalizationService } from '@abp/ng.core';
3
3
  import { DxDataGridComponent } from 'devextreme-angular';
4
4
  import { Observable } from 'rxjs';
5
5
  import * as i0 from "@angular/core";
6
+ export interface LookupTab {
7
+ title: string;
8
+ loadFn: (params?: any) => Observable<any[]>;
9
+ columns: any[];
10
+ keyExpr?: string;
11
+ displayName: string;
12
+ showDateFilter?: boolean;
13
+ defaultDateFrom?: Date | null;
14
+ defaultDateTo?: Date | null;
15
+ }
16
+ interface LookupTabState {
17
+ data: any[];
18
+ isLoading: boolean;
19
+ isLoaded: boolean;
20
+ filterDateFrom: Date | null;
21
+ filterDateTo: Date | null;
22
+ }
6
23
  export declare class HitModalComponent {
7
24
  private localizationService;
8
25
  dxdataInstance: DxDataGridComponent;
@@ -21,6 +38,7 @@ export declare class HitModalComponent {
21
38
  showDateFilter: boolean;
22
39
  defaultDateFrom: Date | null;
23
40
  defaultDateTo: Date | null;
41
+ tabs: LookupTab[];
24
42
  /** Pre-populate display text (e.g. in edit mode). Setter ensures reactive updates. */
25
43
  set editingData(val: any);
26
44
  selected: EventEmitter<any>;
@@ -30,14 +48,19 @@ export declare class HitModalComponent {
30
48
  textDisplay: string;
31
49
  filterDateFrom: Date | null;
32
50
  filterDateTo: Date | null;
51
+ activeTabIndex: number;
52
+ tabStates: LookupTabState[];
33
53
  clickForOpenModal(): void;
54
+ onTabClick(index: number): void;
55
+ private loadTabData;
34
56
  loadData(): void;
35
57
  onDateFilterChanged(): void;
36
- onToolbarPreparing(e: any): void;
58
+ onToolbarPreparing(e: any, tabIndex?: number): void;
37
59
  private toDateStr;
38
60
  setTitle(): void;
39
61
  setTitleOnDoubleClick(e: any): void;
40
62
  clearValue(): void;
41
63
  static ɵfac: i0.ɵɵFactoryDeclaration<HitModalComponent, never>;
42
- static ɵcmp: i0.ɵɵComponentDeclaration<HitModalComponent, "hit-lookup-select", never, { "displayName": "displayName"; "keyExpr": "keyExpr"; "modalSize": "modalSize"; "getFn": "getFn"; "loadFn": "loadFn"; "columns": "columns"; "isVisible": "isVisible"; "disabled": "disabled"; "readOnly": "readOnly"; "showDateFilter": "showDateFilter"; "defaultDateFrom": "defaultDateFrom"; "defaultDateTo": "defaultDateTo"; "editingData": "editingData"; }, { "selected": "selected"; }, never, never, false>;
64
+ static ɵcmp: i0.ɵɵComponentDeclaration<HitModalComponent, "hit-lookup-select", never, { "displayName": "displayName"; "keyExpr": "keyExpr"; "modalSize": "modalSize"; "getFn": "getFn"; "loadFn": "loadFn"; "columns": "columns"; "isVisible": "isVisible"; "disabled": "disabled"; "readOnly": "readOnly"; "showDateFilter": "showDateFilter"; "defaultDateFrom": "defaultDateFrom"; "defaultDateTo": "defaultDateTo"; "tabs": "tabs"; "editingData": "editingData"; }, { "selected": "selected"; }, never, never, false>;
43
65
  }
66
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hitsoft/abp.kadooglu",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=9",
6
6
  "@angular/core": ">=9",