示例#1
0
        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));
        }
示例#2
0
        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));
        }
示例#3
0
        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));
        }
示例#4
0
        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);
        }
示例#5
0
 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");
 }
示例#6
0
        public ActionResult BidList()
        {
            var bidList = _BidSerivce.GetAllBid();

            return(PartialView(bidList));
        }