public void Eliminar_Horarios(ref cls_Horarios_DAL Obj_Horarios_DAL, string sFiltro)
        {
            try
            {
                cls_BD_BLL Obj_BD_BLL = new cls_BD_BLL();
                cls_BD_DAL Obj_BD_DAL = new cls_BD_DAL();

                Obj_BD_DAL.SNomb_Sp   = "sp_Eliminar_Horarios";
                Obj_BD_DAL.SNombTabla = "Horarios";

                Obj_BD_BLL.Crear_DT_Parametros(ref Obj_BD_DAL);

                Obj_BD_DAL.dt_Parametros.Rows.Add("@filtro", "3", sFiltro);

                Obj_BD_BLL.Exec_NonQuery(ref Obj_BD_DAL);

                if (Obj_BD_DAL.SMsjError == string.Empty)
                {
                    Obj_Horarios_DAL.sMsjError = string.Empty;
                }
                else
                {
                    Obj_Horarios_DAL.sMsjError = Obj_BD_DAL.SMsjError;
                }
            }
            catch (Exception ex)
            {
                Obj_Horarios_DAL.sMsjError = ex.Message.ToString();
            }
        }
        public void Listar_Horarios(ref cls_Horarios_DAL Obj_Horarios_DAL)
        {
            try
            {
                cls_BD_BLL Obj_BD_BLL = new cls_BD_BLL();
                cls_BD_DAL Obj_BD_DAL = new cls_BD_DAL();

                Obj_BD_DAL.SNomb_Sp   = "sp_Listar_Horarios";
                Obj_BD_DAL.SNombTabla = "Horarios";

                Obj_BD_BLL.Exec_DataAdapter(ref Obj_BD_DAL);

                if (Obj_BD_DAL.SMsjError == string.Empty)
                {
                    Obj_Horarios_DAL.Obj_DT    = Obj_BD_DAL.Obj_DS.Tables[0];
                    Obj_Horarios_DAL.sMsjError = string.Empty;
                }
                else
                {
                    Obj_Horarios_DAL.sMsjError = Obj_BD_DAL.SMsjError;
                }
            }
            catch (Exception ex)
            {
                Obj_Horarios_DAL.sMsjError = ex.Message.ToString();
            }
        }
 public void Modificar_Horarioss(ref cls_Horarios_DAL Obj_Horarios_DAL)
 {
     try
     {
     }
     catch (Exception)
     {
     }
 }
 public void Insertar_Horarios(ref cls_Horarios_DAL Obj_Horarios_DAL)
 {
     try
     {
     }
     catch (Exception)
     {
     }
 }
        private void tsbtnModificar_Click(object sender, EventArgs e)
        {
            if (dgvHorarios.Rows.Count > 0)
            {
                Obj_horarios_DAL             = new cls_Horarios_DAL();
                Obj_horarios_DAL.cAx         = 'U';
                Obj_horarios_DAL.cIdHorarios = Convert.ToChar(dgvHorarios.SelectedRows[0].Cells[0].Value.ToString());
                //Obj_horarios_DAL.SDescEstado = dgvHorarios.SelectedRows[0].Cells[1].Value.ToString();



                Pantallas.Editar.FRM_Editar_Estados Pant_Modif_Estados = new Editar.FRM_Editar_Estados();
                //Pant_Modif_Estados.Obj_Estados_Editar_DAL = Obj_horarios_DAL;
                Pant_Modif_Estados.ShowDialog();

                cargarDatos();
            }
            else
            {
                MessageBox.Show("Debe seleccionar un Estado", "Alerta",
                                MessageBoxButtons.OK, MessageBoxIcon.Hand);
            }
        }