示例#1
0
        //根据查询SQL,产生提供给报表生成需要的 XML 数据,字段值为空也产生数据
        public static void FullGenNodeXmlData(HttpResponse Response, string QuerySQL, bool ToCompress)
        {
            MyDbCommand    ReportDataCommand = new MyDbCommand(QuerySQL, ReportConn);
            MyDbDataReader ReportDataReader  = ReportDataCommand.ExecuteReader();
            string         Text = XMLReportData.FromDataReader(ReportDataReader);

            GridReportDataResponse.Response(Response, Text, ToCompress ? ResponseDataType.ZipBinary : ResponseDataType.PlainText);
        }
示例#2
0
        public static void GenMultiRecordset(HttpResponse Response, ArrayList QueryList)
        {
            string Text = TextFromMultiSQL(QueryList);

            GridReportDataResponse.Response(Response, Text, GridReportDataResponse.DefaultDataType);
        }
示例#3
0
        public static void GenOneRecordset(HttpResponse Response, string QuerySQL)
        {
            string Text = TextFromOneSQL(QuerySQL);

            GridReportDataResponse.Response(Response, Text, GridReportDataResponse.DefaultDataType);
        }