Пример #1
0
        public ActionResult CaricaInterventi()
        {
            Manutenzione              m           = new Manutenzione();
            List <ManutentoreModel>   lista       = m.CreaListaManutentoreModel();
            List <MPIntranetListItem> manutentori = lista.Select(x => new MPIntranetListItem(x.NomeCognome.ToString(), x.IdManutentore.ToString())).ToList();

            manutentori.Insert(0, new MPIntranetListItem(string.Empty, ElementiVuoti.ManutentoreVuoto.ToString()));
            ViewData.Add("Manutentori", manutentori);

            List <MPIntranetListItem> frequenza = new List <MPIntranetListItem>();

            frequenza.Add(new MPIntranetListItem(string.Empty, "NESSUNA"));
            frequenza.Add(new MPIntranetListItem("SETTIMANALE", "SETTIMANALE"));
            frequenza.Add(new MPIntranetListItem("MENSILE", "MENSILE"));
            frequenza.Add(new MPIntranetListItem("TRIMESTRALE", "TRIMESTRALE"));
            frequenza.Add(new MPIntranetListItem("SEMESTRALE", "SEMESTRALE"));
            frequenza.Add(new MPIntranetListItem("ANNUALE", "ANNUALE"));
            ViewData.Add("Frequenza", frequenza);

            List <MPIntranetListItem> stato = new List <MPIntranetListItem>();

            stato.Add(new MPIntranetListItem(string.Empty, string.Empty));
            stato.Add(new MPIntranetListItem("SOSPESO", "SOSPESO"));
            stato.Add(new MPIntranetListItem("CHIUSO", "CHIUSO"));
            stato.Add(new MPIntranetListItem("DA CHIUDERE", "DA CHIUDERE"));
            stato.Add(new MPIntranetListItem("APERTO", "APERTO"));
            ViewData.Add("Stato", stato);
            List <InterventoModel> interventiModel = m.CreaListaInterventoModel();


            return(PartialView("CaricaInterventiPartial", interventiModel));
        }
Пример #2
0
        public ActionResult Interventi()
        {
            Manutenzione m = new Manutenzione();

            List <MacchinaModel>      macchineModel = m.CreaListaMacchinaModel();
            List <MPIntranetListItem> macchine      = macchineModel.Select(x => new MPIntranetListItem(x.ToString(), x.IdMacchina.ToString())).ToList();

            macchine.Insert(0, new MPIntranetListItem(string.Empty, ElementiVuoti.MacchinaVuota.ToString()));
            ViewData.Add("Macchine", macchine);

            List <ManutentoreModel>   lista       = m.CreaListaManutentoreModel();
            List <MPIntranetListItem> manutentori = lista.Select(x => new MPIntranetListItem(x.NomeCognome.ToString(), x.IdManutentore.ToString())).ToList();

            manutentori.Insert(0, new MPIntranetListItem(string.Empty, ElementiVuoti.ManutentoreVuoto.ToString()));
            ViewData.Add("Manutentori", manutentori);

            List <MPIntranetListItem> frequenza = new List <MPIntranetListItem>();

            frequenza.Add(new MPIntranetListItem(string.Empty, "NESSUNA"));
            frequenza.Add(new MPIntranetListItem("SETTIMANALE", "SETTIMANALE"));
            frequenza.Add(new MPIntranetListItem("MENSILE", "MENSILE"));
            frequenza.Add(new MPIntranetListItem("TRIMESTRALE", "TRIMESTRALE"));
            frequenza.Add(new MPIntranetListItem("SEMESTRALE", "SEMESTRALE"));
            frequenza.Add(new MPIntranetListItem("ANNUALE", "ANNUALE"));
            ViewData.Add("Frequenza", frequenza);

            return(View());
        }
Пример #3
0
        public ActionResult CaricaManutentori()
        {
            Manutenzione            a     = new Manutenzione();
            List <ManutentoreModel> lista = a.CreaListaManutentoreModel();

            List <MPIntranetListItem> ddlTipologia = new List <MPIntranetListItem>();

            ddlTipologia.Add(new MPIntranetListItem(TipologiaRiferimento.Email, TipologiaRiferimento.Email));
            ddlTipologia.Add(new MPIntranetListItem(TipologiaRiferimento.Telefono, TipologiaRiferimento.Telefono));

            ViewData.Add("ddlTipologia", ddlTipologia);

            return(PartialView("CaricaManutentoriPartial", lista));
        }