public ActionResult Index() { IndexPage obj = new IndexPage(); a_Message ac = new a_Message() { Connection = getSQLConnection(), logPlamInfo = this.plamInfo }; obj.Messages = ac.SearchMaster(new q_Message() { MaxRecord = 5 }, 0).SearchData; a_ActivePhoto ac_ActivePhoto = new a_ActivePhoto() { Connection = getSQLConnection(), logPlamInfo = this.plamInfo }; obj.Albums = ac_ActivePhoto.SearchMaster(new q_ActivePhoto() { MaxRecord = 1, sord = "sort" }, 0).SearchData.FirstOrDefault(); ViewBag.IsFirstPage = true; return(View(obj)); }
public ActionResult Index() { IndexPageL obj = new IndexPageL(); a_Message ac = new a_Message() { Connection = getSQLConnection(), logPlamInfo = this.plamInfo }; obj.Messages = ac.SearchMaster(new q_Message() { MaxRecord = 3, s_kind = CodeSheet.消息分類L.Active.Code }, 0).SearchData; a_ActivePhoto aca = new a_ActivePhoto() { Connection = getSQLConnection(), logPlamInfo = this.plamInfo }; obj.ActivePhoto = aca.SearchMaster(new q_ActivePhoto() { MaxRecord = 1, sidx = "sort" }, 0).SearchData.FirstOrDefault(); ViewBag.IsFirstPage = true; return(View(obj)); }
public ActionResult content(int id) { a_Message ac = new a_Message() { Connection = getSQLConnection(), logPlamInfo = this.plamInfo }; var r1 = ac.GetDataMaster(id, 0).SearchData; ViewBag.KindName = CodeSheet.消息分類L.MakeCodes().Where(x => x.Code == r1.kind).FirstOrDefault().Value; return View(r1); }
public ActionResult list() { a_Message ac = new a_Message() { Connection = getSQLConnection(), logPlamInfo = this.plamInfo }; var r1 = ac.SearchMaster(new q_Message() { sidx="sort" }, 0).SearchData; ViewBag.BodyClass = "News p1"; return View(r1); }
public ActionResult content(int id) { a_Message ac = new a_Message() { Connection = getSQLConnection(), logPlamInfo = this.plamInfo }; var r1 = ac.GetDataMaster(id, 0).SearchData; ViewBag.BodyClass = "News p2"; return View(r1); }
public ActionResult list(String kind) { if (kind == null) kind = "Active"; ViewBag.KindName = CodeSheet.消息分類L.MakeCodes().Where(x => x.Code == kind).FirstOrDefault().Value; a_Message ac = new a_Message() { Connection = getSQLConnection(), logPlamInfo = this.plamInfo }; var r1 = ac.SearchMaster(new q_Message() { sidx = "sort", s_kind=kind }, 0).SearchData; return View(r1); }
public ActionResult content(int id) { a_Message ac = new a_Message() { Connection = getSQLConnection(), logPlamInfo = this.plamInfo }; var r1 = ac.GetDataMaster(id, 0).SearchData; ViewBag.BodyClass = "News p2"; return(View(r1)); }
public ActionResult content(int id) { a_Message ac = new a_Message() { Connection = getSQLConnection(), logPlamInfo = this.plamInfo }; var r1 = ac.GetDataMaster(id, 0).SearchData; ViewBag.KindName = CodeSheet.消息分類L.MakeCodes().Where(x => x.Code == r1.kind).FirstOrDefault().Value; return(View(r1)); }
public ActionResult Index() { IndexPageL obj = new IndexPageL(); a_Message ac = new a_Message() { Connection = getSQLConnection(), logPlamInfo = this.plamInfo }; obj.Messages = ac.SearchMaster(new q_Message() { MaxRecord = 3 , s_kind = CodeSheet.消息分類L.Active.Code}, 0).SearchData; a_ActivePhoto aca = new a_ActivePhoto() { Connection = getSQLConnection(), logPlamInfo = this.plamInfo }; obj.ActivePhoto = aca.SearchMaster(new q_ActivePhoto() { MaxRecord=1, sidx="sort" }, 0).SearchData.FirstOrDefault(); ViewBag.IsFirstPage = true; return View(obj); }
public ActionResult Index() { IndexPage obj = new IndexPage(); a_Message ac = new a_Message() { Connection = getSQLConnection(), logPlamInfo = this.plamInfo }; obj.Messages = ac.SearchMaster(new q_Message() { MaxRecord = 5 }, 0).SearchData; a_ActivePhoto ac_ActivePhoto = new a_ActivePhoto() { Connection = getSQLConnection(), logPlamInfo = this.plamInfo }; obj.Albums = ac_ActivePhoto.SearchMaster(new q_ActivePhoto() { MaxRecord = 1, sord = "sort" }, 0).SearchData.FirstOrDefault(); ViewBag.IsFirstPage = true; return View(obj); }
public ActionResult list() { a_Message ac = new a_Message() { Connection = getSQLConnection(), logPlamInfo = this.plamInfo }; var r1 = ac.SearchMaster(new q_Message() { sidx = "sort" }, 0).SearchData; ViewBag.BodyClass = "News p1"; return(View(r1)); }
public ActionResult list(String kind) { if (kind == null) { kind = "Active"; } ViewBag.KindName = CodeSheet.消息分類L.MakeCodes().Where(x => x.Code == kind).FirstOrDefault().Value; a_Message ac = new a_Message() { Connection = getSQLConnection(), logPlamInfo = this.plamInfo }; var r1 = ac.SearchMaster(new q_Message() { sidx = "sort", s_kind = kind }, 0).SearchData; return(View(r1)); }