private void btnAgregarBitacoraComercial_Click(object sender, EventArgs e)
 {
     try
     {
         EfideFactoring.Formula.GestionComercial.frmMntBitacoraComercialDato frm = new EfideFactoring.Formula.GestionComercial.frmMntBitacoraComercialDato();
         frm.Operacion             = "N";
         frm._IdSocio              = Codigo;
         frm._NombreSocio          = _IdPagadoraDsc;
         frm._IdGestor             = _IdGestor;
         frm._NombreGestor         = _NombreGestor;
         frm._FlgOrigen            = 0;
         frm._FlgBitacoraComercial = 0;
         frm.ShowDialog();
         CargarBitacoraComercial();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
 private void dgvBitacoraComercial_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         if (e.ColumnIndex < 0)
         {
             return;
         }
         if (e.RowIndex == -1)
         {
             return;
         }
         if (dgvBitacoraComercial.Columns[e.ColumnIndex].Name == "btnAtender")
         {
             EfideFactoring.Formula.GestionComercial.frmMntBitacoraComercialDato ofrm = new EfideFactoring.Formula.GestionComercial.frmMntBitacoraComercialDato();
             ofrm.Operacion     = "M";
             ofrm.OrigenAtender = 1;
             ofrm.IdBitacoraComercialGenerada = dgvBitacoraComercial.Rows[e.RowIndex].Cells["IdBitacoraComercial"].Value.ToString(); // dgvBitacoraComercial.CurrentRow.Cells["IdBitacoraComercial"].Value.ToString();
             ofrm.Codigo                = dgvBitacoraComercial.Rows[e.RowIndex].Cells["IdBitacoraComercial"].Value.ToString();       // dgvBitacoraComercial.CurrentRow.Cells["IdBitacoraComercial"].Value.ToString();
             ofrm._IdSocio              = dgvBitacoraComercial.Rows[e.RowIndex].Cells["IdSocio"].Value.ToString();                   //dgvBitacoraComercial.CurrentRow.Cells["IdSocio"].Value.ToString();
             ofrm._NombreSocio          = dgvBitacoraComercial.Rows[e.RowIndex].Cells["vcSocio"].Value.ToString();                   //dgvBitacoraComercial.CurrentRow.Cells["vcSocio"].Value.ToString();
             ofrm._NombreGestor         = cboEjecutivo.Text;
             ofrm._IdGestor             = cboEjecutivo.SelectedValue.ToString();
             ofrm._FlgOrigen            = 0;
             ofrm._FlgBitacoraComercial = 0;
             ofrm.ShowDialog();
             CargarBitacoraComercial();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }