Esempio n. 1
0
        public void fillNodesTreeListbycellID(int id)
        {
            try
            {
                int cellid = Convert.ToInt32(id);

                //DataTable DataEventsTree = VSWebBL.SecurityBL.webspehereImportBL.Ins.GetnodesserversFromProcedure();
                DataTable bycelldata = VSWebBL.SecurityBL.webspehereImportBL.Ins.FetserversbycellID(cellid);
                //DataTable DataServersTree = VSWebBL.ConfiguratorBL.AlertsBL.Ins.GetServersFromProcedure();
                Session["DataEvents"] = bycelldata;
                if (bycelldata.Rows.Count > 0)
                {
                    NodesTreeList.Visible     = true;
                    CollapseAllButton.Visible = true;
                    ImportButton.Visible      = true;
                }
                else
                {
                    NodesTreeList.Visible     = false;
                    CollapseAllButton.Visible = false;
                    ImportButton.Visible      = false;
                }
                NodesTreeList.DataSource = (DataTable)Session["DataEvents"];
                NodesTreeList.DataBind();
                expandButton();
            }
            catch (Exception ex)
            {
                Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex);
            }
        }
        public void fillNodesTreeListbycellID()
        {
            try
            {
                int cellid = Convert.ToInt32(Request.QueryString["CellID"]);
                //string id = Convert.ToString(cellid);
                NodesTreeList.CollapseAll();
                CollapseAllButton.Image.Url = "~/images/icons/add.png";
                CollapseAllButton.Text      = "Expand All";
                if (Session["DataEvents"] == null)
                {
                    //DataTable DataEventsTree = VSWebBL.SecurityBL.webspehereImportBL.Ins.GetnodesserversFromProcedure();
                    DataTable bycelldata = VSWebBL.SecurityBL.webspehereImportBL.Ins.FetserversbycellID(cellid);
                    //DataTable DataServersTree = VSWebBL.ConfiguratorBL.AlertsBL.Ins.GetServersFromProcedure();
                    Session["DataEvents"] = bycelldata;
                }
                NodesTreeList.DataSource = (DataTable)Session["DataEvents"];
                NodesTreeList.DataBind();
            }
            catch (Exception ex)
            {
                //Log.Entry.Ins.Write(Server.MapPath("~/LogFiles/"), "VSPlusLog.txt", DateTime.Now.ToString() + " Error in Page: " +
                //    Request.Url.AbsolutePath + ", Method: " + System.Reflection.MethodBase.GetCurrentMethod().Name +
                //    ", Error: " + ex.ToString());

                //6/27/2014 NS added for VSPLUS-634
                Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex);
            }
        }
 protected void ASPxComboBox2_SelectedIndexChanged(object sender, EventArgs e)
 {
     CellName   = ASPxComboBox2.SelectedItem.Text;
     CellID     = Convert.ToInt32(ASPxComboBox2.SelectedItem.Value);
     bycelldata = VSWebBL.SecurityBL.webspehereImportBL.Ins.FetserversbycellID(CellID);
     Session["NodesServers"]  = bycelldata;
     NodesTreeList.DataSource = (DataTable)Session["NodesServers"];
     NodesTreeList.DataBind();
 }
Esempio n. 4
0
 protected void webspherecellgrid_FocusedRowChanged(object sender, EventArgs e)
 {
     webspherecellgrid.EnableCallBacks = false;
     if (webspherecellgrid.VisibleRowCount > 0)
     {
         NodesTreeList.UnselectAll();
         NodesTreeList.DataSource = "";
         NodesTreeList.DataBind();
         int index = webspherecellgrid.FocusedRowIndex;
         if (index > -1)
         {
             cellvalue = Convert.ToInt32(webspherecellgrid.GetRowValues(index, "CellID").ToString());
             //fillNodesTreeListbycellID(cellvalue);
             fillNodesTreeListbycellID(cellvalue);
         }
     }
     expandButton();
 }
Esempio n. 5
0
        public void fillCelldetailsfromSession()
        {
            DataTable CellDetails = new DataTable();

            try
            {
                if (Session["cell"] != "" && Session["cell"] != null)
                {
                    CellDetails = Session["cell"] as DataTable;
                }
                NodesTreeList.DataSource = CellDetails;
                NodesTreeList.DataBind();
            }
            catch (Exception ex)
            {
                Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex);
            }
        }
Esempio n. 6
0
        public void fillNodesTreeListbycellIDfromsession()
        {
            try
            {
                if (Session["DataEvents"] != null)
                {
                    NodesTreeList.DataSource = (DataTable)Session["DataEvents"];
                    NodesTreeList.DataBind();
                    expandButton();
                }
            }
            catch (Exception ex)
            {
                //Log.Entry.Ins.Write(Server.MapPath("~/LogFiles/"), "VSPlusLog.txt", DateTime.Now.ToString() + " Error in Page: " +
                //    Request.Url.AbsolutePath + ", Method: " + System.Reflection.MethodBase.GetCurrentMethod().Name +
                //    ", Error: " + ex.ToString());

                //6/27/2014 NS added for VSPLUS-634
                Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex);
            }
        }
        public void fillNodesTreefromSession()
        {
            DataTable DataEvents = new DataTable();

            try
            {
                if (Session["NodesServers"] != "" && Session["NodesServers"] != null)
                {
                    DataEvents = Session["NodesServers"] as DataTable;
                }
                NodesTreeList.DataSource = DataEvents;
                NodesTreeList.DataBind();
            }
            catch (Exception ex)
            {
                //Log.Entry.Ins.Write(Server.MapPath("~/LogFiles/"), "VSPlusLog.txt", DateTime.Now.ToString() + " Error in Page: " +
                //    Request.Url.AbsolutePath + ", Method: " + System.Reflection.MethodBase.GetCurrentMethod().Name +
                //    ", Error: " + ex.ToString());

                //6/27/2014 NS added for VSPLUS-634
                Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex);
            }
        }