Ejemplo n.º 1
0
        }         // constructor

        private void Init(SafeReader row)
        {
            ReportType type;

            TypeName = row["Type"];

            if (!Enum.TryParse <ReportType>(TypeName, out type))
            {
                type = ReportType.RPT_GENERIC;
            }

            Type            = type;
            Title           = row["Title"];
            StoredProcedure = row["StoredProcedure"];
            IsDaily         = row["IsDaily"];
            IsWeekly        = row["IsWeekly"];
            IsMonthly       = row["IsMonthly"];
            Columns         = Report.ParseHeaderAndFields(row["Header"], row["Fields"]);
            ToEmail         = ((string)row["ToEmail"] ?? string.Empty).Trim();
            IsMonthToDate   = row["IsMonthToDate"];
        }         // Init