protected internal override Report _Clone(string Name, string Description) { FI.Common.DataAccess.ICustomMdxReportsDA dacObj = DataAccessFactory.Instance.GetCustomMdxReportsDA(); decimal newId = dacObj.InsertReport(_owner.ID, 0, 0, Name, Description, false, this.Mdx, this.Xsl); return(_owner.ReportSystem.GetReport(newId, typeof(CustomMdxReport), false)); }
internal CustomMdxReport(decimal ID, User Owner) : base(ID, Owner) { if (ID == 0) //if new { _xsl = DefaultXsl(); FI.Common.DataAccess.ICustomMdxReportsDA dacObj = DataAccessFactory.Instance.GetCustomMdxReportsDA(); _id = dacObj.InsertReport(_owner.ID, 0, 0, "New Report", "", this.IsSelected, this.Mdx, this.Xsl); _isProxy = false; _isDirty = false; } }