コード例 #1
0
        public ReportMaster(string reportName, string outputName, string conn, string emailHost)
        {
            ReportFileName = reportName;

            if (outputName.StartsWith("mailto:"))
            {
                OutputFileName = tempfile_base + @"attach.txt";
                OutputMode     = OutputTypeMode.send_to_email;
                email_address  = outputName.Substring(7).Trim();
            }
            else
            {
                OutputFileName = outputName;
                OutputMode     = OutputTypeMode.save_to_file;
            }

            ConnString         = conn;
            FormatData         = null;
            FieldNames         = null;
            NameValueMap       = null;
            SqlCommand         = null;
            FormatLinkedValues = null;
            RecordCount        = 0;
            DetailIndex        = -1;
            OperatingMode      = OutputStyle.fixed_width;
            ParseMode          = ParsingMode.normal;
            DBMode             = DatabaseMode.odbc;
            HeaderRecord       = false;

            paramInput = new ParamInput();

            out_lines = new List <string>();

            this.emailHost = emailHost;
        }
コード例 #2
0
        public ExpressionNode(string unp, bool conditional, ParamInput pm)
        {
            this.pm = pm;

            if (conditional)
            {
                BuildConditional(unp);
            }
            else
            {
                BuildNormalNode(unp);
            }
        }
コード例 #3
0
        public ReportMaster(string reportName, string outputName, string conn, StreamReader s, StreamWriter w)
        {
            Reader             = s;
            ReportFileName     = reportName;
            OutputFileName     = outputName;
            ConnString         = conn;
            FormatData         = null;
            FieldNames         = null;
            NameValueMap       = null;
            SqlCommand         = null;
            FormatLinkedValues = null;
            RecordCount        = 0;
            DetailIndex        = -1;
            OperatingMode      = OutputStyle.fixed_width;
            ParseMode          = ParsingMode.normal;
            DBMode             = DatabaseMode.odbc;
            HeaderRecord       = false;

            out_lines = new List <string>();

            paramInput = new ParamInput();

            Writer = w;
        }
コード例 #4
0
        public ExpressionNode(string unp, ParamInput pm)
        {
            this.pm = pm;

            BuildNormalNode(unp);
        }