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(); } }
private void AddServerInstance() { DB.Cloud cloud = new DB.Cloud(); int nResult = cloud.m_tbPInstance_Server_Add(ServerNum, strPCID, strInstanceName, bolIfContains); if (nResult == 1) { Response.Write(callback + "({\"error\":1, \"desc\":\"추가 완료\"})"); } else { Response.Write(callback + "({\"error\":2, \"desc\":\"추가 실패\"})"); } }