Exemplo n.º 1
0
        //绑定新闻列表——新闻速递,通知公告之类
        protected void bindNewsCol()
        {
            DataSet ds_news_col = news_col_bll.GetNewsCol();

            //此处的news_fast和news_fast_id后续补充完善,将所有新闻类别进行绑定
            news_fast_name = ds_news_col.Tables[0].Rows[0]["news_column_name"].ToString();
            news_fast_id   = int.Parse(ds_news_col.Tables[0].Rows[0]["news_column_id"].ToString());

            news_gonggao_name = ds_news_col.Tables[0].Rows[1]["news_column_name"].ToString();
            news_gonggao_id   = int.Parse(ds_news_col.Tables[0].Rows[1]["news_column_id"].ToString());

            news_jiceng_name = ds_news_col.Tables[0].Rows[2]["news_column_name"].ToString();
            news_jiceng_id   = int.Parse(ds_news_col.Tables[0].Rows[2]["news_column_id"].ToString());

            news_shetuan_name = ds_news_col.Tables[0].Rows[3]["news_column_name"].ToString();
            news_shetuan_id   = int.Parse(ds_news_col.Tables[0].Rows[3]["news_column_id"].ToString());

            news_xueyuan_name = ds_news_col.Tables[0].Rows[4]["news_column_name"].ToString();
            news_xueyuan_id   = int.Parse(ds_news_col.Tables[0].Rows[4]["news_column_id"].ToString());

            news_caijun_name = ds_news_col.Tables[0].Rows[5]["news_column_name"].ToString();
            news_caijun_id   = int.Parse(ds_news_col.Tables[0].Rows[5]["news_column_id"].ToString());

            news_gongqing_name = ds_news_col.Tables[0].Rows[6]["news_column_name"].ToString();
            news_gongqing_id   = int.Parse(ds_news_col.Tables[0].Rows[6]["news_column_id"].ToString());

            news_zaixian_name = ds_news_col.Tables[0].Rows[7]["news_column_name"].ToString();
            news_zaixian_id   = int.Parse(ds_news_col.Tables[0].Rows[7]["news_column_id"].ToString());
        }
Exemplo n.º 2
0
        protected void bindNewsCol()
        {
            DataSet ds_news_col = news_col_bll.GetNewsCol();

            news_col_name         = ds_news_col.Tables[0].Rows[news_col_id - 1]["news_column_name"].ToString();
            ColumnNameFather.Text = news_col_name;
            lblTitle.InnerText    = news_col_name;
        }