Exemplo n.º 1
0
        private void BindRefund()
        {
            RefundApplyQuery refundQuery  = this.GetRefundQuery();
            DbQueryResult    refundApplys = SubsiteSalesHelper.GetRefundApplys(refundQuery);

            this.dlstRefund.DataSource = refundApplys.Data;
            this.dlstRefund.DataBind();
            this.pager.TotalRecords            = refundApplys.TotalRecords;
            this.pager1.TotalRecords           = refundApplys.TotalRecords;
            this.txtOrderId.Text               = refundQuery.OrderId;
            this.ddlHandleStatus.SelectedIndex = 0;
            if (refundQuery.HandleStatus.HasValue && (refundQuery.HandleStatus.Value > -1))
            {
                this.ddlHandleStatus.SelectedValue = refundQuery.HandleStatus.Value.ToString();
            }
        }
Exemplo n.º 2
0
        private void BindRefundNote()
        {
            RefundApplyQuery refundApplyQuery = new RefundApplyQuery();

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

            this.dlstRefundNote.DataSource = refundApplys.Data;
            this.dlstRefundNote.DataBind();
            this.pager.TotalRecords  = refundApplys.TotalRecords;
            this.pager1.TotalRecords = refundApplys.TotalRecords;
            this.txtOrderId.Text     = refundApplyQuery.OrderId;
        }