private void BindRefund() { ReplaceApplyQuery replaceQuery = this.GetReplaceQuery(); DbQueryResult replaceApplys = TradeHelper.GetReplaceApplys(replaceQuery, HiContext.Current.User.UserId); this.listReplace.DataSource = replaceApplys.Data; this.listReplace.DataBind(); this.pager.TotalRecords = replaceApplys.TotalRecords; this.txtOrderId.Text = replaceQuery.OrderId; this.ddlHandleStatus.SelectedIndex = 0; if (replaceQuery.HandleStatus.HasValue && (replaceQuery.HandleStatus.Value > -1)) { this.ddlHandleStatus.SelectedValue = replaceQuery.HandleStatus.Value.ToString(); } }
private void BindReplace() { ReplaceApplyQuery replaceQuery = this.ReplaceApplyQuery(); replaceQuery.UserId = new int?(HiContext.Current.User.UserId); DbQueryResult refundApplys = TradeHelper.GetReplaceApplys(replaceQuery); this.rptApply.DataSource = refundApplys.Data; this.rptApply.DataBind(); //this.pager.TotalRecords = refundApplys.TotalRecords; //this.txtOrderId.Value = refundQuery.OrderId; //this.handleStatus.SelectedIndex = 0; //if (refundQuery.HandleStatus.HasValue && refundQuery.HandleStatus.Value > -1) //{ // this.handleStatus.Value = refundQuery.HandleStatus.Value.ToString(); //} }
private void BindRefund() { ReplaceApplyQuery replaceQuery = this.GetReplaceQuery(); replaceQuery.UserId = HiContext.Current.UserId; PageModel <ReplaceInfo> replaceApplys = TradeHelper.GetReplaceApplys(replaceQuery); this.listReplace.DataSource = replaceApplys.Models; this.listReplace.DataBind(); this.pager.TotalRecords = replaceApplys.Total; this.txtOrderId.Text = (string.IsNullOrEmpty(replaceQuery.OrderId) ? replaceQuery.ProductName : replaceQuery.OrderId); if (replaceQuery.ReplaceId.HasValue) { this.txtAfterSaleId.Text = replaceQuery.ReplaceId.Value.ToString(); } this.ddlHandleStatus.SelectedIndex = 0; if (replaceQuery.HandleStatus.HasValue && replaceQuery.HandleStatus.Value > -1) { this.ddlHandleStatus.SelectedValue = replaceQuery.HandleStatus.Value; } }