protected void Page_Load(object sender, EventArgs e) { if (this.Session["hyuid"].ToString() == "") this.Response.Redirect("../login.aspx"); if (!this.IsPostBack) { if (this.Request.QueryString["id"] != null) { string ls_id = Request.QueryString["id"].ToString(); HyoaClass.Hyoa_dbsy Hyoa_dbsy = new HyoaClass.Hyoa_dbsy(); DataTable dt = Hyoa_dbsy.Getdbsy(ls_id); if (dt.Rows.Count > 0) { string ls_url = dt.Rows[0]["hy_url"].ToString() + "&rnd=" + System.Guid.NewGuid().ToString(); //如果是阅读性的待办事宜,将自动转已办 if (dt.Rows[0]["hy_property"].ToString() != "待办") Hyoa_dbsy.Dbsytoybbyid(ls_id); //跳转到具体文档 if (ls_url == "") Response.Write("<script>window.opener.location.reload();window.close();</script>"); else Response.Redirect("../"+ls_url); } } } }