diff --git a/_Project-ID-AdempiereJasper/.classpath b/_Project-ID-AdempiereJasper/.classpath new file mode 100644 index 0000000000..55b46fa462 --- /dev/null +++ b/_Project-ID-AdempiereJasper/.classpath @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/_Project-ID-AdempiereJasper/.project b/_Project-ID-AdempiereJasper/.project new file mode 100644 index 0000000000..b5447837e7 --- /dev/null +++ b/_Project-ID-AdempiereJasper/.project @@ -0,0 +1,17 @@ + + + _Project-ID-AdempiereJasper + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/_Project-ID-AdempiereJasper/Druid-ID-AdempiereJasper.launch b/_Project-ID-AdempiereJasper/Druid-ID-AdempiereJasper.launch new file mode 100644 index 0000000000..e7134b302f --- /dev/null +++ b/_Project-ID-AdempiereJasper/Druid-ID-AdempiereJasper.launch @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/_Project-ID-AdempiereJasper/ReadMe.txt b/_Project-ID-AdempiereJasper/ReadMe.txt new file mode 100644 index 0000000000..6598022097 --- /dev/null +++ b/_Project-ID-AdempiereJasper/ReadMe.txt @@ -0,0 +1,36 @@ +This a template project showing how to organize and store Compiere customizations. + +This is work in progress, so please be patient. + +Any comments and requests for improvements are wellcome. + +Any improvements and patches are very wellcome and highly appreciated. + +HowTo. + +http://prdownloads.sourceforge.net/comxe/_Project-ID-Example.swf?download + +1) Copy "build-ID-001.[bat|sh].sample" into "build-ID-001.[bat|sh]" + +2) Modify "build-ID-001.[bat|sh]" file and set proper setting for: +COMPIERE_HOME +JAVA_HOME + +3) Copy "build-ID-001.properties.sample" into "build-ID-001.properties" + +4) Modify "build-ID-001.properties" file and set proper setting for: +oracle.host= +oracle.port=1521 +oracle.sid= +oracle.search= +oracle.username= +oracle.password= + +5) Open a shell console and execute commands: +"build-ID-001.[bat|sh] createDB" +"build-ID-001.[bat|sh] alterDB" +"build-ID-001.[bat|sh] model" +"build-ID-001.[bat|sh] view" + +Enjoy new functionality. +Records now should be imported into Compiere AD. diff --git a/_Project-ID-AdempiereJasper/boot.properties b/_Project-ID-AdempiereJasper/boot.properties new file mode 100644 index 0000000000..2e899e24fc --- /dev/null +++ b/_Project-ID-AdempiereJasper/boot.properties @@ -0,0 +1,38 @@ +# XML2AD +# Copyright (C) 2005 - 2006 Trifon Trifonov +# $Id: boot.properties,v 1.2 2006/07/27 10:13:32 trifonnt Exp $ + +# +# XML2AD start-up configuration properties +# +# (see API docs for "org.java.plugin.boot" package and documentation and source +# code for "org.compiere.compilo.importer.core" plug-in) +# +# Available runtime properties are: +# applicationRoot - application "home" folder +# all system properties +# +#------------------------------------------------------------------------------- +# XML2AD application plug-in ID +org.java.plugin.boot.applicationPlugin = org.compiere.compilo.importer.core +# Boot-time integrity check mode (full, light, off) +org.java.plugin.boot.integrityCheckMode = light +org.java.plugin.boot.splashImage = ${applicationRoot}/splash.jpg +#------------------------------------------------------------------------------- +# JPF runtime configuration +org.java.plugin.PathResolver = org.java.plugin.standard.ShadingPathResolver +org.java.plugin.standard.ShadingPathResolver.shadowFolder = ${applicationRoot}/temp/.jpf-shadow +org.java.plugin.standard.ShadingPathResolver.unpackMode = smart +#------------------------------------------------------------------------------- +# Folder where to store application data and configuration files +org.compiere.compilo.importer.core.dataFolder = ${applicationRoot}/data +#------------------------------------------------------------------------------- +# If we should start Compiere as Client or Server (Y|N); Default = Y +org.compiere.compilo.importer.core.isClient=Y +org.compiere.compilo.importer.core.ApplicationUserID=SuperUser +org.compiere.compilo.importer.core.ApplicationPassword=System +org.compiere.compilo.importer.core.Role=System Administrator +org.compiere.compilo.importer.core.Client=System +org.compiere.compilo.importer.core.Organization=* +org.compiere.compilo.importer.core.Warehouse= +org.compiere.compilo.importer.core.Language=English diff --git a/_Project-ID-AdempiereJasper/build-ID-001.bat.sample b/_Project-ID-AdempiereJasper/build-ID-001.bat.sample new file mode 100644 index 0000000000..7b022dcb44 --- /dev/null +++ b/_Project-ID-AdempiereJasper/build-ID-001.bat.sample @@ -0,0 +1,10 @@ +REM SET ANT_HOME=I:/dev/apache-ant-1.6.2 +SET ADEMPIERE_HOME=./../_production/Adempiere +REM SET COMPIERE_HOME=./../_production/Compiere2 +SET JAVA_HOME=C:\Trifon\jdk\1.4.2_09 + +@REM Call Ant; +@REM Value of property specified on the command line will +@REM override the value specified in the build file. + +%ANT_HOME%/bin/ant.bat -propertyfile build-ID-001.properties -Dmodel.file=xml/model/Model-ID-001.xml -Dview.file=xml/view/View-ID-001.xml -Ddata.file=xml/data/Data-ID-001.xml -DPropertyFile=%ADEMPIERE_HOME%/Adempiere.properties %* \ No newline at end of file diff --git a/_Project-ID-AdempiereJasper/build-ID-001.properties.sample b/_Project-ID-AdempiereJasper/build-ID-001.properties.sample new file mode 100644 index 0000000000..e88dffff54 --- /dev/null +++ b/_Project-ID-AdempiereJasper/build-ID-001.properties.sample @@ -0,0 +1,11 @@ +oracle.host=HOST +oracle.port=1521 +oracle.sid=SID +oracle.search=orcl +oracle.username=USER_NAME +oracle.password=PASSWORD + +REM compiere.dir=%ADEMPIERE_HOME% + +createSQL.file=sql/CreateTable-Oracle-ID-001.sql +alterSQL.file=sql/AlterTable-Oracle-ID-001.sql \ No newline at end of file diff --git a/_Project-ID-AdempiereJasper/build-ID-001.sh.sample b/_Project-ID-AdempiereJasper/build-ID-001.sh.sample new file mode 100644 index 0000000000..0b5837e275 --- /dev/null +++ b/_Project-ID-AdempiereJasper/build-ID-001.sh.sample @@ -0,0 +1,10 @@ + +# export COMPIERE_HOME=/home/trifon/comap-2.5.3b/_production/Compiere2 +# export JAVA_HOME=/usr/local/java/jdk1.5.0_05 +# export ANT_HOME=/usr/local/java/ant + +# Call Ant; +# Value of property specified on the command line will +# override the value specified in the build file. + +$ANT_HOME/bin/ant -propertyfile build-ID-001.properties -Dmodel.file=xml/model/Model-ID-001.xml -Dview.file=xml/view/View-ID-001.xml -Ddata.file=xml/data/Data-ID-001.xml -DPropertyFile=$COMPIERE_HOME/Compiere.properties $1 \ No newline at end of file diff --git a/_Project-ID-AdempiereJasper/build.xml b/_Project-ID-AdempiereJasper/build.xml new file mode 100644 index 0000000000..03f56240c3 --- /dev/null +++ b/_Project-ID-AdempiereJasper/build.xml @@ -0,0 +1,601 @@ + + + + + + + + + + + AD Customizations Keeper tool. + AD Customizations Keeper helps you to store your Compiere ERP+CRM customizations in xml format. + It uses Druid to build visually tables, columns and other elements from AD. + It uses XML2AD in order to transform set of XML files in several updates towards the database + and insert the GUI you have expressed in XML into the database i.e. into Compiere. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + compiere.dir = ${compiere.dir} + project.classpath = ${project.classpath} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Trifon ---: -DPropertyFile=${PropertyFile} + + + + + + + + + + + + + + Trifon ---: -DPropertyFile=${PropertyFile} + + + + + + + + + + + + + + + + + + + + + + + + + Trifon ---: -DPropertyFile=${PropertyFile} + + + + + + + + + + + + + + + + + + + + + + + + + Trifon ---: -DPropertyFile=${PropertyFile} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/_Project-ID-AdempiereJasper/build/readme.txt b/_Project-ID-AdempiereJasper/build/readme.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/_Project-ID-AdempiereJasper/doc/readme.txt b/_Project-ID-AdempiereJasper/doc/readme.txt new file mode 100644 index 0000000000..36b6ce3837 --- /dev/null +++ b/_Project-ID-AdempiereJasper/doc/readme.txt @@ -0,0 +1 @@ +Here we will place all documentation. \ No newline at end of file diff --git a/_Project-ID-AdempiereJasper/doc/requirements/requirements.txt b/_Project-ID-AdempiereJasper/doc/requirements/requirements.txt new file mode 100644 index 0000000000..70c4de810d --- /dev/null +++ b/_Project-ID-AdempiereJasper/doc/requirements/requirements.txt @@ -0,0 +1,5 @@ +This file contains sample requirements. + +-01) + +-02) \ No newline at end of file diff --git a/_Project-ID-AdempiereJasper/druid/Project-ID-AdempiereJasper.druid b/_Project-ID-AdempiereJasper/druid/Project-ID-AdempiereJasper.druid new file mode 100644 index 0000000000..eeef89af04 --- /dev/null +++ b/_Project-ID-AdempiereJasper/druid/Project-ID-AdempiereJasper.druid @@ -0,0 +1,3687 @@ + + + + + 448 + 239502 + + + + ID-AdempiereJasper-252e-Oracle DB + + + false + true + true + + + +
+ version + date + descr +
+
+
+ + +
+ id + name + sqlName + type + scope + useInDD + useInSumm + width + descr +
+ + 15 + PrKey + primary key + b + t + false + true + 60 + Primary key for a table + + + 16 + Unq + UNIQUE + b + f + false + true + 60 + Unique for a single field + + + 339 + Def + DEFAULT + s + f + false + true + 60 + Field's default value + + + 17 + NotN + NOT NULL + b + f + false + true + 60 + + + + 338 + MUnq + UNIQUE + b + t + false + false + 60 + Unique for several fields + + + 156198 + Udx1 + + b + u + false + false + 60 + + +
+
+ + +
+ name + type + value + descr +
+ + -UnNamed- + b + + + +
+
+ + + + ./_Project-ID-AdempiereJasper/temp/ + + + + + ./_Project-ID-AdempiereJasper/sql/CreateTable-Oracle-ID-001-part.sql + N + + + + + D:\ERP-CRM\compilo\XML2AD-byRed1.2.5.2b\view\View-gen.xml + + + ./_Project-ID-AdempiereJasper/sql/AlterTable-Oracle-ID-001-part.sql + + + + + + + + + + + + + + LONG + + 5 + + + + + false + + none + + +
+ value +
+
+
+ +
+ + + DATE + date + 7 + + + + + false + + none + + +
+ value +
+
+
+ +
+ + + long raw + + 6 + + + + + false + + none + + +
+ value +
+
+
+ +
+ + + CLOB + + 385 + + + + + false + + none + + +
+ value +
+
+
+ +
+ + + nclob + + 386 + + + + + false + + none + + +
+ value +
+
+
+ +
+ + + blob + + 387 + + + + + false + + none + + +
+ value +
+
+
+ +
+ + + bfile + + 388 + + + + + false + + none + + +
+ value +
+
+
+ +
+ + + INTEGER + + 21 + + + + + false + + none + + +
+ value +
+
+
+ +
+ + + NUMBER + + 9705 + + + + + false + + none + + +
+ value +
+
+
+ +
+
+ + + + VARCHAR + + + + + VARCHAR4 + + 2066 + 4 + + + + + false + + none + + +
+ value +
+
+
+
+ + + VARCHAR5 + + 16996 + 5 + + + + + false + + none + + +
+ value +
+
+
+
+ + + VARCHAR6 + + 42 + 6 + + + + + false + + none + + +
+ value +
+
+
+
+ + + VARCHAR10 + + 16969 + 10 + + + + + false + + none + + +
+ value +
+
+
+
+ + + VARCHAR40 + + 179024 + 40 + + + + + false + + none + + +
+ value +
+
+
+
+
+
+ + + VARCHAR2 + + + + + + NVARCHAR2 + + + + + Value40 + + 38 + 40 + + + + + false + + none + + +
+ value +
+
+
+
+ + + Name60 + + 600 + 60 + + + + + false + + none + + +
+ value +
+
+
+
+ + + Description255 + + 601 + 255 + + + + + false + + none + + +
+ value +
+
+
+
+ + + Help2000 + + 602 + 2000 + + + + + false + + none + + +
+ value +
+
+
+
+ + + NVarChar2_4 + + 24108 + 4 + + + + + false + + none + + +
+ value +
+
+
+
+ + + NVarChar2_10 + + 113073 + 10 + + + + + false + + none + + +
+ value +
+
+
+
+ + + NVarChar2_20 + + 6084 + 20 + + + + + false + + none + + +
+ value +
+
+
+
+ + + NVarChar2_120 + + 19152 + 120 + + + + + false + + none + + +
+ value +
+
+
+
+
+
+ + + NUMBER + + + + + ID + + 463 + 10,0 + + + + + false + + none + + +
+ value +
+
+
+
+ + + NUMBER22 + + 6811 + 22 + + + + + false + + none + + +
+ value +
+
+
+
+
+
+ + + RAW + + + + + + CHAR + + + + + YesNo + + 24 + 1 + + + + + false + + set + + +
+ value +
+ + Y + + + N + +
+
+
+ + + Char1 + + 2341 + 1 + + + + + false + + none + + +
+ value +
+
+
+
+ + + CHAR2 + + 16824 + 2 + + + + + false + + none + + +
+ value +
+
+
+
+
+
+ + + NCHAR + + + + + + OTHER + + + + + OTHER4000 + + 177625 + 4000 + + + + + false + + none + + +
+ value +
+
+
+
+ + + OTHER120 + + 177663 + 120 + + + + + false + + none + + +
+ value +
+
+
+
+ + + OTHER510 + + 177665 + 510 + + + + + false + + none + + +
+ value +
+
+
+
+ + + OTHER40 + + 177673 + 40 + + + + + false + + none + + +
+ value +
+
+
+
+ + + OTHER80 + + 179066 + 80 + + + + + false + + none + + +
+ value +
+
+
+
+
+
+
+
+ + + + + + New Tables + + + +

