public static string Get(eDayType i_DayType) { if (i_DayType == eDayType.Holiday) { return("Holiday"); } if (i_DayType == eDayType.HalfWorkDay) { return("Half Work Day"); } if (i_DayType == eDayType.WorkDay) { return("Work Day"); } if (i_DayType == eDayType.PersonalVacation) { return("Personal vacation"); } if (i_DayType == eDayType.SickDay) { return("Sick day"); } throw new Exception("Bad eDayType parmeter input"); }
public DayData(string i_MonthDay, string i_WeekDay, string i_DayType) { m_MonthDay = i_MonthDay; m_WeekDay = i_WeekDay; m_DayType = DayTypeFactory.Get(i_DayType); m_ArrivalTime = new TimeData(); m_LeavingTime = new TimeData(); }
public DayData(string i_MonthDay, string i_WeekDay, TimeData i_ArrivalTime, TimeData i_LeavingTime, eDayType i_DayType, string i_Comment) { m_MonthDay = i_MonthDay; m_WeekDay = i_WeekDay; m_ArrivalTime = i_ArrivalTime; m_LeavingTime = i_LeavingTime; m_Comment = i_Comment; m_DayType = i_DayType; }
public static string Get(eDayType i_DayType) { if (i_DayType == eDayType.Holiday) return "Holiday"; if (i_DayType == eDayType.HalfWorkDay) return "Half Work Day"; if (i_DayType == eDayType.WorkDay) return "Work Day"; if (i_DayType == eDayType.PersonalVacation) return "Personal vacation"; if (i_DayType == eDayType.SickDay) return "Sick day"; throw new Exception("Bad eDayType parmeter input"); }
public DayData(string allData) { string[] sllDataArr = allData.Split(sr_Seperator); m_MonthDay = setMonthDay(sllDataArr[(int)eColumn.MonthDay]); m_WeekDay = sllDataArr[(int)eColumn.WeekDay]; m_ArrivalTime = new TimeData(sllDataArr[(int)eColumn.Arrival]); m_LeavingTime = new TimeData(sllDataArr[(int)eColumn.Leaving]); m_DayType = DayTypeFactory.Get(sllDataArr[(int)eColumn.DayType]); m_Comment = sllDataArr[(int)eColumn.Comment]; }
/// <summary> /// Constructor to create a CDayType object and set member variables /// </summary> /// <param name="eType"> /// The Type of DayType /// </param> /// <param name="intIndex"> /// The Index of the DayType /// </param> /// Revision History /// MM/DD/YY who Version Issue# Description /// -------- --- ------- ------ --------------------------------------- /// 02/15/06 rrr N/A N/A Creation of class public CDayType(eDayType eType, int intIndex) { m_eDayType = eType; m_intDayIndex = intIndex; } // CDayType
public void setDayType(string i_DayTypeStr) { DayType = DayTypeFactory.Get(i_DayTypeStr); if (Changed != null) Changed.Invoke(); }
// Constructors public MonthlyFee(int id, String description, double monthlyValue, DateTime monthStart, DateTime monthEnd, eDayType dayType, int day) { this.Id = id; this.Description = description; this.MonthlyValue = monthlyValue; this.MonthStart = monthStart; this.MonthEnd = monthEnd; this.DayType = dayType; this.Day = day; }