public void Insert(int?PuchaseTableID, int?InvoiceNumber, int?SupplierID, decimal?EstimatedAmount, DateTime?EstimationDate, string OldValue, decimal?Amount, DateTime?DatePassed, string PurchaseInvNumber, string Remarks, decimal?ValueForProfit, DateTime?Added, int?AddedBy, byte[] Ts)
        {
            PurchaseTableAudit item = new PurchaseTableAudit();

            item.PuchaseTableID = PuchaseTableID;

            item.InvoiceNumber = InvoiceNumber;

            item.SupplierID = SupplierID;

            item.EstimatedAmount = EstimatedAmount;

            item.EstimationDate = EstimationDate;

            item.OldValue = OldValue;

            item.Amount = Amount;

            item.DatePassed = DatePassed;

            item.PurchaseInvNumber = PurchaseInvNumber;

            item.Remarks = Remarks;

            item.ValueForProfit = ValueForProfit;

            item.Added = Added;

            item.AddedBy = AddedBy;

            item.Ts = Ts;


            item.Save(UserName);
        }
 public bool Destroy(object PurchaseAuditIDa)
 {
     return(PurchaseTableAudit.Destroy(PurchaseAuditIDa) == 1);
 }
 public bool Delete(object PurchaseAuditIDa)
 {
     return(PurchaseTableAudit.Delete(PurchaseAuditIDa) == 1);
 }