Exemplo n.º 1
0
        public DataTable select(int PageCurrent, int PageSize, string FieldOrder, string Where, ref int RecordCount)
        {
            DataTable dt = new DataTable();

            try
            {
                dt = SqlDbOperHandler.QueryPagedDt(this.GetType().Name, "id", PageCurrent, PageSize, "", FieldOrder, Where, ref RecordCount);
            }
            catch (Exception ex)
            { }
            return(dt);
        }
Exemplo n.º 2
0
        public DataTable select(string PageCurrent, string PageSize, string FieldOrder, string Where, ref int RecordCount)
        {
            int pc = 0;
            int ps = 0;

            int.TryParse(PageCurrent, out pc);
            int.TryParse(PageSize, out ps);
            DataTable dt = new DataTable();

            try
            {
                dt = SqlDbOperHandler.QueryPagedDt(this.GetType().Name, "id", pc, ps, "", FieldOrder, Where, ref RecordCount);
            }
            catch (Exception ex)
            { }
            return(dt);
        }