예제 #1
0
        // GET: Magazzino
        public ActionResult Index()
        {
            VerificaAbilitazioneUtenteConUscita(25);
            MagazzinoBLL bll = new MagazzinoBLL();
            List <ModelloGiacenzaModel> model = bll.CaricaGiacenze();

            return(View(model));
        }
예제 #2
0
        public ActionResult MOVIMENTOPOSIZIONECAMPIONARIO()
        {
            VerificaAbilitazioneUtenteConUscita(55);
            MagazzinoBLL bll = new MagazzinoBLL();
            List <ModelloGiacenzaModel> model = bll.CaricaGiacenze();

            return(View(model));
        }
예제 #3
0
        public ActionResult ReportExcelGiacenze()
        {
            MagazzinoBLL bll = new MagazzinoBLL();
            List <ModelloGiacenzaModel> model = bll.CaricaGiacenze();
            ExcelHelper excel = new ExcelHelper();

            byte[] fileContents = excel.CreaExcelGiacenzeMagazzino(model);

            return(File(fileContents, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "GiacenzeMagazzini.xlsx"));
        }