Ejemplo n.º 1
0
		public ActionResult EntryPresentationNew(string StringID)
			{
			EntryPresentationModel EPModell = new EntryPresentationModel();
			EPModell.StringID = StringID;
//			EPModell.FillMeAsInformationEntry(null);
			EPModell.FillMeFromBeitragBeschreibung(StringID);
			return View("EntryPresentationNewView", EPModell);
			}
Ejemplo n.º 2
0
		public void CreatePresentationsFromTo (DateTime PreviousStartParameter, DateTime FromParameter, DateTime ToParameter,
			int MaxNumberOfEntries, String SelectType = "")
			{

			From = FromParameter;
			To = ToParameter;
			DisplayAbles = new List<EntryPresentationModel>();
			BeitragBeschreibungen = WMB.DataWrapper.Instance.GetLastModifiedAllFromBeitragBeschreibungen
				(FromParameter, ToParameter, MaxNumberOfEntries, SelectType);
			DataTable LastEntry = WMB.DataWrapper.Instance.GetLastModifiedLatestFromBeitragBeschreibungen (SelectType);
			DateTime HighestDateTime = DateTime.MinValue;
			if (LastEntry.Rows.Count > 0)
				{
				HighestDateTime = Convert.ToDateTime(LastEntry.Rows [0] ["LastUpdateTimeStamp"]);
				}
			TypToSelectNext = SelectType;
			if (PreviousStartParameter.Date != DateTime.MaxValue.Date)
				EarlierStartTime = PreviousStartParameter;
			NextStartTime = DateTime.MaxValue;
			ThisStartTime = To;
			foreach (DataRow Beitrag in BeitragBeschreibungen.Rows)
				{
				if (Convert.ToDateTime (Beitrag ["LastUpdateTimeStamp"]) == HighestDateTime)
					EarlierStartTime = null;
				EntryPresentationModel NewEntry = new EntryPresentationModel ();
				NewEntry.StringID = Beitrag ["BeitragID"].ToString ();
				NewEntry.FillMeFromBeitragBeschreibung (Beitrag);
				NewEntry.LoadConnectedPictures (Beitrag);
				DisplayAbles.Add (NewEntry);
				NextStartTime = NewEntry.LastUpdateTime;
				}
			Titel = "Letzte " + Convert.ToString (MaxNumberOfEntries) + " "
						+ ((String.IsNullOrEmpty (SelectType)) ? "" : SelectType + " ")
						+ "Änderungen im Jahr vor " + To.ToString ("dd. MMM yyyy, HH:mm:ss")
						+ " (nur für diesen User erlaubte Einträge !!!)";
			}
Ejemplo n.º 3
0
		public ActionResult ShowExpandedCommonSearchClassEntry(String CommonSearchClassID, String EntryType)
			{
			lock (Data.DbServer3)
				{
				EntryPresentationModel Modell = new EntryPresentationModel(CommonSearchClassID, EntryType);	//CommonSearchClassID);
				return View("EntryPresentationView", Modell);
				}
			}
Ejemplo n.º 4
0
		// Common Expansion for all Views
		public ActionResult ShowExpandedScheduledEntry(String ScheduledEntryID)
			{
			lock (Data.DbServer3)
				{
				EntryPresentationModel Modell = new EntryPresentationModel(ScheduledEntryID, "MMUnit");
				return View("EntryPresentationView", Modell);
				}
			}
Ejemplo n.º 5
0
		public ActionResult EntryFullPresentation (string StringID)
			{
			EntryPresentationModel EPModell = new EntryPresentationModel ();
			EPModell.FillMeFromBeitragBeschreibung (StringID);
			return View ("EntryPresentationView", EPModell);
			}
Ejemplo n.º 6
0
        public ActionResult EntryPresentation(string StringID)
            {
	        lock (Data.DbServer3)
		        {
		        EntryPresentationModel EPModell = new EntryPresentationModel();
		        EPModell.StringID = StringID;
		        EPModell.FillMeAsInformationEntry(null, false);
		        //EPModell.FillMeFromBeitragBeschreibung(StringID);
		        return View("EntryPresentationView", EPModell);
		        }
            }
Ejemplo n.º 7
0
 public ActionResult ShowExpandedCommonSearchClassEntry(String CommonSearchClassID)
     {
     var Modell = new EntryPresentationModel(CommonSearchClassID);
     return View("EntryPresentationView", Modell);
     }