Exemplo n.º 1
0
        protected void InitData()
        {
            this.pageIndex = Utils.GetInt(Request.QueryString["Page"], 1);
            string kw = Server.UrlDecode(Utils.GetQueryStringValue("kw"));//姓名、手机号

            EyouSoft.BLL.TicketStructure.TicketVisitor BLL = new EyouSoft.BLL.TicketStructure.TicketVisitor();
            MVisitorSearchInfo Model = new MVisitorSearchInfo();

            //Model.Type = TicketDataType.线路常旅客;
            Model.KeyWord = kw;
            IList <TicketVistorInfo> lst = BLL.GetVisitors(this.pageSize, this.pageIndex, ref recordCount, this.SiteUserInfo.CompanyID, Model);

            if (null != lst && lst.Count > 0)
            {
                this.RepList.DataSource = lst;
                this.RepList.DataBind();
                this.BindPage(kw);
            }
            else
            {
                this.RepList.Controls.Add(new Literal()
                {
                    Text = "<li style='width:100%;height:100%;text-align:center;border-bottom:solid 1px #AED7EE;border-right:solid 1px #AED7EE;'>暂无信息!</li>"
                });
                this.ExportPageInfo1.Visible = false;
            }
        }
Exemplo n.º 2
0
        protected void initData()
        {
            this.pageIndex = Utils.GetInt(Request.QueryString["Page"], 1);
            string kw = Server.UrlDecode(Utils.GetQueryStringValue("kw"));//姓名、手机号

            EyouSoft.BLL.TicketStructure.TicketVisitor BLL = new EyouSoft.BLL.TicketStructure.TicketVisitor();
            MVisitorSearchInfo Model = new MVisitorSearchInfo();

            Model.KeyWord = kw;//手机号?
            IList <TicketVistorInfo> lst = BLL.GetVisitors(this.pageSize, this.pageIndex, ref recordCount, this.SiteUserInfo.CompanyID, Model);

            if (null != lst && lst.Count > 0)
            {
                this.RepList.DataSource = lst;
                this.RepList.DataBind();
                this.BindPage(kw);
            }
            else
            {
                this.RepList.Controls.Add(new Literal()
                {
                    Text = "<tr><td colspan='9' align='center'>暂无信息!</td></tr>"
                });
                this.ExportPageInfo1.Visible = false;
            }
        }