using System; using System.Collections.Generic; using System.Linq; using System.Web; using Song.Extend; using WeiSha.Common; using Song.ServiceInterfaces; using VTemplate.Engine; namespace Song.Site.Admin { /// /// Index 的摘要说明 /// public class Index : BasePage { protected override void InitPageTemplate(HttpContext context) { //各种数据 if (Extend.LoginState.Admin.IsLogin) { //专业数 int sbjcount = Business.Do().SubjectOfCount(this.Organ.Org_ID, true, -1); this.Document.SetValue("sbjcount", sbjcount); //课程数 int couCount = Business.Do().CourseOfCount(this.Organ.Org_ID, -1, -1); this.Document.SetValue("couCount", couCount); //考试数 int testCount = Business.Do().PagerOfCount(this.Organ.Org_ID, -1, -1, -1, true); this.Document.SetValue("testCount", testCount); //试题数 int quesCount = Business.Do().QuesOfCount(this.Organ.Org_ID, -1, -1, -1, -1, true); this.Document.SetValue("quesCount", quesCount); //学员数 int stCount = Business.Do().AccountsOfCount(this.Organ.Org_ID, null); this.Document.SetValue("stCount", stCount); //资讯数 int newsCount = Business.Do().ArticleOfCount(this.Organ.Org_ID, -1); this.Document.SetValue("newsCount", newsCount); } } } }