示例#1
0
        /// <summary>
        /// 设置交通状态
        /// </summary>
        /// <param name="trffiCID">交通编号</param>
        /// <param name="status">当前状态</param>
        /// <returns>状态设置</returns>
        public bool UpdateChangeSatus(int trafficID, EyouSoft.Model.EnumType.PlanStructure.TrafficStatus status)
        {
            DbCommand cmd = this._db.GetSqlStringCommand(SQL_TRAFFIC_UPDATESTATUS);

            this._db.AddInParameter(cmd, "Status", DbType.Byte, status);
            this._db.AddInParameter(cmd, "TrafficId", DbType.Int32, trafficID);
            return(DbHelper.ExecuteSql(cmd, this._db) > 0 ? true : false);
        }
示例#2
0
文件: PlanTrffic.cs 项目: windygu/bbl
 /// <summary>
 /// 设置交通状态
 /// </summary>
 /// <param name="trffiCID">交通编号</param>
 /// <param name="status">当前状态</param>
 /// <returns>状态设置</returns>
 public bool UpdateChangeSatus(int traffiCID, EyouSoft.Model.EnumType.PlanStructure.TrafficStatus status)
 {
     return(Idal.UpdateChangeSatus(traffiCID, status));
 }