private void SetQuickBtn() { DataTable dt = PubFunction.GetGroupAuthority(this._UserGroupID); this.btnEditMem.Visible = PubFunction.GetControlVisit(dt, int.Parse(this.btnEditMem.Attributes["cls"]), 3); this.btnExpense.Visible = PubFunction.GetPageVisit(dt, int.Parse(this.btnExpense.Attributes["cls"])); this.btGoodsExpense.Visible = PubFunction.GetPageVisit(dt, int.Parse(this.btGoodsExpense.Attributes["cls"])); this.btTimeExpense.Visible = PubFunction.GetPageVisit(dt, int.Parse(this.btTimeExpense.Attributes["cls"])); this.btConsumeMemCount.Visible = PubFunction.GetPageVisit(dt, int.Parse(this.btConsumeMemCount.Attributes["cls"])); this.btnRechargeMoney.Visible = PubFunction.GetPageVisit(dt, int.Parse(this.btnRechargeMoney.Attributes["cls"])); this.btnRechargCount.Visible = PubFunction.GetPageVisit(dt, int.Parse(this.btnRechargCount.Attributes["cls"])); this.btnExchangeGift.Visible = PubFunction.GetPageVisit(dt, int.Parse(this.btnExchangeGift.Attributes["cls"])); this.btnSendSMS.Visible = PubFunction.GetPageVisit(dt, int.Parse(this.btnSendSMS.Attributes["cls"])); this.btnSendSMS.Visible = PubFunction.curParameter.bolSms; }
protected void Page_Load(object sender, EventArgs e) { this.div2.Visible = PubFunction.GetPageVisit(this._UserAuthority, 97); this.div3.Visible = PubFunction.GetPageVisit(this._UserAuthority, 2); this.div4.Visible = PubFunction.GetPageVisit(this._UserAuthority, 67); this.div5.Visible = PubFunction.GetPageVisit(this._UserAuthority, 17); this.div6.Visible = PubFunction.GetPageVisit(this._UserAuthority, 4); this.div7.Visible = PubFunction.GetPageVisit(this._UserAuthority, 14); this.div8.Visible = PubFunction.GetPageVisit(this._UserAuthority, 46); this.div9.Visible = PubFunction.GetPageVisit(this._UserAuthority, 11); this.div10.Visible = PubFunction.GetPageVisit(this._UserAuthority, 42); this.div11.Visible = PubFunction.GetPageVisit(this._UserAuthority, 66); if (PubFunction.ISCheckKey) { if (!PubFunction.IEbrowser) { base.Response.Write("<script>top.location.href='index.aspx'</script>"); } } }
private void SetQuickBtn() { DataTable dt = PubFunction.GetGroupAuthority(this._UserGroupID); this.btnMemRecharge.Visible = PubFunction.GetPageVisit(dt, int.Parse(this.btnMemRecharge.Attributes["cls"])); this.btnMemChangeCard.Visible = PubFunction.GetPageVisit(dt, int.Parse(this.btnMemChangeCard.Attributes["cls"])); this.btnMemDelay.Visible = PubFunction.GetPageVisit(dt, int.Parse(this.btnMemDelay.Attributes["cls"])); this.btnMemLock.Visible = PubFunction.GetPageVisit(dt, int.Parse(this.btnMemLock.Attributes["cls"])); this.btnMemChangePwd.Visible = PubFunction.GetPageVisit(dt, int.Parse(this.btnMemChangePwd.Attributes["cls"])); this.btnMemDrawMoney.Visible = PubFunction.GetPageVisit(dt, int.Parse(this.btnMemDrawMoney.Attributes["cls"])); this.btnSenndSMS.Visible = PubFunction.GetPageVisit(dt, int.Parse(this.btnSenndSMS.Attributes["cls"])); if (this.btnMemChangePwd.Visible) { this.btnMemChangePwd.Visible = PubFunction.curParameter.bolPwd; } if (this.btnMemDelay.Visible) { this.btnMemDelay.Visible = PubFunction.curParameter.bolPastTime; } if (this.btnSenndSMS.Visible) { this.btnSenndSMS.Visible = PubFunction.curParameter.bolSms; } }