Ejemplo n.º 1
0
        public JsonResult JzSave(long consumeId, int jstype, decimal yhMoney, int type, decimal yisMoney,
                                 List <JzViewHelp> jzList, List <RoomRegZw> dwjzList, string remark, string sgdh)
        {
            var apiResult = new APIResult();
            var user      = UserContext.CurrentUser;

            try
            {
                PosConsumeBll.JzSave(consumeId, jstype, yhMoney, type, yisMoney, jzList, dwjzList, remark, sgdh, user.HotelId, user.Id, user.Name);
            }
            catch (Exception ex)
            {
                apiResult.Ret = -1;
                apiResult.Msg = ex.Message;
                if (!(ex is OperationExceptionFacade))
                {
                    LogFactory.GetLogger().Log(LogLevel.Error, ex);
                }
            }

            return(Json(apiResult));
        }