@seniorsistemas/yms-integration 1.18.4 → 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.
Files changed (73) hide show
  1. package/bundles/seniorsistemas-yms-integration.umd.js +901 -253
  2. package/bundles/seniorsistemas-yms-integration.umd.js.map +1 -1
  3. package/bundles/seniorsistemas-yms-integration.umd.min.js +1 -1
  4. package/bundles/seniorsistemas-yms-integration.umd.min.js.map +1 -1
  5. package/esm2015/index.js +4 -1
  6. package/esm2015/seniorsistemas-yms-integration.js +47 -38
  7. package/esm2015/src/devices/balancas/balancas.service.js +4 -1
  8. package/esm2015/src/devices/balancas/visualiar-balanca/visualizar-balanca.component.js +8 -25
  9. package/esm2015/src/devices/balancas/weightScale.js +1 -1
  10. package/esm2015/src/sam-senior/components/visitor-edit/visitor-edit-list/visitor-edit-list.component.js +32 -1
  11. package/esm2015/src/wms/components/document-grid/document-grid.component.js +166 -0
  12. package/esm2015/src/wms/components/document-grid/document-grid.module.js +35 -0
  13. package/esm2015/src/wms/components/document-grid/insert-key/insert-key.component.js +82 -0
  14. package/esm2015/src/wms/components/document-grid/insert-key/insert-key.module.js +26 -0
  15. package/esm2015/src/wms/components/document-grid/register-document/register-document.component.js +125 -0
  16. package/esm2015/src/wms/components/document-grid/register-document/register-document.module.js +32 -0
  17. package/esm2015/src/wms/entities/agenda/agenda.service.js +22 -0
  18. package/esm2015/src/wms/entities/document/document-dto.js +1 -0
  19. package/esm2015/src/wms/entities/document/document.js +39 -0
  20. package/esm2015/src/wms/entities/document/document.service.js +21 -0
  21. package/esm2015/src/wms/entities/document/find-documents-input.js +1 -0
  22. package/esm2015/src/wms/entities/entity-service.js +4 -0
  23. package/esm2015/src/wms/entities/wms-system/wms-system.js +9 -0
  24. package/esm2015/src/wms/form/form-wms.component.js +60 -0
  25. package/esm2015/src/wms/wms.module.js +68 -0
  26. package/esm5/index.js +4 -1
  27. package/esm5/seniorsistemas-yms-integration.js +47 -38
  28. package/esm5/src/devices/balancas/balancas.service.js +4 -1
  29. package/esm5/src/devices/balancas/visualiar-balanca/visualizar-balanca.component.js +8 -25
  30. package/esm5/src/devices/balancas/weightScale.js +1 -1
  31. package/esm5/src/sam-senior/components/visitor-edit/visitor-edit-list/visitor-edit-list.component.js +32 -1
  32. package/esm5/src/wms/components/document-grid/document-grid.component.js +171 -0
  33. package/esm5/src/wms/components/document-grid/document-grid.module.js +38 -0
  34. package/esm5/src/wms/components/document-grid/insert-key/insert-key.component.js +84 -0
  35. package/esm5/src/wms/components/document-grid/insert-key/insert-key.module.js +29 -0
  36. package/esm5/src/wms/components/document-grid/register-document/register-document.component.js +127 -0
  37. package/esm5/src/wms/components/document-grid/register-document/register-document.module.js +35 -0
  38. package/esm5/src/wms/entities/agenda/agenda.service.js +25 -0
  39. package/esm5/src/wms/entities/document/document-dto.js +1 -0
  40. package/esm5/src/wms/entities/document/document.js +44 -0
  41. package/esm5/src/wms/entities/document/document.service.js +24 -0
  42. package/esm5/src/wms/entities/document/find-documents-input.js +1 -0
  43. package/esm5/src/wms/entities/entity-service.js +11 -0
  44. package/esm5/src/wms/entities/wms-system/wms-system.js +9 -0
  45. package/esm5/src/wms/form/form-wms.component.js +63 -0
  46. package/esm5/src/wms/wms.module.js +69 -0
  47. package/fesm2015/seniorsistemas-yms-integration.js +807 -207
  48. package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
  49. package/fesm5/seniorsistemas-yms-integration.js +840 -204
  50. package/fesm5/seniorsistemas-yms-integration.js.map +1 -1
  51. package/index.d.ts +2 -0
  52. package/package.json +1 -1
  53. package/seniorsistemas-yms-integration.d.ts +46 -37
  54. package/seniorsistemas-yms-integration.metadata.json +1 -1
  55. package/src/devices/balancas/balancas.service.d.ts +1 -0
  56. package/src/devices/balancas/visualiar-balanca/visualizar-balanca.component.d.ts +2 -11
  57. package/src/devices/balancas/weightScale.d.ts +2 -2
  58. package/src/sam-senior/components/visitor-edit/visitor-edit-list/visitor-edit-list.component.d.ts +1 -0
  59. package/src/wms/components/document-grid/document-grid.component.d.ts +41 -0
  60. package/src/wms/components/document-grid/document-grid.module.d.ts +2 -0
  61. package/src/wms/components/document-grid/insert-key/insert-key.component.d.ts +22 -0
  62. package/src/wms/components/document-grid/insert-key/insert-key.module.d.ts +2 -0
  63. package/src/wms/components/document-grid/register-document/register-document.component.d.ts +31 -0
  64. package/src/wms/components/document-grid/register-document/register-document.module.d.ts +2 -0
  65. package/src/wms/entities/agenda/agenda.service.d.ts +9 -0
  66. package/src/wms/entities/document/document-dto.d.ts +16 -0
  67. package/src/wms/entities/document/document.d.ts +20 -0
  68. package/src/wms/entities/document/document.service.d.ts +11 -0
  69. package/src/wms/entities/document/find-documents-input.d.ts +7 -0
  70. package/src/wms/entities/entity-service.d.ts +3 -0
  71. package/src/wms/entities/wms-system/wms-system.d.ts +7 -0
  72. package/src/wms/form/form-wms.component.d.ts +18 -0
  73. package/src/wms/wms.module.d.ts +4 -0
