public ActionResult Index(int regionId = -1) { //var hubContext = GlobalHost.ConnectionManager.GetHubContext<NotificationHub>(); //hubContext.Clients.All.receiveNotification("this is a sample data"); ViewBag.regionId = regionId; ViewBag.Region = new SelectList(_adminUnitService.GetRegions(), "AdminUnitID", "Name"); return(View()); }
public ActionResult AddWoreda(int id) { //var donorCoverage = _hrdDonorCoverageService.FindById(id); ViewBag.RegionID = new SelectList(_adminUnitService.GetRegions(), "AdminUnitID", "Name"); ViewBag.ZoneID = new SelectList(_adminUnitService.FindBy(m => m.AdminUnitTypeID == 3), "AdminUnitID", "Name"); ViewBag.WoredaID = new SelectList(_adminUnitService.FindBy(m => m.AdminUnitTypeID == 4), "AdminUnitID", "Name"); var addWoredaViewModel = new AddWoredaViewModel(); addWoredaViewModel.DonorCoverageID = id; return(PartialView(addWoredaViewModel)); }
// // GET: /Procurement/ContractAdministration/ public ActionResult Index(int transporterID) { var transporterObj = _transporterService.FindById(transporterID); ViewBag.TransporterID = transporterID; ViewBag.PaymentRequests = (IEnumerable <Cats.Models.PaymentRequest>)_paymentRequestService .Get(t => t.TransportOrder.TransporterID == transporterID, null, "TransportOrder").ToList(); ViewBag.TransporterName = transporterObj.Name; ViewBag.TransporterAddress = "Region: " + transporterObj.Region + " | Sub-City: " + transporterObj.SubCity + " | Telephone: " + transporterObj.TelephoneNo; ViewBag.RegionID = new SelectList(_adminUnitService.GetRegions(), "AdminUnitID", "Name"); //ViewBag.TransporterOrderID = new SelectList(_transportOrderService.GetTransporter(), "TransporterID", "Name", 0); //ViewBag.Round = new SelectList(new int[] {1,2,3,4,5,6,7,8,9,10,11,12}, 0); //var target = new TransportOrderDispatchViewModel { DispatchViewModels = dispatchView.Where(t => !t.GRNReceived).ToList(), DispatchViewModelsWithGRN = dispatchView.Where(t => t.GRNReceived).ToList(), TransportOrderViewModel = transportOrderViewModel }; return(View()); }