protected void Page_Load(object sender, EventArgs e) { this.owner = PubComm.IsZcMng(Request["id"], User.Identity.Name); if (!Page.IsPostBack) { Page.DataBind(); this.BindData(); this.BindTC(null); } }
protected void Page_Load(object sender, EventArgs e) { this.owner = PubComm.IsZcMng(Request["zcid"], User.Identity.Name); if (!Page.IsPostBack) { if (Request.QueryString["zcid"] != null) { string id = Request["zcid"]; U_ZCBU zc1 = new U_ZCBU(); DataSet ds = zc1.GetDetailByID(id, "spdoc"); zc1.Close(); ////////////////////////////////////////////////////////////////////// bool AttachFile = false; if (ds.Tables[0].Rows.Count > 0) { if (ds.Tables[0].Rows[0][0] != DBNull.Value) { AttachFile = true; AttachFileName = ds.Tables[0].Rows[0][0].ToString(); this.OldFileName.Value = AttachFileName; } } if (owner == false) { this.Row3.Visible = false; this.Row1.Visible = false; if (AttachFile == false) { Response.Write("<br><center>提示:资产负责人没有上传【不良资产处置方案申报表】!<center>"); Response.End(); } } else { if (AttachFile == false) { this.Row2.Visible = false; } else { this.Row1.Visible = false; } } Page.DataBind(); } } }
bool owner = false; //资产责任人 protected void Page_Load(object sender, EventArgs e) { this.owner = PubComm.IsZcMng(Request["id"], User.Identity.Name); if (!Page.IsPostBack) { Page.DataBind(); this.BindData(); //this.BindSP(null); //this.BindHistoryZcSp(); // U_ZCSPBU sp1 = new U_ZCSPBU(); // sp1.SetPC(this.pc1, this.zcczid.Text); // sp1.Close(); } }
protected void Page_Load(object sender, EventArgs e) { if (Request["bkind"].ToString() == "0") { this.owner = PubComm.IsZcMng(Request["zcid"].ToString(), User.Identity.Name); } else { this.owner = PubComm.IsZcBaoMng(Request["zcid"].ToString(), User.Identity.Name); } if (!Page.IsPostBack) { if (this.owner == false) { this.Row1.Visible = false; } this.BindData(null); } }
protected void Page_Load(object sender, EventArgs e) { zcMng = PubComm.IsZcMng(Request["id"], User.Identity.Name); //得到权限 if (!Page.IsPostBack) { this.BindData(); //控制时效的增加权限 if (this.zcMng == false) { this.butAdd.Visible = false; } if (PubComm.IsRole("系统管理员")) { this.Button2.Visible = true; } else { this.Button2.Visible = false; } } }