Beispiel #1
0
        /// <summary>
        /// 处理供热自动上报报警数据
        /// </summary>
        /// <param name="source"></param>
        /// <param name="address"></param>
        /// <param name="innerDatas"></param>
        /// <returns></returns>
        //public GRAlarmData ProcessGRARD( int sourceCommPort, int address, byte[] innerDatas )
        public GRAlarmData ProcessGRARD(string remoteIP, int address, byte[] innerDatas)
        {
            GRAlarmData alarm = GRAlarmData.Parse(innerDatas, address);

            InsertGRAlarmDataToDb(remoteIP, address, alarm);
            //TODO:
            //
            string grStName = XGDB.GetGRStationName(remoteIP);

            frmGRAlarmDataPopUp f = frmGRAlarmDataPopUp.Default;

            f.AddGrAlarmData(grStName, remoteIP, address, alarm);
            // f = new frmGRAlarmDataPopUp();


            return(alarm);
        }