Song.Site/Manage/Site/MessageBoard_Ans.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using WeiSha.Common;
using Song.ServiceInterfaces;
using Song.Entities;
using WeiSha.WebControl;
using System.Collections.Generic;
namespace Song.Site.Manage.Site
{
public partial class MessageBoard_Ans : Extend.CustomPage
{
//要操作的对象主键
private int id = WeiSha.Common.Request.QueryString["id"].Int32 ?? 0;
//当前学生id
protected int stid = 0;
//是否为超管
protected bool isAdmin = false;
protected Song.Entities.MessageBoard mb;
protected void Page_Load(object sender, EventArgs e)
{
mb = Business.Do<IMessageBoard>().ThemeSingle(id);
if (!this.IsPostBack)
{
fill();
}
}
private void fill()
{
Song.Entities.Teacher th = Extend.LoginState.Teacher.CurrentUser;
lbCurrName.Text = th.Th_Name;
imbCurrPhoto.ImageUrl = Upload.Get["Teacher"].Virtual + th.Th_Photo;
//回复信息
tbAns.Text = mb.Mb_Answer;
cbIshow.Checked = mb.Mb_IsShow;
}
protected void btnEnter_Click(object sender, ImageClickEventArgs e)
{
try
{
mb.Mb_AnsTime = DateTime.Now;
mb.Mb_Answer = tbAns.Text.Trim();
mb.Mb_IsShow = cbIshow.Checked;
mb.Mb_IsAns = true;
//当前教师
Song.Entities.Teacher teacher = Extend.LoginState.Teacher.CurrentUser;
if (teacher != null)
后面还有 15 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
