示例#1
0
        protected String GetCorrTipo(DocsPaWR.ElementoRubrica elem)
        {
            string result     = string.Empty;
            string codRegTemp = elem.codiceRegistro;

            if (elem.isRubricaComune == true)
            {
                codRegTemp = "RC";
            }
            else
            {
                if (codRegTemp == null || string.IsNullOrEmpty(codRegTemp))
                {
                    if (elem.interno == true)
                    {
                        codRegTemp = string.Empty;
                    }
                    else
                    {
                        codRegTemp = "TUTTI";
                    }
                }
                else
                {
                    codRegTemp = elem.codiceRegistro;
                }
            }

            return(codRegTemp);
        }
示例#2
0
        protected void txt_codRuoloDest_TextChanged(object sender, EventArgs e)
        {
            DocsPaWR.ElementoRubrica corrSearch = getElementoRubrica();

            if (corrSearch != null)
            {
                if (!string.IsNullOrEmpty(codRuoloOrigine) && !codRuoloOrigine.ToUpper().Equals(txt_codRuoloDest.Text.Trim().ToUpper()))
                {
                    txt_codRuoloDest.Text  = corrSearch.codice;
                    txt_descRuoloDest.Text = corrSearch.descrizione;
                }
                else
                {
                    txt_codRuoloDest.Text  = string.Empty;
                    txt_descRuoloDest.Text = string.Empty;
                    ClientScript.RegisterStartupScript(this.GetType(), "emptySearch_1", "alert('Il ruolo di origine e quello di destinazione coincidono !');", true);
                }
            }
            else
            {
                txt_codRuoloDest.Text  = string.Empty;
                txt_descRuoloDest.Text = string.Empty;
                ClientScript.RegisterStartupScript(this.GetType(), "emptySearch_2", "alert('Nessun ruolo trovato con il codice inserito !');", true);
            }
        }
示例#3
0
        private DocsPaWR.ElementoRubrica getElementoRubrica()
        {
            DocsPaWR.ElementoRubrica elRubrica = null;

            if (!String.IsNullOrEmpty(this.txt_codRuoloDest.Text.Trim()))
            {
                DocsPaWR.ParametriRicercaRubrica qco = new DocsPaWR.ParametriRicercaRubrica();
                UserManager.setQueryRubricaCaller(ref qco);
                qco.codice            = txt_codRuoloDest.Text.Trim();
                qco.tipoIE            = DocsPAWA.DocsPaWR.AddressbookTipoUtente.INTERNO;
                qco.calltype          = DocsPaWR.RubricaCallType.CALLTYPE_TUTTI_RUOLI;
                qco.doListe           = false;
                qco.doRuoli           = true;
                qco.doUo              = false;
                qco.doUo              = false;
                qco.queryCodiceEsatta = true;

                DocsPaWR.ElementoRubrica[] corrSearch = UserManager.getElementiRubrica(this.Page, qco);

                if (corrSearch != null && corrSearch.Length == 1 && corrSearch[0].tipo.ToUpper().Equals("R"))
                {
                    elRubrica = corrSearch[0];
                }
            }

            return(elRubrica);
        }
示例#4
0
        private DocsPaWR.CopyVisibility getCopyVisibility()
        {
            DocsPaWR.CopyVisibility copyVisibility = new DocsPaWR.CopyVisibility();

            //Ruolo Origine
            copyVisibility.codRuoloOrigine        = this.Request.QueryString["codRuolo"].ToString();
            copyVisibility.descRuoloOrigine       = this.Request.QueryString["descRuolo"].ToString();
            copyVisibility.idGruppoRuoloOrigine   = this.Request.QueryString["idGruppo"].ToString();
            copyVisibility.idCorrGlobRuoloOrigine = this.Request.QueryString["idCorrGlobRuolo"].ToString();

            //Ruolo Destinazione
            DocsPaWR.ElementoRubrica corrSearch = getElementoRubrica();
            if (corrSearch != null)
            {
                DocsPaWR.Corrispondente corrDest = UserManager.getCorrispondenteBySystemID(this, corrSearch.systemId);
                copyVisibility.codRuoloDestinazione        = corrDest.codiceRubrica;
                copyVisibility.descRuoloDestinazione       = corrDest.descrizione;
                copyVisibility.idGruppoRuoloDestinazione   = ((DocsPaWR.Ruolo)corrDest).idGruppo;
                copyVisibility.idCorrGlobRuoloDestinazione = corrDest.systemId;
            }

            //Criteri di copia
            copyVisibility.idAmm                     = this.Request.QueryString["idAmm"].ToString();
            copyVisibility.docProtocollati           = cbx_docProtocollati.Checked;
            copyVisibility.docNonProtocollati        = cbx_docNonProtocollati.Checked;
            copyVisibility.fascicoliProcedimentali   = cbx_fascicoliProcedimentali.Checked;
            copyVisibility.visibilitaAttiva          = cbx_visibilitaAttiva.Checked;
            copyVisibility.precedenteCopiaVisibilita = cbx_precCopiaVisibilita.Checked;
            copyVisibility.estendiVisibilita         = rbl_estendiVisibilita.SelectedValue;

            return(copyVisibility);
        }
