private string GetTotalSql()
        {
            var result = XmlConfig.Element("TotalSql") == null ? "" : XmlConfig.Element("TotalSql").Value;

            if (string.IsNullOrEmpty(result))
            {
                throw new Exception(string.Format("请为报表{0}配置TotalSql", ReportName));
            }

            return(result);
        }
        private string GetOrderSql(string order)
        {
            if (!string.IsNullOrEmpty(order))
            {
                return("ORDER BY " + order);
            }
            var result = XmlConfig.Element("OrderSql") == null ? "" : XmlConfig.Element("OrderSql").Value;

            if (!string.IsNullOrEmpty(result))
            {
                return(result);
            }

            return("ORDER BY Id DESC");
        }
        private string GetFootSql()
        {
            var result = XmlConfig.Element("FootSql") == null ? "" : XmlConfig.Element("FootSql").Value;

            return(result);
        }