Ejemplo n.º 1
0
        private void biEditar_Click(object sender, EventArgs e)
        {
            if (dgvRecibos.Rows.Count > 0 && dgvRecibos.SelectedRows.Count > 0)
            {
                if (Convert.ToDecimal(dgvRecibos.SelectedRows[0].Cells[monto.Name].Value) == (Convert.ToDecimal(dgvRecibos.SelectedRows[0].Cells[montopendiente.Name].Value.ToString())))
                {
                    frmRecibos_CajaChica frm = new frmRecibos_CajaChica();
                    frm.Proceso = 2;
                    //frm.Caja = Caja;
                    //frm.txtCodigo.Text = dgvRecibos.SelectedRows[0].Cells[codigo.Name].Value.ToString();
                    frm.txtDescripcion.Text = dgvRecibos.SelectedRows[0].Cells[concepto.Name].Value.ToString();
                    frm.txtMonto.Text       = dgvRecibos.SelectedRows[0].Cells[monto.Name].Value.ToString();
                    //frm.txtSerie.Text = dgvRecibos.SelectedRows[0].Cells[serie.Name].Value.ToString();
                    //frm.txtNumeracion.Text = dgvRecibos.SelectedRows[0].Cells[numeracion.Name].Value.ToString();
                    //frm.txtSerie.Enabled = false;
                    //frm.txtNumeracion.Enabled = false;
                    frm.dtpFecha.Value = Convert.ToDateTime(dgvRecibos.SelectedRows[0].Cells[fecha.Name].Value.ToString());

                    frm.lblSaldoCaja.Text = lblSaldoCaja.Text.Trim();
                    frm.tipocaja          = tipocaja;
                    frm.ShowDialog();
                    RecibosFechas();
                    VerificaSaldoCaja();
                }
                else
                {
                    MessageBox.Show("No se Puede Editar, Ya tiene un Monto sustentado");
                }
            }
        }
Ejemplo n.º 2
0
        private void dgvMovimientosCajaChica_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex != -1)
            {
                frmRecibos_CajaChica frm = new frmRecibos_CajaChica();
                frm.Proceso = 3;
                //frm.txtCodigo.Text = dgvRecibos.SelectedRows[0].Cells[codigo.Name].Value.ToString();
                frm.txtDescripcion.Text = dgvRecibos.SelectedRows[0].Cells[concepto.Name].Value.ToString();
                frm.txtMonto.Text       = dgvRecibos.SelectedRows[0].Cells[monto.Name].Value.ToString();
                //frm.txtSerie.Text = dgvRecibos.SelectedRows[0].Cells[serie.Name].Value.ToString();
                //frm.txtNumeracion.Text = dgvRecibos.SelectedRows[0].Cells[numeracion.Name].Value.ToString();
                //frm.txtSerie.Enabled = false;
                //frm.txtNumeracion.Enabled = false;
                frm.dtpFecha.Value = Convert.ToDateTime(dgvRecibos.SelectedRows[0].Cells[fecha.Name].Value.ToString());

                frm.lblSaldoCaja.Text = lblSaldoCaja.Text.Trim();
                frm.ShowDialog();
            }
        }
Ejemplo n.º 3
0
 private void biRecibo_Click(object sender, EventArgs e)
 {
     if (Application.OpenForms["frmRecibos_CajaChica"] != null)
     {
         Application.OpenForms["frmRecibos_CajaChica"].Activate();
     }
     else
     {
         frmRecibos_CajaChica form = new frmRecibos_CajaChica();
         form.tipocaja          = tipo;
         form.Proceso           = 1;
         form.CodCaja           = CajaChica.Codcaja;
         form.SaldoCaja         = Convert.ToDecimal(lblSaldoCaja.Text.Trim());
         form.lblSaldoCaja.Text = lblSaldoCaja.Text.Trim();
         form.ShowDialog();
         VerificaSaldoCaja();
         ListaCajaChica();
     }
 }