Beispiel #1
0
 public EditFamilyMemberService(ITracktionDataLayer dataLayer, MessagePasser messager, AuthUserHelper authUser, int originalPersonID, int familyMemberID)
 {
     _dataLayer      = dataLayer;
     _originalPerson = new PersonAddEditModel(messager, dataLayer, authUser, originalPersonID);
     _model          = new PersonAddEditModel(messager, dataLayer, authUser, familyMemberID);
     _grades         = _dataLayer.GetGradesForOrganization(authUser.OrganizationID, _model.Person.Grade, true).ToArray();
     Model           = new EditFamilyMemberModel()
     {
         Address                 = _model.Person.Address,
         Address2                = _model.Person.Address2,
         CellPhoneNumber         = _model.PersonalCell,
         City                    = _model.Person.City,
         ContactTypes            = _model.ContactTypes,
         DOB                     = _model.Person.DOB,
         EmailAddress            = _model.EmailAddress,
         FamilyRoles             = _model.FamilyRoles,
         FirstName               = _model.Person.FirstName,
         Gender                  = _model.Person.Gender,
         Genders                 = _model.Genders,
         GradeID                 = _model.Person.Grade,
         Grades                  = _model.Grades,
         HomePhoneNumber         = _model.HomePhone,
         LastName                = _model.Person.LastName,
         Password                = null,
         PasswordConfirm         = null,
         PersonTypes             = _model.PersonTypes,
         PictureAction           = null,
         PictureData             = null,
         SchoolID                = _model.Person.SchoolID,
         Schools                 = _model.Schools,
         SpecialNeedsDescription = _model.Person.SpecialNeedsDescription,
         SpecialNeedsSummary     = _model.Person.SpecialNeedsSummary,
         State                   = _model.Person.State,
         Username                = null,
         USStates                = _model.USStates,
         Zip                     = _model.Person.Zip,
         Person                  = _model.Person
     };
 }
Beispiel #2
0
 public EditFamilyMemberModel(ITracktionDataLayer dataLayer, MessagePasser messager, AuthUserHelper authUser, int originalPersonID, int familyMemberID)
 {
     _dataLayer      = dataLayer;
     _originalPerson = new PersonAddEditModel(messager, dataLayer, authUser, originalPersonID);
     _model          = new PersonAddEditModel(messager, dataLayer, authUser, familyMemberID);
     _grades         = _dataLayer.GetGradesForOrganization(authUser.OrganizationID, _model.Person.Grade, true).ToArray();
 }