Ejemplo n.º 1
0
        private void BindWindow()
        {
            pnl_Window.Visible = true;

            //gv2
            cloud.w_tbAppTrace(ServerNum, dtmTimeIn_UTC);
            DataTable dt_AppTrace = cloud.dsReturn.Tables[0];

            gv_Window_Class.DataSource = dt_AppTrace;
            gv_Window_Class.DataBind();

            //label 이름
            cloud.w_ChartSubject(CompanyNum, MemberNum, strReasonCode);
            DataTable dt_ChartSubject = cloud.dsReturn.Tables[0];

            if (dt_ChartSubject != null)
            {
                if (dt_ChartSubject.Rows.Count > 0)
                {
                    lbl_Window.Text     = dt_ChartSubject.Rows[0][0].ToString();
                    lbl_Window_Sub.Text = dt_ChartSubject.Rows[0][0].ToString();
                }
            }
            //gv1
            cloud.w_AlertDetail_Table(CompanyNum, MemberNum, ServerNum, strInstanceName, strReasonCode);
            DataTable dt_Descript = cloud.dsReturn.Tables[0];

            gv_List_Window.DataSource = dt_Descript;
            gv_List_Window.DataBind();

            //chart
            cloud.w_AlertDetail_Chart(CompanyNum, MemberNum, ServerNum, strInstanceName, strReasonCode);
            DataTable dt_ChartValue = cloud.dsReturn.Tables[0];

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

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