public void Insert(int?InvoiceNumber, int?SupplierID, float?EstimatedAmount, DateTime?EstimationDate, float?Amount, DateTime?DatePassed, string PurchaseInvNumber, string Remarks, float?ValueForProfit)
        {
            InternalPurchaseTable item = new InternalPurchaseTable();

            item.InvoiceNumber = InvoiceNumber;

            item.SupplierID = SupplierID;

            item.EstimatedAmount = EstimatedAmount;

            item.EstimationDate = EstimationDate;

            item.Amount = Amount;

            item.DatePassed = DatePassed;

            item.PurchaseInvNumber = PurchaseInvNumber;

            item.Remarks = Remarks;

            item.ValueForProfit = ValueForProfit;


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