override protected internal Report _Clone(string Name, string Description) { FI.DataAccess.OlapReports dacObj = DataAccessFactory.Instance.GetOlapReportsDA(); string ReportXml = this.SaveToXml(); string OpenNodesXml = this.SaveOpenNodesToXml(); decimal newId = dacObj.InsertReport(_owner.ID, 0, 0, Name, Description, false, (byte)this.GraphType, (int)this.GraphOptions, ReportXml, OpenNodesXml); return(_owner.ReportSystem.GetReport(newId, typeof(OlapReport), false)); }
internal OlapReport(decimal ID, User Owner) : base(ID, Owner) { _schema = new Schema(); _axes = new Olap.Axes(this.Schema); this.Axes.BeforeChangeItem += new EventHandler(OnBeforeChangeAxesItem); if (ID == 0) //if new { FI.DataAccess.OlapReports dacObj = DataAccessFactory.Instance.GetOlapReportsDA(); string ReportXml = "<R></R>"; string OpenNodesXml = "<NODES></NODES>"; _id = dacObj.InsertReport(_owner.ID, 0, 0, "New Report", "", this.IsSelected, (byte)this.GraphType, (int)this.GraphOptions, ReportXml, OpenNodesXml); _isProxy = false; _isDirty = false; } }