Exemplo n.º 1
0
        public static string GetBCHierarchyName(BusinessComponentReport bcReport, string split = " / ")
        {
            string hierarchyName = bcReport.Name;

            GeneralReportNode parentReport = bcReport.Owner as GeneralReportNode;

            while (parentReport != null)
            {
                string name = parentReport.Name;

                // if it is iteration, prepend "Iteration" term
                IterationReport iterationReport = parentReport as IterationReport;
                if (iterationReport != null)
                {
                    name = Properties.Resources.PropName_Iteration + iterationReport.Name;
                }

                // if it is branch, use the case name since the branch case node name is empty
                BranchReport branchReport = parentReport as BranchReport;
                if (branchReport != null)
                {
                    name = Properties.Resources.PropName_Prefix_BPTBranchCase + branchReport.CaseName;
                }

                // concat hierarchy name
                hierarchyName = name + split + hierarchyName;

                parentReport = parentReport.Owner as GeneralReportNode;
            }

            return(hierarchyName);
        }
Exemplo n.º 2
0
        private void branchwiseTreeReportToolStripMenuItem_Click(object sender, EventArgs e)
        {
            BranchReport branchReport = new BranchReport();

            branchReport.Show();
        }