示例#1
0
    protected void TxtSearchCompo_TextChanged(object sender, EventArgs e)
    {
        _GetListComponentes _GetList = new _GetListComponentes(TxtSearchCompo.Text, DDLSelcTipoCompo.SelectedValue, true);

        GrdCompo.DataSource = _GetList.ListComponentes;
        GrdCompo.DataBind();
    }
示例#2
0
    protected void DDLSelcTipoCompo_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (DDLSelcTipoCompo.SelectedIndex != 0)
        {
            PnlCompoSelected.Visible = false;
            GrdCompo.Visible         = true;
            TxtSearchCompo.Visible   = true;
            BtnSearchCompo.Visible   = true;
            BomModel model = new BomModel();

            GrdCompo.DataSource = model.GetCompoByWGR(DDLSelcTipoCompo.SelectedValue, true);
            GrdCompo.DataBind();
        }
        else
        {
            GrdCompo.Visible       = false;
            TxtSearchCompo.Visible = false;
            BtnSearchCompo.Visible = false;
        }
    }