protected void Page_Load(object sender, EventArgs e) { this.id = Vincent._DTcms.DTRequest.GetQueryInt("id", 0); this.refund_id = Vincent._DTcms.DTRequest.GetQueryInt("refund_id", 0); //如果传过来的是退货id if (this.id == 0) { this.id = this.refund_id; if (this.id == 0) { JscriptMsg("传输参数不正确!", "back", "Error"); return; } Model.refund refund = new BLL.refund().GetModel(this.id); if (!new BLL.orders().Exists(refund.order_no)) { JscriptMsg("记录不存在或已被删除!", "back", "Error"); return; } if (!Page.IsPostBack) { ChkAdminLevel("order_edit", Vincent._DTcms.DTEnums.ActionEnum.View.ToString()); //检查权限 ShowInfos(refund.order_no); orderStatus(); } addressModel = new BuysingooShop.BLL.user_address().GetModels(refund.user_id); } else { if (this.id == 0) { JscriptMsg("传输参数不正确!", "back", "Error"); return; } //Model.refund refund = new BLL.refund().GetModel(this.id); model = new BLL.orders().GetModel(this.id); if (model == null) { JscriptMsg("记录不存在或已被删除!", "back", "Error"); return; } if (!Page.IsPostBack) { ChkAdminLevel("order_list", Vincent._DTcms.DTEnums.ActionEnum.View.ToString()); //检查权限 ShowInfos(model.order_no); orderStatus(); } addressModel = new BuysingooShop.BLL.user_address().GetModels(model.user_id); } }
private void RptBind(string _strWhere, string _orderby) { this.page = Vincent._DTcms.DTRequest.GetQueryInt("page", 1); if (this.refund_status > 0) { this.ddlrefund_status.SelectedValue = this.refund_status.ToString(); } txtKeywords.Text = this.keywords; BLL.refund bll = new BLL.refund(); this.rptList.DataSource = bll.GetList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount); this.rptList.DataBind(); //绑定页码 txtPageNum.Text = this.pageSize.ToString(); string pageUrl = Vincent._DTcms.Utils.CombUrlTxt("refund_list.aspx", "refund_status={0}&refund_type={1}&keywords={2}&page={3}", this.refund_status.ToString(), this.refund_type.ToString(), this.keywords, "__id__"); PageContent.InnerHtml = Vincent._DTcms.Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8); }