FSN#23893 fac-import: filter op importdatum erbij
svn path=/Website/trunk/; revision=15689
This commit is contained in:
@@ -36,6 +36,7 @@ FCLTHeader.Requires({ plugins:["suggest", "jQuery"],
|
||||
function imp_list(params)
|
||||
{
|
||||
var import_app_key = params.import_app_key;
|
||||
var import_date = params.import_date;
|
||||
%>
|
||||
|
||||
<html>
|
||||
@@ -94,6 +95,9 @@ else
|
||||
+ (params.catonly
|
||||
? " AND fia.fac_import_app_code='CATALOGUS'"
|
||||
: "")
|
||||
+ (import_date
|
||||
? " AND trunc(fi.fac_import_datum_gelezen) = " + import_date.toSQL(false)
|
||||
: "")
|
||||
params
|
||||
if (!params.historie)
|
||||
{
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
<!-- #include file="../Shared/common.inc" -->
|
||||
<!-- #include file="../Shared/iface.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
|
||||
@@ -36,6 +37,8 @@ autfunction = "WEB_IMPORT";
|
||||
|
||||
// De functie checkAutorisation() geeft een Response.End indien er geen autorisatie voor autfunction wordt gevonden
|
||||
var authparams = user.checkAutorisation(autfunction);
|
||||
var startdate = new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate());
|
||||
|
||||
%>
|
||||
|
||||
<html>
|
||||
@@ -89,6 +92,14 @@ var authparams = user.checkAutorisation(autfunction);
|
||||
selectjustone: import_app_key > -1,
|
||||
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);
|
||||
BLOCK_END();
|
||||
|
||||
@@ -19,6 +19,7 @@ var outputmode = getQParamInt("outputmode", 0); // 0 = screen, 1 = print, 2 = e
|
||||
var showall = getQParamInt("showall", 0) == 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.
|
||||
|
||||
@@ -26,6 +27,7 @@ imp_list ( { outputmode: outputmode,
|
||||
showall: showall,
|
||||
catonly: getQParamInt("catonly", 0) == 1,
|
||||
import_app_key: (import_app_key != -1? import_app_key : null),
|
||||
import_date: import_date,
|
||||
historie: getQParam("latestonly", "off") == "off"
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user