@@ -1,25 +1,25 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('@angular/core'), require('@ngx-translate/core'), require('@seniorsistemas/angular-components'), require('primeng/message'), require('primeng/table'), require('@angular/common/http'), require('primeng/api'), require('@seniorsistemas/yms-routines'), require('@angular/animations'), require('@seniorsistemas/platform-components'), require('@stomp/ng2-stompjs'), require('ngx-cookie-service'), require('sockjs-client'), require('primeng/components/dynamicdialog/dynamicdialog'), require('primeng/primeng'), require('@seniorsistemas/yms-components'), require('@angular/router'), require('primeng/inputswitch'), require('primeng/inputtext'), require('@angular/forms'), require('moment'), require('primeng/components/common/messageservice'), require('primeng/shared'), require('primeng/button'), require('ngx-highlightjs'), require('primeng/accordion'), require('primeng/confirmdialog'), require('primeng/dialog'), require('primeng/dropdown'), require('primeng/panel'), require('angular2-hotkeys'), require('primeng/components/common/api'), require('highlight.js/lib/languages/json'), require('highlight.js/lib/languages/xml')) :
3
- typeof define === 'function' && define.amd ? define('@seniorsistemas/yms-integration', ['exports', 'rxjs', 'rxjs/operators', '@angular/common', '@angular/core', '@ngx-translate/core', '@seniorsistemas/angular-components', 'primeng/message', 'primeng/table', '@angular/common/http', 'primeng/api', '@seniorsistemas/yms-routines', '@angular/animations', '@seniorsistemas/platform-components', '@stomp/ng2-stompjs', 'ngx-cookie-service', 'sockjs-client', 'primeng/components/dynamicdialog/dynamicdialog', 'primeng/primeng', '@seniorsistemas/yms-components', '@angular/router', 'primeng/inputswitch', 'primeng/inputtext', '@angular/forms', 'moment', 'primeng/components/common/messageservice', 'primeng/shared', 'primeng/button', 'ngx-highlightjs', 'primeng/accordion', 'primeng/confirmdialog', 'primeng/dialog', 'primeng/dropdown', 'primeng/panel', 'angular2-hotkeys', 'primeng/components/common/api', 'highlight.js/lib/languages/json', 'highlight.js/lib/languages/xml'], factory) :
4
- (global = global || self, factory((global.seniorsistemas = global.seniorsistemas || {}, global.seniorsistemas['yms-integration'] = {}), global.rxjs, global.rxjs.operators, global.ng.common, global.ng.core, global.core$1, global.angularComponents, global.message, global.table, global.ng.common.http, global.api, global.ymsRoutines, global.ng.animations, global.platformComponents, global.ng2Stompjs, global.ngxCookieService, global.SockJS, global.dynamicdialog, global.primeng, global.ymsComponents, global.ng.router, global.inputswitch, global.inputtext, global.ng.forms, global._moment, global.messageservice, global.shared, global.button, global.ngxHighlightjs, global.accordion, global.confirmdialog, global.dialog, global.dropdown, global.panel, global.angular2Hotkeys, global.api$1, global.jsonx, global.xmlx));
5
- }(this, (function (exports, rxjs, operators, common, core, core$1, angularComponents, message, table, http, api, ymsRoutines, animations, platformComponents, ng2Stompjs, ngxCookieService, SockJS, dynamicdialog, primeng, ymsComponents, router, inputswitch, inputtext, forms, _moment, messageservice, shared, button, ngxHighlightjs, accordion, confirmdialog, dialog, dropdown, panel, angular2Hotkeys, api$1, jsonx, xmlx) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('@angular/core'), require('@ngx-translate/core'), require('@seniorsistemas/angular-components'), require('primeng/message'), require('primeng/table'), require('@angular/common/http'), require('primeng/api'), require('@seniorsistemas/yms-routines'), require('@angular/animations'), require('@seniorsistemas/platform-components'), require('@stomp/ng2-stompjs'), require('sockjs-client'), require('ngx-cookie-service'), require('primeng/components/dynamicdialog/dynamicdialog'), require('primeng/primeng'), require('@seniorsistemas/yms-components'), require('@angular/router'), require('primeng/inputswitch'), require('primeng/inputtext'), require('@angular/forms'), require('moment'), require('primeng/components/common/messageservice'), require('primeng/shared'), require('primeng/button'), require('ngx-highlightjs'), require('primeng/accordion'), require('primeng/confirmdialog'), require('primeng/dialog'), require('primeng/dropdown'), require('primeng/panel'), require('angular2-hotkeys'), require('primeng/components/common/api'), require('highlight.js/lib/languages/json'), require('highlight.js/lib/languages/xml')) :
3
+ typeof define === 'function' && define.amd ? define('@seniorsistemas/yms-integration', ['exports', 'rxjs', 'rxjs/operators', '@angular/common', '@angular/core', '@ngx-translate/core', '@seniorsistemas/angular-components', 'primeng/message', 'primeng/table', '@angular/common/http', 'primeng/api', '@seniorsistemas/yms-routines', '@angular/animations', '@seniorsistemas/platform-components', '@stomp/ng2-stompjs', 'sockjs-client', 'ngx-cookie-service', 'primeng/components/dynamicdialog/dynamicdialog', 'primeng/primeng', '@seniorsistemas/yms-components', '@angular/router', 'primeng/inputswitch', 'primeng/inputtext', '@angular/forms', 'moment', 'primeng/components/common/messageservice', 'primeng/shared', 'primeng/button', 'ngx-highlightjs', 'primeng/accordion', 'primeng/confirmdialog', 'primeng/dialog', 'primeng/dropdown', 'primeng/panel', 'angular2-hotkeys', 'primeng/components/common/api', 'highlight.js/lib/languages/json', 'highlight.js/lib/languages/xml'], factory) :
4
+ (global = global || self, factory((global.seniorsistemas = global.seniorsistemas || {}, global.seniorsistemas['yms-integration'] = {}), global.rxjs, global.rxjs.operators, global.ng.common, global.ng.core, global.core$1, global.angularComponents, global.message, global.table, global.ng.common.http, global.api, global.ymsRoutines, global.ng.animations, global.platformComponents, global.ng2Stompjs, global.SockJS, global.ngxCookieService, global.dynamicdialog, global.primeng, global.ymsComponents, global.ng.router, global.inputswitch, global.inputtext, global.ng.forms, global._moment, global.messageservice, global.shared, global.button, global.ngxHighlightjs, global.accordion, global.confirmdialog, global.dialog, global.dropdown, global.panel, global.angular2Hotkeys, global.api$1, global.jsonx, global.xmlx));
5
+ }(this, (function (exports, rxjs, operators, common, core, core$1, angularComponents, message, table, http, api, ymsRoutines, animations, platformComponents, ng2Stompjs, SockJS, ngxCookieService, dynamicdialog, primeng, ymsComponents, router, inputswitch, inputtext, forms, _moment, messageservice, shared, button, ngxHighlightjs, accordion, confirmdialog, dialog, dropdown, panel, angular2Hotkeys, api$1, jsonx, xmlx) { 'use strict';
6
6
 
7
7
  jsonx = jsonx && Object.prototype.hasOwnProperty.call(jsonx, 'default') ? jsonx['default'] : jsonx;
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
- Permission to use, copy, modify, and/or distribute this software for any
14
- purpose with or without fee is hereby granted.
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
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
17
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
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 s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
66
+ var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
67
67
  if (m) return m.call(o);
68
- if (o && typeof o.length === "number") return {
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) {
@@ -435,6 +434,9 @@
435
434
  BalancasService.prototype.fallbackCall = function (balanca, peso) {
436
435
  return this.http.post(this.urlBalanca + "actions/manualWeight", { code: balanca, weight: peso }).pipe(this.defaultCatch());
437
436
  };
437
+ BalancasService.prototype.getStabilizedWeight = function (code) {
438
+ return this.http.post(this.urlBalanca + "queries/getStabilizedWeight", { code: code }).pipe(this.defaultCatch());
439
+ };
438
440
  BalancasService.prototype.getWeightScaleByCode = function (code) {
439
441
  var params = {
440
442
  displayFields: ["description", "code"],
@@ -468,13 +470,10 @@
468
470
  }());
469
471
  var VisualizarBalancaComponent = /** @class */ (function (_super) {
470
472
  __extends(VisualizarBalancaComponent, _super);
471
- function VisualizarBalancaComponent(service, client, cookieService) {
473
+ function VisualizarBalancaComponent(service) {
472
474
  var _this = _super.call(this) || this;
473
475
  _this.service = service;
474
- _this.client = client;
475
- _this.cookieService = cookieService;
476
476
  _this.loading = false;
477
- _this.websocket = new IntegrationWebSocket(_this.client, _this.cookieService, 'integration');
478
477
  _this.unsubscribe$ = new rxjs.Subject();
479
478
  _this.weightScales$ = new rxjs.BehaviorSubject([]);
480
479
  _this.weightScaleValues = new Map();
@@ -492,19 +491,10 @@
492
491
  _this.weightScales$.next(contents);
493
492
  contents.forEach(function (value) {
494
493
  _this.weightScaleValues.set(value.id, 0);
495
- });
496
- });
497
- this.websocket.connect(function (url, client) {
498
- client.subscribe(url + "wsWeightScale")
499
- .pipe(operators.map(function (message) { return message.body; }), operators.map(function (body) { return JSON.parse(body).data; }), operators.takeUntil(_this.unsubscribe$))
500
- .subscribe(function (payload) {
501
- if (!_this.weightScales$.value.length)
502
- return;
503
- var index = _this.weightScales$.value.findIndex(function (value) { return value.id === payload.weightScale.id; });
504
- if (index < 0)
505
- return;
506
- var find = _this.weightScales$.value[index];
507
- _this.weightScaleValues.set(find.id, payload.weight);
494
+ _this.service.getStabilizedWeight(value.code)
495
+ .subscribe(function (stabilized) {
496
+ _this.weightScaleValues.set(value.id, stabilized.weight);
497
+ });
508
498
  });
509
499
  });
510
500
  };
@@ -521,9 +511,7 @@
521
511
  selector: 'visualizar-balanca-component',
522
512
  template: "<div *sLoadingState=\"loading\">\n <p-table [value]=\"weightScales$ | async\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th>C\u00F3digo</th>\n <th>Descri\u00E7\u00E3o</th>\n <th>Peso</th>\n </tr>\n </ng-template>\n <ng-template let-rowData pTemplate=\"body\">\n <tr>\n <td>{{rowData.code}}</td>\n <td>{{rowData.description}}</td>\n <td>{{weightScaleValues.get(rowData.id)}}</td>\n </tr>\n </ng-template>\n </p-table>\n</div>"
523
513
  }),
524
- __metadata("design:paramtypes", [BalancasService,
525
- ng2Stompjs.StompService,
526
- ngxCookieService.CookieService])
514
+ __metadata("design:paramtypes", [BalancasService])
527
515
  ], VisualizarBalancaComponent);
528
516
  return VisualizarBalancaComponent;
529
517
  }(VisualizarBalancaDescritor));
@@ -1960,6 +1948,16 @@
1960
1948
  driver: true
1961
1949
  });
1962
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
+ }
1963
1961
  };
1964
1962
  VisitanteComponent.prototype.adicionaVisitantesGrid = function () {
1965
1963
  var _this = this;
@@ -2052,6 +2050,14 @@
2052
2050
  if (visitor.document === visitante.document) {
2053
2051
  visitor.contact = visitante.contact;
2054
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);
2055
2061
  _this.visitorFound = true;
2056
2062
  }
2057
2063
  });
@@ -2079,6 +2085,19 @@
2079
2085
  this.visitorsChange.emit(this.visitors);
2080
2086
  this.hasChange.emit(true);
2081
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
+ };
2082
2101
  VisitanteComponent.prototype.model = function (visitante) {
2083
2102
  var _this = this;
2084
2103
  var isDriver = visitante.document === this.motorista.cpf;
@@ -3035,6 +3054,282 @@
3035
3054
  return VisitorListModule;
3036
3055
  }());
