Esempio n. 1
0
 //补充意见add by xf 2013-6-24
 protected void Button_BcyjSave_Click(object sender, EventArgs e)
 {
     if (this.txtbcyj.Text.Trim() == "")
     {
         Response.Write("<script>alert('补充意见内容不能为空!');</script>");
         return;
     }
     else
     {
         //保存补充意见
         HyoaClass.Hyoa_global Hyoa_global = new HyoaClass.Hyoa_global();
         HyoaClass.Hyoa_bcyj Hyoa_bcyj = new HyoaClass.Hyoa_bcyj();
         Hyoa_bcyj.bcid = Hyoa_global.GetRandom();
         Hyoa_bcyj.hy_tableid = this.hy_tableid.Text;
         Hyoa_bcyj.hy_fatherid = this.txtdocid.Value;
         Hyoa_bcyj.hy_bcuserid = Session["hyuid"].ToString();
         Hyoa_bcyj.hy_bcusername = Session["hyuname"].ToString();
         Hyoa_bcyj.hy_bcdeptid = Session["hydeptid"].ToString();
         Hyoa_bcyj.hy_bcdeptname = Session["hydeptname"].ToString();
         Hyoa_bcyj.hy_bctime = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
         this.txtbcyj_hidden.Text = ReplaceString_Tszf(this.txtbcyj_hidden.Text);
         Hyoa_bcyj.hy_bcbody = this.txtbcyj_hidden.Text;
         Hyoa_bcyj.hy_bcip = HttpContext.Current.Request.UserHostAddress;
         Hyoa_bcyj.hy_bcifshow = "";
         Hyoa_bcyj.Insert();
         Response.Write("<script>alert('补充意见保存成功!');window.location='" + this.Request.Url.ToString() + "'</script>");    //这个返回路径的页面,点返回按钮会有问题.已办转在办用的返回到了列表
     }
 }
Esempio n. 2
0
 ////////////////////////////////////以上代码请不要修改//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 //1694行--判断是否上边有修改过//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 //加载返回路径时的特殊处理
 //群教评论add by hj 2014-3-11
 protected void Button_QjplSave_Click(object sender, EventArgs e)
 {
     if (this.txtqjpl.Text.Trim() == "")
     {
         Response.Write("<script>alert('评论内容不能为空!');</script>");
         return;
     }
     else
     {
         //保存补充意见
         HyoaClass.Hyoa_global Hyoa_global = new HyoaClass.Hyoa_global();
         HyoaClass.Hyoa_bcyj Hyoa_qjpl = new HyoaClass.Hyoa_bcyj();
         Hyoa_qjpl.bcid = Hyoa_global.GetRandom();
         Hyoa_qjpl.hy_tableid = this.hy_tableid.Text;
         Hyoa_qjpl.hy_fatherid = this.txtdocid.Value;
         Hyoa_qjpl.hy_bcuserid = Session["hyuid"].ToString();
         Hyoa_qjpl.hy_bcusername = Session["hyuname"].ToString();
         Hyoa_qjpl.hy_bcdeptid = Session["hydeptid"].ToString();
         Hyoa_qjpl.hy_bcdeptname = Session["hydeptname"].ToString();
         Hyoa_qjpl.hy_bctime = System.DateTime.Now.ToString();
         Hyoa_qjpl.hy_bcbody = this.txtqjpl_hidden.Text;
         Hyoa_qjpl.hy_bcip = HttpContext.Current.Request.UserHostAddress;
         Hyoa_qjpl.hy_bcifshow = "";
         Hyoa_qjpl.Insert();
         Response.Write("<script>alert('评论保存成功!');window.location='" + this.Request.Url.ToString() + "'</script>");
     }
 }