Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            //文件下载
            rptDownLoad.DataSource = FileDownloadService.Get_TopFileDownloadView(1, 6);
            rptDownLoad.DataBind();

            //政策法规
            rptRuleList.DataSource = NewsInfoService.Get_TopNewsInfoViewList("政策法规", 6);
            rptRuleList.DataBind();

            //工作动态
            rptWorkexpress.DataSource = NewsInfoService.Get_TopNewsInfoViewList(1, 6);
            rptWorkexpress.DataBind();

            //高速新闻
            rptGsNews.DataSource = NewsInfoService.Get_TopNewsInfoViewList(2, 6);
            rptGsNews.DataBind();

            //公告公示
            rptSiteNotice.DataSource = NewsInfoService.Get_TopNewsInfoViewList(63, 5);
            rptSiteNotice.DataBind();

            //头2-4条政务信息
            rptTop2_4NewsList.DataSource = NewsInfoService.Get_Top2To5NewsInfoViewList(62);
            rptTop2_4NewsList.DataBind();

            //头1条政务信息
            rptTop1_NewsList.DataSource = NewsInfoService.Get_Top1NewsInfoView(62);
            rptTop1_NewsList.DataBind();

            //高速风采
            rptGsFengCai.DataSource = NewsInfoService.Get_TopAnyPicNews(4, 0);
            rptGsFengCai.DataBind();

            //实时路况
            DataTable dtCurrentRoadCondition = NewsInfoService.Get_TopNewsInfoViewList(80, 0);
            rptCurrentRoadConditon.DataSource = dtCurrentRoadCondition;
            rptCurrentRoadConditon.DataBind();
            lblLJZHZX.Text = "您通行高速公路前可拨打高速交警路况查询电话:0371-68208110查询最新路况。<br><br>";

            //路政单位信息列表
            DataTable dtLZ = DBHelper.GetDataSet("select RD_ID,RD_Name from R_RoadDepart");
            rptLZ.DataSource = dtLZ;
            rptLZ.DataBind();
        }
    }
Example #2
0
    void binddata()
    {
        DataTable dt = FileDownloadService.Get_TopFileDownloadView(1, 0);

        AspNetPager1.RecordCount = dt.Rows.Count;
        if (dt.Rows.Count >= 0)
        {
            PagedDataSource ps = new PagedDataSource();
            DataView        dv = new DataView(dt);
            ps.DataSource          = dv;
            ps.AllowPaging         = true;
            ps.CurrentPageIndex    = AspNetPager1.CurrentPageIndex - 1;
            ps.PageSize            = AspNetPager1.PageSize;
            rptDownload.DataSource = ps;
            rptDownload.DataBind();
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            //规章制度
            DataTable dtGZZD = NewsInfoService.Get_TopNewsInfoViewList(33, 8);
            rptGZZD.DataSource = dtGZZD;
            rptGZZD.DataBind();

            //文明创建
            DataTable dtWMCJ = NewsInfoService.Get_TopNewsInfoViewList(34, 8);
            rptWMCJ.DataSource = dtWMCJ;
            rptWMCJ.DataBind();

            //养护交流
            DataTable dtYHJL = NewsInfoService.Get_TopNewsInfoViewList(35, 12);
            rptYHJL.DataSource = dtYHJL;
            rptYHJL.DataBind();

            //养护新技术、新材料、新设备
            DataTable dtYHXJS = NewsInfoService.Get_TopNewsInfoViewList(36, 4);
            rptYHXJS.DataSource = dtYHXJS;
            rptYHXJS.DataBind();
            //养护管理
            DataTable dtYHGL = NewsInfoService.Get_TopNewsInfoViewList(37, 4);
            rptYHGL.DataSource = dtYHGL;
            rptYHGL.DataBind();
            //施工公告
            DataTable dtSGGG = NewsInfoService.Get_TopNewsInfoViewList(38, 4);
            rptSGGG.DataSource = dtSGGG;
            rptSGGG.DataBind();
            //公路技术状况评定
            DataTable dtJSPD = NewsInfoService.Get_TopNewsInfoViewList(39, 4);
            rptJSPD.DataSource = dtJSPD;
            rptJSPD.DataBind();

            //办事指南
            DataTable dtBSZN = NewsInfoService.Get_TopNewsInfoViewList(31, 6);
            rptBSZN.DataSource = dtBSZN;
            rptBSZN.DataBind();

            //养护动态
            DataTable dtYHDT = NewsInfoService.Get_TopNewsInfoViewList(30, 6);
            rptYHDT.DataSource = dtYHDT;
            rptYHDT.DataBind();

            //基层资讯
            DataTable dtJCZX = NewsInfoService.Get_TopNewsInfoViewList(32, 7);
            rptJCZX.DataSource = dtJCZX;
            rptJCZX.DataBind();

            //通知公告
            DataTable dtTZGG = NewsInfoService.Get_TopNewsInfoViewList(41, 5);
            rptTZGG.DataSource = dtTZGG;
            rptTZGG.DataBind();

            //资料下载
            DataTable dtDownLoad = FileDownloadService.Get_TopFileDownloadView(3, 7);
            rptDownLoad.DataSource = dtDownLoad;
            rptDownLoad.DataBind();

            //养护掠影
            DataTable dtYHMien = NewsInfoService.Get_TopNewsInfoViewList(40, 0);
            rptYHMien.DataSource = dtYHMien;
            rptYHMien.DataBind();
        }
    }
