示例#1
0
 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));
 }
示例#2
0
        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));
        }
示例#3
0
        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));
        }