public ActionResult HistoryDetail(int id)
 {
     CollectionViewModel model = new CollectionViewModel();
     model.CollectionData = CollectionDataBL.GetCollectionDataById(id);
     model.SetRules(base.UserID);
     return View(model);
 }
        public ActionResult CollectionDetailToExcel(CollectionViewModel model)
        {
            CollectionDataDO collectionData = CollectionDataBL.GetCollectionDataById(model.CollectionData.ID);

            List<OrderItemDO> list = new List<OrderItemDO>();

            switch (model.ExcelFilter)
            {
                case OrderItemExcelFilterType.Found:
                    list.AddRange(collectionData.FoundItemList);

                    break;

                case OrderItemExcelFilterType.NotFound:
                    list.AddRange(collectionData.NotFoundItemList);
                    break;

                case OrderItemExcelFilterType.All:
                    list.AddRange(collectionData.FoundItemList);
                    list.AddRange(collectionData.NotFoundItemList);
                    break;

                default:
                    throw new BusinessException("Excel için girilen filtre tanınamadı.");
            }

            string name = "Toplama Detayı-" + collectionData.LocationName + "-" + base.GetFormattedTime(collectionData.UpdateTime);
            return CreateOrderItemListExcel(list, name);
        }
        public ActionResult ProcessedItemList()
        {
            CollectionViewModel model = new CollectionViewModel();

            model.CollectionData = CollectionDataBL.GetCurrentCollectionDataWithItems(base.UserID);
            model.SetRules(base.UserID);
            return View(model);
        }