Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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));
        }
Ejemplo n.º 3
0
        public ActionResult list()
        {
            a_ActivePhoto ac = new a_ActivePhoto() { Connection = getSQLConnection(), logPlamInfo = this.plamInfo };
            var r1 = ac.SearchMaster(new q_ActivePhoto() { sidx = "sort", s_isopen = true }, 0).SearchData;

            ViewBag.BodyClass = "Albums p1";
            return View(r1);
        }
Ejemplo n.º 4
0
        public ActionResult content(int id)
        {
            a_ActivePhoto ac = new a_ActivePhoto() { Connection = getSQLConnection(), logPlamInfo = this.plamInfo };
            var r1 = ac.GetDataMaster(id, 0).SearchData;

            ViewBag.BodyClass = "Albums p2";
            return View(r1);
        }
Ejemplo n.º 5
0
        public ActionResult content(int id)
        {
            a_ActivePhoto ac = new a_ActivePhoto()
            {
                Connection = getSQLConnection(), logPlamInfo = this.plamInfo
            };
            var r1 = ac.GetDataMaster(id, 0).SearchData;

            ViewBag.BodyClass = "Albums p2";
            return(View(r1));
        }
Ejemplo n.º 6
0
        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);
        }
Ejemplo n.º 7
0
        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);
        }
Ejemplo n.º 8
0
        public ActionResult list()
        {
            a_ActivePhoto ac = new a_ActivePhoto()
            {
                Connection = getSQLConnection(), logPlamInfo = this.plamInfo
            };
            var r1 = ac.SearchMaster(new q_ActivePhoto()
            {
                sidx = "sort", s_isopen = true
            }, 0).SearchData;

            ViewBag.BodyClass = "Albums p1";
            return(View(r1));
        }