@seniorsistemas/yms-integration 1.19.0 → 1.19.1-50993c93-db44-4e13-ae38-d1cca3a0e113
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 +888 -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/sam-senior/components/visitor-edit/visitor-edit-list/visitor-edit-list.component.js +32 -1
- 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/sam-senior/components/visitor-edit/visitor-edit-list/visitor-edit-list.component.js +32 -1
- 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 +796 -185
- package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
- package/fesm5/seniorsistemas-yms-integration.js +829 -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/sam-senior/components/visitor-edit/visitor-edit-list/visitor-edit-list.component.d.ts +1 -0
- 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) {
|
|
@@ -1949,6 +1948,16 @@
|
|
|
1949
1948
|
driver: true
|
|
1950
1949
|
});
|
|
1951
1950
|
}
|
|
1951
|
+
if (this.visitors.length > 0) {
|
|
1952
|
+
this.visitors[0].visitor = {
|
|
1953
|
+
name: mot.nome,
|
|
1954
|
+
document: mot.cpf,
|
|
1955
|
+
contact: this.getContatoMotorista(mot),
|
|
1956
|
+
visitorSituation: VisitorSituation.CHECK_IN_PENDING,
|
|
1957
|
+
documentType: this.getDocumentType(),
|
|
1958
|
+
driver: true
|
|
1959
|
+
};
|
|
1960
|
+
}
|
|
1952
1961
|
};
|
|
1953
1962
|
VisitanteComponent.prototype.adicionaVisitantesGrid = function () {
|
|
1954
1963
|
var _this = this;
|
|
@@ -2041,6 +2050,14 @@
|
|
|
2041
2050
|
if (visitor.document === visitante.document) {
|
|
2042
2051
|
visitor.contact = visitante.contact;
|
|
2043
2052
|
visitor.name = visitante.name;
|
|
2053
|
+
var novoVisitante_1 = _this.buildVisitorCredentialsDto(visitor);
|
|
2054
|
+
_this.visitors.forEach(function (result) {
|
|
2055
|
+
if (result.visitor.document === novoVisitante_1.visitor.document) {
|
|
2056
|
+
result.visitor.name = novoVisitante_1.visitor.name;
|
|
2057
|
+
result.visitor.contact = novoVisitante_1.visitor.contact;
|
|
2058
|
+
}
|
|
2059
|
+
});
|
|
2060
|
+
_this.visitorsChange.emit(_this.visitors);
|
|
2044
2061
|
_this.visitorFound = true;
|
|
2045
2062
|
}
|
|
2046
2063
|
});
|
|
@@ -2068,6 +2085,19 @@
|
|
|
2068
2085
|
this.visitorsChange.emit(this.visitors);
|
|
2069
2086
|
this.hasChange.emit(true);
|
|
2070
2087
|
};
|
|
2088
|
+
VisitanteComponent.prototype.buildVisitorCredentialsDto = function (visitor) {
|
|
2089
|
+
var visitorCredentialsDto = new VisitorCredentialsDto();
|
|
2090
|
+
var visitante = {
|
|
2091
|
+
name: visitor.name,
|
|
2092
|
+
document: visitor.document,
|
|
2093
|
+
contact: visitor.contact,
|
|
2094
|
+
documentType: visitor.documentType,
|
|
2095
|
+
visitorSituation: visitor.visitorSituation,
|
|
2096
|
+
driver: false
|
|
2097
|
+
};
|
|
2098
|
+
visitorCredentialsDto.visitor = visitante;
|
|
2099
|
+
return visitorCredentialsDto;
|
|
2100
|
+
};
|
|
2071
2101
|
VisitanteComponent.prototype.model = function (visitante) {
|
|
2072
2102
|
var _this = this;
|
|
2073
2103
|
var isDriver = visitante.document === this.motorista.cpf;
|
|
@@ -3024,6 +3054,282 @@
|
|
|
3024
3054
|
return VisitorListModule;
|
|
3025
3055
|
}());
|
|
3026
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\"\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\"\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
|
+
|
|
3027
3333
|
var EntityService$1 = /** @class */ (function () {
|
|
3028
3334
|
function EntityService(http, messageService, entityUrl, actionsUrl) {
|
|
3029
3335
|
this.http = http;
|
|
@@ -3118,9 +3424,349 @@
|
|
|
3118
3424
|
return EntityService;
|
|
3119
3425
|
}());
|
|
3120
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
|
+
|
|
3121
3767
|
var ERP_ENVIRONMENT = new core.InjectionToken('integration_environment');
|
|
3122
3768
|
|
|
3123
|
-
var AgendaService = /** @class */ (function (_super) {
|
|
3769
|
+
var AgendaService$1 = /** @class */ (function (_super) {
|
|
3124
3770
|
__extends(AgendaService, _super);
|
|
3125
3771
|
function AgendaService(http, messageService, environment) {
|
|
3126
3772
|
var _this = _super.call(this, http, messageService, environment.project.domain + "/" + environment.project.service + "/entities/agenda", environment.project.domain + "/" + environment.project.service + "/actions") || this;
|
|
@@ -3221,7 +3867,7 @@
|
|
|
3221
3867
|
RecebimentoChegadaVeiculoOverride = __decorate([
|
|
3222
3868
|
core.Injectable(),
|
|
3223
3869
|
__metadata("design:paramtypes", [ymsRoutines.ChegadaVeiculoOverride,
|
|
3224
|
-
AgendaService,
|
|
3870
|
+
AgendaService$1,
|
|
3225
3871
|
RecebimentoContratoService])
|
|
3226
3872
|
], RecebimentoChegadaVeiculoOverride);
|
|
3227
3873
|
return RecebimentoChegadaVeiculoOverride;
|
|
@@ -3285,7 +3931,7 @@
|
|
|
3285
3931
|
ExpedicaoChegadaVeiculoOverride = __decorate([
|
|
3286
3932
|
core.Injectable(),
|
|
3287
3933
|
__metadata("design:paramtypes", [ymsRoutines.ChegadaVeiculoOverride,
|
|
3288
|
-
AgendaService,
|
|
3934
|
+
AgendaService$1,
|
|
3289
3935
|
ExpedicaoService])
|
|
3290
3936
|
], ExpedicaoChegadaVeiculoOverride);
|
|
3291
3937
|
return ExpedicaoChegadaVeiculoOverride;
|
|
@@ -3502,7 +4148,7 @@
|
|
|
3502
4148
|
return OrdemCompraService;
|
|
3503
4149
|
}(EntityService$1));
|
|
3504
4150
|
|
|
3505
|
-
var moment$
|
|
4151
|
+
var moment$5 = _moment;
|
|
3506
4152
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3507
4153
|
var Empresa = /** @class */ (function () {
|
|
3508
4154
|
function Empresa() {
|
|
@@ -3511,8 +4157,8 @@
|
|
|
3511
4157
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3512
4158
|
Empresa.fromDto = function (empresaDto, originEntity) {
|
|
3513
4159
|
var model = __assign({}, empresaDto);
|
|
3514
|
-
model.createdDate = model.createdDate && moment$
|
|
3515
|
-
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();
|
|
3516
4162
|
var lookupSeparator = " - ";
|
|
3517
4163
|
var displayFields = [
|
|
3518
4164
|
"codigo",
|
|
@@ -3524,8 +4170,8 @@
|
|
|
3524
4170
|
};
|
|
3525
4171
|
Empresa.toDto = function (empresa, originEntity) {
|
|
3526
4172
|
var dto = __assign({}, empresa);
|
|
3527
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3528
|
-
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();
|
|
3529
4175
|
delete dto.label;
|
|
3530
4176
|
return dto;
|
|
3531
4177
|
};
|
|
@@ -3534,7 +4180,7 @@
|
|
|
3534
4180
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3535
4181
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3536
4182
|
|
|
3537
|
-
var moment$
|
|
4183
|
+
var moment$6 = _moment;
|
|
3538
4184
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3539
4185
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3540
4186
|
var Pessoa = /** @class */ (function () {
|
|
@@ -3544,8 +4190,8 @@
|
|
|
3544
4190
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3545
4191
|
Pessoa.fromDto = function (pessoaDto, originEntity) {
|
|
3546
4192
|
var model = __assign({}, pessoaDto);
|
|
3547
|
-
model.createdDate = model.createdDate && moment$
|
|
3548
|
-
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();
|
|
3549
4195
|
var lookupSeparator = " - ";
|
|
3550
4196
|
var displayFields = [
|
|
3551
4197
|
"codigo",
|
|
@@ -3557,8 +4203,8 @@
|
|
|
3557
4203
|
};
|
|
3558
4204
|
Pessoa.toDto = function (pessoa, originEntity) {
|
|
3559
4205
|
var dto = __assign({}, pessoa);
|
|
3560
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3561
|
-
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();
|
|
3562
4208
|
delete dto.label;
|
|
3563
4209
|
return dto;
|
|
3564
4210
|
};
|
|
@@ -3567,7 +4213,7 @@
|
|
|
3567
4213
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3568
4214
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3569
4215
|
|
|
3570
|
-
var moment$
|
|
4216
|
+
var moment$7 = _moment;
|
|
3571
4217
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3572
4218
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3573
4219
|
var PessoaJuridica = /** @class */ (function () {
|
|
@@ -3577,8 +4223,8 @@
|
|
|
3577
4223
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3578
4224
|
PessoaJuridica.fromDto = function (pessoaJuridicaDto, originEntity) {
|
|
3579
4225
|
var model = __assign({}, pessoaJuridicaDto);
|
|
3580
|
-
model.createdDate = model.createdDate && moment$
|
|
3581
|
-
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();
|
|
3582
4228
|
var lookupSeparator = " - ";
|
|
3583
4229
|
var displayFields = [
|
|
3584
4230
|
"id",
|
|
@@ -3605,8 +4251,8 @@
|
|
|
3605
4251
|
};
|
|
3606
4252
|
PessoaJuridica.toDto = function (pessoaJuridica, originEntity) {
|
|
3607
4253
|
var dto = __assign({}, pessoaJuridica);
|
|
3608
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3609
|
-
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();
|
|
3610
4256
|
delete dto.label;
|
|
3611
4257
|
if (originEntity !== "Pessoa" && dto.pessoa)
|
|
3612
4258
|
dto.pessoa = Pessoa.toDto(dto.pessoa, "PessoaJuridica");
|
|
@@ -3617,7 +4263,7 @@
|
|
|
3617
4263
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3618
4264
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3619
4265
|
|
|
3620
|
-
var moment$
|
|
4266
|
+
var moment$8 = _moment;
|
|
3621
4267
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3622
4268
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3623
4269
|
var Pais = /** @class */ (function () {
|
|
@@ -3627,8 +4273,8 @@
|
|
|
3627
4273
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3628
4274
|
Pais.fromDto = function (paisDto, originEntity) {
|
|
3629
4275
|
var model = __assign({}, paisDto);
|
|
3630
|
-
model.createdDate = model.createdDate && moment$
|
|
3631
|
-
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();
|
|
3632
4278
|
var lookupSeparator = " - ";
|
|
3633
4279
|
var displayFields = ["id", "codigo", "descricao", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
|
|
3634
4280
|
model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
|
|
@@ -3636,8 +4282,8 @@
|
|
|
3636
4282
|
};
|
|
3637
4283
|
Pais.toDto = function (pais, originEntity) {
|
|
3638
4284
|
var dto = __assign({}, pais);
|
|
3639
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3640
|
-
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();
|
|
3641
4287
|
delete dto.label;
|
|
3642
4288
|
return dto;
|
|
3643
4289
|
};
|
|
@@ -3646,7 +4292,7 @@
|
|
|
3646
4292
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3647
4293
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3648
4294
|
|
|
3649
|
-
var moment$
|
|
4295
|
+
var moment$9 = _moment;
|
|
3650
4296
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3651
4297
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3652
4298
|
var Estado = /** @class */ (function () {
|
|
@@ -3656,8 +4302,8 @@
|
|
|
3656
4302
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3657
4303
|
Estado.fromDto = function (estadoDto, originEntity) {
|
|
3658
4304
|
var model = __assign({}, estadoDto);
|
|
3659
|
-
model.createdDate = model.createdDate && moment$
|
|
3660
|
-
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();
|
|
3661
4307
|
var lookupSeparator = " - ";
|
|
3662
4308
|
var displayFields = [
|
|
3663
4309
|
"id",
|
|
@@ -3679,8 +4325,8 @@
|
|
|
3679
4325
|
};
|
|
3680
4326
|
Estado.toDto = function (estado, originEntity) {
|
|
3681
4327
|
var dto = __assign({}, estado);
|
|
3682
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3683
|
-
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();
|
|
3684
4330
|
delete dto.label;
|
|
3685
4331
|
if (originEntity !== "Pais" && dto.pais)
|
|
3686
4332
|
dto.pais = Pais.toDto(dto.pais, "Estado");
|
|
@@ -3691,7 +4337,7 @@
|
|
|
3691
4337
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3692
4338
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3693
4339
|
|
|
3694
|
-
var moment$
|
|
4340
|
+
var moment$a = _moment;
|
|
3695
4341
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3696
4342
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3697
4343
|
var Cidade = /** @class */ (function () {
|
|
@@ -3701,8 +4347,8 @@
|
|
|
3701
4347
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3702
4348
|
Cidade.fromDto = function (cidadeDto, originEntity) {
|
|
3703
4349
|
var model = __assign({}, cidadeDto);
|
|
3704
|
-
model.createdDate = model.createdDate && moment$
|
|
3705
|
-
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();
|
|
3706
4352
|
var lookupSeparator = " - ";
|
|
3707
4353
|
var displayFields = [
|
|
3708
4354
|
"id",
|
|
@@ -3723,8 +4369,8 @@
|
|
|
3723
4369
|
};
|
|
3724
4370
|
Cidade.toDto = function (cidade, originEntity) {
|
|
3725
4371
|
var dto = __assign({}, cidade);
|
|
3726
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3727
|
-
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();
|
|
3728
4374
|
delete dto.label;
|
|
3729
4375
|
if (originEntity !== "Estado" && dto.estado)
|
|
3730
4376
|
dto.estado = Estado.toDto(dto.estado, "Cidade");
|
|
@@ -3735,14 +4381,14 @@
|
|
|
3735
4381
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3736
4382
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3737
4383
|
|
|
3738
|
-
var moment$
|
|
4384
|
+
var moment$b = _moment;
|
|
3739
4385
|
var PessoaEndereco = /** @class */ (function () {
|
|
3740
4386
|
function PessoaEndereco() {
|
|
3741
4387
|
}
|
|
3742
4388
|
PessoaEndereco.fromDto = function (pessoaEnderecoDto, originEntity) {
|
|
3743
4389
|
var model = __assign({}, pessoaEnderecoDto);
|
|
3744
|
-
model.createdDate = model.createdDate && moment$
|
|
3745
|
-
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();
|
|
3746
4392
|
var lookupSeparator = " - ";
|
|
3747
4393
|
var displayFields = [
|
|
3748
4394
|
"codigo",
|
|
@@ -3758,8 +4404,8 @@
|
|
|
3758
4404
|
};
|
|
3759
4405
|
PessoaEndereco.toDto = function (pessoaEndereco, originEntity) {
|
|
3760
4406
|
var dto = __assign({}, pessoaEndereco);
|
|
3761
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3762
|
-
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();
|
|
3763
4409
|
delete dto.label;
|
|
3764
4410
|
if (originEntity !== "Pessoa" && dto.pessoa)
|
|
3765
4411
|
dto.pessoa = Pessoa.toDto(dto.pessoa, "PessoaEndereco");
|
|
@@ -3770,7 +4416,7 @@
|
|
|
3770
4416
|
return PessoaEndereco;
|
|
3771
4417
|
}());
|
|
3772
4418
|
|
|
3773
|
-
var moment$
|
|
4419
|
+
var moment$c = _moment;
|
|
3774
4420
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3775
4421
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
3776
4422
|
var Filial = /** @class */ (function () {
|
|
@@ -3780,8 +4426,8 @@
|
|
|
3780
4426
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
3781
4427
|
Filial.fromDto = function (filialDto, originEntity) {
|
|
3782
4428
|
var model = __assign({}, filialDto);
|
|
3783
|
-
model.createdDate = model.createdDate && moment$
|
|
3784
|
-
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();
|
|
3785
4431
|
var lookupSeparator = " - ";
|
|
3786
4432
|
var displayFields = [
|
|
3787
4433
|
"codigo",
|
|
@@ -3799,8 +4445,8 @@
|
|
|
3799
4445
|
};
|
|
3800
4446
|
Filial.toDto = function (filial, originEntity) {
|
|
3801
4447
|
var dto = __assign({}, filial);
|
|
3802
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3803
|
-
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();
|
|
3804
4450
|
delete dto.label;
|
|
3805
4451
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
3806
4452
|
dto.empresa = Empresa.toDto(dto.empresa, "Filial");
|
|
@@ -3815,14 +4461,14 @@
|
|
|
3815
4461
|
/*{CA:FILE_CONTENTS:START}*/
|
|
3816
4462
|
/*{CA:FILE_CONTENTS:END}*/
|
|
3817
4463
|
|
|
3818
|
-
var moment$
|
|
4464
|
+
var moment$d = _moment;
|
|
3819
4465
|
var OrdemCompra = /** @class */ (function () {
|
|
3820
4466
|
function OrdemCompra() {
|
|
3821
4467
|
}
|
|
3822
4468
|
OrdemCompra.fromDto = function (ordemCompraDto, originEntity) {
|
|
3823
4469
|
var model = __assign({}, ordemCompraDto);
|
|
3824
|
-
model.createdDate = model.createdDate && moment$
|
|
3825
|
-
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();
|
|
3826
4472
|
var lookupSeparator = " - ";
|
|
3827
4473
|
var displayFields = [
|
|
3828
4474
|
"codigo",
|
|
@@ -3838,8 +4484,8 @@
|
|
|
3838
4484
|
};
|
|
3839
4485
|
OrdemCompra.toDto = function (ordemCompra, originEntity) {
|
|
3840
4486
|
var dto = __assign({}, ordemCompra);
|
|
3841
|
-
dto.createdDate = dto.createdDate && moment$
|
|
3842
|
-
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();
|
|
3843
4489
|
delete dto.label;
|
|
3844
4490
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
3845
4491
|
dto.empresa = Empresa.toDto(dto.empresa, "Produto");
|
|
@@ -3850,7 +4496,7 @@
|
|
|
3850
4496
|
return OrdemCompra;
|
|
3851
4497
|
}());
|
|
3852
4498
|
|
|
3853
|
-
var moment$
|
|
4499
|
+
var moment$e = _moment;
|
|
3854
4500
|
var OrdemCompraFormComponent = /** @class */ (function () {
|
|
3855
4501
|
function OrdemCompraFormComponent(dialogRef, dialogConfig, ordemCompraService, translate, fb, route) {
|
|
3856
4502
|
this.dialogRef = dialogRef;
|
|
@@ -3929,7 +4575,7 @@
|
|
|
3929
4575
|
if (filial && filial.empresa && filial.empresa.id) {
|
|
3930
4576
|
filter.empresaId = filial.empresa.id;
|
|
3931
4577
|
}
|
|
3932
|
-
filter.dataEmissao = filter.dataEmissao && moment$
|
|
4578
|
+
filter.dataEmissao = filter.dataEmissao && moment$e(filter.dataEmissao).format("YYYY-MM-DD");
|
|
3933
4579
|
var sort = (multiSortMeta || []).length ? { field: multiSortMeta[0].field, order: multiSortMeta[0].order === 1 ? 'Asc' : 'Desc' } : { field: 'numero', order: 'Asc' };
|
|
3934
4580
|
this.ordemCompraService
|
|
3935
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: {
|
|
@@ -4293,7 +4939,7 @@
|
|
|
4293
4939
|
]),
|
|
4294
4940
|
],
|
|
4295
4941
|
providers: [
|
|
4296
|
-
AgendaService,
|
|
4942
|
+
AgendaService$1,
|
|
4297
4943
|
],
|
|
4298
4944
|
declarations: [
|
|
4299
4945
|
/*{CA:MODULE_DECLARATIONS:START}*/
|
|
@@ -6160,13 +6806,13 @@
|
|
|
6160
6806
|
DevolucaoChegadaVeiculoOverride = __decorate([
|
|
6161
6807
|
core.Injectable(),
|
|
6162
6808
|
__metadata("design:paramtypes", [ymsRoutines.ChegadaVeiculoOverride,
|
|
6163
|
-
AgendaService,
|
|
6809
|
+
AgendaService$1,
|
|
6164
6810
|
DevolucaoService])
|
|
6165
6811
|
], DevolucaoChegadaVeiculoOverride);
|
|
6166
6812
|
return DevolucaoChegadaVeiculoOverride;
|
|
6167
6813
|
}());
|
|
6168
6814
|
|
|
6169
|
-
var moment$
|
|
6815
|
+
var moment$f = _moment;
|
|
6170
6816
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
6171
6817
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
6172
6818
|
var UnidadeMedida = /** @class */ (function () {
|
|
@@ -6176,8 +6822,8 @@
|
|
|
6176
6822
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
6177
6823
|
UnidadeMedida.fromDto = function (unidadeMedidaDto, originEntity) {
|
|
6178
6824
|
var model = __assign({}, unidadeMedidaDto);
|
|
6179
|
-
model.createdDate = model.createdDate && moment$
|
|
6180
|
-
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();
|
|
6181
6827
|
var lookupSeparator = " - ";
|
|
6182
6828
|
var displayFields = [
|
|
6183
6829
|
"id",
|
|
@@ -6194,8 +6840,8 @@
|
|
|
6194
6840
|
};
|
|
6195
6841
|
UnidadeMedida.toDto = function (unidadeMedida, originEntity) {
|
|
6196
6842
|
var dto = __assign({}, unidadeMedida);
|
|
6197
|
-
dto.createdDate = dto.createdDate && moment$
|
|
6198
|
-
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();
|
|
6199
6845
|
delete dto.label;
|
|
6200
6846
|
return dto;
|
|
6201
6847
|
};
|
|
@@ -6204,7 +6850,7 @@
|
|
|
6204
6850
|
/*{CA:FILE_CONTENTS:START}*/
|
|
6205
6851
|
/*{CA:FILE_CONTENTS:END}*/
|
|
6206
6852
|
|
|
6207
|
-
var moment$
|
|
6853
|
+
var moment$g = _moment;
|
|
6208
6854
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
6209
6855
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
6210
6856
|
var Royalty = /** @class */ (function () {
|
|
@@ -6214,8 +6860,8 @@
|
|
|
6214
6860
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
6215
6861
|
Royalty.fromDto = function (royaltyDto, originEntity) {
|
|
6216
6862
|
var model = __assign({}, royaltyDto);
|
|
6217
|
-
model.createdDate = model.createdDate && moment$
|
|
6218
|
-
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();
|
|
6219
6865
|
var lookupSeparator = " - ";
|
|
6220
6866
|
var displayFields = ["id", "codigo", "descricao", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
|
|
6221
6867
|
model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
|
|
@@ -6225,8 +6871,8 @@
|
|
|
6225
6871
|
};
|
|
6226
6872
|
Royalty.toDto = function (royalty, originEntity) {
|
|
6227
6873
|
var dto = __assign({}, royalty);
|
|
6228
|
-
dto.createdDate = dto.createdDate && moment$
|
|
6229
|
-
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();
|
|
6230
6876
|
delete dto.label;
|
|
6231
6877
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
6232
6878
|
dto.empresa = Empresa.toDto(dto.empresa, "Royalty");
|
|
@@ -6237,7 +6883,7 @@
|
|
|
6237
6883
|
/*{CA:FILE_CONTENTS:START}*/
|
|
6238
6884
|
/*{CA:FILE_CONTENTS:END}*/
|
|
6239
6885
|
|
|
6240
|
-
var moment$
|
|
6886
|
+
var moment$h = _moment;
|
|
6241
6887
|
var FamiliaProduto = /** @class */ (function () {
|
|
6242
6888
|
function FamiliaProduto() {
|
|
6243
6889
|
}
|
|
@@ -6246,9 +6892,9 @@
|
|
|
6246
6892
|
return familiaProdutoDto;
|
|
6247
6893
|
}
|
|
6248
6894
|
var model = __assign({}, familiaProdutoDto);
|
|
6249
|
-
model.createdDate = model.codigo && moment$
|
|
6250
|
-
model.createdDate = model.createdDate && moment$
|
|
6251
|
-
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();
|
|
6252
6898
|
var lookupSeparator = " - ";
|
|
6253
6899
|
var displayFields = ["id", "codigo", "descricao", "situacao", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
|
|
6254
6900
|
model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
|
|
@@ -6258,8 +6904,8 @@
|
|
|
6258
6904
|
};
|
|
6259
6905
|
FamiliaProduto.toDto = function (familiaProduto, originEntity) {
|
|
6260
6906
|
var dto = __assign({}, familiaProduto);
|
|
6261
|
-
dto.createdDate = dto.createdDate && moment$
|
|
6262
|
-
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();
|
|
6263
6909
|
delete dto.label;
|
|
6264
6910
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
6265
6911
|
dto.empresa = Empresa.toDto(dto.empresa, "FamiliaProduto");
|
|
@@ -6268,7 +6914,7 @@
|
|
|
6268
6914
|
return FamiliaProduto;
|
|
6269
6915
|
}());
|
|
6270
6916
|
|
|
6271
|
-
var moment$
|
|
6917
|
+
var moment$i = _moment;
|
|
6272
6918
|
var Produto = /** @class */ (function () {
|
|
6273
6919
|
function Produto() {
|
|
6274
6920
|
this.produtoMisto = false;
|
|
@@ -6276,8 +6922,8 @@
|
|
|
6276
6922
|
}
|
|
6277
6923
|
Produto.fromDto = function (produtoDto, originEntity) {
|
|
6278
6924
|
var model = __assign({}, produtoDto);
|
|
6279
|
-
model.createdDate = model.createdDate && moment$
|
|
6280
|
-
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();
|
|
6281
6927
|
var lookupSeparator = " - ";
|
|
6282
6928
|
var displayFields = [
|
|
6283
6929
|
"codigo",
|
|
@@ -6298,8 +6944,8 @@
|
|
|
6298
6944
|
};
|
|
6299
6945
|
Produto.toDto = function (produto, originEntity) {
|
|
6300
6946
|
var dto = __assign({}, produto);
|
|
6301
|
-
dto.createdDate = dto.createdDate && moment$
|
|
6302
|
-
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();
|
|
6303
6949
|
delete dto.label;
|
|
6304
6950
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
6305
6951
|
dto.empresa = Empresa.toDto(dto.empresa, "Produto");
|
|
@@ -6316,7 +6962,7 @@
|
|
|
6316
6962
|
return Produto;
|
|
6317
6963
|
}());
|
|
6318
6964
|
|
|
6319
|
-
var moment$
|
|
6965
|
+
var moment$j = _moment;
|
|
6320
6966
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
6321
6967
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
6322
6968
|
var Derivacao = /** @class */ (function () {
|
|
@@ -6326,8 +6972,8 @@
|
|
|
6326
6972
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
6327
6973
|
Derivacao.fromDto = function (derivacaoDto, originEntity) {
|
|
6328
6974
|
var model = __assign({}, derivacaoDto);
|
|
6329
|
-
model.createdDate = model.createdDate && moment$
|
|
6330
|
-
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();
|
|
6331
6977
|
var lookupSeparator = " - ";
|
|
6332
6978
|
var displayFields = ["codigo", "descricao"];
|
|
6333
6979
|
model.label = getLookupLabel(model, displayFields, lookupSeparator);
|
|
@@ -6339,8 +6985,8 @@
|
|
|
6339
6985
|
};
|
|
6340
6986
|
Derivacao.toDto = function (derivacao, originEntity) {
|
|
6341
6987
|
var dto = __assign({}, derivacao);
|
|
6342
|
-
dto.createdDate = dto.createdDate && moment$
|
|
6343
|
-
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();
|
|
6344
6990
|
delete dto.label;
|
|
6345
6991
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
6346
6992
|
dto.empresa = Empresa.toDto(dto.empresa, "Derivacao");
|
|
@@ -6353,7 +6999,7 @@
|
|
|
6353
6999
|
/*{CA:FILE_CONTENTS:START}*/
|
|
6354
7000
|
/*{CA:FILE_CONTENTS:END}*/
|
|
6355
7001
|
|
|
6356
|
-
var moment$
|
|
7002
|
+
var moment$k = _moment;
|
|
6357
7003
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
6358
7004
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
6359
7005
|
var Transportadora = /** @class */ (function () {
|
|
@@ -6363,8 +7009,8 @@
|
|
|
6363
7009
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
6364
7010
|
Transportadora.fromDto = function (transportadoraDto, originEntity) {
|
|
6365
7011
|
var model = __assign({}, transportadoraDto);
|
|
6366
|
-
model.createdDate = model.createdDate && moment$
|
|
6367
|
-
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();
|
|
6368
7014
|
var lookupSeparator = " - ";
|
|
6369
7015
|
var displayFields = [
|
|
6370
7016
|
"codigo", "pessoa.nome", "pessoa.cpfCnpj"
|
|
@@ -6378,8 +7024,8 @@
|
|
|
6378
7024
|
};
|
|
6379
7025
|
Transportadora.toDto = function (transportadora, originEntity) {
|
|
6380
7026
|
var dto = __assign({}, transportadora);
|
|
6381
|
-
dto.createdDate = dto.createdDate && moment$
|
|
6382
|
-
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();
|
|
6383
7029
|
delete dto.label;
|
|
6384
7030
|
if (originEntity !== "Pessoa" && dto.pessoa)
|
|
6385
7031
|
dto.pessoa = Pessoa.toDto(dto.pessoa, "Transportadora");
|
|
@@ -6392,7 +7038,7 @@
|
|
|
6392
7038
|
/*{CA:FILE_CONTENTS:START}*/
|
|
6393
7039
|
/*{CA:FILE_CONTENTS:END}*/
|
|
6394
7040
|
|
|
6395
|
-
var moment$
|
|
7041
|
+
var moment$l = _moment;
|
|
6396
7042
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
6397
7043
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
6398
7044
|
var Devolucao = /** @class */ (function () {
|
|
@@ -6402,8 +7048,8 @@
|
|
|
6402
7048
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
6403
7049
|
Devolucao.fromDto = function (devolucaoDto, originEntity) {
|
|
6404
7050
|
var model = __assign({}, devolucaoDto);
|
|
6405
|
-
model.createdDate = model.createdDate && moment$
|
|
6406
|
-
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();
|
|
6407
7053
|
var lookupSeparator = " - ";
|
|
6408
7054
|
var displayFields = [
|
|
6409
7055
|
''
|
|
@@ -6427,8 +7073,8 @@
|
|
|
6427
7073
|
};
|
|
6428
7074
|
Devolucao.toDto = function (devolucao, originEntity) {
|
|
6429
7075
|
var dto = __assign({}, devolucao);
|
|
6430
|
-
dto.createdDate = dto.createdDate && moment$
|
|
6431
|
-
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();
|
|
6432
7078
|
delete dto.label;
|
|
6433
7079
|
if (originEntity !== "Pessoa" && dto.fornecedor)
|
|
6434
7080
|
dto.fornecedor = Pessoa.toDto(dto.fornecedor, "Devolucao");
|
|
@@ -7125,7 +7771,7 @@
|
|
|
7125
7771
|
router.ActivatedRoute,
|
|
7126
7772
|
DevolucaoChegadaVeiculoOverride,
|
|
7127
7773
|
api.ConfirmationService,
|
|
7128
|
-
AgendaService,
|
|
7774
|
+
AgendaService$1,
|
|
7129
7775
|
ErpProcessService,
|
|
7130
7776
|
ErpFormConfigService,
|
|
7131
7777
|
HasChangeService])
|
|
@@ -7171,7 +7817,7 @@
|
|
|
7171
7817
|
|
|
7172
7818
|
/*{CA:PACKAGE_IMPORTS:START}*/
|
|
7173
7819
|
/*{CA:PACKAGE_IMPORTS:END}*/
|
|
7174
|
-
var moment$
|
|
7820
|
+
var moment$m = _moment;
|
|
7175
7821
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
7176
7822
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
7177
7823
|
var Expedicao = /** @class */ (function () {
|
|
@@ -7181,8 +7827,8 @@
|
|
|
7181
7827
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
7182
7828
|
Expedicao.fromDto = function (expedicaoDto, originEntity) {
|
|
7183
7829
|
var model = __assign({}, expedicaoDto);
|
|
7184
|
-
model.createdDate = model.createdDate && moment$
|
|
7185
|
-
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();
|
|
7186
7832
|
var lookupSeparator = " - ";
|
|
7187
7833
|
var displayFields = [
|
|
7188
7834
|
"id",
|
|
@@ -7221,8 +7867,8 @@
|
|
|
7221
7867
|
};
|
|
7222
7868
|
Expedicao.toDto = function (expedicao, originEntity) {
|
|
7223
7869
|
var dto = __assign({}, expedicao);
|
|
7224
|
-
dto.createdDate = dto.createdDate && moment$
|
|
7225
|
-
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();
|
|
7226
7872
|
delete dto.label;
|
|
7227
7873
|
if (originEntity !== "Pessoa" && dto.clienteFaturamento)
|
|
7228
7874
|
dto.clienteFaturamento = Pessoa.toDto(dto.clienteFaturamento, "Recebimento");
|
|
@@ -7239,7 +7885,7 @@
|
|
|
7239
7885
|
return Expedicao;
|
|
7240
7886
|
}());
|
|
7241
7887
|
|
|
7242
|
-
var moment$
|
|
7888
|
+
var moment$n = _moment;
|
|
7243
7889
|
var ExpedicaoFormComponent = /** @class */ (function () {
|
|
7244
7890
|
function ExpedicaoFormComponent(expedicaoService, router, route, messageService, formBuilder, translate, hotkeysService, fieldCustomization, focusService, pessoaService, filialService, transportadoraService, pedidoVendaService, pedidoVendaItemService, agendaService, override, confirmationService, erpProcessService, erpFormConfigService, hasChangeService) {
|
|
7245
7891
|
this.expedicaoService = expedicaoService;
|
|
@@ -7789,11 +8435,11 @@
|
|
|
7789
8435
|
if (typeof value == "number")
|
|
7790
8436
|
return name + " eq " + value;
|
|
7791
8437
|
else if (type == angularComponents.FieldType.Date)
|
|
7792
|
-
return name + " eq '" + moment$
|
|
8438
|
+
return name + " eq '" + moment$n(value).format("YYYY-MM-DD") + "'";
|
|
7793
8439
|
else if (type == angularComponents.FieldType.Time)
|
|
7794
|
-
return name + " eq '" + moment$
|
|
8440
|
+
return name + " eq '" + moment$n(value).format("HH:mm:ss") + "'";
|
|
7795
8441
|
else if (type == angularComponents.FieldType.DateTime)
|
|
7796
|
-
return name + " eq '" + moment$
|
|
8442
|
+
return name + " eq '" + moment$n(value).format() + "'";
|
|
7797
8443
|
else if (type == angularComponents.FieldType.Enum)
|
|
7798
8444
|
return name + " eq '" + value + "'";
|
|
7799
8445
|
else if (type == angularComponents.FieldType.String)
|
|
@@ -7845,11 +8491,11 @@
|
|
|
7845
8491
|
if (typeof value == "number")
|
|
7846
8492
|
return name + " eq " + value;
|
|
7847
8493
|
else if (type == angularComponents.FieldType.Date)
|
|
7848
|
-
return name + " eq '" + moment$
|
|
8494
|
+
return name + " eq '" + moment$n(value).format("YYYY-MM-DD") + "'";
|
|
7849
8495
|
else if (type == angularComponents.FieldType.Time)
|
|
7850
|
-
return name + " eq '" + moment$
|
|
8496
|
+
return name + " eq '" + moment$n(value).format("HH:mm:ss") + "'";
|
|
7851
8497
|
else if (type == angularComponents.FieldType.DateTime)
|
|
7852
|
-
return name + " eq '" + moment$
|
|
8498
|
+
return name + " eq '" + moment$n(value).format() + "'";
|
|
7853
8499
|
else if (type == angularComponents.FieldType.Enum)
|
|
7854
8500
|
return name + " eq '" + value + "'";
|
|
7855
8501
|
else if (type == angularComponents.FieldType.String)
|
|
@@ -7976,11 +8622,11 @@
|
|
|
7976
8622
|
if (typeof value == "number")
|
|
7977
8623
|
return name + " eq " + value;
|
|
7978
8624
|
else if (type == angularComponents.FieldType.Date)
|
|
7979
|
-
return name + " eq '" + moment$
|
|
8625
|
+
return name + " eq '" + moment$n(value).format("YYYY-MM-DD") + "'";
|
|
7980
8626
|
else if (type == angularComponents.FieldType.Time)
|
|
7981
|
-
return name + " eq '" + moment$
|
|
8627
|
+
return name + " eq '" + moment$n(value).format("HH:mm:ss") + "'";
|
|
7982
8628
|
else if (type == angularComponents.FieldType.DateTime)
|
|
7983
|
-
return name + " eq '" + moment$
|
|
8629
|
+
return name + " eq '" + moment$n(value).format() + "'";
|
|
7984
8630
|
else if (type == angularComponents.FieldType.String)
|
|
7985
8631
|
return "containing(lower(" + name + "), lower('" + value.replace(/'/g, "\\'") + "'))";
|
|
7986
8632
|
else
|
|
@@ -8169,11 +8815,11 @@
|
|
|
8169
8815
|
if (typeof value == "number")
|
|
8170
8816
|
return name + " eq " + value;
|
|
8171
8817
|
else if (type == angularComponents.FieldType.Date)
|
|
8172
|
-
return name + " eq '" + moment$
|
|
8818
|
+
return name + " eq '" + moment$n(value).format("YYYY-MM-DD") + "'";
|
|
8173
8819
|
else if (type == angularComponents.FieldType.Time)
|
|
8174
|
-
return name + " eq '" + moment$
|
|
8820
|
+
return name + " eq '" + moment$n(value).format("HH:mm:ss") + "'";
|
|
8175
8821
|
else if (type == angularComponents.FieldType.DateTime)
|
|
8176
|
-
return name + " eq '" + moment$
|
|
8822
|
+
return name + " eq '" + moment$n(value).format() + "'";
|
|
8177
8823
|
else if (type == angularComponents.FieldType.String)
|
|
8178
8824
|
return "containing(lower(" + name + "), lower('" + value.replace(/'/g, "\\'") + "'))";
|
|
8179
8825
|
else
|
|
@@ -8215,11 +8861,11 @@
|
|
|
8215
8861
|
if (typeof value == "number")
|
|
8216
8862
|
return name + " eq " + value;
|
|
8217
8863
|
else if (type == angularComponents.FieldType.Date)
|
|
8218
|
-
return name + " eq '" + moment$
|
|
8864
|
+
return name + " eq '" + moment$n(value).format("YYYY-MM-DD") + "'";
|
|
8219
8865
|
else if (type == angularComponents.FieldType.Time)
|
|
8220
|
-
return name + " eq '" + moment$
|
|
8866
|
+
return name + " eq '" + moment$n(value).format("HH:mm:ss") + "'";
|
|
8221
8867
|
else if (type == angularComponents.FieldType.DateTime)
|
|
8222
|
-
return name + " eq '" + moment$
|
|
8868
|
+
return name + " eq '" + moment$n(value).format() + "'";
|
|
8223
8869
|
else if (type == angularComponents.FieldType.Enum)
|
|
8224
8870
|
return name + " eq '" + value + "'";
|
|
8225
8871
|
else if (type == angularComponents.FieldType.String)
|
|
@@ -8706,7 +9352,7 @@
|
|
|
8706
9352
|
TransportadoraService,
|
|
8707
9353
|
PedidoVendaService,
|
|
8708
9354
|
PedidoVendaItemService,
|
|
8709
|
-
AgendaService,
|
|
9355
|
+
AgendaService$1,
|
|
8710
9356
|
ExpedicaoChegadaVeiculoOverride,
|
|
8711
9357
|
api.ConfirmationService,
|
|
8712
9358
|
ErpProcessService,
|
|
@@ -8987,7 +9633,7 @@
|
|
|
8987
9633
|
ProcessoAvulsoChegadaVeiculoOverride = __decorate([
|
|
8988
9634
|
core.Injectable(),
|
|
8989
9635
|
__metadata("design:paramtypes", [ymsRoutines.ChegadaVeiculoOverride,
|
|
8990
|
-
AgendaService,
|
|
9636
|
+
AgendaService$1,
|
|
8991
9637
|
ProcessoAvulsoService])
|
|
8992
9638
|
], ProcessoAvulsoChegadaVeiculoOverride);
|
|
8993
9639
|
return ProcessoAvulsoChegadaVeiculoOverride;
|
|
@@ -9293,7 +9939,7 @@
|
|
|
9293
9939
|
ProcessoAvulsoChegadaVeiculoOverride,
|
|
9294
9940
|
core$1.TranslateService,
|
|
9295
9941
|
api.ConfirmationService,
|
|
9296
|
-
AgendaService,
|
|
9942
|
+
AgendaService$1,
|
|
9297
9943
|
ErpProcessService,
|
|
9298
9944
|
ErpFormConfigService,
|
|
9299
9945
|
HasChangeService])
|
|
@@ -9336,7 +9982,7 @@
|
|
|
9336
9982
|
return ProcessoAvulsoInfoComponent;
|
|
9337
9983
|
}());
|
|
9338
9984
|
|
|
9339
|
-
var moment$
|
|
9985
|
+
var moment$o = _moment;
|
|
9340
9986
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
9341
9987
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
9342
9988
|
var Safra = /** @class */ (function () {
|
|
@@ -9346,10 +9992,10 @@
|
|
|
9346
9992
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
9347
9993
|
Safra.fromDto = function (safraDto, originEntity) {
|
|
9348
9994
|
var model = __assign({}, safraDto);
|
|
9349
|
-
model.competenciaInicial = model.competenciaInicial && moment$
|
|
9350
|
-
model.competenciaFinal = model.competenciaFinal && moment$
|
|
9351
|
-
model.createdDate = model.createdDate && moment$
|
|
9352
|
-
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();
|
|
9353
9999
|
var lookupSeparator = " - ";
|
|
9354
10000
|
var displayFields = [
|
|
9355
10001
|
"codigo",
|
|
@@ -9362,10 +10008,10 @@
|
|
|
9362
10008
|
};
|
|
9363
10009
|
Safra.toDto = function (safra, originEntity) {
|
|
9364
10010
|
var dto = __assign({}, safra);
|
|
9365
|
-
dto.competenciaInicial = dto.competenciaInicial && moment$
|
|
9366
|
-
dto.competenciaFinal = dto.competenciaFinal && moment$
|
|
9367
|
-
dto.createdDate = dto.createdDate && moment$
|
|
9368
|
-
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();
|
|
9369
10015
|
delete dto.label;
|
|
9370
10016
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
9371
10017
|
dto.empresa = Empresa.toDto(dto.empresa, "Safra");
|
|
@@ -9378,7 +10024,7 @@
|
|
|
9378
10024
|
|
|
9379
10025
|
/*{CA:PACKAGE_IMPORTS:START}*/
|
|
9380
10026
|
/*{CA:PACKAGE_IMPORTS:END}*/
|
|
9381
|
-
var moment$
|
|
10027
|
+
var moment$p = _moment;
|
|
9382
10028
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
9383
10029
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
9384
10030
|
var RecebimentoOrdemCompra = /** @class */ (function () {
|
|
@@ -9388,8 +10034,8 @@
|
|
|
9388
10034
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
9389
10035
|
RecebimentoOrdemCompra.fromDto = function (recebimentoOrdemCompraDto, originEntity) {
|
|
9390
10036
|
var model = __assign({}, recebimentoOrdemCompraDto);
|
|
9391
|
-
model.createdDate = model.createdDate && moment$
|
|
9392
|
-
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();
|
|
9393
10039
|
var lookupSeparator = " - ";
|
|
9394
10040
|
var displayFields = [
|
|
9395
10041
|
''
|
|
@@ -9418,8 +10064,8 @@
|
|
|
9418
10064
|
};
|
|
9419
10065
|
RecebimentoOrdemCompra.toDto = function (recebimentoOrdemCompra, originEntity) {
|
|
9420
10066
|
var dto = __assign({}, recebimentoOrdemCompra);
|
|
9421
|
-
dto.createdDate = dto.createdDate && moment$
|
|
9422
|
-
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();
|
|
9423
10069
|
delete dto.label;
|
|
9424
10070
|
if (originEntity !== "Agenda" && dto.agenda)
|
|
9425
10071
|
dto.agenda = Agenda.toDto(dto.agenda, "RecebimentoOrdemCompra");
|
|
@@ -9482,7 +10128,7 @@
|
|
|
9482
10128
|
RecebimentoOrdemCompraChegadaVeiculoOverride = __decorate([
|
|
9483
10129
|
core.Injectable(),
|
|
9484
10130
|
__metadata("design:paramtypes", [ymsRoutines.ChegadaVeiculoOverride,
|
|
9485
|
-
AgendaService,
|
|
10131
|
+
AgendaService$1,
|
|
9486
10132
|
RecebimentoOrdemCompraService])
|
|
9487
10133
|
], RecebimentoOrdemCompraChegadaVeiculoOverride);
|
|
9488
10134
|
return RecebimentoOrdemCompraChegadaVeiculoOverride;
|
|
@@ -10663,7 +11309,7 @@
|
|
|
10663
11309
|
NotaValidatorService,
|
|
10664
11310
|
api.ConfirmationService,
|
|
10665
11311
|
api.DialogService,
|
|
10666
|
-
AgendaService,
|
|
11312
|
+
AgendaService$1,
|
|
10667
11313
|
ErpProcessService,
|
|
10668
11314
|
ErpFormConfigService,
|
|
10669
11315
|
VerificaNotafiscal,
|
|
@@ -10710,7 +11356,7 @@
|
|
|
10710
11356
|
return RecebimentoOrdemCompraInfoComponent;
|
|
10711
11357
|
}());
|
|
10712
11358
|
|
|
10713
|
-
var moment$
|
|
11359
|
+
var moment$q = _moment;
|
|
10714
11360
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
10715
11361
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
10716
11362
|
var ContratoCompra = /** @class */ (function () {
|
|
@@ -10720,11 +11366,11 @@
|
|
|
10720
11366
|
/*{CA:CLASS_ATTRIBUTES:END}*/
|
|
10721
11367
|
ContratoCompra.fromDto = function (contratoCompraDto, originEntity) {
|
|
10722
11368
|
var model = __assign({}, contratoCompraDto);
|
|
10723
|
-
model.dataEmissao = model.dataEmissao && moment$
|
|
10724
|
-
model.dataInicioVigencia = model.dataInicioVigencia && moment$
|
|
10725
|
-
model.dataFimVigencia = model.dataFimVigencia && moment$
|
|
10726
|
-
model.createdDate = model.createdDate && moment$
|
|
10727
|
-
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();
|
|
10728
11374
|
model.label = "N\u00FAmero: " + model.numero + ", Filial: " + model.filial.codigo;
|
|
10729
11375
|
if (originEntity !== "Empresa" && model.empresa)
|
|
10730
11376
|
model.empresa = Empresa.fromDto(model.empresa, "ContratoCompra");
|
|
@@ -10740,11 +11386,11 @@
|
|
|
10740
11386
|
};
|
|
10741
11387
|
ContratoCompra.toDto = function (contratoCompra, originEntity) {
|
|
10742
11388
|
var dto = __assign({}, contratoCompra);
|
|
10743
|
-
dto.dataEmissao = dto.dataEmissao && moment$
|
|
10744
|
-
dto.dataInicioVigencia = dto.dataInicioVigencia && moment$
|
|
10745
|
-
dto.dataFimVigencia = dto.dataFimVigencia && moment$
|
|
10746
|
-
dto.createdDate = dto.createdDate && moment$
|
|
10747
|
-
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();
|
|
10748
11394
|
delete dto.label;
|
|
10749
11395
|
if (originEntity !== "Empresa" && dto.empresa)
|
|
10750
11396
|
dto.empresa = Empresa.toDto(dto.empresa, "ContratoCompra");
|
|
@@ -10765,7 +11411,7 @@
|
|
|
10765
11411
|
/*{CA:FILE_CONTENTS:START}*/
|
|
10766
11412
|
/*{CA:FILE_CONTENTS:END}*/
|
|
10767
11413
|
|
|
10768
|
-
var moment$
|
|
11414
|
+
var moment$r = _moment;
|
|
10769
11415
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
10770
11416
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
10771
11417
|
var ContratoCompraItem = /** @class */ (function () {
|
|
@@ -10776,9 +11422,9 @@
|
|
|
10776
11422
|
ContratoCompraItem.fromDto = function (contratoCompraItemDto, originEntity) {
|
|
10777
11423
|
var model = __assign({}, contratoCompraItemDto);
|
|
10778
11424
|
model.sku = model.sku || {};
|
|
10779
|
-
model.dataCompetencia = model.dataCompetencia && moment$
|
|
10780
|
-
model.createdDate = model.createdDate && moment$
|
|
10781
|
-
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();
|
|
10782
11428
|
model.label = model.sequencia + " - " + model.sku.descricao + " - " + model.sku.codigo;
|
|
10783
11429
|
if (originEntity !== "ContratoCompra" && model.contrato)
|
|
10784
11430
|
model.contrato = ContratoCompra.fromDto(model.contrato, "ContratoCompraItem");
|
|
@@ -10788,9 +11434,9 @@
|
|
|
10788
11434
|
};
|
|
10789
11435
|
ContratoCompraItem.toDto = function (contratoCompraItem, originEntity) {
|
|
10790
11436
|
var dto = __assign({}, contratoCompraItem);
|
|
10791
|
-
dto.dataCompetencia = dto.dataCompetencia && moment$
|
|
10792
|
-
dto.createdDate = dto.createdDate && moment$
|
|
10793
|
-
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();
|
|
10794
11440
|
delete dto.label;
|
|
10795
11441
|
if (originEntity !== "ContratoCompra" && dto.contrato)
|
|
10796
11442
|
dto.contrato = ContratoCompra.toDto(dto.contrato, "ContratoCompraItem");
|
|
@@ -10803,7 +11449,7 @@
|
|
|
10803
11449
|
/*{CA:FILE_CONTENTS:START}*/
|
|
10804
11450
|
/*{CA:FILE_CONTENTS:END}*/
|
|
10805
11451
|
|
|
10806
|
-
var moment$
|
|
11452
|
+
var moment$s = _moment;
|
|
10807
11453
|
var ContratoFormComponent = /** @class */ (function () {
|
|
10808
11454
|
function ContratoFormComponent(dialogRef, dialogConfig, contratoCompraService, contratoCompraItemService, translate, fb, route) {
|
|
10809
11455
|
this.dialogRef = dialogRef;
|
|
@@ -10897,7 +11543,7 @@
|
|
|
10897
11543
|
if (filial && filial.empresa && filial.empresa.id) {
|
|
10898
11544
|
filter.empresaId = filial.empresa.id;
|
|
10899
11545
|
}
|
|
10900
|
-
filter.dataEmissao = filter.dataEmissao && moment$
|
|
11546
|
+
filter.dataEmissao = filter.dataEmissao && moment$s(filter.dataEmissao).format("YYYY-MM-DD");
|
|
10901
11547
|
var sort = (multiSortMeta || []).length ? { field: multiSortMeta[0].field, order: multiSortMeta[0].order === 1 ? 'Asc' : 'Desc' } : { field: 'numero', order: 'Asc' };
|
|
10902
11548
|
this.contratoCompraService
|
|
10903
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: {
|
|
@@ -11126,14 +11772,14 @@
|
|
|
11126
11772
|
return Transgenia;
|
|
11127
11773
|
}());
|
|
11128
11774
|
|
|
11129
|
-
var moment$
|
|
11775
|
+
var moment$t = _moment;
|
|
11130
11776
|
var RecebimentoContrato = /** @class */ (function () {
|
|
11131
11777
|
function RecebimentoContrato() {
|
|
11132
11778
|
}
|
|
11133
11779
|
RecebimentoContrato.fromDto = function (recebimentoDto, originEntity) {
|
|
11134
11780
|
var model = __assign({}, recebimentoDto);
|
|
11135
|
-
model.createdDate = model.createdDate && moment$
|
|
11136
|
-
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();
|
|
11137
11783
|
var lookupSeparator = " - ";
|
|
11138
11784
|
var displayFields = [
|
|
11139
11785
|
"id",
|
|
@@ -11182,8 +11828,8 @@
|
|
|
11182
11828
|
};
|
|
11183
11829
|
RecebimentoContrato.toDto = function (recebimento, originEntity) {
|
|
11184
11830
|
var dto = __assign({}, recebimento);
|
|
11185
|
-
dto.createdDate = dto.createdDate && moment$
|
|
11186
|
-
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();
|
|
11187
11833
|
delete dto.label;
|
|
11188
11834
|
if (originEntity !== "Pessoa" && dto.fornecedor)
|
|
11189
11835
|
dto.fornecedor = Pessoa.toDto(dto.fornecedor, "Recebimento");
|
|
@@ -11217,7 +11863,7 @@
|
|
|
11217
11863
|
Situacao["ATIVO"] = "ATIVO";
|
|
11218
11864
|
})(Situacao || (Situacao = {}));
|
|
11219
11865
|
|
|
11220
|
-
var moment$
|
|
11866
|
+
var moment$u = _moment;
|
|
11221
11867
|
var RecebimentoFormComponent = /** @class */ (function () {
|
|
11222
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) {
|
|
11223
11869
|
var _this = this;
|
|
@@ -11899,11 +12545,11 @@
|
|
|
11899
12545
|
if (typeof value == "number")
|
|
11900
12546
|
return name + " eq " + value;
|
|
11901
12547
|
else if (type == angularComponents.FieldType.Date)
|
|
11902
|
-
return name + " eq '" + moment$
|
|
12548
|
+
return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
|
|
11903
12549
|
else if (type == angularComponents.FieldType.Time)
|
|
11904
|
-
return name + " eq '" + moment$
|
|
12550
|
+
return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
|
|
11905
12551
|
else if (type == angularComponents.FieldType.DateTime)
|
|
11906
|
-
return name + " eq '" + moment$
|
|
12552
|
+
return name + " eq '" + moment$u(value).format() + "'";
|
|
11907
12553
|
else if (type == angularComponents.FieldType.String)
|
|
11908
12554
|
return "containing(lower(" + name + "), lower('" + value.replace(/'/g, "\\'") + "'))";
|
|
11909
12555
|
else
|
|
@@ -11942,11 +12588,11 @@
|
|
|
11942
12588
|
if (typeof value == "number")
|
|
11943
12589
|
return name + " eq " + value;
|
|
11944
12590
|
else if (type == angularComponents.FieldType.Date)
|
|
11945
|
-
return name + " eq '" + moment$
|
|
12591
|
+
return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
|
|
11946
12592
|
else if (type == angularComponents.FieldType.Time)
|
|
11947
|
-
return name + " eq '" + moment$
|
|
12593
|
+
return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
|
|
11948
12594
|
else if (type == angularComponents.FieldType.DateTime)
|
|
11949
|
-
return name + " eq '" + moment$
|
|
12595
|
+
return name + " eq '" + moment$u(value).format() + "'";
|
|
11950
12596
|
else if (type == angularComponents.FieldType.Enum)
|
|
11951
12597
|
return name + " eq '" + value + "'";
|
|
11952
12598
|
else if (type == angularComponents.FieldType.String)
|
|
@@ -11988,11 +12634,11 @@
|
|
|
11988
12634
|
if (typeof value == "number")
|
|
11989
12635
|
return name + " eq " + value;
|
|
11990
12636
|
else if (type == angularComponents.FieldType.Date)
|
|
11991
|
-
return name + " eq '" + moment$
|
|
12637
|
+
return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
|
|
11992
12638
|
else if (type == angularComponents.FieldType.Time)
|
|
11993
|
-
return name + " eq '" + moment$
|
|
12639
|
+
return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
|
|
11994
12640
|
else if (type == angularComponents.FieldType.DateTime)
|
|
11995
|
-
return name + " eq '" + moment$
|
|
12641
|
+
return name + " eq '" + moment$u(value).format() + "'";
|
|
11996
12642
|
else if (type == angularComponents.FieldType.String)
|
|
11997
12643
|
return "containing(lower(" + name + "), lower('" + value.replace(/'/g, "\\'") + "'))";
|
|
11998
12644
|
else
|
|
@@ -12032,11 +12678,11 @@
|
|
|
12032
12678
|
if (typeof value == "number")
|
|
12033
12679
|
return name + " eq " + value;
|
|
12034
12680
|
else if (type == angularComponents.FieldType.Date)
|
|
12035
|
-
return name + " eq '" + moment$
|
|
12681
|
+
return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
|
|
12036
12682
|
else if (type == angularComponents.FieldType.Time)
|
|
12037
|
-
return name + " eq '" + moment$
|
|
12683
|
+
return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
|
|
12038
12684
|
else if (type == angularComponents.FieldType.DateTime)
|
|
12039
|
-
return name + " eq '" + moment$
|
|
12685
|
+
return name + " eq '" + moment$u(value).format() + "'";
|
|
12040
12686
|
else if (type == angularComponents.FieldType.Enum)
|
|
12041
12687
|
return name + " eq '" + value + "'";
|
|
12042
12688
|
else if (type == angularComponents.FieldType.String)
|
|
@@ -12133,11 +12779,11 @@
|
|
|
12133
12779
|
if (typeof value == "number")
|
|
12134
12780
|
return name + " eq " + value;
|
|
12135
12781
|
else if (type == angularComponents.FieldType.Date)
|
|
12136
|
-
return name + " eq '" + moment$
|
|
12782
|
+
return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
|
|
12137
12783
|
else if (type == angularComponents.FieldType.Time)
|
|
12138
|
-
return name + " eq '" + moment$
|
|
12784
|
+
return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
|
|
12139
12785
|
else if (type == angularComponents.FieldType.DateTime)
|
|
12140
|
-
return name + " eq '" + moment$
|
|
12786
|
+
return name + " eq '" + moment$u(value).format() + "'";
|
|
12141
12787
|
else if (type == angularComponents.FieldType.String)
|
|
12142
12788
|
return "containing(lower(" + name + "), lower('" + value.replace(/'/g, "\\'") + "'))";
|
|
12143
12789
|
else
|
|
@@ -12175,11 +12821,11 @@
|
|
|
12175
12821
|
if (typeof value == "number")
|
|
12176
12822
|
return name + " eq " + value;
|
|
12177
12823
|
else if (type == angularComponents.FieldType.Date)
|
|
12178
|
-
return name + " eq '" + moment$
|
|
12824
|
+
return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
|
|
12179
12825
|
else if (type == angularComponents.FieldType.Time)
|
|
12180
|
-
return name + " eq '" + moment$
|
|
12826
|
+
return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
|
|
12181
12827
|
else if (type == angularComponents.FieldType.DateTime)
|
|
12182
|
-
return name + " eq '" + moment$
|
|
12828
|
+
return name + " eq '" + moment$u(value).format() + "'";
|
|
12183
12829
|
else if (type == angularComponents.FieldType.Enum)
|
|
12184
12830
|
return name + " eq '" + value + "'";
|
|
12185
12831
|
else if (type == angularComponents.FieldType.String)
|
|
@@ -12228,11 +12874,11 @@
|
|
|
12228
12874
|
if (typeof value == "number")
|
|
12229
12875
|
return name + " eq " + value;
|
|
12230
12876
|
else if (type == angularComponents.FieldType.Date)
|
|
12231
|
-
return name + " eq '" + moment$
|
|
12877
|
+
return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
|
|
12232
12878
|
else if (type == angularComponents.FieldType.Time)
|
|
12233
|
-
return name + " eq '" + moment$
|
|
12879
|
+
return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
|
|
12234
12880
|
else if (type == angularComponents.FieldType.DateTime)
|
|
12235
|
-
return name + " eq '" + moment$
|
|
12881
|
+
return name + " eq '" + moment$u(value).format() + "'";
|
|
12236
12882
|
else if (type == angularComponents.FieldType.Enum)
|
|
12237
12883
|
return name + " eq '" + value + "'";
|
|
12238
12884
|
else if (type == angularComponents.FieldType.String)
|
|
@@ -13010,7 +13656,7 @@
|
|
|
13010
13656
|
NotaValidatorService,
|
|
13011
13657
|
TransgeniaService,
|
|
13012
13658
|
api.DialogService,
|
|
13013
|
-
AgendaService,
|
|
13659
|
+
AgendaService$1,
|
|
13014
13660
|
ErpProcessService,
|
|
13015
13661
|
ErpFormConfigService,
|
|
13016
13662
|
VerificaNotafiscal,
|
|
@@ -13175,7 +13821,7 @@
|
|
|
13175
13821
|
}());
|
|
13176
13822
|
|
|
13177
13823
|
exports.AgendaModule = AgendaModule;
|
|
13178
|
-
exports.AgendaService = AgendaService;
|
|
13824
|
+
exports.AgendaService = AgendaService$1;
|
|
13179
13825
|
exports.BalancaModule = BalancaModule;
|
|
13180
13826
|
exports.BalancasService = BalancasService;
|
|
13181
13827
|
exports.CamerasModule = CamerasModule;
|
|
@@ -13215,7 +13861,10 @@
|
|
|
13215
13861
|
exports.FormDescritor = FormDescritor;
|
|
13216
13862
|
exports.FormSamComponent = FormSamComponent;
|
|
13217
13863
|
exports.FormSamDescritor = FormSamDescritor;
|
|
13864
|
+
exports.FormWmsComponent = FormWmsComponent;
|
|
13865
|
+
exports.FormWmsDescritor = FormWmsDescritor;
|
|
13218
13866
|
exports.HasChangeService = HasChangeService;
|
|
13867
|
+
exports.INFORMACAOES_ADICIONAIS_HEADER = INFORMACAOES_ADICIONAIS_HEADER;
|
|
13219
13868
|
exports.InfoComponent = InfoComponent;
|
|
13220
13869
|
exports.InfoDescritor = InfoDescritor;
|
|
13221
13870
|
exports.IntegrationWebSocket = IntegrationWebSocket;
|
|
@@ -13262,42 +13911,52 @@
|
|
|
13262
13911
|
exports.VisitorListService = VisitorListService;
|
|
13263
13912
|
exports.VisualizarBalancaComponent = VisualizarBalancaComponent;
|
|
13264
13913
|
exports.VisualizarBalancaDescritor = VisualizarBalancaDescritor;
|
|
13914
|
+
exports.WmsModule = WmsModule;
|
|
13265
13915
|
exports.highlightLanguages = highlightLanguages;
|
|
13266
13916
|
exports.ɵa = Service;
|
|
13267
13917
|
exports.ɵb = CustomStompConfig;
|
|
13268
|
-
exports.ɵba =
|
|
13269
|
-
exports.ɵbb =
|
|
13270
|
-
exports.ɵbc =
|
|
13271
|
-
exports.ɵbd =
|
|
13272
|
-
exports.ɵbe =
|
|
13273
|
-
exports.ɵbf =
|
|
13274
|
-
exports.ɵbg =
|
|
13275
|
-
exports.ɵbh =
|
|
13276
|
-
exports.ɵbi =
|
|
13277
|
-
exports.ɵbj =
|
|
13278
|
-
exports.ɵbk =
|
|
13279
|
-
exports.ɵbl =
|
|
13280
|
-
exports.ɵbm =
|
|
13281
|
-
exports.ɵbn =
|
|
13282
|
-
exports.ɵbo =
|
|
13283
|
-
exports.ɵbp =
|
|
13284
|
-
exports.ɵbq =
|
|
13285
|
-
exports.ɵbr =
|
|
13286
|
-
exports.ɵbs =
|
|
13287
|
-
exports.ɵbt =
|
|
13288
|
-
exports.ɵbu =
|
|
13289
|
-
exports.ɵbv =
|
|
13290
|
-
exports.ɵbw =
|
|
13291
|
-
exports.ɵbx =
|
|
13292
|
-
exports.ɵby =
|
|
13293
|
-
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;
|
|
13294
13944
|
exports.ɵc = ViewImageComponent;
|
|
13295
|
-
exports.ɵca =
|
|
13296
|
-
exports.ɵcb =
|
|
13297
|
-
exports.ɵcc =
|
|
13298
|
-
exports.ɵcd =
|
|
13299
|
-
exports.ɵce =
|
|
13300
|
-
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;
|
|
13301
13960
|
exports.ɵd = LogDescritor;
|
|
13302
13961
|
exports.ɵe = LogsComponent;
|
|
13303
13962
|
exports.ɵf = PortariasService;
|
|
@@ -13315,12 +13974,12 @@
|
|
|
13315
13974
|
exports.ɵr = VisitanteFormComponent;
|
|
13316
13975
|
exports.ɵs = CredencialFormComponent;
|
|
13317
13976
|
exports.ɵt = FocusService;
|
|
13318
|
-
exports.ɵu =
|
|
13319
|
-
exports.ɵv =
|
|
13320
|
-
exports.ɵw =
|
|
13321
|
-
exports.ɵx =
|
|
13322
|
-
exports.ɵy =
|
|
13323
|
-
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;
|
|
13324
13983
|
|
|
13325
13984
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
13326
13985
|
|