mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-19 07:52:16 +00:00
Fixed: Corrected number of rows in CSV download
The new line in concatinated groups was causing extra lines in excel file and messing the structure. Also adapted download status title to enable correct data import of csv text file.
This commit is contained in:
@@ -227,6 +227,7 @@ $this->load->view(
|
||||
field: "status",
|
||||
width:40,
|
||||
align:"center",
|
||||
downloadTitle: 'Status',
|
||||
formatter: status_formatter,
|
||||
tooltip: status_tooltip
|
||||
}, true
|
||||
|
||||
@@ -84,8 +84,8 @@ FROM
|
||||
SELECT *,
|
||||
/* concatinated and aggregated gruppen */
|
||||
(SELECT
|
||||
string_agg(concat(stg_typ_kurzbz, \'-\', semester, verband, gruppe,
|
||||
\'\n\' || gruppe_kurzbz), \', \')
|
||||
string_agg(concat(stg_typ_kurzbz, \'-\', semester, verband, gruppe
|
||||
|| gruppe_kurzbz), \', \')
|
||||
FROM
|
||||
lehre.tbl_lehreinheitgruppe
|
||||
WHERE
|
||||
@@ -181,8 +181,8 @@ FROM
|
||||
LIMIT 1) AS "mitarbeiter_uid",
|
||||
/* concatinated and aggregated gruppen */
|
||||
(SELECT
|
||||
string_agg(concat(stg_typ_kurzbz, \'-\', semester, verband, gruppe,
|
||||
\'\n\' || gruppe_kurzbz), \', \')
|
||||
string_agg(concat(stg_typ_kurzbz, \'-\', semester, verband, gruppe
|
||||
|| gruppe_kurzbz), \', \')
|
||||
FROM
|
||||
lehre.tbl_lehreinheitgruppe
|
||||
WHERE
|
||||
|
||||
@@ -272,6 +272,7 @@ $this->load->view(
|
||||
field: "status",
|
||||
width:40,
|
||||
align:"center",
|
||||
downloadTitle: 'Status',
|
||||
formatter: status_formatter,
|
||||
tooltip: status_tooltip
|
||||
}, true
|
||||
|
||||
@@ -86,8 +86,8 @@ FROM
|
||||
SELECT *,
|
||||
/* concatinated and aggregated gruppen */
|
||||
(SELECT
|
||||
string_agg(concat(stg_typ_kurzbz, \'-\', semester, verband, gruppe,
|
||||
\'\n\' || gruppe_kurzbz), \', \')
|
||||
string_agg(concat(stg_typ_kurzbz, \'-\', semester, verband, gruppe
|
||||
|| gruppe_kurzbz), \', \')
|
||||
FROM
|
||||
lehre.tbl_lehreinheitgruppe
|
||||
WHERE
|
||||
@@ -186,8 +186,8 @@ FROM
|
||||
LIMIT 1) AS "mitarbeiter_uid",
|
||||
/* concatinated and aggregated gruppen */
|
||||
(SELECT
|
||||
string_agg(concat(stg_typ_kurzbz, \'-\', semester, verband, gruppe,
|
||||
\'\n\' || gruppe_kurzbz), \', \')
|
||||
string_agg(concat(stg_typ_kurzbz, \'-\', semester, verband, gruppe
|
||||
|| gruppe_kurzbz), \', \')
|
||||
FROM
|
||||
lehre.tbl_lehreinheitgruppe
|
||||
WHERE
|
||||
|
||||
@@ -276,6 +276,7 @@ $this->load->view(
|
||||
field: "status",
|
||||
width:40,
|
||||
align:"center",
|
||||
downloadTitle: 'Status',
|
||||
formatter: status_formatter,
|
||||
tooltip: status_tooltip
|
||||
}, true
|
||||
@@ -320,18 +321,6 @@ $this->load->view(
|
||||
});
|
||||
}
|
||||
|
||||
function func_renderComplete(table){
|
||||
// console.log(table.getDataCount());
|
||||
// Display message if table is empty
|
||||
// TODO: msg funktioniert, aber wenn beim filtern kein Ergebnis (0 rows), und man den filter nachher wegmacht,
|
||||
// TODO: bleibt die msg. Ev gleich am anfang check: nur wenn nicht gefiltert. ODER ev besser: nicht in renderStarted, sondern tabelBuilt
|
||||
// if (table.getRows( == 0)
|
||||
// {
|
||||
// table.element.childNodes.item(1).innerHTML =
|
||||
// '<div class="tabulator-row panel text-center" role="row" style="padding: 50px;">Es sind keine Lehraufträge vorhanden.</div>';
|
||||
// }
|
||||
}
|
||||
|
||||
// Performes after row was updated
|
||||
function func_rowUpdated(row){
|
||||
|
||||
|
||||
@@ -88,8 +88,8 @@ FROM
|
||||
SELECT *,
|
||||
/* concatinated and aggregated gruppen */
|
||||
(SELECT
|
||||
string_agg(concat(stg_typ_kurzbz, \'-\', semester, verband, gruppe,
|
||||
\'\n\' || gruppe_kurzbz), \', \')
|
||||
string_agg(concat(stg_typ_kurzbz, \'-\', semester, verband, gruppe
|
||||
|| gruppe_kurzbz), \', \')
|
||||
FROM
|
||||
lehre.tbl_lehreinheitgruppe
|
||||
WHERE
|
||||
@@ -190,8 +190,8 @@ FROM
|
||||
LIMIT 1) AS "mitarbeiter_uid",
|
||||
/* concatinated and aggregated gruppen */
|
||||
(SELECT
|
||||
string_agg(concat(stg_typ_kurzbz, \'-\', semester, verband, gruppe,
|
||||
\'\n\' || gruppe_kurzbz), \', \')
|
||||
string_agg(concat(stg_typ_kurzbz, \'-\', semester, verband, gruppe
|
||||
|| gruppe_kurzbz), \', \')
|
||||
FROM
|
||||
lehre.tbl_lehreinheitgruppe
|
||||
WHERE
|
||||
@@ -364,9 +364,6 @@ $filterWidgetArray = array(
|
||||
renderStarted:function(){
|
||||
func_renderStarted(this);
|
||||
},
|
||||
renderComplete:function(){
|
||||
func_renderComplete(this);
|
||||
},
|
||||
tableBuilt: function(){
|
||||
func_tableBuilt(this);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user