50 lines
1.9 KiB
C#
50 lines
1.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace EnVisage.Reports
|
|
{
|
|
public class Utils
|
|
{
|
|
public static List<Tuple<string, string>> Pers
|
|
{
|
|
get
|
|
{
|
|
List<Tuple<string, string>> result = new List<Tuple<string, string>>();
|
|
result.Add(new Tuple<string, string>("Total", "0"));
|
|
result.Add(new Tuple<string, string>("Month", "1"));
|
|
result.Add(new Tuple<string, string>("Week", "2"));
|
|
return result;
|
|
}
|
|
}
|
|
|
|
public static List<Tuple<string, string>> SortColumn
|
|
{
|
|
get
|
|
{
|
|
List<Tuple<string, string>> result = new List<Tuple<string, string>>();
|
|
result.Add(new Tuple<string, string>("First Name", "FirstName"));
|
|
result.Add(new Tuple<string, string>("Last Name", "LastName"));
|
|
result.Add(new Tuple<string, string>("Capacity", "AvailableHours"));
|
|
result.Add(new Tuple<string, string>("Project Allocation", "AllocatedHours"));
|
|
result.Add(new Tuple<string, string>("Non-project Time", "NonProjectTimeHours"));
|
|
result.Add(new Tuple<string, string>("Available Hours", "ResourceAvailability"));
|
|
return result;
|
|
}
|
|
}
|
|
|
|
public static List<Tuple<string, string>> SortColumnDirection
|
|
{
|
|
get
|
|
{
|
|
List<Tuple<string, string>> result = new List<Tuple<string, string>>();
|
|
result.Add(new Tuple<string, string>("Ascending", Telerik.Reporting.SortDirection.Asc.GetHashCode().ToString()));
|
|
result.Add(new Tuple<string, string>("Descending", Telerik.Reporting.SortDirection.Desc.GetHashCode().ToString()));
|
|
return result;
|
|
}
|
|
}
|
|
}
|
|
}
|