Exemplo n.º 1
0
 public int SessionalRequiredDays(Amhp amhp)
 {
     // Sessional 4 x 1day / week - Rob, Heidi, Alex, Lucy
     // Rob Tuesday every week
     // Heidi never Thursday
     // Lucy never Monday, exactly 3 per month
     return(1 * 4);
 }
Exemplo n.º 2
0
        public Rota()
        {
            Matt    = new Amhp("Matt", EmpType.FullTime, 5, 28, FullTimeRequiredDays);
            Chris   = new Amhp("Chris", EmpType.FullTime, 5, 28, FullTimeRequiredDays);
            Rebecca = new Amhp("Rebecca", EmpType.FullTime, 5, 28, FullTimeRequiredDays);
            Sarah   = new Amhp("Sarah", EmpType.FullTime, 5, 28, FullTimeRequiredDays);
            Emma    = new Amhp("Emma", EmpType.PartTime, 3, 12, FullTimeRequiredDays);
            Rob     = new Amhp("Rob", EmpType.Sessional, 1, 4, FullTimeRequiredDays);
            Heidi   = new Amhp("Heidi", EmpType.Sessional, 1, 4, FullTimeRequiredDays);
            Alex    = new Amhp("Alex", EmpType.Sessional, 1, 4, FullTimeRequiredDays);
            Lucy    = new Amhp("Lucy", EmpType.Sessional, 1, 4, FullTimeRequiredDays);

            Employees.Add(Matt);
            Employees.Add(Chris);
            Employees.Add(Rebecca);
            Employees.Add(Sarah);
            Employees.Add(Emma);
            Employees.Add(Rob);
            Employees.Add(Heidi);
            Employees.Add(Alex);
            Employees.Add(Lucy);
        }
Exemplo n.º 3
0
 public int PartTimeRequiredDays(Amhp amhp)
 {
     // TODO Emma 1 x 3days / week, Wed / Thu / Fri, sometimes not 1st Weds
     return(3 * 4);
 }