Пример #1
0
 public void CargarMiembros()
 {
     MiembroDropDownList.DataSource     = Miembros.Listar("IdClub = " + ClubDropDownList.SelectedValue, "IdMiembro, Nombres");
     MiembroDropDownList.DataTextField  = "Nombres";
     MiembroDropDownList.DataValueField = "IdMiembro";
     MiembroDropDownList.DataBind();
 }
Пример #2
0
 public void Limpiar()
 {
     FechaTexBox.Text = DateTime.Now.ToString();
     MontoTexBox.Text = "";
     CuentaDropDownList.ClearSelection();
     MiembroDropDownList.ClearSelection();
     TipoIngresoDropDownList.ClearSelection();
     ObservacionTexBox.Text          = "";
     RequiredFieldValidator1.IsValid = true;
     RequiredFieldValidator2.IsValid = true;
     RequiredFieldValidator3.IsValid = true;
 }
Пример #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                MiembroDropDownList.DataSource     = repositorioBase.GetList(t => true);
                MiembroDropDownList.DataValueField = "MiembroId";
                MiembroDropDownList.DataTextField  = "Nombre";
                MiembroDropDownList.DataBind();

                JuegoDropDownList.DataSource     = repositorioBasev.GetList(t => true);
                JuegoDropDownList.DataValueField = "VideoJuegoId";
                JuegoDropDownList.DataTextField  = "Titulo";
                MiembroDropDownList.DataBind();
                JuegoDropDownList.DataBind();

                ViewState["Renta"]        = new Renta();
                ViewState["Detalle"]      = new RentaDetalle();
                FechaTextBox.Text         = DateTime.Now.ToString("yyyy-MM-dd");
                FechaDevueltaTextBox.Text = DateTime.Now.ToString("yyyy-MM-dd");
            }
        }
Пример #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                FechaTexBox.Text = DateTime.Now.ToString();

                MiembroDropDownList.DataSource     = Miembro.Listado(" * ", "1=1", "");
                MiembroDropDownList.DataTextField  = "Nombre";
                MiembroDropDownList.DataValueField = "MiembroId";
                MiembroDropDownList.DataBind();

                CuentaDropDownList.DataSource     = Cuenta.Listado(" * ", "1=1", "");
                CuentaDropDownList.DataTextField  = "Descripcion";
                CuentaDropDownList.DataValueField = "CuentaId";
                CuentaDropDownList.DataBind();

                TipoIngresoDropDownList.DataSource     = TipodeIngreso.Listado(" * ", "1=1", "");
                TipoIngresoDropDownList.DataTextField  = "Descripcion";
                TipoIngresoDropDownList.DataValueField = "TipoIngresoId";
                TipoIngresoDropDownList.DataBind();
            }
        }