コード例 #1
0
        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");
        }
コード例 #2
0
ファイル: DayData.cs プロジェクト: tamircroll/WorkingDays
 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();
 }
コード例 #3
0
ファイル: DayData.cs プロジェクト: tamircroll/WorkingDays
 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();
 }
コード例 #4
0
ファイル: DayData.cs プロジェクト: tamircroll/WorkingDays
 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;
 }
コード例 #5
0
ファイル: DayData.cs プロジェクト: tamircroll/WorkingDays
 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;
 }
コード例 #6
0
        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");
        }
コード例 #7
0
ファイル: DayData.cs プロジェクト: tamircroll/WorkingDays
 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];
 }
コード例 #8
0
ファイル: DayData.cs プロジェクト: tamircroll/WorkingDays
 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];
 }
コード例 #9
0
 /// <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
コード例 #10
0
ファイル: DayData.cs プロジェクト: tamircroll/WorkingDays
 public void setDayType(string i_DayTypeStr)
 {
     DayType = DayTypeFactory.Get(i_DayTypeStr);
     if (Changed != null) Changed.Invoke();
 }
コード例 #11
0
        // 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;
        }