@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
|
@@ -8,18 +8,18 @@
|
|
|
8
8
|
xmlx = xmlx && Object.prototype.hasOwnProperty.call(xmlx, 'default') ? xmlx['default'] : xmlx;
|
|
9
9
|
|
|
10
10
|
/*! *****************************************************************************
|
|
11
|
-
Copyright (c) Microsoft Corporation.
|
|
11
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
12
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
13
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
14
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
12
15
|
|
|
13
|
-
|
|
14
|
-
|
|
16
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
17
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
18
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
19
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
15
20
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
19
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
20
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
21
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
22
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
21
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
22
|
+
and limitations under the License.
|
|
23
23
|
***************************************************************************** */
|
|
24
24
|
/* global Reflect, Promise */
|
|
25
25
|
|
|
@@ -63,15 +63,14 @@
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
function __values(o) {
|
|
66
|
-
var
|
|
66
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
|
|
67
67
|
if (m) return m.call(o);
|
|
68
|
-
|
|
68
|
+
return {
|
|
69
69
|
next: function () {
|
|
70
70
|
if (o && i >= o.length) o = void 0;
|
|
71
71
|
return { value: o && o[i++], done: !o };
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
75
74
|
}
|
|
76
75
|
|
|
77
76
|
function __read(o, n) {
|
|
@@ -3055,6 +3054,282 @@
|
|
|
3055
3054
|
return VisitorListModule;
|
|
3056
3055
|
}());
|
|
3057
3056
|
|
|
3057
|
+
var INFORMACAOES_ADICIONAIS_HEADER = "Informações adicionais";
|
|
3058
|
+
var FormWmsDescritor = /** @class */ (function () {
|
|
3059
|
+
function FormWmsDescritor() {
|
|
3060
|
+
}
|
|
3061
|
+
FormWmsDescritor = __decorate([
|
|
3062
|
+
ymsRoutines.ChegadaVeiculo({
|
|
3063
|
+
header: INFORMACAOES_ADICIONAIS_HEADER,
|
|
3064
|
+
name: 'yms.integracao.wms',
|
|
3065
|
+
icon: 'fa fa-plus'
|
|
3066
|
+
})
|
|
3067
|
+
], FormWmsDescritor);
|
|
3068
|
+
return FormWmsDescritor;
|
|
3069
|
+
}());
|
|
3070
|
+
var FormWmsComponent = /** @class */ (function (_super) {
|
|
3071
|
+
__extends(FormWmsComponent, _super);
|
|
3072
|
+
function FormWmsComponent(integrationCallback) {
|
|
3073
|
+
var _this = _super.call(this) || this;
|
|
3074
|
+
_this.integrationCallback = integrationCallback;
|
|
3075
|
+
_this.save = [];
|
|
3076
|
+
_this.header = INFORMACAOES_ADICIONAIS_HEADER;
|
|
3077
|
+
_this.loading = false;
|
|
3078
|
+
_this.unsubscribe$ = new rxjs.Subject();
|
|
3079
|
+
_this._integrationCallback = integrationCallback;
|
|
3080
|
+
return _this;
|
|
3081
|
+
}
|
|
3082
|
+
FormWmsComponent.prototype.ngOnInit = function () {
|
|
3083
|
+
var _this = this;
|
|
3084
|
+
this._integrationCallback.onAgendamentoSaved()
|
|
3085
|
+
.pipe(operators.takeUntil(this.unsubscribe$), operators.mergeMap(function (agenda) {
|
|
3086
|
+
_this.agenda = agenda;
|
|
3087
|
+
return rxjs.empty();
|
|
3088
|
+
}))
|
|
3089
|
+
.subscribe();
|
|
3090
|
+
};
|
|
3091
|
+
FormWmsComponent.prototype.ngOnDestroy = function () {
|
|
3092
|
+
this.unsubscribe$.next();
|
|
3093
|
+
this.unsubscribe$.complete();
|
|
3094
|
+
};
|
|
3095
|
+
__decorate([
|
|
3096
|
+
core.Output(),
|
|
3097
|
+
__metadata("design:type", Agenda)
|
|
3098
|
+
], FormWmsComponent.prototype, "agenda", void 0);
|
|
3099
|
+
__decorate([
|
|
3100
|
+
core.Input(),
|
|
3101
|
+
__metadata("design:type", Array)
|
|
3102
|
+
], FormWmsComponent.prototype, "save", void 0);
|
|
3103
|
+
FormWmsComponent = __decorate([
|
|
3104
|
+
core.Component({
|
|
3105
|
+
template: "\n <div *ngIf=\"agenda\">\n <document-grid [agenda]=\"agenda\"></document-grid>\n </div>\n "
|
|
3106
|
+
}),
|
|
3107
|
+
__metadata("design:paramtypes", [ymsRoutines.IntegrationEventsCallback])
|
|
3108
|
+
], FormWmsComponent);
|
|
3109
|
+
return FormWmsComponent;
|
|
3110
|
+
}(FormWmsDescritor));
|
|
3111
|
+
|
|
3112
|
+
var DocumentService = /** @class */ (function (_super) {
|
|
3113
|
+
__extends(DocumentService, _super);
|
|
3114
|
+
function DocumentService(http, messageService) {
|
|
3115
|
+
var _this = _super.call(this, http, messageService, 'yms_int/wms/entities/document', '') || this;
|
|
3116
|
+
_this.http = http;
|
|
3117
|
+
_this.messageService = messageService;
|
|
3118
|
+
return _this;
|
|
3119
|
+
}
|
|
3120
|
+
DocumentService.prototype.findDocuments = function (input) {
|
|
3121
|
+
return this.http.post('yms_int/wms/queries/findDocuments', input);
|
|
3122
|
+
};
|
|
3123
|
+
DocumentService = __decorate([
|
|
3124
|
+
core.Injectable(),
|
|
3125
|
+
__metadata("design:paramtypes", [http.HttpClient, api.MessageService])
|
|
3126
|
+
], DocumentService);
|
|
3127
|
+
return DocumentService;
|
|
3128
|
+
}(EntityService));
|
|
3129
|
+
|
|
3130
|
+
var DocumentGridComponent = /** @class */ (function () {
|
|
3131
|
+
function DocumentGridComponent(translate, documentService, messageService) {
|
|
3132
|
+
this.translate = translate;
|
|
3133
|
+
this.documentService = documentService;
|
|
3134
|
+
this.messageService = messageService;
|
|
3135
|
+
this.viewDocument = new core.EventEmitter();
|
|
3136
|
+
this.gridData = [];
|
|
3137
|
+
this.ngUnsubscribe = new rxjs.Subject();
|
|
3138
|
+
}
|
|
3139
|
+
DocumentGridComponent.prototype.ngOnInit = function () {
|
|
3140
|
+
this.gridColumns = this.getGridColumns();
|
|
3141
|
+
this.listDocuments();
|
|
3142
|
+
};
|
|
3143
|
+
DocumentGridComponent.prototype.onChangeDocument = function (document) {
|
|
3144
|
+
this.gridData.push(document);
|
|
3145
|
+
this.disabled = false;
|
|
3146
|
+
};
|
|
3147
|
+
DocumentGridComponent.prototype.getActions = function () {
|
|
3148
|
+
var _this = this;
|
|
3149
|
+
return [
|
|
3150
|
+
{
|
|
3151
|
+
label: this.translate.instant("yms.int.wms_add_document_invoice_key"),
|
|
3152
|
+
command: function () {
|
|
3153
|
+
_this.visibleInvoiceKey = true;
|
|
3154
|
+
},
|
|
3155
|
+
icon: "fa fa-search"
|
|
3156
|
+
},
|
|
3157
|
+
{
|
|
3158
|
+
label: this.translate.instant("yms.int.wms_add_document_register"),
|
|
3159
|
+
command: function () {
|
|
3160
|
+
_this.edit = true;
|
|
3161
|
+
_this.visibleDocumentRegister = true;
|
|
3162
|
+
},
|
|
3163
|
+
icon: "fas fa-pen-square"
|
|
3164
|
+
}
|
|
3165
|
+
];
|
|
3166
|
+
};
|
|
3167
|
+
DocumentGridComponent.prototype.getProp = function (obj, path) {
|
|
3168
|
+
return path.split(".").reduce(function (result, prop) { return (result[prop] === undefined ? "" : result[prop]); }, obj);
|
|
3169
|
+
};
|
|
3170
|
+
DocumentGridComponent.prototype.view = function (selection) {
|
|
3171
|
+
this.viewDocument.emit(selection);
|
|
3172
|
+
this.visibleDocumentRegister = true;
|
|
3173
|
+
this.edit = false;
|
|
3174
|
+
};
|
|
3175
|
+
DocumentGridComponent.prototype.save = function () {
|
|
3176
|
+
var _this = this;
|
|
3177
|
+
if (this.gridData.length > 0) {
|
|
3178
|
+
this.gridData.forEach(function (data) {
|
|
3179
|
+
if (!data.id) {
|
|
3180
|
+
if (!data.schedulingId) {
|
|
3181
|
+
data.schedulingId = _this.agenda.id;
|
|
3182
|
+
}
|
|
3183
|
+
_this.documentService.insert(data).subscribe(function () {
|
|
3184
|
+
_this.message("success", "saved_message_title", "saved_message_content");
|
|
3185
|
+
});
|
|
3186
|
+
_this.disabled = true;
|
|
3187
|
+
}
|
|
3188
|
+
});
|
|
3189
|
+
}
|
|
3190
|
+
};
|
|
3191
|
+
DocumentGridComponent.prototype.onDelete = function (selection) {
|
|
3192
|
+
var _this = this;
|
|
3193
|
+
if (!selection.id) {
|
|
3194
|
+
return;
|
|
3195
|
+
}
|
|
3196
|
+
this.documentService.delete(selection.id)
|
|
3197
|
+
.pipe(operators.takeUntil(this.ngUnsubscribe), operators.finalize(function () {
|
|
3198
|
+
_this.gridData = [];
|
|
3199
|
+
_this.listDocuments();
|
|
3200
|
+
})).
|
|
3201
|
+
subscribe(function () { return _this.message("success", "deleted_message_title", "deleted_message_content"); });
|
|
3202
|
+
};
|
|
3203
|
+
DocumentGridComponent.prototype.listDocuments = function () {
|
|
3204
|
+
var _this = this;
|
|
3205
|
+
this.documentService.list({
|
|
3206
|
+
filterQuery: "schedulingId eq '" + this.agenda.id + "'"
|
|
3207
|
+
})
|
|
3208
|
+
.subscribe(function (contents) {
|
|
3209
|
+
if (contents.totalElements > 0) {
|
|
3210
|
+
_this.gridData = contents.contents;
|
|
3211
|
+
_this.documentTotalRecords = contents.totalElements;
|
|
3212
|
+
}
|
|
3213
|
+
else {
|
|
3214
|
+
_this.disabled = true;
|
|
3215
|
+
_this.documentTotalRecords = _this.gridData.length;
|
|
3216
|
+
}
|
|
3217
|
+
_this.loading = false;
|
|
3218
|
+
});
|
|
3219
|
+
};
|
|
3220
|
+
DocumentGridComponent.prototype.getGridColumns = function () {
|
|
3221
|
+
return [
|
|
3222
|
+
{ field: "logistcUnitName", header: this.translate.instant("yms.int.wms_register_document_logistc_unit_name") },
|
|
3223
|
+
{ field: "logistcUnitDocument", header: this.translate.instant("yms.int.wms_register_document_logistc_unit_document") },
|
|
3224
|
+
{ field: "invoiceKey", header: this.translate.instant("yms.int.wms_register_document_invoice_key") },
|
|
3225
|
+
{ field: "invoiceNumber", header: this.translate.instant("yms.int.wms_register_document_invoice_number") },
|
|
3226
|
+
{ field: "invoiceSerialNumber", header: this.translate.instant("yms.int.wms_register_document_invoice_serial_number") },
|
|
3227
|
+
{ field: "ownerName", header: this.translate.instant("yms.int.wms_register_document_owner_name") },
|
|
3228
|
+
{ field: "ownerDocument", header: this.translate.instant("yms.int.wms_register_document_owner_document") },
|
|
3229
|
+
{ field: "orderReceivingCode", header: this.translate.instant("yms.int.wms_register_document_order_receiving_code") },
|
|
3230
|
+
];
|
|
3231
|
+
};
|
|
3232
|
+
DocumentGridComponent.prototype.message = function (severity, summary, detail) {
|
|
3233
|
+
this.messageService.add({
|
|
3234
|
+
severity: severity,
|
|
3235
|
+
summary: this.translate.instant(summary),
|
|
3236
|
+
detail: this.translate.instant(detail),
|
|
3237
|
+
});
|
|
3238
|
+
};
|
|
3239
|
+
__decorate([
|
|
3240
|
+
core.Input(),
|
|
3241
|
+
__metadata("design:type", Object)
|
|
3242
|
+
], DocumentGridComponent.prototype, "agenda", void 0);
|
|
3243
|
+
__decorate([
|
|
3244
|
+
core.Output(),
|
|
3245
|
+
__metadata("design:type", Boolean)
|
|
3246
|
+
], DocumentGridComponent.prototype, "visibleInvoiceKey", void 0);
|
|
3247
|
+
__decorate([
|
|
3248
|
+
core.Output(),
|
|
3249
|
+
__metadata("design:type", Boolean)
|
|
3250
|
+
], DocumentGridComponent.prototype, "visibleDocumentRegister", void 0);
|
|
3251
|
+
__decorate([
|
|
3252
|
+
core.Output(),
|
|
3253
|
+
__metadata("design:type", core.EventEmitter)
|
|
3254
|
+
], DocumentGridComponent.prototype, "viewDocument", void 0);
|
|
3255
|
+
__decorate([
|
|
3256
|
+
core.ViewChild("documentTable"),
|
|
3257
|
+
__metadata("design:type", table.Table)
|
|
3258
|
+
], DocumentGridComponent.prototype, "table", void 0);
|
|
3259
|
+
__decorate([
|
|
3260
|
+
core.ViewChild("customTemplate"),
|
|
3261
|
+
__metadata("design:type", core.TemplateRef)
|
|
3262
|
+
], DocumentGridComponent.prototype, "customTemplate", void 0);
|
|
3263
|
+
__decorate([
|
|
3264
|
+
core.ViewChild("customFilterFields"),
|
|
3265
|
+
__metadata("design:type", core.TemplateRef)
|
|
3266
|
+
], DocumentGridComponent.prototype, "customFilterFields", void 0);
|
|
3267
|
+
__decorate([
|
|
3268
|
+
core.ViewChild("customGridColgroup"),
|
|
3269
|
+
__metadata("design:type", core.TemplateRef)
|
|
3270
|
+
], DocumentGridComponent.prototype, "customGridColgroup", void 0);
|
|
3271
|
+
__decorate([
|
|
3272
|
+
core.ViewChild("customGridHeader"),
|
|
3273
|
+
__metadata("design:type", core.TemplateRef)
|
|
3274
|
+
], DocumentGridComponent.prototype, "customGridHeader", void 0);
|
|
3275
|
+
__decorate([
|
|
3276
|
+
core.ViewChild("customGridBody"),
|
|
3277
|
+
__metadata("design:type", core.TemplateRef)
|
|
3278
|
+
], DocumentGridComponent.prototype, "customGridBody", void 0);
|
|
3279
|
+
DocumentGridComponent = __decorate([
|
|
3280
|
+
core.Component({
|
|
3281
|
+
selector: 'document-grid',
|
|
3282
|
+
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",
|
|
3283
|
+
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}"]
|
|
3284
|
+
}),
|
|
3285
|
+
__metadata("design:paramtypes", [core$1.TranslateService,
|
|
3286
|
+
DocumentService,
|
|
3287
|
+
api.MessageService])
|
|
3288
|
+
], DocumentGridComponent);
|
|
3289
|
+
return DocumentGridComponent;
|
|
3290
|
+
}());
|
|
3291
|
+
|
|
3292
|
+
var moment$4 = _moment;
|
|
3293
|
+
var Document = /** @class */ (function () {
|
|
3294
|
+
function Document() {
|
|
3295
|
+
}
|
|
3296
|
+
Document.fromDto = function (documentDto, originEntity) {
|
|
3297
|
+
var model = __assign({}, documentDto);
|
|
3298
|
+
model.createdDate = model.createdDate && moment$4(model.createdDate).toDate();
|
|
3299
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$4(model.lastModifiedDate).toDate();
|
|
3300
|
+
var lookupSeparator = " - ";
|
|
3301
|
+
var displayFields = [
|
|
3302
|
+
"id",
|
|
3303
|
+
"schedulingId",
|
|
3304
|
+
"invoiceKey",
|
|
3305
|
+
"invoiceNumber",
|
|
3306
|
+
"invoiceSerialNumber",
|
|
3307
|
+
"systemIntegration",
|
|
3308
|
+
"logistcUnitName",
|
|
3309
|
+
"logistcUnitDocument",
|
|
3310
|
+
"ownerName",
|
|
3311
|
+
"ownerDocument",
|
|
3312
|
+
"partnerName",
|
|
3313
|
+
"partnerDocument",
|
|
3314
|
+
"notes",
|
|
3315
|
+
"orderReceivingCode",
|
|
3316
|
+
"createdBy",
|
|
3317
|
+
"createdDate",
|
|
3318
|
+
"lastModifiedBy",
|
|
3319
|
+
"lastModifiedDate",
|
|
3320
|
+
];
|
|
3321
|
+
model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
|
|
3322
|
+
return model;
|
|
3323
|
+
};
|
|
3324
|
+
Document.toDto = function (document, originEntity) {
|
|
3325
|
+
var dto = __assign({}, document);
|
|
3326
|
+
dto.createdDate = dto.createdDate && moment$4(dto.createdDate).format();
|
|
3327
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$4(dto.lastModifiedDate).format();
|
|
3328
|
+
return dto;
|
|
3329
|
+
};
|
|
3330
|
+
return Document;
|
|
3331
|
+
}());
|
|
3332
|
+
|
|
3058
3333
|
var EntityService$1 = /** @class */ (function () {
|
|
3059
3334
|
function EntityService(http, messageService, entityUrl, actionsUrl) {
|
|
3060
3335
|
this.http = http;
|
|
@@ -3149,9 +3424,349 @@
|
|
|
3149
3424
|
return EntityService;
|
|
3150
3425
|
}());
|
|
3151
3426
|
|
|
3427
|
+
var EntityService$2 = /** @class */ (function (_super) {
|
|
3428
|
+
__extends(EntityService, _super);
|
|
3429
|
+
function EntityService() {
|
|
3430
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3431
|
+
}
|
|
3432
|
+
return EntityService;
|
|
3433
|
+
}(EntityService$1));
|
|
3434
|
+
|
|
3435
|
+
var AgendaService = /** @class */ (function (_super) {
|
|
3436
|
+
__extends(AgendaService, _super);
|
|
3437
|
+
function AgendaService(http, messageService) {
|
|
3438
|
+
var _this = _super.call(this, http, messageService, 'yms/agenda/entities/agenda', '') || this;
|
|
3439
|
+
_this.http = http;
|
|
3440
|
+
_this.messageService = messageService;
|
|
3441
|
+
return _this;
|
|
3442
|
+
}
|
|
3443
|
+
AgendaService.ngInjectableDef = core.defineInjectable({ factory: function AgendaService_Factory() { return new AgendaService(core.inject(http.HttpClient), core.inject(messageservice.MessageService)); }, token: AgendaService, providedIn: "root" });
|
|
3444
|
+
AgendaService = __decorate([
|
|
3445
|
+
core.Injectable({ providedIn: 'root' }),
|
|
3446
|
+
__metadata("design:paramtypes", [http.HttpClient, messageservice.MessageService])
|
|
3447
|
+
], AgendaService);
|
|
3448
|
+
return AgendaService;
|
|
3449
|
+
}(EntityService$2));
|
|
3450
|
+
|
|
3451
|
+
var RegisterDocumentComponent = /** @class */ (function () {
|
|
3452
|
+
function RegisterDocumentComponent(fb, messageService, translateService, agendaService) {
|
|
3453
|
+
this.fb = fb;
|
|
3454
|
+
this.messageService = messageService;
|
|
3455
|
+
this.translateService = translateService;
|
|
3456
|
+
this.agendaService = agendaService;
|
|
3457
|
+
this.document = new core.EventEmitter();
|
|
3458
|
+
this.visible = new core.EventEmitter();
|
|
3459
|
+
this.visibleChange = new core.EventEmitter();
|
|
3460
|
+
}
|
|
3461
|
+
RegisterDocumentComponent.prototype.ngOnInit = function () {
|
|
3462
|
+
this.getFormGroup();
|
|
3463
|
+
};
|
|
3464
|
+
RegisterDocumentComponent.prototype.ngOnChanges = function () {
|
|
3465
|
+
this.visibilityConfig();
|
|
3466
|
+
};
|
|
3467
|
+
RegisterDocumentComponent.prototype.visibilityConfig = function () {
|
|
3468
|
+
if (!this.edit && this.visible) {
|
|
3469
|
+
this.formGroup.disable();
|
|
3470
|
+
this.setValuesFormGroup(this.viewDocument);
|
|
3471
|
+
this.setValueForPartner();
|
|
3472
|
+
this.hideSaveButton = true;
|
|
3473
|
+
return this.visible;
|
|
3474
|
+
}
|
|
3475
|
+
return this.visible;
|
|
3476
|
+
};
|
|
3477
|
+
RegisterDocumentComponent.prototype.close = function () {
|
|
3478
|
+
this.visibleChange.emit(false);
|
|
3479
|
+
};
|
|
3480
|
+
RegisterDocumentComponent.prototype.setValuesFormGroup = function (document) {
|
|
3481
|
+
this.formGroup.get('invoiceKey').setValue(document.invoiceKey);
|
|
3482
|
+
this.formGroup.get('invoiceNumber').setValue(document.invoiceNumber);
|
|
3483
|
+
this.formGroup.get('invoiceSerialNumber').setValue(document.invoiceSerialNumber);
|
|
3484
|
+
this.formGroup.get('logistcUnitDocument').setValue(document.logistcUnitDocument);
|
|
3485
|
+
this.formGroup.get('logistcUnitName').setValue(document.logistcUnitName);
|
|
3486
|
+
this.formGroup.get('notes').setValue(document.notes);
|
|
3487
|
+
this.formGroup.get('orderReceivingCode').setValue(document.orderReceivingCode);
|
|
3488
|
+
this.formGroup.get('ownerDocument').setValue(document.ownerDocument);
|
|
3489
|
+
this.formGroup.get('ownerName').setValue(document.ownerName);
|
|
3490
|
+
};
|
|
3491
|
+
RegisterDocumentComponent.prototype.setValueForPartner = function () {
|
|
3492
|
+
var _this = this;
|
|
3493
|
+
this.agendaService.get(this.agenda.id).subscribe(function (agenda) {
|
|
3494
|
+
_this.formGroup.get('partnerName').setValue(agenda.externalTenant.descricao);
|
|
3495
|
+
_this.formGroup.get('partnerDocument').setValue(agenda.externalTenant.cnpj);
|
|
3496
|
+
});
|
|
3497
|
+
};
|
|
3498
|
+
RegisterDocumentComponent.prototype.getFormGroup = function () {
|
|
3499
|
+
this.formGroup = this.fb.group({
|
|
3500
|
+
invoiceKey: [undefined, forms.Validators.required],
|
|
3501
|
+
schedulingId: [undefined],
|
|
3502
|
+
invoiceNumber: [undefined],
|
|
3503
|
+
invoiceSerialNumber: [undefined],
|
|
3504
|
+
logistcUnitName: [undefined],
|
|
3505
|
+
logistcUnitDocument: [undefined],
|
|
3506
|
+
ownerName: [undefined],
|
|
3507
|
+
ownerDocument: [undefined],
|
|
3508
|
+
partnerName: [undefined],
|
|
3509
|
+
partnerDocument: [undefined],
|
|
3510
|
+
notes: [undefined],
|
|
3511
|
+
orderReceivingCode: [undefined],
|
|
3512
|
+
});
|
|
3513
|
+
};
|
|
3514
|
+
RegisterDocumentComponent.prototype.save = function () {
|
|
3515
|
+
var value = this.formGroup.getRawValue();
|
|
3516
|
+
if (value.id === undefined) {
|
|
3517
|
+
if (this.agenda.id !== undefined) {
|
|
3518
|
+
value.schedulingId = this.agenda.id;
|
|
3519
|
+
}
|
|
3520
|
+
this.document.emit(Document.fromDto(value));
|
|
3521
|
+
this.successMessage();
|
|
3522
|
+
this.visibleChange.emit(false);
|
|
3523
|
+
}
|
|
3524
|
+
};
|
|
3525
|
+
RegisterDocumentComponent.prototype.successMessage = function () {
|
|
3526
|
+
this.messageService.add({
|
|
3527
|
+
severity: "success",
|
|
3528
|
+
summary: this.translateService.instant("saved_message_title"),
|
|
3529
|
+
detail: this.translateService.instant("saved_message_content"),
|
|
3530
|
+
});
|
|
3531
|
+
};
|
|
3532
|
+
__decorate([
|
|
3533
|
+
core.Input(),
|
|
3534
|
+
__metadata("design:type", Document)
|
|
3535
|
+
], RegisterDocumentComponent.prototype, "viewDocument", void 0);
|
|
3536
|
+
__decorate([
|
|
3537
|
+
core.Input(),
|
|
3538
|
+
__metadata("design:type", Boolean)
|
|
3539
|
+
], RegisterDocumentComponent.prototype, "edit", void 0);
|
|
3540
|
+
__decorate([
|
|
3541
|
+
core.Input(),
|
|
3542
|
+
__metadata("design:type", Agenda)
|
|
3543
|
+
], RegisterDocumentComponent.prototype, "agenda", void 0);
|
|
3544
|
+
__decorate([
|
|
3545
|
+
core.Output(),
|
|
3546
|
+
__metadata("design:type", core.EventEmitter)
|
|
3547
|
+
], RegisterDocumentComponent.prototype, "document", void 0);
|
|
3548
|
+
__decorate([
|
|
3549
|
+
core.Input(),
|
|
3550
|
+
__metadata("design:type", core.EventEmitter)
|
|
3551
|
+
], RegisterDocumentComponent.prototype, "visible", void 0);
|
|
3552
|
+
__decorate([
|
|
3553
|
+
core.Output(),
|
|
3554
|
+
__metadata("design:type", Object)
|
|
3555
|
+
], RegisterDocumentComponent.prototype, "visibleChange", void 0);
|
|
3556
|
+
RegisterDocumentComponent = __decorate([
|
|
3557
|
+
core.Component({
|
|
3558
|
+
selector: "register-document",
|
|
3559
|
+
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>"
|
|
3560
|
+
}),
|
|
3561
|
+
__metadata("design:paramtypes", [forms.FormBuilder,
|
|
3562
|
+
api.MessageService,
|
|
3563
|
+
core$1.TranslateService,
|
|
3564
|
+
AgendaService])
|
|
3565
|
+
], RegisterDocumentComponent);
|
|
3566
|
+
return RegisterDocumentComponent;
|
|
3567
|
+
}());
|
|
3568
|
+
|
|
3569
|
+
var RegisterDocumentModule = /** @class */ (function () {
|
|
3570
|
+
function RegisterDocumentModule() {
|
|
3571
|
+
}
|
|
3572
|
+
RegisterDocumentModule = __decorate([
|
|
3573
|
+
core.NgModule({
|
|
3574
|
+
imports: [
|
|
3575
|
+
common.CommonModule,
|
|
3576
|
+
angularComponents.SidebarModule,
|
|
3577
|
+
angularComponents.ButtonModule,
|
|
3578
|
+
primeng.PanelModule,
|
|
3579
|
+
primeng.ConfirmDialogModule,
|
|
3580
|
+
core$1.TranslateModule,
|
|
3581
|
+
primeng.InputTextModule,
|
|
3582
|
+
angularComponents.ControlErrorsModule,
|
|
3583
|
+
primeng.InputTextareaModule,
|
|
3584
|
+
forms.ReactiveFormsModule
|
|
3585
|
+
],
|
|
3586
|
+
exports: [RegisterDocumentComponent],
|
|
3587
|
+
declarations: [RegisterDocumentComponent],
|
|
3588
|
+
providers: [DocumentService]
|
|
3589
|
+
})
|
|
3590
|
+
], RegisterDocumentModule);
|
|
3591
|
+
return RegisterDocumentModule;
|
|
3592
|
+
}());
|
|
3593
|
+
|
|
3594
|
+
var InsertKeyComponent = /** @class */ (function () {
|
|
3595
|
+
function InsertKeyComponent(formBuilder, documentService, messageService, translate) {
|
|
3596
|
+
this.formBuilder = formBuilder;
|
|
3597
|
+
this.documentService = documentService;
|
|
3598
|
+
this.messageService = messageService;
|
|
3599
|
+
this.translate = translate;
|
|
3600
|
+
this.document = new core.EventEmitter();
|
|
3601
|
+
this.visible = new core.EventEmitter();
|
|
3602
|
+
this.visibleChange = new core.EventEmitter();
|
|
3603
|
+
}
|
|
3604
|
+
InsertKeyComponent.prototype.ngOnInit = function () {
|
|
3605
|
+
this.formGroup = this.formBuilder.group({
|
|
3606
|
+
key: [undefined]
|
|
3607
|
+
});
|
|
3608
|
+
};
|
|
3609
|
+
InsertKeyComponent.prototype.add = function () {
|
|
3610
|
+
this.visibleChange.emit(false);
|
|
3611
|
+
if (!this.formGroup.get('key').value) {
|
|
3612
|
+
return;
|
|
3613
|
+
}
|
|
3614
|
+
this.searchKey();
|
|
3615
|
+
};
|
|
3616
|
+
InsertKeyComponent.prototype.searchKey = function () {
|
|
3617
|
+
var _this = this;
|
|
3618
|
+
var key = {
|
|
3619
|
+
documentKeys: [this.formGroup.get('key').value],
|
|
3620
|
+
invoices: undefined,
|
|
3621
|
+
logistcUnitName: undefined,
|
|
3622
|
+
size: 0,
|
|
3623
|
+
offset: 0
|
|
3624
|
+
};
|
|
3625
|
+
this.documentService.findDocuments(key).subscribe(function (content) {
|
|
3626
|
+
if (content.totalElements < 1) {
|
|
3627
|
+
_this.message("warn", "yms.int.wms_insert_key_warning_message_header", "yms.int.wms_insert_key_warning_message_description");
|
|
3628
|
+
return;
|
|
3629
|
+
}
|
|
3630
|
+
_this.document.emit(content.contents[0]);
|
|
3631
|
+
_this.message("success", "yms.int.wms_insert_key_success_message_header", "yms.int.wms_insert_key_success_message_description");
|
|
3632
|
+
_this.formGroup.reset();
|
|
3633
|
+
});
|
|
3634
|
+
};
|
|
3635
|
+
InsertKeyComponent.prototype.message = function (success, header, description) {
|
|
3636
|
+
this.messageService.add({
|
|
3637
|
+
severity: success,
|
|
3638
|
+
summary: this.translate.instant(header),
|
|
3639
|
+
detail: this.translate.instant(description),
|
|
3640
|
+
});
|
|
3641
|
+
};
|
|
3642
|
+
InsertKeyComponent.prototype.cancel = function () {
|
|
3643
|
+
this.visibleChange.emit(false);
|
|
3644
|
+
};
|
|
3645
|
+
__decorate([
|
|
3646
|
+
core.Output(),
|
|
3647
|
+
__metadata("design:type", core.EventEmitter)
|
|
3648
|
+
], InsertKeyComponent.prototype, "document", void 0);
|
|
3649
|
+
__decorate([
|
|
3650
|
+
core.Input(),
|
|
3651
|
+
__metadata("design:type", core.EventEmitter)
|
|
3652
|
+
], InsertKeyComponent.prototype, "visible", void 0);
|
|
3653
|
+
__decorate([
|
|
3654
|
+
core.Output(),
|
|
3655
|
+
__metadata("design:type", Object)
|
|
3656
|
+
], InsertKeyComponent.prototype, "visibleChange", void 0);
|
|
3657
|
+
InsertKeyComponent = __decorate([
|
|
3658
|
+
core.Component({
|
|
3659
|
+
selector: "insert-key",
|
|
3660
|
+
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>",
|
|
3661
|
+
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}"]
|
|
3662
|
+
}),
|
|
3663
|
+
__metadata("design:paramtypes", [forms.FormBuilder,
|
|
3664
|
+
DocumentService,
|
|
3665
|
+
api.MessageService,
|
|
3666
|
+
core$1.TranslateService])
|
|
3667
|
+
], InsertKeyComponent);
|
|
3668
|
+
return InsertKeyComponent;
|
|
3669
|
+
}());
|
|
3670
|
+
|
|
3671
|
+
var InsertKeyModule = /** @class */ (function () {
|
|
3672
|
+
function InsertKeyModule() {
|
|
3673
|
+
}
|
|
3674
|
+
InsertKeyModule = __decorate([
|
|
3675
|
+
core.NgModule({
|
|
3676
|
+
imports: [
|
|
3677
|
+
common.CommonModule,
|
|
3678
|
+
forms.ReactiveFormsModule,
|
|
3679
|
+
angularComponents.ButtonModule,
|
|
3680
|
+
core$1.TranslateModule,
|
|
3681
|
+
primeng.DialogModule,
|
|
3682
|
+
primeng.InputTextModule
|
|
3683
|
+
],
|
|
3684
|
+
exports: [InsertKeyComponent],
|
|
3685
|
+
declarations: [InsertKeyComponent]
|
|
3686
|
+
})
|
|
3687
|
+
], InsertKeyModule);
|
|
3688
|
+
return InsertKeyModule;
|
|
3689
|
+
}());
|
|
3690
|
+
|
|
3691
|
+
var DocumentGridModule = /** @class */ (function () {
|
|
3692
|
+
function DocumentGridModule() {
|
|
3693
|
+
}
|
|
3694
|
+
DocumentGridModule = __decorate([
|
|
3695
|
+
core.NgModule({
|
|
3696
|
+
declarations: [DocumentGridComponent],
|
|
3697
|
+
entryComponents: [DocumentGridComponent],
|
|
3698
|
+
exports: [DocumentGridComponent],
|
|
3699
|
+
imports: [
|
|
3700
|
+
common.CommonModule,
|
|
3701
|
+
core$1.TranslateModule,
|
|
3702
|
+
angularComponents.ButtonModule,
|
|
3703
|
+
primeng.PanelModule,
|
|
3704
|
+
table.TableModule,
|
|
3705
|
+
RegisterDocumentModule,
|
|
3706
|
+
InsertKeyModule,
|
|
3707
|
+
button.ButtonModule,
|
|
3708
|
+
ymsComponents.ComponentsModule,
|
|
3709
|
+
angularComponents.EmptyStateModule
|
|
3710
|
+
],
|
|
3711
|
+
})
|
|
3712
|
+
], DocumentGridModule);
|
|
3713
|
+
return DocumentGridModule;
|
|
3714
|
+
}());
|
|
3715
|
+
|
|
3716
|
+
var WmsModule = /** @class */ (function () {
|
|
3717
|
+
function WmsModule(dispatcher) {
|
|
3718
|
+
dispatcher.dispatch(FormWmsComponent);
|
|
3719
|
+
}
|
|
3720
|
+
WmsModule = __decorate([
|
|
3721
|
+
core.NgModule({
|
|
3722
|
+
declarations: [FormWmsComponent],
|
|
3723
|
+
entryComponents: [FormWmsComponent],
|
|
3724
|
+
exports: [FormWmsComponent],
|
|
3725
|
+
imports: [
|
|
3726
|
+
ymsRoutines.IntegrationModule,
|
|
3727
|
+
DocumentGridModule,
|
|
3728
|
+
common.CommonModule,
|
|
3729
|
+
core$1.TranslateModule,
|
|
3730
|
+
forms.FormsModule,
|
|
3731
|
+
angularComponents.ButtonModule,
|
|
3732
|
+
primeng.SharedModule,
|
|
3733
|
+
primeng.CardModule,
|
|
3734
|
+
button.ButtonModule,
|
|
3735
|
+
forms.ReactiveFormsModule,
|
|
3736
|
+
shared.SharedModule,
|
|
3737
|
+
angularComponents.CustomFieldsModule,
|
|
3738
|
+
angularComponents.ControlErrorsModule,
|
|
3739
|
+
primeng.DialogModule,
|
|
3740
|
+
angularComponents.EmptyStateModule,
|
|
3741
|
+
angularComponents.DynamicFormModule,
|
|
3742
|
+
angularComponents.TokenListModule,
|
|
3743
|
+
primeng.PanelModule,
|
|
3744
|
+
primeng.InputTextModule,
|
|
3745
|
+
primeng.DropdownModule,
|
|
3746
|
+
angularComponents.ButtonModule,
|
|
3747
|
+
angularComponents.LoadingStateModule,
|
|
3748
|
+
angularComponents.NumberInputModule,
|
|
3749
|
+
primeng.ConfirmDialogModule,
|
|
3750
|
+
angularComponents.LocaleModule,
|
|
3751
|
+
platformComponents.PermissionsModule,
|
|
3752
|
+
dynamicdialog.DynamicDialogModule,
|
|
3753
|
+
table.TableModule,
|
|
3754
|
+
primeng.TabViewModule,
|
|
3755
|
+
primeng.CalendarModule,
|
|
3756
|
+
],
|
|
3757
|
+
providers: [
|
|
3758
|
+
FieldCustomizationService,
|
|
3759
|
+
FocusService
|
|
3760
|
+
]
|
|
3761
|
+
}),
|
|
3762
|
+
__metadata("design:paramtypes", [ymsRoutines.IntegrationDispatcher])
|
|
3763
|
+
], WmsModule);
|
|
3764
|
+
return WmsModule;
|
|
3765
|
+
}());
|
|
3766
|
+
|
|
3152
3767
|
var ERP_ENVIRONMENT = new core.InjectionToken('integration_environment');
|
|
3153
3768
|
|
|
3154
|
-
var AgendaService = /** @class */ (function (_super) {
|
|
3769
|
+
var AgendaService$1 = /** @class */ (function (_super) {
|
|
3155
3770
|
__extends(AgendaService, _super);
|
|
3156
3771
|
function AgendaService(http, messageService, environment) {
|
|
3157
3772
|
var _this = _super.call(this, http, messageService, environment.project.domain + "/" + environment.project.service + "/entities/agenda", environment.project.domain + "/" + environment.project.service + "/actions") || this;
|
|
@@ -3252,7 +3867,7 @@
|
|
|
3252
3867
|
RecebimentoChegadaVeiculoOverride = __decorate([
|
|
3253
3868
|
core.Injectable(),
|
|
3254
3869
|
__metadata("design:paramtypes", [ymsRoutines.ChegadaVeiculoOverride,
|
|
3255
|
-
AgendaService,
|
|
3870
|
+
AgendaService$1,
|
|
3256
3871
|
RecebimentoContratoService])
|
|
3257
3872
|
], RecebimentoChegadaVeiculoOverride);
|
|
3258
3873
|
return RecebimentoChegadaVeiculoOverride;
|
|
@@ -3316,7 +3931,7 @@
|
|
|
3316
3931
|
ExpedicaoChegadaVeiculoOverride = __decorate([
|
|
3317
3932
|
core.Injectable(),
|
|
3318
3933
|
__metadata("design:paramtypes", [ymsRoutines.ChegadaVeiculoOverride,
|
|
3319
|
-
AgendaService,
|
|
3934
|
+
AgendaService$1,
|
|
3320
3935
|
ExpedicaoService])
|
|
3321
3936
|
], ExpedicaoChegadaVeiculoOverride);
|
|
3322
3937
|
return ExpedicaoChegadaVeiculoOverride;
|
|
@@ -3533,7 +4148,7 @@
|
|
|
3533
4148
|
return OrdemCompraService;
|
|
3534
4149
|
}(EntityService$1));
|
|
3535
4150
|
|
|
3536
|
-
var moment$
|
|
4151
|
+
var moment$5 = _moment;
|
|
3537
4152
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3538
4153
|
var Empresa = /** @class */ (function () {
|
|
3539
4154
|
function Empresa() {
|
|
@@ -3542,8 +4157,8 @@
|
|
|
3542
4157
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3543
4158
|
Empresa.fromDto = function (empresaDto, originEntity) {
|
|
3544
4159
|
var model = __assign({}, empresaDto);
|
|
3545
|
-
model.createdDate = model.createdDate && moment$
|
|
3546
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
4160
|
+
model.createdDate = model.createdDate && moment$5(model.createdDate).toDate();
|
|
4161
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$5(model.lastModifiedDate).toDate();
|
|
3547
4162
|
var lookupSeparator = " - ";
|
|
3548
4163
|
var displayFields = [
|
|
3549
4164
|
"codigo",
|
|
@@ -3555,8 +4170,8 @@
|
|
|
3555
4170
|
};
|
|
3556
4171
|
Empresa.toDto = function (empresa, originEntity) {
|
|
3557
4172
|
var dto = __assign({}, empresa);
|
|
3558
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3559
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4173
|
+
dto.createdDate = dto.createdDate && moment$5(dto.createdDate).format();
|
|
4174
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$5(dto.lastModifiedDate).format();
|
|
3560
4175
|
delete dto.label;
|
|
3561
4176
|
return dto;
|
|
3562
4177
|
};
|
|
@@ -3565,7 +4180,7 @@
|
|
|
3565
4180
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3566
4181
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3567
4182
|
|
|
3568
|
-
var moment$
|
|
4183
|
+
var moment$6 = _moment;
|
|
3569
4184
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3570
4185
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3571
4186
|
var Pessoa = /** @class */ (function () {
|
|
@@ -3575,8 +4190,8 @@
|
|
|
3575
4190
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3576
4191
|
Pessoa.fromDto = function (pessoaDto, originEntity) {
|
|
3577
4192
|
var model = __assign({}, pessoaDto);
|
|
3578
|
-
model.createdDate = model.createdDate && moment$
|
|
3579
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
4193
|
+
model.createdDate = model.createdDate && moment$6(model.createdDate).toDate();
|
|
4194
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$6(model.lastModifiedDate).toDate();
|
|
3580
4195
|
var lookupSeparator = " - ";
|
|
3581
4196
|
var displayFields = [
|
|
3582
4197
|
"codigo",
|
|
@@ -3588,8 +4203,8 @@
|
|
|
3588
4203
|
};
|
|
3589
4204
|
Pessoa.toDto = function (pessoa, originEntity) {
|
|
3590
4205
|
var dto = __assign({}, pessoa);
|
|
3591
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3592
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4206
|
+
dto.createdDate = dto.createdDate && moment$6(dto.createdDate).format();
|
|
4207
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$6(dto.lastModifiedDate).format();
|
|
3593
4208
|
delete dto.label;
|
|
3594
4209
|
return dto;
|
|
3595
4210
|
};
|
|
@@ -3598,7 +4213,7 @@
|
|
|
3598
4213
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3599
4214
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3600
4215
|
|
|
3601
|
-
var moment$
|
|
4216
|
+
var moment$7 = _moment;
|
|
3602
4217
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3603
4218
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3604
4219
|
var PessoaJuridica = /** @class */ (function () {
|
|
@@ -3608,8 +4223,8 @@
|
|
|
3608
4223
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3609
4224
|
PessoaJuridica.fromDto = function (pessoaJuridicaDto, originEntity) {
|
|
3610
4225
|
var model = __assign({}, pessoaJuridicaDto);
|
|
3611
|
-
model.createdDate = model.createdDate && moment$
|
|
3612
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
4226
|
+
model.createdDate = model.createdDate && moment$7(model.createdDate).toDate();
|
|
4227
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$7(model.lastModifiedDate).toDate();
|
|
3613
4228
|
var lookupSeparator = " - ";
|
|
3614
4229
|
var displayFields = [
|
|
3615
4230
|
"id",
|
|
@@ -3636,8 +4251,8 @@
|
|
|
3636
4251
|
};
|
|
3637
4252
|
PessoaJuridica.toDto = function (pessoaJuridica, originEntity) {
|
|
3638
4253
|
var dto = __assign({}, pessoaJuridica);
|
|
3639
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3640
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4254
|
+
dto.createdDate = dto.createdDate && moment$7(dto.createdDate).format();
|
|
4255
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$7(dto.lastModifiedDate).format();
|
|
3641
4256
|
delete dto.label;
|
|
3642
4257
|
if (originEntity !== "Pessoa" && dto.pessoa)
|
|
3643
4258
|
dto.pessoa = Pessoa.toDto(dto.pessoa, "PessoaJuridica");
|
|
@@ -3648,7 +4263,7 @@
|
|
|
3648
4263
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3649
4264
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3650
4265
|
|
|
3651
|
-
var moment$
|
|
4266
|
+
var moment$8 = _moment;
|
|
3652
4267
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3653
4268
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3654
4269
|
var Pais = /** @class */ (function () {
|
|
@@ -3658,8 +4273,8 @@
|
|
|
3658
4273
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3659
4274
|
Pais.fromDto = function (paisDto, originEntity) {
|
|
3660
4275
|
var model = __assign({}, paisDto);
|
|
3661
|
-
model.createdDate = model.createdDate && moment$
|
|
3662
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
4276
|
+
model.createdDate = model.createdDate && moment$8(model.createdDate).toDate();
|
|
4277
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$8(model.lastModifiedDate).toDate();
|
|
3663
4278
|
var lookupSeparator = " - ";
|
|
3664
4279
|
var displayFields = ["id", "codigo", "descricao", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
|
|
3665
4280
|
model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
|
|
@@ -3667,8 +4282,8 @@
|
|
|
3667
4282
|
};
|
|
3668
4283
|
Pais.toDto = function (pais, originEntity) {
|
|
3669
4284
|
var dto = __assign({}, pais);
|
|
3670
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3671
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4285
|
+
dto.createdDate = dto.createdDate && moment$8(dto.createdDate).format();
|
|
4286
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$8(dto.lastModifiedDate).format();
|
|
3672
4287
|
delete dto.label;
|
|
3673
4288
|
return dto;
|
|
3674
4289
|
};
|
|
@@ -3677,7 +4292,7 @@
|
|
|
3677
4292
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3678
4293
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3679
4294
|
|
|
3680
|
-
var moment$
|
|
4295
|
+
var moment$9 = _moment;
|
|
3681
4296
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3682
4297
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3683
4298
|
var Estado = /** @class */ (function () {
|
|
@@ -3687,8 +4302,8 @@
|
|
|
3687
4302
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3688
4303
|
Estado.fromDto = function (estadoDto, originEntity) {
|
|
3689
4304
|
var model = __assign({}, estadoDto);
|
|
3690
|
-
model.createdDate = model.createdDate && moment$
|
|
3691
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
4305
|
+
model.createdDate = model.createdDate && moment$9(model.createdDate).toDate();
|
|
4306
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$9(model.lastModifiedDate).toDate();
|
|
3692
4307
|
var lookupSeparator = " - ";
|
|
3693
4308
|
var displayFields = [
|
|
3694
4309
|
"id",
|
|
@@ -3710,8 +4325,8 @@
|
|
|
3710
4325
|
};
|
|
3711
4326
|
Estado.toDto = function (estado, originEntity) {
|
|
3712
4327
|
var dto = __assign({}, estado);
|
|
3713
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3714
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4328
|
+
dto.createdDate = dto.createdDate && moment$9(dto.createdDate).format();
|
|
4329
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$9(dto.lastModifiedDate).format();
|
|
3715
4330
|
delete dto.label;
|
|
3716
4331
|
if (originEntity !== "Pais" && dto.pais)
|
|
3717
4332
|
dto.pais = Pais.toDto(dto.pais, "Estado");
|
|
@@ -3722,7 +4337,7 @@
|
|
|
3722
4337
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3723
4338
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3724
4339
|
|
|
3725
|
-
var moment$
|
|
4340
|
+
var moment$a = _moment;
|
|
3726
4341
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3727
4342
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3728
4343
|
var Cidade = /** @class */ (function () {
|
|
@@ -3732,8 +4347,8 @@
|
|
|
3732
4347
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3733
4348
|
Cidade.fromDto = function (cidadeDto, originEntity) {
|
|
3734
4349
|
var model = __assign({}, cidadeDto);
|
|
3735
|
-
model.createdDate = model.createdDate && moment$
|
|
3736
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
4350
|
+
model.createdDate = model.createdDate && moment$a(model.createdDate).toDate();
|
|
4351
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$a(model.lastModifiedDate).toDate();
|
|
3737
4352
|
var lookupSeparator = " - ";
|
|
3738
4353
|
var displayFields = [
|
|
3739
4354
|
"id",
|
|
@@ -3754,8 +4369,8 @@
|
|
|
3754
4369
|
};
|
|
3755
4370
|
Cidade.toDto = function (cidade, originEntity) {
|
|
3756
4371
|
var dto = __assign({}, cidade);
|
|
3757
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3758
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4372
|
+
dto.createdDate = dto.createdDate && moment$a(dto.createdDate).format();
|
|
4373
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$a(dto.lastModifiedDate).format();
|
|
3759
4374
|
delete dto.label;
|
|
3760
4375
|
if (originEntity !== "Estado" && dto.estado)
|
|
3761
4376
|
dto.estado = Estado.toDto(dto.estado, "Cidade");
|
|
@@ -3766,14 +4381,14 @@
|
|
|
3766
4381
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3767
4382
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3768
4383
|
|
|
3769
|
-
var moment$
|
|
4384
|
+
var moment$b = _moment;
|
|
3770
4385
|
var PessoaEndereco = /** @class */ (function () {
|
|
3771
4386
|
function PessoaEndereco() {
|
|
3772
4387
|
}
|
|
3773
4388
|
PessoaEndereco.fromDto = function (pessoaEnderecoDto, originEntity) {
|
|
3774
4389
|
var model = __assign({}, pessoaEnderecoDto);
|
|
3775
|
-
model.createdDate = model.createdDate && moment$
|
|
3776
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
4390
|
+
model.createdDate = model.createdDate && moment$b(model.createdDate).toDate();
|
|
4391
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$b(model.lastModifiedDate).toDate();
|
|
3777
4392
|
var lookupSeparator = " - ";
|
|
3778
4393
|
var displayFields = [
|
|
3779
4394
|
"codigo",
|
|
@@ -3789,8 +4404,8 @@
|
|
|
3789
4404
|
};
|
|
3790
4405
|
PessoaEndereco.toDto = function (pessoaEndereco, originEntity) {
|
|
3791
4406
|
var dto = __assign({}, pessoaEndereco);
|
|
3792
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3793
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4407
|
+
dto.createdDate = dto.createdDate && moment$b(dto.createdDate).format();
|
|
4408
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$b(dto.lastModifiedDate).format();
|
|
3794
4409
|
delete dto.label;
|
|
3795
4410
|
if (originEntity !== "Pessoa" && dto.pessoa)
|
|
3796
4411
|
dto.pessoa = Pessoa.toDto(dto.pessoa, "PessoaEndereco");
|
|
@@ -3801,7 +4416,7 @@
|
|
|
3801
4416
|
return PessoaEndereco;
|
|
3802
4417
|
}());
|
|
3803
4418
|
|
|
3804
|
-
var moment$
|
|
4419
|
+
var moment$c = _moment;
|
|
3805
4420
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3806
4421
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3807
4422
|
var Filial = /** @class */ (function () {
|
|
@@ -3811,8 +4426,8 @@
|
|
|
3811
4426
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3812
4427
|
Filial.fromDto = function (filialDto, originEntity) {
|
|
3813
4428
|
var model = __assign({}, filialDto);
|
|
3814
|
-
model.createdDate = model.createdDate && moment$
|
|
3815
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
4429
|
+
model.createdDate = model.createdDate && moment$c(model.createdDate).toDate();
|
|
4430
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$c(model.lastModifiedDate).toDate();
|
|
3816
4431
|
var lookupSeparator = " - ";
|
|
3817
4432
|
var displayFields = [
|
|
3818
4433
|
"codigo",
|
|
@@ -3830,8 +4445,8 @@
|
|
|
3830
4445
|
};
|
|
3831
4446
|
Filial.toDto = function (filial, originEntity) {
|
|
3832
4447
|
var dto = __assign({}, filial);
|
|
3833
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3834
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4448
|
+
dto.createdDate = dto.createdDate && moment$c(dto.createdDate).format();
|
|
4449
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$c(dto.lastModifiedDate).format();
|
|
3835
4450
|
delete dto.label;
|
|
3836
4451
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
3837
4452
|
dto.empresa = Empresa.toDto(dto.empresa, "Filial");
|
|
@@ -3846,14 +4461,14 @@
|
|
|
3846
4461
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3847
4462
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3848
4463
|
|
|
3849
|
-
var moment$
|
|
4464
|
+
var moment$d = _moment;
|
|
3850
4465
|
var OrdemCompra = /** @class */ (function () {
|
|
3851
4466
|
function OrdemCompra() {
|
|
3852
4467
|
}
|
|
3853
4468
|
OrdemCompra.fromDto = function (ordemCompraDto, originEntity) {
|
|
3854
4469
|
var model = __assign({}, ordemCompraDto);
|
|
3855
|
-
model.createdDate = model.createdDate && moment$
|
|
3856
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
4470
|
+
model.createdDate = model.createdDate && moment$d(model.createdDate).toDate();
|
|
4471
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$d(model.lastModifiedDate).toDate();
|
|
3857
4472
|
var lookupSeparator = " - ";
|
|
3858
4473
|
var displayFields = [
|
|
3859
4474
|
"codigo",
|
|
@@ -3869,8 +4484,8 @@
|
|
|
3869
4484
|
};
|
|
3870
4485
|
OrdemCompra.toDto = function (ordemCompra, originEntity) {
|
|
3871
4486
|
var dto = __assign({}, ordemCompra);
|
|
3872
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3873
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
4487
|
+
dto.createdDate = dto.createdDate && moment$d(dto.createdDate).format();
|
|
4488
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$d(dto.lastModifiedDate).format();
|
|
3874
4489
|
delete dto.label;
|
|
3875
4490
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
3876
4491
|
dto.empresa = Empresa.toDto(dto.empresa, "Produto");
|
|
@@ -3881,7 +4496,7 @@
|
|
|
3881
4496
|
return OrdemCompra;
|
|
3882
4497
|
}());
|
|
3883
4498
|
|
|
3884
|
-
var moment$
|
|
4499
|
+
var moment$e = _moment;
|
|
3885
4500
|
var OrdemCompraFormComponent = /** @class */ (function () {
|
|
3886
4501
|
function OrdemCompraFormComponent(dialogRef, dialogConfig, ordemCompraService, translate, fb, route) {
|
|
3887
4502
|
this.dialogRef = dialogRef;
|
|
@@ -3960,7 +4575,7 @@
|
|
|
3960
4575
|
if (filial && filial.empresa && filial.empresa.id) {
|
|
3961
4576
|
filter.empresaId = filial.empresa.id;
|
|
3962
4577
|
}
|
|
3963
|
-
filter.dataEmissao = filter.dataEmissao && moment$
|
|
4578
|
+
filter.dataEmissao = filter.dataEmissao && moment$e(filter.dataEmissao).format("YYYY-MM-DD");
|
|
3964
4579
|
var sort = (multiSortMeta || []).length ? { field: multiSortMeta[0].field, order: multiSortMeta[0].order === 1 ? 'Asc' : 'Desc' } : { field: 'numero', order: 'Asc' };
|
|
3965
4580
|
this.ordemCompraService
|
|
3966
4581
|
.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: {
|
|
@@ -4324,7 +4939,7 @@
|
|
|
4324
4939
|
]),
|
|
4325
4940
|
],
|
|
4326
4941
|
providers: [
|
|
4327
|
-
AgendaService,
|
|
4942
|
+
AgendaService$1,
|
|
4328
4943
|
],
|
|
4329
4944
|
declarations: [
|
|
4330
4945
|
/*{CA:MODULE_DECLARATIONS:START}*/
|
|
@@ -6191,13 +6806,13 @@
|
|
|
6191
6806
|
DevolucaoChegadaVeiculoOverride = __decorate([
|
|
6192
6807
|
core.Injectable(),
|
|
6193
6808
|
__metadata("design:paramtypes", [ymsRoutines.ChegadaVeiculoOverride,
|
|
6194
|
-
AgendaService,
|
|
6809
|
+
AgendaService$1,
|
|
6195
6810
|
DevolucaoService])
|
|
6196
6811
|
], DevolucaoChegadaVeiculoOverride);
|
|
6197
6812
|
return DevolucaoChegadaVeiculoOverride;
|
|
6198
6813
|
}());
|
|
6199
6814
|
|
|
6200
|
-
var moment$
|
|
6815
|
+
var moment$f = _moment;
|
|
6201
6816
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
6202
6817
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
6203
6818
|
var UnidadeMedida = /** @class */ (function () {
|
|
@@ -6207,8 +6822,8 @@
|
|
|
6207
6822
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
6208
6823
|
UnidadeMedida.fromDto = function (unidadeMedidaDto, originEntity) {
|
|
6209
6824
|
var model = __assign({}, unidadeMedidaDto);
|
|
6210
|
-
model.createdDate = model.createdDate && moment$
|
|
6211
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
6825
|
+
model.createdDate = model.createdDate && moment$f(model.createdDate).toDate();
|
|
6826
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$f(model.lastModifiedDate).toDate();
|
|
6212
6827
|
var lookupSeparator = " - ";
|
|
6213
6828
|
var displayFields = [
|
|
6214
6829
|
"id",
|
|
@@ -6225,8 +6840,8 @@
|
|
|
6225
6840
|
};
|
|
6226
6841
|
UnidadeMedida.toDto = function (unidadeMedida, originEntity) {
|
|
6227
6842
|
var dto = __assign({}, unidadeMedida);
|
|
6228
|
-
dto.createdDate = dto.createdDate && moment$
|
|
6229
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
6843
|
+
dto.createdDate = dto.createdDate && moment$f(dto.createdDate).format();
|
|
6844
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$f(dto.lastModifiedDate).format();
|
|
6230
6845
|
delete dto.label;
|
|
6231
6846
|
return dto;
|
|
6232
6847
|
};
|
|
@@ -6235,7 +6850,7 @@
|
|
|
6235
6850
|
/*{CA:FILE_CONTENTS:START}*/
|
|
6236
6851
|
/*{CA:FILE_CONTENTS:END}*/
|
|
6237
6852
|
|
|
6238
|
-
var moment$
|
|
6853
|
+
var moment$g = _moment;
|
|
6239
6854
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
6240
6855
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
6241
6856
|
var Royalty = /** @class */ (function () {
|
|
@@ -6245,8 +6860,8 @@
|
|
|
6245
6860
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
6246
6861
|
Royalty.fromDto = function (royaltyDto, originEntity) {
|
|
6247
6862
|
var model = __assign({}, royaltyDto);
|
|
6248
|
-
model.createdDate = model.createdDate && moment$
|
|
6249
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
6863
|
+
model.createdDate = model.createdDate && moment$g(model.createdDate).toDate();
|
|
6864
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$g(model.lastModifiedDate).toDate();
|
|
6250
6865
|
var lookupSeparator = " - ";
|
|
6251
6866
|
var displayFields = ["id", "codigo", "descricao", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
|
|
6252
6867
|
model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
|
|
@@ -6256,8 +6871,8 @@
|
|
|
6256
6871
|
};
|
|
6257
6872
|
Royalty.toDto = function (royalty, originEntity) {
|
|
6258
6873
|
var dto = __assign({}, royalty);
|
|
6259
|
-
dto.createdDate = dto.createdDate && moment$
|
|
6260
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
6874
|
+
dto.createdDate = dto.createdDate && moment$g(dto.createdDate).format();
|
|
6875
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$g(dto.lastModifiedDate).format();
|
|
6261
6876
|
delete dto.label;
|
|
6262
6877
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
6263
6878
|
dto.empresa = Empresa.toDto(dto.empresa, "Royalty");
|
|
@@ -6268,7 +6883,7 @@
|
|
|
6268
6883
|
/*{CA:FILE_CONTENTS:START}*/
|
|
6269
6884
|
/*{CA:FILE_CONTENTS:END}*/
|
|
6270
6885
|
|
|
6271
|
-
var moment$
|
|
6886
|
+
var moment$h = _moment;
|
|
6272
6887
|
var FamiliaProduto = /** @class */ (function () {
|
|
6273
6888
|
function FamiliaProduto() {
|
|
6274
6889
|
}
|
|
@@ -6277,9 +6892,9 @@
|
|
|
6277
6892
|
return familiaProdutoDto;
|
|
6278
6893
|
}
|
|
6279
6894
|
var model = __assign({}, familiaProdutoDto);
|
|
6280
|
-
model.createdDate = model.codigo && moment$
|
|
6281
|
-
model.createdDate = model.createdDate && moment$
|
|
6282
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
6895
|
+
model.createdDate = model.codigo && moment$h(model.createdDate).toDate();
|
|
6896
|
+
model.createdDate = model.createdDate && moment$h(model.createdDate).toDate();
|
|
6897
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$h(model.lastModifiedDate).toDate();
|
|
6283
6898
|
var lookupSeparator = " - ";
|
|
6284
6899
|
var displayFields = ["id", "codigo", "descricao", "situacao", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
|
|
6285
6900
|
model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
|
|
@@ -6289,8 +6904,8 @@
|
|
|
6289
6904
|
};
|
|
6290
6905
|
FamiliaProduto.toDto = function (familiaProduto, originEntity) {
|
|
6291
6906
|
var dto = __assign({}, familiaProduto);
|
|
6292
|
-
dto.createdDate = dto.createdDate && moment$
|
|
6293
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
6907
|
+
dto.createdDate = dto.createdDate && moment$h(dto.createdDate).format();
|
|
6908
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$h(dto.lastModifiedDate).format();
|
|
6294
6909
|
delete dto.label;
|
|
6295
6910
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
6296
6911
|
dto.empresa = Empresa.toDto(dto.empresa, "FamiliaProduto");
|
|
@@ -6299,7 +6914,7 @@
|
|
|
6299
6914
|
return FamiliaProduto;
|
|
6300
6915
|
}());
|
|
6301
6916
|
|
|
6302
|
-
var moment$
|
|
6917
|
+
var moment$i = _moment;
|
|
6303
6918
|
var Produto = /** @class */ (function () {
|
|
6304
6919
|
function Produto() {
|
|
6305
6920
|
this.produtoMisto = false;
|
|
@@ -6307,8 +6922,8 @@
|
|
|
6307
6922
|
}
|
|
6308
6923
|
Produto.fromDto = function (produtoDto, originEntity) {
|
|
6309
6924
|
var model = __assign({}, produtoDto);
|
|
6310
|
-
model.createdDate = model.createdDate && moment$
|
|
6311
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
6925
|
+
model.createdDate = model.createdDate && moment$i(model.createdDate).toDate();
|
|
6926
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$i(model.lastModifiedDate).toDate();
|
|
6312
6927
|
var lookupSeparator = " - ";
|
|
6313
6928
|
var displayFields = [
|
|
6314
6929
|
"codigo",
|
|
@@ -6329,8 +6944,8 @@
|
|
|
6329
6944
|
};
|
|
6330
6945
|
Produto.toDto = function (produto, originEntity) {
|
|
6331
6946
|
var dto = __assign({}, produto);
|
|
6332
|
-
dto.createdDate = dto.createdDate && moment$
|
|
6333
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
6947
|
+
dto.createdDate = dto.createdDate && moment$i(dto.createdDate).format();
|
|
6948
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$i(dto.lastModifiedDate).format();
|
|
6334
6949
|
delete dto.label;
|
|
6335
6950
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
6336
6951
|
dto.empresa = Empresa.toDto(dto.empresa, "Produto");
|
|
@@ -6347,7 +6962,7 @@
|
|
|
6347
6962
|
return Produto;
|
|
6348
6963
|
}());
|
|
6349
6964
|
|
|
6350
|
-
var moment$
|
|
6965
|
+
var moment$j = _moment;
|
|
6351
6966
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
6352
6967
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
6353
6968
|
var Derivacao = /** @class */ (function () {
|
|
@@ -6357,8 +6972,8 @@
|
|
|
6357
6972
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
6358
6973
|
Derivacao.fromDto = function (derivacaoDto, originEntity) {
|
|
6359
6974
|
var model = __assign({}, derivacaoDto);
|
|
6360
|
-
model.createdDate = model.createdDate && moment$
|
|
6361
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
6975
|
+
model.createdDate = model.createdDate && moment$j(model.createdDate).toDate();
|
|
6976
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$j(model.lastModifiedDate).toDate();
|
|
6362
6977
|
var lookupSeparator = " - ";
|
|
6363
6978
|
var displayFields = ["codigo", "descricao"];
|
|
6364
6979
|
model.label = getLookupLabel(model, displayFields, lookupSeparator);
|
|
@@ -6370,8 +6985,8 @@
|
|
|
6370
6985
|
};
|
|
6371
6986
|
Derivacao.toDto = function (derivacao, originEntity) {
|
|
6372
6987
|
var dto = __assign({}, derivacao);
|
|
6373
|
-
dto.createdDate = dto.createdDate && moment$
|
|
6374
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
6988
|
+
dto.createdDate = dto.createdDate && moment$j(dto.createdDate).format();
|
|
6989
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$j(dto.lastModifiedDate).format();
|
|
6375
6990
|
delete dto.label;
|
|
6376
6991
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
6377
6992
|
dto.empresa = Empresa.toDto(dto.empresa, "Derivacao");
|
|
@@ -6384,7 +6999,7 @@
|
|
|
6384
6999
|
/*{CA:FILE_CONTENTS:START}*/
|
|
6385
7000
|
/*{CA:FILE_CONTENTS:END}*/
|
|
6386
7001
|
|
|
6387
|
-
var moment$
|
|
7002
|
+
var moment$k = _moment;
|
|
6388
7003
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
6389
7004
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
6390
7005
|
var Transportadora = /** @class */ (function () {
|
|
@@ -6394,8 +7009,8 @@
|
|
|
6394
7009
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
6395
7010
|
Transportadora.fromDto = function (transportadoraDto, originEntity) {
|
|
6396
7011
|
var model = __assign({}, transportadoraDto);
|
|
6397
|
-
model.createdDate = model.createdDate && moment$
|
|
6398
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
7012
|
+
model.createdDate = model.createdDate && moment$k(model.createdDate).toDate();
|
|
7013
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$k(model.lastModifiedDate).toDate();
|
|
6399
7014
|
var lookupSeparator = " - ";
|
|
6400
7015
|
var displayFields = [
|
|
6401
7016
|
"codigo", "pessoa.nome", "pessoa.cpfCnpj"
|
|
@@ -6409,8 +7024,8 @@
|
|
|
6409
7024
|
};
|
|
6410
7025
|
Transportadora.toDto = function (transportadora, originEntity) {
|
|
6411
7026
|
var dto = __assign({}, transportadora);
|
|
6412
|
-
dto.createdDate = dto.createdDate && moment$
|
|
6413
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
7027
|
+
dto.createdDate = dto.createdDate && moment$k(dto.createdDate).format();
|
|
7028
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$k(dto.lastModifiedDate).format();
|
|
6414
7029
|
delete dto.label;
|
|
6415
7030
|
if (originEntity !== "Pessoa" && dto.pessoa)
|
|
6416
7031
|
dto.pessoa = Pessoa.toDto(dto.pessoa, "Transportadora");
|
|
@@ -6423,7 +7038,7 @@
|
|
|
6423
7038
|
/*{CA:FILE_CONTENTS:START}*/
|
|
6424
7039
|
/*{CA:FILE_CONTENTS:END}*/
|
|
6425
7040
|
|
|
6426
|
-
var moment$
|
|
7041
|
+
var moment$l = _moment;
|
|
6427
7042
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
6428
7043
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
6429
7044
|
var Devolucao = /** @class */ (function () {
|
|
@@ -6433,8 +7048,8 @@
|
|
|
6433
7048
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
6434
7049
|
Devolucao.fromDto = function (devolucaoDto, originEntity) {
|
|
6435
7050
|
var model = __assign({}, devolucaoDto);
|
|
6436
|
-
model.createdDate = model.createdDate && moment$
|
|
6437
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
7051
|
+
model.createdDate = model.createdDate && moment$l(model.createdDate).toDate();
|
|
7052
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$l(model.lastModifiedDate).toDate();
|
|
6438
7053
|
var lookupSeparator = " - ";
|
|
6439
7054
|
var displayFields = [
|
|
6440
7055
|
''
|
|
@@ -6458,8 +7073,8 @@
|
|
|
6458
7073
|
};
|
|
6459
7074
|
Devolucao.toDto = function (devolucao, originEntity) {
|
|
6460
7075
|
var dto = __assign({}, devolucao);
|
|
6461
|
-
dto.createdDate = dto.createdDate && moment$
|
|
6462
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
7076
|
+
dto.createdDate = dto.createdDate && moment$l(dto.createdDate).format();
|
|
7077
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$l(dto.lastModifiedDate).format();
|
|
6463
7078
|
delete dto.label;
|
|
6464
7079
|
if (originEntity !== "Pessoa" && dto.fornecedor)
|
|
6465
7080
|
dto.fornecedor = Pessoa.toDto(dto.fornecedor, "Devolucao");
|
|
@@ -7156,7 +7771,7 @@
|
|
|
7156
7771
|
router.ActivatedRoute,
|
|
7157
7772
|
DevolucaoChegadaVeiculoOverride,
|
|
7158
7773
|
api.ConfirmationService,
|
|
7159
|
-
AgendaService,
|
|
7774
|
+
AgendaService$1,
|
|
7160
7775
|
ErpProcessService,
|
|
7161
7776
|
ErpFormConfigService,
|
|
7162
7777
|
HasChangeService])
|
|
@@ -7202,7 +7817,7 @@
|
|
|
7202
7817
|
|
|
7203
7818
|
/*{CA:PACKAGE_IMPORTS:START}*/
|
|
7204
7819
|
/*{CA:PACKAGE_IMPORTS:END}*/
|
|
7205
|
-
var moment$
|
|
7820
|
+
var moment$m = _moment;
|
|
7206
7821
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
7207
7822
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
7208
7823
|
var Expedicao = /** @class */ (function () {
|
|
@@ -7212,8 +7827,8 @@
|
|
|
7212
7827
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
7213
7828
|
Expedicao.fromDto = function (expedicaoDto, originEntity) {
|
|
7214
7829
|
var model = __assign({}, expedicaoDto);
|
|
7215
|
-
model.createdDate = model.createdDate && moment$
|
|
7216
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
7830
|
+
model.createdDate = model.createdDate && moment$m(model.createdDate).toDate();
|
|
7831
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$m(model.lastModifiedDate).toDate();
|
|
7217
7832
|
var lookupSeparator = " - ";
|
|
7218
7833
|
var displayFields = [
|
|
7219
7834
|
"id",
|
|
@@ -7252,8 +7867,8 @@
|
|
|
7252
7867
|
};
|
|
7253
7868
|
Expedicao.toDto = function (expedicao, originEntity) {
|
|
7254
7869
|
var dto = __assign({}, expedicao);
|
|
7255
|
-
dto.createdDate = dto.createdDate && moment$
|
|
7256
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
7870
|
+
dto.createdDate = dto.createdDate && moment$m(dto.createdDate).format();
|
|
7871
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$m(dto.lastModifiedDate).format();
|
|
7257
7872
|
delete dto.label;
|
|
7258
7873
|
if (originEntity !== "Pessoa" && dto.clienteFaturamento)
|
|
7259
7874
|
dto.clienteFaturamento = Pessoa.toDto(dto.clienteFaturamento, "Recebimento");
|
|
@@ -7270,7 +7885,7 @@
|
|
|
7270
7885
|
return Expedicao;
|
|
7271
7886
|
}());
|
|
7272
7887
|
|
|
7273
|
-
var moment$
|
|
7888
|
+
var moment$n = _moment;
|
|
7274
7889
|
var ExpedicaoFormComponent = /** @class */ (function () {
|
|
7275
7890
|
function ExpedicaoFormComponent(expedicaoService, router, route, messageService, formBuilder, translate, hotkeysService, fieldCustomization, focusService, pessoaService, filialService, transportadoraService, pedidoVendaService, pedidoVendaItemService, agendaService, override, confirmationService, erpProcessService, erpFormConfigService, hasChangeService) {
|
|
7276
7891
|
this.expedicaoService = expedicaoService;
|
|
@@ -7820,11 +8435,11 @@
|
|
|
7820
8435
|
if (typeof value == "number")
|
|
7821
8436
|
return name + " eq " + value;
|
|
7822
8437
|
else if (type == angularComponents.FieldType.Date)
|
|
7823
|
-
return name + " eq '" + moment$
|
|
8438
|
+
return name + " eq '" + moment$n(value).format("YYYY-MM-DD") + "'";
|
|
7824
8439
|
else if (type == angularComponents.FieldType.Time)
|
|
7825
|
-
return name + " eq '" + moment$
|
|
8440
|
+
return name + " eq '" + moment$n(value).format("HH:mm:ss") + "'";
|
|
7826
8441
|
else if (type == angularComponents.FieldType.DateTime)
|
|
7827
|
-
return name + " eq '" + moment$
|
|
8442
|
+
return name + " eq '" + moment$n(value).format() + "'";
|
|
7828
8443
|
else if (type == angularComponents.FieldType.Enum)
|
|
7829
8444
|
return name + " eq '" + value + "'";
|
|
7830
8445
|
else if (type == angularComponents.FieldType.String)
|
|
@@ -7876,11 +8491,11 @@
|
|
|
7876
8491
|
if (typeof value == "number")
|
|
7877
8492
|
return name + " eq " + value;
|
|
7878
8493
|
else if (type == angularComponents.FieldType.Date)
|
|
7879
|
-
return name + " eq '" + moment$
|
|
8494
|
+
return name + " eq '" + moment$n(value).format("YYYY-MM-DD") + "'";
|
|
7880
8495
|
else if (type == angularComponents.FieldType.Time)
|
|
7881
|
-
return name + " eq '" + moment$
|
|
8496
|
+
return name + " eq '" + moment$n(value).format("HH:mm:ss") + "'";
|
|
7882
8497
|
else if (type == angularComponents.FieldType.DateTime)
|
|
7883
|
-
return name + " eq '" + moment$
|
|
8498
|
+
return name + " eq '" + moment$n(value).format() + "'";
|
|
7884
8499
|
else if (type == angularComponents.FieldType.Enum)
|
|
7885
8500
|
return name + " eq '" + value + "'";
|
|
7886
8501
|
else if (type == angularComponents.FieldType.String)
|
|
@@ -8007,11 +8622,11 @@
|
|
|
8007
8622
|
if (typeof value == "number")
|
|
8008
8623
|
return name + " eq " + value;
|
|
8009
8624
|
else if (type == angularComponents.FieldType.Date)
|
|
8010
|
-
return name + " eq '" + moment$
|
|
8625
|
+
return name + " eq '" + moment$n(value).format("YYYY-MM-DD") + "'";
|
|
8011
8626
|
else if (type == angularComponents.FieldType.Time)
|
|
8012
|
-
return name + " eq '" + moment$
|
|
8627
|
+
return name + " eq '" + moment$n(value).format("HH:mm:ss") + "'";
|
|
8013
8628
|
else if (type == angularComponents.FieldType.DateTime)
|
|
8014
|
-
return name + " eq '" + moment$
|
|
8629
|
+
return name + " eq '" + moment$n(value).format() + "'";
|
|
8015
8630
|
else if (type == angularComponents.FieldType.String)
|
|
8016
8631
|
return "containing(lower(" + name + "), lower('" + value.replace(/'/g, "\\'") + "'))";
|
|
8017
8632
|
else
|
|
@@ -8200,11 +8815,11 @@
|
|
|
8200
8815
|
if (typeof value == "number")
|
|
8201
8816
|
return name + " eq " + value;
|
|
8202
8817
|
else if (type == angularComponents.FieldType.Date)
|
|
8203
|
-
return name + " eq '" + moment$
|
|
8818
|
+
return name + " eq '" + moment$n(value).format("YYYY-MM-DD") + "'";
|
|
8204
8819
|
else if (type == angularComponents.FieldType.Time)
|
|
8205
|
-
return name + " eq '" + moment$
|
|
8820
|
+
return name + " eq '" + moment$n(value).format("HH:mm:ss") + "'";
|
|
8206
8821
|
else if (type == angularComponents.FieldType.DateTime)
|
|
8207
|
-
return name + " eq '" + moment$
|
|
8822
|
+
return name + " eq '" + moment$n(value).format() + "'";
|
|
8208
8823
|
else if (type == angularComponents.FieldType.String)
|
|
8209
8824
|
return "containing(lower(" + name + "), lower('" + value.replace(/'/g, "\\'") + "'))";
|
|
8210
8825
|
else
|
|
@@ -8246,11 +8861,11 @@
|
|
|
8246
8861
|
if (typeof value == "number")
|
|
8247
8862
|
return name + " eq " + value;
|
|
8248
8863
|
else if (type == angularComponents.FieldType.Date)
|
|
8249
|
-
return name + " eq '" + moment$
|
|
8864
|
+
return name + " eq '" + moment$n(value).format("YYYY-MM-DD") + "'";
|
|
8250
8865
|
else if (type == angularComponents.FieldType.Time)
|
|
8251
|
-
return name + " eq '" + moment$
|
|
8866
|
+
return name + " eq '" + moment$n(value).format("HH:mm:ss") + "'";
|
|
8252
8867
|
else if (type == angularComponents.FieldType.DateTime)
|
|
8253
|
-
return name + " eq '" + moment$
|
|
8868
|
+
return name + " eq '" + moment$n(value).format() + "'";
|
|
8254
8869
|
else if (type == angularComponents.FieldType.Enum)
|
|
8255
8870
|
return name + " eq '" + value + "'";
|
|
8256
8871
|
else if (type == angularComponents.FieldType.String)
|
|
@@ -8737,7 +9352,7 @@
|
|
|
8737
9352
|
TransportadoraService,
|
|
8738
9353
|
PedidoVendaService,
|
|
8739
9354
|
PedidoVendaItemService,
|
|
8740
|
-
AgendaService,
|
|
9355
|
+
AgendaService$1,
|
|
8741
9356
|
ExpedicaoChegadaVeiculoOverride,
|
|
8742
9357
|
api.ConfirmationService,
|
|
8743
9358
|
ErpProcessService,
|
|
@@ -9018,7 +9633,7 @@
|
|
|
9018
9633
|
ProcessoAvulsoChegadaVeiculoOverride = __decorate([
|
|
9019
9634
|
core.Injectable(),
|
|
9020
9635
|
__metadata("design:paramtypes", [ymsRoutines.ChegadaVeiculoOverride,
|
|
9021
|
-
AgendaService,
|
|
9636
|
+
AgendaService$1,
|
|
9022
9637
|
ProcessoAvulsoService])
|
|
9023
9638
|
], ProcessoAvulsoChegadaVeiculoOverride);
|
|
9024
9639
|
return ProcessoAvulsoChegadaVeiculoOverride;
|
|
@@ -9324,7 +9939,7 @@
|
|
|
9324
9939
|
ProcessoAvulsoChegadaVeiculoOverride,
|
|
9325
9940
|
core$1.TranslateService,
|
|
9326
9941
|
api.ConfirmationService,
|
|
9327
|
-
AgendaService,
|
|
9942
|
+
AgendaService$1,
|
|
9328
9943
|
ErpProcessService,
|
|
9329
9944
|
ErpFormConfigService,
|
|
9330
9945
|
HasChangeService])
|
|
@@ -9367,7 +9982,7 @@
|
|
|
9367
9982
|
return ProcessoAvulsoInfoComponent;
|
|
9368
9983
|
}());
|
|
9369
9984
|
|
|
9370
|
-
var moment$
|
|
9985
|
+
var moment$o = _moment;
|
|
9371
9986
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
9372
9987
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
9373
9988
|
var Safra = /** @class */ (function () {
|
|
@@ -9377,10 +9992,10 @@
|
|
|
9377
9992
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
9378
9993
|
Safra.fromDto = function (safraDto, originEntity) {
|
|
9379
9994
|
var model = __assign({}, safraDto);
|
|
9380
|
-
model.competenciaInicial = model.competenciaInicial && moment$
|
|
9381
|
-
model.competenciaFinal = model.competenciaFinal && moment$
|
|
9382
|
-
model.createdDate = model.createdDate && moment$
|
|
9383
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
9995
|
+
model.competenciaInicial = model.competenciaInicial && moment$o(model.competenciaInicial).toDate();
|
|
9996
|
+
model.competenciaFinal = model.competenciaFinal && moment$o(model.competenciaFinal).toDate();
|
|
9997
|
+
model.createdDate = model.createdDate && moment$o(model.createdDate).toDate();
|
|
9998
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$o(model.lastModifiedDate).toDate();
|
|
9384
9999
|
var lookupSeparator = " - ";
|
|
9385
10000
|
var displayFields = [
|
|
9386
10001
|
"codigo",
|
|
@@ -9393,10 +10008,10 @@
|
|
|
9393
10008
|
};
|
|
9394
10009
|
Safra.toDto = function (safra, originEntity) {
|
|
9395
10010
|
var dto = __assign({}, safra);
|
|
9396
|
-
dto.competenciaInicial = dto.competenciaInicial && moment$
|
|
9397
|
-
dto.competenciaFinal = dto.competenciaFinal && moment$
|
|
9398
|
-
dto.createdDate = dto.createdDate && moment$
|
|
9399
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
10011
|
+
dto.competenciaInicial = dto.competenciaInicial && moment$o(dto.competenciaInicial).format("YYYY-MM-DD");
|
|
10012
|
+
dto.competenciaFinal = dto.competenciaFinal && moment$o(dto.competenciaFinal).format("YYYY-MM-DD");
|
|
10013
|
+
dto.createdDate = dto.createdDate && moment$o(dto.createdDate).format();
|
|
10014
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$o(dto.lastModifiedDate).format();
|
|
9400
10015
|
delete dto.label;
|
|
9401
10016
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
9402
10017
|
dto.empresa = Empresa.toDto(dto.empresa, "Safra");
|
|
@@ -9409,7 +10024,7 @@
|
|
|
9409
10024
|
|
|
9410
10025
|
/*{CA:PACKAGE_IMPORTS:START}*/
|
|
9411
10026
|
/*{CA:PACKAGE_IMPORTS:END}*/
|
|
9412
|
-
var moment$
|
|
10027
|
+
var moment$p = _moment;
|
|
9413
10028
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
9414
10029
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
9415
10030
|
var RecebimentoOrdemCompra = /** @class */ (function () {
|
|
@@ -9419,8 +10034,8 @@
|
|
|
9419
10034
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
9420
10035
|
RecebimentoOrdemCompra.fromDto = function (recebimentoOrdemCompraDto, originEntity) {
|
|
9421
10036
|
var model = __assign({}, recebimentoOrdemCompraDto);
|
|
9422
|
-
model.createdDate = model.createdDate && moment$
|
|
9423
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
10037
|
+
model.createdDate = model.createdDate && moment$p(model.createdDate).toDate();
|
|
10038
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$p(model.lastModifiedDate).toDate();
|
|
9424
10039
|
var lookupSeparator = " - ";
|
|
9425
10040
|
var displayFields = [
|
|
9426
10041
|
''
|
|
@@ -9449,8 +10064,8 @@
|
|
|
9449
10064
|
};
|
|
9450
10065
|
RecebimentoOrdemCompra.toDto = function (recebimentoOrdemCompra, originEntity) {
|
|
9451
10066
|
var dto = __assign({}, recebimentoOrdemCompra);
|
|
9452
|
-
dto.createdDate = dto.createdDate && moment$
|
|
9453
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
10067
|
+
dto.createdDate = dto.createdDate && moment$p(dto.createdDate).format();
|
|
10068
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$p(dto.lastModifiedDate).format();
|
|
9454
10069
|
delete dto.label;
|
|
9455
10070
|
if (originEntity !== "Agenda" && dto.agenda)
|
|
9456
10071
|
dto.agenda = Agenda.toDto(dto.agenda, "RecebimentoOrdemCompra");
|
|
@@ -9513,7 +10128,7 @@
|
|
|
9513
10128
|
RecebimentoOrdemCompraChegadaVeiculoOverride = __decorate([
|
|
9514
10129
|
core.Injectable(),
|
|
9515
10130
|
__metadata("design:paramtypes", [ymsRoutines.ChegadaVeiculoOverride,
|
|
9516
|
-
AgendaService,
|
|
10131
|
+
AgendaService$1,
|
|
9517
10132
|
RecebimentoOrdemCompraService])
|
|
9518
10133
|
], RecebimentoOrdemCompraChegadaVeiculoOverride);
|
|
9519
10134
|
return RecebimentoOrdemCompraChegadaVeiculoOverride;
|
|
@@ -10694,7 +11309,7 @@
|
|
|
10694
11309
|
NotaValidatorService,
|
|
10695
11310
|
api.ConfirmationService,
|
|
10696
11311
|
api.DialogService,
|
|
10697
|
-
AgendaService,
|
|
11312
|
+
AgendaService$1,
|
|
10698
11313
|
ErpProcessService,
|
|
10699
11314
|
ErpFormConfigService,
|
|
10700
11315
|
VerificaNotafiscal,
|
|
@@ -10741,7 +11356,7 @@
|
|
|
10741
11356
|
return RecebimentoOrdemCompraInfoComponent;
|
|
10742
11357
|
}());
|
|
10743
11358
|
|
|
10744
|
-
var moment$
|
|
11359
|
+
var moment$q = _moment;
|
|
10745
11360
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
10746
11361
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
10747
11362
|
var ContratoCompra = /** @class */ (function () {
|
|
@@ -10751,11 +11366,11 @@
|
|
|
10751
11366
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
10752
11367
|
ContratoCompra.fromDto = function (contratoCompraDto, originEntity) {
|
|
10753
11368
|
var model = __assign({}, contratoCompraDto);
|
|
10754
|
-
model.dataEmissao = model.dataEmissao && moment$
|
|
10755
|
-
model.dataInicioVigencia = model.dataInicioVigencia && moment$
|
|
10756
|
-
model.dataFimVigencia = model.dataFimVigencia && moment$
|
|
10757
|
-
model.createdDate = model.createdDate && moment$
|
|
10758
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
11369
|
+
model.dataEmissao = model.dataEmissao && moment$q(model.dataEmissao).toDate();
|
|
11370
|
+
model.dataInicioVigencia = model.dataInicioVigencia && moment$q(model.dataInicioVigencia).toDate();
|
|
11371
|
+
model.dataFimVigencia = model.dataFimVigencia && moment$q(model.dataFimVigencia).toDate();
|
|
11372
|
+
model.createdDate = model.createdDate && moment$q(model.createdDate).toDate();
|
|
11373
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$q(model.lastModifiedDate).toDate();
|
|
10759
11374
|
model.label = "N\u00FAmero: " + model.numero + ", Filial: " + model.filial.codigo;
|
|
10760
11375
|
if (originEntity !== "Empresa" && model.empresa)
|
|
10761
11376
|
model.empresa = Empresa.fromDto(model.empresa, "ContratoCompra");
|
|
@@ -10771,11 +11386,11 @@
|
|
|
10771
11386
|
};
|
|
10772
11387
|
ContratoCompra.toDto = function (contratoCompra, originEntity) {
|
|
10773
11388
|
var dto = __assign({}, contratoCompra);
|
|
10774
|
-
dto.dataEmissao = dto.dataEmissao && moment$
|
|
10775
|
-
dto.dataInicioVigencia = dto.dataInicioVigencia && moment$
|
|
10776
|
-
dto.dataFimVigencia = dto.dataFimVigencia && moment$
|
|
10777
|
-
dto.createdDate = dto.createdDate && moment$
|
|
10778
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
11389
|
+
dto.dataEmissao = dto.dataEmissao && moment$q(dto.dataEmissao).format("YYYY-MM-DD");
|
|
11390
|
+
dto.dataInicioVigencia = dto.dataInicioVigencia && moment$q(dto.dataInicioVigencia).format("YYYY-MM-DD");
|
|
11391
|
+
dto.dataFimVigencia = dto.dataFimVigencia && moment$q(dto.dataFimVigencia).format("YYYY-MM-DD");
|
|
11392
|
+
dto.createdDate = dto.createdDate && moment$q(dto.createdDate).format();
|
|
11393
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$q(dto.lastModifiedDate).format();
|
|
10779
11394
|
delete dto.label;
|
|
10780
11395
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
10781
11396
|
dto.empresa = Empresa.toDto(dto.empresa, "ContratoCompra");
|
|
@@ -10796,7 +11411,7 @@
|
|
|
10796
11411
|
/*{CA:FILE_CONTENTS:START}*/
|
|
10797
11412
|
/*{CA:FILE_CONTENTS:END}*/
|
|
10798
11413
|
|
|
10799
|
-
var moment$
|
|
11414
|
+
var moment$r = _moment;
|
|
10800
11415
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
10801
11416
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
10802
11417
|
var ContratoCompraItem = /** @class */ (function () {
|
|
@@ -10807,9 +11422,9 @@
|
|
|
10807
11422
|
ContratoCompraItem.fromDto = function (contratoCompraItemDto, originEntity) {
|
|
10808
11423
|
var model = __assign({}, contratoCompraItemDto);
|
|
10809
11424
|
model.sku = model.sku || {};
|
|
10810
|
-
model.dataCompetencia = model.dataCompetencia && moment$
|
|
10811
|
-
model.createdDate = model.createdDate && moment$
|
|
10812
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
11425
|
+
model.dataCompetencia = model.dataCompetencia && moment$r(model.dataCompetencia).toDate();
|
|
11426
|
+
model.createdDate = model.createdDate && moment$r(model.createdDate).toDate();
|
|
11427
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$r(model.lastModifiedDate).toDate();
|
|
10813
11428
|
model.label = model.sequencia + " - " + model.sku.descricao + " - " + model.sku.codigo;
|
|
10814
11429
|
if (originEntity !== "ContratoCompra" && model.contrato)
|
|
10815
11430
|
model.contrato = ContratoCompra.fromDto(model.contrato, "ContratoCompraItem");
|
|
@@ -10819,9 +11434,9 @@
|
|
|
10819
11434
|
};
|
|
10820
11435
|
ContratoCompraItem.toDto = function (contratoCompraItem, originEntity) {
|
|
10821
11436
|
var dto = __assign({}, contratoCompraItem);
|
|
10822
|
-
dto.dataCompetencia = dto.dataCompetencia && moment$
|
|
10823
|
-
dto.createdDate = dto.createdDate && moment$
|
|
10824
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
11437
|
+
dto.dataCompetencia = dto.dataCompetencia && moment$r(dto.dataCompetencia).format("YYYY-MM-DD");
|
|
11438
|
+
dto.createdDate = dto.createdDate && moment$r(dto.createdDate).format();
|
|
11439
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$r(dto.lastModifiedDate).format();
|
|
10825
11440
|
delete dto.label;
|
|
10826
11441
|
if (originEntity !== "ContratoCompra" && dto.contrato)
|
|
10827
11442
|
dto.contrato = ContratoCompra.toDto(dto.contrato, "ContratoCompraItem");
|
|
@@ -10834,7 +11449,7 @@
|
|
|
10834
11449
|
/*{CA:FILE_CONTENTS:START}*/
|
|
10835
11450
|
/*{CA:FILE_CONTENTS:END}*/
|
|
10836
11451
|
|
|
10837
|
-
var moment$
|
|
11452
|
+
var moment$s = _moment;
|
|
10838
11453
|
var ContratoFormComponent = /** @class */ (function () {
|
|
10839
11454
|
function ContratoFormComponent(dialogRef, dialogConfig, contratoCompraService, contratoCompraItemService, translate, fb, route) {
|
|
10840
11455
|
this.dialogRef = dialogRef;
|
|
@@ -10928,7 +11543,7 @@
|
|
|
10928
11543
|
if (filial && filial.empresa && filial.empresa.id) {
|
|
10929
11544
|
filter.empresaId = filial.empresa.id;
|
|
10930
11545
|
}
|
|
10931
|
-
filter.dataEmissao = filter.dataEmissao && moment$
|
|
11546
|
+
filter.dataEmissao = filter.dataEmissao && moment$s(filter.dataEmissao).format("YYYY-MM-DD");
|
|
10932
11547
|
var sort = (multiSortMeta || []).length ? { field: multiSortMeta[0].field, order: multiSortMeta[0].order === 1 ? 'Asc' : 'Desc' } : { field: 'numero', order: 'Asc' };
|
|
10933
11548
|
this.contratoCompraService
|
|
10934
11549
|
.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: {
|
|
@@ -11157,14 +11772,14 @@
|
|
|
11157
11772
|
return Transgenia;
|
|
11158
11773
|
}());
|
|
11159
11774
|
|
|
11160
|
-
var moment$
|
|
11775
|
+
var moment$t = _moment;
|
|
11161
11776
|
var RecebimentoContrato = /** @class */ (function () {
|
|
11162
11777
|
function RecebimentoContrato() {
|
|
11163
11778
|
}
|
|
11164
11779
|
RecebimentoContrato.fromDto = function (recebimentoDto, originEntity) {
|
|
11165
11780
|
var model = __assign({}, recebimentoDto);
|
|
11166
|
-
model.createdDate = model.createdDate && moment$
|
|
11167
|
-
model.lastModifiedDate = model.lastModifiedDate && moment$
|
|
11781
|
+
model.createdDate = model.createdDate && moment$t(model.createdDate).toDate();
|
|
11782
|
+
model.lastModifiedDate = model.lastModifiedDate && moment$t(model.lastModifiedDate).toDate();
|
|
11168
11783
|
var lookupSeparator = " - ";
|
|
11169
11784
|
var displayFields = [
|
|
11170
11785
|
"id",
|
|
@@ -11213,8 +11828,8 @@
|
|
|
11213
11828
|
};
|
|
11214
11829
|
RecebimentoContrato.toDto = function (recebimento, originEntity) {
|
|
11215
11830
|
var dto = __assign({}, recebimento);
|
|
11216
|
-
dto.createdDate = dto.createdDate && moment$
|
|
11217
|
-
dto.lastModifiedDate = dto.lastModifiedDate && moment$
|
|
11831
|
+
dto.createdDate = dto.createdDate && moment$t(dto.createdDate).format();
|
|
11832
|
+
dto.lastModifiedDate = dto.lastModifiedDate && moment$t(dto.lastModifiedDate).format();
|
|
11218
11833
|
delete dto.label;
|
|
11219
11834
|
if (originEntity !== "Pessoa" && dto.fornecedor)
|
|
11220
11835
|
dto.fornecedor = Pessoa.toDto(dto.fornecedor, "Recebimento");
|
|
@@ -11248,7 +11863,7 @@
|
|
|
11248
11863
|
Situacao["ATIVO"] = "ATIVO";
|
|
11249
11864
|
})(Situacao || (Situacao = {}));
|
|
11250
11865
|
|
|
11251
|
-
var moment$
|
|
11866
|
+
var moment$u = _moment;
|
|
11252
11867
|
var RecebimentoFormComponent = /** @class */ (function () {
|
|
11253
11868
|
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) {
|
|
11254
11869
|
var _this = this;
|
|
@@ -11930,11 +12545,11 @@
|
|
|
11930
12545
|
if (typeof value == "number")
|
|
11931
12546
|
return name + " eq " + value;
|
|
11932
12547
|
else if (type == angularComponents.FieldType.Date)
|
|
11933
|
-
return name + " eq '" + moment$
|
|
12548
|
+
return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
|
|
11934
12549
|
else if (type == angularComponents.FieldType.Time)
|
|
11935
|
-
return name + " eq '" + moment$
|
|
12550
|
+
return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
|
|
11936
12551
|
else if (type == angularComponents.FieldType.DateTime)
|
|
11937
|
-
return name + " eq '" + moment$
|
|
12552
|
+
return name + " eq '" + moment$u(value).format() + "'";
|
|
11938
12553
|
else if (type == angularComponents.FieldType.String)
|
|
11939
12554
|
return "containing(lower(" + name + "), lower('" + value.replace(/'/g, "\\'") + "'))";
|
|
11940
12555
|
else
|
|
@@ -11973,11 +12588,11 @@
|
|
|
11973
12588
|
if (typeof value == "number")
|
|
11974
12589
|
return name + " eq " + value;
|
|
11975
12590
|
else if (type == angularComponents.FieldType.Date)
|
|
11976
|
-
return name + " eq '" + moment$
|
|
12591
|
+
return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
|
|
11977
12592
|
else if (type == angularComponents.FieldType.Time)
|
|
11978
|
-
return name + " eq '" + moment$
|
|
12593
|
+
return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
|
|
11979
12594
|
else if (type == angularComponents.FieldType.DateTime)
|
|
11980
|
-
return name + " eq '" + moment$
|
|
12595
|
+
return name + " eq '" + moment$u(value).format() + "'";
|
|
11981
12596
|
else if (type == angularComponents.FieldType.Enum)
|
|
11982
12597
|
return name + " eq '" + value + "'";
|
|
11983
12598
|
else if (type == angularComponents.FieldType.String)
|
|
@@ -12019,11 +12634,11 @@
|
|
|
12019
12634
|
if (typeof value == "number")
|
|
12020
12635
|
return name + " eq " + value;
|
|
12021
12636
|
else if (type == angularComponents.FieldType.Date)
|
|
12022
|
-
return name + " eq '" + moment$
|
|
12637
|
+
return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
|
|
12023
12638
|
else if (type == angularComponents.FieldType.Time)
|
|
12024
|
-
return name + " eq '" + moment$
|
|
12639
|
+
return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
|
|
12025
12640
|
else if (type == angularComponents.FieldType.DateTime)
|
|
12026
|
-
return name + " eq '" + moment$
|
|
12641
|
+
return name + " eq '" + moment$u(value).format() + "'";
|
|
12027
12642
|
else if (type == angularComponents.FieldType.String)
|
|
12028
12643
|
return "containing(lower(" + name + "), lower('" + value.replace(/'/g, "\\'") + "'))";
|
|
12029
12644
|
else
|
|
@@ -12063,11 +12678,11 @@
|
|
|
12063
12678
|
if (typeof value == "number")
|
|
12064
12679
|
return name + " eq " + value;
|
|
12065
12680
|
else if (type == angularComponents.FieldType.Date)
|
|
12066
|
-
return name + " eq '" + moment$
|
|
12681
|
+
return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
|
|
12067
12682
|
else if (type == angularComponents.FieldType.Time)
|
|
12068
|
-
return name + " eq '" + moment$
|
|
12683
|
+
return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
|
|
12069
12684
|
else if (type == angularComponents.FieldType.DateTime)
|
|
12070
|
-
return name + " eq '" + moment$
|
|
12685
|
+
return name + " eq '" + moment$u(value).format() + "'";
|
|
12071
12686
|
else if (type == angularComponents.FieldType.Enum)
|
|
12072
12687
|
return name + " eq '" + value + "'";
|
|
12073
12688
|
else if (type == angularComponents.FieldType.String)
|
|
@@ -12164,11 +12779,11 @@
|
|
|
12164
12779
|
if (typeof value == "number")
|
|
12165
12780
|
return name + " eq " + value;
|
|
12166
12781
|
else if (type == angularComponents.FieldType.Date)
|
|
12167
|
-
return name + " eq '" + moment$
|
|
12782
|
+
return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
|
|
12168
12783
|
else if (type == angularComponents.FieldType.Time)
|
|
12169
|
-
return name + " eq '" + moment$
|
|
12784
|
+
return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
|
|
12170
12785
|
else if (type == angularComponents.FieldType.DateTime)
|
|
12171
|
-
return name + " eq '" + moment$
|
|
12786
|
+
return name + " eq '" + moment$u(value).format() + "'";
|
|
12172
12787
|
else if (type == angularComponents.FieldType.String)
|
|
12173
12788
|
return "containing(lower(" + name + "), lower('" + value.replace(/'/g, "\\'") + "'))";
|
|
12174
12789
|
else
|
|
@@ -12206,11 +12821,11 @@
|
|
|
12206
12821
|
if (typeof value == "number")
|
|
12207
12822
|
return name + " eq " + value;
|
|
12208
12823
|
else if (type == angularComponents.FieldType.Date)
|
|
12209
|
-
return name + " eq '" + moment$
|
|
12824
|
+
return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
|
|
12210
12825
|
else if (type == angularComponents.FieldType.Time)
|
|
12211
|
-
return name + " eq '" + moment$
|
|
12826
|
+
return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
|
|
12212
12827
|
else if (type == angularComponents.FieldType.DateTime)
|
|
12213
|
-
return name + " eq '" + moment$
|
|
12828
|
+
return name + " eq '" + moment$u(value).format() + "'";
|
|
12214
12829
|
else if (type == angularComponents.FieldType.Enum)
|
|
12215
12830
|
return name + " eq '" + value + "'";
|
|
12216
12831
|
else if (type == angularComponents.FieldType.String)
|
|
@@ -12259,11 +12874,11 @@
|
|
|
12259
12874
|
if (typeof value == "number")
|
|
12260
12875
|
return name + " eq " + value;
|
|
12261
12876
|
else if (type == angularComponents.FieldType.Date)
|
|
12262
|
-
return name + " eq '" + moment$
|
|
12877
|
+
return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
|
|
12263
12878
|
else if (type == angularComponents.FieldType.Time)
|
|
12264
|
-
return name + " eq '" + moment$
|
|
12879
|
+
return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
|
|
12265
12880
|
else if (type == angularComponents.FieldType.DateTime)
|
|
12266
|
-
return name + " eq '" + moment$
|
|
12881
|
+
return name + " eq '" + moment$u(value).format() + "'";
|
|
12267
12882
|
else if (type == angularComponents.FieldType.Enum)
|
|
12268
12883
|
return name + " eq '" + value + "'";
|
|
12269
12884
|
else if (type == angularComponents.FieldType.String)
|
|
@@ -13041,7 +13656,7 @@
|
|
|
13041
13656
|
NotaValidatorService,
|
|
13042
13657
|
TransgeniaService,
|
|
13043
13658
|
api.DialogService,
|
|
13044
|
-
AgendaService,
|
|
13659
|
+
AgendaService$1,
|
|
13045
13660
|
ErpProcessService,
|
|
13046
13661
|
ErpFormConfigService,
|
|
13047
13662
|
VerificaNotafiscal,
|
|
@@ -13206,7 +13821,7 @@
|
|
|
13206
13821
|
}());
|
|
13207
13822
|
|
|
13208
13823
|
exports.AgendaModule = AgendaModule;
|
|
13209
|
-
exports.AgendaService = AgendaService;
|
|
13824
|
+
exports.AgendaService = AgendaService$1;
|
|
13210
13825
|
exports.BalancaModule = BalancaModule;
|
|
13211
13826
|
exports.BalancasService = BalancasService;
|
|
13212
13827
|
exports.CamerasModule = CamerasModule;
|
|
@@ -13246,7 +13861,10 @@
|
|
|
13246
13861
|
exports.FormDescritor = FormDescritor;
|
|
13247
13862
|
exports.FormSamComponent = FormSamComponent;
|
|
13248
13863
|
exports.FormSamDescritor = FormSamDescritor;
|
|
13864
|
+
exports.FormWmsComponent = FormWmsComponent;
|
|
13865
|
+
exports.FormWmsDescritor = FormWmsDescritor;
|
|
13249
13866
|
exports.HasChangeService = HasChangeService;
|
|
13867
|
+
exports.INFORMACAOES_ADICIONAIS_HEADER = INFORMACAOES_ADICIONAIS_HEADER;
|
|
13250
13868
|
exports.InfoComponent = InfoComponent;
|
|
13251
13869
|
exports.InfoDescritor = InfoDescritor;
|
|
13252
13870
|
exports.IntegrationWebSocket = IntegrationWebSocket;
|
|
@@ -13293,42 +13911,52 @@
|
|
|
13293
13911
|
exports.VisitorListService = VisitorListService;
|
|
13294
13912
|
exports.VisualizarBalancaComponent = VisualizarBalancaComponent;
|
|
13295
13913
|
exports.VisualizarBalancaDescritor = VisualizarBalancaDescritor;
|
|
13914
|
+
exports.WmsModule = WmsModule;
|
|
13296
13915
|
exports.highlightLanguages = highlightLanguages;
|
|
13297
13916
|
exports.ɵa = Service;
|
|
13298
13917
|
exports.ɵb = CustomStompConfig;
|
|
13299
|
-
exports.ɵba =
|
|
13300
|
-
exports.ɵbb =
|
|
13301
|
-
exports.ɵbc =
|
|
13302
|
-
exports.ɵbd =
|
|
13303
|
-
exports.ɵbe =
|
|
13304
|
-
exports.ɵbf =
|
|
13305
|
-
exports.ɵbg =
|
|
13306
|
-
exports.ɵbh =
|
|
13307
|
-
exports.ɵbi =
|
|
13308
|
-
exports.ɵbj =
|
|
13309
|
-
exports.ɵbk =
|
|
13310
|
-
exports.ɵbl =
|
|
13311
|
-
exports.ɵbm =
|
|
13312
|
-
exports.ɵbn =
|
|
13313
|
-
exports.ɵbo =
|
|
13314
|
-
exports.ɵbp =
|
|
13315
|
-
exports.ɵbq =
|
|
13316
|
-
exports.ɵbr =
|
|
13317
|
-
exports.ɵbs =
|
|
13318
|
-
exports.ɵbt =
|
|
13319
|
-
exports.ɵbu =
|
|
13320
|
-
exports.ɵbv =
|
|
13321
|
-
exports.ɵbw =
|
|
13322
|
-
exports.ɵbx =
|
|
13323
|
-
exports.ɵby =
|
|
13324
|
-
exports.ɵbz =
|
|
13918
|
+
exports.ɵba = EntityService$2;
|
|
13919
|
+
exports.ɵbb = EntityService$1;
|
|
13920
|
+
exports.ɵbc = InsertKeyModule;
|
|
13921
|
+
exports.ɵbd = InsertKeyComponent;
|
|
13922
|
+
exports.ɵbe = IntegrationService;
|
|
13923
|
+
exports.ɵbf = RecebimentoFormComponent;
|
|
13924
|
+
exports.ɵbg = DerivacaoService;
|
|
13925
|
+
exports.ɵbh = NotaValidatorService;
|
|
13926
|
+
exports.ɵbi = TransgeniaService;
|
|
13927
|
+
exports.ɵbj = VerificaNotafiscal;
|
|
13928
|
+
exports.ɵbk = BuildFormField;
|
|
13929
|
+
exports.ɵbl = ExpedicaoFormComponent;
|
|
13930
|
+
exports.ɵbm = ExpedicaoInfoComponent;
|
|
13931
|
+
exports.ɵbn = RecebimentoInfoComponent;
|
|
13932
|
+
exports.ɵbo = DevolucaoFormComponent;
|
|
13933
|
+
exports.ɵbp = DevolucaoService;
|
|
13934
|
+
exports.ɵbq = DevolucaoChegadaVeiculoOverride;
|
|
13935
|
+
exports.ɵbr = RecebimentoOrdemCompraFormComponent;
|
|
13936
|
+
exports.ɵbs = OrdemCompraService;
|
|
13937
|
+
exports.ɵbt = RecebimentoOrdemCompraService;
|
|
13938
|
+
exports.ɵbu = RecebimentoOrdemCompraChegadaVeiculoOverride;
|
|
13939
|
+
exports.ɵbv = RecebimentoOrdemCompraInfoComponent;
|
|
13940
|
+
exports.ɵbw = DevolucaoInfoComponent;
|
|
13941
|
+
exports.ɵbx = ContratoFormComponent;
|
|
13942
|
+
exports.ɵby = OrdemCompraFormComponent;
|
|
13943
|
+
exports.ɵbz = ProcessoAvulsoFormComponent;
|
|
13325
13944
|
exports.ɵc = ViewImageComponent;
|
|
13326
|
-
exports.ɵca =
|
|
13327
|
-
exports.ɵcb =
|
|
13328
|
-
exports.ɵcc =
|
|
13329
|
-
exports.ɵcd =
|
|
13330
|
-
exports.ɵce =
|
|
13331
|
-
exports.ɵcf =
|
|
13945
|
+
exports.ɵca = ProcessoAvulsoService;
|
|
13946
|
+
exports.ɵcb = ProcessoAvulsoChegadaVeiculoOverride;
|
|
13947
|
+
exports.ɵcc = ProcessoAvulsoInfoComponent;
|
|
13948
|
+
exports.ɵcd = LogIntegracaoDescritor;
|
|
13949
|
+
exports.ɵce = LogIntegracaoComponent;
|
|
13950
|
+
exports.ɵcf = LogIntegracaoService;
|
|
13951
|
+
exports.ɵcg = DerivacaoModule;
|
|
13952
|
+
exports.ɵch = DevolucaoModule;
|
|
13953
|
+
exports.ɵci = OrdemCompraModule;
|
|
13954
|
+
exports.ɵcj = RecebimentoOrdemCompraModule;
|
|
13955
|
+
exports.ɵck = TransgeniaModule;
|
|
13956
|
+
exports.ɵcl = ProcessoAvulsoModule;
|
|
13957
|
+
exports.ɵcm = LogIntegracaoModule;
|
|
13958
|
+
exports.ɵcn = NotaFormModule;
|
|
13959
|
+
exports.ɵco = NotaFormComponent;
|
|
13332
13960
|
exports.ɵd = LogDescritor;
|
|
13333
13961
|
exports.ɵe = LogsComponent;
|
|
13334
13962
|
exports.ɵf = PortariasService;
|
|
@@ -13346,12 +13974,12 @@
|
|
|
13346
13974
|
exports.ɵr = VisitanteFormComponent;
|
|
13347
13975
|
exports.ɵs = CredencialFormComponent;
|
|
13348
13976
|
exports.ɵt = FocusService;
|
|
13349
|
-
exports.ɵu =
|
|
13350
|
-
exports.ɵv =
|
|
13351
|
-
exports.ɵw =
|
|
13352
|
-
exports.ɵx =
|
|
13353
|
-
exports.ɵy =
|
|
13354
|
-
exports.ɵz =
|
|
13977
|
+
exports.ɵu = DocumentGridModule;
|
|
13978
|
+
exports.ɵv = DocumentGridComponent;
|
|
13979
|
+
exports.ɵw = DocumentService;
|
|
13980
|
+
exports.ɵx = RegisterDocumentModule;
|
|
13981
|
+
exports.ɵy = RegisterDocumentComponent;
|
|
13982
|
+
exports.ɵz = AgendaService;
|
|
13355
13983
|
|
|
13356
13984
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
13357
13985
|
|