1234567891011121314151617181920212223242526272829303132 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace EMIS.Utility
- {
- public static class PlanningGraduateDateHelper
- {
- /// <summary>
- /// 查询对应的预计毕业日期
- /// </summary>
- /// <param name="graduateSchoolyearDate"></param>
- /// <returns></returns>
- public static DateTime GetPlanningGraduateDate(DateTime graduateSchoolyearDate)
- {
- if (graduateSchoolyearDate.Month >= 1 && graduateSchoolyearDate.Month <= 6)
- {
- int month = Convert.ToInt32(EMIS.Utility.Const.LOCAL_SETTING_PlanningGraduateDateAutumnMonth);
- int day = Convert.ToInt32(EMIS.Utility.Const.LOCAL_SETTING_PlanningGraduateDateAutumnDay);
- return new DateTime(graduateSchoolyearDate.Year, month, day);
- }
- else
- {
- int month=Convert.ToInt32(EMIS.Utility.Const.LOCAL_SETTING_PlanningGraduateDateSpringMonth);
- int day=Convert.ToInt32( EMIS.Utility.Const.LOCAL_SETTING_PlanningGraduateDateSpringDay);
- return new DateTime((graduateSchoolyearDate.Year + 1), month, day);
- }
- }
- }
- }
|