public ContentResult DeleteErrorlog(int Id)
        {
            string      mess        = "";
            Errorlogbll errorlogbll = new Errorlogbll();

            if (errorlogbll.DeleteErrorlog(Id, out mess))
            {
                return(Content("true"));
            }
            else if (mess.Equals("该条信息已经不存在"))
            {
                return(Content("noE"));
            }
            else
            {
                return(Content(mess + "<a href='javascript:history.go(-1)'>返回</a>"));
            }
        }
        public ActionResult PageIndexChange(FormCollection fr, string Id)
        {
            string                mess        = "";
            Errorlogbll           errorlogbll = new Errorlogbll();
            List <model.errorlog> li          = null;
            int operation = int.Parse(fr["operation"]);             //显示错误信息的类型
            int menuId    = int.Parse(Request.Form["menuId"]);
            int count     = int.Parse(Session["count"].ToString()); //分页单页面数据个数
            //int pageIndex = int.Parse(Session["pageIndex"]!=null?Session["pageIndex"].ToString():"1");
            int listCount = 0;

            string[]             str = Id.Split('-');
            PublicHelpController pub = new PublicHelpController();

            string[] strr      = pub.getFiledPermisson(helpcommon.ParmPerportys.GetNumParms(userInfo.User.personaId), menuId, funName.selectName);
            bool     IsDelete  = pub.isFunPermisson(helpcommon.ParmPerportys.GetNumParms(userInfo.User.personaId), menuId, funName.deleteName);
            int      pageIndex = int.Parse(str[1]);

            li = errorlogbll.GetListErrorlog(0, 0, operation, out listCount, out mess);
            switch (str[0])
            {
            case "1":
                pageIndex = 1;
                break;

            case "2":
                pageIndex = pageIndex - 1;
                break;

            case "3":
                pageIndex = pageIndex + 1;
                break;

            case "4":
                pageIndex = pageIndex = listCount % count > 0 ? listCount / count + 1 : listCount / count;
                break;

            case "5":
                pageIndex = int.Parse(str[1]);
                break;
            }
            if (pageIndex < 1)
            {
                return(Content(""));
            }
            else if (pageIndex > (listCount % count > 0 ? listCount / count + 1 : listCount / count))
            {
                return(Content(""));
            }
            else
            {
                Session["pageIndex"] = pageIndex;
            }
            li = errorlogbll.GetListErrorlog(count * (pageIndex - 1), count, operation, out listCount, out mess);
            ViewBag.pageCount = listCount % count > 0 ? listCount / count + 1 : listCount / count;
            string html = "";
            int    i    = count * (pageIndex - 1) + 1;

            foreach (model.errorlog err in li)
            {
                html += "<tr id='" + err.Id + "'><td>" + (i++) + "</td>";
                if (strr.Contains("ErrorMsg"))
                {
                    if (err.ErrorMsg.Length > 30)
                    {
                        html += "<td  onmousemove='mouseOver(this)' class='curren' onmouseout='mouseOut(this)'>" + err.ErrorMsg.Substring(0, 30) + "...<div><p>" + err.ErrorMsg + "</p></div></td>";
                    }
                    else
                    {
                        html += "<td>" + err.ErrorMsg + "</td>";
                    }
                }
                if (strr.Contains("errorSrc"))
                {
                    if (err.errorSrc.Length > 30)
                    {
                        html += "<td  onmousemove='mouseOver(this)' class='curren' onmouseout='mouseOut(this)'>" + err.errorSrc.Substring(0, 30) + "...<div><p>" + err.errorSrc + "</p></div></td>";
                    }
                    else
                    {
                        html += "<td>" + err.errorSrc + "</td>";
                    }
                }
                if (strr.Contains("errorMsgDetails"))
                {
                    if (err.errorMsgDetails.Length > 30)
                    {
                        html += "<td  onmousemove='mouseOver(this)' class='curren' onmouseout='mouseOut(this)'>" + err.errorMsgDetails.Substring(0, 30) + "...<div><p>" + err.errorMsgDetails + "</p></div></td>";
                    }
                    else
                    {
                        html += "<td>" + err.errorMsgDetails + "</td>";
                    }
                }
                if (strr.Contains("UserId"))
                {
                    html += "<td>" + err.UserId + "</td>";
                }
                if (strr.Contains("errorTime"))
                {
                    html += "<td>" + (err.errorTime != null ? err.errorTime.ToString() : "") + "</td>";
                }
                if (IsDelete)
                {
                    html += " <td><a href='#' onclick='IsYesUpdate('" + err.Id + "')'>删除</a></td>";
                }
                else
                {
                    html += " <td>无权限</td>";
                }
                html += "</tr>";
                //@Html.ActionLink("修改", "UpdateCustom/" + cus.Id)
                //@Html.ActionLink("删除", "DeleteCustom/" + cus.Id)
            }
            return(Content(html + "+++" + (listCount % count > 0 ? listCount / count + 1 : listCount / count)));
        }