Exemplo n.º 1
0
        private void BindData()
        {
            DB.Cloud cloud   = new DB.Cloud();
            int      nReturn = cloud.m_tbServers_List(CompanyNum);

            gv_List.DataSource = cloud.dsReturn.Tables[0];
            gv_List.DataBind();

            if (!string.IsNullOrEmpty(txt_InstanceName.Text))
            {
                nReturn = cloud.m_tbPInstance_Server_Add(Util.TConverter <int>(hdn_ServerNum.Value), "P006", txt_InstanceName.Text, true);
                nReturn = cloud.m_tbPInstance_Server_Add(Util.TConverter <int>(hdn_ServerNum.Value), "P014", txt_InstanceName.Text, true);
                nReturn = cloud.m_tbPInstance_Server_Add(Util.TConverter <int>(hdn_ServerNum.Value), "P013", txt_InstanceName.Text, true);
                txt_InstanceName.Text = "";
            }
            if (numServer != 0)
            {
                pnl_Proess.Visible   = true;
                pnl_Instance.Visible = true;
                nReturn = cloud.m_tbPCID_Server_PCounterName_List(numServer, "process");
                gv_List_Process.DataSource = cloud.dsReturn.Tables[0];
                gv_List_Process.DataBind();
                DataTable dt = new DataTable();
                foreach (DataRow dr in cloud.dsReturn.Tables[0].Rows)
                {
                    nReturn = cloud.m_tbPInstance_Server_PInstance_List(numServer, dr["PCID"].ToString());
                    DataTable dt_tmp = cloud.dsReturn.Tables[0];
                    dt.Merge(dt_tmp);
                }
                gv_List_Instance.DataSource = dt;
                gv_List_Instance.DataBind();
            }
        }
Exemplo n.º 2
0
        private void BindData()
        {
            DB.Cloud cloud   = new DB.Cloud();
            int      nReturn = cloud.m_tbServers_List(CompanyNum);

            gv_List.DataSource = cloud.dsReturn.Tables[0];
            gv_List.DataBind();
        }
Exemplo n.º 3
0
 private void BindData()
 {
     if (numServer == 0)
     {
         nReturn = cloud.m_tbServers_List(CompanyNum);
         dt      = cloud.dsReturn.Tables[0];
         SortedList <int, string> list = new SortedList <int, string>();
         list.Add(0, "=Server=");
         foreach (DataRow dr in dt.Rows)
         {
             list.Add(Convert.ToInt32(dr["ServerNum"]), dr["DisplayName"].ToString());
         }
         ddl_Server.DataSource     = list;
         ddl_Server.DataValueField = "Key";
         ddl_Server.DataTextField  = "Value";
         ddl_Server.DataBind();
     }
 }
        private void BindData()
        {
            DB.Cloud cloud   = new DB.Cloud();
            int      nReturn = cloud.m_tbServers_List(CompanyNum);

            gv_List.DataSource = cloud.dsReturn.Tables[0];
            gv_List.DataBind();

            if (numServer != 0)
            {
                pnl_View.Visible            = true;
                nReturn                     = cloud.m_tbServers_Member_List(CompanyNum, numServer);
                gv_List_Selected.DataSource = cloud.dsReturn.Tables[0];
                gv_List_Selected.DataBind();
                nReturn = cloud.m_tbServers_Member_List_NotExist(CompanyNum, numServer);
                gv_List_UnSelected.DataSource = cloud.dsReturn.Tables[0];
                gv_List_UnSelected.DataBind();
            }
        }
Exemplo n.º 5
0
        private void BindData()
        {
            DB.Cloud cloud   = new DB.Cloud();
            int      nReturn = cloud.m_tbServers_List(CompanyNum);

            dt_ServerList = cloud.dsReturn.Tables[0];

            nReturn        = cloud.m_tbAlertOptions_List(CompanyNum);
            dt_AlertOption = cloud.dsReturn.Tables[0];

            ods_List.TypeName     = cloud.GetType().AssemblyQualifiedName;
            ods_List.SelectMethod = "m_tbAlertRules_Server_List_AlertLevel_ods";
            ods_List.SelectParameters.Clear();
            ods_List.SelectParameters.Add("numServer", numServer.ToString());
            gv_List.DataSourceID = "ods_List";

            //nReturn = cloud.m_tbAlertRules_Server_List_AlertLevel(numServer);
            //gv_List.DataSource = cloud.dsReturn.Tables[0];
            //gv_List.DataBind();
        }