Esempio n. 1
0
 /// <summary>
 /// Carga los laboratorios
 /// </summary>
 private void CargarLaboratorio()
 {
     ILaboratorios bdd = new BusinessLogic();
     _laboratorios = bdd.ObtenerLaboratorio();
     ddlLaboratorio.DataSource = _laboratorios;
     ddlLaboratorio.DataTextField = "NOMBRELABORATORIO";
     ddlLaboratorio.DataBind();
 }
 private void CargarLaboratorios()
 {
     ILaboratorios bdd = new BusinessLogic();
     List<LABORATORIO> laboratorios = bdd.ObtenerLaboratorio();
     ddlLaboratorios.DataSource = laboratorios;
     ddlLaboratorios.DataTextField = "NOMBRELABORATORIO";
     ddlLaboratorios.DataValueField = "IDLABORATORIO";
     ddlLaboratorios.DataBind();
 }
Esempio n. 3
0
 public void ObtenerLaboratorioTest1()
 {
     ILaboratorios target = new BusinessLogic(); // TODO: Initialize to an appropriate value
     string corporacion = string.Empty;
     List<LABORATORIO> expected = null; // TODO: Initialize to an appropriate value
     List<LABORATORIO> actual;
     actual = target.ObtenerLaboratorio(corporacion);
     Assert.AreNotEqual(expected, actual);
 }
Esempio n. 4
0
 public void ObtenerLaboratorioTest()
 {
     BusinessLogic target = new BusinessLogic(); // TODO: Initialize to an appropriate value
     List<LABORATORIO> expected = null; // TODO: Initialize to an appropriate value
     List<LABORATORIO> actual;
     actual = target.ObtenerLaboratorio();
     Assert.AreNotEqual(expected, actual);
 }
Esempio n. 5
0
 private void CargarLaboratorios()
 {
     ILaboratorios bdd = new BusinessLogic();
     List<LABORATORIO> laboratorios = bdd.ObtenerLaboratorio();
     Session.Add("laboratorios", laboratorios);
 }
Esempio n. 6
0
 /// <summary>
 /// obtiene la lista de laboratorios de la base de datos
 /// </summary>
 private void CargarLaboratorios()
 {
     try
     {
         ILaboratorios negocio = new BusinessLogic();
         _laboratorios = negocio.ObtenerLaboratorio();
         Session.Add("LaboratoriosTemp", _laboratorios);
         ddlLaboratorios.DataSource = _laboratorios;
         ddlLaboratorios.DataTextField = "NOMBRELABORATORIO";
         ddlLaboratorios.DataBind();
     }
     catch (Exception ex)
     {
         ShowError(ex.Message, true);
     }
 }