Esempio n. 1
0
        protected void ddlCustomerName_SelectedIndexChanged(object sender, EventArgs e)
        {
            DataSet dsBank = new DataSet();

            try
            {
                ddlBank.Items.Clear();
                CommunicationService objService = new CommunicationService();
                dsBank = objService.GetOnlyRequiedBank(Convert.ToInt32(ddlCustomerName.SelectedValue));
                DataRow dr = dsBank.Tables[0].NewRow();
                dr[0] = "---------------------------Select Bank----------------------------------";
                dr[1] = 0;

                dsBank.Tables[0].Rows.InsertAt(dr, 0);
                ddlBank.DataSource     = dsBank.Tables[0];
                ddlBank.DataTextField  = "BankName";
                ddlBank.DataValueField = "BankID";
                ddlBank.DataBind();
            }
            catch
            {
            }
            finally
            {
                objService = null;
                dsBank     = null;
            }
        }
Esempio n. 2
0
        protected void ddlBank_SelectedIndexChanged(object sender, EventArgs e)
        {
            DataSet dsBank = new DataSet();

            try
            {
                //ddlBank.Items.Clear();
                CommunicationService objService = new CommunicationService();
                dsBank = objService.GetRegistrationDate(Convert.ToInt32(ddlCustomerName.SelectedValue), ddlBank.SelectedValue);
                //DataRow dr = dsBank.Tables[0].NewRow();
                //dr[0] = 0;
                //dr[1] = "---Select State---";
                //dsBank.Tables[0].Rows.InsertAt(dr, 0);
                //ddlBank.DataSource = dsBank.Tables[0];
                txtRegistrationdate.Text = dsBank.Tables[0].Rows[0]["regdate"].ToString().Split(' ')[0];
            }
            catch
            {
            }
            finally
            {
                objService = null;
                dsBank     = null;
            }
        }
Esempio n. 3
0
        protected void txtAccountNumber_TextChanged(object sender, EventArgs e)
        {
            DataSet dsBank = new DataSet();

            try
            {
                ddlFromBank.Items.Clear();
                CommunicationService objService = new CommunicationService();
                dsBank = objService.BankBasedAccountNumber(txtAccountNumber.Text);
                DataRow dr = dsBank.Tables[0].NewRow();
                dr[0] = "---------------------------Select Bank----------------------------------";
                dr[1] = 0;

                dsBank.Tables[0].Rows.InsertAt(dr, 0);
                ddlFromBank.DataSource     = dsBank.Tables[0];
                ddlFromBank.DataTextField  = "BankName";
                ddlFromBank.DataValueField = "BankID";
                ddlFromBank.DataBind();

                CommunicationService objServiceNext = new CommunicationService();
                DataSet dsPopulateName = objServiceNext.PopulateName(Convert.ToInt64(txtAccountNumber.Text));
                if (dsPopulateName != null)
                {
                    if (dsPopulateName.Tables[0] != null)
                    {
                        if (dsPopulateName.Tables[0].Rows.Count > 0)
                        {
                            txtCustomerName.Text = dsPopulateName.Tables[0].Rows[0]["customername"].ToString();
                            txtEmail.Text        = dsPopulateName.Tables[0].Rows[0]["email"].ToString();
                            txtContact.Text      = dsPopulateName.Tables[0].Rows[0]["contact"].ToString();
                        }
                    }
                }
            }
            catch
            {
            }
            finally
            {
                objService = null;
                dsBank     = null;
            }
            //GetCurrentBank
        }