public int Save(socios_varios oSocioVarios)
 {
     int i;
     cooperativaEntities bd = new cooperativaEntities();
     bd.socios_varios.AddObject(oSocioVarios);
     i=bd.SaveChanges();
     return i;
 }
        public void Update(socios_varios oSocioVarios)
        {
            using (cooperativaEntities bd = new cooperativaEntities())
            {
                var editar = (from p in bd.socios_varios
                              where p.id_socio == oSocioVarios.id_socio
                              select p).Single();
                editar.id_socio = oSocioVarios.id_socio;
                editar.profesion = oSocioVarios.profesion;
                editar.conyuge_nombre = oSocioVarios.conyuge_nombre;
                editar.conyuge_tipo_documento = oSocioVarios.conyuge_tipo_documento;
                editar.conyuge_documento = oSocioVarios.conyuge_documento;
                editar.id_coop_luz = oSocioVarios.id_coop_luz;
                editar.fecha_convenio_coop_luz = oSocioVarios.fecha_convenio_coop_luz;
                editar.situacion_especial = oSocioVarios.situacion_especial;
                editar.intimado = oSocioVarios.intimado;

                bd.SaveChanges();
            }
        }
        public socios_varios Get(int id)
        {
            socios_varios oSocioVarios = new socios_varios();

            using (cooperativaEntities bd = new cooperativaEntities())
            {
                var regis = (from p in bd.socios_varios
                             where p.id_socio == id
                             select p).Single();
                oSocioVarios.id_socio = regis.id_socio;
                oSocioVarios.profesion = (regis.profesion == null) ? "" : regis.profesion;
                oSocioVarios.conyuge_nombre = (regis.conyuge_nombre == null) ? "" : regis.conyuge_nombre;
                oSocioVarios.conyuge_tipo_documento = (regis.conyuge_tipo_documento == null) ? 0 : regis.conyuge_tipo_documento;
                oSocioVarios.conyuge_documento = (regis.conyuge_documento==null)?0:regis.conyuge_documento;
                oSocioVarios.id_coop_luz = (regis.id_coop_luz == null) ? "" : regis.id_coop_luz;
                oSocioVarios.fecha_convenio_coop_luz = (regis.fecha_convenio_coop_luz==null)?"":regis.fecha_convenio_coop_luz;
                oSocioVarios.situacion_especial = (regis.situacion_especial == null) ? 0 : regis.situacion_especial;

                return oSocioVarios;
            }
        }
        private void Inicializar()
        {
            socios oSocios = new socios();
            SocioImplement oSociosImplement = new SocioImplement();

            socios_lote oSocioLote = new socios_lote();
            SocioLoteImplement oSocioLoteImplement = new SocioLoteImplement();
            oSocioLote = oSocioLoteImplement.Get(_idSocio);

            socios_conexion oSocioConexion = new socios_conexion();
            SocioConexionImplement oSocioConexionImplement = new SocioConexionImplement();
            oSocioConexion = oSocioConexionImplement.Get(_idSocio);

            socios_varios oSocioVarios = new socios_varios();
            SocioVariosImplement oSocioVariosImplement = new SocioVariosImplement();
            oSocioVarios = oSocioVariosImplement.Get(_idSocio);

            oSocios = oSociosImplement.Get(_idSocio);
            txtCodigo.Text = oSocios.codigo_socio;
            txtFechaConvenio.Text = _FechaConvenio.ToShortDateString();
            txtNombre.Text = oSocios.nombre;
            cod_documentos oCodDocumentos = new cod_documentos();
            DocumentoImplement oDocumentosImplement = new DocumentoImplement();
            if(oSocios.tipo_documento!=null)
                txtTipoDocumento.Text = oDocumentosImplement.Get((int)oSocios.tipo_documento).documento;
            txtDocumento.Text = oSocios.documento.ToString();

            CalleImplement oCalleImplement = new CalleImplement();

            BarrioImplement oBarrioImplement = new BarrioImplement();
            LocalidadImplement oLocalidadImplement = new LocalidadImplement();

            if (oSocioConexion.calle!=null & (int)oSocioConexion.calle!=0)
                txtDomicilioReal.Text = oCalleImplement.Get((int)oSocioConexion.calle).calle + " " + oSocioConexion.calle_altura;
            if (oSocioLote.localidad!=null &(int)oSocioLote.localidad != 0)
                txtCiudadReal.Text = oLocalidadImplement.Get((int)oSocioLote.localidad).localidad;
            if (oSocioLote.calle!=null & (int)oSocioLote.calle != 0)
                txtDomicilioLegal.Text = oCalleImplement.Get((int)oSocioLote.calle).calle + " " + oSocioLote.calle_altura;
            if (oSocioLote.localidad!=null & (int)oSocioLote.localidad != 0)
                txtCiudadLegal.Text = oLocalidadImplement.Get((int)oSocioLote.localidad).localidad;
            txtLote.Text = oSocioLote.lote;
            txtManzana.Text = oSocioLote.manzana;
            if (oSocioLote.barrio!=null & (int)oSocioLote.barrio != 0)
                txtBarrio.Text = oBarrioImplement.Get((int)oSocioLote.barrio).barrio;

            txtImporteDeuda.Text = _ImporteDeuda.ToString();
            txtValorCuotas.Text = _ImporteCuota.ToString();
            txtCantidadCuotas.Text = _CantidadCuotas.ToString();
            txtImporteCanonMunicipal.Text = _CanonMunicipal.ToString();

            FacturasImplement oFacturasImplement = new FacturasImplement();
            string sPeriodo = oFacturasImplement.GetUltimoPeriodoFacturadoBySocio(_idSocio);
            int anio = int.Parse(sPeriodo.Substring(0,3));
            int mes = int.Parse(sPeriodo.Substring(4,5));
            DateTime fechaPeriodo = new DateTime(anio, mes, 1);
            DateTime fechaDesde = fechaPeriodo.AddMonths(1);
            DateTime fechaHasta = fechaPeriodo.AddMonths(_CantidadCuotas);
            Meses mesDesde = (Meses)fechaDesde.Month;
            Meses mesHasta = (Meses)fechaHasta.Month;
            txtDesdeMes.Text = mesDesde.ToString();
            txtMesHasta.Text = mesHasta.ToString();
            txtDesdeAnio.Text = fechaDesde.Year.ToString();
            txtAnioHasta.Text = fechaHasta.Year.ToString();
        }
