Ejemplo n.º 1
0
        public void fillDominoServersTreeList()
        {
            try
            {
                if (Session["DominoServers"] == null)
                {
                    DataTable DataServersTree = VSWebBL.ConfiguratorBL.AlertsBL.Ins.GetServersFromProcedure();
                    DataTable filteredData    = DataServersTree.Select("ServerType= 'Domino' or ServerType is null").CopyToDataTable();
                    Session["DominoServers"] = filteredData;
                }

                DominoServerTreeList.DataSource = (DataTable)Session["DominoServers"];
                DominoServerTreeList.DataBind();
                DominoServerTreeList.ExpandAll();
            }
            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());
            }
        }
Ejemplo n.º 2
0
 protected void CollapseAllButton_Domino_Click(object sender, EventArgs e)
 {
     try
     {
         if (CollapseAllButton_Domino.Text == "Collapse All")
         {
             DominoServerTreeList.CollapseAll();
             CollapseAllButton_Domino.Image.Url = "~/images/icons/add.png";
             CollapseAllButton_Domino.Text      = "Expand All";
         }
         else
         {
             DominoServerTreeList.ExpandAll();
             CollapseAllButton_Domino.Image.Url = "~/images/icons/forbidden.png";
             CollapseAllButton_Domino.Text      = "Collapse All";
         }
     }
     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());
     }
 }