28 lines
910 B
C#
28 lines
910 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AyaNovaQBI
|
|
{
|
|
internal class util
|
|
{
|
|
|
|
public static List<InvoiceableItem> GetInvoiceableItems()
|
|
{
|
|
var random = new Random();
|
|
var l = new List<InvoiceableItem>();
|
|
for (int i = 1; i < random.Next(25, 100); i++)
|
|
l.Add(new InvoiceableItem { Customer = $"Customer {random.Next(1, 5)}", Linked = random.Next(2) == 1, Project = $"project {i}", ServiceDate = DateTime.Now.ToString("s"), ServiceNumber = (40 + i).ToString(), Status = $"Waiting to be invoiced", StatusColor = "FF00FFAA", WorkorderId = 4 });
|
|
|
|
return l.OrderBy(x => x.Customer)
|
|
.ThenBy(x => x.ServiceNumber)
|
|
.ToList();
|
|
|
|
}
|
|
|
|
|
|
}
|
|
}
|