public ActionResult _SearchContent(long posId, string searchKey, decimal discountValue = 1)
        {
            var pos = PosDefineBll.GetById(posId);

            ViewBag.Pos           = pos;
            ViewBag.HotelId       = UserContext.CurrentUser.HotelId;
            ViewBag.PosId         = posId;
            ViewBag.DiscountValue = discountValue;
            var types = PosCatBll.GetListByPos(posId);

            ViewBag.Types     = types;
            ViewBag.SearchKey = searchKey;
            return(View());
        }
Ejemplo n.º 2
0
        public ActionResult InputBody(long posId, long roomRegId)
        {
            ViewBag.HotelId   = UserContext.CurrentUser.HotelId;
            ViewBag.RoomRegId = roomRegId;
            ViewBag.PosId     = posId;

            ViewBag.HotelId = UserContext.CurrentUser.HotelId;
            var types = PosCatBll.GetListByPos(posId);

            ViewBag.Types          = types;
            ViewBag.Room           = RoomRegBll.GetById(roomRegId);
            ViewBag.CurrentOrderNo = PosConsumeBll.GetNewOrderNo(posId);
            var o = PosConsumeBll.GetById(posId);

            return(View(new PosConsume()
            {
                OrderNo = PosConsumeBll.GetNewOrderNo(posId),
                OpUserName = UserContext.CurrentUser.UserName,
                RoomRegId = roomRegId,
                PosId = posId
            }));
        }
Ejemplo n.º 3
0
        public string GetList(long posId)
        {
            var models = PosCatBll.GetListByPos(posId);

            return(JsonConvert.SerializeObject(models));
        }