Ejemplo n.º 1
0
        private void uclSearchBar_OnSearchClick()
        {
            initSearch            = true;
            divPageBody.Visible   = false;
            pnlSearchList.Visible = uclAdminList.PartListPanel.Visible = true;
            if (uclSearchBar.SearchCriteriaChanged() || planList == null)
            {
                planList = SQMModelMgr.SearchPartList(entities, SessionManager.SessionContext.ActiveCompany().COMPANY_ID, uclSearchBar.SearchText.Text, true);
            }

            uclAdminList.BindPartList(planList);
            uclAdminList.PartListGrid.Columns[2].Visible = false;
            SetGridViewDisplay(uclAdminList.PartListGrid, uclAdminList.PartListLabel, uclAdminList.PartListDiv, 20);
        }
Ejemplo n.º 2
0
        private void DoPartSearch()
        {
            bool activeOnly = false;

            if (args.Length > 1 && args[1] == "A")
            {
                activeOnly = true;
            }

            partList = SQMModelMgr.SearchPartList(entities, SessionManager.SessionContext.ActiveCompany().COMPANY_ID, args[0], activeOnly);
            GridView gv = (GridView)hfBase.FindControl("gvPartList");

            gv.DataSource = partList;
            gv.DataBind();
            SetGridViewDisplay(gv, (Label)hfBase.FindControl("lblPartListEmpty"), (System.Web.UI.HtmlControls.HtmlGenericControl)hfBase.FindControl("divGVScroll"), 0);
        }