Esempio n. 1
0
 public static LIB_SubCategory GetLIB_SubCategoryBySubCategoryID(int SubCategoryID)
 {
     LIB_SubCategory lIB_SubCategory = new LIB_SubCategory();
     SqlLIB_SubCategoryProvider sqlLIB_SubCategoryProvider = new SqlLIB_SubCategoryProvider();
     lIB_SubCategory = sqlLIB_SubCategoryProvider.GetLIB_SubCategoryBySubCategoryID(SubCategoryID);
     return lIB_SubCategory;
 }
Esempio n. 2
0
 public static DataSet GetDropDownListAllLIB_SubCategory(int CategoryID)
 {
     DataSet lIB_SubCategories = new DataSet();
     SqlLIB_SubCategoryProvider sqlLIB_SubCategoryProvider = new SqlLIB_SubCategoryProvider();
     lIB_SubCategories = sqlLIB_SubCategoryProvider.GetDropDownLisAllLIB_SubCategory(CategoryID);
     return lIB_SubCategories;
 }
Esempio n. 3
0
 public static DataSet GetAllLIB_SubCategoriesWithRelation()
 {
     DataSet lIB_SubCategories = new DataSet();
     SqlLIB_SubCategoryProvider sqlLIB_SubCategoryProvider = new SqlLIB_SubCategoryProvider();
     lIB_SubCategories = sqlLIB_SubCategoryProvider.GetAllLIB_SubCategories();
     return lIB_SubCategories;
 }
Esempio n. 4
0
 public static void LoadLIB_SubCategoryPage(System.Web.UI.WebControls.GridView gv, System.Web.UI.WebControls.Repeater rptPager, int pageIndex, DropDownList ddlPageSize)
 {
     int recordCount=0;
     int PageSize =  int.Parse(ddlPageSize.SelectedValue);
     SqlLIB_SubCategoryProvider sqlLIB_SubCategoryProvider = new SqlLIB_SubCategoryProvider();
     DataSet ds =  sqlLIB_SubCategoryProvider.GetLIB_SubCategoryPageWise(pageIndex, PageSize, out recordCount);
     gv.DataSource = ds;
     gv.DataBind();
     lIB_SubCategoriesPaggination(rptPager, recordCount, pageIndex, PageSize);//
 }
Esempio n. 5
0
 public static int InsertLIB_SubCategory(LIB_SubCategory lIB_SubCategory)
 {
     SqlLIB_SubCategoryProvider sqlLIB_SubCategoryProvider = new SqlLIB_SubCategoryProvider();
     return sqlLIB_SubCategoryProvider.InsertLIB_SubCategory(lIB_SubCategory);
 }
Esempio n. 6
0
 public static bool DeleteLIB_SubCategory(int lIB_SubCategoryID)
 {
     SqlLIB_SubCategoryProvider sqlLIB_SubCategoryProvider = new SqlLIB_SubCategoryProvider();
     return sqlLIB_SubCategoryProvider.DeleteLIB_SubCategory(lIB_SubCategoryID);
 }
Esempio n. 7
0
 public static bool UpdateLIB_SubCategory(LIB_SubCategory lIB_SubCategory)
 {
     SqlLIB_SubCategoryProvider sqlLIB_SubCategoryProvider = new SqlLIB_SubCategoryProvider();
     return sqlLIB_SubCategoryProvider.UpdateLIB_SubCategory(lIB_SubCategory);
 }