/// <summary> /// 获取材料详情 /// </summary> /// <returns></returns> public ActionResult MaterialInfo(MeetingSearch search) { ResourcesView view = new ResourcesView(); try { view.TitleModel = new TitleViewModel(); view.TitleModel.Title = "材料详情"; view.TitleModel.TopTitle = "材料详情"; view.TitleModel.RerurnButton = "/MeetingInfo/Index?MeetingId=" + search.MeetingId; view.TitleModel.RerurnHomeButton = "/Home/Index?pageindex=" + 1; List <mMeetingResources> listModel = iresources.GetResourcesList(search.MeetingId, UserSession.UserId); view.Text = listModel.Where(m => m.ResourcesType == ".txt" || m.ResourcesType == ".doc" || m.ResourcesType == ".docx").ToList(); view.Vide = listModel; foreach (var item in view.Text) { view.Vide.Remove(item); } ViewBag.TitleViewModel = view.TitleModel; } catch (Exception) { throw; } return(View(view)); }
public ActionResult Index(MeetingSearch search) { var dataSet = imeeting.GetMeetingList(search.MeetingType, search.PageIndex ?? 1, PageSize); List <mMeeting> modeList = null; try { if (dataSet != null) { int count = GetDataSetCount(dataSet.Tables[1]); modeList = GetDataSetList(dataSet.Tables[0]); PageOption pageOption = new PageOption() { PageIndex = Convert.ToInt32(search.PageIndex), PageSize = (count + PageSize - 1) / PageSize, PageCount = count, PageType = search.PageType }; ViewBag.pageOption = pageOption; } } catch (Exception ex) { log.Error("Index-" + DateTime.Now.ToString(), ex); } if (search.PageType == 1) { return(PartialView("Table", modeList)); } return(View(modeList)); }
/// <summary> /// 检委会决定 签字 /// </summary> /// <returns></returns> public ActionResult MeetingSign(MeetingSearch search) { TitleViewModel model = new TitleViewModel(); model.Title = "检委会决定"; model.TopTitle = "材料: 议题详情b2016"; return(View(model)); }
/// <summary> /// 获取会议记录 /// </summary> /// <returns></returns> public ActionResult MeetingRecord(MeetingSearch search) { TitleViewModel model = new TitleViewModel(); //mMeeting meetingModel = imeeting.GetMeetingModel(search.MeetingId); string message = ""; mMeeting meetingModel = new mMeeting(); meetingModel.MeetingId = search.MeetingId; model.Title = "材料: 会议记录"; model.TopTitle = "材料: 会议记录"; model.RerurnButton = "/MeetingInfo/Index?MeetingId=" + search.MeetingId; ViewBag.TitleViewModel = model; //model.RerurnHomeButton = Consts.UrlPath+"/Upload/SaveWord?directory="+search.MeetingId; meetingModel.Directory = string.Format("{0}{1}/{2}", Consts.DwonUrlPath, search.MeetingId, search.MeetingId + ".docx"); WordHelper.Word2HtmlFromFileSaveFileHtml(meetingModel.Directory, Consts.SaveUrlPath + "1.html", out message); meetingModel.Directory = string.Format("{0}{1}", Consts.DwonUrlPath, "1.html"); return(View(meetingModel)); }
/// <summary> /// 打开材料图片或者打开视频 /// </summary> /// <returns></returns> public ActionResult MaterialVide(MeetingSearch search) { TitleViewModel model = new TitleViewModel(); model.Title = "材料: " + search.ResourceName; model.TopTitle = "材料: " + search.ResourceName; model.RerurnButton = "/MeetingInfo/MaterialInfo?MeetingId=" + search.MeetingId; model.RerurnHomeButton = "/Home/Index?pageindex=" + 1; model.Type = 1; ViewBag.TitleViewModel = model; string message = ""; string url = string.Format("{0}{1}/{2}", Consts.DwonUrlPath, search.Directory, search.ResourceName); WordHelper.Word2HtmlFromFileSaveFileHtml(url, Consts.SaveUrlPath + "1.html", out message); //Tuple<int, string> tuple=GetTypeUrl(search.ResourcesType,url); Tuple <int, string> tuple = GetTypeUrl(search.ResourcesType, Consts.DwonUrlPath + "1.html", url); return(View(tuple)); }
public ActionResult Index(MeetingSearch search) { TitleViewModel model = new TitleViewModel(); mMeeting meetingModel = null; try { model.TopTitle = "会议详情"; model.Title = "会议详情"; model.RerurnButton = "/Home/Index?pageindex=" + 1; model.RerurnHomeButton = "/Home/Index?pageindex=" + 1; ViewBag.TitleViewModel = model; meetingModel = imeeting.GetMeetingModel(search.MeetingId); } catch (Exception ex) { log.Error("Index-" + DateTime.Now.ToString(), ex); } return(View(meetingModel)); }