Beispiel #1
0
        // GET: PosConsumeSk

        public ActionResult Index(long ConsumeId, long itemId = 0)
        {
            if (itemId == 0)
            {
                return(View(new PosConsumeSk()
                {
                    HotelId = UserContext.CurrentUser.HotelId,
                    RoomRegId = 0,
                    ConsumeId = ConsumeId,
                    FsTime = DateTime.Now.ToString("yyyy-MM-dd HH:ss")
                }));
            }
            else
            {
                var model = PosConsumeSkBll.GetById(itemId);
                if (model == null)
                {
                    model = new PosConsumeSk()
                    {
                        HotelId   = UserContext.CurrentUser.HotelId,
                        RoomRegId = 0,
                        ConsumeId = ConsumeId,
                        FsTime    = DateTime.Now.ToString("yyyy-MM-dd HH:ss")
                    };
                }
                return(View(model));
            }
        }
Beispiel #2
0
        public ActionResult _Cffy(long id)
        {
            var model = PosConsumeSkBll.GetById(id);

            if (model == null)
            {
                model = new PosConsumeSk()
                {
                    Id = 0
                }
            }
            ;                                         //数据不存在
            return(View(model));
        }