@seniorsistemas/yms-integration 1.29.1 → 1.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/seniorsistemas-yms-integration.umd.js +202 -157
- package/bundles/seniorsistemas-yms-integration.umd.js.map +1 -1
- package/bundles/seniorsistemas-yms-integration.umd.min.js +1 -1
- package/bundles/seniorsistemas-yms-integration.umd.min.js.map +1 -1
- package/esm2015/seniorsistemas-yms-integration.js +46 -44
- package/esm2015/src/wms/components/document-grid/document-grid.component.js +22 -4
- package/esm2015/src/wms/components/document-grid/insert-key/insert-key.component.js +1 -4
- package/esm2015/src/wms/entities/agenda/agenda.service.js +26 -0
- package/esm2015/src/wms/entities/entity-service.js +4 -0
- package/esm5/seniorsistemas-yms-integration.js +46 -44
- package/esm5/src/wms/components/document-grid/document-grid.component.js +23 -4
- package/esm5/src/wms/components/document-grid/insert-key/insert-key.component.js +1 -4
- package/esm5/src/wms/entities/agenda/agenda.service.js +29 -0
- package/esm5/src/wms/entities/entity-service.js +11 -0
- package/fesm2015/seniorsistemas-yms-integration.js +147 -113
- package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
- package/fesm5/seniorsistemas-yms-integration.js +156 -113
- package/fesm5/seniorsistemas-yms-integration.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-yms-integration.d.ts +45 -43
- package/seniorsistemas-yms-integration.metadata.json +1 -1
- package/src/wms/components/document-grid/document-grid.component.d.ts +7 -1
- package/src/wms/entities/agenda/agenda.service.d.ts +17 -0
- package/src/wms/entities/entity-service.d.ts +3 -0
|
@@ -2927,25 +2927,147 @@ DocumentService = __decorate([
|
|
|
2927
2927
|
__metadata("design:paramtypes", [HttpClient, MessageService])
|
|
2928
2928
|
], DocumentService);
|
|
2929
2929
|
|
|
2930
|
+
class EntityService$1 {
|
|
2931
|
+
constructor(http, messageService, entityUrl, actionsUrl) {
|
|
2932
|
+
this.http = http;
|
|
2933
|
+
this.messageService = messageService;
|
|
2934
|
+
this.entityUrl = entityUrl;
|
|
2935
|
+
this.actionsUrl = actionsUrl;
|
|
2936
|
+
this.http = http;
|
|
2937
|
+
this.messageService = messageService;
|
|
2938
|
+
this.entityUrl = entityUrl;
|
|
2939
|
+
this.actionsUrl = actionsUrl;
|
|
2940
|
+
this.defaultCatch = this.defaultCatch.bind(this);
|
|
2941
|
+
}
|
|
2942
|
+
getListQueryParams(listParams) {
|
|
2943
|
+
const { page = 0, size = 10, sort = [], filterQuery = "", displayFields = [] } = listParams;
|
|
2944
|
+
let params = new HttpParams();
|
|
2945
|
+
params = params.append("size", String(size));
|
|
2946
|
+
params = params.append("offset", String(page));
|
|
2947
|
+
if (sort && sort.length) {
|
|
2948
|
+
params = params.append("orderby", sort
|
|
2949
|
+
.map(s => {
|
|
2950
|
+
let order = "";
|
|
2951
|
+
if (s.order === 1)
|
|
2952
|
+
order = " asc";
|
|
2953
|
+
else if (s.order === -1)
|
|
2954
|
+
order = " desc";
|
|
2955
|
+
return `${s.field}${order}`;
|
|
2956
|
+
})
|
|
2957
|
+
.join(", "));
|
|
2958
|
+
}
|
|
2959
|
+
if (filterQuery)
|
|
2960
|
+
params = params.append("filter", filterQuery);
|
|
2961
|
+
if (displayFields && displayFields.length)
|
|
2962
|
+
params = params.append("displayfields", displayFields.join());
|
|
2963
|
+
return params;
|
|
2964
|
+
}
|
|
2965
|
+
getBodyParams(listParams) {
|
|
2966
|
+
const { page = 0, size = 10, sort = [], filterQuery = "", displayFields = [] } = listParams;
|
|
2967
|
+
const bodyParams = {};
|
|
2968
|
+
bodyParams.size = size;
|
|
2969
|
+
bodyParams.offset = page;
|
|
2970
|
+
if (sort && sort.length) {
|
|
2971
|
+
bodyParams.orderBy = sort
|
|
2972
|
+
.map(s => {
|
|
2973
|
+
let order = "";
|
|
2974
|
+
if (s.order === 1)
|
|
2975
|
+
order = " asc";
|
|
2976
|
+
else if (s.order === -1)
|
|
2977
|
+
order = " desc";
|
|
2978
|
+
return `${s.field}${order}`;
|
|
2979
|
+
})
|
|
2980
|
+
.join(", ");
|
|
2981
|
+
}
|
|
2982
|
+
if (filterQuery)
|
|
2983
|
+
bodyParams.filter = filterQuery;
|
|
2984
|
+
if (displayFields && displayFields.length)
|
|
2985
|
+
bodyParams.displayfields = displayFields.join();
|
|
2986
|
+
return bodyParams;
|
|
2987
|
+
}
|
|
2988
|
+
defaultCatch() {
|
|
2989
|
+
return catchError((err) => {
|
|
2990
|
+
if (err) {
|
|
2991
|
+
const summary = err.status ? String(err.status) : "Error";
|
|
2992
|
+
const detail = (err.error && err.error.message) || err.statusText || err.message || "Error";
|
|
2993
|
+
this.messageService.add({
|
|
2994
|
+
severity: "error",
|
|
2995
|
+
summary,
|
|
2996
|
+
detail,
|
|
2997
|
+
});
|
|
2998
|
+
}
|
|
2999
|
+
return throwError(err);
|
|
3000
|
+
});
|
|
3001
|
+
}
|
|
3002
|
+
list(listParams) {
|
|
3003
|
+
return this.http.get(this.entityUrl, { params: this.getListQueryParams(listParams) }).pipe(this.defaultCatch());
|
|
3004
|
+
}
|
|
3005
|
+
get(id) {
|
|
3006
|
+
return this.http.get(`${this.entityUrl}/${id}`).pipe(this.defaultCatch());
|
|
3007
|
+
}
|
|
3008
|
+
insert(entity) {
|
|
3009
|
+
return this.http.post(`${this.entityUrl}`, entity).pipe(this.defaultCatch());
|
|
3010
|
+
}
|
|
3011
|
+
update(id, entity) {
|
|
3012
|
+
return this.http.put(`${this.entityUrl}/${id}`, entity).pipe(this.defaultCatch());
|
|
3013
|
+
}
|
|
3014
|
+
delete(id) {
|
|
3015
|
+
return this.http.delete(`${this.entityUrl}/${id}`).pipe(this.defaultCatch());
|
|
3016
|
+
}
|
|
3017
|
+
listCustomFilter(listParams, action) {
|
|
3018
|
+
return this.http.post(`${this.actionsUrl}/${action}`, this.getBodyParams(listParams)).pipe(this.defaultCatch());
|
|
3019
|
+
}
|
|
3020
|
+
}
|
|
3021
|
+
|
|
3022
|
+
class EntityService$2 extends EntityService$1 {
|
|
3023
|
+
}
|
|
3024
|
+
|
|
3025
|
+
let AgendaService = class AgendaService extends EntityService$2 {
|
|
3026
|
+
constructor(http, messageService) {
|
|
3027
|
+
super(http, messageService, 'yms/agenda/entities/agenda', '');
|
|
3028
|
+
this.http = http;
|
|
3029
|
+
this.messageService = messageService;
|
|
3030
|
+
this.url = 'yms/agenda/queries/isClienteExterno';
|
|
3031
|
+
}
|
|
3032
|
+
isClienteExterno() {
|
|
3033
|
+
return this.http.post(`${this.url}`, {});
|
|
3034
|
+
}
|
|
3035
|
+
};
|
|
3036
|
+
AgendaService.ngInjectableDef = defineInjectable({ factory: function AgendaService_Factory() { return new AgendaService(inject(HttpClient), inject(MessageService$1)); }, token: AgendaService, providedIn: "root" });
|
|
3037
|
+
AgendaService = __decorate([
|
|
3038
|
+
Injectable({ providedIn: 'root' }),
|
|
3039
|
+
__metadata("design:paramtypes", [HttpClient, MessageService$1])
|
|
3040
|
+
], AgendaService);
|
|
3041
|
+
|
|
2930
3042
|
let DocumentGridComponent = class DocumentGridComponent {
|
|
2931
|
-
constructor(translate, documentService, messageService, confirmationService, integrationService) {
|
|
3043
|
+
constructor(translate, documentService, messageService, confirmationService, integrationService, agendaService) {
|
|
2932
3044
|
this.translate = translate;
|
|
2933
3045
|
this.documentService = documentService;
|
|
2934
3046
|
this.messageService = messageService;
|
|
2935
3047
|
this.confirmationService = confirmationService;
|
|
2936
3048
|
this.integrationService = integrationService;
|
|
3049
|
+
this.agendaService = agendaService;
|
|
2937
3050
|
this.viewDocument = new EventEmitter();
|
|
2938
3051
|
this.gridData = [];
|
|
3052
|
+
this.enableButtonIsClienteExterno = true;
|
|
2939
3053
|
this.ngUnsubscribe = new Subject();
|
|
2940
3054
|
this.selection = [];
|
|
2941
3055
|
}
|
|
2942
3056
|
ngOnInit() {
|
|
3057
|
+
this.verifyClienteExterno();
|
|
2943
3058
|
this.getProcessTypeByScheduling();
|
|
2944
3059
|
this.listDocuments();
|
|
2945
3060
|
}
|
|
2946
3061
|
ngAfterContentChecked() {
|
|
2947
3062
|
this.gridColumns = this.getGridColumns();
|
|
2948
3063
|
}
|
|
3064
|
+
verifyClienteExterno() {
|
|
3065
|
+
this.agendaService.isClienteExterno()
|
|
3066
|
+
.subscribe((result) => {
|
|
3067
|
+
this.isClienteExterno = result.isClienteExterno;
|
|
3068
|
+
this.cantEditStatus();
|
|
3069
|
+
});
|
|
3070
|
+
}
|
|
2949
3071
|
getProcessTypeByScheduling() {
|
|
2950
3072
|
this.integrationService.getProcessTypeByScheduling(this.agenda.tipoAgendamento.id)
|
|
2951
3073
|
.subscribe((result) => this.processType = result.processType);
|
|
@@ -2954,6 +3076,12 @@ let DocumentGridComponent = class DocumentGridComponent {
|
|
|
2954
3076
|
this.gridData.push(document);
|
|
2955
3077
|
this.disabled = false;
|
|
2956
3078
|
}
|
|
3079
|
+
cantEditStatus() {
|
|
3080
|
+
const cantEditStatus = ['CANCELADO', 'EM_EXECUCAO', 'CONCLUIDO'].includes(this.agenda.status.toString());
|
|
3081
|
+
if (cantEditStatus) {
|
|
3082
|
+
this.enableButtonIsClienteExterno = false;
|
|
3083
|
+
}
|
|
3084
|
+
}
|
|
2957
3085
|
getActions() {
|
|
2958
3086
|
return [
|
|
2959
3087
|
{
|
|
@@ -3149,14 +3277,15 @@ __decorate([
|
|
|
3149
3277
|
DocumentGridComponent = __decorate([
|
|
3150
3278
|
Component({
|
|
3151
3279
|
selector: 'document-grid',
|
|
3152
|
-
template: "<div *ngIf=\"this.processType === 'RECEBIMENTO_WMS'; else processNotConfigured\">\n <p-panel>\n <p-header>\n <div class=\"buttons\">\n <div>\n <s-button\n label=\"{{'yms.int.wms_add_document' | translate}}\"\n priority=\"primary\"\n [model]=\"getActions()\"\n [auxiliary]=\"false\">\n </s-button>\n <s-button\n label=\"{{'yms.wms_view_button' | translate}}\"\n priority=\"secondary\"\n [auxiliary]=\"false\"\n [disabled]=\"!selection || selection.length !== 1\"\n (onClick)=\"view()\">\n </s-button>\n <s-button\n label=\"{{'yms.wms_delete_button' | translate}}\"\n priority=\"secondary\"\n [disabled]=\"!selection || !selection.length\"\n (click)=\"onDelete()\">\n </s-button>\n </div>\n <s-button\n id=\"refresh-button\"\n priority=\"default\"\n iconClass=\"fa fa-refresh\"\n (onClick)=\"listDocuments()\"\n >\n </s-button>\n </div>\n </p-header>\n <div class=\"ui-g\">\n <div class=\"ui-g-12\" *ngIf=\"gridData && gridData.length; else emptyList\">\n <p-table #documentTable [value]=\"gridData\"\n [columns]=\"gridColumns\" dataKey=\"id\" [lazy]=\"true\" [scrollable]=\"true\" [resizableColumns]=\"true\"\n sortMode=\"multiple\" [paginator]=\"true\" [totalRecords]=\"documentTotalRecords\" rows=\"10\"\n [rowsPerPageOptions]=\"[10, 20, 50, 100]\" [(selection)]=\"selection\"\n [loading]=\"loading\">\n <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngFor=\"let col of columns\" [style.width]=\"col.width\"/>\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th id=\"checkbox\" class=\"table-checkbox\">\n <p-tableHeaderCheckbox></p-tableHeaderCheckbox>\n </th>\n <th id=\"col\" *ngFor=\"let col of columns\" [pSortableColumn]=\"col.field\" pResizableColumn>\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ col.header }}</span>\n <p-sortIcon [field]=\"col.field\"></p-sortIcon>\n </div>\n </th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns let-expanded=\"expanded\">\n <tr [pSelectableRow]=\"rowData\">\n <td class=\"table-checkbox\">\n <p-tableCheckbox [value]=\"rowData\"></p-tableCheckbox>\n </td>\n <td *ngFor=\"let column of getGridColumns()\" (click)=\"selection = [rowData]\">\n <span>{{ rowData[ column.field ] }}</span>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"paginatorright\">\n <span [translate]=\"'total_records'\" [translateParams]=\"{ value: documentTotalRecords }\"></span>\n </ng-template>\n </p-table> \n </div>\n </div>\n <register-document\n [wmsSystem]=\"wmsSystem\"\n [edit]=\"edit\"\n [viewDocument]=\"selection\"\n (document)=\"onChangeDocument($event)\"\n [(visible)]=\"visibleDocumentRegister\"\n [agenda]=\"agenda\">\n </register-document> \n <insert-key [wmsSystem]=\"wmsSystem\" \n (document)=\"onChangeDocument($event)\" [(visible)]=\"visibleInvoiceKey\"></insert-key>\n </p-panel>\n</div>\n <div class=\"button-save\">\n <s-button \n priority=\"primary\" [label]=\"'save' | translate\"
|
|
3280
|
+
template: "<div *ngIf=\"this.processType === 'RECEBIMENTO_WMS'; else processNotConfigured\">\n <p-panel>\n <p-header>\n <div class=\"buttons\">\n <div>\n <s-button\n label=\"{{'yms.int.wms_add_document' | translate}}\"\n priority=\"primary\"\n [model]=\"getActions()\"\n [auxiliary]=\"false\"\n [disabled]=\"!enableButtonIsClienteExterno\">\n </s-button>\n <s-button\n label=\"{{'yms.wms_view_button' | translate}}\"\n priority=\"secondary\"\n [auxiliary]=\"false\"\n [disabled]=\"!selection || selection.length !== 1\"\n (onClick)=\"view()\">\n </s-button>\n <s-button\n label=\"{{'yms.wms_delete_button' | translate}}\"\n priority=\"secondary\"\n [disabled]=\"!selection || !selection.length || !enableButtonIsClienteExterno\"\n (click)=\"onDelete()\">\n </s-button>\n </div>\n <s-button\n id=\"refresh-button\"\n priority=\"default\"\n iconClass=\"fa fa-refresh\"\n (onClick)=\"listDocuments()\"\n >\n </s-button>\n </div>\n </p-header>\n <div class=\"ui-g\">\n <div class=\"ui-g-12\" *ngIf=\"gridData && gridData.length; else emptyList\">\n <p-table #documentTable [value]=\"gridData\"\n [columns]=\"gridColumns\" dataKey=\"id\" [lazy]=\"true\" [scrollable]=\"true\" [resizableColumns]=\"true\"\n sortMode=\"multiple\" [paginator]=\"true\" [totalRecords]=\"documentTotalRecords\" rows=\"10\"\n [rowsPerPageOptions]=\"[10, 20, 50, 100]\" [(selection)]=\"selection\"\n [loading]=\"loading\">\n <ng-template pTemplate=\"colgroup\" let-columns>\n <colgroup>\n <col *ngFor=\"let col of columns\" [style.width]=\"col.width\"/>\n </colgroup>\n </ng-template>\n <ng-template pTemplate=\"header\" let-columns>\n <tr>\n <th id=\"checkbox\" class=\"table-checkbox\">\n <p-tableHeaderCheckbox></p-tableHeaderCheckbox>\n </th>\n <th id=\"col\" *ngFor=\"let col of columns\" [pSortableColumn]=\"col.field\" pResizableColumn>\n <div class=\"senior-header\">\n <span class=\"senior-header-title\">{{ col.header }}</span>\n <p-sortIcon [field]=\"col.field\"></p-sortIcon>\n </div>\n </th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-rowData let-columns let-expanded=\"expanded\">\n <tr [pSelectableRow]=\"rowData\">\n <td class=\"table-checkbox\">\n <p-tableCheckbox [value]=\"rowData\"></p-tableCheckbox>\n </td>\n <td *ngFor=\"let column of getGridColumns()\" (click)=\"selection = [rowData]\">\n <span>{{ rowData[ column.field ] }}</span>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"paginatorright\">\n <span [translate]=\"'total_records'\" [translateParams]=\"{ value: documentTotalRecords }\"></span>\n </ng-template>\n </p-table> \n </div>\n </div>\n <register-document\n [wmsSystem]=\"wmsSystem\"\n [edit]=\"edit\"\n [viewDocument]=\"selection\"\n (document)=\"onChangeDocument($event)\"\n [(visible)]=\"visibleDocumentRegister\"\n [agenda]=\"agenda\">\n </register-document> \n <insert-key [wmsSystem]=\"wmsSystem\" \n (document)=\"onChangeDocument($event)\" [(visible)]=\"visibleInvoiceKey\"></insert-key>\n </p-panel>\n</div>\n <div class=\"button-save\">\n <s-button \n priority=\"primary\" [label]=\"'save' | translate\"\n [disabled]=\"disabled || !this.gridData || !enableButtonIsClienteExterno\"\n (click)=\"save()\">\n </s-button>\n </div>\n <register-document\n [wmsSystem]=\"wmsSystem\"\n [edit]=\"edit\"\n [viewDocument]=\"selection\"\n (document)=\"onChangeDocument($event)\"\n [(visible)]=\"visibleDocumentRegister\"\n [agenda]=\"agenda\">\n </register-document> \n <insert-key [wmsSystem]=\"wmsSystem\" \n (document)=\"onChangeDocument($event)\" [(visible)]=\"visibleInvoiceKey\"></insert-key>\n\n<ng-template #emptyList>\n <div class=\"center\">\n <s-empty-state\n iconClass=\"fa fa-exclamation-triangle\" [title]=\"'detail_empty_state_title' | translate\"\n [description]=\"'detail_empty_state_description' | translate\">\n </s-empty-state>\n </div>\n</ng-template>\n\n<ng-template #processNotConfigured>\n <div class=\"center\">\n <s-empty-state\n iconClass=\"fa fa-exclamation-triangle\"\n [title]=\"'yms.int.wms_there_no_process_type_configured_for_this_type_scheduling' | translate\"\n >\n </s-empty-state>\n </div>\n</ng-template>",
|
|
3153
3281
|
styles: [".buttons{display:flex;justify-content:space-between}.center{flex-direction:column;text-align:center}.ui-g{display:block}.button-save{margin:5px 0}#refresh-button{color:#fff}.table-checkbox{width:50px}"]
|
|
3154
3282
|
}),
|
|
3155
3283
|
__metadata("design:paramtypes", [TranslateService,
|
|
3156
3284
|
DocumentService,
|
|
3157
3285
|
MessageService,
|
|
3158
3286
|
ConfirmationService,
|
|
3159
|
-
IntegrationService
|
|
3287
|
+
IntegrationService,
|
|
3288
|
+
AgendaService])
|
|
3160
3289
|
], DocumentGridComponent);
|
|
3161
3290
|
|
|
3162
3291
|
const moment$4 = _moment;
|
|
@@ -3377,9 +3506,6 @@ let InsertKeyComponent = class InsertKeyComponent {
|
|
|
3377
3506
|
}
|
|
3378
3507
|
add() {
|
|
3379
3508
|
this.visibleChange.emit(false);
|
|
3380
|
-
if (!this.formGroup.get('key').value) {
|
|
3381
|
-
return;
|
|
3382
|
-
}
|
|
3383
3509
|
this.searchKey();
|
|
3384
3510
|
}
|
|
3385
3511
|
searchKey() {
|
|
@@ -3637,101 +3763,9 @@ DocumentListModule = __decorate([
|
|
|
3637
3763
|
__metadata("design:paramtypes", [IntegrationDispatcher])
|
|
3638
3764
|
], DocumentListModule);
|
|
3639
3765
|
|
|
3640
|
-
class EntityService$1 {
|
|
3641
|
-
constructor(http, messageService, entityUrl, actionsUrl) {
|
|
3642
|
-
this.http = http;
|
|
3643
|
-
this.messageService = messageService;
|
|
3644
|
-
this.entityUrl = entityUrl;
|
|
3645
|
-
this.actionsUrl = actionsUrl;
|
|
3646
|
-
this.http = http;
|
|
3647
|
-
this.messageService = messageService;
|
|
3648
|
-
this.entityUrl = entityUrl;
|
|
3649
|
-
this.actionsUrl = actionsUrl;
|
|
3650
|
-
this.defaultCatch = this.defaultCatch.bind(this);
|
|
3651
|
-
}
|
|
3652
|
-
getListQueryParams(listParams) {
|
|
3653
|
-
const { page = 0, size = 10, sort = [], filterQuery = "", displayFields = [] } = listParams;
|
|
3654
|
-
let params = new HttpParams();
|
|
3655
|
-
params = params.append("size", String(size));
|
|
3656
|
-
params = params.append("offset", String(page));
|
|
3657
|
-
if (sort && sort.length) {
|
|
3658
|
-
params = params.append("orderby", sort
|
|
3659
|
-
.map(s => {
|
|
3660
|
-
let order = "";
|
|
3661
|
-
if (s.order === 1)
|
|
3662
|
-
order = " asc";
|
|
3663
|
-
else if (s.order === -1)
|
|
3664
|
-
order = " desc";
|
|
3665
|
-
return `${s.field}${order}`;
|
|
3666
|
-
})
|
|
3667
|
-
.join(", "));
|
|
3668
|
-
}
|
|
3669
|
-
if (filterQuery)
|
|
3670
|
-
params = params.append("filter", filterQuery);
|
|
3671
|
-
if (displayFields && displayFields.length)
|
|
3672
|
-
params = params.append("displayfields", displayFields.join());
|
|
3673
|
-
return params;
|
|
3674
|
-
}
|
|
3675
|
-
getBodyParams(listParams) {
|
|
3676
|
-
const { page = 0, size = 10, sort = [], filterQuery = "", displayFields = [] } = listParams;
|
|
3677
|
-
const bodyParams = {};
|
|
3678
|
-
bodyParams.size = size;
|
|
3679
|
-
bodyParams.offset = page;
|
|
3680
|
-
if (sort && sort.length) {
|
|
3681
|
-
bodyParams.orderBy = sort
|
|
3682
|
-
.map(s => {
|
|
3683
|
-
let order = "";
|
|
3684
|
-
if (s.order === 1)
|
|
3685
|
-
order = " asc";
|
|
3686
|
-
else if (s.order === -1)
|
|
3687
|
-
order = " desc";
|
|
3688
|
-
return `${s.field}${order}`;
|
|
3689
|
-
})
|
|
3690
|
-
.join(", ");
|
|
3691
|
-
}
|
|
3692
|
-
if (filterQuery)
|
|
3693
|
-
bodyParams.filter = filterQuery;
|
|
3694
|
-
if (displayFields && displayFields.length)
|
|
3695
|
-
bodyParams.displayfields = displayFields.join();
|
|
3696
|
-
return bodyParams;
|
|
3697
|
-
}
|
|
3698
|
-
defaultCatch() {
|
|
3699
|
-
return catchError((err) => {
|
|
3700
|
-
if (err) {
|
|
3701
|
-
const summary = err.status ? String(err.status) : "Error";
|
|
3702
|
-
const detail = (err.error && err.error.message) || err.statusText || err.message || "Error";
|
|
3703
|
-
this.messageService.add({
|
|
3704
|
-
severity: "error",
|
|
3705
|
-
summary,
|
|
3706
|
-
detail,
|
|
3707
|
-
});
|
|
3708
|
-
}
|
|
3709
|
-
return throwError(err);
|
|
3710
|
-
});
|
|
3711
|
-
}
|
|
3712
|
-
list(listParams) {
|
|
3713
|
-
return this.http.get(this.entityUrl, { params: this.getListQueryParams(listParams) }).pipe(this.defaultCatch());
|
|
3714
|
-
}
|
|
3715
|
-
get(id) {
|
|
3716
|
-
return this.http.get(`${this.entityUrl}/${id}`).pipe(this.defaultCatch());
|
|
3717
|
-
}
|
|
3718
|
-
insert(entity) {
|
|
3719
|
-
return this.http.post(`${this.entityUrl}`, entity).pipe(this.defaultCatch());
|
|
3720
|
-
}
|
|
3721
|
-
update(id, entity) {
|
|
3722
|
-
return this.http.put(`${this.entityUrl}/${id}`, entity).pipe(this.defaultCatch());
|
|
3723
|
-
}
|
|
3724
|
-
delete(id) {
|
|
3725
|
-
return this.http.delete(`${this.entityUrl}/${id}`).pipe(this.defaultCatch());
|
|
3726
|
-
}
|
|
3727
|
-
listCustomFilter(listParams, action) {
|
|
3728
|
-
return this.http.post(`${this.actionsUrl}/${action}`, this.getBodyParams(listParams)).pipe(this.defaultCatch());
|
|
3729
|
-
}
|
|
3730
|
-
}
|
|
3731
|
-
|
|
3732
3766
|
const ERP_ENVIRONMENT = new InjectionToken('integration_environment');
|
|
3733
3767
|
|
|
3734
|
-
let AgendaService = class AgendaService extends EntityService$1 {
|
|
3768
|
+
let AgendaService$1 = class AgendaService extends EntityService$1 {
|
|
3735
3769
|
constructor(http, messageService, environment) {
|
|
3736
3770
|
super(http, messageService, `${environment.project.domain}/${environment.project.service}/entities/agenda`, `${environment.project.domain}/${environment.project.service}/actions`);
|
|
3737
3771
|
this.http = http;
|
|
@@ -3755,12 +3789,12 @@ let AgendaService = class AgendaService extends EntityService$1 {
|
|
|
3755
3789
|
.pipe(this.defaultCatch());
|
|
3756
3790
|
}
|
|
3757
3791
|
};
|
|
3758
|
-
AgendaService = __decorate([
|
|
3792
|
+
AgendaService$1 = __decorate([
|
|
3759
3793
|
Injectable(),
|
|
3760
3794
|
__param(2, Inject(ERP_ENVIRONMENT)),
|
|
3761
3795
|
__metadata("design:paramtypes", [HttpClient,
|
|
3762
3796
|
MessageService$1, Object])
|
|
3763
|
-
], AgendaService);
|
|
3797
|
+
], AgendaService$1);
|
|
3764
3798
|
|
|
3765
3799
|
/*{CA:PROJECT_IMPORTS:START}*/
|
|
3766
3800
|
/*{CA:PROJECT_IMPORTS:END}*/
|
|
@@ -3822,7 +3856,7 @@ let RecebimentoChegadaVeiculoOverride = class RecebimentoChegadaVeiculoOverride
|
|
|
3822
3856
|
RecebimentoChegadaVeiculoOverride = __decorate([
|
|
3823
3857
|
Injectable(),
|
|
3824
3858
|
__metadata("design:paramtypes", [ChegadaVeiculoOverride,
|
|
3825
|
-
AgendaService,
|
|
3859
|
+
AgendaService$1,
|
|
3826
3860
|
RecebimentoContratoService])
|
|
3827
3861
|
], RecebimentoChegadaVeiculoOverride);
|
|
3828
3862
|
|
|
@@ -3877,7 +3911,7 @@ let ExpedicaoChegadaVeiculoOverride = class ExpedicaoChegadaVeiculoOverride {
|
|
|
3877
3911
|
ExpedicaoChegadaVeiculoOverride = __decorate([
|
|
3878
3912
|
Injectable(),
|
|
3879
3913
|
__metadata("design:paramtypes", [ChegadaVeiculoOverride,
|
|
3880
|
-
AgendaService,
|
|
3914
|
+
AgendaService$1,
|
|
3881
3915
|
ExpedicaoService])
|
|
3882
3916
|
], ExpedicaoChegadaVeiculoOverride);
|
|
3883
3917
|
|
|
@@ -4876,7 +4910,7 @@ AgendaModule = __decorate([
|
|
|
4876
4910
|
]),
|
|
4877
4911
|
],
|
|
4878
4912
|
providers: [
|
|
4879
|
-
AgendaService,
|
|
4913
|
+
AgendaService$1,
|
|
4880
4914
|
],
|
|
4881
4915
|
declarations: [
|
|
4882
4916
|
/*{CA:MODULE_DECLARATIONS:START}*/
|
|
@@ -6558,7 +6592,7 @@ let DevolucaoChegadaVeiculoOverride = class DevolucaoChegadaVeiculoOverride {
|
|
|
6558
6592
|
DevolucaoChegadaVeiculoOverride = __decorate([
|
|
6559
6593
|
Injectable(),
|
|
6560
6594
|
__metadata("design:paramtypes", [ChegadaVeiculoOverride,
|
|
6561
|
-
AgendaService,
|
|
6595
|
+
AgendaService$1,
|
|
6562
6596
|
DevolucaoService])
|
|
6563
6597
|
], DevolucaoChegadaVeiculoOverride);
|
|
6564
6598
|
|
|
@@ -7457,7 +7491,7 @@ DevolucaoFormComponent = __decorate([
|
|
|
7457
7491
|
ActivatedRoute,
|
|
7458
7492
|
DevolucaoChegadaVeiculoOverride,
|
|
7459
7493
|
ConfirmationService,
|
|
7460
|
-
AgendaService,
|
|
7494
|
+
AgendaService$1,
|
|
7461
7495
|
ErpProcessService,
|
|
7462
7496
|
ErpFormConfigService,
|
|
7463
7497
|
HasChangeService])
|
|
@@ -8999,7 +9033,7 @@ ExpedicaoFormComponent = __decorate([
|
|
|
8999
9033
|
TransportadoraService,
|
|
9000
9034
|
PedidoVendaService,
|
|
9001
9035
|
PedidoVendaItemService,
|
|
9002
|
-
AgendaService,
|
|
9036
|
+
AgendaService$1,
|
|
9003
9037
|
ExpedicaoChegadaVeiculoOverride,
|
|
9004
9038
|
ConfirmationService,
|
|
9005
9039
|
ErpProcessService,
|
|
@@ -9279,7 +9313,7 @@ let ProcessoAvulsoChegadaVeiculoOverride = class ProcessoAvulsoChegadaVeiculoOve
|
|
|
9279
9313
|
ProcessoAvulsoChegadaVeiculoOverride = __decorate([
|
|
9280
9314
|
Injectable(),
|
|
9281
9315
|
__metadata("design:paramtypes", [ChegadaVeiculoOverride,
|
|
9282
|
-
AgendaService,
|
|
9316
|
+
AgendaService$1,
|
|
9283
9317
|
ProcessoAvulsoService])
|
|
9284
9318
|
], ProcessoAvulsoChegadaVeiculoOverride);
|
|
9285
9319
|
|
|
@@ -9559,7 +9593,7 @@ ProcessoAvulsoFormComponent = __decorate([
|
|
|
9559
9593
|
ProcessoAvulsoChegadaVeiculoOverride,
|
|
9560
9594
|
TranslateService,
|
|
9561
9595
|
ConfirmationService,
|
|
9562
|
-
AgendaService,
|
|
9596
|
+
AgendaService$1,
|
|
9563
9597
|
ErpProcessService,
|
|
9564
9598
|
ErpFormConfigService,
|
|
9565
9599
|
HasChangeService])
|
|
@@ -9742,7 +9776,7 @@ let RecebimentoOrdemCompraChegadaVeiculoOverride = class RecebimentoOrdemCompraC
|
|
|
9742
9776
|
RecebimentoOrdemCompraChegadaVeiculoOverride = __decorate([
|
|
9743
9777
|
Injectable(),
|
|
9744
9778
|
__metadata("design:paramtypes", [ChegadaVeiculoOverride,
|
|
9745
|
-
AgendaService,
|
|
9779
|
+
AgendaService$1,
|
|
9746
9780
|
RecebimentoOrdemCompraService])
|
|
9747
9781
|
], RecebimentoOrdemCompraChegadaVeiculoOverride);
|
|
9748
9782
|
|
|
@@ -10841,7 +10875,7 @@ RecebimentoOrdemCompraFormComponent = __decorate([
|
|
|
10841
10875
|
NotaValidatorService,
|
|
10842
10876
|
ConfirmationService,
|
|
10843
10877
|
DialogService,
|
|
10844
|
-
AgendaService,
|
|
10878
|
+
AgendaService$1,
|
|
10845
10879
|
ErpProcessService,
|
|
10846
10880
|
ErpFormConfigService,
|
|
10847
10881
|
VerificaNotafiscal,
|
|
@@ -13110,7 +13144,7 @@ RecebimentoFormComponent = __decorate([
|
|
|
13110
13144
|
NotaValidatorService,
|
|
13111
13145
|
TransgeniaService,
|
|
13112
13146
|
DialogService,
|
|
13113
|
-
AgendaService,
|
|
13147
|
+
AgendaService$1,
|
|
13114
13148
|
ErpProcessService,
|
|
13115
13149
|
ErpFormConfigService,
|
|
13116
13150
|
VerificaNotafiscal,
|
|
@@ -13342,5 +13376,5 @@ DockModule = __decorate([
|
|
|
13342
13376
|
})
|
|
13343
13377
|
], DockModule);
|
|
13344
13378
|
|
|
13345
|
-
export { AgendaModule, AgendaService, BalancaModule, BalancasService, CamerasModule, CamerasService, CancelasModule, CidadeModule, CidadeService, ContratoCompraItemModule, ContratoCompraItemService, ContratoCompraModule, ContratoCompraService, ControladorCancelaComponent, ControladorCancelaDescritor, ControladorCancelasService, CoreModule, DockModule, DockService, DocumentListComponent, DocumentListModule, ERP_ENVIRONMENT, ERP_SENIOR_HEADER, EmpresaModule, EmpresaService, ErpFormConfigService, ErpProcessData, ErpProcessService, ErpSeniorModule, EstadoModule, EstadoService, ExpedicaoChegadaVeiculoOverride, ExpedicaoModule, ExpedicaoService, FamiliaProdutoModule, FamiliaProdutoService, FieldCustomizationService, FilialModule, FilialService, FormComponent, FormDescritor, FormSamComponent, FormSamDescritor, FormWmsComponent, FormWmsDescritor, HasChangeService, INFORMACAOES_ADICIONAIS_HEADER, InfoComponent, InfoDescritor, IntegrationWebSocket, LogsModule, LogsService, LprModule, LprService, PaisModule, PaisService, PedidoVendaItemModule, PedidoVendaItemService, PedidoVendaModule, PedidoVendaService, PessoaEnderecoModule, PessoaEnderecoService, PessoaFisicaModule, PessoaFisicaService, PessoaJuridicaModule, PessoaJuridicaService, PessoaModule, PessoaService, PortariasComponent, PortariasDescritor, PortariasModule, ProdutoModule, ProdutoService, RecebimentoChegadaVeiculoOverride, RecebimentoContratoModule, RecebimentoContratoService, RoyaltyModule, RoyaltyService, SAM_SENIOR_HEADER, SafraModule, SafraService, SamSeniorModule, SnapshotComponent, SnapshotDescritor, TransportadoraModule, TransportadoraService, UnidadeMedidaModule, UnidadeMedidaService, VisitorListComponent, VisitorListModule, VisitorListService, VisualizarBalancaComponent, VisualizarBalancaDescritor, WmsModule, highlightLanguages, Service as ɵa, CustomStompConfig as ɵb,
|
|
13379
|
+
export { AgendaModule, AgendaService$1 as AgendaService, BalancaModule, BalancasService, CamerasModule, CamerasService, CancelasModule, CidadeModule, CidadeService, ContratoCompraItemModule, ContratoCompraItemService, ContratoCompraModule, ContratoCompraService, ControladorCancelaComponent, ControladorCancelaDescritor, ControladorCancelasService, CoreModule, DockModule, DockService, DocumentListComponent, DocumentListModule, ERP_ENVIRONMENT, ERP_SENIOR_HEADER, EmpresaModule, EmpresaService, ErpFormConfigService, ErpProcessData, ErpProcessService, ErpSeniorModule, EstadoModule, EstadoService, ExpedicaoChegadaVeiculoOverride, ExpedicaoModule, ExpedicaoService, FamiliaProdutoModule, FamiliaProdutoService, FieldCustomizationService, FilialModule, FilialService, FormComponent, FormDescritor, FormSamComponent, FormSamDescritor, FormWmsComponent, FormWmsDescritor, HasChangeService, INFORMACAOES_ADICIONAIS_HEADER, InfoComponent, InfoDescritor, IntegrationWebSocket, LogsModule, LogsService, LprModule, LprService, PaisModule, PaisService, PedidoVendaItemModule, PedidoVendaItemService, PedidoVendaModule, PedidoVendaService, PessoaEnderecoModule, PessoaEnderecoService, PessoaFisicaModule, PessoaFisicaService, PessoaJuridicaModule, PessoaJuridicaService, PessoaModule, PessoaService, PortariasComponent, PortariasDescritor, PortariasModule, ProdutoModule, ProdutoService, RecebimentoChegadaVeiculoOverride, RecebimentoContratoModule, RecebimentoContratoService, RoyaltyModule, RoyaltyService, SAM_SENIOR_HEADER, SafraModule, SafraService, SamSeniorModule, SnapshotComponent, SnapshotDescritor, TransportadoraModule, TransportadoraService, UnidadeMedidaModule, UnidadeMedidaService, VisitorListComponent, VisitorListModule, VisitorListService, VisualizarBalancaComponent, VisualizarBalancaDescritor, WmsModule, highlightLanguages, Service as ɵa, CustomStompConfig as ɵb, EntityService$2 as ɵba, EntityService$1 as ɵbb, RegisterDocumentModule as ɵbc, RegisterDocumentComponent as ɵbd, InsertKeyModule as ɵbe, InsertKeyComponent as ɵbf, IntegrationService$1 as ɵbg, RecebimentoFormComponent as ɵbh, DerivacaoService as ɵbi, NotaValidatorService as ɵbj, TransgeniaService as ɵbk, VerificaNotafiscal as ɵbl, BuildFormField as ɵbm, ExpedicaoFormComponent as ɵbn, ExpedicaoInfoComponent as ɵbo, RecebimentoInfoComponent as ɵbp, DevolucaoFormComponent as ɵbq, DevolucaoService as ɵbr, DevolucaoChegadaVeiculoOverride as ɵbs, RecebimentoOrdemCompraFormComponent as ɵbt, OrdemCompraService as ɵbu, RecebimentoOrdemCompraService as ɵbv, RecebimentoOrdemCompraChegadaVeiculoOverride as ɵbw, RecebimentoOrdemCompraInfoComponent as ɵbx, DevolucaoInfoComponent as ɵby, ContratoFormComponent as ɵbz, ViewImageComponent as ɵc, OrdemCompraFormComponent as ɵca, ProcessoAvulsoFormComponent as ɵcb, ProcessoAvulsoService as ɵcc, ProcessoAvulsoChegadaVeiculoOverride as ɵcd, ProcessoAvulsoInfoComponent as ɵce, LogIntegracaoDescritor as ɵcf, LogIntegracaoComponent as ɵcg, LogIntegracaoService as ɵch, DerivacaoModule as ɵci, DevolucaoModule as ɵcj, OrdemCompraModule as ɵck, RecebimentoOrdemCompraModule as ɵcl, TransgeniaModule as ɵcm, ProcessoAvulsoModule as ɵcn, LogIntegracaoModule as ɵco, NotaFormModule as ɵcp, DirectivesModule as ɵcq, TrimDirective as ɵcr, NotaFormComponent as ɵcs, LogDescritor as ɵd, LogsComponent as ɵe, PortariasService as ɵf, EntradaComponent as ɵg, AgendasComponent as ɵh, ConfirmacaoComponent as ɵi, VisitedInfoDescritor as ɵj, VisitedInfoComponent as ɵk, VisitedInfoService as ɵl, SchedulingComponent as ɵm, LobbyService as ɵn, EntityService as ɵo, SchedulingService as ɵp, VisitanteComponent as ɵq, VisitanteFormComponent as ɵr, CredencialFormComponent as ɵs, FocusService as ɵt, FormWmsService as ɵu, DocumentGridModule as ɵv, DocumentGridComponent as ɵw, DocumentService as ɵx, IntegrationService as ɵy, AgendaService as ɵz };
|
|
13346
13380
|
//# sourceMappingURL=seniorsistemas-yms-integration.js.map
|