private void UpdateFreight() { WBranchTransferDetails clsWBranchTransferDetails = new WBranchTransferDetails(); clsWBranchTransferDetails.WBranchTransferID = Convert.ToInt64(lblWBranchTransferID.Text); clsWBranchTransferDetails.Freight = Convert.ToDecimal(txtWBranchTransferFreight.Text); WBranchTransfer clsWBranchTransfer = new WBranchTransfer(); clsWBranchTransfer.UpdateFreight(clsWBranchTransferDetails.WBranchTransferID, clsWBranchTransferDetails.Freight); clsWBranchTransfer.SynchronizeAmount(Convert.ToInt64(lblWBranchTransferID.Text)); clsWBranchTransferDetails = clsWBranchTransfer.Details(Convert.ToInt64(lblWBranchTransferID.Text)); clsWBranchTransfer.CommitAndDispose(); UpdateFooter(clsWBranchTransferDetails); }