protected void btnAddressBookPostback_Click(object sender, EventArgs e)
        {
            try
            {
                ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "function", "<script>reallowOp();</script>", false);
                List <NttDataWA.Popup.AddressBook.CorrespondentDetail> atList = (List <NttDataWA.Popup.AddressBook.CorrespondentDetail>)HttpContext.Current.Session["AddressBook.At"];
                List <NttDataWA.Popup.AddressBook.CorrespondentDetail> ccList = (List <NttDataWA.Popup.AddressBook.CorrespondentDetail>)HttpContext.Current.Session["AddressBook.Cc"];
                if (atList != null && atList.Count > 0)
                {
                    NttDataWA.Popup.AddressBook.CorrespondentDetail corrInSess = atList[0];
                    Corrispondente tempCorrSingle;
                    if (!corrInSess.isRubricaComune)
                    {
                        tempCorrSingle = UIManager.AddressBookManager.GetCorrespondentBySystemId(atList[0].SystemID);
                    }
                    else
                    {
                        tempCorrSingle = UIManager.AddressBookManager.getCorrispondenteByCodRubricaRubricaComune(corrInSess.CodiceRubrica);
                    }

                    this.txtCodiceCreatore.Text      = tempCorrSingle.codiceRubrica;
                    this.txtDescrizioneCreatore.Text = tempCorrSingle.descrizione;
                    this.idCreatore.Value            = tempCorrSingle.systemId;
                    this.upPnlAuthor.Update();
                }
                HttpContext.Current.Session["AddressBook.At"] = null;
                HttpContext.Current.Session["AddressBook.Cc"] = null;
            }
            catch (System.Exception ex)
            {
                UIManager.AdministrationManager.DiagnosticError(ex);
                return;
            }
        }
Пример #2
0
        protected void btnAddressBookPostback_Click(object sender, EventArgs e)
        {
            try {
                List <NttDataWA.Popup.AddressBook.CorrespondentDetail> atList = (List <NttDataWA.Popup.AddressBook.CorrespondentDetail>)HttpContext.Current.Session["AddressBook.At"];
                string addressBookCallFrom = HttpContext.Current.Session["AddressBook.from"].ToString();

                if (atList != null && atList.Count > 0)
                {
                    NttDataWA.Popup.AddressBook.CorrespondentDetail corrInSess = atList[0];
                    Corrispondente tempCorrSingle;
                    if (!corrInSess.isRubricaComune)
                    {
                        tempCorrSingle = UIManager.AddressBookManager.GetCorrespondentBySystemId(atList[0].SystemID);
                    }
                    else
                    {
                        tempCorrSingle = UIManager.AddressBookManager.getCorrispondenteByCodRubricaRubricaComune(corrInSess.CodiceRubrica);
                    }
                    this.TxtCodeRecipient.Text        = tempCorrSingle.codiceRubrica;
                    this.TxtDescriptionRecipient.Text = tempCorrSingle.descrizione;
                    this.IdRecipient.Value            = tempCorrSingle.systemId;
                    this.UpPnlRecipient.Update();
                }

                HttpContext.Current.Session["AddressBook.At"] = null;
                HttpContext.Current.Session["AddressBook.Cc"] = null;
            }
            catch (System.Exception ex)
            {
                UIManager.AdministrationManager.DiagnosticError(ex);
                return;
            }
        }
Пример #3
0
        protected void btnAddressBookPostback_Click(object sender, EventArgs e)
        {
            List <NttDataWA.Popup.AddressBook.CorrespondentDetail> atList = (List <NttDataWA.Popup.AddressBook.CorrespondentDetail>)HttpContext.Current.Session["AddressBook.At"];
            string addressBookCallFrom = HttpContext.Current.Session["AddressBook.from"].ToString();

            if (atList != null && atList.Count > 0)
            {
                NttDataWA.Popup.AddressBook.CorrespondentDetail corrInSess = atList[0];
                Corrispondente tempCorrSingle;
                if (!corrInSess.isRubricaComune)
                {
                    tempCorrSingle = UIManager.AddressBookManager.GetCorrespondentBySystemId(atList[0].SystemID);
                }
                else
                {
                    tempCorrSingle = UIManager.AddressBookManager.getCorrispondenteByCodRubricaRubricaComune(corrInSess.CodiceRubrica);
                }

                this.txtCodiceProprietario.Text      = tempCorrSingle.codiceRubrica;
                this.txtDescrizioneProprietario.Text = tempCorrSingle.descrizione;
                this.idProprietario.Value            = tempCorrSingle.systemId;
                this.idPeople.Value = ((Utente)tempCorrSingle).idPeople;
                this.PopulateDdlUserRoles();
                this.upPnlProprietario.Update();
            }

            HttpContext.Current.Session["AddressBook.At"] = null;
            HttpContext.Current.Session["AddressBook.Cc"] = null;
        }
