Exemple #1
0
 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());
        }
Exemple #4
0
    protected void RestarInsumos()
    {
        int i = 0;

        while (i < ListaInsumosxIntervencion.Count())
        {
            InsumoDao.RestarInsumos(ListaInsumosxIntervencion[i].idInsumo, ListaInsumosxIntervencion[i].cantidadIntervencion);
            i++;
        }
    }
Exemple #5
0
 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();
 }