Ejemplo n.º 1
0
        protected void btnSearch_Click(object sender, EventArgs e)
        {
            btnSubmit.Visible = true;
            lblmsg.Text       = "";
            if (txtLCOSearch.Text.Trim() != "")
            {
                string customerId               = Request.Form[hfCustomerId.UniqueID];
                string customerName             = Request.Form[txtLCOSearch.UniqueID];
                Cls_BLL_TransHwayLcoPayment obj = new Cls_BLL_TransHwayLcoPayment();
                string operator_id              = "";
                string category_id              = "";
                if (Session["operator_id"] != null && Session["category"] != null)
                {
                    operator_id = Convert.ToString(Session["operator_id"]);
                    category_id = Convert.ToString(Session["category"]);
                }
                string[] responseStr = obj.getLcodetails(username, txtLCOSearch.Text.Trim(), RadSearchby.SelectedValue, operator_id, category_id);
                if (responseStr.Length != 0)
                {
                    lblCustNo.Text      = responseStr[0].Trim();
                    lblCustName.Text    = responseStr[1].Trim();
                    lblCustAddr.Text    = responseStr[2].Trim();
                    lblmobno.Text       = responseStr[3].Trim();
                    lblEmail.Text       = responseStr[4].Trim();
                    lblCurrBalance.Text = responseStr[5].Trim();

                    divdet.Visible             = true;
                    LCOAccordion.Visible       = true;
                    LCOAccordion.SelectedIndex = 0;
                }
                else
                {
                    msgbox("No Such LCO Found", txtLCOSearch);
                    LCOAccordion.Visible = false;
                    return;
                }
            }
            else
            {
                msgbox("Please Select LCO by code or name", txtLCOSearch);
                LCOAccordion.Visible = false;
                return;
            }
        }
Ejemplo n.º 2
0
        protected void btnSearch_Click(object sender, EventArgs e)
        {
            string customerId   = Request.Form[hfCustomerId.UniqueID];
            string customerName = Request.Form[txtUSERSearch.UniqueID];

            if (txtUSERSearch.Text.Trim() != "0")
            {
                Cls_BLL_TransHwayLcoPayment obj = new Cls_BLL_TransHwayLcoPayment();
                string[] responseStr            = obj.getLcodetails(username, txtUSERSearch.Text, RadSearchby.SelectedValue, operid, catid);
                if (responseStr.Length != 0)
                {
                    lblCustNo.Text   = responseStr[0].Trim();
                    lblCustName.Text = responseStr[1].Trim();
                    lblCustAddr.Text = responseStr[2].Trim();
                    lblmobno.Text    = responseStr[3].Trim();
                    lblEmail.Text    = responseStr[4].Trim();

                    DataSet ds = Cls_Helper.Comboupdate("aoup_bank_def", "num_bank_id", "var_bank_name");
                    ddlBankName.DataSource     = ds;
                    ddlBankName.DataTextField  = "var_bank_name";
                    ddlBankName.DataValueField = "num_bank_id";
                    ddlBankName.DataBind();
                    ds.Dispose();
                    ddlBankName.Items.Insert(0, "Select Bankname");
                    divdet.Visible = true;
                }
                else
                {
                    msgbox("No Such LCO Found", txtUSERSearch);
                    return;
                }
            }
            else
            {
                msgbox("Please Select LCO by code or name", txtUSERSearch);
                return;
            }
        }