@seniorsistemas/yms-integration 1.24.0 → 1.25.0
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 +116 -57
- 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/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/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 +63 -9
- package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
- package/fesm5/seniorsistemas-yms-integration.js +67 -9
- 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/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
|
@@ -15,6 +15,7 @@ import { EmptyStateModule, LocaleModule, LoadingStateModule, NumberInputModule,
|
|
|
15
15
|
import { PermissionsModule } from "@seniorsistemas/platform-components";
|
|
16
16
|
import { DynamicDialogModule } from "primeng/components/dynamicdialog/dynamicdialog";
|
|
17
17
|
import { FormWmsComponent } from "./form/form-wms.component";
|
|
18
|
+
import { FormWmsService } from "./form/form-wms.service";
|
|
18
19
|
var WmsModule = /** @class */ (function () {
|
|
19
20
|
function WmsModule(dispatcher) {
|
|
20
21
|
dispatcher.dispatch(FormWmsComponent);
|
|
@@ -58,7 +59,8 @@ var WmsModule = /** @class */ (function () {
|
|
|
58
59
|
],
|
|
59
60
|
providers: [
|
|
60
61
|
FieldCustomizationService,
|
|
61
|
-
FocusService
|
|
62
|
+
FocusService,
|
|
63
|
+
FormWmsService
|
|
62
64
|
]
|
|
63
65
|
}),
|
|
64
66
|
tslib_1.__metadata("design:paramtypes", [IntegrationDispatcher])
|
|
@@ -66,4 +68,4 @@ var WmsModule = /** @class */ (function () {
|
|
|
66
68
|
return WmsModule;
|
|
67
69
|
}());
|
|
68
70
|
export { WmsModule };
|
|
69
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
71
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid21zLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzZW5pb3JzaXN0ZW1hcy95bXMtaW50ZWdyYXRpb24vIiwic291cmNlcyI6WyJzcmMvd21zL3dtcy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLGlEQUFpRCxDQUFDO0FBQ3JGLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLHFCQUFxQixFQUFFLGlCQUFpQixFQUFFLE1BQU0sOEJBQThCLENBQUM7QUFDeEYsT0FBTyxFQUFFLFlBQVksRUF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ICAgRm9jdXNTZXJ2aWNlLFxuICAgICAgRm9ybVdtc1NlcnZpY2VcbiAgICBdXG59KVxuZXhwb3J0IGNsYXNzIFdtc01vZHVsZSB7XG4gIGNvbnN0cnVjdG9yKGRpc3BhdGNoZXI6IEludGVncmF0aW9uRGlzcGF0Y2hlcikge1xuICAgIGRpc3BhdGNoZXIuZGlzcGF0Y2goRm9ybVdtc0NvbXBvbmVudCk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -2795,6 +2795,32 @@ 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
|
};
|
|
@@ -2810,9 +2836,10 @@ FormWmsDescritor = __decorate([
|
|
|
2810
2836
|
})
|
|
2811
2837
|
], FormWmsDescritor);
|
|
2812
2838
|
let FormWmsComponent = class FormWmsComponent extends FormWmsDescritor {
|
|
2813
|
-
constructor(integrationCallback) {
|
|
2839
|
+
constructor(integrationCallback, wmsService) {
|
|
2814
2840
|
super();
|
|
2815
2841
|
this.integrationCallback = integrationCallback;
|
|
2842
|
+
this.wmsService = wmsService;
|
|
2816
2843
|
this.save = [];
|
|
2817
2844
|
this.header = INFORMACAOES_ADICIONAIS_HEADER;
|
|
2818
2845
|
this.loading = false;
|
|
@@ -2826,6 +2853,10 @@ let FormWmsComponent = class FormWmsComponent extends FormWmsDescritor {
|
|
|
2826
2853
|
return empty();
|
|
2827
2854
|
}))
|
|
2828
2855
|
.subscribe();
|
|
2856
|
+
this.wmsService.getSystemIntegration()
|
|
2857
|
+
.subscribe(({ system }) => {
|
|
2858
|
+
this.wmsSystem = system;
|
|
2859
|
+
});
|
|
2829
2860
|
}
|
|
2830
2861
|
ngOnDestroy() {
|
|
2831
2862
|
this.unsubscribe$.next();
|
|
@@ -2840,15 +2871,19 @@ __decorate([
|
|
|
2840
2871
|
Input(),
|
|
2841
2872
|
__metadata("design:type", Array)
|
|
2842
2873
|
], FormWmsComponent.prototype, "save", void 0);
|
|
2874
|
+
__decorate([
|
|
2875
|
+
Input(),
|
|
2876
|
+
__metadata("design:type", String)
|
|
2877
|
+
], FormWmsComponent.prototype, "wmsSystem", void 0);
|
|
2843
2878
|
FormWmsComponent = __decorate([
|
|
2844
2879
|
Component({
|
|
2845
2880
|
template: `
|
|
2846
2881
|
<div *ngIf="agenda">
|
|
2847
|
-
<document-grid [agenda]="agenda"></document-grid>
|
|
2882
|
+
<document-grid [agenda]="agenda" [wmsSystem]="wmsSystem" ></document-grid>
|
|
2848
2883
|
</div>
|
|
2849
2884
|
`
|
|
2850
2885
|
}),
|
|
2851
|
-
__metadata("design:paramtypes", [IntegrationEventsCallback])
|
|
2886
|
+
__metadata("design:paramtypes", [IntegrationEventsCallback, FormWmsService])
|
|
2852
2887
|
], FormWmsComponent);
|
|
2853
2888
|
|
|
2854
2889
|
let DocumentService = class DocumentService extends EntityService {
|
|
@@ -3001,6 +3036,10 @@ __decorate([
|
|
|
3001
3036
|
Input(),
|
|
3002
3037
|
__metadata("design:type", Object)
|
|
3003
3038
|
], DocumentGridComponent.prototype, "agenda", void 0);
|
|
3039
|
+
__decorate([
|
|
3040
|
+
Input(),
|
|
3041
|
+
__metadata("design:type", String)
|
|
3042
|
+
], DocumentGridComponent.prototype, "wmsSystem", void 0);
|
|
3004
3043
|
__decorate([
|
|
3005
3044
|
Output(),
|
|
3006
3045
|
__metadata("design:type", Boolean)
|
|
@@ -3040,7 +3079,7 @@ __decorate([
|
|
|
3040
3079
|
DocumentGridComponent = __decorate([
|
|
3041
3080
|
Component({
|
|
3042
3081
|
selector: 'document-grid',
|
|
3043
|
-
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
|
|
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[\"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 [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",
|
|
3044
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}"]
|
|
3045
3084
|
}),
|
|
3046
3085
|
__metadata("design:paramtypes", [TranslateService,
|
|
@@ -3350,9 +3389,19 @@ let InsertKeyComponent = class InsertKeyComponent {
|
|
|
3350
3389
|
}
|
|
3351
3390
|
ngOnInit() {
|
|
3352
3391
|
this.formGroup = this.formBuilder.group({
|
|
3353
|
-
key: [undefined]
|
|
3392
|
+
key: [undefined],
|
|
3393
|
+
purchaseOrder: [undefined],
|
|
3394
|
+
invoiceNumber: [undefined],
|
|
3395
|
+
invoiceSerie: [undefined],
|
|
3396
|
+
partnerDocument: [undefined]
|
|
3354
3397
|
});
|
|
3355
3398
|
}
|
|
3399
|
+
isWmsWis() {
|
|
3400
|
+
return this.wmsSystem === WmsSystem.WIS;
|
|
3401
|
+
}
|
|
3402
|
+
isWmsSeniorConnect() {
|
|
3403
|
+
return this.wmsSystem === WmsSystem.SENIOR_CONNECT;
|
|
3404
|
+
}
|
|
3356
3405
|
add() {
|
|
3357
3406
|
this.visibleChange.emit(false);
|
|
3358
3407
|
if (!this.formGroup.get('key').value) {
|
|
@@ -3397,6 +3446,10 @@ __decorate([
|
|
|
3397
3446
|
Input(),
|
|
3398
3447
|
__metadata("design:type", EventEmitter)
|
|
3399
3448
|
], InsertKeyComponent.prototype, "visible", void 0);
|
|
3449
|
+
__decorate([
|
|
3450
|
+
Input(),
|
|
3451
|
+
__metadata("design:type", String)
|
|
3452
|
+
], InsertKeyComponent.prototype, "wmsSystem", void 0);
|
|
3400
3453
|
__decorate([
|
|
3401
3454
|
Output(),
|
|
3402
3455
|
__metadata("design:type", Object)
|
|
@@ -3404,8 +3457,8 @@ __decorate([
|
|
|
3404
3457
|
InsertKeyComponent = __decorate([
|
|
3405
3458
|
Component({
|
|
3406
3459
|
selector: "insert-key",
|
|
3407
|
-
template: "<form [formGroup]=\"formGroup\">\n <p-dialog [(visible)]=\"visible\" [modal]=\"true\" (visibleChange)=\"cancel()\">\n <p-header>{{'yms.int.
|
|
3408
|
-
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:
|
|
3460
|
+
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>",
|
|
3461
|
+
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}"]
|
|
3409
3462
|
}),
|
|
3410
3463
|
__metadata("design:paramtypes", [FormBuilder,
|
|
3411
3464
|
DocumentService,
|
|
@@ -3496,7 +3549,8 @@ WmsModule = __decorate([
|
|
|
3496
3549
|
],
|
|
3497
3550
|
providers: [
|
|
3498
3551
|
FieldCustomizationService,
|
|
3499
|
-
FocusService
|
|
3552
|
+
FocusService,
|
|
3553
|
+
FormWmsService
|
|
3500
3554
|
]
|
|
3501
3555
|
}),
|
|
3502
3556
|
__metadata("design:paramtypes", [IntegrationDispatcher])
|
|
@@ -13115,5 +13169,5 @@ DockModule = __decorate([
|
|
|
13115
13169
|
})
|
|
13116
13170
|
], DockModule);
|
|
13117
13171
|
|
|
13118
|
-
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,
|
|
13172
|
+
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 };
|
|
13119
13173
|
//# sourceMappingURL=seniorsistemas-yms-integration.js.map
|