Example #1
0
        protected void txt_author_E_TextChanged(object sender, EventArgs e)
        {
            try
            {
                ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "function", "reallowOp();", true);

                CustomTextArea caller          = sender as CustomTextArea;
                string         codeAddressBook = this.txt_codAuthor_E.Text;

                if (!string.IsNullOrEmpty(codeAddressBook))
                {
                    this.SearchCorrespondent(codeAddressBook, caller.ID);
                }
                else
                {
                    this.txt_codAuthor_E.Text   = string.Empty;
                    this.txt_descrAuthor_E.Text = string.Empty;
                    this.IdRecipient.Value      = string.Empty;
                    this.UpPnlAuthor.Update();
                }
            }
            catch (System.Exception ex)
            {
                UIManager.AdministrationManager.DiagnosticError(ex);
                return;
            }
        }
Example #2
0
        protected void TxtCode_OnTextChanged(object sender, EventArgs e)
        {
            try
            {
                CustomTextArea caller          = sender as CustomTextArea;
                string         codeAddressBook = caller.Text;

                if (!string.IsNullOrEmpty(codeAddressBook))
                {
                    this.SearchCorrespondent(codeAddressBook, caller.ID);
                }
                else
                {
                    switch (caller.ID)
                    {
                    case "txtCodiceUserInAuth":
                        this.txtCodiceUserInAuth.Text      = string.Empty;
                        this.txtDescrizioneUserInAuth.Text = string.Empty;
                        this.idUserInAuth.Value            = string.Empty;
                        this.upUtenteDetails.Update();
                        break;
                    }
                }
            }
            catch (System.Exception ex)
            {
                UIManager.AdministrationManager.DiagnosticError(ex);
                return;
            }
        }
        protected void TxtCode_OnTextChanged(object sender, EventArgs e)
        {
            ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "function", "<script>reallowOp();</script>", false);
            try
            {
                CustomTextArea caller          = sender as CustomTextArea;
                string         codeAddressBook = caller.Text;

                if (!string.IsNullOrEmpty(codeAddressBook))
                {
                    this.SearchCorrespondent(codeAddressBook, caller.ID);
                }
                else
                {
                    this.txtCodiceCreatore.Text      = string.Empty;
                    this.txtDescrizioneCreatore.Text = string.Empty;
                    this.idCreatore.Value            = string.Empty;
                    this.upPnlAuthor.Update();
                }
            }
            catch (System.Exception ex)
            {
                UIManager.AdministrationManager.DiagnosticError(ex);
                return;
            }
        }
Example #4
0
        protected void TxtCode_OnTextChanged(object sender, EventArgs e)
        {
            ScriptManager.RegisterStartupScript(this, this.GetType(), "reallowOp", "reallowOp();", true);

            CustomTextArea caller          = sender as CustomTextArea;
            string         codeAddressBook = caller.Text;

            if (!string.IsNullOrEmpty(codeAddressBook))
            {
                this.SearchCorrespondent(codeAddressBook, caller.ID);
            }
            else
            {
                this.txtCodiceProprietario.Text      = string.Empty;
                this.txtDescrizioneProprietario.Text = string.Empty;
                this.idProprietario.Value            = string.Empty;
                this.idPeople.Value          = string.Empty;
                this.plcRoleDelegate.Visible = false;
                this.upPnlProprietario.Update();
            }
        }
Example #5
0
        protected void TxtCode_OnTextChanged(object sender, EventArgs e)
        {
            try {
                CustomTextArea caller          = sender as CustomTextArea;
                string         codeAddressBook = this.TxtCodeRecipient.Text;

                if (!string.IsNullOrEmpty(codeAddressBook))
                {
                    this.SearchCorrespondent(codeAddressBook, caller.ID);
                }
                else
                {
                    this.TxtCodeRecipient.Text        = string.Empty;
                    this.TxtDescriptionRecipient.Text = string.Empty;
                    this.IdRecipient.Value            = string.Empty;
                    this.UpPnlRecipient.Update();
                }
            }
            catch (System.Exception ex)
            {
                UIManager.AdministrationManager.DiagnosticError(ex);
                return;
            }
        }
