protected void Page_Load(object sender, EventArgs e) { Page.Form.DefaultFocus = TextBoxSearchValue.ClientID; Page.Form.DefaultButton = ButtonSearch.UniqueID; if (!IsPostBack) { PageLayout(); BindRoleList(); 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["EmployeeNumber"] == null) ? "" : Request.QueryString["EmployeeNumber"]; if (searchValue.Length != 0) { GridViewResult.DataSource = Employee.GetEmployeeListByFilterLimited(searchValue, DropDownListRole.SelectedItem.Text, Account.GetAccountByUserName(Page.User.Identity.Name.ToString()).AccountId); GridViewResult.DataBind(); } else { //GridViewResult.DataSource = Employee.GetEmployeeListByFilter("%", DropDownListRole.SelectedItem.Text, Account.GetAccountByUserName(Page.User.Identity.Name.ToString()).AccountId); //GridViewResult.DataBind(); } } PanelError.Visible = false; }
protected void Page_Load(object sender, EventArgs e) { Page.Form.DefaultFocus = TextBoxSearchValue.ClientID; Page.Form.DefaultButton = ButtonSearch.UniqueID; if (!IsPostBack) { //BindASTreeView(); 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["EmployeeId"] == null) ? "" : Request.QueryString["EmployeeId"]; if (searchValue.Length != 0) { GridViewResult.DataSource = EmployeeReportsTo.GetEmployeeReportsToListByFilter(searchValue, (CheckBoxUnassigned.Checked) ? 1 : 0, Account.GetAccountByUserName(Page.User.Identity.Name.ToString()).AccountId); GridViewResult.DataBind(); } else { GridViewResult.DataSource = EmployeeReportsTo.GetEmployeeReportsToListByFilter("%", (CheckBoxUnassigned.Checked) ? 1 : 0, Account.GetAccountByUserName(Page.User.Identity.Name.ToString()).AccountId); GridViewResult.DataBind(); } } PanelError.Visible = false; }
protected void Page_Load(object sender, EventArgs e) { this.supplierId = Common.GetEncryptedQueryStringValue("SupplierId", 0); Page.Form.DefaultFocus = TextBoxSearchValue.ClientID; Page.Form.DefaultButton = ButtonSearch.UniqueID; if (!IsPostBack) { if (ViewState["SupplierId"] != null) { this.supplierId = Convert.ToInt32(ViewState["SupplierId"].ToString()); } 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 = Product.GetProductListByFilter(searchValue, supplierId); GridViewResult.DataBind(); } } PanelError.Visible = false; }
protected void Page_Load(object sender, EventArgs e) { Page.Form.DefaultFocus = TextBoxSearchValue.ClientID; Page.Form.DefaultButton = ButtonSearch.UniqueID; this.companyId = Account.GetAccountByUserName(Page.User.Identity.Name.ToString()).CompanyId; 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(); } PanelError.Visible = false; }
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 = EmployeeRole.GetRoleListByFilter(searchValue); GridViewResult.DataBind(); } } PanelError.Visible = false; }
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["Registration"] == null) ? "" : Request.QueryString["Registration"]; if (searchValue.Length != 0) { GridViewResult.DataSource = Vehicle.GetVehicleListByFilter(searchValue, Account.GetAccountByUserName(Page.User.Identity.Name.ToString()).CompanyId); GridViewResult.DataBind(); } } PanelError.Visible = false; }
protected void Page_Load(object sender, EventArgs e) { this.accountId = Account.GetAccountByUserName(Page.User.Identity.Name.ToString()).AccountId; LabelPageTitle.Text = String.Format("{0}", "Store Brand Filter"); PanelError.Visible = false; 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(); RepeaterAlphabet.DataSource = alphabet; RepeaterAlphabet.DataBind(); BindStoreBrandFilterList(); } }
protected void Page_Load(object sender, EventArgs e) { Page.Form.DefaultFocus = TextBoxSearchValue.ClientID; Page.Form.DefaultButton = ButtonSearch.UniqueID; if (!IsPostBack) { BindFinancialPeriod(); //BindRoleList(); 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["EmployeeNumber"] == null) ? "" : Request.QueryString["EmployeeNumber"]; if (searchValue.Length != 0) { GridViewResult.DataSource = EmployeeLeaveDays.GetEmployeeListFilterByReportsToId(searchValue, Account.GetAccountByUserName(Page.User.Identity.Name.ToString()).AccountId, Convert.ToInt32(DropDownListFinancialPeriod.SelectedValue)); GridViewResult.DataBind(); search = searchValue; } } PanelError.Visible = false; }