Example #1
0
        /// <summary>
        /// 文化动态
        /// </summary>
        public void LoadCultureTrends()
        {
            DataTable dtTrends = WebInfoLogic.GetWebInfoRoll(5);

            string sPicUrls = "";
            string sLinks   = "";
            string sTexts   = "";
            string url      = Request.Url.ToString().ToLower().Replace("index.aspx", "InfoDetail.aspx?InfoID=");

            foreach (DataRow dr in dtTrends.Rows)
            {
                sPicUrls += SystemParaLogic.GetSystemParam("MiniatureDummyPath") + dr["MiniatureFileName"].ToString() + "|";
                sLinks   += url + dr["InfoID"].ToString() + "|";
                sTexts   += dr["Title"].ToString() + "|";
            }

            if (dtTrends.Rows.Count > 0)
            {
                sPicUrls = sPicUrls.Substring(0, sPicUrls.Length - 1);
                sLinks   = sLinks.Substring(0, sLinks.Length - 1);
                sTexts   = sTexts.Substring(0, sTexts.Length - 1);
            }
            divPicNews.InnerHtml = "<script type=\"text/javascript\">getFlashNews(\"" + sPicUrls + "\",\"" + sLinks + "\",\"" + sTexts + "\");</script>";

            LoadCultureTrendsRight();
        }
Example #2
0
        /// <summary>
        /// 没有子栏目
        /// </summary>
        /// <param name="ParentID"></param>
        public void LoadParent(long ParentID)
        {
            StringBuilder strMenu  = new StringBuilder(1000);
            StringBuilder strChild = new StringBuilder(200);

            DataTable dt = WebInfoLogic.ParentCategoryID(ParentID);

            if (dt.Rows.Count > 0)
            {
                DataTable dtname = WebInfoLogic.ParentNameByID(ConvertHelper.ConvertLong(dt.Rows[0][0].ToString()));
                if (dtname.Rows.Count > 0)
                {
                    //strMenu.Append(string.Format("<div class=\"list_li\" style=\"cursor:pointer\"><a href=\"InfoList.aspx?InfoCategoryID={0}\">{1}",

                    //                  dt.Rows[0][0].ToString(), dtname.Rows[0][0].ToString()) + "</a></div>");

                    strMenu.Append(string.Format("<div class=\"list_li\" style=\"cursor:pointer\">{0}",

                                                 dtname.Rows[0][0].ToString()) + "</div>");

                    DataTable dtChild = WebInfoLogic.ParentNameByID(ParentID);
                    if (dtChild.Rows.Count > 0)
                    {
                        strChild.Append(string.Format("<ul class=\"list_ul00\">"));
                        strChild.Append(string.Format("<li class=\"list_ul00_li\"><a href=\"Info.aspx?InfoCategoryID={0}\" target=\"_self\">{1}</a></li>", ParentID.ToString(), dtChild.Rows[0][0].ToString()));
                        strChild.Append("</ul>");
                    }
                }
            }
            leftName.InnerHtml = strMenu.Append(strChild.ToString()).ToString();
        }
