Exemple #1
0
        /// <summary>
        /// 保存审核结果
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnSave_Click(object sender, EventArgs e)
        {
            var bll   = new BLL.t_topic();
            var model = bll.GetModel(Request["topic_id"]);

            model.topic_stat = int.Parse(ddlStat.SelectedValue);
            model.topic_note = txttopic_note.Text;

            /// 写入日志
            BLL.Utils.Log(this, "审核出题:" + Request["topic_id"]);
            BLL.Utils.ShowMessage(this, bll.Update(model)?"保存成功!":"发生错误!");
        }
Exemple #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (int.Parse(Session["role"].ToString()) < 3)
     {
         BLL.Utils.ShowMessage(this, "该功能仅教研室主任以上权限可用!");
         Response.End();
     }
     if (!IsPostBack)
     {
         initControl();
     }
     else
     {
         var bbl   = new BLL.t_topic();
         var model = bbl.GetModel(Request["topic_id"]);
         model.topic_stat = int.Parse(ddlStat.SelectedValue);
         model.topic_note = txttopic_note.Text;
     }
 }