public static DSResponse GetSchoolLocationList() { if (DataCacheManager.Get(LIST_SCHOOL_LOCATION) == null) { DSXmlHelper helper = new DSXmlHelper("GetSchoolLocationListRequest"); helper.AddElement("Field"); helper.AddElement("Field", "All"); DSResponse dsrsp = DSAServices.CallService("SmartSchool.Config.GetSchoolLocationList", new DSRequest(helper)); DataCacheManager.Add(LIST_SCHOOL_LOCATION, dsrsp); } return(DataCacheManager.Get(LIST_SCHOOL_LOCATION)); }
public static DSResponse GetUpdateCodeSynopsis() { string serviceName = "SmartSchool.Config.GetUpdateCodeSynopsis"; if (DataCacheManager.Get(serviceName) == null) { DSRequest request = new DSRequest(); DSXmlHelper helper = new DSXmlHelper("GetCountyListRequest"); helper.AddElement("Field"); helper.AddElement("Field", "異動代號對照表"); request.SetContent(helper); DSResponse dsrsp = FISCA.Authentication.DSAServices.CallService("SmartSchool.Config.GetUpdateCodeSynopsis", request); DataCacheManager.Add(serviceName, dsrsp); } return(DataCacheManager.Get(serviceName)); }
public static DSResponse GetAbsenceList() { string serviceName = "GetAbsenceList"; if (DataCacheManager.Get(serviceName) == null) { DSRequest request = new DSRequest(); DSXmlHelper helper = new DSXmlHelper("GetAbsenceListRequest"); helper.AddElement("Field"); helper.AddElement("Field", "All"); request.SetContent(helper); DSResponse dsrsp = DSAServices.CallService("SmartSchool.Others.GetAbsenceList", request); DataCacheManager.Add(serviceName, dsrsp); } return(DataCacheManager.Get(serviceName)); }