Example #1
0
 public List <Cl_Sexo_Info> Get_List_Sexo()
 {
     try
     {
         List <Cl_Sexo_Info> lEstC     = new List <Cl_Sexo_Info>();
         EntitiesGeneral     OCatalogo = new EntitiesGeneral();
         var Doc = from C in OCatalogo.tb_Catalogo
                   where C.IdTipoCatalogo == 1
                   orderby C.ca_orden
                   select C;
         foreach (var item in Doc)
         {
             Cl_Sexo_Info Cbt = new Cl_Sexo_Info();
             Cbt.id          = item.CodCatalogo;
             Cbt.codigo      = item.CodCatalogo;
             Cbt.descripcion = item.ca_descripcion;
             lEstC.Add(Cbt);
         }
         return(lEstC);
     }
     catch (Exception ex)
     {
         string arreglo = ToString();
         tb_sis_Log_Error_Vzen_Data oDataLog      = new tb_sis_Log_Error_Vzen_Data();
         tb_sis_Log_Error_Vzen_Info Log_Error_sis = new tb_sis_Log_Error_Vzen_Info(ex.ToString(), "", arreglo, "",
                                                                                   "", "", "", "", DateTime.Now);
         oDataLog.Guardar_Log_Error(Log_Error_sis, ref mensaje);
         mensaje = ex.ToString() + " " + ex.Message;
         throw new Exception(ex.ToString());
     }
 }
Example #2
0
        public void get_Persona()
        {
            try
            {
                _PersonaInfo.pe_apellido          = this.txt_apellidos.Text;
                _PersonaInfo.pe_casilla           = this.txt_casilla.Text;
                _PersonaInfo.pe_celular           = this.txt_celular.Text;
                _PersonaInfo.pe_correo            = this.txt_correo.Text;
                _PersonaInfo.pe_direccion         = this.txt_direccion.Text;
                _PersonaInfo.pe_fax               = this.txt_Fax.Text;
                _PersonaInfo.pe_nombreCompleto    = this.txt_nombreCompleto.Text;
                _PersonaInfo.pe_nombre            = this.txt_nombres.Text;
                _PersonaInfo.pe_razonSocial       = this.txt_razonSocial.Text;
                _PersonaInfo.pe_cedulaRuc         = this.txt_Ruc.Text;
                _PersonaInfo.pe_telefonoCasa      = this.txt_telefonoCasa.Text;
                _PersonaInfo.pe_telfono_Contacto  = this.txt_telefonoContacto.Text;
                _PersonaInfo.pe_telefonoInter     = this.txt_telefonoInter.Text;
                _PersonaInfo.pe_telefonoOfic      = this.txt_TeleOficina.Text;
                _PersonaInfo.IdPersona            = Convert.ToInt32(this.lblIdPersona.Text);
                _PersonaInfo.pe_fechaNacimiento   = dtp_fechaNacimiento.Value;
                _PersonaInfo.pe_fechaModificacion = DateTime.Now;


                _PersonaInfo.pe_estado = (chkEstado.Checked == true) ? "A" : "I";

                UCEstadoCivil.cargar_Combo();
                Cl_EstadoCivil_Info estaCivil = new Cl_EstadoCivil_Info();
                estaCivil = this.UCEstadoCivil.get_estadoCivil();
                _PersonaInfo.IdEstadoCivil = estaCivil.codigo;

                Cl_Sexo_Info sexoI = new Cl_Sexo_Info();
                sexoI = this.UCGenero.get_sexo();
                _PersonaInfo.pe_sexo = sexoI.codigo;

                Cl_NaturalezaPerso Natu = new Cl_NaturalezaPerso();
                Natu = this.UCNaturaleza.get_Naturaleza();
                _PersonaInfo.pe_Naturaleza = Natu.codigo;

                Cl_TipoDoc_Personales_Info docu = new Cl_TipoDoc_Personales_Info();
                docu = this.UCDocumento.get_TipoDoc_Personales();
                _PersonaInfo.IdTipoDocumento = docu.codigo;

                _PersonaInfo.IdTipoPersona = 1;

                _PersonaInfo.pe_correo_secundario1      = Convert.ToString(txtCorreoSecun.EditValue);
                _PersonaInfo.pe_correo_secundario2      = Convert.ToString(txtCorreoAlterno.EditValue);
                _PersonaInfo.IdBanco_acreditacion       = cmb_Banco.get_BancoInfo().IdBanco;
                _PersonaInfo.IdTipoCta_acreditacion_cat = ucRo_CatalogoTipoCta.get_Catalogo().CodCatalogo;
                _PersonaInfo.num_cta_acreditacion       = txtnumCta.Text;
            }
            catch (Exception ex)
            {
                string NameMetodo = System.Reflection.MethodBase.GetCurrentMethod().Name;
                MessageBox.Show(NameMetodo + " - " + ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                Log_Error_bus.Log_Error(NameMetodo + " - " + ex.ToString());
            }
        }
Example #3
0
 public Cl_Sexo_Info get_sexo()
 {
     try
     {
         _sexo = (Cl_Sexo_Info)cmb_sexo.SelectedItem;
         return(_sexo);
     }
     catch (Exception ex)
     {
         string NameMetodo = System.Reflection.MethodBase.GetCurrentMethod().Name;
         MessageBox.Show(NameMetodo + " - " + ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
         Log_Error_bus.Log_Error(NameMetodo + " - " + ex.ToString());
         return(new Cl_Sexo_Info());
     }
 }