Ejemplo n.º 1
0
        private void FixupSmartReport(SmartReportDto previousValue)
        {
            if (previousValue != null && previousValue.SharedReports.Contains(this))
            {
                previousValue.SharedReports.Remove(this);
            }

            if (SmartReport != null)
            {
                if (!SmartReport.SharedReports.Contains(this))
                {
                    SmartReport.SharedReports.Add(this);
                }
                if (SmartReportId != SmartReport.idSmartReport)
                {
                    SmartReportId = SmartReport.idSmartReport;
                }
            }
        }
Ejemplo n.º 2
0
        private void FixupSmartReport(SmartReportDto previousValue)
        {
            if (previousValue != null && previousValue.SmartCharts.Contains(this))
            {
                previousValue.SmartCharts.Remove(this);
            }

            if (SmartReport != null)
            {
                if (!SmartReport.SmartCharts.Contains(this))
                {
                    SmartReport.SmartCharts.Add(this);
                }
                if (idSmartReport != SmartReport.idSmartReport)
                {
                    idSmartReport = SmartReport.idSmartReport;
                }
            }
            else if (!_settingFK)
            {
                idSmartReport = null;
            }
        }