示例#5
0
        private void Page_Load(object sender, System.EventArgs e)
        {
            QuickSearch();

            // Put user code to initialize the page here
            codice       = (string)this.Context.Request.Params["cod"];
            srcContainer = (Rubrica.SearchContainer)Session["DocsPAWA.SitoAccessibile.Rubrica.Rubrica.SearchContainer"];
            er           = srcContainer.Get(codice);
        }
示例#6
0
 protected String GetCorrID(DocsPaWR.ElementoRubrica elem)
 {
     if (!string.IsNullOrEmpty(elem.systemId))
     {
         return(elem.systemId);
     }
     else
     {
         return(elem.codice);
     }
 }
示例#7
0
 protected string GetStoricizzato(DocsPaWR.ElementoRubrica elem)
 {
     DocsPaWR.Corrispondente corr = UIManager.AddressBookManager.GetCorrespondentBySystemId(elem.systemId);
     if (corr != null && (!string.IsNullOrEmpty(corr.dta_fine)))
     {
         return("SI");
     }
     else
     {
         return("NO");
     }
 }
示例#8
0
 protected string GetStoricizzato(DocsPaWR.ElementoRubrica elem)
 {
     DocsPaWR.Corrispondente corr = UserManager.getCorrispondenteBySystemID(this.Page, elem.systemId);
     if (corr != null && (!string.IsNullOrEmpty(corr.dta_fine)))
     {
         return("SI");
     }
     else
     {
         return("NO");
     }
 }
示例#9
0
        private void addCorrSelDaRubrica(DocsPAWA.DocsPaWR.ElementoRubrica[] selCorrDaRubrica)
        {
            for (int i = 0; i < selCorrDaRubrica.Length; i++)
            {
                DocsPaWR.ElementoRubrica el = (DocsPAWA.DocsPaWR.ElementoRubrica)selCorrDaRubrica[i];
                //DocsPaWR.Corrispondente corr	= UserManager.getCorrispondenteByCodRubricaIE(this,el.codice,el.interno ? DocsPAWA.DocsPaWR.AddressbookTipoUtente.INTERNO : DocsPAWA.DocsPaWR.AddressbookTipoUtente.ESTERNO);
                //DocsPaWR.Corrispondente corr = UserManager.getCorrispondenteRubrica(this, el.codice, DocsPAWA.DocsPaWR.RubricaCallType.CALLTYPE_LISTE_DISTRIBUZIONE);
                DocsPaWR.Corrispondente corr = UserManager.getCorrispondenteBySystemIDDisabled(this.Page, el.systemId);

                if (corr != null && !verificaDuplicazioneCorr(corr))
                {
                    if (ViewState["dsCorr"] == null)
                    {
                        DataTable dt = new DataTable();
                        dt.Columns.Add("ID_DPA_CORR");
                        dt.Columns.Add("VAR_DESC_CORR");
                        dt.Columns.Add("VAR_COD_RUBRICA");
                        dt.Columns.Add("CHA_TIPO_IE");
                        dt.Columns.Add("CHA_DISABLED_TRASM");
                        dsCorrispondenti = new DataSet();
                        dsCorrispondenti.Tables.Add(dt);
                        ViewState.Add("dsCorr", dsCorrispondenti);
                    }

                    DataRow dr = ((DataSet)ViewState["dsCorr"]).Tables[0].NewRow();
                    dr[0] = corr.systemId;
                    dr[1] = corr.descrizione;
                    dr[2] = corr.codiceRubrica;
                    dr[3] = corr.tipoIE;
                    if (corr.disabledTrasm)
                    {
                        dr[4] = "1";
                    }
                    else
                    {
                        dr[4] = "0";
                    }

                    ((DataSet)ViewState["dsCorr"]).Tables[0].Rows.Add(dr);
                    ((System.Web.UI.HtmlControls.HtmlInputHidden) this.FindControl("txt_confirmMod")).Value = "si";
                }
            }
            dg_2.DataSource = ((DataSet)ViewState["dsCorr"]);
            dg_2.DataBind();


            //txt_codiceCorr.Text = "";
            txt_descrizione.Text = "";
        }
