private void SetStaticReportCustomName(IReportNode rn) { if (this._hashData.ContainsKey(ReportCenterDataService.KeyCustomStaticReportNames)) { Hashtable staticReportNames = this._hashData[ReportCenterDataService.KeyCustomStaticReportNames]; if (staticReportNames.ContainsKey(rn.ID)) { IReportCenterNode ircn = staticReportNames[rn.ID] as IReportCenterNode; if (!string.IsNullOrEmpty(ircn.Text)) { rn.Text = ircn.Text; } } } }
/// <summary> /// 图标键值规则:假设源键值为DynamicReport, /// 当其为新产生的节点,则键值为DynamicReportNew; /// 当其为自定义节点,则键值为DynamicReportLink; /// 以上都不满足时,则键值为DynamicReport /// </summary> public static string GetImageKay(string key, IReportCenterNode ircn) { if (ircn.IsLink) { if (ircn.IsMissing) { return(key + ReportNode.KeyImageAffixMissing); } return(key + ReportNode.KeyImageAffixLink); } if (ircn.IsNew) { return(key + ReportNode.KeyImageAffixNew); } return(key); }
/// <summary> /// 目标对象是否存在 /// </summary> public bool IsItemExists(IReportCenterNode ircn) { ReportDataFacade rdf = new ReportDataFacade(this._loginInfo); if (ircn is DynamicReport) { return(rdf.IsDynamicReportExist(ircn.ID)); } if (ircn is StaticReport) { return(rdf.IsStaticReportExist(ircn.ID)); } if (ircn is PublishData) { return(rdf.IsPublishDataExist(ircn.ID)); } return(true); }