Song.Site/Mobile/Teachers.ashx.cs

(完整代码) 1007B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WeiSha.Common;
using Song.ServiceInterfaces;
using VTemplate.Engine;

namespace Song.Site.Mobile
{
    /// <summary>
    /// 当前课程的教师信息
    /// </summary>
    public class Teachers : BasePage
    {
        //教师信息存储的路径
        private string thPath = "Teacher";
        protected override void InitPageTemplate(HttpContext context)
        {
            Song.Entities.Course currCourse = Extend.LoginState.Student.Course();
            if (currCourse == null) return;
            //当前课程主负责老师
            Song.Entities.Teacher th = Business.Do<ITeacher>().TeacherSingle(currCourse.Th_ID);
            if (th != null)
            {
                th.Th_Photo = string.IsNullOrWhiteSpace(th.Th_Photo) ? null : Upload.Get[thPath].Virtual + th.Th_Photo;
                this.Document.SetValue("th", th);
            }
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。