예제 #1
0
        protected void RepeaterAlphabet_ItemCommand(object source, RepeaterCommandEventArgs e)
        {
            string searchValue = (((LinkButton)e.CommandSource).Text == "All") ? "%" : ((LinkButton)e.CommandSource).Text + "%";

            if (searchValue.Length != 0)
            {
                GridViewResult.DataSource = MerchandisingGroupCustom.GetMerchandisingGroupCustomListByFilter(searchValue, Account.GetAccountByUserName(Page.User.Identity.Name.ToString()).CompanyId);
                GridViewResult.DataBind();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            this.storeId = Common.GetEncryptedQueryStringValue("StoreId", 0);

            LabelPageTitle.Text = String.Format("{0} - Merchandising Group Custom List", Store.GetStoreByStoreId(this.storeId).Description);

            if (!IsPostBack)
            {
                GridViewResult.DataSource = MerchandisingGroupCustom.GetMerchandisingGroupCustomListByFilter("%", Account.GetAccountByUserName(Page.User.Identity.Name.ToString()).CompanyId);
                GridViewResult.DataBind();
            }
        }
예제 #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Page.Form.DefaultFocus  = TextBoxSearchValue.ClientID;
            Page.Form.DefaultButton = ButtonSearch.UniqueID;

            if (!IsPostBack)
            {
                string[] alphabet = "A;B;C;D;E;F;G;H;I;J;K;L;M;N;O;P;Q;R;S;T;U;V;W;X;Y;Z;All".Split(';');
                RepeaterAlphabet.DataSource = alphabet;
                RepeaterAlphabet.DataBind();
                string searchValue = (Request.QueryString["Description"] == null) ? "" : Request.QueryString["Description"];
                if (searchValue.Length != 0)
                {
                    GridViewResult.DataSource = MerchandisingGroupCustom.GetMerchandisingGroupCustomListByFilter(searchValue, Account.GetAccountByUserName(Page.User.Identity.Name.ToString()).CompanyId);
                    GridViewResult.DataBind();
                }
            }
            PanelError.Visible = false;
        }
예제 #4
0
 protected void ButtonSearch_Click(object sender, EventArgs e)
 {
     GridViewResult.DataSource = MerchandisingGroupCustom.GetMerchandisingGroupCustomListByFilter("%" + TextBoxSearchValue.Text + "%", Account.GetAccountByUserName(Page.User.Identity.Name.ToString()).CompanyId);
     GridViewResult.DataBind();
 }