ZhiYeJianKang_PeiXun/Song.Site/Teacher/Panel.ashx.cs

31 lines
845 B
C#
Raw Normal View History

2025-02-20 15:41:53 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Song.Extend;
using WeiSha.Common;
using Song.ServiceInterfaces;
namespace Song.Site.Teacher
{
/// <summary>
/// 教师管理的界面
/// </summary>
public class Panel : BasePage
{
protected override void InitPageTemplate(HttpContext context)
{
Song.Entities.Teacher teacher = this.Teacher;
if (teacher == null)
{
context.Response.Redirect("index.ashx");
return;
}
this.Document.Variables.SetValue("CurrUser", teacher);
//是否启用或能过审核
bool isEnable = teacher.Th_IsPass && teacher.Th_IsUse;
this.Document.Variables.SetValue("isEnable", isEnable);
}
}
}