@fluxhub/fluxhub-lib 10.0.339 → 10.0.341
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/fluxhub-fluxhub-lib.umd.js +40 -6
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhuploadpanel.js +2 -1
- package/esm2015/lib/wkf_engine_v2/wkf_header_bar.js +15 -1
- package/esm2015/lib/wkf_engine_v2/wkfdatiaggiuntivi.js +31 -6
- package/fesm2015/fluxhub-fluxhub-lib.js +45 -5
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/wkf_engine_v2/wkf_header_bar.d.ts +2 -0
- package/lib/wkf_engine_v2/wkfdatiaggiuntivi.d.ts +1 -0
- package/package.json +1 -1
|
@@ -4166,6 +4166,7 @@
|
|
|
4166
4166
|
tipo: this.m_p_tipo,
|
|
4167
4167
|
local_path: this._appservice.LOCAL_PATH,
|
|
4168
4168
|
p1: this.m_programma_da_eseguire,
|
|
4169
|
+
ver: this.current_v
|
|
4169
4170
|
});
|
|
4170
4171
|
};
|
|
4171
4172
|
FHUploadPanelComponent.prototype.preview_email = function (ax) {
|
|
@@ -15597,10 +15598,16 @@
|
|
|
15597
15598
|
this.utility_button = true;
|
|
15598
15599
|
this.force_save = false;
|
|
15599
15600
|
this.check_on_save = false;
|
|
15601
|
+
this.b_revisione = false;
|
|
15600
15602
|
this.admin_role = '[ZZZ_DIS_CC]';
|
|
15601
15603
|
this.sovra_path = '';
|
|
15602
15604
|
this.button_clicked = new i0.EventEmitter();
|
|
15603
15605
|
}
|
|
15606
|
+
wkf_header_bar_v2.prototype.revisione = function () {
|
|
15607
|
+
this.button_clicked.emit('revisione');
|
|
15608
|
+
if (this.dt_agg != null)
|
|
15609
|
+
this.dt_agg.revisione();
|
|
15610
|
+
};
|
|
15604
15611
|
wkf_header_bar_v2.prototype.back = function () {
|
|
15605
15612
|
this.button_clicked.emit('back');
|
|
15606
15613
|
if (this.dt_agg != null)
|
|
@@ -15647,7 +15654,7 @@
|
|
|
15647
15654
|
wkf_header_bar_v2.decorators = [
|
|
15648
15655
|
{ type: i0.Component, args: [{
|
|
15649
15656
|
selector: "wkf_header_bar_v2",
|
|
15650
|
-
template: "\n <div fxLayout=\"row\" fxLayoutGap.lt-md=\"8px\" fxLayoutGap=\"15px\" fxLayout.lt-md=\"column\">\n <div\n fxLayout=\"row\"\n fxLayoutGap=\"16px\"\n fxLayoutGap.lt-md=\"8px\"\n *ngIf=\"\n !m_appService.getState().pageFullscreen ||\n edit_button ||\n respingi_button\n \"\n >\n <div>\n <button\n mat-flat-button\n (click)=\"back()\"\n *ngIf=\"!m_appService.getState().pageFullscreen\"\n >\n Indietro</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"evt_salv()\"\n *ngIf=\"edit_button || force_save\"\n color=\"primary\"\n >\n Salva</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"procedi()\"\n *ngIf=\"edit_button && procedi_button\"\n color=\"accent\"\n >\n Procedi</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"respingi()\"\n *ngIf=\"respingi_button\"\n color=\"warn\"\n >\n Respingi\n </button>\n </div>\n <!-- <button mat-flat-button (click)=\"doEnd(900)\" color=\"warn\" >test</button> \n-->\n </div>\n \n <div\n fxLayout=\"row\"\n fxLayout.xs=\"column\"\n fxLayoutGap=\"16px\"\n fxLayoutGap.xs=\"8px\"\n >\n <div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <div>\n <button\n mat-flat-button\n (click)=\"open_info()\"\n *ngIf=\"!m_appService.getState().pageFullscreen && utility_button\"\n >\n <mat-icon>info_outline</mat-icon> Info Doc</button\n ></div>\n <div>\n <button\n mat-flat-button *ngIf=\"utility_button\"\n [color]=\"(dt_agg?.comm_c ? dt_agg?.comm_c : 0 > 0) ? 'accent' : ''\"\n [matBadge]=\"dt_agg?.comm_c ? dt_agg?.comm_c : 0\"\n matBadgePosition=\"before\"\n matBadgeColor=\"primary\"\n (click)=\"open_commenti()\"\n >\n <mat-icon>insert_comment</mat-icon>Commenti</button\n ></div>\n\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <div>\n <button\n mat-flat-button *ngIf=\"utility_button\"\n [color]=\"(dt_agg?.all_c ? dt_agg?.all_c : 0 > 0) ? 'accent' : ''\"\n [matBadge]=\"dt_agg?.all_c ? dt_agg?.all_c : 0\"\n matBadgePosition=\"before\"\n matBadgeColor=\"primary\"\n (click)=\"open_upload()\"\n >\n <mat-icon>attach_file</mat-icon>Allegati</button\n ></div>\n\n <div>\n <button\n mat-flat-button\n (click)=\"open_wkf()\"\n *ngIf=\"!m_appService.getState().pageFullscreen && utility_button\"\n >\n <mat-icon>transfer_within_a_station</mat-icon>Workflow\n </button>\n </div>\n\n\n\n </div>\n </div>\n </div>\n "
|
|
15657
|
+
template: "\n <div fxLayout=\"row\" fxLayoutGap.lt-md=\"8px\" fxLayoutGap=\"15px\" fxLayout.lt-md=\"column\">\n <div\n fxLayout=\"row\"\n fxLayoutGap=\"16px\"\n fxLayoutGap.lt-md=\"8px\"\n *ngIf=\"\n !m_appService.getState().pageFullscreen ||\n edit_button ||\n respingi_button\n \"\n >\n <div>\n <button\n mat-flat-button\n (click)=\"back()\"\n *ngIf=\"!m_appService.getState().pageFullscreen\"\n >\n Indietro</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"evt_salv()\"\n *ngIf=\"edit_button || force_save\"\n color=\"primary\"\n >\n Salva</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"procedi()\"\n *ngIf=\"edit_button && procedi_button\"\n color=\"accent\"\n >\n Procedi</button\n ></div><div>\n <button\n mat-flat-button\n (click)=\"respingi()\"\n *ngIf=\"respingi_button\"\n color=\"warn\"\n >\n Respingi\n </button>\n </div>\n <div>\n <button\n mat-flat-button\n (click)=\"revisione()\"\n *ngIf=\"b_revisione\"\n color=\"accent\"\n >\n Revisione\n </button>\n </div>\n <!-- <button mat-flat-button (click)=\"doEnd(900)\" color=\"warn\" >test</button> \n-->\n </div>\n \n <div\n fxLayout=\"row\"\n fxLayout.xs=\"column\"\n fxLayoutGap=\"16px\"\n fxLayoutGap.xs=\"8px\"\n >\n <div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <div>\n <button\n mat-flat-button\n (click)=\"open_info()\"\n *ngIf=\"!m_appService.getState().pageFullscreen && utility_button\"\n >\n <mat-icon>info_outline</mat-icon> Info Doc</button\n ></div>\n <div>\n <button\n mat-flat-button *ngIf=\"utility_button\"\n [color]=\"(dt_agg?.comm_c ? dt_agg?.comm_c : 0 > 0) ? 'accent' : ''\"\n [matBadge]=\"dt_agg?.comm_c ? dt_agg?.comm_c : 0\"\n matBadgePosition=\"before\"\n matBadgeColor=\"primary\"\n (click)=\"open_commenti()\"\n >\n <mat-icon>insert_comment</mat-icon>Commenti</button\n ></div>\n\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"16px\">\n <div>\n <button\n mat-flat-button *ngIf=\"utility_button\"\n [color]=\"(dt_agg?.all_c ? dt_agg?.all_c : 0 > 0) ? 'accent' : ''\"\n [matBadge]=\"dt_agg?.all_c ? dt_agg?.all_c : 0\"\n matBadgePosition=\"before\"\n matBadgeColor=\"primary\"\n (click)=\"open_upload()\"\n >\n <mat-icon>attach_file</mat-icon>Allegati</button\n ></div>\n\n <div>\n <button\n mat-flat-button\n (click)=\"open_wkf()\"\n *ngIf=\"!m_appService.getState().pageFullscreen && utility_button\"\n >\n <mat-icon>transfer_within_a_station</mat-icon>Workflow\n </button>\n </div>\n\n\n\n </div>\n </div>\n </div>\n "
|
|
15651
15658
|
},] }
|
|
15652
15659
|
];
|
|
15653
15660
|
wkf_header_bar_v2.ctorParameters = function () { return [
|
|
@@ -15661,6 +15668,7 @@
|
|
|
15661
15668
|
utility_button: [{ type: i0.Input }],
|
|
15662
15669
|
force_save: [{ type: i0.Input }],
|
|
15663
15670
|
check_on_save: [{ type: i0.Input }],
|
|
15671
|
+
b_revisione: [{ type: i0.Input }],
|
|
15664
15672
|
admin_role: [{ type: i0.Input }],
|
|
15665
15673
|
sovra_path: [{ type: i0.Input }],
|
|
15666
15674
|
button_clicked: [{ type: i0.Output }]
|
|
@@ -20967,17 +20975,43 @@
|
|
|
20967
20975
|
break;
|
|
20968
20976
|
}
|
|
20969
20977
|
this.app_s.getState().wkf_doc_info.in_carico_a = this.s_uto;
|
|
20970
|
-
|
|
20971
|
-
|
|
20972
|
-
|
|
20973
|
-
|
|
20974
|
-
|
|
20978
|
+
if (this.m_obj.v == null)
|
|
20979
|
+
this.uti_s.set_home_title(this.app_info.descrizione_breve +
|
|
20980
|
+
" " +
|
|
20981
|
+
this.m_obj.codice +
|
|
20982
|
+
" - " +
|
|
20983
|
+
this.m_obj.stat_stato);
|
|
20984
|
+
else
|
|
20985
|
+
this.uti_s.set_home_title(this.app_info.descrizione_breve +
|
|
20986
|
+
" " +
|
|
20987
|
+
this.m_obj.codice + "/" + this.m_obj.v +
|
|
20988
|
+
" - " +
|
|
20989
|
+
this.m_obj.stat_stato);
|
|
20975
20990
|
this.reset_form(this.app_info.descrizione_breve +
|
|
20976
20991
|
" " +
|
|
20977
20992
|
this.m_obj.codice +
|
|
20978
20993
|
" - " +
|
|
20979
20994
|
this.m_obj.stat_stato); //+' ('+s_uto+')');
|
|
20980
20995
|
};
|
|
20996
|
+
dati_aggiuntivi_v2.prototype.revisione = function () {
|
|
20997
|
+
var _this = this;
|
|
20998
|
+
var p = new QParam();
|
|
20999
|
+
p.sql = "UPDATE_DOCUMENTO_REV";
|
|
21000
|
+
p.values = [this.id_applicativo, this.id_documento];
|
|
21001
|
+
p.types = ['string', 'string'];
|
|
21002
|
+
this.m_dataService.doQuery(p).subscribe(function (data) {
|
|
21003
|
+
if (data != null)
|
|
21004
|
+
if (data.result_msg == "OK") {
|
|
21005
|
+
_this.alert('Revisione generata', 0);
|
|
21006
|
+
_this.m_router.navigate([
|
|
21007
|
+
_this.app_info.modulo_swf,
|
|
21008
|
+
_this.id_applicativo,
|
|
21009
|
+
_this.id_documento,
|
|
21010
|
+
"edit",
|
|
21011
|
+
]);
|
|
21012
|
+
}
|
|
21013
|
+
});
|
|
21014
|
+
};
|
|
20981
21015
|
dati_aggiuntivi_v2.prototype.onResize = function (event) { };
|
|
20982
21016
|
dati_aggiuntivi_v2.prototype.init_engine = function () {
|
|
20983
21017
|
var _this = this;
|