Example #3
0
        public string LoadPage(long ParentInfoID)
        {
            string Result = string.Empty;

            DataTable dt = WebInfoLogic.GetChildCategoryName(ParentInfoID);

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                int mno = Convert.ToInt32(dt.Rows[i][0].ToString());
                if ("".Equals(Result))
                {
                    Result += mno;
                }
                else
                {
                    Result += "," + mno;
                }

                string sRes = menuChild(mno);

                if (!"".Equals(sRes))
                {
                    Result += "," + sRes;
                }
            }

            return(Result);
        }
        /// <summary>
        /// 初始化页面
        /// </summary>
        public void InitPage()
        {
            try
            {
                if (this.AdvertID != 0)
                {
                    List <AdvertEntity> advertEntity = AdvertLogic.GetAdvertOnLineImage(AdvertID);

                    if (advertEntity[0].AdContent.Length > 0)
                    {
                        Response.AddHeader("Content-Disposition", "filename=img" + AdvertID);
                        Response.ContentType = "image/*";
                        Response.BinaryWrite(advertEntity[0].AdContent);
                        Response.End();
                    }
                }
                else if (this.InfoCategoryID != 0)
                {
                    DataTable dt = WebInfoLogic.WebInfoCategoryImage(InfoCategoryID);

                    if (dt.Rows[0]["MiniatureName"].ToString().Length > 0)
                    {
                        Response.AddHeader("Content-Disposition", string.Format("filename=img{0}.jpg", this.InfoCategoryID));
                        Response.ContentType = "image/*";
                        Response.BinaryWrite((byte[])dt.Rows[0]["MiniatureName"]);
                        Response.End();
                    }
                }
            }
            catch (Exception ex)
            {
                new MessageBoxHelper().RegisterStartupScript(string.Format("<script>winow.open('{0}');", ex.Message));
            }
        }
        /// <summary>
        /// 页面加载
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                LoadGetUrlPara();                                                 //获取url参数

                if (CheckIsExistChild(ConvertHelper.ConvertLong(InfoCategoryID))) //检查是否存在子项
                {
                    LoadChildContent(ConvertHelper.ConvertLong(InfoCategoryID));
                }
                else
                {
                    DataTable dtParent = WebInfoLogic.GetParentCategoryName(InfoCategoryID);

                    if (dtParent.Rows.Count > 0)
                    {
                        LoadChildContent(ConvertHelper.ConvertLong(dtParent.Rows[0]["ParentInfoCategoryID"]));
                    }
                    else
                    {
                        LoadParent(ConvertHelper.ConvertLong(InfoCategoryID));
                    }
                }
            }
        }
Example #6
0
        /// <summary>
        /// 显示父级菜单名
        /// </summary>
        /// <param name="parentNodeID"></param>
        private void LoadParentName(long parentNodeID)
        {
            DataTable dtParent = WebInfoLogic.GetCategoryName(parentNodeID);

            if (dtParent.Rows.Count > 0 && dtParent != null)
            {
                //leftParent.InnerHtml = dtParent.Rows[0]["InfoCategoryName"].ToString();
            }
        }
Example #7
0
        /// <summary>
        /// 检查信息是否存在子项
        /// </summary>
        public bool CheckIsExistChild(long ParentID)
        {
            if (WebInfoLogic.IsExistChild(ParentID))
            {
                return(true);
            }

            return(false);
        }
