considering only the QSOs of the active station profile now.

这个提交包含在:
Kim Huebel 2019-09-27 23:04:49 +02:00
父节点 1a737166c5
当前提交 044407fefc
共有 4 个文件被更改,包括 16 次插入6 次删除

查看文件

@ -32,7 +32,7 @@ $config['show_time'] = FALSE;
| Default is: M | Default is: M
| |
*/ */
$config['measurement_base'] = 'M'; $config['measurement_base'] = 'K';
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@ -73,6 +73,6 @@ $config['cat_timeout_interval'] = 300;
| |
*/ */
$config['public_search'] = FALSE; $config['public_search'] = TRUE;
$config['callsign_tags'] = TRUE; $config['callsign_tags'] = TRUE;

查看文件

@ -405,6 +405,7 @@ class Logbook_model extends CI_Model {
// Set Paper to recived // Set Paper to recived
function paperqsl_update($qso_id, $method) { function paperqsl_update($qso_id, $method) {
$data = array( $data = array(
'COL_QSLRDATE' => date('Y-m-d'), 'COL_QSLRDATE' => date('Y-m-d'),
'COL_QSL_RCVD' => 'Y', 'COL_QSL_RCVD' => 'Y',
@ -417,7 +418,11 @@ class Logbook_model extends CI_Model {
} }
function get_qsos_for_printing() { function get_qsos_for_printing() {
$query = $this->db->query('SELECT COL_PRIMARY_KEY, COL_CALL, COL_QSL_VIA, COL_TIME_ON, COL_MODE, COL_FREQ, UPPER(COL_BAND) as COL_BAND, COL_RST_SENT, COL_SAT_NAME, COL_SAT_MODE, COL_QSL_RCVD, (CASE WHEN COL_QSL_VIA != \'\' THEN COL_QSL_VIA ELSE COL_CALL END) AS COL_ROUTING, ADIF, ENTITY FROM '.$this->config->item('table_name').', dxcc_prefixes WHERE COL_QSL_SENT LIKE \'R\' and (CASE WHEN COL_QSL_VIA != \'\' THEN COL_QSL_VIA ELSE COL_CALL END) like CONCAT(dxcc_prefixes.call,\'%\') and (end is null or end > now()) ORDER BY adif, col_routing'); $CI =& get_instance();
$CI->load->model('Stations');
$station_id = $CI->Stations->find_active();
$query = $this->db->query('SELECT COL_PRIMARY_KEY, COL_CALL, COL_STATION_CALLSIGN, COL_QSL_VIA, COL_TIME_ON, COL_MODE, COL_FREQ, UPPER(COL_BAND) as COL_BAND, COL_RST_SENT, COL_SAT_NAME, COL_SAT_MODE, COL_QSL_RCVD, (CASE WHEN COL_QSL_VIA != \'\' THEN COL_QSL_VIA ELSE COL_CALL END) AS COL_ROUTING, ADIF, ENTITY FROM '.$this->config->item('table_name').', dxcc_prefixes WHERE COL_QSL_SENT LIKE \'R\' and (CASE WHEN COL_QSL_VIA != \'\' THEN COL_QSL_VIA ELSE COL_CALL END) like CONCAT(dxcc_prefixes.call,\'%\') and (end is null or end > now()) and station_id = '.$station_id.' ORDER BY adif, col_routing');
return $query; return $query;
} }

查看文件

@ -8,6 +8,10 @@ class Qslprint_model extends CI_Model {
} }
function mark_qsos_printed() { function mark_qsos_printed() {
$CI =& get_instance();
$CI->load->model('Stations');
$station_id = $CI->Stations->find_active();
$data = array( $data = array(
'COL_QSLSDATE' => date('Y-m-d'), 'COL_QSLSDATE' => date('Y-m-d'),
'COL_QSL_SENT' => "Y", 'COL_QSL_SENT' => "Y",
@ -15,6 +19,7 @@ class Qslprint_model extends CI_Model {
); );
$this->db->where("COL_QSL_SENT", "R"); $this->db->where("COL_QSL_SENT", "R");
$this->db->where("station_id", $station_id);
$this->db->update($this->config->item('table_name'), $data); $this->db->update($this->config->item('table_name'), $data);
} }
} }

查看文件

@ -16,7 +16,7 @@
<div class="card-body"> <div class="card-body">
<h5 class="card-title"></h5> <h5 class="card-title"></h5>
<p class="card-text"> <p class="card-text">
Here you can export requested QSLs as CSV-file or ADIF and mark them as sent via buro in a mass transaction if you like. Here you can export requested QSLs as CSV-file or ADIF and mark them as sent via buro in a mass transaction if you like. The considered QSOs for this functions would be those of the active station profile.
</p> </p>