protected void Page_Load(object sender, EventArgs e) { if (!base.IsPostBack) { if (base.Request.QueryString["PID"] != null) { int pid = int.Parse(base.Request.QueryString["PID"]); if (pid == 147) { this.txtDrawType.Value = "2"; } else if (pid == 148) { this.txtDrawType.Value = "3"; this.ltlTitle.Text = "主页 > 商家管理 > 商家积分申请提现"; } } this.chkSMS.Checked = (this.curParameter.bolMoneySms && this.curParameter.bolAutoSendSMSByMemPointChange); this.chkPrint.Checked = this.curParameter.bolAutoPrint; this.lblDrawAccount.InnerText = this.curParameter.strMemPointChangePrefix + DateTime.Now.ToString("yyMMddHHmmssffff"); this.lblDrawTime.InnerText = DateTime.Now.ToString(); this.lblDrawUser.InnerText = this._UserName; this.txtDrawUserID.Value = this._UserID.ToString(); PubFunction.Get_PrintTitle(ref this.lblPrintTitle, ref this.lblPrintFoot, this._UserShopID); SysShop shop = new SysShop(); Chain.BLL.PointDraw bllPointDraw = new Chain.BLL.PointDraw(); if (this._UserShopID == 1) { this.txtTotalPoint.Value = "0"; } else { int point = shop.GetShopPointByShopid(this._UserShopID, int.Parse(this.txtDrawType.Value)); int drawPoint = bllPointDraw.GetShopPointDraw(this._UserShopID); if (drawPoint >= point) { this.txtTotalPoint.Value = "0"; } else { this.txtTotalPoint.Value = (point - drawPoint).ToString(); } } this.txtShopID.Value = this._UserShopID.ToString(); this.lbl_PointDrawPercent.InnerText = PubFunction.curParameter.PointDrawPercent.ToString(); this.PointNum.Value = PubFunction.GetPointNum("JFBD"); } }
protected void BindExchangeList(string strSql) { Chain.BLL.PointDraw draw = new Chain.BLL.PointDraw(); int Counts = this.NetPagerParameter.RecordCount; strSql = strSql + " and PointDraw.DrawShopID=SysShop.ShopID and PointDraw.DrawCreateUserID=SysUser.UserID and SysShop.ShopType=" + this.txtDrawType.Value; DataTable dtGiftExchange = draw.GetVerifyListSP(this.NetPagerParameter.PageSize, this.NetPagerParameter.CurrentPageIndex, out Counts, new string[] { strSql }).Tables[0]; this.NetPagerParameter.RecordCount = Counts; this.NetPagerParameter.CustomInfoHTML = string.Format("<div class=\"results\"><span>当前第{0}/{1}页 共{2}条记录 每页{3}条</span></div>", new object[] { this.NetPagerParameter.CurrentPageIndex, this.NetPagerParameter.PageCount, this.NetPagerParameter.RecordCount, this.NetPagerParameter.PageSize }); this.rptExchangeVerify.DataSource = dtGiftExchange; this.rptExchangeVerify.DataBind(); PageBase.BindSerialRepeater(this.rptExchangeVerify, this.NetPagerParameter.PageSize * (this.NetPagerParameter.CurrentPageIndex - 1)); }