public ActionResult Index() { ViewBag.BidID = new SelectList(_bidService.GetAllBid(), "BidID", "BidNumber"); ViewBag.RegionID = new SelectList(_adminUnitService.FindBy(t => t.AdminUnitTypeID == 2), "AdminUnitID", "Name"); List <Cats.Models.TransportBidQuotation> list = this._bidQuotationService.GetAllTransportBidQuotation(); return(View(list)); }
public ActionResult WoredasBidStatus() { var filter = new PriceQuotationFilterViewModel(); ViewBag.filter = filter; ViewBag.BidID = new SelectList(_bidService.GetAllBid(), "BidID", "BidNumber"); ViewBag.RegionID = new SelectList(_adminUnitService.FindBy(t => t.AdminUnitTypeID == 2), "AdminUnitID", "Name"); ViewBag.HubID = new SelectList(_hubService.GetAllHub(), "HubID", "Name", "Select Hub"); return(View("WoredaWithOutBidOfferFilterParial", filter)); }
public JsonResult GetBids() { var bids = _bidService.GetAllBid().Where(b => b.StatusID == (int)Cats.Models.Constant.BidStatus.Active).Select(b => new { BidNo = b.BidNumber, BidId = b.BidID }); return(Json(bids, JsonRequestBehavior.AllowGet)); }
public void Can_fetch_all_Bid_Lists() { List <Bid> expected = new List <Bid>(); { new Bid() { BidID = 1, BidNumber = "PP452", StartDate = new DateTime(2012 / 10 / 10), EndDate = new DateTime(2013 / 12 / 11), OpeningDate = new DateTime(2013 / 02 / 03), StatusID = 1 }; new Bid() { BidID = 2, BidNumber = "AAA123", StartDate = new DateTime(2012 / 10 / 10), EndDate = new DateTime(2013 / 12 / 11), OpeningDate = new DateTime(2012 / 12 / 11), StatusID = 2 }; } List <Bid> actual = MockBidService.GetAllBid(); Assert.AreEqual(actual.Count, expected.Count); }
public void LoadLookups() { ViewBag.BidID = new SelectList(_bidService.GetAllBid(), "BidID", "BidNumber"); ViewBag.RegionID = new SelectList(_adminUnitService.FindBy(t => t.AdminUnitTypeID == 2), "AdminUnitID", "Name"); ViewBag.TransporterID = new SelectList(_transporterService.GetAllTransporter(), "TransporterID", "Name"); }
public ActionResult BidList() { var bidList = _BidSerivce.GetAllBid(); return(PartialView(bidList)); }