+ This folder contains new tables created by COMAP developers. +

+

+ Here you will find mostly I_xxx tables, used for imports. +

+
+
+ + + Modified Tables + + + +

+ This is list with Modified Tables. +

+

+ You can generate ALTER TABLE ... ADD ... SQL Statements by starting Velocity. +

+
+ + + +
+ name + type + value + descr +
+
+
+ + + + + AD_Process + 239338 + + + + + + + + + + + +
+ id + index + name + ts + bitmap + stats + noSort +
+ + 156198 + Udx1 + + 0 + false + false + false + +
+
+
+
+
+ + + + false + false + false + false + + false + + + + + s + 0 + JasperReport + 239341 + n + n + 0 + 601 + + + + + Jasper Report + Text + Jasper Report + In this column you store the JasperReport filename + + + + +
+
+ + + Existing Tables + + + + + +
+ name + type + value + descr +
+
+
+ + + + + AD_Client + 218050 + + + + + + + + + + + +
+ id + index + name + ts + bitmap + stats + noSort +
+ + 156198 + Udx1 + + 0 + false + false + false + + + 156198 + Udx1 + + 0 + false + false + false + +
+
+
+
+
+ + + + false + false + false + true + + false + + + + + s + 0 + AD_Client_ID + 218051 + n + n + 0 + 463 + + + + + + + false + true + false + false + + false + + + + + s + 0 + AD_Org_ID + 218052 + n + n + 0 + 463 + + + + + + + false + true + false + false + 'Y' + false + + + + + s + 0 + IsActive + 218053 + n + n + 0 + 24 + + + + + + + false + true + false + false + SYSDATE + false + + + + + s + 0 + Created + 218054 + n + n + 0 + 7 + + + + + + + false + true + false + false + + false + + + + + s + 0 + CreatedBy + 218055 + n + n + 0 + 21 + + + + + + + false + true + false + false + SYSDATE + false + + + + + s + 0 + Updated + 218056 + n + n + 0 + 7 + + + + + + + false + true + false + false + + false + + + + + s + 0 + UpdatedBy + 218057 + n + n + 0 + 21 + + + + + + + false + true + false + false + + false + + + + + s + 0 + Value + 218058 + n + n + 0 + 38 + + + + + + + true + true + false + false + + false + + + + + s + 0 + Name + 218059 + n + n + 0 + 600 + + + + + + + false + false + false + false + + false + + + + + s + 0 + Description + 218060 + n + n + 0 + 601 + + + +

