Ejemplo n.º 1
0
		public static void DbServer3_Connect_OldWebService()
			{
			if (_dbServer3 != null)
				return;
			DbServer3 = new DbServer3Context();
			DbServer3.Set_DbProxy<AlterlaaInfoWebDataAccessProxy>();
			DbServer3.LoadConstraints();
			}
Ejemplo n.º 2
0
		public static void DbServer3_Connect_Direct()
		{
			if (_dbServer3 != null)
				return;
			_dbServer3 = new DbServer3Context();
			_dbServer3.Set_DbProxy<DirectDbServer3SqlConnector>();
			_dbServer3.LoadConstraints();
			}
Ejemplo n.º 3
0
		public MultiMedia GetMultiMedia(IServer server)
			{
			MultiMedia multiMedia = server.Load<MultiMedia>(StorageEnum.MultiMedia);
			if (multiMedia != null)
				return multiMedia;
			DbServer3Context dbServer3 = new DbServer3Context();
			dbServer3.Set_DbProxy<DirectDbServer3SqlConnector>();
			dbServer3.MultiMedia.LoadConstraints();
			dbServer3.MultiMedia.LoadAll_IfHasNotBeenLoaded();

			server.Save(StorageEnum.MultiMedia, dbServer3.MultiMedia);
			return dbServer3.MultiMedia;
			}
