示例#1
0
        public ActionResult Create(string source)
        {
            var roomTypeList = new SelectList(roomTypeRepository.GetRoomType(string.Empty), "Id", "RoomTypeCode");
            var ratetypeList = new SelectList(rateTypeRepository.GetRateType(string.Empty), "ID", "RateTypeCode");

            ViewBag.RoomTypeList = roomTypeList;
            ViewBag.RateTypeList = ratetypeList;

            return(View());
        }
示例#2
0
        public ActionResult BulkReservation()
        {
            //return RedirectToAction("Index", "Home");

            var roomTypeList = new SelectList(roomTypeRepository.GetRoomType(string.Empty), "Id", "RoomTypeCode").ToList();
            var rateTypeList = new SelectList(rateTypeRepository.GetRateType(string.Empty)
                                              .Select(
                                                  m => new SelectListItem()
            {
                Value = m.Id.ToString(),
                Text  = m.RateTypeCode
            }
                                                  ), "Value", "Text").ToList();


            ViewBag.RoomTypeList = roomTypeList;
            ViewBag.RateTypeList = rateTypeList;


            return(View());
        }
示例#3
0
        public ActionResult Index()
        {
            var roomTypeList = roomTypeRepository.GetRoomType(string.Empty);

            ViewBag.RoomTypeList = roomTypeList;

            return(View());
        }
        public ActionResult Arrivals()
        {
            var roomTypeList     = new SelectList(roomTypeRepository.GetRoomType(string.Empty), "Id", "RoomTypeCode").ToList();
            var roomFeaturesList = roomFeatureRepository.GetRoomFeatures();

            var companyList = new SelectList(CompanyRepository.GetCompanyList(), "Id", "CompanyName").ToList();

            ViewBag.CompanyList = companyList;

            ViewBag.RoomTypeList     = roomTypeList;
            ViewBag.RoomFeaturesList = roomFeaturesList;

            #region Record Activity Log
            RecordActivityLog.RecordActivity(Pages.SEARCH_ARRIVALS, "Goes to arrivals page.");
            #endregion

            return(View());
        }
        public ActionResult Breakfast()
        {
            var roomTypeList = new SelectList(roomTypeRepository.GetRoomType(string.Empty), "Id", "RoomTypeCode").ToList();
            var rateTypeList = new SelectList(rateTypeRepository.GetRateType(string.Empty)
                                              .Select(
                                                  m => new SelectListItem()
            {
                Value = m.Id.ToString(),
                Text  = m.RateTypeCode
            }
                                                  ), "Value", "Text").ToList();


            ViewBag.RoomTypeList = roomTypeList;
            ViewBag.RateTypeList = rateTypeList;

            return(View());
        }