Exemplo n.º 1
0
 /// <summary>
 /// Lây danh sách các Customer. Có phân trang.
 /// </summary>
 /// <param name="page"></param>
 /// <param name="pageSize"></param>
 /// <param name="searchValue"></param>
 /// <param name="rowCount"></param>
 /// <returns></returns>
 public static List <Customer> ListOfCustomers(int page, int pageSize, string searchValue, string country, out int rowCount)
 {
     if (page < 1)
     {
         page = 1;
     }
     rowCount = CustomerDB.Count(searchValue, country);
     return(CustomerDB.List(page, pageSize, searchValue, country));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Danh sách Customer
 /// </summary>
 /// <param name="page">Số trang</param>
 /// <param name="pageSize">Kích cở trang</param>
 /// <param name="searchValue">Giá trị tìm kiếm</param>
 /// <param name="rowCount">Số bản ghi ứng với searchValue</param>
 /// <returns></returns>
 public static List <Customer> ListOfCustomers(int page, int pageSize, string searchValue, out int rowCount, string Country, string address)
 {
     if (page < 1)
     {
         page = 1;
     }
     if (pageSize < 0)
     {
         pageSize = 20;
     }
     rowCount = CustomerDB.Count(searchValue, Country, address);
     return(CustomerDB.List(page, pageSize, searchValue, Country, address));
 }
Exemplo n.º 3
0
 public static List <Customer> ListOfCustomers(int page, int pagaSize, string searchValue, out int rowCount, string countryName)
 {
     if (page < 1)
     {
         page = 1;
     }
     if (pagaSize < 0)
     {
         pagaSize = 20;
     }
     rowCount = CustomerDB.Count(searchValue, countryName);
     return(CustomerDB.List(page, pagaSize, searchValue, countryName));
 }
Exemplo n.º 4
0
 public static List <Customer> ListOfCustomers(int page, int pageSize, string searchValue, String Country, out int rowCount)
 {
     if (page < 1)
     {
         page = 1;
     }
     if (pageSize < 0)
     {
         pageSize = 20;
     }
     if (Country.Equals("0"))
     {
         Country = "";
     }
     rowCount = CustomerDB.Count(searchValue, Country);
     return(CustomerDB.List(page, pageSize, searchValue, Country));
 }
Exemplo n.º 5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="searchValue"></param>
 /// <returns></returns>
 public static int Customer_Count(string searchValue)
 {
     return(CustomerDB.Count(searchValue));
 }
Exemplo n.º 6
0
 public static int Customers_Count(string searchValue, string country)
 {
     return(CustomerDB.Count(searchValue, country));
 }