Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
0
        public ActionResult UserHistory(string userId, [DefaultValue("")] string defaultItem)
        {
            ViewData["defaultItem"] = defaultItem;
            UserHistory userHistory = UserService.GetUserHistory(userId);

            if (joinerItem.IsOrderMall() && !userHistory.UserItem.JoinSite.Equals(joinerItem.SiteUrl))
            {
                return(View());
            }

            userHistory.LivingOrderCount = CommonObjectDao.GetCountByListQuery(OrderQuery.FindLivingOrderByUserId(userId, CurrentSite.JoinerId));
            return(View(userHistory));
        }
Ejemplo n.º 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));
        }