Beispiel #1
0
        protected void DataInit()
        {
            string lineName = Utils.GetQueryStringValue("txtlineName");
            string tourNo   = Utils.GetQueryStringValue("txttourNo");

            pageIndex = Utils.GetInt(Utils.GetQueryStringValue("Page"), 1);
            EyouSoft.BLL.TourStructure.BTour BLL = new EyouSoft.BLL.TourStructure.BTour();
            IList <EyouSoft.Model.TourStructure.MTourBaseInfo> list = BLL.GetSendWCTTour(this.SiteUserInfo.CompanyId, pageSize, pageIndex, ref recordCount, lineName, tourNo);

            if (list != null && list.Count > 0)
            {
                this.rpt_list.DataSource = list;
                this.rpt_list.DataBind();
                BindPage();
            }
            else
            {
                this.rpt_list.Controls.Add(new Label()
                {
                    Text = "<tr><td colspan='5' align='center'>对不起,没有相关数据!</td></tr>"
                });
                this.ExporPageInfoSelect1.Visible = false;
            }
        }