Пример #1
0
 protected void CargarInsumos()
 {
     cboInsumos.DataSource     = InsumoDao.ObtenerInsumosValidos();
     cboInsumos.DataValueField = "IdInsumo";
     cboInsumos.DataTextField  = "Descripcion";
     cboInsumos.DataBind();
 }
Пример #2
0
        public ActionResult EntregarInsumo()
        {
            var insumoDao = new InsumoDao(db);
            var insumos   = insumoDao.GetInsumos();

            ViewBag.Insumos = insumos;
            return(View());
        }
Пример #3
0
        public ActionResult VerInventarioGeneral()
        {
            var insumoDao = new InsumoDao(db);
            var insumos   = insumoDao.GetInsumos();

            ViewBag.Insumos = insumos;
            return(View());
        }
Пример #4
0
    protected void RestarInsumos()
    {
        int i = 0;

        while (i < ListaInsumosxIntervencion.Count())
        {
            InsumoDao.RestarInsumos(ListaInsumosxIntervencion[i].idInsumo, ListaInsumosxIntervencion[i].cantidadIntervencion);
            i++;
        }
    }
Пример #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();
 }
Пример #6
0
 public InsumoService()
 {
     oInsumoDao = new InsumoDao();
 }