private void BindReplace() { ReplaceApplyQuery replaceQuery = this.GetReplaceQuery(); DbQueryResult replaceApplys = SubsiteSalesHelper.GetReplaceApplys(replaceQuery); this.dlstReplace.DataSource = replaceApplys.Data; this.dlstReplace.DataBind(); this.pager.TotalRecords = replaceApplys.TotalRecords; this.pager1.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(); } }