-
Notifications
You must be signed in to change notification settings - Fork 2
/
Statistics.aspx
87 lines (85 loc) · 3.3 KB
/
Statistics.aspx
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<%@ Page Title="Statistics" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeFile="statistics.aspx.cs" Inherits="Statistics" %>
<asp:Content ID="HeadContentData" ContentPlaceHolderID="HeaddContent" runat="server">
<%=System.Web.Optimization.Styles.Render("~/bundles/statistics_css")%>
<%=System.Web.Optimization.Scripts.Render("~/bundles/statistics_js")%>
<script src="<%=Settings.CurrentSettings.ANGULARCDN.ToString()%>angular.min.js"></script>
<script <%="src='" + Settings.CurrentSettings.CHARTSJSCDN.ToString() + "Chart.bundle.min.js'" %>></script>
</asp:Content>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server" EnableViewState="false">
<div ng-app="mpsapplication" ng-controller="mpscontroller">
<div class="row">
<div class="col-sm-4">
<h4>Report for: </h4>
</div>
<div class="col-sm-4">
<input class="form-control" ng-change="loadData()" ng-model="daterep" type="month" />
</div>
<div class="col-sm-4">
<input class="form-control" ng-change="loadData()" ng-model="daterepend" type="month" />
</div>
</div>
<div class="row">
<div class="col-lg-2"></div>
<div class="col-lg-8">
<ul class="nav nav-pills">
<li class="nav-item small"><a class="nav-link active" data-toggle="pill" href="#vacations">Vacations</a></li>
<li class="nav-item small"><a class="nav-link" data-toggle="pill" href="#hours">Hours</a></li>
<li class="nav-item small"><a class="nav-link" data-toggle="pill" href="#tasks">Tasks</a></li>
</ul>
<div class="tab-content">
<div id="vacations" class="tab-pane active">
<div class="row">
<div class="panel panel-success">
<div class="panel-heading">Sick days and vacations</div>
<div class="panel-body">
<canvas id="sick" width="800" height="400"></canvas>
</div>
</div>
</div>
</div>
<div id="hours" class="tab-pane fade">
<div class="row">
<div class="col-sm-6">
<div class="panel panel-success">
<div class="panel-heading">Total Hours</div>
<div class="panel-body">
<canvas id="hourspermonth" width="100" height="100"></canvas>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="panel panel-success">
<div class="panel-heading">Total hours by person</div>
<div class="panel-body">
<canvas id="hourspermonthP" width="400" height="400"></canvas>
</div>
</div>
</div>
</div>
</div>
<div id="tasks" class="tab-pane fade">
<div class="row">
<div class="col-sm-6">
<div class="panel panel-success">
<div class="panel-heading">Count</div>
<div class="panel-body">
<canvas id="countpermonth" width="400" height="400"></canvas>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="panel panel-success">
<div class="panel-heading">Count by person</div>
<div class="panel-body">
<canvas id="countpermonthP" width="400" height="400"></canvas>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-2"></div>
</div>
</div>
</asp:Content>