@colijnit/sharedcomponents 1.0.19 → 1.0.20
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 +550 -134
- 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 +94 -23
- 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 +37 -29
- 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 +262 -0
- package/esm2015/lib/service/shared.service.js +30 -0
- package/esm2015/lib/service/stock.service.js +37 -30
- package/esm2015/lib/utils/string-utils.js +64 -0
- package/esm2015/public-api.js +2 -1
- package/fesm2015/colijnit-sharedcomponents.js +462 -118
- 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 +24 -7
- 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} +9 -7
- package/lib/service/shared.service.d.ts +8 -0
- package/lib/service/stock.service.d.ts +9 -8
- 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/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/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.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, 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
|
+
};
|
|
1499
|
+
}
|
|
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) {
|
|
1529
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1530
|
+
return __generator(this, function (_a) {
|
|
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);
|
|
1414
1595
|
}
|
|
1415
|
-
|
|
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) {
|
|
1416
1607
|
return __awaiter(this, void 0, void 0, function () {
|
|
1417
1608
|
return __generator(this, function (_a) {
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
this.
|
|
1421
|
-
this.sharedConnector = new sharedapi.Sharedapi(options);
|
|
1422
|
-
this.options.session = this.connector.session && this.sharedConnector.session;
|
|
1609
|
+
this.options = new Object();
|
|
1610
|
+
if (obj.hasOwnProperty("url")) {
|
|
1611
|
+
this.options.url = obj["url"];
|
|
1423
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"];
|
|
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,26 +1724,20 @@
|
|
|
1472
1724
|
});
|
|
1473
1725
|
});
|
|
1474
1726
|
};
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
});
|
|
1490
|
-
})];
|
|
1491
|
-
});
|
|
1492
|
-
});
|
|
1493
|
-
};
|
|
1494
|
-
IoneConnectorAdapterService.prototype.getArticleFullObject = function (goodId) {
|
|
1727
|
+
// public async getStockStickerPrintLayouts(stockStickersPrintLayoutsBo: StockStickersPrintLayoutsBo): Promise<StockStickersPrintLayoutsBo[]> {
|
|
1728
|
+
// return new Promise((resolve: Function, reject: Function) => {
|
|
1729
|
+
// return this.sharedConnector.getStockStickerPrintLayouts(stockStickersPrintLayoutsBo).then((result: DataServiceResponse) => {
|
|
1730
|
+
// if (result.validationResult && result.validationResult.success) {
|
|
1731
|
+
// if (result.resultObject) {
|
|
1732
|
+
// resolve(this._boFactory.makeWithRawBackendData(stockStickersPrintLayoutsBo, result.resultObject));
|
|
1733
|
+
// }
|
|
1734
|
+
// } else {
|
|
1735
|
+
// reject(result.validationMessagesAsString);
|
|
1736
|
+
// }
|
|
1737
|
+
// })
|
|
1738
|
+
// })
|
|
1739
|
+
// }
|
|
1740
|
+
SharedConnectorService.prototype.getArticleFullObject = function (goodId) {
|
|
1495
1741
|
return __awaiter(this, void 0, void 0, function () {
|
|
1496
1742
|
var _this = this;
|
|
1497
1743
|
return __generator(this, function (_a) {
|
|
@@ -1509,7 +1755,7 @@
|
|
|
1509
1755
|
});
|
|
1510
1756
|
});
|
|
1511
1757
|
};
|
|
1512
|
-
|
|
1758
|
+
SharedConnectorService.prototype.getStockHistory = function (request) {
|
|
1513
1759
|
return __awaiter(this, void 0, void 0, function () {
|
|
1514
1760
|
var _this = this;
|
|
1515
1761
|
return __generator(this, function (_a) {
|
|
@@ -1528,7 +1774,7 @@
|
|
|
1528
1774
|
});
|
|
1529
1775
|
});
|
|
1530
1776
|
};
|
|
1531
|
-
|
|
1777
|
+
SharedConnectorService.prototype.getStockInformation = function (data) {
|
|
1532
1778
|
return __awaiter(this, void 0, void 0, function () {
|
|
1533
1779
|
var _this = this;
|
|
1534
1780
|
return __generator(this, function (_a) {
|
|
@@ -1536,7 +1782,7 @@
|
|
|
1536
1782
|
return _this.connector.getStockInformation(data).then(function (result) {
|
|
1537
1783
|
if (result.validationResult && result.validationResult.success) {
|
|
1538
1784
|
if (result.resultObjects) {
|
|
1539
|
-
resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(articleStock_bo.
|
|
1785
|
+
resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(articleStock_bo.ArticleStock, result.resultObjects));
|
|
1540
1786
|
}
|
|
1541
1787
|
}
|
|
1542
1788
|
else {
|
|
@@ -1547,7 +1793,7 @@
|
|
|
1547
1793
|
});
|
|
1548
1794
|
});
|
|
1549
1795
|
};
|
|
1550
|
-
|
|
1796
|
+
SharedConnectorService.prototype.getStockManagementWarehouses = function () {
|
|
1551
1797
|
return __awaiter(this, void 0, void 0, function () {
|
|
1552
1798
|
var _this = this;
|
|
1553
1799
|
return __generator(this, function (_a) {
|
|
@@ -1566,7 +1812,7 @@
|
|
|
1566
1812
|
});
|
|
1567
1813
|
});
|
|
1568
1814
|
};
|
|
1569
|
-
|
|
1815
|
+
SharedConnectorService.prototype.getStockManagementLocations = function (warehouseNo) {
|
|
1570
1816
|
return __awaiter(this, void 0, void 0, function () {
|
|
1571
1817
|
var _this = this;
|
|
1572
1818
|
return __generator(this, function (_a) {
|
|
@@ -1585,7 +1831,7 @@
|
|
|
1585
1831
|
});
|
|
1586
1832
|
});
|
|
1587
1833
|
};
|
|
1588
|
-
|
|
1834
|
+
SharedConnectorService.prototype.getArticleDetails = function (data) {
|
|
1589
1835
|
return __awaiter(this, void 0, void 0, function () {
|
|
1590
1836
|
var _this = this;
|
|
1591
1837
|
return __generator(this, function (_a) {
|
|
@@ -1604,7 +1850,7 @@
|
|
|
1604
1850
|
});
|
|
1605
1851
|
});
|
|
1606
1852
|
};
|
|
1607
|
-
|
|
1853
|
+
SharedConnectorService.prototype.updateArticleDetails = function (data) {
|
|
1608
1854
|
return __awaiter(this, void 0, void 0, function () {
|
|
1609
1855
|
var _this = this;
|
|
1610
1856
|
return __generator(this, function (_a) {
|
|
@@ -1630,7 +1876,7 @@
|
|
|
1630
1876
|
});
|
|
1631
1877
|
});
|
|
1632
1878
|
};
|
|
1633
|
-
|
|
1879
|
+
SharedConnectorService.prototype.lockArticleDetails = function (data) {
|
|
1634
1880
|
return __awaiter(this, void 0, void 0, function () {
|
|
1635
1881
|
var _this = this;
|
|
1636
1882
|
return __generator(this, function (_a) {
|
|
@@ -1656,7 +1902,7 @@
|
|
|
1656
1902
|
});
|
|
1657
1903
|
});
|
|
1658
1904
|
};
|
|
1659
|
-
|
|
1905
|
+
SharedConnectorService.prototype.getStockStatus = function () {
|
|
1660
1906
|
return __awaiter(this, void 0, void 0, function () {
|
|
1661
1907
|
var _this = this;
|
|
1662
1908
|
return __generator(this, function (_a) {
|
|
@@ -1675,7 +1921,7 @@
|
|
|
1675
1921
|
});
|
|
1676
1922
|
});
|
|
1677
1923
|
};
|
|
1678
|
-
|
|
1924
|
+
SharedConnectorService.prototype.getStockStickerTemplates = function (data) {
|
|
1679
1925
|
return __awaiter(this, void 0, void 0, function () {
|
|
1680
1926
|
var _this = this;
|
|
1681
1927
|
return __generator(this, function (_a) {
|
|
@@ -1694,75 +1940,129 @@
|
|
|
1694
1940
|
});
|
|
1695
1941
|
});
|
|
1696
1942
|
};
|
|
1697
|
-
|
|
1943
|
+
SharedConnectorService.prototype.getArticleTransaction = function (data) {
|
|
1944
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1945
|
+
var _this = this;
|
|
1946
|
+
return __generator(this, function (_a) {
|
|
1947
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1948
|
+
return _this.connector.getArticleTransaction(data).then(function (result) {
|
|
1949
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1950
|
+
if (result.resultObjects) {
|
|
1951
|
+
resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(articleTransaction_bo.ArticleTransaction, result.resultObjects));
|
|
1952
|
+
}
|
|
1953
|
+
}
|
|
1954
|
+
else {
|
|
1955
|
+
reject(result.validationMessagesAsString);
|
|
1956
|
+
}
|
|
1957
|
+
});
|
|
1958
|
+
})];
|
|
1959
|
+
});
|
|
1960
|
+
});
|
|
1961
|
+
};
|
|
1962
|
+
SharedConnectorService.prototype.commit = function () {
|
|
1698
1963
|
return this.connector.commit();
|
|
1699
1964
|
};
|
|
1700
|
-
return
|
|
1965
|
+
return SharedConnectorService;
|
|
1701
1966
|
}());
|
|
1702
|
-
|
|
1703
|
-
|
|
1967
|
+
SharedConnectorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function SharedConnectorService_Factory() { return new SharedConnectorService(i0__namespace.ɵɵinject(OptionsService)); }, token: SharedConnectorService, providedIn: "root" });
|
|
1968
|
+
SharedConnectorService.decorators = [
|
|
1704
1969
|
{ type: i0.Injectable, args: [{
|
|
1705
1970
|
providedIn: "root"
|
|
1706
1971
|
},] }
|
|
1707
1972
|
];
|
|
1708
|
-
|
|
1973
|
+
SharedConnectorService.ctorParameters = function () { return [
|
|
1974
|
+
{ type: OptionsService }
|
|
1975
|
+
]; };
|
|
1709
1976
|
|
|
1710
|
-
var
|
|
1711
|
-
function
|
|
1712
|
-
this.
|
|
1977
|
+
var SharedService = /** @class */ (function () {
|
|
1978
|
+
function SharedService(options, connector) {
|
|
1979
|
+
this.options = options;
|
|
1980
|
+
this.connector = connector;
|
|
1713
1981
|
}
|
|
1714
|
-
|
|
1715
|
-
this
|
|
1982
|
+
SharedService.prototype.init = function (options) {
|
|
1983
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1984
|
+
return __generator(this, function (_a) {
|
|
1985
|
+
switch (_a.label) {
|
|
1986
|
+
case 0: return [4 /*yield*/, this.options.initialize(options)];
|
|
1987
|
+
case 1:
|
|
1988
|
+
_a.sent();
|
|
1989
|
+
this.connector.connect();
|
|
1990
|
+
return [2 /*return*/];
|
|
1991
|
+
}
|
|
1992
|
+
});
|
|
1993
|
+
});
|
|
1716
1994
|
};
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1995
|
+
return SharedService;
|
|
1996
|
+
}());
|
|
1997
|
+
SharedService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function SharedService_Factory() { return new SharedService(i0__namespace.ɵɵinject(OptionsService), i0__namespace.ɵɵinject(SharedConnectorService)); }, token: SharedService, providedIn: "root" });
|
|
1998
|
+
SharedService.decorators = [
|
|
1999
|
+
{ type: i0.Injectable, args: [{
|
|
2000
|
+
providedIn: "root"
|
|
2001
|
+
},] }
|
|
2002
|
+
];
|
|
2003
|
+
SharedService.ctorParameters = function () { return [
|
|
2004
|
+
{ type: OptionsService },
|
|
2005
|
+
{ type: SharedConnectorService }
|
|
2006
|
+
]; };
|
|
2007
|
+
|
|
2008
|
+
var StockService = /** @class */ (function (_super) {
|
|
2009
|
+
__extends(StockService, _super);
|
|
2010
|
+
function StockService() {
|
|
2011
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
2012
|
+
_this.printSticker = new printStockStickers.PrintStockStickers();
|
|
2013
|
+
return _this;
|
|
2014
|
+
}
|
|
2015
|
+
StockService.prototype.getPrintStockStickers = function (data) {
|
|
1722
2016
|
return __awaiter(this, void 0, void 0, function () {
|
|
1723
2017
|
return __generator(this, function (_a) {
|
|
1724
2018
|
switch (_a.label) {
|
|
1725
|
-
case 0: return [4 /*yield*/, this.
|
|
1726
|
-
case 1:
|
|
2019
|
+
case 0: return [4 /*yield*/, this.connector.getPrintStockStickers(data)];
|
|
2020
|
+
case 1:
|
|
2021
|
+
_a.sent();
|
|
2022
|
+
return [2 /*return*/];
|
|
1727
2023
|
}
|
|
1728
2024
|
});
|
|
1729
2025
|
});
|
|
1730
2026
|
};
|
|
1731
|
-
StockService.prototype.
|
|
2027
|
+
StockService.prototype.getAllPrinters = function (showAll) {
|
|
2028
|
+
if (showAll === void 0) { showAll = true; }
|
|
1732
2029
|
return __awaiter(this, void 0, void 0, function () {
|
|
1733
2030
|
return __generator(this, function (_a) {
|
|
1734
2031
|
switch (_a.label) {
|
|
1735
|
-
case 0: return [4 /*yield*/, this.
|
|
2032
|
+
case 0: return [4 /*yield*/, this.connector.getAllPrinters(showAll)];
|
|
1736
2033
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1737
2034
|
}
|
|
1738
2035
|
});
|
|
1739
2036
|
});
|
|
1740
2037
|
};
|
|
1741
|
-
StockService.prototype.
|
|
2038
|
+
StockService.prototype.getStockHistory = function (data) {
|
|
1742
2039
|
return __awaiter(this, void 0, void 0, function () {
|
|
1743
2040
|
return __generator(this, function (_a) {
|
|
1744
2041
|
switch (_a.label) {
|
|
1745
|
-
case 0: return [4 /*yield*/, this.
|
|
2042
|
+
case 0: return [4 /*yield*/, this.connector.getStockHistory(data)];
|
|
1746
2043
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1747
2044
|
}
|
|
1748
2045
|
});
|
|
1749
2046
|
});
|
|
1750
2047
|
};
|
|
1751
|
-
StockService.prototype.
|
|
2048
|
+
StockService.prototype.getStockInformation = function (data) {
|
|
1752
2049
|
return __awaiter(this, void 0, void 0, function () {
|
|
1753
2050
|
return __generator(this, function (_a) {
|
|
1754
2051
|
switch (_a.label) {
|
|
1755
|
-
case 0: return [4 /*yield*/, this.
|
|
2052
|
+
case 0: return [4 /*yield*/, this.connector.getStockInformation(data)];
|
|
1756
2053
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1757
2054
|
}
|
|
1758
2055
|
});
|
|
1759
2056
|
});
|
|
1760
2057
|
};
|
|
2058
|
+
// public async getStockStickerPrintLayouts(data: StockStickersPrintLayoutsBo): Promise<StockStickersPrintLayoutsBo[]> {
|
|
2059
|
+
// return await this._connector.getStockStickerPrintLayouts(data);
|
|
2060
|
+
// }
|
|
1761
2061
|
StockService.prototype.getArticleDetails = function (data) {
|
|
1762
2062
|
return __awaiter(this, void 0, void 0, function () {
|
|
1763
2063
|
return __generator(this, function (_a) {
|
|
1764
2064
|
switch (_a.label) {
|
|
1765
|
-
case 0: return [4 /*yield*/, this.
|
|
2065
|
+
case 0: return [4 /*yield*/, this.connector.getArticleDetails(data)];
|
|
1766
2066
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1767
2067
|
}
|
|
1768
2068
|
});
|
|
@@ -1772,7 +2072,7 @@
|
|
|
1772
2072
|
return __awaiter(this, void 0, void 0, function () {
|
|
1773
2073
|
return __generator(this, function (_a) {
|
|
1774
2074
|
switch (_a.label) {
|
|
1775
|
-
case 0: return [4 /*yield*/, this.
|
|
2075
|
+
case 0: return [4 /*yield*/, this.connector.updateArticleDetails(data)];
|
|
1776
2076
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1777
2077
|
}
|
|
1778
2078
|
});
|
|
@@ -1782,7 +2082,7 @@
|
|
|
1782
2082
|
return __awaiter(this, void 0, void 0, function () {
|
|
1783
2083
|
return __generator(this, function (_a) {
|
|
1784
2084
|
switch (_a.label) {
|
|
1785
|
-
case 0: return [4 /*yield*/, this.
|
|
2085
|
+
case 0: return [4 /*yield*/, this.connector.getStockStatus()];
|
|
1786
2086
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1787
2087
|
}
|
|
1788
2088
|
});
|
|
@@ -1792,7 +2092,7 @@
|
|
|
1792
2092
|
return __awaiter(this, void 0, void 0, function () {
|
|
1793
2093
|
return __generator(this, function (_a) {
|
|
1794
2094
|
switch (_a.label) {
|
|
1795
|
-
case 0: return [4 /*yield*/, this.
|
|
2095
|
+
case 0: return [4 /*yield*/, this.connector.getStockStickerTemplates(data)];
|
|
1796
2096
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1797
2097
|
}
|
|
1798
2098
|
});
|
|
@@ -1802,7 +2102,7 @@
|
|
|
1802
2102
|
return __awaiter(this, void 0, void 0, function () {
|
|
1803
2103
|
return __generator(this, function (_a) {
|
|
1804
2104
|
switch (_a.label) {
|
|
1805
|
-
case 0: return [4 /*yield*/, this.
|
|
2105
|
+
case 0: return [4 /*yield*/, this.connector.getStockManagementWarehouses()];
|
|
1806
2106
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1807
2107
|
}
|
|
1808
2108
|
});
|
|
@@ -1812,7 +2112,17 @@
|
|
|
1812
2112
|
return __awaiter(this, void 0, void 0, function () {
|
|
1813
2113
|
return __generator(this, function (_a) {
|
|
1814
2114
|
switch (_a.label) {
|
|
1815
|
-
case 0: return [4 /*yield*/, this.
|
|
2115
|
+
case 0: return [4 /*yield*/, this.connector.getStockManagementLocations(warehouseNo)];
|
|
2116
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
2117
|
+
}
|
|
2118
|
+
});
|
|
2119
|
+
});
|
|
2120
|
+
};
|
|
2121
|
+
StockService.prototype.getArticleTransaction = function (data) {
|
|
2122
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2123
|
+
return __generator(this, function (_a) {
|
|
2124
|
+
switch (_a.label) {
|
|
2125
|
+
case 0: return [4 /*yield*/, this.connector.getArticleTransaction(data)];
|
|
1816
2126
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1817
2127
|
}
|
|
1818
2128
|
});
|
|
@@ -1822,37 +2132,48 @@
|
|
|
1822
2132
|
return __awaiter(this, void 0, void 0, function () {
|
|
1823
2133
|
return __generator(this, function (_a) {
|
|
1824
2134
|
switch (_a.label) {
|
|
1825
|
-
case 0: return [4 /*yield*/, this.
|
|
2135
|
+
case 0: return [4 /*yield*/, this.connector.lockArticleDetails(data)];
|
|
1826
2136
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1827
2137
|
}
|
|
1828
2138
|
});
|
|
1829
2139
|
});
|
|
1830
2140
|
};
|
|
1831
2141
|
StockService.prototype.commit = function () {
|
|
1832
|
-
return this.
|
|
2142
|
+
return this.connector.commit();
|
|
1833
2143
|
};
|
|
1834
2144
|
return StockService;
|
|
1835
|
-
}());
|
|
2145
|
+
}(SharedService));
|
|
2146
|
+
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
2147
|
StockService.decorators = [
|
|
1837
|
-
{ type: i0.Injectable
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
]; };
|
|
2148
|
+
{ type: i0.Injectable, args: [{
|
|
2149
|
+
providedIn: 'root',
|
|
2150
|
+
},] }
|
|
2151
|
+
];
|
|
1842
2152
|
|
|
1843
2153
|
var StockComponent = /** @class */ (function () {
|
|
1844
|
-
function StockComponent(stockService) {
|
|
2154
|
+
function StockComponent(stockService, _optionsService) {
|
|
1845
2155
|
this.stockService = stockService;
|
|
2156
|
+
this._optionsService = _optionsService;
|
|
1846
2157
|
this.handleStickerClicked = new i0.EventEmitter();
|
|
1847
2158
|
this.showStockInformationGrid = true;
|
|
1848
2159
|
this.showStockLocation = false;
|
|
1849
2160
|
this.showStockTransfer = false;
|
|
1850
2161
|
this.allAvailableStock = 0;
|
|
1851
2162
|
this.allTechnicalStock = 0;
|
|
2163
|
+
this._publicOptions = true;
|
|
1852
2164
|
}
|
|
1853
2165
|
Object.defineProperty(StockComponent.prototype, "options", {
|
|
1854
2166
|
set: function (value) {
|
|
1855
|
-
|
|
2167
|
+
if (value) {
|
|
2168
|
+
if (typeof value === "string") {
|
|
2169
|
+
this._options = JSON.parse(value);
|
|
2170
|
+
}
|
|
2171
|
+
else {
|
|
2172
|
+
this._options = value;
|
|
2173
|
+
}
|
|
2174
|
+
this._publicOptions = true;
|
|
2175
|
+
this._optionsService.initialize(this._options).then();
|
|
2176
|
+
}
|
|
1856
2177
|
},
|
|
1857
2178
|
enumerable: false,
|
|
1858
2179
|
configurable: true
|
|
@@ -1877,7 +2198,7 @@
|
|
|
1877
2198
|
this.stockTransferArticleDetails = event;
|
|
1878
2199
|
this.showStockTransfer = !this.showStockTransfer;
|
|
1879
2200
|
this.showStockInformationGrid = !this.showStockInformationGrid;
|
|
1880
|
-
this.stockService.stockStickers = new printStockStickers
|
|
2201
|
+
this.stockService.stockStickers = new printStockStickers.PrintStockStickers();
|
|
1881
2202
|
};
|
|
1882
2203
|
StockComponent.prototype.backToStock = function () {
|
|
1883
2204
|
this.showStockTransfer = !this.showStockTransfer;
|
|
@@ -1932,7 +2253,8 @@
|
|
|
1932
2253
|
},] }
|
|
1933
2254
|
];
|
|
1934
2255
|
StockComponent.ctorParameters = function () { return [
|
|
1935
|
-
{ type: StockService }
|
|
2256
|
+
{ type: StockService },
|
|
2257
|
+
{ type: OptionsService }
|
|
1936
2258
|
]; };
|
|
1937
2259
|
StockComponent.propDecorators = {
|
|
1938
2260
|
stock: [{ type: i0.ViewChild, args: [StockComponent,] }],
|
|
@@ -2101,13 +2423,13 @@
|
|
|
2101
2423
|
this.articleStockSearchInfo.goodId = data.goodId.toString();
|
|
2102
2424
|
this.articleStockSearchInfo.wareHouseNo = data.warehouseNo.toString();
|
|
2103
2425
|
this.articleStockSearchInfo.viewKind = "D";
|
|
2426
|
+
this.selectedWarehouse = data.warehouseNo;
|
|
2104
2427
|
if (!this.dataWareHouseCode) {
|
|
2105
2428
|
this.getStockManagementWarehouses(data);
|
|
2106
2429
|
}
|
|
2107
2430
|
this.getArticleDetails(data);
|
|
2108
2431
|
this.hideOrShowTabs = false;
|
|
2109
2432
|
this.hideOrShowLocationTab = true;
|
|
2110
|
-
console.log(this.articleDetailsInformation);
|
|
2111
2433
|
this._stockService.lockArticleDetails(this.articleDetailsInformation);
|
|
2112
2434
|
};
|
|
2113
2435
|
StockInformationGridComponent.prototype.handleHistoryClick = function () {
|
|
@@ -2130,17 +2452,18 @@
|
|
|
2130
2452
|
this.activeTab = this.tabs[0];
|
|
2131
2453
|
this.hideOrShowTabs = true;
|
|
2132
2454
|
this.hideOrShowLocationTab = false;
|
|
2455
|
+
this.articleDetails = undefined;
|
|
2133
2456
|
return [2 /*return*/];
|
|
2134
2457
|
});
|
|
2135
2458
|
});
|
|
2136
2459
|
};
|
|
2137
|
-
StockInformationGridComponent.prototype.openSendMethodDialog = function () {
|
|
2460
|
+
StockInformationGridComponent.prototype.openSendMethodDialog = function (data) {
|
|
2461
|
+
this._stockService.printSticker.goodId = data.goodId;
|
|
2462
|
+
this._stockService.printSticker.warehouse = data.warehouseNo;
|
|
2138
2463
|
this.showSendMethodDialog = !this.showSendMethodDialog;
|
|
2139
2464
|
};
|
|
2140
2465
|
StockInformationGridComponent.prototype.printStockStickers = function () {
|
|
2141
|
-
this.
|
|
2142
|
-
this.printSticker.goodId = 10;
|
|
2143
|
-
// this._stockService.getPrintStockStickers(this.printSticker);
|
|
2466
|
+
this._stockService.getPrintStockStickers(this._stockService.printSticker);
|
|
2144
2467
|
};
|
|
2145
2468
|
StockInformationGridComponent.prototype.onOkClick = function () {
|
|
2146
2469
|
};
|
|
@@ -2170,8 +2493,7 @@
|
|
|
2170
2493
|
StockInformationGridComponent.prototype.onSelectWarehouse = function (event) {
|
|
2171
2494
|
var _this = this;
|
|
2172
2495
|
this.articleDetailsInformation.warehouseNumber = event;
|
|
2173
|
-
|
|
2174
|
-
if (this.dataWareHouseCode != null) {
|
|
2496
|
+
if (this.selectedWarehouse || this.selectedWarehouse === 0) {
|
|
2175
2497
|
this._stockService.getArticleDetails(this.articleDetailsInformation).then(function (details) {
|
|
2176
2498
|
_this.articleDetails = details;
|
|
2177
2499
|
});
|
|
@@ -2183,15 +2505,14 @@
|
|
|
2183
2505
|
return __generator(this, function (_b) {
|
|
2184
2506
|
switch (_b.label) {
|
|
2185
2507
|
case 0:
|
|
2186
|
-
inOrderData = new
|
|
2187
|
-
inOrderData.type = "
|
|
2508
|
+
inOrderData = new articleTransaction.ArticleTransaction();
|
|
2509
|
+
inOrderData.type = "V";
|
|
2188
2510
|
inOrderData.goodId = this.articleStockInformation[0].goodId.toString();
|
|
2189
|
-
// inOrderData.wareHouseNr = Number(this.articleStockInformation[0].warehouseNo);
|
|
2190
2511
|
_a = this;
|
|
2191
|
-
return [4 /*yield*/, this._stockService.
|
|
2512
|
+
return [4 /*yield*/, this._stockService.getArticleTransaction(inOrderData)];
|
|
2192
2513
|
case 1:
|
|
2193
|
-
// inOrderData.wareHouseNr = Number(this.articleStockInformation[0].warehouseNo);
|
|
2194
2514
|
_a.inOrderInformation = _b.sent();
|
|
2515
|
+
console.log(this.inOrderInformation);
|
|
2195
2516
|
return [2 /*return*/];
|
|
2196
2517
|
}
|
|
2197
2518
|
});
|
|
@@ -2199,30 +2520,30 @@
|
|
|
2199
2520
|
};
|
|
2200
2521
|
StockInformationGridComponent.prototype.getOrderData = function () {
|
|
2201
2522
|
return __awaiter(this, void 0, void 0, function () {
|
|
2202
|
-
var
|
|
2523
|
+
var orderData, _a;
|
|
2203
2524
|
return __generator(this, function (_b) {
|
|
2204
2525
|
switch (_b.label) {
|
|
2205
2526
|
case 0:
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
// inOrderData.wareHouseNr = Number(this.articleStockInformation[0].warehouseNo);
|
|
2527
|
+
orderData = new articleTransaction.ArticleTransaction();
|
|
2528
|
+
orderData.type = "V";
|
|
2529
|
+
orderData.goodId = this.articleStockInformation[0].goodId.toString();
|
|
2210
2530
|
_a = this;
|
|
2211
|
-
return [4 /*yield*/, this._stockService.
|
|
2531
|
+
return [4 /*yield*/, this._stockService.getArticleTransaction(orderData)];
|
|
2212
2532
|
case 1:
|
|
2213
|
-
// inOrderData.wareHouseNr = Number(this.articleStockInformation[0].warehouseNo);
|
|
2214
2533
|
_a.orderInformation = _b.sent();
|
|
2215
2534
|
return [2 /*return*/];
|
|
2216
2535
|
}
|
|
2217
2536
|
});
|
|
2218
2537
|
});
|
|
2219
2538
|
};
|
|
2539
|
+
StockInformationGridComponent.prototype.addNewRow = function () {
|
|
2540
|
+
};
|
|
2220
2541
|
return StockInformationGridComponent;
|
|
2221
2542
|
}());
|
|
2222
2543
|
StockInformationGridComponent.decorators = [
|
|
2223
2544
|
{ type: i0.Component, args: [{
|
|
2224
2545
|
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 ",
|
|
2546
|
+
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
2547
|
encapsulation: i0.ViewEncapsulation.None
|
|
2227
2548
|
},] }
|
|
2228
2549
|
];
|
|
@@ -2367,52 +2688,92 @@
|
|
|
2367
2688
|
})(SendOption || (SendOption = {}));
|
|
2368
2689
|
|
|
2369
2690
|
var SendMethodDialogComponent = /** @class */ (function () {
|
|
2370
|
-
function SendMethodDialogComponent(iconCacheService,
|
|
2691
|
+
function SendMethodDialogComponent(iconCacheService, stockService, _optionsService, _dictionary, _changeDetector) {
|
|
2692
|
+
var _this = this;
|
|
2371
2693
|
this.iconCacheService = iconCacheService;
|
|
2372
|
-
this.
|
|
2694
|
+
this.stockService = stockService;
|
|
2695
|
+
this._optionsService = _optionsService;
|
|
2696
|
+
this._dictionary = _dictionary;
|
|
2697
|
+
this._changeDetector = _changeDetector;
|
|
2373
2698
|
this.icons = Icon;
|
|
2374
2699
|
this.sendOption = SendOption;
|
|
2700
|
+
this.showEmailOption = true;
|
|
2701
|
+
this.showPrintOption = true;
|
|
2702
|
+
this.showPdfOption = true;
|
|
2703
|
+
this.showXmlOption = true;
|
|
2375
2704
|
this.sendOptions = [
|
|
2376
2705
|
{ option: SendOption.Email,
|
|
2377
|
-
iconName: this.icons.Email
|
|
2706
|
+
iconName: this.icons.Email,
|
|
2707
|
+
show: this.showEmailOption,
|
|
2708
|
+
},
|
|
2378
2709
|
{ option: SendOption.Print,
|
|
2379
|
-
iconName: this.icons.Print
|
|
2710
|
+
iconName: this.icons.Print,
|
|
2711
|
+
show: this.showPrintOption,
|
|
2712
|
+
},
|
|
2380
2713
|
{ option: SendOption.Pdf,
|
|
2381
|
-
iconName: this.icons.Pdf
|
|
2714
|
+
iconName: this.icons.Pdf,
|
|
2715
|
+
show: this.showPdfOption,
|
|
2716
|
+
},
|
|
2382
2717
|
{ option: SendOption.Xml,
|
|
2383
|
-
iconName: this.icons.Xml
|
|
2718
|
+
iconName: this.icons.Xml,
|
|
2719
|
+
show: this.showXmlOption,
|
|
2720
|
+
}
|
|
2384
2721
|
];
|
|
2385
2722
|
this.activeSendOption = SendOption.Email;
|
|
2386
|
-
this.amountToPrint = 1;
|
|
2387
2723
|
this.showStandardPrinterOptions = false;
|
|
2388
2724
|
this.showPrinterSelections = false;
|
|
2389
2725
|
this.showExitButton = true;
|
|
2390
|
-
this.printTemplatesField = { text: "name", value: "
|
|
2726
|
+
this.printTemplatesField = { text: "name", value: "reportId" };
|
|
2727
|
+
this.upAndLoaded = false;
|
|
2391
2728
|
this.emails = ['lars.vdv@colijn-it.nl', 'david@colijn-it.nl', 'ruben@colijn-it.nl'];
|
|
2392
2729
|
this.models = [false, false, true];
|
|
2393
2730
|
this.layouts = ['Layout 1', 'Layout 2', 'Layout 3'];
|
|
2394
2731
|
this.showDialog = false;
|
|
2395
2732
|
this.startSignatureClicked = new i0.EventEmitter();
|
|
2396
2733
|
this.printButtonClicked = new i0.EventEmitter();
|
|
2734
|
+
this._subscriptions = [];
|
|
2735
|
+
this._publicOptions = true;
|
|
2736
|
+
this._subscriptions.push(this._optionsService.optionsLoaded.subscribe(function (loaded) { return _this._handleSettingsLoaded(loaded); }));
|
|
2397
2737
|
}
|
|
2398
2738
|
Object.defineProperty(SendMethodDialogComponent.prototype, "options", {
|
|
2739
|
+
get: function () {
|
|
2740
|
+
return this._options;
|
|
2741
|
+
},
|
|
2399
2742
|
set: function (value) {
|
|
2400
|
-
|
|
2743
|
+
if (value) {
|
|
2744
|
+
if (typeof value === "string") {
|
|
2745
|
+
this._options = JSON.parse(value);
|
|
2746
|
+
}
|
|
2747
|
+
else {
|
|
2748
|
+
this._options = value;
|
|
2749
|
+
}
|
|
2750
|
+
this._publicOptions = true;
|
|
2751
|
+
this._optionsService.initialize(this._options).then();
|
|
2752
|
+
}
|
|
2401
2753
|
},
|
|
2402
2754
|
enumerable: false,
|
|
2403
2755
|
configurable: true
|
|
2404
2756
|
});
|
|
2757
|
+
Object.defineProperty(SendMethodDialogComponent.prototype, "articleData", {
|
|
2758
|
+
set: function (data) {
|
|
2759
|
+
this.stockService.printSticker.goodId = data.goodId;
|
|
2760
|
+
this.stockService.printSticker.warehouse = data.warehouseNo;
|
|
2761
|
+
},
|
|
2762
|
+
enumerable: false,
|
|
2763
|
+
configurable: true
|
|
2764
|
+
});
|
|
2765
|
+
;
|
|
2405
2766
|
SendMethodDialogComponent.prototype.showClass = function () {
|
|
2406
2767
|
return true;
|
|
2407
2768
|
};
|
|
2408
|
-
SendMethodDialogComponent.prototype.
|
|
2409
|
-
this.
|
|
2769
|
+
SendMethodDialogComponent.prototype.ngOnDestroy = function () {
|
|
2770
|
+
this._subscriptions.forEach(function (subscription) { return subscription.unsubscribe(); });
|
|
2410
2771
|
};
|
|
2411
2772
|
SendMethodDialogComponent.prototype.getPrinters = function () {
|
|
2412
2773
|
return __awaiter(this, void 0, void 0, function () {
|
|
2413
2774
|
var _this = this;
|
|
2414
2775
|
return __generator(this, function (_a) {
|
|
2415
|
-
return [2 /*return*/, this.
|
|
2776
|
+
return [2 /*return*/, this.stockService.getAllPrinters(true).then(function (list) {
|
|
2416
2777
|
_this.printerList = list;
|
|
2417
2778
|
})];
|
|
2418
2779
|
});
|
|
@@ -2425,7 +2786,11 @@
|
|
|
2425
2786
|
this.startSignatureClicked.emit();
|
|
2426
2787
|
};
|
|
2427
2788
|
SendMethodDialogComponent.prototype.handlePrintClicked = function () {
|
|
2428
|
-
this.printButtonClicked.emit();
|
|
2789
|
+
// this.printButtonClicked.emit();
|
|
2790
|
+
console.log(this.stockService.printSticker);
|
|
2791
|
+
if (this.stockService.printSticker.printerName) {
|
|
2792
|
+
this.stockService.getPrintStockStickers(this.stockService.printSticker);
|
|
2793
|
+
}
|
|
2429
2794
|
};
|
|
2430
2795
|
SendMethodDialogComponent.prototype.togglePrinterSelection = function () {
|
|
2431
2796
|
this.getPrinters();
|
|
@@ -2440,13 +2805,53 @@
|
|
|
2440
2805
|
};
|
|
2441
2806
|
SendMethodDialogComponent.prototype.onPrinterClicked = function (printer) {
|
|
2442
2807
|
this.defaultPrinter = printer.name;
|
|
2808
|
+
this.stockService.printSticker.printerName = printer.name;
|
|
2443
2809
|
this.showPrinterSelections = !this.showPrinterSelections;
|
|
2444
2810
|
};
|
|
2445
2811
|
SendMethodDialogComponent.prototype.getPrintTemplates = function () {
|
|
2446
2812
|
var _this = this;
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2813
|
+
if (!this.printTemplates) {
|
|
2814
|
+
var data = new stockStickersPrintLayouts_bo.StockStickersPrintLayoutsBo();
|
|
2815
|
+
this.stockService.getStockStickerTemplates(data).then(function (templates) {
|
|
2816
|
+
_this.printTemplates = templates;
|
|
2817
|
+
});
|
|
2818
|
+
}
|
|
2819
|
+
};
|
|
2820
|
+
SendMethodDialogComponent.prototype._handleSettingsLoaded = function (loaded) {
|
|
2821
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2822
|
+
return __generator(this, function (_a) {
|
|
2823
|
+
switch (_a.label) {
|
|
2824
|
+
case 0:
|
|
2825
|
+
if (!loaded) return [3 /*break*/, 2];
|
|
2826
|
+
return [4 /*yield*/, this._initConnection().then()];
|
|
2827
|
+
case 1:
|
|
2828
|
+
_a.sent();
|
|
2829
|
+
this.upAndLoaded = true;
|
|
2830
|
+
_a.label = 2;
|
|
2831
|
+
case 2: return [2 /*return*/];
|
|
2832
|
+
}
|
|
2833
|
+
});
|
|
2834
|
+
});
|
|
2835
|
+
};
|
|
2836
|
+
SendMethodDialogComponent.prototype._initConnection = function () {
|
|
2837
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2838
|
+
var _this = this;
|
|
2839
|
+
return __generator(this, function (_a) {
|
|
2840
|
+
switch (_a.label) {
|
|
2841
|
+
case 0:
|
|
2842
|
+
// await this._connector.connect(this._optionsService.options);
|
|
2843
|
+
if (this._optionsService.options.url) {
|
|
2844
|
+
this._dictionary.rootUrl = this._optionsService.options.url.replace("/ajaxservice", "");
|
|
2845
|
+
}
|
|
2846
|
+
return [4 /*yield*/, this._dictionary.setDictionary(this._optionsService.options.languageCode)];
|
|
2847
|
+
case 1:
|
|
2848
|
+
_a.sent();
|
|
2849
|
+
setTimeout(function () {
|
|
2850
|
+
_this._changeDetector.detectChanges();
|
|
2851
|
+
});
|
|
2852
|
+
return [2 /*return*/];
|
|
2853
|
+
}
|
|
2854
|
+
});
|
|
2450
2855
|
});
|
|
2451
2856
|
};
|
|
2452
2857
|
return SendMethodDialogComponent;
|
|
@@ -2454,7 +2859,7 @@
|
|
|
2454
2859
|
SendMethodDialogComponent.decorators = [
|
|
2455
2860
|
{ type: i0.Component, args: [{
|
|
2456
2861
|
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\" *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)]=\"
|
|
2862
|
+
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\" (click)=\"getPrintTemplates()\">\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\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
2863
|
encapsulation: i0.ViewEncapsulation.None,
|
|
2459
2864
|
animations: [
|
|
2460
2865
|
animations.trigger('slideInOut', [
|
|
@@ -2467,13 +2872,21 @@
|
|
|
2467
2872
|
];
|
|
2468
2873
|
SendMethodDialogComponent.ctorParameters = function () { return [
|
|
2469
2874
|
{ type: IconCacheService },
|
|
2470
|
-
{ type: StockService }
|
|
2875
|
+
{ type: StockService },
|
|
2876
|
+
{ type: OptionsService },
|
|
2877
|
+
{ type: DictionaryService },
|
|
2878
|
+
{ type: i0.ChangeDetectorRef }
|
|
2471
2879
|
]; };
|
|
2472
2880
|
SendMethodDialogComponent.propDecorators = {
|
|
2881
|
+
showEmailOption: [{ type: i0.Input }],
|
|
2882
|
+
showPrintOption: [{ type: i0.Input }],
|
|
2883
|
+
showPdfOption: [{ type: i0.Input }],
|
|
2884
|
+
showXmlOption: [{ type: i0.Input }],
|
|
2473
2885
|
options: [{ type: i0.Input }],
|
|
2474
2886
|
showDialog: [{ type: i0.Input }],
|
|
2475
2887
|
headerTitle: [{ type: i0.Input }],
|
|
2476
2888
|
printerList: [{ type: i0.Input }],
|
|
2889
|
+
articleData: [{ type: i0.Input }],
|
|
2477
2890
|
startSignatureClicked: [{ type: i0.Output }],
|
|
2478
2891
|
printButtonClicked: [{ type: i0.Output }],
|
|
2479
2892
|
showClass: [{ type: i0.HostBinding, args: ["class.ione-send-method-dialog",] }]
|
|
@@ -2595,7 +3008,7 @@
|
|
|
2595
3008
|
],
|
|
2596
3009
|
providers: [
|
|
2597
3010
|
StockService,
|
|
2598
|
-
|
|
3011
|
+
SharedConnectorService
|
|
2599
3012
|
]
|
|
2600
3013
|
},] }
|
|
2601
3014
|
];
|
|
@@ -2921,18 +3334,21 @@
|
|
|
2921
3334
|
exports.LayoutSwitcherModule = LayoutSwitcherModule;
|
|
2922
3335
|
exports.SendMethodDialogComponent = SendMethodDialogComponent;
|
|
2923
3336
|
exports.SendMethodDialogModule = SendMethodDialogModule;
|
|
3337
|
+
exports.SharedService = SharedService;
|
|
2924
3338
|
exports.StockComponent = StockComponent;
|
|
2925
3339
|
exports.StockModule = StockModule;
|
|
2926
3340
|
exports["ɵa"] = SignatureComponent;
|
|
2927
3341
|
exports["ɵb"] = SignaturesComponent;
|
|
2928
3342
|
exports["ɵc"] = StockService;
|
|
2929
|
-
exports["ɵd"] =
|
|
2930
|
-
exports["ɵe"] =
|
|
2931
|
-
exports["ɵf"] =
|
|
2932
|
-
exports["ɵg"] =
|
|
2933
|
-
exports["ɵh"] =
|
|
2934
|
-
exports["ɵi"] =
|
|
2935
|
-
exports["ɵj"] =
|
|
3343
|
+
exports["ɵd"] = OptionsService;
|
|
3344
|
+
exports["ɵe"] = DictionaryService;
|
|
3345
|
+
exports["ɵf"] = SharedConnectorService;
|
|
3346
|
+
exports["ɵg"] = IconCacheService;
|
|
3347
|
+
exports["ɵh"] = StockInformationComponent;
|
|
3348
|
+
exports["ɵi"] = StockInformationGridComponent;
|
|
3349
|
+
exports["ɵj"] = StockLocationComponent;
|
|
3350
|
+
exports["ɵk"] = StockTransferComponent;
|
|
3351
|
+
exports["ɵl"] = StockChangeAmountComponent;
|
|
2936
3352
|
|
|
2937
3353
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2938
3354
|
|