using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace EMIS.Utility { public static class PlanningGraduateDateHelper { /// /// 查询对应的预计毕业日期 /// /// /// 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); } } } }