//Version 1.32
//-Ajout des flags d'etat des fonctions de détection dans le fichier log +//-Retrait de la possibilité d'inhiber l'analyse des fonctions +//-Changement de l'heure de reset des données Historien à 3h plutôt qu'à minuit. //Version 1.32 //-Ajout des flags d'etat des fonctions de détection dans le fichier log +//-Retrait de la possibilité d'inhiber l'analyse des fonctions +//-Changement de l'heure de reset des données Historien à 3h plutôt qu'à minuit.
This commit is contained in:
parent
4be063c141
commit
bc9765cd99
Binary file not shown.
@ -78,6 +78,8 @@ CFunctionSelectionPage::CFunctionSelectionPage(QGraphicsWidget *Parent)
|
|||||||
QGraphicsTextItem *Label = new QGraphicsTextItem("Analyse",this);
|
QGraphicsTextItem *Label = new QGraphicsTextItem("Analyse",this);
|
||||||
Label->setFont(font);
|
Label->setFont(font);
|
||||||
Label->setPos(ArrayTopLeft.x() - 10,ArrayTopLeft.y() - YLineSpacing);
|
Label->setPos(ArrayTopLeft.x() - 10,ArrayTopLeft.y() - YLineSpacing);
|
||||||
|
Label->hide(); //JFM 2024-09-05 Enlèvement de l'inhibition d'analyse...
|
||||||
|
|
||||||
|
|
||||||
Label = new QGraphicsTextItem("TK",this);
|
Label = new QGraphicsTextItem("TK",this);
|
||||||
Label->setFont(font);
|
Label->setFont(font);
|
||||||
@ -90,6 +92,7 @@ CFunctionSelectionPage::CFunctionSelectionPage(QGraphicsWidget *Parent)
|
|||||||
mFNFuncToggleBtn = new CToggleButtonWidget(ONPixmapFilePath,OFFPixmapFilePath,this);
|
mFNFuncToggleBtn = new CToggleButtonWidget(ONPixmapFilePath,OFFPixmapFilePath,this);
|
||||||
mFNFuncToggleBtn->resize(SlideButtonSize);
|
mFNFuncToggleBtn->resize(SlideButtonSize);
|
||||||
mFNFuncToggleBtn->setPos(ArrayTopLeft.x(),ArrayTopLeft.y() + (i*YLineSpacing));
|
mFNFuncToggleBtn->setPos(ArrayTopLeft.x(),ArrayTopLeft.y() + (i*YLineSpacing));
|
||||||
|
mFNFuncToggleBtn->hide();//JFM 2024-09-05 Enlèvement de l'inhibition d'analyse...
|
||||||
mFNTKToggleBtn = new CToggleButtonWidget(ONPixmapFilePath,OFFPixmapFilePath,this);
|
mFNTKToggleBtn = new CToggleButtonWidget(ONPixmapFilePath,OFFPixmapFilePath,this);
|
||||||
mFNTKToggleBtn->resize(SlideButtonSize);
|
mFNTKToggleBtn->resize(SlideButtonSize);
|
||||||
mFNTKToggleBtn->setPos(ArrayTopLeft.x() + XButtonSpacing,ArrayTopLeft.y() + (i*YLineSpacing));
|
mFNTKToggleBtn->setPos(ArrayTopLeft.x() + XButtonSpacing,ArrayTopLeft.y() + (i*YLineSpacing));
|
||||||
@ -101,6 +104,7 @@ CFunctionSelectionPage::CFunctionSelectionPage(QGraphicsWidget *Parent)
|
|||||||
mPGFuncToggleBtn = new CToggleButtonWidget(ONPixmapFilePath,OFFPixmapFilePath,this);
|
mPGFuncToggleBtn = new CToggleButtonWidget(ONPixmapFilePath,OFFPixmapFilePath,this);
|
||||||
mPGFuncToggleBtn->resize(SlideButtonSize);
|
mPGFuncToggleBtn->resize(SlideButtonSize);
|
||||||
mPGFuncToggleBtn->setPos(ArrayTopLeft.x(),ArrayTopLeft.y() + (i*YLineSpacing));
|
mPGFuncToggleBtn->setPos(ArrayTopLeft.x(),ArrayTopLeft.y() + (i*YLineSpacing));
|
||||||
|
mPGFuncToggleBtn->hide();//JFM 2024-09-05 Enlèvement de l'inhibition d'analyse...
|
||||||
mPGTKToggleBtn = new CToggleButtonWidget(ONPixmapFilePath,OFFPixmapFilePath,this);
|
mPGTKToggleBtn = new CToggleButtonWidget(ONPixmapFilePath,OFFPixmapFilePath,this);
|
||||||
mPGTKToggleBtn->resize(SlideButtonSize);
|
mPGTKToggleBtn->resize(SlideButtonSize);
|
||||||
mPGTKToggleBtn->setPos(ArrayTopLeft.x() + XButtonSpacing,ArrayTopLeft.y() + (i*YLineSpacing));
|
mPGTKToggleBtn->setPos(ArrayTopLeft.x() + XButtonSpacing,ArrayTopLeft.y() + (i*YLineSpacing));
|
||||||
@ -112,6 +116,7 @@ CFunctionSelectionPage::CFunctionSelectionPage(QGraphicsWidget *Parent)
|
|||||||
mPPFuncToggleBtn = new CToggleButtonWidget(ONPixmapFilePath,OFFPixmapFilePath,this);
|
mPPFuncToggleBtn = new CToggleButtonWidget(ONPixmapFilePath,OFFPixmapFilePath,this);
|
||||||
mPPFuncToggleBtn->resize(SlideButtonSize);
|
mPPFuncToggleBtn->resize(SlideButtonSize);
|
||||||
mPPFuncToggleBtn->setPos(ArrayTopLeft.x(),ArrayTopLeft.y() + (i*YLineSpacing));
|
mPPFuncToggleBtn->setPos(ArrayTopLeft.x(),ArrayTopLeft.y() + (i*YLineSpacing));
|
||||||
|
mPPFuncToggleBtn->hide();//JFM 2024-09-05 Enlèvement de l'inhibition d'analyse...
|
||||||
mPPTKToggleBtn = new CToggleButtonWidget(ONPixmapFilePath,OFFPixmapFilePath,this);
|
mPPTKToggleBtn = new CToggleButtonWidget(ONPixmapFilePath,OFFPixmapFilePath,this);
|
||||||
mPPTKToggleBtn->resize(SlideButtonSize);
|
mPPTKToggleBtn->resize(SlideButtonSize);
|
||||||
mPPTKToggleBtn->setPos(ArrayTopLeft.x() + XButtonSpacing,ArrayTopLeft.y() + (i*YLineSpacing));
|
mPPTKToggleBtn->setPos(ArrayTopLeft.x() + XButtonSpacing,ArrayTopLeft.y() + (i*YLineSpacing));
|
||||||
@ -123,6 +128,7 @@ CFunctionSelectionPage::CFunctionSelectionPage(QGraphicsWidget *Parent)
|
|||||||
mPP2FuncToggleBtn = new CToggleButtonWidget(ONPixmapFilePath,OFFPixmapFilePath,this);
|
mPP2FuncToggleBtn = new CToggleButtonWidget(ONPixmapFilePath,OFFPixmapFilePath,this);
|
||||||
mPP2FuncToggleBtn->resize(SlideButtonSize);
|
mPP2FuncToggleBtn->resize(SlideButtonSize);
|
||||||
mPP2FuncToggleBtn->setPos(ArrayTopLeft.x(),ArrayTopLeft.y() + (i*YLineSpacing));
|
mPP2FuncToggleBtn->setPos(ArrayTopLeft.x(),ArrayTopLeft.y() + (i*YLineSpacing));
|
||||||
|
mPP2FuncToggleBtn->hide();//JFM 2024-09-05 Enlèvement de l'inhibition d'analyse...
|
||||||
mPP2TKToggleBtn = new CToggleButtonWidget(ONPixmapFilePath,OFFPixmapFilePath,this);
|
mPP2TKToggleBtn = new CToggleButtonWidget(ONPixmapFilePath,OFFPixmapFilePath,this);
|
||||||
mPP2TKToggleBtn->resize(SlideButtonSize);
|
mPP2TKToggleBtn->resize(SlideButtonSize);
|
||||||
mPP2TKToggleBtn->setPos(ArrayTopLeft.x() + XButtonSpacing,ArrayTopLeft.y() + (i*YLineSpacing));
|
mPP2TKToggleBtn->setPos(ArrayTopLeft.x() + XButtonSpacing,ArrayTopLeft.y() + (i*YLineSpacing));
|
||||||
@ -134,6 +140,7 @@ CFunctionSelectionPage::CFunctionSelectionPage(QGraphicsWidget *Parent)
|
|||||||
mZT1FuncToggleBtn = new CToggleButtonWidget(ONPixmapFilePath,OFFPixmapFilePath,this);
|
mZT1FuncToggleBtn = new CToggleButtonWidget(ONPixmapFilePath,OFFPixmapFilePath,this);
|
||||||
mZT1FuncToggleBtn->resize(SlideButtonSize);
|
mZT1FuncToggleBtn->resize(SlideButtonSize);
|
||||||
mZT1FuncToggleBtn->setPos(ArrayTopLeft.x(),ArrayTopLeft.y() + (i*YLineSpacing));
|
mZT1FuncToggleBtn->setPos(ArrayTopLeft.x(),ArrayTopLeft.y() + (i*YLineSpacing));
|
||||||
|
mZT1FuncToggleBtn->hide();//JFM 2024-09-05 Enlèvement de l'inhibition d'analyse...
|
||||||
connect(mZT1FuncToggleBtn,SIGNAL(ButtonToggled(CToggleButtonWidget*)),this,SLOT(ToggleButtonToggled(CToggleButtonWidget*)));
|
connect(mZT1FuncToggleBtn,SIGNAL(ButtonToggled(CToggleButtonWidget*)),this,SLOT(ToggleButtonToggled(CToggleButtonWidget*)));
|
||||||
mZT1TKToggleBtn = new CToggleButtonWidget(ONPixmapFilePath,OFFPixmapFilePath,this);
|
mZT1TKToggleBtn = new CToggleButtonWidget(ONPixmapFilePath,OFFPixmapFilePath,this);
|
||||||
mZT1TKToggleBtn->resize(SlideButtonSize);
|
mZT1TKToggleBtn->resize(SlideButtonSize);
|
||||||
@ -147,6 +154,7 @@ CFunctionSelectionPage::CFunctionSelectionPage(QGraphicsWidget *Parent)
|
|||||||
mZT2FuncToggleBtn = new CToggleButtonWidget(ONPixmapFilePath,OFFPixmapFilePath,this);
|
mZT2FuncToggleBtn = new CToggleButtonWidget(ONPixmapFilePath,OFFPixmapFilePath,this);
|
||||||
mZT2FuncToggleBtn->resize(SlideButtonSize);
|
mZT2FuncToggleBtn->resize(SlideButtonSize);
|
||||||
mZT2FuncToggleBtn->setPos(ArrayTopLeft.x(),ArrayTopLeft.y() + (i*YLineSpacing));
|
mZT2FuncToggleBtn->setPos(ArrayTopLeft.x(),ArrayTopLeft.y() + (i*YLineSpacing));
|
||||||
|
mZT2FuncToggleBtn->hide();//JFM 2024-09-05 Enlèvement de l'inhibition d'analyse...
|
||||||
connect(mZT2FuncToggleBtn,SIGNAL(ButtonToggled(CToggleButtonWidget*)),this,SLOT(ToggleButtonToggled(CToggleButtonWidget*)));
|
connect(mZT2FuncToggleBtn,SIGNAL(ButtonToggled(CToggleButtonWidget*)),this,SLOT(ToggleButtonToggled(CToggleButtonWidget*)));
|
||||||
mZT2TKToggleBtn = new CToggleButtonWidget(ONPixmapFilePath,OFFPixmapFilePath,this);
|
mZT2TKToggleBtn = new CToggleButtonWidget(ONPixmapFilePath,OFFPixmapFilePath,this);
|
||||||
mZT2TKToggleBtn->resize(SlideButtonSize);
|
mZT2TKToggleBtn->resize(SlideButtonSize);
|
||||||
|
|||||||
@ -584,7 +584,8 @@ void CPIHistorianManager::StartHistorianTimer()
|
|||||||
void CPIHistorianManager::HistorianTimerExpired()
|
void CPIHistorianManager::HistorianTimerExpired()
|
||||||
{
|
{
|
||||||
// qDebug(qPrintable(QString("Vérification du changement de date: Today:%1, Current:%2").arg(mTodaysDate.toString("yyyy-MM-dd")).arg(QDate::currentDate().toString("yyyy-MM-dd"))));
|
// qDebug(qPrintable(QString("Vérification du changement de date: Today:%1, Current:%2").arg(mTodaysDate.toString("yyyy-MM-dd")).arg(QDate::currentDate().toString("yyyy-MM-dd"))));
|
||||||
if(mTodaysDate != QDate::currentDate())
|
if(mTodaysDate != QDate::currentDate() &&
|
||||||
|
QTime::currentTime() >= QTime(3,0,0,0))
|
||||||
{
|
{
|
||||||
mNbFNToday = 0;
|
mNbFNToday = 0;
|
||||||
mNbPGToday = 0;
|
mNbPGToday = 0;
|
||||||
|
|||||||
@ -85,6 +85,14 @@ unsigned int CZTSettingsFileMgr::LoadSettings(CZTSettingsData *SettingsData)
|
|||||||
*InputStream >> SettingsData->mModbusCCHostAddress;
|
*InputStream >> SettingsData->mModbusCCHostAddress;
|
||||||
*InputStream >> SettingsData->mSEIModbusHostAddress;
|
*InputStream >> SettingsData->mSEIModbusHostAddress;
|
||||||
|
|
||||||
|
//JFM 2024-09-05 Enlèvement de l'inhibition d'analyse...
|
||||||
|
SettingsData->mDetectionFunctionSettings->mZTDetectionConfig[DETECTION_FCT_FN].AnalysisActive = true;
|
||||||
|
SettingsData->mDetectionFunctionSettings->mZTDetectionConfig[DETECTION_FCT_PG].AnalysisActive = true;
|
||||||
|
SettingsData->mDetectionFunctionSettings->mZTDetectionConfig[DETECTION_FCT_PP].AnalysisActive = true;
|
||||||
|
SettingsData->mDetectionFunctionSettings->mZTDetectionConfig[DETECTION_FCT_PP2].AnalysisActive = true;
|
||||||
|
SettingsData->mDetectionFunctionSettings->mZTDetectionConfig[DETECTION_FCT_ZT1].AnalysisActive = true;
|
||||||
|
SettingsData->mDetectionFunctionSettings->mZTDetectionConfig[DETECTION_FCT_ZT2].AnalysisActive = true;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SettingsFile->close();
|
SettingsFile->close();
|
||||||
|
|||||||
@ -34,6 +34,8 @@
|
|||||||
//LOG DES CHANGEMENTS
|
//LOG DES CHANGEMENTS
|
||||||
//Version 1.32
|
//Version 1.32
|
||||||
//-Ajout des flags d'etat des fonctions de détection dans le fichier log
|
//-Ajout des flags d'etat des fonctions de détection dans le fichier log
|
||||||
|
//-Retrait de la possibilité d'inhiber l'analyse des fonctions
|
||||||
|
//-Changement de l'heure de reset des données Historien à 3h plutôt qu'à minuit.
|
||||||
|
|
||||||
//Version 1.31
|
//Version 1.31
|
||||||
//-Finalement finalement pour vrai réglé le problème de reset des stats aujourd'hui.
|
//-Finalement finalement pour vrai réglé le problème de reset des stats aujourd'hui.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user