Esempio n. 1
0
 private void biIngresarCaja_Click(object sender, EventArgs e)
 {
     if (Application.OpenForms["frmCajaChicaRegistro"] != null)
     {
         Application.OpenForms["frmCajaChicaRegistro"].Activate();
     }
     else
     {
         frmCajaChicaRegistro form = new frmCajaChicaRegistro();
         form.tipoCaja                  = tipocaja;
         form.Tipo                      = 1;
         form.tip                       = 2;
         form.Proceso                   = 1;
         form.AperturaCaja              = 2;
         form.txtDocumento.Text         = dgvLiquidaciones.SelectedRows[0].Cells[numDocumento.Name].Value.ToString();
         form.txtMonto.Text             = dgvLiquidaciones.SelectedRows[0].Cells[montoLiquidado.Name].Value.ToString();
         form.txtMontoPendiente.Visible = false;
         form.label9.Visible            = false;
         form.label6.Visible            = false;
         form.txtRecibo.Visible         = false;
         form.ShowDialog();
         Listaliquidaciones();
         this.Close();
     }
 }
Esempio n. 2
0
        private void dgvRecibos_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            frmCajaChicaRegistro form = (frmCajaChicaRegistro)Application.OpenForms["frmCajaChicaRegistro"];

            form.codRec                 = recibos.CodRecibos;
            form.txtRecibo.Text         = doc;
            form.monto                  = recibos.Monto;
            form.txtMontoPendiente.Text = recibos.Monto.ToString();
            this.Close();
        }
Esempio n. 3
0
 private void btnAceptar_Click(object sender, EventArgs e)
 {
     if (dgvRecibos.SelectedRows.Count > 0)
     {
         frmCajaChicaRegistro form = (frmCajaChicaRegistro)Application.OpenForms["frmCajaChicaRegistro"];
         form.codRec                 = recibos.CodRecibos;
         form.txtRecibo.Text         = doc;
         form.monto                  = recibos.Monto;
         form.txtMontoPendiente.Text = recibos.Monto.ToString();
         this.Close();
     }
 }
Esempio n. 4
0
 private void biIngreso_Click(object sender, EventArgs e)
 {
     if (Application.OpenForms["frmCajaChicaRegistro"] != null)
     {
         Application.OpenForms["frmCajaChicaRegistro"].Activate();
     }
     else
     {
         frmCajaChicaRegistro form = new frmCajaChicaRegistro();
         form.tipoCaja = tipo;
         form.Tipo     = 1;//ingreso
         form.Proceso  = 1;
         form.ShowDialog();
         VerificaSaldoCaja();
         ListaCajaChica();
     }
 }
Esempio n. 5
0
 private void dgvMovimientosCajaChica_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex != -1)
     {
         frmCajaChicaRegistro frm = new frmCajaChicaRegistro();
         if ((dgvMovimientosCajaChica.SelectedRows[0].Cells[tipoMovimiento.Name].Value.ToString()) == "INGRESO")
         {
             frm.Tipo = 1;
         }
         else if ((dgvMovimientosCajaChica.SelectedRows[0].Cells[tipoMovimiento.Name].Value.ToString()) == "EGRESO")
         {
             frm.Tipo = 2;
         }
         frm.Proceso = 3;
         //frm.Caja = Caja;
         frm.ShowDialog();
     }
 }
Esempio n. 6
0
 private void biEgreso_Click(object sender, EventArgs e)
 {
     if (Application.OpenForms["frmCajaChicaRegistro"] != null)
     {
         Application.OpenForms["frmCajaChicaRegistro"].Activate();
     }
     else
     {
         frmCajaChicaRegistro form = new frmCajaChicaRegistro();
         form.tipoCaja          = tipo;
         form.Tipo              = 2;//egreso
         form.Proceso           = 1;
         form.SaldoCaja         = Convert.ToDecimal(lblSaldoCaja.Text.Trim());
         form.lblSaldoCaja.Text = lblSaldoCaja.Text.Trim();
         form.ShowDialog();
         VerificaSaldoCaja();
         ListaCajaChica();
     }
 }
Esempio n. 7
0
 private void biAperturaCajachica_Click(object sender, EventArgs e)
 {
     if (Saldo == 0)
     {
         if (Application.OpenForms["frmCajaChicaRegistro"] != null)
         {
             Application.OpenForms["frmCajaChicaRegistro"].Activate();
         }
         else
         {
             frmCajaChicaRegistro form = new frmCajaChicaRegistro();
             form.Tipo         = 1;
             form.Proceso      = 1;
             form.AperturaCaja = 1;
             form.ShowDialog();
             ListaIngresosCaja();
             VerificaSaldoCaja();
         }
     }
 }