Пример #4
0
        protected void btnAddressBookPostback_Click(object sender, EventArgs e)
        {
            ScriptManager.RegisterStartupScript(this, this.GetType(), "reallowOp", "reallowOp();", true);

            try
            {
                List <NttDataWA.Popup.AddressBook.CorrespondentDetail> atList = (List <NttDataWA.Popup.AddressBook.CorrespondentDetail>)HttpContext.Current.Session["AddressBook.At"];
                List <NttDataWA.Popup.AddressBook.CorrespondentDetail> ccList = (List <NttDataWA.Popup.AddressBook.CorrespondentDetail>)HttpContext.Current.Session["AddressBook.Cc"];
                string addressBookCallFrom = HttpContext.Current.Session["AddressBook.from"].ToString();

                if (atList != null && atList.Count > 0)
                {
                    Corrispondente corr = null;
                    //Profiler document
                    UserControls.CorrespondentCustom userCorr = (UserControls.CorrespondentCustom) this.PnlCorrespondent.FindControl(this.IdCustomObjectCustomCorrespondent);

                    string idAmm = UIManager.UserManager.GetInfoUser().idAmministrazione;
                    NttDataWA.Popup.AddressBook.CorrespondentDetail addressBookCorrespondent = (NttDataWA.Popup.AddressBook.CorrespondentDetail)atList[0];

                    if (!addressBookCorrespondent.isRubricaComune)
                    {
                        corr = UIManager.AddressBookManager.GetCorrespondentBySystemId(addressBookCorrespondent.SystemID);
                    }
                    else
                    {
                        corr = UIManager.AddressBookManager.getCorrispondenteByCodRubricaRubricaComune(addressBookCorrespondent.CodiceRubrica);
                    }

                    userCorr.TxtCodeCorrespondentCustom        = corr.codiceRubrica;
                    userCorr.TxtDescriptionCorrespondentCustom = corr.descrizione;
                    userCorr.IdCorrespondentCustom             = corr.systemId;
                }

                HttpContext.Current.Session["AddressBook.At"] = null;
                HttpContext.Current.Session["AddressBook.Cc"] = null;
                this.UpdMissingRolesGrid.Update();
            }
            catch (Exception ex)
            {
                UIManager.AdministrationManager.DiagnosticError(ex);
                return;
            }
        }
Пример #5
0
        protected void btnAddressBookPostback_Click(object sender, EventArgs e)
        {
            List <NttDataWA.Popup.AddressBook.CorrespondentDetail> atList = (List <NttDataWA.Popup.AddressBook.CorrespondentDetail>)HttpContext.Current.Session["AddressBook.At"];
            string addressBookCallFrom = HttpContext.Current.Session["AddressBook.from"].ToString();

            if (atList != null && atList.Count > 0)
            {
                NttDataWA.Popup.AddressBook.CorrespondentDetail corrInSess = atList[0];
                if (atList != null && atList.Count > 0)
                {
                    if (addressBookCallFrom == "DISTRIBUTIONLIST")
                    {
                        addCorrSelDaRubrica(atList);
                        this.TxtCodeSender.Text        = string.Empty;
                        this.TxtDescriptionSender.Text = string.Empty;
                        this.idCorrispondente.Value    = string.Empty;
                        this.UpdPanelDetail.Update();
                    }
                }
            }
            HttpContext.Current.Session["AddressBook.At"] = null;
            HttpContext.Current.Session["AddressBook.Cc"] = null;
        }
        /// <summary>
        /// Funzione per l'interpretazione dei risultati di ricerca ruolo da rubrica
        /// </summary>
        private void AnalyzeRoleResult()
        {
            // Prelvamento dei risultati della ricerca


            switch (Session["rubricaFind"].ToString())
            {
            case "txtFindCodice":
            {
                try
                {
                    List <NttDataWA.Popup.AddressBook.CorrespondentDetail> atList = (List <NttDataWA.Popup.AddressBook.CorrespondentDetail>)HttpContext.Current.Session["AddressBook.At"];
                    string addressBookCallFrom = HttpContext.Current.Session["AddressBook.from"].ToString();

                    switch (addressBookCallFrom)
                    {
                    case "M_D_T_F":
                        if (atList != null && atList.Count > 0)
                        {
                            NttDataWA.Popup.AddressBook.CorrespondentDetail corrInSess = atList[0];
                            Corrispondente tempCorrSingle;
                            if (!corrInSess.isRubricaComune)
                            {
                                tempCorrSingle = UIManager.AddressBookManager.GetCorrespondentBySystemId(atList[0].SystemID);
                            }
                            else
                            {
                                tempCorrSingle = UIManager.AddressBookManager.getCorrispondenteByCodRubricaRubricaComune(corrInSess.CodiceRubrica);
                            }

                            this.txtFindCodice.Text      = tempCorrSingle.codiceRubrica;
                            this.txtFindDescrizione.Text = tempCorrSingle.descrizione;
                            ElementoRubrica[] elems = this.ResolveCode(this.txtFindCodice.Text, true, RubricaCallType.CALLTYPE_FIND_ROLE);
                            if (elems != null && elems.Length > 0)
                            {
                                this.RoleToReplace = elems[0];
                            }
                            HttpContext.Current.Session["AddressBook.At"] = null;
                            HttpContext.Current.Session["AddressBook.Cc"] = null;
                            this.Page_Load(null, null);
                        }
                        break;
                    }
                }
                catch (System.Exception ex)
                {
                    UIManager.AdministrationManager.DiagnosticError(ex);
                    return;
                }
            }
            break;

            case "txtReplaceCodice":
            {
                try
                {
                    List <NttDataWA.Popup.AddressBook.CorrespondentDetail> atList = (List <NttDataWA.Popup.AddressBook.CorrespondentDetail>)HttpContext.Current.Session["AddressBook.At"];
                    string addressBookCallFrom = HttpContext.Current.Session["AddressBook.from"].ToString();

                    switch (addressBookCallFrom)
                    {
                    case "M_D_T_R":
                        if (atList != null && atList.Count > 0)
                        {
                            NttDataWA.Popup.AddressBook.CorrespondentDetail corrInSess = atList[0];
                            Corrispondente tempCorrSingle;
                            if (!corrInSess.isRubricaComune)
                            {
                                tempCorrSingle = UIManager.AddressBookManager.GetCorrespondentBySystemId(atList[0].SystemID);
                            }
                            else
                            {
                                tempCorrSingle = UIManager.AddressBookManager.getCorrispondenteByCodRubricaRubricaComune(corrInSess.CodiceRubrica);
                            }

                            this.txtReplaceCodice.Text      = tempCorrSingle.codiceRubrica;
                            this.txtReplaceDescrizione.Text = tempCorrSingle.descrizione;
                            ElementoRubrica[] elems = this.ResolveCode(this.txtReplaceCodice.Text, true, RubricaCallType.CALLTYPE_REPLACE_ROLE);
                            if (elems != null && elems.Length > 0)
                            {
                                this.NewRole = elems[0];
                            }
                            HttpContext.Current.Session["AddressBook.At"] = null;
                            HttpContext.Current.Session["AddressBook.Cc"] = null;
                            this.Page_Load(null, null);
                        }
                        break;
                    }
                }
                catch (System.Exception ex)
                {
                    UIManager.AdministrationManager.DiagnosticError(ex);
                    return;
                }
            }
            break;
            }

            // Pulizia sessione
            Session.Remove("rubricaFind");
        }
        protected void btnAddressBookPostback_Click(object sender, EventArgs e)
        {
            try
            {
                List <NttDataWA.Popup.AddressBook.CorrespondentDetail> atList = (List <NttDataWA.Popup.AddressBook.CorrespondentDetail>)HttpContext.Current.Session["AddressBook.At"];
                List <NttDataWA.Popup.AddressBook.CorrespondentDetail> ccList = (List <NttDataWA.Popup.AddressBook.CorrespondentDetail>)HttpContext.Current.Session["AddressBook.Cc"];
                string addressBookCallFrom = HttpContext.Current.Session["AddressBook.from"].ToString();

                switch (addressBookCallFrom)
                {
                case "M_D_F_R":
                    if (atList != null && atList.Count > 0)
                    {
                        NttDataWA.Popup.AddressBook.CorrespondentDetail corrInSess = atList[0];
                        Corrispondente tempCorrSingle;
                        if (!corrInSess.isRubricaComune)
                        {
                            tempCorrSingle = UIManager.AddressBookManager.GetCorrespondentBySystemId(atList[0].SystemID);
                        }
                        else
                        {
                            tempCorrSingle = UIManager.AddressBookManager.getCorrispondenteByCodRubricaRubricaComune(corrInSess.CodiceRubrica);
                        }

                        this.txtFindCodice.Text      = tempCorrSingle.codiceRubrica;
                        this.txtFindDescrizione.Text = tempCorrSingle.descrizione;

                        this.imgSrcFind_Click(null, null);
                    }
                    break;

                case "M_D_T_R":
                    if (atList != null && atList.Count > 0)
                    {
                        NttDataWA.Popup.AddressBook.CorrespondentDetail corrInSess = atList[0];
                        Corrispondente tempCorrSingle;
                        if (!corrInSess.isRubricaComune)
                        {
                            tempCorrSingle = UIManager.AddressBookManager.GetCorrespondentBySystemId(atList[0].SystemID);
                        }
                        else
                        {
                            tempCorrSingle = UIManager.AddressBookManager.getCorrispondenteByCodRubricaRubricaComune(corrInSess.CodiceRubrica);
                        }

                        this.txtReplaceCodice.Text      = tempCorrSingle.codiceRubrica;
                        this.txtReplaceDescrizione.Text = tempCorrSingle.descrizione;


                        this.imgSrcReplace_Click(null, null);
                    }
                    break;
                }
                HttpContext.Current.Session["AddressBook.At"] = null;
                HttpContext.Current.Session["AddressBook.Cc"] = null;
            }
            catch (System.Exception ex)
            {
                UIManager.AdministrationManager.DiagnosticError(ex);
                return;
            }
        }