+ +

+
+
+ + + + false + false + false + false + + false + + + + + s + 0 + SMTPHOST + 218061 + n + n + 0 + 600 + + + +

+ +

+
+
+ + + + false + false + false + false + + false + + + + + s + 0 + REQUESTEMAIL + 218062 + n + n + 0 + 600 + + + +

+ +

+
+
+ + + + false + false + false + false + + false + + + + + s + 0 + REQUESTUSER + 218063 + n + n + 0 + 600 + + + +

+ +

+
+
+ + + + false + false + false + false + + false + + + + + s + 0 + REQUESTUSERPW + 218064 + n + n + 0 + 6084 + + + +

+ +

+
+
+ + + + false + false + false + false + + false + + + + + s + 0 + REQUESTFOLDER + 218065 + n + n + 0 + 6084 + + + +

+ +

+
+
+ + + + false + false + false + false + + false + + + + + s + 0 + AD_LANGUAGE + 218066 + n + n + 0 + 42 + + + +

+ +

+
+
+ + + + false + true + false + false + 'N' + false + + + + + s + 0 + ISMULTILINGUALDOCUMENT + 218067 + n + n + 0 + 24 + + + +

+ +

+
+
+ + + + false + true + false + false + 'N' + false + + + + + s + 0 + ISSMTPAUTHORIZATION + 218068 + n + n + 0 + 24 + + + +

+ +

+
+
+ + + + false + true + false + false + 'N' + false + + + + + s + 0 + ISUSEBETAFUNCTIONS + 218069 + n + n + 0 + 24 + + + +

+ +

+
+
+ + + + false + false + false + false + + false + + + + + s + 0 + LDAPQUERY + 218070 + n + n + 0 + 601 + + + +

+ +

+
+
+ + + + false + false + false + false + + false + + + + + s + 0 + MODELVALIDATIONCLASSES + 218071 + n + n + 0 + 601 + + + +

+ +

+
+
+ + + + false + true + false + false + 'N' + false + + + + + s + 0 + AUTOARCHIVE + 218072 + n + n + 0 + 24 + + + +

+ +

+
+
+ + + + false + true + false + false + 'F' + false + + + + + s + 0 + MMPOLICY + 218073 + n + n + 0 + 24 + + + +

+ +

+
+
+ + + + false + false + false + false + + false + + + + + s + 0 + EMAILTEST + 218074 + n + n + 0 + 24 + + + +

+ +

+
+
+ + + + false + true + false + false + 'N' + false + + + + + s + 0 + ISSERVEREMAIL + 218075 + n + n + 0 + 24 + + + +

+ +

+
+
+ + + + false + false + false + false + + false + + + + + s + 0 + DOCUMENTDIR + 218076 + n + n + 0 + 600 + + + +

+ +

+
+
+
+ + + +
+ name + type + value + descr +
+
+
+ + + + + AD_Org + 218077 + + + + + + + + + + + +
+ id + index + name + ts + bitmap + stats + noSort +
+ + 156198 + Udx1 + + 0 + false + false + false + + + 156198 + Udx1 + + 0 + false + false + false + +
+
+
+
+
+ + + + false + false + false + true + + false + + + + + s + 0 + AD_Org_ID + 218078 + n + n + 0 + 21 + + + +

+ +

+
+
+ + + + true + true + false + false + + false + + + + + s + 0 + AD_Client_ID + 218079 + n + n + 0 + 463 + + + + + + + false + true + false + false + 'Y' + false + + + + + s + 0 + IsActive + 218080 + n + n + 0 + 24 + + + + + + + false + true + false + false + SYSDATE + false + + + + + s + 0 + Created + 218081 + n + n + 0 + 7 + + + +

+ +

+
+
+ + + + false + true + false + false + + false + + + + + s + 0 + CreatedBy + 218082 + n + n + 0 + 21 + + + +

+ +

+
+
+ + + + false + true + false + false + SYSDATE + false + + + + + s + 0 + Updated + 218083 + n + n + 0 + 7 + + + +

+ +

+
+
+ + + + false + true + false + false + + false + + + + + s + 0 + UpdatedBy + 218084 + n + n + 0 + 21 + + + +

+ +

+
+
+ + + + true + true + false + false + + false + + + + + s + 0 + Value + 218085 + n + n + 0 + 38 + + + +

+ +

+
+
+ + + + false + true + false + false + + false + + + + + s + 0 + Name + 218086 + n + n + 0 + 600 + + + +

+ +

+
+
+ + + + false + false + false + false + + false + + + + + s + 0 + Description + 218087 + n + n + 0 + 601 + + + +

+ +

+
+
+ + + + false + true + false + false + 'N' + false + + + + + s + 0 + IsSummary + 218088 + n + n + 0 + 24 + + + +

+ +

+
+
+
+
+ + + Template Tables + + + +

+ This folder contains tables useful when developer want to create new tables. +

+

+ How to use: +

+

+ 1) Copy some of template tables. +

+

+ 2) Paste it to proper folder. +

+

+ 3) Rename template table. +

+

+ 4) Add new columns, in case template table has more columns then you need then just delete them. +

