Example #1
0
        /// <summary>
        /// 出场抓拍数据推送到客户端(实现移动岗亭功能)
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        private static bool SendDataToClient(CaptureInOutModel model)
        {
            RequestFujicaMvcApi request = new RequestFujicaMvcApi();
            //请求方法
            string servername = "Capture/CaptureSend";
            //请求参数
            Dictionary <string, object> dicParam = new Dictionary <string, object>();

            dicParam["Guid"]        = model.Guid;        //编号
            dicParam["ParkCode"]    = model.ParkCode;    //停车场编码
            dicParam["DriveWayMAC"] = model.DriveWayMAC; //车道设备地址
            dicParam["CarNo"]       = model.CarNo;       //车牌号
            dicParam["EntryType"]   = model.EntryType;   //出入场类型
            dicParam["Entrance"]    = model.Entrance;    //入口地址
            dicParam["Exit"]        = model.Exit;        //出口地址
            dicParam["InImgUrl"]    = model.InImgUrl;    //入场图片地址
            dicParam["OutImgUrl"]   = model.OutImgUrl;   //出场图片地址
            dicParam["InTime"]      = model.InTime;      //车辆的入场时间
            dicParam["OutTime"]     = model.OutTime;     //车辆的出场时间
            dicParam["CarTypeName"] = model.CarTypeName; //车类
            dicParam["CarType"]     = model.CarType;     //车类
            dicParam["CarTypeGuid"] = model.CarTypeGuid;
            dicParam["Remark"]      = model.Remark;      //备注
            dicParam["ErrorCode"]   = model.ErrorCode;
            return(request.RequestInterfaceMvc(servername, dicParam));
        }
Example #2
0
        /// <summary>
        /// 相机心跳数据发送至页面
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        private static bool SendHeartBeatToClient(HeartBeatModel model)
        {
            RequestFujicaMvcApi request = new RequestFujicaMvcApi();
            //请求方法
            string servername = "Capture/HeartBeatSend";
            //请求参数
            Dictionary <string, object> dicParam = new Dictionary <string, object>();

            dicParam["TimeStamp"]      = model.TimeStamp;      //时间戳
            dicParam["ParkingCode"]    = model.ParkingCode;    //停车场编码
            dicParam["DeviceIdentify"] = model.DeviceIdentify; //相机设备地址
            return(request.RequestInterfaceMvc(servername, dicParam));
        }