@colijnit/sharedcomponents 1.0.17 → 1.0.18
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 +96 -67
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +11 -10
- 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 +2 -2
- package/esm2015/lib/service/ione-connector-adapter.service.js +32 -18
- package/esm2015/lib/service/stock.service.js +22 -10
- package/fesm2015/colijnit-sharedcomponents.js +100 -67
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +3 -3
- 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 +1 -1
- package/lib/components/stock/style/_layout.scss +6 -0
- package/lib/service/ione-connector-adapter.service.d.ts +4 -2
- package/lib/service/stock.service.d.ts +7 -3
- package/package.json +1 -1
|
@@ -24,20 +24,21 @@ import { BooleanTextDecorator as BooleanTextDecorator$1 } from '@colijnit/articl
|
|
|
24
24
|
import { JsonFieldFieldDecorator } from '@colijnit/articleapi/build/factory/decorators/json.decorator';
|
|
25
25
|
import { ComplexArrayDecorator as ComplexArrayDecorator$1 } from '@colijnit/articleapi/build/factory/decorators/complex-array.decorator';
|
|
26
26
|
import { PrintStockStickers } from '@colijnit/sharedapi/build/model/print-stock-stickers';
|
|
27
|
-
import {
|
|
27
|
+
import { ArticleStock } from '@colijnit/articleapi/build/model/article-stock.bo';
|
|
28
28
|
import { StockHistoryBo } from '@colijnit/articleapi/build/model/stock-history.bo';
|
|
29
29
|
import { StockStickersPrintLayoutsBo } from '@colijnit/sharedapi/build/model/report/stock-stickers-print-layouts.bo';
|
|
30
30
|
import { ArticleDetailsBo } from '@colijnit/articleapi/build/model/article-details.bo';
|
|
31
31
|
import { StockStatus } from '@colijnit/articleapi/build/model/stock-status.bo';
|
|
32
32
|
import { StockManagementWarehouses } from '@colijnit/articleapi/build/model/stock-management-warehouses.bo';
|
|
33
33
|
import { StockLocation } from '@colijnit/articleapi/build/model/stock-location.bo';
|
|
34
|
-
import {
|
|
34
|
+
import { ArticleTransaction } from '@colijnit/articleapi/build/model/article-transaction.bo';
|
|
35
35
|
import { GetStockHistoryRequest } from '@colijnit/articleapi/build/model/get-stock-history-request';
|
|
36
|
-
import { ArticleStock } from '@colijnit/articleapi/build/model/article-stock';
|
|
36
|
+
import { ArticleStock as ArticleStock$1 } from '@colijnit/articleapi/build/model/article-stock';
|
|
37
37
|
import { CoDialogPromptModule, InputCheckboxModule, InputComboBoxModule, IconModule, InputNumberPickerModule, CoDialogWizardModule, ButtonModule, CoGridModule, InputRadioButtonModule, DropDownModule, SimpleGridModule, ImageModule, InputTextModule, InputTextareaModule } from '@colijnit/corecomponents_v12';
|
|
38
38
|
import * as i1 from '@angular/platform-browser';
|
|
39
39
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
40
40
|
import { ArticleStockManagement } from '@colijnit/articleapi/build/model/article-stock-management';
|
|
41
|
+
import { ArticleTransaction as ArticleTransaction$1 } from '@colijnit/articleapi/build/model/article-transaction';
|
|
41
42
|
|
|
42
43
|
class DocsignComponent {
|
|
43
44
|
constructor() {
|
|
@@ -1099,22 +1100,19 @@ class IoneConnectorAdapterService {
|
|
|
1099
1100
|
});
|
|
1100
1101
|
});
|
|
1101
1102
|
}
|
|
1102
|
-
getStockStickerPrintLayouts(stockStickersPrintLayoutsBo) {
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
});
|
|
1116
|
-
});
|
|
1117
|
-
}
|
|
1103
|
+
// public async getStockStickerPrintLayouts(stockStickersPrintLayoutsBo: StockStickersPrintLayoutsBo): Promise<StockStickersPrintLayoutsBo[]> {
|
|
1104
|
+
// return new Promise((resolve: Function, reject: Function) => {
|
|
1105
|
+
// return this.sharedConnector.getStockStickerPrintLayouts(stockStickersPrintLayoutsBo).then((result: DataServiceResponse) => {
|
|
1106
|
+
// if (result.validationResult && result.validationResult.success) {
|
|
1107
|
+
// if (result.resultObject) {
|
|
1108
|
+
// resolve(this._boFactory.makeWithRawBackendData(stockStickersPrintLayoutsBo, result.resultObject));
|
|
1109
|
+
// }
|
|
1110
|
+
// } else {
|
|
1111
|
+
// reject(result.validationMessagesAsString);
|
|
1112
|
+
// }
|
|
1113
|
+
// })
|
|
1114
|
+
// })
|
|
1115
|
+
// }
|
|
1118
1116
|
getArticleFullObject(goodId) {
|
|
1119
1117
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1120
1118
|
return new Promise((resolve, reject) => {
|
|
@@ -1152,7 +1150,7 @@ class IoneConnectorAdapterService {
|
|
|
1152
1150
|
return this.connector.getStockInformation(data).then((result) => {
|
|
1153
1151
|
if (result.validationResult && result.validationResult.success) {
|
|
1154
1152
|
if (result.resultObjects) {
|
|
1155
|
-
resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(
|
|
1153
|
+
resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleStock, result.resultObjects));
|
|
1156
1154
|
}
|
|
1157
1155
|
}
|
|
1158
1156
|
else {
|
|
@@ -1272,6 +1270,22 @@ class IoneConnectorAdapterService {
|
|
|
1272
1270
|
});
|
|
1273
1271
|
});
|
|
1274
1272
|
}
|
|
1273
|
+
getArticleTransaction(data) {
|
|
1274
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1275
|
+
return new Promise((resolve, reject) => {
|
|
1276
|
+
return this.connector.getArticleTransaction(data).then((result) => {
|
|
1277
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1278
|
+
if (result.resultObjects) {
|
|
1279
|
+
resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(ArticleTransaction, result.resultObjects));
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
else {
|
|
1283
|
+
reject(result.validationMessagesAsString);
|
|
1284
|
+
}
|
|
1285
|
+
});
|
|
1286
|
+
});
|
|
1287
|
+
});
|
|
1288
|
+
}
|
|
1275
1289
|
commit() {
|
|
1276
1290
|
return this.connector.commit();
|
|
1277
1291
|
}
|
|
@@ -1287,13 +1301,16 @@ IoneConnectorAdapterService.ctorParameters = () => [];
|
|
|
1287
1301
|
class StockService {
|
|
1288
1302
|
constructor(_connector) {
|
|
1289
1303
|
this._connector = _connector;
|
|
1304
|
+
this.printSticker = new PrintStockStickers();
|
|
1290
1305
|
}
|
|
1291
1306
|
connectConnector(options) {
|
|
1292
1307
|
this._connector.connect(options);
|
|
1293
1308
|
}
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1309
|
+
getPrintStockStickers(data) {
|
|
1310
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1311
|
+
yield this._connector.getPrintStockStickers(data);
|
|
1312
|
+
});
|
|
1313
|
+
}
|
|
1297
1314
|
getAllPrinters(showAll = true) {
|
|
1298
1315
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1299
1316
|
return yield this._connector.getAllPrinters(showAll);
|
|
@@ -1309,11 +1326,9 @@ class StockService {
|
|
|
1309
1326
|
return yield this._connector.getStockInformation(data);
|
|
1310
1327
|
});
|
|
1311
1328
|
}
|
|
1312
|
-
getStockStickerPrintLayouts(data) {
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
});
|
|
1316
|
-
}
|
|
1329
|
+
// public async getStockStickerPrintLayouts(data: StockStickersPrintLayoutsBo): Promise<StockStickersPrintLayoutsBo[]> {
|
|
1330
|
+
// return await this._connector.getStockStickerPrintLayouts(data);
|
|
1331
|
+
// }
|
|
1317
1332
|
getArticleDetails(data) {
|
|
1318
1333
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1319
1334
|
return yield this._connector.getArticleDetails(data);
|
|
@@ -1344,6 +1359,11 @@ class StockService {
|
|
|
1344
1359
|
return yield this._connector.getStockManagementLocations(warehouseNo);
|
|
1345
1360
|
});
|
|
1346
1361
|
}
|
|
1362
|
+
getArticleTransaction(data) {
|
|
1363
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1364
|
+
return yield this._connector.getArticleTransaction(data);
|
|
1365
|
+
});
|
|
1366
|
+
}
|
|
1347
1367
|
lockArticleDetails(data) {
|
|
1348
1368
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1349
1369
|
return yield this._connector.lockArticleDetails(data);
|
|
@@ -1353,8 +1373,11 @@ class StockService {
|
|
|
1353
1373
|
return this._connector.commit();
|
|
1354
1374
|
}
|
|
1355
1375
|
}
|
|
1376
|
+
StockService.ɵprov = i0.ɵɵdefineInjectable({ factory: function StockService_Factory() { return new StockService(i0.ɵɵinject(IoneConnectorAdapterService)); }, token: StockService, providedIn: "root" });
|
|
1356
1377
|
StockService.decorators = [
|
|
1357
|
-
{ type: Injectable
|
|
1378
|
+
{ type: Injectable, args: [{
|
|
1379
|
+
providedIn: 'root',
|
|
1380
|
+
},] }
|
|
1358
1381
|
];
|
|
1359
1382
|
StockService.ctorParameters = () => [
|
|
1360
1383
|
{ type: IoneConnectorAdapterService }
|
|
@@ -1389,7 +1412,7 @@ class StockComponent {
|
|
|
1389
1412
|
this.stockTransferArticleDetails = event;
|
|
1390
1413
|
this.showStockTransfer = !this.showStockTransfer;
|
|
1391
1414
|
this.showStockInformationGrid = !this.showStockInformationGrid;
|
|
1392
|
-
this.stockService.stockStickers = new PrintStockStickers
|
|
1415
|
+
this.stockService.stockStickers = new PrintStockStickers();
|
|
1393
1416
|
}
|
|
1394
1417
|
backToStock() {
|
|
1395
1418
|
this.showStockTransfer = !this.showStockTransfer;
|
|
@@ -1405,7 +1428,7 @@ class StockComponent {
|
|
|
1405
1428
|
}
|
|
1406
1429
|
getStockInformation(data) {
|
|
1407
1430
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1408
|
-
const articleData = new ArticleStock();
|
|
1431
|
+
const articleData = new ArticleStock$1();
|
|
1409
1432
|
articleData.goodId = data.goodId.toString();
|
|
1410
1433
|
articleData.viewKind = "M";
|
|
1411
1434
|
this.stockInformation = yield this.stockService.getStockInformation(articleData);
|
|
@@ -1605,7 +1628,7 @@ class StockInformationGridComponent {
|
|
|
1605
1628
|
this.showSendMethodDialog = false;
|
|
1606
1629
|
this.hideOrShowTabs = true;
|
|
1607
1630
|
this.dataWareHouseFields = { text: "warehouseDescription", value: "warehouseNo" };
|
|
1608
|
-
this.articleStockSearchInfo = new ArticleStock();
|
|
1631
|
+
this.articleStockSearchInfo = new ArticleStock$1();
|
|
1609
1632
|
this.showChangeStockDetails = false;
|
|
1610
1633
|
this.articleDetailsInformation = new ArticleStockManagement();
|
|
1611
1634
|
this.tabs = [
|
|
@@ -1641,13 +1664,13 @@ class StockInformationGridComponent {
|
|
|
1641
1664
|
this.articleStockSearchInfo.goodId = data.goodId.toString();
|
|
1642
1665
|
this.articleStockSearchInfo.wareHouseNo = data.warehouseNo.toString();
|
|
1643
1666
|
this.articleStockSearchInfo.viewKind = "D";
|
|
1667
|
+
this.selectedWarehouse = data.warehouseNo;
|
|
1644
1668
|
if (!this.dataWareHouseCode) {
|
|
1645
1669
|
this.getStockManagementWarehouses(data);
|
|
1646
1670
|
}
|
|
1647
1671
|
this.getArticleDetails(data);
|
|
1648
1672
|
this.hideOrShowTabs = false;
|
|
1649
1673
|
this.hideOrShowLocationTab = true;
|
|
1650
|
-
console.log(this.articleDetailsInformation);
|
|
1651
1674
|
this._stockService.lockArticleDetails(this.articleDetailsInformation);
|
|
1652
1675
|
}
|
|
1653
1676
|
handleHistoryClick() {
|
|
@@ -1669,15 +1692,16 @@ class StockInformationGridComponent {
|
|
|
1669
1692
|
this.activeTab = this.tabs[0];
|
|
1670
1693
|
this.hideOrShowTabs = true;
|
|
1671
1694
|
this.hideOrShowLocationTab = false;
|
|
1695
|
+
this.articleDetails = undefined;
|
|
1672
1696
|
});
|
|
1673
1697
|
}
|
|
1674
|
-
openSendMethodDialog() {
|
|
1698
|
+
openSendMethodDialog(data) {
|
|
1699
|
+
this._stockService.printSticker.goodId = data.goodId;
|
|
1700
|
+
this._stockService.printSticker.warehouse = data.warehouseNo;
|
|
1675
1701
|
this.showSendMethodDialog = !this.showSendMethodDialog;
|
|
1676
1702
|
}
|
|
1677
1703
|
printStockStickers() {
|
|
1678
|
-
this.printSticker
|
|
1679
|
-
this.printSticker.goodId = 10;
|
|
1680
|
-
// this._stockService.getPrintStockStickers(this.printSticker);
|
|
1704
|
+
this._stockService.getPrintStockStickers(this._stockService.printSticker);
|
|
1681
1705
|
}
|
|
1682
1706
|
onOkClick() {
|
|
1683
1707
|
}
|
|
@@ -1704,8 +1728,7 @@ class StockInformationGridComponent {
|
|
|
1704
1728
|
}
|
|
1705
1729
|
onSelectWarehouse(event) {
|
|
1706
1730
|
this.articleDetailsInformation.warehouseNumber = event;
|
|
1707
|
-
|
|
1708
|
-
if (this.dataWareHouseCode != null) {
|
|
1731
|
+
if (this.selectedWarehouse || this.selectedWarehouse === 0) {
|
|
1709
1732
|
this._stockService.getArticleDetails(this.articleDetailsInformation).then((details) => {
|
|
1710
1733
|
this.articleDetails = details;
|
|
1711
1734
|
});
|
|
@@ -1713,22 +1736,23 @@ class StockInformationGridComponent {
|
|
|
1713
1736
|
}
|
|
1714
1737
|
getInOrderData() {
|
|
1715
1738
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1716
|
-
const inOrderData = new
|
|
1717
|
-
inOrderData.type = "
|
|
1739
|
+
const inOrderData = new ArticleTransaction$1();
|
|
1740
|
+
inOrderData.type = "V";
|
|
1718
1741
|
inOrderData.goodId = this.articleStockInformation[0].goodId.toString();
|
|
1719
|
-
|
|
1720
|
-
this.inOrderInformation
|
|
1742
|
+
this.inOrderInformation = yield this._stockService.getArticleTransaction(inOrderData);
|
|
1743
|
+
console.log(this.inOrderInformation);
|
|
1721
1744
|
});
|
|
1722
1745
|
}
|
|
1723
1746
|
getOrderData() {
|
|
1724
1747
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1725
|
-
const
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
this.orderInformation = yield this._stockService.getStockHistory(inOrderData);
|
|
1748
|
+
const orderData = new ArticleTransaction$1();
|
|
1749
|
+
orderData.type = "V";
|
|
1750
|
+
orderData.goodId = this.articleStockInformation[0].goodId.toString();
|
|
1751
|
+
this.orderInformation = yield this._stockService.getArticleTransaction(orderData);
|
|
1730
1752
|
});
|
|
1731
1753
|
}
|
|
1754
|
+
addNewRow() {
|
|
1755
|
+
}
|
|
1732
1756
|
}
|
|
1733
1757
|
StockInformationGridComponent.decorators = [
|
|
1734
1758
|
{ type: Component, args: [{
|
|
@@ -1751,6 +1775,11 @@ StockInformationGridComponent.decorators = [
|
|
|
1751
1775
|
<div class="stock-grid">
|
|
1752
1776
|
<co-simple-grid *ngIf="activeTab === tabs[0] && hideOrShowTabs"
|
|
1753
1777
|
[data]="articleStockInformation"
|
|
1778
|
+
class="simple-grid"
|
|
1779
|
+
[showAdd]="true"
|
|
1780
|
+
[showToolbar]="true"
|
|
1781
|
+
(addRow)="addNewRow()"
|
|
1782
|
+
[inlineEdit]="true"
|
|
1754
1783
|
>
|
|
1755
1784
|
<co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'warehouseNo'" [order]="10"></co-simple-grid-column>
|
|
1756
1785
|
<co-simple-grid-column [headerText]="'DESCRIPTION'" [field]="'warehouseName'" [order]="11"></co-simple-grid-column>
|
|
@@ -1766,15 +1795,15 @@ StockInformationGridComponent.decorators = [
|
|
|
1766
1795
|
|
|
1767
1796
|
<co-simple-grid *ngIf="activeTab === tabs[1]"
|
|
1768
1797
|
[data]="inOrderInformation"
|
|
1798
|
+
class="simple-grid"
|
|
1769
1799
|
>
|
|
1770
|
-
<co-simple-grid-column [headerText]="'IN_ORDER2'" [field]="'
|
|
1800
|
+
<co-simple-grid-column [headerText]="'IN_ORDER2'" [field]="'transactionNr'"></co-simple-grid-column>
|
|
1771
1801
|
<co-simple-grid-column [headerText]="'CUSTOMER'" [field]="'user'"></co-simple-grid-column>
|
|
1772
|
-
<co-simple-grid-column [headerText]="'DATE'" [field]="'
|
|
1773
|
-
<co-simple-grid-column [headerText]="'AMOUNT'" [field]="'
|
|
1802
|
+
<co-simple-grid-column [headerText]="'DATE'" [field]="'transactionDate'"></co-simple-grid-column>
|
|
1803
|
+
<co-simple-grid-column [headerText]="'AMOUNT'" [field]="'amountInOrder'"></co-simple-grid-column>
|
|
1774
1804
|
<co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'wareHouseNr'"></co-simple-grid-column>
|
|
1775
1805
|
<co-simple-grid-column [headerText]="'DESCRIPTION'" [field]="'locationNr'"></co-simple-grid-column>
|
|
1776
1806
|
<co-simple-grid-column [headerText]="'STOCK'" [field]="'amountInStock'"></co-simple-grid-column>
|
|
1777
|
-
<co-simple-grid-column [headerText]="'COMMISSION2'" [field]="'commission'"></co-simple-grid-column>
|
|
1778
1807
|
<co-simple-grid-column [headerText]="'TRANSFER'" [field]="'transfer'">
|
|
1779
1808
|
<ng-template #template let-row="row">
|
|
1780
1809
|
<co-icon class="menu-icon" [iconData]="iconCacheService.getIcon(icons.DeliveryTruck)" (click)="handleStockTransferClick($event)"></co-icon>
|
|
@@ -1782,17 +1811,18 @@ StockInformationGridComponent.decorators = [
|
|
|
1782
1811
|
</co-simple-grid-column>
|
|
1783
1812
|
<co-simple-grid-column [headerText]="'STICKER'" [field]="'sticker'">
|
|
1784
1813
|
<ng-template #template let-row="row">
|
|
1785
|
-
<co-icon class="menu-icon" [iconData]="iconCacheService.getIcon(icons.Print)" (click)="openSendMethodDialog()"></co-icon>
|
|
1814
|
+
<co-icon class="menu-icon" [iconData]="iconCacheService.getIcon(icons.Print)" (click)="openSendMethodDialog(row)"></co-icon>
|
|
1786
1815
|
</ng-template>
|
|
1787
1816
|
</co-simple-grid-column>
|
|
1788
1817
|
</co-simple-grid>
|
|
1789
1818
|
|
|
1790
1819
|
<co-simple-grid *ngIf="activeTab === tabs[2]"
|
|
1791
1820
|
[data]="orderInformation"
|
|
1821
|
+
class="simple-grid"
|
|
1792
1822
|
>
|
|
1793
|
-
<co-simple-grid-column [headerText]="'PURCHASE_ORDER_NR'" [field]="'
|
|
1794
|
-
<co-simple-grid-column [headerText]="'DATE'" [field]="'
|
|
1795
|
-
<co-simple-grid-column [headerText]="'AMOUNT'" [field]="'
|
|
1823
|
+
<co-simple-grid-column [headerText]="'PURCHASE_ORDER_NR'" [field]="'transactionNr'"></co-simple-grid-column>
|
|
1824
|
+
<co-simple-grid-column [headerText]="'DATE'" [field]="'transactionDate'"></co-simple-grid-column>
|
|
1825
|
+
<co-simple-grid-column [headerText]="'AMOUNT'" [field]="'amountInOrder'"></co-simple-grid-column>
|
|
1796
1826
|
<co-simple-grid-column [headerText]="'RESERVED'" [field]="'reserved'"></co-simple-grid-column>
|
|
1797
1827
|
<co-simple-grid-column [headerText]="'FREE_STOCK'" [field]="'freeStock'"></co-simple-grid-column>
|
|
1798
1828
|
<co-simple-grid-column [headerText]="'DELIVERY_DATE1'" [field]="'deliveryDate'"></co-simple-grid-column>
|
|
@@ -1818,6 +1848,7 @@ StockInformationGridComponent.decorators = [
|
|
|
1818
1848
|
|
|
1819
1849
|
<!-- TODO move to own component stock-location-->
|
|
1820
1850
|
<co-simple-grid [data]="articleDetails"
|
|
1851
|
+
class="simple-grid"
|
|
1821
1852
|
>
|
|
1822
1853
|
<div class="stock-location-group">
|
|
1823
1854
|
<div class="stock-location-left-group">
|
|
@@ -1847,7 +1878,7 @@ StockInformationGridComponent.decorators = [
|
|
|
1847
1878
|
</co-simple-grid-column>
|
|
1848
1879
|
<co-simple-grid-column [headerText]="'STICKER'" [field]="'sticker'">
|
|
1849
1880
|
<ng-template #template let-row="row">
|
|
1850
|
-
<co-icon class="menu-icon" [iconData]="iconCacheService.getIcon(icons.Print)" (click)="openSendMethodDialog()"></co-icon>
|
|
1881
|
+
<co-icon class="menu-icon" [iconData]="iconCacheService.getIcon(icons.Print)" (click)="openSendMethodDialog(row)"></co-icon>
|
|
1851
1882
|
</ng-template>
|
|
1852
1883
|
</co-simple-grid-column>
|
|
1853
1884
|
</co-simple-grid>
|
|
@@ -1864,6 +1895,7 @@ StockInformationGridComponent.decorators = [
|
|
|
1864
1895
|
<span class="stock-button-back" [textContent]="'BACK_TO_STOCK_LINES'" (click)="backToStockInformation()"></span>
|
|
1865
1896
|
</div>
|
|
1866
1897
|
<co-simple-grid [data]="stockHistoryInformation"
|
|
1898
|
+
class="simple-grid"
|
|
1867
1899
|
>
|
|
1868
1900
|
<co-simple-grid-column [headerText]="'MUTATION_DATE'" [field]="'mutationDate'"></co-simple-grid-column>
|
|
1869
1901
|
<co-simple-grid-column [headerText]="'MUTATION_TIME'" [field]="'mutationTime'"></co-simple-grid-column>
|
|
@@ -1881,7 +1913,7 @@ StockInformationGridComponent.decorators = [
|
|
|
1881
1913
|
<co-simple-grid-column [headerText]="'MUTATION_TYPE'" [field]="'mutationType'"></co-simple-grid-column>
|
|
1882
1914
|
<co-simple-grid-column [headerText]="'STICKER'" [field]="'sticker'">
|
|
1883
1915
|
<ng-template #template let-row="row">
|
|
1884
|
-
<co-icon class="menu-icon" [iconData]="iconCacheService.getIcon(icons.Print)" (click)="openSendMethodDialog()"></co-icon>
|
|
1916
|
+
<co-icon class="menu-icon" [iconData]="iconCacheService.getIcon(icons.Print)" (click)="openSendMethodDialog(row)"></co-icon>
|
|
1885
1917
|
</ng-template>
|
|
1886
1918
|
</co-simple-grid-column>
|
|
1887
1919
|
</co-simple-grid>
|
|
@@ -2118,9 +2150,9 @@ var SendOption;
|
|
|
2118
2150
|
})(SendOption || (SendOption = {}));
|
|
2119
2151
|
|
|
2120
2152
|
class SendMethodDialogComponent {
|
|
2121
|
-
constructor(iconCacheService,
|
|
2153
|
+
constructor(iconCacheService, stockService) {
|
|
2122
2154
|
this.iconCacheService = iconCacheService;
|
|
2123
|
-
this.
|
|
2155
|
+
this.stockService = stockService;
|
|
2124
2156
|
this.icons = Icon;
|
|
2125
2157
|
this.sendOption = SendOption;
|
|
2126
2158
|
this.sendOptions = [
|
|
@@ -2134,11 +2166,10 @@ class SendMethodDialogComponent {
|
|
|
2134
2166
|
iconName: this.icons.Xml }
|
|
2135
2167
|
];
|
|
2136
2168
|
this.activeSendOption = SendOption.Email;
|
|
2137
|
-
this.amountToPrint = 1;
|
|
2138
2169
|
this.showStandardPrinterOptions = false;
|
|
2139
2170
|
this.showPrinterSelections = false;
|
|
2140
2171
|
this.showExitButton = true;
|
|
2141
|
-
this.printTemplatesField = { text: "name", value: "
|
|
2172
|
+
this.printTemplatesField = { text: "name", value: "reportId" };
|
|
2142
2173
|
this.emails = ['lars.vdv@colijn-it.nl', 'david@colijn-it.nl', 'ruben@colijn-it.nl'];
|
|
2143
2174
|
this.models = [false, false, true];
|
|
2144
2175
|
this.layouts = ['Layout 1', 'Layout 2', 'Layout 3'];
|
|
@@ -2147,7 +2178,7 @@ class SendMethodDialogComponent {
|
|
|
2147
2178
|
this.printButtonClicked = new EventEmitter();
|
|
2148
2179
|
}
|
|
2149
2180
|
set options(value) {
|
|
2150
|
-
this.
|
|
2181
|
+
this.stockService.connectConnector(value);
|
|
2151
2182
|
}
|
|
2152
2183
|
showClass() {
|
|
2153
2184
|
return true;
|
|
@@ -2157,7 +2188,7 @@ class SendMethodDialogComponent {
|
|
|
2157
2188
|
}
|
|
2158
2189
|
getPrinters() {
|
|
2159
2190
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2160
|
-
return this.
|
|
2191
|
+
return this.stockService.getAllPrinters(true).then((list) => {
|
|
2161
2192
|
this.printerList = list;
|
|
2162
2193
|
});
|
|
2163
2194
|
});
|
|
@@ -2184,11 +2215,12 @@ class SendMethodDialogComponent {
|
|
|
2184
2215
|
}
|
|
2185
2216
|
onPrinterClicked(printer) {
|
|
2186
2217
|
this.defaultPrinter = printer.name;
|
|
2218
|
+
this.stockService.printSticker.printerName = printer.name;
|
|
2187
2219
|
this.showPrinterSelections = !this.showPrinterSelections;
|
|
2188
2220
|
}
|
|
2189
2221
|
getPrintTemplates() {
|
|
2190
2222
|
const data = new StockStickersPrintLayoutsBo();
|
|
2191
|
-
this.
|
|
2223
|
+
this.stockService.getStockStickerTemplates(data).then((templates) => {
|
|
2192
2224
|
this.printTemplates = templates;
|
|
2193
2225
|
});
|
|
2194
2226
|
}
|
|
@@ -2242,7 +2274,7 @@ SendMethodDialogComponent.decorators = [
|
|
|
2242
2274
|
<div class="email-option-content" *ngIf="activeSendOption === sendOption.Print">
|
|
2243
2275
|
<div class="lov-wrapper">
|
|
2244
2276
|
<co-input-combo-box
|
|
2245
|
-
[(model)]="
|
|
2277
|
+
[(model)]="stockService.printSticker.reportId"
|
|
2246
2278
|
[collection]="printTemplates"
|
|
2247
2279
|
[fields]="printTemplatesField"
|
|
2248
2280
|
[forceReadonly]="true"
|
|
@@ -2286,7 +2318,7 @@ SendMethodDialogComponent.decorators = [
|
|
|
2286
2318
|
<div class="print-footer-wrapper">
|
|
2287
2319
|
<div class="input-number-wrapper">
|
|
2288
2320
|
<co-input-number-picker class="number-picker"
|
|
2289
|
-
[step]="1" [(model)]="
|
|
2321
|
+
[step]="1" [(model)]="stockService.printSticker.amount" [min]="1"
|
|
2290
2322
|
[ngModelOptions]="{debounce: 1}">
|
|
2291
2323
|
</co-input-number-picker>
|
|
2292
2324
|
</div>
|
|
@@ -2336,6 +2368,7 @@ SendMethodDialogComponent.propDecorators = {
|
|
|
2336
2368
|
showDialog: [{ type: Input }],
|
|
2337
2369
|
headerTitle: [{ type: Input }],
|
|
2338
2370
|
printerList: [{ type: Input }],
|
|
2371
|
+
articleData: [{ type: Input }],
|
|
2339
2372
|
startSignatureClicked: [{ type: Output }],
|
|
2340
2373
|
printButtonClicked: [{ type: Output }],
|
|
2341
2374
|
showClass: [{ type: HostBinding, args: ["class.ione-send-method-dialog",] }]
|