@seniorsistemas/yms-integration 1.19.1 → 1.20.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 +857 -229
- 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/index.js +4 -1
- package/esm2015/seniorsistemas-yms-integration.js +47 -38
- package/esm2015/src/wms/components/document-grid/document-grid.component.js +166 -0
- package/esm2015/src/wms/components/document-grid/document-grid.module.js +35 -0
- package/esm2015/src/wms/components/document-grid/insert-key/insert-key.component.js +82 -0
- package/esm2015/src/wms/components/document-grid/insert-key/insert-key.module.js +26 -0
- package/esm2015/src/wms/components/document-grid/register-document/register-document.component.js +125 -0
- package/esm2015/src/wms/components/document-grid/register-document/register-document.module.js +32 -0
- package/esm2015/src/wms/entities/agenda/agenda.service.js +22 -0
- package/esm2015/src/wms/entities/document/document-dto.js +1 -0
- package/esm2015/src/wms/entities/document/document.js +39 -0
- package/esm2015/src/wms/entities/document/document.service.js +21 -0
- package/esm2015/src/wms/entities/document/find-documents-input.js +1 -0
- package/esm2015/src/wms/entities/entity-service.js +4 -0
- package/esm2015/src/wms/entities/wms-system/wms-system.js +9 -0
- package/esm2015/src/wms/form/form-wms.component.js +60 -0
- package/esm2015/src/wms/wms.module.js +68 -0
- package/esm5/index.js +4 -1
- package/esm5/seniorsistemas-yms-integration.js +47 -38
- package/esm5/src/wms/components/document-grid/document-grid.component.js +171 -0
- package/esm5/src/wms/components/document-grid/document-grid.module.js +38 -0
- package/esm5/src/wms/components/document-grid/insert-key/insert-key.component.js +84 -0
- package/esm5/src/wms/components/document-grid/insert-key/insert-key.module.js +29 -0
- package/esm5/src/wms/components/document-grid/register-document/register-document.component.js +127 -0
- package/esm5/src/wms/components/document-grid/register-document/register-document.module.js +35 -0
- package/esm5/src/wms/entities/agenda/agenda.service.js +25 -0
- package/esm5/src/wms/entities/document/document-dto.js +1 -0
- package/esm5/src/wms/entities/document/document.js +44 -0
- package/esm5/src/wms/entities/document/document.service.js +24 -0
- package/esm5/src/wms/entities/document/find-documents-input.js +1 -0
- package/esm5/src/wms/entities/entity-service.js +11 -0
- package/esm5/src/wms/entities/wms-system/wms-system.js +9 -0
- package/esm5/src/wms/form/form-wms.component.js +63 -0
- package/esm5/src/wms/wms.module.js +69 -0
- package/fesm2015/seniorsistemas-yms-integration.js +765 -185
- package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
- package/fesm5/seniorsistemas-yms-integration.js +798 -182
- package/fesm5/seniorsistemas-yms-integration.js.map +1 -1
- package/index.d.ts +2 -0
- package/package.json +1 -1
- package/seniorsistemas-yms-integration.d.ts +46 -37
- package/seniorsistemas-yms-integration.metadata.json +1 -1
- package/src/wms/components/document-grid/document-grid.component.d.ts +41 -0
- package/src/wms/components/document-grid/document-grid.module.d.ts +2 -0
- package/src/wms/components/document-grid/insert-key/insert-key.component.d.ts +22 -0
- package/src/wms/components/document-grid/insert-key/insert-key.module.d.ts +2 -0
- package/src/wms/components/document-grid/register-document/register-document.component.d.ts +31 -0
- package/src/wms/components/document-grid/register-document/register-document.module.d.ts +2 -0
- package/src/wms/entities/agenda/agenda.service.d.ts +9 -0
- package/src/wms/entities/document/document-dto.d.ts +16 -0
- package/src/wms/entities/document/document.d.ts +20 -0
- package/src/wms/entities/document/document.service.d.ts +11 -0
- package/src/wms/entities/document/find-documents-input.d.ts +7 -0
- package/src/wms/entities/entity-service.d.ts +3 -0
- package/src/wms/entities/wms-system/wms-system.d.ts +7 -0
- package/src/wms/form/form-wms.component.d.ts +18 -0
- package/src/wms/wms.module.d.ts +4 -0
|
@@ -2,9 +2,9 @@ import { Subject, throwError, BehaviorSubject, empty, ReplaySubject, NEVER, of,
|
|
|
2
2
|
import { takeUntil, catchError, finalize, map, filter, mergeMap, tap, concatMap, switchMap, debounceTime } from 'rxjs/operators';
|
|
3
3
|
import { __extends, __decorate, __metadata, __assign, __spread, __values, __param } from 'tslib';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
|
-
import { Injectable, Input, Component, NgModule, Output, defineInjectable, inject, EventEmitter,
|
|
5
|
+
import { Injectable, Input, Component, NgModule, Output, defineInjectable, inject, EventEmitter, ViewChild, TemplateRef, InjectionToken, Inject } from '@angular/core';
|
|
6
6
|
import { TranslateService, TranslateModule } from '@ngx-translate/core';
|
|
7
|
-
import { ButtonModule, LoadingStateModule, FieldType, FormField, CustomFieldsModule, ControlErrorsModule, EmptyStateModule, DynamicFormModule, TokenListModule, NumberInputModule, LocaleModule } from '@seniorsistemas/angular-components';
|
|
7
|
+
import { ButtonModule, LoadingStateModule, FieldType, FormField, CustomFieldsModule, ControlErrorsModule, EmptyStateModule, DynamicFormModule, TokenListModule, NumberInputModule, LocaleModule, SidebarModule } from '@seniorsistemas/angular-components';
|
|
8
8
|
import { MessageModule } from 'primeng/message';
|
|
9
9
|
import { TableModule, Table } from 'primeng/table';
|
|
10
10
|
import { HttpParams, HttpClient, HttpClientModule } from '@angular/common/http';
|
|
@@ -16,8 +16,8 @@ import { StompConfig, StompService } from '@stomp/ng2-stompjs';
|
|
|
16
16
|
import * as SockJS from 'sockjs-client';
|
|
17
17
|
import { CookieService } from 'ngx-cookie-service';
|
|
18
18
|
import { DynamicDialogModule } from 'primeng/components/dynamicdialog/dynamicdialog';
|
|
19
|
-
import { TooltipModule, SharedModule, CardModule, DialogModule, PanelModule, InputTextModule as InputTextModule$1, DropdownModule, ConfirmDialogModule, TabViewModule, CalendarModule } from 'primeng/primeng';
|
|
20
|
-
import { SelectPlantService, SelectPlantModule } from '@seniorsistemas/yms-components';
|
|
19
|
+
import { TooltipModule, SharedModule, CardModule, DialogModule, PanelModule, InputTextModule as InputTextModule$1, DropdownModule, ConfirmDialogModule, TabViewModule, CalendarModule, InputTextareaModule } from 'primeng/primeng';
|
|
20
|
+
import { SelectPlantService, SelectPlantModule, ComponentsModule } from '@seniorsistemas/yms-components';
|
|
21
21
|
import { Router, RouterModule, ActivatedRoute } from '@angular/router';
|
|
22
22
|
import { InputSwitchModule } from 'primeng/inputswitch';
|
|
23
23
|
import { InputTextModule } from 'primeng/inputtext';
|
|
@@ -2995,6 +2995,282 @@ var VisitorListModule = /** @class */ (function () {
|
|
|
2995
2995
|
return VisitorListModule;
|
|
2996
2996
|
}());
|
|
2997
2997
|
|
|
2998
|
+
var INFORMACAOES_ADICIONAIS_HEADER = "Informações adicionais";
|
|
2999
|
+
var FormWmsDescritor = /** @class */ (function () {
|
|
3000
|
+
function FormWmsDescritor() {
|
|
3001
|
+
}
|
|
3002
|
+
FormWmsDescritor = __decorate([
|
|
3003
|
+
ChegadaVeiculo({
|
|
3004
|
+
header: INFORMACAOES_ADICIONAIS_HEADER,
|
|
3005
|
+
name: 'yms.integracao.wms',
|
|
3006
|
+
icon: 'fa fa-plus'
|
|
3007
|
+
})
|
|
3008
|
+
], FormWmsDescritor);
|
|
3009
|
+
return FormWmsDescritor;
|
|
3010
|
+
}());
|
|
3011
|
+
var FormWmsComponent = /** @class */ (function (_super) {
|
|
3012
|
+
__extends(FormWmsComponent, _super);
|
|
3013
|
+
function FormWmsComponent(integrationCallback) {
|
|
3014
|
+
var _this = _super.call(this) || this;
|
|
3015
|
+
_this.integrationCallback = integrationCallback;
|
|
3016
|
+
_this.save = [];
|
|
3017
|
+
_this.header = INFORMACAOES_ADICIONAIS_HEADER;
|
|
3018
|
+
_this.loading = false;
|
|
3019
|
+
_this.unsubscribe$ = new Subject();
|
|
3020
|
+
_this._integrationCallback = integrationCallback;
|
|
3021
|
+
return _this;
|
|
3022
|
+
}
|
|
3023
|
+
FormWmsComponent.prototype.ngOnInit = function () {
|
|
3024
|
+
var _this = this;
|
|
3025
|
+
this._integrationCallback.onAgendamentoSaved()
|
|
3026
|
+
.pipe(takeUntil(this.unsubscribe$), mergeMap(function (agenda) {
|
|
3027
|
+
_this.agenda = agenda;
|
|
3028
|
+
return empty();
|
|
3029
|
+
}))
|
|
3030
|
+
.subscribe();
|
|
3031
|
+
};
|
|
3032
|
+
FormWmsComponent.prototype.ngOnDestroy = function () {
|
|
3033
|
+
this.unsubscribe$.next();
|
|
3034
|
+
this.unsubscribe$.complete();
|
|
3035
|
+
};
|
|
3036
|
+
__decorate([
|
|
3037
|
+
Output(),
|
|
3038
|
+
__metadata("design:type", Agenda)
|
|
3039
|
+
], FormWmsComponent.prototype, "agenda", void 0);
|
|
3040
|
+
__decorate([
|
|
3041
|
+
Input(),
|
|
3042
|
+
__metadata("design:type", Array)
|
|
3043
|
+
], FormWmsComponent.prototype, "save", void 0);
|
|
3044
|
+
FormWmsComponent = __decorate([
|
|
3045
|
+
Component({
|
|
3046
|
+
template: "\n <div *ngIf=\"agenda\">\n <document-grid [agenda]=\"agenda\"></document-grid>\n </div>\n "
|
|
3047
|
+
}),
|
|
3048
|
+
__metadata("design:paramtypes", [IntegrationEventsCallback])
|
|
3049
|
+
], FormWmsComponent);
|
|
3050
|
+
return FormWmsComponent;
|
|
3051
|
+
}(FormWmsDescritor));
|
|
3052
|
+
|
|
3053
|
+
var DocumentService = /** @class */ (function (_super) {
|
|
3054
|
+
__extends(DocumentService, _super);
|
|
3055
|
+
function DocumentService(http, messageService) {
|
|
3056
|
+
var _this = _super.call(this, http, messageService, 'yms_int/wms/entities/document', '') || this;
|
|
3057
|
+
_this.http = http;
|
|
3058
|
+
_this.messageService = messageService;
|
|
3059
|
+
return _this;
|
|
3060
|
+
}
|
|
3061
|
+
DocumentService.prototype.findDocuments = function (input) {
|
|
3062
|
+
return this.http.post('yms_int/wms/queries/findDocuments', input);
|
|
3063
|
+
};
|
|
3064
|
+
DocumentService = __decorate([
|
|
3065
|
+
Injectable(),
|
|
3066
|
+
__metadata("design:paramtypes", [HttpClient, MessageService])
|
|
3067
|
+
], DocumentService);
|
|
3068
|
+
return DocumentService;
|
|
3069
|
+
}(EntityService));
|
|
3070
|
+
|
|
3071
|
+
var DocumentGridComponent = /** @class */ (function () {
|
|
3072
|
+
function DocumentGridComponent(translate, documentService, messageService) {
|
|
3073
|
+
this.translate = translate;
|
|
3074
|
+
this.documentService = documentService;
|
|
3075
|
+
this.messageService = messageService;
|
|
3076
|
+
this.viewDocument = new EventEmitter();
|
|
3077
|
+
this.gridData = [];
|
|
3078
|
+
this.ngUnsubscribe = new Subject();
|
|
3079
|
+
}
|
|
3080
|
+
DocumentGridComponent.prototype.ngOnInit = function () {
|
|
3081
|
+
this.gridColumns = this.getGridColumns();
|
|
3082
|
+
this.listDocuments();
|
|
3083
|
+
};
|
|
3084
|
+
DocumentGridComponent.prototype.onChangeDocument = function (document) {
|
|
3085
|
+
this.gridData.push(document);
|
|
3086
|
+
this.disabled = false;
|
|
3087
|
+
};
|
|
3088
|
+
DocumentGridComponent.prototype.getActions = function () {
|
|
3089
|
+
var _this = this;
|
|
3090
|
+
return [
|
|
3091
|
+
{
|
|
3092
|
+
label: this.translate.instant("yms.int.wms_add_document_invoice_key"),
|
|
3093
|
+
command: function () {
|
|
3094
|
+
_this.visibleInvoiceKey = true;
|
|
3095
|
+
},
|
|
3096
|
+
icon: "fa fa-search"
|
|
3097
|
+
},
|
|
3098
|
+
{
|
|
3099
|
+
label: this.translate.instant("yms.int.wms_add_document_register"),
|
|
3100
|
+
command: function () {
|
|
3101
|
+
_this.edit = true;
|
|
3102
|
+
_this.visibleDocumentRegister = true;
|
|
3103
|
+
},
|
|
3104
|
+
icon: "fas fa-pen-square"
|
|
3105
|
+
}
|
|
3106
|
+
];
|
|
3107
|
+
};
|
|
3108
|
+
DocumentGridComponent.prototype.getProp = function (obj, path) {
|
|
3109
|
+
return path.split(".").reduce(function (result, prop) { return (result[prop] === undefined ? "" : result[prop]); }, obj);
|
|
3110
|
+
};
|
|
3111
|
+
DocumentGridComponent.prototype.view = function (selection) {
|
|
3112
|
+
this.viewDocument.emit(selection);
|
|
3113
|
+
this.visibleDocumentRegister = true;
|
|
3114
|
+
this.edit = false;
|
|
3115
|
+
};
|
|
3116
|
+
DocumentGridComponent.prototype.save = function () {
|
|
3117
|
+
var _this = this;
|
|
3118
|
+
if (this.gridData.length > 0) {
|
|
3119
|
+
this.gridData.forEach(function (data) {
|
|
3120
|
+
if (!data.id) {
|
|
3121
|
+
if (!data.schedulingId) {
|
|
3122
|
+
data.schedulingId = _this.agenda.id;
|
|
3123
|
+
}
|
|
3124
|
+
_this.documentService.insert(data).subscribe(function () {
|
|
3125
|
+
_this.message("success", "saved_message_title", "saved_message_content");
|
|
3126
|
+
});
|
|
3127
|
+
_this.disabled = true;
|
|
3128
|
+
}
|
|
3129
|
+
});
|
|
3130
|
+
}
|
|
3131
|
+
};
|
|
3132
|
+
DocumentGridComponent.prototype.onDelete = function (selection) {
|
|
3133
|
+
var _this = this;
|
|
3134
|
+
if (!selection.id) {
|
|
3135
|
+
return;
|
|
3136
|
+
}
|
|
3137
|
+
this.documentService.delete(selection.id)
|
|
3138
|
+
.pipe(takeUntil(this.ngUnsubscribe), finalize(function () {
|
|
3139
|
+
_this.gridData = [];
|
|
3140
|
+
_this.listDocuments();
|
|
3141
|
+
})).
|
|
3142
|
+
subscribe(function () { return _this.message("success", "deleted_message_title", "deleted_message_content"); });
|
|
3143
|
+
};
|
|
3144
|
+
DocumentGridComponent.prototype.listDocuments = function () {
|
|
3145
|
+
var _this = this;
|
|
3146
|
+
this.documentService.list({
|
|
3147
|
+
filterQuery: "schedulingId eq '" + this.agenda.id + "'"
|
|
3148
|
+
})
|
|
3149
|
+
.subscribe(function (contents) {
|
|
3150
|
+
if (contents.totalElements > 0) {
|
|
3151
|
+
_this.gridData = contents.contents;
|
|
3152
|
+
_this.documentTotalRecords = contents.totalElements;
|
|
3153
|
+
}
|
|
3154
|
+
else {
|
|
3155
|
+
_this.disabled = true;
|
|
3156
|
+
_this.documentTotalRecords = _this.gridData.length;
|
|
3157
|
+
}
|
|
3158
|
+
_this.loading = false;
|
|
3159
|
+
});
|
|
3160
|
+
};
|
|
3161
|
+
DocumentGridComponent.prototype.getGridColumns = function () {
|
|
3162
|
+
return [
|
|
3163
|
+
{ field: "logistcUnitName", header: this.translate.instant("yms.int.wms_register_document_logistc_unit_name") },
|
|
3164
|
+
{ field: "logistcUnitDocument", header: this.translate.instant("yms.int.wms_register_document_logistc_unit_document") },
|
|
3165
|
+
{ field: "invoiceKey", header: this.translate.instant("yms.int.wms_register_document_invoice_key") },
|
|
3166
|
+
{ field: "invoiceNumber", header: this.translate.instant("yms.int.wms_register_document_invoice_number") },
|
|
3167
|
+
{ field: "invoiceSerialNumber", header: this.translate.instant("yms.int.wms_register_document_invoice_serial_number") },
|
|
3168
|
+
{ field: "ownerName", header: this.translate.instant("yms.int.wms_register_document_owner_name") },
|
|
3169
|
+
{ field: "ownerDocument", header: this.translate.instant("yms.int.wms_register_document_owner_document") },
|
|
3170
|
+
{ field: "orderReceivingCode", header: this.translate.instant("yms.int.wms_register_document_order_receiving_code") },
|
|
3171
|
+
];
|
|
3172
|
+
};
|
|
3173
|
+
DocumentGridComponent.prototype.message = function (severity, summary, detail) {
|
|
3174
|
+
this.messageService.add({
|
|
3175
|
+
severity: severity,
|
|
3176
|
+
summary: this.translate.instant(summary),
|
|
3177
|
+
detail: this.translate.instant(detail),
|
|
3178
|
+
});
|
|
3179
|
+
};
|
|
3180
|
+
__decorate([
|
|
3181
|
+
Input(),
|
|
3182
|
+
__metadata("design:type", Object)
|
|
3183
|
+
], DocumentGridComponent.prototype, "agenda", void 0);
|
|
3184
|
+
__decorate([
|
|
3185
|
+
Output(),
|
|
3186
|
+
__metadata("design:type", Boolean)
|
|
3187
|
+
], DocumentGridComponent.prototype, "visibleInvoiceKey", void 0);
|
|
3188
|
+
__decorate([
|
|
3189
|
+
Output(),
|
|
3190
|
+
__metadata("design:type", Boolean)
|
|
3191
|
+
], DocumentGridComponent.prototype, "visibleDocumentRegister", void 0);
|
|
3192
|
+
__decorate([
|
|
3193
|
+
Output(),
|
|
3194
|
+
__metadata("design:type", EventEmitter)
|
|
3195
|
+
], DocumentGridComponent.prototype, "viewDocument", void 0);
|
|
3196
|
+
__decorate([
|
|
3197
|
+
ViewChild("documentTable"),
|
|
3198
|
+
__metadata("design:type", Table)
|
|
3199
|
+
], DocumentGridComponent.prototype, "table", void 0);
|
|
3200
|
+
__decorate([
|
|
3201
|
+
ViewChild("customTemplate"),
|
|
3202
|
+
__metadata("design:type", TemplateRef)
|
|
3203
|
+
], DocumentGridComponent.prototype, "customTemplate", void 0);
|
|
3204
|
+
__decorate([
|
|
3205
|
+
ViewChild("customFilterFields"),
|
|
3206
|
+
__metadata("design:type", TemplateRef)
|
|
3207
|
+
], DocumentGridComponent.prototype, "customFilterFields", void 0);
|
|
3208
|
+
__decorate([
|
|
3209
|
+
ViewChild("customGridColgroup"),
|
|
3210
|
+
__metadata("design:type", TemplateRef)
|
|
3211
|
+
], DocumentGridComponent.prototype, "customGridColgroup", void 0);
|
|
3212
|
+
__decorate([
|
|
3213
|
+
ViewChild("customGridHeader"),
|
|
3214
|
+
__metadata("design:type", TemplateRef)
|
|
3215
|
+
], DocumentGridComponent.prototype, "customGridHeader", void 0);
|
|
3216
|
+
__decorate([
|
|
3217
|
+
ViewChild("customGridBody"),
|
|
3218
|
+
__metadata("design:type", TemplateRef)
|
|
3219
|
+
], DocumentGridComponent.prototype, "customGridBody", void 0);
|
|
3220
|
+
DocumentGridComponent = __decorate([
|
|
3221
|
+
Component({
|
|
3222
|
+
selector: 'document-grid',
|
|
3223
|
+
template: "<p-panel>\n <p-header>\n <div class=\"buttons\">\n <div>\n <s-button\n label=\"{{'yms.int.wms_add_document' | translate}}\"\n priority=\"primary\"\n [model]=\"getActions()\"\n [auxiliary]=\"false\">\n </s-button>\n <s-button\n label=\"{{'yms.wms_view_button' | translate}}\"\n priority=\"secondary\"\n [auxiliary]=\"false\"\n [disabled]=\"!selection || disabled\"\n (onClick)=\"view(selection)\">\n </s-button>\n <s-button\n label=\"{{'yms.wms_delete_button' | translate}}\"\n priority=\"secondary\"\n [auxiliary]=\"false\"\n [disabled]=\"!selection || disabled\"\n (click)=\"onDelete(selection)\">\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=\"single\" [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=\"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 (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[\"orderReceivingCode\"] }}</span>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"paginatorright\">\n <span [translate]=\"'total_records'\" [translateParams]=\"{ value: documentTotalRecords }\"></span>\n </ng-template>\n </p-table> \n </div>\n </div>\n <register-document\n [edit]=\"edit\"\n [viewDocument]=\"selection\"\n (document)=\"onChangeDocument($event)\"\n [(visible)]=\"visibleDocumentRegister\"\n [agenda]=\"agenda\">\n </register-document>\n <insert-key (document)=\"onChangeDocument($event)\" [(visible)]=\"visibleInvoiceKey\"></insert-key>\n</p-panel>\n<div class=\"button-save\">\n <s-button \n priority=\"primary\" [label]=\"'save' | translate\" [disabled]=\"!disabled || !this.gridData\" (click)=\"save()\">\n </s-button>\n</div>\n\n\n<ng-template #emptyList>\n <div class=\"center\">\n <s-empty-state\n iconClass=\"fa fa-exclamation-triangle\" [title]=\"'yms.dock.area_dock_empty_state_title' | translate\"\n [description]=\"'yms.dock.area_dock_empty_state_description' | translate\">\n </s-empty-state>\n </div>\n</ng-template>\n",
|
|
3224
|
+
styles: [".buttons{display:flex;justify-content:space-between}.center{flex-direction:column;text-align:center}.ui-g{display:block}.button-save{margin:5px 0}#refresh-button{color:#fff}"]
|
|
3225
|
+
}),
|
|
3226
|
+
__metadata("design:paramtypes", [TranslateService,
|
|
3227
|
+
DocumentService,
|
|
3228
|
+
MessageService])
|
|
3229
|
+
], DocumentGridComponent);
|
|
3230
|
+
return DocumentGridComponent;
|
|
3231
|
+
}());
|
|
3232
|
+
|
|
3233
|
+
var moment$4 = _moment;
|
|
3234
|
+
var Document = /** @class */ (function () {
|
|
3235
|
+
function Document() {
|
|
3236
|
+
}
|
|
3237
|
+
Document.fromDto = function (documentDto, originEntity) {
|
|
3238
|
+
var model = __assign({}, documentDto);
|
|
3239
|
+
model.createdDate = model.createdDate && moment$4(model.createdDate).toDate();
|
|
3240
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$4(model.lastModifiedDate).toDate();
|
|
3241
|
+
var lookupSeparator = " - ";
|
|
3242
|
+
var displayFields = [
|
|
3243
|
+
"id",
|
|
3244
|
+
"schedulingId",
|
|
3245
|
+
"invoiceKey",
|
|
3246
|
+
"invoiceNumber",
|
|
3247
|
+
"invoiceSerialNumber",
|
|
3248
|
+
"systemIntegration",
|
|
3249
|
+
"logistcUnitName",
|
|
3250
|
+
"logistcUnitDocument",
|
|
3251
|
+
"ownerName",
|
|
3252
|
+
"ownerDocument",
|
|
3253
|
+
"partnerName",
|
|
3254
|
+
"partnerDocument",
|
|
3255
|
+
"notes",
|
|
3256
|
+
"orderReceivingCode",
|
|
3257
|
+
"createdBy",
|
|
3258
|
+
"createdDate",
|
|
3259
|
+
"lastModifiedBy",
|
|
3260
|
+
"lastModifiedDate",
|
|
3261
|
+
];
|
|
3262
|
+
model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
|
|
3263
|
+
return model;
|
|
3264
|
+
};
|
|
3265
|
+
Document.toDto = function (document, originEntity) {
|
|
3266
|
+
var dto = __assign({}, document);
|
|
3267
|
+
dto.createdDate = dto.createdDate && moment$4(dto.createdDate).format();
|
|
3268
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$4(dto.lastModifiedDate).format();
|
|
3269
|
+
return dto;
|
|
3270
|
+
};
|
|
3271
|
+
return Document;
|
|
3272
|
+
}());
|
|
3273
|
+
|
|
2998
3274
|
var EntityService$1 = /** @class */ (function () {
|
|
2999
3275
|
function EntityService(http, messageService, entityUrl, actionsUrl) {
|
|
3000
3276
|
this.http = http;
|
|
@@ -3089,9 +3365,349 @@ var EntityService$1 = /** @class */ (function () {
|
|
|
3089
3365
|
return EntityService;
|
|
3090
3366
|
}());
|
|
3091
3367
|
|
|
3368
|
+
var EntityService$2 = /** @class */ (function (_super) {
|
|
3369
|
+
__extends(EntityService, _super);
|
|
3370
|
+
function EntityService() {
|
|
3371
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3372
|
+
}
|
|
3373
|
+
return EntityService;
|
|
3374
|
+
}(EntityService$1));
|
|
3375
|
+
|
|
3376
|
+
var AgendaService = /** @class */ (function (_super) {
|
|
3377
|
+
__extends(AgendaService, _super);
|
|
3378
|
+
function AgendaService(http, messageService) {
|
|
3379
|
+
var _this = _super.call(this, http, messageService, 'yms/agenda/entities/agenda', '') || this;
|
|
3380
|
+
_this.http = http;
|
|
3381
|
+
_this.messageService = messageService;
|
|
3382
|
+
return _this;
|
|
3383
|
+
}
|
|
3384
|
+
AgendaService.ngInjectableDef = defineInjectable({ factory: function AgendaService_Factory() { return new AgendaService(inject(HttpClient), inject(MessageService$1)); }, token: AgendaService, providedIn: "root" });
|
|
3385
|
+
AgendaService = __decorate([
|
|
3386
|
+
Injectable({ providedIn: 'root' }),
|
|
3387
|
+
__metadata("design:paramtypes", [HttpClient, MessageService$1])
|
|
3388
|
+
], AgendaService);
|
|
3389
|
+
return AgendaService;
|
|
3390
|
+
}(EntityService$2));
|
|
3391
|
+
|
|
3392
|
+
var RegisterDocumentComponent = /** @class */ (function () {
|
|
3393
|
+
function RegisterDocumentComponent(fb, messageService, translateService, agendaService) {
|
|
3394
|
+
this.fb = fb;
|
|
3395
|
+
this.messageService = messageService;
|
|
3396
|
+
this.translateService = translateService;
|
|
3397
|
+
this.agendaService = agendaService;
|
|
3398
|
+
this.document = new EventEmitter();
|
|
3399
|
+
this.visible = new EventEmitter();
|
|
3400
|
+
this.visibleChange = new EventEmitter();
|
|
3401
|
+
}
|
|
3402
|
+
RegisterDocumentComponent.prototype.ngOnInit = function () {
|
|
3403
|
+
this.getFormGroup();
|
|
3404
|
+
};
|
|
3405
|
+
RegisterDocumentComponent.prototype.ngOnChanges = function () {
|
|
3406
|
+
this.visibilityConfig();
|
|
3407
|
+
};
|
|
3408
|
+
RegisterDocumentComponent.prototype.visibilityConfig = function () {
|
|
3409
|
+
if (!this.edit && this.visible) {
|
|
3410
|
+
this.formGroup.disable();
|
|
3411
|
+
this.setValuesFormGroup(this.viewDocument);
|
|
3412
|
+
this.setValueForPartner();
|
|
3413
|
+
this.hideSaveButton = true;
|
|
3414
|
+
return this.visible;
|
|
3415
|
+
}
|
|
3416
|
+
return this.visible;
|
|
3417
|
+
};
|
|
3418
|
+
RegisterDocumentComponent.prototype.close = function () {
|
|
3419
|
+
this.visibleChange.emit(false);
|
|
3420
|
+
};
|
|
3421
|
+
RegisterDocumentComponent.prototype.setValuesFormGroup = function (document) {
|
|
3422
|
+
this.formGroup.get('invoiceKey').setValue(document.invoiceKey);
|
|
3423
|
+
this.formGroup.get('invoiceNumber').setValue(document.invoiceNumber);
|
|
3424
|
+
this.formGroup.get('invoiceSerialNumber').setValue(document.invoiceSerialNumber);
|
|
3425
|
+
this.formGroup.get('logistcUnitDocument').setValue(document.logistcUnitDocument);
|
|
3426
|
+
this.formGroup.get('logistcUnitName').setValue(document.logistcUnitName);
|
|
3427
|
+
this.formGroup.get('notes').setValue(document.notes);
|
|
3428
|
+
this.formGroup.get('orderReceivingCode').setValue(document.orderReceivingCode);
|
|
3429
|
+
this.formGroup.get('ownerDocument').setValue(document.ownerDocument);
|
|
3430
|
+
this.formGroup.get('ownerName').setValue(document.ownerName);
|
|
3431
|
+
};
|
|
3432
|
+
RegisterDocumentComponent.prototype.setValueForPartner = function () {
|
|
3433
|
+
var _this = this;
|
|
3434
|
+
this.agendaService.get(this.agenda.id).subscribe(function (agenda) {
|
|
3435
|
+
_this.formGroup.get('partnerName').setValue(agenda.externalTenant.descricao);
|
|
3436
|
+
_this.formGroup.get('partnerDocument').setValue(agenda.externalTenant.cnpj);
|
|
3437
|
+
});
|
|
3438
|
+
};
|
|
3439
|
+
RegisterDocumentComponent.prototype.getFormGroup = function () {
|
|
3440
|
+
this.formGroup = this.fb.group({
|
|
3441
|
+
invoiceKey: [undefined, Validators.required],
|
|
3442
|
+
schedulingId: [undefined],
|
|
3443
|
+
invoiceNumber: [undefined],
|
|
3444
|
+
invoiceSerialNumber: [undefined],
|
|
3445
|
+
logistcUnitName: [undefined],
|
|
3446
|
+
logistcUnitDocument: [undefined],
|
|
3447
|
+
ownerName: [undefined],
|
|
3448
|
+
ownerDocument: [undefined],
|
|
3449
|
+
partnerName: [undefined],
|
|
3450
|
+
partnerDocument: [undefined],
|
|
3451
|
+
notes: [undefined],
|
|
3452
|
+
orderReceivingCode: [undefined],
|
|
3453
|
+
});
|
|
3454
|
+
};
|
|
3455
|
+
RegisterDocumentComponent.prototype.save = function () {
|
|
3456
|
+
var value = this.formGroup.getRawValue();
|
|
3457
|
+
if (value.id === undefined) {
|
|
3458
|
+
if (this.agenda.id !== undefined) {
|
|
3459
|
+
value.schedulingId = this.agenda.id;
|
|
3460
|
+
}
|
|
3461
|
+
this.document.emit(Document.fromDto(value));
|
|
3462
|
+
this.successMessage();
|
|
3463
|
+
this.visibleChange.emit(false);
|
|
3464
|
+
}
|
|
3465
|
+
};
|
|
3466
|
+
RegisterDocumentComponent.prototype.successMessage = function () {
|
|
3467
|
+
this.messageService.add({
|
|
3468
|
+
severity: "success",
|
|
3469
|
+
summary: this.translateService.instant("saved_message_title"),
|
|
3470
|
+
detail: this.translateService.instant("saved_message_content"),
|
|
3471
|
+
});
|
|
3472
|
+
};
|
|
3473
|
+
__decorate([
|
|
3474
|
+
Input(),
|
|
3475
|
+
__metadata("design:type", Document)
|
|
3476
|
+
], RegisterDocumentComponent.prototype, "viewDocument", void 0);
|
|
3477
|
+
__decorate([
|
|
3478
|
+
Input(),
|
|
3479
|
+
__metadata("design:type", Boolean)
|
|
3480
|
+
], RegisterDocumentComponent.prototype, "edit", void 0);
|
|
3481
|
+
__decorate([
|
|
3482
|
+
Input(),
|
|
3483
|
+
__metadata("design:type", Agenda)
|
|
3484
|
+
], RegisterDocumentComponent.prototype, "agenda", void 0);
|
|
3485
|
+
__decorate([
|
|
3486
|
+
Output(),
|
|
3487
|
+
__metadata("design:type", EventEmitter)
|
|
3488
|
+
], RegisterDocumentComponent.prototype, "document", void 0);
|
|
3489
|
+
__decorate([
|
|
3490
|
+
Input(),
|
|
3491
|
+
__metadata("design:type", EventEmitter)
|
|
3492
|
+
], RegisterDocumentComponent.prototype, "visible", void 0);
|
|
3493
|
+
__decorate([
|
|
3494
|
+
Output(),
|
|
3495
|
+
__metadata("design:type", Object)
|
|
3496
|
+
], RegisterDocumentComponent.prototype, "visibleChange", void 0);
|
|
3497
|
+
RegisterDocumentComponent = __decorate([
|
|
3498
|
+
Component({
|
|
3499
|
+
selector: "register-document",
|
|
3500
|
+
template: "<s-sidebar\n [visible]=\"visible\"\n header=\"{{ 'yms.int.wms_register_document_add_document' | translate }}\"\n (visibleChange)=\"close()\">\n <form [formGroup]=\"formGroup\">\n <div class=\"ui-g ui-fluid\">\n <div class=\"ui-g-6 required\">\n <label for=\"invoiceKey\">{{'yms.int.wms_register_document_invoice_key' | translate}}</label>\n <input id=\"invoiceKey\" pInputText type=\"text\" formControlName=\"invoiceKey\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"invoiceNumber\">{{'yms.int.wms_register_document_invoice_number' | translate}}</label>\n <input id=\"invoiceNumber\" pInputText type=\"text\" formControlName=\"invoiceNumber\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"invoiceSerialNumber\">\n {{'yms.int.wms_register_document_invoice_serial_number' | translate}}\n </label>\n <input id=\"invoiceSerialNumber\" pInputText type=\"text\" formControlName=\"invoiceSerialNumber\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"logistcUnitName\">{{'yms.int.wms_register_document_logistc_unit_name' | translate}}</label>\n <input id=\"logistcUnitName\" pInputText type=\"text\" formControlName=\"logistcUnitName\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"logistcUnitDocument\">\n {{'yms.int.wms_register_document_logistc_unit_document' | translate}}\n </label>\n <input id=\"logistcUnitDocument\" pInputText type=\"text\" formControlName=\"logistcUnitDocument\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"documentOwnerName\">{{'yms.int.wms_register_document_owner_name' | translate}}</label>\n <input id=\"documentOwnerName\" pInputText type=\"text\" formControlName=\"ownerName\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"ownerDocument\">{{'yms.int.wms_register_document_owner_document' | translate}}</label>\n <input id=\"ownerDocument\" pInputText type=\"text\" formControlName=\"ownerDocument\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"partnerName\">{{'yms.int.wms_register_document_partner_name' | translate}}</label>\n <input id=\"partnerName\" pInputText type=\"text\" formControlName=\"partnerName\">\n </div>\n <div class=\"ui-g-6\">\n <label for=\"partnerDocument\">{{'yms.int.wms_register_document_partner_document' | translate}}</label>\n <input id=\"partnerDocument\" pInputText type=\"text\" formControlName=\"partnerDocument\">\n </div>\n <div class=\"ui-g-12\">\n <label for=\"notes\" id=\"notes\">{{'yms.int.wms_register_document_notes' | translate}}</label>\n <textarea id=\"notes\" rows=\"5\" pInputTextarea autoResize=\"autoResize\" formControlName=\"notes\"></textarea>\n </div>\n <div class=\"ui-g-6\">\n <label for=\"orderReceivingCode\">\n {{'yms.int.wms_register_document_order_receiving_code' | translate}}\n </label>\n <input id=\"orderReceivingCode\" pInputText type=\"text\" formControlName=\"orderReceivingCode\">\n </div>\n </div>\n </form>\n <div class=\"space-between\">\n <button\n pButton label=\"{{'save' | translate}}\" (click)=\"save()\" [attr.data-hidden]=\"hideSaveButton\">\n </button>\n <button\n type=\"button\" class=\"ui-button-link\" pButton label=\"{{'cancel' | translate}}\" (click)=\"close()\">\n </button>\n </div>\n</s-sidebar>"
|
|
3501
|
+
}),
|
|
3502
|
+
__metadata("design:paramtypes", [FormBuilder,
|
|
3503
|
+
MessageService,
|
|
3504
|
+
TranslateService,
|
|
3505
|
+
AgendaService])
|
|
3506
|
+
], RegisterDocumentComponent);
|
|
3507
|
+
return RegisterDocumentComponent;
|
|
3508
|
+
}());
|
|
3509
|
+
|
|
3510
|
+
var RegisterDocumentModule = /** @class */ (function () {
|
|
3511
|
+
function RegisterDocumentModule() {
|
|
3512
|
+
}
|
|
3513
|
+
RegisterDocumentModule = __decorate([
|
|
3514
|
+
NgModule({
|
|
3515
|
+
imports: [
|
|
3516
|
+
CommonModule,
|
|
3517
|
+
SidebarModule,
|
|
3518
|
+
ButtonModule,
|
|
3519
|
+
PanelModule,
|
|
3520
|
+
ConfirmDialogModule,
|
|
3521
|
+
TranslateModule,
|
|
3522
|
+
InputTextModule$1,
|
|
3523
|
+
ControlErrorsModule,
|
|
3524
|
+
InputTextareaModule,
|
|
3525
|
+
ReactiveFormsModule
|
|
3526
|
+
],
|
|
3527
|
+
exports: [RegisterDocumentComponent],
|
|
3528
|
+
declarations: [RegisterDocumentComponent],
|
|
3529
|
+
providers: [DocumentService]
|
|
3530
|
+
})
|
|
3531
|
+
], RegisterDocumentModule);
|
|
3532
|
+
return RegisterDocumentModule;
|
|
3533
|
+
}());
|
|
3534
|
+
|
|
3535
|
+
var InsertKeyComponent = /** @class */ (function () {
|
|
3536
|
+
function InsertKeyComponent(formBuilder, documentService, messageService, translate) {
|
|
3537
|
+
this.formBuilder = formBuilder;
|
|
3538
|
+
this.documentService = documentService;
|
|
3539
|
+
this.messageService = messageService;
|
|
3540
|
+
this.translate = translate;
|
|
3541
|
+
this.document = new EventEmitter();
|
|
3542
|
+
this.visible = new EventEmitter();
|
|
3543
|
+
this.visibleChange = new EventEmitter();
|
|
3544
|
+
}
|
|
3545
|
+
InsertKeyComponent.prototype.ngOnInit = function () {
|
|
3546
|
+
this.formGroup = this.formBuilder.group({
|
|
3547
|
+
key: [undefined]
|
|
3548
|
+
});
|
|
3549
|
+
};
|
|
3550
|
+
InsertKeyComponent.prototype.add = function () {
|
|
3551
|
+
this.visibleChange.emit(false);
|
|
3552
|
+
if (!this.formGroup.get('key').value) {
|
|
3553
|
+
return;
|
|
3554
|
+
}
|
|
3555
|
+
this.searchKey();
|
|
3556
|
+
};
|
|
3557
|
+
InsertKeyComponent.prototype.searchKey = function () {
|
|
3558
|
+
var _this = this;
|
|
3559
|
+
var key = {
|
|
3560
|
+
documentKeys: [this.formGroup.get('key').value],
|
|
3561
|
+
invoices: undefined,
|
|
3562
|
+
logistcUnitName: undefined,
|
|
3563
|
+
size: 0,
|
|
3564
|
+
offset: 0
|
|
3565
|
+
};
|
|
3566
|
+
this.documentService.findDocuments(key).subscribe(function (content) {
|
|
3567
|
+
if (content.totalElements < 1) {
|
|
3568
|
+
_this.message("warn", "yms.int.wms_insert_key_warning_message_header", "yms.int.wms_insert_key_warning_message_description");
|
|
3569
|
+
return;
|
|
3570
|
+
}
|
|
3571
|
+
_this.document.emit(content.contents[0]);
|
|
3572
|
+
_this.message("success", "yms.int.wms_insert_key_success_message_header", "yms.int.wms_insert_key_success_message_description");
|
|
3573
|
+
_this.formGroup.reset();
|
|
3574
|
+
});
|
|
3575
|
+
};
|
|
3576
|
+
InsertKeyComponent.prototype.message = function (success, header, description) {
|
|
3577
|
+
this.messageService.add({
|
|
3578
|
+
severity: success,
|
|
3579
|
+
summary: this.translate.instant(header),
|
|
3580
|
+
detail: this.translate.instant(description),
|
|
3581
|
+
});
|
|
3582
|
+
};
|
|
3583
|
+
InsertKeyComponent.prototype.cancel = function () {
|
|
3584
|
+
this.visibleChange.emit(false);
|
|
3585
|
+
};
|
|
3586
|
+
__decorate([
|
|
3587
|
+
Output(),
|
|
3588
|
+
__metadata("design:type", EventEmitter)
|
|
3589
|
+
], InsertKeyComponent.prototype, "document", void 0);
|
|
3590
|
+
__decorate([
|
|
3591
|
+
Input(),
|
|
3592
|
+
__metadata("design:type", EventEmitter)
|
|
3593
|
+
], InsertKeyComponent.prototype, "visible", void 0);
|
|
3594
|
+
__decorate([
|
|
3595
|
+
Output(),
|
|
3596
|
+
__metadata("design:type", Object)
|
|
3597
|
+
], InsertKeyComponent.prototype, "visibleChange", void 0);
|
|
3598
|
+
InsertKeyComponent = __decorate([
|
|
3599
|
+
Component({
|
|
3600
|
+
selector: "insert-key",
|
|
3601
|
+
template: "<form [formGroup]=\"formGroup\">\n <p-dialog [(visible)]=\"visible\" (visibleChange)=\"cancel()\">\n <p-header>{{'yms.insert_key_header' | translate}}</p-header>\n <div class=\"flex py-2 justify-content-center spacing-bottom\">\n <label for=\"key\">{{'yms.insert_key_label'}}</label>\n <input id=\"key\" class=\"size-input\" pInputText type=\"text\" formControlName=\"key\">\n </div>\n <div class=\"separator\"></div>\n <div class=\"spacing-top\">\n <s-button pButton label=\"{{'save' | translate}}\" (click)=\"add()\"></s-button>\n <s-button\n type=\"button\"\n class=\"ui-button-link\"\n pButton label=\"{{'cancel' | translate}}\"\n (click)=\"cancel()\">\n </s-button>\n </div>\n </p-dialog>\n</form>",
|
|
3602
|
+
styles: [".spacing-top{margin-top:10px}.spacing-bottom{margin-bottom:10px}.separator{width:100%;margin:5px 0;height:1px;background-color:#ccc}.size-input{width:550px}"]
|
|
3603
|
+
}),
|
|
3604
|
+
__metadata("design:paramtypes", [FormBuilder,
|
|
3605
|
+
DocumentService,
|
|
3606
|
+
MessageService,
|
|
3607
|
+
TranslateService])
|
|
3608
|
+
], InsertKeyComponent);
|
|
3609
|
+
return InsertKeyComponent;
|
|
3610
|
+
}());
|
|
3611
|
+
|
|
3612
|
+
var InsertKeyModule = /** @class */ (function () {
|
|
3613
|
+
function InsertKeyModule() {
|
|
3614
|
+
}
|
|
3615
|
+
InsertKeyModule = __decorate([
|
|
3616
|
+
NgModule({
|
|
3617
|
+
imports: [
|
|
3618
|
+
CommonModule,
|
|
3619
|
+
ReactiveFormsModule,
|
|
3620
|
+
ButtonModule,
|
|
3621
|
+
TranslateModule,
|
|
3622
|
+
DialogModule,
|
|
3623
|
+
InputTextModule$1
|
|
3624
|
+
],
|
|
3625
|
+
exports: [InsertKeyComponent],
|
|
3626
|
+
declarations: [InsertKeyComponent]
|
|
3627
|
+
})
|
|
3628
|
+
], InsertKeyModule);
|
|
3629
|
+
return InsertKeyModule;
|
|
3630
|
+
}());
|
|
3631
|
+
|
|
3632
|
+
var DocumentGridModule = /** @class */ (function () {
|
|
3633
|
+
function DocumentGridModule() {
|
|
3634
|
+
}
|
|
3635
|
+
DocumentGridModule = __decorate([
|
|
3636
|
+
NgModule({
|
|
3637
|
+
declarations: [DocumentGridComponent],
|
|
3638
|
+
entryComponents: [DocumentGridComponent],
|
|
3639
|
+
exports: [DocumentGridComponent],
|
|
3640
|
+
imports: [
|
|
3641
|
+
CommonModule,
|
|
3642
|
+
TranslateModule,
|
|
3643
|
+
ButtonModule,
|
|
3644
|
+
PanelModule,
|
|
3645
|
+
TableModule,
|
|
3646
|
+
RegisterDocumentModule,
|
|
3647
|
+
InsertKeyModule,
|
|
3648
|
+
ButtonModule$1,
|
|
3649
|
+
ComponentsModule,
|
|
3650
|
+
EmptyStateModule
|
|
3651
|
+
],
|
|
3652
|
+
})
|
|
3653
|
+
], DocumentGridModule);
|
|
3654
|
+
return DocumentGridModule;
|
|
3655
|
+
}());
|
|
3656
|
+
|
|
3657
|
+
var WmsModule = /** @class */ (function () {
|
|
3658
|
+
function WmsModule(dispatcher) {
|
|
3659
|
+
dispatcher.dispatch(FormWmsComponent);
|
|
3660
|
+
}
|
|
3661
|
+
WmsModule = __decorate([
|
|
3662
|
+
NgModule({
|
|
3663
|
+
declarations: [FormWmsComponent],
|
|
3664
|
+
entryComponents: [FormWmsComponent],
|
|
3665
|
+
exports: [FormWmsComponent],
|
|
3666
|
+
imports: [
|
|
3667
|
+
IntegrationModule,
|
|
3668
|
+
DocumentGridModule,
|
|
3669
|
+
CommonModule,
|
|
3670
|
+
TranslateModule,
|
|
3671
|
+
FormsModule,
|
|
3672
|
+
ButtonModule,
|
|
3673
|
+
SharedModule,
|
|
3674
|
+
CardModule,
|
|
3675
|
+
ButtonModule$1,
|
|
3676
|
+
ReactiveFormsModule,
|
|
3677
|
+
SharedModule$1,
|
|
3678
|
+
CustomFieldsModule,
|
|
3679
|
+
ControlErrorsModule,
|
|
3680
|
+
DialogModule,
|
|
3681
|
+
EmptyStateModule,
|
|
3682
|
+
DynamicFormModule,
|
|
3683
|
+
TokenListModule,
|
|
3684
|
+
PanelModule,
|
|
3685
|
+
InputTextModule$1,
|
|
3686
|
+
DropdownModule,
|
|
3687
|
+
ButtonModule,
|
|
3688
|
+
LoadingStateModule,
|
|
3689
|
+
NumberInputModule,
|
|
3690
|
+
ConfirmDialogModule,
|
|
3691
|
+
LocaleModule,
|
|
3692
|
+
PermissionsModule,
|
|
3693
|
+
DynamicDialogModule,
|
|
3694
|
+
TableModule,
|
|
3695
|
+
TabViewModule,
|
|
3696
|
+
CalendarModule,
|
|
3697
|
+
],
|
|
3698
|
+
providers: [
|
|
3699
|
+
FieldCustomizationService,
|
|
3700
|
+
FocusService
|
|
3701
|
+
]
|
|
3702
|
+
}),
|
|
3703
|
+
__metadata("design:paramtypes", [IntegrationDispatcher])
|
|
3704
|
+
], WmsModule);
|
|
3705
|
+
return WmsModule;
|
|
3706
|
+
}());
|
|
3707
|
+
|
|
3092
3708
|
var ERP_ENVIRONMENT = new InjectionToken('integration_environment');
|
|
3093
3709
|
|
|
3094
|
-
var AgendaService = /** @class */ (function (_super) {
|
|
3710
|
+
var AgendaService$1 = /** @class */ (function (_super) {
|
|
3095
3711
|
__extends(AgendaService, _super);
|
|
3096
3712
|
function AgendaService(http, messageService, environment) {
|
|
3097
3713
|
var _this = _super.call(this, http, messageService, environment.project.domain + "/" + environment.project.service + "/entities/agenda", environment.project.domain + "/" + environment.project.service + "/actions") || this;
|
|
@@ -3192,7 +3808,7 @@ var RecebimentoChegadaVeiculoOverride = /** @class */ (function () {
|
|
|
3192
3808
|
RecebimentoChegadaVeiculoOverride = __decorate([
|
|
3193
3809
|
Injectable(),
|
|
3194
3810
|
__metadata("design:paramtypes", [ChegadaVeiculoOverride,
|
|
3195
|
-
AgendaService,
|
|
3811
|
+
AgendaService$1,
|
|
3196
3812
|
RecebimentoContratoService])
|
|
3197
3813
|
], RecebimentoChegadaVeiculoOverride);
|
|
3198
3814
|
return RecebimentoChegadaVeiculoOverride;
|
|
@@ -3256,7 +3872,7 @@ var ExpedicaoChegadaVeiculoOverride = /** @class */ (function () {
|
|
|
3256
3872
|
ExpedicaoChegadaVeiculoOverride = __decorate([
|
|
3257
3873
|
Injectable(),
|
|
3258
3874
|
__metadata("design:paramtypes", [ChegadaVeiculoOverride,
|
|
3259
|
-
AgendaService,
|
|
3875
|
+
AgendaService$1,
|
|
3260
3876
|
ExpedicaoService])
|
|
3261
3877
|
], ExpedicaoChegadaVeiculoOverride);
|
|
3262
3878
|
return ExpedicaoChegadaVeiculoOverride;
|
|
@@ -3473,7 +4089,7 @@ var OrdemCompraService = /** @class */ (function (_super) {
|
|
|
3473
4089
|
return OrdemCompraService;
|
|
3474
4090
|
}(EntityService$1));
|
|
3475
4091
|
|
|
3476
|
-
var moment$
|
|
4092
|
+
var moment$5 = _moment;
|
|
3477
4093
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3478
4094
|
var Empresa = /** @class */ (function () {
|
|
3479
4095
|
function Empresa() {
|
|
@@ -3482,8 +4098,8 @@ var Empresa = /** @class */ (function () {
|
|
|
3482
4098
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3483
4099
|
Empresa.fromDto = function (empresaDto, originEntity) {
|
|
3484
4100
|
var model = __assign({}, empresaDto);
|
|
3485
|
-
model.createdDate = model.createdDate && moment$
|
|
3486
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
4101
|
+
model.createdDate = model.createdDate && moment$5(model.createdDate).toDate();
|
|
4102
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$5(model.lastModifiedDate).toDate();
|
|
3487
4103
|
var lookupSeparator = " - ";
|
|
3488
4104
|
var displayFields = [
|
|
3489
4105
|
"codigo",
|
|
@@ -3495,8 +4111,8 @@ var Empresa = /** @class */ (function () {
|
|
|
3495
4111
|
};
|
|
3496
4112
|
Empresa.toDto = function (empresa, originEntity) {
|
|
3497
4113
|
var dto = __assign({}, empresa);
|
|
3498
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3499
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4114
|
+
dto.createdDate = dto.createdDate && moment$5(dto.createdDate).format();
|
|
4115
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$5(dto.lastModifiedDate).format();
|
|
3500
4116
|
delete dto.label;
|
|
3501
4117
|
return dto;
|
|
3502
4118
|
};
|
|
@@ -3505,7 +4121,7 @@ var Empresa = /** @class */ (function () {
|
|
|
3505
4121
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3506
4122
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3507
4123
|
|
|
3508
|
-
var moment$
|
|
4124
|
+
var moment$6 = _moment;
|
|
3509
4125
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3510
4126
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3511
4127
|
var Pessoa = /** @class */ (function () {
|
|
@@ -3515,8 +4131,8 @@ var Pessoa = /** @class */ (function () {
|
|
|
3515
4131
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3516
4132
|
Pessoa.fromDto = function (pessoaDto, originEntity) {
|
|
3517
4133
|
var model = __assign({}, pessoaDto);
|
|
3518
|
-
model.createdDate = model.createdDate && moment$
|
|
3519
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
4134
|
+
model.createdDate = model.createdDate && moment$6(model.createdDate).toDate();
|
|
4135
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$6(model.lastModifiedDate).toDate();
|
|
3520
4136
|
var lookupSeparator = " - ";
|
|
3521
4137
|
var displayFields = [
|
|
3522
4138
|
"codigo",
|
|
@@ -3528,8 +4144,8 @@ var Pessoa = /** @class */ (function () {
|
|
|
3528
4144
|
};
|
|
3529
4145
|
Pessoa.toDto = function (pessoa, originEntity) {
|
|
3530
4146
|
var dto = __assign({}, pessoa);
|
|
3531
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3532
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4147
|
+
dto.createdDate = dto.createdDate && moment$6(dto.createdDate).format();
|
|
4148
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$6(dto.lastModifiedDate).format();
|
|
3533
4149
|
delete dto.label;
|
|
3534
4150
|
return dto;
|
|
3535
4151
|
};
|
|
@@ -3538,7 +4154,7 @@ var Pessoa = /** @class */ (function () {
|
|
|
3538
4154
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3539
4155
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3540
4156
|
|
|
3541
|
-
var moment$
|
|
4157
|
+
var moment$7 = _moment;
|
|
3542
4158
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3543
4159
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3544
4160
|
var PessoaJuridica = /** @class */ (function () {
|
|
@@ -3548,8 +4164,8 @@ var PessoaJuridica = /** @class */ (function () {
|
|
|
3548
4164
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3549
4165
|
PessoaJuridica.fromDto = function (pessoaJuridicaDto, originEntity) {
|
|
3550
4166
|
var model = __assign({}, pessoaJuridicaDto);
|
|
3551
|
-
model.createdDate = model.createdDate && moment$
|
|
3552
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
4167
|
+
model.createdDate = model.createdDate && moment$7(model.createdDate).toDate();
|
|
4168
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$7(model.lastModifiedDate).toDate();
|
|
3553
4169
|
var lookupSeparator = " - ";
|
|
3554
4170
|
var displayFields = [
|
|
3555
4171
|
"id",
|
|
@@ -3576,8 +4192,8 @@ var PessoaJuridica = /** @class */ (function () {
|
|
|
3576
4192
|
};
|
|
3577
4193
|
PessoaJuridica.toDto = function (pessoaJuridica, originEntity) {
|
|
3578
4194
|
var dto = __assign({}, pessoaJuridica);
|
|
3579
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3580
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4195
|
+
dto.createdDate = dto.createdDate && moment$7(dto.createdDate).format();
|
|
4196
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$7(dto.lastModifiedDate).format();
|
|
3581
4197
|
delete dto.label;
|
|
3582
4198
|
if (originEntity !== "Pessoa" && dto.pessoa)
|
|
3583
4199
|
dto.pessoa = Pessoa.toDto(dto.pessoa, "PessoaJuridica");
|
|
@@ -3588,7 +4204,7 @@ var PessoaJuridica = /** @class */ (function () {
|
|
|
3588
4204
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3589
4205
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3590
4206
|
|
|
3591
|
-
var moment$
|
|
4207
|
+
var moment$8 = _moment;
|
|
3592
4208
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3593
4209
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3594
4210
|
var Pais = /** @class */ (function () {
|
|
@@ -3598,8 +4214,8 @@ var Pais = /** @class */ (function () {
|
|
|
3598
4214
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3599
4215
|
Pais.fromDto = function (paisDto, originEntity) {
|
|
3600
4216
|
var model = __assign({}, paisDto);
|
|
3601
|
-
model.createdDate = model.createdDate && moment$
|
|
3602
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
4217
|
+
model.createdDate = model.createdDate && moment$8(model.createdDate).toDate();
|
|
4218
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$8(model.lastModifiedDate).toDate();
|
|
3603
4219
|
var lookupSeparator = " - ";
|
|
3604
4220
|
var displayFields = ["id", "codigo", "descricao", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
|
|
3605
4221
|
model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
|
|
@@ -3607,8 +4223,8 @@ var Pais = /** @class */ (function () {
|
|
|
3607
4223
|
};
|
|
3608
4224
|
Pais.toDto = function (pais, originEntity) {
|
|
3609
4225
|
var dto = __assign({}, pais);
|
|
3610
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3611
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4226
|
+
dto.createdDate = dto.createdDate && moment$8(dto.createdDate).format();
|
|
4227
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$8(dto.lastModifiedDate).format();
|
|
3612
4228
|
delete dto.label;
|
|
3613
4229
|
return dto;
|
|
3614
4230
|
};
|
|
@@ -3617,7 +4233,7 @@ var Pais = /** @class */ (function () {
|
|
|
3617
4233
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3618
4234
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3619
4235
|
|
|
3620
|
-
var moment$
|
|
4236
|
+
var moment$9 = _moment;
|
|
3621
4237
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3622
4238
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3623
4239
|
var Estado = /** @class */ (function () {
|
|
@@ -3627,8 +4243,8 @@ var Estado = /** @class */ (function () {
|
|
|
3627
4243
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3628
4244
|
Estado.fromDto = function (estadoDto, originEntity) {
|
|
3629
4245
|
var model = __assign({}, estadoDto);
|
|
3630
|
-
model.createdDate = model.createdDate && moment$
|
|
3631
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
4246
|
+
model.createdDate = model.createdDate && moment$9(model.createdDate).toDate();
|
|
4247
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$9(model.lastModifiedDate).toDate();
|
|
3632
4248
|
var lookupSeparator = " - ";
|
|
3633
4249
|
var displayFields = [
|
|
3634
4250
|
"id",
|
|
@@ -3650,8 +4266,8 @@ var Estado = /** @class */ (function () {
|
|
|
3650
4266
|
};
|
|
3651
4267
|
Estado.toDto = function (estado, originEntity) {
|
|
3652
4268
|
var dto = __assign({}, estado);
|
|
3653
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3654
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4269
|
+
dto.createdDate = dto.createdDate && moment$9(dto.createdDate).format();
|
|
4270
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$9(dto.lastModifiedDate).format();
|
|
3655
4271
|
delete dto.label;
|
|
3656
4272
|
if (originEntity !== "Pais" && dto.pais)
|
|
3657
4273
|
dto.pais = Pais.toDto(dto.pais, "Estado");
|
|
@@ -3662,7 +4278,7 @@ var Estado = /** @class */ (function () {
|
|
|
3662
4278
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3663
4279
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3664
4280
|
|
|
3665
|
-
var moment$
|
|
4281
|
+
var moment$a = _moment;
|
|
3666
4282
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3667
4283
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3668
4284
|
var Cidade = /** @class */ (function () {
|
|
@@ -3672,8 +4288,8 @@ var Cidade = /** @class */ (function () {
|
|
|
3672
4288
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3673
4289
|
Cidade.fromDto = function (cidadeDto, originEntity) {
|
|
3674
4290
|
var model = __assign({}, cidadeDto);
|
|
3675
|
-
model.createdDate = model.createdDate && moment$
|
|
3676
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
4291
|
+
model.createdDate = model.createdDate && moment$a(model.createdDate).toDate();
|
|
4292
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$a(model.lastModifiedDate).toDate();
|
|
3677
4293
|
var lookupSeparator = " - ";
|
|
3678
4294
|
var displayFields = [
|
|
3679
4295
|
"id",
|
|
@@ -3694,8 +4310,8 @@ var Cidade = /** @class */ (function () {
|
|
|
3694
4310
|
};
|
|
3695
4311
|
Cidade.toDto = function (cidade, originEntity) {
|
|
3696
4312
|
var dto = __assign({}, cidade);
|
|
3697
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3698
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4313
|
+
dto.createdDate = dto.createdDate && moment$a(dto.createdDate).format();
|
|
4314
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$a(dto.lastModifiedDate).format();
|
|
3699
4315
|
delete dto.label;
|
|
3700
4316
|
if (originEntity !== "Estado" && dto.estado)
|
|
3701
4317
|
dto.estado = Estado.toDto(dto.estado, "Cidade");
|
|
@@ -3706,14 +4322,14 @@ var Cidade = /** @class */ (function () {
|
|
|
3706
4322
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3707
4323
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3708
4324
|
|
|
3709
|
-
var moment$
|
|
4325
|
+
var moment$b = _moment;
|
|
3710
4326
|
var PessoaEndereco = /** @class */ (function () {
|
|
3711
4327
|
function PessoaEndereco() {
|
|
3712
4328
|
}
|
|
3713
4329
|
PessoaEndereco.fromDto = function (pessoaEnderecoDto, originEntity) {
|
|
3714
4330
|
var model = __assign({}, pessoaEnderecoDto);
|
|
3715
|
-
model.createdDate = model.createdDate && moment$
|
|
3716
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
4331
|
+
model.createdDate = model.createdDate && moment$b(model.createdDate).toDate();
|
|
4332
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$b(model.lastModifiedDate).toDate();
|
|
3717
4333
|
var lookupSeparator = " - ";
|
|
3718
4334
|
var displayFields = [
|
|
3719
4335
|
"codigo",
|
|
@@ -3729,8 +4345,8 @@ var PessoaEndereco = /** @class */ (function () {
|
|
|
3729
4345
|
};
|
|
3730
4346
|
PessoaEndereco.toDto = function (pessoaEndereco, originEntity) {
|
|
3731
4347
|
var dto = __assign({}, pessoaEndereco);
|
|
3732
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3733
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4348
|
+
dto.createdDate = dto.createdDate && moment$b(dto.createdDate).format();
|
|
4349
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$b(dto.lastModifiedDate).format();
|
|
3734
4350
|
delete dto.label;
|
|
3735
4351
|
if (originEntity !== "Pessoa" && dto.pessoa)
|
|
3736
4352
|
dto.pessoa = Pessoa.toDto(dto.pessoa, "PessoaEndereco");
|
|
@@ -3741,7 +4357,7 @@ var PessoaEndereco = /** @class */ (function () {
|
|
|
3741
4357
|
return PessoaEndereco;
|
|
3742
4358
|
}());
|
|
3743
4359
|
|
|
3744
|
-
var moment$
|
|
4360
|
+
var moment$c = _moment;
|
|
3745
4361
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3746
4362
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3747
4363
|
var Filial = /** @class */ (function () {
|
|
@@ -3751,8 +4367,8 @@ var Filial = /** @class */ (function () {
|
|
|
3751
4367
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3752
4368
|
Filial.fromDto = function (filialDto, originEntity) {
|
|
3753
4369
|
var model = __assign({}, filialDto);
|
|
3754
|
-
model.createdDate = model.createdDate && moment$
|
|
3755
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
4370
|
+
model.createdDate = model.createdDate && moment$c(model.createdDate).toDate();
|
|
4371
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$c(model.lastModifiedDate).toDate();
|
|
3756
4372
|
var lookupSeparator = " - ";
|
|
3757
4373
|
var displayFields = [
|
|
3758
4374
|
"codigo",
|
|
@@ -3770,8 +4386,8 @@ var Filial = /** @class */ (function () {
|
|
|
3770
4386
|
};
|
|
3771
4387
|
Filial.toDto = function (filial, originEntity) {
|
|
3772
4388
|
var dto = __assign({}, filial);
|
|
3773
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3774
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4389
|
+
dto.createdDate = dto.createdDate && moment$c(dto.createdDate).format();
|
|
4390
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$c(dto.lastModifiedDate).format();
|
|
3775
4391
|
delete dto.label;
|
|
3776
4392
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
3777
4393
|
dto.empresa = Empresa.toDto(dto.empresa, "Filial");
|
|
@@ -3786,14 +4402,14 @@ var Filial = /** @class */ (function () {
|
|
|
3786
4402
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3787
4403
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3788
4404
|
|
|
3789
|
-
var moment$
|
|
4405
|
+
var moment$d = _moment;
|
|
3790
4406
|
var OrdemCompra = /** @class */ (function () {
|
|
3791
4407
|
function OrdemCompra() {
|
|
3792
4408
|
}
|
|
3793
4409
|
OrdemCompra.fromDto = function (ordemCompraDto, originEntity) {
|
|
3794
4410
|
var model = __assign({}, ordemCompraDto);
|
|
3795
|
-
model.createdDate = model.createdDate && moment$
|
|
3796
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
4411
|
+
model.createdDate = model.createdDate && moment$d(model.createdDate).toDate();
|
|
4412
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$d(model.lastModifiedDate).toDate();
|
|
3797
4413
|
var lookupSeparator = " - ";
|
|
3798
4414
|
var displayFields = [
|
|
3799
4415
|
"codigo",
|
|
@@ -3809,8 +4425,8 @@ var OrdemCompra = /** @class */ (function () {
|
|
|
3809
4425
|
};
|
|
3810
4426
|
OrdemCompra.toDto = function (ordemCompra, originEntity) {
|
|
3811
4427
|
var dto = __assign({}, ordemCompra);
|
|
3812
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3813
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4428
|
+
dto.createdDate = dto.createdDate && moment$d(dto.createdDate).format();
|
|
4429
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$d(dto.lastModifiedDate).format();
|
|
3814
4430
|
delete dto.label;
|
|
3815
4431
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
3816
4432
|
dto.empresa = Empresa.toDto(dto.empresa, "Produto");
|
|
@@ -3821,7 +4437,7 @@ var OrdemCompra = /** @class */ (function () {
|
|
|
3821
4437
|
return OrdemCompra;
|
|
3822
4438
|
}());
|
|
3823
4439
|
|
|
3824
|
-
var moment$
|
|
4440
|
+
var moment$e = _moment;
|
|
3825
4441
|
var OrdemCompraFormComponent = /** @class */ (function () {
|
|
3826
4442
|
function OrdemCompraFormComponent(dialogRef, dialogConfig, ordemCompraService, translate, fb, route) {
|
|
3827
4443
|
this.dialogRef = dialogRef;
|
|
@@ -3900,7 +4516,7 @@ var OrdemCompraFormComponent = /** @class */ (function () {
|
|
|
3900
4516
|
if (filial && filial.empresa && filial.empresa.id) {
|
|
3901
4517
|
filter.empresaId = filial.empresa.id;
|
|
3902
4518
|
}
|
|
3903
|
-
filter.dataEmissao = filter.dataEmissao && moment$
|
|
4519
|
+
filter.dataEmissao = filter.dataEmissao && moment$e(filter.dataEmissao).format("YYYY-MM-DD");
|
|
3904
4520
|
var sort = (multiSortMeta || []).length ? { field: multiSortMeta[0].field, order: multiSortMeta[0].order === 1 ? 'Asc' : 'Desc' } : { field: 'numero', order: 'Asc' };
|
|
3905
4521
|
this.ordemCompraService
|
|
3906
4522
|
.listOrdensCompra(__assign({}, filter, { pessoaId: (this.fornecedor || { id: undefined }).id, filialId: (filial || { id: undefined }).id, tipoAgendamentoId: this.agenda && this.agenda.tipoAgendamento ? this.agenda.tipoAgendamento.id : null, ordensCompraSelecionados: this.ordensCompra, pagina: {
|
|
@@ -4264,7 +4880,7 @@ var AgendaModule = /** @class */ (function () {
|
|
|
4264
4880
|
]),
|
|
4265
4881
|
],
|
|
4266
4882
|
providers: [
|
|
4267
|
-
AgendaService,
|
|
4883
|
+
AgendaService$1,
|
|
4268
4884
|
],
|
|
4269
4885
|
declarations: [
|
|
4270
4886
|
/*{CA:MODULE_DECLARATIONS:START}*/
|
|
@@ -6131,13 +6747,13 @@ var DevolucaoChegadaVeiculoOverride = /** @class */ (function () {
|
|
|
6131
6747
|
DevolucaoChegadaVeiculoOverride = __decorate([
|
|
6132
6748
|
Injectable(),
|
|
6133
6749
|
__metadata("design:paramtypes", [ChegadaVeiculoOverride,
|
|
6134
|
-
AgendaService,
|
|
6750
|
+
AgendaService$1,
|
|
6135
6751
|
DevolucaoService])
|
|
6136
6752
|
], DevolucaoChegadaVeiculoOverride);
|
|
6137
6753
|
return DevolucaoChegadaVeiculoOverride;
|
|
6138
6754
|
}());
|
|
6139
6755
|
|
|
6140
|
-
var moment$
|
|
6756
|
+
var moment$f = _moment;
|
|
6141
6757
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
6142
6758
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
6143
6759
|
var UnidadeMedida = /** @class */ (function () {
|
|
@@ -6147,8 +6763,8 @@ var UnidadeMedida = /** @class */ (function () {
|
|
|
6147
6763
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
6148
6764
|
UnidadeMedida.fromDto = function (unidadeMedidaDto, originEntity) {
|
|
6149
6765
|
var model = __assign({}, unidadeMedidaDto);
|
|
6150
|
-
model.createdDate = model.createdDate && moment$
|
|
6151
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
6766
|
+
model.createdDate = model.createdDate && moment$f(model.createdDate).toDate();
|
|
6767
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$f(model.lastModifiedDate).toDate();
|
|
6152
6768
|
var lookupSeparator = " - ";
|
|
6153
6769
|
var displayFields = [
|
|
6154
6770
|
"id",
|
|
@@ -6165,8 +6781,8 @@ var UnidadeMedida = /** @class */ (function () {
|
|
|
6165
6781
|
};
|
|
6166
6782
|
UnidadeMedida.toDto = function (unidadeMedida, originEntity) {
|
|
6167
6783
|
var dto = __assign({}, unidadeMedida);
|
|
6168
|
-
dto.createdDate = dto.createdDate && moment$
|
|
6169
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
6784
|
+
dto.createdDate = dto.createdDate && moment$f(dto.createdDate).format();
|
|
6785
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$f(dto.lastModifiedDate).format();
|
|
6170
6786
|
delete dto.label;
|
|
6171
6787
|
return dto;
|
|
6172
6788
|
};
|
|
@@ -6175,7 +6791,7 @@ var UnidadeMedida = /** @class */ (function () {
|
|
|
6175
6791
|
/*{CA:FILE_CONTENTS:START}*/
|
|
6176
6792
|
/*{CA:FILE_CONTENTS:END}*/
|
|
6177
6793
|
|
|
6178
|
-
var moment$
|
|
6794
|
+
var moment$g = _moment;
|
|
6179
6795
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
6180
6796
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
6181
6797
|
var Royalty = /** @class */ (function () {
|
|
@@ -6185,8 +6801,8 @@ var Royalty = /** @class */ (function () {
|
|
|
6185
6801
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
6186
6802
|
Royalty.fromDto = function (royaltyDto, originEntity) {
|
|
6187
6803
|
var model = __assign({}, royaltyDto);
|
|
6188
|
-
model.createdDate = model.createdDate && moment$
|
|
6189
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
6804
|
+
model.createdDate = model.createdDate && moment$g(model.createdDate).toDate();
|
|
6805
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$g(model.lastModifiedDate).toDate();
|
|
6190
6806
|
var lookupSeparator = " - ";
|
|
6191
6807
|
var displayFields = ["id", "codigo", "descricao", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
|
|
6192
6808
|
model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
|
|
@@ -6196,8 +6812,8 @@ var Royalty = /** @class */ (function () {
|
|
|
6196
6812
|
};
|
|
6197
6813
|
Royalty.toDto = function (royalty, originEntity) {
|
|
6198
6814
|
var dto = __assign({}, royalty);
|
|
6199
|
-
dto.createdDate = dto.createdDate && moment$
|
|
6200
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
6815
|
+
dto.createdDate = dto.createdDate && moment$g(dto.createdDate).format();
|
|
6816
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$g(dto.lastModifiedDate).format();
|
|
6201
6817
|
delete dto.label;
|
|
6202
6818
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
6203
6819
|
dto.empresa = Empresa.toDto(dto.empresa, "Royalty");
|
|
@@ -6208,7 +6824,7 @@ var Royalty = /** @class */ (function () {
|
|
|
6208
6824
|
/*{CA:FILE_CONTENTS:START}*/
|
|
6209
6825
|
/*{CA:FILE_CONTENTS:END}*/
|
|
6210
6826
|
|
|
6211
|
-
var moment$
|
|
6827
|
+
var moment$h = _moment;
|
|
6212
6828
|
var FamiliaProduto = /** @class */ (function () {
|
|
6213
6829
|
function FamiliaProduto() {
|
|
6214
6830
|
}
|
|
@@ -6217,9 +6833,9 @@ var FamiliaProduto = /** @class */ (function () {
|
|
|
6217
6833
|
return familiaProdutoDto;
|
|
6218
6834
|
}
|
|
6219
6835
|
var model = __assign({}, familiaProdutoDto);
|
|
6220
|
-
model.createdDate = model.codigo && moment$
|
|
6221
|
-
model.createdDate = model.createdDate && moment$
|
|
6222
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
6836
|
+
model.createdDate = model.codigo && moment$h(model.createdDate).toDate();
|
|
6837
|
+
model.createdDate = model.createdDate && moment$h(model.createdDate).toDate();
|
|
6838
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$h(model.lastModifiedDate).toDate();
|
|
6223
6839
|
var lookupSeparator = " - ";
|
|
6224
6840
|
var displayFields = ["id", "codigo", "descricao", "situacao", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
|
|
6225
6841
|
model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
|
|
@@ -6229,8 +6845,8 @@ var FamiliaProduto = /** @class */ (function () {
|
|
|
6229
6845
|
};
|
|
6230
6846
|
FamiliaProduto.toDto = function (familiaProduto, originEntity) {
|
|
6231
6847
|
var dto = __assign({}, familiaProduto);
|
|
6232
|
-
dto.createdDate = dto.createdDate && moment$
|
|
6233
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
6848
|
+
dto.createdDate = dto.createdDate && moment$h(dto.createdDate).format();
|
|
6849
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$h(dto.lastModifiedDate).format();
|
|
6234
6850
|
delete dto.label;
|
|
6235
6851
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
6236
6852
|
dto.empresa = Empresa.toDto(dto.empresa, "FamiliaProduto");
|
|
@@ -6239,7 +6855,7 @@ var FamiliaProduto = /** @class */ (function () {
|
|
|
6239
6855
|
return FamiliaProduto;
|
|
6240
6856
|
}());
|
|
6241
6857
|
|
|
6242
|
-
var moment$
|
|
6858
|
+
var moment$i = _moment;
|
|
6243
6859
|
var Produto = /** @class */ (function () {
|
|
6244
6860
|
function Produto() {
|
|
6245
6861
|
this.produtoMisto = false;
|
|
@@ -6247,8 +6863,8 @@ var Produto = /** @class */ (function () {
|
|
|
6247
6863
|
}
|
|
6248
6864
|
Produto.fromDto = function (produtoDto, originEntity) {
|
|
6249
6865
|
var model = __assign({}, produtoDto);
|
|
6250
|
-
model.createdDate = model.createdDate && moment$
|
|
6251
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
6866
|
+
model.createdDate = model.createdDate && moment$i(model.createdDate).toDate();
|
|
6867
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$i(model.lastModifiedDate).toDate();
|
|
6252
6868
|
var lookupSeparator = " - ";
|
|
6253
6869
|
var displayFields = [
|
|
6254
6870
|
"codigo",
|
|
@@ -6269,8 +6885,8 @@ var Produto = /** @class */ (function () {
|
|
|
6269
6885
|
};
|
|
6270
6886
|
Produto.toDto = function (produto, originEntity) {
|
|
6271
6887
|
var dto = __assign({}, produto);
|
|
6272
|
-
dto.createdDate = dto.createdDate && moment$
|
|
6273
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
6888
|
+
dto.createdDate = dto.createdDate && moment$i(dto.createdDate).format();
|
|
6889
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$i(dto.lastModifiedDate).format();
|
|
6274
6890
|
delete dto.label;
|
|
6275
6891
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
6276
6892
|
dto.empresa = Empresa.toDto(dto.empresa, "Produto");
|
|
@@ -6287,7 +6903,7 @@ var Produto = /** @class */ (function () {
|
|
|
6287
6903
|
return Produto;
|
|
6288
6904
|
}());
|
|
6289
6905
|
|
|
6290
|
-
var moment$
|
|
6906
|
+
var moment$j = _moment;
|
|
6291
6907
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
6292
6908
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
6293
6909
|
var Derivacao = /** @class */ (function () {
|
|
@@ -6297,8 +6913,8 @@ var Derivacao = /** @class */ (function () {
|
|
|
6297
6913
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
6298
6914
|
Derivacao.fromDto = function (derivacaoDto, originEntity) {
|
|
6299
6915
|
var model = __assign({}, derivacaoDto);
|
|
6300
|
-
model.createdDate = model.createdDate && moment$
|
|
6301
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
6916
|
+
model.createdDate = model.createdDate && moment$j(model.createdDate).toDate();
|
|
6917
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$j(model.lastModifiedDate).toDate();
|
|
6302
6918
|
var lookupSeparator = " - ";
|
|
6303
6919
|
var displayFields = ["codigo", "descricao"];
|
|
6304
6920
|
model.label = getLookupLabel(model, displayFields, lookupSeparator);
|
|
@@ -6310,8 +6926,8 @@ var Derivacao = /** @class */ (function () {
|
|
|
6310
6926
|
};
|
|
6311
6927
|
Derivacao.toDto = function (derivacao, originEntity) {
|
|
6312
6928
|
var dto = __assign({}, derivacao);
|
|
6313
|
-
dto.createdDate = dto.createdDate && moment$
|
|
6314
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
6929
|
+
dto.createdDate = dto.createdDate && moment$j(dto.createdDate).format();
|
|
6930
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$j(dto.lastModifiedDate).format();
|
|
6315
6931
|
delete dto.label;
|
|
6316
6932
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
6317
6933
|
dto.empresa = Empresa.toDto(dto.empresa, "Derivacao");
|
|
@@ -6324,7 +6940,7 @@ var Derivacao = /** @class */ (function () {
|
|
|
6324
6940
|
/*{CA:FILE_CONTENTS:START}*/
|
|
6325
6941
|
/*{CA:FILE_CONTENTS:END}*/
|
|
6326
6942
|
|
|
6327
|
-
var moment$
|
|
6943
|
+
var moment$k = _moment;
|
|
6328
6944
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
6329
6945
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
6330
6946
|
var Transportadora = /** @class */ (function () {
|
|
@@ -6334,8 +6950,8 @@ var Transportadora = /** @class */ (function () {
|
|
|
6334
6950
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
6335
6951
|
Transportadora.fromDto = function (transportadoraDto, originEntity) {
|
|
6336
6952
|
var model = __assign({}, transportadoraDto);
|
|
6337
|
-
model.createdDate = model.createdDate && moment$
|
|
6338
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
6953
|
+
model.createdDate = model.createdDate && moment$k(model.createdDate).toDate();
|
|
6954
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$k(model.lastModifiedDate).toDate();
|
|
6339
6955
|
var lookupSeparator = " - ";
|
|
6340
6956
|
var displayFields = [
|
|
6341
6957
|
"codigo", "pessoa.nome", "pessoa.cpfCnpj"
|
|
@@ -6349,8 +6965,8 @@ var Transportadora = /** @class */ (function () {
|
|
|
6349
6965
|
};
|
|
6350
6966
|
Transportadora.toDto = function (transportadora, originEntity) {
|
|
6351
6967
|
var dto = __assign({}, transportadora);
|
|
6352
|
-
dto.createdDate = dto.createdDate && moment$
|
|
6353
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
6968
|
+
dto.createdDate = dto.createdDate && moment$k(dto.createdDate).format();
|
|
6969
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$k(dto.lastModifiedDate).format();
|
|
6354
6970
|
delete dto.label;
|
|
6355
6971
|
if (originEntity !== "Pessoa" && dto.pessoa)
|
|
6356
6972
|
dto.pessoa = Pessoa.toDto(dto.pessoa, "Transportadora");
|
|
@@ -6363,7 +6979,7 @@ var Transportadora = /** @class */ (function () {
|
|
|
6363
6979
|
/*{CA:FILE_CONTENTS:START}*/
|
|
6364
6980
|
/*{CA:FILE_CONTENTS:END}*/
|
|
6365
6981
|
|
|
6366
|
-
var moment$
|
|
6982
|
+
var moment$l = _moment;
|
|
6367
6983
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
6368
6984
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
6369
6985
|
var Devolucao = /** @class */ (function () {
|
|
@@ -6373,8 +6989,8 @@ var Devolucao = /** @class */ (function () {
|
|
|
6373
6989
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
6374
6990
|
Devolucao.fromDto = function (devolucaoDto, originEntity) {
|
|
6375
6991
|
var model = __assign({}, devolucaoDto);
|
|
6376
|
-
model.createdDate = model.createdDate && moment$
|
|
6377
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
6992
|
+
model.createdDate = model.createdDate && moment$l(model.createdDate).toDate();
|
|
6993
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$l(model.lastModifiedDate).toDate();
|
|
6378
6994
|
var lookupSeparator = " - ";
|
|
6379
6995
|
var displayFields = [
|
|
6380
6996
|
''
|
|
@@ -6398,8 +7014,8 @@ var Devolucao = /** @class */ (function () {
|
|
|
6398
7014
|
};
|
|
6399
7015
|
Devolucao.toDto = function (devolucao, originEntity) {
|
|
6400
7016
|
var dto = __assign({}, devolucao);
|
|
6401
|
-
dto.createdDate = dto.createdDate && moment$
|
|
6402
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
7017
|
+
dto.createdDate = dto.createdDate && moment$l(dto.createdDate).format();
|
|
7018
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$l(dto.lastModifiedDate).format();
|
|
6403
7019
|
delete dto.label;
|
|
6404
7020
|
if (originEntity !== "Pessoa" && dto.fornecedor)
|
|
6405
7021
|
dto.fornecedor = Pessoa.toDto(dto.fornecedor, "Devolucao");
|
|
@@ -7096,7 +7712,7 @@ var DevolucaoFormComponent = /** @class */ (function () {
|
|
|
7096
7712
|
ActivatedRoute,
|
|
7097
7713
|
DevolucaoChegadaVeiculoOverride,
|
|
7098
7714
|
ConfirmationService,
|
|
7099
|
-
AgendaService,
|
|
7715
|
+
AgendaService$1,
|
|
7100
7716
|
ErpProcessService,
|
|
7101
7717
|
ErpFormConfigService,
|
|
7102
7718
|
HasChangeService])
|
|
@@ -7142,7 +7758,7 @@ var DevolucaoInfoComponent = /** @class */ (function () {
|
|
|
7142
7758
|
|
|
7143
7759
|
/*{CA:PACKAGE_IMPORTS:START}*/
|
|
7144
7760
|
/*{CA:PACKAGE_IMPORTS:END}*/
|
|
7145
|
-
var moment$
|
|
7761
|
+
var moment$m = _moment;
|
|
7146
7762
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
7147
7763
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
7148
7764
|
var Expedicao = /** @class */ (function () {
|
|
@@ -7152,8 +7768,8 @@ var Expedicao = /** @class */ (function () {
|
|
|
7152
7768
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
7153
7769
|
Expedicao.fromDto = function (expedicaoDto, originEntity) {
|
|
7154
7770
|
var model = __assign({}, expedicaoDto);
|
|
7155
|
-
model.createdDate = model.createdDate && moment$
|
|
7156
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
7771
|
+
model.createdDate = model.createdDate && moment$m(model.createdDate).toDate();
|
|
7772
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$m(model.lastModifiedDate).toDate();
|
|
7157
7773
|
var lookupSeparator = " - ";
|
|
7158
7774
|
var displayFields = [
|
|
7159
7775
|
"id",
|
|
@@ -7192,8 +7808,8 @@ var Expedicao = /** @class */ (function () {
|
|
|
7192
7808
|
};
|
|
7193
7809
|
Expedicao.toDto = function (expedicao, originEntity) {
|
|
7194
7810
|
var dto = __assign({}, expedicao);
|
|
7195
|
-
dto.createdDate = dto.createdDate && moment$
|
|
7196
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
7811
|
+
dto.createdDate = dto.createdDate && moment$m(dto.createdDate).format();
|
|
7812
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$m(dto.lastModifiedDate).format();
|
|
7197
7813
|
delete dto.label;
|
|
7198
7814
|
if (originEntity !== "Pessoa" && dto.clienteFaturamento)
|
|
7199
7815
|
dto.clienteFaturamento = Pessoa.toDto(dto.clienteFaturamento, "Recebimento");
|
|
@@ -7210,7 +7826,7 @@ var Expedicao = /** @class */ (function () {
|
|
|
7210
7826
|
return Expedicao;
|
|
7211
7827
|
}());
|
|
7212
7828
|
|
|
7213
|
-
var moment$
|
|
7829
|
+
var moment$n = _moment;
|
|
7214
7830
|
var ExpedicaoFormComponent = /** @class */ (function () {
|
|
7215
7831
|
function ExpedicaoFormComponent(expedicaoService, router, route, messageService, formBuilder, translate, hotkeysService, fieldCustomization, focusService, pessoaService, filialService, transportadoraService, pedidoVendaService, pedidoVendaItemService, agendaService, override, confirmationService, erpProcessService, erpFormConfigService, hasChangeService) {
|
|
7216
7832
|
this.expedicaoService = expedicaoService;
|
|
@@ -7760,11 +8376,11 @@ var ExpedicaoFormComponent = /** @class */ (function () {
|
|
|
7760
8376
|
if (typeof value == "number")
|
|
7761
8377
|
return name + " eq " + value;
|
|
7762
8378
|
else if (type == FieldType.Date)
|
|
7763
|
-
return name + " eq '" + moment$
|
|
8379
|
+
return name + " eq '" + moment$n(value).format("YYYY-MM-DD") + "'";
|
|
7764
8380
|
else if (type == FieldType.Time)
|
|
7765
|
-
return name + " eq '" + moment$
|
|
8381
|
+
return name + " eq '" + moment$n(value).format("HH:mm:ss") + "'";
|
|
7766
8382
|
else if (type == FieldType.DateTime)
|
|
7767
|
-
return name + " eq '" + moment$
|
|
8383
|
+
return name + " eq '" + moment$n(value).format() + "'";
|
|
7768
8384
|
else if (type == FieldType.Enum)
|
|
7769
8385
|
return name + " eq '" + value + "'";
|
|
7770
8386
|
else if (type == FieldType.String)
|
|
@@ -7816,11 +8432,11 @@ var ExpedicaoFormComponent = /** @class */ (function () {
|
|
|
7816
8432
|
if (typeof value == "number")
|
|
7817
8433
|
return name + " eq " + value;
|
|
7818
8434
|
else if (type == FieldType.Date)
|
|
7819
|
-
return name + " eq '" + moment$
|
|
8435
|
+
return name + " eq '" + moment$n(value).format("YYYY-MM-DD") + "'";
|
|
7820
8436
|
else if (type == FieldType.Time)
|
|
7821
|
-
return name + " eq '" + moment$
|
|
8437
|
+
return name + " eq '" + moment$n(value).format("HH:mm:ss") + "'";
|
|
7822
8438
|
else if (type == FieldType.DateTime)
|
|
7823
|
-
return name + " eq '" + moment$
|
|
8439
|
+
return name + " eq '" + moment$n(value).format() + "'";
|
|
7824
8440
|
else if (type == FieldType.Enum)
|
|
7825
8441
|
return name + " eq '" + value + "'";
|
|
7826
8442
|
else if (type == FieldType.String)
|
|
@@ -7947,11 +8563,11 @@ var ExpedicaoFormComponent = /** @class */ (function () {
|
|
|
7947
8563
|
if (typeof value == "number")
|
|
7948
8564
|
return name + " eq " + value;
|
|
7949
8565
|
else if (type == FieldType.Date)
|
|
7950
|
-
return name + " eq '" + moment$
|
|
8566
|
+
return name + " eq '" + moment$n(value).format("YYYY-MM-DD") + "'";
|
|
7951
8567
|
else if (type == FieldType.Time)
|
|
7952
|
-
return name + " eq '" + moment$
|
|
8568
|
+
return name + " eq '" + moment$n(value).format("HH:mm:ss") + "'";
|
|
7953
8569
|
else if (type == FieldType.DateTime)
|
|
7954
|
-
return name + " eq '" + moment$
|
|
8570
|
+
return name + " eq '" + moment$n(value).format() + "'";
|
|
7955
8571
|
else if (type == FieldType.String)
|
|
7956
8572
|
return "containing(lower(" + name + "), lower('" + value.replace(/'/g, "\\'") + "'))";
|
|
7957
8573
|
else
|
|
@@ -8140,11 +8756,11 @@ var ExpedicaoFormComponent = /** @class */ (function () {
|
|
|
8140
8756
|
if (typeof value == "number")
|
|
8141
8757
|
return name + " eq " + value;
|
|
8142
8758
|
else if (type == FieldType.Date)
|
|
8143
|
-
return name + " eq '" + moment$
|
|
8759
|
+
return name + " eq '" + moment$n(value).format("YYYY-MM-DD") + "'";
|
|
8144
8760
|
else if (type == FieldType.Time)
|
|
8145
|
-
return name + " eq '" + moment$
|
|
8761
|
+
return name + " eq '" + moment$n(value).format("HH:mm:ss") + "'";
|
|
8146
8762
|
else if (type == FieldType.DateTime)
|
|
8147
|
-
return name + " eq '" + moment$
|
|
8763
|
+
return name + " eq '" + moment$n(value).format() + "'";
|
|
8148
8764
|
else if (type == FieldType.String)
|
|
8149
8765
|
return "containing(lower(" + name + "), lower('" + value.replace(/'/g, "\\'") + "'))";
|
|
8150
8766
|
else
|
|
@@ -8186,11 +8802,11 @@ var ExpedicaoFormComponent = /** @class */ (function () {
|
|
|
8186
8802
|
if (typeof value == "number")
|
|
8187
8803
|
return name + " eq " + value;
|
|
8188
8804
|
else if (type == FieldType.Date)
|
|
8189
|
-
return name + " eq '" + moment$
|
|
8805
|
+
return name + " eq '" + moment$n(value).format("YYYY-MM-DD") + "'";
|
|
8190
8806
|
else if (type == FieldType.Time)
|
|
8191
|
-
return name + " eq '" + moment$
|
|
8807
|
+
return name + " eq '" + moment$n(value).format("HH:mm:ss") + "'";
|
|
8192
8808
|
else if (type == FieldType.DateTime)
|
|
8193
|
-
return name + " eq '" + moment$
|
|
8809
|
+
return name + " eq '" + moment$n(value).format() + "'";
|
|
8194
8810
|
else if (type == FieldType.Enum)
|
|
8195
8811
|
return name + " eq '" + value + "'";
|
|
8196
8812
|
else if (type == FieldType.String)
|
|
@@ -8677,7 +9293,7 @@ var ExpedicaoFormComponent = /** @class */ (function () {
|
|
|
8677
9293
|
TransportadoraService,
|
|
8678
9294
|
PedidoVendaService,
|
|
8679
9295
|
PedidoVendaItemService,
|
|
8680
|
-
AgendaService,
|
|
9296
|
+
AgendaService$1,
|
|
8681
9297
|
ExpedicaoChegadaVeiculoOverride,
|
|
8682
9298
|
ConfirmationService,
|
|
8683
9299
|
ErpProcessService,
|
|
@@ -8958,7 +9574,7 @@ var ProcessoAvulsoChegadaVeiculoOverride = /** @class */ (function () {
|
|
|
8958
9574
|
ProcessoAvulsoChegadaVeiculoOverride = __decorate([
|
|
8959
9575
|
Injectable(),
|
|
8960
9576
|
__metadata("design:paramtypes", [ChegadaVeiculoOverride,
|
|
8961
|
-
AgendaService,
|
|
9577
|
+
AgendaService$1,
|
|
8962
9578
|
ProcessoAvulsoService])
|
|
8963
9579
|
], ProcessoAvulsoChegadaVeiculoOverride);
|
|
8964
9580
|
return ProcessoAvulsoChegadaVeiculoOverride;
|
|
@@ -9264,7 +9880,7 @@ var ProcessoAvulsoFormComponent = /** @class */ (function () {
|
|
|
9264
9880
|
ProcessoAvulsoChegadaVeiculoOverride,
|
|
9265
9881
|
TranslateService,
|
|
9266
9882
|
ConfirmationService,
|
|
9267
|
-
AgendaService,
|
|
9883
|
+
AgendaService$1,
|
|
9268
9884
|
ErpProcessService,
|
|
9269
9885
|
ErpFormConfigService,
|
|
9270
9886
|
HasChangeService])
|
|
@@ -9307,7 +9923,7 @@ var ProcessoAvulsoInfoComponent = /** @class */ (function () {
|
|
|
9307
9923
|
return ProcessoAvulsoInfoComponent;
|
|
9308
9924
|
}());
|
|
9309
9925
|
|
|
9310
|
-
var moment$
|
|
9926
|
+
var moment$o = _moment;
|
|
9311
9927
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
9312
9928
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
9313
9929
|
var Safra = /** @class */ (function () {
|
|
@@ -9317,10 +9933,10 @@ var Safra = /** @class */ (function () {
|
|
|
9317
9933
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
9318
9934
|
Safra.fromDto = function (safraDto, originEntity) {
|
|
9319
9935
|
var model = __assign({}, safraDto);
|
|
9320
|
-
model.competenciaInicial = model.competenciaInicial && moment$
|
|
9321
|
-
model.competenciaFinal = model.competenciaFinal && moment$
|
|
9322
|
-
model.createdDate = model.createdDate && moment$
|
|
9323
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
9936
|
+
model.competenciaInicial = model.competenciaInicial && moment$o(model.competenciaInicial).toDate();
|
|
9937
|
+
model.competenciaFinal = model.competenciaFinal && moment$o(model.competenciaFinal).toDate();
|
|
9938
|
+
model.createdDate = model.createdDate && moment$o(model.createdDate).toDate();
|
|
9939
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$o(model.lastModifiedDate).toDate();
|
|
9324
9940
|
var lookupSeparator = " - ";
|
|
9325
9941
|
var displayFields = [
|
|
9326
9942
|
"codigo",
|
|
@@ -9333,10 +9949,10 @@ var Safra = /** @class */ (function () {
|
|
|
9333
9949
|
};
|
|
9334
9950
|
Safra.toDto = function (safra, originEntity) {
|
|
9335
9951
|
var dto = __assign({}, safra);
|
|
9336
|
-
dto.competenciaInicial = dto.competenciaInicial && moment$
|
|
9337
|
-
dto.competenciaFinal = dto.competenciaFinal && moment$
|
|
9338
|
-
dto.createdDate = dto.createdDate && moment$
|
|
9339
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
9952
|
+
dto.competenciaInicial = dto.competenciaInicial && moment$o(dto.competenciaInicial).format("YYYY-MM-DD");
|
|
9953
|
+
dto.competenciaFinal = dto.competenciaFinal && moment$o(dto.competenciaFinal).format("YYYY-MM-DD");
|
|
9954
|
+
dto.createdDate = dto.createdDate && moment$o(dto.createdDate).format();
|
|
9955
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$o(dto.lastModifiedDate).format();
|
|
9340
9956
|
delete dto.label;
|
|
9341
9957
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
9342
9958
|
dto.empresa = Empresa.toDto(dto.empresa, "Safra");
|
|
@@ -9349,7 +9965,7 @@ var Safra = /** @class */ (function () {
|
|
|
9349
9965
|
|
|
9350
9966
|
/*{CA:PACKAGE_IMPORTS:START}*/
|
|
9351
9967
|
/*{CA:PACKAGE_IMPORTS:END}*/
|
|
9352
|
-
var moment$
|
|
9968
|
+
var moment$p = _moment;
|
|
9353
9969
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
9354
9970
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
9355
9971
|
var RecebimentoOrdemCompra = /** @class */ (function () {
|
|
@@ -9359,8 +9975,8 @@ var RecebimentoOrdemCompra = /** @class */ (function () {
|
|
|
9359
9975
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
9360
9976
|
RecebimentoOrdemCompra.fromDto = function (recebimentoOrdemCompraDto, originEntity) {
|
|
9361
9977
|
var model = __assign({}, recebimentoOrdemCompraDto);
|
|
9362
|
-
model.createdDate = model.createdDate && moment$
|
|
9363
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
9978
|
+
model.createdDate = model.createdDate && moment$p(model.createdDate).toDate();
|
|
9979
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$p(model.lastModifiedDate).toDate();
|
|
9364
9980
|
var lookupSeparator = " - ";
|
|
9365
9981
|
var displayFields = [
|
|
9366
9982
|
''
|
|
@@ -9389,8 +10005,8 @@ var RecebimentoOrdemCompra = /** @class */ (function () {
|
|
|
9389
10005
|
};
|
|
9390
10006
|
RecebimentoOrdemCompra.toDto = function (recebimentoOrdemCompra, originEntity) {
|
|
9391
10007
|
var dto = __assign({}, recebimentoOrdemCompra);
|
|
9392
|
-
dto.createdDate = dto.createdDate && moment$
|
|
9393
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
10008
|
+
dto.createdDate = dto.createdDate && moment$p(dto.createdDate).format();
|
|
10009
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$p(dto.lastModifiedDate).format();
|
|
9394
10010
|
delete dto.label;
|
|
9395
10011
|
if (originEntity !== "Agenda" && dto.agenda)
|
|
9396
10012
|
dto.agenda = Agenda.toDto(dto.agenda, "RecebimentoOrdemCompra");
|
|
@@ -9453,7 +10069,7 @@ var RecebimentoOrdemCompraChegadaVeiculoOverride = /** @class */ (function () {
|
|
|
9453
10069
|
RecebimentoOrdemCompraChegadaVeiculoOverride = __decorate([
|
|
9454
10070
|
Injectable(),
|
|
9455
10071
|
__metadata("design:paramtypes", [ChegadaVeiculoOverride,
|
|
9456
|
-
AgendaService,
|
|
10072
|
+
AgendaService$1,
|
|
9457
10073
|
RecebimentoOrdemCompraService])
|
|
9458
10074
|
], RecebimentoOrdemCompraChegadaVeiculoOverride);
|
|
9459
10075
|
return RecebimentoOrdemCompraChegadaVeiculoOverride;
|
|
@@ -10634,7 +11250,7 @@ var RecebimentoOrdemCompraFormComponent = /** @class */ (function () {
|
|
|
10634
11250
|
NotaValidatorService,
|
|
10635
11251
|
ConfirmationService,
|
|
10636
11252
|
DialogService,
|
|
10637
|
-
AgendaService,
|
|
11253
|
+
AgendaService$1,
|
|
10638
11254
|
ErpProcessService,
|
|
10639
11255
|
ErpFormConfigService,
|
|
10640
11256
|
VerificaNotafiscal,
|
|
@@ -10681,7 +11297,7 @@ var RecebimentoOrdemCompraInfoComponent = /** @class */ (function () {
|
|
|
10681
11297
|
return RecebimentoOrdemCompraInfoComponent;
|
|
10682
11298
|
}());
|
|
10683
11299
|
|
|
10684
|
-
var moment$
|
|
11300
|
+
var moment$q = _moment;
|
|
10685
11301
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
10686
11302
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
10687
11303
|
var ContratoCompra = /** @class */ (function () {
|
|
@@ -10691,11 +11307,11 @@ var ContratoCompra = /** @class */ (function () {
|
|
|
10691
11307
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
10692
11308
|
ContratoCompra.fromDto = function (contratoCompraDto, originEntity) {
|
|
10693
11309
|
var model = __assign({}, contratoCompraDto);
|
|
10694
|
-
model.dataEmissao = model.dataEmissao && moment$
|
|
10695
|
-
model.dataInicioVigencia = model.dataInicioVigencia && moment$
|
|
10696
|
-
model.dataFimVigencia = model.dataFimVigencia && moment$
|
|
10697
|
-
model.createdDate = model.createdDate && moment$
|
|
10698
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
11310
|
+
model.dataEmissao = model.dataEmissao && moment$q(model.dataEmissao).toDate();
|
|
11311
|
+
model.dataInicioVigencia = model.dataInicioVigencia && moment$q(model.dataInicioVigencia).toDate();
|
|
11312
|
+
model.dataFimVigencia = model.dataFimVigencia && moment$q(model.dataFimVigencia).toDate();
|
|
11313
|
+
model.createdDate = model.createdDate && moment$q(model.createdDate).toDate();
|
|
11314
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$q(model.lastModifiedDate).toDate();
|
|
10699
11315
|
model.label = "N\u00FAmero: " + model.numero + ", Filial: " + model.filial.codigo;
|
|
10700
11316
|
if (originEntity !== "Empresa" && model.empresa)
|
|
10701
11317
|
model.empresa = Empresa.fromDto(model.empresa, "ContratoCompra");
|
|
@@ -10711,11 +11327,11 @@ var ContratoCompra = /** @class */ (function () {
|
|
|
10711
11327
|
};
|
|
10712
11328
|
ContratoCompra.toDto = function (contratoCompra, originEntity) {
|
|
10713
11329
|
var dto = __assign({}, contratoCompra);
|
|
10714
|
-
dto.dataEmissao = dto.dataEmissao && moment$
|
|
10715
|
-
dto.dataInicioVigencia = dto.dataInicioVigencia && moment$
|
|
10716
|
-
dto.dataFimVigencia = dto.dataFimVigencia && moment$
|
|
10717
|
-
dto.createdDate = dto.createdDate && moment$
|
|
10718
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
11330
|
+
dto.dataEmissao = dto.dataEmissao && moment$q(dto.dataEmissao).format("YYYY-MM-DD");
|
|
11331
|
+
dto.dataInicioVigencia = dto.dataInicioVigencia && moment$q(dto.dataInicioVigencia).format("YYYY-MM-DD");
|
|
11332
|
+
dto.dataFimVigencia = dto.dataFimVigencia && moment$q(dto.dataFimVigencia).format("YYYY-MM-DD");
|
|
11333
|
+
dto.createdDate = dto.createdDate && moment$q(dto.createdDate).format();
|
|
11334
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$q(dto.lastModifiedDate).format();
|
|
10719
11335
|
delete dto.label;
|
|
10720
11336
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
10721
11337
|
dto.empresa = Empresa.toDto(dto.empresa, "ContratoCompra");
|
|
@@ -10736,7 +11352,7 @@ var ContratoCompra = /** @class */ (function () {
|
|
|
10736
11352
|
/*{CA:FILE_CONTENTS:START}*/
|
|
10737
11353
|
/*{CA:FILE_CONTENTS:END}*/
|
|
10738
11354
|
|
|
10739
|
-
var moment$
|
|
11355
|
+
var moment$r = _moment;
|
|
10740
11356
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
10741
11357
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
10742
11358
|
var ContratoCompraItem = /** @class */ (function () {
|
|
@@ -10747,9 +11363,9 @@ var ContratoCompraItem = /** @class */ (function () {
|
|
|
10747
11363
|
ContratoCompraItem.fromDto = function (contratoCompraItemDto, originEntity) {
|
|
10748
11364
|
var model = __assign({}, contratoCompraItemDto);
|
|
10749
11365
|
model.sku = model.sku || {};
|
|
10750
|
-
model.dataCompetencia = model.dataCompetencia && moment$
|
|
10751
|
-
model.createdDate = model.createdDate && moment$
|
|
10752
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
11366
|
+
model.dataCompetencia = model.dataCompetencia && moment$r(model.dataCompetencia).toDate();
|
|
11367
|
+
model.createdDate = model.createdDate && moment$r(model.createdDate).toDate();
|
|
11368
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$r(model.lastModifiedDate).toDate();
|
|
10753
11369
|
model.label = model.sequencia + " - " + model.sku.descricao + " - " + model.sku.codigo;
|
|
10754
11370
|
if (originEntity !== "ContratoCompra" && model.contrato)
|
|
10755
11371
|
model.contrato = ContratoCompra.fromDto(model.contrato, "ContratoCompraItem");
|
|
@@ -10759,9 +11375,9 @@ var ContratoCompraItem = /** @class */ (function () {
|
|
|
10759
11375
|
};
|
|
10760
11376
|
ContratoCompraItem.toDto = function (contratoCompraItem, originEntity) {
|
|
10761
11377
|
var dto = __assign({}, contratoCompraItem);
|
|
10762
|
-
dto.dataCompetencia = dto.dataCompetencia && moment$
|
|
10763
|
-
dto.createdDate = dto.createdDate && moment$
|
|
10764
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
11378
|
+
dto.dataCompetencia = dto.dataCompetencia && moment$r(dto.dataCompetencia).format("YYYY-MM-DD");
|
|
11379
|
+
dto.createdDate = dto.createdDate && moment$r(dto.createdDate).format();
|
|
11380
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$r(dto.lastModifiedDate).format();
|
|
10765
11381
|
delete dto.label;
|
|
10766
11382
|
if (originEntity !== "ContratoCompra" && dto.contrato)
|
|
10767
11383
|
dto.contrato = ContratoCompra.toDto(dto.contrato, "ContratoCompraItem");
|
|
@@ -10774,7 +11390,7 @@ var ContratoCompraItem = /** @class */ (function () {
|
|
|
10774
11390
|
/*{CA:FILE_CONTENTS:START}*/
|
|
10775
11391
|
/*{CA:FILE_CONTENTS:END}*/
|
|
10776
11392
|
|
|
10777
|
-
var moment$
|
|
11393
|
+
var moment$s = _moment;
|
|
10778
11394
|
var ContratoFormComponent = /** @class */ (function () {
|
|
10779
11395
|
function ContratoFormComponent(dialogRef, dialogConfig, contratoCompraService, contratoCompraItemService, translate, fb, route) {
|
|
10780
11396
|
this.dialogRef = dialogRef;
|
|
@@ -10868,7 +11484,7 @@ var ContratoFormComponent = /** @class */ (function () {
|
|
|
10868
11484
|
if (filial && filial.empresa && filial.empresa.id) {
|
|
10869
11485
|
filter.empresaId = filial.empresa.id;
|
|
10870
11486
|
}
|
|
10871
|
-
filter.dataEmissao = filter.dataEmissao && moment$
|
|
11487
|
+
filter.dataEmissao = filter.dataEmissao && moment$s(filter.dataEmissao).format("YYYY-MM-DD");
|
|
10872
11488
|
var sort = (multiSortMeta || []).length ? { field: multiSortMeta[0].field, order: multiSortMeta[0].order === 1 ? 'Asc' : 'Desc' } : { field: 'numero', order: 'Asc' };
|
|
10873
11489
|
this.contratoCompraService
|
|
10874
11490
|
.listContratosCompra(__assign({}, filter, { pessoaId: (this.fornecedor || { id: undefined }).id, produtoId: (this.produto || { id: undefined }).id, filialId: (filial || { id: undefined }).id, tipoAgendamentoId: this.agenda && this.agenda.tipoAgendamento ? this.agenda.tipoAgendamento.id : null, contratosSelecionados: this.contratos, pagina: {
|
|
@@ -11097,14 +11713,14 @@ var Transgenia = /** @class */ (function () {
|
|
|
11097
11713
|
return Transgenia;
|
|
11098
11714
|
}());
|
|
11099
11715
|
|
|
11100
|
-
var moment$
|
|
11716
|
+
var moment$t = _moment;
|
|
11101
11717
|
var RecebimentoContrato = /** @class */ (function () {
|
|
11102
11718
|
function RecebimentoContrato() {
|
|
11103
11719
|
}
|
|
11104
11720
|
RecebimentoContrato.fromDto = function (recebimentoDto, originEntity) {
|
|
11105
11721
|
var model = __assign({}, recebimentoDto);
|
|
11106
|
-
model.createdDate = model.createdDate && moment$
|
|
11107
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
11722
|
+
model.createdDate = model.createdDate && moment$t(model.createdDate).toDate();
|
|
11723
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$t(model.lastModifiedDate).toDate();
|
|
11108
11724
|
var lookupSeparator = " - ";
|
|
11109
11725
|
var displayFields = [
|
|
11110
11726
|
"id",
|
|
@@ -11153,8 +11769,8 @@ var RecebimentoContrato = /** @class */ (function () {
|
|
|
11153
11769
|
};
|
|
11154
11770
|
RecebimentoContrato.toDto = function (recebimento, originEntity) {
|
|
11155
11771
|
var dto = __assign({}, recebimento);
|
|
11156
|
-
dto.createdDate = dto.createdDate && moment$
|
|
11157
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
11772
|
+
dto.createdDate = dto.createdDate && moment$t(dto.createdDate).format();
|
|
11773
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$t(dto.lastModifiedDate).format();
|
|
11158
11774
|
delete dto.label;
|
|
11159
11775
|
if (originEntity !== "Pessoa" && dto.fornecedor)
|
|
11160
11776
|
dto.fornecedor = Pessoa.toDto(dto.fornecedor, "Recebimento");
|
|
@@ -11188,7 +11804,7 @@ var Situacao;
|
|
|
11188
11804
|
Situacao["ATIVO"] = "ATIVO";
|
|
11189
11805
|
})(Situacao || (Situacao = {}));
|
|
11190
11806
|
|
|
11191
|
-
var moment$
|
|
11807
|
+
var moment$u = _moment;
|
|
11192
11808
|
var RecebimentoFormComponent = /** @class */ (function () {
|
|
11193
11809
|
function RecebimentoFormComponent(recebimentoService, router, route, messageService, confirmationService, formBuilder, translate, hotkeysService, fieldCustomization, focusService, filialService, transportadoraService, pessoaEnderecoService, contratoCompraService, pessoaService, produtoService, derivacaoService, recebimentoChegadaOverride, notaValidatorService, transgeniaService, dialogService, agendaService, erpProcessService, erpFormConfigService, verificaNotaFiscal, hasChangeService, buildFormField) {
|
|
11194
11810
|
var _this = this;
|
|
@@ -11870,11 +12486,11 @@ var RecebimentoFormComponent = /** @class */ (function () {
|
|
|
11870
12486
|
if (typeof value == "number")
|
|
11871
12487
|
return name + " eq " + value;
|
|
11872
12488
|
else if (type == FieldType.Date)
|
|
11873
|
-
return name + " eq '" + moment$
|
|
12489
|
+
return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
|
|
11874
12490
|
else if (type == FieldType.Time)
|
|
11875
|
-
return name + " eq '" + moment$
|
|
12491
|
+
return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
|
|
11876
12492
|
else if (type == FieldType.DateTime)
|
|
11877
|
-
return name + " eq '" + moment$
|
|
12493
|
+
return name + " eq '" + moment$u(value).format() + "'";
|
|
11878
12494
|
else if (type == FieldType.String)
|
|
11879
12495
|
return "containing(lower(" + name + "), lower('" + value.replace(/'/g, "\\'") + "'))";
|
|
11880
12496
|
else
|
|
@@ -11913,11 +12529,11 @@ var RecebimentoFormComponent = /** @class */ (function () {
|
|
|
11913
12529
|
if (typeof value == "number")
|
|
11914
12530
|
return name + " eq " + value;
|
|
11915
12531
|
else if (type == FieldType.Date)
|
|
11916
|
-
return name + " eq '" + moment$
|
|
12532
|
+
return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
|
|
11917
12533
|
else if (type == FieldType.Time)
|
|
11918
|
-
return name + " eq '" + moment$
|
|
12534
|
+
return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
|
|
11919
12535
|
else if (type == FieldType.DateTime)
|
|
11920
|
-
return name + " eq '" + moment$
|
|
12536
|
+
return name + " eq '" + moment$u(value).format() + "'";
|
|
11921
12537
|
else if (type == FieldType.Enum)
|
|
11922
12538
|
return name + " eq '" + value + "'";
|
|
11923
12539
|
else if (type == FieldType.String)
|
|
@@ -11959,11 +12575,11 @@ var RecebimentoFormComponent = /** @class */ (function () {
|
|
|
11959
12575
|
if (typeof value == "number")
|
|
11960
12576
|
return name + " eq " + value;
|
|
11961
12577
|
else if (type == FieldType.Date)
|
|
11962
|
-
return name + " eq '" + moment$
|
|
12578
|
+
return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
|
|
11963
12579
|
else if (type == FieldType.Time)
|
|
11964
|
-
return name + " eq '" + moment$
|
|
12580
|
+
return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
|
|
11965
12581
|
else if (type == FieldType.DateTime)
|
|
11966
|
-
return name + " eq '" + moment$
|
|
12582
|
+
return name + " eq '" + moment$u(value).format() + "'";
|
|
11967
12583
|
else if (type == FieldType.String)
|
|
11968
12584
|
return "containing(lower(" + name + "), lower('" + value.replace(/'/g, "\\'") + "'))";
|
|
11969
12585
|
else
|
|
@@ -12003,11 +12619,11 @@ var RecebimentoFormComponent = /** @class */ (function () {
|
|
|
12003
12619
|
if (typeof value == "number")
|
|
12004
12620
|
return name + " eq " + value;
|
|
12005
12621
|
else if (type == FieldType.Date)
|
|
12006
|
-
return name + " eq '" + moment$
|
|
12622
|
+
return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
|
|
12007
12623
|
else if (type == FieldType.Time)
|
|
12008
|
-
return name + " eq '" + moment$
|
|
12624
|
+
return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
|
|
12009
12625
|
else if (type == FieldType.DateTime)
|
|
12010
|
-
return name + " eq '" + moment$
|
|
12626
|
+
return name + " eq '" + moment$u(value).format() + "'";
|
|
12011
12627
|
else if (type == FieldType.Enum)
|
|
12012
12628
|
return name + " eq '" + value + "'";
|
|
12013
12629
|
else if (type == FieldType.String)
|
|
@@ -12104,11 +12720,11 @@ var RecebimentoFormComponent = /** @class */ (function () {
|
|
|
12104
12720
|
if (typeof value == "number")
|
|
12105
12721
|
return name + " eq " + value;
|
|
12106
12722
|
else if (type == FieldType.Date)
|
|
12107
|
-
return name + " eq '" + moment$
|
|
12723
|
+
return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
|
|
12108
12724
|
else if (type == FieldType.Time)
|
|
12109
|
-
return name + " eq '" + moment$
|
|
12725
|
+
return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
|
|
12110
12726
|
else if (type == FieldType.DateTime)
|
|
12111
|
-
return name + " eq '" + moment$
|
|
12727
|
+
return name + " eq '" + moment$u(value).format() + "'";
|
|
12112
12728
|
else if (type == FieldType.String)
|
|
12113
12729
|
return "containing(lower(" + name + "), lower('" + value.replace(/'/g, "\\'") + "'))";
|
|
12114
12730
|
else
|
|
@@ -12146,11 +12762,11 @@ var RecebimentoFormComponent = /** @class */ (function () {
|
|
|
12146
12762
|
if (typeof value == "number")
|
|
12147
12763
|
return name + " eq " + value;
|
|
12148
12764
|
else if (type == FieldType.Date)
|
|
12149
|
-
return name + " eq '" + moment$
|
|
12765
|
+
return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
|
|
12150
12766
|
else if (type == FieldType.Time)
|
|
12151
|
-
return name + " eq '" + moment$
|
|
12767
|
+
return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
|
|
12152
12768
|
else if (type == FieldType.DateTime)
|
|
12153
|
-
return name + " eq '" + moment$
|
|
12769
|
+
return name + " eq '" + moment$u(value).format() + "'";
|
|
12154
12770
|
else if (type == FieldType.Enum)
|
|
12155
12771
|
return name + " eq '" + value + "'";
|
|
12156
12772
|
else if (type == FieldType.String)
|
|
@@ -12199,11 +12815,11 @@ var RecebimentoFormComponent = /** @class */ (function () {
|
|
|
12199
12815
|
if (typeof value == "number")
|
|
12200
12816
|
return name + " eq " + value;
|
|
12201
12817
|
else if (type == FieldType.Date)
|
|
12202
|
-
return name + " eq '" + moment$
|
|
12818
|
+
return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
|
|
12203
12819
|
else if (type == FieldType.Time)
|
|
12204
|
-
return name + " eq '" + moment$
|
|
12820
|
+
return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
|
|
12205
12821
|
else if (type == FieldType.DateTime)
|
|
12206
|
-
return name + " eq '" + moment$
|
|
12822
|
+
return name + " eq '" + moment$u(value).format() + "'";
|
|
12207
12823
|
else if (type == FieldType.Enum)
|
|
12208
12824
|
return name + " eq '" + value + "'";
|
|
12209
12825
|
else if (type == FieldType.String)
|
|
@@ -12981,7 +13597,7 @@ var RecebimentoFormComponent = /** @class */ (function () {
|
|
|
12981
13597
|
NotaValidatorService,
|
|
12982
13598
|
TransgeniaService,
|
|
12983
13599
|
DialogService,
|
|
12984
|
-
AgendaService,
|
|
13600
|
+
AgendaService$1,
|
|
12985
13601
|
ErpProcessService,
|
|
12986
13602
|
ErpFormConfigService,
|
|
12987
13603
|
VerificaNotafiscal,
|
|
@@ -13145,5 +13761,5 @@ var DockModule = /** @class */ (function () {
|
|
|
13145
13761
|
return DockModule;
|
|
13146
13762
|
}());
|
|
13147
13763
|
|
|
13148
|
-
export { AgendaModule, 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, HasChangeService, 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, highlightLanguages, Service as ɵa, CustomStompConfig as ɵb,
|
|
13764
|
+
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, EntityService$2 as ɵba, EntityService$1 as ɵbb, InsertKeyModule as ɵbc, InsertKeyComponent as ɵbd, IntegrationService as ɵbe, RecebimentoFormComponent as ɵbf, DerivacaoService as ɵbg, NotaValidatorService as ɵbh, TransgeniaService as ɵbi, VerificaNotafiscal as ɵbj, BuildFormField as ɵbk, ExpedicaoFormComponent as ɵbl, ExpedicaoInfoComponent as ɵbm, RecebimentoInfoComponent as ɵbn, DevolucaoFormComponent as ɵbo, DevolucaoService as ɵbp, DevolucaoChegadaVeiculoOverride as ɵbq, RecebimentoOrdemCompraFormComponent as ɵbr, OrdemCompraService as ɵbs, RecebimentoOrdemCompraService as ɵbt, RecebimentoOrdemCompraChegadaVeiculoOverride as ɵbu, RecebimentoOrdemCompraInfoComponent as ɵbv, DevolucaoInfoComponent as ɵbw, ContratoFormComponent as ɵbx, OrdemCompraFormComponent as ɵby, ProcessoAvulsoFormComponent as ɵbz, ViewImageComponent as ɵc, ProcessoAvulsoService as ɵca, ProcessoAvulsoChegadaVeiculoOverride as ɵcb, ProcessoAvulsoInfoComponent as ɵcc, LogIntegracaoDescritor as ɵcd, LogIntegracaoComponent as ɵce, LogIntegracaoService as ɵcf, DerivacaoModule as ɵcg, DevolucaoModule as ɵch, OrdemCompraModule as ɵci, RecebimentoOrdemCompraModule as ɵcj, TransgeniaModule as ɵck, ProcessoAvulsoModule as ɵcl, LogIntegracaoModule as ɵcm, NotaFormModule as ɵcn, NotaFormComponent as ɵco, 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, DocumentGridModule as ɵu, DocumentGridComponent as ɵv, DocumentService as ɵw, RegisterDocumentModule as ɵx, RegisterDocumentComponent as ɵy, AgendaService as ɵz };
|
|
13149
13765
|
//# sourceMappingURL=seniorsistemas-yms-integration.js.map
|