private void UpdateFreight() { TransferOutDetails clsTransferOutDetails = new TransferOutDetails(); clsTransferOutDetails.TransferOutID = Convert.ToInt64(lblTransferOutID.Text); clsTransferOutDetails.Freight = Convert.ToDecimal(txtTransferOutFreight.Text); TransferOut clsTransferOut = new TransferOut(); clsTransferOut.UpdateFreight(clsTransferOutDetails.TransferOutID, clsTransferOutDetails.Freight); clsTransferOut.SynchronizeAmount(Convert.ToInt64(lblTransferOutID.Text)); clsTransferOutDetails = clsTransferOut.Details(Convert.ToInt64(lblTransferOutID.Text)); clsTransferOut.CommitAndDispose(); UpdateFooter(clsTransferOutDetails); }