using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WeiSha.Common;
using Song.ServiceInterfaces;
using VTemplate.Engine;
namespace Song.Site
{
///
/// 指南详情页(现在是公告)
///
public class Guide : BasePage
{
//知id
int id = WeiSha.Common.Request.QueryString["id"].Int32 ?? 0;
protected override void InitPageTemplate(HttpContext context)
{
//知
Song.Entities.Guide knl = Business.Do().GuideSingle(id);
this.Document.Variables.SetValue("knl", knl);
if (knl != null)
{
Song.Entities.Course cou = Business.Do().CourseSingle(knl.Cou_ID);
this.Document.Variables.SetValue("course", cou);
//上级专业
if (cou != null)
{
List sbjs = Business.Do().Parents(cou.Sbj_ID, true);
this.Document.Variables.SetValue("sbjs", sbjs);
}
}
}
}
}