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;
                }
            }
        }
示例#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;
            }
        }