コード例 #1
0
        public PropertyCollection BuildDynamicNavigationTemplates(deliveryInstance context, PropertyCollection data = null)
        {
            if (data == null)
            {
                data = new PropertyCollection();
            }

            string reldir  = context.directoryScope.FullName.removeStartsWith(context.directoryRoot.FullName);
            string selPath = reldir; // context.scope.path;

            IMetaContentNested mc = context.scope as IMetaContentNested;

            if (mc != null)
            {
                selPath = mc.path;
            }

            reportLinkCollection directory = context.linkRegistry.getLinkOneCollection(selPath, data.getProperString(templateFieldBasic.path_folder, templateFieldBasic.document_path, templateFieldBasic.documentset_path));

            string str_localdirectory = "";

            if (directory != null)
            {
                str_localdirectory = directory.makeHtmlInsert();
            }
            data.add(reportOutputDomainEnum.localdirectory, str_localdirectory);

            return(data);
        }
コード例 #2
0
        public PropertyCollection BuildNavigationTemplates(deliveryInstance context, PropertyCollection data = null)
        {
            if (data == null)
            {
                data = new PropertyCollection();
            }
            reportLinkCollection logs = context.linkRegistry[reportOutputDomainEnum.logs.ToString()];

            if (logs.Any())
            {
                string str_logs = data.getProperString("", reportOutputDomainEnum.logs);

                if (imbSciStringExtensions.isNullOrEmpty(str_logs))
                {
                    str_logs = logs.makeHtmlInsert();
                    data.add(reportOutputDomainEnum.logs, str_logs);
                }
            }
            return(data);
        }