Example #8
0
        /// <summary>
        /// 各类型信息
        /// </summary>
        public void LoadData(long InfoCategory)
        {
            strTitle   = new StringBuilder(500);
            strContent = new StringBuilder(500);
            strImg     = new StringBuilder(200);
            strNews    = new StringBuilder(2000);

            DataTable dtNews = WebInfoLogic.GetCulumnInfo(InfoCategory, 5);

            if (dtNews.Rows.Count > 0)
            {
                strNews.Append("<table border=\"0\" style=\"width: 100%;\">");
                for (int i = 0; i < dtNews.Rows.Count; i++)
                {
                    if (i == 0)
                    {
                        strTitle.Append("<a href=\"InfoDetail.aspx?InfoID=" + ConvertHelper.ConvertLong(dtNews.Rows[i]["InfoID"].ToString()));
                        strTitle.Append("\" target=\"_blank\" title=\"标    题:" + dtNews.Rows[i]["Title"].ToString() + "&#10;发布日期:");
                        strTitle.Append(ConvertHelper.ConvertDateTime(dtNews.Rows[i]["PubDate"].ToString()).ToShortDateString() + "&#10;访问次数:");
                        strTitle.Append(dtNews.Rows[i]["ClickRate"].ToString() + "\">");
                        strTitle.Append(SelectInfo(dtNews.Rows[0]["Title"].ToString().Trim(), 13) + "</a>");

                        strContent.Append("<span class=\"hidetext\">");
                        strContent.Append(Server.HtmlDecode(dtNews.Rows[0]["InfoContent"].ToString()));
                        strContent.Append("</span>");

                        if (CheckImageUrl(dtNews.Rows[0]["MiniatureFileName"].ToString()))
                        {
                            strImg.Append("<img width=\"105\" height=\"72\" src=\"" + SelectImage(InfoCategory));
                            strImg.Append("\" />");
                        }
                        else
                        {
                            strImg.Append("<img width=\"105\" height=\"72\" src=\"" + SystemParaLogic.GetSystemParam("MiniatureDummyPath") + dtNews.Rows[0]["MiniatureFileName"].ToString() + "\"/>");
                        }
                    }
                    else
                    {
                        strNews.Append("<tr><td style=\"width:60%;\"><ul>");
                        strNews.Append("<li><a class=\"hideText\" style=\"width:200px;\" href=\"InfoDetail.aspx?InfoID=" + ConvertHelper.ConvertLong(dtNews.Rows[i]["InfoID"].ToString()));
                        strNews.Append("\" target=\"_blank\" title=\"标    题:" + dtNews.Rows[i]["Title"].ToString() + "&#10;发布日期:");
                        strNews.Append(ConvertHelper.ConvertDateTime(dtNews.Rows[i]["PubDate"].ToString()).ToShortDateString() + "&#10;访问次数:");
                        strNews.Append(dtNews.Rows[i]["ClickRate"].ToString() + "\">");
                        strNews.Append(dtNews.Rows[i]["Title"].ToString().Trim() + "</a></li></ul>");
                        strNews.Append("</td><td style=\"width:40%;\">");
                        strNews.Append("[" + dtNews.Rows[i]["PubDate"].ToString() + "]</td></tr>");
                    }
                }
                strNews.Append("</table>");
            }
            else
            {
                strTitle.Remove(0, strTitle.Length);
                strContent.Remove(0, strContent.Length);
                strNews.Remove(0, strNews.Length);
            }
        }
Example #9
0
        /// <summary>
        /// 存在子栏目
        /// </summary>
        /// <param name="ParentID"></param>
        public void LoadChildContent(long ParentID)
        {
            StringBuilder strMenu  = new StringBuilder(200);
            StringBuilder strChild = new StringBuilder(2000);

            DataTable dtname = WebInfoLogic.ParentNameByID(ParentID);

            if (dtname.Rows.Count > 0)
            {
                //strMenu.Append(string.Format("<div class=\"list_li\" style=\"cursor:pointer\"><a href=\"InfoList.aspx?InfoCategoryID={0}\">{1}",

                //                  ParentID.ToString(), dtname.Rows[0][0].ToString()) + "</a></div>");
                strMenu.Append(string.Format("<div class=\"list_li\" style=\"cursor:pointer\">{0}",

                                             dtname.Rows[0][0].ToString()) + "</div>");
            }

            DataTable dt = WebInfoLogic.GetCategoryName();

            DataTable dtParent = WebInfoLogic.ParentNameByID(ParentID);

            DataRow[] rows = dt.Select("ParentInfoCategoryID=" + ParentID);//查找当前结点的所有子结点

            if (dtParent.Rows.Count > 0 && dtParent != null)
            {
                leftParent.InnerHtml = dtParent.Rows[0]["InfoCategoryName"].ToString();

                if (dt != null && dt.Rows.Count > 0)
                {
                    strChild.Append(string.Format("<ul class=\"list_ul00\">"));
                    foreach (DataRow row in rows)
                    {
                        if (CheckIsExistChild(ConvertHelper.ConvertLong(row["InfoCategoryID"])))
                        {
                            strChild.Append(string.Format("<li class=\"list_ul00_li\"><a href=\"InfoList.aspx?InfoCategoryID={1}\" target=\"_self\">{0}</a></li>", row["InfoCategoryName"].ToString(), row["InfoCategoryID"].ToString()));
                        }
                        else
                        {
                            strChild.Append(string.Format("<li class=\"list_ul00_li\"><a href=\"Info.aspx?CategoryID={1}&InfoCategoryID={2}\" target=\"_self\">{0}</a></li>", row["InfoCategoryName"].ToString(), row["InfoCategoryID"].ToString(), ParentID));
                        }
                    }
                    strChild.Append("</ul>");
                    leftName.InnerHtml = strMenu.Append(strChild.ToString()).ToString();
                }
                else
                {
                    leftName.InnerHtml = "暂无相关信息...";
                }
            }
        }
