30 lines
976 B
C#
30 lines
976 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 l = new List<InvoiceableItem>();
|
|
for (int i = 0; i < 10; i++)
|
|
l.Add(new InvoiceableItem { CustomerId = 1, Linked = true, Project = "project blah", ServiceDate = DateTime.Now.ToString("s"), ServiceNumber = "44", Status = "Waiting to be invoiced and just sitting there otherwise", StatusColor = "FF00FFAA", WorkorderId = 4 });
|
|
|
|
return l;
|
|
}
|
|
|
|
public static List<NameIdItem> GetCustomersWithInvoiceableItems()
|
|
{
|
|
var l = new List<NameIdItem>();
|
|
for (int i = 0; i < 10; i++)
|
|
l.Add(new NameIdItem { Id = i, Name = "Customer " + i.ToString() });
|
|
return l;
|
|
}
|
|
}
|
|
}
|