@colijnit/sharedcomponents 1.0.19 → 1.0.21
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 +567 -120
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.d.ts +9 -7
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/colijnit-sharedcomponents.js +10 -8
- package/esm2015/lib/assets/dictionary/text.properties.js +11 -0
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +125 -31
- package/esm2015/lib/components/stock/stock-information/stock-information.component.js +1 -1
- package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +36 -30
- package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +1 -1
- package/esm2015/lib/components/stock/stock.component.js +18 -5
- package/esm2015/lib/components/stock/stock.module.js +3 -3
- package/esm2015/lib/enum/icon.enum.js +1 -1
- package/esm2015/lib/enum/language-code.enum.js +8 -0
- package/esm2015/lib/model/icon-svg.js +1 -1
- package/esm2015/lib/service/dictionary.service.js +76 -0
- package/esm2015/lib/service/options.service.js +71 -0
- package/esm2015/lib/service/shared-connector.service.js +279 -0
- package/esm2015/lib/service/shared.service.js +30 -0
- package/esm2015/lib/service/stock.service.js +44 -30
- package/esm2015/lib/utils/string-utils.js +64 -0
- package/esm2015/public-api.js +2 -1
- package/fesm2015/colijnit-sharedcomponents.js +503 -115
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/assets/dictionary/text.properties.d.ts +3 -0
- package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +29 -9
- package/lib/components/send-method-dialog/style/_layout.scss +5 -0
- package/lib/components/stock/stock-information/stock-information.component.d.ts +1 -1
- package/lib/components/stock/stock-information-grid/stock-information-grid.component.d.ts +6 -6
- package/lib/components/stock/stock-transfer/stock-transfer.component.d.ts +1 -1
- package/lib/components/stock/stock.component.d.ts +6 -2
- package/lib/components/stock/style/_layout.scss +6 -0
- package/lib/enum/language-code.enum.d.ts +6 -0
- package/lib/service/dictionary.service.d.ts +21 -0
- package/lib/service/options.service.d.ts +13 -0
- package/lib/service/{ione-connector-adapter.service.d.ts → shared-connector.service.d.ts} +13 -9
- package/lib/service/shared.service.d.ts +8 -0
- package/lib/service/stock.service.d.ts +14 -10
- package/lib/utils/string-utils.d.ts +22 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/3rdpartylicenses.txt +0 -1116
- package/esm2015/lib/service/ione-connector-adapter.service.js +0 -251
- package/favicon.ico +0 -0
- package/index.html +0 -12
- package/main.5240c1941fea0abc7a9c.js +0 -1
- package/polyfills.4a44032b137d291298c3.js +0 -1
- package/runtime.f2046bab7c02026dc21f.js +0 -1
- package/styles.b3b98643e0f0f94bdd12.css +0 -110
|
@@ -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.
|
|
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,
|
|
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/sharedapi/build/model/print-stock-stickers'), 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/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/article-transaction.bo'), require('rxjs'), require('@colijnit/sharedapi/build/model/print-price-stickers.bo'), 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'), require('@colijnit/articleapi/build/model/article-transaction')) :
|
|
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/sharedapi/build/model/print-stock-stickers', '@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/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/article-transaction.bo', 'rxjs', '@colijnit/sharedapi/build/model/print-price-stickers.bo', '@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', '@colijnit/articleapi/build/model/article-transaction'], 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.printStockStickers, 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.articleStock_bo, global.stockHistory_bo, global.stockStickersPrintLayouts_bo, global.articleDetails_bo, global.stockStatus_bo, global.stockManagementWarehouses_bo, global.stockLocation_bo, global.articleTransaction_bo, global.rxjs, global.printPriceStickers_bo, global.getStockHistoryRequest, global.articleStock, global.corecomponents_v12, global.ng.platformBrowser, global.articleStockManagement, global.articleTransaction));
|
|
5
|
+
})(this, (function (exports, i0, animations, pdfLib, PDFJS, pdfjsWorker, common, SignaturePad, printStockStickers, 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, articleStock_bo, stockHistory_bo, stockStickersPrintLayouts_bo, articleDetails_bo, stockStatus_bo, stockManagementWarehouses_bo, stockLocation_bo, articleTransaction_bo, rxjs, printPriceStickers_bo, getStockHistoryRequest, articleStock, corecomponents_v12, i1, articleStockManagement, articleTransaction) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -1408,32 +1408,284 @@
|
|
|
1408
1408
|
return BusinessObjectFactory;
|
|
1409
1409
|
}());
|
|
1410
1410
|
|
|
1411
|
-
var
|
|
1412
|
-
|
|
1413
|
-
|
|
1411
|
+
var LanguageCode;
|
|
1412
|
+
(function (LanguageCode) {
|
|
1413
|
+
LanguageCode["Dutch"] = "nl-NL";
|
|
1414
|
+
LanguageCode["English"] = "en-GB";
|
|
1415
|
+
LanguageCode["German"] = "de-DE";
|
|
1416
|
+
LanguageCode["French"] = "fr-FR";
|
|
1417
|
+
})(LanguageCode || (LanguageCode = {}));
|
|
1418
|
+
|
|
1419
|
+
// Static utility functions holder related to strings.
|
|
1420
|
+
var StringUtils = /** @class */ (function () {
|
|
1421
|
+
function StringUtils() {
|
|
1422
|
+
}
|
|
1423
|
+
/**
|
|
1424
|
+
* Returns a new string where given placeholder in given source string are replaced by given replacement texts.
|
|
1425
|
+
*
|
|
1426
|
+
* Example usage:
|
|
1427
|
+
*
|
|
1428
|
+
* source = "ABCDABCD"
|
|
1429
|
+
* placeholder = "BC"
|
|
1430
|
+
* replacementTexts = "Z", "Z" (REST arguments)
|
|
1431
|
+
* OUTPUT = "AZDAZD"
|
|
1432
|
+
*
|
|
1433
|
+
* @param {string} source
|
|
1434
|
+
* @param {string} placeholder
|
|
1435
|
+
* @param {string} replacementTexts If only one is given, this function replaces all placeholders with that single replacementText.
|
|
1436
|
+
* If more are given, placeholders without a corresponding replacementText will remain their original placeholder characters.
|
|
1437
|
+
*/
|
|
1438
|
+
StringUtils.ReplaceOccurrencesIn = function (source, placeholder) {
|
|
1439
|
+
var replacementTexts = [];
|
|
1440
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1441
|
+
replacementTexts[_i - 2] = arguments[_i];
|
|
1442
|
+
}
|
|
1443
|
+
// parameter guards
|
|
1444
|
+
if (!(source)) {
|
|
1445
|
+
return undefined;
|
|
1446
|
+
}
|
|
1447
|
+
if (!placeholder || replacementTexts.length === 0) {
|
|
1448
|
+
return source;
|
|
1449
|
+
}
|
|
1450
|
+
var outString = source;
|
|
1451
|
+
// one replacementText means replace for all
|
|
1452
|
+
if (replacementTexts.length === 1) {
|
|
1453
|
+
// "g" is the g flag to replace globally
|
|
1454
|
+
outString = outString.replace(placeholder, replacementTexts[0]);
|
|
1455
|
+
}
|
|
1456
|
+
else {
|
|
1457
|
+
// replace occurence i by replacementTexts[i], one at a time in loop (there might be a faster way..)
|
|
1458
|
+
for (var i = 0, len = replacementTexts.length; i < len; i++) {
|
|
1459
|
+
outString = outString.replace(placeholder, replacementTexts[i]);
|
|
1460
|
+
}
|
|
1461
|
+
}
|
|
1462
|
+
return outString;
|
|
1463
|
+
};
|
|
1464
|
+
// Returns the given argument as a string. Returns given defaultValue if conversion of argument to string was impossible.
|
|
1465
|
+
StringUtils.ParseString = function (arg, defaultValue) {
|
|
1466
|
+
if (defaultValue === void 0) { defaultValue = ""; }
|
|
1467
|
+
if (!StringUtils.IsString(arg)) {
|
|
1468
|
+
if (arg && typeof arg.toString === "function") {
|
|
1469
|
+
arg = arg.toString();
|
|
1470
|
+
}
|
|
1471
|
+
else {
|
|
1472
|
+
arg = defaultValue;
|
|
1473
|
+
}
|
|
1474
|
+
}
|
|
1475
|
+
return arg;
|
|
1476
|
+
};
|
|
1477
|
+
StringUtils.IsString = function (str) {
|
|
1478
|
+
return typeof str === 'string';
|
|
1479
|
+
};
|
|
1480
|
+
// Returns whether given str is a string and has a length > 0.
|
|
1481
|
+
StringUtils.IsStringWithLength = function (str) {
|
|
1482
|
+
return str && StringUtils.IsString(str) && str.length > 0;
|
|
1483
|
+
};
|
|
1484
|
+
// Returns given string, escaped for use as string literal in regular expressions.
|
|
1485
|
+
StringUtils._escapeRegExp = function (str) {
|
|
1486
|
+
return str; // .replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^$\|]/g, "\\$&");
|
|
1487
|
+
};
|
|
1488
|
+
return StringUtils;
|
|
1489
|
+
}());
|
|
1490
|
+
|
|
1491
|
+
var Dictionary = /** @class */ (function () {
|
|
1492
|
+
function Dictionary() {
|
|
1493
|
+
this.strings = {
|
|
1494
|
+
"nl": {},
|
|
1495
|
+
"de": {},
|
|
1496
|
+
"fr": {},
|
|
1497
|
+
"en": {},
|
|
1498
|
+
};
|
|
1414
1499
|
}
|
|
1415
|
-
|
|
1500
|
+
return Dictionary;
|
|
1501
|
+
}());
|
|
1502
|
+
|
|
1503
|
+
// The localization service, providing peers with text translation functionality.
|
|
1504
|
+
var DictionaryService = /** @class */ (function () {
|
|
1505
|
+
function DictionaryService() {
|
|
1506
|
+
this.dictionaryUrl = "js/browser/res/dictionary/";
|
|
1507
|
+
// private _dictionaryPromise: Map<LanguageCode, Promise<{ [key: string]: string }>> = new Map<LanguageCode, Promise<{ [key: string]: string }>>();
|
|
1508
|
+
this._dictionaries = new Map();
|
|
1509
|
+
// Some dictionary values have one or more '|~' texts in them, meant to be replaced with client-side given texts.
|
|
1510
|
+
this._placeholder = "|~";
|
|
1511
|
+
}
|
|
1512
|
+
Object.defineProperty(DictionaryService.prototype, "language", {
|
|
1513
|
+
get: function () {
|
|
1514
|
+
return this._language;
|
|
1515
|
+
},
|
|
1516
|
+
enumerable: false,
|
|
1517
|
+
configurable: true
|
|
1518
|
+
});
|
|
1519
|
+
Object.defineProperty(DictionaryService.prototype, "rootUrl", {
|
|
1520
|
+
set: function (value) {
|
|
1521
|
+
this._rootUrl = value;
|
|
1522
|
+
this._dictBasePath = this._rootUrl + "/" + this.dictionaryUrl;
|
|
1523
|
+
},
|
|
1524
|
+
enumerable: false,
|
|
1525
|
+
configurable: true
|
|
1526
|
+
});
|
|
1527
|
+
// Loads the dictionary for given language in memory.
|
|
1528
|
+
DictionaryService.prototype.setDictionary = function (language) {
|
|
1416
1529
|
return __awaiter(this, void 0, void 0, function () {
|
|
1417
1530
|
return __generator(this, function (_a) {
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1531
|
+
this._language = language || LanguageCode.Dutch;
|
|
1532
|
+
this._loadDictionary();
|
|
1533
|
+
return [2 /*return*/];
|
|
1534
|
+
});
|
|
1535
|
+
});
|
|
1536
|
+
};
|
|
1537
|
+
DictionaryService.prototype._loadDictionary = function () {
|
|
1538
|
+
if (!this._dictionaries.has(this._language)) {
|
|
1539
|
+
var dictionary = new Dictionary();
|
|
1540
|
+
// eslint-disable-next-line no-magic-numbers
|
|
1541
|
+
if (dictionary.strings[this._language.substr(0, 2).toLowerCase()] !== undefined) {
|
|
1542
|
+
// eslint-disable-next-line no-magic-numbers
|
|
1543
|
+
this._dictionaries.set(this._language, dictionary.strings[this._language.substr(0, 2).toLowerCase()]);
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
};
|
|
1547
|
+
/**
|
|
1548
|
+
* Returns the localized text for the given dictionary key.
|
|
1549
|
+
* @param {string} key
|
|
1550
|
+
* @param {boolean} [upperCaseFirst = true] False for first letter lowercase, true for first letter uppercase for returned dict val
|
|
1551
|
+
* @param {string[]} replacementTexts Rest params for replacement of '|~' in returned dict value
|
|
1552
|
+
* @returns {string} The translated text for given dictionary key
|
|
1553
|
+
*/
|
|
1554
|
+
DictionaryService.prototype.get = function (key, upperCaseFirst) {
|
|
1555
|
+
if (upperCaseFirst === void 0) { upperCaseFirst = true; }
|
|
1556
|
+
var replacementTexts = [];
|
|
1557
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1558
|
+
replacementTexts[_i - 2] = arguments[_i];
|
|
1559
|
+
}
|
|
1560
|
+
if (!StringUtils.IsStringWithLength(key)) {
|
|
1561
|
+
return key || "";
|
|
1562
|
+
}
|
|
1563
|
+
if (this.language === undefined) {
|
|
1564
|
+
this._language = LanguageCode.Dutch;
|
|
1565
|
+
this._loadDictionary();
|
|
1566
|
+
}
|
|
1567
|
+
var text = this._dictionaries.get(this.language)[key];
|
|
1568
|
+
text = StringUtils.IsStringWithLength(text) ? text : key;
|
|
1569
|
+
if (upperCaseFirst) {
|
|
1570
|
+
text = text.charAt(0).toUpperCase() + text.slice(1);
|
|
1571
|
+
}
|
|
1572
|
+
else {
|
|
1573
|
+
text = text.charAt(0).toLowerCase() + text.slice(1);
|
|
1574
|
+
}
|
|
1575
|
+
if (replacementTexts.length > 0) {
|
|
1576
|
+
text = StringUtils.ReplaceOccurrencesIn.apply(StringUtils, __spreadArray([text, this._placeholder], __read(replacementTexts)));
|
|
1577
|
+
}
|
|
1578
|
+
return text;
|
|
1579
|
+
};
|
|
1580
|
+
return DictionaryService;
|
|
1581
|
+
}());
|
|
1582
|
+
DictionaryService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DictionaryService_Factory() { return new DictionaryService(); }, token: DictionaryService, providedIn: "root" });
|
|
1583
|
+
DictionaryService.decorators = [
|
|
1584
|
+
{ type: i0.Injectable, args: [{
|
|
1585
|
+
providedIn: "root"
|
|
1586
|
+
},] }
|
|
1587
|
+
];
|
|
1588
|
+
DictionaryService.ctorParameters = function () { return []; };
|
|
1589
|
+
|
|
1590
|
+
var OptionsService = /** @class */ (function () {
|
|
1591
|
+
function OptionsService(_dictionary) {
|
|
1592
|
+
this._dictionary = _dictionary;
|
|
1593
|
+
this.optionsInitialized = new rxjs.BehaviorSubject(false);
|
|
1594
|
+
this.optionsLoaded = new rxjs.BehaviorSubject(false);
|
|
1595
|
+
}
|
|
1596
|
+
Object.defineProperty(OptionsService.prototype, "options", {
|
|
1597
|
+
get: function () {
|
|
1598
|
+
return this._options;
|
|
1599
|
+
},
|
|
1600
|
+
set: function (value) {
|
|
1601
|
+
this._options = value;
|
|
1602
|
+
},
|
|
1603
|
+
enumerable: false,
|
|
1604
|
+
configurable: true
|
|
1605
|
+
});
|
|
1606
|
+
OptionsService.prototype.createSettingsFromObject = function (obj) {
|
|
1607
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1608
|
+
return __generator(this, function (_a) {
|
|
1609
|
+
this.options = new Object();
|
|
1610
|
+
if (obj.hasOwnProperty("url")) {
|
|
1611
|
+
this.options.url = obj["url"];
|
|
1612
|
+
}
|
|
1613
|
+
if (obj.hasOwnProperty("schema")) {
|
|
1614
|
+
this.options.schema = obj["schema"];
|
|
1615
|
+
}
|
|
1616
|
+
if (obj.hasOwnProperty("version")) {
|
|
1617
|
+
this.options.version = obj["version"];
|
|
1618
|
+
}
|
|
1619
|
+
if (obj.hasOwnProperty("languageCode")) {
|
|
1620
|
+
this.options.languageCode = obj["languageCode"];
|
|
1621
|
+
}
|
|
1622
|
+
else {
|
|
1623
|
+
this.options.languageCode = "NL";
|
|
1624
|
+
}
|
|
1625
|
+
if (obj.hasOwnProperty("username")) {
|
|
1626
|
+
this.options.username = obj["username"];
|
|
1423
1627
|
}
|
|
1628
|
+
if (obj.hasOwnProperty("password")) {
|
|
1629
|
+
this.options.password = obj["password"];
|
|
1630
|
+
}
|
|
1631
|
+
if (obj.hasOwnProperty("session")) {
|
|
1632
|
+
this.options.session = obj["session"];
|
|
1633
|
+
}
|
|
1634
|
+
if (obj.hasOwnProperty("useLoginEncryption")) {
|
|
1635
|
+
this.options.useLoginEncryption = obj["useLoginEncryption"];
|
|
1636
|
+
}
|
|
1637
|
+
this.optionsLoaded.next(true);
|
|
1424
1638
|
return [2 /*return*/];
|
|
1425
1639
|
});
|
|
1426
1640
|
});
|
|
1427
1641
|
};
|
|
1428
|
-
|
|
1642
|
+
OptionsService.prototype.initialize = function (options) {
|
|
1643
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1644
|
+
return __generator(this, function (_a) {
|
|
1645
|
+
switch (_a.label) {
|
|
1646
|
+
case 0:
|
|
1647
|
+
if (!options) return [3 /*break*/, 3];
|
|
1648
|
+
return [4 /*yield*/, this.createSettingsFromObject(options)];
|
|
1649
|
+
case 1:
|
|
1650
|
+
_a.sent();
|
|
1651
|
+
return [4 /*yield*/, this._dictionary.setDictionary(this.options.languageCode)];
|
|
1652
|
+
case 2:
|
|
1653
|
+
_a.sent();
|
|
1654
|
+
this.optionsInitialized.next(true);
|
|
1655
|
+
_a.label = 3;
|
|
1656
|
+
case 3: return [2 /*return*/];
|
|
1657
|
+
}
|
|
1658
|
+
});
|
|
1659
|
+
});
|
|
1660
|
+
};
|
|
1661
|
+
return OptionsService;
|
|
1662
|
+
}());
|
|
1663
|
+
OptionsService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function OptionsService_Factory() { return new OptionsService(i0__namespace.ɵɵinject(DictionaryService)); }, token: OptionsService, providedIn: "root" });
|
|
1664
|
+
OptionsService.decorators = [
|
|
1665
|
+
{ type: i0.Injectable, args: [{
|
|
1666
|
+
providedIn: "root"
|
|
1667
|
+
},] }
|
|
1668
|
+
];
|
|
1669
|
+
OptionsService.ctorParameters = function () { return [
|
|
1670
|
+
{ type: DictionaryService }
|
|
1671
|
+
]; };
|
|
1672
|
+
|
|
1673
|
+
var SharedConnectorService = /** @class */ (function () {
|
|
1674
|
+
function SharedConnectorService(_optionsService) {
|
|
1675
|
+
this._optionsService = _optionsService;
|
|
1676
|
+
this._boFactory = new BusinessObjectFactory();
|
|
1677
|
+
}
|
|
1678
|
+
SharedConnectorService.prototype.connect = function () {
|
|
1429
1679
|
return __awaiter(this, void 0, void 0, function () {
|
|
1430
1680
|
return __generator(this, function (_a) {
|
|
1431
|
-
this.
|
|
1681
|
+
this.connector = new articles.Articles(this._optionsService.options);
|
|
1682
|
+
this.sharedConnector = new sharedapi.Sharedapi(this._optionsService.options);
|
|
1683
|
+
this._optionsService.options.session = this.connector.session && this.sharedConnector.session;
|
|
1432
1684
|
return [2 /*return*/];
|
|
1433
1685
|
});
|
|
1434
1686
|
});
|
|
1435
1687
|
};
|
|
1436
|
-
|
|
1688
|
+
SharedConnectorService.prototype.getAllPrinters = function (showAll) {
|
|
1437
1689
|
if (showAll === void 0) { showAll = true; }
|
|
1438
1690
|
return __awaiter(this, void 0, void 0, function () {
|
|
1439
1691
|
var _this = this;
|
|
@@ -1453,7 +1705,7 @@
|
|
|
1453
1705
|
});
|
|
1454
1706
|
});
|
|
1455
1707
|
};
|
|
1456
|
-
|
|
1708
|
+
SharedConnectorService.prototype.getPrintStockStickers = function (request) {
|
|
1457
1709
|
return __awaiter(this, void 0, void 0, function () {
|
|
1458
1710
|
var _this = this;
|
|
1459
1711
|
return __generator(this, function (_a) {
|
|
@@ -1472,15 +1724,15 @@
|
|
|
1472
1724
|
});
|
|
1473
1725
|
});
|
|
1474
1726
|
};
|
|
1475
|
-
|
|
1727
|
+
SharedConnectorService.prototype.getPrintPriceStickers = function (request) {
|
|
1476
1728
|
return __awaiter(this, void 0, void 0, function () {
|
|
1477
1729
|
var _this = this;
|
|
1478
1730
|
return __generator(this, function (_a) {
|
|
1479
1731
|
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1480
|
-
return _this.sharedConnector.
|
|
1732
|
+
return _this.sharedConnector.printPriceStickers(request).then(function (result) {
|
|
1481
1733
|
if (result.validationResult && result.validationResult.success) {
|
|
1482
1734
|
if (result.resultObject) {
|
|
1483
|
-
resolve(_this._boFactory.makeWithRawBackendData(
|
|
1735
|
+
resolve(_this._boFactory.makeWithRawBackendData(printPriceStickers_bo.PrintPriceStickers, result.resultObject));
|
|
1484
1736
|
}
|
|
1485
1737
|
}
|
|
1486
1738
|
else {
|
|
@@ -1491,7 +1743,20 @@
|
|
|
1491
1743
|
});
|
|
1492
1744
|
});
|
|
1493
1745
|
};
|
|
1494
|
-
|
|
1746
|
+
// public async getStockStickerPrintLayouts(stockStickersPrintLayouts: StockStickersPrintLayouts): Promise<StockStickersPrintLayouts[]> {
|
|
1747
|
+
// return new Promise((resolve: Function, reject: Function) => {
|
|
1748
|
+
// return this.sharedConnector.getStockStickerPrintLayouts(stockStickersPrintLayouts).then((result: DataServiceResponse) => {
|
|
1749
|
+
// if (result.validationResult && result.validationResult.success) {
|
|
1750
|
+
// if (result.resultObject) {
|
|
1751
|
+
// resolve(this._boFactory.makeWithRawBackendData(stockStickersPrintLayouts, result.resultObject));
|
|
1752
|
+
// }
|
|
1753
|
+
// } else {
|
|
1754
|
+
// reject(result.validationMessagesAsString);
|
|
1755
|
+
// }
|
|
1756
|
+
// })
|
|
1757
|
+
// })
|
|
1758
|
+
// }
|
|
1759
|
+
SharedConnectorService.prototype.getArticleFullObject = function (goodId) {
|
|
1495
1760
|
return __awaiter(this, void 0, void 0, function () {
|
|
1496
1761
|
var _this = this;
|
|
1497
1762
|
return __generator(this, function (_a) {
|
|
@@ -1509,7 +1774,7 @@
|
|
|
1509
1774
|
});
|
|
1510
1775
|
});
|
|
1511
1776
|
};
|
|
1512
|
-
|
|
1777
|
+
SharedConnectorService.prototype.getStockHistory = function (request) {
|
|
1513
1778
|
return __awaiter(this, void 0, void 0, function () {
|
|
1514
1779
|
var _this = this;
|
|
1515
1780
|
return __generator(this, function (_a) {
|
|
@@ -1528,7 +1793,7 @@
|
|
|
1528
1793
|
});
|
|
1529
1794
|
});
|
|
1530
1795
|
};
|
|
1531
|
-
|
|
1796
|
+
SharedConnectorService.prototype.getStockInformation = function (data) {
|
|
1532
1797
|
return __awaiter(this, void 0, void 0, function () {
|
|
1533
1798
|
var _this = this;
|
|
1534
1799
|
return __generator(this, function (_a) {
|
|
@@ -1536,7 +1801,7 @@
|
|
|
1536
1801
|
return _this.connector.getStockInformation(data).then(function (result) {
|
|
1537
1802
|
if (result.validationResult && result.validationResult.success) {
|
|
1538
1803
|
if (result.resultObjects) {
|
|
1539
|
-
resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(articleStock_bo.
|
|
1804
|
+
resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(articleStock_bo.ArticleStock, result.resultObjects));
|
|
1540
1805
|
}
|
|
1541
1806
|
}
|
|
1542
1807
|
else {
|
|
@@ -1547,7 +1812,7 @@
|
|
|
1547
1812
|
});
|
|
1548
1813
|
});
|
|
1549
1814
|
};
|
|
1550
|
-
|
|
1815
|
+
SharedConnectorService.prototype.getStockManagementWarehouses = function () {
|
|
1551
1816
|
return __awaiter(this, void 0, void 0, function () {
|
|
1552
1817
|
var _this = this;
|
|
1553
1818
|
return __generator(this, function (_a) {
|
|
@@ -1566,7 +1831,7 @@
|
|
|
1566
1831
|
});
|
|
1567
1832
|
});
|
|
1568
1833
|
};
|
|
1569
|
-
|
|
1834
|
+
SharedConnectorService.prototype.getStockManagementLocations = function (warehouseNo) {
|
|
1570
1835
|
return __awaiter(this, void 0, void 0, function () {
|
|
1571
1836
|
var _this = this;
|
|
1572
1837
|
return __generator(this, function (_a) {
|
|
@@ -1585,7 +1850,7 @@
|
|
|
1585
1850
|
});
|
|
1586
1851
|
});
|
|
1587
1852
|
};
|
|
1588
|
-
|
|
1853
|
+
SharedConnectorService.prototype.getArticleDetails = function (data) {
|
|
1589
1854
|
return __awaiter(this, void 0, void 0, function () {
|
|
1590
1855
|
var _this = this;
|
|
1591
1856
|
return __generator(this, function (_a) {
|
|
@@ -1604,7 +1869,7 @@
|
|
|
1604
1869
|
});
|
|
1605
1870
|
});
|
|
1606
1871
|
};
|
|
1607
|
-
|
|
1872
|
+
SharedConnectorService.prototype.updateArticleDetails = function (data) {
|
|
1608
1873
|
return __awaiter(this, void 0, void 0, function () {
|
|
1609
1874
|
var _this = this;
|
|
1610
1875
|
return __generator(this, function (_a) {
|
|
@@ -1630,7 +1895,7 @@
|
|
|
1630
1895
|
});
|
|
1631
1896
|
});
|
|
1632
1897
|
};
|
|
1633
|
-
|
|
1898
|
+
SharedConnectorService.prototype.lockArticleDetails = function (data) {
|
|
1634
1899
|
return __awaiter(this, void 0, void 0, function () {
|
|
1635
1900
|
var _this = this;
|
|
1636
1901
|
return __generator(this, function (_a) {
|
|
@@ -1656,7 +1921,7 @@
|
|
|
1656
1921
|
});
|
|
1657
1922
|
});
|
|
1658
1923
|
};
|
|
1659
|
-
|
|
1924
|
+
SharedConnectorService.prototype.getStockStatus = function () {
|
|
1660
1925
|
return __awaiter(this, void 0, void 0, function () {
|
|
1661
1926
|
var _this = this;
|
|
1662
1927
|
return __generator(this, function (_a) {
|
|
@@ -1675,7 +1940,7 @@
|
|
|
1675
1940
|
});
|
|
1676
1941
|
});
|
|
1677
1942
|
};
|
|
1678
|
-
|
|
1943
|
+
SharedConnectorService.prototype.getStockStickerTemplates = function (data) {
|
|
1679
1944
|
return __awaiter(this, void 0, void 0, function () {
|
|
1680
1945
|
var _this = this;
|
|
1681
1946
|
return __generator(this, function (_a) {
|
|
@@ -1683,7 +1948,7 @@
|
|
|
1683
1948
|
return _this.sharedConnector.getStockStickerPrintLayouts(data).then(function (result) {
|
|
1684
1949
|
if (result.validationResult && result.validationResult.success) {
|
|
1685
1950
|
if (result.resultObject) {
|
|
1686
|
-
resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(stockStickersPrintLayouts_bo.
|
|
1951
|
+
resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(stockStickersPrintLayouts_bo.StockStickersPrintLayouts, result.resultObject));
|
|
1687
1952
|
}
|
|
1688
1953
|
}
|
|
1689
1954
|
else {
|
|
@@ -1694,75 +1959,142 @@
|
|
|
1694
1959
|
});
|
|
1695
1960
|
});
|
|
1696
1961
|
};
|
|
1697
|
-
|
|
1962
|
+
SharedConnectorService.prototype.getArticleTransaction = function (data) {
|
|
1963
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1964
|
+
var _this = this;
|
|
1965
|
+
return __generator(this, function (_a) {
|
|
1966
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1967
|
+
return _this.connector.getArticleTransaction(data).then(function (result) {
|
|
1968
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1969
|
+
if (result.resultObjects) {
|
|
1970
|
+
resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(articleTransaction_bo.ArticleTransaction, result.resultObjects));
|
|
1971
|
+
}
|
|
1972
|
+
}
|
|
1973
|
+
else {
|
|
1974
|
+
reject(result.validationMessagesAsString);
|
|
1975
|
+
}
|
|
1976
|
+
});
|
|
1977
|
+
})];
|
|
1978
|
+
});
|
|
1979
|
+
});
|
|
1980
|
+
};
|
|
1981
|
+
SharedConnectorService.prototype.commit = function () {
|
|
1698
1982
|
return this.connector.commit();
|
|
1699
1983
|
};
|
|
1700
|
-
return
|
|
1984
|
+
return SharedConnectorService;
|
|
1701
1985
|
}());
|
|
1702
|
-
|
|
1703
|
-
|
|
1986
|
+
SharedConnectorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function SharedConnectorService_Factory() { return new SharedConnectorService(i0__namespace.ɵɵinject(OptionsService)); }, token: SharedConnectorService, providedIn: "root" });
|
|
1987
|
+
SharedConnectorService.decorators = [
|
|
1704
1988
|
{ type: i0.Injectable, args: [{
|
|
1705
1989
|
providedIn: "root"
|
|
1706
1990
|
},] }
|
|
1707
1991
|
];
|
|
1708
|
-
|
|
1992
|
+
SharedConnectorService.ctorParameters = function () { return [
|
|
1993
|
+
{ type: OptionsService }
|
|
1994
|
+
]; };
|
|
1709
1995
|
|
|
1710
|
-
var
|
|
1711
|
-
function
|
|
1712
|
-
this.
|
|
1996
|
+
var SharedService = /** @class */ (function () {
|
|
1997
|
+
function SharedService(options, connector) {
|
|
1998
|
+
this.options = options;
|
|
1999
|
+
this.connector = connector;
|
|
1713
2000
|
}
|
|
1714
|
-
|
|
1715
|
-
this
|
|
2001
|
+
SharedService.prototype.init = function (options) {
|
|
2002
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2003
|
+
return __generator(this, function (_a) {
|
|
2004
|
+
switch (_a.label) {
|
|
2005
|
+
case 0: return [4 /*yield*/, this.options.initialize(options)];
|
|
2006
|
+
case 1:
|
|
2007
|
+
_a.sent();
|
|
2008
|
+
this.connector.connect();
|
|
2009
|
+
return [2 /*return*/];
|
|
2010
|
+
}
|
|
2011
|
+
});
|
|
2012
|
+
});
|
|
1716
2013
|
};
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
2014
|
+
return SharedService;
|
|
2015
|
+
}());
|
|
2016
|
+
SharedService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function SharedService_Factory() { return new SharedService(i0__namespace.ɵɵinject(OptionsService), i0__namespace.ɵɵinject(SharedConnectorService)); }, token: SharedService, providedIn: "root" });
|
|
2017
|
+
SharedService.decorators = [
|
|
2018
|
+
{ type: i0.Injectable, args: [{
|
|
2019
|
+
providedIn: "root"
|
|
2020
|
+
},] }
|
|
2021
|
+
];
|
|
2022
|
+
SharedService.ctorParameters = function () { return [
|
|
2023
|
+
{ type: OptionsService },
|
|
2024
|
+
{ type: SharedConnectorService }
|
|
2025
|
+
]; };
|
|
2026
|
+
|
|
2027
|
+
var StockService = /** @class */ (function (_super) {
|
|
2028
|
+
__extends(StockService, _super);
|
|
2029
|
+
function StockService() {
|
|
2030
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
2031
|
+
_this.printSticker = new printStockStickers.PrintStockStickers();
|
|
2032
|
+
_this.printPriceSticker = new printPriceStickers_bo.PrintPriceStickers();
|
|
2033
|
+
return _this;
|
|
2034
|
+
}
|
|
2035
|
+
StockService.prototype.getPrintStockStickers = function (data) {
|
|
1722
2036
|
return __awaiter(this, void 0, void 0, function () {
|
|
1723
2037
|
return __generator(this, function (_a) {
|
|
1724
2038
|
switch (_a.label) {
|
|
1725
|
-
case 0: return [4 /*yield*/, this.
|
|
1726
|
-
case 1:
|
|
2039
|
+
case 0: return [4 /*yield*/, this.connector.getPrintStockStickers(data)];
|
|
2040
|
+
case 1:
|
|
2041
|
+
_a.sent();
|
|
2042
|
+
return [2 /*return*/];
|
|
1727
2043
|
}
|
|
1728
2044
|
});
|
|
1729
2045
|
});
|
|
1730
2046
|
};
|
|
1731
|
-
StockService.prototype.
|
|
2047
|
+
StockService.prototype.getPrintPriceStickers = function (data) {
|
|
1732
2048
|
return __awaiter(this, void 0, void 0, function () {
|
|
1733
2049
|
return __generator(this, function (_a) {
|
|
1734
2050
|
switch (_a.label) {
|
|
1735
|
-
case 0: return [4 /*yield*/, this.
|
|
2051
|
+
case 0: return [4 /*yield*/, this.connector.getPrintPriceStickers(data)];
|
|
2052
|
+
case 1:
|
|
2053
|
+
_a.sent();
|
|
2054
|
+
return [2 /*return*/];
|
|
2055
|
+
}
|
|
2056
|
+
});
|
|
2057
|
+
});
|
|
2058
|
+
};
|
|
2059
|
+
StockService.prototype.getAllPrinters = function (showAll) {
|
|
2060
|
+
if (showAll === void 0) { showAll = true; }
|
|
2061
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2062
|
+
return __generator(this, function (_a) {
|
|
2063
|
+
switch (_a.label) {
|
|
2064
|
+
case 0: return [4 /*yield*/, this.connector.getAllPrinters(showAll)];
|
|
1736
2065
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1737
2066
|
}
|
|
1738
2067
|
});
|
|
1739
2068
|
});
|
|
1740
2069
|
};
|
|
1741
|
-
StockService.prototype.
|
|
2070
|
+
StockService.prototype.getStockHistory = function (data) {
|
|
1742
2071
|
return __awaiter(this, void 0, void 0, function () {
|
|
1743
2072
|
return __generator(this, function (_a) {
|
|
1744
2073
|
switch (_a.label) {
|
|
1745
|
-
case 0: return [4 /*yield*/, this.
|
|
2074
|
+
case 0: return [4 /*yield*/, this.connector.getStockHistory(data)];
|
|
1746
2075
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1747
2076
|
}
|
|
1748
2077
|
});
|
|
1749
2078
|
});
|
|
1750
2079
|
};
|
|
1751
|
-
StockService.prototype.
|
|
2080
|
+
StockService.prototype.getStockInformation = function (data) {
|
|
1752
2081
|
return __awaiter(this, void 0, void 0, function () {
|
|
1753
2082
|
return __generator(this, function (_a) {
|
|
1754
2083
|
switch (_a.label) {
|
|
1755
|
-
case 0: return [4 /*yield*/, this.
|
|
2084
|
+
case 0: return [4 /*yield*/, this.connector.getStockInformation(data)];
|
|
1756
2085
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1757
2086
|
}
|
|
1758
2087
|
});
|
|
1759
2088
|
});
|
|
1760
2089
|
};
|
|
2090
|
+
// public async getStockStickerPrintLayouts(data: StockStickersPrintLayouts): Promise<StockStickersPrintLayouts[]> {
|
|
2091
|
+
// return await this._connector.getStockStickerPrintLayouts(data);
|
|
2092
|
+
// }
|
|
1761
2093
|
StockService.prototype.getArticleDetails = function (data) {
|
|
1762
2094
|
return __awaiter(this, void 0, void 0, function () {
|
|
1763
2095
|
return __generator(this, function (_a) {
|
|
1764
2096
|
switch (_a.label) {
|
|
1765
|
-
case 0: return [4 /*yield*/, this.
|
|
2097
|
+
case 0: return [4 /*yield*/, this.connector.getArticleDetails(data)];
|
|
1766
2098
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1767
2099
|
}
|
|
1768
2100
|
});
|
|
@@ -1772,7 +2104,7 @@
|
|
|
1772
2104
|
return __awaiter(this, void 0, void 0, function () {
|
|
1773
2105
|
return __generator(this, function (_a) {
|
|
1774
2106
|
switch (_a.label) {
|
|
1775
|
-
case 0: return [4 /*yield*/, this.
|
|
2107
|
+
case 0: return [4 /*yield*/, this.connector.updateArticleDetails(data)];
|
|
1776
2108
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1777
2109
|
}
|
|
1778
2110
|
});
|
|
@@ -1782,7 +2114,7 @@
|
|
|
1782
2114
|
return __awaiter(this, void 0, void 0, function () {
|
|
1783
2115
|
return __generator(this, function (_a) {
|
|
1784
2116
|
switch (_a.label) {
|
|
1785
|
-
case 0: return [4 /*yield*/, this.
|
|
2117
|
+
case 0: return [4 /*yield*/, this.connector.getStockStatus()];
|
|
1786
2118
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1787
2119
|
}
|
|
1788
2120
|
});
|
|
@@ -1792,7 +2124,7 @@
|
|
|
1792
2124
|
return __awaiter(this, void 0, void 0, function () {
|
|
1793
2125
|
return __generator(this, function (_a) {
|
|
1794
2126
|
switch (_a.label) {
|
|
1795
|
-
case 0: return [4 /*yield*/, this.
|
|
2127
|
+
case 0: return [4 /*yield*/, this.connector.getStockStickerTemplates(data)];
|
|
1796
2128
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1797
2129
|
}
|
|
1798
2130
|
});
|
|
@@ -1802,7 +2134,7 @@
|
|
|
1802
2134
|
return __awaiter(this, void 0, void 0, function () {
|
|
1803
2135
|
return __generator(this, function (_a) {
|
|
1804
2136
|
switch (_a.label) {
|
|
1805
|
-
case 0: return [4 /*yield*/, this.
|
|
2137
|
+
case 0: return [4 /*yield*/, this.connector.getStockManagementWarehouses()];
|
|
1806
2138
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1807
2139
|
}
|
|
1808
2140
|
});
|
|
@@ -1812,7 +2144,17 @@
|
|
|
1812
2144
|
return __awaiter(this, void 0, void 0, function () {
|
|
1813
2145
|
return __generator(this, function (_a) {
|
|
1814
2146
|
switch (_a.label) {
|
|
1815
|
-
case 0: return [4 /*yield*/, this.
|
|
2147
|
+
case 0: return [4 /*yield*/, this.connector.getStockManagementLocations(warehouseNo)];
|
|
2148
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
2149
|
+
}
|
|
2150
|
+
});
|
|
2151
|
+
});
|
|
2152
|
+
};
|
|
2153
|
+
StockService.prototype.getArticleTransaction = function (data) {
|
|
2154
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2155
|
+
return __generator(this, function (_a) {
|
|
2156
|
+
switch (_a.label) {
|
|
2157
|
+
case 0: return [4 /*yield*/, this.connector.getArticleTransaction(data)];
|
|
1816
2158
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1817
2159
|
}
|
|
1818
2160
|
});
|
|
@@ -1822,37 +2164,48 @@
|
|
|
1822
2164
|
return __awaiter(this, void 0, void 0, function () {
|
|
1823
2165
|
return __generator(this, function (_a) {
|
|
1824
2166
|
switch (_a.label) {
|
|
1825
|
-
case 0: return [4 /*yield*/, this.
|
|
2167
|
+
case 0: return [4 /*yield*/, this.connector.lockArticleDetails(data)];
|
|
1826
2168
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1827
2169
|
}
|
|
1828
2170
|
});
|
|
1829
2171
|
});
|
|
1830
2172
|
};
|
|
1831
2173
|
StockService.prototype.commit = function () {
|
|
1832
|
-
return this.
|
|
2174
|
+
return this.connector.commit();
|
|
1833
2175
|
};
|
|
1834
2176
|
return StockService;
|
|
1835
|
-
}());
|
|
2177
|
+
}(SharedService));
|
|
2178
|
+
StockService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function StockService_Factory() { return new StockService(i0__namespace.ɵɵinject(OptionsService), i0__namespace.ɵɵinject(SharedConnectorService)); }, token: StockService, providedIn: "root" });
|
|
1836
2179
|
StockService.decorators = [
|
|
1837
|
-
{ type: i0.Injectable
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
]; };
|
|
2180
|
+
{ type: i0.Injectable, args: [{
|
|
2181
|
+
providedIn: 'root',
|
|
2182
|
+
},] }
|
|
2183
|
+
];
|
|
1842
2184
|
|
|
1843
2185
|
var StockComponent = /** @class */ (function () {
|
|
1844
|
-
function StockComponent(stockService) {
|
|
2186
|
+
function StockComponent(stockService, _optionsService) {
|
|
1845
2187
|
this.stockService = stockService;
|
|
2188
|
+
this._optionsService = _optionsService;
|
|
1846
2189
|
this.handleStickerClicked = new i0.EventEmitter();
|
|
1847
2190
|
this.showStockInformationGrid = true;
|
|
1848
2191
|
this.showStockLocation = false;
|
|
1849
2192
|
this.showStockTransfer = false;
|
|
1850
2193
|
this.allAvailableStock = 0;
|
|
1851
2194
|
this.allTechnicalStock = 0;
|
|
2195
|
+
this._publicOptions = true;
|
|
1852
2196
|
}
|
|
1853
2197
|
Object.defineProperty(StockComponent.prototype, "options", {
|
|
1854
2198
|
set: function (value) {
|
|
1855
|
-
|
|
2199
|
+
if (value) {
|
|
2200
|
+
if (typeof value === "string") {
|
|
2201
|
+
this._options = JSON.parse(value);
|
|
2202
|
+
}
|
|
2203
|
+
else {
|
|
2204
|
+
this._options = value;
|
|
2205
|
+
}
|
|
2206
|
+
this._publicOptions = true;
|
|
2207
|
+
this._optionsService.initialize(this._options).then();
|
|
2208
|
+
}
|
|
1856
2209
|
},
|
|
1857
2210
|
enumerable: false,
|
|
1858
2211
|
configurable: true
|
|
@@ -1877,7 +2230,7 @@
|
|
|
1877
2230
|
this.stockTransferArticleDetails = event;
|
|
1878
2231
|
this.showStockTransfer = !this.showStockTransfer;
|
|
1879
2232
|
this.showStockInformationGrid = !this.showStockInformationGrid;
|
|
1880
|
-
this.stockService.stockStickers = new printStockStickers
|
|
2233
|
+
this.stockService.stockStickers = new printStockStickers.PrintStockStickers();
|
|
1881
2234
|
};
|
|
1882
2235
|
StockComponent.prototype.backToStock = function () {
|
|
1883
2236
|
this.showStockTransfer = !this.showStockTransfer;
|
|
@@ -1932,7 +2285,8 @@
|
|
|
1932
2285
|
},] }
|
|
1933
2286
|
];
|
|
1934
2287
|
StockComponent.ctorParameters = function () { return [
|
|
1935
|
-
{ type: StockService }
|
|
2288
|
+
{ type: StockService },
|
|
2289
|
+
{ type: OptionsService }
|
|
1936
2290
|
]; };
|
|
1937
2291
|
StockComponent.propDecorators = {
|
|
1938
2292
|
stock: [{ type: i0.ViewChild, args: [StockComponent,] }],
|
|
@@ -2088,7 +2442,6 @@
|
|
|
2088
2442
|
configurable: true
|
|
2089
2443
|
});
|
|
2090
2444
|
StockInformationGridComponent.prototype.handleTabClick = function (tabData) {
|
|
2091
|
-
console.log(tabData);
|
|
2092
2445
|
this.activeTab = tabData;
|
|
2093
2446
|
if (this.activeTab === "IN_ORDER2") {
|
|
2094
2447
|
this.getInOrderData();
|
|
@@ -2101,13 +2454,13 @@
|
|
|
2101
2454
|
this.articleStockSearchInfo.goodId = data.goodId.toString();
|
|
2102
2455
|
this.articleStockSearchInfo.wareHouseNo = data.warehouseNo.toString();
|
|
2103
2456
|
this.articleStockSearchInfo.viewKind = "D";
|
|
2457
|
+
this.selectedWarehouse = data.warehouseNo;
|
|
2104
2458
|
if (!this.dataWareHouseCode) {
|
|
2105
2459
|
this.getStockManagementWarehouses(data);
|
|
2106
2460
|
}
|
|
2107
2461
|
this.getArticleDetails(data);
|
|
2108
2462
|
this.hideOrShowTabs = false;
|
|
2109
2463
|
this.hideOrShowLocationTab = true;
|
|
2110
|
-
console.log(this.articleDetailsInformation);
|
|
2111
2464
|
this._stockService.lockArticleDetails(this.articleDetailsInformation);
|
|
2112
2465
|
};
|
|
2113
2466
|
StockInformationGridComponent.prototype.handleHistoryClick = function () {
|
|
@@ -2130,17 +2483,18 @@
|
|
|
2130
2483
|
this.activeTab = this.tabs[0];
|
|
2131
2484
|
this.hideOrShowTabs = true;
|
|
2132
2485
|
this.hideOrShowLocationTab = false;
|
|
2486
|
+
this.articleDetails = undefined;
|
|
2133
2487
|
return [2 /*return*/];
|
|
2134
2488
|
});
|
|
2135
2489
|
});
|
|
2136
2490
|
};
|
|
2137
|
-
StockInformationGridComponent.prototype.openSendMethodDialog = function () {
|
|
2491
|
+
StockInformationGridComponent.prototype.openSendMethodDialog = function (data) {
|
|
2492
|
+
this._stockService.printSticker.goodId = data.goodId;
|
|
2493
|
+
this._stockService.printSticker.warehouse = data.warehouseNo;
|
|
2138
2494
|
this.showSendMethodDialog = !this.showSendMethodDialog;
|
|
2139
2495
|
};
|
|
2140
2496
|
StockInformationGridComponent.prototype.printStockStickers = function () {
|
|
2141
|
-
this.
|
|
2142
|
-
this.printSticker.goodId = 10;
|
|
2143
|
-
// this._stockService.getPrintStockStickers(this.printSticker);
|
|
2497
|
+
this._stockService.getPrintStockStickers(this._stockService.printSticker);
|
|
2144
2498
|
};
|
|
2145
2499
|
StockInformationGridComponent.prototype.onOkClick = function () {
|
|
2146
2500
|
};
|
|
@@ -2170,8 +2524,7 @@
|
|
|
2170
2524
|
StockInformationGridComponent.prototype.onSelectWarehouse = function (event) {
|
|
2171
2525
|
var _this = this;
|
|
2172
2526
|
this.articleDetailsInformation.warehouseNumber = event;
|
|
2173
|
-
|
|
2174
|
-
if (this.dataWareHouseCode != null) {
|
|
2527
|
+
if (this.selectedWarehouse || this.selectedWarehouse === 0) {
|
|
2175
2528
|
this._stockService.getArticleDetails(this.articleDetailsInformation).then(function (details) {
|
|
2176
2529
|
_this.articleDetails = details;
|
|
2177
2530
|
});
|
|
@@ -2183,14 +2536,12 @@
|
|
|
2183
2536
|
return __generator(this, function (_b) {
|
|
2184
2537
|
switch (_b.label) {
|
|
2185
2538
|
case 0:
|
|
2186
|
-
inOrderData = new
|
|
2187
|
-
inOrderData.type = "
|
|
2539
|
+
inOrderData = new articleTransaction.ArticleTransaction();
|
|
2540
|
+
inOrderData.type = "V";
|
|
2188
2541
|
inOrderData.goodId = this.articleStockInformation[0].goodId.toString();
|
|
2189
|
-
// inOrderData.wareHouseNr = Number(this.articleStockInformation[0].warehouseNo);
|
|
2190
2542
|
_a = this;
|
|
2191
|
-
return [4 /*yield*/, this._stockService.
|
|
2543
|
+
return [4 /*yield*/, this._stockService.getArticleTransaction(inOrderData)];
|
|
2192
2544
|
case 1:
|
|
2193
|
-
// inOrderData.wareHouseNr = Number(this.articleStockInformation[0].warehouseNo);
|
|
2194
2545
|
_a.inOrderInformation = _b.sent();
|
|
2195
2546
|
return [2 /*return*/];
|
|
2196
2547
|
}
|
|
@@ -2199,30 +2550,30 @@
|
|
|
2199
2550
|
};
|
|
2200
2551
|
StockInformationGridComponent.prototype.getOrderData = function () {
|
|
2201
2552
|
return __awaiter(this, void 0, void 0, function () {
|
|
2202
|
-
var
|
|
2553
|
+
var orderData, _a;
|
|
2203
2554
|
return __generator(this, function (_b) {
|
|
2204
2555
|
switch (_b.label) {
|
|
2205
2556
|
case 0:
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
// inOrderData.wareHouseNr = Number(this.articleStockInformation[0].warehouseNo);
|
|
2557
|
+
orderData = new articleTransaction.ArticleTransaction();
|
|
2558
|
+
orderData.type = "V";
|
|
2559
|
+
orderData.goodId = this.articleStockInformation[0].goodId.toString();
|
|
2210
2560
|
_a = this;
|
|
2211
|
-
return [4 /*yield*/, this._stockService.
|
|
2561
|
+
return [4 /*yield*/, this._stockService.getArticleTransaction(orderData)];
|
|
2212
2562
|
case 1:
|
|
2213
|
-
// inOrderData.wareHouseNr = Number(this.articleStockInformation[0].warehouseNo);
|
|
2214
2563
|
_a.orderInformation = _b.sent();
|
|
2215
2564
|
return [2 /*return*/];
|
|
2216
2565
|
}
|
|
2217
2566
|
});
|
|
2218
2567
|
});
|
|
2219
2568
|
};
|
|
2569
|
+
StockInformationGridComponent.prototype.addNewRow = function () {
|
|
2570
|
+
};
|
|
2220
2571
|
return StockInformationGridComponent;
|
|
2221
2572
|
}());
|
|
2222
2573
|
StockInformationGridComponent.decorators = [
|
|
2223
2574
|
{ type: i0.Component, args: [{
|
|
2224
2575
|
selector: "co-stock-information-grid",
|
|
2225
|
-
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 ",
|
|
2576
|
+
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 class=\"simple-grid\"\n [showAdd]=\"true\"\n [showToolbar]=\"true\"\n (addRow)=\"addNewRow()\"\n [inlineEdit]=\"true\"\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 class=\"simple-grid\"\n >\n <co-simple-grid-column [headerText]=\"'IN_ORDER2'\" [field]=\"'transactionNr'\"></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]=\"'transactionDate'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AMOUNT'\" [field]=\"'amountInOrder'\"></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]=\"'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(row)\"></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 class=\"simple-grid\"\n >\n <co-simple-grid-column [headerText]=\"'PURCHASE_ORDER_NR'\" [field]=\"'transactionNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DATE'\" [field]=\"'transactionDate'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AMOUNT'\" [field]=\"'amountInOrder'\"></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 class=\"simple-grid\"\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(row)\"></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 class=\"simple-grid\"\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(row)\"></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 ",
|
|
2226
2577
|
encapsulation: i0.ViewEncapsulation.None
|
|
2227
2578
|
},] }
|
|
2228
2579
|
];
|
|
@@ -2367,52 +2718,91 @@
|
|
|
2367
2718
|
})(SendOption || (SendOption = {}));
|
|
2368
2719
|
|
|
2369
2720
|
var SendMethodDialogComponent = /** @class */ (function () {
|
|
2370
|
-
function SendMethodDialogComponent(iconCacheService,
|
|
2721
|
+
function SendMethodDialogComponent(iconCacheService, stockService, _optionsService, _dictionary, _changeDetector) {
|
|
2722
|
+
var _this = this;
|
|
2371
2723
|
this.iconCacheService = iconCacheService;
|
|
2372
|
-
this.
|
|
2724
|
+
this.stockService = stockService;
|
|
2725
|
+
this._optionsService = _optionsService;
|
|
2726
|
+
this._dictionary = _dictionary;
|
|
2727
|
+
this._changeDetector = _changeDetector;
|
|
2373
2728
|
this.icons = Icon;
|
|
2374
2729
|
this.sendOption = SendOption;
|
|
2730
|
+
this.showEmailOption = true;
|
|
2731
|
+
this.showPrintOption = true;
|
|
2732
|
+
this.showPdfOption = true;
|
|
2733
|
+
this.showXmlOption = true;
|
|
2734
|
+
this.showPrintPriceStickers = false;
|
|
2735
|
+
this.showPrintStockStickers = true;
|
|
2375
2736
|
this.sendOptions = [
|
|
2376
2737
|
{ option: SendOption.Email,
|
|
2377
|
-
iconName: this.icons.Email
|
|
2738
|
+
iconName: this.icons.Email,
|
|
2739
|
+
},
|
|
2378
2740
|
{ option: SendOption.Print,
|
|
2379
|
-
iconName: this.icons.Print
|
|
2741
|
+
iconName: this.icons.Print,
|
|
2742
|
+
},
|
|
2380
2743
|
{ option: SendOption.Pdf,
|
|
2381
|
-
iconName: this.icons.Pdf
|
|
2744
|
+
iconName: this.icons.Pdf,
|
|
2745
|
+
},
|
|
2382
2746
|
{ option: SendOption.Xml,
|
|
2383
|
-
iconName: this.icons.Xml
|
|
2747
|
+
iconName: this.icons.Xml,
|
|
2748
|
+
}
|
|
2384
2749
|
];
|
|
2385
2750
|
this.activeSendOption = SendOption.Email;
|
|
2386
|
-
this.amountToPrint = 1;
|
|
2387
2751
|
this.showStandardPrinterOptions = false;
|
|
2388
2752
|
this.showPrinterSelections = false;
|
|
2389
2753
|
this.showExitButton = true;
|
|
2390
|
-
this.printTemplatesField = { text: "name", value: "
|
|
2754
|
+
this.printTemplatesField = { text: "name", value: "reportId" };
|
|
2755
|
+
this.priceListDataField = { text: "name", value: "priceListCode" };
|
|
2756
|
+
this.upAndLoaded = false;
|
|
2391
2757
|
this.emails = ['lars.vdv@colijn-it.nl', 'david@colijn-it.nl', 'ruben@colijn-it.nl'];
|
|
2392
2758
|
this.models = [false, false, true];
|
|
2393
2759
|
this.layouts = ['Layout 1', 'Layout 2', 'Layout 3'];
|
|
2394
2760
|
this.showDialog = false;
|
|
2395
2761
|
this.startSignatureClicked = new i0.EventEmitter();
|
|
2396
2762
|
this.printButtonClicked = new i0.EventEmitter();
|
|
2763
|
+
this._subscriptions = [];
|
|
2764
|
+
this._publicOptions = true;
|
|
2765
|
+
this._subscriptions.push(this._optionsService.optionsLoaded.subscribe(function (loaded) { return _this._handleSettingsLoaded(loaded); }));
|
|
2397
2766
|
}
|
|
2398
2767
|
Object.defineProperty(SendMethodDialogComponent.prototype, "options", {
|
|
2768
|
+
get: function () {
|
|
2769
|
+
return this._options;
|
|
2770
|
+
},
|
|
2399
2771
|
set: function (value) {
|
|
2400
|
-
|
|
2772
|
+
if (value) {
|
|
2773
|
+
if (typeof value === "string") {
|
|
2774
|
+
this._options = JSON.parse(value);
|
|
2775
|
+
}
|
|
2776
|
+
else {
|
|
2777
|
+
this._options = value;
|
|
2778
|
+
}
|
|
2779
|
+
this._publicOptions = true;
|
|
2780
|
+
this._optionsService.initialize(this._options).then();
|
|
2781
|
+
}
|
|
2401
2782
|
},
|
|
2402
2783
|
enumerable: false,
|
|
2403
2784
|
configurable: true
|
|
2404
2785
|
});
|
|
2786
|
+
Object.defineProperty(SendMethodDialogComponent.prototype, "articleData", {
|
|
2787
|
+
set: function (data) {
|
|
2788
|
+
this.stockService.printSticker.goodId = data.goodId;
|
|
2789
|
+
this.stockService.printSticker.warehouse = data.warehouseNo;
|
|
2790
|
+
},
|
|
2791
|
+
enumerable: false,
|
|
2792
|
+
configurable: true
|
|
2793
|
+
});
|
|
2794
|
+
;
|
|
2405
2795
|
SendMethodDialogComponent.prototype.showClass = function () {
|
|
2406
2796
|
return true;
|
|
2407
2797
|
};
|
|
2408
|
-
SendMethodDialogComponent.prototype.
|
|
2409
|
-
this.
|
|
2798
|
+
SendMethodDialogComponent.prototype.ngOnDestroy = function () {
|
|
2799
|
+
this._subscriptions.forEach(function (subscription) { return subscription.unsubscribe(); });
|
|
2410
2800
|
};
|
|
2411
2801
|
SendMethodDialogComponent.prototype.getPrinters = function () {
|
|
2412
2802
|
return __awaiter(this, void 0, void 0, function () {
|
|
2413
2803
|
var _this = this;
|
|
2414
2804
|
return __generator(this, function (_a) {
|
|
2415
|
-
return [2 /*return*/, this.
|
|
2805
|
+
return [2 /*return*/, this.stockService.getAllPrinters(true).then(function (list) {
|
|
2416
2806
|
_this.printerList = list;
|
|
2417
2807
|
})];
|
|
2418
2808
|
});
|
|
@@ -2425,7 +2815,10 @@
|
|
|
2425
2815
|
this.startSignatureClicked.emit();
|
|
2426
2816
|
};
|
|
2427
2817
|
SendMethodDialogComponent.prototype.handlePrintClicked = function () {
|
|
2428
|
-
this.printButtonClicked.emit();
|
|
2818
|
+
// this.printButtonClicked.emit();
|
|
2819
|
+
if (this.stockService.printSticker.printerName) {
|
|
2820
|
+
this.stockService.getPrintStockStickers(this.stockService.printSticker);
|
|
2821
|
+
}
|
|
2429
2822
|
};
|
|
2430
2823
|
SendMethodDialogComponent.prototype.togglePrinterSelection = function () {
|
|
2431
2824
|
this.getPrinters();
|
|
@@ -2440,13 +2833,53 @@
|
|
|
2440
2833
|
};
|
|
2441
2834
|
SendMethodDialogComponent.prototype.onPrinterClicked = function (printer) {
|
|
2442
2835
|
this.defaultPrinter = printer.name;
|
|
2836
|
+
this.stockService.printSticker.printerName = printer.name;
|
|
2443
2837
|
this.showPrinterSelections = !this.showPrinterSelections;
|
|
2444
2838
|
};
|
|
2445
2839
|
SendMethodDialogComponent.prototype.getPrintTemplates = function () {
|
|
2446
2840
|
var _this = this;
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2841
|
+
if (!this.printTemplates) {
|
|
2842
|
+
var data = new stockStickersPrintLayouts_bo.StockStickersPrintLayouts();
|
|
2843
|
+
this.stockService.getStockStickerTemplates(data).then(function (templates) {
|
|
2844
|
+
_this.printTemplates = templates;
|
|
2845
|
+
});
|
|
2846
|
+
}
|
|
2847
|
+
};
|
|
2848
|
+
SendMethodDialogComponent.prototype._handleSettingsLoaded = function (loaded) {
|
|
2849
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2850
|
+
return __generator(this, function (_a) {
|
|
2851
|
+
switch (_a.label) {
|
|
2852
|
+
case 0:
|
|
2853
|
+
if (!loaded) return [3 /*break*/, 2];
|
|
2854
|
+
return [4 /*yield*/, this._initConnection().then()];
|
|
2855
|
+
case 1:
|
|
2856
|
+
_a.sent();
|
|
2857
|
+
this.upAndLoaded = true;
|
|
2858
|
+
_a.label = 2;
|
|
2859
|
+
case 2: return [2 /*return*/];
|
|
2860
|
+
}
|
|
2861
|
+
});
|
|
2862
|
+
});
|
|
2863
|
+
};
|
|
2864
|
+
SendMethodDialogComponent.prototype._initConnection = function () {
|
|
2865
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2866
|
+
var _this = this;
|
|
2867
|
+
return __generator(this, function (_a) {
|
|
2868
|
+
switch (_a.label) {
|
|
2869
|
+
case 0:
|
|
2870
|
+
// await this._connector.connect(this._optionsService.options);
|
|
2871
|
+
if (this._optionsService.options.url) {
|
|
2872
|
+
this._dictionary.rootUrl = this._optionsService.options.url.replace("/ajaxservice", "");
|
|
2873
|
+
}
|
|
2874
|
+
return [4 /*yield*/, this._dictionary.setDictionary(this._optionsService.options.languageCode)];
|
|
2875
|
+
case 1:
|
|
2876
|
+
_a.sent();
|
|
2877
|
+
setTimeout(function () {
|
|
2878
|
+
_this._changeDetector.detectChanges();
|
|
2879
|
+
});
|
|
2880
|
+
return [2 /*return*/];
|
|
2881
|
+
}
|
|
2882
|
+
});
|
|
2450
2883
|
});
|
|
2451
2884
|
};
|
|
2452
2885
|
return SendMethodDialogComponent;
|
|
@@ -2454,7 +2887,7 @@
|
|
|
2454
2887
|
SendMethodDialogComponent.decorators = [
|
|
2455
2888
|
{ type: i0.Component, args: [{
|
|
2456
2889
|
selector: "ione-send-method-dialog",
|
|
2457
|
-
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\"
|
|
2890
|
+
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\"\n *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\" (click)=\"getPrintTemplates()\">\n <div *ngIf=\"showPrintPriceStickers\">\n <div class=\"lov-wrapper\">\n <co-input-combo-box\n [(model)]=\"stockService.printPriceSticker.reportId\"\n [collection]=\"printTemplates\"\n [fields]=\"printTemplatesField\"\n placeholder=\"Layout\"\n ></co-input-combo-box>\n </div>\n <div class=\"lov-wrapper\" *ngIf=\"priceListCodeData\">\n <co-input-combo-box\n [(model)]=\"stockService.printPriceSticker.priceListCode\"\n [collection]=\"priceListCodeData\"\n [fields]=\"priceListDataField\"\n placeholder=\"Layout\"\n ></co-input-combo-box>\n </div>\n </div>\n\n <div *ngIf=\"showPrintStockStickers\">\n <div class=\"lov-wrapper\">\n <co-input-combo-box\n [(model)]=\"stockService.printSticker.reportId\"\n [collection]=\"printTemplates\"\n [fields]=\"printTemplatesField\"\n placeholder=\"Layout\"\n ></co-input-combo-box>\n </div>\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)]=\"stockService.printSticker.amount\" [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 ",
|
|
2458
2891
|
encapsulation: i0.ViewEncapsulation.None,
|
|
2459
2892
|
animations: [
|
|
2460
2893
|
animations.trigger('slideInOut', [
|
|
@@ -2467,13 +2900,24 @@
|
|
|
2467
2900
|
];
|
|
2468
2901
|
SendMethodDialogComponent.ctorParameters = function () { return [
|
|
2469
2902
|
{ type: IconCacheService },
|
|
2470
|
-
{ type: StockService }
|
|
2903
|
+
{ type: StockService },
|
|
2904
|
+
{ type: OptionsService },
|
|
2905
|
+
{ type: DictionaryService },
|
|
2906
|
+
{ type: i0.ChangeDetectorRef }
|
|
2471
2907
|
]; };
|
|
2472
2908
|
SendMethodDialogComponent.propDecorators = {
|
|
2909
|
+
showEmailOption: [{ type: i0.Input }],
|
|
2910
|
+
showPrintOption: [{ type: i0.Input }],
|
|
2911
|
+
showPdfOption: [{ type: i0.Input }],
|
|
2912
|
+
showXmlOption: [{ type: i0.Input }],
|
|
2913
|
+
showPrintPriceStickers: [{ type: i0.Input }],
|
|
2914
|
+
showPrintStockStickers: [{ type: i0.Input }],
|
|
2915
|
+
priceListCodeData: [{ type: i0.Input }],
|
|
2473
2916
|
options: [{ type: i0.Input }],
|
|
2474
2917
|
showDialog: [{ type: i0.Input }],
|
|
2475
2918
|
headerTitle: [{ type: i0.Input }],
|
|
2476
2919
|
printerList: [{ type: i0.Input }],
|
|
2920
|
+
articleData: [{ type: i0.Input }],
|
|
2477
2921
|
startSignatureClicked: [{ type: i0.Output }],
|
|
2478
2922
|
printButtonClicked: [{ type: i0.Output }],
|
|
2479
2923
|
showClass: [{ type: i0.HostBinding, args: ["class.ione-send-method-dialog",] }]
|
|
@@ -2595,7 +3039,7 @@
|
|
|
2595
3039
|
],
|
|
2596
3040
|
providers: [
|
|
2597
3041
|
StockService,
|
|
2598
|
-
|
|
3042
|
+
SharedConnectorService
|
|
2599
3043
|
]
|
|
2600
3044
|
},] }
|
|
2601
3045
|
];
|
|
@@ -2921,18 +3365,21 @@
|
|
|
2921
3365
|
exports.LayoutSwitcherModule = LayoutSwitcherModule;
|
|
2922
3366
|
exports.SendMethodDialogComponent = SendMethodDialogComponent;
|
|
2923
3367
|
exports.SendMethodDialogModule = SendMethodDialogModule;
|
|
3368
|
+
exports.SharedService = SharedService;
|
|
2924
3369
|
exports.StockComponent = StockComponent;
|
|
2925
3370
|
exports.StockModule = StockModule;
|
|
2926
3371
|
exports["ɵa"] = SignatureComponent;
|
|
2927
3372
|
exports["ɵb"] = SignaturesComponent;
|
|
2928
3373
|
exports["ɵc"] = StockService;
|
|
2929
|
-
exports["ɵd"] =
|
|
2930
|
-
exports["ɵe"] =
|
|
2931
|
-
exports["ɵf"] =
|
|
2932
|
-
exports["ɵg"] =
|
|
2933
|
-
exports["ɵh"] =
|
|
2934
|
-
exports["ɵi"] =
|
|
2935
|
-
exports["ɵj"] =
|
|
3374
|
+
exports["ɵd"] = OptionsService;
|
|
3375
|
+
exports["ɵe"] = DictionaryService;
|
|
3376
|
+
exports["ɵf"] = SharedConnectorService;
|
|
3377
|
+
exports["ɵg"] = IconCacheService;
|
|
3378
|
+
exports["ɵh"] = StockInformationComponent;
|
|
3379
|
+
exports["ɵi"] = StockInformationGridComponent;
|
|
3380
|
+
exports["ɵj"] = StockLocationComponent;
|
|
3381
|
+
exports["ɵk"] = StockTransferComponent;
|
|
3382
|
+
exports["ɵl"] = StockChangeAmountComponent;
|
|
2936
3383
|
|
|
2937
3384
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2938
3385
|
|