Example #10
0
        /// <summary>
        /// 绑定位置
        /// </summary>
        public void LoadPosition()
        {
            if (!string.IsNullOrEmpty(InfoCategoryID) && (InfoCategoryID.ToString() != "0" || InfoCategoryID.ToString() == "0"))
            {
                LoadInfo(InfoCategoryID);
            }
            else if (string.IsNullOrEmpty(InfoCategoryID) && InfoID.ToString() != "0")
            {
                List <WebInfoEntity> infoEntity = WebInfoLogic.GetWebInfoEntityByInfoID(InfoID);

                InfoCategoryID = ConvertHelper.ConvertString(infoEntity[0].InfoCategoryID);

                LoadInfo(InfoCategoryID);
            }
        }
Example #11
0
        public void ChildContent(long ParentID)
        {
            //if (ParentID == 0)
            //{
            //    if (CheckIsExistChild(ParentID))
            //    {
            //        LoadChildInfo();
            //    }
            //}
            //else
            //{
            //    LoadChildInfo();
            //}

            StringBuilder strMenu = new StringBuilder(200);

            DataTable dt = WebInfoLogic.GetCategoryName();

            DataTable dtParent = WebInfoLogic.ParentNameByID(ParentID);

            DataRow[] rows = dt.Select("ParentInfoCategoryID=" + ParentID);//查找当前结点的所有子结点

            if (dtParent.Rows.Count > 0 && dtParent != null)
            {
                leftParent.InnerHtml = dtParent.Rows[0]["InfoCategoryName"].ToString();

                if (dt != null && dt.Rows.Count > 0)
                {
                    foreach (DataRow row in rows)
                    {
                        if (CheckIsExistChild(ConvertHelper.ConvertLong(row["InfoCategoryID"])))
                        {
                            strMenu.Append(string.Format("<li class=\"list_li\"><a href=\"Info.aspx?InfoCategoryID={1}\" target=\"_self\">{0}</a></li>", row["InfoCategoryName"].ToString(), row["InfoCategoryID"].ToString()));
                        }
                        else
                        {
                            strMenu.Append(string.Format("<li class=\"list_li\"><a href=\"InfoList.aspx?CategoryID={1}&InfoCategoryID={2}\" target=\"_self\">{0}</a></li>", row["InfoCategoryName"].ToString(), row["InfoCategoryID"].ToString(), ParentID));
                        }
                    }
                    leftName.InnerHtml = strMenu.ToString();
                }
                else
                {
                    leftName.InnerHtml = "暂无相关信息...";
                }
            }
        }
