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); }
public static string GenerateReport(string reportXml, RmReportingMaker.GtReportPubGetValue onUnknownFunctionAndVariable) { RmReportingMaker builder = new RmReportingMaker(); builder.OnGtReportPubGetValue += onUnknownFunctionAndVariable; builder.SetTemplate(reportXml); return(builder.Generate()); }
internal void Next() { RmReportingMaker builder = this.m_fDataSets.Builder; bool flag = builder != null; if (flag) { builder.OnDataSetNext(this.m_fgtrDataSet.Name, ""); } this.m_recNo++; }
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, ""); } }
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); }
internal RmDataSets(RmReportingMaker builder) : base(builder) { this.m_items = new Dictionary <string, RmDataSet>(); }
public RmImages(RmReportingMaker builder) : base(builder) { this.m_items = new Dictionary <string, RmImage>(); }
public static string GenerateTemplete(string rawXml) { return(RmReportingMaker.GetDefaultTemplate(rawXml)); }
public RmGroups(RmReportingMaker builder) : base(builder) { this.m_items = new Dictionary <int, RmGroup>(); }
public RmSetNode(RmReportingMaker builder) { this.Builder = builder; }