示例#1
0
        protected void BtnSave_Click(object sender, EventArgs e)
        {
            BASE_USER  bs         = (BASE_USER)Session["account"];
            ExamInform examInform = new ExamInform();

            examInform.title      = TextBox2.Text;
            examInform.informText = TextBox1.Text;
            examInform.source     = TextBox3.Text;
            examInform.creatTime  = DateTime.Now;
            examInform.creatId    = bs.name;

            BASE_USERDalServer bASE_USERDalServer = new BASE_USERDalServer();

            if (bASE_USERDalServer.AddExamInform(examInform) > 0)
            {
                Response.Write("<script>alert('发布成功');</script>");

                //string str = "BaseUser.aspx";
                //Server.Transfer(str);
            }
            else
            {
                Response.Write("<script>alert('发布失败');</script>");
            }
        }
示例#2
0
 public int AddExamInform(ExamInform examInform)
 {
     return(bASE_USERDal.AddExamInform(examInform));
 }