@seniorsistemas/yms-integration 1.21.0 → 1.23.0-c9dd79ae-4dab-4952-982d-6f13fd198efb
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/seniorsistemas-yms-integration.umd.js +65 -29
- package/bundles/seniorsistemas-yms-integration.umd.js.map +1 -1
- package/bundles/seniorsistemas-yms-integration.umd.min.js +1 -1
- package/bundles/seniorsistemas-yms-integration.umd.min.js.map +1 -1
- package/esm2015/src/wms/components/document-grid/document-grid.component.js +49 -22
- package/esm2015/src/wms/components/document-grid/insert-key/insert-key.component.js +3 -3
- package/esm2015/src/wms/components/document-grid/register-document/register-document.component.js +14 -9
- package/esm2015/src/wms/entities/document/document-dto.js +1 -1
- package/esm2015/src/wms/entities/document/document.js +2 -2
- package/esm2015/src/wms/form/form-wms.component.js +6 -2
- package/esm5/src/wms/components/document-grid/document-grid.component.js +50 -22
- package/esm5/src/wms/components/document-grid/insert-key/insert-key.component.js +3 -3
- package/esm5/src/wms/components/document-grid/register-document/register-document.component.js +14 -9
- package/esm5/src/wms/entities/document/document-dto.js +1 -1
- package/esm5/src/wms/entities/document/document.js +2 -2
- package/esm5/src/wms/form/form-wms.component.js +6 -2
- package/fesm2015/seniorsistemas-yms-integration.js +66 -31
- package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
- package/fesm5/seniorsistemas-yms-integration.js +67 -31
- package/fesm5/seniorsistemas-yms-integration.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-yms-integration.metadata.json +1 -1
- package/src/wms/components/document-grid/document-grid.component.d.ts +7 -5
- package/src/wms/components/document-grid/register-document/register-document.component.d.ts +1 -1
- package/src/wms/entities/document/document-dto.d.ts +3 -1
- package/src/wms/entities/document/document.d.ts +3 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Subject, throwError, BehaviorSubject, empty, ReplaySubject, NEVER,
|
|
1
|
+
import { Subject, throwError, BehaviorSubject, empty, ReplaySubject, NEVER, forkJoin, of } from 'rxjs';
|
|
2
2
|
import { takeUntil, catchError, finalize, map, filter, mergeMap, tap, concatMap, switchMap, debounceTime } from 'rxjs/operators';
|
|
3
3
|
import { __extends, __decorate, __metadata, __assign, __spread, __values, __param } from 'tslib';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
@@ -9,7 +9,7 @@ import { MessageModule } from 'primeng/message';
|
|
|
9
9
|
import { TableModule, Table } from 'primeng/table';
|
|
10
10
|
import { HttpParams, HttpClient, HttpClientModule } from '@angular/common/http';
|
|
11
11
|
import { MessageService, DynamicDialogRef, DynamicDialogConfig, DialogService, ConfirmationService } from 'primeng/api';
|
|
12
|
-
import { ControleCircuito, ControleOperacao, IntegrationDispatcher, CircuitoFinalizado, ControleUnificado, ChegadaVeiculo, IntegrationEventsCallback, IntegrationModule,
|
|
12
|
+
import { ControleCircuito, ControleOperacao, IntegrationDispatcher, CircuitoFinalizado, ControleUnificado, ChegadaVeiculo, IntegrationEventsCallback, IntegrationModule, Agendamento, ChegadaVeiculoOverride } from '@seniorsistemas/yms-routines';
|
|
13
13
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
14
14
|
import { PermissionsModule } from '@seniorsistemas/platform-components';
|
|
15
15
|
import { StompConfig, StompService } from '@stomp/ng2-stompjs';
|
|
@@ -3000,6 +3000,10 @@ var FormWmsDescritor = /** @class */ (function () {
|
|
|
3000
3000
|
function FormWmsDescritor() {
|
|
3001
3001
|
}
|
|
3002
3002
|
FormWmsDescritor = __decorate([
|
|
3003
|
+
Agendamento({
|
|
3004
|
+
header: INFORMACAOES_ADICIONAIS_HEADER,
|
|
3005
|
+
name: 'yms.integracao.wms'
|
|
3006
|
+
}),
|
|
3003
3007
|
ChegadaVeiculo({
|
|
3004
3008
|
header: INFORMACAOES_ADICIONAIS_HEADER,
|
|
3005
3009
|
name: 'yms.integracao.wms',
|
|
@@ -3069,13 +3073,15 @@ var DocumentService = /** @class */ (function (_super) {
|
|
|
3069
3073
|
}(EntityService));
|
|
3070
3074
|
|
|
3071
3075
|
var DocumentGridComponent = /** @class */ (function () {
|
|
3072
|
-
function DocumentGridComponent(translate, documentService, messageService) {
|
|
3076
|
+
function DocumentGridComponent(translate, documentService, messageService, confirmationService) {
|
|
3073
3077
|
this.translate = translate;
|
|
3074
3078
|
this.documentService = documentService;
|
|
3075
3079
|
this.messageService = messageService;
|
|
3080
|
+
this.confirmationService = confirmationService;
|
|
3076
3081
|
this.viewDocument = new EventEmitter();
|
|
3077
3082
|
this.gridData = [];
|
|
3078
3083
|
this.ngUnsubscribe = new Subject();
|
|
3084
|
+
this.selection = [];
|
|
3079
3085
|
}
|
|
3080
3086
|
DocumentGridComponent.prototype.ngOnInit = function () {
|
|
3081
3087
|
this.gridColumns = this.getGridColumns();
|
|
@@ -3091,6 +3097,7 @@ var DocumentGridComponent = /** @class */ (function () {
|
|
|
3091
3097
|
{
|
|
3092
3098
|
label: this.translate.instant("yms.int.wms_add_document_invoice_key"),
|
|
3093
3099
|
command: function () {
|
|
3100
|
+
_this.selection = [];
|
|
3094
3101
|
_this.visibleInvoiceKey = true;
|
|
3095
3102
|
},
|
|
3096
3103
|
icon: "fa fa-search"
|
|
@@ -3098,6 +3105,7 @@ var DocumentGridComponent = /** @class */ (function () {
|
|
|
3098
3105
|
{
|
|
3099
3106
|
label: this.translate.instant("yms.int.wms_add_document_register"),
|
|
3100
3107
|
command: function () {
|
|
3108
|
+
_this.selection = [];
|
|
3101
3109
|
_this.edit = true;
|
|
3102
3110
|
_this.visibleDocumentRegister = true;
|
|
3103
3111
|
},
|
|
@@ -3108,8 +3116,8 @@ var DocumentGridComponent = /** @class */ (function () {
|
|
|
3108
3116
|
DocumentGridComponent.prototype.getProp = function (obj, path) {
|
|
3109
3117
|
return path.split(".").reduce(function (result, prop) { return (result[prop] === undefined ? "" : result[prop]); }, obj);
|
|
3110
3118
|
};
|
|
3111
|
-
DocumentGridComponent.prototype.view = function (
|
|
3112
|
-
this.viewDocument.emit(selection);
|
|
3119
|
+
DocumentGridComponent.prototype.view = function () {
|
|
3120
|
+
this.viewDocument.emit(this.selection[0]);
|
|
3113
3121
|
this.visibleDocumentRegister = true;
|
|
3114
3122
|
this.edit = false;
|
|
3115
3123
|
};
|
|
@@ -3129,17 +3137,38 @@ var DocumentGridComponent = /** @class */ (function () {
|
|
|
3129
3137
|
});
|
|
3130
3138
|
}
|
|
3131
3139
|
};
|
|
3132
|
-
DocumentGridComponent.prototype.onDelete = function (
|
|
3140
|
+
DocumentGridComponent.prototype.onDelete = function () {
|
|
3133
3141
|
var _this = this;
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3142
|
+
this.confirmationService.confirm({
|
|
3143
|
+
message: this.translate.instant("delete_confirmation_message"),
|
|
3144
|
+
header: this.translate.instant("delete_confirmation_title"),
|
|
3145
|
+
accept: function () {
|
|
3146
|
+
_this.removeDocumentIfIdUndfined();
|
|
3147
|
+
if (_this.selection.length < 1) {
|
|
3148
|
+
return empty();
|
|
3149
|
+
}
|
|
3150
|
+
return forkJoin(_this.selection.map(function (document) { return _this.documentService.delete(document.id); }))
|
|
3151
|
+
.pipe(takeUntil(_this.ngUnsubscribe))
|
|
3152
|
+
.subscribe(function () {
|
|
3153
|
+
_this.messageService.add({
|
|
3154
|
+
severity: "success",
|
|
3155
|
+
summary: _this.translate.instant("deleted_message_title"),
|
|
3156
|
+
detail: _this.translate.instant("deleted_message_content"),
|
|
3157
|
+
});
|
|
3158
|
+
_this.gridData = [];
|
|
3159
|
+
_this.listDocuments();
|
|
3160
|
+
});
|
|
3161
|
+
}
|
|
3162
|
+
});
|
|
3163
|
+
};
|
|
3164
|
+
DocumentGridComponent.prototype.removeDocumentIfIdUndfined = function () {
|
|
3165
|
+
var _this = this;
|
|
3166
|
+
this.selection.forEach(function (value, index) {
|
|
3167
|
+
if (!value.id) {
|
|
3168
|
+
_this.gridData.splice(index, 1);
|
|
3169
|
+
_this.selection.splice(index, 1);
|
|
3170
|
+
}
|
|
3171
|
+
});
|
|
3143
3172
|
};
|
|
3144
3173
|
DocumentGridComponent.prototype.listDocuments = function () {
|
|
3145
3174
|
var _this = this;
|
|
@@ -3147,14 +3176,15 @@ var DocumentGridComponent = /** @class */ (function () {
|
|
|
3147
3176
|
filterQuery: "schedulingId eq '" + this.agenda.id + "'"
|
|
3148
3177
|
})
|
|
3149
3178
|
.subscribe(function (contents) {
|
|
3179
|
+
_this.gridData = [];
|
|
3150
3180
|
if (contents.totalElements > 0) {
|
|
3151
3181
|
_this.gridData = contents.contents;
|
|
3152
3182
|
_this.documentTotalRecords = contents.totalElements;
|
|
3153
3183
|
}
|
|
3154
3184
|
else {
|
|
3155
|
-
_this.disabled = true;
|
|
3156
3185
|
_this.documentTotalRecords = _this.gridData.length;
|
|
3157
3186
|
}
|
|
3187
|
+
_this.disabled = true;
|
|
3158
3188
|
_this.loading = false;
|
|
3159
3189
|
});
|
|
3160
3190
|
};
|
|
@@ -3167,7 +3197,7 @@ var DocumentGridComponent = /** @class */ (function () {
|
|
|
3167
3197
|
{ field: "invoiceSerialNumber", header: this.translate.instant("yms.int.wms_register_document_invoice_serial_number") },
|
|
3168
3198
|
{ field: "ownerName", header: this.translate.instant("yms.int.wms_register_document_owner_name") },
|
|
3169
3199
|
{ field: "ownerDocument", header: this.translate.instant("yms.int.wms_register_document_owner_document") },
|
|
3170
|
-
{ field: "
|
|
3200
|
+
{ field: "code", header: this.translate.instant("yms.int.wms_register_document_order_receiving_code") },
|
|
3171
3201
|
];
|
|
3172
3202
|
};
|
|
3173
3203
|
DocumentGridComponent.prototype.message = function (severity, summary, detail) {
|
|
@@ -3220,12 +3250,13 @@ var DocumentGridComponent = /** @class */ (function () {
|
|
|
3220
3250
|
DocumentGridComponent = __decorate([
|
|
3221
3251
|
Component({
|
|
3222
3252
|
selector: 'document-grid',
|
|
3223
|
-
template: "<p-panel>\n <p-header>\n <div class=\"buttons\">\n <div>\n <s-button\n label=\"{{'yms.int.wms_add_document' | translate}}\"\n priority=\"primary\"\n [model]=\"getActions()\"\n [auxiliary]=\"false\">\n </s-button>\n <s-button\n label=\"{{'yms.wms_view_button' | translate}}\"\n priority=\"secondary\"\n [auxiliary]=\"false\"\n [disabled]=\"!selection
|
|
3224
|
-
styles: [".buttons{display:flex;justify-content:space-between}.center{flex-direction:column;text-align:center}.ui-g{display:block}.button-save{margin:5px 0}#refresh-button{color:#fff}"]
|
|
3253
|
+
template: "<p-panel>\n <p-header>\n <div class=\"buttons\">\n <div>\n <s-button\n label=\"{{'yms.int.wms_add_document' | translate}}\"\n priority=\"primary\"\n [model]=\"getActions()\"\n [auxiliary]=\"false\">\n </s-button>\n <s-button\n label=\"{{'yms.wms_view_button' | translate}}\"\n priority=\"secondary\"\n [auxiliary]=\"false\"\n [disabled]=\"!selection || selection.length !== 1\"\n (onClick)=\"view()\">\n </s-button>\n <s-button\n label=\"{{'yms.wms_delete_button' | translate}}\"\n priority=\"secondary\"\n [disabled]=\"!selection || !selection.length\"\n (click)=\"onDelete()\">\n </s-button>\n </div>\n <s-button\n id=\"refresh-button\"\n priority=\"default\"\n iconClass=\"fa fa-refresh\"\n (onClick)=\"listDocuments()\"\n >\n </s-button>\n </div>\n </p-header>\n <div class=\"ui-g\">\n <div class=\"ui-g-12\" *ngIf=\"gridData && gridData.length; else emptyList\">\n <p-table #documentTable [value]=\"gridData\"\n [columns]=\"gridColumns\" dataKey=\"id\" [lazy]=\"true\" [scrollable]=\"true\" [resizableColumns]=\"true\"\n sortMode=\"multiple\" [paginator]=\"true\" [totalRecords]=\"documentTotalRecords\" rows=\"10\"\n [rowsPerPageOptions]=\"[10, 20, 50, 100]\" [(selection)]=\"selection\"\n [loading]=\"loading\">\n <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngFor=\"let col of columns\" [style.width]=\"col.width\"/>\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th id=\"checkbox\" class=\"table-checkbox\">\n <p-tableHeaderCheckbox></p-tableHeaderCheckbox>\n </th>\n <th id=\"col\" *ngFor=\"let col of columns\" [pSortableColumn]=\"col.field\" pResizableColumn>\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ col.header }}</span>\n <p-sortIcon [field]=\"col.field\"></p-sortIcon>\n </div>\n </th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns let-expanded=\"expanded\">\n <tr [pSelectableRow]=\"rowData\">\n <td class=\"table-checkbox\">\n <p-tableCheckbox [value]=\"rowData\"></p-tableCheckbox>\n </td>\n <td (click)=\"selection = [rowData]\">\n <span>{{ rowData[\"logistcUnitName\"] }}</span>\n </td>\n <td (click)=\"selection = [rowData]\">\n <span>{{ rowData[\"logistcUnitDocument\"] }}</span>\n </td>\n <td (click)=\"selection = [rowData]\">\n <span>{{ rowData[\"invoiceKey\"] }}</span>\n </td>\n <td (click)=\"selection = [rowData]\">\n <span>{{ rowData[\"invoiceNumber\"] }}</span>\n </td>\n <td (click)=\"selection = [rowData]\">\n <span>{{ rowData[\"invoiceSerialNumber\"] }}</span>\n </td>\n <td (click)=\"selection = [rowData]\">\n <span>{{ rowData[\"ownerName\"] }}</span>\n </td>\n <td (click)=\"selection = [rowData]\">\n <span>{{ rowData[\"ownerDocument\"] }}</span>\n </td>\n <td (click)=\"selection = [rowData]\">\n <span>{{ rowData[\"code\"] }}</span>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"paginatorright\">\n <span [translate]=\"'total_records'\" [translateParams]=\"{ value: documentTotalRecords }\"></span>\n </ng-template>\n </p-table> \n </div>\n </div>\n <register-document\n [edit]=\"edit\"\n [viewDocument]=\"selection\"\n (document)=\"onChangeDocument($event)\"\n [(visible)]=\"visibleDocumentRegister\"\n [agenda]=\"agenda\">\n </register-document>\n <insert-key (document)=\"onChangeDocument($event)\" [(visible)]=\"visibleInvoiceKey\"></insert-key>\n</p-panel>\n<div class=\"button-save\">\n <s-button \n priority=\"primary\" [label]=\"'save' | translate\" [disabled]=\"disabled || !this.gridData\" (click)=\"save()\">\n </s-button>\n</div>\n\n\n<ng-template #emptyList>\n <div class=\"center\">\n <s-empty-state\n iconClass=\"fa fa-exclamation-triangle\" [title]=\"'detail_empty_state_title' | translate\"\n [description]=\"'detail_empty_state_description' | translate\">\n </s-empty-state>\n </div>\n</ng-template>\n",
|
|
3254
|
+
styles: [".buttons{display:flex;justify-content:space-between}.center{flex-direction:column;text-align:center}.ui-g{display:block}.button-save{margin:5px 0}#refresh-button{color:#fff}.table-checkbox{width:50px}"]
|
|
3225
3255
|
}),
|
|
3226
3256
|
__metadata("design:paramtypes", [TranslateService,
|
|
3227
3257
|
DocumentService,
|
|
3228
|
-
MessageService
|
|
3258
|
+
MessageService,
|
|
3259
|
+
ConfirmationService])
|
|
3229
3260
|
], DocumentGridComponent);
|
|
3230
3261
|
return DocumentGridComponent;
|
|
3231
3262
|
}());
|
|
@@ -3253,7 +3284,7 @@ var Document = /** @class */ (function () {
|
|
|
3253
3284
|
"partnerName",
|
|
3254
3285
|
"partnerDocument",
|
|
3255
3286
|
"notes",
|
|
3256
|
-
"
|
|
3287
|
+
"code",
|
|
3257
3288
|
"createdBy",
|
|
3258
3289
|
"createdDate",
|
|
3259
3290
|
"lastModifiedBy",
|
|
@@ -3408,15 +3439,20 @@ var RegisterDocumentComponent = /** @class */ (function () {
|
|
|
3408
3439
|
RegisterDocumentComponent.prototype.visibilityConfig = function () {
|
|
3409
3440
|
if (!this.edit && this.visible) {
|
|
3410
3441
|
this.formGroup.disable();
|
|
3411
|
-
this.setValuesFormGroup(this.viewDocument);
|
|
3442
|
+
this.setValuesFormGroup(this.viewDocument[0]);
|
|
3412
3443
|
this.setValueForPartner();
|
|
3413
3444
|
this.hideSaveButton = true;
|
|
3414
3445
|
return this.visible;
|
|
3415
3446
|
}
|
|
3416
|
-
|
|
3447
|
+
if (this.formGroup !== undefined) {
|
|
3448
|
+
this.formGroup.enable();
|
|
3449
|
+
this.setValueForPartner();
|
|
3450
|
+
this.hideSaveButton = false;
|
|
3451
|
+
}
|
|
3417
3452
|
};
|
|
3418
3453
|
RegisterDocumentComponent.prototype.close = function () {
|
|
3419
3454
|
this.visibleChange.emit(false);
|
|
3455
|
+
this.formGroup.reset();
|
|
3420
3456
|
};
|
|
3421
3457
|
RegisterDocumentComponent.prototype.setValuesFormGroup = function (document) {
|
|
3422
3458
|
this.formGroup.get('invoiceKey').setValue(document.invoiceKey);
|
|
@@ -3425,7 +3461,7 @@ var RegisterDocumentComponent = /** @class */ (function () {
|
|
|
3425
3461
|
this.formGroup.get('logistcUnitDocument').setValue(document.logistcUnitDocument);
|
|
3426
3462
|
this.formGroup.get('logistcUnitName').setValue(document.logistcUnitName);
|
|
3427
3463
|
this.formGroup.get('notes').setValue(document.notes);
|
|
3428
|
-
this.formGroup.get('
|
|
3464
|
+
this.formGroup.get('code').setValue(document.code);
|
|
3429
3465
|
this.formGroup.get('ownerDocument').setValue(document.ownerDocument);
|
|
3430
3466
|
this.formGroup.get('ownerName').setValue(document.ownerName);
|
|
3431
3467
|
};
|
|
@@ -3449,7 +3485,7 @@ var RegisterDocumentComponent = /** @class */ (function () {
|
|
|
3449
3485
|
partnerName: [undefined],
|
|
3450
3486
|
partnerDocument: [undefined],
|
|
3451
3487
|
notes: [undefined],
|
|
3452
|
-
|
|
3488
|
+
code: [undefined],
|
|
3453
3489
|
});
|
|
3454
3490
|
};
|
|
3455
3491
|
RegisterDocumentComponent.prototype.save = function () {
|
|
@@ -3466,13 +3502,13 @@ var RegisterDocumentComponent = /** @class */ (function () {
|
|
|
3466
3502
|
RegisterDocumentComponent.prototype.successMessage = function () {
|
|
3467
3503
|
this.messageService.add({
|
|
3468
3504
|
severity: "success",
|
|
3469
|
-
summary: this.translateService.instant("saved_message_title"),
|
|
3470
|
-
detail: this.translateService.instant("
|
|
3505
|
+
summary: this.translateService.instant("yms.saved_message_title"),
|
|
3506
|
+
detail: this.translateService.instant("yms.int.wms_success_message_description"),
|
|
3471
3507
|
});
|
|
3472
3508
|
};
|
|
3473
3509
|
__decorate([
|
|
3474
3510
|
Input(),
|
|
3475
|
-
__metadata("design:type",
|
|
3511
|
+
__metadata("design:type", Array)
|
|
3476
3512
|
], RegisterDocumentComponent.prototype, "viewDocument", void 0);
|
|
3477
3513
|
__decorate([
|
|
3478
3514
|
Input(),
|
|
@@ -3497,7 +3533,7 @@ var RegisterDocumentComponent = /** @class */ (function () {
|
|
|
3497
3533
|
RegisterDocumentComponent = __decorate([
|
|
3498
3534
|
Component({
|
|
3499
3535
|
selector: "register-document",
|
|
3500
|
-
template: "<s-sidebar\n [visible]=\"visible\"\n header=\"{{ 'yms.int.wms_register_document_add_document' | translate }}\"\n (visibleChange)=\"close()\">\n <form [formGroup]=\"formGroup\">\n <div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-6 required\">\n <label for=\"invoiceKey\">{{'yms.int.wms_register_document_invoice_key' | translate}}</label>\n <input id=\"invoiceKey\" pInputText type=\"text\" formControlName=\"invoiceKey\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"invoiceNumber\">{{'yms.int.wms_register_document_invoice_number' | translate}}</label>\n <input id=\"invoiceNumber\" pInputText type=\"text\" formControlName=\"invoiceNumber\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"invoiceSerialNumber\">\n {{'yms.int.wms_register_document_invoice_serial_number' | translate}}\n </label>\n <input id=\"invoiceSerialNumber\" pInputText type=\"text\" formControlName=\"invoiceSerialNumber\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"logistcUnitName\">{{'yms.int.wms_register_document_logistc_unit_name' | translate}}</label>\n <input id=\"logistcUnitName\" pInputText type=\"text\" formControlName=\"logistcUnitName\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"logistcUnitDocument\">\n {{'yms.int.wms_register_document_logistc_unit_document' | translate}}\n </label>\n <input id=\"logistcUnitDocument\" pInputText type=\"text\" formControlName=\"logistcUnitDocument\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"documentOwnerName\">{{'yms.int.wms_register_document_owner_name' | translate}}</label>\n <input id=\"documentOwnerName\" pInputText type=\"text\" formControlName=\"ownerName\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"ownerDocument\">{{'yms.int.wms_register_document_owner_document' | translate}}</label>\n <input id=\"ownerDocument\" pInputText type=\"text\" formControlName=\"ownerDocument\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"partnerName\">{{'yms.int.wms_register_document_partner_name' | translate}}</label>\n <input id=\"partnerName\" pInputText type=\"text\" formControlName=\"partnerName\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"partnerDocument\">{{'yms.int.wms_register_document_partner_document' | translate}}</label>\n <input id=\"partnerDocument\" pInputText type=\"text\" formControlName=\"partnerDocument\">\n </div>\n <div class=\"ui-g-12\">\n <label for=\"notes\" id=\"notes\">{{'yms.int.wms_register_document_notes' | translate}}</label>\n <textarea id=\"notes\" rows=\"5\" pInputTextarea autoResize=\"autoResize\" formControlName=\"notes\"></textarea>\n </div>\n <div class=\"ui-g-6\">\n <label for=\"
|
|
3536
|
+
template: "<s-sidebar\n [visible]=\"visible\"\n header=\"{{ 'yms.int.wms_register_document_add_document' | translate }}\"\n (visibleChange)=\"close()\">\n <form [formGroup]=\"formGroup\">\n <div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-6 required\">\n <label for=\"invoiceKey\">{{'yms.int.wms_register_document_invoice_key' | translate}}</label>\n <input id=\"invoiceKey\" pInputText type=\"text\" formControlName=\"invoiceKey\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"invoiceNumber\">{{'yms.int.wms_register_document_invoice_number' | translate}}</label>\n <input id=\"invoiceNumber\" pInputText type=\"text\" formControlName=\"invoiceNumber\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"invoiceSerialNumber\">\n {{'yms.int.wms_register_document_invoice_serial_number' | translate}}\n </label>\n <input id=\"invoiceSerialNumber\" pInputText type=\"text\" formControlName=\"invoiceSerialNumber\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"logistcUnitName\">{{'yms.int.wms_register_document_logistc_unit_name' | translate}}</label>\n <input id=\"logistcUnitName\" pInputText type=\"text\" formControlName=\"logistcUnitName\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"logistcUnitDocument\">\n {{'yms.int.wms_register_document_logistc_unit_document' | translate}}\n </label>\n <input id=\"logistcUnitDocument\" pInputText type=\"text\" formControlName=\"logistcUnitDocument\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"documentOwnerName\">{{'yms.int.wms_register_document_owner_name' | translate}}</label>\n <input id=\"documentOwnerName\" pInputText type=\"text\" formControlName=\"ownerName\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"ownerDocument\">{{'yms.int.wms_register_document_owner_document' | translate}}</label>\n <input id=\"ownerDocument\" pInputText type=\"text\" formControlName=\"ownerDocument\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"partnerName\">{{'yms.int.wms_register_document_partner_name' | translate}}</label>\n <input id=\"partnerName\" pInputText type=\"text\" formControlName=\"partnerName\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"partnerDocument\">{{'yms.int.wms_register_document_partner_document' | translate}}</label>\n <input id=\"partnerDocument\" pInputText type=\"text\" formControlName=\"partnerDocument\">\n </div>\n <div class=\"ui-g-12\">\n <label for=\"notes\" id=\"notes\">{{'yms.int.wms_register_document_notes' | translate}}</label>\n <textarea id=\"notes\" rows=\"5\" pInputTextarea autoResize=\"autoResize\" formControlName=\"notes\"></textarea>\n </div>\n <div class=\"ui-g-6\">\n <label for=\"code\">\n {{'yms.int.wms_register_document_order_receiving_code' | translate}}\n </label>\n <input id=\"code\" pInputText type=\"text\" formControlName=\"code\">\n </div>\n </div>\n </form>\n <div class=\"space-between\">\n <button\n pButton label=\"{{'save' | translate}}\" (click)=\"save()\" [attr.data-hidden]=\"hideSaveButton\">\n </button>\n <button\n type=\"button\" class=\"ui-button-link\" pButton label=\"{{'cancel' | translate}}\" (click)=\"close()\">\n </button>\n </div>\n</s-sidebar>"
|
|
3501
3537
|
}),
|
|
3502
3538
|
__metadata("design:paramtypes", [FormBuilder,
|
|
3503
3539
|
MessageService,
|
|
@@ -3569,7 +3605,7 @@ var InsertKeyComponent = /** @class */ (function () {
|
|
|
3569
3605
|
return;
|
|
3570
3606
|
}
|
|
3571
3607
|
_this.document.emit(content.contents[0]);
|
|
3572
|
-
_this.message("success", "yms.int.wms_insert_key_success_message_header", "yms.int.
|
|
3608
|
+
_this.message("success", "yms.int.wms_insert_key_success_message_header", "yms.int.wms_success_message_description");
|
|
3573
3609
|
_this.formGroup.reset();
|
|
3574
3610
|
});
|
|
3575
3611
|
};
|
|
@@ -3598,7 +3634,7 @@ var InsertKeyComponent = /** @class */ (function () {
|
|
|
3598
3634
|
InsertKeyComponent = __decorate([
|
|
3599
3635
|
Component({
|
|
3600
3636
|
selector: "insert-key",
|
|
3601
|
-
template: "<form [formGroup]=\"formGroup\">\n <p-dialog [(visible)]=\"visible\" (visibleChange)=\"cancel()\">\n <p-header>{{'yms.
|
|
3637
|
+
template: "<form [formGroup]=\"formGroup\">\n <p-dialog [(visible)]=\"visible\" [modal]=\"true\" (visibleChange)=\"cancel()\">\n <p-header>{{'yms.int.wms_insert_key_header' | translate}}</p-header>\n <div class=\"flex py-2 justify-content-center spacing-bottom\">\n <label for=\"key\">{{'yms.int.wms_insert_key_label' | translate}}</label>\n <input id=\"key\" class=\"size-input\" pInputText type=\"text\" formControlName=\"key\">\n </div>\n <div class=\"separator\"></div>\n <div class=\"spacing-top\">\n <s-button pButton label=\"{{'save' | translate}}\" (click)=\"add()\"></s-button>\n <s-button\n type=\"button\"\n class=\"ui-button-link\"\n pButton label=\"{{'cancel' | translate}}\"\n (click)=\"cancel()\">\n </s-button>\n </div>\n </p-dialog>\n</form>",
|
|
3602
3638
|
styles: [".spacing-top{margin-top:10px}.spacing-bottom{margin-bottom:10px}.separator{width:100%;margin:5px 0;height:1px;background-color:#ccc}.size-input{width:550px}"]
|
|
3603
3639
|
}),
|
|
3604
3640
|
__metadata("design:paramtypes", [FormBuilder,
|