Example #1
0
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/html";

            VelocityHelper vh = new VelocityHelper();

            vh.Init("~/template/front");    //模板路径

            #region 获取head.html中菜单项
            vh.Put("menu", this.Menu);
            vh.Put("submenu", this.SubMenu);
            vh.Put("parentmenu", this.ParentMenu);
            #endregion

            #region 工程中心简介
            string ec_title;
            string ec_content;
            string ec_date;
            Front_DataHandlerBLL.GetIntroBLL(out ec_title, out ec_content, out ec_date);

            vh.Put("ec_content", ec_content);
            #endregion

            #region 科研成果
            vh.Put("productlist", Front_DataHandlerBLL.GetIndexProductListBLL());
            #endregion

            vh.Display("index.html");
        }
Example #2
0
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/html";
            VelocityHelper vh = new VelocityHelper();

            vh.Init("~/template/front");
            int pid = 0;

            try
            {
                pid = Convert.ToInt32(context.Request["id"].ToString());
            }
            catch (Exception)
            {
            }
            string ptitle;
            string pinfo;
            string pdes;
            string pimage;
            string psort;

            Front_DataHandlerBLL.GetProductInfoBLL(pid, out ptitle, out pinfo, out pdes, out pimage, out psort);

            vh.Put("title", ptitle);
            vh.Put("info", pinfo);
            vh.Put("des", pdes);
            vh.Put("image", pimage);
            vh.Put("sort", psort);

            #region 获取head.html中菜单项

            vh.Put("menu", this.Menu);
            vh.Put("submenu", this.SubMenu);
            vh.Put("parentmenu", this.ParentMenu);

            #endregion



            vh.Display("product_detail.html");
        }
Example #3
0
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/html";
            VelocityHelper vh = new VelocityHelper();

            vh.Init("~/template/front");    //模板路径

            #region 科研成果列表
            vh.Put("pl", Front_DataHandlerBLL.GetIndexProductListBLL());
            #endregion

            #region 获取head.html中菜单项
            vh.Put("menu", this.Menu);
            vh.Put("submenu", this.SubMenu);
            vh.Put("parentmenu", this.ParentMenu);

            #endregion


            vh.Display("products.html");
        }
Example #4
0
 public FrontBasePage()
 {
     Front_DataHandlerBLL.GetMenuItemBLL(out menu, out subMenu, out parentMenu);
 }