@seniorsistemas/yms-integration 1.23.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 +134 -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 +20 -5
- 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 +21 -5
- 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 +82 -12
- package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
- package/fesm5/seniorsistemas-yms-integration.js +86 -12
- 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
|
@@ -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';
|
|
@@ -2795,10 +2795,40 @@ VisitorListModule = __decorate([
|
|
|
2795
2795
|
__metadata("design:paramtypes", [IntegrationDispatcher])
|
|
2796
2796
|
], VisitorListModule);
|
|
2797
2797
|
|
|
2798
|
+
var WmsSystem;
|
|
2799
|
+
(function (WmsSystem) {
|
|
2800
|
+
WmsSystem["NONE"] = "NONE";
|
|
2801
|
+
WmsSystem["SENIOR"] = "SENIOR";
|
|
2802
|
+
WmsSystem["WIS"] = "WIS";
|
|
2803
|
+
WmsSystem["ALCIS"] = "ALCIS";
|
|
2804
|
+
WmsSystem["SENIOR_CONNECT"] = "SENIOR_CONNECT";
|
|
2805
|
+
WmsSystem["GENERIC"] = "GENERIC";
|
|
2806
|
+
})(WmsSystem || (WmsSystem = {}));
|
|
2807
|
+
|
|
2808
|
+
let FormWmsService = class FormWmsService extends Service {
|
|
2809
|
+
constructor(http, messageService) {
|
|
2810
|
+
super(messageService);
|
|
2811
|
+
this.http = http;
|
|
2812
|
+
this.messageService = messageService;
|
|
2813
|
+
}
|
|
2814
|
+
getSystemIntegration() {
|
|
2815
|
+
return this.http.post(`yms_int/wms/queries/getSystemIntegration`, {});
|
|
2816
|
+
}
|
|
2817
|
+
};
|
|
2818
|
+
FormWmsService.ngInjectableDef = defineInjectable({ factory: function FormWmsService_Factory() { return new FormWmsService(inject(HttpClient), inject(MessageService$1)); }, token: FormWmsService, providedIn: "root" });
|
|
2819
|
+
FormWmsService = __decorate([
|
|
2820
|
+
Injectable({ providedIn: 'root' }),
|
|
2821
|
+
__metadata("design:paramtypes", [HttpClient, MessageService$1])
|
|
2822
|
+
], FormWmsService);
|
|
2823
|
+
|
|
2798
2824
|
const INFORMACAOES_ADICIONAIS_HEADER = "Informações adicionais";
|
|
2799
2825
|
let FormWmsDescritor = class FormWmsDescritor {
|
|
2800
2826
|
};
|
|
2801
2827
|
FormWmsDescritor = __decorate([
|
|
2828
|
+
Agendamento({
|
|
2829
|
+
header: INFORMACAOES_ADICIONAIS_HEADER,
|
|
2830
|
+
name: 'yms.integracao.wms'
|
|
2831
|
+
}),
|
|
2802
2832
|
ChegadaVeiculo({
|
|
2803
2833
|
header: INFORMACAOES_ADICIONAIS_HEADER,
|
|
2804
2834
|
name: 'yms.integracao.wms',
|
|
@@ -2806,9 +2836,10 @@ FormWmsDescritor = __decorate([
|
|
|
2806
2836
|
})
|
|
2807
2837
|
], FormWmsDescritor);
|
|
2808
2838
|
let FormWmsComponent = class FormWmsComponent extends FormWmsDescritor {
|
|
2809
|
-
constructor(integrationCallback) {
|
|
2839
|
+
constructor(integrationCallback, wmsService) {
|
|
2810
2840
|
super();
|
|
2811
2841
|
this.integrationCallback = integrationCallback;
|
|
2842
|
+
this.wmsService = wmsService;
|
|
2812
2843
|
this.save = [];
|
|
2813
2844
|
this.header = INFORMACAOES_ADICIONAIS_HEADER;
|
|
2814
2845
|
this.loading = false;
|
|
@@ -2822,6 +2853,10 @@ let FormWmsComponent = class FormWmsComponent extends FormWmsDescritor {
|
|
|
2822
2853
|
return empty();
|
|
2823
2854
|
}))
|
|
2824
2855
|
.subscribe();
|
|
2856
|
+
this.wmsService.getSystemIntegration()
|
|
2857
|
+
.subscribe(({ system }) => {
|
|
2858
|
+
this.wmsSystem = system;
|
|
2859
|
+
});
|
|
2825
2860
|
}
|
|
2826
2861
|
ngOnDestroy() {
|
|
2827
2862
|
this.unsubscribe$.next();
|
|
@@ -2836,15 +2871,19 @@ __decorate([
|
|
|
2836
2871
|
Input(),
|
|
2837
2872
|
__metadata("design:type", Array)
|
|
2838
2873
|
], FormWmsComponent.prototype, "save", void 0);
|
|
2874
|
+
__decorate([
|
|
2875
|
+
Input(),
|
|
2876
|
+
__metadata("design:type", String)
|
|
2877
|
+
], FormWmsComponent.prototype, "wmsSystem", void 0);
|
|
2839
2878
|
FormWmsComponent = __decorate([
|
|
2840
2879
|
Component({
|
|
2841
2880
|
template: `
|
|
2842
2881
|
<div *ngIf="agenda">
|
|
2843
|
-
<document-grid [agenda]="agenda"></document-grid>
|
|
2882
|
+
<document-grid [agenda]="agenda" [wmsSystem]="wmsSystem" ></document-grid>
|
|
2844
2883
|
</div>
|
|
2845
2884
|
`
|
|
2846
2885
|
}),
|
|
2847
|
-
__metadata("design:paramtypes", [IntegrationEventsCallback])
|
|
2886
|
+
__metadata("design:paramtypes", [IntegrationEventsCallback, FormWmsService])
|
|
2848
2887
|
], FormWmsComponent);
|
|
2849
2888
|
|
|
2850
2889
|
let DocumentService = class DocumentService extends EntityService {
|
|
@@ -2997,6 +3036,10 @@ __decorate([
|
|
|
2997
3036
|
Input(),
|
|
2998
3037
|
__metadata("design:type", Object)
|
|
2999
3038
|
], DocumentGridComponent.prototype, "agenda", void 0);
|
|
3039
|
+
__decorate([
|
|
3040
|
+
Input(),
|
|
3041
|
+
__metadata("design:type", String)
|
|
3042
|
+
], DocumentGridComponent.prototype, "wmsSystem", void 0);
|
|
3000
3043
|
__decorate([
|
|
3001
3044
|
Output(),
|
|
3002
3045
|
__metadata("design:type", Boolean)
|
|
@@ -3036,7 +3079,7 @@ __decorate([
|
|
|
3036
3079
|
DocumentGridComponent = __decorate([
|
|
3037
3080
|
Component({
|
|
3038
3081
|
selector: 'document-grid',
|
|
3039
|
-
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[\"
|
|
3082
|
+
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",
|
|
3040
3083
|
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}"]
|
|
3041
3084
|
}),
|
|
3042
3085
|
__metadata("design:paramtypes", [TranslateService,
|
|
@@ -3226,6 +3269,7 @@ let RegisterDocumentComponent = class RegisterDocumentComponent {
|
|
|
3226
3269
|
this.formGroup.reset();
|
|
3227
3270
|
}
|
|
3228
3271
|
setValuesFormGroup(document) {
|
|
3272
|
+
this.formGroup.get('key').setValue(document.key);
|
|
3229
3273
|
this.formGroup.get('invoiceKey').setValue(document.invoiceKey);
|
|
3230
3274
|
this.formGroup.get('invoiceNumber').setValue(document.invoiceNumber);
|
|
3231
3275
|
this.formGroup.get('invoiceSerialNumber').setValue(document.invoiceSerialNumber);
|
|
@@ -3244,7 +3288,8 @@ let RegisterDocumentComponent = class RegisterDocumentComponent {
|
|
|
3244
3288
|
}
|
|
3245
3289
|
getFormGroup() {
|
|
3246
3290
|
this.formGroup = this.fb.group({
|
|
3247
|
-
|
|
3291
|
+
key: [undefined, Validators.required],
|
|
3292
|
+
invoiceKey: [undefined],
|
|
3248
3293
|
schedulingId: [undefined],
|
|
3249
3294
|
invoiceNumber: [undefined],
|
|
3250
3295
|
invoiceSerialNumber: [undefined],
|
|
@@ -3276,6 +3321,12 @@ let RegisterDocumentComponent = class RegisterDocumentComponent {
|
|
|
3276
3321
|
detail: this.translateService.instant("yms.int.wms_success_message_description"),
|
|
3277
3322
|
});
|
|
3278
3323
|
}
|
|
3324
|
+
isWmsWis() {
|
|
3325
|
+
return this.wmsSystem === WmsSystem.WIS;
|
|
3326
|
+
}
|
|
3327
|
+
isWmsSeniorConnect() {
|
|
3328
|
+
return this.wmsSystem === WmsSystem.SENIOR_CONNECT;
|
|
3329
|
+
}
|
|
3279
3330
|
};
|
|
3280
3331
|
__decorate([
|
|
3281
3332
|
Input(),
|
|
@@ -3293,6 +3344,10 @@ __decorate([
|
|
|
3293
3344
|
Output(),
|
|
3294
3345
|
__metadata("design:type", EventEmitter)
|
|
3295
3346
|
], RegisterDocumentComponent.prototype, "document", void 0);
|
|
3347
|
+
__decorate([
|
|
3348
|
+
Input(),
|
|
3349
|
+
__metadata("design:type", String)
|
|
3350
|
+
], RegisterDocumentComponent.prototype, "wmsSystem", void 0);
|
|
3296
3351
|
__decorate([
|
|
3297
3352
|
Input(),
|
|
3298
3353
|
__metadata("design:type", EventEmitter)
|
|
@@ -3304,7 +3359,7 @@ __decorate([
|
|
|
3304
3359
|
RegisterDocumentComponent = __decorate([
|
|
3305
3360
|
Component({
|
|
3306
3361
|
selector: "register-document",
|
|
3307
|
-
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
|
|
3362
|
+
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>"
|
|
3308
3363
|
}),
|
|
3309
3364
|
__metadata("design:paramtypes", [FormBuilder,
|
|
3310
3365
|
MessageService,
|
|
@@ -3346,9 +3401,19 @@ let InsertKeyComponent = class InsertKeyComponent {
|
|
|
3346
3401
|
}
|
|
3347
3402
|
ngOnInit() {
|
|
3348
3403
|
this.formGroup = this.formBuilder.group({
|
|
3349
|
-
key: [undefined]
|
|
3404
|
+
key: [undefined],
|
|
3405
|
+
purchaseOrder: [undefined],
|
|
3406
|
+
invoiceNumber: [undefined],
|
|
3407
|
+
invoiceSerie: [undefined],
|
|
3408
|
+
partnerDocument: [undefined]
|
|
3350
3409
|
});
|
|
3351
3410
|
}
|
|
3411
|
+
isWmsWis() {
|
|
3412
|
+
return this.wmsSystem === WmsSystem.WIS;
|
|
3413
|
+
}
|
|
3414
|
+
isWmsSeniorConnect() {
|
|
3415
|
+
return this.wmsSystem === WmsSystem.SENIOR_CONNECT;
|
|
3416
|
+
}
|
|
3352
3417
|
add() {
|
|
3353
3418
|
this.visibleChange.emit(false);
|
|
3354
3419
|
if (!this.formGroup.get('key').value) {
|
|
@@ -3393,6 +3458,10 @@ __decorate([
|
|
|
3393
3458
|
Input(),
|
|
3394
3459
|
__metadata("design:type", EventEmitter)
|
|
3395
3460
|
], InsertKeyComponent.prototype, "visible", void 0);
|
|
3461
|
+
__decorate([
|
|
3462
|
+
Input(),
|
|
3463
|
+
__metadata("design:type", String)
|
|
3464
|
+
], InsertKeyComponent.prototype, "wmsSystem", void 0);
|
|
3396
3465
|
__decorate([
|
|
3397
3466
|
Output(),
|
|
3398
3467
|
__metadata("design:type", Object)
|
|
@@ -3400,8 +3469,8 @@ __decorate([
|
|
|
3400
3469
|
InsertKeyComponent = __decorate([
|
|
3401
3470
|
Component({
|
|
3402
3471
|
selector: "insert-key",
|
|
3403
|
-
template: "<form [formGroup]=\"formGroup\">\n <p-dialog [(visible)]=\"visible\" [modal]=\"true\" (visibleChange)=\"cancel()\">\n <p-header>{{'yms.int.
|
|
3404
|
-
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:
|
|
3472
|
+
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>",
|
|
3473
|
+
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}"]
|
|
3405
3474
|
}),
|
|
3406
3475
|
__metadata("design:paramtypes", [FormBuilder,
|
|
3407
3476
|
DocumentService,
|
|
@@ -3492,7 +3561,8 @@ WmsModule = __decorate([
|
|
|
3492
3561
|
],
|
|
3493
3562
|
providers: [
|
|
3494
3563
|
FieldCustomizationService,
|
|
3495
|
-
FocusService
|
|
3564
|
+
FocusService,
|
|
3565
|
+
FormWmsService
|
|
3496
3566
|
]
|
|
3497
3567
|
}),
|
|
3498
3568
|
__metadata("design:paramtypes", [IntegrationDispatcher])
|
|
@@ -13111,5 +13181,5 @@ DockModule = __decorate([
|
|
|
13111
13181
|
})
|
|
13112
13182
|
], DockModule);
|
|
13113
13183
|
|
|
13114
|
-
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,
|
|
13184
|
+
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 };
|
|
13115
13185
|
//# sourceMappingURL=seniorsistemas-yms-integration.js.map
|