FSN#23893 fac-import: filter op importdatum erbij

svn path=/Website/trunk/; revision=15689
This commit is contained in:
Erik Groener
2012-10-23 11:29:30 +00:00
parent 6096e782b8
commit 50290d3e87
3 changed files with 17 additions and 0 deletions

View File

@@ -36,6 +36,7 @@ FCLTHeader.Requires({ plugins:["suggest", "jQuery"],
function imp_list(params) function imp_list(params)
{ {
var import_app_key = params.import_app_key; var import_app_key = params.import_app_key;
var import_date = params.import_date;
%> %>
<html> <html>
@@ -94,6 +95,9 @@ else
+ (params.catonly + (params.catonly
? " AND fia.fac_import_app_code='CATALOGUS'" ? " AND fia.fac_import_app_code='CATALOGUS'"
: "") : "")
+ (import_date
? " AND trunc(fi.fac_import_datum_gelezen) = " + import_date.toSQL(false)
: "")
params params
if (!params.historie) if (!params.historie)
{ {

View File

@@ -18,6 +18,7 @@
<!-- #include file="../Shared/common.inc" --> <!-- #include file="../Shared/common.inc" -->
<!-- #include file="../Shared/iface.inc" --> <!-- #include file="../Shared/iface.inc" -->
<!-- #include file="../Shared/selector.inc" --> <!-- #include file="../Shared/selector.inc" -->
<!-- #include file="../Shared/calendar.inc" -->
<% <%
// "jquery-ui.js" als js toevoegen. Bij de meeste xxx_search.asp bestanden gebeurd dit al automatisch door de "kenmerk" plugin. Anders o.a. $.dialog() onbekend bij acties in overzicht // "jquery-ui.js" als js toevoegen. Bij de meeste xxx_search.asp bestanden gebeurd dit al automatisch door de "kenmerk" plugin. Anders o.a. $.dialog() onbekend bij acties in overzicht
@@ -36,6 +37,8 @@ autfunction = "WEB_IMPORT";
// De functie checkAutorisation() geeft een Response.End indien er geen autorisatie voor autfunction wordt gevonden // De functie checkAutorisation() geeft een Response.End indien er geen autorisatie voor autfunction wordt gevonden
var authparams = user.checkAutorisation(autfunction); var authparams = user.checkAutorisation(autfunction);
var startdate = new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate());
%> %>
<html> <html>
@@ -89,6 +92,14 @@ var authparams = user.checkAutorisation(autfunction);
selectjustone: import_app_key > -1, selectjustone: import_app_key > -1,
emptyOption: L("lcl_search_generic") emptyOption: L("lcl_search_generic")
}); });
// <!-- Datum -->
FCLTcalendar( "import_date",
{ label : L("lcl_imp_date_readin"),
datum: startdate,
trclass: "primsearch",
volgnr: 1,
timeField: false
});
RWCHECKBOXTR( "latestonly", "fldimphistorie", L("lcl_imp_nohistorie"), true); RWCHECKBOXTR( "latestonly", "fldimphistorie", L("lcl_imp_nohistorie"), true);
BLOCK_END(); BLOCK_END();

View File

@@ -19,6 +19,7 @@ var outputmode = getQParamInt("outputmode", 0); // 0 = screen, 1 = print, 2 = e
var showall = getQParamInt("showall", 0) == 1; var showall = getQParamInt("showall", 0) == 1;
var import_app_key = getQParamInt("import_app_key", -1); var import_app_key = getQParamInt("import_app_key", -1);
var import_date = getQParamDate("import_date", null);
// autorisatie check staat in de lijst omdat per regel een fac_functie_key beschikbaar is. // autorisatie check staat in de lijst omdat per regel een fac_functie_key beschikbaar is.
@@ -26,6 +27,7 @@ imp_list ( { outputmode: outputmode,
showall: showall, showall: showall,
catonly: getQParamInt("catonly", 0) == 1, catonly: getQParamInt("catonly", 0) == 1,
import_app_key: (import_app_key != -1? import_app_key : null), import_app_key: (import_app_key != -1? import_app_key : null),
import_date: import_date,
historie: getQParam("latestonly", "off") == "off" historie: getQParam("latestonly", "off") == "off"
} }
); );