コード例 #1
0
 public List <Subjects> GetSubjectListByParent(int StreamID, int CourseID, string SubjTypeName, string searchText, bool showDeleted)
 {
     try
     {
         return(SubjectIntegration.GetSubjectListByParent(StreamID, CourseID, SubjTypeName, searchText, showDeleted));
     }
     catch (Exception ex)
     {
         throw (new Exception(MethodBase.GetCurrentMethod().DeclaringType.ToString() + "." + (new System.Diagnostics.StackFrame()).GetMethod().Name, ex));
     }
 }
コード例 #2
0
 public List <Subjects> GetSubjectListByFaculty(int FacultyID)
 {
     try
     {
         return(SubjectIntegration.GetSubjectListByFaculty(FacultyID));
     }
     catch (Exception ex)
     {
         throw (new Exception(MethodBase.GetCurrentMethod().DeclaringType.ToString() + "." + (new System.Diagnostics.StackFrame()).GetMethod().Name, ex));
     }
 }
コード例 #3
0
 public List <Subjects> GetSubjectAll(string searchText)
 {
     try
     {
         return(SubjectIntegration.GetSubjectAll(searchText));
     }
     catch (Exception ex)
     {
         throw (new Exception(MethodBase.GetCurrentMethod().DeclaringType.ToString() + "." + (new System.Diagnostics.StackFrame()).GetMethod().Name, ex));
     }
 }
コード例 #4
0
        public List <Subjects> GetSubjectAllByStream(int StreamID, int CourseID, string SubjTypeName, string searchText, bool showDeleted)
        {
            try
            {
                //return SubjectIntegration.GetSubjectAllByStream(StreamID, CourseID, SubjTypeName, searchText, showDeleted);

                string UniqueKey = string.Format("CountryList_{0}_{1}_{2}", CourseID, StreamID, SubjTypeName);
                if (HttpRuntime.Cache[UniqueKey] == null)
                {
                    List <Subjects> subjectList = SubjectIntegration.GetSubjectAllByStream(StreamID, CourseID, SubjTypeName, searchText, showDeleted);
                    HttpRuntime.Cache[UniqueKey] = subjectList;
                }

                return((List <Subjects>)(HttpRuntime.Cache[UniqueKey]));
            }
            catch (Exception ex)
            {
                throw (new Exception(MethodBase.GetCurrentMethod().DeclaringType.ToString() + "." + (new System.Diagnostics.StackFrame()).GetMethod().Name, ex));
            }
        }
コード例 #5
0
 public int UpdateSubjects(Subjects theSubject)
 {
     return(SubjectIntegration.UpdateSubjects(theSubject));
 }
コード例 #6
0
 public int InsertSubjects(Subjects theSubject)
 {
     return(SubjectIntegration.InsertSubjects(theSubject));
 }