UWVA#33705 rap: Inzage hebben of de bijlage van objecten voor inspectie geüpload zijn.
svn path=/Website/branches/v2015.3/; revision=27628
This commit is contained in:
@@ -8,11 +8,12 @@
|
||||
// parameters: flexpath in welke flexfiles map er gezocht moet worden
|
||||
|
||||
var flex = WScript.Arguments(0);
|
||||
scanFlexFolder(flex);
|
||||
|
||||
var nradded = scanFlexFolder(flex);
|
||||
WScript.Quit(0);
|
||||
|
||||
function scanFlexFolder(flexpath)
|
||||
{
|
||||
var nradded = 0;
|
||||
var scanDir = "../"+flexpath+(flexpath.slice(flexpath.length-1)=="/"?"":"/");
|
||||
WScript.Echo("------------- ["+ scanDir + "] -------------")
|
||||
|
||||
@@ -24,7 +25,7 @@ function scanFlexFolder(flexpath)
|
||||
|
||||
try
|
||||
{
|
||||
var sql = "DELETE FROM UWVA_FLEXFILES";
|
||||
var sql = "DELETE FROM UWVA_FLEXFILES"; // TODO: alleen voor flexpath/module
|
||||
__Log(sql);
|
||||
Oracle.Execute(sql);
|
||||
//
|
||||
@@ -48,8 +49,8 @@ function scanFlexFolder(flexpath)
|
||||
WScript.Quit(1);
|
||||
}
|
||||
//
|
||||
WScript.Quit(0);
|
||||
|
||||
__Log("Found " + nradded + " files in " + scanDir);
|
||||
return nradded;
|
||||
|
||||
function scanFolder(scanDir, lvl)
|
||||
{
|
||||
@@ -108,6 +109,7 @@ function scanFlexFolder(flexpath)
|
||||
+ "," + fsize
|
||||
+ ")";
|
||||
Oracle.Execute(sql_i);
|
||||
nradded ++;
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
|
||||
22
CUST/UWVA/Import/gen_import_flexfiles.wsf
Normal file
22
CUST/UWVA/Import/gen_import_flexfiles.wsf
Normal file
@@ -0,0 +1,22 @@
|
||||
<![CDATA[
|
||||
/*
|
||||
$Revision$
|
||||
$Id$
|
||||
|
||||
File: gen_import_flexfiles.wsf
|
||||
Calling: cscript gen_import_flexfiles.wsf flexfiles/ins >>genimportflex.log 2>>&1
|
||||
Parameters: 0: customerId
|
||||
1: flexfile folder
|
||||
Context: Scheduled task
|
||||
Note: Vooralsnog UWVA specifiek
|
||||
*/
|
||||
]]>
|
||||
|
||||
<job id="IncludeGenImportFlexfiles">
|
||||
<script language="JScript" src="../../../utils/wsf_shared.js"/>
|
||||
__Log('$Workfile: gen_import_flexfiles.wsf $','$Revision$');
|
||||
<script language="JScript" src="./GetFlexfiles.js"/>
|
||||
|
||||
<script language="JScript">
|
||||
</script>
|
||||
</job>
|
||||
Reference in New Issue
Block a user