示例#1
0
 public void Limpiar()
 {
     FechaTextBox.Text = string.Empty;
     MiembroIdDropDownList.ClearSelection();
     MontoTextBox.Text = string.Empty;
     TipoEgresoIdDropDownList.ClearSelection();
     CuentaIdDropDownList.ClearSelection();
     ObservacionesTextBox.Text = string.Empty;
 }
示例#2
0
        public void LlenarDropDownList()
        {
            Cuentas      cuenta     = new Cuentas();
            TiposEgresos tipoEgreso = new TiposEgresos();
            Miembros     miembro    = new Miembros();

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

            TipoEgresoIdDropDownList.DataSource     = tipoEgreso.Listado(" * ", "1=1", "");
            TipoEgresoIdDropDownList.DataTextField  = "Descripcion";
            TipoEgresoIdDropDownList.DataValueField = "TipoEgresoId";
            TipoEgresoIdDropDownList.DataBind();

            MiembroIdDropDownList.DataSource     = miembro.Listado(" * ", "1=1", "");
            MiembroIdDropDownList.DataTextField  = "Nombre";
            MiembroIdDropDownList.DataValueField = "MiembroId";
            MiembroIdDropDownList.DataBind();
        }