Merge pull request #659 from AndreasK79/iota_total_on_summary
Added total count for summary in Iota award
这个提交包含在:
当前提交
d2d2e96197
共有 2 个文件被更改,包括 12 次插入 和 3 次删除
|
|
@ -324,6 +324,12 @@ class IOTA extends CI_Model {
|
||||||
$iotaSummary['confirmed'][$band] = $confirmed[0]->count;
|
$iotaSummary['confirmed'][$band] = $confirmed[0]->count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$workedTotal = $this->getSummaryByBand('All', $station_id);
|
||||||
|
$confirmedTotal = $this->getSummaryByBandConfirmed('All', $station_id);
|
||||||
|
|
||||||
|
$iotaSummary['worked']['Total'] = $workedTotal[0]->count;
|
||||||
|
$iotaSummary['confirmed']['Total'] = $confirmedTotal[0]->count;
|
||||||
|
|
||||||
return $iotaSummary;
|
return $iotaSummary;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -335,6 +341,8 @@ class IOTA extends CI_Model {
|
||||||
|
|
||||||
if ($band == 'SAT') {
|
if ($band == 'SAT') {
|
||||||
$sql .= " and thcv.col_prop_mode ='" . $band . "'";
|
$sql .= " and thcv.col_prop_mode ='" . $band . "'";
|
||||||
|
} else if ($band == 'All') {
|
||||||
|
$sql .= " and thcv.col_prop_mode !='SAT'";
|
||||||
} else {
|
} else {
|
||||||
$sql .= " and thcv.col_prop_mode !='SAT'";
|
$sql .= " and thcv.col_prop_mode !='SAT'";
|
||||||
$sql .= " and thcv.col_band ='" . $band . "'";
|
$sql .= " and thcv.col_band ='" . $band . "'";
|
||||||
|
|
@ -353,6 +361,8 @@ class IOTA extends CI_Model {
|
||||||
|
|
||||||
if ($band == 'SAT') {
|
if ($band == 'SAT') {
|
||||||
$sql .= " and thcv.col_prop_mode ='" . $band . "'";
|
$sql .= " and thcv.col_prop_mode ='" . $band . "'";
|
||||||
|
} else if ($band == 'All') {
|
||||||
|
$sql .= " and thcv.col_prop_mode !='SAT'";
|
||||||
} else {
|
} else {
|
||||||
$sql .= " and thcv.col_prop_mode !='SAT'";
|
$sql .= " and thcv.col_prop_mode !='SAT'";
|
||||||
$sql .= " and thcv.col_band ='" . $band . "'";
|
$sql .= " and thcv.col_band ='" . $band . "'";
|
||||||
|
|
|
||||||
|
|
@ -136,10 +136,9 @@
|
||||||
foreach($bands as $band) {
|
foreach($bands as $band) {
|
||||||
echo '<td>' . $band . '</td>';
|
echo '<td>' . $band . '</td>';
|
||||||
}
|
}
|
||||||
echo '</tr>';
|
echo '<td>Total</td></tr>';
|
||||||
|
|
||||||
echo '</tr>
|
echo '</thead>
|
||||||
</thead>
|
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
||||||
<tr><td>Total worked</td>';
|
<tr><td>Total worked</td>';
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用