Example #1
0
		public ActionResult PrimaryWhatDo(string WhatToDo)
			{
			String [] WhatToDoElemente = WhatToDo.Split (';');

#region Ideen
			if (WhatToDoElemente [0] == "PlakatListeAll")
				{
				WordUpPrimaryOrteDataSelectionModel DataTableSelectionModel = new WordUpPrimaryOrteDataSelectionModel ();
				DataTableSelectionModel.ShowPlakateForThisKlasse (String.Empty);
				return (View ("PlakateView", DataTableSelectionModel));
				}

			if (WhatToDoElemente [0] == "PlakatListeKlassenSelection")
				{
				WordUpPrimarySelectionModel SelectionModel = new WordUpPrimarySelectionModel ();
				SelectionModel.DoPlakatListeKlassenSelection ();
				return (View ("Index", SelectionModel));
				}
#endregion

#region Vorschl├Ąge
			if (WhatToDoElemente [0] == "WunschListeVerantwortlichSelektion")
				{
				WordUpPrimaryProjekteDataSelectionModel DataTableSelectionModel = new WordUpPrimaryProjekteDataSelectionModel ();
				DataTableSelectionModel.WunschListeVerantwortlichSelektion (Basics.DataSelection.Wuensche);
				return (View ("PrimaryProjekteDataSelectionView", DataTableSelectionModel));
				}

			if (WhatToDoElemente [0] == "WunschListeTypenSelektion")
				{
				WordUpPrimaryProjekteDataSelectionModel DataTableSelectionModel = new WordUpPrimaryProjekteDataSelectionModel ();
				DataTableSelectionModel.WunschListeTypenSelektion (Basics.DataSelection.Wuensche);
				return (View ("PrimaryProjekteDataSelectionView", DataTableSelectionModel));
				}

			if (WhatToDoElemente [0] == "WunschListeBezirksTeileSelection")
				{
				WordUpPrimaryProjekteDataSelectionModel DataTableSelectionModel = new WordUpPrimaryProjekteDataSelectionModel ();
				DataTableSelectionModel.WunschListeBezirksTeileSelection (Basics.DataSelection.Wuensche);
				return (View ("PrimaryProjekteDataSelectionView", DataTableSelectionModel));
				}
#endregion

#region Planungen

			if (WhatToDoElemente [0] == "PlanungListeTypenSelektion")
				{
				WordUpPrimaryProjekteDataSelectionModel DataTableSelectionModel = new WordUpPrimaryProjekteDataSelectionModel ();
				DataTableSelectionModel.ProjektListeTypenSelektion(Basics.DataSelection.Planungen);
				return (View ("PrimaryProjekteDataSelectionView", DataTableSelectionModel));
				}

			if (WhatToDoElemente [0] == "PlanungListeBezirksTeileSelection")
				{
				WordUpPrimaryProjekteDataSelectionModel DataTableSelectionModel = new WordUpPrimaryProjekteDataSelectionModel ();
				DataTableSelectionModel.PlanungListeBezirksTeileSelection (Basics.DataSelection.Planungen);
				return (View ("PrimaryProjekteDataSelectionView", DataTableSelectionModel));
				}

			if (WhatToDoElemente [0] == "PlanungListeNumericProjektIDSelection")
				{
				WordUpPrimaryProjekteDataSelectionModel DataTableSelectionModel = new WordUpPrimaryProjekteDataSelectionModel ();
				DataTableSelectionModel.PlanungListeNumericProjektIDSelection (Basics.DataSelection.Planungen);
				return (View ("PrimaryProjekteDataSelectionView", DataTableSelectionModel));
				}

#endregion

#region Projekte

			if (WhatToDoElemente[0] == "ProjektListeTypenSelektion")
				{
				WordUpPrimaryProjekteDataSelectionModel DataTableSelectionModel = new WordUpPrimaryProjekteDataSelectionModel();
				DataTableSelectionModel.ProjektListeTypenSelektion(Basics.DataSelection.Projekte);
				return (View("PrimaryProjekteDataSelectionView", DataTableSelectionModel));
				}

			if (WhatToDoElemente[0] == "ProjektListeBezirksTeileSelection")
				{
				WordUpPrimaryProjekteDataSelectionModel DataTableSelectionModel = new WordUpPrimaryProjekteDataSelectionModel();
				DataTableSelectionModel.ProjektListeBezirksTeileSelection(Basics.DataSelection.Projekte);
				return (View("PrimaryProjekteDataSelectionView", DataTableSelectionModel));
				}

			if (WhatToDoElemente[0] == "ProjektListeNumericProjektIDSelection")
				{
				WordUpPrimaryProjekteDataSelectionModel DataTableSelectionModel = new WordUpPrimaryProjekteDataSelectionModel();
				DataTableSelectionModel.WunschListeNumericProjektIDSelection(Basics.DataSelection.Projekte);
				return (View("PrimaryProjekteDataSelectionView", DataTableSelectionModel));
				}

#endregion


#region Realisierungen


			if (WhatToDoElemente [0] == "RealisierungenListeBezirksTeileSelection")
				{
				WordUpPrimaryProjekteDataSelectionModel DataTableSelectionModel = new WordUpPrimaryProjekteDataSelectionModel ();
				DataTableSelectionModel.RealisierungenListeBezirksTeileSelection (Basics.DataSelection.Realisierungen);
				return (View ("PrimaryProjekteDataSelectionView", DataTableSelectionModel));
				}

			if (WhatToDoElemente [0] == "RealisierungenListeNumericProjektIDSelection")
				{
				WordUpPrimaryProjekteDataSelectionModel DataTableSelectionModel = new WordUpPrimaryProjekteDataSelectionModel ();
				DataTableSelectionModel.RealisierungenListeNumericProjektIDSelection (Basics.DataSelection.Realisierungen);
				return (View ("PrimaryProjekteDataSelectionView", DataTableSelectionModel));
				}

			
#endregion


#region Fertigstellungen

			if (WhatToDoElemente [0] == "FertigListeBezirksTeileSelection")
				{
				WordUpPrimaryProjekteDataSelectionModel DataTableSelectionModel = new WordUpPrimaryProjekteDataSelectionModel ();
				DataTableSelectionModel.FertigListeBezirksTeileSelection (Basics.DataSelection.Fertig);
				return (View ("PrimaryProjekteDataSelectionView", DataTableSelectionModel));
				}


#endregion

			#region Ideen

			if (WhatToDoElemente [0] == "ShowPlakateForThisKlasse")
				{
				WordUpPrimaryOrteDataSelectionModel DataTableSelectionModel = new WordUpPrimaryOrteDataSelectionModel ();
				DataTableSelectionModel.ShowPlakateForThisKlasse (WhatToDoElemente [1]);
				return (View ("SelectTableEntryView", DataTableSelectionModel));
				}

#endregion

#region Orte

			if (WhatToDoElemente [0] == "GraphischerBezirksUeberblick")
				{
				WordUpPrimaryOrteDataSelectionModel OrteSelectionModel = new WordUpPrimaryOrteDataSelectionModel ();
				if (WhatToDoElemente.Length > 1)
					OrteSelectionModel.SetSelectOnlyPhase (WhatToDoElemente[1]);
				OrteSelectionModel.GraphischerBezirksUeberblick(WhatToDoElemente[0]);
				return (View("SelectOrtsEntryView", OrteSelectionModel));
				}

			if (WhatToDoElemente [0] == "AktuelleWordUpOrteListe")
				{
				WordUpPrimaryOrteDataSelectionModel OrteSelectionModel = new WordUpPrimaryOrteDataSelectionModel ();
				OrteSelectionModel.AktuelleWordUpOrteListe (WhatToDoElemente [0]);
				return (View ("SelectOrtsEntryView", OrteSelectionModel));
				}

			if (WhatToDoElemente [0] == "AlleWordUpOrteListe")
				{
				WordUpPrimaryOrteDataSelectionModel OrteSelectionModel = new WordUpPrimaryOrteDataSelectionModel ();
				OrteSelectionModel.AlleWordUpOrteListe (WhatToDoElemente [0]);
				return (View ("SelectOrtsEntryView", OrteSelectionModel));
				}


#endregion

			return (View ("Index"));
			}
Example #2
0
		public ActionResult Index()
			{
			WordUpPrimarySelectionModel model = new WordUpPrimarySelectionModel ();
			model.DoIndex ();
			return View ("Index", model);
			}