protected void initData() { MWzJiFenShangPinChaXunInfo chaxun = new MWzJiFenShangPinChaXunInfo() { PaiXu = 0 }; var Commodel = EyouSoft.Security.Membership.YlHuiYuanProvider.GetYuMingInfo(); int recordCount = 0; EyouSoft.BLL.YlStructure.BDuiHuan db = new EyouSoft.BLL.YlStructure.BDuiHuan(); IList <EyouSoft.Model.YlStructure.MWzJiFenShangPinInfo> list = db.GetJiFenShangPins(Commodel.CompanyId, 10, 1, ref recordCount, chaxun); rptList.DataSource = list; rptList.DataBind(); }
protected void initData() { string uptype = Utils.GetQueryStringValue("uptype"); string chatype = Utils.GetQueryStringValue("chatype"); #region 会员积分 MYlHuiYuanInfo userInfo = null; bool IsLogin = EyouSoft.Security.Membership.YlHuiYuanProvider.IsLogin(out userInfo); if (IsLogin) { var huiYuanInfo = new EyouSoft.BLL.YlStructure.BHuiYuan().GetHuiYuanInfo(userInfo.HuiYuanId); phlLoginY.Visible = false; phLoginIn.Visible = true; ltr_jfNumber.Text = huiYuanInfo.KeYongJiFen.ToString("0.00"); // ltr_jfCar.Text = ""; } #endregion MWzJiFenShangPinChaXunInfo Chaxun = new MWzJiFenShangPinChaXunInfo(); if (uptype == "up") { switch (Utils.GetInt(chatype)) { case (int)JiFenDuiHuanFangShi.积分: Chaxun.PaiXu = 0; break; case (int)JiFenDuiHuanFangShi.积分礼品卡: Chaxun.PaiXu = 2; break; case (int)JiFenDuiHuanFangShi.积分现金: Chaxun.PaiXu = 4; break; default: Chaxun.PaiXu = 0; break; } } else if (uptype == "down") { switch (Utils.GetInt(chatype)) { case (int)JiFenDuiHuanFangShi.积分: Chaxun.PaiXu = 1; break; case (int)JiFenDuiHuanFangShi.积分礼品卡: Chaxun.PaiXu = 3; break; case (int)JiFenDuiHuanFangShi.积分现金: Chaxun.PaiXu = 5; break; default: Chaxun.PaiXu = 1; break; } } BDuiHuan bll = new BDuiHuan(); _pageIndex = UtilsCommons.GetPadingIndex(); var list = bll.GetJiFenShangPins(YuMingInfo.CompanyId, PageSize, _pageIndex, ref _recordCount, Chaxun); if (list != null && list.Count > 0) { rptList.DataSource = list; rptList.DataBind(); RegisterScript(string.Format("pConfig.pageSize={0};pConfig.pageIndex={1};pConfig.recordCount={2};", PageSize, _pageIndex, _recordCount)); } }