public ActionResult 信息门户列表内容()
 {
     if (string.IsNullOrEmpty(Account))
         return 认证();
     var id = RouteData.Values["id"]?.ToString();
     var int_id = int.Parse(id);
     var message = DB.f______信息门户内容表(int_id).FirstOrDefault();
     ViewBag.ModuleTypeID = message.ModuleTypeID;
     ViewBag.ModuleTypeName = DB.f______信息门户模块表().Single(o => o.ModuleTypeID == message.ModuleTypeID.Value).ModuleTypeName;
     DB.f______信息门户转已阅(int_id, message.ModuleTypeID.ToString(), Account);
     if (!string.IsNullOrEmpty(message.MessageFileName))
     {
         var name = message.MessageFileName.Split(new char[] { '/' }, StringSplitOptions.RemoveEmptyEntries).Last();
         var dir = new DirectoryInfo(Directory + "\\Resource\\MessageFile");
         ViewBag.Path = "";
         var people = DB.f______信息门户已阅表(message.MessageID, message.ModuleTypeID.ToString()).OrderBy(o => o).ToList();
         ViewBag.PeopleCount = people.Count;
         ViewBag.PeopleRead = people.Aggregate("", (o, s) => o += s + "、", o => (o.Length == 0 ? "无" : o.Substring(0, o.Length - 1)));
         foreach (var cDir in dir.GetDirectories().OrderByDescending(o => o.CreationTime))
         {
             if (cDir.GetFiles().Count(o => o.Name.ToLower() == name.ToLower()) > 0)
             {
                 string path = dir + "\\" + cDir.Name + "\\" + name;
                 ViewBag.Link = path;
                 var converted = ConvertDoc(path);
                 if (!string.IsNullOrEmpty(converted))
                 {
                     ViewBag.PDF = converted;
                 }
             }
         }
     }
     var query = DB.f______信息门户附件表(message.MessageID.ToString()).OrderBy(o => o.FileID);
     var list = query == null ? new List<f______信息门户附件表_Result>() : query.ToList();
     foreach (var path in list)
     {
         var source = Directory + path.FilePath.Substring(3).Replace("/", "\\");
         var destination = source.Replace("__", "h__");
         DecryptFile(source, destination);
     }
     var mo = new 信息门户对象内容();
     mo.内容 = message;
     mo.附件 = list;
     return View(mo);
 }
 public ActionResult 待阅信息列表内容通知()
 {
     if (string.IsNullOrEmpty(Account))
         return 认证();
     var id = RouteData.Values["id"]?.ToString();
     var int_idx = int.Parse(id);
     var giveOut = DB.f______待阅信息类型表(int_idx).FirstOrDefault();
     ViewBag.GiveOutId = giveOut.AppG_ID;
     var int_id = int.Parse(giveOut.AppO_ID);
     var message = DB.f______信息门户内容表(int_id).FirstOrDefault();
     ViewBag.ModuleTypeID = message.ModuleTypeID;
     if (!string.IsNullOrEmpty(message.MessageFileName))
     {
         var name = message.MessageFileName.Split(new char[] { '/' }, StringSplitOptions.RemoveEmptyEntries).Last();
         var dir = new DirectoryInfo(Directory + "\\Resource\\MessageFile");
         ViewBag.Path = "";
         foreach (var cDir in dir.GetDirectories().OrderByDescending(o => o.CreationTime))
         {
             if (cDir.GetFiles().Count(o => o.Name.ToLower() == name.ToLower()) > 0)
             {
                 string path = dir + "\\" + cDir.Name + "\\" + name;
                 ViewBag.Link = path;
                 var converted = ConvertDoc(path);
                 if (!string.IsNullOrEmpty(converted))
                 {
                     ViewBag.PDF = converted;
                 }
             }
         }
     }
     var query = DB.f______信息门户附件表(message.MessageID.ToString()).OrderBy(o => o.FileID);
     var list = query == null ? new List<f______信息门户附件表_Result>() : query.ToList();
     foreach (var path in list)
     {
         var source = Directory + path.FilePath.Substring(3).Replace("/", "\\");
         var destination = source.Replace("__", "h__");
         DecryptFile(source, destination);
     }
     var mo = new 信息门户对象内容();
     mo.内容 = message;
     mo.附件 = list;
     return View(mo);
 }