コード例 #1
0
        protected internal override Report _Clone(string Name, string Description)
        {
            FI.DataAccess.CustomSqlReports 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));
        }
コード例 #2
0
        internal CustomSqlReport(decimal ID, User Owner) : base(ID, Owner)
        {
            if (ID == 0)          //if new
            {
                _xsl = DefaultXsl();

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

                _isProxy = false;
                _isDirty = false;
            }
        }