private void DataPlay() { if (this.Request.QueryString["op"] != null) { this.txtop.Value = this.Request.QueryString["op"].ToString(); //新增还是修改 //判断当前用户是否有保存的权限 HyoaClass.Hyoa_global Hyoa_global = new HyoaClass.Hyoa_global(); if (Hyoa_global.isHaveRole("Role9999", this.Session["hyuid"].ToString())) { this.btn_submit.Visible = true; //保存 } else { this.btn_submit.Visible = false; //保存 } //旧文档 if (this.Request.QueryString["op"] == "modify") { if (this.Request.QueryString["id"] != null) { //根据id得到信息 this.txtdocid.Value = this.Request.QueryString["id"].ToString(); HyoaClass.Hyoa_link Hyoa_link = new HyoaClass.Hyoa_link(); DataTable dt = Hyoa_link.Getlink(this.txtdocid.Value); if (dt.Rows.Count > 0) { this.txtsort.Value = dt.Rows[0]["hy_sort"].ToString(); this.txtname.Value = dt.Rows[0]["hy_linkname"].ToString(); this.txtlink.Value = dt.Rows[0]["hy_linkurl"].ToString(); } dt.Clear(); } } } }