/// <summary> /// 設定學校放假日的組態值 /// </summary> /// <param name="schoolHolidayRecord"></param> public static void SetSchoolHolidayRecord(SchoolHolidayRecord schoolHolidayRecord) { if (schoolHolidayRecord == null) return; ConfigData cd = School.Configuration[SchoolHodidayConfigString]; cd[configString] = schoolHolidayRecord.GetXmlString(); cd.Save(); }
public static SchoolHolidayRecord SelectSchoolHolidayRecord() { SchoolHolidayRecord result = null; ConfigData cd = School.Configuration[SchoolHoliday.SchoolHodidayConfigString]; string xmlContent = cd[configString]; if (xmlContent != "") result = new SchoolHolidayRecord(xmlContent); return result; }