Beispiel #5
0
        private void Guardar()
        {
            bool Actualizar=false;
            if (_idSocio!=0)
                Actualizar=true;

                socios oSocio = new socios();
                SocioImplement oSocioImplement = new SocioImplement();

                oSocio.codigo_socio = this.mtxtNumero.Text.Substring(0, 6);
                oSocio.subcodigo_socio = this.mtxtNumero.Text.Substring(7, 2);
                oSocio.nombre = this.txtNombre.Text;
                if (!(int.Parse(this.cmbTipoDni.SelectedValue.ToString()) == 0)) oSocio.tipo_documento = int.Parse(this.cmbTipoDni.SelectedValue.ToString());
                oSocio.documento = int.Parse(this.mtxtDocumento.Text);
                oSocio.fecha_alta = this.dtpFecha.Value;
                if (!(int.Parse(this.cmbEstadoConexion.SelectedValue.ToString()) == 0)) oSocio.estado = int.Parse(this.cmbEstadoConexion.SelectedValue.ToString());
                oSocio.fin_estado = this.txtFinalizaEstado.Text;
                if (!(int.Parse(this.cmbTarifa.SelectedValue.ToString()) == 0)) oSocio.tarifa = int.Parse(this.cmbTarifa.SelectedValue.ToString());
                oSocio.fin_tarifa = this.txtFinalizaTarifa.Text;
                if (!(int.Parse(this.cmbIVA.SelectedValue.ToString()) == 0)) oSocio.iva = int.Parse(this.cmbIVA.SelectedValue.ToString());
                oSocio.cuit = this.mtxtCuit.Text;
                if (!(int.Parse(this.cmbCategoria.SelectedValue.ToString()) == 0)) oSocio.categoria = int.Parse(this.cmbCategoria.SelectedValue.ToString());

                oSocio.observaciones = "";

                if (!Actualizar)
                    _idSocio = oSocioImplement.Save(oSocio);
                else
                {
                    oSocio.id_socio = _idSocio;
                    oSocioImplement.Update(oSocio);
                }

                /****************************SOCIO CONEXION*****************************/
                socios_conexion oSocioConexion = new socios_conexion();
                SocioConexionImplement oSocioConexionImplement = new SocioConexionImplement();
                oSocioConexion.id_Socio = _idSocio;
                oSocioConexion.ubicacion_servicio = this.txtDTDistanciaMedianera.Text == "" ? 0 : float.Parse(this.txtDTDistanciaMedianera.Text.Replace(".", ","));
                oSocioConexion.medianera = int.Parse(this.cmbDTMedianera.SelectedValue.ToString());
                oSocioConexion.tipo_conexion = int.Parse(this.cmbDTTipoConexion.SelectedValue.ToString());
                oSocioConexion.distancia_a_red = this.txtDTDistanciaLinea.Text == "" ? 0 : float.Parse(this.txtDTDistanciaLinea.Text.Replace(".", ","));
                oSocioConexion.profundidad_red = this.txtDTProfondidad.Text == "" ? 0 : float.Parse(this.txtDTProfondidad.Text.Replace(".", ","));
                oSocioConexion.tipo_material = int.Parse(this.cmbDTTipoMaterial.SelectedValue.ToString());
                oSocioConexion.diametro_red = this.txtDTDiametro.Text == "" ? 0 : float.Parse(this.txtDTDiametro.Text.Replace(".", ","));
                oSocioConexion.medidor = this.txtDTNumero.Text;
                oSocioConexion.marca_medidor = this.txtDTMarca.Text;
                oSocioConexion.barrio = int.Parse(this.cmbDcBarrio.SelectedValue.ToString());
                oSocioConexion.calle = int.Parse(this.cmbDcCalle.SelectedValue.ToString());
                oSocioConexion.calle_altura = this.txtDcAltura.Text;
                oSocioConexion.piso = this.txtDcPiso.Text;
                oSocioConexion.dpto = this.txtDcDpto.Text;
                oSocioConexion.distrito_electoral = this.txtDcDistrito.Text == "" ? 0 : int.Parse(this.txtDcDistrito.Text);
                oSocioConexion.zona = int.Parse(this.cmbZona.SelectedValue.ToString());
                oSocioConexion.adic_domicilio = this.txtAdicDomicilioConexion.Text;

                if (!Actualizar)
                    oSocioConexionImplement.Save(oSocioConexion);
                else
                    oSocioConexionImplement.Update(oSocioConexion);

                /************************** SOCIO LOTE ***************************/
                socios_lote oSocioLote = new socios_lote();
                SocioLoteImplement oSocioLoteImplement = new SocioLoteImplement();
                oSocioLote.id_Socio = _idSocio;
                oSocioLote.barrio = int.Parse(this.cmbDlBarrio.SelectedValue.ToString());
                oSocioLote.manzana = this.txtLManzana.Text;
                oSocioLote.lote = this.txtLLote.Text;
                oSocioLote.calle = int.Parse(this.cmbDlCalle.SelectedValue.ToString());
                oSocioLote.calle_altura = this.txtDlAltura.Text;
                oSocioLote.piso = this.txtDlPiso.Text;
                oSocioLote.dpto = this.txtDLDpto.Text;
                oSocioLote.nomenclatura = this.mtbLNomenclarura.Text;
                oSocioLote.ruta_reparto = this.txtLRuta.Text == "" ? -1 : int.Parse(this.txtLRuta.Text);
                oSocioLote.orden_reparto = this.txtLOrden.Text == "" ? -1 : int.Parse(this.txtLOrden.Text);
                oSocioLote.cp = this.txtDLCP.Text;
                oSocioLote.localidad = int.Parse(this.cmbDLLocalidad.SelectedValue.ToString());
                oSocioLote.provincia = int.Parse(this.cmbDlProvincia.SelectedValue.ToString());
                oSocioLote.adic_domicilio = this.txtAdicDomicilioLegal.Text;

                if (!Actualizar)
                    oSocioLoteImplement.Save(oSocioLote);
                else
                    oSocioLoteImplement.Update(oSocioLote);

                /*************************** SOCIO VARIOS *****************************/
                socios_varios oSocioVarios = new socios_varios();
                SocioVariosImplement oSocioVariosmplement = new SocioVariosImplement();
                oSocioVarios.id_socio = _idSocio;
                oSocioVarios.profesion = this.txtVProfesion.Text;
                oSocioVarios.conyuge_nombre = this.txtVNombreConyuge.Text;
                oSocioVarios.conyuge_tipo_documento =  int.Parse(this.cmbVTipoDoc.SelectedValue.ToString());
                oSocioVarios.conyuge_documento = this.mtxtVDocumento.Text == "" ? -1 : int.Parse(this.mtxtVDocumento.Text);
                oSocioVarios.id_coop_luz = this.txtVNumSocioLuz.Text;//ver
                oSocioVarios.fecha_convenio_coop_luz = this.dtpVFechaAlta.Text;
                oSocioVarios.situacion_especial =  int.Parse(this.cmbSituacionEsp.SelectedValue.ToString());
                if (!Actualizar)
                    oSocioVariosmplement.Save(oSocioVarios);
                else
                    oSocioVariosmplement.Update(oSocioVarios);
        }
