@colijnit/sharedcomponents 1.0.5 → 1.0.6
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/.browserslistrc +16 -0
- package/.editorconfig +16 -0
- package/.vscode/extensions.json +4 -0
- package/.vscode/launch.json +20 -0
- package/.vscode/tasks.json +42 -0
- package/README.md +11 -8
- package/Sharedcomponents.iml +11 -0
- package/angular.json +133 -0
- package/colijnit-sharedcomponents-1.0.6.tgz +0 -0
- package/karma.conf.js +44 -0
- package/move-assets.js +14 -0
- package/package.json +70 -25
- package/projects/sharedcomponents/.browserslistrc +16 -0
- package/projects/sharedcomponents/README.md +24 -0
- package/projects/sharedcomponents/karma.conf.js +44 -0
- package/projects/sharedcomponents/ng-package.json +17 -0
- package/projects/sharedcomponents/package.json +15 -0
- package/projects/sharedcomponents/src/lib/components/docsign/component/signature/signature.component.ts +82 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signature/style/_layout.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signature/style/_material-definition.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signature/style/_theme.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signature/style/material.scss +0 -0
- package/projects/sharedcomponents/src/lib/components/docsign/component/signatures/signatures.component.ts +50 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signatures/style/_layout.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signatures/style/_material-definition.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signatures/style/_theme.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/component/signatures/style/material.scss +0 -0
- package/projects/sharedcomponents/src/lib/components/docsign/docsign.component.ts +252 -0
- package/projects/sharedcomponents/src/lib/components/docsign/docsign.module.ts +22 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/style/_layout.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/style/_material-definition.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/style/_theme.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/docsign/style/material.scss +0 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/enums/send-option.ts +6 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/send-method-dialog.component.ts +215 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/send-method-dialog.module.ts +27 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/style/_layout.scss +186 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/style/_material-definition.scss +1 -0
- package/projects/sharedcomponents/src/lib/components/send-method-dialog/style/_theme.scss +7 -0
- package/{lib/components/stock → projects/sharedcomponents/src/lib/components/send-method-dialog}/style/material.scss +0 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock-information/stock-information.component.ts +59 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock-information-grid/stock-information-grid.component.ts +278 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock-location/stock-location.component.ts +82 -0
- package/{lib/components/stock/stock-transfer/co-drop-down-list-fields.interface.d.ts → projects/sharedcomponents/src/lib/components/stock/stock-transfer/co-drop-down-list-fields.interface.ts} +2 -2
- package/projects/sharedcomponents/src/lib/components/stock/stock-transfer/stock-transfer.component.ts +111 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock.component.ts +78 -0
- package/projects/sharedcomponents/src/lib/components/stock/stock.module.ts +47 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/stock/style/_layout.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/stock/style/_material-definition.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/components/stock/style/_theme.scss +0 -0
- package/projects/sharedcomponents/src/lib/components/stock/style/material.scss +4 -0
- package/projects/sharedcomponents/src/lib/enum/icon.enum.ts +22 -0
- package/projects/sharedcomponents/src/lib/factory/business-object-factory.ts +120 -0
- package/projects/sharedcomponents/src/lib/factory/decorators/boolean.decorator.ts +113 -0
- package/projects/sharedcomponents/src/lib/factory/decorators/complex-array.decorator.ts +61 -0
- package/projects/sharedcomponents/src/lib/factory/decorators/complex-field.decorator.ts +63 -0
- package/projects/sharedcomponents/src/lib/factory/decorators/date-field.decorator.ts +41 -0
- package/projects/sharedcomponents/src/lib/factory/decorators/string-number.decorator.ts +48 -0
- package/projects/sharedcomponents/src/lib/model/business-object.ts +85 -0
- package/projects/sharedcomponents/src/lib/model/icon-svg.ts +22 -0
- package/projects/sharedcomponents/src/lib/service/icon-cache.service.ts +51 -0
- package/projects/sharedcomponents/src/lib/service/ione-connector-adapter.service.ts +113 -0
- package/projects/sharedcomponents/src/lib/service/stock.service.ts +35 -0
- package/{lib → projects/sharedcomponents/src/lib}/style/_mixin.scss +0 -0
- package/{lib → projects/sharedcomponents/src/lib}/style/_variables.scss +0 -0
- package/projects/sharedcomponents/src/lib/utils/array-utils.ts +202 -0
- package/projects/sharedcomponents/src/lib/utils/is-nill.function.ts +4 -0
- package/{public-api.d.ts → projects/sharedcomponents/src/public-api.ts} +6 -0
- package/projects/sharedcomponents/src/test.ts +27 -0
- package/projects/sharedcomponents/tsconfig.lib.json +18 -0
- package/projects/sharedcomponents/tsconfig.lib.prod.json +10 -0
- package/projects/sharedcomponents/tsconfig.spec.json +17 -0
- package/src/app/app.component.scss +8 -0
- package/src/app/app.component.spec.ts +31 -0
- package/src/app/app.component.ts +97 -0
- package/src/app/app.module.ts +24 -0
- package/src/assets/.gitkeep +0 -0
- package/src/environments/environment.prod.ts +3 -0
- package/src/environments/environment.ts +16 -0
- package/src/favicon.ico +0 -0
- package/src/index.html +13 -0
- package/src/main.ts +12 -0
- package/src/polyfills.ts +53 -0
- package/src/styles.scss +28 -0
- package/src/test.ts +26 -0
- package/tsconfig.app.json +15 -0
- package/tsconfig.json +65 -0
- package/tsconfig.spec.json +18 -0
- package/bundles/colijnit-sharedcomponents.umd.js +0 -1901
- package/bundles/colijnit-sharedcomponents.umd.js.map +0 -1
- package/colijnit-sharedcomponents-1.0.5.tgz +0 -0
- package/colijnit-sharedcomponents.d.ts +0 -12
- package/colijnit-sharedcomponents.metadata.json +0 -1
- package/esm2015/colijnit-sharedcomponents.js +0 -13
- package/esm2015/lib/components/docsign/component/signature/signature.component.js +0 -75
- package/esm2015/lib/components/docsign/component/signatures/signatures.component.js +0 -44
- package/esm2015/lib/components/docsign/docsign.component.js +0 -225
- package/esm2015/lib/components/docsign/docsign.module.js +0 -23
- package/esm2015/lib/components/stock/stock-information/stock-information.component.js +0 -60
- package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +0 -255
- package/esm2015/lib/components/stock/stock-location/stock-location.component.js +0 -62
- package/esm2015/lib/components/stock/stock-transfer/co-drop-down-list-fields.interface.js +0 -2
- package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +0 -98
- package/esm2015/lib/components/stock/stock.component.js +0 -74
- package/esm2015/lib/components/stock/stock.module.js +0 -42
- package/esm2015/lib/factory/business-object-factory.js +0 -120
- package/esm2015/lib/factory/decorators/boolean.decorator.js +0 -102
- package/esm2015/lib/factory/decorators/complex-array.decorator.js +0 -55
- package/esm2015/lib/factory/decorators/complex-field.decorator.js +0 -57
- package/esm2015/lib/factory/decorators/date-field.decorator.js +0 -36
- package/esm2015/lib/factory/decorators/string-number.decorator.js +0 -43
- package/esm2015/lib/model/business-object.js +0 -81
- package/esm2015/lib/service/ione-connector-adapter.service.js +0 -98
- package/esm2015/lib/service/stock.service.js +0 -28
- package/esm2015/lib/utils/array-utils.js +0 -183
- package/esm2015/lib/utils/is-nill.function.js +0 -5
- package/esm2015/public-api.js +0 -8
- package/fesm2015/colijnit-sharedcomponents.js +0 -1731
- package/fesm2015/colijnit-sharedcomponents.js.map +0 -1
- package/lib/components/docsign/component/signature/signature.component.d.ts +0 -16
- package/lib/components/docsign/component/signatures/signatures.component.d.ts +0 -12
- package/lib/components/docsign/docsign.component.d.ts +0 -92
- package/lib/components/docsign/docsign.module.d.ts +0 -2
- package/lib/components/stock/stock-information/stock-information.component.d.ts +0 -10
- package/lib/components/stock/stock-information-grid/stock-information-grid.component.d.ts +0 -43
- package/lib/components/stock/stock-location/stock-location.component.d.ts +0 -12
- package/lib/components/stock/stock-transfer/stock-transfer.component.d.ts +0 -19
- package/lib/components/stock/stock.component.d.ts +0 -20
- package/lib/components/stock/stock.module.d.ts +0 -2
- package/lib/factory/business-object-factory.d.ts +0 -23
- package/lib/factory/decorators/boolean.decorator.d.ts +0 -43
- package/lib/factory/decorators/complex-array.decorator.d.ts +0 -25
- package/lib/factory/decorators/complex-field.decorator.d.ts +0 -25
- package/lib/factory/decorators/date-field.decorator.d.ts +0 -17
- package/lib/factory/decorators/string-number.decorator.d.ts +0 -22
- package/lib/model/business-object.d.ts +0 -7
- package/lib/service/ione-connector-adapter.service.d.ts +0 -17
- package/lib/service/stock.service.d.ts +0 -11
- package/lib/utils/array-utils.d.ts +0 -57
- package/lib/utils/is-nill.function.d.ts +0 -1
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
@import "../../../style/mixin";
|
|
2
|
+
@import "../../../style/variables";
|
|
3
|
+
|
|
4
|
+
@include export-module('ione-send-method-dialog-layout') {
|
|
5
|
+
.ione-send-method-dialog {
|
|
6
|
+
.send-method-dialog-wrapper {
|
|
7
|
+
font-family: $sc-font-family;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.dialog-content-wrapper {
|
|
11
|
+
padding: 0 20px 0 20px;
|
|
12
|
+
min-width: 350px;
|
|
13
|
+
min-height: 415px;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.send-options-wrapper {
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.custom-button-wrapper {
|
|
23
|
+
width: 45px;
|
|
24
|
+
height: 45px;
|
|
25
|
+
background-color: #f5f5fa;
|
|
26
|
+
padding: 5px;
|
|
27
|
+
margin: 5px;
|
|
28
|
+
border-radius: 10px;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
|
|
31
|
+
co-icon {
|
|
32
|
+
width: 100%;
|
|
33
|
+
height: 100%;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.selected-option {
|
|
38
|
+
background-color: #3e7eff;
|
|
39
|
+
|
|
40
|
+
co-icon svg {
|
|
41
|
+
path {
|
|
42
|
+
fill: white
|
|
43
|
+
}
|
|
44
|
+
rect {
|
|
45
|
+
fill: white
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.email-option-content {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
margin: 10px 0 10px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.emails-container {
|
|
57
|
+
display: flex;
|
|
58
|
+
flex-direction: column;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.lov-wrapper {
|
|
62
|
+
margin: 15px 0 10px;
|
|
63
|
+
border: 1px solid #f6f6f8;
|
|
64
|
+
border-radius: 10px;
|
|
65
|
+
padding: 10px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.input-checkbox-wrapper {
|
|
69
|
+
padding: 5px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.input-number-wrapper {
|
|
73
|
+
width: 85px;
|
|
74
|
+
height: 52px;
|
|
75
|
+
margin: 5px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.print-footer-wrapper {
|
|
79
|
+
display: flex;
|
|
80
|
+
justify-content: center;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.print-button {
|
|
84
|
+
display: flex;
|
|
85
|
+
align-items: center;
|
|
86
|
+
justify-content: center;
|
|
87
|
+
width: 120px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.number-picker {
|
|
91
|
+
height: 52px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.signature-button-wrapper {
|
|
95
|
+
display: flex;
|
|
96
|
+
justify-content: center;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.signature-button {
|
|
100
|
+
width: 75px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.standard-printer-wrapper {
|
|
104
|
+
width: 100%;
|
|
105
|
+
margin: 15px 0 15px;
|
|
106
|
+
display: flex;
|
|
107
|
+
flex-direction: column;
|
|
108
|
+
justify-content: center;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.standard-printer-link {
|
|
112
|
+
display: flex;
|
|
113
|
+
align-items: center;
|
|
114
|
+
cursor: pointer;
|
|
115
|
+
|
|
116
|
+
co-icon svg {
|
|
117
|
+
polygon {
|
|
118
|
+
fill: #3e7eff
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.arrow-icon {
|
|
124
|
+
width: 30px;
|
|
125
|
+
height: 40px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.standard-printer-message {
|
|
129
|
+
font-family: $sc-font-family;
|
|
130
|
+
font-weight: bold;
|
|
131
|
+
color: #3e7eff;
|
|
132
|
+
font-size: 0.9em;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.standard-printer-selections {
|
|
136
|
+
display: flex;
|
|
137
|
+
flex-direction: column;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.printer-content-container {
|
|
141
|
+
display: flex;
|
|
142
|
+
flex-direction: column;
|
|
143
|
+
align-items: center;
|
|
144
|
+
padding-top: 20px;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.selected-printer-wrapper {
|
|
148
|
+
display: flex;
|
|
149
|
+
align-items: center;
|
|
150
|
+
justify-content: space-between;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.printer-option-list-item {
|
|
154
|
+
display: flex;
|
|
155
|
+
align-items: center;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.printer-details {
|
|
159
|
+
display: flex;
|
|
160
|
+
flex-direction: column;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.printer-name {
|
|
164
|
+
font-weight: bold;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.printer-icon {
|
|
168
|
+
height: 50px;
|
|
169
|
+
width: 50px;
|
|
170
|
+
margin-right: 10px;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.select-printer-arrow {
|
|
174
|
+
width: 25px;
|
|
175
|
+
height: 25px;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.clickable {
|
|
179
|
+
cursor: pointer;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.selection {
|
|
183
|
+
padding: 10px;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$cc-co-input-number-picker-border-color: #757575;
|
|
File without changes
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import {Component, Input, OnInit, ViewEncapsulation} from "@angular/core";
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: "co-stock-information",
|
|
5
|
+
template: `
|
|
6
|
+
<div class="stock-info">
|
|
7
|
+
<div class="stock-info-row">
|
|
8
|
+
<div class="stock-info-row-image">
|
|
9
|
+
<div class="stock-image">
|
|
10
|
+
<co-image class="stock-image" [source]="article?.imageData"></co-image>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="stock-good-info">
|
|
14
|
+
<div>
|
|
15
|
+
<span [textContent]="article?.name"></span>
|
|
16
|
+
</div>
|
|
17
|
+
<div>
|
|
18
|
+
<span [textContent]="article?.articleNumber"></span>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="stock-status">
|
|
23
|
+
<label [textContent]="article?.stockStatus"></label>
|
|
24
|
+
</div>
|
|
25
|
+
<div class="stock-status">
|
|
26
|
+
<label [textContent]="'STOCK'"></label>
|
|
27
|
+
<span></span>
|
|
28
|
+
</div>
|
|
29
|
+
<div class="stock-status">
|
|
30
|
+
<label [textContent]="article?.stockAvailable"></label>
|
|
31
|
+
<span>totalAmountAvailable</span>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="stock-status">
|
|
34
|
+
<label [textContent]="'ECONOMICAL_STOCK'"></label>
|
|
35
|
+
<span></span>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="stock-status">
|
|
38
|
+
<label [textContent]="'PHYSICAL_STOCK'"></label>
|
|
39
|
+
<span></span>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
`,
|
|
43
|
+
encapsulation: ViewEncapsulation.None
|
|
44
|
+
})
|
|
45
|
+
export class StockInformationComponent {
|
|
46
|
+
|
|
47
|
+
public stockStatus: string = "medium";
|
|
48
|
+
public image: string;
|
|
49
|
+
public show: boolean = false;
|
|
50
|
+
public hideOrShowLocationTab: boolean = false;
|
|
51
|
+
|
|
52
|
+
@Input()
|
|
53
|
+
public article: any;
|
|
54
|
+
|
|
55
|
+
constructor(
|
|
56
|
+
) {
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
}
|
|
@@ -0,0 +1,278 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
}
|