TimeTrex Community Edition v16.2.0

This commit is contained in:
2022-12-13 07:10:06 +01:00
commit 472f000c1b
6810 changed files with 2636142 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
export class KPIReportViewController extends ReportBaseViewController {
constructor( options = {} ) {
_.defaults( options, {
} );
super( options );
}
initReport( options ) {
this.script_name = 'KPIReport';
this.viewId = 'KPIReport';
this.context_menu_name = $.i18n._( 'Review Summary' );
this.navigation_label = $.i18n._( 'Saved Report' );
this.view_file = 'KPIReportView.html';
this.api = TTAPI.APIKPIReport;
}
getCustomContextMenuModel() {
var context_menu_model = {
exclude: [],
include: [
{
label: $.i18n._( 'Print' ),
id: 'pdf_review_print',
menu_align: 'right'
}
]
};
return context_menu_model;
}
onCustomContextClick( id ) {
switch ( id ) {
case 'pdf_review_print': //All report view
//this.onNavigationClick( id );
this.onViewClick( id );
break;
}
}
}