Esempio n. 1
0
 private void btnCambiar_Click(object sender, EventArgs e)
 {
     FacturasImplement oFacturasImplement = new FacturasImplement();
     cobranzas oCobranza = new cobranzas();
     CobranzasImplement oCobranzasImplement = new CobranzasImplement();
     if (oFacturasImplement.ExisteCobranza(_idFactura))
     {
         oCobranza = oCobranzasImplement.GetByIdFactura(_idFactura);
         if (oCobranza != null)
         {
             oCobranza.id_caja = int.Parse(cmbCajaNueva.SelectedValue.ToString());
             oCobranzasImplement.Update(oCobranza);
             this.Close();
         }
     }
 }
Esempio n. 2
0
        private void frmCambiarCaja_Load(object sender, EventArgs e)
        {
            CajasImplement oCajasImplement = new CajasImplement();
            cobranzas oCobranza = new cobranzas();
            CobranzasImplement oCobranzasImplement = new CobranzasImplement();
            oCobranza = oCobranzasImplement.GetByIdFactura(_idFactura);
            _caja = oCobranza.id_caja.ToString();

            txtCajaActual.Text = _caja;
            txtCajaActualDescripcion.Text = oCajasImplement.Get(int.Parse(_caja)).caja;
            CargarCajasActivas();
        }