/// <summary>
        /// 记录车辆通行详细
        /// </summary>
        /// <param name="CarInOutRecord_ID">车辆通行编号</param>
        /// <param name="DrivewayStrategy_ID">通行策略编号</param>
        /// <param name="Remark">车辆通行详细备注</param>
        /// <param name="Abnormal">是否通行异常</param>
        /// <param name="DrivewayID">当前通道编号</param>
        /// <param name="DrivewayStrategy_Sort">通行策略顺序号</param>
        private void SaveCarInOutInfoRecord(int carinoutrecord_id, int drivewaystrategy_id, string state, string remark, string abnor, int drivewayid, int drivewaystrategy_sort)
        {
            CarInOutInfoRecord carinout = new CarInOutInfoRecord();

            carinout.CarInOutInfoRecord_CarInOutRecord_ID   = carinoutrecord_id;
            carinout.CarInOutInfoRecord_DrivewayStrategy_ID = drivewaystrategy_id;
            carinout.CarInOutInfoRecord_State      = state;
            carinout.CarInOutInfoRecord_Remark     = remark;
            carinout.CarInOutInfoRecord_Abnormal   = abnor;
            carinout.CarInOutInfoRecord_DrivewayID = drivewayid;
            //carinout.CarInOutInfoRecord_DrivewayStrategy_Sort = drivewaystrategy_sort;
            carinout.CarInOutInfoRecord_Time = CommonalityEntity.GetServersTime();
            if (LinQBaseDao.InsertOne <CarInOutInfoRecord>(new DCCarManagementDataContext(), carinout))
            {
                string carinfoid   = LinQBaseDao.Query("select CarInOutRecord_CarInfo_ID from CarInOutRecord where CarInOutRecord_ID =" + carinoutrecord_id + "").Tables[0].Rows[0][0].ToString();
                string carinfoname = LinQBaseDao.Query("select CarInfo_Name from CarInfo where CarInfo_ID =" + carinfoid + "").Tables[0].Rows[0][0].ToString();
                CommonalityEntity.WriteLogData("新增", "记录车牌号为:" + carinfoname + "的车辆通行信息", CommonalityEntity.USERNAME);//添加操作日志
            }
        }
        /// <summary>
        /// 新增一条记录
        /// </summary>
        /// <param name="qcRecord">质检实体</param>
        /// <returns></returns>
        public static bool InsertOne(CarInOutInfoRecord carInOutInfoRecord)
        {
            bool rbool = true;

            using (DCCarManagementDataContext db = new DCCarManagementDataContext())
            {
                try
                {
                    db.CarInOutInfoRecord.InsertOnSubmit(carInOutInfoRecord);
                    db.SubmitChanges();
                    rbool = true;
                }
                catch
                {
                    rbool = false;
                }
                finally { db.Connection.Close(); }
            }
            return(rbool);
        }