Beispiel #6
0
        private void CargarSocio()
        {
            SocioImplement oSocioImplement = new SocioImplement();
            socios oSocio = new socios();
            oSocio = oSocioImplement.Get(_idSocio);

            socios_lote oSocioLote = new socios_lote();
            SocioLoteImplement oSocioLoteImplement = new SocioLoteImplement();
            oSocioLote = oSocioLoteImplement.Get(_idSocio);

            socios_conexion oSocioConexion = new socios_conexion();
            SocioConexionImplement oSocioConexionImplement = new SocioConexionImplement();
            oSocioConexion = oSocioConexionImplement.Get(_idSocio);

            socios_varios oSocioVarios = new socios_varios();
            SocioVariosImplement oSocioVariosImplement = new SocioVariosImplement();
            oSocioVarios = oSocioVariosImplement.Get(_idSocio);
            this.mtxtNumero.Text = oSocio.codigo_socio +  oSocio.subcodigo_socio;
            this.txtNombre.Text = oSocio.nombre;
            this.cmbTipoDni.SelectedValue = oSocio.tipo_documento;
            if (this.cmbTipoDni.SelectedValue == null) this.cmbTipoDni.SelectedValue = 0;//Esto es cuando asigno algo que el combo no contiene
            if (oSocio.documento!=null)
                this.mtxtDocumento.Text = oSocio.documento.ToString();
            if (oSocio.fecha_alta != null)
                if (oSocio.fecha_alta != DateTime.Parse("01/01/1900"))
                    this.dtpFecha.Text = oSocio.fecha_alta.ToString();
            this.cmbEstadoConexion.SelectedValue = (oSocio.estado == null) ? 0 : oSocio.estado;
            if (this.cmbEstadoConexion.SelectedValue == null) this.cmbEstadoConexion.SelectedValue = 0;
            this.txtFinalizaEstado.Text = oSocio.fin_estado;
            this.cmbTarifa.SelectedValue = (oSocio.tarifa == null) ? 0 : oSocio.tarifa;
            if (this.cmbTarifa.SelectedValue == null) this.cmbTarifa.SelectedValue = 0;
            this.txtFinalizaTarifa.Text = oSocio.fin_tarifa;
            this.cmbIVA.SelectedValue = oSocio.iva;
            if (this.cmbIVA.SelectedValue == null) this.cmbIVA.SelectedValue = 0;
            this.mtxtCuit.Text = oSocio.cuit;
            this.cmbCategoria.SelectedValue = oSocio.categoria;
            if (this.cmbCategoria.SelectedValue == null) this.cmbCategoria.SelectedValue = 0;

            ///**************************** DOMICILIO CONEXION*****************************/

            this.cmbDcBarrio.SelectedValue =oSocioConexion.barrio;
            if (this.cmbDcBarrio.SelectedValue == null) this.cmbDcBarrio.SelectedValue = 0;
            this.cmbDcCalle.SelectedValue = oSocioConexion.calle;
            if (this.cmbDcCalle.SelectedValue == null) this.cmbDcCalle.SelectedValue = 0;
            this.txtDcAltura.Text = oSocioConexion.calle_altura;
            this.txtDcPiso.Text = oSocioConexion.piso;
            this.txtDcDpto.Text = oSocioConexion.dpto;
            this.txtDcDistrito.Text = (oSocioConexion.distrito_electoral == null) ? "" : oSocioConexion.distrito_electoral.ToString();
            this.cmbZona.SelectedValue = (oSocioConexion.zona == null) ? 0 : oSocioConexion.zona;
            if (this.cmbZona.SelectedValue == null) this.cmbZona.SelectedValue = 0;
            this.txtAdicDomicilioConexion.Text = oSocioConexion.adic_domicilio;

            ///**************************** DOMICILIO LEGAL *******************************/
            this.cmbDlProvincia.SelectedValue = oSocioLote.provincia;
            if (this.cmbDlProvincia.SelectedValue == null) this.cmbDlProvincia.SelectedValue = 0;
            this.cmbDlBarrio.SelectedValue = oSocioLote.barrio;
            if (this.cmbDlBarrio.SelectedValue == null) this.cmbDlBarrio.SelectedValue = 0;
            this.cmbDlCalle.SelectedValue = oSocioLote.calle;
            if (this.cmbDlCalle.SelectedValue == null) this.cmbDlCalle.SelectedValue = 0;
            this.cmbDLLocalidad.SelectedValue = oSocioLote.localidad;
            if (this.cmbDLLocalidad.SelectedValue == null) this.cmbDLLocalidad.SelectedValue = 0;
            this.txtDLCP.Text = oSocioLote.cp.ToString();
            this.txtDlAltura.Text = oSocioLote.calle_altura;
            this.txtDlPiso.Text = oSocioLote.piso;
            this.txtDLDpto.Text = oSocioLote.dpto;
            this.txtAdicDomicilioLegal.Text = oSocioLote.adic_domicilio;

            /*************************** VARIOS *****************************/
            this.txtVProfesion.Text = oSocioVarios.profesion;
            this.txtVNombreConyuge.Text = oSocioVarios.conyuge_nombre;
            this.cmbVTipoDoc.SelectedValue = oSocioVarios.conyuge_tipo_documento;
            if (this.cmbVTipoDoc.SelectedValue == null) this.cmbVTipoDoc.SelectedValue = 0;
            this.mtxtVDocumento.Text = oSocioVarios.conyuge_documento.ToString();
            this.txtVNumSocioLuz.Text = oSocioVarios.id_coop_luz;
            this.dtpVFechaAlta.Text = oSocioVarios.fecha_convenio_coop_luz;
            this.cmbSituacionEsp.SelectedValue = oSocioVarios.situacion_especial;
            if (this.cmbSituacionEsp.SelectedValue == null) this.cmbSituacionEsp.SelectedValue = 0;
            /************************** LOTE ***************************/

            this.mtbLNomenclarura.Text = oSocioLote.nomenclatura;
            this.txtLManzana.Text = oSocioLote.manzana;
            this.txtLLote.Text = oSocioLote.lote;
            this.txtLRuta.Text = oSocioLote.ruta_reparto.ToString();
            this.txtLOrden.Text = oSocioLote.orden_reparto.ToString();

            /*********************** DATOS TECNICOS **********************/
            socios_mediciones oSocioMedicion = new socios_mediciones();
            SocioMedicionImplement oSocioMedicionImplement = new SocioMedicionImplement();
            oSocioMedicion = oSocioMedicionImplement.ultimaMedicion(_idSocio);
            this.txtDTNumero.Text = oSocioConexion.medidor;
            this.txtDTMarca.Text = oSocioConexion.marca_medidor;
            ///VER
            this.txtDTEstados.Text = oSocioMedicion == null ? "" : oSocioMedicion.consumo.ToString();
            this.txtDTUltimaLectura.Text = oSocioMedicion == null ? "" : oSocioMedicion.lectura.ToString();

            this.txtDTDistanciaMedianera.Text = oSocioConexion.ubicacion_servicio.ToString();
            this.cmbDTMedianera.SelectedValue = oSocioConexion.medianera;
            if (this.cmbDTMedianera.SelectedValue == null) this.cmbDTMedianera.SelectedValue = 0;
            this.cmbDTTipoConexion.SelectedValue = oSocioConexion.tipo_conexion;
            if (this.cmbDTTipoConexion.SelectedValue == null) this.cmbDTTipoConexion.SelectedValue = 0;
            this.txtDTDistanciaLinea.Text = oSocioConexion.distancia_a_red.ToString();
            this.txtDTProfondidad.Text = oSocioConexion.profundidad_red.ToString();
            this.cmbDTTipoMaterial.SelectedValue = oSocioConexion.tipo_material;
            if (this.cmbDTTipoMaterial.SelectedValue == null) this.cmbDTTipoMaterial.SelectedValue = 0;
            this.txtDTDiametro.Text = oSocioConexion.diametro_red.ToString();

            //VER
            CargarBanderas(oSocioVarios);
        }
