Beispiel #1
0
		public AnwesenheitEntryPrint(Organisation schulenEntry,
				Organisation klassenEntry, PersonZuWordUpID personenEntry)
			{
			FamilienName = personenEntry.Person.FamilienName;
			VorName = personenEntry.Person.VorName;
			Klasse = klassenEntry.CodeName.Substring(4);
			Schule = schulenEntry.NameId;
			Funktion = personenEntry.Typ.TypNameId;
			Geschlecht = personenEntry.Person.Sex;
			TelefonNr = personenEntry.Person.Telefon;
			CodeName = schulenEntry.CodeName;
			PLZ = personenEntry.Person.PLZ;
			Ort = personenEntry.Person.Ort;
			Adresse = personenEntry.Person.Adresse;
			}
Beispiel #2
0
		public GutscheinEntryPrint(Organisation schulenEntry,
				Organisation klassenEntry, PersonZuWordUpID personenEntry,
				String AktuellerFixTextParameter)
			{
			if ((schulenEntry != null)
			    && (klassenEntry != null)
			    && (personenEntry != null))
				{
				FamilienName = personenEntry.Person.FamilienName;
				VorName = personenEntry.Person.VorName;
				Klasse = klassenEntry.CodeName.Substring(4, 2);
				Schule = schulenEntry.Beschreibung;
				Funktion = personenEntry.Typ.TypNameId;
				Geschlecht = personenEntry.Person.Sex;
				}
			AktuellerFixText = AktuellerFixTextParameter;
			PageBreakAllowedBefore = true;
			}
Beispiel #3
0
		private String GetSchuelerOSMEntry (PersonZuWordUpID SchuelerEntry)
			{
			if (SchuelerEntry.Person?.Sex == "W")
				return GetLatLonString(SchuelerEntry)
					+ SchuelerEntry.Person?.Adresse + "</br>" + SchuelerEntry.Typ.TypNameId + "\t"
					+ SchuelerEntry.Person?.ZusatzInformation + "\t"
					+ "20,20\t0,0\t" + WordUp23.Basics.Instance.HTTP_LOCATION_FOR_TECHNIC_PICTURES + "/SchuelerW.png";
			else
				return GetLatLonString(SchuelerEntry)
					+ SchuelerEntry.Person?.Adresse + "</br>" + SchuelerEntry.Typ.TypNameId + "\t"
					+ SchuelerEntry.Person?.ZusatzInformation + "\t"
					+ "20,20\t0,0\t" + WordUp23.Basics.Instance.HTTP_LOCATION_FOR_TECHNIC_PICTURES + "/SchuelerM.png";
			}
        public PersonZuWordUpID CreateNewPerson()
            {
            Person NewPerson = Data.DbServer3.WordUp.Personen.NewRow();
            NewPerson.Id = Guid.NewGuid();
	        NewPerson.ArtDerPerson = "Schueler";
            NewPerson.NameId = " __Bitte Zuletzt!!! eintragen";
            Data.DbServer3.WordUp.Personen.Rows.Add(NewPerson);
            PersonZuWordUpID NewConnector = Data.DbServer3.WordUp.PersonenZuWordUpID.NewRow();
            NewConnector.PersonenTypId = DbEntities.CustomClasses.PersonenTypen.Rat;
            NewConnector.WordUpId = Data.DbServer3.WordUp.PersonenZuWordUpID.DataSet.WordUpIDGuid;
            NewConnector.OrganisationenId = SelectedOrganisation.Id;
            NewConnector.PersonenId = NewPerson.Id;
            NewConnector.Id = Guid.NewGuid();
			Data.DbServer3.WordUp.Personen.SaveChanges();
			Data.DbServer3.WordUp.PersonenZuWordUpID.Rows.Add(NewConnector);
            Data.DbServer3.WordUp.PersonenZuWordUpID.SaveChanges();
            Data.DbServer3.WordUp.AcceptChanges();
            SelectedPersonZuWordUpId = NewConnector;
            return SelectedPersonZuWordUpId;
            }
		public void DeleteSelectedPerson()
            {
            Person ConnectedPerson = SelectedPersonZuWordUpId.Person;
            SelectedPersonZuWordUpId.Delete();
            Data.DbServer3.WordUp.PersonenZuWordUpID.SaveChanges();
            ConnectedPerson.Delete();
            Data.DbServer3.WordUp.Personen.SaveChanges();
            Data.DbServer3.WordUp.AcceptChanges();
            SelectedPersonZuWordUpId = null;
            }