Example #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            //行业规章
            DataTable dtHYGZ = NewsInfoService.Get_TopNewsInfoViewList(20, 6);
            rptHYGZ.DataSource = dtHYGZ;
            rptHYGZ.DataBind();

            //经验交流
            DataTable dtJYJL = NewsInfoService.Get_TopNewsInfoViewList(21, 6);
            rptJYJL.DataSource = dtJYJL;
            rptJYJL.DataBind();

            //资料下载
            DataTable dtDownload = FileDownloadService.Get_TopFileDownloadView(2, 6);
            rptDownLoad.DataSource = dtDownload;
            rptDownLoad.DataBind();

            //ISO国际标准化认证
            DataTable dtISO = NewsInfoService.Get_TopNewsInfoViewList(24, 6);
            rptISO.DataSource = dtISO;
            rptISO.DataBind();

            //通知公告
            DataTable dtTZGG = NewsInfoService.Get_TopNewsInfoViewList(25, 6);
            rptTZGG.DataSource = dtTZGG;
            rptTZGG.DataBind();

            //驿站新闻
            DataTable dtServiceNews = NewsInfoService.Get_TopNewsInfoViewList(26, 8);
            rptServiceNews.DataSource = dtServiceNews;
            rptServiceNews.DataBind();

            //驿站文化
            DataTable dtYZWH = NewsInfoService.Get_TopNewsInfoViewList(27, 6);
            rptYZWH.DataSource = dtYZWH;
            rptYZWH.DataBind();

            //行业报刊
            DataTable dtNewsPaper = NewsPaperService.Get_NewsPaperList(4);
            rptNewsPaper.DataSource = dtNewsPaper;
            rptNewsPaper.DataBind();

            //所有服务区列表
            DataTable dtServices = PubClass.DBHelper.GetDataSet("select top 36 * from T_ServiceInfo order by S_QuarterRank asc,S_Star desc");
            rptServices.DataSource = dtServices;
            rptServices.DataBind();

            //特色服务区
            DataTable dtTSFWQ = NewsInfoService.Get_TopNewsInfoViewList(130, 10);
            rptTSFWQ.DataSource = dtTSFWQ;
            rptTSFWQ.DataBind();

            //开图走四方
            DataTable dtKTZSF = NewsInfoService.Get_TopNewsInfoViewList(131, 10);
            rptKTZSF.DataSource = dtKTZSF;
            rptKTZSF.DataBind();

            //精品旅游线路
            DataTable dtJPLYXL = NewsInfoService.Get_TopNewsInfoViewList(132, 10);
            rptJPLYXL.DataSource = dtJPLYXL;
            rptJPLYXL.DataBind();

            //吃住行游
            DataTable dtCZXY = NewsInfoService.Get_TopNewsInfoViewList(133, 10);
            rptCZXY.DataSource = dtCZXY;
            rptCZXY.DataBind();

            //古道遗风
            DataTable dtGDYF = NewsInfoService.Get_TopNewsInfoViewList(134, 10);
            rptGDYF.DataSource = dtGDYF;
            rptGDYF.DataBind();
        }
    }