public JsonResult AjaxGetWall(string sessionid, int page)
        {
            WallInfoService WallBll = new WallInfoService();
            int eid = int.Parse(SecurityEncryption.DESDecrypt(sessionid));

            PagerList<WallInfo> list = WallBll.GetWallInfoByPager(eid, page + 1, pageSize);
            return Json(list);
        }
 /// <summary>
 /// 留言墙
 /// </summary>
 /// <returns></returns>
 public ActionResult WllList(string sessionid, string UserID)
 {
     int eid = int.Parse(SecurityEncryption.DESDecrypt(sessionid));
     //查询企业的留言墙内容信息
     ViewData["UserID"] = UserID;
     ViewData["sessionid"] = sessionid;
     WallInfoService WallBll = new WallInfoService();
     ViewData["PageIndex"] = pageIndex;
     return View(WallBll.GetWallInfoByPager(eid, pageIndex, pageSize));
 }
        public ActionResult SendWall(FormCollection fc, WallInfo wi, string sessionid, string UserID)
        {
            int eid = int.Parse(SecurityEncryption.DESDecrypt(sessionid));
            ViewData["userId"] = UserID;
            //1、判断用户信息是否完整,完整则可以留言,不完整则先完善个人信息
            FansContract fans = FansBll.GetFansInfoByOpenID(UserID);

            wi.FansOpenId = fans.FromUserName;
            wi.EmpId = eid;
            wi.Temp1 = fans.TrueName;
            wi.date = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            WallInfoService WallBll = new WallInfoService();
            if (WallBll.Insert(wi) > 0)
            {

                ViewData["url"] = Url.Action("WllList", new { sessionid = sessionid, UserID = UserID });
                ViewData["msg"] = "留言成功!";
                return View("Success");
            }
            else
            {

                ViewData["url"] = Url.Action("WllList", new { sessionid = sessionid, UserID = UserID });
                ViewData["msg"] = "留言失败!";
                return View("Error");
            }
        }