Example #1
0
        protected void BindData()
        {
            string    startDate = datePicker.Value.Trim();
            string    endDate   = datePickerEnd.Value.Trim();
            DataTable ds        = MsgBLL.GetMsgReminderHisBySellerNick(Users.Nick, startDate, endDate);

            //根据分页情况将数据写入或者更新到数据库
            this.grdBuyer.DataSource = ds;
            this.grdBuyer.DataBind();
        }
Example #2
0
        protected void BindData()
        {
            string    startDate = datePicker.Value.Trim();
            string    endDate   = datePickerEnd.Value.Trim();
            string    type      = drpSType.SelectedValue.ToString();
            DataTable ds        = new DataTable();

            if (string.IsNullOrEmpty(type) || type == "all")
            {
                ds = MsgBLL.GetMsgReminderHisBySellerNick(Users.Nick, startDate, endDate);
            }
            else
            {
                ds = MsgBLL.GetMsgReminderHisBySellerNick(Users.Nick, startDate, endDate, type);
            }
            //根据分页情况将数据写入或者更新到数据库
            this.grdBuyer.DataSource = ds;
            this.grdBuyer.DataBind();
        }