Beispiel #1
0
        private void LlenarCombo()
        {
            AnalisisDropdownList.Items.Clear();
            RepositorioBase <Analisis> repositorio = new RepositorioBase <Analisis>();

            AnalisisDropdownList.DataSource     = repositorio.GetList(x => true);
            AnalisisDropdownList.DataValueField = "AnalisisID";
            AnalisisDropdownList.DataTextField  = "AnalisisID";
            AnalisisDropdownList.DataBind();
        }
Beispiel #2
0
 private void Limpiar()
 {
     IdTextBox.Text = string.Empty;
     AnalisisDropdownList.ClearSelection();
     fechaTexbox.Text    = DateTime.Now.ToString();
     MontoTextBox.Text   = 0.ToString();
     BalanceTextBox.Text = 0.ToString();
     ViewState["Pago"]   = new Pago();
     LlenarCombo();
     this.BindGrid();
 }
Beispiel #3
0
 private void LlenarCombo()
 {
     AnalisisDropdownList.Items.Clear();
     RepositorioAnalisis repositorioAnalisis = new RepositorioAnalisis();
     List<Analisis> lista = repositorioAnalisis.GetList(x => x.Balance > 0);
     repositorioAnalisis.Dispose();
     AnalisisDropdownList.DataSource = lista;
     AnalisisDropdownList.DataValueField = "AnalisisID";
     AnalisisDropdownList.DataTextField = "AnalisisID";
     AnalisisDropdownList.DataBind();
     AnalisisDropdownList_TextChanged(null, null);
 }