예제 #1
0
        private void BindReturns()
        {
            ReturnsApplyQuery returnsQuery  = this.GetReturnsQuery();
            DbQueryResult     returnsApplys = SubsiteSalesHelper.GetReturnsApplys(returnsQuery);

            this.dlstReturns.DataSource = returnsApplys.Data;
            this.dlstReturns.DataBind();
            this.pager.TotalRecords            = returnsApplys.TotalRecords;
            this.pager1.TotalRecords           = returnsApplys.TotalRecords;
            this.txtOrderId.Text               = returnsQuery.OrderId;
            this.ddlHandleStatus.SelectedIndex = 0;
            if (returnsQuery.HandleStatus.HasValue && returnsQuery.HandleStatus.Value > -1)
            {
                this.ddlHandleStatus.SelectedValue = returnsQuery.HandleStatus.Value.ToString();
            }
        }
예제 #2
0
        private void BindRefundNote()
        {
            ReturnsApplyQuery returnsApplyQuery = new ReturnsApplyQuery();

            if (!string.IsNullOrEmpty(this.Page.Request.QueryString["OrderId"]))
            {
                returnsApplyQuery.OrderId = Globals.UrlDecode(this.Page.Request.QueryString["OrderId"]);
            }
            returnsApplyQuery.HandleStatus = new int?(1);
            returnsApplyQuery.PageIndex    = this.pager.PageIndex;
            returnsApplyQuery.PageSize     = this.pager.PageSize;
            returnsApplyQuery.SortBy       = "HandleTime";
            returnsApplyQuery.SortOrder    = SortAction.Desc;
            DbQueryResult returnsApplys = SubsiteSalesHelper.GetReturnsApplys(returnsApplyQuery);

            this.dlstReturnNote.DataSource = returnsApplys.Data;
            this.dlstReturnNote.DataBind();
            this.pager.TotalRecords  = returnsApplys.TotalRecords;
            this.pager1.TotalRecords = returnsApplys.TotalRecords;
            this.txtOrderId.Text     = returnsApplyQuery.OrderId;
        }