private void EsTarjeta() { fp.LeerFormasPago(Convert.ToInt32(cboFormaPago.SelectedValue)); p.EsTarjeta = fp.EsTarjeta; if (p.EsTarjeta == "SI") { txtNoTarjeta.Visible = true; txtFExpMes.Visible = true; txtFExpAno.Visible = true; txtNoAuto.Visible = true; lblNoTarjeta.Visible = true; lblFExpira.Visible = true; lblseparador.Visible = true; lblNoAutoriza.Visible = true; } else { txtNoTarjeta.Visible = false; txtFExpMes.Visible = false; txtFExpAno.Visible = false; txtNoAuto.Visible = false; lblNoTarjeta.Visible = false; lblFExpira.Visible = false; lblseparador.Visible = false; lblNoAutoriza.Visible = false; } // cboNoTarjeta.SelectedIndex = 0; txtFExpMes.Text = ""; txtFExpAno.Text = ""; txtNoAuto.Text = ""; }
private void Asignar() { tp.LeerTiposPago(p.idTippag); fp.LeerFormasPago(p.idForpag); usr.LeerUsuario(p.idUsuarioAlt); txtNum.Text = p.Consec.ToString(); txtFecPag.Text = p.FechaPago.ToString("d"); txtFecVenc.Text = p.FechaReferencia.ToString("d"); txtTipPag.Text = tp.Nombre; txtFormPag.Text = fp.Nombre; txtNoTarj.Text = p.NoTarjeta; txtFecExp.Text = p.FechaExpiracion.ToString("d"); txtNoAut.Text = p.NoAutorizacion; txtImp.Text = p.ImporteBase.ToString("N2"); txtDescCap.Text = p.PorDsctoCapital.ToString("N6"); txtDescInt.Text = p.PorDsctoInteres.ToString("N6"); txtImpDesCap.Text = p.ImporteDsctoCapital.ToString("N2"); txtImpDesInt.Text = p.ImporteDsctoInteres.ToString("N2"); txtTotal.Text = p.Importe.ToString("N2"); txtIntMor.Text = p.InteresMoratorio.ToString("N2"); txtTotPag.Text = p.TotalPagado.ToString("N2"); txtTipCambio.Text = p.TipoCambio.ToString("N2"); txtRef.Text = p.Referencia; txtDepos.Text = lp.Nombre; txtUsrAlt.Text = usr.Nombre; txtFecAlt.Text = p.FechorAlt.ToString("d"); txtNoEng.Text = p.NoEnganche.ToString(); txtNoMens.Text = p.NoMensualidad.ToString(); txtFecRecep.Text = p.FechaRecepcion.ToString("d"); FechasNulas(); }