Ejemplo n.º 4
0
		public StatistikCounters(DbServer3Context dataContect)
			{
			DataContext = dataContect;
			}
		public static List<PictureContainerList> PrepareData(DbServer3Context parent, Projekt connectedProjekt,
					Ort connectedOrt, bool isOrtOrProjekt, bool? shortList = null, bool alwaysReload = false)
			{
			List<PictureContainerList> result = new List<PictureContainerList>();
			if (isOrtOrProjekt)
				{
				if ((shortList == null)
				    || (bool) (shortList))
					{
					result.Add(new PictureContainerList(parent, connectedProjekt, connectedOrt,
						MaterialienTypen.Ueberblick, alwaysReload)
						{
						IsOrtOrProjekt = true
						});
					result.Add(new PictureContainerList(parent, connectedProjekt, connectedOrt,
						MaterialienTypen.LagePlan, alwaysReload)
						{
						IsOrtOrProjekt = true
						});
					result.Add(new PictureContainerList(parent, connectedProjekt, connectedOrt,
						MaterialienTypen.LuftBild, alwaysReload)
						{
						IsOrtOrProjekt = true
						});
					result.Add(new PictureContainerList(parent, connectedProjekt, connectedOrt,
						MaterialienTypen.Ort, alwaysReload)
						{
						IsOrtOrProjekt = true
						});
					}
				if ((shortList == null)
				    || (!(bool) shortList))
					{
					result.Add(new PictureContainerList(parent, connectedProjekt, connectedOrt,
						MaterialienTypen.ProjektBild, alwaysReload)
						{
						IsOrtOrProjekt = false
						});
					}
				}
			else
				{
				if ((shortList == null)
				    || ((bool) shortList))
					{

					result.Add(new PictureContainerList(parent, connectedProjekt, connectedOrt,
						MaterialienTypen.PPTBild, alwaysReload)
						{
						IsOrtOrProjekt = false
						});
					result.Add(new PictureContainerList(parent, connectedProjekt, connectedOrt,
						MaterialienTypen.SymbolBild, alwaysReload)
						{
						IsOrtOrProjekt = false
						});
					result.Add(new PictureContainerList(parent, connectedProjekt, connectedOrt,
						MaterialienTypen.ProjektBildBefore, alwaysReload)
						{
						IsOrtOrProjekt = false
						});
					result.Add(new PictureContainerList(parent, connectedProjekt, connectedOrt,
						MaterialienTypen.ProjektBild, alwaysReload)
						{
						IsOrtOrProjekt = false
						});
					result.Add(new PictureContainerList(parent, connectedProjekt, connectedOrt,
						MaterialienTypen.ProjektBildAfter, alwaysReload)
						{
						IsOrtOrProjekt = false
						});

					result.Add(new PictureContainerList(parent, connectedProjekt, connectedOrt,
						MaterialienTypen.Ueberblick, alwaysReload)
						{
						IsOrtOrProjekt = true
						});
					result.Add(new PictureContainerList(parent, connectedProjekt, connectedOrt,
						MaterialienTypen.LagePlan, alwaysReload)
						{
						IsOrtOrProjekt = true
						});
					result.Add(new PictureContainerList(parent, connectedProjekt, connectedOrt,
						MaterialienTypen.LuftBild, alwaysReload)
						{
						IsOrtOrProjekt = true
						});
					result.Add(new PictureContainerList(parent, connectedProjekt, connectedOrt,
						MaterialienTypen.Ort, alwaysReload)
						{
						IsOrtOrProjekt = true
						});
					}
				else
					{
					result.Add(new PictureContainerList(parent, connectedProjekt, connectedOrt,
						MaterialienTypen.ProjektBildBefore, alwaysReload)
						{
						IsOrtOrProjekt = false
						});
					result.Add(new PictureContainerList(parent, connectedProjekt, connectedOrt,
						MaterialienTypen.ProjektBild, alwaysReload)
						{
						IsOrtOrProjekt = false
						});
					result.Add(new PictureContainerList(parent, connectedProjekt, connectedOrt,
						MaterialienTypen.ProjektBildAfter, alwaysReload)
						{
						IsOrtOrProjekt = false
						});

					}
				}
			return result;
			}
		public static List<PictureContainerList> PrepareData(DbServer3Context parent, Projekt connectedProjekt)
			{
			List<PictureContainerList> result = new List<PictureContainerList>();
			DirectoryInfo projektWorkingPPTPictures = new DirectoryInfo(Path.Combine(parent.WordUp.RootDirectoryForPPTWorkingPictures,
				connectedProjekt.SubDirectoryForPPTWorkingPictures));
			if (projektWorkingPPTPictures.Exists)
				{
				List<MaterialInputEntry> materialInputEntries = new List<MaterialInputEntry>();
				foreach (FileInfo projektFiles in projektWorkingPPTPictures.EnumerateFiles())
					{
					materialInputEntries.Add(new MaterialInputEntry(projektFiles.FullName));
					}
				result.Add(new PictureContainerList(parent, connectedProjekt,
					materialInputEntries, MaterialienTypen.ProjektBild)
					{
					IsOrtOrProjekt = false
					});
				}
			return result;
			}
		public static List<PictureContainerList> PrepareData(DbServer3Context parent, 
			int FirstIndex, int NumberOfEntries, bool alwaysReload = false)
			{
			List<PictureContainerList> result = new List<PictureContainerList>();
			result.Add( new PictureContainerList(parent, FirstIndex, NumberOfEntries, alwaysReload));
			return result;
			}
		public static List<PictureContainerList> PrepareData(DbServer3Context parent,
			double wLaenge, double wBreite, double distanceToCenterOfRegionOfInterests, bool alwaysReload = false)
			{
			List<PictureContainerList> result = new List<PictureContainerList>();
			result.Add(new PictureContainerList(parent, wLaenge, wBreite,
						distanceToCenterOfRegionOfInterests, alwaysReload));
			return result;
			}
		public PictureContainerList(DbServer3Context parent, Projekt connectedProjekt,
					Ort connectedOrt, Guid materialienTyp, bool alwaysReload = false)
			{
			Parent = parent;
			MaterialienTyp = materialienTyp;
			ConnectedProjekt = connectedProjekt;
			ConnectedOrt = connectedOrt;
			AlwaysReload = alwaysReload;
			}
		public PictureContainerList(DbServer3Context parent, 
			int firstIndex, int numberOfEntries, bool alwaysReload = false)
			{
			Parent = parent;
			NumberOfEntries = numberOfEntries;
			FirstIndex = firstIndex;
            AlwaysReload = alwaysReload;
			}
		public PictureContainerList(DbServer3Context parent, double rOIWLaenge, double rOIWBreite,
			double distanceToCenterOfRegionOfInterests, bool alwaysReload = false)
			{
			Parent = parent;
			ROIWLaenge = rOIWLaenge;
			ROIWBreite = rOIWBreite;
			DistanceToCenterOfRegionOfInterests = distanceToCenterOfRegionOfInterests;
			AlwaysReload = alwaysReload;
			}
		public PictureContainerList(DbServer3Context parent, Projekt connectedProjekt,
					List<MaterialInputEntry> pictureInputEntries, Guid materialienTyp, bool alwaysReload = false)
			{
			Parent = parent;
			MaterialienTyp = materialienTyp;
			ConnectedProjekt = connectedProjekt;
			MaterialInputEntries = pictureInputEntries;
			AlwaysReload = alwaysReload;
			}
Ejemplo n.º 13
0
		public UpgradeToMMUnits(DbServer3Context dataContext)
			{
			DataContext = dataContext;
			}