public void Process(ConverterAngleEvent _event) { try { this._Module._Heat.ConverterAngleHistory.Add( _event); } catch { } //throw new NotImplementedException(); }
private bool InsertOrUpdateTrends(ConverterAngleEvent evt) { var sql = CheckInsert("TREND_MODES", evt.iCnvNr, evt.Time) ? "UPDATE TREND_MODES " + "SET ANGLE = :ANGLE " + "WHERE CNV_NO = :CNV_NO AND INSERTTIME = :INSERTTIME " : "INSERT INTO TREND_MODES(ANGLE, CNV_NO, INSERTTIME) " + "VALUES (:ANGLE, :CNV_NO, :INSERTTIME) "; var parametres = new List<OracleParameter> { SetParams("ANGLE", evt.Angle) }; parametres.AddRange(MandatoryParams(evt.iCnvNr, evt.Time)); return ExecuteNonQuery(sql, parametres); }
private bool DoConverterAngleEvent(int iIdxInPointLi) { bool bErg = false; try { ConverterAngleEvent evConverterAngle = new ConverterAngleEvent(); evConverterAngle.iCnvNr = pointLi[iIdxInPointLi].iCnvNr; j = findPoint("TIGELSTELLUNG",pointLi[iIdxInPointLi].iCnvNr); if (j >= 0) { evConverterAngle.Angle = pointLi[j].iDataValue; sLfdEvtMsg = evConverterAngle.ToString(); mainGate.PushEvent(evConverterAngle); //AddLogg(evConverterAngle.ToString()); bErg = true; } else { AddLogg("При ConverterAngleEvent не найдена точка K" + pointLi[iIdxInPointLi].iCnvNr + " TIGELSTELLUNG"); } } catch (Exception eXc) { sLfdEvtErr = eXc.Message; AddLogg("При ConverterAngleEvent K" + pointLi[iIdxInPointLi].iCnvNr + " Exception: " + eXc.Message); } return bErg; }