3037
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
+
3038
3333
  var EntityService$1 = /** @class */ (function () {
3039
3334
  function EntityService(http, messageService, entityUrl, actionsUrl) {
3040
3335
  this.http = http;
@@ -3129,9 +3424,349 @@
3129
3424
  return EntityService;
3130
3425
  }());
3131
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
+
3132
3767
  var ERP_ENVIRONMENT = new core.InjectionToken('integration_environment');
3133
3768
 
3134
- var AgendaService = /** @class */ (function (_super) {
3769
+ var AgendaService$1 = /** @class */ (function (_super) {
3135
3770
  __extends(AgendaService, _super);
3136
3771
  function AgendaService(http, messageService, environment) {
3137
3772
  var _this = _super.call(this, http, messageService, environment.project.domain + "/" + environment.project.service + "/entities/agenda", environment.project.domain + "/" + environment.project.service + "/actions") || this;
@@ -3232,7 +3867,7 @@
3232
3867
  RecebimentoChegadaVeiculoOverride = __decorate([
3233
3868
  core.Injectable(),
3234
3869
  __metadata("design:paramtypes", [ymsRoutines.ChegadaVeiculoOverride,
3235
- AgendaService,
3870
+ AgendaService$1,
3236
3871
  RecebimentoContratoService])
3237
3872
  ], RecebimentoChegadaVeiculoOverride);
3238
3873
  return RecebimentoChegadaVeiculoOverride;
@@ -3296,7 +3931,7 @@
3296
3931
  ExpedicaoChegadaVeiculoOverride = __decorate([
3297
3932
  core.Injectable(),
3298
3933
  __metadata("design:paramtypes", [ymsRoutines.ChegadaVeiculoOverride,
3299
- AgendaService,
3934
+ AgendaService$1,
3300
3935
  ExpedicaoService])
3301
3936
  ], ExpedicaoChegadaVeiculoOverride);
3302
3937
  return ExpedicaoChegadaVeiculoOverride;
@@ -3513,7 +4148,7 @@
3513
4148
  return OrdemCompraService;
3514
4149
  }(EntityService$1));
3515
4150
 
3516
- var moment$4 = _moment;
4151
+ var moment$5 = _moment;
3517
4152
  /*{CA:PROJECT_IMPORTS:END}*/
3518
4153
  var Empresa = /** @class */ (function () {
3519
4154
  function Empresa() {
@@ -3522,8 +4157,8 @@
3522
4157
  /*{CA:CLASS_ATTRIBUTES:END}*/
3523
4158
  Empresa.fromDto = function (empresaDto, originEntity) {
3524
4159
  var model = __assign({}, empresaDto);
3525
- model.createdDate = model.createdDate && moment$4(model.createdDate).toDate();
3526
- model.lastModifiedDate = model.lastModifiedDate && moment$4(model.lastModifiedDate).toDate();
4160
+ model.createdDate = model.createdDate && moment$5(model.createdDate).toDate();
4161
+ model.lastModifiedDate = model.lastModifiedDate && moment$5(model.lastModifiedDate).toDate();
3527
4162
  var lookupSeparator = " - ";
3528
4163
  var displayFields = [
3529
4164
  "codigo",
@@ -3535,8 +4170,8 @@
3535
4170
  };
3536
4171
  Empresa.toDto = function (empresa, originEntity) {
3537
4172
  var dto = __assign({}, empresa);
3538
- dto.createdDate = dto.createdDate && moment$4(dto.createdDate).format();
3539
- dto.lastModifiedDate = dto.lastModifiedDate && moment$4(dto.lastModifiedDate).format();
4173
+ dto.createdDate = dto.createdDate && moment$5(dto.createdDate).format();
4174
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$5(dto.lastModifiedDate).format();
3540
4175
  delete dto.label;
3541
4176
  return dto;
3542
4177
  };
@@ -3545,7 +4180,7 @@
3545
4180
  /*{CA:FILE_CONTENTS:START}*/
3546
4181
  /*{CA:FILE_CONTENTS:END}*/
3547
4182
 
3548
- var moment$5 = _moment;
4183
+ var moment$6 = _moment;
3549
4184
  /*{CA:PROJECT_IMPORTS:START}*/
3550
4185
  /*{CA:PROJECT_IMPORTS:END}*/
3551
4186
  var Pessoa = /** @class */ (function () {
@@ -3555,8 +4190,8 @@
3555
4190
  /*{CA:CLASS_ATTRIBUTES:END}*/
3556
4191
  Pessoa.fromDto = function (pessoaDto, originEntity) {
3557
4192
  var model = __assign({}, pessoaDto);
3558
- model.createdDate = model.createdDate && moment$5(model.createdDate).toDate();
3559
- model.lastModifiedDate = model.lastModifiedDate && moment$5(model.lastModifiedDate).toDate();
4193
+ model.createdDate = model.createdDate && moment$6(model.createdDate).toDate();
4194
+ model.lastModifiedDate = model.lastModifiedDate && moment$6(model.lastModifiedDate).toDate();
3560
4195
  var lookupSeparator = " - ";
3561
4196
  var displayFields = [
3562
4197
  "codigo",
@@ -3568,8 +4203,8 @@
3568
4203
  };
3569
4204
  Pessoa.toDto = function (pessoa, originEntity) {
3570
4205
  var dto = __assign({}, pessoa);
3571
- dto.createdDate = dto.createdDate && moment$5(dto.createdDate).format();
3572
- dto.lastModifiedDate = dto.lastModifiedDate && moment$5(dto.lastModifiedDate).format();
4206
+ dto.createdDate = dto.createdDate && moment$6(dto.createdDate).format();
4207
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$6(dto.lastModifiedDate).format();
3573
4208
  delete dto.label;
3574
4209
  return dto;
3575
4210
  };
@@ -3578,7 +4213,7 @@
3578
4213
  /*{CA:FILE_CONTENTS:START}*/
3579
4214
  /*{CA:FILE_CONTENTS:END}*/
3580
4215
 
3581
- var moment$6 = _moment;
4216
+ var moment$7 = _moment;
3582
4217
  /*{CA:PROJECT_IMPORTS:START}*/
3583
4218
  /*{CA:PROJECT_IMPORTS:END}*/
3584
4219
  var PessoaJuridica = /** @class */ (function () {
@@ -3588,8 +4223,8 @@
3588
4223
  /*{CA:CLASS_ATTRIBUTES:END}*/
3589
4224
  PessoaJuridica.fromDto = function (pessoaJuridicaDto, originEntity) {
3590
4225
  var model = __assign({}, pessoaJuridicaDto);
3591
- model.createdDate = model.createdDate && moment$6(model.createdDate).toDate();
3592
- model.lastModifiedDate = model.lastModifiedDate && moment$6(model.lastModifiedDate).toDate();
4226
+ model.createdDate = model.createdDate && moment$7(model.createdDate).toDate();
4227
+ model.lastModifiedDate = model.lastModifiedDate && moment$7(model.lastModifiedDate).toDate();
3593
4228
  var lookupSeparator = " - ";
3594
4229
  var displayFields = [
3595
4230
  "id",
@@ -3616,8 +4251,8 @@
3616
4251
  };
3617
4252
  PessoaJuridica.toDto = function (pessoaJuridica, originEntity) {
3618
4253
  var dto = __assign({}, pessoaJuridica);
3619
- dto.createdDate = dto.createdDate && moment$6(dto.createdDate).format();
3620
- dto.lastModifiedDate = dto.lastModifiedDate && moment$6(dto.lastModifiedDate).format();
4254
+ dto.createdDate = dto.createdDate && moment$7(dto.createdDate).format();
4255
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$7(dto.lastModifiedDate).format();
3621
4256
  delete dto.label;
3622
4257
  if (originEntity !== "Pessoa" && dto.pessoa)
3623
4258
  dto.pessoa = Pessoa.toDto(dto.pessoa, "PessoaJuridica");
@@ -3628,7 +4263,7 @@
3628
4263
  /*{CA:FILE_CONTENTS:START}*/
3629
4264
  /*{CA:FILE_CONTENTS:END}*/
3630
4265
 
3631
- var moment$7 = _moment;
4266
+ var moment$8 = _moment;
3632
4267
  /*{CA:PROJECT_IMPORTS:START}*/
3633
4268
  /*{CA:PROJECT_IMPORTS:END}*/
3634
4269
  var Pais = /** @class */ (function () {
@@ -3638,8 +4273,8 @@
3638
4273
  /*{CA:CLASS_ATTRIBUTES:END}*/
3639
4274
  Pais.fromDto = function (paisDto, originEntity) {
3640
4275
  var model = __assign({}, paisDto);
3641
- model.createdDate = model.createdDate && moment$7(model.createdDate).toDate();
3642
- model.lastModifiedDate = model.lastModifiedDate && moment$7(model.lastModifiedDate).toDate();
4276
+ model.createdDate = model.createdDate && moment$8(model.createdDate).toDate();
4277
+ model.lastModifiedDate = model.lastModifiedDate && moment$8(model.lastModifiedDate).toDate();
3643
4278
  var lookupSeparator = " - ";
3644
4279
  var displayFields = ["id", "codigo", "descricao", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
3645
4280
  model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
@@ -3647,8 +4282,8 @@
3647
4282
  };
3648
4283
  Pais.toDto = function (pais, originEntity) {
3649
4284
  var dto = __assign({}, pais);
3650
- dto.createdDate = dto.createdDate && moment$7(dto.createdDate).format();
3651
- dto.lastModifiedDate = dto.lastModifiedDate && moment$7(dto.lastModifiedDate).format();
4285
+ dto.createdDate = dto.createdDate && moment$8(dto.createdDate).format();
4286
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$8(dto.lastModifiedDate).format();
3652
4287
  delete dto.label;
3653
4288
  return dto;
3654
4289
  };
@@ -3657,7 +4292,7 @@
3657
4292
  /*{CA:FILE_CONTENTS:START}*/
3658
4293
  /*{CA:FILE_CONTENTS:END}*/
3659
4294
 
3660
- var moment$8 = _moment;
4295
+ var moment$9 = _moment;
3661
4296
  /*{CA:PROJECT_IMPORTS:START}*/
3662
4297
  /*{CA:PROJECT_IMPORTS:END}*/
3663
4298
  var Estado = /** @class */ (function () {
@@ -3667,8 +4302,8 @@
3667
4302
  /*{CA:CLASS_ATTRIBUTES:END}*/
3668
4303
  Estado.fromDto = function (estadoDto, originEntity) {
3669
4304
  var model = __assign({}, estadoDto);
3670
- model.createdDate = model.createdDate && moment$8(model.createdDate).toDate();
3671
- model.lastModifiedDate = model.lastModifiedDate && moment$8(model.lastModifiedDate).toDate();
4305
+ model.createdDate = model.createdDate && moment$9(model.createdDate).toDate();
4306
+ model.lastModifiedDate = model.lastModifiedDate && moment$9(model.lastModifiedDate).toDate();
3672
4307
  var lookupSeparator = " - ";
3673
4308
  var displayFields = [
3674
4309
  "id",
@@ -3690,8 +4325,8 @@
3690
4325
  };
3691
4326
  Estado.toDto = function (estado, originEntity) {
3692
4327
  var dto = __assign({}, estado);
3693
- dto.createdDate = dto.createdDate && moment$8(dto.createdDate).format();
3694
- dto.lastModifiedDate = dto.lastModifiedDate && moment$8(dto.lastModifiedDate).format();
4328
+ dto.createdDate = dto.createdDate && moment$9(dto.createdDate).format();
4329
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$9(dto.lastModifiedDate).format();
3695
4330
  delete dto.label;
3696
4331
  if (originEntity !== "Pais" && dto.pais)
3697
4332
  dto.pais = Pais.toDto(dto.pais, "Estado");
@@ -3702,7 +4337,7 @@
3702
4337
  /*{CA:FILE_CONTENTS:START}*/
3703
4338
  /*{CA:FILE_CONTENTS:END}*/
3704
4339
 
3705
- var moment$9 = _moment;
4340
+ var moment$a = _moment;
3706
4341
  /*{CA:PROJECT_IMPORTS:START}*/
3707
4342
  /*{CA:PROJECT_IMPORTS:END}*/
3708
4343
  var Cidade = /** @class */ (function () {
@@ -3712,8 +4347,8 @@
3712
4347
  /*{CA:CLASS_ATTRIBUTES:END}*/
3713
4348
  Cidade.fromDto = function (cidadeDto, originEntity) {
3714
4349
  var model = __assign({}, cidadeDto);
3715
- model.createdDate = model.createdDate && moment$9(model.createdDate).toDate();
3716
- model.lastModifiedDate = model.lastModifiedDate && moment$9(model.lastModifiedDate).toDate();
4350
+ model.createdDate = model.createdDate && moment$a(model.createdDate).toDate();
4351
+ model.lastModifiedDate = model.lastModifiedDate && moment$a(model.lastModifiedDate).toDate();
3717
4352
  var lookupSeparator = " - ";
3718
4353
  var displayFields = [
3719
4354
  "id",
@@ -3734,8 +4369,8 @@
3734
4369
  };
3735
4370
  Cidade.toDto = function (cidade, originEntity) {
3736
4371
  var dto = __assign({}, cidade);
3737
- dto.createdDate = dto.createdDate && moment$9(dto.createdDate).format();
3738
- dto.lastModifiedDate = dto.lastModifiedDate && moment$9(dto.lastModifiedDate).format();
4372
+ dto.createdDate = dto.createdDate && moment$a(dto.createdDate).format();
4373
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$a(dto.lastModifiedDate).format();
3739
4374
  delete dto.label;
3740
4375
  if (originEntity !== "Estado" && dto.estado)
3741
4376
  dto.estado = Estado.toDto(dto.estado, "Cidade");
@@ -3746,14 +4381,14 @@
3746
4381
  /*{CA:FILE_CONTENTS:START}*/
3747
4382
  /*{CA:FILE_CONTENTS:END}*/
3748
4383
 
3749
- var moment$a = _moment;
4384
+ var moment$b = _moment;
3750
4385
  var PessoaEndereco = /** @class */ (function () {
3751
4386
  function PessoaEndereco() {
3752
4387
  }
3753
4388
  PessoaEndereco.fromDto = function (pessoaEnderecoDto, originEntity) {
3754
4389
  var model = __assign({}, pessoaEnderecoDto);
3755
- model.createdDate = model.createdDate && moment$a(model.createdDate).toDate();
3756
- model.lastModifiedDate = model.lastModifiedDate && moment$a(model.lastModifiedDate).toDate();
4390
+ model.createdDate = model.createdDate && moment$b(model.createdDate).toDate();
4391
+ model.lastModifiedDate = model.lastModifiedDate && moment$b(model.lastModifiedDate).toDate();
3757
4392
  var lookupSeparator = " - ";
3758
4393
  var displayFields = [
3759
4394
  "codigo",
@@ -3769,8 +4404,8 @@
3769
4404
  };
3770
4405
  PessoaEndereco.toDto = function (pessoaEndereco, originEntity) {
3771
4406
  var dto = __assign({}, pessoaEndereco);
3772
- dto.createdDate = dto.createdDate && moment$a(dto.createdDate).format();
3773
- dto.lastModifiedDate = dto.lastModifiedDate && moment$a(dto.lastModifiedDate).format();
4407
+ dto.createdDate = dto.createdDate && moment$b(dto.createdDate).format();
4408
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$b(dto.lastModifiedDate).format();
3774
4409
  delete dto.label;
3775
4410
  if (originEntity !== "Pessoa" && dto.pessoa)
3776
4411
  dto.pessoa = Pessoa.toDto(dto.pessoa, "PessoaEndereco");
@@ -3781,7 +4416,7 @@
3781
4416
  return PessoaEndereco;
3782
4417
  }());
3783
4418
 
3784
- var moment$b = _moment;
4419
+ var moment$c = _moment;
3785
4420
  /*{CA:PROJECT_IMPORTS:START}*/
3786
4421
  /*{CA:PROJECT_IMPORTS:END}*/
3787
4422
  var Filial = /** @class */ (function () {
@@ -3791,8 +4426,8 @@
3791
4426
  /*{CA:CLASS_ATTRIBUTES:END}*/
3792
4427
  Filial.fromDto = function (filialDto, originEntity) {
3793
4428
  var model = __assign({}, filialDto);
3794
- model.createdDate = model.createdDate && moment$b(model.createdDate).toDate();
3795
- model.lastModifiedDate = model.lastModifiedDate && moment$b(model.lastModifiedDate).toDate();
4429
+ model.createdDate = model.createdDate && moment$c(model.createdDate).toDate();
4430
+ model.lastModifiedDate = model.lastModifiedDate && moment$c(model.lastModifiedDate).toDate();
3796
4431
  var lookupSeparator = " - ";
3797
4432
  var displayFields = [
3798
4433
  "codigo",
@@ -3810,8 +4445,8 @@
3810
4445
  };
3811
4446
  Filial.toDto = function (filial, originEntity) {
3812
4447
  var dto = __assign({}, filial);
3813
- dto.createdDate = dto.createdDate && moment$b(dto.createdDate).format();
3814
- dto.lastModifiedDate = dto.lastModifiedDate && moment$b(dto.lastModifiedDate).format();
4448
+ dto.createdDate = dto.createdDate && moment$c(dto.createdDate).format();
4449
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$c(dto.lastModifiedDate).format();
3815
4450
  delete dto.label;
3816
4451
  if (originEntity !== "Empresa" && dto.empresa)
3817
4452
  dto.empresa = Empresa.toDto(dto.empresa, "Filial");
@@ -3826,14 +4461,14 @@
3826
4461
  /*{CA:FILE_CONTENTS:START}*/
3827
4462
  /*{CA:FILE_CONTENTS:END}*/
3828
4463
 
3829
- var moment$c = _moment;
4464
+ var moment$d = _moment;
3830
4465
  var OrdemCompra = /** @class */ (function () {
3831
4466
  function OrdemCompra() {
3832
4467
  }
3833
4468
  OrdemCompra.fromDto = function (ordemCompraDto, originEntity) {
3834
4469
  var model = __assign({}, ordemCompraDto);
3835
- model.createdDate = model.createdDate && moment$c(model.createdDate).toDate();
3836
- model.lastModifiedDate = model.lastModifiedDate && moment$c(model.lastModifiedDate).toDate();
4470
+ model.createdDate = model.createdDate && moment$d(model.createdDate).toDate();
4471
+ model.lastModifiedDate = model.lastModifiedDate && moment$d(model.lastModifiedDate).toDate();
3837
4472
  var lookupSeparator = " - ";
3838
4473
  var displayFields = [
3839
4474
  "codigo",
@@ -3849,8 +4484,8 @@
3849
4484
  };
3850
4485
  OrdemCompra.toDto = function (ordemCompra, originEntity) {
3851
4486
  var dto = __assign({}, ordemCompra);
3852
- dto.createdDate = dto.createdDate && moment$c(dto.createdDate).format();
3853
- dto.lastModifiedDate = dto.lastModifiedDate && moment$c(dto.lastModifiedDate).format();
4487
+ dto.createdDate = dto.createdDate && moment$d(dto.createdDate).format();
4488
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$d(dto.lastModifiedDate).format();
3854
4489
  delete dto.label;
3855
4490
  if (originEntity !== "Empresa" && dto.empresa)
3856
4491
  dto.empresa = Empresa.toDto(dto.empresa, "Produto");
@@ -3861,7 +4496,7 @@
3861
4496
  return OrdemCompra;
3862
4497
  }());
3863
4498
 
3864
- var moment$d = _moment;
4499
+ var moment$e = _moment;
3865
4500
  var OrdemCompraFormComponent = /** @class */ (function () {
3866
4501
  function OrdemCompraFormComponent(dialogRef, dialogConfig, ordemCompraService, translate, fb, route) {
3867
4502
  this.dialogRef = dialogRef;
@@ -3940,7 +4575,7 @@
3940
4575
  if (filial && filial.empresa && filial.empresa.id) {
3941
4576
  filter.empresaId = filial.empresa.id;
3942
4577
  }
3943
- filter.dataEmissao = filter.dataEmissao && moment$d(filter.dataEmissao).format("YYYY-MM-DD");
4578
+ filter.dataEmissao = filter.dataEmissao && moment$e(filter.dataEmissao).format("YYYY-MM-DD");
3944
4579
  var sort = (multiSortMeta || []).length ? { field: multiSortMeta[0].field, order: multiSortMeta[0].order === 1 ? 'Asc' : 'Desc' } : { field: 'numero', order: 'Asc' };
3945
4580
  this.ordemCompraService
3946
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: {
@@ -4304,7 +4939,7 @@
4304
4939
  ]),
4305
4940
  ],
4306
4941
  providers: [
4307
- AgendaService,
4942
+ AgendaService$1,
4308
4943
  ],
4309
4944
  declarations: [
4310
4945
  /*{CA:MODULE_DECLARATIONS:START}*/
@@ -6171,13 +6806,13 @@
6171
6806
  DevolucaoChegadaVeiculoOverride = __decorate([
6172
6807
  core.Injectable(),
6173
6808
  __metadata("design:paramtypes", [ymsRoutines.ChegadaVeiculoOverride,
6174
- AgendaService,
6809
+ AgendaService$1,
6175
6810
  DevolucaoService])
6176
6811
  ], DevolucaoChegadaVeiculoOverride);
6177
6812
  return DevolucaoChegadaVeiculoOverride;
6178
6813
  }());
6179
6814
 
6180
- var moment$e = _moment;
6815
+ var moment$f = _moment;
6181
6816
  /*{CA:PROJECT_IMPORTS:START}*/
6182
6817
  /*{CA:PROJECT_IMPORTS:END}*/
6183
6818
  var UnidadeMedida = /** @class */ (function () {
@@ -6187,8 +6822,8 @@
6187
6822
  /*{CA:CLASS_ATTRIBUTES:END}*/
6188
6823
  UnidadeMedida.fromDto = function (unidadeMedidaDto, originEntity) {
6189
6824
  var model = __assign({}, unidadeMedidaDto);
6190
- model.createdDate = model.createdDate && moment$e(model.createdDate).toDate();
6191
- model.lastModifiedDate = model.lastModifiedDate && moment$e(model.lastModifiedDate).toDate();
6825
+ model.createdDate = model.createdDate && moment$f(model.createdDate).toDate();
6826
+ model.lastModifiedDate = model.lastModifiedDate && moment$f(model.lastModifiedDate).toDate();
6192
6827
  var lookupSeparator = " - ";
6193
6828
  var displayFields = [
6194
6829
  "id",
@@ -6205,8 +6840,8 @@
6205
6840
  };
6206
6841
  UnidadeMedida.toDto = function (unidadeMedida, originEntity) {
6207
6842
  var dto = __assign({}, unidadeMedida);
6208
- dto.createdDate = dto.createdDate && moment$e(dto.createdDate).format();
6209
- dto.lastModifiedDate = dto.lastModifiedDate && moment$e(dto.lastModifiedDate).format();
6843
+ dto.createdDate = dto.createdDate && moment$f(dto.createdDate).format();
6844
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$f(dto.lastModifiedDate).format();
6210
6845
  delete dto.label;
6211
6846
  return dto;
6212
6847
  };
@@ -6215,7 +6850,7 @@
6215
6850
  /*{CA:FILE_CONTENTS:START}*/
6216
6851
  /*{CA:FILE_CONTENTS:END}*/
6217
6852
 
6218
- var moment$f = _moment;
6853
+ var moment$g = _moment;
6219
6854
  /*{CA:PROJECT_IMPORTS:START}*/
6220
6855
  /*{CA:PROJECT_IMPORTS:END}*/
6221
6856
  var Royalty = /** @class */ (function () {
@@ -6225,8 +6860,8 @@
6225
6860
  /*{CA:CLASS_ATTRIBUTES:END}*/
6226
6861
  Royalty.fromDto = function (royaltyDto, originEntity) {
6227
6862
  var model = __assign({}, royaltyDto);
6228
- model.createdDate = model.createdDate && moment$f(model.createdDate).toDate();
6229
- model.lastModifiedDate = model.lastModifiedDate && moment$f(model.lastModifiedDate).toDate();
6863
+ model.createdDate = model.createdDate && moment$g(model.createdDate).toDate();
6864
+ model.lastModifiedDate = model.lastModifiedDate && moment$g(model.lastModifiedDate).toDate();
6230
6865
  var lookupSeparator = " - ";
6231
6866
  var displayFields = ["id", "codigo", "descricao", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
6232
6867
  model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
@@ -6236,8 +6871,8 @@
6236
6871
  };
6237
6872
  Royalty.toDto = function (royalty, originEntity) {
6238
6873
  var dto = __assign({}, royalty);
6239
- dto.createdDate = dto.createdDate && moment$f(dto.createdDate).format();
6240
- dto.lastModifiedDate = dto.lastModifiedDate && moment$f(dto.lastModifiedDate).format();
6874
+ dto.createdDate = dto.createdDate && moment$g(dto.createdDate).format();
6875
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$g(dto.lastModifiedDate).format();
6241
6876
  delete dto.label;
6242
6877
  if (originEntity !== "Empresa" && dto.empresa)
6243
6878
  dto.empresa = Empresa.toDto(dto.empresa, "Royalty");
@@ -6248,7 +6883,7 @@
6248
6883
  /*{CA:FILE_CONTENTS:START}*/
6249
6884
  /*{CA:FILE_CONTENTS:END}*/
6250
6885
 
6251
- var moment$g = _moment;
6886
+ var moment$h = _moment;
6252
6887
  var FamiliaProduto = /** @class */ (function () {
6253
6888
  function FamiliaProduto() {
6254
6889
  }
@@ -6257,9 +6892,9 @@
6257
6892
  return familiaProdutoDto;
6258
6893
  }
6259
6894
  var model = __assign({}, familiaProdutoDto);
6260
- model.createdDate = model.codigo && moment$g(model.createdDate).toDate();
6261
- model.createdDate = model.createdDate && moment$g(model.createdDate).toDate();
6262
- model.lastModifiedDate = model.lastModifiedDate && moment$g(model.lastModifiedDate).toDate();
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();
6263
6898
  var lookupSeparator = " - ";
6264
6899
  var displayFields = ["id", "codigo", "descricao", "situacao", "createdBy", "createdDate", "lastModifiedBy", "lastModifiedDate"];
6265
6900
  model.label = displayFields.map(function (field) { return model[field]; }).join(lookupSeparator);
@@ -6269,8 +6904,8 @@
6269
6904
  };
6270
6905
  FamiliaProduto.toDto = function (familiaProduto, originEntity) {
6271
6906
  var dto = __assign({}, familiaProduto);
6272
- dto.createdDate = dto.createdDate && moment$g(dto.createdDate).format();
6273
- dto.lastModifiedDate = dto.lastModifiedDate && moment$g(dto.lastModifiedDate).format();
6907
+ dto.createdDate = dto.createdDate && moment$h(dto.createdDate).format();
6908
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$h(dto.lastModifiedDate).format();
6274
6909
  delete dto.label;
6275
6910
  if (originEntity !== "Empresa" && dto.empresa)
6276
6911
  dto.empresa = Empresa.toDto(dto.empresa, "FamiliaProduto");
@@ -6279,7 +6914,7 @@
6279
6914
  return FamiliaProduto;
6280
6915
  }());
6281
6916
 
6282
- var moment$h = _moment;
6917
+ var moment$i = _moment;
6283
6918
  var Produto = /** @class */ (function () {
6284
6919
  function Produto() {
6285
6920
  this.produtoMisto = false;
@@ -6287,8 +6922,8 @@
6287
6922
  }
6288
6923
  Produto.fromDto = function (produtoDto, originEntity) {
6289
6924
  var model = __assign({}, produtoDto);
6290
- model.createdDate = model.createdDate && moment$h(model.createdDate).toDate();
6291
- model.lastModifiedDate = model.lastModifiedDate && moment$h(model.lastModifiedDate).toDate();
6925
+ model.createdDate = model.createdDate && moment$i(model.createdDate).toDate();
6926
+ model.lastModifiedDate = model.lastModifiedDate && moment$i(model.lastModifiedDate).toDate();
6292
6927
  var lookupSeparator = " - ";
6293
6928
  var displayFields = [
6294
6929
  "codigo",
@@ -6309,8 +6944,8 @@
6309
6944
  };
6310
6945
  Produto.toDto = function (produto, originEntity) {
6311
6946
  var dto = __assign({}, produto);
6312
- dto.createdDate = dto.createdDate && moment$h(dto.createdDate).format();
6313
- dto.lastModifiedDate = dto.lastModifiedDate && moment$h(dto.lastModifiedDate).format();
6947
+ dto.createdDate = dto.createdDate && moment$i(dto.createdDate).format();
6948
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$i(dto.lastModifiedDate).format();
6314
6949
  delete dto.label;
6315
6950
  if (originEntity !== "Empresa" && dto.empresa)
6316
6951
  dto.empresa = Empresa.toDto(dto.empresa, "Produto");
@@ -6327,7 +6962,7 @@
6327
6962
  return Produto;
6328
6963
  }());
6329
6964
 
6330
- var moment$i = _moment;
6965
+ var moment$j = _moment;
6331
6966
  /*{CA:PROJECT_IMPORTS:START}*/
6332
6967
  /*{CA:PROJECT_IMPORTS:END}*/
6333
6968
  var Derivacao = /** @class */ (function () {
@@ -6337,8 +6972,8 @@
6337
6972
  /*{CA:CLASS_ATTRIBUTES:END}*/
6338
6973
  Derivacao.fromDto = function (derivacaoDto, originEntity) {
6339
6974
  var model = __assign({}, derivacaoDto);
6340
- model.createdDate = model.createdDate && moment$i(model.createdDate).toDate();
6341
- model.lastModifiedDate = model.lastModifiedDate && moment$i(model.lastModifiedDate).toDate();
6975
+ model.createdDate = model.createdDate && moment$j(model.createdDate).toDate();
6976
+ model.lastModifiedDate = model.lastModifiedDate && moment$j(model.lastModifiedDate).toDate();
6342
6977
  var lookupSeparator = " - ";
6343
6978
  var displayFields = ["codigo", "descricao"];
6344
6979
  model.label = getLookupLabel(model, displayFields, lookupSeparator);
@@ -6350,8 +6985,8 @@
6350
6985
  };
6351
6986
  Derivacao.toDto = function (derivacao, originEntity) {
6352
6987
  var dto = __assign({}, derivacao);
6353
- dto.createdDate = dto.createdDate && moment$i(dto.createdDate).format();
6354
- dto.lastModifiedDate = dto.lastModifiedDate && moment$i(dto.lastModifiedDate).format();
6988
+ dto.createdDate = dto.createdDate && moment$j(dto.createdDate).format();
6989
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$j(dto.lastModifiedDate).format();
6355
6990
  delete dto.label;
6356
6991
  if (originEntity !== "Empresa" && dto.empresa)
6357
6992
  dto.empresa = Empresa.toDto(dto.empresa, "Derivacao");
@@ -6364,7 +6999,7 @@
6364
6999
  /*{CA:FILE_CONTENTS:START}*/
6365
7000
  /*{CA:FILE_CONTENTS:END}*/
6366
7001
 
6367
- var moment$j = _moment;
7002
+ var moment$k = _moment;
6368
7003
  /*{CA:PROJECT_IMPORTS:START}*/
6369
7004
  /*{CA:PROJECT_IMPORTS:END}*/
6370
7005
  var Transportadora = /** @class */ (function () {
@@ -6374,8 +7009,8 @@
6374
7009
  /*{CA:CLASS_ATTRIBUTES:END}*/
6375
7010
  Transportadora.fromDto = function (transportadoraDto, originEntity) {
6376
7011
  var model = __assign({}, transportadoraDto);
6377
- model.createdDate = model.createdDate && moment$j(model.createdDate).toDate();
6378
- model.lastModifiedDate = model.lastModifiedDate && moment$j(model.lastModifiedDate).toDate();
7012
+ model.createdDate = model.createdDate && moment$k(model.createdDate).toDate();
7013
+ model.lastModifiedDate = model.lastModifiedDate && moment$k(model.lastModifiedDate).toDate();
6379
7014
  var lookupSeparator = " - ";
6380
7015
  var displayFields = [
6381
7016
  "codigo", "pessoa.nome", "pessoa.cpfCnpj"
@@ -6389,8 +7024,8 @@
6389
7024
  };
6390
7025
  Transportadora.toDto = function (transportadora, originEntity) {
6391
7026
  var dto = __assign({}, transportadora);
6392
- dto.createdDate = dto.createdDate && moment$j(dto.createdDate).format();
6393
- dto.lastModifiedDate = dto.lastModifiedDate && moment$j(dto.lastModifiedDate).format();
7027
+ dto.createdDate = dto.createdDate && moment$k(dto.createdDate).format();
7028
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$k(dto.lastModifiedDate).format();
6394
7029
  delete dto.label;
6395
7030
  if (originEntity !== "Pessoa" && dto.pessoa)
6396
7031
  dto.pessoa = Pessoa.toDto(dto.pessoa, "Transportadora");
@@ -6403,7 +7038,7 @@
6403
7038
  /*{CA:FILE_CONTENTS:START}*/
6404
7039
  /*{CA:FILE_CONTENTS:END}*/
6405
7040
 
6406
- var moment$k = _moment;
7041
+ var moment$l = _moment;
6407
7042
  /*{CA:PROJECT_IMPORTS:START}*/
6408
7043
  /*{CA:PROJECT_IMPORTS:END}*/
6409
7044
  var Devolucao = /** @class */ (function () {
@@ -6413,8 +7048,8 @@
6413
7048
  /*{CA:CLASS_ATTRIBUTES:END}*/
6414
7049
  Devolucao.fromDto = function (devolucaoDto, originEntity) {
6415
7050
  var model = __assign({}, devolucaoDto);
6416
- model.createdDate = model.createdDate && moment$k(model.createdDate).toDate();
6417
- model.lastModifiedDate = model.lastModifiedDate && moment$k(model.lastModifiedDate).toDate();
7051
+ model.createdDate = model.createdDate && moment$l(model.createdDate).toDate();
7052
+ model.lastModifiedDate = model.lastModifiedDate && moment$l(model.lastModifiedDate).toDate();
6418
7053
  var lookupSeparator = " - ";
6419
7054
  var displayFields = [
6420
7055
  ''
@@ -6438,8 +7073,8 @@
6438
7073
  };
6439
7074
  Devolucao.toDto = function (devolucao, originEntity) {
6440
7075
  var dto = __assign({}, devolucao);
6441
- dto.createdDate = dto.createdDate && moment$k(dto.createdDate).format();
6442
- dto.lastModifiedDate = dto.lastModifiedDate && moment$k(dto.lastModifiedDate).format();
7076
+ dto.createdDate = dto.createdDate && moment$l(dto.createdDate).format();
7077
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$l(dto.lastModifiedDate).format();
6443
7078
  delete dto.label;
6444
7079
  if (originEntity !== "Pessoa" && dto.fornecedor)
6445
7080
  dto.fornecedor = Pessoa.toDto(dto.fornecedor, "Devolucao");
@@ -7136,7 +7771,7 @@
7136
7771
  router.ActivatedRoute,
7137
7772
  DevolucaoChegadaVeiculoOverride,
7138
7773
  api.ConfirmationService,
7139
- AgendaService,
7774
+ AgendaService$1,
7140
7775
  ErpProcessService,
7141
7776
  ErpFormConfigService,
7142
7777
  HasChangeService])
@@ -7182,7 +7817,7 @@
7182
7817
 
7183
7818
  /*{CA:PACKAGE_IMPORTS:START}*/
7184
7819
  /*{CA:PACKAGE_IMPORTS:END}*/
7185
- var moment$l = _moment;
7820
+ var moment$m = _moment;
7186
7821
  /*{CA:PROJECT_IMPORTS:START}*/
7187
7822
  /*{CA:PROJECT_IMPORTS:END}*/
7188
7823
  var Expedicao = /** @class */ (function () {
@@ -7192,8 +7827,8 @@
7192
7827
  /*{CA:CLASS_ATTRIBUTES:END}*/
7193
7828
  Expedicao.fromDto = function (expedicaoDto, originEntity) {
7194
7829
  var model = __assign({}, expedicaoDto);
7195
- model.createdDate = model.createdDate && moment$l(model.createdDate).toDate();
7196
- model.lastModifiedDate = model.lastModifiedDate && moment$l(model.lastModifiedDate).toDate();
7830
+ model.createdDate = model.createdDate && moment$m(model.createdDate).toDate();
7831
+ model.lastModifiedDate = model.lastModifiedDate && moment$m(model.lastModifiedDate).toDate();
7197
7832
  var lookupSeparator = " - ";
7198
7833
  var displayFields = [
7199
7834
  "id",
@@ -7232,8 +7867,8 @@
7232
7867
  };
7233
7868
  Expedicao.toDto = function (expedicao, originEntity) {
7234
7869
  var dto = __assign({}, expedicao);
7235
- dto.createdDate = dto.createdDate && moment$l(dto.createdDate).format();
7236
- dto.lastModifiedDate = dto.lastModifiedDate && moment$l(dto.lastModifiedDate).format();
7870
+ dto.createdDate = dto.createdDate && moment$m(dto.createdDate).format();
7871
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$m(dto.lastModifiedDate).format();
7237
7872
  delete dto.label;
7238
7873
  if (originEntity !== "Pessoa" && dto.clienteFaturamento)
7239
7874
  dto.clienteFaturamento = Pessoa.toDto(dto.clienteFaturamento, "Recebimento");
@@ -7250,7 +7885,7 @@
7250
7885
  return Expedicao;
7251
7886
  }());
7252
7887
 
7253
- var moment$m = _moment;
7888
+ var moment$n = _moment;
7254
7889
  var ExpedicaoFormComponent = /** @class */ (function () {
7255
7890
  function ExpedicaoFormComponent(expedicaoService, router, route, messageService, formBuilder, translate, hotkeysService, fieldCustomization, focusService, pessoaService, filialService, transportadoraService, pedidoVendaService, pedidoVendaItemService, agendaService, override, confirmationService, erpProcessService, erpFormConfigService, hasChangeService) {
7256
7891
  this.expedicaoService = expedicaoService;
@@ -7800,11 +8435,11 @@
7800
8435
  if (typeof value == "number")
7801
8436
  return name + " eq " + value;
7802
8437
  else if (type == angularComponents.FieldType.Date)
7803
- return name + " eq '" + moment$m(value).format("YYYY-MM-DD") + "'";
8438
+ return name + " eq '" + moment$n(value).format("YYYY-MM-DD") + "'";
7804
8439
  else if (type == angularComponents.FieldType.Time)
7805
- return name + " eq '" + moment$m(value).format("HH:mm:ss") + "'";
8440
+ return name + " eq '" + moment$n(value).format("HH:mm:ss") + "'";
7806
8441
  else if (type == angularComponents.FieldType.DateTime)
7807
- return name + " eq '" + moment$m(value).format() + "'";
8442
+ return name + " eq '" + moment$n(value).format() + "'";
7808
8443
  else if (type == angularComponents.FieldType.Enum)
7809
8444
  return name + " eq '" + value + "'";
7810
8445
  else if (type == angularComponents.FieldType.String)
@@ -7856,11 +8491,11 @@
7856
8491
  if (typeof value == "number")
7857
8492
  return name + " eq " + value;
7858
8493
  else if (type == angularComponents.FieldType.Date)
7859
- return name + " eq '" + moment$m(value).format("YYYY-MM-DD") + "'";
8494
+ return name + " eq '" + moment$n(value).format("YYYY-MM-DD") + "'";
7860
8495
  else if (type == angularComponents.FieldType.Time)
7861
- return name + " eq '" + moment$m(value).format("HH:mm:ss") + "'";
8496
+ return name + " eq '" + moment$n(value).format("HH:mm:ss") + "'";
7862
8497
  else if (type == angularComponents.FieldType.DateTime)
7863
- return name + " eq '" + moment$m(value).format() + "'";
8498
+ return name + " eq '" + moment$n(value).format() + "'";
7864
8499
  else if (type == angularComponents.FieldType.Enum)
7865
8500
  return name + " eq '" + value + "'";
7866
8501
  else if (type == angularComponents.FieldType.String)
@@ -7987,11 +8622,11 @@
7987
8622
  if (typeof value == "number")
7988
8623
  return name + " eq " + value;
7989
8624
  else if (type == angularComponents.FieldType.Date)
7990
- return name + " eq '" + moment$m(value).format("YYYY-MM-DD") + "'";
8625
+ return name + " eq '" + moment$n(value).format("YYYY-MM-DD") + "'";
7991
8626
  else if (type == angularComponents.FieldType.Time)
7992
- return name + " eq '" + moment$m(value).format("HH:mm:ss") + "'";
8627
+ return name + " eq '" + moment$n(value).format("HH:mm:ss") + "'";
7993
8628
  else if (type == angularComponents.FieldType.DateTime)
7994
- return name + " eq '" + moment$m(value).format() + "'";
8629
+ return name + " eq '" + moment$n(value).format() + "'";
7995
8630
  else if (type == angularComponents.FieldType.String)
7996
8631
  return "containing(lower(" + name + "), lower('" + value.replace(/'/g, "\\'") + "'))";
7997
8632
  else
@@ -8180,11 +8815,11 @@
8180
8815
  if (typeof value == "number")
8181
8816
  return name + " eq " + value;
8182
8817
  else if (type == angularComponents.FieldType.Date)
8183
- return name + " eq '" + moment$m(value).format("YYYY-MM-DD") + "'";
8818
+ return name + " eq '" + moment$n(value).format("YYYY-MM-DD") + "'";
8184
8819
  else if (type == angularComponents.FieldType.Time)
8185
- return name + " eq '" + moment$m(value).format("HH:mm:ss") + "'";
8820
+ return name + " eq '" + moment$n(value).format("HH:mm:ss") + "'";
8186
8821
  else if (type == angularComponents.FieldType.DateTime)
8187
- return name + " eq '" + moment$m(value).format() + "'";
8822
+ return name + " eq '" + moment$n(value).format() + "'";
8188
8823
  else if (type == angularComponents.FieldType.String)
8189
8824
  return "containing(lower(" + name + "), lower('" + value.replace(/'/g, "\\'") + "'))";
8190
8825
  else
@@ -8226,11 +8861,11 @@
8226
8861
  if (typeof value == "number")
8227
8862
  return name + " eq " + value;
8228
8863
  else if (type == angularComponents.FieldType.Date)
8229
- return name + " eq '" + moment$m(value).format("YYYY-MM-DD") + "'";
8864
+ return name + " eq '" + moment$n(value).format("YYYY-MM-DD") + "'";
8230
8865
  else if (type == angularComponents.FieldType.Time)
8231
- return name + " eq '" + moment$m(value).format("HH:mm:ss") + "'";
8866
+ return name + " eq '" + moment$n(value).format("HH:mm:ss") + "'";
8232
8867
  else if (type == angularComponents.FieldType.DateTime)
8233
- return name + " eq '" + moment$m(value).format() + "'";
8868
+ return name + " eq '" + moment$n(value).format() + "'";
8234
8869
  else if (type == angularComponents.FieldType.Enum)
8235
8870
  return name + " eq '" + value + "'";
8236
8871
  else if (type == angularComponents.FieldType.String)
@@ -8717,7 +9352,7 @@
8717
9352
  TransportadoraService,
8718
9353
  PedidoVendaService,
8719
9354
  PedidoVendaItemService,
8720
- AgendaService,
9355
+ AgendaService$1,
8721
9356
  ExpedicaoChegadaVeiculoOverride,
8722
9357
  api.ConfirmationService,
8723
9358
  ErpProcessService,
@@ -8998,7 +9633,7 @@
8998
9633
  ProcessoAvulsoChegadaVeiculoOverride = __decorate([
8999
9634
  core.Injectable(),
9000
9635
  __metadata("design:paramtypes", [ymsRoutines.ChegadaVeiculoOverride,
9001
- AgendaService,
9636
+ AgendaService$1,
9002
9637
  ProcessoAvulsoService])
9003
9638
  ], ProcessoAvulsoChegadaVeiculoOverride);
9004
9639
  return ProcessoAvulsoChegadaVeiculoOverride;
@@ -9304,7 +9939,7 @@
9304
9939
  ProcessoAvulsoChegadaVeiculoOverride,
9305
9940
  core$1.TranslateService,
9306
9941
  api.ConfirmationService,
9307
- AgendaService,
9942
+ AgendaService$1,
9308
9943
  ErpProcessService,
9309
9944
  ErpFormConfigService,
9310
9945
  HasChangeService])
@@ -9347,7 +9982,7 @@
9347
9982
  return ProcessoAvulsoInfoComponent;
9348
9983
  }());
9349
9984
 
9350
- var moment$n = _moment;
9985
+ var moment$o = _moment;
9351
9986
  /*{CA:PROJECT_IMPORTS:START}*/
9352
9987
  /*{CA:PROJECT_IMPORTS:END}*/
9353
9988
  var Safra = /** @class */ (function () {
@@ -9357,10 +9992,10 @@
9357
9992
  /*{CA:CLASS_ATTRIBUTES:END}*/
9358
9993
  Safra.fromDto = function (safraDto, originEntity) {
9359
9994
  var model = __assign({}, safraDto);
9360
- model.competenciaInicial = model.competenciaInicial && moment$n(model.competenciaInicial).toDate();
9361
- model.competenciaFinal = model.competenciaFinal && moment$n(model.competenciaFinal).toDate();
9362
- model.createdDate = model.createdDate && moment$n(model.createdDate).toDate();
9363
- model.lastModifiedDate = model.lastModifiedDate && moment$n(model.lastModifiedDate).toDate();
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();
9364
9999
  var lookupSeparator = " - ";
9365
10000
  var displayFields = [
9366
10001
  "codigo",
@@ -9373,10 +10008,10 @@
9373
10008
  };
9374
10009
  Safra.toDto = function (safra, originEntity) {
9375
10010
  var dto = __assign({}, safra);
9376
- dto.competenciaInicial = dto.competenciaInicial && moment$n(dto.competenciaInicial).format("YYYY-MM-DD");
9377
- dto.competenciaFinal = dto.competenciaFinal && moment$n(dto.competenciaFinal).format("YYYY-MM-DD");
9378
- dto.createdDate = dto.createdDate && moment$n(dto.createdDate).format();
9379
- dto.lastModifiedDate = dto.lastModifiedDate && moment$n(dto.lastModifiedDate).format();
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();
9380
10015
  delete dto.label;
9381
10016
  if (originEntity !== "Empresa" && dto.empresa)
9382
10017
  dto.empresa = Empresa.toDto(dto.empresa, "Safra");
@@ -9389,7 +10024,7 @@
9389
10024
 
9390
10025
  /*{CA:PACKAGE_IMPORTS:START}*/
9391
10026
  /*{CA:PACKAGE_IMPORTS:END}*/
9392
- var moment$o = _moment;
10027
+ var moment$p = _moment;
9393
10028
  /*{CA:PROJECT_IMPORTS:START}*/
9394
10029
  /*{CA:PROJECT_IMPORTS:END}*/
9395
10030
  var RecebimentoOrdemCompra = /** @class */ (function () {
@@ -9399,8 +10034,8 @@
9399
10034
  /*{CA:CLASS_ATTRIBUTES:END}*/
9400
10035
  RecebimentoOrdemCompra.fromDto = function (recebimentoOrdemCompraDto, originEntity) {
9401
10036
  var model = __assign({}, recebimentoOrdemCompraDto);
9402
- model.createdDate = model.createdDate && moment$o(model.createdDate).toDate();
9403
- model.lastModifiedDate = model.lastModifiedDate && moment$o(model.lastModifiedDate).toDate();
10037
+ model.createdDate = model.createdDate && moment$p(model.createdDate).toDate();
10038
+ model.lastModifiedDate = model.lastModifiedDate && moment$p(model.lastModifiedDate).toDate();
9404
10039
  var lookupSeparator = " - ";
9405
10040
  var displayFields = [
9406
10041
  ''
@@ -9429,8 +10064,8 @@
9429
10064
  };
9430
10065
  RecebimentoOrdemCompra.toDto = function (recebimentoOrdemCompra, originEntity) {
9431
10066
  var dto = __assign({}, recebimentoOrdemCompra);
9432
- dto.createdDate = dto.createdDate && moment$o(dto.createdDate).format();
9433
- dto.lastModifiedDate = dto.lastModifiedDate && moment$o(dto.lastModifiedDate).format();
10067
+ dto.createdDate = dto.createdDate && moment$p(dto.createdDate).format();
10068
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$p(dto.lastModifiedDate).format();
9434
10069
  delete dto.label;
9435
10070
  if (originEntity !== "Agenda" && dto.agenda)
9436
10071
  dto.agenda = Agenda.toDto(dto.agenda, "RecebimentoOrdemCompra");
@@ -9493,7 +10128,7 @@
9493
10128
  RecebimentoOrdemCompraChegadaVeiculoOverride = __decorate([
9494
10129
  core.Injectable(),
9495
10130
  __metadata("design:paramtypes", [ymsRoutines.ChegadaVeiculoOverride,
9496
- AgendaService,
10131
+ AgendaService$1,
9497
10132
  RecebimentoOrdemCompraService])
9498
10133
  ], RecebimentoOrdemCompraChegadaVeiculoOverride);
9499
10134
  return RecebimentoOrdemCompraChegadaVeiculoOverride;
@@ -10674,7 +11309,7 @@
10674
11309
  NotaValidatorService,
10675
11310
  api.ConfirmationService,
10676
11311
  api.DialogService,
10677
- AgendaService,
11312
+ AgendaService$1,
10678
11313
  ErpProcessService,
10679
11314
  ErpFormConfigService,
10680
11315
  VerificaNotafiscal,
@@ -10721,7 +11356,7 @@
10721
11356
  return RecebimentoOrdemCompraInfoComponent;
10722
11357
  }());
10723
11358
 
10724
- var moment$p = _moment;
11359
+ var moment$q = _moment;
10725
11360
  /*{CA:PROJECT_IMPORTS:START}*/
10726
11361
  /*{CA:PROJECT_IMPORTS:END}*/
10727
11362
  var ContratoCompra = /** @class */ (function () {
@@ -10731,11 +11366,11 @@
10731
11366
  /*{CA:CLASS_ATTRIBUTES:END}*/
10732
11367
  ContratoCompra.fromDto = function (contratoCompraDto, originEntity) {
10733
11368
  var model = __assign({}, contratoCompraDto);
10734
- model.dataEmissao = model.dataEmissao && moment$p(model.dataEmissao).toDate();
10735
- model.dataInicioVigencia = model.dataInicioVigencia && moment$p(model.dataInicioVigencia).toDate();
10736
- model.dataFimVigencia = model.dataFimVigencia && moment$p(model.dataFimVigencia).toDate();
10737
- model.createdDate = model.createdDate && moment$p(model.createdDate).toDate();
10738
- model.lastModifiedDate = model.lastModifiedDate && moment$p(model.lastModifiedDate).toDate();
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();
10739
11374
  model.label = "N\u00FAmero: " + model.numero + ", Filial: " + model.filial.codigo;
10740
11375
  if (originEntity !== "Empresa" && model.empresa)
10741
11376
  model.empresa = Empresa.fromDto(model.empresa, "ContratoCompra");
@@ -10751,11 +11386,11 @@
10751
11386
  };
10752
11387
  ContratoCompra.toDto = function (contratoCompra, originEntity) {
10753
11388
  var dto = __assign({}, contratoCompra);
10754
- dto.dataEmissao = dto.dataEmissao && moment$p(dto.dataEmissao).format("YYYY-MM-DD");
10755
- dto.dataInicioVigencia = dto.dataInicioVigencia && moment$p(dto.dataInicioVigencia).format("YYYY-MM-DD");
10756
- dto.dataFimVigencia = dto.dataFimVigencia && moment$p(dto.dataFimVigencia).format("YYYY-MM-DD");
10757
- dto.createdDate = dto.createdDate && moment$p(dto.createdDate).format();
10758
- dto.lastModifiedDate = dto.lastModifiedDate && moment$p(dto.lastModifiedDate).format();
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();
10759
11394
  delete dto.label;
10760
11395
  if (originEntity !== "Empresa" && dto.empresa)
10761
11396
  dto.empresa = Empresa.toDto(dto.empresa, "ContratoCompra");
@@ -10776,7 +11411,7 @@
10776
11411
  /*{CA:FILE_CONTENTS:START}*/
10777
11412
  /*{CA:FILE_CONTENTS:END}*/
10778
11413
 
10779
- var moment$q = _moment;
11414
+ var moment$r = _moment;
10780
11415
  /*{CA:PROJECT_IMPORTS:START}*/
10781
11416
  /*{CA:PROJECT_IMPORTS:END}*/
10782
11417
  var ContratoCompraItem = /** @class */ (function () {
@@ -10787,9 +11422,9 @@
10787
11422
  ContratoCompraItem.fromDto = function (contratoCompraItemDto, originEntity) {
10788
11423
  var model = __assign({}, contratoCompraItemDto);
10789
11424
  model.sku = model.sku || {};
10790
- model.dataCompetencia = model.dataCompetencia && moment$q(model.dataCompetencia).toDate();
10791
- model.createdDate = model.createdDate && moment$q(model.createdDate).toDate();
10792
- model.lastModifiedDate = model.lastModifiedDate && moment$q(model.lastModifiedDate).toDate();
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();
10793
11428
  model.label = model.sequencia + " - " + model.sku.descricao + " - " + model.sku.codigo;
10794
11429
  if (originEntity !== "ContratoCompra" && model.contrato)
10795
11430
  model.contrato = ContratoCompra.fromDto(model.contrato, "ContratoCompraItem");
@@ -10799,9 +11434,9 @@
10799
11434
  };
10800
11435
  ContratoCompraItem.toDto = function (contratoCompraItem, originEntity) {
10801
11436
  var dto = __assign({}, contratoCompraItem);
10802
- dto.dataCompetencia = dto.dataCompetencia && moment$q(dto.dataCompetencia).format("YYYY-MM-DD");
10803
- dto.createdDate = dto.createdDate && moment$q(dto.createdDate).format();
10804
- dto.lastModifiedDate = dto.lastModifiedDate && moment$q(dto.lastModifiedDate).format();
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();
10805
11440
  delete dto.label;
10806
11441
  if (originEntity !== "ContratoCompra" && dto.contrato)
10807
11442
  dto.contrato = ContratoCompra.toDto(dto.contrato, "ContratoCompraItem");
@@ -10814,7 +11449,7 @@
10814
11449
  /*{CA:FILE_CONTENTS:START}*/
10815
11450
  /*{CA:FILE_CONTENTS:END}*/
10816
11451
 
10817
- var moment$r = _moment;
11452
+ var moment$s = _moment;
10818
11453
  var ContratoFormComponent = /** @class */ (function () {
10819
11454
  function ContratoFormComponent(dialogRef, dialogConfig, contratoCompraService, contratoCompraItemService, translate, fb, route) {
10820
11455
  this.dialogRef = dialogRef;
@@ -10908,7 +11543,7 @@
10908
11543
  if (filial && filial.empresa && filial.empresa.id) {
10909
11544
  filter.empresaId = filial.empresa.id;
10910
11545
  }
10911
- filter.dataEmissao = filter.dataEmissao && moment$r(filter.dataEmissao).format("YYYY-MM-DD");
11546
+ filter.dataEmissao = filter.dataEmissao && moment$s(filter.dataEmissao).format("YYYY-MM-DD");
10912
11547
  var sort = (multiSortMeta || []).length ? { field: multiSortMeta[0].field, order: multiSortMeta[0].order === 1 ? 'Asc' : 'Desc' } : { field: 'numero', order: 'Asc' };
10913
11548
  this.contratoCompraService
10914
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: {
@@ -11137,14 +11772,14 @@
11137
11772
  return Transgenia;
11138
11773
  }());
11139
11774
 
11140
- var moment$s = _moment;
11775
+ var moment$t = _moment;
11141
11776
  var RecebimentoContrato = /** @class */ (function () {
11142
11777
  function RecebimentoContrato() {
11143
11778
  }
11144
11779
  RecebimentoContrato.fromDto = function (recebimentoDto, originEntity) {
11145
11780
  var model = __assign({}, recebimentoDto);
11146
- model.createdDate = model.createdDate && moment$s(model.createdDate).toDate();
11147
- model.lastModifiedDate = model.lastModifiedDate && moment$s(model.lastModifiedDate).toDate();
11781
+ model.createdDate = model.createdDate && moment$t(model.createdDate).toDate();
11782
+ model.lastModifiedDate = model.lastModifiedDate && moment$t(model.lastModifiedDate).toDate();
11148
11783
  var lookupSeparator = " - ";
11149
11784
  var displayFields = [
11150
11785
  "id",
@@ -11193,8 +11828,8 @@
11193
11828
  };
11194
11829
  RecebimentoContrato.toDto = function (recebimento, originEntity) {
11195
11830
  var dto = __assign({}, recebimento);
11196
- dto.createdDate = dto.createdDate && moment$s(dto.createdDate).format();
11197
- dto.lastModifiedDate = dto.lastModifiedDate && moment$s(dto.lastModifiedDate).format();
11831
+ dto.createdDate = dto.createdDate && moment$t(dto.createdDate).format();
11832
+ dto.lastModifiedDate = dto.lastModifiedDate && moment$t(dto.lastModifiedDate).format();
11198
11833
  delete dto.label;
11199
11834
  if (originEntity !== "Pessoa" && dto.fornecedor)
11200
11835
  dto.fornecedor = Pessoa.toDto(dto.fornecedor, "Recebimento");
@@ -11228,7 +11863,7 @@
11228
11863
  Situacao["ATIVO"] = "ATIVO";
11229
11864
  })(Situacao || (Situacao = {}));
11230
11865
 
11231
- var moment$t = _moment;
11866
+ var moment$u = _moment;
11232
11867
  var RecebimentoFormComponent = /** @class */ (function () {
11233
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) {
11234
11869
  var _this = this;
@@ -11910,11 +12545,11 @@
11910
12545
  if (typeof value == "number")
11911
12546
  return name + " eq " + value;
11912
12547
  else if (type == angularComponents.FieldType.Date)
11913
- return name + " eq '" + moment$t(value).format("YYYY-MM-DD") + "'";
12548
+ return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
11914
12549
  else if (type == angularComponents.FieldType.Time)
11915
- return name + " eq '" + moment$t(value).format("HH:mm:ss") + "'";
12550
+ return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
11916
12551
  else if (type == angularComponents.FieldType.DateTime)
11917
- return name + " eq '" + moment$t(value).format() + "'";
12552
+ return name + " eq '" + moment$u(value).format() + "'";
11918
12553
  else if (type == angularComponents.FieldType.String)
11919
12554
  return "containing(lower(" + name + "), lower('" + value.replace(/'/g, "\\'") + "'))";
11920
12555
  else
@@ -11953,11 +12588,11 @@
11953
12588
  if (typeof value == "number")
11954
12589
  return name + " eq " + value;
11955
12590
  else if (type == angularComponents.FieldType.Date)
11956
- return name + " eq '" + moment$t(value).format("YYYY-MM-DD") + "'";
12591
+ return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
11957
12592
  else if (type == angularComponents.FieldType.Time)
11958
- return name + " eq '" + moment$t(value).format("HH:mm:ss") + "'";
12593
+ return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
11959
12594
  else if (type == angularComponents.FieldType.DateTime)
11960
- return name + " eq '" + moment$t(value).format() + "'";
12595
+ return name + " eq '" + moment$u(value).format() + "'";
11961
12596
  else if (type == angularComponents.FieldType.Enum)
11962
12597
  return name + " eq '" + value + "'";
11963
12598
  else if (type == angularComponents.FieldType.String)
@@ -11999,11 +12634,11 @@
11999
12634
  if (typeof value == "number")
12000
12635
  return name + " eq " + value;
12001
12636
  else if (type == angularComponents.FieldType.Date)
12002
- return name + " eq '" + moment$t(value).format("YYYY-MM-DD") + "'";
12637
+ return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
12003
12638
  else if (type == angularComponents.FieldType.Time)
12004
- return name + " eq '" + moment$t(value).format("HH:mm:ss") + "'";
12639
+ return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
12005
12640
  else if (type == angularComponents.FieldType.DateTime)
12006
- return name + " eq '" + moment$t(value).format() + "'";
12641
+ return name + " eq '" + moment$u(value).format() + "'";
12007
12642
  else if (type == angularComponents.FieldType.String)
12008
12643
  return "containing(lower(" + name + "), lower('" + value.replace(/'/g, "\\'") + "'))";
12009
12644
  else
@@ -12043,11 +12678,11 @@
12043
12678
  if (typeof value == "number")
12044
12679
  return name + " eq " + value;
12045
12680
  else if (type == angularComponents.FieldType.Date)
12046
- return name + " eq '" + moment$t(value).format("YYYY-MM-DD") + "'";
12681
+ return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
12047
12682
  else if (type == angularComponents.FieldType.Time)
12048
- return name + " eq '" + moment$t(value).format("HH:mm:ss") + "'";
12683
+ return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
12049
12684
  else if (type == angularComponents.FieldType.DateTime)
12050
- return name + " eq '" + moment$t(value).format() + "'";
12685
+ return name + " eq '" + moment$u(value).format() + "'";
12051
12686
  else if (type == angularComponents.FieldType.Enum)
12052
12687
  return name + " eq '" + value + "'";
12053
12688
  else if (type == angularComponents.FieldType.String)
@@ -12144,11 +12779,11 @@
12144
12779
  if (typeof value == "number")
12145
12780
  return name + " eq " + value;
12146
12781
  else if (type == angularComponents.FieldType.Date)
12147
- return name + " eq '" + moment$t(value).format("YYYY-MM-DD") + "'";
12782
+ return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
12148
12783
  else if (type == angularComponents.FieldType.Time)
12149
- return name + " eq '" + moment$t(value).format("HH:mm:ss") + "'";
12784
+ return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
12150
12785
  else if (type == angularComponents.FieldType.DateTime)
12151
- return name + " eq '" + moment$t(value).format() + "'";
12786
+ return name + " eq '" + moment$u(value).format() + "'";
12152
12787
  else if (type == angularComponents.FieldType.String)
12153
12788
  return "containing(lower(" + name + "), lower('" + value.replace(/'/g, "\\'") + "'))";
12154
12789
  else
@@ -12186,11 +12821,11 @@
12186
12821
  if (typeof value == "number")
12187
12822
  return name + " eq " + value;
12188
12823
  else if (type == angularComponents.FieldType.Date)
12189
- return name + " eq '" + moment$t(value).format("YYYY-MM-DD") + "'";
12824
+ return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
12190
12825
  else if (type == angularComponents.FieldType.Time)
12191
- return name + " eq '" + moment$t(value).format("HH:mm:ss") + "'";
12826
+ return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
12192
12827
  else if (type == angularComponents.FieldType.DateTime)
12193
- return name + " eq '" + moment$t(value).format() + "'";
12828
+ return name + " eq '" + moment$u(value).format() + "'";
12194
12829
  else if (type == angularComponents.FieldType.Enum)
12195
12830
  return name + " eq '" + value + "'";
12196
12831
  else if (type == angularComponents.FieldType.String)
@@ -12239,11 +12874,11 @@
12239
12874
  if (typeof value == "number")
12240
12875
  return name + " eq " + value;
12241
12876
  else if (type == angularComponents.FieldType.Date)
12242
- return name + " eq '" + moment$t(value).format("YYYY-MM-DD") + "'";
12877
+ return name + " eq '" + moment$u(value).format("YYYY-MM-DD") + "'";
12243
12878
  else if (type == angularComponents.FieldType.Time)
12244
- return name + " eq '" + moment$t(value).format("HH:mm:ss") + "'";
12879
+ return name + " eq '" + moment$u(value).format("HH:mm:ss") + "'";
12245
12880
  else if (type == angularComponents.FieldType.DateTime)
12246
- return name + " eq '" + moment$t(value).format() + "'";
12881
+ return name + " eq '" + moment$u(value).format() + "'";
12247
12882
  else if (type == angularComponents.FieldType.Enum)
12248
12883
  return name + " eq '" + value + "'";
12249
12884
  else if (type == angularComponents.FieldType.String)
@@ -13021,7 +13656,7 @@
13021
13656
  NotaValidatorService,
13022
13657
  TransgeniaService,
13023
13658
  api.DialogService,
13024
- AgendaService,
13659
+ AgendaService$1,
13025
13660
  ErpProcessService,
13026
13661
  ErpFormConfigService,
13027
13662
  VerificaNotafiscal,
@@ -13186,7 +13821,7 @@
13186
13821
  }());
13187
13822
 
13188
13823
  exports.AgendaModule = AgendaModule;
13189
- exports.AgendaService = AgendaService;
13824
+ exports.AgendaService = AgendaService$1;
13190
13825
  exports.BalancaModule = BalancaModule;
13191
13826
  exports.BalancasService = BalancasService;
13192
13827
  exports.CamerasModule = CamerasModule;
@@ -13226,7 +13861,10 @@
13226
13861
  exports.FormDescritor = FormDescritor;
13227
13862
  exports.FormSamComponent = FormSamComponent;
13228
13863
  exports.FormSamDescritor = FormSamDescritor;
13864
+ exports.FormWmsComponent = FormWmsComponent;
13865
+ exports.FormWmsDescritor = FormWmsDescritor;
13229
13866
  exports.HasChangeService = HasChangeService;
13867
+ exports.INFORMACAOES_ADICIONAIS_HEADER = INFORMACAOES_ADICIONAIS_HEADER;
13230
13868
  exports.InfoComponent = InfoComponent;
13231
13869
  exports.InfoDescritor = InfoDescritor;
13232
13870
  exports.IntegrationWebSocket = IntegrationWebSocket;
@@ -13273,42 +13911,52 @@
13273
13911
  exports.VisitorListService = VisitorListService;
13274
13912
  exports.VisualizarBalancaComponent = VisualizarBalancaComponent;
13275
13913
  exports.VisualizarBalancaDescritor = VisualizarBalancaDescritor;
13914
+ exports.WmsModule = WmsModule;
13276
13915
  exports.highlightLanguages = highlightLanguages;
13277
13916
  exports.ɵa = Service;
13278
13917
  exports.ɵb = CustomStompConfig;
13279
- exports.ɵba = VerificaNotafiscal;
13280
- exports.ɵbb = BuildFormField;
13281
- exports.ɵbc = ExpedicaoFormComponent;
13282
- exports.ɵbd = ExpedicaoInfoComponent;
13283
- exports.ɵbe = RecebimentoInfoComponent;
13284
- exports.ɵbf = DevolucaoFormComponent;
13285
- exports.ɵbg = DevolucaoService;
13286
- exports.ɵbh = DevolucaoChegadaVeiculoOverride;
13287
- exports.ɵbi = RecebimentoOrdemCompraFormComponent;
13288
- exports.ɵbj = OrdemCompraService;
13289
- exports.ɵbk = RecebimentoOrdemCompraService;
13290
- exports.ɵbl = RecebimentoOrdemCompraChegadaVeiculoOverride;
13291
- exports.ɵbm = RecebimentoOrdemCompraInfoComponent;
13292
- exports.ɵbn = DevolucaoInfoComponent;
13293
- exports.ɵbo = ContratoFormComponent;
13294
- exports.ɵbp = OrdemCompraFormComponent;
13295
- exports.ɵbq = ProcessoAvulsoFormComponent;
13296
- exports.ɵbr = ProcessoAvulsoService;
13297
- exports.ɵbs = ProcessoAvulsoChegadaVeiculoOverride;
13298
- exports.ɵbt = ProcessoAvulsoInfoComponent;
13299
- exports.ɵbu = LogIntegracaoDescritor;
13300
- exports.ɵbv = LogIntegracaoComponent;
13301
- exports.ɵbw = LogIntegracaoService;
13302
- exports.ɵbx = DerivacaoModule;
13303
- exports.ɵby = DevolucaoModule;
13304
- exports.ɵbz = OrdemCompraModule;
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;
13305
13944
  exports.ɵc = ViewImageComponent;
13306
- exports.ɵca = RecebimentoOrdemCompraModule;
13307
- exports.ɵcb = TransgeniaModule;
13308
- exports.ɵcc = ProcessoAvulsoModule;
13309
- exports.ɵcd = LogIntegracaoModule;
13310
- exports.ɵce = NotaFormModule;
13311
- exports.ɵcf = NotaFormComponent;
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;
13312
13960
  exports.ɵd = LogDescritor;
13313
13961
  exports.ɵe = LogsComponent;
13314
13962
  exports.ɵf = PortariasService;
@@ -13326,12 +13974,12 @@
13326
13974
  exports.ɵr = VisitanteFormComponent;
13327
13975
  exports.ɵs = CredencialFormComponent;
13328
13976
  exports.ɵt = FocusService;
13329
- exports.ɵu = EntityService$1;
13330
- exports.ɵv = IntegrationService;
13331
- exports.ɵw = RecebimentoFormComponent;
13332
- exports.ɵx = DerivacaoService;
13333
- exports.ɵy = NotaValidatorService;
13334
- exports.ɵz = TransgeniaService;
13977
+ exports.ɵu = DocumentGridModule;
13978
+ exports.ɵv = DocumentGridComponent;
13979
+ exports.ɵw = DocumentService;
13980
+ exports.ɵx = RegisterDocumentModule;
13981
+ exports.ɵy = RegisterDocumentComponent;
13982
+ exports.ɵz = AgendaService;
13335
13983
 
13336
13984
  Object.defineProperty(exports, '__esModule', { value: true });
13337
13985