/// <summary>
        /// 查询所有 转台数据
        /// </summary>
        /// <returns></returns>
        static public List <TurnTableList> GetAllData()
        {
            List <TurnTableList> _TurnTableList = new List <TurnTableList>();

            _TurnTableList = tmpTurnTableList.GetList();
            return(_TurnTableList);
        }
Example #2
0
        /// <summary>
        /// 初始化转台动态基本数据
        /// </summary>
        public static void TurntableDynamicDataInit()
        {
            _TurnTableList = tmpTurnTableList.GetList();
            _CameraList    = tmpCameraList.GetList();
            DynamicDataOfTurntable tmp = new DynamicDataOfTurntable();

            for (int i = 0; i < _TurnTableList.Count; i++)
            {
                tmp.GuidDeviceID    = _TurnTableList[i].DeviceID;
                tmp.ProtocolType    = _TurnTableList[i].ProtocolType;
                tmp.CommunicationID = _TurnTableList[i].CommunicationID;/**通信ID*/
                //for (int j = 0; j < _CameraList.Count; j++)
                //{
                //    if(_CameraList[j].Turntable_PTZ_DeviceID == _TurnTableList[i].DeviceID)
                //    {
                //        tmp.CameraDeviceID = _CameraList[j].DeviceID;
                //    }
                //}
                DynamicDataOfTurntable_Dictionary.Add(_TurnTableList[i].DeviceID, tmp);
            }
        }
Example #3
0
 private static void DataInit()
 {
     serialcomList = tmpSerialCOMList.GetList();
     turntableList = tmpTurnTableList.GetList();
     upsList       = tmpUpsList.GetList();
 }