protected void Search_Type() { int rowcount = ucCustomPagerItems.isCountRecord; int SearchRows = 0; int TotalRows = 0; JRA_Lib JRALib_Data = new JRA_Lib(); JRALib_Data.SearchText = txtfilter.Text.Trim(); JRALib_Data.SearchType = ddlFiter.SelectedItem.Text == "--Select--" ? null : ddlFiter.SelectedItem.Text; JRALib_Data.PageNumber = ucCustomPagerItems.CurrentPageIndex; JRALib_Data.PageSize = ucCustomPagerItems.PageSize; DataTable dt = BLL_JRA_Work_Category.JRA_GET_TYPE_SEARCH(JRALib_Data); GridView_Type.DataSource = dt; GridView_Type.DataBind(); if (dt.Rows.Count > 0) { SearchRows = Convert.ToInt32(dt.Rows[0]["SearchRows"]); TotalRows = Convert.ToInt32(dt.Rows[0]["TotalRows"]); } if (ucCustomPagerItems.isCountRecord == 1) { rowcount = SearchRows; ucCustomPagerItems.CountTotalRec = Convert.ToString(TotalRows); ucCustomPagerItems.BuildPager(); } }
protected void Load_TypeList() { JRA_Lib JRALib_Data = new JRA_Lib(); JRALib_Data.Type_ID = 0; DataTable dt = BLL_JRA_Work_Category.JRA_GET_TYPE_LIST(JRALib_Data); GridView_Type.DataSource = dt; GridView_Type.DataBind(); }