private void setBarTitle() { int RP_Code = int.Parse(Request.QueryString["MF_FL_FB_Code"].ToString()); BL_HighCharts HC = new BL_HighCharts(); DataTable dt = HC.getBarTitle(RP_Code); if (dt != null || dt.Rows.Count != 0) { BarTitle = dt.Rows[0]["FB_TITLE"].ToString(); X1 = dt.Rows[0]["FB_X1_LABEL"].ToString(); Y1 = dt.Rows[0]["FB_Y1_LABEL"].ToString(); Font = dt.Rows[0]["FB_X1_Font"].ToString(); string[] _Param = { "0" }; if (dt.Rows[0]["FB_Parameters"] != null) { dt.Rows[0]["FB_Parameters"].ToString().Split(new string[] { "||" }, StringSplitOptions.None); } if (_Param.Length > 0) { if (_Param[0] == "0") //No Legend { Legend = "enabled: false,"; } else if (_Param[0] == "1") //Top Right Legend { Legend = "layout:'horizontal', align: 'right', verticalAlign: 'top', x: -25, y: -10,"; } else if (_Param[0] == "2") //Left Legend { Legend = "layout: 'vertical', align: 'left', verticalAlign: 'top', x: 0, y: 0,"; } else //default Parameters { Legend = "layout:'horizontal', align: 'right', verticalAlign: 'top', x: -25, y: -10,"; } } if (string.IsNullOrEmpty(dt.Rows[0]["FB_X1_Font"].ToString())) { Font = "8"; } if (string.IsNullOrEmpty(dt.Rows[0]["FB_X1_Format"].ToString())) { Format = "¥"; } else if (dt.Rows[0]["FB_X1_Format"].ToString() == "1") { Format = "$"; } else { Format = ""; } } string _title = HttpUtility.UrlDecode(RequestClass.GetString("Title"), Encoding.UTF8); if (!string.IsNullOrEmpty(_title)) { BarTitle = _title; } }
private void setBarTitle() { int RP_Code = int.Parse(Request.QueryString["MF_FL_FB_Code"].ToString()); BL_HighCharts HC = new BL_HighCharts(); DataTable dt = HC.getBarTitle(RP_Code); if (dt != null || dt.Rows.Count != 0) { BarTitle = dt.Rows[0]["FB_TITLE"].ToString(); X1 = dt.Rows[0]["FB_X1_LABEL"].ToString(); Y1 = dt.Rows[0]["FB_Y1_LABEL"].ToString(); Font = dt.Rows[0]["FB_X1_Font"].ToString(); if (string.IsNullOrEmpty(dt.Rows[0]["FB_X1_Font"].ToString())) { Font = "8"; } if (string.IsNullOrEmpty(dt.Rows[0]["FB_X1_Format"].ToString())) { Format = "¥"; } else if (dt.Rows[0]["FB_X1_Format"].ToString() == "1") { Format = "$"; } else { Format = ""; } } string _title = HttpUtility.UrlDecode(RequestClass.GetString("Title"), Encoding.UTF8); if (!string.IsNullOrEmpty(_title)) { BarTitle = _title; } }