예제 #1
0
 /// <summary>
 /// Carga la grid con datos si tiene permisos necesarios.
 /// </summary>
 private void pmtdCargarGrid()
 {
     if (propiedades.bitConsultar == true)
     {
         blDeudas blDeu = new blDeudas();
         this.dgvDeudas.AutoGenerateColumns = false;
         this.dgvDeudas.DataSource          = blDeu.gmtdConsultarTodos();
     }
 }
예제 #2
0
        private void dgv_DoubleClick(object sender, EventArgs e)
        {
            tblDeuda deuda = new tblDeuda();
            DataGridViewSelectedRowCollection rows = ((DataGridView)sender).SelectedRows;

            foreach (DataGridViewRow dato in rows)
            {
                deuda = new blDeudas().gmtdConsultar(Convert.ToInt32(dato.Cells[0].Value));
            }
            this.txtCodigo.Enabled          = false;
            this.txtCodigo.Text             = deuda.intCodDeu.ToString();
            this.cboServicios.SelectedValue = deuda.strCodSse;
            this.txtValor.Text = deuda.decDebeDeu.ToString("####");
            if (deuda.bitGlobalDeu == true)
            {
                this.optGlobal.Checked = true;
            }
            else
            {
                this.optParticular.Checked = true;
            }
            this.txtCedula.Text         = deuda.strCedula;
            this.cboPares.SelectedValue = deuda.strCodigoPar;
        }