internal static int AddWeekNo(int iWeekNo, int addWeek) { int addDays = addWeek * 7; string weekNoAdded = WeekHelper.GetWeekPlanNo(WeekHelper.WeekNoToEndDayOfWeek(iWeekNo).AddDays(addDays)); return(int.Parse(weekNoAdded)); }
/// <summary> /// 해당 월의 마지막 주차를 반환합니다. /// </summary> /// <param name="startMonthNo"></param> internal static string MonthNoToEndWeek(int startMonthNo, bool considerBoundary = false) { int year = (int)(startMonthNo / 100); int month = startMonthNo - year * 100; DateTime endDayOfMonth = WeekHelper.EndDayOfMonth(new DateTime(year, month, 1)); string weekNo; if (considerBoundary) { weekNo = WeekHelper.GetWeekPlanNo(endDayOfMonth, false); } else { weekNo = WeekHelper.GetWeekPlanNo(endDayOfMonth); } return(weekNo); }
public static string GetWeekPlanNo(DateTime planDate) { return(WeekHelper.GetWeekPlanNo(planDate)); }