コード例 #1
0
        private static IChart ChartHasDataTable()
        {
            var chart = (GanttChart)ChartWithScrolling();

            chart.Caption = "Chart with DataTable";
            chart.DataTable.HeaderAttr.VAlign = FusionVerticalAlign.Bottom;

            var dataColumn = new DataColumnElement
            {
                HeaderText = "Worker"
            };

            dataColumn.HeaderAttr.FontAttr.Font      = "맑은 고딕";
            dataColumn.HeaderAttr.FontAttr.FontColor = Color.DarkSlateGray;
            dataColumn.HeaderAttr.FontAttr.FontSize  = 18.ToString();
            dataColumn.HeaderAttr.VAlign             = FusionVerticalAlign.Bottom;
            dataColumn.HeaderAttr.Align           = FusionTextAlign.Right;
            dataColumn.ItemAttr.Align             = FusionTextAlign.Left;
            dataColumn.ItemAttr.FontAttr.FontSize = 12.ToString();

            foreach (var worker in RoleNames)
            {
                var text = new DataColumnTextElement {
                    Label = worker
                };
                text.ItemAttr.FontAttr.Font     = "맑은 고딕";
                text.ItemAttr.FontAttr.FontSize = "12";
                text.ItemAttr.Align             = FusionTextAlign.Center;
                // mailto 는 javascript로 처리할 수 없다...
                // text.Link.Javascript = "mailto:[email protected]";
                // dataColumn.TextElements.Add(text);
                dataColumn.Add(text);
            }

            // chart.DataTable.DataColumnElements.Add(dataColumn);
            chart.DataTable.Add(dataColumn);

            return(chart);
        }
コード例 #2
0
        private static IChart ChartHasDataTable() {
            var chart = (GanttChart)ChartWithScrolling();

            chart.Caption = "Chart with DataTable";
            chart.DataTable.HeaderAttr.VAlign = FusionVerticalAlign.Bottom;

            var dataColumn = new DataColumnElement
                             {
                                 HeaderText = "Worker"
                             };
            dataColumn.HeaderAttr.FontAttr.Font = "맑은 고딕";
            dataColumn.HeaderAttr.FontAttr.FontColor = Color.DarkSlateGray;
            dataColumn.HeaderAttr.FontAttr.FontSize = 18.ToString();
            dataColumn.HeaderAttr.VAlign = FusionVerticalAlign.Bottom;
            dataColumn.HeaderAttr.Align = FusionTextAlign.Right;
            dataColumn.ItemAttr.Align = FusionTextAlign.Left;
            dataColumn.ItemAttr.FontAttr.FontSize = 12.ToString();

            foreach(var worker in RoleNames) {
                var text = new DataColumnTextElement { Label = worker };
                text.ItemAttr.FontAttr.Font = "맑은 고딕";
                text.ItemAttr.FontAttr.FontSize = "12";
                text.ItemAttr.Align = FusionTextAlign.Center;
                // mailto 는 javascript로 처리할 수 없다...
                // text.Link.Javascript = "mailto:[email protected]";
                // dataColumn.TextElements.Add(text);
                dataColumn.Add(text);
            }

            // chart.DataTable.DataColumnElements.Add(dataColumn);
            chart.DataTable.Add(dataColumn);

            return chart;
        }
コード例 #3
0
ファイル: GanttTestFixture.cs プロジェクト: debop/NFramework
        public void ChartHasDataTable() {
            var chart = CreateSampleChart("Chart with DataTable");

            chart.DataTable.HeaderAttr.VAlign = FusionVerticalAlign.Bottom;

            var dataColumn = new DataColumnElement
                             {
                                 HeaderText = "작업자"
                             };
            dataColumn.HeaderAttr.FontAttr.FontSize = 18.ToString();
            dataColumn.HeaderAttr.VAlign = FusionVerticalAlign.Bottom;
            dataColumn.HeaderAttr.Align = FusionTextAlign.Right;
            dataColumn.ItemAttr.Align = FusionTextAlign.Left;
            dataColumn.ItemAttr.FontAttr.FontSize = 12.ToString();

            foreach(var worker in RoleNames) {
                var text = new DataColumnTextElement { Label = worker };
                text.Link.Url = "mailto:[email protected]";
                // dataColumn.TextElements.Add(text);
                dataColumn.Add(text);
            }

            // chart.DataTable.DataColumnElements.Add(dataColumn);
            chart.DataTable.Add(dataColumn);


            ValidateChartXml(chart);
        }