示例#10
0
            public DocsPAWA.DocsPaWR.Corrispondente[] ConvertToCorrispondente(string codice)
            {
                DocsPaWR.ElementoRubrica er = Get(codice);
                if (er != null)
                {
                    if (er.tipo == "L")
                    {
                        if (!corrConversionTable.ContainsKey(codice))
                        {
                            string idAmm = UserManager.getInfoUtente().idAmministrazione;
                            DocsPaWR.DocsPaWebService DocsPaWS = ProxyManager.getWS();
                            ArrayList aux = new ArrayList(DocsPaWS.getCorrispondentiByCodLista(er.codice, idAmm, UserManager.getInfoUtente()));
                            DocsPaWR.Corrispondente[] lista = new DocsPAWA.DocsPaWR.Corrispondente[aux.Count];
                            aux.CopyTo(lista);
                            corrConversionTable.Add(er.codice, lista);
                        }
                        return((DocsPAWA.DocsPaWR.Corrispondente[])corrConversionTable[codice]);
                    }
                    else
                    {
                        if (!corrConversionTable.ContainsKey(codice))
                        {
                            DocsPaWR.DocsPaWebService      DocsPaWS = ProxyManager.getWS();
                            DocsPaWR.Corrispondente[]      lista    = new DocsPAWA.DocsPaWR.Corrispondente[1];
                            DocsPaWR.AddressbookTipoUtente tipo     = (er.interno ? DocsPAWA.DocsPaWR.AddressbookTipoUtente.INTERNO : DocsPAWA.DocsPaWR.AddressbookTipoUtente.ESTERNO);
                            DocsPaWR.Corrispondente        corr     = DocsPaWS.AddressbookGetCorrispondenteByCodRubricaIE(er.codice, tipo, UserManager.getInfoUtente());
                            if (corr != null)
                            {
                                corr.tipoCorrispondente = er.tipo;
                                lista[0] = corr;
                                corrConversionTable.Add(er.codice, lista);
                            }
                        }
                        return((DocsPAWA.DocsPaWR.Corrispondente[])corrConversionTable[codice]);
                    }
                }

                return(new DocsPAWA.DocsPaWR.Corrispondente[0]);
            }
示例#11
0
            public DocsPAWA.DocsPaWR.ElementoRubrica Get(string codice)
            {
                DocsPaWR.ElementoRubrica er = null;
                for (int i = 0; i < GlobalRecipient.Length; i++)
                {
                    er = GlobalRecipient[i];
                    if (er.codice == codice)
                    {
                        return(er);
                    }
                }

                try
                {
                    DocsPaWR.DocsPaWebService DocsPaWS = ProxyManager.getWS();
                    //Federica 23 gennaio 2007
                    er = DocsPaWS.rubricaGetElementoRubrica(codice, UserManager.getInfoUtente(), null, "");
                }
                catch (Exception) {}

                return(er);
            }
