@colijnit/sharedcomponents 1.0.13 → 1.0.16
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 +721 -150
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.d.ts +1 -0
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/colijnit-sharedcomponents.js +2 -1
- package/esm2015/lib/components/key-pad/key-pad.component.js +191 -0
- package/esm2015/lib/components/key-pad/key-pad.module.js +21 -0
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +18 -7
- package/esm2015/lib/components/stock/stock-information/stock-information.component.js +6 -7
- package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +137 -56
- package/esm2015/lib/components/stock/stock-location/stock-location.component.js +7 -13
- package/esm2015/lib/components/stock/stock-transfer/stock-change-amount.component.js +68 -0
- package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +52 -20
- package/esm2015/lib/components/stock/stock.component.js +23 -22
- package/esm2015/lib/components/stock/stock.module.js +9 -4
- package/esm2015/lib/enum/icon.enum.js +2 -11
- package/esm2015/lib/enum/keyboard-code.enum.js +32 -0
- package/esm2015/lib/model/icon-svg.js +3 -12
- package/esm2015/lib/service/ione-connector-adapter.service.js +121 -32
- package/esm2015/lib/service/stock.service.js +48 -10
- package/esm2015/public-api.js +3 -1
- package/fesm2015/colijnit-sharedcomponents.js +717 -187
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/docsign/style/material.scss +0 -1
- package/lib/components/key-pad/key-pad.component.d.ts +36 -0
- package/lib/components/key-pad/key-pad.module.d.ts +2 -0
- package/lib/components/key-pad/style/_layout.scss +104 -0
- package/lib/components/key-pad/style/_material-definition.scss +17 -0
- package/lib/components/key-pad/style/_theme.scss +35 -0
- package/lib/components/key-pad/style/material.scss +4 -0
- package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +9 -4
- package/lib/components/send-method-dialog/style/material.scss +0 -1
- package/lib/components/stock/stock-information/stock-information.component.d.ts +2 -3
- package/lib/components/stock/stock-information-grid/stock-information-grid.component.d.ts +23 -10
- package/lib/components/stock/stock-location/stock-location.component.d.ts +4 -5
- package/lib/components/stock/stock-transfer/stock-change-amount.component.d.ts +18 -0
- package/lib/components/stock/stock-transfer/stock-transfer.component.d.ts +18 -3
- package/lib/components/stock/stock.component.d.ts +7 -5
- package/lib/components/stock/style/_layout.scss +4 -30
- package/lib/components/stock/style/material.scss +0 -1
- package/lib/enum/icon.enum.d.ts +1 -10
- package/lib/enum/keyboard-code.enum.d.ts +30 -0
- package/lib/service/ione-connector-adapter.service.d.ts +19 -6
- package/lib/service/stock.service.d.ts +18 -3
- package/lib/style/_variables.scss +3 -13
- package/lib/style/sharedcomponents-globals.scss +12 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __awaiter } from 'tslib';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { EventEmitter, Component, ViewEncapsulation, ViewChild, ElementRef, Input, Output, HostBinding, NgModule, Injectable } from '@angular/core';
|
|
3
|
+
import { EventEmitter, Component, ViewEncapsulation, ViewChild, ElementRef, Input, Output, HostBinding, NgModule, Injectable, HostListener } from '@angular/core';
|
|
4
4
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
5
5
|
import { PDFDocument } from 'pdf-lib';
|
|
6
6
|
import * as PDFJS from 'pdfjs-dist/legacy/build/pdf';
|
|
@@ -23,16 +23,21 @@ import { MapPropertyDecorator } from '@colijnit/articleapi/build/factory/decorat
|
|
|
23
23
|
import { BooleanTextDecorator as BooleanTextDecorator$1 } from '@colijnit/articleapi/build/factory/decorators/boolean.decorator';
|
|
24
24
|
import { JsonFieldFieldDecorator } from '@colijnit/articleapi/build/factory/decorators/json.decorator';
|
|
25
25
|
import { ComplexArrayDecorator as ComplexArrayDecorator$1 } from '@colijnit/articleapi/build/factory/decorators/complex-array.decorator';
|
|
26
|
-
import { PrintStockStickers } from '@colijnit/
|
|
27
|
-
import { ArticleFlat } from '@colijnit/articleapi/build/model/article-flat.bo';
|
|
28
|
-
import { ArticlesPublic } from '@colijnit/articleapi/build/articles-public';
|
|
29
|
-
import { PrintJob } from '@colijnit/sharedapi/build/model/report/print-job';
|
|
26
|
+
import { PrintStockStickers } from '@colijnit/sharedapi/build/model/print-stock-stickers';
|
|
30
27
|
import { ArticleStockBo } from '@colijnit/articleapi/build/model/article-stock.bo';
|
|
28
|
+
import { StockHistoryBo } from '@colijnit/articleapi/build/model/stock-history.bo';
|
|
29
|
+
import { StockStickersPrintLayoutsBo } from '@colijnit/sharedapi/build/model/report/stock-stickers-print-layouts.bo';
|
|
30
|
+
import { ArticleDetailsBo } from '@colijnit/articleapi/build/model/article-details.bo';
|
|
31
|
+
import { StockStatus } from '@colijnit/articleapi/build/model/stock-status.bo';
|
|
32
|
+
import { StockManagementWarehouses } from '@colijnit/articleapi/build/model/stock-management-warehouses.bo';
|
|
33
|
+
import { StockLocation } from '@colijnit/articleapi/build/model/stock-location.bo';
|
|
34
|
+
import { PrintStockStickers as PrintStockStickers$1 } from '@colijnit/articleapi/build/model/print-stock-stickers';
|
|
35
|
+
import { GetStockHistoryRequest } from '@colijnit/articleapi/build/model/get-stock-history-request';
|
|
31
36
|
import { ArticleStock } from '@colijnit/articleapi/build/model/article-stock';
|
|
32
|
-
import { CoDialogPromptModule, InputCheckboxModule, InputComboBoxModule, IconModule, InputNumberPickerModule, CoDialogWizardModule, ButtonModule, CoGridModule, InputRadioButtonModule, DropDownModule, SimpleGridModule, ImageModule, InputTextModule } from '@colijnit/corecomponents_v12';
|
|
37
|
+
import { CoDialogPromptModule, InputCheckboxModule, InputComboBoxModule, IconModule, InputNumberPickerModule, CoDialogWizardModule, ButtonModule, CoGridModule, InputRadioButtonModule, DropDownModule, SimpleGridModule, ImageModule, InputTextModule, InputTextareaModule } from '@colijnit/corecomponents_v12';
|
|
33
38
|
import * as i1 from '@angular/platform-browser';
|
|
34
39
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
35
|
-
import {
|
|
40
|
+
import { ArticleStockManagement } from '@colijnit/articleapi/build/model/article-stock-management';
|
|
36
41
|
|
|
37
42
|
class DocsignComponent {
|
|
38
43
|
constructor() {
|
|
@@ -1049,10 +1054,12 @@ class IoneConnectorAdapterService {
|
|
|
1049
1054
|
}
|
|
1050
1055
|
connect(options) {
|
|
1051
1056
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1052
|
-
this.options
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1057
|
+
if (this.options === undefined) {
|
|
1058
|
+
this.options = options;
|
|
1059
|
+
this.connector = new Articles(options);
|
|
1060
|
+
this.sharedConnector = new Sharedapi(options);
|
|
1061
|
+
this.options.session = this.connector.session && this.sharedConnector.session;
|
|
1062
|
+
}
|
|
1056
1063
|
});
|
|
1057
1064
|
}
|
|
1058
1065
|
disconnect() {
|
|
@@ -1092,26 +1099,13 @@ class IoneConnectorAdapterService {
|
|
|
1092
1099
|
});
|
|
1093
1100
|
});
|
|
1094
1101
|
}
|
|
1095
|
-
|
|
1096
|
-
// return new Promise((resolve: Function, reject: Function) => {
|
|
1097
|
-
// return this.sharedConnector.getPrintTemplates(defaultPrinterName).then((result: DataServiceResponse) => {
|
|
1098
|
-
// if (result.validationResult && result.validationResult.success) {
|
|
1099
|
-
// if (result.resultObject) {
|
|
1100
|
-
// resolve(this._boFactory.makeWithRawBackendData(PrintJob, result.resultObject));
|
|
1101
|
-
// }
|
|
1102
|
-
// } else {
|
|
1103
|
-
// reject(result.validationMessagesAsString);
|
|
1104
|
-
// }
|
|
1105
|
-
// })
|
|
1106
|
-
// })
|
|
1107
|
-
// }
|
|
1108
|
-
getStockHistory(request) {
|
|
1102
|
+
getStockStickerPrintLayouts(stockStickersPrintLayoutsBo) {
|
|
1109
1103
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1110
1104
|
return new Promise((resolve, reject) => {
|
|
1111
|
-
return this.
|
|
1105
|
+
return this.sharedConnector.getStockStickerPrintLayouts(stockStickersPrintLayoutsBo).then((result) => {
|
|
1112
1106
|
if (result.validationResult && result.validationResult.success) {
|
|
1113
1107
|
if (result.resultObject) {
|
|
1114
|
-
resolve(this._boFactory.makeWithRawBackendData(
|
|
1108
|
+
resolve(this._boFactory.makeWithRawBackendData(stockStickersPrintLayoutsBo, result.resultObject));
|
|
1115
1109
|
}
|
|
1116
1110
|
}
|
|
1117
1111
|
else {
|
|
@@ -1136,13 +1130,13 @@ class IoneConnectorAdapterService {
|
|
|
1136
1130
|
});
|
|
1137
1131
|
});
|
|
1138
1132
|
}
|
|
1139
|
-
|
|
1133
|
+
getStockHistory(request) {
|
|
1140
1134
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1141
1135
|
return new Promise((resolve, reject) => {
|
|
1142
|
-
return this.connector.
|
|
1136
|
+
return this.connector.getStockHistory(request).then((result) => {
|
|
1143
1137
|
if (result.validationResult && result.validationResult.success) {
|
|
1144
|
-
if (result.resultObject) {
|
|
1145
|
-
resolve(this._boFactory.
|
|
1138
|
+
if (result.resultObject && result.resultObject.hasOwnProperty("stockHistory")) {
|
|
1139
|
+
resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(StockHistoryBo, result.resultObject.stockHistory));
|
|
1146
1140
|
}
|
|
1147
1141
|
}
|
|
1148
1142
|
else {
|
|
@@ -1168,13 +1162,107 @@ class IoneConnectorAdapterService {
|
|
|
1168
1162
|
});
|
|
1169
1163
|
});
|
|
1170
1164
|
}
|
|
1171
|
-
|
|
1165
|
+
getStockManagementWarehouses() {
|
|
1166
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1167
|
+
return new Promise((resolve, reject) => {
|
|
1168
|
+
return this.connector.getStockManagementWarehouses().then((result) => {
|
|
1169
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1170
|
+
if (result.resultObjects) {
|
|
1171
|
+
resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(StockManagementWarehouses, result.resultObjects));
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
else {
|
|
1175
|
+
reject(result.validationMessagesAsString);
|
|
1176
|
+
}
|
|
1177
|
+
});
|
|
1178
|
+
});
|
|
1179
|
+
});
|
|
1180
|
+
}
|
|
1181
|
+
getStockManagementLocations(warehouseNo) {
|
|
1182
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1183
|
+
return new Promise((resolve, reject) => {
|
|
1184
|
+
return this.connector.getStockManagementLocations(warehouseNo).then((result) => {
|
|
1185
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1186
|
+
if (result.resultObjects) {
|
|
1187
|
+
resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(StockLocation, result.resultObjects));
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
else {
|
|
1191
|
+
reject(result.validationMessagesAsString);
|
|
1192
|
+
}
|
|
1193
|
+
});
|
|
1194
|
+
});
|
|
1195
|
+
});
|
|
1196
|
+
}
|
|
1197
|
+
getArticleDetails(data) {
|
|
1198
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1199
|
+
return new Promise((resolve, reject) => {
|
|
1200
|
+
return this.connector.getArticleDetails(data).then((result) => {
|
|
1201
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1202
|
+
if (result.resultObjects) {
|
|
1203
|
+
resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleDetailsBo, result.resultObjects));
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
else {
|
|
1207
|
+
reject(result.validationMessagesAsString);
|
|
1208
|
+
}
|
|
1209
|
+
});
|
|
1210
|
+
});
|
|
1211
|
+
});
|
|
1212
|
+
}
|
|
1213
|
+
updateArticleDetails(data) {
|
|
1214
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1215
|
+
return new Promise((resolve, reject) => {
|
|
1216
|
+
return this.connector.updateArticleDetails(data).then((result) => __awaiter(this, void 0, void 0, function* () {
|
|
1217
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1218
|
+
yield this.commit();
|
|
1219
|
+
resolve(true);
|
|
1220
|
+
}
|
|
1221
|
+
else {
|
|
1222
|
+
reject(result.validationMessagesAsString);
|
|
1223
|
+
}
|
|
1224
|
+
}));
|
|
1225
|
+
});
|
|
1226
|
+
});
|
|
1227
|
+
}
|
|
1228
|
+
lockArticleDetails(data) {
|
|
1229
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1230
|
+
return new Promise((resolve, reject) => {
|
|
1231
|
+
return this.connector.lockArticleDetails(data).then((result) => __awaiter(this, void 0, void 0, function* () {
|
|
1232
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1233
|
+
yield this.commit();
|
|
1234
|
+
resolve(true);
|
|
1235
|
+
}
|
|
1236
|
+
else {
|
|
1237
|
+
reject(result.validationMessagesAsString);
|
|
1238
|
+
}
|
|
1239
|
+
}));
|
|
1240
|
+
});
|
|
1241
|
+
});
|
|
1242
|
+
}
|
|
1243
|
+
getStockStatus() {
|
|
1244
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1245
|
+
return new Promise((resolve, reject) => {
|
|
1246
|
+
return this.connector.getStockState().then((result) => {
|
|
1247
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1248
|
+
if (result.resultObjects) {
|
|
1249
|
+
resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(StockStatus, result.resultObjects));
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
else {
|
|
1253
|
+
reject(result.validationMessagesAsString);
|
|
1254
|
+
}
|
|
1255
|
+
});
|
|
1256
|
+
});
|
|
1257
|
+
});
|
|
1258
|
+
}
|
|
1259
|
+
getStockStickerTemplates(data) {
|
|
1172
1260
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1173
1261
|
return new Promise((resolve, reject) => {
|
|
1174
|
-
return this.
|
|
1262
|
+
return this.sharedConnector.getStockStickerPrintLayouts(data).then((result) => {
|
|
1175
1263
|
if (result.validationResult && result.validationResult.success) {
|
|
1176
1264
|
if (result.resultObject) {
|
|
1177
|
-
resolve(this._boFactory.
|
|
1265
|
+
resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(StockStickersPrintLayoutsBo, result.resultObject));
|
|
1178
1266
|
}
|
|
1179
1267
|
}
|
|
1180
1268
|
else {
|
|
@@ -1184,6 +1272,9 @@ class IoneConnectorAdapterService {
|
|
|
1184
1272
|
});
|
|
1185
1273
|
});
|
|
1186
1274
|
}
|
|
1275
|
+
commit() {
|
|
1276
|
+
return this.connector.commit();
|
|
1277
|
+
}
|
|
1187
1278
|
}
|
|
1188
1279
|
IoneConnectorAdapterService.ɵprov = i0.ɵɵdefineInjectable({ factory: function IoneConnectorAdapterService_Factory() { return new IoneConnectorAdapterService(); }, token: IoneConnectorAdapterService, providedIn: "root" });
|
|
1189
1280
|
IoneConnectorAdapterService.decorators = [
|
|
@@ -1200,22 +1291,17 @@ class StockService {
|
|
|
1200
1291
|
connectConnector(options) {
|
|
1201
1292
|
this._connector.connect(options);
|
|
1202
1293
|
}
|
|
1203
|
-
getPrintStockStickers(data) {
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
});
|
|
1207
|
-
}
|
|
1294
|
+
// public async getPrintStockStickers(data: PrintStockStickers): Promise<void> {
|
|
1295
|
+
// await this._connector.getPrintStockStickers(data);
|
|
1296
|
+
// }
|
|
1208
1297
|
getAllPrinters(showAll = true) {
|
|
1209
1298
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1210
1299
|
return yield this._connector.getAllPrinters(showAll);
|
|
1211
1300
|
});
|
|
1212
1301
|
}
|
|
1213
|
-
// public async getPrintTemplates(defaultPrinterName: PrintJob): Promise<PrintJob> {
|
|
1214
|
-
// return await this._connector.getPrintLayouts(defaultPrinterName);
|
|
1215
|
-
// }
|
|
1216
1302
|
getStockHistory(data) {
|
|
1217
1303
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1218
|
-
yield this._connector.getStockHistory(data);
|
|
1304
|
+
return yield this._connector.getStockHistory(data);
|
|
1219
1305
|
});
|
|
1220
1306
|
}
|
|
1221
1307
|
getStockInformation(data) {
|
|
@@ -1223,6 +1309,49 @@ class StockService {
|
|
|
1223
1309
|
return yield this._connector.getStockInformation(data);
|
|
1224
1310
|
});
|
|
1225
1311
|
}
|
|
1312
|
+
getStockStickerPrintLayouts(data) {
|
|
1313
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1314
|
+
return yield this._connector.getStockStickerPrintLayouts(data);
|
|
1315
|
+
});
|
|
1316
|
+
}
|
|
1317
|
+
getArticleDetails(data) {
|
|
1318
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1319
|
+
return yield this._connector.getArticleDetails(data);
|
|
1320
|
+
});
|
|
1321
|
+
}
|
|
1322
|
+
updateArticleDetails(data) {
|
|
1323
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1324
|
+
return yield this._connector.updateArticleDetails(data);
|
|
1325
|
+
});
|
|
1326
|
+
}
|
|
1327
|
+
getStockState() {
|
|
1328
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1329
|
+
return yield this._connector.getStockStatus();
|
|
1330
|
+
});
|
|
1331
|
+
}
|
|
1332
|
+
getStockStickerTemplates(data) {
|
|
1333
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1334
|
+
return yield this._connector.getStockStickerTemplates(data);
|
|
1335
|
+
});
|
|
1336
|
+
}
|
|
1337
|
+
getStockManagementWarehouses() {
|
|
1338
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1339
|
+
return yield this._connector.getStockManagementWarehouses();
|
|
1340
|
+
});
|
|
1341
|
+
}
|
|
1342
|
+
getStockManagementLocations(warehouseNo) {
|
|
1343
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1344
|
+
return yield this._connector.getStockManagementLocations(warehouseNo);
|
|
1345
|
+
});
|
|
1346
|
+
}
|
|
1347
|
+
lockArticleDetails(data) {
|
|
1348
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1349
|
+
return yield this._connector.lockArticleDetails(data);
|
|
1350
|
+
});
|
|
1351
|
+
}
|
|
1352
|
+
commit() {
|
|
1353
|
+
return this._connector.commit();
|
|
1354
|
+
}
|
|
1226
1355
|
}
|
|
1227
1356
|
StockService.decorators = [
|
|
1228
1357
|
{ type: Injectable }
|
|
@@ -1238,6 +1367,8 @@ class StockComponent {
|
|
|
1238
1367
|
this.showStockInformationGrid = true;
|
|
1239
1368
|
this.showStockLocation = false;
|
|
1240
1369
|
this.showStockTransfer = false;
|
|
1370
|
+
this.allAvailableStock = 0;
|
|
1371
|
+
this.allTechnicalStock = 0;
|
|
1241
1372
|
}
|
|
1242
1373
|
set options(value) {
|
|
1243
1374
|
this.stockService.connectConnector(value);
|
|
@@ -1250,30 +1381,27 @@ class StockComponent {
|
|
|
1250
1381
|
showClass() {
|
|
1251
1382
|
return true;
|
|
1252
1383
|
}
|
|
1253
|
-
// ngAfterViewInit() {
|
|
1254
|
-
// if(this.article) {
|
|
1255
|
-
// this.getStockInformation(this.article as any);
|
|
1256
|
-
// }
|
|
1257
|
-
// }
|
|
1258
1384
|
backToStockLinesClicked() {
|
|
1259
1385
|
this.showStockLocation = false;
|
|
1260
1386
|
this.showStockInformationGrid = true;
|
|
1261
1387
|
}
|
|
1262
1388
|
handleStockTransferClick(event) {
|
|
1263
|
-
this.
|
|
1389
|
+
this.stockTransferArticleDetails = event;
|
|
1264
1390
|
this.showStockTransfer = !this.showStockTransfer;
|
|
1265
1391
|
this.showStockInformationGrid = !this.showStockInformationGrid;
|
|
1266
|
-
this.stockService.stockStickers = new PrintStockStickers();
|
|
1392
|
+
this.stockService.stockStickers = new PrintStockStickers$1();
|
|
1267
1393
|
}
|
|
1268
1394
|
backToStock() {
|
|
1269
1395
|
this.showStockTransfer = !this.showStockTransfer;
|
|
1270
1396
|
this.showStockInformationGrid = !this.showStockInformationGrid;
|
|
1271
1397
|
}
|
|
1272
|
-
|
|
1273
|
-
this
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1398
|
+
getStockHistory() {
|
|
1399
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1400
|
+
const stockHistoryInformation = new GetStockHistoryRequest();
|
|
1401
|
+
stockHistoryInformation.type = "B";
|
|
1402
|
+
stockHistoryInformation.goodId = this.articleExtended.goodId.toString();
|
|
1403
|
+
this.stockHistory = yield this.stockService.getStockHistory(stockHistoryInformation);
|
|
1404
|
+
});
|
|
1277
1405
|
}
|
|
1278
1406
|
getStockInformation(data) {
|
|
1279
1407
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1281,12 +1409,8 @@ class StockComponent {
|
|
|
1281
1409
|
articleData.goodId = data.goodId.toString();
|
|
1282
1410
|
articleData.viewKind = "M";
|
|
1283
1411
|
this.stockInformation = yield this.stockService.getStockInformation(articleData);
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
}
|
|
1287
|
-
getStockLocationInformation(data) {
|
|
1288
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1289
|
-
this.stockLocationInformation = yield this.stockService.getStockInformation(data);
|
|
1412
|
+
this.stockInformation.forEach((articleStock) => this.allAvailableStock += articleStock.availableStock);
|
|
1413
|
+
this.stockInformation.forEach((articleStock) => this.allTechnicalStock += articleStock.technicalStock);
|
|
1290
1414
|
});
|
|
1291
1415
|
}
|
|
1292
1416
|
}
|
|
@@ -1296,15 +1420,19 @@ StockComponent.decorators = [
|
|
|
1296
1420
|
template: `
|
|
1297
1421
|
<div class="stock-info-container">
|
|
1298
1422
|
<co-stock-information [article]="articleExtended"
|
|
1299
|
-
[articleStock]=""
|
|
1300
|
-
|
|
1423
|
+
[articleStock]=""
|
|
1424
|
+
[allAvailableStockInformation]="allAvailableStock"
|
|
1425
|
+
[allTechnicalStockInformation]="allTechnicalStock"
|
|
1426
|
+
>
|
|
1301
1427
|
</co-stock-information>
|
|
1302
1428
|
<hr>
|
|
1303
1429
|
<co-stock-information-grid *ngIf="showStockInformationGrid"
|
|
1304
1430
|
[stockLocationData]="stockLocationInformation"
|
|
1305
|
-
(locationLineClicked)="getStockLocationInformation($event)"
|
|
1306
1431
|
[articleStockInformation]="stockInformation"
|
|
1307
|
-
(transferIconClicked)="handleStockTransferClick($event)"
|
|
1432
|
+
(transferIconClicked)="handleStockTransferClick($event)"
|
|
1433
|
+
(historyClicked)="getStockHistory()"
|
|
1434
|
+
[stockHistoryInformation]="stockHistory"
|
|
1435
|
+
>
|
|
1308
1436
|
</co-stock-information-grid>
|
|
1309
1437
|
<co-stock-location *ngIf="showStockLocation"
|
|
1310
1438
|
(backToStockLines)="backToStockLinesClicked()">
|
|
@@ -1313,6 +1441,7 @@ StockComponent.decorators = [
|
|
|
1313
1441
|
<co-stock-transfer *ngIf="showStockTransfer"
|
|
1314
1442
|
(handleCancelClicked)="backToStock()"
|
|
1315
1443
|
[article]="stockTransferArticle"
|
|
1444
|
+
[articleToTransfer]="stockTransferArticleDetails"
|
|
1316
1445
|
[stockSticker]="stockService.stockStickers"
|
|
1317
1446
|
(handleStickerClicked)="handleStickerClicked.emit($event)"
|
|
1318
1447
|
[articleWarehouse]="articleWarehouse"
|
|
@@ -1339,9 +1468,6 @@ StockComponent.propDecorators = {
|
|
|
1339
1468
|
|
|
1340
1469
|
class StockInformationComponent {
|
|
1341
1470
|
constructor() {
|
|
1342
|
-
this.stockStatus = "medium";
|
|
1343
|
-
this.show = false;
|
|
1344
|
-
this.hideOrShowLocationTab = false;
|
|
1345
1471
|
}
|
|
1346
1472
|
}
|
|
1347
1473
|
StockInformationComponent.decorators = [
|
|
@@ -1370,11 +1496,11 @@ StockInformationComponent.decorators = [
|
|
|
1370
1496
|
</div>
|
|
1371
1497
|
<div class="stock-status">
|
|
1372
1498
|
<label [textContent]="'AMOUNT_IN_STOCK'"></label>
|
|
1373
|
-
<span [textContent]="
|
|
1499
|
+
<span [textContent]="allTechnicalStockInformation"></span>
|
|
1374
1500
|
</div>
|
|
1375
1501
|
<div class="stock-status">
|
|
1376
1502
|
<label [textContent]="'AMOUNT_AVAILABLE'"></label>
|
|
1377
|
-
<span [textContent]=""></span>
|
|
1503
|
+
<span [textContent]="allAvailableStockInformation"></span>
|
|
1378
1504
|
</div>
|
|
1379
1505
|
<div class="stock-status">
|
|
1380
1506
|
<label [textContent]="'AMOUNT_LATER_AVAILABLE'"></label>
|
|
@@ -1388,28 +1514,21 @@ StockInformationComponent.decorators = [
|
|
|
1388
1514
|
StockInformationComponent.ctorParameters = () => [];
|
|
1389
1515
|
StockInformationComponent.propDecorators = {
|
|
1390
1516
|
article: [{ type: Input }],
|
|
1391
|
-
articleStock: [{ type: Input }]
|
|
1517
|
+
articleStock: [{ type: Input }],
|
|
1518
|
+
allAvailableStockInformation: [{ type: Input }],
|
|
1519
|
+
allTechnicalStockInformation: [{ type: Input }]
|
|
1392
1520
|
};
|
|
1393
1521
|
|
|
1394
1522
|
/** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
|
|
1395
1523
|
const IconSvg = {
|
|
1396
1524
|
"arrow_fat_right": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"37.5 25 25.2 12.7 25.2 20.35 12.5 20.35 12.5 29.66 25.2 29.66 25.2 37.3 37.5 25\" fill=\"#484f60\"/></svg>",
|
|
1397
|
-
"
|
|
1398
|
-
"
|
|
1399
|
-
"arrow_point_right": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 51 51\" enable-background=\"new 0 0 51 51\" ><path fill=\"#484F5F\" d=\"M19.1,14.3l14.7,9.6c0.1,0.1,0.2,0.2,0.2,0.4v2.4c0,0.2-0.1,0.3-0.2,0.4l-14.7,9.6c-0.2,0.2-0.5,0.1-0.7-0.1l-1.4-2.1c-0.2-0.2-0.1-0.5,0.1-0.7l12-7.8c0.3-0.2,0.3-0.6,0-0.8l-12-7.8c-0.2-0.2-0.3-0.5-0.1-0.7l1.4-2.1C18.6,14.2,18.9,14.2,19.1,14.3z\"/></svg>",
|
|
1400
|
-
"calendar_day": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 50 50\" enable-background=\"new 0 0 50 50\" ><g><path fill=\"#022D42\" d=\"M35.4,13.7H14.6c-0.6,0-1,0.5-1,1V20h22.9v-5.2C36.4,14.2,36,13.7,35.4,13.7z M19,18.8c-1,0-1.8-0.8-1.8-1.8c0-1,0.8-1.8,1.8-1.8c1,0,1.8,0.8,1.8,1.8C20.8,18,20,18.8,19,18.8z M31,18.8c-1,0-1.8-0.8-1.8-1.8c0-1,0.8-1.8,1.8-1.8s1.8,0.8,1.8,1.8C32.7,18,32,18.8,31,18.8z\"/><path fill=\"#022D42\" d=\"M35.4,22.3v12.6L31.3,39H14.6c0,0,0,0,0,0V22.3H35.4 M36.4,21.3H13.6V39c0,0.6,0.5,1,1,1h17.2l4.7-4.7V21.3L36.4,21.3z\"/><rect x=\"18.2\" y=\"10\" fill=\"#022D42\" width=\"1.6\" height=\"5.2\"/><rect x=\"30.2\" y=\"10\" fill=\"#022D42\" width=\"1.6\" height=\"5.2\"/><rect x=\"18.6\" y=\"30.5\" fill=\"#022D42\" width=\"3.4\" height=\"3.4\"/><rect x=\"19.1\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"19.1\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"19.1\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/></g></svg>",
|
|
1401
|
-
"cancel": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"36 35.16 30.45 35.16 14 14.84 19.55 14.84 36 35.16\" fill=\"#484f60\"/><polygon points=\"14 35.16 19.55 35.16 36 14.84 30.45 14.84 14 35.16\" fill=\"#484f60\"/></svg>",
|
|
1525
|
+
"arrow_point_right": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 51 51\" enable-background=\"new 0 0 51 51\"><path fill=\"#484F5F\" d=\"M19.1,14.3l14.7,9.6c0.1,0.1,0.2,0.2,0.2,0.4v2.4c0,0.2-0.1,0.3-0.2,0.4l-14.7,9.6c-0.2,0.2-0.5,0.1-0.7-0.1l-1.4-2.1c-0.2-0.2-0.1-0.5,0.1-0.7l12-7.8c0.3-0.2,0.3-0.6,0-0.8l-12-7.8c-0.2-0.2-0.3-0.5-0.1-0.7l1.4-2.1C18.6,14.2,18.9,14.2,19.1,14.3z\"/></svg>",
|
|
1526
|
+
"delete_left_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M432.1 208.1L385.9 256L432.1 303C442.3 312.4 442.3 327.6 432.1 336.1C423.6 346.3 408.4 346.3 399 336.1L352 289.9L304.1 336.1C295.6 346.3 280.4 346.3 271 336.1C261.7 327.6 261.7 312.4 271 303L318.1 256L271 208.1C261.7 199.6 261.7 184.4 271 175C280.4 165.7 295.6 165.7 304.1 175L352 222.1L399 175C408.4 165.7 423.6 165.7 432.1 175C442.3 184.4 442.3 199.6 432.1 208.1V208.1zM512 64C547.3 64 576 92.65 576 128V384C576 419.3 547.3 448 512 448H205.3C188.3 448 172 441.3 160 429.3L9.372 278.6C3.371 272.6 0 264.5 0 256C0 247.5 3.372 239.4 9.372 233.4L160 82.75C172 70.74 188.3 64 205.3 64L512 64zM528 128C528 119.2 520.8 112 512 112H205.3C201 112 196.9 113.7 193.9 116.7L54.63 256L193.9 395.3C196.9 398.3 201 400 205.3 400H512C520.8 400 528 392.8 528 384V128z\"/></svg>",
|
|
1402
1527
|
"delivery_truck": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"15.35\" y=\"16.56\" width=\"15.14\" height=\"10.94\" transform=\"translate(-1.83 2.08) rotate(-5)\" fill=\"#484f60\"/><path d=\"M38.5,18.1l-6.9.61L32.41,28l-7.63.67a3.76,3.76,0,0,1,1.43,2.25l7.25-.63A3.83,3.83,0,0,1,41,29.6l1-.1-.52-6Zm.29,5.84-3.91.34a.51.51,0,0,1-.55-.46L34,20.1a.49.49,0,0,1,.45-.54l2.27-.2a.5.5,0,0,1,.48.25l2,3.59A.5.5,0,0,1,38.79,23.94Z\" fill=\"#484f60\"/><path d=\"M19.66,29.09a3.8,3.8,0,0,0-1,2.46l-.74.07-1.82-.94L16,29.41Z\" fill=\"#484f60\"/><path d=\"M34.56,30.62a2.74,2.74,0,1,0,2.49-3A2.73,2.73,0,0,0,34.56,30.62Z\" fill=\"#484f60\"/><path d=\"M19.74,31.91a2.74,2.74,0,1,0,2.49-3A2.74,2.74,0,0,0,19.74,31.91Z\" fill=\"#484f60\"/><rect x=\"7.96\" y=\"17.63\" width=\"5\" height=\"1\" transform=\"translate(-1.54 0.98) rotate(-5)\" fill=\"#484f60\"/><rect x=\"11.02\" y=\"29.71\" width=\"3\" height=\"1\" transform=\"translate(-2.59 1.21) rotate(-5)\" fill=\"#484f60\"/><rect x=\"9.48\" y=\"23.53\" width=\"4\" height=\"1\" transform=\"matrix(1, -0.09, 0.09, 1, -2.05, 1.09)\" fill=\"#484f60\"/></svg>",
|
|
1403
|
-
"edit_pencil": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"12.54 38.16 12 37.62 14.85 29.64 20.52 35.31 12.54 38.16\" fill=\"#484f60\"/><rect x=\"16.33\" y=\"20.52\" width=\"17.99\" height=\"8.64\" transform=\"translate(-10.15 25.18) rotate(-45)\" fill=\"#484f60\"/><path d=\"M37.54,18.73,36,20.32l-6.11-6.1,1.59-1.59a1.55,1.55,0,0,1,2.2,0l3.91,3.9A1.55,1.55,0,0,1,37.54,18.73Z\" fill=\"#484f60\"/></svg>",
|
|
1404
1528
|
"email": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M31.79,38.45A17.82,17.82,0,0,1,23.86,40,13.09,13.09,0,0,1,10.41,26.42C10.41,17.63,16.83,10,26.53,10c7.63,0,13.06,5.21,13.06,12.46,0,6.33-3.53,10.3-8.19,10.3a3.42,3.42,0,0,1-3.71-3.32h-.08A6.5,6.5,0,0,1,22,32.76c-2.75,0-4.82-2.11-4.82-5.65a9.85,9.85,0,0,1,10.13-10,12.89,12.89,0,0,1,5.13,1l-1.3,8c-.43,2.54-.13,3.71,1.08,3.75,1.85.09,4.18-2.28,4.18-7.28,0-5.65-3.62-10-10.3-10S13.73,17.76,13.73,26c0,7.25,4.57,11.3,11,11.3A14.81,14.81,0,0,0,31,36ZM28,20.65a5.34,5.34,0,0,0-1.33-.18c-2.85,0-5.09,2.81-5.09,6.12,0,1.64.73,2.68,2.16,2.68,1.59,0,3.27-2,3.66-4.53Z\" fill=\"#484f60\"/></svg>",
|
|
1405
1529
|
"pdf": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M31.42,40.17H13.88c-2.16,0-2.72-.56-2.72-2.72V12.88c0-2.15.56-2.71,2.72-2.71h11.6l8.66,8.88v3.43H32.8V19.6l-7.88-8.09h-11c-1.38,0-1.38,0-1.38,1.37V37.45c0,1.37,0,1.37,1.38,1.37H31.42c1.38,0,1.38,0,1.38-1.37V35h1.34v2.43C34.14,39.61,33.58,40.17,31.42,40.17Z\" fill=\"#484f60\"/><path d=\"M27.83,26.63v4.24h1a3.57,3.57,0,0,0,.78-.06,1.22,1.22,0,0,0,.52-.26,1.44,1.44,0,0,0,.34-.62,4.13,4.13,0,0,0,.13-1.18,3.79,3.79,0,0,0-.13-1.14,1.51,1.51,0,0,0-.37-.62,1.14,1.14,0,0,0-.6-.3,5.93,5.93,0,0,0-1.06-.06Z\" fill=\"#484f60\"/><path d=\"M21.86,26.63v1.82h.71a3.57,3.57,0,0,0,1-.1A.88.88,0,0,0,24,28a.84.84,0,0,0,.14-.5.8.8,0,0,0-.2-.57.88.88,0,0,0-.52-.29,6.36,6.36,0,0,0-.93,0Z\" fill=\"#484f60\"/><path d=\"M19.14,24.27v9h19.7v-9Zm6.12,4.24a1.68,1.68,0,0,1-.54.63,1.9,1.9,0,0,1-.67.3,6.57,6.57,0,0,1-1.34.1h-.85V32H20.57V25.54h2.07a7.75,7.75,0,0,1,1.54.1,1.73,1.73,0,0,1,.93.63,2,2,0,0,1,.37,1.25A2,2,0,0,1,25.26,28.51Zm6.45,1.66A2.91,2.91,0,0,1,31,31.31a2.28,2.28,0,0,1-.91.51A4,4,0,0,1,29,32H26.54V25.54H28.9a4.21,4.21,0,0,1,1.22.13,2.08,2.08,0,0,1,1,.59,2.79,2.79,0,0,1,.61,1,4.76,4.76,0,0,1,.21,1.52A4.19,4.19,0,0,1,31.71,30.17Zm5.7-3.54h-3.1v1.52H37v1.08H34.31V32H33V25.54h4.39Z\" fill=\"#484f60\"/><path d=\"M25.2,10.84v6.44c0,1.78.27,2,2,2h6.23Z\" fill=\"#484f60\"/></svg>",
|
|
1406
|
-
"plus_round": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"-288 379 35 35\" enable-background=\"new -288 379 35 35\" ><path fill=\"#29363E\" d=\"M-270.5,381.5c-8.3,0-15,6.7-15,15c0,8.3,6.7,15,15,15s15-6.7,15-15C-255.5,388.2-262.2,381.5-270.5,381.5z M-261.1,397.3c0,0.9-0.7,1.6-1.6,1.6h-5.5v5.5c0,0.9-0.7,1.6-1.6,1.6h-1.6c-0.9,0-1.6-0.7-1.6-1.6v-5.5h-5.5c-0.9,0-1.6-0.7-1.6-1.6v-1.6c0-0.9,0.7-1.6,1.6-1.6h5.5v-5.5c0-0.9,0.7-1.6,1.6-1.6h1.6c0.9,0,1.6,0.7,1.6,1.6v5.5h5.5c0.9,0,1.6,0.7,1.6,1.6V397.3z\"/></svg>",
|
|
1407
1530
|
"print": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M38,16.5H12a2,2,0,0,0-2,2v9a2,2,0,0,0,2,2h2v-5H36v5h2a2,2,0,0,0,2-2v-9A2,2,0,0,0,38,16.5ZM37,21a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,37,21Z\" fill=\"#484f60\"/><path d=\"M35,11.5v5H15v-5H35m1-1H14v7H36v-7Z\" fill=\"#484f60\"/><path d=\"M35,25.5v13H15v-13H35m1-1H14v15H36v-15Z\" fill=\"#484f60\"/><rect x=\"17\" y=\"28.3\" width=\"16\" height=\"0.8\" fill=\"#484f60\"/><rect x=\"17\" y=\"31.5\" width=\"16\" height=\"0.8\" fill=\"#484f60\"/><rect x=\"17\" y=\"34.7\" width=\"16\" height=\"0.8\" fill=\"#484f60\"/></svg>",
|
|
1408
1531
|
"signature_field": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M20.1,25.42a1.1,1.1,0,1,1,1.27,1.45l-3.3,9.07A63.13,63.13,0,0,1,28,28.3l1.26-12-8.26-3-6.77,10A62.4,62.4,0,0,1,17,35.54l3.3-9.07A1.12,1.12,0,0,1,20.1,25.42Z\" fill=\"#484f60\"/><rect x=\"21.62\" y=\"11.43\" width=\"8.79\" height=\"2.34\" transform=\"translate(5.88 -8.14) rotate(20)\" fill=\"#484f60\"/><path d=\"M18.11,37.48c1.44,2.65,4.58,2.94,7.23,2.1,1.41-.44,2.2-1.49,3.44-2.06,2.42-1.1,3.13,1.2,5.36,1.37.42,0,2-.65,1.54-.68-2.55-.19-2.93-3.13-5.51-2.65a4.9,4.9,0,0,0-1.64.71c-.77.49-1.31,1.62-2.07,2l-4.61.56A3.38,3.38,0,0,1,20,37c-.22-.41-2,.28-1.85.5Z\" fill=\"#484f60\"/></svg>",
|
|
1409
|
-
"tag": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M40,29.15v-.68a5.28,5.28,0,0,0-1.34-3.25L24.78,11.34A5.34,5.34,0,0,0,21.53,10H11.9A1.91,1.91,0,0,0,10,11.9v9.63a5.28,5.28,0,0,0,1.34,3.25L25.22,38.66A5.28,5.28,0,0,0,28.47,40h.68a5.28,5.28,0,0,0,3.24-1.34l6.27-6.27A5.28,5.28,0,0,0,40,29.15ZM13.13,16.72a2.54,2.54,0,1,1,3.59,0A2.55,2.55,0,0,1,13.13,16.72Zm15.9,19L17.84,24.55l1.34-1.34L30.37,34.4Zm2.69-2.69L20.52,21.87l1.35-1.35,11.19,11.2Zm2.68-2.69L23.21,19.18l1.34-1.34L35.75,29Z\" fill=\"#484f60\"/></svg>",
|
|
1410
|
-
"thick_lines": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"10\" y=\"12.67\" width=\"30\" height=\"7\" fill=\"#484f60\"/><rect x=\"10\" y=\"21.67\" width=\"30\" height=\"7\" fill=\"#484f60\"/><rect x=\"10\" y=\"30.67\" width=\"30\" height=\"7\" fill=\"#484f60\"/></svg>",
|
|
1411
|
-
"thin_lines": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"10\" y=\"14.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/><rect x=\"10\" y=\"20.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/><rect x=\"10\" y=\"26.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/><rect x=\"10\" y=\"32.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/></svg>",
|
|
1412
|
-
"txt": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M31.42,40.17H13.87c-2.15,0-2.71-.56-2.71-2.72V12.88c0-2.15.56-2.71,2.71-2.71H25.48l8.66,8.88v3.43H32.8V19.6l-7.88-8.09H13.87c-1.37,0-1.37,0-1.37,1.37V37.45c0,1.37,0,1.37,1.37,1.37H31.42c1.38,0,1.38,0,1.38-1.37V35h1.34v2.43C34.14,39.61,33.58,40.17,31.42,40.17Z\" fill=\"#484f60\"/><path d=\"M25.2,10.84v6.44c0,1.78.27,2,2,2h6.23Z\" fill=\"#484f60\"/><path d=\"M19.14,24.27v9h19.7v-9Zm6.68,2.36h-1.9V32h-1.3V26.63h-1.9V25.54h5.1ZM30.4,32,29,29.74,27.55,32H26l2.19-3.34-2-3.07h1.52L29,27.6l1.26-2.06h1.5l-2,3.12L32,32Zm6.86-5.32h-1.9V32H34.07V26.63H32.16V25.54h5.1Z\" fill=\"#484f60\"/></svg>",
|
|
1413
1532
|
"xml": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M31.42,40.17H13.87c-2.15,0-2.71-.56-2.71-2.72V12.88c0-2.15.56-2.71,2.71-2.71H25.48l8.66,8.88v3.43H32.8V19.6l-7.88-8.09H13.87c-1.37,0-1.37,0-1.37,1.37V37.45c0,1.37,0,1.37,1.37,1.37H31.42c1.38,0,1.38,0,1.38-1.37V35h1.34v2.43C34.14,39.61,33.58,40.17,31.42,40.17Z\" fill=\"#484f60\"/><path d=\"M25.2,10.84v6.44c0,1.78.27,2,2,2h6.23Z\" fill=\"#484f60\"/><path d=\"M19.14,24.27v9h19.7v-9Zm5.36,7.41-1.3-2-1.3,2H20.48l2-3.06-1.81-2.8h1.38l1.18,1.88,1.15-1.88h1.37l-1.83,2.85,2,3Zm7.67,0h-1.1V27.07l-1.16,4.61H28.77l-1.16-4.61v4.61H26.52V25.82h1.76l1.07,4,1-4h1.77Zm5.33,0H33.38V25.87h1.18v4.82H37.5Z\" fill=\"#484f60\"/></svg>"
|
|
1414
1533
|
};
|
|
1415
1534
|
|
|
@@ -1463,22 +1582,13 @@ IconCacheService.ctorParameters = () => [
|
|
|
1463
1582
|
var Icon;
|
|
1464
1583
|
(function (Icon) {
|
|
1465
1584
|
Icon["ArrowFatRight"] = "arrow_fat_right";
|
|
1466
|
-
Icon["ArrowPointDown"] = "arrow_point_down";
|
|
1467
|
-
Icon["ArrowPointLeft"] = "arrow_point_left";
|
|
1468
1585
|
Icon["ArrowPointRight"] = "arrow_point_right";
|
|
1469
|
-
Icon["
|
|
1470
|
-
Icon["Cancel"] = "cancel";
|
|
1586
|
+
Icon["DeleteLeftRegular"] = "delete_left_regular";
|
|
1471
1587
|
Icon["DeliveryTruck"] = "delivery_truck";
|
|
1472
|
-
Icon["EditPencil"] = "edit_pencil";
|
|
1473
1588
|
Icon["Email"] = "email";
|
|
1474
1589
|
Icon["Pdf"] = "pdf";
|
|
1475
|
-
Icon["PlusRound"] = "plus_round";
|
|
1476
1590
|
Icon["Print"] = "print";
|
|
1477
1591
|
Icon["SignatureField"] = "signature_field";
|
|
1478
|
-
Icon["Tag"] = "tag";
|
|
1479
|
-
Icon["ThickLines"] = "thick_lines";
|
|
1480
|
-
Icon["ThinLines"] = "thin_lines";
|
|
1481
|
-
Icon["Txt"] = "txt";
|
|
1482
1592
|
Icon["Xml"] = "xml";
|
|
1483
1593
|
})(Icon || (Icon = {}));
|
|
1484
1594
|
|
|
@@ -1487,27 +1597,17 @@ class StockInformationGridComponent {
|
|
|
1487
1597
|
this.iconCacheService = iconCacheService;
|
|
1488
1598
|
this._stockService = _stockService;
|
|
1489
1599
|
this.icons = Icon;
|
|
1490
|
-
this.locationLineClicked = new EventEmitter();
|
|
1491
1600
|
this.transferIconClicked = new EventEmitter();
|
|
1601
|
+
this.historyClicked = new EventEmitter();
|
|
1492
1602
|
this.show = false;
|
|
1493
1603
|
this.hideOrShowLocationTab = false;
|
|
1494
1604
|
this.showStockHistory = false;
|
|
1495
1605
|
this.showSendMethodDialog = false;
|
|
1496
|
-
this.data = [
|
|
1497
|
-
{ test: "test" }
|
|
1498
|
-
];
|
|
1499
|
-
this.inOrderInformation = [
|
|
1500
|
-
{ inOrder: "275432", customer: "Test customer", orderDate: "date", orderAmount: "2", warehouseNumber: "8", warehouseDescription: "A nice warehouse", amountInStock: "17", commission: "4014321" },
|
|
1501
|
-
{ inOrder: "275432", customer: "Test customer", orderDate: "date", orderAmount: "2", warehouseNumber: "8", warehouseDescription: "A nice warehouse", amountInStock: "17", commission: "4014321" },
|
|
1502
|
-
{ inOrder: "275432", customer: "Test customer", orderDate: "date", orderAmount: "2", warehouseNumber: "8", warehouseDescription: "A nice warehouse", amountInStock: "17", commission: "4014321" },
|
|
1503
|
-
{ inOrder: "275432", customer: "Test customer", orderDate: "date", orderAmount: "2", warehouseNumber: "8", warehouseDescription: "A nice warehouse", amountInStock: "17", commission: "4014321" },
|
|
1504
|
-
{ inOrder: "275432", customer: "Test customer", orderDate: "date", orderAmount: "2", warehouseNumber: "8", warehouseDescription: "A nice warehouse", amountInStock: "17", commission: "4014321" },
|
|
1505
|
-
];
|
|
1506
|
-
this.orderInformation = [];
|
|
1507
1606
|
this.hideOrShowTabs = true;
|
|
1508
|
-
this.
|
|
1509
|
-
this.dataWareHouseFields = { text: "warehouseDescription", value: "warehouseNumber" };
|
|
1607
|
+
this.dataWareHouseFields = { text: "warehouseDescription", value: "warehouseNo" };
|
|
1510
1608
|
this.articleStockSearchInfo = new ArticleStock();
|
|
1609
|
+
this.showChangeStockDetails = false;
|
|
1610
|
+
this.articleDetailsInformation = new ArticleStockManagement();
|
|
1511
1611
|
this.tabs = [
|
|
1512
1612
|
"STOCK",
|
|
1513
1613
|
"IN_ORDER2",
|
|
@@ -1528,25 +1628,38 @@ class StockInformationGridComponent {
|
|
|
1528
1628
|
}
|
|
1529
1629
|
}
|
|
1530
1630
|
handleTabClick(tabData) {
|
|
1631
|
+
console.log(tabData);
|
|
1531
1632
|
this.activeTab = tabData;
|
|
1633
|
+
if (this.activeTab === "IN_ORDER2") {
|
|
1634
|
+
this.getInOrderData();
|
|
1635
|
+
}
|
|
1636
|
+
if (this.activeTab === "ORDERS1") {
|
|
1637
|
+
this.getOrderData();
|
|
1638
|
+
}
|
|
1532
1639
|
}
|
|
1533
1640
|
onLocationClick(data) {
|
|
1534
1641
|
this.articleStockSearchInfo.goodId = data.goodId.toString();
|
|
1535
1642
|
this.articleStockSearchInfo.wareHouseNo = data.warehouseNo.toString();
|
|
1536
1643
|
this.articleStockSearchInfo.viewKind = "D";
|
|
1537
|
-
|
|
1644
|
+
if (!this.dataWareHouseCode) {
|
|
1645
|
+
this.getStockManagementWarehouses(data);
|
|
1646
|
+
}
|
|
1647
|
+
this.getArticleDetails(data);
|
|
1538
1648
|
this.hideOrShowTabs = false;
|
|
1539
1649
|
this.hideOrShowLocationTab = true;
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
this.show = false;
|
|
1650
|
+
console.log(this.articleDetailsInformation);
|
|
1651
|
+
this._stockService.lockArticleDetails(this.articleDetailsInformation);
|
|
1543
1652
|
}
|
|
1544
1653
|
handleHistoryClick() {
|
|
1545
|
-
|
|
1546
|
-
|
|
1654
|
+
this.historyClicked.emit();
|
|
1655
|
+
this.hideOrShowLocationTab = false;
|
|
1656
|
+
this.showChangeStockDetails = false;
|
|
1657
|
+
this.hideOrShowTabs = false;
|
|
1658
|
+
this.showStockHistory = true;
|
|
1547
1659
|
}
|
|
1548
|
-
|
|
1549
|
-
this.
|
|
1660
|
+
backToStockInformation() {
|
|
1661
|
+
this.showStockHistory = false;
|
|
1662
|
+
this.hideOrShowTabs = true;
|
|
1550
1663
|
}
|
|
1551
1664
|
handleStockTransferClick(event) {
|
|
1552
1665
|
this.transferIconClicked.emit(event);
|
|
@@ -1562,14 +1675,60 @@ class StockInformationGridComponent {
|
|
|
1562
1675
|
this.showSendMethodDialog = !this.showSendMethodDialog;
|
|
1563
1676
|
}
|
|
1564
1677
|
printStockStickers() {
|
|
1565
|
-
this.printSticker = new PrintStockStickers
|
|
1678
|
+
this.printSticker = new PrintStockStickers();
|
|
1566
1679
|
this.printSticker.goodId = 10;
|
|
1567
|
-
this._stockService.getPrintStockStickers(this.printSticker);
|
|
1680
|
+
// this._stockService.getPrintStockStickers(this.printSticker);
|
|
1568
1681
|
}
|
|
1569
1682
|
onOkClick() {
|
|
1570
1683
|
}
|
|
1571
1684
|
onCancelClick() {
|
|
1572
1685
|
}
|
|
1686
|
+
openDialogClick(data) {
|
|
1687
|
+
this.selectedArticleDetailsData = data;
|
|
1688
|
+
this.showChangeStockDetails = true;
|
|
1689
|
+
}
|
|
1690
|
+
getArticleDetails(data) {
|
|
1691
|
+
// const info = new ArticleStockManagement();
|
|
1692
|
+
this.articleDetailsInformation.goodId = data.goodId;
|
|
1693
|
+
this.articleDetailsInformation.lineId = data.lineId;
|
|
1694
|
+
this.articleDetailsInformation.warehouseNumber = data.warehouseNo;
|
|
1695
|
+
this._stockService.getArticleDetails(this.articleDetailsInformation).then((details) => {
|
|
1696
|
+
this.articleDetails = details;
|
|
1697
|
+
});
|
|
1698
|
+
}
|
|
1699
|
+
getStockManagementWarehouses(data) {
|
|
1700
|
+
this._stockService.getStockManagementWarehouses().then((warehouses) => {
|
|
1701
|
+
this.dataWareHouseCode = warehouses;
|
|
1702
|
+
this.selectedWarehouse = data.warehouseNo;
|
|
1703
|
+
});
|
|
1704
|
+
}
|
|
1705
|
+
onSelectWarehouse(event) {
|
|
1706
|
+
this.articleDetailsInformation.warehouseNumber = event;
|
|
1707
|
+
console.log(event);
|
|
1708
|
+
if (this.dataWareHouseCode != null) {
|
|
1709
|
+
this._stockService.getArticleDetails(this.articleDetailsInformation).then((details) => {
|
|
1710
|
+
this.articleDetails = details;
|
|
1711
|
+
});
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
getInOrderData() {
|
|
1715
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1716
|
+
const inOrderData = new GetStockHistoryRequest();
|
|
1717
|
+
inOrderData.type = "O";
|
|
1718
|
+
inOrderData.goodId = this.articleStockInformation[0].goodId.toString();
|
|
1719
|
+
// inOrderData.wareHouseNr = Number(this.articleStockInformation[0].warehouseNo);
|
|
1720
|
+
this.inOrderInformation = yield this._stockService.getStockHistory(inOrderData);
|
|
1721
|
+
});
|
|
1722
|
+
}
|
|
1723
|
+
getOrderData() {
|
|
1724
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1725
|
+
const inOrderData = new GetStockHistoryRequest();
|
|
1726
|
+
inOrderData.type = "B";
|
|
1727
|
+
inOrderData.goodId = this.articleStockInformation[0].goodId.toString();
|
|
1728
|
+
// inOrderData.wareHouseNr = Number(this.articleStockInformation[0].warehouseNo);
|
|
1729
|
+
this.orderInformation = yield this._stockService.getStockHistory(inOrderData);
|
|
1730
|
+
});
|
|
1731
|
+
}
|
|
1573
1732
|
}
|
|
1574
1733
|
StockInformationGridComponent.decorators = [
|
|
1575
1734
|
{ type: Component, args: [{
|
|
@@ -1593,14 +1752,14 @@ StockInformationGridComponent.decorators = [
|
|
|
1593
1752
|
<co-simple-grid *ngIf="activeTab === tabs[0] && hideOrShowTabs"
|
|
1594
1753
|
[data]="articleStockInformation"
|
|
1595
1754
|
>
|
|
1596
|
-
<co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'warehouseNo'"></co-simple-grid-column>
|
|
1597
|
-
<co-simple-grid-column [headerText]="'DESCRIPTION'" [field]="'warehouseName'"></co-simple-grid-column>
|
|
1598
|
-
<co-simple-grid-column [headerText]="'STOCK'" [field]="'technicalStock'"></co-simple-grid-column>
|
|
1599
|
-
<co-simple-grid-column [headerText]="'AVAILABLE_STOCK'" [field]="'availableStock'"></co-simple-grid-column>
|
|
1600
|
-
<co-simple-grid-column [headerText]="'ECONOMICAL_STOCK'" [field]="'economicalStock'"></co-simple-grid-column>
|
|
1601
|
-
<co-simple-grid-column [headerText]="'LOCATION'" [field]="'locationNo'">
|
|
1755
|
+
<co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'warehouseNo'" [order]="10"></co-simple-grid-column>
|
|
1756
|
+
<co-simple-grid-column [headerText]="'DESCRIPTION'" [field]="'warehouseName'" [order]="11"></co-simple-grid-column>
|
|
1757
|
+
<co-simple-grid-column [headerText]="'STOCK'" [field]="'technicalStock'" [order]="12"></co-simple-grid-column>
|
|
1758
|
+
<co-simple-grid-column [headerText]="'AVAILABLE_STOCK'" [field]="'availableStock'" [order]="13"></co-simple-grid-column>
|
|
1759
|
+
<co-simple-grid-column [headerText]="'ECONOMICAL_STOCK'" [field]="'economicalStock'" [order]="14"></co-simple-grid-column>
|
|
1760
|
+
<co-simple-grid-column [headerText]="'LOCATION'" [field]="'locationNo'" [order]="15">
|
|
1602
1761
|
<ng-template #template let-row="row">
|
|
1603
|
-
<span [textContent]="'
|
|
1762
|
+
<span [textContent]="'Bekijken'" (click)="onLocationClick(row)"></span>
|
|
1604
1763
|
</ng-template>
|
|
1605
1764
|
</co-simple-grid-column>
|
|
1606
1765
|
</co-simple-grid>
|
|
@@ -1608,12 +1767,12 @@ StockInformationGridComponent.decorators = [
|
|
|
1608
1767
|
<co-simple-grid *ngIf="activeTab === tabs[1]"
|
|
1609
1768
|
[data]="inOrderInformation"
|
|
1610
1769
|
>
|
|
1611
|
-
<co-simple-grid-column [headerText]="'IN_ORDER2'" [field]="'
|
|
1612
|
-
<co-simple-grid-column [headerText]="'CUSTOMER'" [field]="'
|
|
1613
|
-
<co-simple-grid-column [headerText]="'DATE'" [field]="'
|
|
1614
|
-
<co-simple-grid-column [headerText]="'AMOUNT'" [field]="'
|
|
1615
|
-
<co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'
|
|
1616
|
-
<co-simple-grid-column [headerText]="'DESCRIPTION'" [field]="'
|
|
1770
|
+
<co-simple-grid-column [headerText]="'IN_ORDER2'" [field]="'amount'"></co-simple-grid-column>
|
|
1771
|
+
<co-simple-grid-column [headerText]="'CUSTOMER'" [field]="'user'"></co-simple-grid-column>
|
|
1772
|
+
<co-simple-grid-column [headerText]="'DATE'" [field]="'mutationDate'"></co-simple-grid-column>
|
|
1773
|
+
<co-simple-grid-column [headerText]="'AMOUNT'" [field]="'amount'"></co-simple-grid-column>
|
|
1774
|
+
<co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'wareHouseNr'"></co-simple-grid-column>
|
|
1775
|
+
<co-simple-grid-column [headerText]="'DESCRIPTION'" [field]="'locationNr'"></co-simple-grid-column>
|
|
1617
1776
|
<co-simple-grid-column [headerText]="'STOCK'" [field]="'amountInStock'"></co-simple-grid-column>
|
|
1618
1777
|
<co-simple-grid-column [headerText]="'COMMISSION2'" [field]="'commission'"></co-simple-grid-column>
|
|
1619
1778
|
<co-simple-grid-column [headerText]="'TRANSFER'" [field]="'transfer'">
|
|
@@ -1631,9 +1790,9 @@ StockInformationGridComponent.decorators = [
|
|
|
1631
1790
|
<co-simple-grid *ngIf="activeTab === tabs[2]"
|
|
1632
1791
|
[data]="orderInformation"
|
|
1633
1792
|
>
|
|
1634
|
-
<co-simple-grid-column [headerText]="'PURCHASE_ORDER_NR'" [field]="'
|
|
1635
|
-
<co-simple-grid-column [headerText]="'DATE'" [field]="'
|
|
1636
|
-
<co-simple-grid-column [headerText]="'AMOUNT'" [field]="'
|
|
1793
|
+
<co-simple-grid-column [headerText]="'PURCHASE_ORDER_NR'" [field]="'seriesNr'"></co-simple-grid-column>
|
|
1794
|
+
<co-simple-grid-column [headerText]="'DATE'" [field]="'mutationDate'"></co-simple-grid-column>
|
|
1795
|
+
<co-simple-grid-column [headerText]="'AMOUNT'" [field]="'amount'"></co-simple-grid-column>
|
|
1637
1796
|
<co-simple-grid-column [headerText]="'RESERVED'" [field]="'reserved'"></co-simple-grid-column>
|
|
1638
1797
|
<co-simple-grid-column [headerText]="'FREE_STOCK'" [field]="'freeStock'"></co-simple-grid-column>
|
|
1639
1798
|
<co-simple-grid-column [headerText]="'DELIVERY_DATE1'" [field]="'deliveryDate'"></co-simple-grid-column>
|
|
@@ -1647,28 +1806,40 @@ StockInformationGridComponent.decorators = [
|
|
|
1647
1806
|
<span class="stock-button-back" [textContent]="'BACK_TO_STOCK_LINES'" (click)="handleBackToStockClick()"></span>
|
|
1648
1807
|
</div>
|
|
1649
1808
|
<div class="stock-location-right-group">
|
|
1650
|
-
<co-
|
|
1809
|
+
<co-drop-down-list [(model)]="selectedWarehouse"
|
|
1810
|
+
[collection]="dataWareHouseCode"
|
|
1651
1811
|
[fields]="dataWareHouseFields"
|
|
1652
1812
|
[placeholder]="'WAREHOUSE'"
|
|
1813
|
+
(modelChange)="onSelectWarehouse($event)"
|
|
1653
1814
|
[required]="true"
|
|
1654
|
-
></co-
|
|
1815
|
+
></co-drop-down-list>
|
|
1655
1816
|
</div>
|
|
1656
1817
|
</div>
|
|
1657
1818
|
|
|
1658
1819
|
<!-- TODO move to own component stock-location-->
|
|
1659
|
-
<co-simple-grid [data]="
|
|
1820
|
+
<co-simple-grid [data]="articleDetails"
|
|
1660
1821
|
>
|
|
1661
1822
|
<div class="stock-location-group">
|
|
1662
1823
|
<div class="stock-location-left-group">
|
|
1663
1824
|
<co-button class="stock-lines-button" [textContent]="'BACK_TO_STOCK_LINES'" (click)="handleBackToStockClick()"></co-button>
|
|
1664
1825
|
</div>
|
|
1665
1826
|
</div>
|
|
1666
|
-
<co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'
|
|
1827
|
+
<co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'warehouseDescription'"></co-simple-grid-column>
|
|
1667
1828
|
<co-simple-grid-column [headerText]="'BATCH'" [field]="'batchNo'"></co-simple-grid-column>
|
|
1668
1829
|
<co-simple-grid-column [headerText]="'SERIAL_NO'" [field]="'serialNo'"></co-simple-grid-column>
|
|
1669
|
-
<co-simple-grid-column [headerText]="'STOCK'" [field]="'
|
|
1670
|
-
|
|
1671
|
-
|
|
1830
|
+
<co-simple-grid-column [headerText]="'STOCK'" [field]="'amountInStock'">
|
|
1831
|
+
<ng-template #template let-row="row">
|
|
1832
|
+
<co-input-number-picker (keyup.enter)="openDialogClick(row)" [(model)]="row['amountInStock']">
|
|
1833
|
+
|
|
1834
|
+
</co-input-number-picker>
|
|
1835
|
+
</ng-template>
|
|
1836
|
+
</co-simple-grid-column>
|
|
1837
|
+
<co-simple-grid-column [headerText]="'ALLOCATED'" [field]="'amountInStockFree'"></co-simple-grid-column>
|
|
1838
|
+
<co-simple-grid-column [headerText]="'AVAILABLE_STOCK'" [field]="'perceptibleStorage'"></co-simple-grid-column>
|
|
1839
|
+
<co-simple-grid-column [headerText]="'PHYSICAL_STOCK'" [field]="'amountInStockOriginal'"></co-simple-grid-column>
|
|
1840
|
+
<co-simple-grid-column [headerText]="'VALUTA'" [field]="'currency'"></co-simple-grid-column>
|
|
1841
|
+
<co-simple-grid-column [headerText]="'PURCHASE_PRICE'" [field]="'purchasePrice'"></co-simple-grid-column>
|
|
1842
|
+
<co-simple-grid-column [headerText]="'SUPPLIER_NUMBER'" [field]="'supplierNo'"></co-simple-grid-column>
|
|
1672
1843
|
<co-simple-grid-column [headerText]="'TRANSFER'" [field]="'transfer'">
|
|
1673
1844
|
<ng-template #template let-row="row">
|
|
1674
1845
|
<co-icon class="menu-icon" [iconData]="iconCacheService.getIcon(icons.DeliveryTruck)" (click)="handleStockTransferClick(row)"></co-icon>
|
|
@@ -1682,15 +1853,32 @@ StockInformationGridComponent.decorators = [
|
|
|
1682
1853
|
</co-simple-grid>
|
|
1683
1854
|
</div>
|
|
1684
1855
|
|
|
1856
|
+
<co-stock-change-amount *ngIf="showChangeStockDetails"
|
|
1857
|
+
(closeStockChangeAmount)="showChangeStockDetails = false"
|
|
1858
|
+
[selectedArticleDetailsData]="selectedArticleDetailsData"
|
|
1859
|
+
>
|
|
1860
|
+
</co-stock-change-amount>
|
|
1861
|
+
|
|
1685
1862
|
<div class="stock-grid" *ngIf="showStockHistory">
|
|
1863
|
+
<div class="stock-button-left-group">
|
|
1864
|
+
<span class="stock-button-back" [textContent]="'BACK_TO_STOCK_LINES'" (click)="backToStockInformation()"></span>
|
|
1865
|
+
</div>
|
|
1686
1866
|
<co-simple-grid [data]="stockHistoryInformation"
|
|
1687
1867
|
>
|
|
1688
|
-
<co-simple-grid-column [headerText]="'
|
|
1689
|
-
<co-simple-grid-column [headerText]="'
|
|
1690
|
-
<co-simple-grid-column [headerText]="'
|
|
1691
|
-
<co-simple-grid-column [headerText]="'
|
|
1692
|
-
<co-simple-grid-column [headerText]="'
|
|
1693
|
-
<co-simple-grid-column [headerText]="'
|
|
1868
|
+
<co-simple-grid-column [headerText]="'MUTATION_DATE'" [field]="'mutationDate'"></co-simple-grid-column>
|
|
1869
|
+
<co-simple-grid-column [headerText]="'MUTATION_TIME'" [field]="'mutationTime'"></co-simple-grid-column>
|
|
1870
|
+
<co-simple-grid-column [headerText]="'AMOUNT'" [field]="'amount'"></co-simple-grid-column>
|
|
1871
|
+
<co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'wareHouseNr'"></co-simple-grid-column>
|
|
1872
|
+
<co-simple-grid-column [headerText]="'LOCATION'" [field]="'locationNr'"></co-simple-grid-column>
|
|
1873
|
+
<co-simple-grid-column [headerText]="'TRANSACTION_TYPE'" [field]="'transType'"></co-simple-grid-column>
|
|
1874
|
+
<co-simple-grid-column [headerText]="'DOCUMENT_NUMBER'" [field]="'docNr'"></co-simple-grid-column>
|
|
1875
|
+
<co-simple-grid-column [headerText]="'LINE'" [field]="'posLineNr'"></co-simple-grid-column>
|
|
1876
|
+
<co-simple-grid-column [headerText]="'STOCK_STATE'" [field]="'stockStateId'"></co-simple-grid-column>
|
|
1877
|
+
<co-simple-grid-column [headerText]="'STOCK_REMARK'" [field]="'stockStateRemarkId'"></co-simple-grid-column>
|
|
1878
|
+
<co-simple-grid-column [headerText]="'VALUTA'" [field]="'currencyCode'"></co-simple-grid-column>
|
|
1879
|
+
<co-simple-grid-column [headerText]="'RELATION_ID'" [field]="'relationId'"></co-simple-grid-column>
|
|
1880
|
+
<co-simple-grid-column [headerText]="'USER'" [field]="'user'"></co-simple-grid-column>
|
|
1881
|
+
<co-simple-grid-column [headerText]="'MUTATION_TYPE'" [field]="'mutationType'"></co-simple-grid-column>
|
|
1694
1882
|
<co-simple-grid-column [headerText]="'STICKER'" [field]="'sticker'">
|
|
1695
1883
|
<ng-template #template let-row="row">
|
|
1696
1884
|
<co-icon class="menu-icon" [iconData]="iconCacheService.getIcon(icons.Print)" (click)="openSendMethodDialog()"></co-icon>
|
|
@@ -1713,6 +1901,7 @@ StockInformationGridComponent.decorators = [
|
|
|
1713
1901
|
</div>
|
|
1714
1902
|
</div>
|
|
1715
1903
|
<ione-send-method-dialog
|
|
1904
|
+
*ngIf="showSendMethodDialog"
|
|
1716
1905
|
[showDialog]="showSendMethodDialog"
|
|
1717
1906
|
(printButtonClicked)="printStockStickers()"
|
|
1718
1907
|
></ione-send-method-dialog>
|
|
@@ -1727,31 +1916,22 @@ StockInformationGridComponent.ctorParameters = () => [
|
|
|
1727
1916
|
StockInformationGridComponent.propDecorators = {
|
|
1728
1917
|
stock: [{ type: ViewChild, args: [StockInformationGridComponent,] }],
|
|
1729
1918
|
articleStockInformation: [{ type: Input }],
|
|
1730
|
-
stockHistoryInformation: [{ type: Input }],
|
|
1731
1919
|
stockLocationData: [{ type: Input }],
|
|
1732
|
-
|
|
1733
|
-
transferIconClicked: [{ type: Output }]
|
|
1920
|
+
stockHistoryInformation: [{ type: Input }],
|
|
1921
|
+
transferIconClicked: [{ type: Output }],
|
|
1922
|
+
historyClicked: [{ type: Output }]
|
|
1734
1923
|
};
|
|
1735
1924
|
|
|
1736
1925
|
class StockLocationComponent {
|
|
1737
|
-
constructor() {
|
|
1926
|
+
constructor(_stockService) {
|
|
1927
|
+
this._stockService = _stockService;
|
|
1738
1928
|
this.backToStockLines = new EventEmitter();
|
|
1739
|
-
this.MAX_GRID_ROWS = 10;
|
|
1740
1929
|
this.stockLocationColumns = [];
|
|
1741
|
-
this.stockLocation = [
|
|
1742
|
-
{ location: "title 1", batch: "1", serieNo: "1", amountInStock: "1", allocated: "1", amountAvailable: "1" },
|
|
1743
|
-
{ location: "title 2", amountInStock: "2" },
|
|
1744
|
-
{ location: "title 3", amountInStock: "3" },
|
|
1745
|
-
{ location: "title 4", amountInStock: "4" },
|
|
1746
|
-
{ location: "title 5", amountInStock: "5" },
|
|
1747
|
-
];
|
|
1748
1930
|
this.stockLocationColumns.push({ field: "location", headerText: "WAREHOUSE", editType: "none" }, { field: "batch", headerText: "BATCH" }, { field: "serieNo", headerText: "SERIAL_NO" }, { field: "amountInStock", headerText: "STOCK", textAlign: "Right", editType: "numericEdit" }, { field: "allocated", headerText: "ALLOCATED", textAlign: "Right" }, { field: "amountAvailable", headerText: "AVAILABLE_STOCK", textAlign: "Right" }, { field: "PhysicalStock", headerText: "PHYSICAL_STOCK", textAlign: "Right" }, { field: "Valuta", headerText: "VALUTA", textAlign: "Right" }, { field: "PurchasePrice", headerText: "PURSCHASE_PRICE", textAlign: "Right" }, { field: "SupplierNo", headerText: "SUPPLIER_NO", textAlign: "Right" }, { field: "Transfer", headerText: "TRANSFER" }, { field: "sticker", headerText: "STICKER" });
|
|
1749
1931
|
}
|
|
1750
1932
|
backToStockInformation() {
|
|
1751
1933
|
this.backToStockLines.emit();
|
|
1752
1934
|
}
|
|
1753
|
-
onStickerClick(event) {
|
|
1754
|
-
}
|
|
1755
1935
|
onOkClick() {
|
|
1756
1936
|
}
|
|
1757
1937
|
onCancelClick() {
|
|
@@ -1794,7 +1974,9 @@ StockLocationComponent.decorators = [
|
|
|
1794
1974
|
encapsulation: ViewEncapsulation.None
|
|
1795
1975
|
},] }
|
|
1796
1976
|
];
|
|
1797
|
-
StockLocationComponent.ctorParameters = () => [
|
|
1977
|
+
StockLocationComponent.ctorParameters = () => [
|
|
1978
|
+
{ type: StockService }
|
|
1979
|
+
];
|
|
1798
1980
|
StockLocationComponent.propDecorators = {
|
|
1799
1981
|
stockLocationInformation: [{ type: Input }],
|
|
1800
1982
|
backToStockLines: [{ type: Output }]
|
|
@@ -1805,15 +1987,29 @@ class StockTransferComponent {
|
|
|
1805
1987
|
this._stockService = _stockService;
|
|
1806
1988
|
this.handleCancelClicked = new EventEmitter();
|
|
1807
1989
|
this.handleStickerClicked = new EventEmitter();
|
|
1808
|
-
this.allWarehousesDropdownFields = {
|
|
1990
|
+
this.allWarehousesDropdownFields = { text: "warehouseDescription", value: "warehouseNo" };
|
|
1991
|
+
this.allLocationDropdownFields = { text: "locationNo", value: "locationNo" };
|
|
1809
1992
|
this.showSendMethodDialog = false;
|
|
1993
|
+
this.stockState = [];
|
|
1994
|
+
this.stockStateDropdownField = { text: "stateDescription", value: "stockStateId" };
|
|
1810
1995
|
}
|
|
1811
|
-
|
|
1996
|
+
ngAfterViewInit() {
|
|
1997
|
+
this.getStockManagementWarehouses();
|
|
1998
|
+
this.getStockState();
|
|
1999
|
+
}
|
|
2000
|
+
handleOkClick(data) {
|
|
2001
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2002
|
+
data.selected = true;
|
|
2003
|
+
data.entryDate = new Date;
|
|
2004
|
+
yield this._stockService.updateArticleDetails(data);
|
|
2005
|
+
});
|
|
1812
2006
|
}
|
|
1813
2007
|
handleCancelClick() {
|
|
1814
2008
|
this.handleCancelClicked.emit();
|
|
1815
2009
|
}
|
|
1816
2010
|
handleSelectedWarehouse(event) {
|
|
2011
|
+
this.selectedWarehouse = event;
|
|
2012
|
+
this.getStockManagementLocations(this.selectedWarehouse);
|
|
1817
2013
|
}
|
|
1818
2014
|
handleStickerClick() {
|
|
1819
2015
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1821,6 +2017,21 @@ class StockTransferComponent {
|
|
|
1821
2017
|
this.showSendMethodDialog = true;
|
|
1822
2018
|
});
|
|
1823
2019
|
}
|
|
2020
|
+
getStockManagementWarehouses() {
|
|
2021
|
+
this._stockService.getStockManagementWarehouses().then((warehouses) => {
|
|
2022
|
+
this.warehouses = warehouses;
|
|
2023
|
+
});
|
|
2024
|
+
}
|
|
2025
|
+
getStockManagementLocations(data) {
|
|
2026
|
+
this._stockService.getStockManagementLocations(data).then((locations) => {
|
|
2027
|
+
this.locations = locations;
|
|
2028
|
+
});
|
|
2029
|
+
}
|
|
2030
|
+
getStockState() {
|
|
2031
|
+
this._stockService.getStockState().then((state) => {
|
|
2032
|
+
this.stockState = state;
|
|
2033
|
+
});
|
|
2034
|
+
}
|
|
1824
2035
|
}
|
|
1825
2036
|
StockTransferComponent.decorators = [
|
|
1826
2037
|
{ type: Component, args: [{
|
|
@@ -1828,16 +2039,15 @@ StockTransferComponent.decorators = [
|
|
|
1828
2039
|
template: `
|
|
1829
2040
|
<div class="stock-transfer">
|
|
1830
2041
|
<div class="stock-transfer-columns">
|
|
1831
|
-
<
|
|
1832
|
-
<div *ngIf="article" class="stock-transfer-left-column">
|
|
2042
|
+
<div *ngIf="articleToTransfer" class="stock-transfer-left-column">
|
|
1833
2043
|
<co-input-text disabled
|
|
1834
|
-
[(model)]="
|
|
1835
|
-
[textContent]="
|
|
2044
|
+
[(model)]="articleToTransfer.warehouseDescription"
|
|
2045
|
+
[textContent]="articleToTransfer.warehouseDescription"
|
|
1836
2046
|
[placeholder]="'Standaard magazijn'">
|
|
1837
2047
|
</co-input-text>
|
|
1838
2048
|
<co-input-text disabled
|
|
1839
|
-
[(model)]="
|
|
1840
|
-
[textContent]="
|
|
2049
|
+
[(model)]="articleToTransfer.locationNo"
|
|
2050
|
+
[textContent]="articleToTransfer.locationNo"
|
|
1841
2051
|
[placeholder]="'Standaard locatie'">
|
|
1842
2052
|
</co-input-text>
|
|
1843
2053
|
<co-input-text disabled
|
|
@@ -1849,32 +2059,35 @@ StockTransferComponent.decorators = [
|
|
|
1849
2059
|
[placeholder]="'Serie'">
|
|
1850
2060
|
</co-input-text>
|
|
1851
2061
|
<co-input-text
|
|
1852
|
-
[(model)]="
|
|
2062
|
+
[(model)]="articleToTransfer.amountTransfer"
|
|
1853
2063
|
[placeholder]="'Aantal'">
|
|
1854
|
-
|
|
1855
2064
|
</co-input-text>
|
|
1856
2065
|
</div>
|
|
1857
2066
|
|
|
1858
2067
|
<div class="stock-transfer-right-column">
|
|
1859
|
-
<co-drop-down-list [collection]="
|
|
2068
|
+
<co-drop-down-list [collection]="warehouses"
|
|
1860
2069
|
[fields]="allWarehousesDropdownFields"
|
|
1861
2070
|
(modelChange)="handleSelectedWarehouse($event)"
|
|
2071
|
+
[(model)]="articleToTransfer.targetWarehouse">
|
|
2072
|
+
</co-drop-down-list>
|
|
2073
|
+
<co-drop-down-list [collection]="locations"
|
|
2074
|
+
[fields]="allLocationDropdownFields"
|
|
2075
|
+
[(model)]="articleToTransfer.targetLocation"
|
|
1862
2076
|
>
|
|
1863
2077
|
</co-drop-down-list>
|
|
1864
|
-
<co-drop-down-list
|
|
1865
|
-
|
|
2078
|
+
<co-drop-down-list [collection]="stockState"
|
|
2079
|
+
[fields]="stockStateDropdownField"
|
|
2080
|
+
[placeholder]="'Voorraadstatus'"
|
|
2081
|
+
[(model)]="articleToTransfer.stockStateId">
|
|
1866
2082
|
</co-drop-down-list>
|
|
1867
|
-
<co-input-text [placeholder]="'
|
|
1868
|
-
|
|
1869
|
-
</co-input-text>
|
|
1870
|
-
<co-input-text [placeholder]="'Omschrijving'">
|
|
1871
|
-
|
|
2083
|
+
<co-input-text [placeholder]="'Omschrijving'"
|
|
2084
|
+
[(model)]="articleToTransfer.stockStateRemark">
|
|
1872
2085
|
</co-input-text>
|
|
1873
2086
|
</div>
|
|
1874
2087
|
</div>
|
|
1875
2088
|
|
|
1876
2089
|
<div class="ok-cancel-buttons">
|
|
1877
|
-
<co-button [textContent]="'Ok'" (click)="handleOkClick()"></co-button>
|
|
2090
|
+
<co-button [textContent]="'Ok'" (click)="handleOkClick(articleToTransfer)"></co-button>
|
|
1878
2091
|
<co-button [textContent]="'Annuleren'" (click)="handleCancelClick()"></co-button>
|
|
1879
2092
|
<co-button [textContent]="'Sticker'" (click)="handleStickerClick()"></co-button>
|
|
1880
2093
|
</div>
|
|
@@ -1889,6 +2102,7 @@ StockTransferComponent.ctorParameters = () => [
|
|
|
1889
2102
|
StockTransferComponent.propDecorators = {
|
|
1890
2103
|
stockSticker: [{ type: Input }],
|
|
1891
2104
|
article: [{ type: Input }],
|
|
2105
|
+
articleToTransfer: [{ type: Input }],
|
|
1892
2106
|
articleWarehouse: [{ type: Input }],
|
|
1893
2107
|
allWarehouses: [{ type: Input }],
|
|
1894
2108
|
handleCancelClicked: [{ type: Output }],
|
|
@@ -1924,6 +2138,7 @@ class SendMethodDialogComponent {
|
|
|
1924
2138
|
this.showStandardPrinterOptions = false;
|
|
1925
2139
|
this.showPrinterSelections = false;
|
|
1926
2140
|
this.showExitButton = true;
|
|
2141
|
+
this.printTemplatesField = { text: "name", value: "name" };
|
|
1927
2142
|
this.emails = ['lars.vdv@colijn-it.nl', 'david@colijn-it.nl', 'ruben@colijn-it.nl'];
|
|
1928
2143
|
this.models = [false, false, true];
|
|
1929
2144
|
this.layouts = ['Layout 1', 'Layout 2', 'Layout 3'];
|
|
@@ -1931,9 +2146,15 @@ class SendMethodDialogComponent {
|
|
|
1931
2146
|
this.startSignatureClicked = new EventEmitter();
|
|
1932
2147
|
this.printButtonClicked = new EventEmitter();
|
|
1933
2148
|
}
|
|
2149
|
+
set options(value) {
|
|
2150
|
+
this._stockService.connectConnector(value);
|
|
2151
|
+
}
|
|
1934
2152
|
showClass() {
|
|
1935
2153
|
return true;
|
|
1936
2154
|
}
|
|
2155
|
+
ngAfterViewInit() {
|
|
2156
|
+
this.getPrintTemplates();
|
|
2157
|
+
}
|
|
1937
2158
|
getPrinters() {
|
|
1938
2159
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1939
2160
|
return this._stockService.getAllPrinters(true).then((list) => {
|
|
@@ -1961,14 +2182,16 @@ class SendMethodDialogComponent {
|
|
|
1961
2182
|
this.headerTitle = 'Verzendopties';
|
|
1962
2183
|
}
|
|
1963
2184
|
}
|
|
1964
|
-
loadLayouts() {
|
|
1965
|
-
const printJob = new PrintJob();
|
|
1966
|
-
// this.printLayouts = this._stockService.getPrintTemplates(printJob);
|
|
1967
|
-
}
|
|
1968
2185
|
onPrinterClicked(printer) {
|
|
1969
2186
|
this.defaultPrinter = printer.name;
|
|
1970
2187
|
this.showPrinterSelections = !this.showPrinterSelections;
|
|
1971
2188
|
}
|
|
2189
|
+
getPrintTemplates() {
|
|
2190
|
+
const data = new StockStickersPrintLayoutsBo();
|
|
2191
|
+
this._stockService.getStockStickerTemplates(data).then((templates) => {
|
|
2192
|
+
this.printTemplates = templates;
|
|
2193
|
+
});
|
|
2194
|
+
}
|
|
1972
2195
|
}
|
|
1973
2196
|
SendMethodDialogComponent.decorators = [
|
|
1974
2197
|
{ type: Component, args: [{
|
|
@@ -2020,7 +2243,8 @@ SendMethodDialogComponent.decorators = [
|
|
|
2020
2243
|
<div class="lov-wrapper">
|
|
2021
2244
|
<co-input-combo-box
|
|
2022
2245
|
[(model)]="selectedLayout"
|
|
2023
|
-
[collection]="
|
|
2246
|
+
[collection]="printTemplates"
|
|
2247
|
+
[fields]="printTemplatesField"
|
|
2024
2248
|
[forceReadonly]="true"
|
|
2025
2249
|
placeholder="Layout"
|
|
2026
2250
|
></co-input-combo-box>
|
|
@@ -2108,6 +2332,7 @@ SendMethodDialogComponent.ctorParameters = () => [
|
|
|
2108
2332
|
{ type: StockService }
|
|
2109
2333
|
];
|
|
2110
2334
|
SendMethodDialogComponent.propDecorators = {
|
|
2335
|
+
options: [{ type: Input }],
|
|
2111
2336
|
showDialog: [{ type: Input }],
|
|
2112
2337
|
headerTitle: [{ type: Input }],
|
|
2113
2338
|
printerList: [{ type: Input }],
|
|
@@ -2139,6 +2364,71 @@ SendMethodDialogModule.decorators = [
|
|
|
2139
2364
|
},] }
|
|
2140
2365
|
];
|
|
2141
2366
|
|
|
2367
|
+
class StockChangeAmountComponent {
|
|
2368
|
+
constructor(_stockService) {
|
|
2369
|
+
this._stockService = _stockService;
|
|
2370
|
+
this.closeStockChangeAmount = new EventEmitter();
|
|
2371
|
+
this.stockState = [];
|
|
2372
|
+
this.stockStateDropdownField = { text: "stateDescription", value: "stockStateId" };
|
|
2373
|
+
}
|
|
2374
|
+
ngAfterViewInit() {
|
|
2375
|
+
this.getStockState();
|
|
2376
|
+
}
|
|
2377
|
+
closeDialogClick() {
|
|
2378
|
+
this.closeStockChangeAmount.emit();
|
|
2379
|
+
}
|
|
2380
|
+
handleOkClick(data) {
|
|
2381
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2382
|
+
yield this._stockService.updateArticleDetails(data);
|
|
2383
|
+
});
|
|
2384
|
+
}
|
|
2385
|
+
handleCancelClick() {
|
|
2386
|
+
this.closeStockChangeAmount.emit();
|
|
2387
|
+
}
|
|
2388
|
+
getStockState() {
|
|
2389
|
+
this._stockService.getStockState().then((state) => {
|
|
2390
|
+
this.stockState = state;
|
|
2391
|
+
});
|
|
2392
|
+
}
|
|
2393
|
+
}
|
|
2394
|
+
StockChangeAmountComponent.decorators = [
|
|
2395
|
+
{ type: Component, args: [{
|
|
2396
|
+
selector: "co-stock-change-amount",
|
|
2397
|
+
template: `
|
|
2398
|
+
<div class="stock-transfer">
|
|
2399
|
+
<co-dialog-wizard [showCloseIcon]="true" (closeClick)="closeDialogClick()">
|
|
2400
|
+
<ng-container header>
|
|
2401
|
+
<span [textContent]="'STOCK_CHANGE_REASON'"></span>
|
|
2402
|
+
</ng-container>
|
|
2403
|
+
<div class="popup-wrapper">
|
|
2404
|
+
<co-drop-down-list [collection]="stockState"
|
|
2405
|
+
[fields]="stockStateDropdownField"
|
|
2406
|
+
[placeholder]="'STOCK_STATE'"
|
|
2407
|
+
[(model)]="selectedArticleDetailsData.stockStateId"
|
|
2408
|
+
></co-drop-down-list>
|
|
2409
|
+
|
|
2410
|
+
<co-input-textarea [(model)]="selectedArticleDetailsData.stockStateRemark"
|
|
2411
|
+
|
|
2412
|
+
></co-input-textarea>
|
|
2413
|
+
<div class="ok-cancel-buttons">
|
|
2414
|
+
<co-button [textContent]="'Ok'" (click)="handleOkClick(selectedArticleDetailsData)"></co-button>
|
|
2415
|
+
<co-button [textContent]="'Annuleren'" (click)="handleCancelClick()"></co-button>
|
|
2416
|
+
</div>
|
|
2417
|
+
</div>
|
|
2418
|
+
</co-dialog-wizard>
|
|
2419
|
+
</div>
|
|
2420
|
+
`,
|
|
2421
|
+
encapsulation: ViewEncapsulation.None
|
|
2422
|
+
},] }
|
|
2423
|
+
];
|
|
2424
|
+
StockChangeAmountComponent.ctorParameters = () => [
|
|
2425
|
+
{ type: StockService }
|
|
2426
|
+
];
|
|
2427
|
+
StockChangeAmountComponent.propDecorators = {
|
|
2428
|
+
selectedArticleDetailsData: [{ type: Input }],
|
|
2429
|
+
closeStockChangeAmount: [{ type: Output }]
|
|
2430
|
+
};
|
|
2431
|
+
|
|
2142
2432
|
class StockModule {
|
|
2143
2433
|
}
|
|
2144
2434
|
StockModule.decorators = [
|
|
@@ -2154,14 +2444,18 @@ StockModule.decorators = [
|
|
|
2154
2444
|
ImageModule,
|
|
2155
2445
|
InputTextModule,
|
|
2156
2446
|
SendMethodDialogModule,
|
|
2157
|
-
IconModule
|
|
2447
|
+
IconModule,
|
|
2448
|
+
InputNumberPickerModule,
|
|
2449
|
+
CoDialogWizardModule,
|
|
2450
|
+
InputTextareaModule
|
|
2158
2451
|
],
|
|
2159
2452
|
declarations: [
|
|
2160
2453
|
StockComponent,
|
|
2161
2454
|
StockInformationComponent,
|
|
2162
2455
|
StockInformationGridComponent,
|
|
2163
2456
|
StockLocationComponent,
|
|
2164
|
-
StockTransferComponent
|
|
2457
|
+
StockTransferComponent,
|
|
2458
|
+
StockChangeAmountComponent
|
|
2165
2459
|
],
|
|
2166
2460
|
exports: [
|
|
2167
2461
|
StockComponent
|
|
@@ -2173,6 +2467,242 @@ StockModule.decorators = [
|
|
|
2173
2467
|
},] }
|
|
2174
2468
|
];
|
|
2175
2469
|
|
|
2470
|
+
var KeyboardCode;
|
|
2471
|
+
(function (KeyboardCode) {
|
|
2472
|
+
KeyboardCode["Backspace"] = "Backspace";
|
|
2473
|
+
KeyboardCode["Digit0"] = "Digit0";
|
|
2474
|
+
KeyboardCode["Digit1"] = "Digit1";
|
|
2475
|
+
KeyboardCode["Digit2"] = "Digit2";
|
|
2476
|
+
KeyboardCode["Digit3"] = "Digit3";
|
|
2477
|
+
KeyboardCode["Digit4"] = "Digit4";
|
|
2478
|
+
KeyboardCode["Digit5"] = "Digit5";
|
|
2479
|
+
KeyboardCode["Digit6"] = "Digit6";
|
|
2480
|
+
KeyboardCode["Digit7"] = "Digit7";
|
|
2481
|
+
KeyboardCode["Digit8"] = "Digit8";
|
|
2482
|
+
KeyboardCode["Digit9"] = "Digit9";
|
|
2483
|
+
KeyboardCode["Enter"] = "Enter";
|
|
2484
|
+
KeyboardCode["Escape"] = "Escape";
|
|
2485
|
+
KeyboardCode["Minus"] = "Minus";
|
|
2486
|
+
KeyboardCode["Numpad0"] = "Numpad0";
|
|
2487
|
+
KeyboardCode["Numpad1"] = "Numpad1";
|
|
2488
|
+
KeyboardCode["Numpad2"] = "Numpad2";
|
|
2489
|
+
KeyboardCode["Numpad3"] = "Numpad3";
|
|
2490
|
+
KeyboardCode["Numpad4"] = "Numpad4";
|
|
2491
|
+
KeyboardCode["Numpad5"] = "Numpad5";
|
|
2492
|
+
KeyboardCode["Numpad6"] = "Numpad6";
|
|
2493
|
+
KeyboardCode["Numpad7"] = "Numpad7";
|
|
2494
|
+
KeyboardCode["Numpad8"] = "Numpad8";
|
|
2495
|
+
KeyboardCode["Numpad9"] = "Numpad9";
|
|
2496
|
+
KeyboardCode["NumpadDecimal"] = "NumpadDecimal";
|
|
2497
|
+
KeyboardCode["NumpadEnter"] = "NumpadEnter";
|
|
2498
|
+
KeyboardCode["NumpadSubtract"] = "NumpadSubtract";
|
|
2499
|
+
KeyboardCode["Period"] = "Period";
|
|
2500
|
+
})(KeyboardCode || (KeyboardCode = {}));
|
|
2501
|
+
|
|
2502
|
+
class KeyPadComponent {
|
|
2503
|
+
constructor(iconCacheService) {
|
|
2504
|
+
this.iconCacheService = iconCacheService;
|
|
2505
|
+
this.icons = Icon;
|
|
2506
|
+
this.showValue = true;
|
|
2507
|
+
this.emitModelChangeOnEnter = true;
|
|
2508
|
+
this.modelChange = new EventEmitter();
|
|
2509
|
+
this.internalModelChange = new EventEmitter();
|
|
2510
|
+
this.enterClick = new EventEmitter();
|
|
2511
|
+
this._validKeyMap = new Map([
|
|
2512
|
+
[KeyboardCode.Digit0, "0"],
|
|
2513
|
+
[KeyboardCode.Digit1, "1"],
|
|
2514
|
+
[KeyboardCode.Digit2, "2"],
|
|
2515
|
+
[KeyboardCode.Digit3, "3"],
|
|
2516
|
+
[KeyboardCode.Digit4, "4"],
|
|
2517
|
+
[KeyboardCode.Digit5, "5"],
|
|
2518
|
+
[KeyboardCode.Digit6, "6"],
|
|
2519
|
+
[KeyboardCode.Digit7, "7"],
|
|
2520
|
+
[KeyboardCode.Digit8, "8"],
|
|
2521
|
+
[KeyboardCode.Digit9, "9"],
|
|
2522
|
+
[KeyboardCode.Numpad0, "0"],
|
|
2523
|
+
[KeyboardCode.Numpad1, "1"],
|
|
2524
|
+
[KeyboardCode.Numpad2, "2"],
|
|
2525
|
+
[KeyboardCode.Numpad3, "3"],
|
|
2526
|
+
[KeyboardCode.Numpad4, "4"],
|
|
2527
|
+
[KeyboardCode.Numpad5, "5"],
|
|
2528
|
+
[KeyboardCode.Numpad6, "6"],
|
|
2529
|
+
[KeyboardCode.Numpad7, "7"],
|
|
2530
|
+
[KeyboardCode.Numpad8, "8"],
|
|
2531
|
+
[KeyboardCode.Numpad9, "9"],
|
|
2532
|
+
[KeyboardCode.NumpadDecimal, "."],
|
|
2533
|
+
[KeyboardCode.Period, "."]
|
|
2534
|
+
]);
|
|
2535
|
+
this.isNegative = false;
|
|
2536
|
+
this._model = 0;
|
|
2537
|
+
this._internalModel = "0";
|
|
2538
|
+
this._maxCharacters = 11;
|
|
2539
|
+
}
|
|
2540
|
+
set model(value) {
|
|
2541
|
+
this._model = value;
|
|
2542
|
+
this._internalModel = this._model + "";
|
|
2543
|
+
}
|
|
2544
|
+
get model() {
|
|
2545
|
+
return this._model;
|
|
2546
|
+
}
|
|
2547
|
+
showClass() {
|
|
2548
|
+
return true;
|
|
2549
|
+
}
|
|
2550
|
+
handleKeyDown(event) {
|
|
2551
|
+
this._keyDown(event);
|
|
2552
|
+
}
|
|
2553
|
+
set internalModel(value) {
|
|
2554
|
+
this._internalModel = value;
|
|
2555
|
+
this.isNegative = parseFloat(this._internalModel) < 0;
|
|
2556
|
+
this.internalModelChange.emit(this._internalModel);
|
|
2557
|
+
}
|
|
2558
|
+
get internalModel() {
|
|
2559
|
+
return this._internalModel;
|
|
2560
|
+
}
|
|
2561
|
+
handleMinusClick(event) {
|
|
2562
|
+
const model = parseFloat(this.internalModel);
|
|
2563
|
+
if (model !== 0) {
|
|
2564
|
+
if (model < 0) {
|
|
2565
|
+
this.internalModel = Math.abs(model) + "";
|
|
2566
|
+
}
|
|
2567
|
+
else {
|
|
2568
|
+
this.internalModel = -model + "";
|
|
2569
|
+
}
|
|
2570
|
+
}
|
|
2571
|
+
this._emitModelChange();
|
|
2572
|
+
}
|
|
2573
|
+
handleClearClick(event) {
|
|
2574
|
+
this.internalModel = "0";
|
|
2575
|
+
this._emitModelChange();
|
|
2576
|
+
}
|
|
2577
|
+
handleBsClick(event) {
|
|
2578
|
+
let wish = this.internalModel;
|
|
2579
|
+
wish = wish.slice(0, wish.length - 1) || "0";
|
|
2580
|
+
if (!isNaN(parseFloat(wish))) {
|
|
2581
|
+
this.internalModel = parseFloat(wish) + "";
|
|
2582
|
+
}
|
|
2583
|
+
this._emitModelChange();
|
|
2584
|
+
}
|
|
2585
|
+
handleButtonClick(chr) {
|
|
2586
|
+
this._updateModel(chr);
|
|
2587
|
+
}
|
|
2588
|
+
handleEnterClick(event) {
|
|
2589
|
+
this._emitModelChange(true);
|
|
2590
|
+
this.enterClick.emit();
|
|
2591
|
+
}
|
|
2592
|
+
_updateModel(value) {
|
|
2593
|
+
if (value === undefined || value === null ||
|
|
2594
|
+
(value === '.' && this.internalModel.indexOf('.') > -1) ||
|
|
2595
|
+
this.internalModel.length >= this._maxCharacters) {
|
|
2596
|
+
return;
|
|
2597
|
+
}
|
|
2598
|
+
this.internalModel = this.internalModel !== "0" ? this.internalModel + value : value;
|
|
2599
|
+
this._emitModelChange();
|
|
2600
|
+
}
|
|
2601
|
+
_keyDown(event) {
|
|
2602
|
+
if (this._isEnter(event)) {
|
|
2603
|
+
this.handleEnterClick(event);
|
|
2604
|
+
}
|
|
2605
|
+
else if (this._isMinus(event)) {
|
|
2606
|
+
this.handleMinusClick(event);
|
|
2607
|
+
}
|
|
2608
|
+
else if (this._isEscape(event)) {
|
|
2609
|
+
this.handleClearClick(event);
|
|
2610
|
+
}
|
|
2611
|
+
else if (this._isBackspace(event)) {
|
|
2612
|
+
this.handleBsClick(event);
|
|
2613
|
+
}
|
|
2614
|
+
else {
|
|
2615
|
+
this._updateModel(this._validKeyMap.get(event.code));
|
|
2616
|
+
}
|
|
2617
|
+
}
|
|
2618
|
+
_isEnter(event) {
|
|
2619
|
+
return event.code === KeyboardCode.Enter || event.code === KeyboardCode.NumpadEnter;
|
|
2620
|
+
}
|
|
2621
|
+
_isMinus(event) {
|
|
2622
|
+
return event.code === KeyboardCode.Minus || event.code === KeyboardCode.NumpadSubtract;
|
|
2623
|
+
}
|
|
2624
|
+
_isEscape(event) {
|
|
2625
|
+
return event.code === KeyboardCode.Escape;
|
|
2626
|
+
}
|
|
2627
|
+
_isBackspace(event) {
|
|
2628
|
+
return event.code === KeyboardCode.Backspace;
|
|
2629
|
+
}
|
|
2630
|
+
_emitModelChange(enter = false) {
|
|
2631
|
+
if ((enter && this.emitModelChangeOnEnter) || (!enter && !this.emitModelChangeOnEnter)) {
|
|
2632
|
+
const model = parseFloat(this.internalModel);
|
|
2633
|
+
if (!isNaN(model)) {
|
|
2634
|
+
if (enter && this.emitModelChangeOnEnter) {
|
|
2635
|
+
this.model = model;
|
|
2636
|
+
}
|
|
2637
|
+
this.modelChange.emit(model);
|
|
2638
|
+
}
|
|
2639
|
+
}
|
|
2640
|
+
}
|
|
2641
|
+
}
|
|
2642
|
+
KeyPadComponent.decorators = [
|
|
2643
|
+
{ type: Component, args: [{
|
|
2644
|
+
selector: 'co-key-pad',
|
|
2645
|
+
template: `
|
|
2646
|
+
<div class="key-pad-wrapper">
|
|
2647
|
+
<div class="key-pad-model-wrapper" *ngIf="showValue">
|
|
2648
|
+
<div class="key-pad-model" [textContent]="internalModel" [class.negative]="isNegative"></div>
|
|
2649
|
+
</div>
|
|
2650
|
+
<div class="key-pad-button-wrapper">
|
|
2651
|
+
<div class="key-pad-button button-7" [textContent]="'7'" (click)="handleButtonClick('7')"></div>
|
|
2652
|
+
<div class="key-pad-button button-8" [textContent]="'8'" (click)="handleButtonClick('8')"></div>
|
|
2653
|
+
<div class="key-pad-button button-9" [textContent]="'9'" (click)="handleButtonClick('9')"></div>
|
|
2654
|
+
<div class="key-pad-button button-bs" (click)="handleBsClick($event)">
|
|
2655
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.DeleteLeftRegular)"></co-icon>
|
|
2656
|
+
</div>
|
|
2657
|
+
<div class="key-pad-button button-4" [textContent]="'4'" (click)="handleButtonClick('4')"></div>
|
|
2658
|
+
<div class="key-pad-button button-5" [textContent]="'5'" (click)="handleButtonClick('5')"></div>
|
|
2659
|
+
<div class="key-pad-button button-6" [textContent]="'6'" (click)="handleButtonClick('6')"></div>
|
|
2660
|
+
<div class="key-pad-button button-minus" [textContent]="'-'" (click)="handleMinusClick($event)"></div>
|
|
2661
|
+
<div class="key-pad-button button-1" [textContent]="'1'" (click)="handleButtonClick('1')"></div>
|
|
2662
|
+
<div class="key-pad-button button-2" [textContent]="'2'" (click)="handleButtonClick('2')"></div>
|
|
2663
|
+
<div class="key-pad-button button-3" [textContent]="'3'" (click)="handleButtonClick('3')"></div>
|
|
2664
|
+
<div class="key-pad-button button-enter" (click)="handleEnterClick($event)">
|
|
2665
|
+
<span [textContent]="'enter'"></span>
|
|
2666
|
+
</div>
|
|
2667
|
+
<div class="key-pad-button button-0" [textContent]="'0'" (click)="handleButtonClick('0')"></div>
|
|
2668
|
+
<div class="key-pad-button button-dot" [textContent]="'.'" (click)="handleButtonClick('.')"></div>
|
|
2669
|
+
</div>
|
|
2670
|
+
</div>
|
|
2671
|
+
`,
|
|
2672
|
+
encapsulation: ViewEncapsulation.None
|
|
2673
|
+
},] }
|
|
2674
|
+
];
|
|
2675
|
+
KeyPadComponent.ctorParameters = () => [
|
|
2676
|
+
{ type: IconCacheService }
|
|
2677
|
+
];
|
|
2678
|
+
KeyPadComponent.propDecorators = {
|
|
2679
|
+
model: [{ type: Input }],
|
|
2680
|
+
showValue: [{ type: Input }],
|
|
2681
|
+
emitModelChangeOnEnter: [{ type: Input }],
|
|
2682
|
+
modelChange: [{ type: Output }],
|
|
2683
|
+
internalModelChange: [{ type: Output }],
|
|
2684
|
+
enterClick: [{ type: Output }],
|
|
2685
|
+
showClass: [{ type: HostBinding, args: ['class.co-key-pad',] }],
|
|
2686
|
+
handleKeyDown: [{ type: HostListener, args: ['window:keydown', ['$event'],] }]
|
|
2687
|
+
};
|
|
2688
|
+
|
|
2689
|
+
class KeyPadModule {
|
|
2690
|
+
}
|
|
2691
|
+
KeyPadModule.decorators = [
|
|
2692
|
+
{ type: NgModule, args: [{
|
|
2693
|
+
imports: [
|
|
2694
|
+
CommonModule,
|
|
2695
|
+
IconModule
|
|
2696
|
+
],
|
|
2697
|
+
declarations: [
|
|
2698
|
+
KeyPadComponent
|
|
2699
|
+
],
|
|
2700
|
+
exports: [
|
|
2701
|
+
KeyPadComponent
|
|
2702
|
+
]
|
|
2703
|
+
},] }
|
|
2704
|
+
];
|
|
2705
|
+
|
|
2176
2706
|
/*
|
|
2177
2707
|
* Public API Surface of sharedcomponents
|
|
2178
2708
|
*/
|
|
@@ -2181,5 +2711,5 @@ StockModule.decorators = [
|
|
|
2181
2711
|
* Generated bundle index. Do not edit.
|
|
2182
2712
|
*/
|
|
2183
2713
|
|
|
2184
|
-
export { DocsignComponent, DocsignModule, SendMethodDialogComponent, SendMethodDialogModule, StockComponent, StockModule, SignatureComponent as ɵa, SignaturesComponent as ɵb, StockService as ɵc, IoneConnectorAdapterService as ɵd, IconCacheService as ɵe, StockInformationComponent as ɵf, StockInformationGridComponent as ɵg, StockLocationComponent as ɵh, StockTransferComponent as ɵi };
|
|
2714
|
+
export { DocsignComponent, DocsignModule, KeyPadComponent, KeyPadModule, SendMethodDialogComponent, SendMethodDialogModule, StockComponent, StockModule, SignatureComponent as ɵa, SignaturesComponent as ɵb, StockService as ɵc, IoneConnectorAdapterService as ɵd, IconCacheService as ɵe, StockInformationComponent as ɵf, StockInformationGridComponent as ɵg, StockLocationComponent as ɵh, StockTransferComponent as ɵi, StockChangeAmountComponent as ɵj };
|
|
2185
2715
|
//# sourceMappingURL=colijnit-sharedcomponents.js.map
|