usage-report.component.ts
1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import { Component, AfterViewInit, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { ApplicationService } from '../services/application.service';
declare var jQuery: any;
@Component({
templateUrl: './app/components/usage-report.component.html'
})
export class UsageReportComponent implements AfterViewInit, OnInit {
constructor(private application: ApplicationService, private router: Router) {
}
ngAfterViewInit(): void {
this.initializeUIElements();
jQuery(function () {
jQuery('#datetimepicker1, #datetimepicker2').datetimepicker({
//language: 'pt-BR'
});
});
jQuery(function () {
jQuery('#fixed_hdr2').fxdHdrCol({
fixedCols: 0,
width: "100%",
height: 200,
colModal: [
{ width: 130, align: 'center' },
{ width: 230, align: 'center' },
{ width: 150, align: 'Center' },
{ width: 150, align: 'Center' },
{ width: 250, align: 'Center' },
{ width: 200, align: 'Center' },
{ width: 130, align: 'Center' },
{ width: 120, align: 'center' },
{ width: 150, align: 'Center' },
{ width: 180, align: 'center' },
{ width: 120, align: 'center' },
{ width: 170, align: 'center' },
{ width: 150, align: 'center' },
],
sort: true
});
});
}
initializeUIElements(): void {
}
ngOnInit(): void {
/*if (this.application.currentUser == null) {
this.router.navigate(['/login']);
}*/
}
showAlert(id: string): void {
jQuery('#' + id).modal('show');
}
}