APGR#56976 Laatste actiedatum/tijd komen weer op de excel
svn path=/Website/branches/v2019.1/; revision=41600
This commit is contained in:
@@ -571,7 +571,7 @@ function mld_list (pautfunction, params)
|
||||
var globalRowData = {laatste_actie: null};
|
||||
var recent = new Date();
|
||||
recent.setMinutes(recent.getMinutes() - S("mld_melding_recent"));
|
||||
function fnrowClass(oRs)
|
||||
function fnBeforeEachRow(oRs)
|
||||
{
|
||||
var sql = "SELECT MAX(t.fac_tracking_datum) recentdatum"
|
||||
+ " FROM fac_tracking t"
|
||||
@@ -582,7 +582,10 @@ function mld_list (pautfunction, params)
|
||||
var roRs = Oracle.Execute(sql);
|
||||
globalRowData.laatste_actie = new Date(roRs("recentdatum").Value);
|
||||
roRs.Close();
|
||||
}
|
||||
|
||||
function fnrowClass(oRs)
|
||||
{
|
||||
if (oRs("mld_melding_parentkey").Value > 0)
|
||||
return " child";
|
||||
|
||||
@@ -1255,6 +1258,7 @@ function mld_list (pautfunction, params)
|
||||
var rst = new ResultsetTable({ keyColumn: "mld_melding_key",
|
||||
sql: sqln,
|
||||
ID: "complainstable",
|
||||
beforeEachRow: fnBeforeEachRow,
|
||||
rowClass: fnrowClass,
|
||||
rowData: fnrowData,
|
||||
disableInlineActions: !S("inline_actions_mld"),
|
||||
@@ -1281,7 +1285,7 @@ function mld_list (pautfunction, params)
|
||||
totalShow: fntotalShow
|
||||
});
|
||||
|
||||
if (S("mld_melding_actiecode") == 1)
|
||||
if (S("mld_melding_actiecode") == 1)
|
||||
rst.addColumn(new Column({caption: (outputmode == 0 ? I("fa-bell-o") : L("lcl_mld_actiecode")), content: fncolActiecode, align: "center"}));
|
||||
if (S("mld_melding_flags") > 0 && (!frontend || (frontend && S("fac_flags_visible_for_fe") == 1)))
|
||||
rst.addColumn(new Column({caption: (outputmode == 0 ? I("fa-circle") : L("lcl_mld_flags")), content: fncolFlags, align: "center"}));
|
||||
|
||||
@@ -1254,6 +1254,9 @@ function __rsMakeTableRow(oRs, oRsFlexData, cnt, anyMultiActions, noFlexResult)
|
||||
// Pas op: dit komt voor elke regel terug, dus hou het kort!
|
||||
with(this)
|
||||
{
|
||||
if (beforeEachRow)
|
||||
beforeEachRow(oRs, this.processParams);
|
||||
|
||||
var thisKey = -1;
|
||||
if (suppressKeyRepeat)
|
||||
thisKey = oRs(suppressKeyRepeat).Value;
|
||||
|
||||
Reference in New Issue
Block a user