示例#12
0
        protected void TxtCodeCorrespondentCustom_OnTextChanged(object sender, EventArgs e)
        {
            try {
                if (!string.IsNullOrEmpty(this.PageCaller) && this.PageCaller.Equals("Popup"))
                {
                    ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "function", "reallowOp();", true);
                }

                ElementoRubrica[] listaCorr = null;
                Corrispondente    corr      = null;

                if (!string.IsNullOrEmpty(this.TxtCodeCorrespondentCustomValue.Text))
                {
                    switch (typeChooseCorrespondent)
                    {
                    case "INTERNI":
                        if (SearchCorrespondentIntExtWithDisabled && this.ChkStoryCustomCorrespondent.Checked)
                        {
                            this.CalltypeCorrespondentCustom = RubricaCallType.CALLTYPE_CORR_INT_CON_DISABILITATI;
                        }
                        else
                        {
                            this.CalltypeCorrespondentCustom = RubricaCallType.CALLTYPE_CORR_INT;
                        }
                        break;

                    case "ESTERNI":
                        this.CalltypeCorrespondentCustom = RubricaCallType.CALLTYPE_CORR_EST;
                        break;

                    case "INTERNI/ESTERNI":
                        if (SearchCorrespondentIntExtWithDisabled && this.ChkStoryCustomCorrespondent.Checked)
                        {
                            this.CalltypeCorrespondentCustom = RubricaCallType.CALLTYPE_CORR_INT_EST_CON_DISABILITATI;
                        }
                        else
                        {
                            this.CalltypeCorrespondentCustom = RubricaCallType.CALLTYPE_CORR_INT_EST;
                        }
                        break;

                    case "0":
                        if (SearchCorrespondentIntExtWithDisabled && this.ChkStoryCustomCorrespondent.Checked)
                        {
                            this.CalltypeCorrespondentCustom = RubricaCallType.CALLTYPE_CORR_INT_EST_CON_DISABILITATI;
                        }
                        else
                        {
                            this.CalltypeCorrespondentCustom = RubricaCallType.CALLTYPE_CORR_INT_EST;
                        }
                        break;

                    case "MISSING_ROLES":
                        this.CalltypeCorrespondentCustom = RubricaCallType.CALLTYPE_CORR_INT_NO_UO;
                        break;
                    }

                    if (this.ChooseMultipleCorrespondent == null)
                    {
                        listaCorr = UIManager.AddressBookManager.getElementiRubricaMultipli(this.TxtCodeCorrespondentCustomValue.Text, this.CalltypeCorrespondentCustom, true);

                        if (listaCorr == null || (listaCorr != null && listaCorr.Length == 0))
                        {
                            corr = null;
                            this.IdCorrespondentCustomHidden.Value           = string.Empty;
                            this.TxtCodeCorrespondentCustomValue.Text        = string.Empty;
                            this.TxtDescriptionCorrespondentCustomValue.Text = string.Empty;
                            string msgDesc = "WarningDocumentCorrNotFound";
                            //this.UpPnlCorrespondentCustom.Update();

                            ScriptManager.RegisterStartupScript(this, this.GetType(), "ajaxDialogModal", "if (parent.fra_main) {parent.fra_main.ajaxDialogModal('" + msgDesc.Replace("'", @"\'") + "', 'warning', '');} else {parent.ajaxDialogModal('" + msgDesc.Replace("'", @"\'") + "', 'warning', '');}", true);
                        }
                        else
                        {
                            if (listaCorr != null && listaCorr.Length > 1)
                            {
                                if (!string.IsNullOrEmpty(SelectedCustomCorrespondentIndex))
                                {
                                    int             index = Convert.ToInt32(SelectedCustomCorrespondentIndex);
                                    ElementoRubrica el    = listaCorr[index];
                                    if (!string.IsNullOrEmpty(el.systemId))
                                    {
                                        corr = UIManager.AddressBookManager.GetCorrespondentBySystemId(el.systemId);
                                    }
                                    else
                                    {
                                        corr = UIManager.AddressBookManager.getCorrispondenteByCodRubricaRubricaComune(el.codice);
                                    }
                                    if (corr != null)
                                    {
                                        this.IdCorrespondentCustomHidden.Value           = corr.systemId;
                                        this.TxtCodeCorrespondentCustomValue.Text        = corr.codiceRubrica;
                                        this.TxtDescriptionCorrespondentCustomValue.Text = corr.descrizione;
                                    }
                                    else
                                    {
                                        corr = null;
                                        this.IdCorrespondentCustomHidden.Value           = string.Empty;
                                        this.TxtCodeCorrespondentCustomValue.Text        = string.Empty;
                                        this.TxtDescriptionCorrespondentCustomValue.Text = string.Empty;
                                    }

                                    this.SelectedCustomCorrespondentIndex = string.Empty;
                                }
                                else
                                {
                                    corr           = null;
                                    this.FoundCorr = listaCorr;
                                    this.TypeChooseCorrespondent = this.TypeCorrespondentCustom.ToString();
                                    this.TypeRecord = "custom";
                                    this.IdCustomObjectCustomCorrespondent = this.ID;
                                    ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "chooseCorrespondent", "ajaxModalPopupChooseCorrespondent();", true);
                                    return;
                                }
                            }
                            else
                            {
                                if (listaCorr != null && listaCorr.Length == 1) // && !this.cbx_storicizzato.Checked)
                                {
                                    DocsPaWR.ElementoRubrica er = listaCorr[0];

                                    if (!string.IsNullOrEmpty(er.systemId))
                                    {
                                        corr = UIManager.AddressBookManager.GetCorrespondentBySystemId(er.systemId);
                                    }
                                    else
                                    {
                                        corr = UIManager.AddressBookManager.getCorrispondenteByCodRubricaRubricaComune(er.codice);
                                    }

                                    if (corr != null)
                                    {
                                        this.IdCorrespondentCustomHidden.Value           = corr.systemId;
                                        this.TxtCodeCorrespondentCustomValue.Text        = corr.codiceRubrica;
                                        this.TxtDescriptionCorrespondentCustomValue.Text = corr.descrizione;
                                    }
                                    else
                                    {
                                        corr = null;
                                        this.IdCorrespondentCustomHidden.Value           = string.Empty;
                                        this.TxtCodeCorrespondentCustomValue.Text        = string.Empty;
                                        this.TxtDescriptionCorrespondentCustomValue.Text = string.Empty;
                                    }
                                }
                            }
                        }
                    }
                    else
                    {
                        if (this.IdCustomObjectCustomCorrespondent == this.ID)
                        {
                            this.IdCorrespondentCustomHidden.Value           = this.ChooseMultipleCorrespondent.systemId;
                            this.TxtCodeCorrespondentCustomValue.Text        = this.ChooseMultipleCorrespondent.codiceRubrica;
                            this.TxtDescriptionCorrespondentCustomValue.Text = this.ChooseMultipleCorrespondent.descrizione;
                            this.ChooseMultipleCorrespondent = null;
                        }
                    }
                }
                else
                {
                    this.IdCorrespondentCustomHidden.Value           = string.Empty;
                    this.TxtCodeCorrespondentCustomValue.Text        = string.Empty;
                    this.TxtDescriptionCorrespondentCustomValue.Text = string.Empty;
                }
            }
            catch (System.Exception ex)
            {
                UIManager.AdministrationManager.DiagnosticError(ex);
                return;
            }
        }
