//添加通知公告 public ActionResult AddNotice(ShareFileOrNotice sfon) { sfon.ShareUser = LoginUser.ID; sfon.ShareToUser = Request["NoticestrName"]; sfon.BeiZhu = Request["NoticeText"]; sfon.UploadFileTime = DateTime.Now; sfon.TypeID = 2; var sn = ShareFileOrNoticeService.AddEntity(sfon); return(Json(new { ret = "ok" }, JsonRequestBehavior.AllowGet)); }
//添加共享文件 public ActionResult AddShareFile(ShareFileOrNotice sfon) { sfon.ShareUser = LoginUser.ID; sfon.ShareToUser = Request["STUstrName"]; sfon.FileURL = Request["fileUrlName"]; sfon.UploadFileTime = DateTime.Now; sfon.TypeID = 1; sfon.ModelList = Request["STUstrName"]; ShareFileOrNotice sn = ShareFileOrNoticeService.AddEntity(sfon); return(Json(new { ret = "ok", temp = sn }, JsonRequestBehavior.AllowGet)); }