Example #12
0
        /// <summary>
        /// 位置信息
        /// </summary>
        /// <param name="webInfoID"></param>
        public void LoadInfo(string webInfoID)
        {
            if (ConvertHelper.ConvertString(webInfoID) != "0")
            {
                DataTable dt = WebInfoLogic.GetParentCategoryName(webInfoID);

                if (dt.Rows.Count > 0)
                {
                    if (dt.Rows[0][0].ToString() != "0")
                    {
                        DataTable dtname = WebInfoLogic.GetCategoryName(webInfoID);

                        if (WebInfoLogic.IsExistChild(ConvertHelper.ConvertLong(webInfoID)))
                        {
                            _str = string.Format(">><a href=InfoList.aspx?InfoCategoryID={0} target=\"_self\">{1}</a>", webInfoID, dtname.Rows[0]["InfoCategoryName"].ToString()) + _str;
                        }
                        else
                        {
                            _str = string.Format(">><a href=Info.aspx?InfoCategoryID={0} target=\"_self\">{1}</a>", webInfoID, dtname.Rows[0]["InfoCategoryName"].ToString()) + _str;
                        }

                        LoadInfo(dtname.Rows[0]["ParentInfoCategoryID"].ToString());
                    }
                    else
                    {
                        DataTable dtname = WebInfoLogic.GetCategoryName(webInfoID);

                        if (WebInfoLogic.IsExistChild(ConvertHelper.ConvertLong(webInfoID)))
                        {
                            _str = string.Format(">><a href=InfoList.aspx?InfoCategoryID={0} target=\"_self\">{1}</a>", webInfoID, dtname.Rows[0]["InfoCategoryName"].ToString()) + _str;
                        }
                        else
                        {
                            _str = string.Format(">><a href=Info.aspx?InfoCategoryID={0} target=\"_self\">{1}</a>", webInfoID, dtname.Rows[0]["InfoCategoryName"].ToString()) + _str;
                        }
                    }
                }
            }
            else
            {
                if (ConvertHelper.ConvertString(webInfoID) == "0")
                {
                    _str = string.Format(">><a href=InfoList.aspx?InfoCategoryID={0} target=\"_self\">{1}</a>", "0", "文化动态");
                }
            }
        }
        /// <summary>
        /// 获取政府信息公开
        /// </summary>
        public void LoadGovPublic()
        {
            DataTable     dtGov   = WebInfoLogic.GetGovPublic();
            StringBuilder strRoll = new StringBuilder(100);

            if (dtGov.Rows.Count > 0)
            {
                strRoll.Append("<ul>");
                for (int i = 0; i < dtGov.Rows.Count; i++)
                {
                    strRoll.Append(string.Format("<li><a href=\"Zwgk_Left.aspx?InfoCategoryID={0}", ConvertHelper.ConvertLong(dtGov.Rows[i]["InfoCategoryID"].ToString())));
                    strRoll.Append("\">" + dtGov.Rows[i]["InfoCategoryName"].ToString() + "</a>");
                }
                strRoll.Append("</ul>");
                divGovInfo.InnerHtml = strRoll.ToString();
            }
        }
Example #14
0
        /// <summary>
        /// 文化专题
        /// </summary>
        public void LoadCultureTopic()
        {
            DataTable     dtTopic  = WebInfoLogic.GetCulumnInfo((long)Common.PageEnum.ColumnCategory.CultureTopic, 5);
            StringBuilder strTopic = new StringBuilder(500);

            if (dtTopic.Rows.Count > 0)
            {
                strTopic.Append("<marquee style=\"padding: 1px;\" scrollamount=\"1\" scrolldelay=\"5\" behavior=\"alternate\"");
                strTopic.Append(" height=\"155\" width=\"670\" loop=\"-1\" onmouseover=\"javascript:this.stop();\" onmouseout=\"javascript:this.start();\">");
                for (int i = 0; i < dtTopic.Rows.Count; i++)
                {
                    strTopic.Append("<div class=\"pp\"><img width=\"184\" height=\"129\" src=\"" + dtTopic.Rows[i]["MiniatureFileName"].ToString());
                    strTopic.Append("\" /><a href=\"InfoDetail.aspx?InfoID=" + dtTopic.Rows[i]["InfoID"].ToString() + "\">");
                    strTopic.Append("<div class=\"name\">" + dtTopic.Rows[i]["Title"] + "</div></a></div>");
                }
                strTopic.Append("</marquee>");
                divTopic.InnerHtml = strTopic.ToString();
            }
        }
