private void UpdateDeposit() { PODetails clsPODetails = new PODetails(); clsPODetails.POID = Convert.ToInt64(lblPOID.Text); clsPODetails.Deposit = Convert.ToDecimal(txtPODeposit.Text); PO clsPO = new PO(); clsPO.UpdateDeposit(clsPODetails.POID, clsPODetails.Deposit); clsPO.SynchronizeAmount(Convert.ToInt64(lblPOID.Text)); clsPODetails = clsPO.Details(Convert.ToInt64(lblPOID.Text)); clsPO.CommitAndDispose(); UpdateFooter(clsPODetails); }