示例#13
0
        private void Add()
        {
            string selection = (string)this.Context.Request.Params["selection"];

            switch (Properties.Capacity)
            {
            case RecipientCapacity.One:
                if (selection == "all")
                {
                    //...opzione non contemplata: non eseguire
                }
                else if (selection == "single")
                {
                    //...e viene richiesta la selezione di un solo elemento...
                    DocsPaWR.ElementoRubrica elem = null;
                    string id    = (string)this.Context.Request.Params["cod"];
                    bool   found = false;
                    for (int i = 0; id != null && !found && i < searchResult.PageRecipient.Length; i++)
                    {
                        //Se il parametro in query-string corrisponde a
                        //un elemento della ricerca...
                        elem = searchResult.PageRecipient[i];
                        if (id == elem.codice)
                        {
                            if (elem.tipo != "L")                                  //Non vanno considerate le liste di distribuzione
                            {
                                //...svuoto il vettore e lo aggiorno con il nuovo risultato
                                abookResult.AuxArray.Clear();
                                abookResult.AuxArray.Add(searchResult.ConvertToCorrispondente(searchResult.PageRecipient[i].codice)[0]);
                                found = true;
                            }
                        }
                    }
                }
                break;

            case RecipientCapacity.Many:
                //Il recipiente ammette più risultati...
                if (selection == "all")
                {
                    //...e viene richiesta la selezione di più elementi...
                    foreach (DocsPAWA.DocsPaWR.ElementoRubrica elem in searchResult.PageRecipient)
                    {
                        if (elem.tipo == "L")
                        {
                            DocsPaWR.Corrispondente[] lista = searchResult.ConvertToCorrispondente(elem.codice);
                            foreach (DocsPAWA.DocsPaWR.Corrispondente c in lista)
                            {
                                string tipo = null;
                                if (c is DocsPAWA.DocsPaWR.UnitaOrganizzativa)
                                {
                                    tipo = "U";
                                }
                                else if (c is DocsPAWA.DocsPaWR.Ruolo)
                                {
                                    tipo = "R";
                                }
                                else if (c is DocsPAWA.DocsPaWR.Utente)
                                {
                                    tipo = "P";
                                }
                                if (!IsInAuxArray(c.codiceRubrica, tipo))
                                {
                                    //Se non è già presente nel vettore lo aggiungo
                                    abookResult.AuxArray.Add(c);
                                }
                            }
                        }
                        else
                        {
                            if (!IsInAuxArray(elem.codice, elem.tipo))
                            {
                                //Se non è già presente nel vettore lo aggiungo
                                abookResult.AuxArray.Add(searchResult.ConvertToCorrispondente(elem.codice)[0]);
                            }
                        }
                    }
                }
                else if (selection == "single")
                {
                    //...e viene richiesta la selezione di un solo elemento...
                    DocsPaWR.ElementoRubrica elem = null;
                    string id    = (string)this.Context.Request.Params["cod"];
                    bool   found = false;
                    for (int i = 0; id != null && !found && i < searchResult.PageRecipient.Length; i++)
                    {
                        //Se il parametro in query-string corrisponde a
                        //un elemento della ricerca...
                        elem = searchResult.PageRecipient[i];
                        if (id == elem.codice)
                        {
                            found = true;
                        }
                    }

                    if (elem.tipo == "L")
                    {
                        DocsPaWR.Corrispondente[] lista = searchResult.ConvertToCorrispondente(elem.codice);
                        foreach (DocsPAWA.DocsPaWR.Corrispondente c in lista)
                        {
                            string tipo = null;
                            if (c is DocsPAWA.DocsPaWR.UnitaOrganizzativa)
                            {
                                tipo = "U";
                            }
                            else if (c is DocsPAWA.DocsPaWR.Ruolo)
                            {
                                tipo = "R";
                            }
                            else if (c is DocsPAWA.DocsPaWR.Utente)
                            {
                                tipo = "P";
                            }
                            if (!IsInAuxArray(c.codiceRubrica, tipo))
                            {
                                //Se non è già presente nel vettore lo aggiungo
                                abookResult.AuxArray.Add(c);
                            }
                        }
                    }
                    else
                    {
                        if (!IsInAuxArray(elem.codice, elem.tipo))
                        {
                            abookResult.AuxArray.Add(searchResult.ConvertToCorrispondente(elem.codice)[0]);
                        }
                    }
                }
                break;

            default:
                break;
            }

            //Trasferisco il contenuto del vettore temporaneo al recipiente...
            PastAuxArrayToRecipient();
        }
