public void Insert(int? InvoiceNumber,int? ChargeType,string Detail,decimal? Amount,bool Vat,double? VATAmount,byte[] Ts) { InvoiceSubTable item = new InvoiceSubTable(); item.InvoiceNumber = InvoiceNumber; item.ChargeType = ChargeType; item.Detail = Detail; item.Amount = Amount; item.Vat = Vat; item.VATAmount = VATAmount; item.Ts = Ts; item.Save(UserName); }
public void Update(int EntryNumber,int? InvoiceNumber,int? ChargeType,string Detail,decimal? Amount,bool Vat,double? VATAmount,byte[] Ts) { InvoiceSubTable item = new InvoiceSubTable(); item.MarkOld(); item.IsLoaded = true; item.EntryNumber = EntryNumber; item.InvoiceNumber = InvoiceNumber; item.ChargeType = ChargeType; item.Detail = Detail; item.Amount = Amount; item.Vat = Vat; item.VATAmount = VATAmount; item.Ts = Ts; item.Save(UserName); }