@seniorsistemas/yms-integration 1.26.0 → 1.27.0-66607a0f-3e1c-4f97-a69c-5497131ef41a
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 +102 -54
- 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 +47 -46
- package/esm2015/src/wms/components/document-grid/document-grid.component.js +21 -4
- package/esm2015/src/wms/components/document-grid/register-document/register-document.component.js +8 -2
- package/esm2015/src/wms/entities/integration/integration.service.js +29 -0
- package/esm5/seniorsistemas-yms-integration.js +47 -46
- package/esm5/src/wms/components/document-grid/document-grid.component.js +22 -4
- package/esm5/src/wms/components/document-grid/register-document/register-document.component.js +8 -2
- package/esm5/src/wms/entities/integration/integration.service.js +30 -0
- package/fesm2015/seniorsistemas-yms-integration.js +56 -11
- package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
- package/fesm5/seniorsistemas-yms-integration.js +56 -9
- package/fesm5/seniorsistemas-yms-integration.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-yms-integration.d.ts +46 -45
- package/seniorsistemas-yms-integration.metadata.json +1 -1
- package/src/wms/components/document-grid/document-grid.component.d.ts +6 -1
- package/src/wms/entities/integration/integration.service.d.ts +18 -0
|
@@ -3093,6 +3093,30 @@ var FormWmsComponent = /** @class */ (function (_super) {
|
|
|
3093
3093
|
return FormWmsComponent;
|
|
3094
3094
|
}(FormWmsDescritor));
|
|
3095
3095
|
|
|
3096
|
+
var IntegrationService = /** @class */ (function () {
|
|
3097
|
+
function IntegrationService(httpClient) {
|
|
3098
|
+
this.httpClient = httpClient;
|
|
3099
|
+
}
|
|
3100
|
+
IntegrationService.prototype.getProcessTypeByScheduling = function (idSchedulingType) {
|
|
3101
|
+
return this.httpClient.post('yms/integration/queries/getProcessTypeByScheduling', { idSchedulingType: idSchedulingType });
|
|
3102
|
+
};
|
|
3103
|
+
IntegrationService.ngInjectableDef = defineInjectable({ factory: function IntegrationService_Factory() { return new IntegrationService(inject(HttpClient)); }, token: IntegrationService, providedIn: "root" });
|
|
3104
|
+
IntegrationService = __decorate([
|
|
3105
|
+
Injectable({ providedIn: 'root' }),
|
|
3106
|
+
__metadata("design:paramtypes", [HttpClient])
|
|
3107
|
+
], IntegrationService);
|
|
3108
|
+
return IntegrationService;
|
|
3109
|
+
}());
|
|
3110
|
+
var ProcessType;
|
|
3111
|
+
(function (ProcessType) {
|
|
3112
|
+
ProcessType["RECEBIMENTO_CONTRATO"] = "RECEBIMENTO_CONTRATO";
|
|
3113
|
+
ProcessType["RECEBIMENTO_ORDEM_COMPRA"] = "RECEBIMENTO_ORDEM_COMPRA";
|
|
3114
|
+
ProcessType["EXPEDICAO"] = "EXPEDICAO";
|
|
3115
|
+
ProcessType["DEVOLUCAO"] = "DEVOLUCAO";
|
|
3116
|
+
ProcessType["PROCESSO_AVULSO"] = "PROCESSO_AVULSO";
|
|
3117
|
+
ProcessType["RECEBIMENTO_WMS"] = "RECEBIMENTO_WMS";
|
|
3118
|
+
})(ProcessType || (ProcessType = {}));
|
|
3119
|
+
|
|
3096
3120
|
var DocumentService = /** @class */ (function (_super) {
|
|
3097
3121
|
__extends(DocumentService, _super);
|
|
3098
3122
|
function DocumentService(http, messageService) {
|
|
@@ -3112,11 +3136,12 @@ var DocumentService = /** @class */ (function (_super) {
|
|
|
3112
3136
|
}(EntityService));
|
|
3113
3137
|
|
|
3114
3138
|
var DocumentGridComponent = /** @class */ (function () {
|
|
3115
|
-
function DocumentGridComponent(translate, documentService, messageService, confirmationService) {
|
|
3139
|
+
function DocumentGridComponent(translate, documentService, messageService, confirmationService, integrationService) {
|
|
3116
3140
|
this.translate = translate;
|
|
3117
3141
|
this.documentService = documentService;
|
|
3118
3142
|
this.messageService = messageService;
|
|
3119
3143
|
this.confirmationService = confirmationService;
|
|
3144
|
+
this.integrationService = integrationService;
|
|
3120
3145
|
this.viewDocument = new EventEmitter();
|
|
3121
3146
|
this.gridData = [];
|
|
3122
3147
|
this.ngUnsubscribe = new Subject();
|
|
@@ -3124,8 +3149,14 @@ var DocumentGridComponent = /** @class */ (function () {
|
|
|
3124
3149
|
}
|
|
3125
3150
|
DocumentGridComponent.prototype.ngOnInit = function () {
|
|
3126
3151
|
this.gridColumns = this.getGridColumns();
|
|
3152
|
+
this.getProcessTypeByScheduling();
|
|
3127
3153
|
this.listDocuments();
|
|
3128
3154
|
};
|
|
3155
|
+
DocumentGridComponent.prototype.getProcessTypeByScheduling = function () {
|
|
3156
|
+
var _this = this;
|
|
3157
|
+
this.integrationService.getProcessTypeByScheduling(this.agenda.tipoAgendamento.id)
|
|
3158
|
+
.subscribe(function (result) { return _this.processType = result.processType; });
|
|
3159
|
+
};
|
|
3129
3160
|
DocumentGridComponent.prototype.onChangeDocument = function (document) {
|
|
3130
3161
|
this.gridData.push(document);
|
|
3131
3162
|
this.disabled = false;
|
|
@@ -3168,6 +3199,7 @@ var DocumentGridComponent = /** @class */ (function () {
|
|
|
3168
3199
|
if (!data.schedulingId) {
|
|
3169
3200
|
data.schedulingId = _this.agenda.id;
|
|
3170
3201
|
}
|
|
3202
|
+
_this.updateKey(data);
|
|
3171
3203
|
_this.documentService.insert(data).subscribe(function () {
|
|
3172
3204
|
_this.message("success", "saved_message_title", "saved_message_content");
|
|
3173
3205
|
});
|
|
@@ -3176,6 +3208,14 @@ var DocumentGridComponent = /** @class */ (function () {
|
|
|
3176
3208
|
});
|
|
3177
3209
|
}
|
|
3178
3210
|
};
|
|
3211
|
+
DocumentGridComponent.prototype.updateKey = function (data) {
|
|
3212
|
+
if (data.key === undefined) {
|
|
3213
|
+
data.key = data.invoiceKey;
|
|
3214
|
+
}
|
|
3215
|
+
if (this.wmsSystem === WmsSystem.WIS) {
|
|
3216
|
+
data.key = data.invoiceNumber + ":" + data.invoiceSerialNumber + ":" + data.partnerDocument;
|
|
3217
|
+
}
|
|
3218
|
+
};
|
|
3179
3219
|
DocumentGridComponent.prototype.onDelete = function () {
|
|
3180
3220
|
var _this = this;
|
|
3181
3221
|
this.confirmationService.confirm({
|
|
@@ -3293,13 +3333,14 @@ var DocumentGridComponent = /** @class */ (function () {
|
|
|
3293
3333
|
DocumentGridComponent = __decorate([
|
|
3294
3334
|
Component({
|
|
3295
3335
|
selector: 'document-grid',
|
|
3296
|
-
template: "<p-panel>\n
|
|
3336
|
+
template: "<div *ngIf=\"this.processType === 'RECEBIMENTO_WMS'; else processNotConfigured\">\n <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>\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 <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\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\n<ng-template #processNotConfigured>\n <div class=\"center\">\n <s-empty-state\n iconClass=\"fa fa-exclamation-triangle\"\n [title]=\"'yms.int.wms_there_no_process_type_configured_for_this_type_scheduling' | translate\"\n >\n </s-empty-state>\n </div>\n</ng-template>",
|
|
3297
3337
|
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}"]
|
|
3298
3338
|
}),
|
|
3299
3339
|
__metadata("design:paramtypes", [TranslateService,
|
|
3300
3340
|
DocumentService,
|
|
3301
3341
|
MessageService,
|
|
3302
|
-
ConfirmationService
|
|
3342
|
+
ConfirmationService,
|
|
3343
|
+
IntegrationService])
|
|
3303
3344
|
], DocumentGridComponent);
|
|
3304
3345
|
return DocumentGridComponent;
|
|
3305
3346
|
}());
|
|
@@ -3539,6 +3580,12 @@ var RegisterDocumentComponent = /** @class */ (function () {
|
|
|
3539
3580
|
if (this.agenda.id !== undefined) {
|
|
3540
3581
|
value.schedulingId = this.agenda.id;
|
|
3541
3582
|
}
|
|
3583
|
+
if (value.key === undefined) {
|
|
3584
|
+
value.key = value.invoiceKey;
|
|
3585
|
+
if (this.isWmsWis()) {
|
|
3586
|
+
value.key = value.invoiceNumber + ":" + value.invoiceSerialNumber + ":" + value.partnerDocument;
|
|
3587
|
+
}
|
|
3588
|
+
}
|
|
3542
3589
|
this.document.emit(Document.fromDto(value));
|
|
3543
3590
|
this.successMessage();
|
|
3544
3591
|
this.visibleChange.emit(false);
|
|
@@ -3588,7 +3635,7 @@ var RegisterDocumentComponent = /** @class */ (function () {
|
|
|
3588
3635
|
RegisterDocumentComponent = __decorate([
|
|
3589
3636
|
Component({
|
|
3590
3637
|
selector: "register-document",
|
|
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>"
|
|
3638
|
+
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()\">\n <label for=\"key\">{{'yms.int.wms_purchaseOrder' | translate}}</label>\n <input id=\"key\" pInputText type=\"text\" formControlName=\"key\">\n </div>\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>"
|
|
3592
3639
|
}),
|
|
3593
3640
|
__metadata("design:paramtypes", [FormBuilder,
|
|
3594
3641
|
MessageService,
|
|
@@ -3984,7 +4031,7 @@ var ExpedicaoChegadaVeiculoOverride = /** @class */ (function () {
|
|
|
3984
4031
|
return ExpedicaoChegadaVeiculoOverride;
|
|
3985
4032
|
}());
|
|
3986
4033
|
|
|
3987
|
-
var IntegrationService = /** @class */ (function () {
|
|
4034
|
+
var IntegrationService$1 = /** @class */ (function () {
|
|
3988
4035
|
function IntegrationService(http, messageService) {
|
|
3989
4036
|
this.http = http;
|
|
3990
4037
|
this.messageService = messageService;
|
|
@@ -4066,7 +4113,7 @@ var FormComponent = /** @class */ (function (_super) {
|
|
|
4066
4113
|
Component({
|
|
4067
4114
|
template: "\n <div *ngIf=\"agenda\">\n <div [ngSwitch]=\"tipoProcessoErpAtual\">\n <recebimento-form *ngSwitchCase=\"'RECEBIMENTO_CONTRATO'\" [agenda]=\"agenda\"></recebimento-form>\n <expedicao-form *ngSwitchCase=\"'EXPEDICAO'\" [agenda]=\"agenda\"></expedicao-form>\n <devolucao-form *ngSwitchCase=\"'DEVOLUCAO'\" [agenda]=\"agenda\"></devolucao-form>\n <recebimento-ordem-compra-form *ngSwitchCase=\"'RECEBIMENTO_ORDEM_COMPRA'\" [agenda]=\"agenda\"></recebimento-ordem-compra-form>\n <processo-avulso-form *ngSwitchCase=\"'PROCESSO_AVULSO'\" [agenda]=\"agenda\"></processo-avulso-form>\n <div *ngSwitchDefault>\n <s-loading-state [loading]=\"loading\">\n <h3 *ngIf=\"!loading\" style=\"text-align: center;\">\n ATEN\u00C7\u00C3O, n\u00E3o existe Tipo de Processo configurado para esse tipo de agendamento.\n </h3>\n <h3 *ngIf=\"loading\" style=\"text-align: center;\"> Carregando configura\u00E7\u00F5es </h3>\n </s-loading-state>\n </div>\n </div>\n </div>\n "
|
|
4068
4115
|
}),
|
|
4069
|
-
__metadata("design:paramtypes", [IntegrationEventsCallback, IntegrationService])
|
|
4116
|
+
__metadata("design:paramtypes", [IntegrationEventsCallback, IntegrationService$1])
|
|
4070
4117
|
], FormComponent);
|
|
4071
4118
|
return FormComponent;
|
|
4072
4119
|
}(FormDescritor));
|
|
@@ -4117,7 +4164,7 @@ var InfoComponent = /** @class */ (function (_super) {
|
|
|
4117
4164
|
Component({
|
|
4118
4165
|
template: "\n <div *ngIf=\"agenda\">\n <div [ngSwitch]=\"tipoProcessoErpAtual\">\n <recebimento-info *ngSwitchCase=\"'RECEBIMENTO_CONTRATO'\" [agenda]=\"agenda\"></recebimento-info>\n <expedicao-info *ngSwitchCase=\"'EXPEDICAO'\" [agenda]=\"agenda\"></expedicao-info>\n <devolucao-info *ngSwitchCase=\"'DEVOLUCAO'\" [agenda]=\"agenda\"></devolucao-info> \n <recebimento-ordem-compra-info *ngSwitchCase=\"'RECEBIMENTO_ORDEM_COMPRA'\" [agenda]=\"agenda\"></recebimento-ordem-compra-info>\n <processo-avulso-info *ngSwitchCase=\"'PROCESSO_AVULSO'\" [agenda]=\"agenda\"></processo-avulso-info>\n </div>\n </div>\n "
|
|
4119
4166
|
}),
|
|
4120
|
-
__metadata("design:paramtypes", [IntegrationService])
|
|
4167
|
+
__metadata("design:paramtypes", [IntegrationService$1])
|
|
4121
4168
|
], InfoComponent);
|
|
4122
4169
|
return InfoComponent;
|
|
4123
4170
|
}(InfoDescritor));
|
|
@@ -6843,7 +6890,7 @@ var CoreModule = /** @class */ (function () {
|
|
|
6843
6890
|
LogIntegracaoModule
|
|
6844
6891
|
],
|
|
6845
6892
|
providers: [
|
|
6846
|
-
IntegrationService,
|
|
6893
|
+
IntegrationService$1,
|
|
6847
6894
|
NotaValidatorService
|
|
6848
6895
|
],
|
|
6849
6896
|
exports: [],
|
|
@@ -13907,5 +13954,5 @@ var DockModule = /** @class */ (function () {
|
|
|
13907
13954
|
return DockModule;
|
|
13908
13955
|
}());
|
|
13909
13956
|
|
|
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,
|
|
13957
|
+
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, RegisterDocumentComponent as ɵba, AgendaService as ɵbb, EntityService$2 as ɵbc, EntityService$1 as ɵbd, InsertKeyModule as ɵbe, InsertKeyComponent as ɵbf, IntegrationService$1 as ɵbg, RecebimentoFormComponent as ɵbh, DerivacaoService as ɵbi, NotaValidatorService as ɵbj, TransgeniaService as ɵbk, VerificaNotafiscal as ɵbl, BuildFormField as ɵbm, ExpedicaoFormComponent as ɵbn, ExpedicaoInfoComponent as ɵbo, RecebimentoInfoComponent as ɵbp, DevolucaoFormComponent as ɵbq, DevolucaoService as ɵbr, DevolucaoChegadaVeiculoOverride as ɵbs, RecebimentoOrdemCompraFormComponent as ɵbt, OrdemCompraService as ɵbu, RecebimentoOrdemCompraService as ɵbv, RecebimentoOrdemCompraChegadaVeiculoOverride as ɵbw, RecebimentoOrdemCompraInfoComponent as ɵbx, DevolucaoInfoComponent as ɵby, ContratoFormComponent as ɵbz, ViewImageComponent as ɵc, OrdemCompraFormComponent as ɵca, ProcessoAvulsoFormComponent as ɵcb, ProcessoAvulsoService as ɵcc, ProcessoAvulsoChegadaVeiculoOverride as ɵcd, ProcessoAvulsoInfoComponent as ɵce, LogIntegracaoDescritor as ɵcf, LogIntegracaoComponent as ɵcg, LogIntegracaoService as ɵch, DerivacaoModule as ɵci, DevolucaoModule as ɵcj, OrdemCompraModule as ɵck, RecebimentoOrdemCompraModule as ɵcl, TransgeniaModule as ɵcm, ProcessoAvulsoModule as ɵcn, LogIntegracaoModule as ɵco, NotaFormModule as ɵcp, DirectivesModule as ɵcq, TrimDirective as ɵcr, NotaFormComponent as ɵcs, 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, IntegrationService as ɵy, RegisterDocumentModule as ɵz };
|
|
13911
13958
|
//# sourceMappingURL=seniorsistemas-yms-integration.js.map
|