Ejemplo n.º 1
0
        /// <summary>
        /// 审核状态修改
        /// </summary>
        public bool SetHotelCheckState(string strHotelOrderID, string CheckState)
        {
            int nCheckState = Utils.GetInt(CheckState, -1);

            if (nCheckState != -1)
            {
                EyouSoft.BLL.HotelStructure.HotelOrder       BllHotelOrder = new EyouSoft.BLL.HotelStructure.HotelOrder();
                EyouSoft.Model.HotelStructure.CheckStateList status        = (EyouSoft.Model.HotelStructure.CheckStateList)nCheckState;
                return(BllHotelOrder.SetCheckState(strHotelOrderID, status));
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 订单状态修改
        /// </summary>
        public bool SetHotleOrderState(string strHotleOrderID, string state)
        {
            EyouSoft.BLL.HotelStructure.HotelOrder BllHotelOrder = new EyouSoft.BLL.HotelStructure.HotelOrder();
            bool result = false;

            switch (state)
            {
            case "RES":
                result = BllHotelOrder.SetOrderState(strHotleOrderID, EyouSoft.HotelBI.HBEResStatus.RES);
                break;

            case "CON":
                result = BllHotelOrder.SetOrderState(strHotleOrderID, EyouSoft.HotelBI.HBEResStatus.CON);
                break;

            case "CAN":
                result = BllHotelOrder.SetOrderState(strHotleOrderID, EyouSoft.HotelBI.HBEResStatus.CAN);
                break;

            default: break;
            }

            return(result);
        }