예제 #1
0
 public Department(DepartmentIndicator id, string name, bool isHousekeeper, ISet <SecurityAction> actions)
 {
     EntityId      = id;
     Name          = name;
     IsHousekeeper = isHousekeeper;
     Actions.AddRange(actions);
 }
예제 #2
0
        public StaffMember(StaffMemberIndicator s, string userid, string password,
                           string displayName, string emergencyContactPhone, bool isPhoneDisplayable,
                           DateTime dateHired, bool isActive,
                           DepartmentIndicator dept, string deptName, ContactInformation contact)
        {
            EntityId = s;
            UserId   = userid;

            if (password != null)
            {
                Password = password;
            }

            DisplayName = displayName;
            EmergencyContactPhoneNumber = emergencyContactPhone;
            IsPhoneDataDisplayable      = isPhoneDisplayable;
            DateHired      = dateHired.ToTS();
            IsActive       = isActive;
            Department     = dept;
            DepartmentName = deptName;
            ContactInfo    = contact;
        }