コード例 #1
0
ファイル: Home.cs プロジェクト: DUKE797/SJ.DesktopModules.HB
        public static string __CreateChart(int __nChartType, int __nChartType2, string __strFullFileName, string __strHeight, string __strXLabel, int __nShowValueCurve, bool __bSingle, int __nPos)
        {
            string           str;
            StringBuilder    builder;
            ChartSettingItem item;
            string           str2;
            bool             flag;

            str     = Util.ReadFile(__strFullFileName, Encoding.UTF8).Replace("\r\n", "").Replace("\n", "").Replace("\r", "");
            builder = new StringBuilder();
            builder.Append(string.Format("<table id='tblChart{0}' cellpadding='0' cellspacing='0' width='100%'><tr><td width='100%' class='content'>", (int)__nPos));
            builder.Append("");
            builder.Append("</td></tr>");
            builder.Append("<tr><td>");
            item                = new ChartSettingItem();
            item.Width          = "100%";
            item.Height         = __strHeight;
            item.XLabel         = __strXLabel;
            item.ShowValueCurve = __nShowValueCurve;
            if (((__nChartType == 2) == 0) != null)
            {
                goto Label_00BD;
            }
            item.Title = __strXLabel;
Label_00BD:
            item.ChartType  = __nChartType;
            item.ChartType2 = __nChartType2;
            if ((__bSingle == 0) != null)
            {
                goto Label_00E6;
            }
            builder.Append(ChartUtil.ToHtmlOne(item, str));
            goto Label_00F4;
Label_00E6:
            builder.Append(ChartUtil.ToHtmlTwo(item, str));
Label_00F4:
            builder.Append("</td></tr></table>");
            str2 = builder.ToString();
Label_0109:
            return(str2);
        }