Ejemplo n.º 1
0
        /// <summary>
        /// This button use to insert Holding Amount
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            // int i;
            //DataTable dtBankAccId = new DataTable();
            //dtBankAccId = (DataTable)Session["BankAccId"];
            //if (dtBankAccId.Rows.Count > 0)
            //{
            //    for (i = 0; i < dtBankAccId.Rows.Count; i++)
            //    {
            //        custBankAccId = Convert.ToInt32(dtBankAccId.Rows[i]["CB_CustBankAccId"].ToString());
            //    }
            //}

            customeraccountVo = new CustomerAccountsVo();
            int customerId = 0;

            customerVo = (CustomerVo)Session["customerVo"];
            customerId = customerVo.CustomerId;
            customeraccountVo.AccountId = int.Parse(ddlAccountDetails.SelectedValue);
            customeraccountVo.Amount    = double.Parse(txtholdingAmt.Text.ToString());
            customerAccountBo.InsertholdingAmountCustomerBank(customeraccountVo, customerId);
            Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "pageloadscript", "loadcontrol('ViewBankDetails','none');", true);
        }