示例#14
0
 protected String GetCorrCodice(DocsPaWR.ElementoRubrica elem)
 {
     return(elem.codice);
 }
示例#15
0
 protected String GetCorrName(DocsPaWR.ElementoRubrica elem)
 {
     return(elem.descrizione);
 }
示例#16
0
        private void do_node(TreeNode nd, HtmlTextWriter output)
        {
            output.WriteBeginTag("tr");
            output.WriteAttribute("height", ItemHeight.ToString());
            output.Write(HtmlTextWriter.TagRightChar);

            output.WriteBeginTag("td");
            if (nd.GetNodeIndex() == this.SelectedNodeIndex)
            {
                if (SelectedStyle.CssText != null && SelectedStyle.CssText != "")
                {
                    output.WriteAttribute("style", this.SelectedStyle.CssText);
                }
                if (SelectedCssClass != null && SelectedCssClass != "")
                {
                    output.WriteAttribute("class", this.SelectedCssClass);
                }
            }
            else
            {
                if (DefaultStyle.CssText != null && DefaultStyle.CssText != "")
                {
                    output.WriteAttribute("style", this.DefaultStyle.CssText);
                }
                if (CssClass != null && CssClass != "")
                {
                    output.WriteAttribute("class", this.CssClass);
                }
            }

            output.WriteAttribute("data", nd.NodeData);
            output.Write(HtmlTextWriter.TagRightChar);

            DocsPaWR.ElementoRubrica er = UserManager.getElementoRubrica(this.Page, nd.NodeData);

            if (((SelectorFilter == null)) ||
                SelectorFilter(this, new SelectorFilterArgs("I", nd.NodeData)))
            {
                if ((nd.NodeData != "__DUMMY_NODE__" && (((NodoRubrica)nd).SelectAllowed)))
                {
                    if (this.SelectorType == TreeViewSelectorType.CheckBox)
                    {
                        output.WriteBeginTag("input");
                        output.WriteAttribute("type", "checkbox");
                        output.WriteAttribute("id", nd.ID);
                        output.WriteAttribute("name", "__CBX_" + this.ID);
                        if (er != null && er.disabledTrasm)
                        {
                            output.WriteAttribute("disabled", "");
                        }
                        output.WriteAttribute("value", nd.ID);
                        output.Write(HtmlTextWriter.TagRightChar);
                    }
                    else
                    if (this.SelectorType == TreeViewSelectorType.RadioButton)
                    {
                        output.WriteBeginTag("input");
                        output.WriteAttribute("type", "radio");
                        output.WriteAttribute("id", "_CBX_[" + nd.ID + "]_CBX_");
                        output.WriteAttribute("name", "_CBX__CBX_");
                        output.WriteAttribute("value", nd.ID);
                        output.Write(HtmlTextWriter.TagRightChar);
                    }
                }
                else
                {
                    output.WriteBeginTag("div");
                    output.WriteAttribute("style", "display:inline;width:20px");
                    output.Write(HtmlTextWriter.TagRightChar);
                    output.WriteEndTag("div");
                }
            }

            else
            {
                //Questo controllo viene effettuato in quanto se è atttiva la chiave "RUBRICA_PROTO_USA_SMISTAMENTO",
                //una eventuale ricerca in rubrica delle UO-Ruoli-Utenti che appartengono a UO sottoposte quella
                //dell'utente loggato, devono essere comunque selezionabili - PER ANAS
                DocsPaWR.DocsPaWebService wws = new SAAdminTool.DocsPaWR.DocsPaWebService();
                if ((nd.NodeData != "__DUMMY_NODE__" && ((NodoRubrica)nd).SelectAllowed))
                {
                    if ((nd.NodeData != "__DUMMY_NODE__" && wws.verificaDipendezaCodRubrica(this._codUoAppartenenza, nd.NodeData, this._infoUtente)))
                    {
                        if (this.SelectorType == TreeViewSelectorType.CheckBox)
                        {
                            output.WriteBeginTag("input");
                            output.WriteAttribute("type", "checkbox");
                            output.WriteAttribute("id", nd.ID);
                            output.WriteAttribute("name", "__CBX_" + this.ID);
                            if (er != null && er.disabledTrasm)
                            {
                                output.WriteAttribute("disabled", "");
                            }
                            output.WriteAttribute("value", nd.ID);
                            output.Write(HtmlTextWriter.TagRightChar);
                        }
                        else
                        if (this.SelectorType == TreeViewSelectorType.RadioButton)
                        {
                            output.WriteBeginTag("input");
                            output.WriteAttribute("type", "radio");
                            output.WriteAttribute("id", "_CBX_[" + nd.ID + "]_CBX_");
                            output.WriteAttribute("name", "_CBX__CBX_");
                            output.WriteAttribute("value", nd.ID);
                            output.Write(HtmlTextWriter.TagRightChar);
                        }
                    }
                    else
                    {
                        output.WriteBeginTag("div");
                        output.WriteAttribute("style", "display:inline;width:20px");
                        output.Write(HtmlTextWriter.TagRightChar);
                        output.WriteEndTag("div");
                    }
                }
            }
            if ((nd.Expandable == ExpandableValue.Always || nd.Expandable == ExpandableValue.CheckOnce) || (nd.Expandable == ExpandableValue.Auto && nd.Nodes.Count > 0))
            {
                wrapPostbackLink(output, nd);
            }
            else
            {
                if (nd.ImageUrl != null && nd.ImageUrl != "")
                {
                    output.WriteBeginTag("img");
                    output.WriteAttribute("src", nd.ImageUrl);
                    output.Write(HtmlTextWriter.TagRightChar);
                }
            }

            if (er != null && er.disabledTrasm)
            {
                output.Write("<font color=\"red\">" + HttpUtility.HtmlEncode(nd.Text) + "</font>");
            }
            else
            {
                output.Write(HttpUtility.HtmlEncode(nd.Text));
            }
        }