示例#1
0
 public void InsertInvoice(Invoice invo)
 {
     if (invo.Collected == true)
     {
         invo.Act_CollectedDate = DateTime.Now;
     }
     repo.InsertInvoice(invo);
 }
示例#2
0
    public void InsertInvoice(Invoice invoice)
    {
        List <Invoice> list  = repo.GetInvoices();
        int            Count = list.Count();

        foreach (var o in list)
        {
            if (o.InvoiceNo >= Count)
            {
                Count = o.InvoiceNo + 1;
            }
        }
        invoice.InvoiceNo = Count;

        repo.InsertInvoice(invoice);
    }
示例#3
0
 public void AddInvoice(Invoice i)
 {
     invo.InsertInvoice(i);
 }