Exemple #1
0
        private void BindData()
        {
            DataTable dt = new DataTable();

            cloud.w_CPUUsage_Detail(ServerNum);
            dt = cloud.dsReturn.Tables[0];
            gv_List.DataSource = Func_dtValueSet(dt);
            gv_List.DataBind();

            cloud.w_CPUUsage(ServerNum, Convert.ToInt32(ConfigurationManager.AppSettings["ChartDataDuration"]));
            dt = cloud.dsReturn.Tables[0];

            //챠트바인드
            List <Lib.chartProperty> cplst = new List <Lib.chartProperty>();
            StringBuilder            sb    = new StringBuilder();

            cplst = SetChartProperty();
            cplst = Lib.Flotr2.SetArrayString_Lines(dt, cplst);
            sb    = Lib.Flotr2.SetStringValue(cplst, sb, ServerNum.ToString());
            litScript_Pop.Text += Lib.Util.BoxingScript(sb.ToString());
        }