Exemplo n.º 1
0
 /// <summary>
 /// 设置处理状态
 /// </summary>
 /// <param name="Id">主键编号</param>
 /// <param name="TreatState">处理状态</param>
 /// <param name="OperatorId">操作人编号</param>
 /// <returns>true:成功 false:失败</returns>
 public bool SetTreatState(int Id, EyouSoft.Model.HotelStructure.OrderStateList TreatState, int OperatorId)
 {
     if (Id <= 0)
     {
         return(false);
     }
     return(dal.SetTreatState(Id, TreatState, OperatorId));
 }
Exemplo n.º 2
0
        /// <summary>
        /// 设置处理状态
        /// </summary>
        /// <param name="Id">主键编号</param>
        /// <param name="TreatState">处理状态</param>
        /// <param name="OperatorId">操作人编号</param>
        /// <returns>true:成功 false:失败</returns>
        public bool SetTreatState(int Id, EyouSoft.Model.HotelStructure.OrderStateList TreatState, int OperatorId)
        {
            DbCommand dc = this._database.GetSqlStringCommand(Sql_HotelTourCustoms_SETTREATESTATE);

            this._database.AddInParameter(dc, "Id", DbType.Int32, Id);
            this._database.AddInParameter(dc, "TreatState", DbType.Int32, (int)TreatState);
            this._database.AddInParameter(dc, "OperatorId", DbType.Int32, OperatorId);
            return(DbHelper.ExecuteSql(dc, this._database) > 0 ? true : false);
        }