Beispiel #1
0
/// <summary>
        ///        Purpose to add an Hourly Employee
/// </summary>
/// <param name="i"></param>
/// <param name="et"></param>
/// <param name="en"></param>
/// <param name="hr"></param>
/// <param name="hw"></param>
        public void addEmpHourly(uint i, ETYPE et, string en, decimal hr, double hw, bool ot, bool ben, bool comm, bool edBen)
        {
            if (empDictionary == null)
            {
                empDictionary = new SortedDictionary <uint, Employee>();
                newhrly       = new Hourly(i, et, en, hr, hw, ot, ben, comm, edBen);
                empDictionary.Add(newhrly._EmpID, newhrly);
            }
            else
            {
                newhrly = new Hourly(i, et, en, hr, hw, ot, ben, comm, edBen);
                empDictionary.Add(newhrly._EmpID, newhrly);
            }
        }
 /// <summary>
 /// Purpose to add an Hourly Employee
 /// </summary>
 /// <param name="i"></param>
 /// <param name="et"></param>
 /// <param name="en"></param>
 /// <param name="hr"></param>
 /// <param name="hw"></param>
 public void addEmpHourly(uint i, ETYPE et, string en, decimal hr, double hw)
 {
     newhrly = new Hourly(i, et, en, hr, hw);
     empDictionary.Add(newhrly._EmpID, newhrly);
 }
Beispiel #3
0
        public void addEmpHourly(int i, ETYPE et, string en, decimal hr, double hw)
        {
            int x = i % SIZE;

            _empArray[x] = new Hourly(i, et, en, hr, hw);
        }