public bool Execute() { try { if (RepeatData.IsRepeatData(_content)) { MyLibrary.Log.RepeatDataInfo("基站编号:" + StationId.ToString() + " 原始代码:" + OriginalCode); return(true); } Pro_IndateBase_Sec_Mod info = new Pro_IndateBase_Sec_Mod(); info.pi_bigtype = "4"; info.pi_devicetime = ConverUtil.Time(_content, 0); info.pi_devicetype = ConverUtil.ByteToStr_2(_content, 7); info.pi_devicecode = ConverUtil.ByteToStr_4(_content, 9); info.pi_protocoltype = _content[13].ToString(); // info.pi_param1 = ConverUtil.ByteToStr_2(_content, 14); //功率变化量 info.pi_param1 = ConverUtil.GetGongLv(ConverUtil.ByteToInt_2(_content, 14)); //功率变化量 info.pi_param2 = _content[16].ToString(); // 功率变化序列 info.pi_stationno = StationId.ToString(); info.pi_servicetime = PlatformTime; Other.ChuZuWu.Pro_IndateBase_Sec_Bll c = new Other.ChuZuWu.Pro_IndateBase_Sec_Bll(info); string Result = c.Exec(); if (Result != "0") { MyLibrary.Log.Debug(Name + "出错:" + Result + " 原始代码:" + OriginalCode); } } catch (Exception ex) { MyLibrary.Log.Error(Name + "错误:" + ex.Message + " 原始代码:" + OriginalCode); } return(true); }