using System; using System.Collections.Generic; using System.Linq; using System.Web; using WeiSha.Common; using Song.ServiceInterfaces; using VTemplate.Engine; namespace Song.Site { /// /// Notice 的摘要说明 /// public class Notice : BasePage { protected override void InitPageTemplate(HttpContext context) { //通知 int noid = WeiSha.Common.Request.QueryString["id"].Int32 ?? 0; Song.Entities.Notice notice = Business.Do().NoticeSingle(noid); if (notice == null) return; if (notice.No_IsShow && ((DateTime)notice.No_StartTime) < DateTime.Now) this.Document.Variables.SetValue("notice", notice); //当前通知的上一条 Song.Entities.Notice prev = Business.Do().NoticePrev(noid, notice.Org_ID); this.Document.Variables.SetValue("prev", prev); //当前通知的下一条 Song.Entities.Notice next = Business.Do().NoticeNext(noid, notice.Org_ID); this.Document.Variables.SetValue("next", next); } } }