public JsonResult GetMoreNoticeView() { int size = 10; int page = 1; if (Request.QueryString["page"] != null) { page = int.Parse(Request.QueryString["page"]); } string type = "0"; if (Request.QueryString["type"] != null) { type = Request.QueryString["type"]; } int uid = 0; if (Request.QueryString["uid"] != null) { uid = int.Parse(Request.QueryString["uid"]); } where_model wm = new where_model(); wm.userid = uid; wm.Page = page; wm.Size = size; wm.type = type; IList <Notice_View> nd = SmsDataProxy.And_Notice_Detial_Receive_GetListTag(wm); return(this.Json(nd, JsonRequestBehavior.AllowGet)); }
/// <summary> /// 查看通知回执(只看当天) /// </summary> /// <returns></returns> public ActionResult NoticeReceipt() { int size = 10; int page = 1; if (Request.QueryString["page"] != null) { page = int.Parse(Request.QueryString["page"]); } int userid = 0; if (Request.QueryString["userid"] != null) { userid = int.Parse(Request.QueryString["userid"]); } userid = UserID == 0 ? userid : UserID; where_model wm = new where_model(); wm.userid = userid; wm.Page = page; wm.Size = size; wm.type = "1";//只看当天 IList <Notice_View> nd = SmsDataProxy.And_Notice_Detial_Receive_GetListTag(wm); ViewData["NoticeView"] = nd; int totalpage = 1; if (nd.Count > 0) { totalpage = (nd[0].pcount / size) + (nd[0].pcount % size == 0 ? 0 : 1); } ViewData["totalpage"] = totalpage; ViewData["uid"] = userid; return(View()); }