public int GetCount(String Name = "") { Book.DAL.T_Base_Provider dal = new DAL.T_Base_Provider(); int count = dal.GetCount(Name); return(count); }
public int GetCount() { Book.DAL.T_Base_Provider dal = new DAL.T_Base_Provider(); int result = dal.GetCount(); return(result); }
public Book.Model.T_Base_Provider_Page GetListPage(int CurrentPage, int PageSize, String Name = "") { Book.DAL.T_Base_Provider dal = new DAL.T_Base_Provider(); List <Book.Model.T_Base_Provider> list = dal.GetList(CurrentPage, PageSize, Name); int count = dal.GetCount(Name); Book.Model.T_Base_Provider_Page page = new Model.T_Base_Provider_Page(); page.list = list; page.count = count; return(page); }
public Book.Model.Home GetCount() { Book.Model.Home home = new Model.Home(); Book.DAL.T_Base_Book book_dal = new DAL.T_Base_Book(); home.BookCount = book_dal.GetCount(); Book.DAL.T_Base_Provider provider_dal = new DAL.T_Base_Provider(); home.ProviderCount = provider_dal.GetCount(); Book.DAL.T_Base_Customer customer_dal = new DAL.T_Base_Customer(); home.CustomerCount = customer_dal.GetCount(); Book.DAL.T_Stock_In in_dal = new DAL.T_Stock_In(); home.InHeadCount = in_dal.GetCount(); Book.DAL.T_Stock_Out out_dal = new DAL.T_Stock_Out(); home.OutHeadCount = in_dal.GetCount(); return(home); }