Exemplo n.º 1
0
 void UpdatePerson(New.Person person, Formrecord record)
 {
     switch (record.Formfield.Name)
     {
         case "Middle Initial": person.MiddleInitial = record.Storedvalue; return;
         case "SSN Last Four": person.SocialSecurityLastFour = TakeLastFourDigits(record.Storedvalue); return;
         case "Date of Birth": person.DateOfBirth = TryParseDate(record.Storedvalue); return;
         case "Gender": person.Gender = MaleOrFemale(record.Storedvalue); return;
         case "Phone": person.PrimaryPhoneNumber = StripExtraPhoneCharacters(record.Storedvalue); return;
         case "Alt. Phone": person.AlternatePhoneNumber = StripExtraPhoneCharacters(record.Storedvalue); return;
         case "E-mail Address": person.AlternateEmail = record.Storedvalue; return;
         case "Emergency Contact Name": person.EmergencyContactName = record.Storedvalue; return;
         case "Emergency Contact Phone": person.EmergencyContactPhoneNumber = StripExtraPhoneCharacters(record.Storedvalue); return;
         case "Position": person.Position = TryGetPosition(record.Storedvalue); return;
         case "Address": person.StreetAddress = record.Storedvalue; return;
         default: return;
     };
 }
Exemplo n.º 2
0
 void UpdateQual(Qualification qual, Formrecord record)
 {
     switch (record.Formfield.Name)
     {
         case "Date Last BFR or Qual Form 8": qual.LastBFR = TryParseDate(record.Storedvalue); return;
         case "Date Last Military Flight Physical": qual.LastMilitaryFlightPhysical = TryParseDate(record.Storedvalue); return;
         case "Date Last Altitude Chamber": qual.LastAltitudeChamber = TryParseDate(record.Storedvalue); return;
         case "Date Last Egrees Training LL-03": qual.LastEgreesTraining = TryParseDate(record.Storedvalue); return;
         case "Date Last Simulator Refresher": qual.LastSimulatorRefresher = TryParseDate(record.Storedvalue); return;
         case "Date Last CRM": qual.LastCRM = TryParseDate(record.Storedvalue); return;
         case "Date Last Life Support Training": qual.LastLifeSupportTraining = TryParseDate(record.Storedvalue); return;
         case "Date Last Flight": qual.LastFlight = TryParseDate(record.Storedvalue); return;
         case "Military FCF Qual": qual.MilitaryFCFQualification = PraseFCFQual(record.Storedvalue); return;
         default: return;
     };
 }
Exemplo n.º 3
0
 partial void DeleteFormrecord(Formrecord instance);
Exemplo n.º 4
0
 partial void UpdateFormrecord(Formrecord instance);
Exemplo n.º 5
0
 partial void InsertFormrecord(Formrecord instance);
Exemplo n.º 6
0
		private void detach_Formrecords(Formrecord entity)
		{
			this.SendPropertyChanging();
			entity.Formfile = null;
		}
Exemplo n.º 7
0
		private void attach_Formrecords(Formrecord entity)
		{
			this.SendPropertyChanging();
			entity.Formfield = this;
		}