예제 #1
0
        /// <summary>
        /// 获取科目信息
        /// </summary>
        /// <param name="subjectId"></param>
        /// <returns></returns>
        public Subjects GetSubject(long subjectId)
        {
            SubjectManage subject = new SubjectManage(subjectId);

            return(subject.Subject);
        }
예제 #2
0
        /// <summary>
        /// 修改科目名称
        /// </summary>
        /// <param name="subjectId"></param>
        /// <param name="newName"></param>
        /// <returns></returns>
        public bool Rename(long subjectId, string newName)
        {
            SubjectManage subject = new SubjectManage(subjectId);

            return(subject.Rename(newName));
        }
예제 #3
0
        /// <summary>
        /// 删除科目
        /// </summary>
        /// <param name="subjectId"></param>
        /// <returns></returns>
        public bool Delete(long subjectId)
        {
            SubjectManage subject = new SubjectManage(subjectId);

            return(subject.Delete());
        }
예제 #4
0
        /// <summary>
        /// 设置科目为”禁用“状态
        /// </summary>
        /// <param name="subjectId"></param>
        /// <returns></returns>
        public bool SetDisable(long subjectId)
        {
            SubjectManage subject = new SubjectManage(subjectId);

            return(subject.SetDisable());
        }
예제 #5
0
        /// <summary>
        /// 获取科目详细信息
        /// </summary>
        /// <param name="subjectId"></param>
        /// <returns></returns>
        public SubjectDetails GetDetails(long subjectId)
        {
            SubjectManage subject = new SubjectManage(subjectId);

            return(subject.ConvertToSubjectDetails());
        }