@colijnit/sharedcomponents 1.0.13 → 1.0.14
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 +485 -129
- 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/send-method-dialog/send-method-dialog.component.js +14 -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/service/ione-connector-adapter.service.js +121 -32
- package/esm2015/lib/service/stock.service.js +48 -10
- package/fesm2015/colijnit-sharedcomponents.js +473 -165
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +8 -4
- 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/service/ione-connector-adapter.service.d.ts +19 -6
- package/lib/service/stock.service.d.ts +18 -3
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/animations'), require('pdf-lib'), require('pdfjs-dist/legacy/build/pdf'), require('pdfjs-dist/build/pdf.worker.entry'), require('@angular/common'), require('signature_pad'), require('@colijnit/articleapi/build/articles'), require('@colijnit/sharedapi/build/sharedapi'), require('@colijnit/sharedapi/build/model/report/printer.bo'), require('@colijnit/articleapi/build/utils/function/not-nill.function'), require('@colijnit/articleapi/build/utils/object-utils'), require('@colijnit/articleapi/build/enum/yes-no-db-type.enum'), require('@colijnit/articleapi/build/enum/true-false-db-type.enum'), require('@colijnit/articleapi/build/enum/one-zero-bool-db-type.enum'), require('@colijnit/articleapi/build/enum/db-boolean-value-type.enum'), require('@colijnit/articleapi/build/utils/date-utils'), require('@colijnit/articleapi/build/utils/number-utils'), require('@colijnit/articleapi/build/utils/function/is-nill.function'), require('@colijnit/articleapi/build/factory/decorators/map-property.decorator'), require('@colijnit/articleapi/build/factory/decorators/boolean.decorator'), require('@colijnit/articleapi/build/factory/decorators/json.decorator'), require('@colijnit/articleapi/build/factory/decorators/complex-array.decorator'), require('@colijnit/
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@colijnit/sharedcomponents', ['exports', '@angular/core', '@angular/animations', 'pdf-lib', 'pdfjs-dist/legacy/build/pdf', 'pdfjs-dist/build/pdf.worker.entry', '@angular/common', 'signature_pad', '@colijnit/articleapi/build/articles', '@colijnit/sharedapi/build/sharedapi', '@colijnit/sharedapi/build/model/report/printer.bo', '@colijnit/articleapi/build/utils/function/not-nill.function', '@colijnit/articleapi/build/utils/object-utils', '@colijnit/articleapi/build/enum/yes-no-db-type.enum', '@colijnit/articleapi/build/enum/true-false-db-type.enum', '@colijnit/articleapi/build/enum/one-zero-bool-db-type.enum', '@colijnit/articleapi/build/enum/db-boolean-value-type.enum', '@colijnit/articleapi/build/utils/date-utils', '@colijnit/articleapi/build/utils/number-utils', '@colijnit/articleapi/build/utils/function/is-nill.function', '@colijnit/articleapi/build/factory/decorators/map-property.decorator', '@colijnit/articleapi/build/factory/decorators/boolean.decorator', '@colijnit/articleapi/build/factory/decorators/json.decorator', '@colijnit/articleapi/build/factory/decorators/complex-array.decorator', '@colijnit/
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.sharedcomponents = {}), global.ng.core, global.ng.animations, global.pdfLib, global.PDFJS, global.pdfjsWorker, global.ng.common, global.SignaturePad, global.articles, global.sharedapi, global.printer_bo, global.notNill_function, global.objectUtils, global.yesNoDbType_enum, global.trueFalseDbType_enum, global.oneZeroBoolDbType_enum, global.dbBooleanValueType_enum, global.dateUtils, global.numberUtils, global.isNill_function, global.mapProperty_decorator, global.boolean_decorator, global.json_decorator, global.complexArray_decorator, global.printStockStickers, global.
|
|
5
|
-
})(this, (function (exports, i0, animations, pdfLib, PDFJS, pdfjsWorker, common, SignaturePad, articles, sharedapi, printer_bo, notNill_function, objectUtils, yesNoDbType_enum, trueFalseDbType_enum, oneZeroBoolDbType_enum, dbBooleanValueType_enum, dateUtils, numberUtils, isNill_function, mapProperty_decorator, boolean_decorator, json_decorator, complexArray_decorator, printStockStickers,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/animations'), require('pdf-lib'), require('pdfjs-dist/legacy/build/pdf'), require('pdfjs-dist/build/pdf.worker.entry'), require('@angular/common'), require('signature_pad'), require('@colijnit/articleapi/build/articles'), require('@colijnit/sharedapi/build/sharedapi'), require('@colijnit/sharedapi/build/model/report/printer.bo'), require('@colijnit/articleapi/build/utils/function/not-nill.function'), require('@colijnit/articleapi/build/utils/object-utils'), require('@colijnit/articleapi/build/enum/yes-no-db-type.enum'), require('@colijnit/articleapi/build/enum/true-false-db-type.enum'), require('@colijnit/articleapi/build/enum/one-zero-bool-db-type.enum'), require('@colijnit/articleapi/build/enum/db-boolean-value-type.enum'), require('@colijnit/articleapi/build/utils/date-utils'), require('@colijnit/articleapi/build/utils/number-utils'), require('@colijnit/articleapi/build/utils/function/is-nill.function'), require('@colijnit/articleapi/build/factory/decorators/map-property.decorator'), require('@colijnit/articleapi/build/factory/decorators/boolean.decorator'), require('@colijnit/articleapi/build/factory/decorators/json.decorator'), require('@colijnit/articleapi/build/factory/decorators/complex-array.decorator'), require('@colijnit/sharedapi/build/model/print-stock-stickers'), require('@colijnit/articleapi/build/model/article-stock.bo'), require('@colijnit/articleapi/build/model/stock-history.bo'), require('@colijnit/sharedapi/build/model/report/stock-stickers-print-layouts.bo'), require('@colijnit/articleapi/build/model/article-details.bo'), require('@colijnit/articleapi/build/model/stock-status.bo'), require('@colijnit/articleapi/build/model/stock-management-warehouses.bo'), require('@colijnit/articleapi/build/model/stock-location.bo'), require('@colijnit/articleapi/build/model/print-stock-stickers'), require('@colijnit/articleapi/build/model/get-stock-history-request'), require('@colijnit/articleapi/build/model/article-stock'), require('@colijnit/corecomponents_v12'), require('@angular/platform-browser'), require('@colijnit/articleapi/build/model/article-stock-management')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@colijnit/sharedcomponents', ['exports', '@angular/core', '@angular/animations', 'pdf-lib', 'pdfjs-dist/legacy/build/pdf', 'pdfjs-dist/build/pdf.worker.entry', '@angular/common', 'signature_pad', '@colijnit/articleapi/build/articles', '@colijnit/sharedapi/build/sharedapi', '@colijnit/sharedapi/build/model/report/printer.bo', '@colijnit/articleapi/build/utils/function/not-nill.function', '@colijnit/articleapi/build/utils/object-utils', '@colijnit/articleapi/build/enum/yes-no-db-type.enum', '@colijnit/articleapi/build/enum/true-false-db-type.enum', '@colijnit/articleapi/build/enum/one-zero-bool-db-type.enum', '@colijnit/articleapi/build/enum/db-boolean-value-type.enum', '@colijnit/articleapi/build/utils/date-utils', '@colijnit/articleapi/build/utils/number-utils', '@colijnit/articleapi/build/utils/function/is-nill.function', '@colijnit/articleapi/build/factory/decorators/map-property.decorator', '@colijnit/articleapi/build/factory/decorators/boolean.decorator', '@colijnit/articleapi/build/factory/decorators/json.decorator', '@colijnit/articleapi/build/factory/decorators/complex-array.decorator', '@colijnit/sharedapi/build/model/print-stock-stickers', '@colijnit/articleapi/build/model/article-stock.bo', '@colijnit/articleapi/build/model/stock-history.bo', '@colijnit/sharedapi/build/model/report/stock-stickers-print-layouts.bo', '@colijnit/articleapi/build/model/article-details.bo', '@colijnit/articleapi/build/model/stock-status.bo', '@colijnit/articleapi/build/model/stock-management-warehouses.bo', '@colijnit/articleapi/build/model/stock-location.bo', '@colijnit/articleapi/build/model/print-stock-stickers', '@colijnit/articleapi/build/model/get-stock-history-request', '@colijnit/articleapi/build/model/article-stock', '@colijnit/corecomponents_v12', '@angular/platform-browser', '@colijnit/articleapi/build/model/article-stock-management'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.sharedcomponents = {}), global.ng.core, global.ng.animations, global.pdfLib, global.PDFJS, global.pdfjsWorker, global.ng.common, global.SignaturePad, global.articles, global.sharedapi, global.printer_bo, global.notNill_function, global.objectUtils, global.yesNoDbType_enum, global.trueFalseDbType_enum, global.oneZeroBoolDbType_enum, global.dbBooleanValueType_enum, global.dateUtils, global.numberUtils, global.isNill_function, global.mapProperty_decorator, global.boolean_decorator, global.json_decorator, global.complexArray_decorator, global.printStockStickers, global.articleStock_bo, global.stockHistory_bo, global.stockStickersPrintLayouts_bo, global.articleDetails_bo, global.stockStatus_bo, global.stockManagementWarehouses_bo, global.stockLocation_bo, global.printStockStickers$1, global.getStockHistoryRequest, global.articleStock, global.corecomponents_v12, global.ng.platformBrowser, global.articleStockManagement));
|
|
5
|
+
})(this, (function (exports, i0, animations, pdfLib, PDFJS, pdfjsWorker, common, SignaturePad, articles, sharedapi, printer_bo, notNill_function, objectUtils, yesNoDbType_enum, trueFalseDbType_enum, oneZeroBoolDbType_enum, dbBooleanValueType_enum, dateUtils, numberUtils, isNill_function, mapProperty_decorator, boolean_decorator, json_decorator, complexArray_decorator, printStockStickers, articleStock_bo, stockHistory_bo, stockStickersPrintLayouts_bo, articleDetails_bo, stockStatus_bo, stockManagementWarehouses_bo, stockLocation_bo, printStockStickers$1, getStockHistoryRequest, articleStock, corecomponents_v12, i1, articleStockManagement) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -1415,10 +1415,12 @@
|
|
|
1415
1415
|
IoneConnectorAdapterService.prototype.connect = function (options) {
|
|
1416
1416
|
return __awaiter(this, void 0, void 0, function () {
|
|
1417
1417
|
return __generator(this, function (_a) {
|
|
1418
|
-
this.options
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1418
|
+
if (this.options === undefined) {
|
|
1419
|
+
this.options = options;
|
|
1420
|
+
this.connector = new articles.Articles(options);
|
|
1421
|
+
this.sharedConnector = new sharedapi.Sharedapi(options);
|
|
1422
|
+
this.options.session = this.connector.session && this.sharedConnector.session;
|
|
1423
|
+
}
|
|
1422
1424
|
return [2 /*return*/];
|
|
1423
1425
|
});
|
|
1424
1426
|
});
|
|
@@ -1470,28 +1472,15 @@
|
|
|
1470
1472
|
});
|
|
1471
1473
|
});
|
|
1472
1474
|
};
|
|
1473
|
-
|
|
1474
|
-
// return new Promise((resolve: Function, reject: Function) => {
|
|
1475
|
-
// return this.sharedConnector.getPrintTemplates(defaultPrinterName).then((result: DataServiceResponse) => {
|
|
1476
|
-
// if (result.validationResult && result.validationResult.success) {
|
|
1477
|
-
// if (result.resultObject) {
|
|
1478
|
-
// resolve(this._boFactory.makeWithRawBackendData(PrintJob, result.resultObject));
|
|
1479
|
-
// }
|
|
1480
|
-
// } else {
|
|
1481
|
-
// reject(result.validationMessagesAsString);
|
|
1482
|
-
// }
|
|
1483
|
-
// })
|
|
1484
|
-
// })
|
|
1485
|
-
// }
|
|
1486
|
-
IoneConnectorAdapterService.prototype.getStockHistory = function (request) {
|
|
1475
|
+
IoneConnectorAdapterService.prototype.getStockStickerPrintLayouts = function (stockStickersPrintLayoutsBo) {
|
|
1487
1476
|
return __awaiter(this, void 0, void 0, function () {
|
|
1488
1477
|
var _this = this;
|
|
1489
1478
|
return __generator(this, function (_a) {
|
|
1490
1479
|
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1491
|
-
return _this.
|
|
1480
|
+
return _this.sharedConnector.getStockStickerPrintLayouts(stockStickersPrintLayoutsBo).then(function (result) {
|
|
1492
1481
|
if (result.validationResult && result.validationResult.success) {
|
|
1493
1482
|
if (result.resultObject) {
|
|
1494
|
-
resolve(_this._boFactory.makeWithRawBackendData(
|
|
1483
|
+
resolve(_this._boFactory.makeWithRawBackendData(stockStickersPrintLayoutsBo, result.resultObject));
|
|
1495
1484
|
}
|
|
1496
1485
|
}
|
|
1497
1486
|
else {
|
|
@@ -1520,15 +1509,15 @@
|
|
|
1520
1509
|
});
|
|
1521
1510
|
});
|
|
1522
1511
|
};
|
|
1523
|
-
IoneConnectorAdapterService.prototype.
|
|
1512
|
+
IoneConnectorAdapterService.prototype.getStockHistory = function (request) {
|
|
1524
1513
|
return __awaiter(this, void 0, void 0, function () {
|
|
1525
1514
|
var _this = this;
|
|
1526
1515
|
return __generator(this, function (_a) {
|
|
1527
1516
|
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1528
|
-
return _this.connector.
|
|
1517
|
+
return _this.connector.getStockHistory(request).then(function (result) {
|
|
1529
1518
|
if (result.validationResult && result.validationResult.success) {
|
|
1530
|
-
if (result.resultObject) {
|
|
1531
|
-
resolve(_this._boFactory.
|
|
1519
|
+
if (result.resultObject && result.resultObject.hasOwnProperty("stockHistory")) {
|
|
1520
|
+
resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(stockHistory_bo.StockHistoryBo, result.resultObject.stockHistory));
|
|
1532
1521
|
}
|
|
1533
1522
|
}
|
|
1534
1523
|
else {
|
|
@@ -1558,15 +1547,143 @@
|
|
|
1558
1547
|
});
|
|
1559
1548
|
});
|
|
1560
1549
|
};
|
|
1561
|
-
IoneConnectorAdapterService.prototype.
|
|
1550
|
+
IoneConnectorAdapterService.prototype.getStockManagementWarehouses = function () {
|
|
1551
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1552
|
+
var _this = this;
|
|
1553
|
+
return __generator(this, function (_a) {
|
|
1554
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1555
|
+
return _this.connector.getStockManagementWarehouses().then(function (result) {
|
|
1556
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1557
|
+
if (result.resultObjects) {
|
|
1558
|
+
resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(stockManagementWarehouses_bo.StockManagementWarehouses, result.resultObjects));
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
else {
|
|
1562
|
+
reject(result.validationMessagesAsString);
|
|
1563
|
+
}
|
|
1564
|
+
});
|
|
1565
|
+
})];
|
|
1566
|
+
});
|
|
1567
|
+
});
|
|
1568
|
+
};
|
|
1569
|
+
IoneConnectorAdapterService.prototype.getStockManagementLocations = function (warehouseNo) {
|
|
1562
1570
|
return __awaiter(this, void 0, void 0, function () {
|
|
1563
1571
|
var _this = this;
|
|
1564
1572
|
return __generator(this, function (_a) {
|
|
1565
1573
|
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1566
|
-
return _this.connector.
|
|
1574
|
+
return _this.connector.getStockManagementLocations(warehouseNo).then(function (result) {
|
|
1575
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1576
|
+
if (result.resultObjects) {
|
|
1577
|
+
resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(stockLocation_bo.StockLocation, result.resultObjects));
|
|
1578
|
+
}
|
|
1579
|
+
}
|
|
1580
|
+
else {
|
|
1581
|
+
reject(result.validationMessagesAsString);
|
|
1582
|
+
}
|
|
1583
|
+
});
|
|
1584
|
+
})];
|
|
1585
|
+
});
|
|
1586
|
+
});
|
|
1587
|
+
};
|
|
1588
|
+
IoneConnectorAdapterService.prototype.getArticleDetails = function (data) {
|
|
1589
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1590
|
+
var _this = this;
|
|
1591
|
+
return __generator(this, function (_a) {
|
|
1592
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1593
|
+
return _this.connector.getArticleDetails(data).then(function (result) {
|
|
1594
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1595
|
+
if (result.resultObjects) {
|
|
1596
|
+
resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(articleDetails_bo.ArticleDetailsBo, result.resultObjects));
|
|
1597
|
+
}
|
|
1598
|
+
}
|
|
1599
|
+
else {
|
|
1600
|
+
reject(result.validationMessagesAsString);
|
|
1601
|
+
}
|
|
1602
|
+
});
|
|
1603
|
+
})];
|
|
1604
|
+
});
|
|
1605
|
+
});
|
|
1606
|
+
};
|
|
1607
|
+
IoneConnectorAdapterService.prototype.updateArticleDetails = function (data) {
|
|
1608
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1609
|
+
var _this = this;
|
|
1610
|
+
return __generator(this, function (_a) {
|
|
1611
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1612
|
+
return _this.connector.updateArticleDetails(data).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
|
|
1613
|
+
return __generator(this, function (_a) {
|
|
1614
|
+
switch (_a.label) {
|
|
1615
|
+
case 0:
|
|
1616
|
+
if (!(result.validationResult && result.validationResult.success)) return [3 /*break*/, 2];
|
|
1617
|
+
return [4 /*yield*/, this.commit()];
|
|
1618
|
+
case 1:
|
|
1619
|
+
_a.sent();
|
|
1620
|
+
resolve(true);
|
|
1621
|
+
return [3 /*break*/, 3];
|
|
1622
|
+
case 2:
|
|
1623
|
+
reject(result.validationMessagesAsString);
|
|
1624
|
+
_a.label = 3;
|
|
1625
|
+
case 3: return [2 /*return*/];
|
|
1626
|
+
}
|
|
1627
|
+
});
|
|
1628
|
+
}); });
|
|
1629
|
+
})];
|
|
1630
|
+
});
|
|
1631
|
+
});
|
|
1632
|
+
};
|
|
1633
|
+
IoneConnectorAdapterService.prototype.lockArticleDetails = function (data) {
|
|
1634
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1635
|
+
var _this = this;
|
|
1636
|
+
return __generator(this, function (_a) {
|
|
1637
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1638
|
+
return _this.connector.lockArticleDetails(data).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
|
|
1639
|
+
return __generator(this, function (_a) {
|
|
1640
|
+
switch (_a.label) {
|
|
1641
|
+
case 0:
|
|
1642
|
+
if (!(result.validationResult && result.validationResult.success)) return [3 /*break*/, 2];
|
|
1643
|
+
return [4 /*yield*/, this.commit()];
|
|
1644
|
+
case 1:
|
|
1645
|
+
_a.sent();
|
|
1646
|
+
resolve(true);
|
|
1647
|
+
return [3 /*break*/, 3];
|
|
1648
|
+
case 2:
|
|
1649
|
+
reject(result.validationMessagesAsString);
|
|
1650
|
+
_a.label = 3;
|
|
1651
|
+
case 3: return [2 /*return*/];
|
|
1652
|
+
}
|
|
1653
|
+
});
|
|
1654
|
+
}); });
|
|
1655
|
+
})];
|
|
1656
|
+
});
|
|
1657
|
+
});
|
|
1658
|
+
};
|
|
1659
|
+
IoneConnectorAdapterService.prototype.getStockStatus = function () {
|
|
1660
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1661
|
+
var _this = this;
|
|
1662
|
+
return __generator(this, function (_a) {
|
|
1663
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1664
|
+
return _this.connector.getStockState().then(function (result) {
|
|
1665
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1666
|
+
if (result.resultObjects) {
|
|
1667
|
+
resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(stockStatus_bo.StockStatus, result.resultObjects));
|
|
1668
|
+
}
|
|
1669
|
+
}
|
|
1670
|
+
else {
|
|
1671
|
+
reject(result.validationMessagesAsString);
|
|
1672
|
+
}
|
|
1673
|
+
});
|
|
1674
|
+
})];
|
|
1675
|
+
});
|
|
1676
|
+
});
|
|
1677
|
+
};
|
|
1678
|
+
IoneConnectorAdapterService.prototype.getStockStickerTemplates = function (data) {
|
|
1679
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1680
|
+
var _this = this;
|
|
1681
|
+
return __generator(this, function (_a) {
|
|
1682
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1683
|
+
return _this.sharedConnector.getStockStickerPrintLayouts(data).then(function (result) {
|
|
1567
1684
|
if (result.validationResult && result.validationResult.success) {
|
|
1568
1685
|
if (result.resultObject) {
|
|
1569
|
-
resolve(_this._boFactory.
|
|
1686
|
+
resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(stockStickersPrintLayouts_bo.StockStickersPrintLayoutsBo, result.resultObject));
|
|
1570
1687
|
}
|
|
1571
1688
|
}
|
|
1572
1689
|
else {
|
|
@@ -1577,6 +1694,9 @@
|
|
|
1577
1694
|
});
|
|
1578
1695
|
});
|
|
1579
1696
|
};
|
|
1697
|
+
IoneConnectorAdapterService.prototype.commit = function () {
|
|
1698
|
+
return this.connector.commit();
|
|
1699
|
+
};
|
|
1580
1700
|
return IoneConnectorAdapterService;
|
|
1581
1701
|
}());
|
|
1582
1702
|
IoneConnectorAdapterService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IoneConnectorAdapterService_Factory() { return new IoneConnectorAdapterService(); }, token: IoneConnectorAdapterService, providedIn: "root" });
|
|
@@ -1594,18 +1714,9 @@
|
|
|
1594
1714
|
StockService.prototype.connectConnector = function (options) {
|
|
1595
1715
|
this._connector.connect(options);
|
|
1596
1716
|
};
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
switch (_a.label) {
|
|
1601
|
-
case 0: return [4 /*yield*/, this._connector.getPrintStockStickers(data)];
|
|
1602
|
-
case 1:
|
|
1603
|
-
_a.sent();
|
|
1604
|
-
return [2 /*return*/];
|
|
1605
|
-
}
|
|
1606
|
-
});
|
|
1607
|
-
});
|
|
1608
|
-
};
|
|
1717
|
+
// public async getPrintStockStickers(data: PrintStockStickers): Promise<void> {
|
|
1718
|
+
// await this._connector.getPrintStockStickers(data);
|
|
1719
|
+
// }
|
|
1609
1720
|
StockService.prototype.getAllPrinters = function (showAll) {
|
|
1610
1721
|
if (showAll === void 0) { showAll = true; }
|
|
1611
1722
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -1617,17 +1728,12 @@
|
|
|
1617
1728
|
});
|
|
1618
1729
|
});
|
|
1619
1730
|
};
|
|
1620
|
-
// public async getPrintTemplates(defaultPrinterName: PrintJob): Promise<PrintJob> {
|
|
1621
|
-
// return await this._connector.getPrintLayouts(defaultPrinterName);
|
|
1622
|
-
// }
|
|
1623
1731
|
StockService.prototype.getStockHistory = function (data) {
|
|
1624
1732
|
return __awaiter(this, void 0, void 0, function () {
|
|
1625
1733
|
return __generator(this, function (_a) {
|
|
1626
1734
|
switch (_a.label) {
|
|
1627
1735
|
case 0: return [4 /*yield*/, this._connector.getStockHistory(data)];
|
|
1628
|
-
case 1:
|
|
1629
|
-
_a.sent();
|
|
1630
|
-
return [2 /*return*/];
|
|
1736
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
1631
1737
|
}
|
|
1632
1738
|
});
|
|
1633
1739
|
});
|
|
@@ -1642,6 +1748,89 @@
|
|
|
1642
1748
|
});
|
|
1643
1749
|
});
|
|
1644
1750
|
};
|
|
1751
|
+
StockService.prototype.getStockStickerPrintLayouts = function (data) {
|
|
1752
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1753
|
+
return __generator(this, function (_a) {
|
|
1754
|
+
switch (_a.label) {
|
|
1755
|
+
case 0: return [4 /*yield*/, this._connector.getStockStickerPrintLayouts(data)];
|
|
1756
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
1757
|
+
}
|
|
1758
|
+
});
|
|
1759
|
+
});
|
|
1760
|
+
};
|
|
1761
|
+
StockService.prototype.getArticleDetails = function (data) {
|
|
1762
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1763
|
+
return __generator(this, function (_a) {
|
|
1764
|
+
switch (_a.label) {
|
|
1765
|
+
case 0: return [4 /*yield*/, this._connector.getArticleDetails(data)];
|
|
1766
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
1767
|
+
}
|
|
1768
|
+
});
|
|
1769
|
+
});
|
|
1770
|
+
};
|
|
1771
|
+
StockService.prototype.updateArticleDetails = function (data) {
|
|
1772
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1773
|
+
return __generator(this, function (_a) {
|
|
1774
|
+
switch (_a.label) {
|
|
1775
|
+
case 0: return [4 /*yield*/, this._connector.updateArticleDetails(data)];
|
|
1776
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
1777
|
+
}
|
|
1778
|
+
});
|
|
1779
|
+
});
|
|
1780
|
+
};
|
|
1781
|
+
StockService.prototype.getStockState = function () {
|
|
1782
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1783
|
+
return __generator(this, function (_a) {
|
|
1784
|
+
switch (_a.label) {
|
|
1785
|
+
case 0: return [4 /*yield*/, this._connector.getStockStatus()];
|
|
1786
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
1787
|
+
}
|
|
1788
|
+
});
|
|
1789
|
+
});
|
|
1790
|
+
};
|
|
1791
|
+
StockService.prototype.getStockStickerTemplates = function (data) {
|
|
1792
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1793
|
+
return __generator(this, function (_a) {
|
|
1794
|
+
switch (_a.label) {
|
|
1795
|
+
case 0: return [4 /*yield*/, this._connector.getStockStickerTemplates(data)];
|
|
1796
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
1797
|
+
}
|
|
1798
|
+
});
|
|
1799
|
+
});
|
|
1800
|
+
};
|
|
1801
|
+
StockService.prototype.getStockManagementWarehouses = function () {
|
|
1802
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1803
|
+
return __generator(this, function (_a) {
|
|
1804
|
+
switch (_a.label) {
|
|
1805
|
+
case 0: return [4 /*yield*/, this._connector.getStockManagementWarehouses()];
|
|
1806
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
1807
|
+
}
|
|
1808
|
+
});
|
|
1809
|
+
});
|
|
1810
|
+
};
|
|
1811
|
+
StockService.prototype.getStockManagementLocations = function (warehouseNo) {
|
|
1812
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1813
|
+
return __generator(this, function (_a) {
|
|
1814
|
+
switch (_a.label) {
|
|
1815
|
+
case 0: return [4 /*yield*/, this._connector.getStockManagementLocations(warehouseNo)];
|
|
1816
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
1817
|
+
}
|
|
1818
|
+
});
|
|
1819
|
+
});
|
|
1820
|
+
};
|
|
1821
|
+
StockService.prototype.lockArticleDetails = function (data) {
|
|
1822
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1823
|
+
return __generator(this, function (_a) {
|
|
1824
|
+
switch (_a.label) {
|
|
1825
|
+
case 0: return [4 /*yield*/, this._connector.lockArticleDetails(data)];
|
|
1826
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
1827
|
+
}
|
|
1828
|
+
});
|
|
1829
|
+
});
|
|
1830
|
+
};
|
|
1831
|
+
StockService.prototype.commit = function () {
|
|
1832
|
+
return this._connector.commit();
|
|
1833
|
+
};
|
|
1645
1834
|
return StockService;
|
|
1646
1835
|
}());
|
|
1647
1836
|
StockService.decorators = [
|
|
@@ -1658,6 +1847,8 @@
|
|
|
1658
1847
|
this.showStockInformationGrid = true;
|
|
1659
1848
|
this.showStockLocation = false;
|
|
1660
1849
|
this.showStockTransfer = false;
|
|
1850
|
+
this.allAvailableStock = 0;
|
|
1851
|
+
this.allTechnicalStock = 0;
|
|
1661
1852
|
}
|
|
1662
1853
|
Object.defineProperty(StockComponent.prototype, "options", {
|
|
1663
1854
|
set: function (value) {
|
|
@@ -1678,59 +1869,54 @@
|
|
|
1678
1869
|
StockComponent.prototype.showClass = function () {
|
|
1679
1870
|
return true;
|
|
1680
1871
|
};
|
|
1681
|
-
// ngAfterViewInit() {
|
|
1682
|
-
// if(this.article) {
|
|
1683
|
-
// this.getStockInformation(this.article as any);
|
|
1684
|
-
// }
|
|
1685
|
-
// }
|
|
1686
1872
|
StockComponent.prototype.backToStockLinesClicked = function () {
|
|
1687
1873
|
this.showStockLocation = false;
|
|
1688
1874
|
this.showStockInformationGrid = true;
|
|
1689
1875
|
};
|
|
1690
1876
|
StockComponent.prototype.handleStockTransferClick = function (event) {
|
|
1691
|
-
this.
|
|
1877
|
+
this.stockTransferArticleDetails = event;
|
|
1692
1878
|
this.showStockTransfer = !this.showStockTransfer;
|
|
1693
1879
|
this.showStockInformationGrid = !this.showStockInformationGrid;
|
|
1694
|
-
this.stockService.stockStickers = new printStockStickers.PrintStockStickers();
|
|
1880
|
+
this.stockService.stockStickers = new printStockStickers$1.PrintStockStickers();
|
|
1695
1881
|
};
|
|
1696
1882
|
StockComponent.prototype.backToStock = function () {
|
|
1697
1883
|
this.showStockTransfer = !this.showStockTransfer;
|
|
1698
1884
|
this.showStockInformationGrid = !this.showStockInformationGrid;
|
|
1699
1885
|
};
|
|
1700
|
-
StockComponent.prototype.
|
|
1701
|
-
this.stockService.getStockHistory(data);
|
|
1702
|
-
};
|
|
1703
|
-
StockComponent.prototype.buttonClick = function () {
|
|
1704
|
-
this.getStockInformation(this.article);
|
|
1705
|
-
};
|
|
1706
|
-
StockComponent.prototype.getStockInformation = function (data) {
|
|
1886
|
+
StockComponent.prototype.getStockHistory = function () {
|
|
1707
1887
|
return __awaiter(this, void 0, void 0, function () {
|
|
1708
|
-
var
|
|
1888
|
+
var stockHistoryInformation, _a;
|
|
1709
1889
|
return __generator(this, function (_b) {
|
|
1710
1890
|
switch (_b.label) {
|
|
1711
1891
|
case 0:
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1892
|
+
stockHistoryInformation = new getStockHistoryRequest.GetStockHistoryRequest();
|
|
1893
|
+
stockHistoryInformation.type = "B";
|
|
1894
|
+
stockHistoryInformation.goodId = this.articleExtended.goodId.toString();
|
|
1715
1895
|
_a = this;
|
|
1716
|
-
return [4 /*yield*/, this.stockService.
|
|
1896
|
+
return [4 /*yield*/, this.stockService.getStockHistory(stockHistoryInformation)];
|
|
1717
1897
|
case 1:
|
|
1718
|
-
_a.
|
|
1898
|
+
_a.stockHistory = _b.sent();
|
|
1719
1899
|
return [2 /*return*/];
|
|
1720
1900
|
}
|
|
1721
1901
|
});
|
|
1722
1902
|
});
|
|
1723
1903
|
};
|
|
1724
|
-
StockComponent.prototype.
|
|
1904
|
+
StockComponent.prototype.getStockInformation = function (data) {
|
|
1725
1905
|
return __awaiter(this, void 0, void 0, function () {
|
|
1726
|
-
var _a;
|
|
1906
|
+
var articleData, _a;
|
|
1907
|
+
var _this = this;
|
|
1727
1908
|
return __generator(this, function (_b) {
|
|
1728
1909
|
switch (_b.label) {
|
|
1729
1910
|
case 0:
|
|
1911
|
+
articleData = new articleStock.ArticleStock();
|
|
1912
|
+
articleData.goodId = data.goodId.toString();
|
|
1913
|
+
articleData.viewKind = "M";
|
|
1730
1914
|
_a = this;
|
|
1731
|
-
return [4 /*yield*/, this.stockService.getStockInformation(
|
|
1915
|
+
return [4 /*yield*/, this.stockService.getStockInformation(articleData)];
|
|
1732
1916
|
case 1:
|
|
1733
|
-
_a.
|
|
1917
|
+
_a.stockInformation = _b.sent();
|
|
1918
|
+
this.stockInformation.forEach(function (articleStock) { return _this.allAvailableStock += articleStock.availableStock; });
|
|
1919
|
+
this.stockInformation.forEach(function (articleStock) { return _this.allTechnicalStock += articleStock.technicalStock; });
|
|
1734
1920
|
return [2 /*return*/];
|
|
1735
1921
|
}
|
|
1736
1922
|
});
|
|
@@ -1741,7 +1927,7 @@
|
|
|
1741
1927
|
StockComponent.decorators = [
|
|
1742
1928
|
{ type: i0.Component, args: [{
|
|
1743
1929
|
selector: "co-stock",
|
|
1744
|
-
template: "\n <div class=\"stock-info-container\">\n <co-stock-information [article]=\"articleExtended\"\n [articleStock]=\"\"
|
|
1930
|
+
template: "\n <div class=\"stock-info-container\">\n <co-stock-information [article]=\"articleExtended\"\n [articleStock]=\"\"\n [allAvailableStockInformation]=\"allAvailableStock\"\n [allTechnicalStockInformation]=\"allTechnicalStock\"\n >\n </co-stock-information>\n <hr>\n <co-stock-information-grid *ngIf=\"showStockInformationGrid\"\n [stockLocationData]=\"stockLocationInformation\"\n [articleStockInformation]=\"stockInformation\"\n (transferIconClicked)=\"handleStockTransferClick($event)\"\n (historyClicked)=\"getStockHistory()\"\n [stockHistoryInformation]=\"stockHistory\"\n >\n </co-stock-information-grid>\n <co-stock-location *ngIf=\"showStockLocation\"\n (backToStockLines)=\"backToStockLinesClicked()\">\n\n </co-stock-location>\n <co-stock-transfer *ngIf=\"showStockTransfer\"\n (handleCancelClicked)=\"backToStock()\"\n [article]=\"stockTransferArticle\"\n [articleToTransfer]=\"stockTransferArticleDetails\"\n [stockSticker]=\"stockService.stockStickers\"\n (handleStickerClicked)=\"handleStickerClicked.emit($event)\"\n [articleWarehouse]=\"articleWarehouse\"\n [allWarehouses]=\"allWarehouses\"\n >\n </co-stock-transfer>\n </div>\n ",
|
|
1745
1931
|
encapsulation: i0.ViewEncapsulation.None
|
|
1746
1932
|
},] }
|
|
1747
1933
|
];
|
|
@@ -1760,23 +1946,22 @@
|
|
|
1760
1946
|
|
|
1761
1947
|
var StockInformationComponent = /** @class */ (function () {
|
|
1762
1948
|
function StockInformationComponent() {
|
|
1763
|
-
this.stockStatus = "medium";
|
|
1764
|
-
this.show = false;
|
|
1765
|
-
this.hideOrShowLocationTab = false;
|
|
1766
1949
|
}
|
|
1767
1950
|
return StockInformationComponent;
|
|
1768
1951
|
}());
|
|
1769
1952
|
StockInformationComponent.decorators = [
|
|
1770
1953
|
{ type: i0.Component, args: [{
|
|
1771
1954
|
selector: "co-stock-information",
|
|
1772
|
-
template: "\n <div class=\"stock-info\" *ngIf=\"article\">\n <div class=\"stock-info-row\" >\n <div class=\"stock-info-row-image\">\n <div class=\"stock-image\">\n <co-image class=\"stock-image\" [source]=\"article.imageData\"></co-image>\n </div>\n </div>\n <div class=\"stock-good-info\">\n <div>\n <span [textContent]=\"article.description\"></span>\n </div>\n <div>\n <span [textContent]=\"article.articleNumber\"></span>\n </div>\n </div>\n </div>\n <div class=\"stock-status\">\n <label [textContent]=\"'STOCK_STATUS'\"></label>\n <span [textContent]=\"article.stockStatus\"></span>\n </div>\n <div class=\"stock-status\">\n <label [textContent]=\"'AMOUNT_IN_STOCK'\"></label>\n <span [textContent]=\"
|
|
1955
|
+
template: "\n <div class=\"stock-info\" *ngIf=\"article\">\n <div class=\"stock-info-row\" >\n <div class=\"stock-info-row-image\">\n <div class=\"stock-image\">\n <co-image class=\"stock-image\" [source]=\"article.imageData\"></co-image>\n </div>\n </div>\n <div class=\"stock-good-info\">\n <div>\n <span [textContent]=\"article.description\"></span>\n </div>\n <div>\n <span [textContent]=\"article.articleNumber\"></span>\n </div>\n </div>\n </div>\n <div class=\"stock-status\">\n <label [textContent]=\"'STOCK_STATUS'\"></label>\n <span [textContent]=\"article.stockStatus\"></span>\n </div>\n <div class=\"stock-status\">\n <label [textContent]=\"'AMOUNT_IN_STOCK'\"></label>\n <span [textContent]=\"allTechnicalStockInformation\"></span>\n </div>\n <div class=\"stock-status\">\n <label [textContent]=\"'AMOUNT_AVAILABLE'\"></label>\n <span [textContent]=\"allAvailableStockInformation\"></span>\n </div>\n <div class=\"stock-status\">\n <label [textContent]=\"'AMOUNT_LATER_AVAILABLE'\"></label>\n <span [textContent]=\"\"></span>\n </div>\n </div>\n ",
|
|
1773
1956
|
encapsulation: i0.ViewEncapsulation.None
|
|
1774
1957
|
},] }
|
|
1775
1958
|
];
|
|
1776
1959
|
StockInformationComponent.ctorParameters = function () { return []; };
|
|
1777
1960
|
StockInformationComponent.propDecorators = {
|
|
1778
1961
|
article: [{ type: i0.Input }],
|
|
1779
|
-
articleStock: [{ type: i0.Input }]
|
|
1962
|
+
articleStock: [{ type: i0.Input }],
|
|
1963
|
+
allAvailableStockInformation: [{ type: i0.Input }],
|
|
1964
|
+
allTechnicalStockInformation: [{ type: i0.Input }]
|
|
1780
1965
|
};
|
|
1781
1966
|
|
|
1782
1967
|
/** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
|
|
@@ -1880,27 +2065,17 @@
|
|
|
1880
2065
|
this.iconCacheService = iconCacheService;
|
|
1881
2066
|
this._stockService = _stockService;
|
|
1882
2067
|
this.icons = Icon;
|
|
1883
|
-
this.locationLineClicked = new i0.EventEmitter();
|
|
1884
2068
|
this.transferIconClicked = new i0.EventEmitter();
|
|
2069
|
+
this.historyClicked = new i0.EventEmitter();
|
|
1885
2070
|
this.show = false;
|
|
1886
2071
|
this.hideOrShowLocationTab = false;
|
|
1887
2072
|
this.showStockHistory = false;
|
|
1888
2073
|
this.showSendMethodDialog = false;
|
|
1889
|
-
this.data = [
|
|
1890
|
-
{ test: "test" }
|
|
1891
|
-
];
|
|
1892
|
-
this.inOrderInformation = [
|
|
1893
|
-
{ inOrder: "275432", customer: "Test customer", orderDate: "date", orderAmount: "2", warehouseNumber: "8", warehouseDescription: "A nice warehouse", amountInStock: "17", commission: "4014321" },
|
|
1894
|
-
{ inOrder: "275432", customer: "Test customer", orderDate: "date", orderAmount: "2", warehouseNumber: "8", warehouseDescription: "A nice warehouse", amountInStock: "17", commission: "4014321" },
|
|
1895
|
-
{ inOrder: "275432", customer: "Test customer", orderDate: "date", orderAmount: "2", warehouseNumber: "8", warehouseDescription: "A nice warehouse", amountInStock: "17", commission: "4014321" },
|
|
1896
|
-
{ inOrder: "275432", customer: "Test customer", orderDate: "date", orderAmount: "2", warehouseNumber: "8", warehouseDescription: "A nice warehouse", amountInStock: "17", commission: "4014321" },
|
|
1897
|
-
{ inOrder: "275432", customer: "Test customer", orderDate: "date", orderAmount: "2", warehouseNumber: "8", warehouseDescription: "A nice warehouse", amountInStock: "17", commission: "4014321" },
|
|
1898
|
-
];
|
|
1899
|
-
this.orderInformation = [];
|
|
1900
2074
|
this.hideOrShowTabs = true;
|
|
1901
|
-
this.
|
|
1902
|
-
this.dataWareHouseFields = { text: "warehouseDescription", value: "warehouseNumber" };
|
|
2075
|
+
this.dataWareHouseFields = { text: "warehouseDescription", value: "warehouseNo" };
|
|
1903
2076
|
this.articleStockSearchInfo = new articleStock.ArticleStock();
|
|
2077
|
+
this.showChangeStockDetails = false;
|
|
2078
|
+
this.articleDetailsInformation = new articleStockManagement.ArticleStockManagement();
|
|
1904
2079
|
this.tabs = [
|
|
1905
2080
|
"STOCK",
|
|
1906
2081
|
"IN_ORDER2",
|
|
@@ -1925,25 +2100,38 @@
|
|
|
1925
2100
|
configurable: true
|
|
1926
2101
|
});
|
|
1927
2102
|
StockInformationGridComponent.prototype.handleTabClick = function (tabData) {
|
|
2103
|
+
console.log(tabData);
|
|
1928
2104
|
this.activeTab = tabData;
|
|
2105
|
+
if (this.activeTab === "IN_ORDER2") {
|
|
2106
|
+
this.getInOrderData();
|
|
2107
|
+
}
|
|
2108
|
+
if (this.activeTab === "ORDERS1") {
|
|
2109
|
+
this.getOrderData();
|
|
2110
|
+
}
|
|
1929
2111
|
};
|
|
1930
2112
|
StockInformationGridComponent.prototype.onLocationClick = function (data) {
|
|
1931
2113
|
this.articleStockSearchInfo.goodId = data.goodId.toString();
|
|
1932
2114
|
this.articleStockSearchInfo.wareHouseNo = data.warehouseNo.toString();
|
|
1933
2115
|
this.articleStockSearchInfo.viewKind = "D";
|
|
1934
|
-
|
|
2116
|
+
if (!this.dataWareHouseCode) {
|
|
2117
|
+
this.getStockManagementWarehouses(data);
|
|
2118
|
+
}
|
|
2119
|
+
this.getArticleDetails(data);
|
|
1935
2120
|
this.hideOrShowTabs = false;
|
|
1936
2121
|
this.hideOrShowLocationTab = true;
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
this.show = false;
|
|
2122
|
+
console.log(this.articleDetailsInformation);
|
|
2123
|
+
this._stockService.lockArticleDetails(this.articleDetailsInformation);
|
|
1940
2124
|
};
|
|
1941
2125
|
StockInformationGridComponent.prototype.handleHistoryClick = function () {
|
|
1942
|
-
|
|
1943
|
-
|
|
2126
|
+
this.historyClicked.emit();
|
|
2127
|
+
this.hideOrShowLocationTab = false;
|
|
2128
|
+
this.showChangeStockDetails = false;
|
|
2129
|
+
this.hideOrShowTabs = false;
|
|
2130
|
+
this.showStockHistory = true;
|
|
1944
2131
|
};
|
|
1945
|
-
StockInformationGridComponent.prototype.
|
|
1946
|
-
this.
|
|
2132
|
+
StockInformationGridComponent.prototype.backToStockInformation = function () {
|
|
2133
|
+
this.showStockHistory = false;
|
|
2134
|
+
this.hideOrShowTabs = true;
|
|
1947
2135
|
};
|
|
1948
2136
|
StockInformationGridComponent.prototype.handleStockTransferClick = function (event) {
|
|
1949
2137
|
this.transferIconClicked.emit(event);
|
|
@@ -1962,20 +2150,91 @@
|
|
|
1962
2150
|
this.showSendMethodDialog = !this.showSendMethodDialog;
|
|
1963
2151
|
};
|
|
1964
2152
|
StockInformationGridComponent.prototype.printStockStickers = function () {
|
|
1965
|
-
this.printSticker = new printStockStickers
|
|
2153
|
+
this.printSticker = new printStockStickers.PrintStockStickers();
|
|
1966
2154
|
this.printSticker.goodId = 10;
|
|
1967
|
-
this._stockService.getPrintStockStickers(this.printSticker);
|
|
2155
|
+
// this._stockService.getPrintStockStickers(this.printSticker);
|
|
1968
2156
|
};
|
|
1969
2157
|
StockInformationGridComponent.prototype.onOkClick = function () {
|
|
1970
2158
|
};
|
|
1971
2159
|
StockInformationGridComponent.prototype.onCancelClick = function () {
|
|
1972
2160
|
};
|
|
2161
|
+
StockInformationGridComponent.prototype.openDialogClick = function (data) {
|
|
2162
|
+
this.selectedArticleDetailsData = data;
|
|
2163
|
+
this.showChangeStockDetails = true;
|
|
2164
|
+
};
|
|
2165
|
+
StockInformationGridComponent.prototype.getArticleDetails = function (data) {
|
|
2166
|
+
var _this = this;
|
|
2167
|
+
// const info = new ArticleStockManagement();
|
|
2168
|
+
this.articleDetailsInformation.goodId = data.goodId;
|
|
2169
|
+
this.articleDetailsInformation.lineId = data.lineId;
|
|
2170
|
+
this.articleDetailsInformation.warehouseNumber = data.warehouseNo;
|
|
2171
|
+
this._stockService.getArticleDetails(this.articleDetailsInformation).then(function (details) {
|
|
2172
|
+
_this.articleDetails = details;
|
|
2173
|
+
});
|
|
2174
|
+
};
|
|
2175
|
+
StockInformationGridComponent.prototype.getStockManagementWarehouses = function (data) {
|
|
2176
|
+
var _this = this;
|
|
2177
|
+
this._stockService.getStockManagementWarehouses().then(function (warehouses) {
|
|
2178
|
+
_this.dataWareHouseCode = warehouses;
|
|
2179
|
+
_this.selectedWarehouse = data.warehouseNo;
|
|
2180
|
+
});
|
|
2181
|
+
};
|
|
2182
|
+
StockInformationGridComponent.prototype.onSelectWarehouse = function (event) {
|
|
2183
|
+
var _this = this;
|
|
2184
|
+
this.articleDetailsInformation.warehouseNumber = event;
|
|
2185
|
+
console.log(event);
|
|
2186
|
+
if (this.dataWareHouseCode != null) {
|
|
2187
|
+
this._stockService.getArticleDetails(this.articleDetailsInformation).then(function (details) {
|
|
2188
|
+
_this.articleDetails = details;
|
|
2189
|
+
});
|
|
2190
|
+
}
|
|
2191
|
+
};
|
|
2192
|
+
StockInformationGridComponent.prototype.getInOrderData = function () {
|
|
2193
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2194
|
+
var inOrderData, _a;
|
|
2195
|
+
return __generator(this, function (_b) {
|
|
2196
|
+
switch (_b.label) {
|
|
2197
|
+
case 0:
|
|
2198
|
+
inOrderData = new getStockHistoryRequest.GetStockHistoryRequest();
|
|
2199
|
+
inOrderData.type = "O";
|
|
2200
|
+
inOrderData.goodId = this.articleStockInformation[0].goodId.toString();
|
|
2201
|
+
// inOrderData.wareHouseNr = Number(this.articleStockInformation[0].warehouseNo);
|
|
2202
|
+
_a = this;
|
|
2203
|
+
return [4 /*yield*/, this._stockService.getStockHistory(inOrderData)];
|
|
2204
|
+
case 1:
|
|
2205
|
+
// inOrderData.wareHouseNr = Number(this.articleStockInformation[0].warehouseNo);
|
|
2206
|
+
_a.inOrderInformation = _b.sent();
|
|
2207
|
+
return [2 /*return*/];
|
|
2208
|
+
}
|
|
2209
|
+
});
|
|
2210
|
+
});
|
|
2211
|
+
};
|
|
2212
|
+
StockInformationGridComponent.prototype.getOrderData = function () {
|
|
2213
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2214
|
+
var inOrderData, _a;
|
|
2215
|
+
return __generator(this, function (_b) {
|
|
2216
|
+
switch (_b.label) {
|
|
2217
|
+
case 0:
|
|
2218
|
+
inOrderData = new getStockHistoryRequest.GetStockHistoryRequest();
|
|
2219
|
+
inOrderData.type = "B";
|
|
2220
|
+
inOrderData.goodId = this.articleStockInformation[0].goodId.toString();
|
|
2221
|
+
// inOrderData.wareHouseNr = Number(this.articleStockInformation[0].warehouseNo);
|
|
2222
|
+
_a = this;
|
|
2223
|
+
return [4 /*yield*/, this._stockService.getStockHistory(inOrderData)];
|
|
2224
|
+
case 1:
|
|
2225
|
+
// inOrderData.wareHouseNr = Number(this.articleStockInformation[0].warehouseNo);
|
|
2226
|
+
_a.orderInformation = _b.sent();
|
|
2227
|
+
return [2 /*return*/];
|
|
2228
|
+
}
|
|
2229
|
+
});
|
|
2230
|
+
});
|
|
2231
|
+
};
|
|
1973
2232
|
return StockInformationGridComponent;
|
|
1974
2233
|
}());
|
|
1975
2234
|
StockInformationGridComponent.decorators = [
|
|
1976
2235
|
{ type: i0.Component, args: [{
|
|
1977
2236
|
selector: "co-stock-information-grid",
|
|
1978
|
-
template: "\n <div class=\"tab-link show\" *ngIf=\"hideOrShowTabs\">\n <span class=\"tab-link-buttons\"\n *ngFor=\"let tab of tabs\"\n (click)=\"handleTabClick(tab)\"\n [textContent]=\"tab\"\n [class.active]=\"tab === activeTab\"\n ></span>\n </div>\n\n <div class=\"stock-line\">\n <div [textContent]=\"activeTabText\"></div>\n\n </div>\n\n <div class=\"stock-grid\">\n <co-simple-grid *ngIf=\"activeTab === tabs[0] && hideOrShowTabs\"\n [data]=\"articleStockInformation\"\n >\n <co-simple-grid-column [headerText]=\"'WAREHOUSE'\" [field]=\"'warehouseNo'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DESCRIPTION'\" [field]=\"'warehouseName'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK'\" [field]=\"'technicalStock'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AVAILABLE_STOCK'\" [field]=\"'availableStock'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'ECONOMICAL_STOCK'\" [field]=\"'economicalStock'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'LOCATION'\" [field]=\"'locationNo'\">\n <ng-template #template let-row=\"row\">\n <span [textContent]=\"'bekijken'\" (click)=\"onLocationClick(row)\"></span>\n </ng-template>\n </co-simple-grid-column>\n </co-simple-grid>\n\n <co-simple-grid *ngIf=\"activeTab === tabs[1]\"\n [data]=\"inOrderInformation\"\n >\n <co-simple-grid-column [headerText]=\"'IN_ORDER2'\" [field]=\"'inOrder'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'CUSTOMER'\" [field]=\"'customer'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DATE'\" [field]=\"'orderDate'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AMOUNT'\" [field]=\"'orderAmount'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'WAREHOUSE'\" [field]=\"'warehouseNumber'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DESCRIPTION'\" [field]=\"'warehouseDescription'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK'\" [field]=\"'amountInStock'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'COMMISSION2'\" [field]=\"'commission'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'TRANSFER'\" [field]=\"'transfer'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.DeliveryTruck)\" (click)=\"handleStockTransferClick($event)\"></co-icon>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STICKER'\" [field]=\"'sticker'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.Print)\" (click)=\"openSendMethodDialog()\"></co-icon>\n </ng-template>\n </co-simple-grid-column>\n </co-simple-grid>\n\n <co-simple-grid *ngIf=\"activeTab === tabs[2]\"\n [data]=\"orderInformation\"\n >\n <co-simple-grid-column [headerText]=\"'PURCHASE_ORDER_NR'\" [field]=\"'purchaseOrderNo'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DATE'\" [field]=\"'orderDate'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AMOUNT'\" [field]=\"'orderAmount'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'RESERVED'\" [field]=\"'reserved'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'FREE_STOCK'\" [field]=\"'freeStock'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DELIVERY_DATE1'\" [field]=\"'deliveryDate'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'RESERVE'\" [field]=\"'reservation'\"></co-simple-grid-column>\n </co-simple-grid>\n </div>\n\n <div class=\"stock-grid\" *ngIf=\"hideOrShowLocationTab\">\n <div class=\"stock-location-group\">\n <div class=\"stock-location-left-group\">\n <span class=\"stock-button-back\" [textContent]=\"'BACK_TO_STOCK_LINES'\" (click)=\"handleBackToStockClick()\"></span>\n </div>\n <div class=\"stock-location-right-group\">\n <co-input-combo-box [(model)]=\"dataWareHouseCode\"\n [fields]=\"dataWareHouseFields\"\n [placeholder]=\"'WAREHOUSE'\"\n [required]=\"true\"\n ></co-input-combo-box>\n </div>\n </div>\n\n<!-- TODO move to own component stock-location-->\n <co-simple-grid [data]=\"stockLocationData\"\n >\n <div class=\"stock-location-group\">\n <div class=\"stock-location-left-group\">\n <co-button class=\"stock-lines-button\" [textContent]=\"'BACK_TO_STOCK_LINES'\" (click)=\"handleBackToStockClick()\"></co-button>\n </div>\n </div>\n <co-simple-grid-column [headerText]=\"'WAREHOUSE'\" [field]=\"'warehouseName'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'BATCH'\" [field]=\"'batchNo'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'SERIAL_NO'\" [field]=\"'serialNo'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK'\" [field]=\"'notAssignedStock'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'ALLOCATED'\" [field]=\"'economicalStock'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AVAILABLE_STOCK'\" [field]=\"'availableStock'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'TRANSFER'\" [field]=\"'transfer'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.DeliveryTruck)\" (click)=\"handleStockTransferClick(row)\"></co-icon>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STICKER'\" [field]=\"'sticker'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.Print)\" (click)=\"openSendMethodDialog()\"></co-icon>\n </ng-template>\n </co-simple-grid-column>\n </co-simple-grid>\n </div>\n\n <div class=\"stock-grid\" *ngIf=\"showStockHistory\">\n <co-simple-grid [data]=\"stockHistoryInformation\"\n >\n <co-simple-grid-column [headerText]=\"'WAREHOUSE'\" [field]=\"'location'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'BATCH'\" [field]=\"'batch'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'SERIAL_NO'\" [field]=\"'serialNo'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK'\" [field]=\"'amountInStock'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'ALLOCATED'\" [field]=\"'allocated'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AVAILABLE_STOCK'\" [field]=\"'amountAvailable'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STICKER'\" [field]=\"'sticker'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.Print)\" (click)=\"openSendMethodDialog()\"></co-icon>\n </ng-template>\n </co-simple-grid-column>\n </co-simple-grid>\n </div>\n\n <div class=\"stock-button-toolbar\">\n <div class=\"stock-button-left-group\">\n <co-button [label]=\"'HISTORY'\" (click)=\"handleHistoryClick()\"></co-button>\n </div>\n <div class=\"stock-button-middle-group\">\n <div class=\"button-left\">\n <co-button [textContent]=\"'Ok'\" (click)=\"onOkClick()\"></co-button>\n </div>\n <div class=\"button-right\">\n <co-button [textContent]=\"'Annuleren'\" (click)=\"onCancelClick()\"></co-button>\n </div>\n </div>\n </div>\n <ione-send-method-dialog\n [showDialog]=\"showSendMethodDialog\"\n (printButtonClicked)=\"printStockStickers()\"\n ></ione-send-method-dialog>\n ",
|
|
2237
|
+
template: "\n <div class=\"tab-link show\" *ngIf=\"hideOrShowTabs\">\n <span class=\"tab-link-buttons\"\n *ngFor=\"let tab of tabs\"\n (click)=\"handleTabClick(tab)\"\n [textContent]=\"tab\"\n [class.active]=\"tab === activeTab\"\n ></span>\n </div>\n\n <div class=\"stock-line\">\n <div [textContent]=\"activeTabText\"></div>\n\n </div>\n\n <div class=\"stock-grid\">\n <co-simple-grid *ngIf=\"activeTab === tabs[0] && hideOrShowTabs\"\n [data]=\"articleStockInformation\"\n >\n <co-simple-grid-column [headerText]=\"'WAREHOUSE'\" [field]=\"'warehouseNo'\" [order]=\"10\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DESCRIPTION'\" [field]=\"'warehouseName'\" [order]=\"11\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK'\" [field]=\"'technicalStock'\" [order]=\"12\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AVAILABLE_STOCK'\" [field]=\"'availableStock'\" [order]=\"13\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'ECONOMICAL_STOCK'\" [field]=\"'economicalStock'\" [order]=\"14\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'LOCATION'\" [field]=\"'locationNo'\" [order]=\"15\">\n <ng-template #template let-row=\"row\">\n <span [textContent]=\"'Bekijken'\" (click)=\"onLocationClick(row)\"></span>\n </ng-template>\n </co-simple-grid-column>\n </co-simple-grid>\n\n <co-simple-grid *ngIf=\"activeTab === tabs[1]\"\n [data]=\"inOrderInformation\"\n >\n <co-simple-grid-column [headerText]=\"'IN_ORDER2'\" [field]=\"'amount'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'CUSTOMER'\" [field]=\"'user'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DATE'\" [field]=\"'mutationDate'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AMOUNT'\" [field]=\"'amount'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'WAREHOUSE'\" [field]=\"'wareHouseNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DESCRIPTION'\" [field]=\"'locationNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK'\" [field]=\"'amountInStock'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'COMMISSION2'\" [field]=\"'commission'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'TRANSFER'\" [field]=\"'transfer'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.DeliveryTruck)\" (click)=\"handleStockTransferClick($event)\"></co-icon>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STICKER'\" [field]=\"'sticker'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.Print)\" (click)=\"openSendMethodDialog()\"></co-icon>\n </ng-template>\n </co-simple-grid-column>\n </co-simple-grid>\n\n <co-simple-grid *ngIf=\"activeTab === tabs[2]\"\n [data]=\"orderInformation\"\n >\n <co-simple-grid-column [headerText]=\"'PURCHASE_ORDER_NR'\" [field]=\"'seriesNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DATE'\" [field]=\"'mutationDate'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AMOUNT'\" [field]=\"'amount'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'RESERVED'\" [field]=\"'reserved'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'FREE_STOCK'\" [field]=\"'freeStock'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DELIVERY_DATE1'\" [field]=\"'deliveryDate'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'RESERVE'\" [field]=\"'reservation'\"></co-simple-grid-column>\n </co-simple-grid>\n </div>\n\n <div class=\"stock-grid\" *ngIf=\"hideOrShowLocationTab\">\n <div class=\"stock-location-group\">\n <div class=\"stock-location-left-group\">\n <span class=\"stock-button-back\" [textContent]=\"'BACK_TO_STOCK_LINES'\" (click)=\"handleBackToStockClick()\"></span>\n </div>\n <div class=\"stock-location-right-group\">\n <co-drop-down-list [(model)]=\"selectedWarehouse\"\n [collection]=\"dataWareHouseCode\"\n [fields]=\"dataWareHouseFields\"\n [placeholder]=\"'WAREHOUSE'\"\n (modelChange)=\"onSelectWarehouse($event)\"\n [required]=\"true\"\n ></co-drop-down-list>\n </div>\n </div>\n\n<!-- TODO move to own component stock-location-->\n <co-simple-grid [data]=\"articleDetails\"\n >\n <div class=\"stock-location-group\">\n <div class=\"stock-location-left-group\">\n <co-button class=\"stock-lines-button\" [textContent]=\"'BACK_TO_STOCK_LINES'\" (click)=\"handleBackToStockClick()\"></co-button>\n </div>\n </div>\n <co-simple-grid-column [headerText]=\"'WAREHOUSE'\" [field]=\"'warehouseDescription'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'BATCH'\" [field]=\"'batchNo'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'SERIAL_NO'\" [field]=\"'serialNo'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK'\" [field]=\"'amountInStock'\">\n <ng-template #template let-row=\"row\">\n <co-input-number-picker (keyup.enter)=\"openDialogClick(row)\" [(model)]=\"row['amountInStock']\">\n\n </co-input-number-picker>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'ALLOCATED'\" [field]=\"'amountInStockFree'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AVAILABLE_STOCK'\" [field]=\"'perceptibleStorage'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'PHYSICAL_STOCK'\" [field]=\"'amountInStockOriginal'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'VALUTA'\" [field]=\"'currency'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'PURCHASE_PRICE'\" [field]=\"'purchasePrice'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'SUPPLIER_NUMBER'\" [field]=\"'supplierNo'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'TRANSFER'\" [field]=\"'transfer'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.DeliveryTruck)\" (click)=\"handleStockTransferClick(row)\"></co-icon>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STICKER'\" [field]=\"'sticker'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.Print)\" (click)=\"openSendMethodDialog()\"></co-icon>\n </ng-template>\n </co-simple-grid-column>\n </co-simple-grid>\n </div>\n\n <co-stock-change-amount *ngIf=\"showChangeStockDetails\"\n (closeStockChangeAmount)=\"showChangeStockDetails = false\"\n [selectedArticleDetailsData]=\"selectedArticleDetailsData\"\n >\n </co-stock-change-amount>\n\n <div class=\"stock-grid\" *ngIf=\"showStockHistory\">\n <div class=\"stock-button-left-group\">\n <span class=\"stock-button-back\" [textContent]=\"'BACK_TO_STOCK_LINES'\" (click)=\"backToStockInformation()\"></span>\n </div>\n <co-simple-grid [data]=\"stockHistoryInformation\"\n >\n <co-simple-grid-column [headerText]=\"'MUTATION_DATE'\" [field]=\"'mutationDate'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'MUTATION_TIME'\" [field]=\"'mutationTime'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AMOUNT'\" [field]=\"'amount'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'WAREHOUSE'\" [field]=\"'wareHouseNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'LOCATION'\" [field]=\"'locationNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'TRANSACTION_TYPE'\" [field]=\"'transType'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DOCUMENT_NUMBER'\" [field]=\"'docNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'LINE'\" [field]=\"'posLineNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK_STATE'\" [field]=\"'stockStateId'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK_REMARK'\" [field]=\"'stockStateRemarkId'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'VALUTA'\" [field]=\"'currencyCode'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'RELATION_ID'\" [field]=\"'relationId'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'USER'\" [field]=\"'user'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'MUTATION_TYPE'\" [field]=\"'mutationType'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STICKER'\" [field]=\"'sticker'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.Print)\" (click)=\"openSendMethodDialog()\"></co-icon>\n </ng-template>\n </co-simple-grid-column>\n </co-simple-grid>\n </div>\n\n <div class=\"stock-button-toolbar\">\n <div class=\"stock-button-left-group\">\n <co-button [label]=\"'HISTORY'\" (click)=\"handleHistoryClick()\"></co-button>\n </div>\n <div class=\"stock-button-middle-group\">\n <div class=\"button-left\">\n <co-button [textContent]=\"'Ok'\" (click)=\"onOkClick()\"></co-button>\n </div>\n <div class=\"button-right\">\n <co-button [textContent]=\"'Annuleren'\" (click)=\"onCancelClick()\"></co-button>\n </div>\n </div>\n </div>\n <ione-send-method-dialog\n *ngIf=\"showSendMethodDialog\"\n [showDialog]=\"showSendMethodDialog\"\n (printButtonClicked)=\"printStockStickers()\"\n ></ione-send-method-dialog>\n ",
|
|
1979
2238
|
encapsulation: i0.ViewEncapsulation.None
|
|
1980
2239
|
},] }
|
|
1981
2240
|
];
|
|
@@ -1986,31 +2245,22 @@
|
|
|
1986
2245
|
StockInformationGridComponent.propDecorators = {
|
|
1987
2246
|
stock: [{ type: i0.ViewChild, args: [StockInformationGridComponent,] }],
|
|
1988
2247
|
articleStockInformation: [{ type: i0.Input }],
|
|
1989
|
-
stockHistoryInformation: [{ type: i0.Input }],
|
|
1990
2248
|
stockLocationData: [{ type: i0.Input }],
|
|
1991
|
-
|
|
1992
|
-
transferIconClicked: [{ type: i0.Output }]
|
|
2249
|
+
stockHistoryInformation: [{ type: i0.Input }],
|
|
2250
|
+
transferIconClicked: [{ type: i0.Output }],
|
|
2251
|
+
historyClicked: [{ type: i0.Output }]
|
|
1993
2252
|
};
|
|
1994
2253
|
|
|
1995
2254
|
var StockLocationComponent = /** @class */ (function () {
|
|
1996
|
-
function StockLocationComponent() {
|
|
2255
|
+
function StockLocationComponent(_stockService) {
|
|
2256
|
+
this._stockService = _stockService;
|
|
1997
2257
|
this.backToStockLines = new i0.EventEmitter();
|
|
1998
|
-
this.MAX_GRID_ROWS = 10;
|
|
1999
2258
|
this.stockLocationColumns = [];
|
|
2000
|
-
this.stockLocation = [
|
|
2001
|
-
{ location: "title 1", batch: "1", serieNo: "1", amountInStock: "1", allocated: "1", amountAvailable: "1" },
|
|
2002
|
-
{ location: "title 2", amountInStock: "2" },
|
|
2003
|
-
{ location: "title 3", amountInStock: "3" },
|
|
2004
|
-
{ location: "title 4", amountInStock: "4" },
|
|
2005
|
-
{ location: "title 5", amountInStock: "5" },
|
|
2006
|
-
];
|
|
2007
2259
|
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" });
|
|
2008
2260
|
}
|
|
2009
2261
|
StockLocationComponent.prototype.backToStockInformation = function () {
|
|
2010
2262
|
this.backToStockLines.emit();
|
|
2011
2263
|
};
|
|
2012
|
-
StockLocationComponent.prototype.onStickerClick = function (event) {
|
|
2013
|
-
};
|
|
2014
2264
|
StockLocationComponent.prototype.onOkClick = function () {
|
|
2015
2265
|
};
|
|
2016
2266
|
StockLocationComponent.prototype.onCancelClick = function () {
|
|
@@ -2026,7 +2276,9 @@
|
|
|
2026
2276
|
encapsulation: i0.ViewEncapsulation.None
|
|
2027
2277
|
},] }
|
|
2028
2278
|
];
|
|
2029
|
-
StockLocationComponent.ctorParameters = function () { return [
|
|
2279
|
+
StockLocationComponent.ctorParameters = function () { return [
|
|
2280
|
+
{ type: StockService }
|
|
2281
|
+
]; };
|
|
2030
2282
|
StockLocationComponent.propDecorators = {
|
|
2031
2283
|
stockLocationInformation: [{ type: i0.Input }],
|
|
2032
2284
|
backToStockLines: [{ type: i0.Output }]
|
|
@@ -2037,15 +2289,37 @@
|
|
|
2037
2289
|
this._stockService = _stockService;
|
|
2038
2290
|
this.handleCancelClicked = new i0.EventEmitter();
|
|
2039
2291
|
this.handleStickerClicked = new i0.EventEmitter();
|
|
2040
|
-
this.allWarehousesDropdownFields = {
|
|
2292
|
+
this.allWarehousesDropdownFields = { text: "warehouseDescription", value: "warehouseNo" };
|
|
2293
|
+
this.allLocationDropdownFields = { text: "locationNo", value: "locationNo" };
|
|
2041
2294
|
this.showSendMethodDialog = false;
|
|
2295
|
+
this.stockState = [];
|
|
2296
|
+
this.stockStateDropdownField = { text: "stateDescription", value: "stockStateId" };
|
|
2042
2297
|
}
|
|
2043
|
-
StockTransferComponent.prototype.
|
|
2298
|
+
StockTransferComponent.prototype.ngAfterViewInit = function () {
|
|
2299
|
+
this.getStockManagementWarehouses();
|
|
2300
|
+
this.getStockState();
|
|
2301
|
+
};
|
|
2302
|
+
StockTransferComponent.prototype.handleOkClick = function (data) {
|
|
2303
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2304
|
+
return __generator(this, function (_a) {
|
|
2305
|
+
switch (_a.label) {
|
|
2306
|
+
case 0:
|
|
2307
|
+
data.selected = true;
|
|
2308
|
+
data.entryDate = new Date;
|
|
2309
|
+
return [4 /*yield*/, this._stockService.updateArticleDetails(data)];
|
|
2310
|
+
case 1:
|
|
2311
|
+
_a.sent();
|
|
2312
|
+
return [2 /*return*/];
|
|
2313
|
+
}
|
|
2314
|
+
});
|
|
2315
|
+
});
|
|
2044
2316
|
};
|
|
2045
2317
|
StockTransferComponent.prototype.handleCancelClick = function () {
|
|
2046
2318
|
this.handleCancelClicked.emit();
|
|
2047
2319
|
};
|
|
2048
2320
|
StockTransferComponent.prototype.handleSelectedWarehouse = function (event) {
|
|
2321
|
+
this.selectedWarehouse = event;
|
|
2322
|
+
this.getStockManagementLocations(this.selectedWarehouse);
|
|
2049
2323
|
};
|
|
2050
2324
|
StockTransferComponent.prototype.handleStickerClick = function () {
|
|
2051
2325
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -2056,12 +2330,30 @@
|
|
|
2056
2330
|
});
|
|
2057
2331
|
});
|
|
2058
2332
|
};
|
|
2333
|
+
StockTransferComponent.prototype.getStockManagementWarehouses = function () {
|
|
2334
|
+
var _this = this;
|
|
2335
|
+
this._stockService.getStockManagementWarehouses().then(function (warehouses) {
|
|
2336
|
+
_this.warehouses = warehouses;
|
|
2337
|
+
});
|
|
2338
|
+
};
|
|
2339
|
+
StockTransferComponent.prototype.getStockManagementLocations = function (data) {
|
|
2340
|
+
var _this = this;
|
|
2341
|
+
this._stockService.getStockManagementLocations(data).then(function (locations) {
|
|
2342
|
+
_this.locations = locations;
|
|
2343
|
+
});
|
|
2344
|
+
};
|
|
2345
|
+
StockTransferComponent.prototype.getStockState = function () {
|
|
2346
|
+
var _this = this;
|
|
2347
|
+
this._stockService.getStockState().then(function (state) {
|
|
2348
|
+
_this.stockState = state;
|
|
2349
|
+
});
|
|
2350
|
+
};
|
|
2059
2351
|
return StockTransferComponent;
|
|
2060
2352
|
}());
|
|
2061
2353
|
StockTransferComponent.decorators = [
|
|
2062
2354
|
{ type: i0.Component, args: [{
|
|
2063
2355
|
selector: "co-stock-transfer",
|
|
2064
|
-
template: "\n <div class=\"stock-transfer\">\n <div class=\"stock-transfer-columns\">\n <
|
|
2356
|
+
template: "\n <div class=\"stock-transfer\">\n <div class=\"stock-transfer-columns\">\n <div *ngIf=\"articleToTransfer\" class=\"stock-transfer-left-column\">\n <co-input-text disabled\n [(model)]=\"articleToTransfer.warehouseDescription\"\n [textContent]=\"articleToTransfer.warehouseDescription\"\n [placeholder]=\"'Standaard magazijn'\">\n </co-input-text>\n <co-input-text disabled\n [(model)]=\"articleToTransfer.locationNo\"\n [textContent]=\"articleToTransfer.locationNo\"\n [placeholder]=\"'Standaard locatie'\">\n </co-input-text>\n <co-input-text disabled\n [(model)]=\"stockSticker.batch\"\n [placeholder]=\"'Batch'\">\n </co-input-text>\n <co-input-text disabled\n [(model)]=\"stockSticker.serial\"\n [placeholder]=\"'Serie'\">\n </co-input-text>\n <co-input-text\n [(model)]=\"articleToTransfer.amountTransfer\"\n [placeholder]=\"'Aantal'\">\n </co-input-text>\n </div>\n\n <div class=\"stock-transfer-right-column\">\n <co-drop-down-list [collection]=\"warehouses\"\n [fields]=\"allWarehousesDropdownFields\"\n (modelChange)=\"handleSelectedWarehouse($event)\"\n [(model)]=\"articleToTransfer.targetWarehouse\">\n </co-drop-down-list>\n <co-drop-down-list [collection]=\"locations\"\n [fields]=\"allLocationDropdownFields\"\n [(model)]=\"articleToTransfer.targetLocation\"\n >\n </co-drop-down-list>\n <co-drop-down-list [collection]=\"stockState\"\n [fields]=\"stockStateDropdownField\"\n [placeholder]=\"'Voorraadstatus'\"\n [(model)]=\"articleToTransfer.stockStateId\">\n </co-drop-down-list>\n <co-input-text [placeholder]=\"'Omschrijving'\"\n [(model)]=\"articleToTransfer.stockStateRemark\">\n </co-input-text>\n </div>\n </div>\n\n <div class=\"ok-cancel-buttons\">\n <co-button [textContent]=\"'Ok'\" (click)=\"handleOkClick(articleToTransfer)\"></co-button>\n <co-button [textContent]=\"'Annuleren'\" (click)=\"handleCancelClick()\"></co-button>\n <co-button [textContent]=\"'Sticker'\" (click)=\"handleStickerClick()\"></co-button>\n </div>\n </div>\n ",
|
|
2065
2357
|
encapsulation: i0.ViewEncapsulation.None
|
|
2066
2358
|
},] }
|
|
2067
2359
|
];
|
|
@@ -2071,6 +2363,7 @@
|
|
|
2071
2363
|
StockTransferComponent.propDecorators = {
|
|
2072
2364
|
stockSticker: [{ type: i0.Input }],
|
|
2073
2365
|
article: [{ type: i0.Input }],
|
|
2366
|
+
articleToTransfer: [{ type: i0.Input }],
|
|
2074
2367
|
articleWarehouse: [{ type: i0.Input }],
|
|
2075
2368
|
allWarehouses: [{ type: i0.Input }],
|
|
2076
2369
|
handleCancelClicked: [{ type: i0.Output }],
|
|
@@ -2106,6 +2399,7 @@
|
|
|
2106
2399
|
this.showStandardPrinterOptions = false;
|
|
2107
2400
|
this.showPrinterSelections = false;
|
|
2108
2401
|
this.showExitButton = true;
|
|
2402
|
+
this.printTemplatesField = { text: "name", value: "name" };
|
|
2109
2403
|
this.emails = ['lars.vdv@colijn-it.nl', 'david@colijn-it.nl', 'ruben@colijn-it.nl'];
|
|
2110
2404
|
this.models = [false, false, true];
|
|
2111
2405
|
this.layouts = ['Layout 1', 'Layout 2', 'Layout 3'];
|
|
@@ -2116,6 +2410,9 @@
|
|
|
2116
2410
|
SendMethodDialogComponent.prototype.showClass = function () {
|
|
2117
2411
|
return true;
|
|
2118
2412
|
};
|
|
2413
|
+
SendMethodDialogComponent.prototype.ngAfterViewInit = function () {
|
|
2414
|
+
this.getPrintTemplates();
|
|
2415
|
+
};
|
|
2119
2416
|
SendMethodDialogComponent.prototype.getPrinters = function () {
|
|
2120
2417
|
return __awaiter(this, void 0, void 0, function () {
|
|
2121
2418
|
var _this = this;
|
|
@@ -2146,20 +2443,23 @@
|
|
|
2146
2443
|
this.headerTitle = 'Verzendopties';
|
|
2147
2444
|
}
|
|
2148
2445
|
};
|
|
2149
|
-
SendMethodDialogComponent.prototype.loadLayouts = function () {
|
|
2150
|
-
var printJob$1 = new printJob.PrintJob();
|
|
2151
|
-
// this.printLayouts = this._stockService.getPrintTemplates(printJob);
|
|
2152
|
-
};
|
|
2153
2446
|
SendMethodDialogComponent.prototype.onPrinterClicked = function (printer) {
|
|
2154
2447
|
this.defaultPrinter = printer.name;
|
|
2155
2448
|
this.showPrinterSelections = !this.showPrinterSelections;
|
|
2156
2449
|
};
|
|
2450
|
+
SendMethodDialogComponent.prototype.getPrintTemplates = function () {
|
|
2451
|
+
var _this = this;
|
|
2452
|
+
var data = new stockStickersPrintLayouts_bo.StockStickersPrintLayoutsBo();
|
|
2453
|
+
this._stockService.getStockStickerTemplates(data).then(function (templates) {
|
|
2454
|
+
_this.printTemplates = templates;
|
|
2455
|
+
});
|
|
2456
|
+
};
|
|
2157
2457
|
return SendMethodDialogComponent;
|
|
2158
2458
|
}());
|
|
2159
2459
|
SendMethodDialogComponent.decorators = [
|
|
2160
2460
|
{ type: i0.Component, args: [{
|
|
2161
2461
|
selector: "ione-send-method-dialog",
|
|
2162
|
-
template: "\n <div class=\"send-method-dialog-wrapper\">\n <co-dialog-wizard id=\"sendOptionsDialog\" *ngIf=\"showDialog\" [showCloseIcon]=\"showExitButton\" (closeClick)=\"closeDialogClick()\">\n <ng-container header>\n <span [textContent]=\"headerTitle\"></span>\n </ng-container>\n <div class=\"dialog-content-wrapper\">\n <div class=\"main-content-container\" *ngIf=\"!showPrinterSelections\">\n <div class=\"send-options-wrapper\">\n <div class=\"custom-button-wrapper\" *ngFor=\"let sendOption of sendOptions\"\n [class.selected-option]=\"sendOption.option === activeSendOption\"\n (click)=\"activeSendOption = sendOption.option\">\n <co-icon [iconData]=\"iconCacheService.getIcon(sendOption.iconName)\"></co-icon>\n </div>\n </div>\n\n <div class=\"email-option-content\" *ngIf=\"activeSendOption === sendOption.Email || activeSendOption === sendOption.Pdf\">\n <div class=\"emails-container\" *ngIf=\"activeSendOption === sendOption.Email\">\n <co-input-checkbox\n *ngFor=\"let email, let index of emails\"\n [name]=\"email\"\n [(model)]=\"models[index]\"\n [label]=\"email\"\n [cssClass]=\"'input-checkbox-wrapper'\"\n ></co-input-checkbox>\n </div>\n\n <div class=\"lov-wrapper\">\n <co-input-combo-box\n [(model)]=\"selectedLayout\"\n [collection]=\"layouts\"\n [forceReadonly]=\"true\"\n placeholder=\"Layout\"\n ></co-input-combo-box>\n </div>\n\n <div class=\"signature-button-wrapper\">\n <div class=\"custom-button-wrapper signature-button\" (click)=\"handleSignatureStart()\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.SignatureField)\"></co-icon>\n </div>\n </div>\n </div>\n\n <div class=\"email-option-content\" *ngIf=\"activeSendOption === sendOption.Print\">\n <div class=\"lov-wrapper\">\n <co-input-combo-box\n [(model)]=\"selectedLayout\"\n [collection]=\"
|
|
2462
|
+
template: "\n <div class=\"send-method-dialog-wrapper\">\n <co-dialog-wizard id=\"sendOptionsDialog\" *ngIf=\"showDialog\" [showCloseIcon]=\"showExitButton\" (closeClick)=\"closeDialogClick()\">\n <ng-container header>\n <span [textContent]=\"headerTitle\"></span>\n </ng-container>\n <div class=\"dialog-content-wrapper\">\n <div class=\"main-content-container\" *ngIf=\"!showPrinterSelections\">\n <div class=\"send-options-wrapper\">\n <div class=\"custom-button-wrapper\" *ngFor=\"let sendOption of sendOptions\"\n [class.selected-option]=\"sendOption.option === activeSendOption\"\n (click)=\"activeSendOption = sendOption.option\">\n <co-icon [iconData]=\"iconCacheService.getIcon(sendOption.iconName)\"></co-icon>\n </div>\n </div>\n\n <div class=\"email-option-content\" *ngIf=\"activeSendOption === sendOption.Email || activeSendOption === sendOption.Pdf\">\n <div class=\"emails-container\" *ngIf=\"activeSendOption === sendOption.Email\">\n <co-input-checkbox\n *ngFor=\"let email, let index of emails\"\n [name]=\"email\"\n [(model)]=\"models[index]\"\n [label]=\"email\"\n [cssClass]=\"'input-checkbox-wrapper'\"\n ></co-input-checkbox>\n </div>\n\n <div class=\"lov-wrapper\">\n <co-input-combo-box\n [(model)]=\"selectedLayout\"\n [collection]=\"layouts\"\n [forceReadonly]=\"true\"\n placeholder=\"Layout\"\n ></co-input-combo-box>\n </div>\n\n <div class=\"signature-button-wrapper\">\n <div class=\"custom-button-wrapper signature-button\" (click)=\"handleSignatureStart()\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.SignatureField)\"></co-icon>\n </div>\n </div>\n </div>\n\n <div class=\"email-option-content\" *ngIf=\"activeSendOption === sendOption.Print\">\n <div class=\"lov-wrapper\">\n <co-input-combo-box\n [(model)]=\"selectedLayout\"\n [collection]=\"printTemplates\"\n [fields]=\"printTemplatesField\"\n [forceReadonly]=\"true\"\n placeholder=\"Layout\"\n ></co-input-combo-box>\n </div>\n\n <div class=\"lov-wrapper clickable\" (click)=\"togglePrinterSelection()\">\n <div class=\"selected-printer-wrapper\">\n <div class=\"printer-option-list-item\">\n <co-icon class=\"printer-icon\" [iconData]=\"iconCacheService.getIcon(icons.Print)\"></co-icon>\n <div class=\"printer-details\" *ngIf=\"printerList\">\n <span class=\"printer-name\" [textContent]=\"defaultPrinter\"></span>\n <span class=\"printer-status\" [textContent]=\"defaultPrinter.acceptingJobs\"></span>\n </div>\n </div>\n <co-icon class=\"select-printer-arrow\" [iconData]=\"iconCacheService.getIcon(icons.ArrowPointRight)\"></co-icon>\n </div>\n </div>\n\n <div class=\"standard-printer-wrapper\">\n <div class=\"standard-printer-link\" (click)=\"showStandardPrinterOptions = !showStandardPrinterOptions\">\n <co-icon class=\"arrow-icon\" [iconData]=\"iconCacheService.getIcon(icons.ArrowFatRight)\"></co-icon>\n <span class=\"standard-printer-message\" [textContent]=\"'Standaard printer voor lay-out instellen'\"></span>\n </div>\n\n <div class=\"standard-printer-selections\" *ngIf=\"showStandardPrinterOptions\">\n <co-input-checkbox\n [(model)]=\"models[0]\"\n [label]=\"'Per gebruiker instellen'\"\n [cssClass]=\"'input-checkbox-wrapper'\"\n ></co-input-checkbox>\n <co-input-checkbox\n [(model)]=\"models[1]\"\n [label]=\"'Voor alle gebruikers instellen'\"\n [cssClass]=\"'input-checkbox-wrapper'\"\n ></co-input-checkbox>\n </div>\n </div>\n\n <div class=\"print-footer-wrapper\">\n <div class=\"input-number-wrapper\">\n <co-input-number-picker class=\"number-picker\"\n [step]=\"1\" [(model)]=\"amountToPrint\" [min]=\"1\"\n [ngModelOptions]=\"{debounce: 1}\">\n </co-input-number-picker>\n </div>\n <div class=\"custom-button-wrapper print-button\" (click)=\"handlePrintClicked()\">\n <span [textContent]=\"'Print'\"></span>\n </div>\n <div class=\"custom-button-wrapper signature-button\" (click)=\"handleSignatureStart()\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.SignatureField)\"></co-icon>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"printer-content-container\" @slideInOut *ngIf=\"showPrinterSelections\">\n <div class=\"selected-printer-wrapper selection clickable\" *ngFor=\"let printers of printerList\" (click)=\"onPrinterClicked(printers)\">\n <div class=\"printer-option-list-item\">\n <co-icon class=\"printer-icon\" [iconData]=\"iconCacheService.getIcon(icons.Print)\"></co-icon>\n <div class=\"printer-details\">\n <span class=\"printer-name\" [textContent]=\"printers.name\"></span>\n <span class=\"printer-status\" [textContent]=\"printers.acceptingJobs\"></span>\n </div>\n </div>\n <co-icon class=\"select-printer-arrow\" *ngIf=\"!showPrinterSelections\"\n [iconData]=\"iconCacheService.getIcon(icons.ArrowPointRight)\"></co-icon>\n </div>\n </div>\n </div>\n </co-dialog-wizard>\n </div>\n ",
|
|
2163
2463
|
encapsulation: i0.ViewEncapsulation.None,
|
|
2164
2464
|
animations: [
|
|
2165
2465
|
animations.trigger('slideInOut', [
|
|
@@ -2209,6 +2509,57 @@
|
|
|
2209
2509
|
},] }
|
|
2210
2510
|
];
|
|
2211
2511
|
|
|
2512
|
+
var StockChangeAmountComponent = /** @class */ (function () {
|
|
2513
|
+
function StockChangeAmountComponent(_stockService) {
|
|
2514
|
+
this._stockService = _stockService;
|
|
2515
|
+
this.closeStockChangeAmount = new i0.EventEmitter();
|
|
2516
|
+
this.stockState = [];
|
|
2517
|
+
this.stockStateDropdownField = { text: "stateDescription", value: "stockStateId" };
|
|
2518
|
+
}
|
|
2519
|
+
StockChangeAmountComponent.prototype.ngAfterViewInit = function () {
|
|
2520
|
+
this.getStockState();
|
|
2521
|
+
};
|
|
2522
|
+
StockChangeAmountComponent.prototype.closeDialogClick = function () {
|
|
2523
|
+
this.closeStockChangeAmount.emit();
|
|
2524
|
+
};
|
|
2525
|
+
StockChangeAmountComponent.prototype.handleOkClick = function (data) {
|
|
2526
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2527
|
+
return __generator(this, function (_a) {
|
|
2528
|
+
switch (_a.label) {
|
|
2529
|
+
case 0: return [4 /*yield*/, this._stockService.updateArticleDetails(data)];
|
|
2530
|
+
case 1:
|
|
2531
|
+
_a.sent();
|
|
2532
|
+
return [2 /*return*/];
|
|
2533
|
+
}
|
|
2534
|
+
});
|
|
2535
|
+
});
|
|
2536
|
+
};
|
|
2537
|
+
StockChangeAmountComponent.prototype.handleCancelClick = function () {
|
|
2538
|
+
this.closeStockChangeAmount.emit();
|
|
2539
|
+
};
|
|
2540
|
+
StockChangeAmountComponent.prototype.getStockState = function () {
|
|
2541
|
+
var _this = this;
|
|
2542
|
+
this._stockService.getStockState().then(function (state) {
|
|
2543
|
+
_this.stockState = state;
|
|
2544
|
+
});
|
|
2545
|
+
};
|
|
2546
|
+
return StockChangeAmountComponent;
|
|
2547
|
+
}());
|
|
2548
|
+
StockChangeAmountComponent.decorators = [
|
|
2549
|
+
{ type: i0.Component, args: [{
|
|
2550
|
+
selector: "co-stock-change-amount",
|
|
2551
|
+
template: "\n <div class=\"stock-transfer\">\n <co-dialog-wizard [showCloseIcon]=\"true\" (closeClick)=\"closeDialogClick()\">\n <ng-container header>\n <span [textContent]=\"'STOCK_CHANGE_REASON'\"></span>\n </ng-container>\n <div class=\"popup-wrapper\">\n <co-drop-down-list [collection]=\"stockState\"\n [fields]=\"stockStateDropdownField\"\n [placeholder]=\"'STOCK_STATE'\"\n [(model)]=\"selectedArticleDetailsData.stockStateId\"\n ></co-drop-down-list>\n\n <co-input-textarea [(model)]=\"selectedArticleDetailsData.stockStateRemark\"\n\n ></co-input-textarea>\n <div class=\"ok-cancel-buttons\">\n <co-button [textContent]=\"'Ok'\" (click)=\"handleOkClick(selectedArticleDetailsData)\"></co-button>\n <co-button [textContent]=\"'Annuleren'\" (click)=\"handleCancelClick()\"></co-button>\n </div>\n </div>\n </co-dialog-wizard>\n </div>\n ",
|
|
2552
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
2553
|
+
},] }
|
|
2554
|
+
];
|
|
2555
|
+
StockChangeAmountComponent.ctorParameters = function () { return [
|
|
2556
|
+
{ type: StockService }
|
|
2557
|
+
]; };
|
|
2558
|
+
StockChangeAmountComponent.propDecorators = {
|
|
2559
|
+
selectedArticleDetailsData: [{ type: i0.Input }],
|
|
2560
|
+
closeStockChangeAmount: [{ type: i0.Output }]
|
|
2561
|
+
};
|
|
2562
|
+
|
|
2212
2563
|
var StockModule = /** @class */ (function () {
|
|
2213
2564
|
function StockModule() {
|
|
2214
2565
|
}
|
|
@@ -2227,14 +2578,18 @@
|
|
|
2227
2578
|
corecomponents_v12.ImageModule,
|
|
2228
2579
|
corecomponents_v12.InputTextModule,
|
|
2229
2580
|
SendMethodDialogModule,
|
|
2230
|
-
corecomponents_v12.IconModule
|
|
2581
|
+
corecomponents_v12.IconModule,
|
|
2582
|
+
corecomponents_v12.InputNumberPickerModule,
|
|
2583
|
+
corecomponents_v12.CoDialogWizardModule,
|
|
2584
|
+
corecomponents_v12.InputTextareaModule
|
|
2231
2585
|
],
|
|
2232
2586
|
declarations: [
|
|
2233
2587
|
StockComponent,
|
|
2234
2588
|
StockInformationComponent,
|
|
2235
2589
|
StockInformationGridComponent,
|
|
2236
2590
|
StockLocationComponent,
|
|
2237
|
-
StockTransferComponent
|
|
2591
|
+
StockTransferComponent,
|
|
2592
|
+
StockChangeAmountComponent
|
|
2238
2593
|
],
|
|
2239
2594
|
exports: [
|
|
2240
2595
|
StockComponent
|
|
@@ -2269,6 +2624,7 @@
|
|
|
2269
2624
|
exports["ɵg"] = StockInformationGridComponent;
|
|
2270
2625
|
exports["ɵh"] = StockLocationComponent;
|
|
2271
2626
|
exports["ɵi"] = StockTransferComponent;
|
|
2627
|
+
exports["ɵj"] = StockChangeAmountComponent;
|
|
2272
2628
|
|
|
2273
2629
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2274
2630
|
|