private void MostrarCaja() { CajasImplement oCajasImplement = new CajasImplement(); txtCajaNuevaDescripcion.Text = oCajasImplement.Get(int.Parse(cmbCajaNueva.SelectedValue.ToString())).caja; }
private void MostrarCaja() { CajasImplement oCajasImplement = new CajasImplement(); txtNombreCaja.Text = oCajasImplement.Get(int.Parse(cmbCaja.SelectedValue.ToString())).caja; _fechaCobroDistinta = (bool)oCajasImplement.Get(int.Parse(cmbCaja.SelectedValue.ToString())).fecha_cobro_distinta; if (_fechaCobroDistinta) { lblFechaCobro.Visible = true; dtpFechaCobro.Visible = true; dtpFechaCobro.Enabled = true; } else { lblFechaCobro.Visible = false; dtpFechaCobro.Visible = false; dtpFechaCobro.Enabled = false; } }
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(); }