public ActionResult Index(string id) { var o = PosDefineBll.GetByProjectNo(id); ViewBag.HotelId = UserContext.CurrentUser.HotelId; ViewBag.PosId = o.Id; var types = PosCatBll.GetList(UserContext.CurrentUser.HotelId); ViewBag.Types = types; return(View()); }
public ActionResult History(string id, long posId = 0) { var now = DateTime.Now; ViewBag.CurrentTime = now.ToString("yyyy-MM-dd HH:mm:ss"); var o = PosDefineBll.GetByProjectNo(id); if (posId != 0 && o == null) { o = PosDefineBll.GetById(posId); } ViewBag.HotelId = UserContext.CurrentUser.HotelId; ViewBag.PosId = o.Id; ViewBag.HotelId = UserContext.CurrentUser.HotelId; return(View()); }