示例#1
0
		public LastAddOnDataToReProcess(ReProcessEntry reProcessEntry)
			{
			TableName = reProcessEntry.Parent.MMUnitTypToProcess.TypNameId;
			NameId = reProcessEntry.NameId;
			Id = reProcessEntry.Id;
			}
示例#2
0
		public void SetDBProcessDone(ReProcessEntry reProcessEntry)
			{
			ActuallProcessingNumber = reProcessEntry.Position;
			ActuallProcessingEntryName = reProcessEntry.NameId;
			StatusEntry.LastProcessedForeignLastChangedTimeStamp
				= (DateTime)reProcessEntry.DBTimeStampToConfirm;
			}
示例#3
0
		public void SetPKGProcessDone(ReProcessEntry reProcessEntry)
			{
			ActuallProcessingEntryDuration = ((DateTime.Now - LastCheckedTime).TotalSeconds);
			SummOfProcessingDurations += (DateTime.Now - LastCheckedTime).TotalSeconds;
            LastCheckedTime = DateTime.Now;
			StatusEntry.LastProcessedForeignLastChangedTimeStamp
				= (DateTime)reProcessEntry.DBTimeStampToConfirm;
			}
示例#4
0
		public bool? ReConvertAllConnectedForeignEntries(Guid informationId)
			{
			DoStartup();
			ListOfAddOnDataToReProcessInstance.Clear();
			if (!Data.DbServer3.AltErlaaInfo.PreLoadAddOnsForOneInformation(informationId))
				return false;
			List<Guid> MMUnitIdsToProcess = new List<Guid>();
            foreach (ProcessConnector connector in Data.DbServer3.AltErlaaInfo.ProcessConnectoren.Collection
				.Where(sel => sel.InformationenId == informationId))
				{
				if ((String.IsNullOrEmpty(connector.TableName))
				    || (connector.TableId == null)
				    || (connector.TableId == Guid.Empty))
					continue;
				if ((connector.TableName == "Beitraege")
//					|| (connector.TableName == "BannerData")
					|| (connector.TableName == "ButtonData"))
                    continue;
				AddOnDataToReProcess addOnDataToReProcess = new AddOnDataToReProcess
					(this, Data.DbServer3.MultiMedia.MMUnitTypen.Find_By_Name(connector.TableName));
				addOnDataToReProcess.IsBatchRun = false;
				CsDbRowBase Helper = addOnDataToReProcess.CsTableToProcess.Generic_FindOrLoad(connector.TableId);
				ReProcessEntry newReProcessEntry = new ReProcessEntry(addOnDataToReProcess,
					(Guid)connector.TableId, Helper["NameId"].ToString() , Convert.ToDateTime(Helper["ModifyTimeStamp"]), null);
				addOnDataToReProcess.EntriesToReProcess.Add(newReProcessEntry);
				MMUnitIdsToProcess.Add(newReProcessEntry.Id);
				ListOfAddOnDataToReProcessInstance.Add(addOnDataToReProcess);
				}
			if (MMUnitIdsToProcess.Count > 0)
				Data.DbServer3.MultiMedia.PreLoadAllForAllMMUnits(MMUnitIdsToProcess);
			if (Data.DbServer3.MultiMedia.GetChanges() != null)
				throw new Exception("Data.DbServer3.MultiMedia.GetChanges() != null");
			foreach (AddOnDataToReProcess addOnDataToReProcess in
				ListOfAddOnDataToReProcessInstance)
				{
				addOnDataToReProcess.LastCheckedTime = DateTime.Now;
				addOnDataToReProcess.SummOfProcessingDurations = 0;
				new StandBildConversion().ConvertToMMUnits(addOnDataToReProcess, false);
				//(new TimingsConversion()).CheckAndCorrectWPMediaAddOnDataTimings
				//	(addOnDataToReProcess.ReProcessEntriesToProcess.Select(sel => sel.Id).ToList());
				(new InformationConversion()).CheckOrCreateWPMediaAddOnDataDummyInformation
					(addOnDataToReProcess.EntriesToReProcess.Select(sel => sel.Id).ToList());
				addOnDataToReProcess.SetAllProcessingDone();
				}
			ClearAllConnectedForAllMMUnitLocally(MMUnitIdsToProcess);
			return false;

			}