protected internal override Report _Clone(string Name, string Description)
        {
            FI.Common.DataAccess.ICustomSqlReportsDA dacObj = DataAccessFactory.Instance.GetCustomSqlReportsDA();

            decimal newId = dacObj.InsertReport(_owner.ID, 0, 0, Name, Description, false, this.Sql, this.Xsl);

            return(_owner.ReportSystem.GetReport(newId, typeof(CustomSqlReport), false));
        }
        internal CustomSqlReport(decimal ID, User Owner) : base(ID, Owner)
        {
            if (ID == 0)          //if new
            {
                _xsl = DefaultXsl();

                FI.Common.DataAccess.ICustomSqlReportsDA dacObj = DataAccessFactory.Instance.GetCustomSqlReportsDA();
                _id = dacObj.InsertReport(_owner.ID, 0, 0, "New Report", "", this.IsSelected, this.Sql, this.Xsl);

                _isProxy = false;
                _isDirty = false;
            }
        }