Example #15
0
        /// <summary>
        /// 显示菜单
        /// </summary>
        /// <param name="parentNodeID"></param>
        private void ShowMenu(long parentNodeID)
        {
            if (CheckIsExistChild(parentNodeID))
            {
                DataTable dt = WebInfoLogic.GetParentName(parentNodeID);

                if (dt != null && dt.Rows.Count > 0)
                {
                    for (int i = 0; i < dt.Rows.Count; i++)
                    {
                        if (CheckIsExistChild(ConvertHelper.ConvertLong(dt.Rows[i]["InfoCategoryID"].ToString())))
                        {
                            //strMenu.Append(string.Format("<div class=\"list_li\" style=\"cursor:pointer\" onclick=\"ShowMenu('{3}')\"><a href=\"info.aspx?InfoCategoryID={0}&CategoryID={2}\">{1}",

                            //   dt.Rows[i]["InfoCategoryID"].ToString(), dt.Rows[i]["InfoCategoryName"].ToString(), dt.Rows[i]["InfoCategoryID"].ToString(), dt.Rows[i]["InfoCategoryID"].ToString()) + "</a></div>");

                            strMenu.Append(string.Format("<div class=\"list_li\" style=\"cursor:pointer\"><a href=\"info.aspx?InfoCategoryID={0}&CategoryID={2}\">{1}",

                                                         dt.Rows[i]["InfoCategoryID"].ToString(), dt.Rows[i]["InfoCategoryName"].ToString(), dt.Rows[i]["InfoCategoryID"].ToString()) + "</a></div>");
                        }
                        if (ConvertHelper.ConvertLong(dt.Rows[i]["InfoCategoryID"].ToString()) != 0)
                        {
                            if (CheckIsExistChild(ConvertHelper.ConvertLong(dt.Rows[i]["InfoCategoryID"].ToString())))
                            {
                                LoadChildMenu(ConvertHelper.ConvertLong(dt.Rows[i]["InfoCategoryID"].ToString()));
                            }
                            else
                            {
                                ShowMenu(ConvertHelper.ConvertLong(dt.Rows[i]["InfoCategoryID"].ToString()));
                            }
                        }
                    }
                }
            }
            else
            {
                DataTable dtName = WebInfoLogic.GetCategoryName(parentNodeID);
                strMenu.Append(string.Format("<div class=\"list_li\"><a href=\"info.aspx?InfoCategoryID={0}&CategoryID={2}\">{1}</a></div>",
                                             InfoCategoryID.ToString(), dtName.Rows[0]["InfoCategoryName"].ToString(), parentNodeID.ToString()));
            }
            leftName.InnerHtml = strMenu.ToString();
        }
Example #16
0
        private string menuChild(int ParentId)
        {
            string    Result = String.Empty;
            DataTable dt     = WebInfoLogic.GetChildCategoryName(ParentId);

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                int mid = Convert.ToInt32(dt.Rows[i][0].ToString());
                if ("".Equals(Result))
                {
                    Result += mid;
                }
                else
                {
                    Result += "," + mid;
                }
                Result += menuChild(mid);
            }
            return(Result);
        }
Example #17
0
        /// <summary>
        /// 获取便民服务信息
        /// </summary>
        public void LoadPeopleService()
        {
            DataTable     dtService  = WebInfoLogic.GetPeopleService(7);
            StringBuilder strService = new StringBuilder(200);

            if (dtService.Rows.Count > 0)
            {
                strService.Append("<ul>");
                for (int i = 0; i < dtService.Rows.Count; i++)
                {
                    strService.Append("<li><a style=\"display: block;overflow: hidden;white-space: pre-wrap;text-overflow: clip;width:200px;height:22px;\" href=\"InfoDetail.aspx?InfoID=" + ConvertHelper.ConvertLong(dtService.Rows[i]["InfoID"].ToString()));
                    strService.Append("&InfoCategoryID=" + dtService.Rows[i]["InfoCategoryID"].ToString());
                    strService.Append("\" target=\"_blank\" title=\"标    题:" + dtService.Rows[i]["Title"].ToString() + "&#10;发布日期:");
                    strService.Append(ConvertHelper.ConvertDateTime(dtService.Rows[i]["PubDate"].ToString()).ToShortDateString() + "&#10;访问次数:");
                    strService.Append(dtService.Rows[i]["ClickRate"].ToString() + "\">" + dtService.Rows[i]["Title"].ToString() + "</a>");
                    strService.Append("&nbsp;&nbsp;");
                }
                strService.Append("</ul>");
                divService.InnerHtml = strService.ToString();
            }
        }
