Exemple #1
0
        internal bool IsEOF()
        {
            RmReportingMaker builder = this.m_fDataSets.Builder;
            bool             flag    = builder != null;

            if (flag)
            {
                string tmpEof = "N";
                builder.OnDataSetEOF(this.m_fgtrDataSet.Name, ref tmpEof);
                this.Eof = Utils.Str2Bool(tmpEof);
            }
            bool flag2 = this.FgtrDataSet.OutputLines > 0;
            bool result;

            if (flag2)
            {
                result = (this.RecNo > this.FgtrDataSet.OutputLines);
            }
            else
            {
                bool eof = this.Eof;
                if (eof)
                {
                    result = (!this.FgtrDataSet.FillWithBlank || this.FgtrDataSet.ForceNewPage == 0 || (this.RecNo - 1) % this.FgtrDataSet.ForceNewPage == 0);
                }
                else
                {
                    result = this.Eof;
                }
            }
            return(result);
        }
Exemple #2
0
        public static string GenerateReport(string reportXml, RmReportingMaker.GtReportPubGetValue onUnknownFunctionAndVariable)
        {
            RmReportingMaker builder = new RmReportingMaker();

            builder.OnGtReportPubGetValue += onUnknownFunctionAndVariable;
            builder.SetTemplate(reportXml);
            return(builder.Generate());
        }
Exemple #3
0
        internal void Next()
        {
            RmReportingMaker builder = this.m_fDataSets.Builder;
            bool             flag    = builder != null;

            if (flag)
            {
                builder.OnDataSetNext(this.m_fgtrDataSet.Name, "");
            }
            this.m_recNo++;
        }
Exemple #4
0
        internal void First()
        {
            this.m_recNo = 1;
            this.m_eof   = false;
            RmReportingMaker builder = this.m_fDataSets.Builder;
            bool             flag    = builder != null;

            if (flag)
            {
                builder.OnDataSetFirst(this.m_fgtrDataSet.Name, "");
            }
        }
Exemple #5
0
        internal object Read(string fieldName)
        {
            string result    = string.Empty;
            string valueType = "";
            bool   flag      = fieldName == "RECNO";

            if (flag)
            {
                valueType = "N";
                result    = this.RecNo.ToString();
            }
            else
            {
                bool flag2 = this.Eof || (this.FgtrDataSet.OutputLines > 0 && this.RecNo > this.FgtrDataSet.OutputLines);
                if (flag2)
                {
                    result    = "";
                    valueType = "S";
                }
                else
                {
                    RmReportingMaker builder = this.m_fDataSets.Builder;
                    bool             flag3   = builder != null;
                    if (flag3)
                    {
                        builder.OnDataSetRead(this.m_fgtrDataSet.Name, fieldName, ref valueType, ref result);
                    }
                }
            }
            bool   flag4 = valueType == "N";
            object ret;

            if (flag4)
            {
                ret = Utils.Str2Double(result, 0.0);
            }
            else
            {
                ret = result;
            }
            return(ret);
        }
Exemple #6
0
 internal RmDataSets(RmReportingMaker builder) : base(builder)
 {
     this.m_items = new Dictionary <string, RmDataSet>();
 }
Exemple #7
0
 public RmImages(RmReportingMaker builder) : base(builder)
 {
     this.m_items = new Dictionary <string, RmImage>();
 }
Exemple #8
0
 public static string GenerateTemplete(string rawXml)
 {
     return(RmReportingMaker.GetDefaultTemplate(rawXml));
 }
Exemple #9
0
 public RmGroups(RmReportingMaker builder) : base(builder)
 {
     this.m_items = new Dictionary <int, RmGroup>();
 }
Exemple #10
0
 public RmSetNode(RmReportingMaker builder)
 {
     this.Builder = builder;
 }