Example #1
0
		void CreateExternesProgrammGenerationEntry (DataRow [] ShowAbleFiles, System.Web.UI.ControlCollection ParentContainer)
			{
			foreach (DataRow ShowAbleFile in ShowAbleFiles)
				{
				String SubPathAndName = ShowAbleFile ["SubPathAndName"].ToString ();
				String ArchiveID = ShowAbleFile ["ArchiveID"].ToString ();
				String ArchivePhysicalPath = Dh.GetArchivePhysicalPath (ArchiveID);
				String AutoFileName = Path.Combine (ArchivePhysicalPath, SubPathAndName);
				CVM.CommonValues m_CVM = new CommonValues (true);
				m_CVM.LoadAndProcessAutoFile (AutoFileName);
				WPMediaStandbildPlayingData m_StandBildPlayingData
					= m_CVM.DeSerializedDesriptionObject as CVM.WPMediaStandbildPlayingData;
				if (m_StandBildPlayingData == null)
					continue;
				String PlayingOrder = m_StandBildPlayingData.ActiveSortField ();

				int NumberOfEntries = m_StandBildPlayingData.NamesOfActiveDescriptions.Count;
				String NumberOfEntriesString = Convert.ToString (NumberOfEntries);
				String NumberOfPlayingEntries = Convert.ToString (m_StandBildPlayingData.NamesOfActiveDescriptions.Count);
				TableRow MaterialRow = new TableRow ();
				MaterialRow.CssClass = "CSS_MaterialRow";
				ParentContainer.Add (MaterialRow);
				TableCell MaterialFormatCell = new TableCell ();
				MaterialFormatCell.CssClass = "CSS_MaterialFormatCell";
				MaterialRow.Controls.Add (MaterialFormatCell);
				MaterialFormatCell.Text = "Karteien";

				TableCell MaterialNameCell = new TableCell ();
				MaterialNameCell.CssClass = "CSS_StandBildMaterialNameCell";
				MaterialRow.Controls.Add (MaterialNameCell);

				bool FirstTime = true;
				StringBuilder TextEntries = new StringBuilder();
//TODO				String HREFToNachrichtenagentur = "http://nachrichten.citynews.at/StandBild/ShowTableSelection?TableName="
				String HREFToNachrichtenagentur = "http://nachrichten.citynews.at/Public/ShowTableSelection?TableName="
					+ m_StandBildPlayingData.TableName + "&TableID="
					+ m_StandBildPlayingData.TableDefinitionTable.Rows [0] ["ID"].ToString ()
					+ "&AuftragGeberSelection=No&SenderSelection=All&DisplayName=All";
				TextEntries.AppendLine ("<a href=\"" + HREFToNachrichtenagentur + "\" target=\"_blank\"><strong>");
				TextEntries.AppendLine ("Um die für \"" + m_StandBildPlayingData.TableName + "\" verwendeten<br>");
				TextEntries.AppendLine ("Standbild Einträge und deren zeitliche Verteilung<br>");
				TextEntries.AppendLine ("zu sehen, verwenden sie bitte diesen Link,<br>");
				TextEntries.AppendLine ("der Sie zur WPMedia Nachrichtenagentur führt.<br>");
				TextEntries.AppendLine ("Dort können Sie auch weitere Informationen abrufen.<br>");
				TextEntries.AppendLine ("Mit der \"Zurück\" Taste Ihres Browsers<br>");
				TextEntries.AppendLine ("kommen Sie dann wieder hierher<br>");
				TextEntries.AppendLine ("</strong></a><br>");

				MaterialNameCell.Text = TextEntries.ToString ();

				TableCell MaterialQualityCell = new TableCell ();
				MaterialQualityCell.CssClass = "CSS_MaterialQualityCell";
				MaterialRow.Controls.Add (MaterialQualityCell);
				MaterialQualityCell.Text = NumberOfEntriesString + " Einträge";

				TableCell MaterialSizeCell = new TableCell ();
				MaterialSizeCell.CssClass = "CSS_MaterialSizeCell";
				MaterialRow.Controls.Add (MaterialSizeCell);
				MaterialSizeCell.Text = ShowAbleFiles [0] ["FileSizeInkB"].ToString () + "kB";

				}

			}