Example #1
0
 /// <summary>
 /// Constructor to add a User from Db
 /// </summary>
 /// <param name="id">int</param>
 /// <param name="person">Person</param>
 /// <param name="initials">string</param>
 /// <param name="jobDescription">JobDescription</param>
 /// <param name="userLevel">UserLevel</param>
 public User(int id, Person person, string initials, LegalEntity department, JobDescription jobDescription, UserLevel userLevel)
 {
     this.id             = id;
     this.person         = person;
     this.initials       = initials;
     this.department     = department;
     this.jobDescription = jobDescription;
     this.userLevel      = userLevel;
 }
Example #2
0
 /// <summary>
 /// Constructor, that accepts data from an existing Indexed User
 /// </summary>
 /// <param name="user">IndexedUser</param>
 public User(IndexedUser user)
 {
     this.id             = user.Id;
     this.person         = user.Person;
     this.initials       = user.Initials;
     this.department     = user.Department;
     this.jobDescription = user.JobDescription;
     this.userLevel      = user.UserLevel;
 }
Example #3
0
 /// <summary>
 /// Empty Constructor
 /// </summary>
 public User()
 {
     this.id             = 0;
     this.person         = new Person();
     this.department     = new LegalEntity();
     this.initials       = "";
     this.jobDescription = new JobDescription();
     this.userLevel      = new UserLevel();
 }
Example #4
0
 /// <summary>
 /// Constructor to add a new Indexed User Level
 /// </summary>
 /// <param name="index">int</param>
 /// <param name="level">UserLevel</param>
 public IndexedUserLevel(int index, UserLevel level) : base(level)
 {
     this.index = index;
 }
 /// <summary>
 /// Constructor, that accepts data from an existing Address
 /// </summary>
 /// <param name="userLevel">Address</param>
 public UserLevel(UserLevel userLevel)
 {
     this.id   = userLevel.Id;
     this.text = userLevel.Text;
 }