public void saveDisburse(int accid, decimal cash, decimal bank)
    {
        Decimal totalAmt = cash + bank;

        LoanAccountDSTableAdapters.GetLoanAccountTableAdapter loanAcc = new LoanAccountDSTableAdapters.GetLoanAccountTableAdapter();
        LoanAccountDS.GetLoanAccountDataTable tblLoanAcc = loanAcc.GetLoanAccount(accid);
        if (tblLoanAcc.Rows.Count > 0)
        {
            LoanDSTableAdapters.GetDisburseLoanTableAdapter disburse = new LoanDSTableAdapters.GetDisburseLoanTableAdapter();
            disburse.InsertDisburseLoan(accid,
                                        tblLoanAcc[0].datAccountNumber.ToString(),
                                        tblLoanAcc[0].datClientFullName.ToString(),
                                        DateTime.Now,
                                        tblLoanAcc[0].datEndDate,
                                        tblLoanAcc[0].datInterestRate,
                                        cash,
                                        bank,
                                        totalAmt,
                                        tblLoanAcc[0].datFees,
                                        tblLoanAcc[0].datLoanType,
                                        tblLoanAcc[0].datPurpose,
                                        tblLoanAcc[0].datTeamID,
                                        tblLoanAcc[0].datCreditTeamID,
                                        MySessionManager.CurrentUser.UserID);
        }
    }
    public void saveDisburse(int accid, decimal cash, decimal bank)
    {
        Decimal totalAmt = cash+bank;
        LoanAccountDSTableAdapters.GetLoanAccountTableAdapter loanAcc = new LoanAccountDSTableAdapters.GetLoanAccountTableAdapter();
        LoanAccountDS.GetLoanAccountDataTable  tblLoanAcc = loanAcc.GetLoanAccount(accid);
        if(tblLoanAcc.Rows.Count>0)
        {
            
        LoanDSTableAdapters.GetDisburseLoanTableAdapter disburse = new LoanDSTableAdapters.GetDisburseLoanTableAdapter();
        disburse.InsertDisburseLoan(accid,
                                    tblLoanAcc[0].datAccountNumber.ToString(),
                                    tblLoanAcc[0].datClientFullName.ToString(),
                                    DateTime.Now,
                                    tblLoanAcc[0].datEndDate,
                                    tblLoanAcc[0].datInterestRate,
                                    cash,
                                    bank,
                                    totalAmt,
                                    tblLoanAcc[0].datFees,
                                    tblLoanAcc[0].datLoanType,
                                    tblLoanAcc[0].datPurpose,
                                    tblLoanAcc[0].datTeamID,
                                    tblLoanAcc[0].datCreditTeamID,
                                    MySessionManager .CurrentUser.UserID);

             }
    }