+
+ + + +
+ name + type + value + descr +
+
+
+ + + + + TEMPLATE + 218089 + + + + + + + + + + + +
+ id + index + name + ts + bitmap + stats + noSort +
+ + 156198 + Udx1 + + 0 + false + false + false + + + 156198 + Udx1 + + 0 + false + false + false + +
+
+
+
+
+ + + + false + false + false + true + + false + + + + + s + 0 + TEMPLATE_ID + 218090 + n + n + 0 + 463 + + + + + ID + + + + + + + + false + true + false + false + + false + + + + + s + 218051 + AD_Client_ID + 218091 + n + n + 218050 + 0 + + + + + Table Direct + + + + + + + + false + true + false + false + + false + + + + + s + 218078 + AD_Org_ID + 218092 + n + n + 218077 + 0 + + + + + Table Direct + + + + + + + + false + true + false + false + 'Y' + false + + + + + s + 0 + IsActive + 218093 + n + n + 0 + 24 + + + + + Yes-No + + + + + + + + false + true + false + false + SYSDATE + false + + + + + s + 0 + Created + 218094 + n + n + 0 + 7 + + + + + Date+Time + + + + + + + + false + true + false + false + + false + + + + + s + 0 + CreatedBy + 218095 + n + n + 0 + 463 + + + + + Table + + + + + + + + false + true + false + false + SYSDATE + false + + + + + s + 0 + Updated + 218096 + n + n + 0 + 7 + + + + + Date+Time + + + + + + + + false + true + false + false + + false + + + + + s + 0 + UpdatedBy + 218097 + n + n + 0 + 463 + + + + + Table + + + + + + + + false + true + false + false + + false + + + + + s + 0 + Value + 218098 + n + n + 0 + 38 + + + + + String + + + + + + + + false + true + false + false + + false + + + + + s + 0 + Name + 218099 + n + n + 0 + 600 + + + + + String + + + + + + + + false + false + false + false + + false + + + + + s + 0 + Description + 218100 + n + n + 0 + 601 + + + + + String + + + + + + + + false + false + false + false + + false + + + + + s + 0 + Help + 218101 + n + n + 0 + 602 + + + + + Text + + + + +
+ + + +
+ name + type + value + descr +
+
+
+ + + + + TEMPLATE_TRL + 237057 + + + + + + + + + + + +
+ id + index + name + ts + bitmap + stats + noSort +
+ + 156198 + Udx1 + + 0 + false + false + false + + + 156198 + Udx1 + + 0 + false + false + false + +
+
+
+
+
+ + + + false + false + false + true + + false + + + + + s + 0 + TEMPLATE_ID + 237058 + n + n + 0 + 463 + + + + + ID + + + + + + + + false + false + false + true + + false + + + + + s + 0 + AD_Language + 237097 + n + n + 0 + 463 + + + + + + + false + true + false + false + + false + + + + + s + 218051 + AD_Client_ID + 237059 + n + n + 218050 + 0 + + + + + Table Direct + + + + + + + + false + true + false + false + + false + + + + + s + 218078 + AD_Org_ID + 237060 + n + n + 218077 + 0 + + + + + Table Direct + + + + + + + + false + true + false + false + 'Y' + false + + + + + s + 0 + IsActive + 237061 + n + n + 0 + 24 + + + + + Yes-No + + + + + + + + false + true + false + false + SYSDATE + false + + + + + s + 0 + Created + 237062 + n + n + 0 + 7 + + + + + Date+Time + + + + + + + + false + true + false + false + + false + + + + + s + 0 + CreatedBy + 237063 + n + n + 0 + 463 + + + + + Table + + + + + + + + false + true + false + false + SYSDATE + false + + + + + s + 0 + Updated + 237064 + n + n + 0 + 7 + + + + + Date+Time + + + + + + + + false + true + false + false + + false + + + + + s + 0 + UpdatedBy + 237065 + n + n + 0 + 463 + + + + + Table + + + + + + + + false + true + false + false + 'N' + false + + + + + s + 0 + IsTranslated + 237101 + n + n + 0 + 24 + + + + + + + false + true + false + false + + false + + + + + s + 0 + Value + 237066 + n + n + 0 + 38 + + + + + String + + + + + + + + false + true + false + false + + false + + + + + s + 0 + Name + 237067 + n + n + 0 + 600 + + + + + String + + + + + + + + false + false + false + false + + false + + + + + s + 0 + Description + 237068 + n + n + 0 + 601 + + + + + String + + + + + + + + false + false + false + false + + false + + + + + s + 0 + Help + 237069 + n + n + 0 + 602 + + + + + Text + + + + +
+ + + +
+ name + type + value + descr +
+
+
+ + + + + I_TEMPLATE + 237117 + + + + + + + + + + + +
+ id + index + name + ts + bitmap + stats + noSort +
+ + 156198 + Udx1 + + 0 + false + false + false + + + 156198 + Udx1 + + 0 + false + false + false + +
+
+
+
+
+ + + + false + false + false + true + + false + + + + + s + 0 + I_TEMPLATE_ID + 237157 + n + n + 0 + 463 + + + + + + + false + false + false + false + + false + + + + + s + 0 + TEMPLATE_ID + 237118 + n + n + 0 + 463 + + + + + Table Direct + + + + + + + + false + false + false + false + + false + + + + + s + 0 + AD_Client_Value + 237363 + n + n + 0 + 38 + + + + + String + Client Key + + + + + + + + false + true + false + false + + false + + + + + s + 218051 + AD_Client_ID + 237119 + n + n + 218050 + 0 + + + + + Table Direct + + + + + + + + false + false + false + false + + false + + + + + s + 0 + AD_Org_Value + 237367 + n + n + 0 + 38 + + + + + + + false + true + false + false + + false + + + + + s + 218078 + AD_Org_ID + 237120 + n + n + 218077 + 0 + + + + + Table Direct + + + + + + + + false + true + false + false + 'Y' + false + + + + + s + 0 + IsActive + 237121 + n + n + 0 + 24 + + + + + Yes-No + + + + + + + + false + true + false + false + SYSDATE + false + + + + + s + 0 + Created + 237122 + n + n + 0 + 7 + + + + + Date+Time + + + + + + + + false + true + false + false + + false + + + + + s + 0 + CreatedBy + 237123 + n + n + 0 + 463 + + + + + Table + + + + + + + + false + true + false + false + SYSDATE + false + + + + + s + 0 + Updated + 237124 + n + n + 0 + 7 + + + + + Date+Time + + + + + + + + false + true + false + false + + false + + + + + s + 0 + UpdatedBy + 237125 + n + n + 0 + 463 + + + + + Table + + + + + + + + false + false + false + false + + false + + + + + s + 0 + Value + 237126 + n + n + 0 + 38 + + + + + String + + + + + + + + false + false + false + false + + false + + + + + s + 0 + Name + 237127 + n + n + 0 + 600 + + + + + String + + + + + + + + false + false + false + false + + false + + + + + s + 0 + Description + 237128 + n + n + 0 + 601 + + + + + String + + + + + + + + false + false + false + false + + false + + + + + s + 0 + Help + 237129 + n + n + 0 + 602 + + + + + Text + + + + + + + + false + true + false + false + 'N' + false + + + + + s + 0 + I_IsImported + 237371 + n + n + 0 + 24 + + + + + Yes-No + + + + + + + + false + false + false + false + + false + + + + + s + 0 + I_ErrorMsg + 237375 + n + n + 0 + 602 + + + + + Text + + + + + + + + false + false + false + false + + false + + + + + s + 0 + Processing + 237379 + n + n + 0 + 2341 + + + + + Button + + + + + + + + false + true + false + false + 'N' + false + + + + + s + 0 + Processed + 237383 + n + n + 0 + 24 + + + + + Yes-No + + + + +
+
+
+
+
diff --git a/_Project-ID-AdempiereJasper/dtds/Data_v1.dtd b/_Project-ID-AdempiereJasper/dtds/Data_v1.dtd new file mode 100644 index 0000000000..d369f5d15f --- /dev/null +++ b/_Project-ID-AdempiereJasper/dtds/Data_v1.dtd @@ -0,0 +1,37 @@ + + + + + + + + + + + diff --git a/_Project-ID-AdempiereJasper/dtds/Model_v1.dtd b/_Project-ID-AdempiereJasper/dtds/Model_v1.dtd new file mode 100644 index 0000000000..6b17924049 --- /dev/null +++ b/_Project-ID-AdempiereJasper/dtds/Model_v1.dtd @@ -0,0 +1,68 @@ + + + + + + + + + + + diff --git a/_Project-ID-AdempiereJasper/dtds/View_v1.dtd b/_Project-ID-AdempiereJasper/dtds/View_v1.dtd new file mode 100644 index 0000000000..14efb6d9c7 --- /dev/null +++ b/_Project-ID-AdempiereJasper/dtds/View_v1.dtd @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/_Project-ID-AdempiereJasper/log4j.properties b/_Project-ID-AdempiereJasper/log4j.properties new file mode 100644 index 0000000000..00fec65fb4 --- /dev/null +++ b/_Project-ID-AdempiereJasper/log4j.properties @@ -0,0 +1,37 @@ +# JPF-Demo +# Copyright (C) 2005 - 2006 Trifon Trifonov +# $Id: log4j.properties,v 1.1 2006/06/05 15:13:40 trifonnt Exp $ + +applicationRoot = . + +# +# Log4j configuration +# Available priorities are: OFF, FATAL, ERROR, WARN, INFO, DEBUG, ALL +# + +log4j.rootLogger = ALL,console +log4j.logger.org.compiere.compilo.importer.core = ALL,importer +log4j.logger.org.java.plugin = ALL,jpf + +log4j.appender.console = org.apache.log4j.varia.NullAppender +#log4j.appender.console = org.apache.log4j.ConsoleAppender +log4j.appender.console.layout = org.apache.log4j.PatternLayout +log4j.appender.console.layout.conversionPattern = %d [%t] %-5p %c %m%n + +log4j.appender.importer = org.apache.log4j.FileAppender +log4j.appender.importer.file = ${applicationRoot}/logs/impoprter.log +log4j.appender.importer.layout = org.apache.log4j.PatternLayout +log4j.appender.importer.layout.conversionPattern = %d [%t] %-5p %c %m%n +log4j.appender.importer.append = false + +log4j.appender.jpf = org.apache.log4j.FileAppender +log4j.appender.jpf.file = ${applicationRoot}/logs/jpf.log +log4j.appender.jpf.layout = org.apache.log4j.PatternLayout +log4j.appender.jpf.layout.conversionPattern = %d [%t] %-5p %c %m%n +log4j.appender.jpf.append = false + +#log4j.appender.other = org.apache.log4j.FileAppender +#log4j.appender.other.file = ${applicationRoot}/logs/other.log +#log4j.appender.other.layout = org.apache.log4j.PatternLayout +#log4j.appender.other.layout.conversionPattern = %d [%t] %-5p %c %m%n +#log4j.appender.other.append = false diff --git a/_Project-ID-AdempiereJasper/logs/readme.txt b/_Project-ID-AdempiereJasper/logs/readme.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/_Project-ID-AdempiereJasper/patch/dbPort/src/org/compiere/model/X_AD_Process.java b/_Project-ID-AdempiereJasper/patch/dbPort/src/org/compiere/model/X_AD_Process.java new file mode 100644 index 0000000000..cfd3661a0a --- /dev/null +++ b/_Project-ID-AdempiereJasper/patch/dbPort/src/org/compiere/model/X_AD_Process.java @@ -0,0 +1,487 @@ +/****************************************************************************** + * Product: Adempiere ERP & CRM Smart Business Solution * + * Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. * + * This program is free software; + you can redistribute it and/or modify it * + * under the terms version 2 of the GNU General Public License as published * + * by the Free Software Foundation. This program is distributed in the hope * + * that it will be useful, but WITHOUT ANY WARRANTY; + without even the implied * + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * + * See the GNU General Public License for more details. * + * You should have received a copy of the GNU General Public License along * + * with this program; + if not, write to the Free Software Foundation, Inc., * + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. * + * For the text or an alternative of this public license, you may reach us * + * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA * + * or via info@compiere.org or http://www.compiere.org/license.html * + *****************************************************************************/ +package org.compiere.model; + +/** Generated Model - DO NOT CHANGE */ +import java.util.*; +import java.sql.*; +import java.math.*; +import org.compiere.util.*; +/** Generated Model for AD_Process + * @author Jorg Janke (generated) + * @version Release 3.1.3 - $Id$ */ +public class X_AD_Process extends PO +{ +/** Standard Constructor +@param ctx context +@param AD_Process_ID id +@param trxName transaction +*/ +public X_AD_Process (Properties ctx, int AD_Process_ID, String trxName) +{ +super (ctx, AD_Process_ID, trxName); +/** if (AD_Process_ID == 0) +{ +setAD_Process_ID (0); +setAccessLevel (null); +setEntityType (null); // U +setIsBetaFunctionality (false); +setIsReport (false); +setIsServerProcess (false); +setName (null); +setValue (null); +} + */ +} +/** Load Constructor +@param ctx context +@param rs result set +@param trxName transaction +*/ +public X_AD_Process (Properties ctx, ResultSet rs, String trxName) +{ +super (ctx, rs, trxName); +} +/** AD_Table_ID=284 */ +public static final int Table_ID=MTable.getTable_ID("AD_Process"); + +/** TableName=AD_Process */ +public static final String Table_Name="AD_Process"; + +protected static KeyNamePair Model = new KeyNamePair(Table_ID,"AD_Process"); + +protected BigDecimal accessLevel = BigDecimal.valueOf(4); +/** AccessLevel +@return 4 - System +*/ +protected int get_AccessLevel() +{ +return accessLevel.intValue(); +} +/** Load Meta Data +@param ctx context +@return PO Info +*/ +protected POInfo initPO (Properties ctx) +{ +POInfo poi = POInfo.getPOInfo (ctx, Table_ID); +return poi; +} +/** Info +@return info +*/ +public String toString() +{ +StringBuffer sb = new StringBuffer ("X_AD_Process[").append(get_ID()).append("]"); +return sb.toString(); +} +/** Set Print Format. +@param AD_PrintFormat_ID Data Print Format */ +public void setAD_PrintFormat_ID (int AD_PrintFormat_ID) +{ +if (AD_PrintFormat_ID <= 0) set_Value ("AD_PrintFormat_ID", null); + else +set_Value ("AD_PrintFormat_ID", Integer.valueOf(AD_PrintFormat_ID)); +} +/** Get Print Format. +@return Data Print Format */ +public int getAD_PrintFormat_ID() +{ +Integer ii = (Integer)get_Value("AD_PrintFormat_ID"); +if (ii == null) return 0; +return ii.intValue(); +} +/** Set Process. +@param AD_Process_ID Process or Report */ +public void setAD_Process_ID (int AD_Process_ID) +{ +if (AD_Process_ID < 1) throw new IllegalArgumentException ("AD_Process_ID is mandatory."); +set_ValueNoCheck ("AD_Process_ID", Integer.valueOf(AD_Process_ID)); +} +/** Get Process. +@return Process or Report */ +public int getAD_Process_ID() +{ +Integer ii = (Integer)get_Value("AD_Process_ID"); +if (ii == null) return 0; +return ii.intValue(); +} +/** Set Report View. +@param AD_ReportView_ID View used to generate this report */ +public void setAD_ReportView_ID (int AD_ReportView_ID) +{ +if (AD_ReportView_ID <= 0) set_Value ("AD_ReportView_ID", null); + else +set_Value ("AD_ReportView_ID", Integer.valueOf(AD_ReportView_ID)); +} +/** Get Report View. +@return View used to generate this report */ +public int getAD_ReportView_ID() +{ +Integer ii = (Integer)get_Value("AD_ReportView_ID"); +if (ii == null) return 0; +return ii.intValue(); +} +/** Set Workflow. +@param AD_Workflow_ID Workflow or combination of tasks */ +public void setAD_Workflow_ID (int AD_Workflow_ID) +{ +if (AD_Workflow_ID <= 0) set_Value ("AD_Workflow_ID", null); + else +set_Value ("AD_Workflow_ID", Integer.valueOf(AD_Workflow_ID)); +} +/** Get Workflow. +@return Workflow or combination of tasks */ +public int getAD_Workflow_ID() +{ +Integer ii = (Integer)get_Value("AD_Workflow_ID"); +if (ii == null) return 0; +return ii.intValue(); +} + +/** AccessLevel AD_Reference_ID=5 */ +public static final int ACCESSLEVEL_AD_Reference_ID=5; +/** Organization = 1 */ +public static final String ACCESSLEVEL_Organization = "1"; +/** Client only = 2 */ +public static final String ACCESSLEVEL_ClientOnly = "2"; +/** Client+Organization = 3 */ +public static final String ACCESSLEVEL_ClientPlusOrganization = "3"; +/** System only = 4 */ +public static final String ACCESSLEVEL_SystemOnly = "4"; +/** System+Client = 6 */ +public static final String ACCESSLEVEL_SystemPlusClient = "6"; +/** All = 7 */ +public static final String ACCESSLEVEL_All = "7"; +/** Set Data Access Level. +@param AccessLevel Access Level required */ +public void setAccessLevel (String AccessLevel) +{ +if (AccessLevel == null) throw new IllegalArgumentException ("AccessLevel is mandatory"); +if (AccessLevel.equals("1") || AccessLevel.equals("2") || AccessLevel.equals("3") || AccessLevel.equals("4") || AccessLevel.equals("6") || AccessLevel.equals("7")); + else throw new IllegalArgumentException ("AccessLevel Invalid value - " + AccessLevel + " - Reference_ID=5 - 1 - 2 - 3 - 4 - 6 - 7"); +if (AccessLevel.length() > 1) +{ +log.warning("Length > 1 - truncated"); +AccessLevel = AccessLevel.substring(0,0); +} +set_Value ("AccessLevel", AccessLevel); +} +/** Get Data Access Level. +@return Access Level required */ +public String getAccessLevel() +{ +return (String)get_Value("AccessLevel"); +} +/** Set Classname. +@param Classname Java Classname */ +public void setClassname (String Classname) +{ +if (Classname != null && Classname.length() > 60) +{ +log.warning("Length > 60 - truncated"); +Classname = Classname.substring(0,59); +} +set_Value ("Classname", Classname); +} +/** Get Classname. +@return Java Classname */ +public String getClassname() +{ +return (String)get_Value("Classname"); +} +/** Set Description. +@param Description Optional short description of the record */ +public void setDescription (String Description) +{ +if (Description != null && Description.length() > 255) +{ +log.warning("Length > 255 - truncated"); +Description = Description.substring(0,254); +} +set_Value ("Description", Description); +} +/** Get Description. +@return Optional short description of the record */ +public String getDescription() +{ +return (String)get_Value("Description"); +} + +/** EntityType AD_Reference_ID=389 */ +public static final int ENTITYTYPE_AD_Reference_ID=389; +/** Set Entity Type. +@param EntityType Dictionary Entity Type; + Determines ownership and synchronization */ +public void setEntityType (String EntityType) +{ +if (EntityType.length() > 4) +{ +log.warning("Length > 4 - truncated"); +EntityType = EntityType.substring(0,3); +} +set_Value ("EntityType", EntityType); +} +/** Get Entity Type. +@return Dictionary Entity Type; + Determines ownership and synchronization */ +public String getEntityType() +{ +return (String)get_Value("EntityType"); +} +/** Set Comment/Help. +@param Help Comment or Hint */ +public void setHelp (String Help) +{ +if (Help != null && Help.length() > 2000) +{ +log.warning("Length > 2000 - truncated"); +Help = Help.substring(0,1999); +} +set_Value ("Help", Help); +} +/** Get Comment/Help. +@return Comment or Hint */ +public String getHelp() +{ +return (String)get_Value("Help"); +} +/** Set Beta Functionality. +@param IsBetaFunctionality This functionality is considered Beta */ +public void setIsBetaFunctionality (boolean IsBetaFunctionality) +{ +set_Value ("IsBetaFunctionality", Boolean.valueOf(IsBetaFunctionality)); +} +/** Get Beta Functionality. +@return This functionality is considered Beta */ +public boolean isBetaFunctionality() +{ +Object oo = get_Value("IsBetaFunctionality"); +if (oo != null) +{ + if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); +} +return false; +} +/** Set Direct print. +@param IsDirectPrint Print without dialog */ +public void setIsDirectPrint (boolean IsDirectPrint) +{ +set_Value ("IsDirectPrint", Boolean.valueOf(IsDirectPrint)); +} +/** Get Direct print. +@return Print without dialog */ +public boolean isDirectPrint() +{ +Object oo = get_Value("IsDirectPrint"); +if (oo != null) +{ + if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); +} +return false; +} +/** Set Report. +@param IsReport Indicates a Report record */ +public void setIsReport (boolean IsReport) +{ +set_Value ("IsReport", Boolean.valueOf(IsReport)); +} +/** Get Report. +@return Indicates a Report record */ +public boolean isReport() +{ +Object oo = get_Value("IsReport"); +if (oo != null) +{ + if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); +} +return false; +} +/** Set Server Process. +@param IsServerProcess Run this Process on Server only */ +public void setIsServerProcess (boolean IsServerProcess) +{ +set_Value ("IsServerProcess", Boolean.valueOf(IsServerProcess)); +} +/** Get Server Process. +@return Run this Process on Server only */ +public boolean isServerProcess() +{ +Object oo = get_Value("IsServerProcess"); +if (oo != null) +{ + if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); + return "Y".equals(oo); +} +return false; +} +/** Set Jasper Report. +@param JasperReport In this column you store the JasperReport filename */ +public void setJasperReport (String JasperReport) +{ +if (JasperReport != null && JasperReport.length() > 255) +{ +log.warning("Length > 255 - truncated"); +JasperReport = JasperReport.substring(0,254); +} +set_Value ("JasperReport", JasperReport); +} +/** Get Jasper Report. +@return In this column you store the JasperReport filename */ +public String getJasperReport() +{ +return (String)get_Value("JasperReport"); +} +/** Set Name. +@param Name Alphanumeric identifier of the entity */ +public void setName (String Name) +{ +if (Name == null) throw new IllegalArgumentException ("Name is mandatory."); +if (Name.length() > 60) +{ +log.warning("Length > 60 - truncated"); +Name = Name.substring(0,59); +} +set_Value ("Name", Name); +} +/** Get Name. +@return Alphanumeric identifier of the entity */ +public String getName() +{ +return (String)get_Value("Name"); +} +/** Set Procedure. +@param ProcedureName Name of the Database Procedure */ +public void setProcedureName (String ProcedureName) +{ +if (ProcedureName != null && ProcedureName.length() > 60) +{ +log.warning("Length > 60 - truncated"); +ProcedureName = ProcedureName.substring(0,59); +} +set_Value ("ProcedureName", ProcedureName); +} +/** Get Procedure. +@return Name of the Database Procedure */ +public String getProcedureName() +{ +return (String)get_Value("ProcedureName"); +} + +/** ShowHelp AD_Reference_ID=50007 */ +public static final int SHOWHELP_AD_Reference_ID=50007; +/** Ask user (for future use) = A */ +public static final String SHOWHELP_AskUserForFutureUse = "A"; +/** Don't show help = N */ +public static final String SHOWHELP_DonTShowHelp = "N"; +/** Show Help = Y */ +public static final String SHOWHELP_ShowHelp = "Y"; +/** Set Show Help. +@param ShowHelp Show Help */ +public void setShowHelp (String ShowHelp) +{ +if (ShowHelp == null || ShowHelp.equals("A") || ShowHelp.equals("N") || ShowHelp.equals("Y")); + else throw new IllegalArgumentException ("ShowHelp Invalid value - " + ShowHelp + " - Reference_ID=50007 - A - N - Y"); +if (ShowHelp != null && ShowHelp.length() > 1) +{ +log.warning("Length > 1 - truncated"); +ShowHelp = ShowHelp.substring(0,0); +} +set_Value ("ShowHelp", ShowHelp); +} +/** Get Show Help. +@return Show Help */ +public String getShowHelp() +{ +return (String)get_Value("ShowHelp"); +} +/** Set Statistic Count. +@param Statistic_Count Internal statistics how often the entity was used */ +public void setStatistic_Count (int Statistic_Count) +{ +set_Value ("Statistic_Count", Integer.valueOf(Statistic_Count)); +} +/** Get Statistic Count. +@return Internal statistics how often the entity was used */ +public int getStatistic_Count() +{ +Integer ii = (Integer)get_Value("Statistic_Count"); +if (ii == null) return 0; +return ii.intValue(); +} +/** Set Statistic Seconds. +@param Statistic_Seconds Internal statistics how many seconds a process took */ +public void setStatistic_Seconds (int Statistic_Seconds) +{ +set_Value ("Statistic_Seconds", Integer.valueOf(Statistic_Seconds)); +} +/** Get Statistic Seconds. +@return Internal statistics how many seconds a process took */ +public int getStatistic_Seconds() +{ +Integer ii = (Integer)get_Value("Statistic_Seconds"); +if (ii == null) return 0; +return ii.intValue(); +} +/** Set Search Key. +@param Value Search key for the record in the format required - must be unique */ +public void setValue (String Value) +{ +if (Value == null) throw new IllegalArgumentException ("Value is mandatory."); +if (Value.length() > 40) +{ +log.warning("Length > 40 - truncated"); +Value = Value.substring(0,39); +} +set_Value ("Value", Value); +} +/** Get Search Key. +@return Search key for the record in the format required - must be unique */ +public String getValue() +{ +return (String)get_Value("Value"); +} +/** Get Record ID/ColumnName +@return ID/ColumnName pair +*/public KeyNamePair getKeyNamePair() +{ +return new KeyNamePair(get_ID(), getValue()); +} +/** Set Workflow Key. +@param WorkflowValue Key of the Workflow to start */ +public void setWorkflowValue (String WorkflowValue) +{ +if (WorkflowValue != null && WorkflowValue.length() > 40) +{ +log.warning("Length > 40 - truncated"); +WorkflowValue = WorkflowValue.substring(0,39); +} +set_Value ("WorkflowValue", WorkflowValue); +} +/** Get Workflow Key. +@return Key of the Workflow to start */ +public String getWorkflowValue() +{ +return (String)get_Value("WorkflowValue"); +} +} diff --git a/_Project-ID-AdempiereJasper/plugins/src/org.compiere.compilo.importer.jasperreports/build.xml b/_Project-ID-AdempiereJasper/plugins/src/org.compiere.compilo.importer.jasperreports/build.xml new file mode 100644 index 0000000000..0f96a9c5bb --- /dev/null +++ b/_Project-ID-AdempiereJasper/plugins/src/org.compiere.compilo.importer.jasperreports/build.xml @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + + + + + Building ${plugin.id} plug-in to folder ${plugin.home} + + + + + + + + + + + + + + + + + diff --git a/_Project-ID-AdempiereJasper/plugins/src/org.compiere.compilo.importer.jasperreports/doc/api/readme.txt b/_Project-ID-AdempiereJasper/plugins/src/org.compiere.compilo.importer.jasperreports/doc/api/readme.txt new file mode 100644 index 0000000000..e69de29bb2 diff --git a/_Project-ID-AdempiereJasper/plugins/src/org.compiere.compilo.importer.jasperreports/doc/changeLog.txt b/_Project-ID-AdempiereJasper/plugins/src/org.compiere.compilo.importer.jasperreports/doc/changeLog.txt new file mode 100644 index 0000000000..81ddaa1e24 --- /dev/null +++ b/_Project-ID-AdempiereJasper/plugins/src/org.compiere.compilo.importer.jasperreports/doc/changeLog.txt @@ -0,0 +1,28 @@ +_Project-ID-TEMPLATE +311.0.2 + * Migrated to core plugin version 311.0.2 + * Added example of field, reference and ref_list translations + +253.2.12 + * Used Standard plugin version 253.2.12 + * Added example file how to import PA_Report - /xml/data/PA_Report.xml + * Added example file how to import PA_ReportColumnSet, PA_ReportColumn - /xml/data/PA_ReportColumnSet.xml + * Added example file how to import PA_ReportLineSet, PA_ReportLine, PA_ReportSource - /xml/data/PA_ReportLineSet.xml + +253.2.11 + * Used Standard plugin version 253.2.11 + * Added example file how to import M_Product_Category - /xml/data/M_Product_Category.xml + +253.2.6 + * Migrated to core plugin version 253.2.6 + +253.2.5b + * Added changeLog.txt in template plugin. + * Generated zip file will not include xml files in folder /result/compiere/... + * Used new splash. Thank's to Sergey Vishniakov from compiere.lv team!!! + +253.2.5a + * Replaces 253.2.5 as there was error in uploaded file. + +253.2.5 + * Migrated to core plugin version 253.2.5 \ No newline at end of file diff --git a/_Project-ID-AdempiereJasper/plugins/src/org.compiere.compilo.importer.jasperreports/plugin.xml b/_Project-ID-AdempiereJasper/plugins/src/org.compiere.compilo.importer.jasperreports/plugin.xml new file mode 100644 index 0000000000..01e3c38539 --- /dev/null +++ b/_Project-ID-AdempiereJasper/plugins/src/org.compiere.compilo.importer.jasperreports/plugin.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/_Project-ID-AdempiereJasper/plugins/src/org.compiere.compilo.importer.jasperreports/source/org/compiere/compilo/importer/jasperreports/AD_ProcessImporter.java b/_Project-ID-AdempiereJasper/plugins/src/org.compiere.compilo.importer.jasperreports/source/org/compiere/compilo/importer/jasperreports/AD_ProcessImporter.java new file mode 100644 index 0000000000..4f105a86cb --- /dev/null +++ b/_Project-ID-AdempiereJasper/plugins/src/org.compiere.compilo.importer.jasperreports/source/org/compiere/compilo/importer/jasperreports/AD_ProcessImporter.java @@ -0,0 +1,224 @@ +package org.compiere.compilo.importer.jasperreports; + +import java.sql.SQLException; + +import javax.xml.xpath.XPathExpressionException; + +import org.compiere.compilo.helper.XMLHelper; +import org.compiere.compilo.importer.core.ImportException; +import org.compiere.compilo.importer.core.TableImporter; +import org.compiere.model.MProcess; +import org.compiere.util.Env; +import org.w3c.dom.DOMException; +import org.w3c.dom.Document; +import org.w3c.dom.Element; +import org.w3c.dom.Node; +import org.w3c.dom.Text; + +public class AD_ProcessImporter extends TableImporter { + + + /* + * Aim of this plugin is to import record having this structure: + * + + GardenWorld + 0 + Y + SuperUser + SuperUser + + Standalone + Standalone + Stand alone JasperReport for sample only + org.compiere.report.ReportStarter + User maintained + Client+Organization + http://localhost:8088/webApp/standalone.jrxml + + * + * AD_Process_Node represents AD_Process XML element. + * + * Using XMLHelper.getString("Name", AD_Process_Node); + * developer can get value of XML element "Name". + * + * (non-Javadoc) + * @see org.compiere.compilo.importer.core.TableImporter#importTable(org.w3c.dom.Node, org.w3c.dom.Element) + */ + public void importTable(Node AD_Process_Node, Element outElement) + throws DOMException, SQLException, XPathExpressionException, ImportException { + // TODO - now "outElement" is not used... + // This means that we do not return result in xml file... + Document outDocument = outElement.getOwnerDocument(); + Element result = outDocument.createElement("AD_Process"); + + String name = null; + String value = null; + int AD_Process_ID = 0; + + String AD_Client_Value = null; + int AD_Client_ID = 0; + + String AD_Org_Value = null; + int AD_Org_ID = 0; + + String CreatedBy_Name = null; + int CreatedBy_ID = 0; + + String UpdatedBy_Name = null; + int UpdatedBy_ID = 0; + + name = XMLHelper.getString("Name", AD_Process_Node); + log.info("Name = [" + name +"]"); + result.appendChild(createNewTextElement("Name", ""+name, outDocument)); + + value = XMLHelper.getString("Value", AD_Process_Node); + log.info("Value = [" + value +"]"); + result.appendChild(createNewTextElement("Value", ""+value, outDocument)); + + AD_Client_Value = XMLHelper.getString("AD_Client_Value", AD_Process_Node); + log.info("AD_Client_Value = [" + AD_Client_Value +"]"); + result.appendChild(createNewTextElement("AD_Client_Value", ""+AD_Client_Value, outDocument)); + + CreatedBy_Name = XMLHelper.getString("CreatedBy_Name", AD_Process_Node); + log.info("CreatedBy_Name = [" + CreatedBy_Name +"]"); + result.appendChild(createNewTextElement("CreatedBy_Name", ""+CreatedBy_Name, outDocument)); + + UpdatedBy_Name = XMLHelper.getString("UpdatedBy_Name", AD_Process_Node); + log.info("UpdatedBy_Name = [" + UpdatedBy_Name +"]"); + result.appendChild(createNewTextElement("UpdatedBy_Name", ""+UpdatedBy_Name, outDocument)); + + log.info("_______________________________________________"); + + if (value != null && !"".equals(value)) { + // Search for AD_Process by Value... + AD_Process_ID = XMLHelper.getIDbyValue("AD_Process", value, AD_Client_Value); + } else { + // Search for AD_Process by Name... + AD_Process_ID = XMLHelper.getIDbyName("AD_Process", name, AD_Client_Value); + } + log.info("AD_Process_ID = " + AD_Process_ID); + result.appendChild(createNewTextElement("AD_Process_ID", ""+AD_Process_ID, outDocument)); + + // Search for AD_Client_ID by Value... + AD_Client_ID = XMLHelper.getIDbyValue("AD_Client", AD_Client_Value, AD_Client_Value); + log.info("AD_Client_ID = " + AD_Client_ID); + result.appendChild(createNewTextElement("AD_Client_ID", ""+AD_Client_ID, outDocument)); + + // Search for AD_Org_ID by Value... + AD_Org_ID = XMLHelper.getIDbyValue("AD_Org", AD_Org_Value, AD_Client_Value); + log.info("AD_Org_ID = " + AD_Org_ID); + result.appendChild(createNewTextElement("AD_Org_ID", ""+AD_Org_ID, outDocument)); + + + if (value == null || "".equals(value) || + name == null || "".equals(name) || + AD_Client_Value == null || "".equals(AD_Client_Value)) + { + log.error("ERROR: Name or Value or AD_Client_Value is null..."); + System.out.println("ERROR: Name or Value or AD_Client_Value is null..."); + throw new ImportException("ERROR: Name or Value or AD_Client_Value is null..."); + } + + // Search for AD_User by Name... + CreatedBy_ID = XMLHelper.getIDbyName("AD_User", CreatedBy_Name, AD_Client_Value); + log.info("CreatedBy_ID = " + CreatedBy_ID); + result.appendChild(createNewTextElement("CreatedBy_ID", ""+CreatedBy_ID, outDocument)); + if (CreatedBy_Name != null && !"".equals(CreatedBy_Name)) { + //adRole.set_ValueNoCheck("CreatedBy", CreatedBy_ID); + Env.setContext(Env.getCtx(), "#AD_User_ID", CreatedBy_ID); + } + UpdatedBy_ID = XMLHelper.getIDbyName("AD_User", UpdatedBy_Name, AD_Client_Value); + log.info("UpdatedBy_ID = " + UpdatedBy_ID); + result.appendChild(createNewTextElement("UpdatedBy_ID", ""+UpdatedBy_ID, outDocument)); + if (UpdatedBy_Name != null && !"".equals(UpdatedBy_Name)) { + //adRole.set_ValueNoCheck("CreatedBy", CreatedBy_ID); + Env.setContext(Env.getCtx(), "#AD_User_ID", UpdatedBy_ID); + } + + Env.setContext(Env.getCtx(), "#AD_Client_ID", AD_Client_ID); + Env.setContext(Env.getCtx(), "#AD_Org_ID", AD_Org_ID); + + MProcess process = new MProcess(Env.getCtx(), AD_Process_ID, null); + + if (name != null && !"".equals(name)) { + process.setName(name); + } + if (value != null && !"".equals(value)) { + process.setValue(value); + } + + String Description = XMLHelper.getString("Description", AD_Process_Node); + log.info("Description = " + Description); + result.appendChild(createNewTextElement("Description", ""+Description, outDocument)); + if (Description != null && !"".equals(Description)) { + process.setDescription(Description); + } + + String Classname = XMLHelper.getString("Classname", AD_Process_Node); + log.info("Classname = " + Classname); + result.appendChild(createNewTextElement("Classname", ""+Classname, outDocument)); + if (Classname != null && !"".equals(Classname)) { + process.setClassname(Classname); + } + + String EntityType = XMLHelper.getString("EntityType", AD_Process_Node); + log.info("EntityType = " + EntityType); + result.appendChild(createNewTextElement("EntityType", ""+EntityType, outDocument)); + if (EntityType != null && !"".equals(EntityType)) { + String entityTypeValue = XMLHelper.reverseReference("_Entity Type", EntityType); + result.appendChild(createNewTextElement("EntityTypeValue", ""+entityTypeValue, outDocument)); + if (entityTypeValue != null) { + process.setEntityType(entityTypeValue); + } else { + // Set Default entity type + process.setEntityType("U"); + } + + } + + String AccessLevel = XMLHelper.getString("AccessLevel", AD_Process_Node); + log.info("AccessLevel = " + AccessLevel); + result.appendChild(createNewTextElement("AccessLevel", ""+AccessLevel, outDocument)); + if (AccessLevel != null && !"".equals(AccessLevel)) { + String accessLevelValue = XMLHelper.reverseReference("AD_Table Access Levels", "Client+Organization"); + result.appendChild(createNewTextElement("AccessLevelValue", ""+accessLevelValue, outDocument)); + if (accessLevelValue != null) { + process.setAccessLevel(accessLevelValue); + } else { + // Set Default access level + process.setAccessLevel(XMLHelper.reverseReference("AD_Table Access Levels", "Client+Organization")); + } + } + + String JasperReport = XMLHelper.getString("JasperReport", AD_Process_Node); + log.info("JasperReport = " + JasperReport); + result.appendChild(createNewTextElement("JasperReport", ""+JasperReport, outDocument)); + if (JasperReport != null && !"".equals(JasperReport)) { + + try { + process.setJasperReport(JasperReport); + } catch (Error er) { + er.printStackTrace(); + + //process.set_CustomColumn("JasperReport", JasperReport); + } + } + + boolean resultSave = true; + resultSave = process.save(); + log.info("--- RESULT SAVE = " + resultSave); + result.appendChild(createNewTextElement("result", ""+resultSave, outDocument)); + outElement.appendChild(result); + } + + private Element createNewTextElement(String elementName, String textNodeValue, Document outDocument) { + Element newElement = outDocument.createElement(elementName); + + Text newText = outDocument.createTextNode(textNodeValue); + + newElement.appendChild(newText); + + return newElement; + } +} diff --git a/_Project-ID-AdempiereJasper/run-druid.bat b/_Project-ID-AdempiereJasper/run-druid.bat new file mode 100644 index 0000000000..c5bfa0747a --- /dev/null +++ b/_Project-ID-AdempiereJasper/run-druid.bat @@ -0,0 +1,3 @@ +@IF NOT EXIST %JAVA_HOME%\bin ECHO "** JAVA_HOME NOT found" + +%JAVA_HOME%/bin/java -Xms64M -Xmx256M -jar ./../druid/druid.jar -proj:./druid/Project-ID-TEMPLATE.druid \ No newline at end of file diff --git a/_Project-ID-AdempiereJasper/splash.jpg b/_Project-ID-AdempiereJasper/splash.jpg new file mode 100644 index 0000000000..af926dd0d5 Binary files /dev/null and b/_Project-ID-AdempiereJasper/splash.jpg differ diff --git a/_Project-ID-AdempiereJasper/sql/AlterTable-Oracle-ID-001.sql b/_Project-ID-AdempiereJasper/sql/AlterTable-Oracle-ID-001.sql new file mode 100644 index 0000000000..d8e843b39d --- /dev/null +++ b/_Project-ID-AdempiereJasper/sql/AlterTable-Oracle-ID-001.sql @@ -0,0 +1,17 @@ +-------------------------------------------------------------------------------- +--- ALTER TABLE ... ADD ... File for Database : ID-002-252e-Oracle DB (Build 396) +--- +--- Date of creation: 2005-12-20 15:54:30 +-------------------------------------------------------------------------------- + +--------------------------------------------------------------- +--- EVERY SQL STATEMENT must be separated from other by ';' --- +--------------------------------------------------------------- + + +--- Table: AD_Process ---------------------------------------------------------- +ALTER TABLE AD_Process +ADD JasperReport NVARCHAR2(255); + +ALTER TABLE AD_Process +MODIFY JasperReport NVARCHAR2(255); \ No newline at end of file diff --git a/_Project-ID-AdempiereJasper/sql/CreateTable-Oracle-ID-001.sql b/_Project-ID-AdempiereJasper/sql/CreateTable-Oracle-ID-001.sql new file mode 100644 index 0000000000..e69de29bb2 diff --git a/_Project-ID-AdempiereJasper/temp/ReadMe.txt b/_Project-ID-AdempiereJasper/temp/ReadMe.txt new file mode 100644 index 0000000000..5ca55978a4 --- /dev/null +++ b/_Project-ID-AdempiereJasper/temp/ReadMe.txt @@ -0,0 +1 @@ +This folder contains files generated by Druid COMAP module. \ No newline at end of file diff --git a/_Project-ID-AdempiereJasper/xml/data/AD_ProcessJasper.xml b/_Project-ID-AdempiereJasper/xml/data/AD_ProcessJasper.xml new file mode 100644 index 0000000000..ff7c036727 --- /dev/null +++ b/_Project-ID-AdempiereJasper/xml/data/AD_ProcessJasper.xml @@ -0,0 +1,21 @@ + + + + + + GardenWorld + 0 + Y + SuperUser + SuperUser + + Standalone + Standalone + Stand alone JasperReport for sample only + org.compiere.report.ReportStarter + User maintained + Client+Organization + http://66.199.246.130/webApp/standalone.jrxml + + + \ No newline at end of file diff --git a/_Project-ID-AdempiereJasper/xml/data/AD_Process_Access.xml b/_Project-ID-AdempiereJasper/xml/data/AD_Process_Access.xml new file mode 100644 index 0000000000..d3d9762785 --- /dev/null +++ b/_Project-ID-AdempiereJasper/xml/data/AD_Process_Access.xml @@ -0,0 +1,18 @@ + + + + + + + + GardenWorld + 0 + GardenWorld Admin + Standalone + Y + Y + + + \ No newline at end of file diff --git a/_Project-ID-AdempiereJasper/xml/data/Data-ID-001.xml b/_Project-ID-AdempiereJasper/xml/data/Data-ID-001.xml new file mode 100644 index 0000000000..003a3c9dfb --- /dev/null +++ b/_Project-ID-AdempiereJasper/xml/data/Data-ID-001.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/_Project-ID-AdempiereJasper/xml/model/.cvsignore b/_Project-ID-AdempiereJasper/xml/model/.cvsignore new file mode 100644 index 0000000000..be176fbb5d --- /dev/null +++ b/_Project-ID-AdempiereJasper/xml/model/.cvsignore @@ -0,0 +1,2 @@ +Model-ID-002-part.xml +Model-ID-001-part.xml diff --git a/_Project-ID-AdempiereJasper/xml/model/Model-ID-001.xml b/_Project-ID-AdempiereJasper/xml/model/Model-ID-001.xml new file mode 100644 index 0000000000..2c44d2e07a --- /dev/null +++ b/_Project-ID-AdempiereJasper/xml/model/Model-ID-001.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + +
+ +
\ No newline at end of file diff --git a/_Project-ID-AdempiereJasper/xml/view/View-ID-001.xml b/_Project-ID-AdempiereJasper/xml/view/View-ID-001.xml new file mode 100644 index 0000000000..6bbdf3bf95 --- /dev/null +++ b/_Project-ID-AdempiereJasper/xml/view/View-ID-001.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/_Project-ID-AdempiereJasper/xsd/importer.xsd b/_Project-ID-AdempiereJasper/xsd/importer.xsd new file mode 100644 index 0000000000..92d376a00c --- /dev/null +++ b/_Project-ID-AdempiereJasper/xsd/importer.xsd @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +