Пример #1
0
        public PageData <T> QueryXml(string reportName, PagePars param)
        {
            PageData <T> result     = new PageData <T>();
            int          totalCount = 0;

            result.CurrentPage = ComplexSqlHelp.GetReportData <T>(Conn, reportName, param.PageSize, param.PageIndex, param.Order, param.Where, true, out totalCount);
            result.TotalCounts = totalCount;
            return(result);
        }
Пример #2
0
        public IList <T> QueryXml(string reportName, IDictionary <string, object> par)
        {
            int totalCount = 0;

            return(ComplexSqlHelp.GetReportData <T>(Conn, reportName, 0, 0, "", par, false, out totalCount));
        }