mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-07-15 16:17:43 +02:00
2018-08-02 Fred Gleason <fredg@paravelsystems.com>
* Modified reports in rdgpimon(1) to display UTF-8 strings correctly.
This commit is contained in:
parent
c0930db2ac
commit
7881ec7770
@ -17308,3 +17308,6 @@
|
||||
2018-08-02 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Modified reports in rdcastmanager(1) to display UTF-8 strings
|
||||
correctly.
|
||||
2018-08-02 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Modified reports in rdgpimon(1) to display UTF-8 strings
|
||||
correctly.
|
||||
|
@ -37,6 +37,7 @@
|
||||
#include <rddb.h>
|
||||
#include <rdescape_string.h>
|
||||
#include <rdlistviewitem.h>
|
||||
#include <rdreport.h>
|
||||
#include <rdtextfile.h>
|
||||
|
||||
#include "rdgpimon.h"
|
||||
@ -385,14 +386,21 @@ void MainWidget::eventsReportData()
|
||||
QString sql;
|
||||
RDSqlQuery *q;
|
||||
|
||||
report=" Rivendell GPIO Event Report\n";
|
||||
report+=" Date: "+gpi_events_date_edit->date().toString("MM/dd/yyyy")+
|
||||
" Station/Matrix: "+rda->station()->name()+":"+
|
||||
QString().sprintf("%d ",gpi_matrix_box->currentItem())+
|
||||
" State Filter: "+gpi_events_state_box->currentText()+"\n";
|
||||
report=RDReport::center("Rivendell GPIO Event Report",78)+"\n";
|
||||
report+=
|
||||
RDReport::center(QString("Date: ")+
|
||||
gpi_events_date_edit->date().toString("MM/dd/yyyy")+
|
||||
" "+rda->station()->name()+":"+
|
||||
QString().sprintf("%d ",gpi_matrix_box->currentItem())+
|
||||
" State Filter: "+
|
||||
gpi_events_state_box->currentText(),78)+"\n";
|
||||
report+="\n";
|
||||
|
||||
sql=QString("select EVENT_DATETIME,NUMBER,EDGE from GPIO_EVENTS where ")+
|
||||
sql=QString("select ")+
|
||||
"EVENT_DATETIME,"+ // 00
|
||||
"NUMBER,"+ // 01
|
||||
"EDGE "+ // 02
|
||||
"from GPIO_EVENTS where "+
|
||||
"(STATION_NAME=\""+RDEscapeString(rda->station()->name())+"\")&&"+
|
||||
QString().sprintf("(MATRIX=%d)&&",gpi_matrix_box->currentItem())+
|
||||
QString().sprintf("(TYPE=%d)&&",gpi_type_box->currentItem())+
|
||||
|
Loading…
x
Reference in New Issue
Block a user