protected void CargarInsumos() { cboInsumos.DataSource = InsumoDao.ObtenerInsumosValidos(); cboInsumos.DataValueField = "IdInsumo"; cboInsumos.DataTextField = "Descripcion"; cboInsumos.DataBind(); }
public ActionResult EntregarInsumo() { var insumoDao = new InsumoDao(db); var insumos = insumoDao.GetInsumos(); ViewBag.Insumos = insumos; return(View()); }
public ActionResult VerInventarioGeneral() { var insumoDao = new InsumoDao(db); var insumos = insumoDao.GetInsumos(); ViewBag.Insumos = insumos; return(View()); }
protected void RestarInsumos() { int i = 0; while (i < ListaInsumosxIntervencion.Count()) { InsumoDao.RestarInsumos(ListaInsumosxIntervencion[i].idInsumo, ListaInsumosxIntervencion[i].cantidadIntervencion); i++; } }
protected void cargarCombos() { cboProveedor.DataSource = ProveedorDao.obtener(); cboProveedor.DataValueField = "idProveedor"; cboProveedor.DataTextField = "nombreResponsable"; cboProveedor.DataBind(); cboInsumos.DataSource = InsumoDao.ObtenerInsumos(); cboInsumos.DataValueField = "idInsumo"; cboInsumos.DataTextField = "descripcion"; cboInsumos.DataBind(); }
public InsumoService() { oInsumoDao = new InsumoDao(); }