Example #6
0
 protected void TxtCode_OnTextChanged(object sender, EventArgs e)
 {
     ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "function", "<script>reallowOp();</script>", false);
     try
     {
         CustomTextArea caller          = sender as CustomTextArea;
         string         codeAddressBook = this.txtCodiceRuolo.Text;
         if (!string.IsNullOrEmpty(codeAddressBook))
         {
             RubricaCallType   calltype  = RubricaCallType.CALLTYPE_PROTO_INT_MITT;
             ElementoRubrica[] listaCorr = null;
             Corrispondente    corr      = null;
             UIManager.RegistryManager.SetRegistryInSession(RoleManager.GetRoleInSession().registri[0]);
             listaCorr = UIManager.AddressBookManager.getElementiRubricaMultipli(codeAddressBook, calltype, true);
             if (listaCorr != null && (listaCorr.Count() == 1))
             {
                 if (listaCorr.Count() == 1)
                 {
                     corr = UIManager.AddressBookManager.getCorrispondenteRubrica(codeAddressBook, calltype);
                 }
                 if (corr == null)
                 {
                     this.txtCodiceRuolo.Text      = string.Empty;
                     this.txtDescrizioneRuolo.Text = string.Empty;
                     this.UpdPnlRuolo.Update();
                     string msg = "ErrorTransmissionCorrespondentNotFound";
                     ScriptManager.RegisterStartupScript(this, this.GetType(), "ajaxDialogModal", "if (parent.fra_main) {parent.fra_main.ajaxDialogModal('" + msg.Replace("'", @"\'") + "', 'warning', '');} else {parent.ajaxDialogModal('" + msg.Replace("'", @"\'") + "', 'warning', '');}", true);
                     return;
                 }
                 this.txtCodiceRuolo.Text      = string.Empty;
                 this.txtDescrizioneRuolo.Text = string.Empty;
                 this.UpdPnlRuolo.Update();
                 if (!corr.tipoCorrispondente.Equals("R"))
                 {
                     string msg = "WarningCorrespondentAsRole";
                     ScriptManager.RegisterStartupScript(this, this.GetType(), "ajaxDialogModal", "if (parent.fra_main) { parent.fra_main.ajaxDialogModal('" + msg.Replace("'", @"\'") + "', 'warning', '');} else { parent.ajaxDialogModal('" + msg.Replace("'", @"\'") + "', 'warning', '');}", true);
                 }
                 else
                 {
                     this.txtCodiceRuolo.Text      = corr.codiceRubrica;
                     this.txtDescrizioneRuolo.Text = corr.descrizione;
                     this.idRuolo.Value            = corr.systemId;
                 }
                 this.UpdPnlRuolo.Update();
             }
             else
             {
                 string msg = "ErrorTransmissionCorrespondentNotFound";
                 ScriptManager.RegisterStartupScript(this, this.GetType(), "ajaxDialogModal", "if (parent.fra_main) {parent.fra_main.ajaxDialogModal('" + msg.Replace("'", @"\'") + "', 'warning', '');} else {parent.ajaxDialogModal('" + msg.Replace("'", @"\'") + "', 'warning', '');}", true);
             }
         }
         else
         {
             this.txtCodiceRuolo.Text      = string.Empty;
             this.txtDescrizioneRuolo.Text = string.Empty;
             this.UpdPnlRuolo.Update();
         }
     }
     catch (Exception ex)
     {
         string msg = "ErrorSignatureProcess";
         ScriptManager.RegisterStartupScript(this, this.GetType(), "ajaxDialogModal", "if (parent.fra_main) {parent.fra_main.ajaxDialogModal('" + msg.Replace("'", @"\'") + "', 'error', '');} else {parent.ajaxDialogModal('" + msg.Replace("'", @"\'") + "', 'error', '');}", true);
         return;
     }
 }