예제 #1
0
        public ActionResult CompleteOrder(ListFormParam param, string userId)
        {
            var viewInfo = SetCommonView(param, "CompleteOrder");

            ViewData["title"] = "완료된주문";
            return(PartialView("~/Areas/Page/Views/Customer/Partial/OrderInfoPartial.ascx", viewInfo));
        }
예제 #2
0
        // ...

        private CommonListViewInfo <AdprintOrderItem> SetCommonViewInfo(ListFormParam param, string type)
        {
            var manager = new ListViewInfoManager <AdprintOrderItem>();

            manager.ListFormParam   = param;
            manager.ItemCount       = CommonObjectDao.GetCountByListQuery(GetListQuery(type, CurrentSite.JoinerId));
            manager.ItemList        = CommonObjectDao.FindList <AdprintOrderItem>(GetListQuery(type, CurrentSite.JoinerId));
            manager.CountOfListPage = 5;
            var viewInfo = manager.GetListViewInfo();

            return(viewInfo);
        }
예제 #3
0
        public ActionResult CompleteOrder(ListFormParam param, string userId)
        {
            ListViewInfoManager <AdprintOrderItem> manager = new ListViewInfoManager <AdprintOrderItem>();

            manager.ListFormParam   = param;
            manager.ItemCount       = CommonObjectDao.GetCountByListQuery(OrderQuery.FindCompleteOrderByUserId(userId, CurrentSite.JoinerId));
            manager.ItemList        = CommonObjectDao.FindList <AdprintOrderItem>(OrderQuery.FindCompleteOrderByUserId(userId, CurrentSite.JoinerId));
            manager.CountOfListPage = 5;

            CommonListViewInfo <AdprintOrderItem> viewInfo = manager.GetListViewInfo();

            ViewData["pageSize"] = param.PageSize.ToString();
            ViewData["title"]    = L.T("완료된주문");
            return(PartialView("~/Areas/Page/Views/Customer/Partial/OrderInfoPartial.ascx", viewInfo));
        }