예제 #1
0
 public Assignation(string id, ReserveDutyEntity reserverDutyEntity, DateTime start, DateTime end, string shiftsString, string assignStatusString)
 {
     this.ID = id;
     this.reserverDutyEntity = reserverDutyEntity;
     this.startDate          = start;
     this.endDate            = end;
     this.reserveDays        = (endDate.Date - startDate.Date).Days + 1;
     this.shiftsIndexes      = ReserveDutyEntity.MultiValuedParser(shiftsString);
     this.status             = TranslateAssignationStatus(assignStatusString);
     this.IsFaulty           = false;
     this.comments           = new List <string>();
 }
예제 #2
0
 public ProgramUser(string firstName, string lastName, string pn, string position, string rank, string department, string teamsIndexes)
 {
     this.department     = department;
     this.firstName      = firstName;
     this.lastName       = lastName;
     this.fullName       = firstName + " " + lastName;
     this.personalNumber = pn;
     this.position       = position;
     this.teamsIndexes   = ReserveDutyEntity.MultiValuedParser(teamsIndexes);
     this.rank           = ReserveDutyEntity.TranslateRankLiteral(rank);
     this.rankLiteral    = rank;
 }