Beispiel #7
0
        private void CargarBanderas(socios_varios oSocioVarios )
        {
            ConvenioImplement oConvenioImplement = new ConvenioImplement();
                ProcesoJudicialImplement oProcesoJudicialImplement=new ProcesoJudicialImplement();
                IntimacionImplement oIntimacionImplement=new IntimacionImplement();
                this.lblConvenioNoVolcado.Visible = (!oConvenioImplement.ConvenioVolcado(_idSocio));
                // Muestra el cartel [CO] = "En CODENE"
                //this.lblEnCodene.Visible=(bool)oSocioVarios.codene;
                // Muestra el cartel [PJ] = "En proceso judicial"
                this.lblEnProcJudicial.Visible = oProcesoJudicialImplement.Estado(_idSocio);
                // Muestra el cartel [IT] = "Intimado"
                if (oSocioVarios.intimado == null)
                    this.lblIntimado.Visible = false;
                else
                    this.lblIntimado.Visible = (bool)oSocioVarios.intimado;
                if (this.lblIntimado.Visible)
                {
                    string msjIntimado = "El socio ha sido intimado por deuda el " + oIntimacionImplement.GetByIdSocioUltimo(_idSocio).fecha;
                    this.toolTip.SetToolTip(this.lblIntimado, "lblIntimado");
                }

                string msjFaltante=VerificarInformacionFaltante(_idSocio);
                this.lblInfoFaltante.Visible = (msjFaltante != "");
        }
        private void Guardar()
        {
            intimacion oIntimacion = new intimacion();
            IntimacionImplement oIntimacionImplement = new IntimacionImplement();
            string Mensaje;
            Mensaje = "";
            if (this.txtFecha.Text.Length == 0) { Mensaje += "Falta ingresar fecha." + Environment.NewLine; };
            if (int.Parse(cmbTipoIntimacion.SelectedValue.ToString()) == 0) { Mensaje += "Falta tipo de intimacion." + Environment.NewLine; };

            if (Mensaje.Length > 0)
            {
                frmVentanaInformativa ofrmVentanaInformativa = new frmVentanaInformativa(Mensaje);
                ofrmVentanaInformativa.ShowDialog();
            }
            else
            {
                oIntimacion.fecha = DateTime.Parse(this.txtFecha.Text);
                oIntimacion.id_socio = _idSocio;
                oIntimacion.tipo = int.Parse(this.cmbTipoIntimacion.SelectedValue.ToString());
                oIntimacionImplement.Save(oIntimacion);
                CargarGrilla(_idSocio);
                this.panelAdd.Visible = false;
                //Asigno Marca para el Socio
                socios_varios oSocioVarios = new socios_varios();
                SocioVariosImplement oSocioVarioImplement = new SocioVariosImplement();
                oSocioVarios = oSocioVarioImplement.Get(_idSocio);
                oSocioVarios.intimado = true;
                oSocioVarioImplement.Update(oSocioVarios);
                this.panelAdd.Visible = false;
            }
        }
 private void QuitarMarca()
 {
     socios_varios oSocioVarios = new socios_varios();
     SocioVariosImplement oSocioVarioImplement = new SocioVariosImplement();
     oSocioVarios = oSocioVarioImplement.Get(_idSocio);
     oSocioVarios.intimado = false;
     oSocioVarioImplement.Update(oSocioVarios);
     this.panelAdd.Visible = false;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the socios_varios EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTosocios_varios(socios_varios socios_varios)
 {
     base.AddObject("socios_varios", socios_varios);
 }
 /// <summary>
 /// Create a new socios_varios object.
 /// </summary>
 /// <param name="id_socio">Initial value of the id_socio property.</param>
 public static socios_varios Createsocios_varios(global::System.Int32 id_socio)
 {
     socios_varios socios_varios = new socios_varios();
     socios_varios.id_socio = id_socio;
     return socios_varios;
 }