/// <summary> /// 提现数据列表绑定 /// </summary> private void Bind() { ISysSettingService settingService = IoC.Resolve <ISysSettingService>(); var sh = settingService.GetAll().Where(x => x.Key == "QLZHGZ").FirstOrDefault(); if (sh != null) { if (!decimal.TryParse(sh.Value, out ShenHeMonery)) { ShenHeMonery = 5000; } } string code = this.txtUserCode.Text.Trim(); //用户编号 string seriaNo = ""; // this.txtSeriaNo.Text.Trim(); //业务单号 string beginDate = this.txtBeginDate.Text.Trim(); //业务开始日期 string endDate = this.txtEndDate.Text.Trim(); //业务截止日期 decimal beginMonery = -1; decimal endMoner = -1; if (!decimal.TryParse(this.txtBeginMonery.Text, out beginMonery) || !decimal.TryParse(this.txtEndMonery.Text.Trim(), out endMoner)) { beginMonery = -1; endMoner = -1; } int type = Convert.ToInt32(this.drpStates.SelectedValue); int recordCount = 0; IMentionQueusService mentionQueusService = IoC.Resolve <IMentionQueusService>(); List <Ytg.BasicModel.DTO.MentionDTO> result = mentionQueusService.SelectBy(code, seriaNo, beginDate, endDate, beginMonery, endMoner, type, pagerControl.CurrentPageIndex, ref recordCount); this.repList.DataSource = result; this.repList.DataBind(); this.pagerControl.RecordCount = recordCount; }
/// <summary> /// 提现数据列表绑定 /// </summary> private void Bind() { string code = this.txtUserCode.Text.Trim(); //用户编号 string seriaNo = this.txtSeriaNo.Text.Trim(); //业务单号 string beginDate = this.txtBeginDate.Text.Trim(); //业务开始日期 string endDate = this.txtEndDate.Text.Trim(); //业务截止日期 int recordCount = 0; //ISysUserBalanceDetailService sysUserBalanceDetailService = IoC.Resolve<ISysUserBalanceDetailService>(); //List<MentionRecodVM> result = sysUserBalanceDetailService.SelectMentionRecod(code, seriaNo, beginDate,endDate,-1, pagerControl.CurrentPageIndex, ref recordCount); IMentionQueusService mentionQueusService = IoC.Resolve <IMentionQueusService>(); List <Ytg.BasicModel.DTO.MentionDTO> result = mentionQueusService.SelectBy(code, seriaNo, beginDate, endDate, -1, -1, Convert.ToInt32(drpStates.SelectedValue), pagerControl.CurrentPageIndex, ref recordCount); this.repList.DataSource = result; this.repList.DataBind(); this.pagerControl.RecordCount = recordCount; }