Ejemplo n.º 1
0
        private void BindInfo()
        {
            //获取类型编号
            int StatusId = Utils.GetInt(Request.QueryString["StatusId"], 0);

            if (Utils.InputText(Request.QueryString["StatusId"]) != null)
            {
                SendStatus.Value = Utils.InputText(Request.QueryString["StatusId"]);
            }
            //获取查询的关键字
            string keyword = Server.UrlDecode(Utils.InputText(Request.QueryString["keyword"]));

            if (!String.IsNullOrEmpty(keyword))
            {
                txtKey.Value = keyword;
            }
            //开始时间
            DateTime?startTime = Utils.GetDateTimeNullable(Request.QueryString["leavDate"]);
            //结束时间
            DateTime?EndTime = Utils.GetDateTimeNullable(Request.QueryString["returnDate"]);

            if (startTime.HasValue)
            {
                ShowBeginDate = startTime.Value.ToShortDateString();
            }
            if (EndTime.HasValue)
            {
                ShowEndDate = EndTime.Value.ToShortDateString();
            }
            //根据关键字查询短信息历史信息
            CurrencyPage = Utils.GetInt(Request.QueryString["Page"], 1);

            if (CurrencyPage < 1)
            {
                CurrencyPage = 1;
            }

            IList <EyouSoft.Model.SMSStructure.SendDetailInfo> GetListInfoByKey = EyouSoft.BLL.SMSStructure.SendMessage.CreateInstance().GetSendHistorys(intPageSize, CurrencyPage, ref intRecordCount, companyid, keyword, StatusId, startTime, EndTime);

            if (GetListInfoByKey != null && GetListInfoByKey.Count > 0)
            {
                //绑定短语信息
                ReListMoblie.DataSource = GetListInfoByKey;
                ReListMoblie.DataBind();
                //绑定分页控件
                this.ExportPageInfo1.intPageSize          = intPageSize;
                this.ExportPageInfo1.CurrencyPage         = CurrencyPage;
                this.ExportPageInfo1.intRecordCount       = intRecordCount;
                this.ExportPageInfo1.CurrencyPageCssClass = "RedFnt";
                string [] param   = { "urlType", "t", "page" };
                string    linkUrl = StringValidate.BuildUrlString(Request.QueryString, param);
                this.ExportPageInfo1.PageLinkURL = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?" + linkUrl + "&";
            }
            else
            {
                this.NoData.Visible     = true;
                this.div_Expage.Visible = false;
            }
            GetListInfoByKey = null;
        }