Example #18
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="ParnetID"></param>
        public void LoadChildMenu(long ParnetID)
        {
            StringBuilder strChild = new StringBuilder(200);

            strChild.Append(string.Format("<span id=\"{0}\" class=\"no\"><ul class=\"list_ul00\">", ParnetID));

            DataTable dtChild = WebInfoLogic.GetCategoryName();

            DataRow[] rows = dtChild.Select("ParentInfoCategoryID=" + ParnetID);//查找当前结点的所有子结点

            if (dtChild != null && dtChild.Rows.Count > 0)
            {
                foreach (DataRow row in rows)
                {
                    strChild.Append(string.Format("<li class=\"list_ul00_li\"><a href=\"Info.aspx?InfoCategoryID={0}&CategoryID={1}\" target=\"_self\">{2}</a></li>",
                                                  ParnetID.ToString(), row["InfoCategoryID"].ToString(), row["InfoCategoryName"].ToString()));
                }
            }
            strChild.Append("</ul></span>");
            strMenu.Append(strChild.ToString());
        }
Example #19
0
        /// <summary>
        /// 右边信息
        /// </summary>
        public void LoadCultureTrendsRight()
        {
            DataTable     dtRight  = WebInfoLogic.GetWebInfoRoll(8);
            StringBuilder strRight = new StringBuilder(1000);

            if (dtRight.Rows.Count > 0)
            {
                strRight.Append("<ul>");
                for (int i = 0; i < dtRight.Rows.Count; i++)
                {
                    strRight.Append("<li><a href=\"InfoDetail.aspx?InfoID=" + ConvertHelper.ConvertLong(dtRight.Rows[i]["InfoID"].ToString()));
                    strRight.Append("\" target=\"_blank\" title=\"标    题:" + dtRight.Rows[i]["Title"].ToString() + "&#10;发布日期:");
                    strRight.Append(ConvertHelper.ConvertDateTime(dtRight.Rows[i]["PubDate"].ToString()).ToShortDateString() + "&#10;访问次数:");
                    strRight.Append(dtRight.Rows[i]["ClickRate"].ToString() + "\">" + dtRight.Rows[i]["Title"].ToString() + "</a>");
                    strRight.Append("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
                    strRight.Append("[" + ConvertHelper.ConvertDateTime(dtRight.Rows[i]["PubDate"].ToString()).Month.ToString() + "/");
                    strRight.Append(ConvertHelper.ConvertDateTime(dtRight.Rows[i]["PubDate"].ToString()).Day.ToString() + "]");
                }
                strRight.Append("</ul>");
            }
            divWhdtRight.InnerHtml = strRight.ToString();
        }
        /// <summary>
        /// 获取政策法规
        /// </summary>
        public void LoadPolicy()
        {
            int           infoCategory = WebInfoLogic.GetCategoryID("政策法规");
            DataTable     dtNotice     = WebInfoLogic.GetPolicy(7, infoCategory);
            StringBuilder strNotice    = new StringBuilder(1000);

            if (dtNotice.Rows.Count > 0)
            {
                strNotice.Append("<ul>");
                for (int i = 0; i < dtNotice.Rows.Count; i++)
                {
                    strNotice.Append("<li><a style=\"display: block;overflow: hidden;white-space: pre-wrap;text-overflow: clip;width:180px;height:22px;\" href=\"Zfgk_Detail.aspx?InfoID=" + ConvertHelper.ConvertLong(dtNotice.Rows[i]["InfoID"].ToString()));
                    strNotice.Append("&InfoCategoryID=" + ConvertHelper.ConvertLong(dtNotice.Rows[i]["InfoCategoryID"].ToString()));
                    strNotice.Append("\" target=\"_blank\" title=\"标    题:" + dtNotice.Rows[i]["Title"].ToString() + "&#10;发布日期:");
                    strNotice.Append(ConvertHelper.ConvertDateTime(dtNotice.Rows[i]["PubDate"].ToString()).ToShortDateString() + "&#10;访问次数:");
                    strNotice.Append(dtNotice.Rows[i]["ClickRate"].ToString() + "\">" + dtNotice.Rows[i]["Title"].ToString() + "</a>");
                    strNotice.Append("&nbsp;&nbsp;&nbsp;&nbsp;");
                    strNotice.Append("[" + ConvertHelper.ConvertDateTime(dtNotice.Rows[i]["PubDate"].ToString()).Month.ToString() + "/");
                    strNotice.Append(ConvertHelper.ConvertDateTime(dtNotice.Rows[i]["PubDate"].ToString()).Day.ToString() + "]");
                }
                strNotice.Append("</ul>");
                divPolicy.InnerHtml = strNotice.ToString();
            }
        }
        /// <summary>
        /// 友情链接
        /// </summary>
        public void LoadDropDownList()
        {
            //各级部门网站
            DataTable dtDept = WebInfoLogic.GetDropDownInfo((long)Common.PageEnum.DownLinkType.Dept);

            _linkName = WebInfoLogic.GetDownLinkName((long)Common.PageEnum.DownLinkType.Dept);

            ddlDept.Items.Insert(0, new ListItem(string.Format("---{0}---", _linkName), "0"));
            foreach (DataRow row in dtDept.Rows)
            {
                ListItem li = new ListItem();
                li.Text  = row["DownLinkName"].ToString();
                li.Value = row["DownLinkHref"].ToString();
                ddlDept.Items.Add(li);
            }

            //文化部门网站
            DataTable dtCulture = WebInfoLogic.GetDropDownInfo((long)Common.PageEnum.DownLinkType.Culture);

            _linkName = WebInfoLogic.GetDownLinkName((long)Common.PageEnum.DownLinkType.Culture);

            ddlCulture.Items.Insert(0, new ListItem(string.Format("---{0}---", _linkName), "0"));
            foreach (DataRow row in dtCulture.Rows)
            {
                ListItem li = new ListItem();
                li.Text  = row["DownLinkName"].ToString();
                li.Value = row["DownLinkHref"].ToString();
                ddlCulture.Items.Add(li);
            }

            //友好文化网站
            DataTable dtFriend = WebInfoLogic.GetDropDownInfo((long)Common.PageEnum.DownLinkType.Friend);

            _linkName = WebInfoLogic.GetDownLinkName((long)Common.PageEnum.DownLinkType.Friend);

            ddlFriend.Items.Insert(0, new ListItem(string.Format("---{0}---", _linkName), "0"));
            foreach (DataRow row in dtFriend.Rows)
            {
                ListItem li = new ListItem();
                li.Text  = row["DownLinkName"].ToString();
                li.Value = row["DownLinkHref"].ToString();
                ddlFriend.Items.Add(li);
            }

            //推荐媒体网站
            DataTable dtMedia = WebInfoLogic.GetDropDownInfo((long)Common.PageEnum.DownLinkType.Media);

            _linkName = WebInfoLogic.GetDownLinkName((long)Common.PageEnum.DownLinkType.Media);

            ddlMedia.Items.Insert(0, new ListItem(string.Format("---{0}---", _linkName), "0"));
            foreach (DataRow row in dtMedia.Rows)
            {
                ListItem li = new ListItem();
                li.Text  = row["DownLinkName"].ToString();
                li.Value = row["DownLinkHref"].ToString();
                ddlMedia.Items.Add(li);
            }

            //基层单位网站
            DataTable dtBasic = WebInfoLogic.GetDropDownInfo((long)Common.PageEnum.DownLinkType.Basic);

            _linkName = WebInfoLogic.GetDownLinkName((long)Common.PageEnum.DownLinkType.Basic);

            ddlBasic.Items.Insert(0, new ListItem(string.Format("---{0}---", _linkName), "0"));
            foreach (DataRow row in dtBasic.Rows)
            {
                ListItem li = new ListItem();
                li.Text  = row["DownLinkName"].ToString();
                li.Value = row["DownLinkHref"].ToString();
                ddlBasic.Items.Add(li);
            }
        }