@seniorsistemas/yms-integration 1.24.0 → 1.25.0-fb567b04-f458-4186-9566-f0563cb9fb94
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 +130 -59
- 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/seniorsistemas-yms-integration.js +50 -49
- package/esm2015/src/wms/components/document-grid/document-grid.component.js +7 -2
- package/esm2015/src/wms/components/document-grid/insert-key/insert-key.component.js +19 -4
- package/esm2015/src/wms/components/document-grid/register-document/register-document.component.js +16 -3
- package/esm2015/src/wms/entities/document/document-dto.js +1 -1
- package/esm2015/src/wms/entities/wms-system/wms-system.js +3 -2
- package/esm2015/src/wms/form/form-wms.component.js +15 -4
- package/esm2015/src/wms/form/form-wms.service.js +25 -0
- package/esm2015/src/wms/wms.module.js +4 -2
- package/esm5/seniorsistemas-yms-integration.js +50 -49
- package/esm5/src/wms/components/document-grid/document-grid.component.js +7 -2
- package/esm5/src/wms/components/document-grid/insert-key/insert-key.component.js +19 -4
- package/esm5/src/wms/components/document-grid/register-document/register-document.component.js +16 -3
- package/esm5/src/wms/entities/document/document-dto.js +1 -1
- package/esm5/src/wms/entities/wms-system/wms-system.js +3 -2
- package/esm5/src/wms/form/form-wms.component.js +16 -4
- package/esm5/src/wms/form/form-wms.service.js +28 -0
- package/esm5/src/wms/wms.module.js +4 -2
- package/fesm2015/seniorsistemas-yms-integration.js +77 -11
- package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
- package/fesm5/seniorsistemas-yms-integration.js +81 -11
- package/fesm5/seniorsistemas-yms-integration.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-yms-integration.d.ts +49 -48
- package/seniorsistemas-yms-integration.metadata.json +1 -1
- package/src/wms/components/document-grid/document-grid.component.d.ts +2 -0
- package/src/wms/components/document-grid/insert-key/insert-key.component.d.ts +4 -0
- package/src/wms/components/document-grid/register-document/register-document.component.d.ts +4 -0
- package/src/wms/entities/document/document-dto.d.ts +1 -1
- package/src/wms/entities/wms-system/wms-system.d.ts +2 -1
- package/src/wms/form/form-wms.component.d.ts +5 -1
- package/src/wms/form/form-wms.service.d.ts +9 -0
|
@@ -2995,6 +2995,35 @@ var VisitorListModule = /** @class */ (function () {
|
|
|
2995
2995
|
return VisitorListModule;
|
|
2996
2996
|
}());
|
|
2997
2997
|
|
|
2998
|
+
var WmsSystem;
|
|
2999
|
+
(function (WmsSystem) {
|
|
3000
|
+
WmsSystem["NONE"] = "NONE";
|
|
3001
|
+
WmsSystem["SENIOR"] = "SENIOR";
|
|
3002
|
+
WmsSystem["WIS"] = "WIS";
|
|
3003
|
+
WmsSystem["ALCIS"] = "ALCIS";
|
|
3004
|
+
WmsSystem["SENIOR_CONNECT"] = "SENIOR_CONNECT";
|
|
3005
|
+
WmsSystem["GENERIC"] = "GENERIC";
|
|
3006
|
+
})(WmsSystem || (WmsSystem = {}));
|
|
3007
|
+
|
|
3008
|
+
var FormWmsService = /** @class */ (function (_super) {
|
|
3009
|
+
__extends(FormWmsService, _super);
|
|
3010
|
+
function FormWmsService(http, messageService) {
|
|
3011
|
+
var _this = _super.call(this, messageService) || this;
|
|
3012
|
+
_this.http = http;
|
|
3013
|
+
_this.messageService = messageService;
|
|
3014
|
+
return _this;
|
|
3015
|
+
}
|
|
3016
|
+
FormWmsService.prototype.getSystemIntegration = function () {
|
|
3017
|
+
return this.http.post("yms_int/wms/queries/getSystemIntegration", {});
|
|
3018
|
+
};
|
|
3019
|
+
FormWmsService.ngInjectableDef = defineInjectable({ factory: function FormWmsService_Factory() { return new FormWmsService(inject(HttpClient), inject(MessageService$1)); }, token: FormWmsService, providedIn: "root" });
|
|
3020
|
+
FormWmsService = __decorate([
|
|
3021
|
+
Injectable({ providedIn: 'root' }),
|
|
3022
|
+
__metadata("design:paramtypes", [HttpClient, MessageService$1])
|
|
3023
|
+
], FormWmsService);
|
|
3024
|
+
return FormWmsService;
|
|
3025
|
+
}(Service));
|
|
3026
|
+
|
|
2998
3027
|
var INFORMACAOES_ADICIONAIS_HEADER = "Informações adicionais";
|
|
2999
3028
|
var FormWmsDescritor = /** @class */ (function () {
|
|
3000
3029
|
function FormWmsDescritor() {
|
|
@@ -3014,9 +3043,10 @@ var FormWmsDescritor = /** @class */ (function () {
|
|
|
3014
3043
|
}());
|
|
3015
3044
|
var FormWmsComponent = /** @class */ (function (_super) {
|
|
3016
3045
|
__extends(FormWmsComponent, _super);
|
|
3017
|
-
function FormWmsComponent(integrationCallback) {
|
|
3046
|
+
function FormWmsComponent(integrationCallback, wmsService) {
|
|
3018
3047
|
var _this = _super.call(this) || this;
|
|
3019
3048
|
_this.integrationCallback = integrationCallback;
|
|
3049
|
+
_this.wmsService = wmsService;
|
|
3020
3050
|
_this.save = [];
|
|
3021
3051
|
_this.header = INFORMACAOES_ADICIONAIS_HEADER;
|
|
3022
3052
|
_this.loading = false;
|
|
@@ -3032,6 +3062,11 @@ var FormWmsComponent = /** @class */ (function (_super) {
|
|
|
3032
3062
|
return empty();
|
|
3033
3063
|
}))
|
|
3034
3064
|
.subscribe();
|
|
3065
|
+
this.wmsService.getSystemIntegration()
|
|
3066
|
+
.subscribe(function (_a) {
|
|
3067
|
+
var system = _a.system;
|
|
3068
|
+
_this.wmsSystem = system;
|
|
3069
|
+
});
|
|
3035
3070
|
};
|
|
3036
3071
|
FormWmsComponent.prototype.ngOnDestroy = function () {
|
|
3037
3072
|
this.unsubscribe$.next();
|
|
@@ -3045,11 +3080,15 @@ var FormWmsComponent = /** @class */ (function (_super) {
|
|
|
3045
3080
|
Input(),
|
|
3046
3081
|
__metadata("design:type", Array)
|
|
3047
3082
|
], FormWmsComponent.prototype, "save", void 0);
|
|
3083
|
+
__decorate([
|
|
3084
|
+
Input(),
|
|
3085
|
+
__metadata("design:type", String)
|
|
3086
|
+
], FormWmsComponent.prototype, "wmsSystem", void 0);
|
|
3048
3087
|
FormWmsComponent = __decorate([
|
|
3049
3088
|
Component({
|
|
3050
|
-
template: "\n <div *ngIf=\"agenda\">\n <document-grid [agenda]=\"agenda\"></document-grid>\n </div>\n "
|
|
3089
|
+
template: "\n <div *ngIf=\"agenda\">\n <document-grid [agenda]=\"agenda\" [wmsSystem]=\"wmsSystem\" ></document-grid>\n </div>\n "
|
|
3051
3090
|
}),
|
|
3052
|
-
__metadata("design:paramtypes", [IntegrationEventsCallback])
|
|
3091
|
+
__metadata("design:paramtypes", [IntegrationEventsCallback, FormWmsService])
|
|
3053
3092
|
], FormWmsComponent);
|
|
3054
3093
|
return FormWmsComponent;
|
|
3055
3094
|
}(FormWmsDescritor));
|
|
@@ -3211,6 +3250,10 @@ var DocumentGridComponent = /** @class */ (function () {
|
|
|
3211
3250
|
Input(),
|
|
3212
3251
|
__metadata("design:type", Object)
|
|
3213
3252
|
], DocumentGridComponent.prototype, "agenda", void 0);
|
|
3253
|
+
__decorate([
|
|
3254
|
+
Input(),
|
|
3255
|
+
__metadata("design:type", String)
|
|
3256
|
+
], DocumentGridComponent.prototype, "wmsSystem", void 0);
|
|
3214
3257
|
__decorate([
|
|
3215
3258
|
Output(),
|
|
3216
3259
|
__metadata("design:type", Boolean)
|
|
@@ -3250,7 +3293,7 @@ var DocumentGridComponent = /** @class */ (function () {
|
|
|
3250
3293
|
DocumentGridComponent = __decorate([
|
|
3251
3294
|
Component({
|
|
3252
3295
|
selector: 'document-grid',
|
|
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[\"
|
|
3296
|
+
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[\"key\"] }}</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 [wmsSystem]=\"wmsSystem\"\n [edit]=\"edit\"\n [viewDocument]=\"selection\"\n (document)=\"onChangeDocument($event)\"\n [(visible)]=\"visibleDocumentRegister\"\n [agenda]=\"agenda\">\n </register-document> \n <insert-key [wmsSystem]=\"wmsSystem\" \n (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
3297
|
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}"]
|
|
3255
3298
|
}),
|
|
3256
3299
|
__metadata("design:paramtypes", [TranslateService,
|
|
@@ -3455,6 +3498,7 @@ var RegisterDocumentComponent = /** @class */ (function () {
|
|
|
3455
3498
|
this.formGroup.reset();
|
|
3456
3499
|
};
|
|
3457
3500
|
RegisterDocumentComponent.prototype.setValuesFormGroup = function (document) {
|
|
3501
|
+
this.formGroup.get('key').setValue(document.key);
|
|
3458
3502
|
this.formGroup.get('invoiceKey').setValue(document.invoiceKey);
|
|
3459
3503
|
this.formGroup.get('invoiceNumber').setValue(document.invoiceNumber);
|
|
3460
3504
|
this.formGroup.get('invoiceSerialNumber').setValue(document.invoiceSerialNumber);
|
|
@@ -3474,7 +3518,8 @@ var RegisterDocumentComponent = /** @class */ (function () {
|
|
|
3474
3518
|
};
|
|
3475
3519
|
RegisterDocumentComponent.prototype.getFormGroup = function () {
|
|
3476
3520
|
this.formGroup = this.fb.group({
|
|
3477
|
-
|
|
3521
|
+
key: [undefined, Validators.required],
|
|
3522
|
+
invoiceKey: [undefined],
|
|
3478
3523
|
schedulingId: [undefined],
|
|
3479
3524
|
invoiceNumber: [undefined],
|
|
3480
3525
|
invoiceSerialNumber: [undefined],
|
|
@@ -3506,6 +3551,12 @@ var RegisterDocumentComponent = /** @class */ (function () {
|
|
|
3506
3551
|
detail: this.translateService.instant("yms.int.wms_success_message_description"),
|
|
3507
3552
|
});
|
|
3508
3553
|
};
|
|
3554
|
+
RegisterDocumentComponent.prototype.isWmsWis = function () {
|
|
3555
|
+
return this.wmsSystem === WmsSystem.WIS;
|
|
3556
|
+
};
|
|
3557
|
+
RegisterDocumentComponent.prototype.isWmsSeniorConnect = function () {
|
|
3558
|
+
return this.wmsSystem === WmsSystem.SENIOR_CONNECT;
|
|
3559
|
+
};
|
|
3509
3560
|
__decorate([
|
|
3510
3561
|
Input(),
|
|
3511
3562
|
__metadata("design:type", Array)
|
|
@@ -3522,6 +3573,10 @@ var RegisterDocumentComponent = /** @class */ (function () {
|
|
|
3522
3573
|
Output(),
|
|
3523
3574
|
__metadata("design:type", EventEmitter)
|
|
3524
3575
|
], RegisterDocumentComponent.prototype, "document", void 0);
|
|
3576
|
+
__decorate([
|
|
3577
|
+
Input(),
|
|
3578
|
+
__metadata("design:type", String)
|
|
3579
|
+
], RegisterDocumentComponent.prototype, "wmsSystem", void 0);
|
|
3525
3580
|
__decorate([
|
|
3526
3581
|
Input(),
|
|
3527
3582
|
__metadata("design:type", EventEmitter)
|
|
@@ -3533,7 +3588,7 @@ var RegisterDocumentComponent = /** @class */ (function () {
|
|
|
3533
3588
|
RegisterDocumentComponent = __decorate([
|
|
3534
3589
|
Component({
|
|
3535
3590
|
selector: "register-document",
|
|
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
|
|
3591
|
+
template: "<s-sidebar\n [visible]=\"visible\"\n header=\"{{ 'yms.int.wms_register_document_add_document' | translate }} {{ wmsSystem }}\"\n (visibleChange)=\"close()\">\n <form [formGroup]=\"formGroup\">\n <div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-6\" *ngIf=\"!isWmsSeniorConnect() && !isWmsWis()\">\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\" *ngIf=\"!isWmsSeniorConnect()\">\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\" *ngIf=\"!isWmsSeniorConnect()\">\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-8\">\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-4\">\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-8\" *ngIf=\"!isWmsSeniorConnect() && !isWmsWis()\">\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-4\" *ngIf=\"!isWmsSeniorConnect() && !isWmsWis()\">\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-8\">\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-4\">\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=\"4\" pInputTextarea autoResize=\"autoResize\" formControlName=\"notes\"></textarea>\n </div>\n <div class=\"ui-g-4\">\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>"
|
|
3537
3592
|
}),
|
|
3538
3593
|
__metadata("design:paramtypes", [FormBuilder,
|
|
3539
3594
|
MessageService,
|
|
@@ -3580,9 +3635,19 @@ var InsertKeyComponent = /** @class */ (function () {
|
|
|
3580
3635
|
}
|
|
3581
3636
|
InsertKeyComponent.prototype.ngOnInit = function () {
|
|
3582
3637
|
this.formGroup = this.formBuilder.group({
|
|
3583
|
-
key: [undefined]
|
|
3638
|
+
key: [undefined],
|
|
3639
|
+
purchaseOrder: [undefined],
|
|
3640
|
+
invoiceNumber: [undefined],
|
|
3641
|
+
invoiceSerie: [undefined],
|
|
3642
|
+
partnerDocument: [undefined]
|
|
3584
3643
|
});
|
|
3585
3644
|
};
|
|
3645
|
+
InsertKeyComponent.prototype.isWmsWis = function () {
|
|
3646
|
+
return this.wmsSystem === WmsSystem.WIS;
|
|
3647
|
+
};
|
|
3648
|
+
InsertKeyComponent.prototype.isWmsSeniorConnect = function () {
|
|
3649
|
+
return this.wmsSystem === WmsSystem.SENIOR_CONNECT;
|
|
3650
|
+
};
|
|
3586
3651
|
InsertKeyComponent.prototype.add = function () {
|
|
3587
3652
|
this.visibleChange.emit(false);
|
|
3588
3653
|
if (!this.formGroup.get('key').value) {
|
|
@@ -3627,6 +3692,10 @@ var InsertKeyComponent = /** @class */ (function () {
|
|
|
3627
3692
|
Input(),
|
|
3628
3693
|
__metadata("design:type", EventEmitter)
|
|
3629
3694
|
], InsertKeyComponent.prototype, "visible", void 0);
|
|
3695
|
+
__decorate([
|
|
3696
|
+
Input(),
|
|
3697
|
+
__metadata("design:type", String)
|
|
3698
|
+
], InsertKeyComponent.prototype, "wmsSystem", void 0);
|
|
3630
3699
|
__decorate([
|
|
3631
3700
|
Output(),
|
|
3632
3701
|
__metadata("design:type", Object)
|
|
@@ -3634,8 +3703,8 @@ var InsertKeyComponent = /** @class */ (function () {
|
|
|
3634
3703
|
InsertKeyComponent = __decorate([
|
|
3635
3704
|
Component({
|
|
3636
3705
|
selector: "insert-key",
|
|
3637
|
-
template: "<form [formGroup]=\"formGroup\">\n <p-dialog [(visible)]=\"visible\" [modal]=\"true\" (visibleChange)=\"cancel()\">\n <p-header>{{'yms.int.
|
|
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:
|
|
3706
|
+
template: "<form [formGroup]=\"formGroup\">\n <p-dialog [(visible)]=\"visible\" [modal]=\"true\" (visibleChange)=\"cancel()\">\n <p-header>{{'yms.int.wms_search_document' | translate}} {{ wmsSystem }}</p-header>\n <div class=\"flex py-2 justify-content-center spacing-bottom\" \n *ngIf=\"!isWmsSeniorConnect() && !isWmsWis()\">\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=\"flex py-2 justify-content-center spacing-bottom\" *ngIf=\"isWmsSeniorConnect()\">\n <label for=\"purchaseOrder\">{{'yms.int.wms_purchaseOrder' | translate}} </label>\n <input id=\"purchaseOrder\" class=\"size-input\" pInputText type=\"text\" formControlName=\"purchaseOrder\">\n </div>\n <div class=\"flex py-2 justify-content-center spacing-bottom\" *ngIf=\"isWmsWis()\">\n <label for=\"invoiceNumber\">{{'yms.int.wms_invoice_number' | translate}}</label>\n <input id=\"invoiceNumber\" class=\"size-input\" pInputText type=\"text\" formControlName=\"invoiceNumber\">\n </div>\n <div class=\"flex py-2 justify-content-center spacing-bottom\" *ngIf=\"isWmsWis()\">\n <label for=\"invoiceSerie\">{{'yms.int.wms_invoice_serie' | translate}}</label>\n <input id=\"invoiceSerie\" class=\"size-input\" pInputText type=\"text\" formControlName=\"invoiceSerie\">\n </div>\n <div class=\"flex py-2 justify-content-center spacing-bottom\" *ngIf=\"isWmsWis()\">\n <label for=\"partnerDocument\">{{'yms.int.wms_partner_document' | translate}}</label>\n <input id=\"partnerDocument\" class=\"size-input\" pInputText type=\"text\" formControlName=\"partnerDocument\">\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>",
|
|
3707
|
+
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:480px}"]
|
|
3639
3708
|
}),
|
|
3640
3709
|
__metadata("design:paramtypes", [FormBuilder,
|
|
3641
3710
|
DocumentService,
|
|
@@ -3733,7 +3802,8 @@ var WmsModule = /** @class */ (function () {
|
|
|
3733
3802
|
],
|
|
3734
3803
|
providers: [
|
|
3735
3804
|
FieldCustomizationService,
|
|
3736
|
-
FocusService
|
|
3805
|
+
FocusService,
|
|
3806
|
+
FormWmsService
|
|
3737
3807
|
]
|
|
3738
3808
|
}),
|
|
3739
3809
|
__metadata("design:paramtypes", [IntegrationDispatcher])
|
|
@@ -13837,5 +13907,5 @@ var DockModule = /** @class */ (function () {
|
|
|
13837
13907
|
return DockModule;
|
|
13838
13908
|
}());
|
|
13839
13909
|
|
|
13840
|
-
export { AgendaModule, AgendaService$1 as AgendaService, BalancaModule, BalancasService, CamerasModule, CamerasService, CancelasModule, CidadeModule, CidadeService, ContratoCompraItemModule, ContratoCompraItemService, ContratoCompraModule, ContratoCompraService, ControladorCancelaComponent, ControladorCancelaDescritor, ControladorCancelasService, CoreModule, DockModule, DockService, ERP_ENVIRONMENT, ERP_SENIOR_HEADER, EmpresaModule, EmpresaService, ErpFormConfigService, ErpProcessData, ErpProcessService, ErpSeniorModule, EstadoModule, EstadoService, ExpedicaoChegadaVeiculoOverride, ExpedicaoModule, ExpedicaoService, FamiliaProdutoModule, FamiliaProdutoService, FieldCustomizationService, FilialModule, FilialService, FormComponent, FormDescritor, FormSamComponent, FormSamDescritor, FormWmsComponent, FormWmsDescritor, HasChangeService, INFORMACAOES_ADICIONAIS_HEADER, InfoComponent, InfoDescritor, IntegrationWebSocket, LogsModule, LogsService, LprModule, LprService, PaisModule, PaisService, PedidoVendaItemModule, PedidoVendaItemService, PedidoVendaModule, PedidoVendaService, PessoaEnderecoModule, PessoaEnderecoService, PessoaFisicaModule, PessoaFisicaService, PessoaJuridicaModule, PessoaJuridicaService, PessoaModule, PessoaService, PortariasComponent, PortariasDescritor, PortariasModule, ProdutoModule, ProdutoService, RecebimentoChegadaVeiculoOverride, RecebimentoContratoModule, RecebimentoContratoService, RoyaltyModule, RoyaltyService, SAM_SENIOR_HEADER, SafraModule, SafraService, SamSeniorModule, SnapshotComponent, SnapshotDescritor, TransportadoraModule, TransportadoraService, UnidadeMedidaModule, UnidadeMedidaService, VisitorListComponent, VisitorListModule, VisitorListService, VisualizarBalancaComponent, VisualizarBalancaDescritor, WmsModule, highlightLanguages, Service as ɵa, CustomStompConfig as ɵb,
|
|
13910
|
+
export { AgendaModule, AgendaService$1 as AgendaService, BalancaModule, BalancasService, CamerasModule, CamerasService, CancelasModule, CidadeModule, CidadeService, ContratoCompraItemModule, ContratoCompraItemService, ContratoCompraModule, ContratoCompraService, ControladorCancelaComponent, ControladorCancelaDescritor, ControladorCancelasService, CoreModule, DockModule, DockService, ERP_ENVIRONMENT, ERP_SENIOR_HEADER, EmpresaModule, EmpresaService, ErpFormConfigService, ErpProcessData, ErpProcessService, ErpSeniorModule, EstadoModule, EstadoService, ExpedicaoChegadaVeiculoOverride, ExpedicaoModule, ExpedicaoService, FamiliaProdutoModule, FamiliaProdutoService, FieldCustomizationService, FilialModule, FilialService, FormComponent, FormDescritor, FormSamComponent, FormSamDescritor, FormWmsComponent, FormWmsDescritor, HasChangeService, INFORMACAOES_ADICIONAIS_HEADER, InfoComponent, InfoDescritor, IntegrationWebSocket, LogsModule, LogsService, LprModule, LprService, PaisModule, PaisService, PedidoVendaItemModule, PedidoVendaItemService, PedidoVendaModule, PedidoVendaService, PessoaEnderecoModule, PessoaEnderecoService, PessoaFisicaModule, PessoaFisicaService, PessoaJuridicaModule, PessoaJuridicaService, PessoaModule, PessoaService, PortariasComponent, PortariasDescritor, PortariasModule, ProdutoModule, ProdutoService, RecebimentoChegadaVeiculoOverride, RecebimentoContratoModule, RecebimentoContratoService, RoyaltyModule, RoyaltyService, SAM_SENIOR_HEADER, SafraModule, SafraService, SamSeniorModule, SnapshotComponent, SnapshotDescritor, TransportadoraModule, TransportadoraService, UnidadeMedidaModule, UnidadeMedidaService, VisitorListComponent, VisitorListModule, VisitorListService, VisualizarBalancaComponent, VisualizarBalancaDescritor, WmsModule, highlightLanguages, Service as ɵa, CustomStompConfig as ɵb, AgendaService as ɵba, EntityService$2 as ɵbb, EntityService$1 as ɵbc, InsertKeyModule as ɵbd, InsertKeyComponent as ɵbe, IntegrationService as ɵbf, RecebimentoFormComponent as ɵbg, DerivacaoService as ɵbh, NotaValidatorService as ɵbi, TransgeniaService as ɵbj, VerificaNotafiscal as ɵbk, BuildFormField as ɵbl, ExpedicaoFormComponent as ɵbm, ExpedicaoInfoComponent as ɵbn, RecebimentoInfoComponent as ɵbo, DevolucaoFormComponent as ɵbp, DevolucaoService as ɵbq, DevolucaoChegadaVeiculoOverride as ɵbr, RecebimentoOrdemCompraFormComponent as ɵbs, OrdemCompraService as ɵbt, RecebimentoOrdemCompraService as ɵbu, RecebimentoOrdemCompraChegadaVeiculoOverride as ɵbv, RecebimentoOrdemCompraInfoComponent as ɵbw, DevolucaoInfoComponent as ɵbx, ContratoFormComponent as ɵby, OrdemCompraFormComponent as ɵbz, ViewImageComponent as ɵc, ProcessoAvulsoFormComponent as ɵca, ProcessoAvulsoService as ɵcb, ProcessoAvulsoChegadaVeiculoOverride as ɵcc, ProcessoAvulsoInfoComponent as ɵcd, LogIntegracaoDescritor as ɵce, LogIntegracaoComponent as ɵcf, LogIntegracaoService as ɵcg, DerivacaoModule as ɵch, DevolucaoModule as ɵci, OrdemCompraModule as ɵcj, RecebimentoOrdemCompraModule as ɵck, TransgeniaModule as ɵcl, ProcessoAvulsoModule as ɵcm, LogIntegracaoModule as ɵcn, NotaFormModule as ɵco, DirectivesModule as ɵcp, TrimDirective as ɵcq, NotaFormComponent as ɵcr, LogDescritor as ɵd, LogsComponent as ɵe, PortariasService as ɵf, EntradaComponent as ɵg, AgendasComponent as ɵh, ConfirmacaoComponent as ɵi, VisitedInfoDescritor as ɵj, VisitedInfoComponent as ɵk, VisitedInfoService as ɵl, SchedulingComponent as ɵm, LobbyService as ɵn, EntityService as ɵo, SchedulingService as ɵp, VisitanteComponent as ɵq, VisitanteFormComponent as ɵr, CredencialFormComponent as ɵs, FocusService as ɵt, FormWmsService as ɵu, DocumentGridModule as ɵv, DocumentGridComponent as ɵw, DocumentService as ɵx, RegisterDocumentModule as ɵy, RegisterDocumentComponent as ɵz };
|
|
13841
13911
|
//# sourceMappingURL=seniorsistemas-yms-integration.js.map
|