/// <summary> /// 绑定 /// </summary> private void BindControls() { txtbeginDate.Text = this.beginDate; txtendDate.Text = this.endDate; ddlOrderStatus.SelectedValue = this.orderStatus.ToString(); if (this.payAmountMin > -1) { txtPayAmountMin.Text = this.payAmountMin.ToString(); } this.payAmountMax = MXRequest.GetQueryDecimal("payAmountMax", -1); if (this.payAmountMax > -1) { txtPayAmountMax.Text = this.payAmountMax.ToString(); } if (!string.IsNullOrEmpty(orderNumber)) { txtOrderNumber.Text = this.orderNumber; } }
/// <summary> /// 获取查询条件 /// </summary> private void GetQueryString() { if (MyCommFun.IsRequestStr("beginDate", MyCommFun.RequestObjType.dateType)) { this.beginDate = MXRequest.GetQueryString("beginDate"); } if (MyCommFun.IsRequestStr("endDate", MyCommFun.RequestObjType.dateType)) { this.endDate = MXRequest.GetQueryString("endDate"); } if (MyCommFun.IsRequestStr("orderStatus", MyCommFun.RequestObjType.intType)) { this.orderStatus = MXRequest.GetQueryInt("orderStatus"); } this.payAmountMin = MXRequest.GetQueryDecimal("payAmountMin", -1); this.orderNumber = MXRequest.GetQueryString("orderNumber"); this.keywords = MXRequest.GetQueryString("keywords"); }