コード例 #1
0
 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;
             }
         }
     }
 }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
        /// <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);
        }