public ActionResult CompleteOrder(ListFormParam param, string userId) { var viewInfo = SetCommonView(param, "CompleteOrder"); ViewData["title"] = "완료된주문"; return(PartialView("~/Areas/Page/Views/Customer/Partial/OrderInfoPartial.ascx", viewInfo)); }
// ... 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); }
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)); }