Esempio n. 1
0
 public GridPager <AppInstanceToken> GetPager(GridPagerPamater <AppInstanceTokenSearchPamater> searchParam)
 {
     var r = AppInstanceTokenDal.GetGridPager(searchParam); return(r);
 }
Esempio n. 2
0
 public GridPager <CodeTemplate> GetPager(GridPagerPamater <CodeTemplateSearchPamater> searchParam)
 {
     var r = CodeTemplateDal.GetGridPager(searchParam); return(r);
 }
Esempio n. 3
0
                                           internal static GridPager <AppInstanceToken> GetGridPager(GridPagerPamater <AppInstanceTokenSearchPamater> pamater)
                                           {
                                               string sql = "select SQL_CALC_FOUND_ROWS * from AppInstanceToken " + pamater.SearchPamater.CreateWhereSql() + " limit @Start,*@PageSize;select FOUND_ROWS();";

                                               pamater.SearchPamater.Start    = (pamater.Current - 1) * pamater.PageSize;
                                               pamater.SearchPamater.PageSize = pamater.PageSize;
                                               return(GetGridPager <AppInstanceToken>(con, sql, pamater.PageSize, pamater.Current, pamater.SearchPamater));
                                           }