Exemplo n.º 1
0
        /// <summary>
        /// Esegue l'espansione del nodo
        /// </summary>
        /// <param name="indice"></param>
        private void executeExpand(string indice)
        {
            DocsPaWR.OrgUO currentUO;

            myTreeNode TreeNodo = (myTreeNode)treeViewUO.GetNodeFromIndex(indice);

            TreeNodo.Expanded = true;
//			this.treeViewUO.SelectedNodeIndex = indice;

            if (TreeNodo.Nodes.Count > 0)
            {
                TreeNodo.Nodes.Clear();
            }

            switch (TreeNodo.getTipoNodo())
            {
            case "U":

                currentUO = new DocsPAWA.DocsPaWR.OrgUO();
                currentUO.IDCorrGlobale     = TreeNodo.ID;
                currentUO.IDAmministrazione = this.hd_idAmm.Value;
                currentUO.Ruoli             = TreeNodo.getRuoliUO();
                currentUO.SottoUo           = TreeNodo.getSottoUO();
                currentUO.Livello           = TreeNodo.getLivello();

                if (this.GetTipoNavigazione() > 1 && Convert.ToInt32(currentUO.Ruoli) > 0)
                {
                    this.RuoliUO(currentUO, indice);
                }

                if (Convert.ToInt32(currentUO.SottoUo) > 0)
                {
                    this.SottoUO(currentUO, indice);
                }

                break;
            }
        }