Beispiel #1
0
        internal static CompanyContact NewCompanyContact()
        {
            var newContact = new CompanyContact();

            newContact.LoadProperty(ContactsPhonesProperty, CompanyContactPhoneList.NewCompanyContactPhoneList());
            newContact.MarkAsChild();
            newContact.BusinessRules.CheckRules();
            return(newContact);
        }
Beispiel #2
0
 private void Child_Fetch(CompanyContacts contact)
 {
     LoadProperty(CompanyIdProperty, contact.Companies.CompanyId);
     LoadProperty(CompanyContactIdProperty, contact.CompanyContactId);
     LoadProperty(FirstNameProperty, contact.FirstName);
     LoadProperty(LastNameProperty, contact.LastName);
     LoadProperty(BirthdayProperty, new SmartDate(contact.Birthday));
     LoadProperty(RankIdProperty, contact.Ranks.RankId);
     LoadProperty(InitialRankIdProperty, contact.Ranks.RankId);
     LoadProperty(BaseSalaryProperty, contact.BaseSalary);
     LoadProperty(ContactsPhonesProperty, CompanyContactPhoneList.GetCompanyContactPhoneList(contact));
 }