Example #1
0
        // GET: Optimization/TransportMaliyet/Create
        public ActionResult Create()
        {
            ViewBag.DepoId    = new SelectList(_depoService.GetList(), "Id", "Adi");
            ViewBag.FabrikaId = new SelectList(_fabrikaService.GetList(), "Id", "Adi");

            return(View());
        }
Example #2
0
        public ActionResult ModelCoz()
        {
            var data = new TransportDataModel()
            {
                Fabrikalar = _fabrikaService.GetList(),
                Depolar    = _depoService.GetList(),
                Maliyetler = _transportMaliyetService.GetList(),
                LowerBound = 0,
                UpperBound = 15
            };

            //if (data.Fabrikalar.Count<=3 && data.Depolar.Count <= 3)

            _transportService.Solve(data);

            //TempData["result"] = _blendOptimization.ResultMessage;

            var model = new TransportSonucIndexModel()
            {
                TransportSonucDetails = _transportSonucService.GetSonucDetails(null)
            };

            //return View(model);

            return(RedirectToAction("Index", "TransportSonuc", new { area = "Optimization", model }));
        }
Example #3
0
        // GET: Optimization/Depoes
        public ActionResult Index()
        {
            var model = _depoService.GetList();

            return(View(model));
        }