Beispiel #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         PubFunction.BindMemLevelSelect(this.sltMemLevelID, true);
         PubFunction.BindShopSelect(this._UserShopID, this.sltMRShop, true);
         PubFunction.BindShopSelect(this._UserShopID, this.sltSRShop, true);
         PubFunction.BindShopSelect(this._UserShopID, this.sltShop, true);
         PubFunction.BindShopSelect(this._UserShopID, this.sltShopChart, true);
         this.txtMoney.Value        = "0";
         this.txtStartTime.Value    = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).ToString("yyyy-MM-dd");
         this.txtEndTime.Value      = DateTime.Now.ToString("yyyy-MM-dd");
         this.txtMRStart.Value      = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).ToString("yyyy-MM-dd");
         this.txtMREnd.Value        = DateTime.Now.ToString("yyyy-MM-dd");
         this.txtSRStart.Value      = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).ToString("yyyy-MM-dd");
         this.txtSREnd.Value        = DateTime.Now.ToString("yyyy-MM-dd");
         this.txtMemStartTime.Value = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).ToString("yyyy-MM-dd");
         this.txtMemEndTime.Value   = DateTime.Now.ToString("yyyy-MM-dd");
         if (PubFunction.curParameter.dataAuthority != 0)
         {
             if (this._UserShopID > 1)
             {
                 this.sltShop.Value = this._UserShopID.ToString();
                 this.sltShop.Attributes.Add("disabled", "disabled");
             }
         }
         this.BindRechargeMoney();
         PubFunction.AgainPrint(ref this.lblPrintTitle, ref this.lblPrintFoot, this._UserShopID);
         this.PointNum.Value  = PubFunction.GetPointNum("JFBDBB");
         this.Revokable.Value = PubFunction.GetControlVisit(this._UserAuthority, "gvRptMemRecharge_hyRevoke", 21).ToString();
     }
 }
Beispiel #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         this.BindGoodsClassList(this.CurShopID);
         this.share.Value = PubFunction.GetControlVisit(PubFunction.GetUserAuthority(this._UserGroupID), 120, 73).ToString().ToLower();
     }
 }
Beispiel #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         bool hasAuthority = PubFunction.GetControlVisit(PubFunction.GetGroupAuthority(this._UserGroupID), "StockList_aStock", 65);
         this.otherStock.Value = (hasAuthority ? "1" : "0");
         this.bindtree();
         this.Get_ParameterList(this.QueryCondition());
     }
 }
Beispiel #4
0
        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;
        }
Beispiel #5
0
 protected bool IsShow(string strControl, int module)
 {
     return(PubFunction.GetControlVisit(PubFunction.GetGroupAuthority(this._UserGroupID), strControl, module));
 }