Compare commits
No commits in common. 'master' and 'etl_0.4_Release' have entirely different histories.
master
...
etl_0.4_Re
41 changed files with 232 additions and 4229 deletions
@ -1,47 +0,0 @@ |
|||||||
#!/bin/bash |
|
||||||
#Änderungen |
|
||||||
#--------------------------------------------------------------------- |
|
||||||
# Shell-Kommando "etl_execute_unload_job.x" |
|
||||||
# |
|
||||||
#--------------------------------------------------------------------- |
|
||||||
|
|
||||||
if [ "$1" = "" ] |
|
||||||
then echo "Aufruf: etl_execute_unload_job.x job_uniquename FILTER <Ausgabedatei (optional)>" |
|
||||||
echo " " |
|
||||||
echo "Aktion: etl_execute_unload_job.x entlaedt Tabellen." |
|
||||||
echo " Mit Hilfe von etl_execute_upload_job.x koennen diese Daten importiert werden." |
|
||||||
echo " " |
|
||||||
exit 0 |
|
||||||
fi |
|
||||||
|
|
||||||
#------------------------------------------------------------------- |
|
||||||
#-- Metadaten entladen |
|
||||||
#------------------------------------------------------------------- |
|
||||||
|
|
||||||
JOB_UNIQUENAME=$1 |
|
||||||
|
|
||||||
FILTER=$2 |
|
||||||
|
|
||||||
if [ "$3" == "" ] |
|
||||||
then outfile=$JOB_UNIQUENAME.xml |
|
||||||
else |
|
||||||
|
|
||||||
outfile=$3 |
|
||||||
|
|
||||||
fi |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SX_CLIENT=jdbc |
|
||||||
export SX_CLIENT |
|
||||||
CP=".:$JDBC_CLASSPATH" |
|
||||||
|
|
||||||
CMD="java $JAVA_OPTS -cp $CP de.superx.elt.bin.EtlJobExecutor -dbproperties:$DB_PROPERTIES -job:$JOB_UNIQUENAME -outfile:$outfile -params:$FILTER" |
|
||||||
|
|
||||||
echo $CMD |
|
||||||
|
|
||||||
$CMD |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,47 +0,0 @@ |
|||||||
#!/bin/bash |
|
||||||
#Änderungen |
|
||||||
#--------------------------------------------------------------------- |
|
||||||
# Shell-Kommando "etl_execute_unload_job.x" |
|
||||||
# |
|
||||||
#--------------------------------------------------------------------- |
|
||||||
|
|
||||||
if [ "$1" = "" ] |
|
||||||
then echo "Aufruf: etl_execute_upload_job.x job_uniquename FILTER <Eingabedatei (optional)>" |
|
||||||
echo " " |
|
||||||
echo "Aktion: etl_execute_upload_job.x laedt Tabellen." |
|
||||||
echo " " |
|
||||||
echo " " |
|
||||||
exit 0 |
|
||||||
fi |
|
||||||
|
|
||||||
#------------------------------------------------------------------- |
|
||||||
#-- Metadaten entladen |
|
||||||
#------------------------------------------------------------------- |
|
||||||
|
|
||||||
JOB_UNIQUENAME=$1 |
|
||||||
|
|
||||||
FILTER=$2 |
|
||||||
|
|
||||||
if [ "$3" == "" ] |
|
||||||
then infile=$JOB_UNIQUENAME.xml |
|
||||||
else |
|
||||||
|
|
||||||
infile=$3 |
|
||||||
|
|
||||||
fi |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SX_CLIENT=jdbc |
|
||||||
export SX_CLIENT |
|
||||||
CP=".:$JDBC_CLASSPATH" |
|
||||||
|
|
||||||
CMD="java $JAVA_OPTS -cp $CP de.superx.elt.bin.EtlJobExecutor -dbproperties:$DB_PROPERTIES -job:$JOB_UNIQUENAME -params:PATH_TO_INPUTFILE=$infile" |
|
||||||
|
|
||||||
echo $CMD |
|
||||||
|
|
||||||
$CMD |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,7 +1,4 @@ |
|||||||
doku/etl_modul/etl.html |
doku/etl_modul/etl.html |
||||||
WEB-INF/conf/edustore/db/bin/SQL_ENV_etl.sam |
WEB-INF/conf/edustore/db/bin/SQL_ENV_etl.sam |
||||||
WEB-INF/lib/superx-etl.jar |
WEB-INF/lib/superx-etl.jar |
||||||
images/eye.svg |
|
||||||
images/downloadblck.svg |
|
||||||
images/resultset_up.svg |
|
||||||
|
|
||||||
|
@ -1,22 +0,0 @@ |
|||||||
--Freemarker Template |
|
||||||
|
|
||||||
--used in etl-job qa_project_upload |
|
||||||
<#if SQLdialect='Postgres'> |
|
||||||
drop table if exists tmp_etl_qa_project; |
|
||||||
drop table if exists tmp_etl_sachgeb_sichtarten; |
|
||||||
</#if> |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
CREATE TABLE tmp_etl_qa_project( |
|
||||||
|
|
||||||
uniquename VARCHAR(255) , |
|
||||||
name VARCHAR(255) , |
|
||||||
systeminfo_id INTEGER , |
|
||||||
sachgebiete_id INTEGER , |
|
||||||
active SMALLINT , |
|
||||||
created_from INTEGER , |
|
||||||
issue_link VARCHAR(255) |
|
||||||
) |
|
||||||
; |
|
||||||
|
|
@ -1,67 +0,0 @@ |
|||||||
--Freemarker Template |
|
||||||
|
|
||||||
--used in etl-job qa_project_upload |
|
||||||
<#if SQLdialect='Postgres'> |
|
||||||
drop table if exists tmp_rpta_resultset; |
|
||||||
drop table if exists tmp_etl_rpta_column_layout; |
|
||||||
drop table if exists tmp_rpta_column; |
|
||||||
drop table if exists tmp_rpta_column2layout; |
|
||||||
</#if> |
|
||||||
|
|
||||||
|
|
||||||
CREATE TABLE tmp_rpta_resultset ( |
|
||||||
tid integer, |
|
||||||
caption character varying(255), |
|
||||||
uniquename character varying(255), |
|
||||||
fieldclause text, |
|
||||||
joinclause text, |
|
||||||
whereclause text, |
|
||||||
systeminfo_id integer, |
|
||||||
is_virtual smallint |
|
||||||
); |
|
||||||
|
|
||||||
|
|
||||||
CREATE TABLE tmp_etl_rpta_column_layout ( |
|
||||||
tid integer, |
|
||||||
uniquename character varying(255), |
|
||||||
caption character varying(255), |
|
||||||
resultset_id integer, |
|
||||||
whereclause text, |
|
||||||
description text, |
|
||||||
userinfo_id integer, |
|
||||||
sortnr integer, |
|
||||||
sortclause text, |
|
||||||
is_virtual smallint, |
|
||||||
resultset_uniquename character varying(255) |
|
||||||
); |
|
||||||
|
|
||||||
CREATE TABLE tmp_rpta_column ( |
|
||||||
tid integer, |
|
||||||
uniquename character varying(255), |
|
||||||
caption character varying(255), |
|
||||||
srcfieldname character varying(255), |
|
||||||
column_type integer, |
|
||||||
col_function text, |
|
||||||
is_aggregate smallint, |
|
||||||
resultset_id integer, |
|
||||||
custom integer, |
|
||||||
description text, |
|
||||||
targetfieldname character varying(255) |
|
||||||
); |
|
||||||
|
|
||||||
|
|
||||||
CREATE TABLE tmp_rpta_column2layout ( |
|
||||||
tid integer, |
|
||||||
column_id integer, |
|
||||||
layout_id integer, |
|
||||||
sortnr smallint, |
|
||||||
is_visible smallint, |
|
||||||
visible_size smallint, |
|
||||||
format_code varchar(255), |
|
||||||
targetfieldname character varying(255), |
|
||||||
caption character varying(255), |
|
||||||
description text |
|
||||||
); |
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,49 +0,0 @@ |
|||||||
--Freemarker Template |
|
||||||
|
|
||||||
--used in etl-job sx_insert_mask |
|
||||||
<#if SQLdialect='Postgres'> |
|
||||||
drop table if exists tmp_etl_sichten; |
|
||||||
drop table if exists tmp_etl_sachgeb_sichtarten; |
|
||||||
</#if> |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
CREATE TABLE tmp_etl_sichten ( |
|
||||||
-- tid integer, |
|
||||||
-- |
|
||||||
-- parent CHAR(255) , |
|
||||||
systeminfoid INTEGER default 0 not null, |
|
||||||
art CHAR(40) , |
|
||||||
type INTEGER default 10 not null, |
|
||||||
name_intern CHAR(200) , |
|
||||||
name CHAR(200) , |
|
||||||
-- beschreibung CHAR(255) , |
|
||||||
sortnr INTEGER default 0 not null, |
|
||||||
quelle TEXT , |
|
||||||
-- alt_hier_id CHAR(150) , |
|
||||||
-- treecfgtable CHAR(255) , |
|
||||||
-- treecfgid CHAR(150) , |
|
||||||
-- label SMALLINT default 0 not null, |
|
||||||
-- user_rechte SMALLINT default 1 not null, |
|
||||||
-- rechtequelle CHAR(255) , |
|
||||||
-- sesamkey CHAR(100) , |
|
||||||
standbutton SMALLINT default 0 not null, |
|
||||||
-- attribut1 CHAR(255) , |
|
||||||
-- attribut2 CHAR(255) , |
|
||||||
-- attribut3 INTEGER , |
|
||||||
-- attribut4 INTEGER , |
|
||||||
-- xmlmaxentries INTEGER , |
|
||||||
-- gueltig_seit DATE default date('01.01.1900') not null, |
|
||||||
-- gueltig_bis DATE default date('01.01.3000') not null, |
|
||||||
-- cacheapplet CHAR(255) , |
|
||||||
-- cachexml CHAR(255) , |
|
||||||
aktiv SMALLINT default 1 |
|
||||||
); |
|
||||||
|
|
||||||
create table tmp_etl_sachgeb_sichtarten( |
|
||||||
sachgebiete_id INTEGER , |
|
||||||
sichtart CHAR(255) |
|
||||||
) |
|
||||||
; |
|
||||||
|
|
||||||
|
|
@ -1,4 +0,0 @@ |
|||||||
1^MASK^Masken^0^sx_select_mask^sx_insert_mask^TID^42000^42006^1^ |
|
||||||
2^SICHT^Sichten^0^sichten_unload^sichten_upload^SYSTEMINFO_ID^42000^42004^1^ |
|
||||||
3^QA_PROJECT^Testfälle^0^qa_project_unload^qa_project_upload^QA_PROJECT_ID^42000^42007^1^ |
|
||||||
4^RPTA_COLUMN_LAYOUT^Spaltenlayouts^0^rpta_column_layout_unload^rpta_column_layout_upload^RPTA_COLUMN_LAYOUT_TID^42000^42008^1^ |
|
@ -1,12 +0,0 @@ |
|||||||
--freemarker template |
|
||||||
<sqlvars> |
|
||||||
<sqlvar name="QA_installed"> |
|
||||||
select 1 from xdummy where 0 < (select count(*) from db_version where his_system='qa') |
|
||||||
union select 0 from xdummy where |
|
||||||
0 = (select count(*) from db_version where his_system='qa'); |
|
||||||
</sqlvar> |
|
||||||
</sqlvars> |
|
||||||
|
|
||||||
<#if QA_installed==0> |
|
||||||
update etl_manager_tab set active=0 where uniquename='QA_PROJECT'; |
|
||||||
</#if> |
|
@ -1,62 +0,0 @@ |
|||||||
begin work; |
|
||||||
|
|
||||||
delete from sichten where name_intern in (select name_intern from tmp_sichten); |
|
||||||
|
|
||||||
insert into sichten(parent, |
|
||||||
systeminfoid, |
|
||||||
art, |
|
||||||
type, |
|
||||||
name_intern, |
|
||||||
name, |
|
||||||
beschreibung, |
|
||||||
sortnr, |
|
||||||
quelle, |
|
||||||
alt_hier_id, |
|
||||||
treecfgtable, |
|
||||||
treecfgid, |
|
||||||
label, |
|
||||||
user_rechte, |
|
||||||
rechtequelle, |
|
||||||
sesamkey, |
|
||||||
standbutton, |
|
||||||
attribut1, |
|
||||||
attribut2, |
|
||||||
attribut3, |
|
||||||
attribut4, |
|
||||||
xmlmaxentries, |
|
||||||
gueltig_seit, |
|
||||||
gueltig_bis, |
|
||||||
cacheapplet, |
|
||||||
cachexml, |
|
||||||
aktiv) select parent, |
|
||||||
systeminfoid, |
|
||||||
art, |
|
||||||
type, |
|
||||||
name_intern, |
|
||||||
name, |
|
||||||
beschreibung, |
|
||||||
sortnr, |
|
||||||
quelle, |
|
||||||
alt_hier_id, |
|
||||||
treecfgtable, |
|
||||||
treecfgid, |
|
||||||
label, |
|
||||||
user_rechte, |
|
||||||
rechtequelle, |
|
||||||
sesamkey, |
|
||||||
standbutton, |
|
||||||
attribut1, |
|
||||||
attribut2, |
|
||||||
attribut3, |
|
||||||
attribut4, |
|
||||||
xmlmaxentries, |
|
||||||
gueltig_seit, |
|
||||||
gueltig_bis, |
|
||||||
cacheapplet, |
|
||||||
cachexml, |
|
||||||
aktiv from tmp_sichten; |
|
||||||
|
|
||||||
drop table tmp_sichten; |
|
||||||
|
|
||||||
commit; |
|
||||||
|
|
@ -1,52 +0,0 @@ |
|||||||
begin work; |
|
||||||
|
|
||||||
|
|
||||||
delete from userinfo where benutzer in (select benutzer from tmp_userinfo); |
|
||||||
|
|
||||||
delete from user_institution where userid in (select userid from tmp_user_institution); |
|
||||||
delete from user_masken_bez where userinfo_id in (select userinfo_id from tmp_user_masken_bez); |
|
||||||
delete from user_sachgeb_bez where userinfo_id in (select userinfo_id from tmp_user_sachgeb_bez); |
|
||||||
delete from user_pw where userinfo_id in (select userinfo_id from tmp_user_pw); |
|
||||||
delete from user_sichtarten where userinfo_id in (select userinfo_id from tmp_user_sichtarten); |
|
||||||
delete from user_sichten where userinfo_id in (select userinfo_id from tmp_user_sichten); |
|
||||||
delete from groupinfo where tid in (select tid from tmp_groupinfo); |
|
||||||
|
|
||||||
delete from group_field_pref where groupinfo_id in (select groupinfo_id from tmp_group_field_pref); |
|
||||||
delete from group_masken_bez where groupinfo_id in (select groupinfo_id from tmp_group_masken_bez); |
|
||||||
delete from group_sachgeb_bez where groupinfo_id in (select groupinfo_id from tmp_group_sachgeb_bez); |
|
||||||
delete from group_sichtarten where groupinfo_id in (select groupinfo_id from tmp_group_sichtarten); |
|
||||||
delete from group_sichten where groupinfo_id in (select groupinfo_id from tmp_group_sichten); |
|
||||||
delete from user_group_bez where groupinfo_id in (select groupinfo_id from tmp_user_group_bez); |
|
||||||
|
|
||||||
|
|
||||||
insert into userinfo select * from tmp_userinfo ; |
|
||||||
insert into user_institution select * from tmp_user_institution ; |
|
||||||
insert into user_masken_bez select * from tmp_user_masken_bez ; |
|
||||||
insert into user_sachgeb_bez select * from tmp_user_sachgeb_bez ; |
|
||||||
insert into user_pw select * from tmp_user_pw ; |
|
||||||
insert into user_sichtarten select * from tmp_user_sichtarten ; |
|
||||||
insert into user_sichten select * from tmp_user_sichten ; |
|
||||||
insert into groupinfo select * from tmp_groupinfo ; |
|
||||||
insert into group_field_pref select * from tmp_group_field_pref ; |
|
||||||
insert into group_masken_bez select * from tmp_group_masken_bez ; |
|
||||||
insert into group_sachgeb_bez select * from tmp_group_sachgeb_bez ; |
|
||||||
insert into group_sichtarten select * from tmp_group_sichtarten; |
|
||||||
insert into group_sichten select * from tmp_group_sichten ; |
|
||||||
insert into user_group_bez select * from tmp_user_group_bez ; |
|
||||||
|
|
||||||
drop table tmp_userinfo; |
|
||||||
drop table tmp_user_institution; |
|
||||||
drop table tmp_user_masken_bez; |
|
||||||
drop table tmp_user_sachgeb_bez; |
|
||||||
drop table tmp_user_pw; |
|
||||||
drop table tmp_user_sichtarten; |
|
||||||
drop table tmp_user_sichten; |
|
||||||
drop table tmp_groupinfo; |
|
||||||
drop table tmp_group_field_pref; |
|
||||||
drop table tmp_group_masken_bez; |
|
||||||
drop table tmp_group_sachgeb_bez; |
|
||||||
drop table tmp_group_sichtarten; |
|
||||||
drop table tmp_group_sichten; |
|
||||||
drop table tmp_user_group_bez; |
|
||||||
|
|
||||||
commit; |
|
File diff suppressed because it is too large
Load Diff
@ -1,61 +0,0 @@ |
|||||||
|
|
||||||
update sichten set systeminfoid=T.systeminfoid, |
|
||||||
art=T.art, |
|
||||||
type=T.type, |
|
||||||
name=T.name, |
|
||||||
quelle=T.quelle , |
|
||||||
sortnr=T.sortnr, |
|
||||||
standbutton=T.standbutton, |
|
||||||
aktiv=T.aktiv |
|
||||||
|
|
||||||
from tmp_etl_sichten T |
|
||||||
where T.name_intern=sichten.name_intern |
|
||||||
and sichten.name_intern in (select T2.name_intern from tmp_etl_sichten T2) |
|
||||||
; |
|
||||||
|
|
||||||
delete from tmp_etl_sichten where name_intern in (select name_intern from sichten); |
|
||||||
|
|
||||||
INSERT INTO sichten( |
|
||||||
systeminfoid , |
|
||||||
art , |
|
||||||
type , |
|
||||||
name_intern , |
|
||||||
name , |
|
||||||
sortnr , |
|
||||||
quelle , |
|
||||||
standbutton , |
|
||||||
gueltig_seit , |
|
||||||
gueltig_bis , |
|
||||||
aktiv) |
|
||||||
select systeminfoid , |
|
||||||
art , |
|
||||||
type , |
|
||||||
name_intern , |
|
||||||
name , |
|
||||||
sortnr , |
|
||||||
quelle , |
|
||||||
standbutton , |
|
||||||
date_val('01.01.1900') as gueltig_seit , |
|
||||||
date_val('01.01.3000') as gueltig_bis , |
|
||||||
aktiv |
|
||||||
from tmp_etl_sichten S; |
|
||||||
|
|
||||||
|
|
||||||
delete from sachgeb_sichtarten |
|
||||||
where (sachgebiete_id , |
|
||||||
sichtart) in |
|
||||||
(select sachgebiete_id , |
|
||||||
sichtart from tmp_etl_sachgeb_sichtarten); |
|
||||||
|
|
||||||
insert into sachgeb_sichtarten( |
|
||||||
sachgebiete_id , |
|
||||||
sichtart) |
|
||||||
select |
|
||||||
sachgebiete_id , |
|
||||||
sichtart |
|
||||||
from tmp_etl_sachgeb_sichtarten; |
|
||||||
|
|
||||||
|
|
||||||
drop table if exists tmp_etl_sichten; |
|
||||||
drop table if exists tmp_etl_sachgeb_sichtarten; |
|
||||||
|
|
@ -1,40 +0,0 @@ |
|||||||
--freemarker template |
|
||||||
<#include "SQL_lingua_franca"/> |
|
||||||
<#include "SuperX_general"/> |
|
||||||
<#include "RPTA-Makros"/> |
|
||||||
|
|
||||||
<sqlvars> |
|
||||||
<sqlvar name="rpta_column_layout" type="hash"> |
|
||||||
select uniquename, |
|
||||||
caption, |
|
||||||
resultset_uniquename as rpta_resultset, |
|
||||||
replace(whereclause,'''','''''') as whereclause, |
|
||||||
description, |
|
||||||
sortclause, |
|
||||||
is_virtual |
|
||||||
from tmp_etl_rpta_column_layout; |
|
||||||
</sqlvar> |
|
||||||
<sqlvar name="rpta_columns" type="hashsequence"> |
|
||||||
select C.uniquename, |
|
||||||
null::varchar(255) as caption, |
|
||||||
C.caption as caption_der_spalte, |
|
||||||
L.caption as caption_in_ergebnistabelle, |
|
||||||
C.srcfieldname, |
|
||||||
C.targetfieldname, |
|
||||||
T.uniquename as column_type, |
|
||||||
replace(C.col_function,'''','''''') as col_function, |
|
||||||
L.is_visible, |
|
||||||
L.visible_size, |
|
||||||
C.is_aggregate, |
|
||||||
null::varchar(255) as description, |
|
||||||
L.format_code, |
|
||||||
C.description as description_der_spalte, |
|
||||||
L.description as description_in_ergebnistabelle |
|
||||||
from tmp_rpta_column C, tmp_rpta_column2layout L, rpta_column_type T |
|
||||||
where L.column_id=C.tid |
|
||||||
and T.tid=C.column_type |
|
||||||
</sqlvar> |
|
||||||
</sqlvars> |
|
||||||
|
|
||||||
|
|
||||||
<@rpta_column_layout_fuellen /> |
|
@ -1,42 +0,0 @@ |
|||||||
|
|
||||||
--obsolete jobs: |
|
||||||
|
|
||||||
delete from etl_step |
|
||||||
where tid in (select R.step_id |
|
||||||
from etl_step_relation R, etl_job J |
|
||||||
where R.job_id =J.tid |
|
||||||
and J.uniquename in ('sx_select_mask', |
|
||||||
'sx_insert_mask', |
|
||||||
'kern_konstanten_update', |
|
||||||
'sichten_unload', |
|
||||||
'sos_gewichtung_unload') |
|
||||||
and J.systeminfo_id=9); |
|
||||||
|
|
||||||
delete from etl_step_property |
|
||||||
where etl_step_id in (select R.step_id |
|
||||||
from etl_step_relation R, etl_job J |
|
||||||
where R.job_id =J.tid |
|
||||||
and J.uniquename in ('sx_select_mask', |
|
||||||
'sx_insert_mask', |
|
||||||
'kern_konstanten_update', |
|
||||||
'sichten_unload', |
|
||||||
'sos_gewichtung_unload') |
|
||||||
and J.systeminfo_id=9); |
|
||||||
|
|
||||||
delete from etl_step_relation |
|
||||||
where job_id in (select J.tid from etl_job J |
|
||||||
where J.uniquename in ('sx_select_mask', |
|
||||||
'sx_insert_mask', |
|
||||||
'kern_konstanten_update', |
|
||||||
'sichten_unload', |
|
||||||
'sos_gewichtung_unload') |
|
||||||
and J.systeminfo_id=9); |
|
||||||
|
|
||||||
delete from etl_job |
|
||||||
where uniquename in ('sx_select_mask', |
|
||||||
'sx_insert_mask', |
|
||||||
'kern_konstanten_update', |
|
||||||
'sichten_unload', |
|
||||||
'sos_gewichtung_unload') |
|
||||||
and systeminfo_id=9; |
|
||||||
|
|
@ -1,137 +0,0 @@ |
|||||||
package de.superx.elt; |
|
||||||
import static de.superx.servlet.SxSQL_Server.DEFAULT_MANDANTEN_ID; |
|
||||||
import java.io.File; |
|
||||||
import java.io.FileNotFoundException; |
|
||||||
import java.io.IOException; |
|
||||||
import java.sql.Connection; |
|
||||||
import java.sql.ResultSet; |
|
||||||
import java.sql.SQLException; |
|
||||||
import java.sql.Statement; |
|
||||||
import java.sql.DatabaseMetaData; |
|
||||||
import java.util.HashMap; |
|
||||||
import java.util.Hashtable; |
|
||||||
import java.util.Iterator; |
|
||||||
import java.util.Properties; |
|
||||||
import java.util.StringTokenizer; |
|
||||||
import java.util.logging.Level; |
|
||||||
import java.util.logging.Logger; |
|
||||||
|
|
||||||
import de.memtext.db.ConnectionCreator; |
|
||||||
import de.memtext.util.DateUtils; |
|
||||||
import de.memtext.util.GetOpts; |
|
||||||
import de.memtext.util.StringUtils; |
|
||||||
import de.superx.common.DBServletException; |
|
||||||
import de.superx.common.FieldContainer; |
|
||||||
import de.superx.common.Sichten; |
|
||||||
import de.superx.common.StandaloneSicht; |
|
||||||
import de.superx.common.SuperX_el; |
|
||||||
import de.superx.common.SxResultRow; |
|
||||||
import de.superx.common.SxResultSet; |
|
||||||
import de.superx.common.SxSqlHelper; |
|
||||||
import de.superx.common.SxUser; |
|
||||||
import de.superx.common.TableFieldExists; |
|
||||||
import de.superx.common.TemplateProcessor; |
|
||||||
import de.superx.servlet.SuperXManager; |
|
||||||
import de.superx.servlet.SxPools; |
|
||||||
import de.superx.servlet.SxSQL_Server; |
|
||||||
import de.superx.util.PropsReader; |
|
||||||
import de.superx.util.SqlStringUtils; |
|
||||||
|
|
||||||
public class EtlFmParser extends TemplateProcessor { |
|
||||||
private String dbprop, infile, outfile; |
|
||||||
private Properties props; |
|
||||||
|
|
||||||
private Statement stm; |
|
||||||
private String isSimpleParser; |
|
||||||
private static String sqlDialect; |
|
||||||
|
|
||||||
EtlFmParser(String mandantenID, Connection con) { |
|
||||||
super(mandantenID,con); |
|
||||||
|
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private void initConAndParser() throws IOException, SQLException, |
|
||||||
ClassNotFoundException { |
|
||||||
|
|
||||||
stm = con.createStatement(); |
|
||||||
if(SqlStringUtils.tableExists(con,"fm_templates",DEFAULT_MANDANTEN_ID)) |
|
||||||
{ |
|
||||||
setTemplates(readFromDb("select trim(both from id),content from fm_templates")); |
|
||||||
repositoryToMap(readFromDb(REPOSITORY_SELECT), repositoryMap); |
|
||||||
} |
|
||||||
if(SqlStringUtils.tableExists(con,"konstanten",DEFAULT_MANDANTEN_ID)) |
|
||||||
{ |
|
||||||
SxResultSet rs = readFromDb("select trim(both from beschreibung),apnr from konstanten"); |
|
||||||
for (Iterator it = rs.iterator(); it.hasNext();) { |
|
||||||
SxResultRow row = (SxResultRow) it.next(); |
|
||||||
String beschreibung = (String) row.get(0); |
|
||||||
|
|
||||||
repositoryMap.put("K_" + beschreibung.trim(), row.get(1)); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
protected SxResultSet readFromDb(String sql) throws SQLException { |
|
||||||
SuperX_el el = new SuperX_el(); |
|
||||||
|
|
||||||
SxSqlHelper sh=new SxSqlHelper(); |
|
||||||
sh.execute(sql, this.con, el); |
|
||||||
|
|
||||||
|
|
||||||
if (el.getError_String() != null |
|
||||||
&& !el.getError_String().trim().equals("")) |
|
||||||
throw new SQLException("\nProblem bei:" + "\n\n Meldung:" |
|
||||||
+ el.getError_String() + "\n sql:" + sql); |
|
||||||
|
|
||||||
return el.getResultSet(); |
|
||||||
|
|
||||||
|
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* |
|
||||||
* Einfacher Parser für Fremddatenbanken, nur sqlDialect wird übergeben wird |
|
||||||
* von DOSQL direkt aufgerufen |
|
||||||
*/ |
|
||||||
public String simpleParser( String input) |
|
||||||
throws FileNotFoundException, IOException, Exception { |
|
||||||
String output = ""; |
|
||||||
sqlDialect = "Postgres";// de.superx.util.SqlStringUtils.getSqlDialect(props .getProperty("driverName"));
|
|
||||||
initConAndParser(); |
|
||||||
HashMap map = new HashMap(); |
|
||||||
try { |
|
||||||
output = "--automatically created by SuperX/Freemarker for " |
|
||||||
+ sqlDialect |
|
||||||
+ " (" |
|
||||||
+ DateUtils.getTodayString() |
|
||||||
+ " " |
|
||||||
+ DateUtils.getNowString() |
|
||||||
+ ")\n" |
|
||||||
+ process("FM-Parsing ", input, map, |
|
||||||
sqlDialect); |
|
||||||
|
|
||||||
} catch (Exception e) { |
|
||||||
System.err.println("Fehler beim FM-Parsen "); |
|
||||||
e.printStackTrace(); |
|
||||||
System.exit(1); |
|
||||||
} |
|
||||||
return output; |
|
||||||
|
|
||||||
} |
|
||||||
|
|
||||||
} |
|
||||||
|
|
||||||
// Created on 08.12.2006 at 18:03:46
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,213 +0,0 @@ |
|||||||
/* |
|
||||||
* de.superx.etl - a package for controlling ETL routines |
|
||||||
* Copyright (C) 2021 Daniel Quathamer <danielq@memtext.de> |
|
||||||
* |
|
||||||
* This package is licensed under the CampusSource License; |
|
||||||
* http://www.campussource.de/org/license/
|
|
||||||
*/ |
|
||||||
package de.superx.sxrest; |
|
||||||
import javax.ws.rs.Consumes; |
|
||||||
import javax.ws.rs.DELETE; |
|
||||||
import javax.ws.rs.FormParam; |
|
||||||
import javax.ws.rs.GET; |
|
||||||
import javax.ws.rs.HEAD; |
|
||||||
import javax.ws.rs.POST; |
|
||||||
import javax.ws.rs.PUT; |
|
||||||
import javax.ws.rs.Path; |
|
||||||
import javax.ws.rs.PathParam; |
|
||||||
import javax.ws.rs.core.Response; |
|
||||||
import javax.xml.parsers.ParserConfigurationException; |
|
||||||
import javax.xml.xpath.XPath; |
|
||||||
import javax.xml.xpath.XPathConstants; |
|
||||||
import javax.xml.xpath.XPathExpressionException; |
|
||||||
import javax.xml.xpath.XPathFactory; |
|
||||||
|
|
||||||
|
|
||||||
import org.w3c.dom.Document; |
|
||||||
import org.w3c.dom.Node; |
|
||||||
import org.w3c.dom.NodeList; |
|
||||||
import org.xml.sax.SAXException; |
|
||||||
|
|
||||||
import javax.ws.rs.Produces; |
|
||||||
import javax.ws.rs.QueryParam; |
|
||||||
import javax.ws.rs.core.Context; |
|
||||||
import javax.ws.rs.core.MediaType; |
|
||||||
import javax.ws.rs.core.Request; |
|
||||||
import de.memtext.util.DateUtils; |
|
||||||
import de.superx.common.SxUser; |
|
||||||
import de.superx.elt.EtlActionJob; |
|
||||||
import de.superx.elt.EtlUtils; |
|
||||||
import de.superx.servlet.SuperXManager; |
|
||||||
|
|
||||||
import java.io.BufferedWriter; |
|
||||||
import java.io.File; |
|
||||||
import java.io.FileWriter; |
|
||||||
import java.io.IOException; |
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest; |
|
||||||
|
|
||||||
|
|
||||||
@Path("/jobetlxml/get/{jobUniquename}/{jobParamName}") |
|
||||||
|
|
||||||
|
|
||||||
public class JobEtlXml { |
|
||||||
@Context |
|
||||||
Request request; |
|
||||||
|
|
||||||
|
|
||||||
@GET |
|
||||||
@Path("/view/{param}") |
|
||||||
@Produces(MediaType.APPLICATION_XML) |
|
||||||
|
|
||||||
public Document printXml(@PathParam("jobUniquename") String jobUniquename, |
|
||||||
@PathParam("jobParamName") String jobParamName, |
|
||||||
@PathParam("param") String param, |
|
||||||
@Context HttpServletRequest request) { |
|
||||||
String returntext=""; |
|
||||||
returntext = getJobEtlXml(jobUniquename,jobParamName, param, request); |
|
||||||
|
|
||||||
return de.memtext.util.XMLUtils.buildDocumentFromString(returntext, false); |
|
||||||
} |
|
||||||
private String getJobEtlXml(String jobUniquename, |
|
||||||
String jobParamName, |
|
||||||
String param, |
|
||||||
HttpServletRequest request) { |
|
||||||
String returntext; |
|
||||||
SxUser user = (SxUser) request.getSession().getAttribute("user"); |
|
||||||
//TODO: valide Einträge prüfen:
|
|
||||||
//ebenso param
|
|
||||||
System.out.println("JOB"+jobUniquename + " mit param "+jobParamName); |
|
||||||
String mandantenid= (String) request.getSession().getAttribute("MandantenID"); |
|
||||||
if(mandantenid==null || mandantenid.equals("")) |
|
||||||
mandantenid="default"; |
|
||||||
|
|
||||||
if (user == null || !user.isAdmin()) { |
|
||||||
returntext="Fehlende Rechte"; |
|
||||||
} |
|
||||||
else |
|
||||||
{ |
|
||||||
|
|
||||||
int returnCode=0; |
|
||||||
EtlActionJob myJob=new EtlActionJob(jobUniquename); //TODO:Mandantid
|
|
||||||
try { |
|
||||||
myJob.initJob(jobUniquename,jobParamName+"="+param); |
|
||||||
} catch (Exception e) { |
|
||||||
// TODO Auto-generated catch block
|
|
||||||
|
|
||||||
returntext=e.toString(); |
|
||||||
returntext+=myJob.getLogoutput(); |
|
||||||
|
|
||||||
} |
|
||||||
System.out.println("Job "+ jobUniquename+" initialized"); |
|
||||||
try { |
|
||||||
returnCode= myJob.execute(""); |
|
||||||
returntext=myJob.getSw().toString(); |
|
||||||
|
|
||||||
} catch (Exception e) { |
|
||||||
// TODO Auto-generated catch block
|
|
||||||
returntext=e.toString(); |
|
||||||
returntext+=myJob.getLogoutput(); |
|
||||||
} |
|
||||||
} |
|
||||||
return returntext; |
|
||||||
} |
|
||||||
@GET |
|
||||||
@Path("/download/{param}") |
|
||||||
@Produces(MediaType.APPLICATION_XML) |
|
||||||
public String createDownloadXml( |
|
||||||
@PathParam("jobUniquename") String jobUniquename, |
|
||||||
@PathParam("jobParamName") String jobParamName, |
|
||||||
@PathParam("param") String param, |
|
||||||
@Context HttpServletRequest request) { |
|
||||||
String returntext=""; |
|
||||||
returntext = getJobEtlXml(jobUniquename,jobParamName,param, request); |
|
||||||
return returntext; |
|
||||||
//return de.memtext.util.XMLUtils.buildDocumentFromString(returntext, false);
|
|
||||||
} |
|
||||||
/* Aktuell noch nicht genutzt: */ |
|
||||||
@GET |
|
||||||
@Path("/saveget/{params}") |
|
||||||
@Produces(MediaType.TEXT_PLAIN) |
|
||||||
|
|
||||||
|
|
||||||
public String saveGetXml(@QueryParam("param") String tid, |
|
||||||
@QueryParam("Inhalt") String src, |
|
||||||
@Context HttpServletRequest request) { |
|
||||||
String returntext=""; |
|
||||||
SxUser user = (SxUser) request.getSession().getAttribute("user"); |
|
||||||
String mandantenid= (String) request.getSession().getAttribute("MandantenID"); |
|
||||||
if(mandantenid==null || mandantenid.equals("")) |
|
||||||
mandantenid="default"; |
|
||||||
|
|
||||||
if (user == null || !user.isAdmin()) { |
|
||||||
returntext="Fehlende Rechte"; |
|
||||||
} |
|
||||||
else |
|
||||||
{ |
|
||||||
returntext="tid="+tid+"-src="+src; |
|
||||||
} |
|
||||||
|
|
||||||
return returntext; |
|
||||||
} |
|
||||||
/* Aktuell noch nicht genutzt: */ |
|
||||||
@POST |
|
||||||
@Path("/save") |
|
||||||
@Consumes("application/x-www-form-urlencoded") |
|
||||||
//@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
|
|
||||||
@Produces(MediaType.TEXT_PLAIN) |
|
||||||
|
|
||||||
public String saveXml(@FormParam("tid") String tid, |
|
||||||
@FormParam("Inhalt") String src, |
|
||||||
@Context HttpServletRequest request) { |
|
||||||
String returntext=""; |
|
||||||
String jobuniquename="sx_select_mask"; |
|
||||||
int returnCode=0; |
|
||||||
tid="16000"; |
|
||||||
SxUser user = (SxUser) request.getSession().getAttribute("user"); |
|
||||||
String mandantenid= (String) request.getSession().getAttribute("MandantenID"); |
|
||||||
String searchString="/etlAction[@name=\""+jobuniquename+"\"]/unload[@name=\"unload_maskeninfo\"]/rs/row/fld[@name=\"tid\"]"; |
|
||||||
if(mandantenid==null || mandantenid.equals("")) |
|
||||||
mandantenid="default"; |
|
||||||
|
|
||||||
if (user == null || !user.isAdmin()) { |
|
||||||
returntext="Fehlende Rechte"; |
|
||||||
|
|
||||||
} |
|
||||||
else |
|
||||||
{ |
|
||||||
try { |
|
||||||
if(de.superx.elt.EtlUtils.isNodeValueInXml(src,searchString,tid,jobuniquename)) |
|
||||||
{ |
|
||||||
String job="sx_insert_mask"; |
|
||||||
returntext="TID="+tid; |
|
||||||
String params="TID="+tid; |
|
||||||
File temp; |
|
||||||
temp = File.createTempFile("myTempFile", ".xml"); |
|
||||||
|
|
||||||
BufferedWriter bw = new BufferedWriter(new FileWriter(temp)); |
|
||||||
bw.write(src); |
|
||||||
|
|
||||||
bw.close(); |
|
||||||
params+=EtlUtils.NEWLINE+"PATH_TO_INPUTFILE="+temp.getAbsolutePath(); |
|
||||||
params+=EtlUtils.NEWLINE+"FORMAT=XML"; |
|
||||||
EtlActionJob myJob=new EtlActionJob(job); //TODO:Mandantid
|
|
||||||
myJob.initJob(job,params); |
|
||||||
returnCode= myJob.execute(""); |
|
||||||
returntext=myJob.getSw().toString(); |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} |
|
||||||
else |
|
||||||
returntext="Übergebene TID "+tid+" entspricht nicht der XML-Datei "; |
|
||||||
} catch (Exception e) { |
|
||||||
returntext=e.toString(); |
|
||||||
e.printStackTrace(); |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
} |
|
||||||
return returntext; |
|
||||||
} |
|
||||||
|
|
||||||
} |
|
Binary file not shown.
@ -1,259 +0,0 @@ |
|||||||
<%@ taglib uri="/WEB-INF/dbforms.tld" prefix="db" %> |
|
||||||
<%@page pageEncoding="utf-8" contentType="text/html; charset=UTF-8" %> |
|
||||||
<html xmlns:jsp="http://www.java.com/jsp" xmlns:db="http://www.wap-force.com/dbforms"><!--Automatically generated by module_scripts_create.x (SuperX)--> |
|
||||||
<head xmlns:sx="http://memtext.de"> |
|
||||||
<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
|
||||||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"> |
|
||||||
<meta content="0" http-equiv="expires"> |
|
||||||
<LINK href="/superx/style/superx.css" type="text/css" REL="stylesheet"> |
|
||||||
<LINK href="/superx/xml/superxml_html.css" type="text/css" REL="stylesheet"> |
|
||||||
<LINK href="/superx/xml/maske_html.css" type="text/css" REL="stylesheet"> |
|
||||||
<LINK href="/superx/style/dbforms_40.css" type="text/css" REL="stylesheet"> |
|
||||||
<title>Maske Laderoutinen verwalten</title> |
|
||||||
<script type="text/javascript"> |
|
||||||
var djConfig = {isDebug: false }; |
|
||||||
//djConfig.debugAtAllCosts = true; |
|
||||||
</script><script src="/superx/xml/js/dojo/dojo.js" type="text/javascript"> </script><script type="text/javascript"> |
|
||||||
dojo.require("dojo.widget.Dialog"); |
|
||||||
dojo.require("dojo.widget.Button"); |
|
||||||
dojo.require("dojo.widget.Tooltip"); |
|
||||||
dojo.require("dojo.string.common"); |
|
||||||
|
|
||||||
dojo.hostenv.writeIncludes(); |
|
||||||
</script><script src="/superx/xml/js/memtext/dbforms.js" type="text/javascript"> </script> |
|
||||||
<db:base/> |
|
||||||
</head> |
|
||||||
<script language="javascript" |
|
||||||
src=<%= "\"" +request.getContextPath() + "/dbformslib/jscal/calendar.js\""%>> |
|
||||||
</script> |
|
||||||
<body class="clsPageBody"><%@ page import ="java.util.Hashtable" %> |
|
||||||
<% |
|
||||||
//HttpSession session=request.getSession(true); |
|
||||||
if (request.getCharacterEncoding() == null) |
|
||||||
request.setCharacterEncoding("UTF-8"); |
|
||||||
Object userobject=request.getSession().getAttribute("UserID"); |
|
||||||
String userid; |
|
||||||
String filter=""; |
|
||||||
String sql=""; |
|
||||||
if(userobject == null) |
|
||||||
{ |
|
||||||
%> |
|
||||||
|
|
||||||
<jsp:forward page="/edit/not_authenticated.htm"/> |
|
||||||
<% |
|
||||||
} |
|
||||||
else |
|
||||||
userid=userobject.toString(); |
|
||||||
Object mandantobject=request.getSession().getAttribute("MandantenID"); |
|
||||||
String mandantenid=""; |
|
||||||
if(mandantobject != null) |
|
||||||
mandantenid=mandantobject.toString(); |
|
||||||
//der superx-Default-Mandant ist bei dbforms ein Leerstring |
|
||||||
if(mandantenid.equals("default")) |
|
||||||
mandantenid=""; |
|
||||||
String db_form_name="etl_job"; |
|
||||||
String erlaubt="0"; |
|
||||||
%> |
|
||||||
<%@ include file="/edit/check_authentication.inc" %> |
|
||||||
<% |
|
||||||
if(erlaubt.equals("0")) |
|
||||||
{ |
|
||||||
%> |
|
||||||
|
|
||||||
<jsp:forward page="/edit/not_authorized.htm"/> |
|
||||||
<% |
|
||||||
} |
|
||||||
|
|
||||||
String keyfieldsused="false"; |
|
||||||
Object kf=request.getParameter("keyfieldsused"); |
|
||||||
if(kf != null) |
|
||||||
keyfieldsused=kf.toString(); |
|
||||||
|
|
||||||
%> |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div style="margin: 0px; padding: 0px; overflow: hidden; width: 100%;" id="menuCaption"> |
|
||||||
<span class="menuCaptionTitle" id="menuCaptionTitle">Laderoutinen verwalten. </span><img border="0" height="18px" alt="Erläuterung" src="/superx/images/information.svg"><span style="display:none" connectId="menuCaption" dojoType="tooltip">In diesem Formular können Sie Laderoutinen verwalten.</span> |
|
||||||
</div> |
|
||||||
<% |
|
||||||
String tid = request.getParameter("tid"); |
|
||||||
if(tid != null && !tid.equals("null")){ |
|
||||||
filter +="tid="+tid; |
|
||||||
} |
|
||||||
%> |
|
||||||
<db:dbform tableName="etl_job" maxRows="1" autoUpdate="false" captionResource="true" multipart="false" followUp="/edit/etl/etl_job_bearbeiten.jsp" filter="<%= filter %>" orderBy="caption" |
|
||||||
dbConnectionName="<%= mandantenid %>" ><input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/><db:header/> |
|
||||||
<db:errors/> |
|
||||||
<db:body allowNew="true"> |
|
||||||
<table border="0" align="right" cellpadding="0" cellspacing="0"> |
|
||||||
<tr> |
|
||||||
<td class="naviBtn"> |
|
||||||
<db:updateButton styleClass="clsButtonStyle" style="height:18px" alt="button.update" src="../../images/save.svg" flavor="image" id="db_updateButton"/></td><td class="naviBtn"> |
|
||||||
<db:deleteButton confirmMessage="button.delete.confirm" styleClass="clsButtonStyle" style="height:18px" alt="button.delete" src="../../images/delete.svg" id="db_deleteButton" flavor="image"/></td><td class="naviBtn"><span connectId="copy1" dojoType="tooltip">Datensatz kopieren. Mit Mausklick auf diesen Button kopieren Sie den aktuellen Datensatz. Zum Einfügen des neuen Datensatzes klicken Sie dann auf das Häkchen-Symbol rechts neben bzw. unter mir.</span> |
|
||||||
<db:navCopyButton styleClass="clsButtonStyle" style="height:18px" showAlwaysInFooter="false" alt="button.nav.copy" src="../../images/copy.svg" id="copy1" flavor="image"/></td><td class="naviBtn"><span connectId="new1" dojoType="tooltip">Neuen Datensatz erzeugen. Mit Mausklick auf diesen Button geht das Formular bzw. Unterformular in den Einfügemodus, alle vorhandenen Datensätze werden ausgeblendet. Zum Einfügen des neuen Datensatzes klicken Sie dann auf das Häkchen-Symbol rechts neben bzw. unter mir.</span> |
|
||||||
<db:navNewButton styleClass="clsButtonStyle" style="height:18px" showAlwaysInFooter="false" alt="button.nav.new" src="../../images/context_add.svg" id="new1" flavor="image"/></td><td class="naviBtn"><span connectId="ins1" dojoType="tooltip">Datensatz einfügen. Wenn Sie einen neuen Datensatz erzeugt haben, können Sie diesen mit diesem Button speichern.</span> |
|
||||||
<db:insertButton showAlways="false" style="height:18px" styleClass="clsButtonStyle" alt="Datensatz einfügen" src="../../images/circle_tick.svg" id="ins1" flavor="image"/></td> |
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
<p> </p> |
|
||||||
<hr> |
|
||||||
<p> |
|
||||||
<input type="hidden" name="tid" value="<%= tid %>" /> |
|
||||||
</p> |
|
||||||
<table class="db_form_table" cellspacing="0" cellpadding="0" width="100%" border="0"> |
|
||||||
<td> |
|
||||||
<table cellspacing="0" cellpadding="0" width="100%" border="0"> |
|
||||||
<tr> |
|
||||||
<td class="db_label">tid</td><td> |
|
||||||
<db:label nullFieldValue="" fieldName="tid"/></td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="db_label"> |
|
||||||
<db:message key="Bezeichnung"/></td><td align="left"> |
|
||||||
<div id="fld_caption"> |
|
||||||
<db:textField nullFieldValue="" styleClass="clsInputStyle" onBlur="" maxlength="255" size="50" id="inp_etl_jobcaption" fieldName="caption"/> |
|
||||||
</div> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="db_label"> |
|
||||||
<db:message key="Schlüssel"/></td><td align="left"> |
|
||||||
<div id="fld_uniquename"> |
|
||||||
<db:textField nullFieldValue="" styleClass="clsInputStyle" onBlur="" maxlength="255" size="50" id="inp_etl_jobuniquename" fieldName="uniquename"/> |
|
||||||
</div> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="db_label"> |
|
||||||
<db:message key="Job custom"/></td><td align="left"> |
|
||||||
<div id="fld_custom_job"> |
|
||||||
<db:textField nullFieldValue="" onBlur="" styleClass="clsInputStyle" id="inp_etl_jobcustom_job" size="6" fieldName="custom_job"/> |
|
||||||
</div> |
|
||||||
<span style="display:none" connectId="fld_custom_job" dojoType="tooltip">1=ja, d.h. von der Hochschule angepaßt, 0=nein, d.h. |
|
||||||
Auslieferung der Software von HIS, 2=Auslieferung durch SuperX</span></td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="db_label"> |
|
||||||
<db:message key="Komponente"/></td><td align="left"> |
|
||||||
<div id="fld_systeminfo_id"> |
|
||||||
<input onblur="updateSelect(this)" style="display:none" size="10" name="key_etl_jobsysteminfo_id" class="schluesselfeld" type="text"> |
|
||||||
<db:select id="inp_etl_jobsysteminfo_id" styleClass="clsInputStyle" readOnly="false" onChange="updateKeyfield(this)" fieldName="systeminfo_id" customEntry=",,true"><% sql = "select tid, name from systeminfo order by name;"; %><db:queryData name="etl_job_systeminfo1" query="<%= sql %>" dbConnectionName="<%= mandantenid %>" /> </db:select> |
|
||||||
</div> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="db_label">Parameter</td><td> |
|
||||||
<table class="subform"> |
|
||||||
<db:dbform orderBy="sortnr" childField="etl_job_id" parentField="tid" tableName="etl_job_param" maxRows="*" captionResource="true" followUp="/edit/etl/etl_job_bearbeiten.jsp" autoUpdate="false" multipart="false" dbConnectionName="<%= mandantenid %>"> |
|
||||||
<db:header> |
|
||||||
<tr class="subform_tr"> |
|
||||||
<th class="subform_th">tid</th><th class="subform_th">Bezeichnung</th><th class="subform_th">Schlüssel</th> |
|
||||||
</tr> |
|
||||||
</db:header> |
|
||||||
<db:body allowNew="true"> |
|
||||||
<tr class="subform_tr"> |
|
||||||
<td> |
|
||||||
<db:label nullFieldValue="" fieldName="tid"/></td><db:textField hidden="true" fieldName="job_id" overrideValue="<%= tid%>"/> |
|
||||||
<td align="left"> |
|
||||||
<div id="fld_name"> |
|
||||||
<db:textField nullFieldValue="" styleClass="clsInputStyle" onBlur="" maxlength="255" size="30" fieldName="name"/> |
|
||||||
</div> |
|
||||||
</td><td align="left"> |
|
||||||
<div id="fld_uniquename"> |
|
||||||
<db:textField nullFieldValue="" styleClass="clsInputStyle" onBlur="" maxlength="255" size="50" fieldName="uniquename"/> |
|
||||||
</div> |
|
||||||
</td><td><% |
|
||||||
if(currentRow_etl_job_param != null) |
|
||||||
{ |
|
||||||
%><a target="details" title="Details" href="<%= response.encodeURL("/superx/edit/etl/etl_job_param_bearbeiten.jsp") %>?tid=<db:label nullFieldValue="" pattern="######" fieldName="tid"/>" onClick="javascript:neu=window.open('<%= response.encodeURL("/superx/edit/etl/etl_job_param_bearbeiten.jsp") %>?tid=<db:label nullFieldValue="" pattern="######" fieldName="tid"/>','_blank','directories=no,location=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=800,height=600'); return false;"><img border="0" alt="Details" src="../../images/pencil.svg"></a><% |
|
||||||
} |
|
||||||
%></td><td class="naviBtn"> |
|
||||||
<db:updateButton styleClass="clsButtonStyle" style="height:18px" alt="button.update" src="../../images/save.svg" flavor="image" id="db_updateButton"/></td><td class="naviBtn"> |
|
||||||
<db:deleteButton confirmMessage="button.delete.confirm" styleClass="clsButtonStyle" style="height:18px" alt="button.delete" src="../../images/delete.svg" id="db_deleteButton" flavor="image"/></td><td class="naviBtn"><span connectId="copy6" dojoType="tooltip">Datensatz kopieren. Mit Mausklick auf diesen Button kopieren Sie den aktuellen Datensatz. Zum Einfügen des neuen Datensatzes klicken Sie dann auf das Häkchen-Symbol rechts neben bzw. unter mir.</span> |
|
||||||
<db:navCopyButton styleClass="clsButtonStyle" style="height:18px" showAlwaysInFooter="false" alt="button.nav.copy" src="../../images/copy.svg" id="copy6" flavor="image"/></td> |
|
||||||
</tr> |
|
||||||
</db:body> |
|
||||||
<db:footer> |
|
||||||
<tr class="subform_tr"> |
|
||||||
<td><td class="naviBtn"><span connectId="new6" dojoType="tooltip">Neuen Datensatz erzeugen. Mit Mausklick auf diesen Button geht das Formular bzw. Unterformular in den Einfügemodus, alle vorhandenen Datensätze werden ausgeblendet. Zum Einfügen des neuen Datensatzes klicken Sie dann auf das Häkchen-Symbol rechts neben bzw. unter mir.</span> |
|
||||||
<db:navNewButton styleClass="clsButtonStyle" style="height:18px" showAlwaysInFooter="false" alt="button.nav.new" src="../../images/context_add.svg" id="new6" flavor="image"/></td><td class="naviBtn"><span connectId="ins6" dojoType="tooltip">Datensatz einfügen. Wenn Sie einen neuen Datensatz erzeugt haben, können Sie diesen mit diesem Button speichern.</span> |
|
||||||
<db:insertButton showAlways="false" style="height:18px" styleClass="clsButtonStyle" alt="Datensatz einfügen" src="../../images/circle_tick.svg" id="ins6" flavor="image"/></td></td> |
|
||||||
</tr> |
|
||||||
</db:footer> |
|
||||||
</db:dbform> |
|
||||||
</table> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="db_label">Ladeschritte</td><td> |
|
||||||
<table class="subform"> |
|
||||||
<db:dbform orderBy="sortnr" childField="job_id" parentField="tid" tableName="etl_step_relation" maxRows="*" captionResource="true" followUp="/edit/etl/etl_job_bearbeiten.jsp" autoUpdate="false" multipart="false" dbConnectionName="<%= mandantenid %>"> |
|
||||||
<db:header> |
|
||||||
<tr class="subform_tr"> |
|
||||||
<th class="subform_th">tid</th><th class="subform_th">Ladeschritt</th><th class="subform_th">Übergeordneter Ladeschritt</th><th class="subform_th">Ladejob bei Fehler weiterführen</th><th class="subform_th">Ladeschritt aktiv</th><th class="subform_th">Ladeschritt Sortiernr.</th><th class="subform_th">Ladeschritt custom</th> |
|
||||||
</tr> |
|
||||||
</db:header> |
|
||||||
<db:body allowNew="true"> |
|
||||||
<tr class="subform_tr"> |
|
||||||
<td> |
|
||||||
<db:label nullFieldValue="" fieldName="tid"/></td><db:textField hidden="true" fieldName="job_id" overrideValue="<%= tid%>"/> |
|
||||||
<td align="left"> |
|
||||||
<div id="fld_step_id"> |
|
||||||
<input onblur="updateSelect(this)" style="display:none" size="10" name="key_etl_step_relationstep_id" class="schluesselfeld" type="text"> |
|
||||||
<db:select id="inp_etl_step_relationstep_id" styleClass="clsInputStyle" readOnly="false" onChange="updateKeyfield(this)" fieldName="step_id" customEntry=",,true"><% sql = "select tid, caption from etl_step order by caption;"; %><db:queryData name="etl_step_relation_etl_step6" query="<%= sql %>" dbConnectionName="<%= mandantenid %>" /> </db:select> |
|
||||||
</div> |
|
||||||
</td><td align="left"> |
|
||||||
<div id="fld_parent_step_id"> |
|
||||||
<input onblur="updateSelect(this)" style="display:none" size="10" name="key_etl_step_relationparent_step_id" class="schluesselfeld" type="text"> |
|
||||||
<db:select id="inp_etl_step_relationparent_step_id" styleClass="clsInputStyle" readOnly="false" onChange="updateKeyfield(this)" fieldName="parent_step_id" customEntry=",,true"><% sql = "select tid, caption from etl_step order by caption;"; %><db:queryData name="etl_step_relation_etl_step7" query="<%= sql %>" dbConnectionName="<%= mandantenid %>" /> </db:select> |
|
||||||
</div> |
|
||||||
</td><td align="left"> |
|
||||||
<div id="fld_force_continue"> |
|
||||||
<db:textField styleClass="clsInputStyle" onBlur="" size="6" fieldName="force_continue"/> |
|
||||||
</div> |
|
||||||
</td><td align="left"> |
|
||||||
<div id="fld_step_active"> |
|
||||||
<db:textField styleClass="clsInputStyle" onBlur="" size="6" fieldName="step_active"/> |
|
||||||
</div> |
|
||||||
</td><td align="left"> |
|
||||||
<div id="fld_sortnr"> |
|
||||||
<db:textField styleClass="clsInputStyle" onBlur="" size="6" fieldName="sortnr"/> |
|
||||||
</div> |
|
||||||
</td><td align="left"> |
|
||||||
<div id="fld_custom_step"> |
|
||||||
<db:textField styleClass="clsInputStyle" onBlur="" size="6" fieldName="custom_step"/> |
|
||||||
</div> |
|
||||||
<span style="display:none" connectId="fld_custom_step" dojoType="tooltip">1=ja, d.h. von der Hochschule angepaßt, 0=nein, d.h. |
|
||||||
Auslieferung der Software</span></td><td><% |
|
||||||
if(currentRow_etl_step_relation != null) |
|
||||||
{ |
|
||||||
%><a target="details" title="Details" href="<%= response.encodeURL("/superx/edit/etl/etl_step_bearbeiten.jsp") %>?tid=<db:label nullFieldValue="" pattern="######" fieldName="step_id"/>" onClick="javascript:neu=window.open('<%= response.encodeURL("/superx/edit/etl/etl_step_bearbeiten.jsp") %>?tid=<db:label nullFieldValue="" pattern="######" fieldName="step_id"/>','_blank','directories=no,location=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=800,height=600'); return false;"><img border="0" alt="Details" src="../../images/pencil.svg"></a><% |
|
||||||
} |
|
||||||
%></td><td class="naviBtn"> |
|
||||||
<db:updateButton styleClass="clsButtonStyle" style="height:18px" alt="button.update" src="../../images/save.svg" flavor="image" id="db_updateButton"/></td><td class="naviBtn"> |
|
||||||
<db:deleteButton confirmMessage="button.delete.confirm" styleClass="clsButtonStyle" style="height:18px" alt="button.delete" src="../../images/delete.svg" id="db_deleteButton" flavor="image"/></td><td class="naviBtn"><span connectId="copy7" dojoType="tooltip">Datensatz kopieren. Mit Mausklick auf diesen Button kopieren Sie den aktuellen Datensatz. Zum Einfügen des neuen Datensatzes klicken Sie dann auf das Häkchen-Symbol rechts neben bzw. unter mir.</span> |
|
||||||
<db:navCopyButton styleClass="clsButtonStyle" style="height:18px" showAlwaysInFooter="false" alt="button.nav.copy" src="../../images/copy.svg" id="copy7" flavor="image"/></td> |
|
||||||
</tr> |
|
||||||
</db:body> |
|
||||||
<db:footer> |
|
||||||
<tr class="subform_tr"> |
|
||||||
<td><td class="naviBtn"><span connectId="new7" dojoType="tooltip">Neuen Datensatz erzeugen. Mit Mausklick auf diesen Button geht das Formular bzw. Unterformular in den Einfügemodus, alle vorhandenen Datensätze werden ausgeblendet. Zum Einfügen des neuen Datensatzes klicken Sie dann auf das Häkchen-Symbol rechts neben bzw. unter mir.</span> |
|
||||||
<db:navNewButton styleClass="clsButtonStyle" style="height:18px" showAlwaysInFooter="false" alt="button.nav.new" src="../../images/context_add.svg" id="new7" flavor="image"/></td><td class="naviBtn"><span connectId="ins7" dojoType="tooltip">Datensatz einfügen. Wenn Sie einen neuen Datensatz erzeugt haben, können Sie diesen mit diesem Button speichern.</span> |
|
||||||
<db:insertButton showAlways="false" style="height:18px" styleClass="clsButtonStyle" alt="Datensatz einfügen" src="../../images/circle_tick.svg" id="ins7" flavor="image"/></td></td> |
|
||||||
</tr> |
|
||||||
</db:footer> |
|
||||||
</db:dbform> |
|
||||||
</table> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
</td><td align="center" style="padding-left:10px"></td> |
|
||||||
</table> |
|
||||||
</db:body> |
|
||||||
<db:footer/></db:dbform></body> |
|
||||||
</html> |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,158 +0,0 @@ |
|||||||
<%@ taglib uri="/WEB-INF/dbforms.tld" prefix="db" %> |
|
||||||
<%@page pageEncoding="utf-8" contentType="text/html; charset=UTF-8" %> |
|
||||||
<html> |
|
||||||
<!--Automatically generated by module_scripts_create.x (SuperX)--> |
|
||||||
<head> |
|
||||||
<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
|
||||||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"> |
|
||||||
<meta content="0" http-equiv="expires"> |
|
||||||
<LINK href="/superx/style/superx.css" type="text/css" REL="stylesheet"> |
|
||||||
<LINK href="/superx/xml/superxml_html.css" type="text/css" REL="stylesheet"> |
|
||||||
<LINK href="/superx/xml/maske_html.css" type="text/css" REL="stylesheet"> |
|
||||||
<LINK href="/superx/style/dbforms_40.css" type="text/css" REL="stylesheet"> |
|
||||||
<title>Maske Parameter für Ladejobs verwalten</title> |
|
||||||
<script type="text/javascript"> |
|
||||||
var djConfig = {isDebug: false }; |
|
||||||
//djConfig.debugAtAllCosts = true; |
|
||||||
</script><script src="/superx/xml/js/dojo/dojo.js" type="text/javascript"> </script><script type="text/javascript"> |
|
||||||
dojo.require("dojo.widget.Dialog"); |
|
||||||
dojo.require("dojo.widget.Button"); |
|
||||||
dojo.require("dojo.widget.Tooltip"); |
|
||||||
dojo.require("dojo.string.common"); |
|
||||||
|
|
||||||
dojo.hostenv.writeIncludes(); |
|
||||||
</script><script src="/superx/xml/js/memtext/dbforms.js" type="text/javascript"> </script> |
|
||||||
<db:base/> |
|
||||||
</head> |
|
||||||
<script language="javascript" |
|
||||||
src=<%= "\"" +request.getContextPath() + "/dbformslib/jscal/calendar.js\""%>> |
|
||||||
</script> |
|
||||||
<body class="clsPageBody"><%@ page import ="java.util.Hashtable" %> |
|
||||||
<% |
|
||||||
//HttpSession session=request.getSession(true); |
|
||||||
if (request.getCharacterEncoding() == null) |
|
||||||
request.setCharacterEncoding("UTF-8"); |
|
||||||
Object userobject=request.getSession().getAttribute("UserID"); |
|
||||||
String userid; |
|
||||||
String filter=""; |
|
||||||
String sql=""; |
|
||||||
if(userobject == null) |
|
||||||
{ |
|
||||||
%> |
|
||||||
|
|
||||||
<jsp:forward page="/edit/not_authenticated.htm"/> |
|
||||||
<% |
|
||||||
} |
|
||||||
else |
|
||||||
userid=userobject.toString(); |
|
||||||
Object mandantobject=request.getSession().getAttribute("MandantenID"); |
|
||||||
String mandantenid=""; |
|
||||||
if(mandantobject != null) |
|
||||||
mandantenid=mandantobject.toString(); |
|
||||||
//der superx-Default-Mandant ist bei dbforms ein Leerstring |
|
||||||
if(mandantenid.equals("default")) |
|
||||||
mandantenid=""; |
|
||||||
String db_form_name="etl_job_param"; |
|
||||||
String erlaubt="0"; |
|
||||||
%> |
|
||||||
<%@ include file="/edit/check_authentication.inc" %> |
|
||||||
<% |
|
||||||
if(erlaubt.equals("0")) |
|
||||||
{ |
|
||||||
%> |
|
||||||
|
|
||||||
<jsp:forward page="/edit/not_authorized.htm"/> |
|
||||||
<% |
|
||||||
} |
|
||||||
|
|
||||||
String keyfieldsused="false"; |
|
||||||
Object kf=request.getParameter("keyfieldsused"); |
|
||||||
if(kf != null) |
|
||||||
keyfieldsused=kf.toString(); |
|
||||||
|
|
||||||
%> |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div style="margin: 0px; padding: 0px; overflow: hidden; width: 100%;" id="menuCaption"> |
|
||||||
<span class="menuCaptionTitle" id="menuCaptionTitle">Parameter für Ladejobs verwalten. </span><img border="0" height="18px" alt="Erläuterung" src="/superx/images/information.svg"><span style="display:none" connectId="menuCaption" dojoType="tooltip">In diesem Formular können Sie Parameter für Ladejobs verwalten.</span> |
|
||||||
</div> |
|
||||||
<% |
|
||||||
String tid = request.getParameter("tid"); |
|
||||||
if(tid != null && !tid.equals("null")){ |
|
||||||
filter +="tid="+tid; |
|
||||||
} |
|
||||||
%> |
|
||||||
<db:dbform tableName="etl_job_param" maxRows="1" autoUpdate="false" captionResource="true" multipart="false" followUp="/edit/etl/etl_job_param_bearbeiten.jsp" filter="<%= filter %>" orderBy="" |
|
||||||
dbConnectionName="<%= mandantenid %>" ><input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/><db:header/> |
|
||||||
<db:errors/> |
|
||||||
<db:body allowNew="true"> |
|
||||||
<table border="0" align="right" cellpadding="0" cellspacing="0"> |
|
||||||
<tr> |
|
||||||
<td class="naviBtn"> |
|
||||||
<db:updateButton styleClass="clsButtonStyle" style="height:18px" alt="button.update" src="../../images/save.svg" flavor="image" id="db_updateButton"/></td><td class="naviBtn"> |
|
||||||
<db:navFirstButton styleClass="clsButtonStyle" style="height:18px" caption="button.nav.first" alt="button.nav.first" src="../../images/resultset_first.svg" flavor="image" id="db_navFirstButton"/></td><td class="naviBtn"> |
|
||||||
<db:navPrevButton styleClass="clsButtonStyle" style="height:18px" alt="button.nav.previous" src="../../images/resultset_previous.svg" flavor="image" id="db_navPrevButton"/></td><td class="naviBtn"> |
|
||||||
<db:navNextButton styleClass="clsButtonStyle" style="height:18px" alt="button.nav.next" src="../../images/resultset_next.svg" flavor="image" id="db_navNextButton"/></td><td class="naviBtn"> |
|
||||||
<db:navLastButton styleClass="clsButtonStyle" style="height:18px" alt="button.nav.last" src="../../images/resultset_last.svg" flavor="image" id="db_navLastButton"/></td><td class="naviBtn"> |
|
||||||
<db:deleteButton confirmMessage="button.delete.confirm" styleClass="clsButtonStyle" style="height:18px" alt="button.delete" src="../../images/delete.svg" id="db_deleteButton" flavor="image"/></td><td class="naviBtn"><span connectId="copy2" dojoType="tooltip">Datensatz kopieren. Mit Mausklick auf diesen Button kopieren Sie den aktuellen Datensatz. Zum Einfügen des neuen Datensatzes klicken Sie dann auf das Häkchen-Symbol rechts neben bzw. unter mir.</span> |
|
||||||
<db:navCopyButton styleClass="clsButtonStyle" style="height:18px" showAlwaysInFooter="false" alt="button.nav.copy" src="../../images/copy.svg" id="copy2" flavor="image"/></td><td class="naviBtn"><span connectId="new2" dojoType="tooltip">Neuen Datensatz erzeugen. Mit Mausklick auf diesen Button geht das Formular bzw. Unterformular in den Einfügemodus, alle vorhandenen Datensätze werden ausgeblendet. Zum Einfügen des neuen Datensatzes klicken Sie dann auf das Häkchen-Symbol rechts neben bzw. unter mir.</span> |
|
||||||
<db:navNewButton styleClass="clsButtonStyle" style="height:18px" showAlwaysInFooter="false" alt="button.nav.new" src="../../images/context_add.svg" id="new2" flavor="image"/></td><td class="naviBtn"><span connectId="ins2" dojoType="tooltip">Datensatz einfügen. Wenn Sie einen neuen Datensatz erzeugt haben, können Sie diesen mit diesem Button speichern.</span> |
|
||||||
<db:insertButton showAlways="false" style="height:18px" styleClass="clsButtonStyle" alt="Datensatz einfügen" src="../../images/circle_tick.svg" id="ins2" flavor="image"/></td><td class="naviBtn"><input type="hidden" name="keyfieldsused" value="<%= keyfieldsused %>" /><a onclick="maskeTogglekeyfields()" title="Schlüsselfelder an/aus"><img alt="Schlüsselfelder an/aus" src="../../images/key.svg" border="0"></a></td> |
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
<p> </p> |
|
||||||
<hr> |
|
||||||
<p> |
|
||||||
<input type="hidden" name="tid" value="<%= tid %>" /> |
|
||||||
</p> |
|
||||||
<table class="db_form_table" cellspacing="0" cellpadding="0" width="100%" border="0"> |
|
||||||
<td> |
|
||||||
<table cellspacing="0" cellpadding="0" width="100%" border="0"> |
|
||||||
<tr> |
|
||||||
<td class="db_label">tid</td><td> |
|
||||||
<db:label nullFieldValue="" fieldName="tid"/></td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="db_label"> |
|
||||||
<db:message key="Ladejob"/></td><td align="left"> |
|
||||||
<div id="fld_etl_job_id"> |
|
||||||
<input onblur="updateSelect(this)" style="display:none" size="10" name="key_etl_job_parametl_job_id" class="schluesselfeld" type="text"> |
|
||||||
<db:select id="inp_etl_job_parametl_job_id" styleClass="clsInputStyle" readOnly="false" onChange="updateKeyfield(this)" fieldName="etl_job_id" customEntry=",,true"><% sql = "select tid, caption from etl_job order by caption;"; %><db:queryData name="etl_job_param_etl_job8" query="<%= sql %>" dbConnectionName="<%= mandantenid %>" /> </db:select> |
|
||||||
</div> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="db_label"> |
|
||||||
<db:message key="Schlüssel"/></td><td align="left"> |
|
||||||
<div id="fld_uniquename"> |
|
||||||
<db:textField nullFieldValue="" styleClass="clsInputStyle" onBlur="" maxlength="255" size="30" id="inp_etl_job_paramuniquename" fieldName="uniquename"/> |
|
||||||
</div> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="db_label"> |
|
||||||
<db:message key="Bezeichnung"/></td><td align="left"> |
|
||||||
<div id="fld_name"> |
|
||||||
<db:textField nullFieldValue="" styleClass="clsInputStyle" onBlur="" maxlength="255" size="50" id="inp_etl_job_paramname" fieldName="name"/> |
|
||||||
</div> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="db_label"> |
|
||||||
<db:message key="Defaultwert"/></td><td align="left"> |
|
||||||
<div id="fld_param_default"> |
|
||||||
<db:textField nullFieldValue="" styleClass="clsInputStyle" onBlur="" maxlength="255" size="50" id="inp_etl_job_paramparam_default" fieldName="param_default"/> |
|
||||||
</div> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
</td><td align="center" style="padding-left:10px"></td> |
|
||||||
</table> |
|
||||||
</db:body> |
|
||||||
<db:footer/></db:dbform></body> |
|
||||||
</html> |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,218 +0,0 @@ |
|||||||
<%@ taglib uri="/WEB-INF/dbforms.tld" prefix="db" %> |
|
||||||
<%@page pageEncoding="utf-8" contentType="text/html; charset=UTF-8" %> |
|
||||||
<html> |
|
||||||
<!--Automatically generated by module_scripts_create.x (SuperX)--> |
|
||||||
<head> |
|
||||||
<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
|
||||||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"> |
|
||||||
<meta content="0" http-equiv="expires"> |
|
||||||
<LINK href="/superx/style/superx.css" type="text/css" REL="stylesheet"> |
|
||||||
<LINK href="/superx/xml/superxml_html.css" type="text/css" REL="stylesheet"> |
|
||||||
<LINK href="/superx/xml/maske_html.css" type="text/css" REL="stylesheet"> |
|
||||||
<LINK href="/superx/style/dbforms_40.css" type="text/css" REL="stylesheet"> |
|
||||||
<title>Maske Ladeschritt verwalten</title> |
|
||||||
<script type="text/javascript"> |
|
||||||
var djConfig = {isDebug: false }; |
|
||||||
//djConfig.debugAtAllCosts = true; |
|
||||||
</script><script src="/superx/xml/js/dojo/dojo.js" type="text/javascript"> </script><script type="text/javascript"> |
|
||||||
dojo.require("dojo.widget.Dialog"); |
|
||||||
dojo.require("dojo.widget.Button"); |
|
||||||
dojo.require("dojo.widget.Tooltip"); |
|
||||||
dojo.require("dojo.string.common"); |
|
||||||
|
|
||||||
dojo.hostenv.writeIncludes(); |
|
||||||
</script><script src="/superx/xml/js/memtext/dbforms.js" type="text/javascript"> </script> |
|
||||||
<db:base/> |
|
||||||
</head> |
|
||||||
<script language="javascript" |
|
||||||
src=<%= "\"" +request.getContextPath() + "/dbformslib/jscal/calendar.js\""%>> |
|
||||||
</script> |
|
||||||
<body class="clsPageBody"><%@ page import ="java.util.Hashtable" %> |
|
||||||
<% |
|
||||||
//HttpSession session=request.getSession(true); |
|
||||||
if (request.getCharacterEncoding() == null) |
|
||||||
request.setCharacterEncoding("UTF-8"); |
|
||||||
Object userobject=request.getSession().getAttribute("UserID"); |
|
||||||
String userid; |
|
||||||
String filter=""; |
|
||||||
String sql=""; |
|
||||||
if(userobject == null) |
|
||||||
{ |
|
||||||
%> |
|
||||||
|
|
||||||
<jsp:forward page="/edit/not_authenticated.htm"/> |
|
||||||
<% |
|
||||||
} |
|
||||||
else |
|
||||||
userid=userobject.toString(); |
|
||||||
Object mandantobject=request.getSession().getAttribute("MandantenID"); |
|
||||||
String mandantenid=""; |
|
||||||
if(mandantobject != null) |
|
||||||
mandantenid=mandantobject.toString(); |
|
||||||
//der superx-Default-Mandant ist bei dbforms ein Leerstring |
|
||||||
if(mandantenid.equals("default")) |
|
||||||
mandantenid=""; |
|
||||||
String db_form_name="etl_step"; |
|
||||||
String erlaubt="0"; |
|
||||||
%> |
|
||||||
<%@ include file="/edit/check_authentication.inc" %> |
|
||||||
<% |
|
||||||
if(erlaubt.equals("0")) |
|
||||||
{ |
|
||||||
%> |
|
||||||
|
|
||||||
<jsp:forward page="/edit/not_authorized.htm"/> |
|
||||||
<% |
|
||||||
} |
|
||||||
|
|
||||||
String keyfieldsused="false"; |
|
||||||
Object kf=request.getParameter("keyfieldsused"); |
|
||||||
if(kf != null) |
|
||||||
keyfieldsused=kf.toString(); |
|
||||||
|
|
||||||
%> |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div style="margin: 0px; padding: 0px; overflow: hidden; width: 100%;" id="menuCaption"> |
|
||||||
<span class="menuCaptionTitle" id="menuCaptionTitle">Ladeschritt verwalten. </span><img border="0" height="18px" alt="Erläuterung" src="/superx/images/information.svg"><span style="display:none" connectId="menuCaption" dojoType="tooltip">In diesem Formular können Sie Ladeschritte verwalten.</span> |
|
||||||
</div> |
|
||||||
<% |
|
||||||
String tid = request.getParameter("tid"); |
|
||||||
if(tid != null && !tid.equals("null")){ |
|
||||||
filter +="tid="+tid; |
|
||||||
} |
|
||||||
%> |
|
||||||
<db:dbform tableName="etl_step" maxRows="1" autoUpdate="false" captionResource="true" multipart="false" followUp="/edit/etl/etl_step_bearbeiten.jsp" filter="<%= filter %>" orderBy="" |
|
||||||
dbConnectionName="<%= mandantenid %>" ><input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/><db:header/> |
|
||||||
<db:errors/> |
|
||||||
<db:body allowNew="true"> |
|
||||||
<table border="0" align="right" cellpadding="0" cellspacing="0"> |
|
||||||
<tr> |
|
||||||
<td class="naviBtn"> |
|
||||||
<db:updateButton styleClass="clsButtonStyle" style="height:18px" alt="button.update" src="../../images/save.svg" flavor="image" id="db_updateButton"/></td><td class="naviBtn"> |
|
||||||
<db:navFirstButton styleClass="clsButtonStyle" style="height:18px" caption="button.nav.first" alt="button.nav.first" src="../../images/resultset_first.svg" flavor="image" id="db_navFirstButton"/></td><td class="naviBtn"> |
|
||||||
<db:navPrevButton styleClass="clsButtonStyle" style="height:18px" alt="button.nav.previous" src="../../images/resultset_previous.svg" flavor="image" id="db_navPrevButton"/></td><td class="naviBtn"> |
|
||||||
<db:navNextButton styleClass="clsButtonStyle" style="height:18px" alt="button.nav.next" src="../../images/resultset_next.svg" flavor="image" id="db_navNextButton"/></td><td class="naviBtn"> |
|
||||||
<db:navLastButton styleClass="clsButtonStyle" style="height:18px" alt="button.nav.last" src="../../images/resultset_last.svg" flavor="image" id="db_navLastButton"/></td><td class="naviBtn"> |
|
||||||
<db:deleteButton confirmMessage="button.delete.confirm" styleClass="clsButtonStyle" style="height:18px" alt="button.delete" src="../../images/delete.svg" id="db_deleteButton" flavor="image"/></td><td class="naviBtn"><span connectId="copy3" dojoType="tooltip">Datensatz kopieren. Mit Mausklick auf diesen Button kopieren Sie den aktuellen Datensatz. Zum Einfügen des neuen Datensatzes klicken Sie dann auf das Häkchen-Symbol rechts neben bzw. unter mir.</span> |
|
||||||
<db:navCopyButton styleClass="clsButtonStyle" style="height:18px" showAlwaysInFooter="false" alt="button.nav.copy" src="../../images/copy.svg" id="copy3" flavor="image"/></td><td class="naviBtn"><span connectId="new3" dojoType="tooltip">Neuen Datensatz erzeugen. Mit Mausklick auf diesen Button geht das Formular bzw. Unterformular in den Einfügemodus, alle vorhandenen Datensätze werden ausgeblendet. Zum Einfügen des neuen Datensatzes klicken Sie dann auf das Häkchen-Symbol rechts neben bzw. unter mir.</span> |
|
||||||
<db:navNewButton styleClass="clsButtonStyle" style="height:18px" showAlwaysInFooter="false" alt="button.nav.new" src="../../images/context_add.svg" id="new3" flavor="image"/></td><td class="naviBtn"><span connectId="ins3" dojoType="tooltip">Datensatz einfügen. Wenn Sie einen neuen Datensatz erzeugt haben, können Sie diesen mit diesem Button speichern.</span> |
|
||||||
<db:insertButton showAlways="false" style="height:18px" styleClass="clsButtonStyle" alt="Datensatz einfügen" src="../../images/circle_tick.svg" id="ins3" flavor="image"/></td><td class="naviBtn"><input type="hidden" name="keyfieldsused" value="<%= keyfieldsused %>" /><a onclick="maskeTogglekeyfields()" title="Schlüsselfelder an/aus"><img alt="Schlüsselfelder an/aus" src="../../images/key.svg" border="0"></a></td> |
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
<p> </p> |
|
||||||
<hr> |
|
||||||
<p> |
|
||||||
<input type="hidden" name="tid" value="<%= tid %>" /> |
|
||||||
</p> |
|
||||||
<table class="db_form_table" cellspacing="0" cellpadding="0" width="100%" border="0"> |
|
||||||
<td> |
|
||||||
<table cellspacing="0" cellpadding="0" width="100%" border="0"> |
|
||||||
<tr> |
|
||||||
<td class="db_label">tid</td><td> |
|
||||||
<db:label nullFieldValue="" fieldName="tid"/></td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="db_label"> |
|
||||||
<db:message key="Bezeichnung"/></td><td align="left"> |
|
||||||
<div id="fld_caption"> |
|
||||||
<db:textField nullFieldValue="" styleClass="clsInputStyle" onBlur="" maxlength="255" size="30" id="inp_etl_stepcaption" fieldName="caption"/> |
|
||||||
</div> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="db_label"> |
|
||||||
<db:message key="Unique Name"/></td><td align="left"> |
|
||||||
<div id="fld_uniquename"> |
|
||||||
<db:textField nullFieldValue="" styleClass="clsInputStyle" onBlur="" maxlength="255" size="30" id="inp_etl_stepuniquename" fieldName="uniquename"/> |
|
||||||
</div> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="db_label"> |
|
||||||
<db:message key="Komponente"/></td><td align="left"> |
|
||||||
<div id="fld_systeminfo_id"> |
|
||||||
<input onblur="updateSelect(this)" style="display:none" size="10" name="key_etl_stepsysteminfo_id" class="schluesselfeld" type="text"> |
|
||||||
<db:select id="inp_etl_stepsysteminfo_id" styleClass="clsInputStyle" readOnly="false" onChange="updateKeyfield(this)" fieldName="systeminfo_id" customEntry=",,true"><% sql = "select tid, name from systeminfo order by name;"; %><db:queryData name="etl_step_systeminfo2" query="<%= sql %>" dbConnectionName="<%= mandantenid %>" /> </db:select> |
|
||||||
</div> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="db_label"> |
|
||||||
<db:message key="Typ des Schrittes"/></td><td align="left"> |
|
||||||
<div id="fld_step_type_id"> |
|
||||||
<input onblur="updateSelect(this)" style="display:none" size="10" name="key_etl_stepstep_type_id" class="schluesselfeld" type="text"> |
|
||||||
<db:select id="inp_etl_stepstep_type_id" styleClass="clsInputStyle" readOnly="false" onChange="updateKeyfield(this)" fieldName="step_type_id" customEntry=",,true"><% sql = "select tid, caption from etl_step_type order by caption;"; %><db:queryData name="etl_step_etl_step_type3" query="<%= sql %>" dbConnectionName="<%= mandantenid %>" /> </db:select> |
|
||||||
</div> |
|
||||||
<span style="display:none" connectId="fld_step_type_id" dojoType="tooltip">1=Gruppierung, |
|
||||||
2=Loadtable,3=nativeaction,4=loadmask,5=select</span></td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="db_label"> |
|
||||||
<db:message key="Ladeschritt custom"/></td><td align="left"> |
|
||||||
<div id="fld_custom_step"> |
|
||||||
<db:textField nullFieldValue="" onBlur="" styleClass="clsInputStyle" id="inp_etl_stepcustom_step" size="6" fieldName="custom_step"/> |
|
||||||
</div> |
|
||||||
<span style="display:none" connectId="fld_custom_step" dojoType="tooltip">1=ja, d.h. von der Hochschule angepaßt, 0=nein, d.h. |
|
||||||
Auslieferung der Software</span></td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="db_label"> |
|
||||||
<db:message key="Logdatei"/></td><td align="left"> |
|
||||||
<div id="fld_logfile"> |
|
||||||
<db:textField nullFieldValue="" styleClass="clsInputStyle" onBlur="" maxlength="255" size="20" id="inp_etl_steplogfile" fieldName="logfile"/> |
|
||||||
</div> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="db_label">Eigenschaften</td><td> |
|
||||||
<table class="subform"> |
|
||||||
<db:dbform orderBy="prop_name" childField="etl_step_id" parentField="tid" tableName="etl_step_property" maxRows="*" captionResource="true" followUp="/edit/etl/etl_step_bearbeiten.jsp" autoUpdate="false" multipart="false" dbConnectionName="<%= mandantenid %>"> |
|
||||||
<db:header> |
|
||||||
<tr class="subform_tr"> |
|
||||||
<th class="subform_th">tid</th><th class="subform_th">Bezeichnung</th><th class="subform_th">Bearbeiten</th> |
|
||||||
</tr> |
|
||||||
</db:header> |
|
||||||
<db:body allowNew="true"> |
|
||||||
<tr class="subform_tr"> |
|
||||||
<td> |
|
||||||
<db:label nullFieldValue="" fieldName="tid"/></td><db:textField hidden="true" fieldName="etl_step_id" overrideValue="<%= tid%>"/> |
|
||||||
<td align="left"> |
|
||||||
<div id="fld_prop_name"> |
|
||||||
<db:textField nullFieldValue="" styleClass="clsInputStyle" onBlur="" maxlength="255" size="20" fieldName="prop_name"/> |
|
||||||
</div> |
|
||||||
</td><td align="left"> |
|
||||||
<div id="fld_prop_value"> |
|
||||||
<!-- |
|
||||||
<db:textField nullFieldValue="" styleClass="clsInputStyle" onBlur="" size="30" fieldName="prop_value"/>--> |
|
||||||
<% |
|
||||||
if(currentRow_etl_step_property != null) |
|
||||||
{ |
|
||||||
%><a target="details" title="Details" href="<%= response.encodeURL("/superx/edit/etl/etl_step_property_bearbeiten.jsp") %>?tid=<db:label nullFieldValue="" pattern="######" fieldName="tid"/>" onClick="javascript:neu=window.open('<%= response.encodeURL("/superx/edit/etl/etl_step_property_edit.jsp") %>?tid=<db:label nullFieldValue="" pattern="######" fieldName="tid"/>','_blank','directories=no,location=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=800,height=600'); return false;"><img border="0" alt="Details" src="../../images/pencil.svg"></a><% |
|
||||||
} |
|
||||||
%> |
|
||||||
</div> |
|
||||||
</td><td class="naviBtn"> |
|
||||||
<db:updateButton styleClass="clsButtonStyle" style="height:18px" alt="button.update" src="../../images/save.svg" flavor="image" id="db_updateButton"/></td><td class="naviBtn"> |
|
||||||
<db:deleteButton confirmMessage="button.delete.confirm" styleClass="clsButtonStyle" style="height:18px" alt="button.delete" src="../../images/delete.svg" id="db_deleteButton" flavor="image"/></td><td class="naviBtn"><span connectId="copy8" dojoType="tooltip">Datensatz kopieren. Mit Mausklick auf diesen Button kopieren Sie den aktuellen Datensatz. Zum Einfügen des neuen Datensatzes klicken Sie dann auf das Häkchen-Symbol rechts neben bzw. unter mir.</span> |
|
||||||
<db:navCopyButton styleClass="clsButtonStyle" style="height:18px" showAlwaysInFooter="false" alt="button.nav.copy" src="../../images/copy.svg" id="copy8" flavor="image"/></td> |
|
||||||
</tr> |
|
||||||
</db:body> |
|
||||||
<db:footer> |
|
||||||
<tr class="subform_tr"> |
|
||||||
<td><td class="naviBtn"><span connectId="new8" dojoType="tooltip">Neuen Datensatz erzeugen. Mit Mausklick auf diesen Button geht das Formular bzw. Unterformular in den Einfügemodus, alle vorhandenen Datensätze werden ausgeblendet. Zum Einfügen des neuen Datensatzes klicken Sie dann auf das Häkchen-Symbol rechts neben bzw. unter mir.</span> |
|
||||||
<db:navNewButton styleClass="clsButtonStyle" style="height:18px" showAlwaysInFooter="false" alt="button.nav.new" src="../../images/context_add.svg" id="new8" flavor="image"/></td><td class="naviBtn"><span connectId="ins8" dojoType="tooltip">Datensatz einfügen. Wenn Sie einen neuen Datensatz erzeugt haben, können Sie diesen mit diesem Button speichern.</span> |
|
||||||
<db:insertButton showAlways="false" style="height:18px" styleClass="clsButtonStyle" alt="Datensatz einfügen" src="../../images/circle_tick.svg" id="ins8" flavor="image"/></td></td> |
|
||||||
</tr> |
|
||||||
</db:footer> |
|
||||||
</db:dbform> |
|
||||||
</table> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
</td><td align="center" style="padding-left:10px"></td> |
|
||||||
</table> |
|
||||||
</db:body> |
|
||||||
<db:footer/></db:dbform></body> |
|
||||||
</html> |
|
@ -1,150 +0,0 @@ |
|||||||
<%@ taglib uri="/WEB-INF/dbforms.tld" prefix="db" %> |
|
||||||
<%@page pageEncoding="utf-8" contentType="text/html; charset=UTF-8" %> |
|
||||||
<html> |
|
||||||
<!--Automatically generated by module_scripts_create.x (SuperX)--> |
|
||||||
<head> |
|
||||||
<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
|
||||||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"> |
|
||||||
<meta content="0" http-equiv="expires"> |
|
||||||
<LINK href="/superx/style/superx.css" type="text/css" REL="stylesheet"> |
|
||||||
<LINK href="/superx/xml/superxml_html.css" type="text/css" REL="stylesheet"> |
|
||||||
<LINK href="/superx/xml/maske_html.css" type="text/css" REL="stylesheet"> |
|
||||||
<LINK href="/superx/style/dbforms_40.css" type="text/css" REL="stylesheet"> |
|
||||||
<title>Maske Eigenschaften von für Ladeschritten verwalten</title> |
|
||||||
<script type="text/javascript"> |
|
||||||
var djConfig = {isDebug: false }; |
|
||||||
//djConfig.debugAtAllCosts = true; |
|
||||||
</script><script src="/superx/xml/js/dojo/dojo.js" type="text/javascript"> </script><script type="text/javascript"> |
|
||||||
dojo.require("dojo.widget.Dialog"); |
|
||||||
dojo.require("dojo.widget.Button"); |
|
||||||
dojo.require("dojo.widget.Tooltip"); |
|
||||||
dojo.require("dojo.string.common"); |
|
||||||
|
|
||||||
dojo.hostenv.writeIncludes(); |
|
||||||
</script><script src="/superx/xml/js/memtext/dbforms.js" type="text/javascript"> </script> |
|
||||||
<db:base/> |
|
||||||
</head> |
|
||||||
<script language="javascript" |
|
||||||
src=<%= "\"" +request.getContextPath() + "/dbformslib/jscal/calendar.js\""%>> |
|
||||||
</script> |
|
||||||
<body class="clsPageBody"><%@ page import ="java.util.Hashtable" %> |
|
||||||
<% |
|
||||||
//HttpSession session=request.getSession(true); |
|
||||||
if (request.getCharacterEncoding() == null) |
|
||||||
request.setCharacterEncoding("UTF-8"); |
|
||||||
Object userobject=request.getSession().getAttribute("UserID"); |
|
||||||
String userid; |
|
||||||
String filter=""; |
|
||||||
String sql=""; |
|
||||||
if(userobject == null) |
|
||||||
{ |
|
||||||
%> |
|
||||||
|
|
||||||
<jsp:forward page="/edit/not_authenticated.htm"/> |
|
||||||
<% |
|
||||||
} |
|
||||||
else |
|
||||||
userid=userobject.toString(); |
|
||||||
Object mandantobject=request.getSession().getAttribute("MandantenID"); |
|
||||||
String mandantenid=""; |
|
||||||
if(mandantobject != null) |
|
||||||
mandantenid=mandantobject.toString(); |
|
||||||
//der superx-Default-Mandant ist bei dbforms ein Leerstring |
|
||||||
if(mandantenid.equals("default")) |
|
||||||
mandantenid=""; |
|
||||||
String db_form_name="etl_step_property"; |
|
||||||
String erlaubt="0"; |
|
||||||
%> |
|
||||||
<%@ include file="/edit/check_authentication.inc" %> |
|
||||||
<% |
|
||||||
if(erlaubt.equals("0")) |
|
||||||
{ |
|
||||||
%> |
|
||||||
|
|
||||||
<jsp:forward page="/edit/not_authorized.htm"/> |
|
||||||
<% |
|
||||||
} |
|
||||||
|
|
||||||
String keyfieldsused="false"; |
|
||||||
Object kf=request.getParameter("keyfieldsused"); |
|
||||||
if(kf != null) |
|
||||||
keyfieldsused=kf.toString(); |
|
||||||
|
|
||||||
%> |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div style="margin: 0px; padding: 0px; overflow: hidden; width: 100%;" id="menuCaption"> |
|
||||||
<span class="menuCaptionTitle" id="menuCaptionTitle">Eigenschaften von für Ladeschritten verwalten. </span><img border="0" height="18px" alt="Erläuterung" src="/superx/images/information.svg"><span style="display:none" connectId="menuCaption" dojoType="tooltip">In diesem Formular können Sie Parameter für Ladejobs verwalten.</span> |
|
||||||
</div> |
|
||||||
<% |
|
||||||
String tid = request.getParameter("tid"); |
|
||||||
if(tid != null && !tid.equals("null")){ |
|
||||||
filter +="tid="+tid; |
|
||||||
} |
|
||||||
%> |
|
||||||
<db:dbform tableName="etl_step_property" maxRows="1" autoUpdate="false" captionResource="true" multipart="false" followUp="/edit/etl/etl_step_property_bearbeiten.jsp" filter="<%= filter %>" orderBy="" |
|
||||||
dbConnectionName="<%= mandantenid %>" ><input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/><db:header/> |
|
||||||
<db:errors/> |
|
||||||
<db:body allowNew="true"> |
|
||||||
<table border="0" align="right" cellpadding="0" cellspacing="0"> |
|
||||||
<tr> |
|
||||||
<td class="naviBtn"> |
|
||||||
<db:updateButton styleClass="clsButtonStyle" style="height:18px" alt="button.update" src="../../images/save.svg" flavor="image" id="db_updateButton"/></td><td class="naviBtn"> |
|
||||||
<db:navFirstButton styleClass="clsButtonStyle" style="height:18px" caption="button.nav.first" alt="button.nav.first" src="../../images/resultset_first.svg" flavor="image" id="db_navFirstButton"/></td><td class="naviBtn"> |
|
||||||
<db:navPrevButton styleClass="clsButtonStyle" style="height:18px" alt="button.nav.previous" src="../../images/resultset_previous.svg" flavor="image" id="db_navPrevButton"/></td><td class="naviBtn"> |
|
||||||
<db:navNextButton styleClass="clsButtonStyle" style="height:18px" alt="button.nav.next" src="../../images/resultset_next.svg" flavor="image" id="db_navNextButton"/></td><td class="naviBtn"> |
|
||||||
<db:navLastButton styleClass="clsButtonStyle" style="height:18px" alt="button.nav.last" src="../../images/resultset_last.svg" flavor="image" id="db_navLastButton"/></td><td class="naviBtn"> |
|
||||||
<db:deleteButton confirmMessage="button.delete.confirm" styleClass="clsButtonStyle" style="height:18px" alt="button.delete" src="../../images/delete.svg" id="db_deleteButton" flavor="image"/></td><td class="naviBtn"><span connectId="copy2" dojoType="tooltip">Datensatz kopieren. Mit Mausklick auf diesen Button kopieren Sie den aktuellen Datensatz. Zum Einfügen des neuen Datensatzes klicken Sie dann auf das Häkchen-Symbol rechts neben bzw. unter mir.</span> |
|
||||||
<db:navCopyButton styleClass="clsButtonStyle" style="height:18px" showAlwaysInFooter="false" alt="button.nav.copy" src="../../images/copy.svg" id="copy2" flavor="image"/></td><td class="naviBtn"><span connectId="new2" dojoType="tooltip">Neuen Datensatz erzeugen. Mit Mausklick auf diesen Button geht das Formular bzw. Unterformular in den Einfügemodus, alle vorhandenen Datensätze werden ausgeblendet. Zum Einfügen des neuen Datensatzes klicken Sie dann auf das Häkchen-Symbol rechts neben bzw. unter mir.</span> |
|
||||||
<db:navNewButton styleClass="clsButtonStyle" style="height:18px" showAlwaysInFooter="false" alt="button.nav.new" src="../../images/context_add.svg" id="new2" flavor="image"/></td><td class="naviBtn"><span connectId="ins2" dojoType="tooltip">Datensatz einfügen. Wenn Sie einen neuen Datensatz erzeugt haben, können Sie diesen mit diesem Button speichern.</span> |
|
||||||
<db:insertButton showAlways="false" style="height:18px" styleClass="clsButtonStyle" alt="Datensatz einfügen" src="../../images/circle_tick.svg" id="ins2" flavor="image"/></td><td class="naviBtn"><input type="hidden" name="keyfieldsused" value="<%= keyfieldsused %>" /><a onclick="maskeTogglekeyfields()" title="Schlüsselfelder an/aus"><img alt="Schlüsselfelder an/aus" src="../../images/key.svg" border="0"></a></td> |
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
<p> </p> |
|
||||||
<hr> |
|
||||||
<p> |
|
||||||
<input type="hidden" name="tid" value="<%= tid %>" /> |
|
||||||
</p> |
|
||||||
<table class="db_form_table" cellspacing="0" cellpadding="0" width="100%" border="0"> |
|
||||||
<td> |
|
||||||
<table cellspacing="0" cellpadding="0" width="100%" border="0"> |
|
||||||
<tr> |
|
||||||
<td class="db_label">tid</td><td> |
|
||||||
<db:label nullFieldValue="" fieldName="tid"/></td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="db_label"> |
|
||||||
<db:message key="Arten des Ladeschritts"/></td><td align="left"> |
|
||||||
<div id="fld_etl_step_id"> |
|
||||||
<input onblur="updateSelect(this)" style="display:none" size="10" name="key_etl_step_propertyetl_step_id" class="schluesselfeld" type="text"> |
|
||||||
<db:select id="inp_etl_step_propertyetl_step_id" styleClass="clsInputStyle" readOnly="false" onChange="updateKeyfield(this)" fieldName="etl_step_id" customEntry=",,true"><% sql = "select tid, caption from etl_step order by caption;"; %><db:queryData name="etl_step_property_etl_step4" query="<%= sql %>" dbConnectionName="<%= mandantenid %>" /> </db:select> |
|
||||||
</div> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="db_label"> |
|
||||||
<db:message key="Bezeichnung"/></td><td align="left"> |
|
||||||
<div id="fld_prop_name"> |
|
||||||
<db:textField nullFieldValue="" styleClass="clsInputStyle" onBlur="" maxlength="255" size="30" id="inp_etl_step_propertyprop_name" fieldName="prop_name"/> |
|
||||||
</div> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
<tr> |
|
||||||
<td class="db_label"> |
|
||||||
<db:message key="Wert"/></td><td align="left"> |
|
||||||
<div id="fld_prop_value"> |
|
||||||
<db:textArea nullFieldValue="" onBlur="" styleClass="editform" wrap="virtual" rows="6" cols="80" fieldName="prop_value"/> |
|
||||||
</div> |
|
||||||
</td> |
|
||||||
</tr> |
|
||||||
</table> |
|
||||||
</td><td align="center" style="padding-left:10px"></td> |
|
||||||
</table> |
|
||||||
</db:body> |
|
||||||
<db:footer/></db:dbform></body> |
|
||||||
</html> |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,109 +0,0 @@ |
|||||||
<%@ taglib uri="/WEB-INF/dbforms.tld" prefix="db" %> |
|
||||||
<%@page pageEncoding="utf-8" contentType="text/html; charset=UTF-8" %> |
|
||||||
<html xmlns:jsp="http://www.java.com/jsp" xmlns:db="http://www.wap-force.com/dbforms"><!--Automatically generated by module_scripts_create.x (SuperX)--> |
|
||||||
<head xmlns:sx="http://memtext.de"> |
|
||||||
<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
|
||||||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"> |
|
||||||
<meta content="0" http-equiv="expires"> |
|
||||||
<LINK href="/superx/style/superx.css" type="text/css" REL="stylesheet"> |
|
||||||
<LINK href="/superx/xml/superxml_html.css" type="text/css" REL="stylesheet"> |
|
||||||
<LINK href="/superx/xml/maske_html.css" type="text/css" REL="stylesheet"> |
|
||||||
<LINK href="/superx/style/dbforms_40.css" type="text/css" REL="stylesheet"> |
|
||||||
<title>Formular Arten von Ladeschritten verwalten</title> |
|
||||||
<script type="text/javascript"> |
|
||||||
var djConfig = {isDebug: false }; |
|
||||||
//djConfig.debugAtAllCosts = true; |
|
||||||
</script><script src="/superx/xml/js/dojo/dojo.js" type="text/javascript"> </script><script type="text/javascript"> |
|
||||||
dojo.require("dojo.widget.Dialog"); |
|
||||||
dojo.require("dojo.widget.Button"); |
|
||||||
dojo.require("dojo.widget.Tooltip"); |
|
||||||
dojo.require("dojo.string.common"); |
|
||||||
|
|
||||||
dojo.hostenv.writeIncludes(); |
|
||||||
</script><script src="/superx/xml/js/memtext/dbforms.js" type="text/javascript"> </script> |
|
||||||
<db:base/> |
|
||||||
</head> |
|
||||||
<body class="clsPageBody"><%@ page import ="java.util.Hashtable" %> |
|
||||||
<% |
|
||||||
//HttpSession session=request.getSession(true); |
|
||||||
if (request.getCharacterEncoding() == null) |
|
||||||
request.setCharacterEncoding("UTF-8"); |
|
||||||
Object userobject=request.getSession().getAttribute("UserID"); |
|
||||||
String userid; |
|
||||||
String filter=""; |
|
||||||
String sql=""; |
|
||||||
if(userobject == null) |
|
||||||
{ |
|
||||||
%> |
|
||||||
|
|
||||||
<jsp:forward page="/edit/not_authenticated.htm"/> |
|
||||||
<% |
|
||||||
} |
|
||||||
else |
|
||||||
userid=userobject.toString(); |
|
||||||
Object mandantobject=request.getSession().getAttribute("MandantenID"); |
|
||||||
String mandantenid=""; |
|
||||||
if(mandantobject != null) |
|
||||||
mandantenid=mandantobject.toString(); |
|
||||||
//der superx-Default-Mandant ist bei dbforms ein Leerstring |
|
||||||
if(mandantenid.equals("default")) |
|
||||||
mandantenid=""; |
|
||||||
String db_form_name="etl_step_type"; |
|
||||||
String erlaubt="0"; |
|
||||||
%> |
|
||||||
<%@ include file="/edit/check_authentication.inc" %> |
|
||||||
<% |
|
||||||
if(erlaubt.equals("0")) |
|
||||||
{ |
|
||||||
%> |
|
||||||
|
|
||||||
<jsp:forward page="/edit/not_authorized.htm"/> |
|
||||||
<% |
|
||||||
} |
|
||||||
|
|
||||||
String keyfieldsused="false"; |
|
||||||
Object kf=request.getParameter("keyfieldsused"); |
|
||||||
if(kf != null) |
|
||||||
keyfieldsused=kf.toString(); |
|
||||||
|
|
||||||
%> |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p align="right"> |
|
||||||
<a target="_parent" href="http://www.superx-projekt.de"><img border="0" alt="Logo" src="../../images/logo.gif"></a> |
|
||||||
<br><% if(!mandantenid.equals("default") && !mandantenid.equals("")) |
|
||||||
out.println("<strong>Mandant: " + mandantenid +"</strong>"); |
|
||||||
%></p> |
|
||||||
<div style="margin: 0px; padding: 0px; overflow: hidden; width: 100%;" id="menuCaption"> |
|
||||||
<span class="menuCaptionTitle" id="menuCaptionTitle">Arten von Ladeschritten verwalten. </span><img border="0" height="18px" alt="Erläuterung" src="/superx/images/information.svg"><span style="display:none" connectId="menuCaption" dojoType="tooltip">In diesem Formular können Sie Arten von Ladeschritten verwalten.</span> |
|
||||||
</div><db:dbform tableName="etl_step_type" maxRows="*" autoUpdate="false" captionResource="true" multipart="false" followUp="/edit/etl/etl_step_type_liste.jsp" orderBy="caption" |
|
||||||
dbConnectionName="<%= mandantenid %>" ><input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/><db:header> |
|
||||||
<table class="dbform_tab" border="1" > |
|
||||||
|
|
||||||
<tr> |
|
||||||
<th></th><th align="left"> |
|
||||||
<db:message key="tid"/></th><th align="left"> |
|
||||||
<db:message key="Unique Name"/></th><th align="left"> |
|
||||||
<db:message key="Bezeichnung"/></th><th align="left"> |
|
||||||
<db:message key="Handler-Anwendung"/></th> |
|
||||||
</tr> |
|
||||||
</db:header> |
|
||||||
<db:errors/> |
|
||||||
<db:body allowNew="true"> |
|
||||||
<tr> |
|
||||||
<td></td><td> |
|
||||||
<db:label nullFieldValue="" styleClass="clsInputStyle" fieldName="tid"/></td><td align="left"> |
|
||||||
<db:textArea nullFieldValue="" styleClass="clsInputStyle" wrap="virtual" rows="3" cols="20" fieldName="uniquename"/></td><td align="left"> |
|
||||||
<db:textArea nullFieldValue="" styleClass="clsInputStyle" wrap="virtual" rows="3" cols="20" fieldName="caption"/></td><td align="left"> |
|
||||||
<db:textArea nullFieldValue="" styleClass="clsInputStyle" wrap="virtual" rows="3" cols="20" fieldName="handler"/></td><td class="naviBtn"> |
|
||||||
<db:updateButton styleClass="clsButtonStyle" style="height:18px" alt="button.update" src="../../images/save.svg" flavor="image" id="db_updateButton"/></td><td class="naviBtn"> |
|
||||||
<db:deleteButton confirmMessage="button.delete.confirm" styleClass="clsButtonStyle" style="height:18px" alt="button.delete" src="../../images/delete.svg" id="db_deleteButton" flavor="image"/></td> |
|
||||||
</tr> |
|
||||||
</db:body> |
|
||||||
<db:footer><tr><td class="naviBtn"><span connectId="new1" dojoType="tooltip">Neuen Datensatz erzeugen. Mit Mausklick auf diesen Button geht das Formular bzw. Unterformular in den Einfügemodus, alle vorhandenen Datensätze werden ausgeblendet. Zum Einfügen des neuen Datensatzes klicken Sie dann auf das Häkchen-Symbol rechts neben bzw. unter mir.</span> |
|
||||||
<db:navNewButton styleClass="clsButtonStyle" style="height:18px" showAlwaysInFooter="false" alt="button.nav.new" src="../../images/context_add.svg" id="new1" flavor="image"/></td><td class="naviBtn"><span connectId="ins1" dojoType="tooltip">Datensatz einfügen. Wenn Sie einen neuen Datensatz erzeugt haben, können Sie diesen mit diesem Button speichern.</span> |
|
||||||
<db:insertButton showAlways="false" style="height:18px" styleClass="clsButtonStyle" alt="Datensatz einfügen" src="../../images/circle_tick.svg" id="ins1" flavor="image"/></td></tr> |
|
||||||
</table> |
|
||||||
</db:footer></db:dbform></body> |
|
||||||
</html> |
|
@ -1,143 +0,0 @@ |
|||||||
<%@ taglib uri="/WEB-INF/dbforms.tld" prefix="db" %> |
|
||||||
<%@page pageEncoding="utf-8" contentType="text/html; charset=UTF-8" %> |
|
||||||
<%@ page import ="de.superx.servlet.ServletUtils" %> |
|
||||||
<%@ page import ="de.superx.servlet.SxPools" %> |
|
||||||
<%@ page import ="java.io.BufferedWriter" %> |
|
||||||
<%@ page import ="java.io.File" %> |
|
||||||
<%@ page import ="java.io.FileWriter" %> |
|
||||||
<%@ page import ="java.io.IOException" %> |
|
||||||
<%@ page import ="de.superx.elt.EtlActionJob" %> |
|
||||||
<%@ page import ="de.superx.elt.EtlUtils" %> |
|
||||||
<%@ page import ="de.superx.common.SxUser" %> |
|
||||||
<html> |
|
||||||
|
|
||||||
<head> |
|
||||||
<meta charset="utf-8"> |
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> |
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1"> |
|
||||||
<title>Ausführung</title> |
|
||||||
<link rel="stylesheet" href="../../style/bulma.css" /> |
|
||||||
<script type="text/javascript" src="/superx/xml/js/memtext/sx_functions.js"></script> |
|
||||||
</head> |
|
||||||
|
|
||||||
<body> |
|
||||||
<% |
|
||||||
//init Variables: |
|
||||||
if (request.getCharacterEncoding() == null) |
|
||||||
request.setCharacterEncoding("UTF-8"); |
|
||||||
|
|
||||||
String idparamName = request.getParameter("idparamName"); |
|
||||||
String idparamValue = request.getParameter("idparamValue"); |
|
||||||
String src = request.getParameter("src"); |
|
||||||
String jobuniquename = request.getParameter("jobuniquename"); |
|
||||||
String returntext=""; |
|
||||||
int returnCode=0; |
|
||||||
returntext=src; |
|
||||||
|
|
||||||
SxUser user = (SxUser) request.getSession().getAttribute("user"); |
|
||||||
String mandantenid= (String) request.getSession().getAttribute("MandantenID"); |
|
||||||
//String searchString="/etlAction[@name=\""+jobuniquename+"\"]/unload[@name=\"unload_maskeninfo\"]/rs/row/fld[@name=\"tid\"]"; |
|
||||||
if(mandantenid==null || mandantenid.equals("")) |
|
||||||
mandantenid="default"; |
|
||||||
|
|
||||||
if (user == null || !user.isAdmin()) { |
|
||||||
returnCode=1; |
|
||||||
returntext="Fehlende Rechte"; |
|
||||||
|
|
||||||
} |
|
||||||
else |
|
||||||
{ |
|
||||||
try { |
|
||||||
//if(de.superx.elt.EtlUtils.isNodeValueInXml(src,searchString,idparamValue,jobuniquename)) |
|
||||||
//{ |
|
||||||
|
|
||||||
returntext=idparamName+"="+idparamValue; |
|
||||||
String params=idparamName+"="+idparamValue; |
|
||||||
File temp; |
|
||||||
temp = File.createTempFile("myTempFile", ".xml"); |
|
||||||
|
|
||||||
BufferedWriter bw = new BufferedWriter(new FileWriter(temp)); |
|
||||||
bw.write(src); |
|
||||||
|
|
||||||
bw.close(); |
|
||||||
params+=EtlUtils.NEWLINE+"PATH_TO_INPUTFILE="+temp.getAbsolutePath(); |
|
||||||
params+=EtlUtils.NEWLINE+"FORMAT=XML"; |
|
||||||
EtlActionJob myJob=new EtlActionJob(jobuniquename); //TODO:Mandantid |
|
||||||
myJob.initJob(jobuniquename,params); |
|
||||||
returnCode= myJob.execute(""); |
|
||||||
returntext+=myJob.getActionLog().toString(); |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*} |
|
||||||
else |
|
||||||
{ |
|
||||||
returntext="Übergebener Parameter "+idparamName+" Wert "+idparamValue+" entspricht nicht der XML-Datei "; |
|
||||||
returnCode=1; |
|
||||||
}*/ |
|
||||||
} catch (Exception e) { |
|
||||||
returnCode=1; |
|
||||||
returntext=e.toString(); |
|
||||||
e.printStackTrace(); |
|
||||||
} |
|
||||||
|
|
||||||
|
|
||||||
} |
|
||||||
%> |
|
||||||
<!-- START NAV --> |
|
||||||
<nav class="navbar is-white"> |
|
||||||
<div class="container"> |
|
||||||
<div class="navbar-brand"> |
|
||||||
|
|
||||||
Masken laden |
|
||||||
|
|
||||||
<div class="navbar-burger burger" data-target="navMenu"> |
|
||||||
<span>dd</span> |
|
||||||
<span>dd</span> |
|
||||||
<span>dd</span> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<!-- <div id="navMenu" class="navbar-menu"> |
|
||||||
<div class="navbar-start"> |
|
||||||
<a class="navbar-item" href="webapp_manager.jsp?tab=inst"> |
|
||||||
Installation /Patches |
|
||||||
</a> |
|
||||||
<a class="navbar-item" href="webapp_manager.jsp?tab=load"> |
|
||||||
Konnektoren |
|
||||||
</a>--> |
|
||||||
<a class="navbar-item" href="javascript:window.close()"> |
|
||||||
Schließen |
|
||||||
</a> |
|
||||||
|
|
||||||
</div> |
|
||||||
|
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</nav> |
|
||||||
<!-- END NAV --> |
|
||||||
|
|
||||||
<section class="section"> |
|
||||||
<div class="container"> |
|
||||||
|
|
||||||
<h1 class="title" id="MaskHeader">Protokoll</h1> |
|
||||||
<h2 class="subtitle"> |
|
||||||
<div id="MaskSubHeader">Ergebnis der Ausführung</div> |
|
||||||
</h2> |
|
||||||
<p>Status: <%="Code "+ returnCode+ "("+de.superx.elt.EtlUtils.translateReturnCode2Html(returnCode)+")"%>, Logausgabe: |
|
||||||
</p> |
|
||||||
<div class="bd-snippet-code highlight-full "> |
|
||||||
<figure class="highlight"><div class="buttons has-addons is-right"> |
|
||||||
<button class="button is-small is-info" onClick="copyText('Inhalt');">Kopieren</button> |
|
||||||
</div> |
|
||||||
<textarea id="Inhalt" name="Inhalt" class="textarea" placeholder="Inhalt..." rows="20"><%= returntext %> |
|
||||||
</textarea> |
|
||||||
|
|
||||||
|
|
||||||
</figure> |
|
||||||
</div> |
|
||||||
|
|
||||||
</div> |
|
||||||
</section> |
|
||||||
</body> |
|
||||||
|
|
||||||
</html> |
|
Loading…
Reference in new issue