Song.Site/Student/Index.ashx.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WeiSha.Common;
using Song.ServiceInterfaces;
using Song.Extend;
using VTemplate.Engine;
namespace Song.Site.Student
{
    /// <summary>
    /// Index 的摘要说明
    /// </summary>
    public class Index : BasePage
    {


        protected override void InitPageTemplate(HttpContext context)
        {           
            //课程列表           
            Tag couTag = this.Document.GetChildTagById("courseList");
            if (couTag != null)
            {
                int count = int.Parse(couTag.Attributes.GetValue("count", "10"));
                Song.Entities.Course[] cour = Business.Do<ICourse>().CourseCount(Organ.Org_ID, -1, -1, true, count);
                foreach (Song.Entities.Course c in cour)
                {
                    c.Cou_LogoSmall = Upload.Get["Course"].Virtual + c.Cou_LogoSmall;
                    c.Cou_Logo = Upload.Get["Course"].Virtual + c.Cou_Logo;
                    c.Cou_Intro = HTML.ClearTag(c.Cou_Intro);
                }
                this.Document.SetValue("courseList", cour);
            }
        }
    }
}

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

AI 解读

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

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