@colijnit/sharedcomponents 1.0.53 → 1.0.55
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 +268 -158
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.d.ts +51 -49
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/colijnit-sharedcomponents.js +52 -50
- package/esm2015/lib/components/key-pad/key-pad.component.js +8 -1
- package/esm2015/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.component.js +40 -0
- package/esm2015/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.module.js +23 -0
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +14 -2
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.module.js +4 -2
- package/esm2015/lib/components/stock/components/allocation-stock-history/allocation-stock-history.component.js +2 -1
- package/esm2015/lib/components/stock/components/order-commission-stock-history/order-commission-stock-history.component.js +2 -1
- package/esm2015/lib/components/stock/components/order-stock-history/order-stock-history.component.js +2 -1
- package/esm2015/lib/components/stock/components/order-stock-tab/order-stock-tab.component.js +2 -1
- package/esm2015/lib/components/stock/components/order-supply-stock-history/order-supply-stock-history.component.js +2 -1
- package/esm2015/lib/components/stock/components/order-tab/order-tab.component.js +3 -1
- package/esm2015/lib/components/stock/components/stock-history/stock-history.component.js +3 -1
- package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +5 -1
- package/esm2015/lib/components/stock/components/stock-prognose/stock-prognose.component.js +2 -1
- package/esm2015/lib/components/stock/components/stock-tab/stock-tab.component.js +2 -1
- package/esm2015/lib/components/stock/stock-tabs/stock-tabs.component.js +89 -68
- package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +3 -1
- package/esm2015/lib/components/stock/stock.component.js +8 -1
- package/esm2015/lib/components/tab-bar/tab-bar.component.js +4 -1
- package/fesm2015/colijnit-sharedcomponents.js +193 -69
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/key-pad/key-pad.component.d.ts +2 -0
- package/lib/components/key-pad/style/_layout.scss +1 -0
- package/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.component.d.ts +8 -0
- package/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.module.d.ts +2 -0
- package/lib/components/send-method-dialog/components/send-method-pdf/style/_layout.scss +25 -0
- package/lib/components/send-method-dialog/components/send-method-pdf/style/_material-definition.scss +5 -0
- package/lib/components/send-method-dialog/components/send-method-pdf/style/_theme.scss +5 -0
- package/lib/components/send-method-dialog/components/send-method-pdf/style/material.scss +4 -0
- package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +2 -0
- package/lib/components/send-method-dialog/style/_layout.scss +1 -1
- package/lib/components/send-method-dialog/style/material.scss +1 -0
- package/lib/components/stock/stock-tabs/stock-tabs.component.d.ts +4 -2
- package/package.json +1 -1
|
@@ -1159,14 +1159,19 @@ class StockComponent {
|
|
|
1159
1159
|
this._localizeService = _localizeService;
|
|
1160
1160
|
this._connector = _connector;
|
|
1161
1161
|
this.handleStickerClicked = new EventEmitter();
|
|
1162
|
+
this.articleWarehouse = [];
|
|
1163
|
+
this.allWarehouses = [];
|
|
1162
1164
|
this.okButtonClicked = new EventEmitter();
|
|
1163
1165
|
this.cancelButtonClicked = new EventEmitter();
|
|
1164
1166
|
this.loaded = false;
|
|
1165
1167
|
this.showStockInformationGrid = true;
|
|
1166
1168
|
this.showStockTransfer = false;
|
|
1169
|
+
this.stockInformation = [];
|
|
1170
|
+
this.stockHistory = [];
|
|
1167
1171
|
this.allAvailableStock = 0;
|
|
1168
1172
|
this.allTechnicalStock = 0;
|
|
1169
1173
|
this.showSendMethodDialog = false;
|
|
1174
|
+
this.warehouses = [];
|
|
1170
1175
|
this._subscriptions = [];
|
|
1171
1176
|
this._subscriptions.push(this._optionsService.optionsLoaded.subscribe(loaded => this._handleSettingsLoaded(loaded)));
|
|
1172
1177
|
}
|
|
@@ -1264,6 +1269,8 @@ class StockComponent {
|
|
|
1264
1269
|
this.getStockManagementWarehouses();
|
|
1265
1270
|
this.getStockInformation(this.articleExtended ? this.articleExtended.goodId : this._goodId);
|
|
1266
1271
|
}
|
|
1272
|
+
this._changeDetector.markForCheck();
|
|
1273
|
+
this._changeDetector.detectChanges();
|
|
1267
1274
|
}
|
|
1268
1275
|
}
|
|
1269
1276
|
StockComponent.decorators = [
|
|
@@ -1949,8 +1956,10 @@ class StockTransferComponent {
|
|
|
1949
1956
|
this.allWarehousesDropdownFields = { text: "warehouseDescription", value: "warehouseNo" };
|
|
1950
1957
|
this.allLocationDropdownFields = { text: "locationNo", value: "locationNo" };
|
|
1951
1958
|
this.showSendMethodDialog = false;
|
|
1959
|
+
this.warehouses = [];
|
|
1952
1960
|
this.stockState = [];
|
|
1953
1961
|
this.stockStateDropdownField = { text: "stateDescription", value: "stockStateId" };
|
|
1962
|
+
this.locations = [];
|
|
1954
1963
|
this.icons = Icon;
|
|
1955
1964
|
}
|
|
1956
1965
|
ngAfterViewInit() {
|
|
@@ -2205,7 +2214,8 @@ const sendMethodsWithIcon = [
|
|
|
2205
2214
|
new SendMethod(SendMethodType.Edi, "Edi", Icon.FileExportSolid),
|
|
2206
2215
|
new SendMethod(SendMethodType.EmailTemplate, "Email template", Icon.EnvelopeRegular),
|
|
2207
2216
|
new SendMethod(SendMethodType.Sms, "Sms", Icon.MessageSmsSolid),
|
|
2208
|
-
new SendMethod(SendMethodType.WebService, "Webservice", Icon.PrintRegular)
|
|
2217
|
+
new SendMethod(SendMethodType.WebService, "Webservice", Icon.PrintRegular),
|
|
2218
|
+
new SendMethod(SendMethodType.Pdf, "Pdf", Icon.Pdf)
|
|
2209
2219
|
];
|
|
2210
2220
|
class SendMethodDialogComponent {
|
|
2211
2221
|
constructor(iconCacheService, _changeDetector, _sharedService, _sendMethodService) {
|
|
@@ -2237,6 +2247,7 @@ class SendMethodDialogComponent {
|
|
|
2237
2247
|
this.showSms = true;
|
|
2238
2248
|
this.showEmailTemplate = true;
|
|
2239
2249
|
this.showWebservice = true;
|
|
2250
|
+
this.showPdf = true;
|
|
2240
2251
|
this._subscriptions = [];
|
|
2241
2252
|
this._subscriptions.push(this._sendMethodService.reportingDocumentPrintSignDocBaseRequestChanged.subscribe((value) => this.reportingDocumentPrintRequestChange.next(value)), this._sendMethodService.reportingDocumentEmailSignDocBaseRequestChanged.subscribe((value) => this.reportingDocumentEmailRequestChange.next(value)), this._sendMethodService.reportingDocumentPdfBaseRequestChanged.subscribe((value) => this.reportingDocumentPdfRequestChange.next(value)));
|
|
2242
2253
|
}
|
|
@@ -2286,6 +2297,9 @@ class SendMethodDialogComponent {
|
|
|
2286
2297
|
else if (sendMethod.code === SendMethodType.WebService && this.showWebservice) {
|
|
2287
2298
|
this.navigationItems.nativeElement.scrollLeft = this.webServiceItems.nativeElement.offsetLeft - this.navigationItems.nativeElement.offsetLeft;
|
|
2288
2299
|
}
|
|
2300
|
+
else if (sendMethod.code === SendMethodType.Pdf && this.showPdf) {
|
|
2301
|
+
this.navigationItems.nativeElement.scrollLeft = this.pdfItems.nativeElement.offsetLeft - this.navigationItems.nativeElement.offsetLeft;
|
|
2302
|
+
}
|
|
2289
2303
|
}
|
|
2290
2304
|
_initDefaultSendMethod() {
|
|
2291
2305
|
if (this.defaultSendMethod) {
|
|
@@ -2319,6 +2333,7 @@ class SendMethodDialogComponent {
|
|
|
2319
2333
|
this.showEmailTemplate = this.sendMethods.find(sm => sm.code === SendMethodType.EmailTemplate) !== undefined;
|
|
2320
2334
|
this.showSms = this.sendMethods.find(sm => sm.code === SendMethodType.Sms) !== undefined;
|
|
2321
2335
|
this.showWebservice = this.sendMethods.find(sm => sm.code === SendMethodType.WebService) !== undefined;
|
|
2336
|
+
this.showPdf = this.sendMethods.find(sm => sm.code === SendMethodType.Pdf) !== undefined;
|
|
2322
2337
|
}
|
|
2323
2338
|
}
|
|
2324
2339
|
SendMethodDialogComponent.decorators = [
|
|
@@ -2373,6 +2388,11 @@ SendMethodDialogComponent.decorators = [
|
|
|
2373
2388
|
<div #webServiceItems class="send-method-navigation-content co-small-scrollbar" *ngIf="showWebservice">
|
|
2374
2389
|
|
|
2375
2390
|
</div>
|
|
2391
|
+
<div #pdfItems class="send-method-navigation-content co-small-scrollbar" *ngIf="showPdf">
|
|
2392
|
+
<co-send-method-pdf
|
|
2393
|
+
[layouts]="printLayouts"
|
|
2394
|
+
></co-send-method-pdf>
|
|
2395
|
+
</div>
|
|
2376
2396
|
</div>
|
|
2377
2397
|
</div>
|
|
2378
2398
|
<ng-template #footerTemplate>
|
|
@@ -2412,6 +2432,7 @@ SendMethodDialogComponent.propDecorators = {
|
|
|
2412
2432
|
emailTemplateItems: [{ type: ViewChild, args: ['emailTemplateItems', { read: ElementRef },] }],
|
|
2413
2433
|
smsItems: [{ type: ViewChild, args: ['smsItems', { read: ElementRef },] }],
|
|
2414
2434
|
webServiceItems: [{ type: ViewChild, args: ['webServiceItems', { read: ElementRef },] }],
|
|
2435
|
+
pdfItems: [{ type: ViewChild, args: ['pdfItems', { read: ElementRef },] }],
|
|
2415
2436
|
printerList: [{ type: Input }],
|
|
2416
2437
|
reportingDocumentPrintRequest: [{ type: Input }],
|
|
2417
2438
|
reportingDocumentEmailRequest: [{ type: Input }],
|
|
@@ -2839,6 +2860,62 @@ SendMethodPrinterModule.decorators = [
|
|
|
2839
2860
|
},] }
|
|
2840
2861
|
];
|
|
2841
2862
|
|
|
2863
|
+
class SendMethodPdfComponent {
|
|
2864
|
+
constructor(sendMethodService) {
|
|
2865
|
+
this.sendMethodService = sendMethodService;
|
|
2866
|
+
this.layouts = [];
|
|
2867
|
+
}
|
|
2868
|
+
showClass() {
|
|
2869
|
+
return true;
|
|
2870
|
+
}
|
|
2871
|
+
}
|
|
2872
|
+
SendMethodPdfComponent.decorators = [
|
|
2873
|
+
{ type: Component, args: [{
|
|
2874
|
+
selector: 'co-send-method-pdf',
|
|
2875
|
+
template: `
|
|
2876
|
+
<div class="pdf-layout-selections-wrapper">
|
|
2877
|
+
<div class="layout-signature-wrapper">
|
|
2878
|
+
<co-layout-selection
|
|
2879
|
+
[(request)]="sendMethodService.reportingDocumentPdfBaseRequest"
|
|
2880
|
+
[layouts]="layouts"
|
|
2881
|
+
></co-layout-selection>
|
|
2882
|
+
<!--
|
|
2883
|
+
<co-signature-button
|
|
2884
|
+
[request]="sendMethodService.reportingDocumentPdfBaseRequest"
|
|
2885
|
+
></co-signature-button>
|
|
2886
|
+
-->
|
|
2887
|
+
</div>
|
|
2888
|
+
</div>
|
|
2889
|
+
`,
|
|
2890
|
+
encapsulation: ViewEncapsulation.None
|
|
2891
|
+
},] }
|
|
2892
|
+
];
|
|
2893
|
+
SendMethodPdfComponent.ctorParameters = () => [
|
|
2894
|
+
{ type: SendMethodService }
|
|
2895
|
+
];
|
|
2896
|
+
SendMethodPdfComponent.propDecorators = {
|
|
2897
|
+
layouts: [{ type: Input }],
|
|
2898
|
+
showClass: [{ type: HostBinding, args: ['class.co-send-method-pdf',] }]
|
|
2899
|
+
};
|
|
2900
|
+
|
|
2901
|
+
class SendMethodPdfModule {
|
|
2902
|
+
}
|
|
2903
|
+
SendMethodPdfModule.decorators = [
|
|
2904
|
+
{ type: NgModule, args: [{
|
|
2905
|
+
imports: [
|
|
2906
|
+
CommonModule,
|
|
2907
|
+
LayoutSelectionModule,
|
|
2908
|
+
SignatureButtonModule
|
|
2909
|
+
],
|
|
2910
|
+
declarations: [
|
|
2911
|
+
SendMethodPdfComponent
|
|
2912
|
+
],
|
|
2913
|
+
exports: [
|
|
2914
|
+
SendMethodPdfComponent
|
|
2915
|
+
]
|
|
2916
|
+
},] }
|
|
2917
|
+
];
|
|
2918
|
+
|
|
2842
2919
|
class SendMethodDialogModule {
|
|
2843
2920
|
}
|
|
2844
2921
|
SendMethodDialogModule.decorators = [
|
|
@@ -2852,7 +2929,8 @@ SendMethodDialogModule.decorators = [
|
|
|
2852
2929
|
IconModule,
|
|
2853
2930
|
SendMethodEmailModule,
|
|
2854
2931
|
SendMethodPrinterModule,
|
|
2855
|
-
ButtonModule
|
|
2932
|
+
ButtonModule,
|
|
2933
|
+
SendMethodPdfModule
|
|
2856
2934
|
],
|
|
2857
2935
|
exports: [
|
|
2858
2936
|
SendMethodDialogComponent
|
|
@@ -2935,6 +3013,7 @@ StockChangeAmountComponent.propDecorators = {
|
|
|
2935
3013
|
|
|
2936
3014
|
class StockTabComponent {
|
|
2937
3015
|
constructor() {
|
|
3016
|
+
this.articleStockInformation = [];
|
|
2938
3017
|
this.locationClicked = new EventEmitter();
|
|
2939
3018
|
this.warehouseToShow = new StockManagementWarehouses();
|
|
2940
3019
|
}
|
|
@@ -2976,6 +3055,8 @@ class OrderTabComponent {
|
|
|
2976
3055
|
this.iconCacheService = iconCacheService;
|
|
2977
3056
|
this._stockService = _stockService;
|
|
2978
3057
|
this.icons = Icon;
|
|
3058
|
+
this.articleStockInformation = [];
|
|
3059
|
+
this.inOrderInformation = [];
|
|
2979
3060
|
this.locationClicked = new EventEmitter();
|
|
2980
3061
|
this.transferIconClicked = new EventEmitter();
|
|
2981
3062
|
this.sendMethodDialogClicked = new EventEmitter();
|
|
@@ -3033,14 +3114,26 @@ OrderTabComponent.propDecorators = {
|
|
|
3033
3114
|
};
|
|
3034
3115
|
|
|
3035
3116
|
class StockTabsComponent {
|
|
3036
|
-
constructor(_stockService, _localizeService) {
|
|
3117
|
+
constructor(_stockService, _localizeService, _changeDetector) {
|
|
3037
3118
|
this._stockService = _stockService;
|
|
3038
3119
|
this._localizeService = _localizeService;
|
|
3120
|
+
this._changeDetector = _changeDetector;
|
|
3039
3121
|
this.icons = Icon;
|
|
3122
|
+
this.stockInformation = [];
|
|
3123
|
+
this.warehouses = [];
|
|
3040
3124
|
this.transferIconClicked = new EventEmitter();
|
|
3041
3125
|
this.sendMethodDialogClicked = new EventEmitter();
|
|
3126
|
+
this.stockHistory = [];
|
|
3127
|
+
this.orderSupplyStockHistory = [];
|
|
3128
|
+
this.orderCommissionStockHistory = [];
|
|
3129
|
+
this.orderStockHistory = [];
|
|
3130
|
+
this.orderAllocationStockHistory = [];
|
|
3131
|
+
this.inOrderInformation = [];
|
|
3132
|
+
this.orderInformation = [];
|
|
3133
|
+
this.stockPrognose = [];
|
|
3042
3134
|
this.articleDetailsInformation = new ArticleStockManagement();
|
|
3043
3135
|
this.showWarehouseSelection = false;
|
|
3136
|
+
this.articleDetails = [];
|
|
3044
3137
|
this.tabs = [];
|
|
3045
3138
|
this.historyTabs = [];
|
|
3046
3139
|
}
|
|
@@ -3049,94 +3142,89 @@ class StockTabsComponent {
|
|
|
3049
3142
|
{ title: this._localizeService.get('OVERVIEW'), active: true },
|
|
3050
3143
|
{ title: this._localizeService.get('STOCK_FORECAST'), active: false },
|
|
3051
3144
|
{ title: this._localizeService.get('STOCK_DETAILS'), active: false },
|
|
3052
|
-
{ title: this._localizeService.get('ALREADY_IN_ORDER'), active: false
|
|
3053
|
-
{ title: this._localizeService.get('IN_ORDER'), active: false
|
|
3145
|
+
{ title: this._localizeService.get('ALREADY_IN_ORDER'), active: false },
|
|
3146
|
+
{ title: this._localizeService.get('IN_ORDER'), active: false },
|
|
3054
3147
|
{ title: this._localizeService.get('HISTORY'), active: false },
|
|
3055
3148
|
];
|
|
3056
3149
|
this.historyTabs = [
|
|
3057
|
-
{ title: this._localizeService.get('STOCK'), active: true
|
|
3058
|
-
{
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3150
|
+
{ title: this._localizeService.get('STOCK'), active: true },
|
|
3151
|
+
{
|
|
3152
|
+
title: this._localizeService.get('ORDER_STOCK'),
|
|
3153
|
+
active: false
|
|
3154
|
+
},
|
|
3155
|
+
{
|
|
3156
|
+
title: this._localizeService.get('ORDER_COMMISSION'),
|
|
3157
|
+
active: false
|
|
3158
|
+
},
|
|
3159
|
+
{ title: this._localizeService.get('ORDER'), active: false },
|
|
3160
|
+
{
|
|
3161
|
+
title: this._localizeService.get('ALLOCATION'),
|
|
3162
|
+
active: false
|
|
3163
|
+
},
|
|
3062
3164
|
];
|
|
3063
|
-
this.historyTabs[0].clickHandler();
|
|
3064
3165
|
}
|
|
3065
3166
|
handleLocationClicked(data) {
|
|
3066
3167
|
this.tabs[0].active = false;
|
|
3067
3168
|
this.tabs[2].active = true;
|
|
3068
3169
|
this.selectedWarehouse = this.wareHouseForCode(data.warehouseNo);
|
|
3069
3170
|
this.handleWarehouseSelected(this.selectedWarehouse);
|
|
3171
|
+
this.getStockData(data);
|
|
3070
3172
|
}
|
|
3071
3173
|
getStockHistory() {
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
this.
|
|
3077
|
-
|
|
3078
|
-
});
|
|
3079
|
-
}
|
|
3174
|
+
const stockHistoryInformation = new GetStockHistoryRequest();
|
|
3175
|
+
stockHistoryInformation.type = "V";
|
|
3176
|
+
stockHistoryInformation.goodId = this.article.goodId.toString();
|
|
3177
|
+
this._stockService.getStockHistory(stockHistoryInformation).then(result => {
|
|
3178
|
+
this.stockHistory = result;
|
|
3179
|
+
});
|
|
3080
3180
|
}
|
|
3081
3181
|
getOrderSupplyStockHistory() {
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
this.
|
|
3087
|
-
|
|
3088
|
-
});
|
|
3089
|
-
}
|
|
3182
|
+
const stockHistoryInformation = new GetStockHistoryRequest();
|
|
3183
|
+
stockHistoryInformation.type = "O";
|
|
3184
|
+
stockHistoryInformation.goodId = this.article.goodId.toString();
|
|
3185
|
+
this._stockService.getStockHistory(stockHistoryInformation).then(result => {
|
|
3186
|
+
this.orderSupplyStockHistory = result;
|
|
3187
|
+
});
|
|
3090
3188
|
}
|
|
3091
3189
|
getOrderCommissionStockHistory() {
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
this.
|
|
3097
|
-
|
|
3098
|
-
});
|
|
3099
|
-
}
|
|
3190
|
+
const stockHistoryInformation = new GetStockHistoryRequest();
|
|
3191
|
+
stockHistoryInformation.type = "C";
|
|
3192
|
+
stockHistoryInformation.goodId = this.article.goodId.toString();
|
|
3193
|
+
this._stockService.getStockHistory(stockHistoryInformation).then(result => {
|
|
3194
|
+
this.orderCommissionStockHistory = result;
|
|
3195
|
+
});
|
|
3100
3196
|
}
|
|
3101
3197
|
getOrderStockHistory() {
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
this.
|
|
3107
|
-
|
|
3108
|
-
});
|
|
3109
|
-
}
|
|
3198
|
+
const stockHistoryInformation = new GetStockHistoryRequest();
|
|
3199
|
+
stockHistoryInformation.type = "B";
|
|
3200
|
+
stockHistoryInformation.goodId = this.article.goodId.toString();
|
|
3201
|
+
this._stockService.getStockHistory(stockHistoryInformation).then(result => {
|
|
3202
|
+
this.orderStockHistory = result;
|
|
3203
|
+
});
|
|
3110
3204
|
}
|
|
3111
3205
|
getAllocationStockHistory() {
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
this.
|
|
3117
|
-
|
|
3118
|
-
});
|
|
3119
|
-
}
|
|
3206
|
+
const stockHistoryInformation = new GetStockHistoryRequest();
|
|
3207
|
+
stockHistoryInformation.type = "T";
|
|
3208
|
+
stockHistoryInformation.goodId = this.article.goodId.toString();
|
|
3209
|
+
this._stockService.getStockHistory(stockHistoryInformation).then(result => {
|
|
3210
|
+
this.orderAllocationStockHistory = result;
|
|
3211
|
+
});
|
|
3120
3212
|
}
|
|
3121
3213
|
getInOrderData() {
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
this.
|
|
3127
|
-
|
|
3128
|
-
});
|
|
3129
|
-
}
|
|
3214
|
+
const inOrderData = new ArticleTransaction$1();
|
|
3215
|
+
inOrderData.type = "V";
|
|
3216
|
+
inOrderData.goodId = this.stockInformation[0].goodId.toString();
|
|
3217
|
+
this._stockService.getArticleTransaction(inOrderData).then(result => {
|
|
3218
|
+
this.inOrderInformation = result;
|
|
3219
|
+
});
|
|
3130
3220
|
}
|
|
3131
3221
|
getOrderData() {
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
this.
|
|
3137
|
-
|
|
3138
|
-
});
|
|
3139
|
-
}
|
|
3222
|
+
const orderData = new ArticleTransaction$1();
|
|
3223
|
+
orderData.type = "I";
|
|
3224
|
+
orderData.goodId = this.stockInformation[0].goodId.toString();
|
|
3225
|
+
this._stockService.getArticleTransaction(orderData).then(result => {
|
|
3226
|
+
this.orderInformation = result;
|
|
3227
|
+
});
|
|
3140
3228
|
}
|
|
3141
3229
|
getStockPrognose(warehouseNo) {
|
|
3142
3230
|
this._stockService.stockPrognose(this.article.goodId, warehouseNo).then(result => {
|
|
@@ -3157,6 +3245,19 @@ class StockTabsComponent {
|
|
|
3157
3245
|
});
|
|
3158
3246
|
}
|
|
3159
3247
|
}
|
|
3248
|
+
getStockData(warehouse) {
|
|
3249
|
+
this.handleWarehouseSelected(warehouse);
|
|
3250
|
+
this.getStockPrognose(warehouse.warehouseNo);
|
|
3251
|
+
this.getOrderData();
|
|
3252
|
+
this.getInOrderData();
|
|
3253
|
+
this.getAllocationStockHistory();
|
|
3254
|
+
this.getOrderStockHistory();
|
|
3255
|
+
this.getOrderCommissionStockHistory();
|
|
3256
|
+
this.getOrderSupplyStockHistory();
|
|
3257
|
+
this.getStockHistory();
|
|
3258
|
+
this._changeDetector.markForCheck();
|
|
3259
|
+
this._changeDetector.detectChanges();
|
|
3260
|
+
}
|
|
3160
3261
|
wareHouseForCode(code) {
|
|
3161
3262
|
return this.warehouses.find(warehouse => warehouse.warehouseNo === code);
|
|
3162
3263
|
}
|
|
@@ -3234,7 +3335,8 @@ StockTabsComponent.decorators = [
|
|
|
3234
3335
|
];
|
|
3235
3336
|
StockTabsComponent.ctorParameters = () => [
|
|
3236
3337
|
{ type: StockService },
|
|
3237
|
-
{ type: LocalizeService }
|
|
3338
|
+
{ type: LocalizeService },
|
|
3339
|
+
{ type: ChangeDetectorRef }
|
|
3238
3340
|
];
|
|
3239
3341
|
StockTabsComponent.propDecorators = {
|
|
3240
3342
|
stockInformation: [{ type: Input }],
|
|
@@ -3281,6 +3383,7 @@ class OrderStockTabComponent {
|
|
|
3281
3383
|
this.iconCacheService = iconCacheService;
|
|
3282
3384
|
this._stockService = _stockService;
|
|
3283
3385
|
this.icons = Icon;
|
|
3386
|
+
this.orderInformation = [];
|
|
3284
3387
|
}
|
|
3285
3388
|
}
|
|
3286
3389
|
OrderStockTabComponent.decorators = [
|
|
@@ -3324,10 +3427,14 @@ class StockLocationComponent {
|
|
|
3324
3427
|
this._stockService = _stockService;
|
|
3325
3428
|
this._changeDetector = _changeDetector;
|
|
3326
3429
|
this.icons = Icon;
|
|
3430
|
+
this.articleStockInfo = [];
|
|
3431
|
+
this.articleStockInformation = [];
|
|
3432
|
+
this.dataWareHouseCode = [];
|
|
3327
3433
|
this.transferIconClicked = new EventEmitter();
|
|
3328
3434
|
this.sendMethodDialogClicked = new EventEmitter();
|
|
3329
3435
|
this.showConfirmationDialog = false;
|
|
3330
3436
|
this.articleDetailsInformation = new ArticleStockManagement();
|
|
3437
|
+
this.stockLocations = [];
|
|
3331
3438
|
this.stockStatus = [];
|
|
3332
3439
|
this.selectedArticleDetailsData = new ArticleDetailsBo();
|
|
3333
3440
|
this._subs = [];
|
|
@@ -3553,6 +3660,8 @@ class StockHistoryComponent {
|
|
|
3553
3660
|
this.iconCacheService = iconCacheService;
|
|
3554
3661
|
this._stockService = _stockService;
|
|
3555
3662
|
this.icons = Icon;
|
|
3663
|
+
this.stockHistoryInformation = [];
|
|
3664
|
+
this.stockHistory = [];
|
|
3556
3665
|
}
|
|
3557
3666
|
}
|
|
3558
3667
|
StockHistoryComponent.decorators = [
|
|
@@ -3598,7 +3707,10 @@ StockHistoryComponent.propDecorators = {
|
|
|
3598
3707
|
class TabBarComponent {
|
|
3599
3708
|
constructor(_stockService) {
|
|
3600
3709
|
this._stockService = _stockService;
|
|
3710
|
+
this.tabs = [];
|
|
3711
|
+
this.secondaryTabs = [];
|
|
3601
3712
|
this.ActivateSecondaryTabs = false;
|
|
3713
|
+
this.dataWareHouseCode = [];
|
|
3602
3714
|
this.showWarehouseSelection = false;
|
|
3603
3715
|
this.warehouseSelected = new EventEmitter();
|
|
3604
3716
|
}
|
|
@@ -3699,6 +3811,7 @@ class OrderSupplyStockHistoryComponent {
|
|
|
3699
3811
|
constructor(iconCacheService) {
|
|
3700
3812
|
this.iconCacheService = iconCacheService;
|
|
3701
3813
|
this.icons = Icon;
|
|
3814
|
+
this.orderSupplyStockHistory = [];
|
|
3702
3815
|
}
|
|
3703
3816
|
}
|
|
3704
3817
|
OrderSupplyStockHistoryComponent.decorators = [
|
|
@@ -3742,6 +3855,7 @@ class OrderCommissionStockHistoryComponent {
|
|
|
3742
3855
|
constructor(iconCacheService) {
|
|
3743
3856
|
this.iconCacheService = iconCacheService;
|
|
3744
3857
|
this.icons = Icon;
|
|
3858
|
+
this.orderStockCommissionHistory = [];
|
|
3745
3859
|
}
|
|
3746
3860
|
}
|
|
3747
3861
|
OrderCommissionStockHistoryComponent.decorators = [
|
|
@@ -3785,6 +3899,7 @@ class OrderStockHistoryComponent {
|
|
|
3785
3899
|
constructor(iconCacheService) {
|
|
3786
3900
|
this.iconCacheService = iconCacheService;
|
|
3787
3901
|
this.icons = Icon;
|
|
3902
|
+
this.orderStockHistory = [];
|
|
3788
3903
|
}
|
|
3789
3904
|
}
|
|
3790
3905
|
OrderStockHistoryComponent.decorators = [
|
|
@@ -3828,6 +3943,7 @@ class AllocationStockHistoryComponent {
|
|
|
3828
3943
|
constructor(iconCacheService) {
|
|
3829
3944
|
this.iconCacheService = iconCacheService;
|
|
3830
3945
|
this.icons = Icon;
|
|
3946
|
+
this.allocationStockHistory = [];
|
|
3831
3947
|
}
|
|
3832
3948
|
}
|
|
3833
3949
|
AllocationStockHistoryComponent.decorators = [
|
|
@@ -4186,6 +4302,7 @@ class StockPrognoseComponent {
|
|
|
4186
4302
|
this.iconCacheService = iconCacheService;
|
|
4187
4303
|
this._stockService = _stockService;
|
|
4188
4304
|
this.icons = Icon;
|
|
4305
|
+
this.stockPrognose = [];
|
|
4189
4306
|
}
|
|
4190
4307
|
}
|
|
4191
4308
|
StockPrognoseComponent.decorators = [
|
|
@@ -4421,6 +4538,7 @@ class KeyPadComponent {
|
|
|
4421
4538
|
this.iconCacheService = iconCacheService;
|
|
4422
4539
|
this.icons = Icon;
|
|
4423
4540
|
this.showValue = true;
|
|
4541
|
+
this.resetModelOnInit = true;
|
|
4424
4542
|
this.emitModelChangeOnEnter = true;
|
|
4425
4543
|
this.modelChange = new EventEmitter();
|
|
4426
4544
|
this.internalModelChange = new EventEmitter();
|
|
@@ -4449,6 +4567,7 @@ class KeyPadComponent {
|
|
|
4449
4567
|
[KeyboardCode.NumpadDecimal, "."],
|
|
4450
4568
|
[KeyboardCode.Period, "."]
|
|
4451
4569
|
]);
|
|
4570
|
+
this._init = true;
|
|
4452
4571
|
this.isNegative = false;
|
|
4453
4572
|
this._model = 0;
|
|
4454
4573
|
this._internalModel = "0";
|
|
@@ -4509,6 +4628,10 @@ class KeyPadComponent {
|
|
|
4509
4628
|
this.enterClick.emit();
|
|
4510
4629
|
}
|
|
4511
4630
|
_updateModel(value) {
|
|
4631
|
+
if (this.resetModelOnInit && this._init) {
|
|
4632
|
+
this._internalModel = "0";
|
|
4633
|
+
this._init = false;
|
|
4634
|
+
}
|
|
4512
4635
|
if (value === undefined || value === null ||
|
|
4513
4636
|
(value === '.' && this.internalModel.indexOf('.') > -1) ||
|
|
4514
4637
|
this.internalModel.length >= this._maxCharacters) {
|
|
@@ -4597,6 +4720,7 @@ KeyPadComponent.ctorParameters = () => [
|
|
|
4597
4720
|
KeyPadComponent.propDecorators = {
|
|
4598
4721
|
model: [{ type: Input }],
|
|
4599
4722
|
showValue: [{ type: Input }],
|
|
4723
|
+
resetModelOnInit: [{ type: Input }],
|
|
4600
4724
|
emitModelChangeOnEnter: [{ type: Input }],
|
|
4601
4725
|
modelChange: [{ type: Output }],
|
|
4602
4726
|
internalModelChange: [{ type: Output }],
|
|
@@ -6873,5 +6997,5 @@ SimpleTagsModule.decorators = [
|
|
|
6873
6997
|
* Generated bundle index. Do not edit.
|
|
6874
6998
|
*/
|
|
6875
6999
|
|
|
6876
|
-
export { CoLinearGaugeComponent, CoLinearGaugeModule, DatePlanningComponent, DatePlanningModule, DocsignComponent, DocsignModule, KeyPadComponent, KeyPadModule, LayoutSwitcherComponent, LayoutSwitcherModule, SendMethodDialogComponent, SendMethodDialogModule, SharedService, SimpleTagsComponent, SimpleTagsModule, StatusbarComponent, StatusbarModule, StockComponent, StockModule, Translation, sendMethodsWithIcon, SignatureComponent as ɵa, SignaturesComponent as ɵb,
|
|
7000
|
+
export { CoLinearGaugeComponent, CoLinearGaugeModule, DatePlanningComponent, DatePlanningModule, DocsignComponent, DocsignModule, KeyPadComponent, KeyPadModule, LayoutSwitcherComponent, LayoutSwitcherModule, SendMethodDialogComponent, SendMethodDialogModule, SharedService, SimpleTagsComponent, SimpleTagsModule, StatusbarComponent, StatusbarModule, StockComponent, StockModule, Translation, sendMethodsWithIcon, SignatureComponent as ɵa, SignaturesComponent as ɵb, LocalizationModule as ɵba, LocalizePipe as ɵbb, StockInformationComponent as ɵbc, StockInformationGridComponent as ɵbd, StockTransferComponent as ɵbe, StockChangeAmountComponent as ɵbf, StockTabComponent as ɵbg, OrderTabComponent as ɵbh, StockTabsComponent as ɵbi, StockHistoryTabsComponent as ɵbj, OrderStockTabComponent as ɵbk, StockLocationComponent as ɵbl, StockHistoryComponent as ɵbm, OrderSupplyStockHistoryComponent as ɵbn, OrderCommissionStockHistoryComponent as ɵbo, OrderStockHistoryComponent as ɵbp, AllocationStockHistoryComponent as ɵbq, StockPrognoseComponent as ɵbr, SendMethod as ɵbs, Icon as ɵbt, CalendarAllYearsComponent as ɵbu, CalendarAllMonthsComponent as ɵbv, CalendarHeaderComponent as ɵbw, CalendarComponent as ɵbx, CalendarViewComponent as ɵby, LanguageCode as ɵbz, StockService as ɵc, AgendaHeaderComponent as ɵca, AgendaViewComponent as ɵcb, AgendaMonthViewComponent as ɵcc, AgendaBaseViewComponent as ɵcd, AgendaDayViewComponent as ɵce, AgendaWeekViewComponent as ɵcf, AgendaWeekSelectViewComponent as ɵcg, AgendaHourViewComponent as ɵch, AgendaHourCellComponent as ɵci, AgendaHourViewLabelsComponent as ɵcj, AgendaHalfHourCellComponent as ɵck, AgendaEventsComponent as ɵcl, AgendaEventComponent as ɵcm, ViewSelectComponent as ɵcn, AgendaSelectEventComponent as ɵco, MASTER_PIPES as ɵcp, ArrayNumberPipe as ɵcq, UCfirstPipe as ɵcr, SharedConnectorService as ɵd, OptionsService as ɵe, DictionaryService as ɵf, LocalizeService as ɵg, IconCacheService as ɵh, SendMethodService as ɵi, SendMethodEmailModule as ɵj, LayoutSelectionModule as ɵk, LayoutSelectionComponent as ɵl, SignatureButtonModule as ɵm, SignatureButtonComponent as ɵn, SendMethodEmailComponent as ɵo, SendMethodPrinterModule as ɵp, PrinterSelectionModule as ɵq, PrinterSelectionComponent as ɵr, SendMethodPrinterComponent as ɵs, SendMethodPdfModule as ɵt, SendMethodPdfComponent as ɵu, TabBarModule as ɵv, TabBarComponent as ɵw, StatusbarPopupComponent as ɵx, StockStatusbarModule as ɵy, StockStatusbarComponent as ɵz };
|
|
6877
7001
|
//# sourceMappingURL=colijnit-sharedcomponents.js.map
|