protected override void Actualizar()
        {
            try
            {
                var cuart = new z_cuarteleros().getObjectz_cuarteleros((int)listActuales.SelectedValue);
                cuart.rut = textRut.Text;
                cuart.fecha_nacimiento = DateTime.Parse(textFechaNac.Text);
                cuart.apellidos        = textApellidos.Text;
                cuart.nombres          = textNombres.Text;
                cuart.alergia          = textAlergia.Text;
                cuart.padece           = textPadece.Text;
                cuart.tipo_sangre      = textSangre.Text;

                cuart.telefono    = textFono.Text;
                cuart.celular     = textMovil.Text;
                cuart.id_compania = (int)((DataRowView)comboCompania.SelectedItem).Row["id_compania"];

                cuart.modifyz_cuarteleros(cuart);
                Source = cuart.Getz_cuartelerosLista().Tables[0];
                MessageBox.Show("Operación realizada correctamente.", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            catch (Exception ex)
            {
                Log.ShowAndLog(ex);
            }
        }
        protected override void Insertar()
        {
            try
            {
                var cuart = new z_cuarteleros
                {
                    rut = textRut.Text,
                    fecha_nacimiento = DateTime.Parse(textFechaNac.Text),
                    apellidos        = textApellidos.Text,
                    nombres          = textNombres.Text,
                    alergia          = textAlergia.Text,
                    padece           = textPadece.Text,
                    tipo_sangre      = textSangre.Text,
                    telefono         = textFono.Text,
                    celular          = textMovil.Text,
                    id_compania      = ((int)((DataRowView)comboCompania.SelectedItem).Row["id_compania"])
                };

                cuart.addz_cuarteleros(cuart);
                Source = cuart.Getz_cuartelerosLista().Tables[0];
                MessageBox.Show("Operación realizada correctamente.", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            catch (Exception ex)
            {
                Log.ShowAndLog(ex);
            }
        }
 protected override void Eliminar()
 {
     try
     {
         var cuart = new z_cuarteleros();
         cuart.deletez_cuarteleros((int)listActuales.SelectedValue);
         Source = cuart.Getz_cuartelerosLista().Tables[0];
     }
     catch (Exception ex)
     {
         Log.ShowAndLog(ex);
     }
 }