public ActionResult ReportParameter(string fileName)
        {
            var model         = new ShoppingInputParameterModel(fileName);
            var shoppingInput = model.Build();

            var initalValues = new InputParametersViewModel
            {
                Common = new CommonInputParameterViewModel {
                    FileName = fileName
                },
                NightWatchman = new NightWatchmanInputParameterViewModel(),
                Shopping      = shoppingInput
            };

            int pos = fileName.IndexOf('_');

            if (pos > 0)
            {
                initalValues.Common.CompanyName = fileName.Substring(0, pos);
            }

            this.ViewBag.SelectedFile = fileName;

            return(this.View(initalValues));
        }
        public ActionResult ExclusionFilters(string fileName, string filters)
        {
            var model            = new ShoppingInputParameterModel(fileName);
            var excludedPackages = new List <string>();
            var includedPackages = new List <string>();

            model.GetInclusionsAndExclusions(filters, includedPackages, excludedPackages);

            return(Json(new { IncludedPackages = includedPackages, ExcludedPackages = excludedPackages }, JsonRequestBehavior.AllowGet));
        }
        public ActionResult ExclusionFilters(string fileName, string filters)
        {
            var model = new ShoppingInputParameterModel(fileName);
            var excludedPackages = new List<string>();
            var includedPackages = new List<string>();

            model.GetInclusionsAndExclusions(filters, includedPackages, excludedPackages);

            return Json(new { IncludedPackages = includedPackages, ExcludedPackages = excludedPackages }, JsonRequestBehavior.AllowGet);
        }
        public ActionResult ReportParameter(string fileName)
        {
            var model = new ShoppingInputParameterModel(fileName);
            var shoppingInput = model.Build();

            var initalValues = new InputParametersViewModel
                {
                    Common = new CommonInputParameterViewModel { FileName = fileName },
                    NightWatchman = new NightWatchmanInputParameterViewModel(),
                    Shopping = shoppingInput
                };

            int pos = fileName.IndexOf('_');
            if (pos > 0)
            {
                initalValues.Common.CompanyName = fileName.Substring(0, pos);
            }

            this.ViewBag.SelectedFile = fileName;
            
            return this.View(initalValues);
        }