@colijnit/sharedcomponents 1.0.7 → 1.0.10
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/bundles/colijnit-sharedcomponents.umd.js +746 -0
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -0
- package/colijnit-sharedcomponents.d.ts +6 -0
- package/colijnit-sharedcomponents.metadata.json +1 -0
- package/esm2015/colijnit-sharedcomponents.js +7 -0
- package/esm2015/lib/components/docsign/component/signature/signature.component.js +75 -0
- package/esm2015/lib/components/docsign/component/signatures/signatures.component.js +44 -0
- package/esm2015/lib/components/docsign/docsign.component.js +225 -0
- package/esm2015/lib/components/docsign/docsign.module.js +23 -0
- package/esm2015/public-api.js +6 -0
- package/fesm2015/colijnit-sharedcomponents.js +372 -0
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -0
- package/lib/components/docsign/component/signature/signature.component.d.ts +16 -0
- package/{src/lib → lib}/components/docsign/component/signature/style/_layout.scss +0 -0
- package/{src/lib → lib}/components/docsign/component/signature/style/_material-definition.scss +0 -0
- package/{src/lib → lib}/components/docsign/component/signature/style/_theme.scss +0 -0
- package/{src/lib → lib}/components/docsign/component/signature/style/material.scss +0 -0
- package/lib/components/docsign/component/signatures/signatures.component.d.ts +12 -0
- package/{src/lib → lib}/components/docsign/component/signatures/style/_layout.scss +0 -0
- package/{src/lib → lib}/components/docsign/component/signatures/style/_material-definition.scss +0 -0
- package/{src/lib → lib}/components/docsign/component/signatures/style/_theme.scss +0 -0
- package/{src/lib → lib}/components/docsign/component/signatures/style/material.scss +0 -0
- package/lib/components/docsign/docsign.component.d.ts +92 -0
- package/lib/components/docsign/docsign.module.d.ts +2 -0
- package/{src/lib → lib}/components/docsign/style/_layout.scss +0 -0
- package/{src/lib → lib}/components/docsign/style/_material-definition.scss +0 -0
- package/{src/lib → lib}/components/docsign/style/_theme.scss +0 -0
- package/{src/lib → lib}/components/docsign/style/material.scss +0 -0
- package/{src/lib → lib}/style/_mixin.scss +0 -0
- package/{src/lib → lib}/style/_variables.scss +0 -0
- package/package.json +25 -15
- package/public-api.d.ts +2 -0
- package/.browserslistrc +0 -16
- package/colijnit-sharedcomponents-1.0.7.tgz +0 -0
- package/karma.conf.js +0 -44
- package/ng-package.json +0 -17
- package/src/lib/components/docsign/component/signature/signature.component.ts +0 -82
- package/src/lib/components/docsign/component/signatures/signatures.component.ts +0 -50
- package/src/lib/components/docsign/docsign.component.ts +0 -252
- package/src/lib/components/docsign/docsign.module.ts +0 -22
- package/src/lib/components/send-method-dialog/enums/send-option.ts +0 -6
- package/src/lib/components/send-method-dialog/send-method-dialog.component.ts +0 -215
- package/src/lib/components/send-method-dialog/send-method-dialog.module.ts +0 -27
- package/src/lib/components/send-method-dialog/style/_layout.scss +0 -186
- package/src/lib/components/send-method-dialog/style/_material-definition.scss +0 -1
- package/src/lib/components/send-method-dialog/style/_theme.scss +0 -7
- package/src/lib/components/send-method-dialog/style/material.scss +0 -4
- package/src/lib/components/stock/stock-information/stock-information.component.ts +0 -59
- package/src/lib/components/stock/stock-information-grid/stock-information-grid.component.ts +0 -278
- package/src/lib/components/stock/stock-location/stock-location.component.ts +0 -82
- package/src/lib/components/stock/stock-transfer/co-drop-down-list-fields.interface.ts +0 -4
- package/src/lib/components/stock/stock-transfer/stock-transfer.component.ts +0 -111
- package/src/lib/components/stock/stock.component.ts +0 -78
- package/src/lib/components/stock/stock.module.ts +0 -47
- package/src/lib/components/stock/style/_layout.scss +0 -206
- package/src/lib/components/stock/style/_material-definition.scss +0 -20
- package/src/lib/components/stock/style/_theme.scss +0 -8
- package/src/lib/components/stock/style/material.scss +0 -4
- package/src/lib/enum/icon.enum.ts +0 -22
- package/src/lib/factory/business-object-factory.ts +0 -120
- package/src/lib/factory/decorators/boolean.decorator.ts +0 -113
- package/src/lib/factory/decorators/complex-array.decorator.ts +0 -61
- package/src/lib/factory/decorators/complex-field.decorator.ts +0 -63
- package/src/lib/factory/decorators/date-field.decorator.ts +0 -41
- package/src/lib/factory/decorators/string-number.decorator.ts +0 -48
- package/src/lib/model/business-object.ts +0 -85
- package/src/lib/model/icon-svg.ts +0 -22
- package/src/lib/service/icon-cache.service.ts +0 -51
- package/src/lib/service/ione-connector-adapter.service.ts +0 -113
- package/src/lib/service/stock.service.ts +0 -35
- package/src/lib/utils/array-utils.ts +0 -202
- package/src/lib/utils/is-nill.function.ts +0 -4
- package/src/public-api.ts +0 -10
- package/src/test.ts +0 -27
- package/tsconfig.lib.json +0 -18
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -17
|
@@ -1,278 +0,0 @@
|
|
|
1
|
-
import {Component, Output, ViewChild, ViewEncapsulation, EventEmitter} from "@angular/core";
|
|
2
|
-
import {StockService} from "../../../service/stock.service";
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: "co-stock-information-grid",
|
|
6
|
-
template: `
|
|
7
|
-
<div class="tab-link show" *ngIf="hideOrShowTabs">
|
|
8
|
-
<span class="tab-link-buttons"
|
|
9
|
-
*ngFor="let tab of tabs"
|
|
10
|
-
(click)="handleTabClick(tab)"
|
|
11
|
-
[textContent]="tab"
|
|
12
|
-
[class.active]="tab === activeTab"
|
|
13
|
-
></span>
|
|
14
|
-
</div>
|
|
15
|
-
|
|
16
|
-
<div class="stock-line">
|
|
17
|
-
<div [textContent]="activeTabText"></div>
|
|
18
|
-
|
|
19
|
-
</div>
|
|
20
|
-
|
|
21
|
-
<div class="stock-grid">
|
|
22
|
-
<co-simple-grid *ngIf="activeTab === tabs[0] && hideOrShowTabs"
|
|
23
|
-
[data]="stockInformation"
|
|
24
|
-
>
|
|
25
|
-
<co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'warehouseNumber'"></co-simple-grid-column>
|
|
26
|
-
<co-simple-grid-column [headerText]="'DESCRIPTION'" [field]="'warehouseDescription'"></co-simple-grid-column>
|
|
27
|
-
<co-simple-grid-column [headerText]="'STOCK'" [field]="'amountInStock'"></co-simple-grid-column>
|
|
28
|
-
<co-simple-grid-column [headerText]="'AVAILABLE_STOCK'" [field]="'amountAvailable'"></co-simple-grid-column>
|
|
29
|
-
<co-simple-grid-column [headerText]="'ECONOMICAL_STOCK'" [field]="'amountLaterAvailable'"></co-simple-grid-column>
|
|
30
|
-
<co-simple-grid-column [headerText]="'LOCATION'" [field]="'location'">
|
|
31
|
-
<ng-template let-row="row">
|
|
32
|
-
<a [textContent]="'bekijken'" (click)="onLocationClick($event)"></a>
|
|
33
|
-
</ng-template>
|
|
34
|
-
</co-simple-grid-column>
|
|
35
|
-
</co-simple-grid>
|
|
36
|
-
|
|
37
|
-
<co-simple-grid *ngIf="activeTab === tabs[1]"
|
|
38
|
-
[data]="inOrderInformation"
|
|
39
|
-
>
|
|
40
|
-
<co-simple-grid-column [headerText]="'IN_ORDER2'" [field]="'inOrder'"></co-simple-grid-column>
|
|
41
|
-
<co-simple-grid-column [headerText]="'CUSTOMER'" [field]="'customer'"></co-simple-grid-column>
|
|
42
|
-
<co-simple-grid-column [headerText]="'DATE'" [field]="'orderDate'"></co-simple-grid-column>
|
|
43
|
-
<co-simple-grid-column [headerText]="'AMOUNT'" [field]="'orderAmount'"></co-simple-grid-column>
|
|
44
|
-
<co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'warehouseNumber'"></co-simple-grid-column>
|
|
45
|
-
<co-simple-grid-column [headerText]="'DESCRIPTION'" [field]="'warehouseDescription'"></co-simple-grid-column>
|
|
46
|
-
<co-simple-grid-column [headerText]="'STOCK'" [field]="'amountInStock'"></co-simple-grid-column>
|
|
47
|
-
<co-simple-grid-column [headerText]="'COMMISSION2'" [field]="'commission'"></co-simple-grid-column>
|
|
48
|
-
<co-simple-grid-column [headerText]="'TRANSFER'" [field]="'transfer'">
|
|
49
|
-
<ng-template let-row="row">
|
|
50
|
-
|
|
51
|
-
</ng-template>
|
|
52
|
-
</co-simple-grid-column>
|
|
53
|
-
<co-simple-grid-column [headerText]="'STICKER'" [field]="'sticker'">
|
|
54
|
-
<ng-template let-row="row">
|
|
55
|
-
|
|
56
|
-
</ng-template>
|
|
57
|
-
</co-simple-grid-column>
|
|
58
|
-
</co-simple-grid>
|
|
59
|
-
|
|
60
|
-
<co-simple-grid *ngIf="activeTab === tabs[2]"
|
|
61
|
-
[data]="orderInformation"
|
|
62
|
-
>
|
|
63
|
-
<co-simple-grid-column [headerText]="'PURCHASE_ORDER_NR'" [field]="'purchaseOrderNo'"></co-simple-grid-column>
|
|
64
|
-
<co-simple-grid-column [headerText]="'DATE'" [field]="'orderDate'"></co-simple-grid-column>
|
|
65
|
-
<co-simple-grid-column [headerText]="'AMOUNT'" [field]="'orderAmount'"></co-simple-grid-column>
|
|
66
|
-
<co-simple-grid-column [headerText]="'RESERVED'" [field]="'reserved'"></co-simple-grid-column>
|
|
67
|
-
<co-simple-grid-column [headerText]="'FREE_STOCK'" [field]="'freeStock'"></co-simple-grid-column>
|
|
68
|
-
<co-simple-grid-column [headerText]="'DELIVERY_DATE1'" [field]="'deliveryDate'"></co-simple-grid-column>
|
|
69
|
-
<co-simple-grid-column [headerText]="'RESERVE'" [field]="'reservation'"></co-simple-grid-column>
|
|
70
|
-
</co-simple-grid>
|
|
71
|
-
</div>
|
|
72
|
-
|
|
73
|
-
<div class="stock-grid" *ngIf="hideOrShowLocationTab">
|
|
74
|
-
<div class="stock-location-group">
|
|
75
|
-
<div class="stock-location-left-group">
|
|
76
|
-
<span class="stock-button-back" [textContent]="'BACK_TO_STOCK_LINES'" (click)="handleBackToStockClick()"></span>
|
|
77
|
-
</div>
|
|
78
|
-
<div class="stock-location-right-group">
|
|
79
|
-
<co-input-combo-box [(model)]="dataWareHouseCode"
|
|
80
|
-
[fields]="dataWareHouseFields"
|
|
81
|
-
[placeholder]="'WAREHOUSE'"
|
|
82
|
-
[required]="true"
|
|
83
|
-
></co-input-combo-box>
|
|
84
|
-
</div>
|
|
85
|
-
</div>
|
|
86
|
-
|
|
87
|
-
<co-simple-grid [data]="stockLocationInformation"
|
|
88
|
-
>
|
|
89
|
-
<div class="stock-location-group">
|
|
90
|
-
<div class="stock-location-left-group">
|
|
91
|
-
<co-button class="stock-lines-button" [textContent]="'BACK_TO_STOCK_LINES'" (click)="handleBackToStockClick()"></co-button>
|
|
92
|
-
</div>
|
|
93
|
-
</div>
|
|
94
|
-
<co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'location'"></co-simple-grid-column>
|
|
95
|
-
<co-simple-grid-column [headerText]="'BATCH'" [field]="'batch'"></co-simple-grid-column>
|
|
96
|
-
<co-simple-grid-column [headerText]="'SERIAL_NO'" [field]="'serialNo'"></co-simple-grid-column>
|
|
97
|
-
<co-simple-grid-column [headerText]="'STOCK'" [field]="'amountInStock'"></co-simple-grid-column>
|
|
98
|
-
<co-simple-grid-column [headerText]="'ALLOCATED'" [field]="'allocated'"></co-simple-grid-column>
|
|
99
|
-
<co-simple-grid-column [headerText]="'AVAILABLE_STOCK'" [field]="'amountAvailable'"></co-simple-grid-column>
|
|
100
|
-
<co-simple-grid-column [headerText]="'TRANSFER'" [field]="'transfer'">
|
|
101
|
-
<ng-template let-row="row">
|
|
102
|
-
<span [textContent]="'Transfer'" (click)="handleStockTransferClick($event)"></span>
|
|
103
|
-
</ng-template>
|
|
104
|
-
</co-simple-grid-column>
|
|
105
|
-
<co-simple-grid-column [headerText]="'STICKER'" [field]="'sticker'">
|
|
106
|
-
<ng-template let-row="row">
|
|
107
|
-
|
|
108
|
-
</ng-template>
|
|
109
|
-
</co-simple-grid-column>
|
|
110
|
-
</co-simple-grid>
|
|
111
|
-
</div>
|
|
112
|
-
|
|
113
|
-
<div class="stock-grid" *ngIf="showStockHistory">
|
|
114
|
-
<co-simple-grid [data]="stockHistoryInformation"
|
|
115
|
-
>
|
|
116
|
-
<co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'location'"></co-simple-grid-column>
|
|
117
|
-
<co-simple-grid-column [headerText]="'BATCH'" [field]="'batch'"></co-simple-grid-column>
|
|
118
|
-
<co-simple-grid-column [headerText]="'SERIAL_NO'" [field]="'serialNo'"></co-simple-grid-column>
|
|
119
|
-
<co-simple-grid-column [headerText]="'STOCK'" [field]="'amountInStock'"></co-simple-grid-column>
|
|
120
|
-
<co-simple-grid-column [headerText]="'ALLOCATED'" [field]="'allocated'"></co-simple-grid-column>
|
|
121
|
-
<co-simple-grid-column [headerText]="'AVAILABLE_STOCK'" [field]="'amountAvailable'"></co-simple-grid-column>
|
|
122
|
-
<co-simple-grid-column [headerText]="'STICKER'" [field]="'sticker'">
|
|
123
|
-
<ng-template let-row="row">
|
|
124
|
-
|
|
125
|
-
</ng-template>
|
|
126
|
-
</co-simple-grid-column>
|
|
127
|
-
</co-simple-grid>
|
|
128
|
-
</div>
|
|
129
|
-
|
|
130
|
-
<div class="stock-button-toolbar">
|
|
131
|
-
<div class="stock-button-left-group">
|
|
132
|
-
<co-button [label]="'HISTORY'" (click)="handleHistoryClick()"></co-button>
|
|
133
|
-
</div>
|
|
134
|
-
<div class="stock-button-middle-group">
|
|
135
|
-
<div class="button-left">
|
|
136
|
-
<co-button [textContent]="'Ok'" (click)="onOkClick()"></co-button>
|
|
137
|
-
</div>
|
|
138
|
-
<div class="button-right">
|
|
139
|
-
<co-button [textContent]="'Annuleren'" (click)="onCancelClick()"></co-button>
|
|
140
|
-
</div>
|
|
141
|
-
</div>
|
|
142
|
-
</div>
|
|
143
|
-
`,
|
|
144
|
-
encapsulation: ViewEncapsulation.None
|
|
145
|
-
})
|
|
146
|
-
export class StockInformationGridComponent {
|
|
147
|
-
|
|
148
|
-
@ViewChild(StockInformationGridComponent)
|
|
149
|
-
public stock: StockInformationGridComponent;
|
|
150
|
-
|
|
151
|
-
@Output()
|
|
152
|
-
public readonly locationLineClicked: EventEmitter<[]> = new EventEmitter();
|
|
153
|
-
|
|
154
|
-
@Output()
|
|
155
|
-
public readonly transferIconClicked: EventEmitter<[]> = new EventEmitter();
|
|
156
|
-
|
|
157
|
-
public readonly MAX_GRID_ROWS: number = 10;
|
|
158
|
-
|
|
159
|
-
public stockStatus: string = "medium";
|
|
160
|
-
public image: string;
|
|
161
|
-
public show: boolean = false;
|
|
162
|
-
public hideOrShowLocationTab: boolean = false;
|
|
163
|
-
public showStockHistory: boolean = false;
|
|
164
|
-
|
|
165
|
-
public data: any[] = [
|
|
166
|
-
{test: "test"}
|
|
167
|
-
];
|
|
168
|
-
|
|
169
|
-
public stockInformation: Object[] = [
|
|
170
|
-
{warehouseNumber: "1", warehouseDescription: "Colijn IT Warehouse", amountInStock: "17", amountAvailable: "13", amountLaterAvailable: "4", location: "test"},
|
|
171
|
-
{warehouseNumber: "2", warehouseDescription: "Colijn IT Warehouse", amountInStock: "17", amountAvailable: "13", amountLaterAvailable: "4", location: "Test nummer 2"},
|
|
172
|
-
{warehouseNumber: "3", warehouseDescription: "Colijn IT Warehouse", amountInStock: "17", amountAvailable: "13", amountLaterAvailable: "4", location: "Amundsenweg"},
|
|
173
|
-
];
|
|
174
|
-
public stockLocationInformation: Object[] = [
|
|
175
|
-
{location: "title 1", batch: "1", serialNo: "1", amountInStock: "1", allocated: "1", amountAvailable: "1"},
|
|
176
|
-
{location: "title 2", amountInStock: "2"},
|
|
177
|
-
{location: "title 3", amountInStock: "3"},
|
|
178
|
-
{location: "title 4", amountInStock: "4"},
|
|
179
|
-
{location: "title 5", amountInStock: "5"},
|
|
180
|
-
];
|
|
181
|
-
public inOrderInformation: Object[] = [
|
|
182
|
-
{inOrder: "275432", customer: "Test customer", orderDate: "date", orderAmount: "2", warehouseNumber: "8", warehouseDescription: "A nice warehouse", amountInStock: "17", commission: "4014321"},
|
|
183
|
-
{inOrder: "275432", customer: "Test customer", orderDate: "date", orderAmount: "2", warehouseNumber: "8", warehouseDescription: "A nice warehouse", amountInStock: "17", commission: "4014321"},
|
|
184
|
-
{inOrder: "275432", customer: "Test customer", orderDate: "date", orderAmount: "2", warehouseNumber: "8", warehouseDescription: "A nice warehouse", amountInStock: "17", commission: "4014321"},
|
|
185
|
-
{inOrder: "275432", customer: "Test customer", orderDate: "date", orderAmount: "2", warehouseNumber: "8", warehouseDescription: "A nice warehouse", amountInStock: "17", commission: "4014321"},
|
|
186
|
-
{inOrder: "275432", customer: "Test customer", orderDate: "date", orderAmount: "2", warehouseNumber: "8", warehouseDescription: "A nice warehouse", amountInStock: "17", commission: "4014321"},
|
|
187
|
-
];
|
|
188
|
-
public stockHistoryInformation: Object[] = [
|
|
189
|
-
|
|
190
|
-
];
|
|
191
|
-
public orderInformation: any[] = [];
|
|
192
|
-
|
|
193
|
-
public stockColumns: any[] = [];
|
|
194
|
-
public stockLocationColumns: any[] = [];
|
|
195
|
-
public inOrderColumns: any[] = [];
|
|
196
|
-
public orderColumns: any[] = [];
|
|
197
|
-
|
|
198
|
-
public hideOrShowTabs: boolean = true;
|
|
199
|
-
|
|
200
|
-
public dataWareHouseCode: number = 0;
|
|
201
|
-
public dataWareHouseFields: Object = { text: "warehouseDescription", value: "warehouseNumber" };
|
|
202
|
-
|
|
203
|
-
public tabs: string[] = [
|
|
204
|
-
"STOCK",
|
|
205
|
-
"IN_ORDER2",
|
|
206
|
-
"ORDERS1"
|
|
207
|
-
];
|
|
208
|
-
public activeTab: string = this.tabs[0];
|
|
209
|
-
|
|
210
|
-
public get activeTabText(): string {
|
|
211
|
-
switch (this.activeTab) {
|
|
212
|
-
case this.tabs[0]:
|
|
213
|
-
return "Voorraadregels";
|
|
214
|
-
case this.tabs[1]:
|
|
215
|
-
return "Gevonden in order(s)";
|
|
216
|
-
case this.tabs[2]:
|
|
217
|
-
return "Gevonden in bestellingen";
|
|
218
|
-
default:
|
|
219
|
-
return "Voorraadlocatie regels";
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
constructor(
|
|
224
|
-
private _stockService: StockService
|
|
225
|
-
) {
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
public handleTabClick(tabData): void {
|
|
229
|
-
this.activeTab = tabData;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
public onLocationClick(event): void {
|
|
233
|
-
// this.locationLineClicked.emit(event[0].location);
|
|
234
|
-
this.hideOrShowTabs = false;
|
|
235
|
-
this.hideOrShowLocationTab = true;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
public onRowClick(args: any): void {
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
public onPopupClose(): void {
|
|
242
|
-
this.show = false;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
public handleHistoryClick(): void {
|
|
246
|
-
this.showStockHistory = true;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
public handleCloseClick(): void {
|
|
250
|
-
this.onPopupClose();
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
public handleStockTransferClick(event): void {
|
|
254
|
-
this.transferIconClicked.emit(event);
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
public async handleBackToStockClick(): Promise<void> {
|
|
258
|
-
this.activeTab = this.tabs[0];
|
|
259
|
-
this.hideOrShowTabs = true;
|
|
260
|
-
this.hideOrShowLocationTab = false;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
public handleStickerClick(): void {
|
|
264
|
-
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
public handleTransferClick(): void {
|
|
268
|
-
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
public onOkClick(): void {
|
|
272
|
-
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
public onCancelClick(): void {
|
|
276
|
-
|
|
277
|
-
}
|
|
278
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import {Component, EventEmitter,Output, ViewEncapsulation} from "@angular/core";
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: "co-stock-location",
|
|
5
|
-
template: `
|
|
6
|
-
<div class="stock-location-wrapper">
|
|
7
|
-
<div class="buttons-wrapper">
|
|
8
|
-
<div class="stock-button-left-group">
|
|
9
|
-
<span class="stock-button-back" [textContent]="'BACK_TO_STOCK_LINES'" (click)="backToStockInformation()"></span>
|
|
10
|
-
</div>
|
|
11
|
-
<div class="dropdown-wrapper">
|
|
12
|
-
<co-drop-down-list></co-drop-down-list>
|
|
13
|
-
</div>
|
|
14
|
-
</div>
|
|
15
|
-
|
|
16
|
-
<div class="stock-grid">
|
|
17
|
-
|
|
18
|
-
</div>
|
|
19
|
-
<div class="button-wrapper">
|
|
20
|
-
<div class="button-left">
|
|
21
|
-
<co-button (click)="onOkClick()"></co-button>
|
|
22
|
-
</div>
|
|
23
|
-
<div class="button-right">
|
|
24
|
-
<co-button (click)="onCancelClick()"></co-button>
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
|
|
29
|
-
`,
|
|
30
|
-
encapsulation: ViewEncapsulation.None
|
|
31
|
-
})
|
|
32
|
-
export class StockLocationComponent {
|
|
33
|
-
|
|
34
|
-
@Output()
|
|
35
|
-
public backToStockLines: EventEmitter<any> = new EventEmitter();
|
|
36
|
-
|
|
37
|
-
public readonly MAX_GRID_ROWS: number = 10;
|
|
38
|
-
|
|
39
|
-
public stockLocationColumns: any[] = [];
|
|
40
|
-
|
|
41
|
-
public stockLocation: Object[] = [
|
|
42
|
-
{location: "title 1", batch: "1", serieNo: "1", amountInStock: "1", allocated: "1", amountAvailable: "1"},
|
|
43
|
-
{location: "title 2", amountInStock: "2"},
|
|
44
|
-
{location: "title 3", amountInStock: "3"},
|
|
45
|
-
{location: "title 4", amountInStock: "4"},
|
|
46
|
-
{location: "title 5", amountInStock: "5"},
|
|
47
|
-
];
|
|
48
|
-
|
|
49
|
-
constructor(
|
|
50
|
-
) {
|
|
51
|
-
this.stockLocationColumns.push(
|
|
52
|
-
{field: "location", headerText: "WAREHOUSE", editType: "none"},
|
|
53
|
-
{field: "batch", headerText: "BATCH"},
|
|
54
|
-
{field: "serieNo", headerText: "SERIAL_NO"},
|
|
55
|
-
{field: "amountInStock", headerText: "STOCK", textAlign: "Right", editType: "numericEdit"},
|
|
56
|
-
{field: "allocated", headerText: "ALLOCATED", textAlign: "Right"},
|
|
57
|
-
{field: "amountAvailable", headerText: "AVAILABLE_STOCK", textAlign: "Right"},
|
|
58
|
-
{field: "PhysicalStock", headerText: "PHYSICAL_STOCK", textAlign: "Right"},
|
|
59
|
-
{field: "Valuta", headerText: "VALUTA", textAlign: "Right"},
|
|
60
|
-
{field: "PurchasePrice", headerText: "PURSCHASE_PRICE", textAlign: "Right"},
|
|
61
|
-
{field: "SupplierNo", headerText: "SUPPLIER_NO", textAlign: "Right"},
|
|
62
|
-
{field: "Transfer", headerText: "TRANSFER"},
|
|
63
|
-
{field: "sticker", headerText: "STICKER"},
|
|
64
|
-
);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
public backToStockInformation(): void {
|
|
68
|
-
this.backToStockLines.emit();
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
public onStickerClick(event): void {
|
|
72
|
-
console.log('test');
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
public onOkClick(): void {
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
public onCancelClick(): void {
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import {Component, EventEmitter, Input, Output, ViewEncapsulation} from "@angular/core";
|
|
2
|
-
import {PrintStockStickers} from "@colijnit/articleapi/build/model/print-stock-stickers";
|
|
3
|
-
import {StockService} from "../../../service/stock.service";
|
|
4
|
-
import {CoDropDownListFields} from "./co-drop-down-list-fields.interface";
|
|
5
|
-
import {Printer} from "@colijnit/sharedapi/build/model/printer.bo";
|
|
6
|
-
|
|
7
|
-
@Component({
|
|
8
|
-
selector: "co-stock-transfer",
|
|
9
|
-
template: `
|
|
10
|
-
<div class="stock-transfer">
|
|
11
|
-
<div class="stock-transfer-columns">
|
|
12
|
-
<div *ngIf="article" class="stock-transfer-left-column">
|
|
13
|
-
<co-input-text disabled
|
|
14
|
-
[(model)]="article.standardWareHouse.description"
|
|
15
|
-
[textContent]="article.standardWareHouse.description"
|
|
16
|
-
[placeholder]="'Standaard magazijn'">
|
|
17
|
-
</co-input-text>
|
|
18
|
-
<co-input-text disabled
|
|
19
|
-
[(model)]="article.standardLocation"
|
|
20
|
-
[textContent]="article.standardLocation"
|
|
21
|
-
[placeholder]="'Standaard locatie'">
|
|
22
|
-
</co-input-text>
|
|
23
|
-
<co-input-text disabled
|
|
24
|
-
[(model)]="stockSticker.batch"
|
|
25
|
-
[placeholder]="'Batch'">
|
|
26
|
-
</co-input-text>
|
|
27
|
-
<co-input-text disabled
|
|
28
|
-
[(model)]="stockSticker.serial"
|
|
29
|
-
[placeholder]="'Serie'">
|
|
30
|
-
</co-input-text>
|
|
31
|
-
<co-input-text
|
|
32
|
-
[(model)]="article.amount"
|
|
33
|
-
[placeholder]="'Aantal'">
|
|
34
|
-
|
|
35
|
-
</co-input-text>
|
|
36
|
-
</div>
|
|
37
|
-
|
|
38
|
-
<div class="stock-transfer-right-column">
|
|
39
|
-
<co-drop-down-list [collection]="allWarehouses"
|
|
40
|
-
[fields]="allWarehousesDropdownFields"
|
|
41
|
-
(modelChange)="handleSelectedWarehouse($event)"
|
|
42
|
-
>
|
|
43
|
-
</co-drop-down-list>
|
|
44
|
-
<co-drop-down-list>
|
|
45
|
-
|
|
46
|
-
</co-drop-down-list>
|
|
47
|
-
<co-input-text [placeholder]="'Voorraadstatus'">
|
|
48
|
-
|
|
49
|
-
</co-input-text>
|
|
50
|
-
<co-input-text [placeholder]="'Omschrijving'">
|
|
51
|
-
|
|
52
|
-
</co-input-text>
|
|
53
|
-
</div>
|
|
54
|
-
</div>
|
|
55
|
-
|
|
56
|
-
<div class="ok-cancel-buttons">
|
|
57
|
-
<co-button [textContent]="'Ok'" (click)="handleOkClick()"></co-button>
|
|
58
|
-
<co-button [textContent]="'Annuleren'" (click)="handleCancelClick()"></co-button>
|
|
59
|
-
<co-button [textContent]="'Sticker'" (click)="handleStickerClick()"></co-button>
|
|
60
|
-
</div>
|
|
61
|
-
</div>
|
|
62
|
-
`,
|
|
63
|
-
encapsulation: ViewEncapsulation.None
|
|
64
|
-
})
|
|
65
|
-
export class StockTransferComponent {
|
|
66
|
-
|
|
67
|
-
@Input()
|
|
68
|
-
public stockSticker: PrintStockStickers;
|
|
69
|
-
|
|
70
|
-
@Input()
|
|
71
|
-
public article: any;
|
|
72
|
-
|
|
73
|
-
@Input()
|
|
74
|
-
public articleWarehouse: any[];
|
|
75
|
-
|
|
76
|
-
@Input()
|
|
77
|
-
public allWarehouses: any[];
|
|
78
|
-
|
|
79
|
-
@Output()
|
|
80
|
-
public handleCancelClicked: EventEmitter<any> = new EventEmitter();
|
|
81
|
-
|
|
82
|
-
@Output()
|
|
83
|
-
public handleStickerClicked: EventEmitter<any> = new EventEmitter();
|
|
84
|
-
|
|
85
|
-
public allWarehousesDropdownFields: CoDropDownListFields = {value: "warehouseNo", text: "description"};
|
|
86
|
-
|
|
87
|
-
public showSendMethodDialog: boolean = false;
|
|
88
|
-
|
|
89
|
-
constructor(
|
|
90
|
-
private _stockService: StockService
|
|
91
|
-
) {
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
public handleOkClick(): void {
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
public handleCancelClick(): void {
|
|
99
|
-
this.handleCancelClicked.emit();
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
public handleSelectedWarehouse(event): void {
|
|
103
|
-
console.log(event);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
public async handleStickerClick(): Promise<void> {
|
|
107
|
-
this.handleStickerClicked.emit();
|
|
108
|
-
this.showSendMethodDialog = true;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import {Component, EventEmitter, HostBinding, Input, Output, ViewChild, ViewEncapsulation} from "@angular/core";
|
|
2
|
-
import {StockService} from "../../service/stock.service";
|
|
3
|
-
import {PrintStockStickers} from "@colijnit/articleapi/build/model/print-stock-stickers";
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
selector: "co-stock",
|
|
7
|
-
template: `
|
|
8
|
-
<div class="stock-info-container">
|
|
9
|
-
<co-stock-information [article]="articleExtended"></co-stock-information>
|
|
10
|
-
<hr>
|
|
11
|
-
<co-stock-information-grid *ngIf="showStockInformationGrid" (transferIconClicked)="handleStockTransferClick($event)"></co-stock-information-grid>
|
|
12
|
-
<co-stock-location *ngIf="showStockLocation" (backToStockLines)="backToStockLinesClicked()"></co-stock-location>
|
|
13
|
-
<co-stock-transfer *ngIf="showStockTransfer"
|
|
14
|
-
(handleCancelClicked)="backToStock()"
|
|
15
|
-
[article]="articleExtended"
|
|
16
|
-
[stockSticker]="stockService.stockStickers"
|
|
17
|
-
(handleStickerClicked)="handleStickerClicked.emit($event)"
|
|
18
|
-
[articleWarehouse]="articleWarehouse"
|
|
19
|
-
[allWarehouses]="allWarehouses"
|
|
20
|
-
>
|
|
21
|
-
</co-stock-transfer>
|
|
22
|
-
</div>
|
|
23
|
-
`,
|
|
24
|
-
encapsulation: ViewEncapsulation.None
|
|
25
|
-
})
|
|
26
|
-
export class StockComponent {
|
|
27
|
-
|
|
28
|
-
@ViewChild(StockComponent)
|
|
29
|
-
public stock: StockComponent;
|
|
30
|
-
|
|
31
|
-
@Output()
|
|
32
|
-
public handleStickerClicked: EventEmitter<any> = new EventEmitter();
|
|
33
|
-
|
|
34
|
-
@Input()
|
|
35
|
-
public set options(value: any) {
|
|
36
|
-
this.stockService.connectConnector(value);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
@Input()
|
|
40
|
-
public articleExtended: any;
|
|
41
|
-
|
|
42
|
-
@Input()
|
|
43
|
-
public articleWarehouse: any[];
|
|
44
|
-
|
|
45
|
-
@Input()
|
|
46
|
-
public allWarehouses: any[];
|
|
47
|
-
|
|
48
|
-
@HostBinding("class.co-stock")
|
|
49
|
-
public showClass() {
|
|
50
|
-
return true;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
public showStockInformationGrid: boolean = true;
|
|
54
|
-
public showStockLocation: boolean = false;
|
|
55
|
-
public showStockTransfer: boolean = false;
|
|
56
|
-
|
|
57
|
-
constructor(
|
|
58
|
-
public stockService: StockService
|
|
59
|
-
) {
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
public backToStockLinesClicked(): void {
|
|
63
|
-
this.showStockLocation = false;
|
|
64
|
-
this.showStockInformationGrid = true;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
public handleStockTransferClick(event): void {
|
|
68
|
-
this.showStockTransfer = !this.showStockTransfer;
|
|
69
|
-
this.showStockInformationGrid = !this.showStockInformationGrid;
|
|
70
|
-
this.stockService.stockStickers = new PrintStockStickers();
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
public backToStock(): void {
|
|
74
|
-
this.showStockTransfer = !this.showStockTransfer;
|
|
75
|
-
this.showStockInformationGrid = !this.showStockInformationGrid;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import {NgModule} from "@angular/core";
|
|
2
|
-
import {StockComponent} from "./stock.component";
|
|
3
|
-
import {
|
|
4
|
-
ButtonModule,
|
|
5
|
-
CoGridModule,
|
|
6
|
-
DropDownModule, ImageModule,
|
|
7
|
-
InputComboBoxModule,
|
|
8
|
-
InputRadioButtonModule, InputTextModule, SimpleGridModule
|
|
9
|
-
} from "@colijnit/corecomponents_v12";
|
|
10
|
-
import {CommonModule} from "@angular/common";
|
|
11
|
-
import {StockInformationComponent} from "./stock-information/stock-information.component";
|
|
12
|
-
import {StockInformationGridComponent} from "./stock-information-grid/stock-information-grid.component";
|
|
13
|
-
import {StockLocationComponent} from "./stock-location/stock-location.component";
|
|
14
|
-
import {StockService} from "../../service/stock.service";
|
|
15
|
-
import {IoneConnectorAdapterService} from "../../service/ione-connector-adapter.service";
|
|
16
|
-
import {StockTransferComponent} from "./stock-transfer/stock-transfer.component";
|
|
17
|
-
import {SendMethodDialogModule} from "../send-method-dialog/send-method-dialog.module";
|
|
18
|
-
|
|
19
|
-
@NgModule({
|
|
20
|
-
imports: [
|
|
21
|
-
InputComboBoxModule,
|
|
22
|
-
CoGridModule,
|
|
23
|
-
ButtonModule,
|
|
24
|
-
CommonModule,
|
|
25
|
-
InputRadioButtonModule,
|
|
26
|
-
DropDownModule,
|
|
27
|
-
SimpleGridModule,
|
|
28
|
-
ImageModule,
|
|
29
|
-
InputTextModule,
|
|
30
|
-
SendMethodDialogModule
|
|
31
|
-
],
|
|
32
|
-
declarations: [
|
|
33
|
-
StockComponent,
|
|
34
|
-
StockInformationComponent,
|
|
35
|
-
StockInformationGridComponent,
|
|
36
|
-
StockLocationComponent,
|
|
37
|
-
StockTransferComponent
|
|
38
|
-
],
|
|
39
|
-
exports: [
|
|
40
|
-
StockComponent
|
|
41
|
-
],
|
|
42
|
-
providers: [
|
|
43
|
-
StockService,
|
|
44
|
-
IoneConnectorAdapterService
|
|
45
|
-
]
|
|
46
|
-
})
|
|
47
|
-
export class StockModule {}
|