Ejemplo n.º 1
0
        /// <summary>
        /// 车牌修正 发送到相机
        /// </summary>
        /// <param name="model">修正车牌实体参数</param>
        /// <returns></returns>
        public bool SendCorrectToEntryCamera(CorrectCarnoModel model)
        {
            CommandEntity <CorrectCarnoModel> entity = new CommandEntity <CorrectCarnoModel>()
            {
                command = BussineCommand.Correct,
                idMsg   = Convert.ToBase64String(Guid.NewGuid().ToByteArray()),
                message = model
            };

            //将修正车牌数据通过mq交给相机去处理业务流程(新车牌入场、旧车牌出场)
            return(m_rabbitMQ.SendMessageForRabbitMQ("发送修正车牌命令", m_serializer.Serialize(entity), entity.idMsg, model.ParkingCode));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 车牌修正
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool CorrectToEntryCamera(CorrectCarnoModel model)
        {
            bool flag = SendCorrectToEntryCamera(model);

            if (flag)
            {
                DrivewayModel drivewayModel = _iDrivewayContext.GetDrivewayByMacAddress(model.DeviceIdentify);
                if (drivewayModel != null)
                {
                    model.ThroughName   = drivewayModel.DrivewayName;
                    model.Discerncamera = drivewayModel.DeviceName;
                }

                ////保存至数据库,形成报表记录
                flag = _iParkLotContext.AddCarnoRecorddatabaseoperate(model);
            }
            return(flag);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 车牌修改重推
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool CarNumberRepushToCamera(CorrectCarnoModel model)
        {
            CarNumberRepushModel correctModel = new CarNumberRepushModel();

            correctModel.DeviceIdentify = model.DeviceIdentify;
            correctModel.ParkingCode    = model.ParkingCode;
            correctModel.OldCarno       = model.OldCarno;
            correctModel.NewCarno       = model.NewCarno;
            bool flag = SendCarNumberRepushToCameras(correctModel);

            if (flag)
            {
                DrivewayModel drivewayModel = _iDrivewayContext.GetDrivewayByMacAddress(model.DeviceIdentify);
                if (drivewayModel != null)
                {
                    model.Discerncamera = drivewayModel.DeviceName;
                    model.ThroughName   = drivewayModel.DrivewayName;
                }
                ////保存至数据库,形成报表记录
                flag = _iParkLotContext.AddCarnoRecorddatabaseoperate(model);
            }
            return(flag);
        }
Ejemplo n.º 4
0
 /// <summary>
 /// 车牌修正 添加数据库
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public bool AddCarnoRecorddatabaseoperate(CorrectCarnoModel model)
 {
     return(carnoRecorddatabaseoperate.SaveToDataBase(model));
 }