-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdailyreport.aspx
150 lines (147 loc) · 8.01 KB
/
dailyreport.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<%@ Page Title="Daily Report" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeFile="dailyreport.aspx.cs" Inherits="DailyReport" %>
<%@ Register Src="~/controls/DefectSpentControl.ascx" TagName="defSpent" TagPrefix="uc" %>
<%@ Register Src="~/controls/DefectNumControl.ascx" TagName="defNum" TagPrefix="uc" %>
<%@ Register Src="~/controls/DefectEstControl.ascx" TagName="defEst" TagPrefix="uc" %>
<%@ Register Src="~/controls/DefectDBControl.ascx" TagName="defDB" TagPrefix="uc" %>
<asp:Content ID="HeadContentData" ContentPlaceHolderID="HeaddContent" runat="server">
<%=System.Web.Optimization.Styles.Render("~/bundles/dailyreport_css")%>
<%=System.Web.Optimization.Scripts.Render("~/bundles/dailyreport_js")%>
<script src="<%=Settings.CurrentSettings.ANGULARCDN.ToString()%>angular.min.js"></script>
</asp:Content>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server" EnableViewState="false">
<img id="pageloadnotify" src="pageloadnotify.ashx?id=<%=PageLoadNofify.NewLoad()%>" />
<div ng-app="mpsapplication" ng-controller="mpscontroller">
<div class="panel panel-primary">
<div class="panel-heading">
<div class="row">
<div class="col-sm-2">
<h4>Daily Report for date: </h4>
</div>
<div class="col-sm-2">
<input type="date" id="date" class="form-control input-sm" ng-model="today" ng-change="changeDate()" ng-disabled="!loaded()">
</div>
<div class="col-sm-8">
<h4>Total persons: {{mpsusers.length}}  Online persons: {{personsOnline}}  Vacations: {{personsVacation}}  Away: {{mpsusers.length - personsOnline - personsVacation}}</h4>
</div>
</div>
</div>
<div class="panel-body">
<table class="table table-hover table-bordered">
<colgroup>
<col width="10%" />
<col width="25%" />
<col width="25%" />
<col width="40%" />
</colgroup>
<thead>
<tr class="info">
<th>Person</th>
<th>Yesterday</th>
<th>Today</th>
<th>Plan</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="u in mpsusers | orderBy : 'PERSON_NAME'">
<td>
<a data-toggle="tooltip" title="Click to see all user's activity." target="_blank" href="dailysearch.aspx?filter={{createDSFilter(u.ID);}}" class="btn btn-outline-secondary btn-sm" role="button">
<img class="rounded-circle" ng-src="{{'getUserImg.ashx?sz=60&id=' + u.ID}}" alt="Smile" height="60" width="60">
<br />
<b><span>{{u.LOGIN}}</span></b>
<br />
<span>{{u.PERSON_NAME}}</span>
</a>
<br />
<span class="badge badge-info">{{u.TODAYIN}}-{{u.TODAYOUT}}</span>
</td>
<td>
<div ng-repeat="v in vacations | filter: { AUSER : u.TTUSERID, DATE: yesterdaystring }">
<a data-toggle="tooltip" title="{{v.ID}}" href="showtask.aspx?ttid={{v.ID}}" target="_blank">
<h3 class="vacation-box">
<i class="fas fa-plane" style="color: {{v.SICK ? 'red' : ''}}"></i>
</h3>
</a>
</div>
<div ng-repeat="l in u.YESTERDAY track by $index">
<span ng-bind-html="l | sumFormat | limitTo:150"></span>
<br>
</div>
<div class="list-group">
<div ng-repeat="e in u.TASKSEVENTS1" class="list-group-item p-1" ng-style="{{e.DEFECT.DISPO | getDispoColorById:this}}">
<uc:defSpent member="e" runat="server" />
<uc:defNum member="e.DEFECT" runat="server" />
<uc:defEst member="e.DEFECT" runat="server" />
<uc:defDB member="e.DEFECT" runat="server" />
<span data-toggle="tooltip" title="{{e.DEFECT.SUMMARY}}" ng-bind-html="e.DEFECT.SUMMARY | sumFormat | limitTo:135"></span>
</div>
</div>
<hr>
<div ng-hide="u.CREATEDTASKS1.length < 1">
<strong>Created tasks:</strong><a ng-repeat="t in u.CREATEDTASKS1" href="showtask.aspx?ttid={{t}}" target="_blank"><span class="badge badge-pill badge-secondary">{{t}}</span></a>
</div>
<div ng-hide="u.SCHEDULEDTASKS1.length < 1">
<strong>Scheduled tasks:</strong><a ng-repeat="t in u.SCHEDULEDTASKS1" href="showtask.aspx?ttid={{t}}" target="_blank"><span class="badge badge-pill badge-secondary">{{t}}</span></a>
</div>
<div ng-hide="u.MODIFIEDTASKS1.length < 1">
<strong>Modified tasks:</strong><a ng-repeat="t in u.MODIFIEDTASKS1" href="showtask.aspx?ttid={{t}}" target="_blank"><span class="badge badge-pill badge-secondary">{{t}}</span></a>
</div>
</td>
<td>
<div ng-repeat="v in vacations | filter: { AUSER : u.TTUSERID, DATE: todaystring }">
<a data-toggle="tooltip" title="{{v.ID}}" href="showtask.aspx?ttid={{v.ID}}" target="_blank">
<h3 class="vacation-box"><span style="color: {{v.SICK ? 'red' : ''}}" class="fas fa-plane"></span></h3>
</a>
</div>
<div ng-repeat="l in u.TODAY track by $index">
<span ng-bind-html="l | sumFormat | limitTo:150"></span>
<br>
</div>
<div class="list-group">
<div ng-repeat="e in u.TASKSEVENTS2" class="list-group-item p-1" ng-style="{{e.DEFECT.DISPO | getDispoColorById:this}}">
<uc:defSpent member="e" runat="server" />
<uc:defNum member="e.DEFECT" runat="server" />
<uc:defEst member="e.DEFECT" runat="server" />
<uc:defDB member="e.DEFECT" runat="server" />
<span data-toggle="tooltip" title="{{e.DEFECT.SUMMARY}}" ng-bind-html="e.DEFECT.SUMMARY | sumFormat | limitTo:135"></span>
</div>
</div>
<hr>
<div ng-hide="u.CREATEDTASKS2.length < 1">
<strong>Created tasks:</strong><a ng-repeat="t in u.CREATEDTASKS2" href="showtask.aspx?ttid={{t}}" target="_blank"><span class="badge badge-pill badge-secondary">{{t}}</span></a>
</div>
<div ng-hide="u.SCHEDULEDTASKS2.length < 1">
<strong>Scheduled tasks:</strong><a ng-repeat="t in u.SCHEDULEDTASKS2" href="showtask.aspx?ttid={{t}}" target="_blank"><span class="badge badge-pill badge-secondary">{{t}}</span></a>
</div>
<div ng-hide="u.MODIFIEDTASKS2.length < 1">
<strong>Modified tasks:</strong><a ng-repeat="t in u.MODIFIEDTASKS2" href="showtask.aspx?ttid={{t}}" target="_blank"><span class="badge badge-pill badge-secondary">{{t}}</span></a>
</div>
</td>
<td>
<div class="spinner-border" ng-hide="planLoaded(u.ID)"></div>
<div>
<a target='_blank' href='vacations.aspx'>
<h3 class="vacation-box">{{getUpcomingdays(u)}}</h3>
</a>
<a data-toggle="tooltip" title="{{v.ID}}" href="showtask.aspx?ttid={{v.ID}}" target="_blank" ng-repeat="v in vacations | orderBy : 'order' | filter: { AUSER : u.TTUSERID } | filter: {DATE: '!' + todaystring} | filter: {DATE: '!' + yesterdaystring}">
<h3 class="vacation-box">
<span class="fas fa-plane"></span>
<span ng-repeat="n in v.nextin track by $index" class="fas fa-wrench" ng-style="n ? {'color':'red'} : {'color':'blue'}"></span>
</h3>
</a>
</div>
<div ng-repeat="d in u.PLAN track by $index" ng-style="{{d.DISPO | getDispoColorById:this}}" class="task {{$index < 10 ? 'task-first' : 'task-last'}}">
<uc:defNum runat="server" />
<uc:defEst runat="server" />
<uc:defDB runat="server" />
<span ng-bind-html="d.SUMMARY | sumFormat"></span>
</div>
<button data-toggle="tooltip" title="Click to see additional 10 items. Number of items is limited by 20. For more items click plan button near" onclick="moretasks(this)" type="button" class="btn btn-default btn-xs">...</button>
<a data-toggle="tooltip" title="Click to see full plan for selected person" target="_blank" href="editplan.aspx?userid={{u.ID}}" class="btn btn-default btn-xs" role="button">Full plan...</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</asp:Content>