mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-07-12 14:47:44 +02:00
2021-04-06 Fred Gleason <fredg@paravelsystems.com>
* Renamed the 'RadioTraffic.com Traffic Reconciliation' to 'Original RadioTraffic.com Traffic Reconciliation (DEPRECATED)' in rdadmin(1). * Added a new 'RadioTraffic.com Traffic Reconciliation' report. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
231ee06057
commit
2f8f6c91ea
@ -21410,3 +21410,8 @@
|
|||||||
* Fixed a bug in rdlogmanager(1) that could cause SQL errors to
|
* Fixed a bug in rdlogmanager(1) that could cause SQL errors to
|
||||||
be thrown when processing ELR records containing null values
|
be thrown when processing ELR records containing null values
|
||||||
in the 'EXT_START_TIME' column.
|
in the 'EXT_START_TIME' column.
|
||||||
|
2021-04-06 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Renamed the 'RadioTraffic.com Traffic Reconciliation' to
|
||||||
|
'Original RadioTraffic.com Traffic Reconciliation (DEPRECATED)'
|
||||||
|
in rdadmin(1).
|
||||||
|
* Added a new 'RadioTraffic.com Traffic Reconciliation' report.
|
||||||
|
@ -84,7 +84,12 @@ bool RDReport::ExportRadioTraffic(const QString &filename,
|
|||||||
// Write Data Rows
|
// Write Data Rows
|
||||||
//
|
//
|
||||||
while(q->next()) {
|
while(q->next()) {
|
||||||
*strm << q->value(4).toTime().toString("hh:mm:ss")+" ";
|
if(q->value(4).isNull()) {
|
||||||
|
*strm << "00:00:00 ";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
*strm << q->value(4).toTime().toString("hh:mm:ss")+" ";
|
||||||
|
}
|
||||||
*strm << q->value(2).toDateTime().toString("hh:mm:ss")+" ";
|
*strm << q->value(2).toDateTime().toString("hh:mm:ss")+" ";
|
||||||
if(q->value(5).toInt()>0) {
|
if(q->value(5).toInt()>0) {
|
||||||
if(version>0) {
|
if(version>0) {
|
||||||
|
@ -981,6 +981,10 @@
|
|||||||
<source>Hook End</source>
|
<source>Hook End</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Original RadioTraffic.com Traffic Reconciliation (DEPRECATED)</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>RDAddCart</name>
|
<name>RDAddCart</name>
|
||||||
|
@ -977,6 +977,10 @@
|
|||||||
<source>Hook End</source>
|
<source>Hook End</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Original RadioTraffic.com Traffic Reconciliation (DEPRECATED)</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>RDAddCart</name>
|
<name>RDAddCart</name>
|
||||||
|
@ -977,6 +977,10 @@
|
|||||||
<source>Hook End</source>
|
<source>Hook End</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Original RadioTraffic.com Traffic Reconciliation (DEPRECATED)</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>RDAddCart</name>
|
<name>RDAddCart</name>
|
||||||
|
@ -943,6 +943,10 @@
|
|||||||
<source>Hook End</source>
|
<source>Hook End</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Original RadioTraffic.com Traffic Reconciliation (DEPRECATED)</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>RDAddCart</name>
|
<name>RDAddCart</name>
|
||||||
|
@ -977,6 +977,10 @@
|
|||||||
<source>Hook End</source>
|
<source>Hook End</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Original RadioTraffic.com Traffic Reconciliation (DEPRECATED)</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>RDAddCart</name>
|
<name>RDAddCart</name>
|
||||||
|
@ -977,6 +977,10 @@
|
|||||||
<source>Hook End</source>
|
<source>Hook End</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Original RadioTraffic.com Traffic Reconciliation (DEPRECATED)</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>RDAddCart</name>
|
<name>RDAddCart</name>
|
||||||
|
@ -978,6 +978,10 @@
|
|||||||
<source>Hook End</source>
|
<source>Hook End</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Original RadioTraffic.com Traffic Reconciliation (DEPRECATED)</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>RDAddCart</name>
|
<name>RDAddCart</name>
|
||||||
|
@ -20,8 +20,7 @@
|
|||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include <qfile.h>
|
#include <QFile>
|
||||||
#include <qobject.h>
|
|
||||||
|
|
||||||
#include "rdapplication.h"
|
#include "rdapplication.h"
|
||||||
#include "rdconf.h"
|
#include "rdconf.h"
|
||||||
@ -614,9 +613,9 @@ bool RDReport::generateReport(const QDate &startdate,const QDate &enddate,
|
|||||||
ret=ExportRadioTraffic(filename,startdate,enddate,mixname,0);
|
ret=ExportRadioTraffic(filename,startdate,enddate,mixname,0);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// case RDReport::RadioTraffic2:
|
case RDReport::RadioTraffic2:
|
||||||
// ret=ExportRadioTraffic(filename,startdate,enddate,mixname,1);
|
ret=ExportRadioTraffic(filename,startdate,enddate,mixname,1);
|
||||||
// break;
|
break;
|
||||||
|
|
||||||
case RDReport::VisualTraffic:
|
case RDReport::VisualTraffic:
|
||||||
ret=ExportDeltaflex(filename,startdate,enddate,mixname);
|
ret=ExportDeltaflex(filename,startdate,enddate,mixname);
|
||||||
@ -705,6 +704,9 @@ QString RDReport::filterText(RDReport::ExportFilter filter)
|
|||||||
return QObject::tr("NPR/DS SoundExchange Report");
|
return QObject::tr("NPR/DS SoundExchange Report");
|
||||||
|
|
||||||
case RDReport::RadioTraffic:
|
case RDReport::RadioTraffic:
|
||||||
|
return QObject::tr("Original RadioTraffic.com Traffic Reconciliation (DEPRECATED)");
|
||||||
|
|
||||||
|
case RDReport::RadioTraffic2:
|
||||||
return QObject::tr("RadioTraffic.com Traffic Reconciliation");
|
return QObject::tr("RadioTraffic.com Traffic Reconciliation");
|
||||||
|
|
||||||
case RDReport::VisualTraffic:
|
case RDReport::VisualTraffic:
|
||||||
@ -779,6 +781,7 @@ bool RDReport::multipleDaysAllowed(RDReport::ExportFilter filter)
|
|||||||
case RDReport::CbsiDeltaFlex:
|
case RDReport::CbsiDeltaFlex:
|
||||||
case RDReport::TextLog:
|
case RDReport::TextLog:
|
||||||
case RDReport::RadioTraffic:
|
case RDReport::RadioTraffic:
|
||||||
|
case RDReport::RadioTraffic2:
|
||||||
case RDReport::VisualTraffic:
|
case RDReport::VisualTraffic:
|
||||||
case RDReport::CounterPoint:
|
case RDReport::CounterPoint:
|
||||||
case RDReport::CounterPoint2:
|
case RDReport::CounterPoint2:
|
||||||
@ -812,6 +815,7 @@ bool RDReport::multipleMonthsAllowed(RDReport::ExportFilter filter)
|
|||||||
case RDReport::TextLog:
|
case RDReport::TextLog:
|
||||||
case RDReport::BmiEmr:
|
case RDReport::BmiEmr:
|
||||||
case RDReport::RadioTraffic:
|
case RDReport::RadioTraffic:
|
||||||
|
case RDReport::RadioTraffic2:
|
||||||
case RDReport::VisualTraffic:
|
case RDReport::VisualTraffic:
|
||||||
case RDReport::CounterPoint:
|
case RDReport::CounterPoint:
|
||||||
case RDReport::CounterPoint2:
|
case RDReport::CounterPoint2:
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Abstract a Rivendell Report Descriptor
|
// Abstract a Rivendell Report Descriptor
|
||||||
//
|
//
|
||||||
// (C) Copyright 2002-2020 Fred Gleason <fredg@paravelsystems.com>
|
// (C) Copyright 2002-2021 Fred Gleason <fredg@paravelsystems.com>
|
||||||
//
|
//
|
||||||
// This program is free software; you can redistribute it and/or modify
|
// This program is free software; you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU General Public License version 2 as
|
// it under the terms of the GNU General Public License version 2 as
|
||||||
@ -21,8 +21,7 @@
|
|||||||
#ifndef RDREPORT_H
|
#ifndef RDREPORT_H
|
||||||
#define RDREPORT_H
|
#define RDREPORT_H
|
||||||
|
|
||||||
#include <qobject.h>
|
#include <QObject>
|
||||||
#include <qsqldatabase.h>
|
|
||||||
|
|
||||||
#include <rdconfig.h>
|
#include <rdconfig.h>
|
||||||
#include <rdlog_line.h>
|
#include <rdlog_line.h>
|
||||||
@ -37,7 +36,8 @@ class RDReport
|
|||||||
CounterPoint=7,Music1=8,MusicSummary=9,WideOrbit=10,
|
CounterPoint=7,Music1=8,MusicSummary=9,WideOrbit=10,
|
||||||
NprSoundExchange=11,MusicPlayout=12,NaturalLog=13,
|
NprSoundExchange=11,MusicPlayout=12,NaturalLog=13,
|
||||||
MusicClassical=14,MrMaster=15,SpinCount=16,CutLog=17,
|
MusicClassical=14,MrMaster=15,SpinCount=16,CutLog=17,
|
||||||
CounterPoint2=18,ResultsReport=19,LastFilter=20};
|
CounterPoint2=18,ResultsReport=19,RadioTraffic2=20,
|
||||||
|
LastFilter=21};
|
||||||
enum ExportOs {Linux=0,Windows=1};
|
enum ExportOs {Linux=0,Windows=1};
|
||||||
enum ExportType {Generic=0,Traffic=1,Music=2};
|
enum ExportType {Generic=0,Traffic=1,Music=2};
|
||||||
enum StationType {TypeOther=0,TypeAm=1,TypeFm=2,TypeLast=3};
|
enum StationType {TypeOther=0,TypeAm=1,TypeFm=2,TypeLast=3};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user