PageRenderTime 163ms CodeModel.GetById 50ms app.highlight 68ms RepoModel.GetById 43ms app.codeStats 0ms

/src/mpv5/globals/Constants.java

http://mp-rechnungs-und-kundenverwaltung.googlecode.com/
Java | 139 lines | 67 code | 7 blank | 65 comment | 0 complexity | 949e66d750b9c38244018309a40646e3 MD5 | raw file
  1/*
  2 * 
  3 *  *  This file is part of YaBS.
  4 *  *  
  5 *  *      YaBS is free software: you can redistribute it and/or modify
  6 *  *      it under the terms of the GNU General Public License as published by
  7 *  *      the Free Software Foundation, either version 3 of the License, or
  8 *  *      (at your option) any later version.
  9 *  *  
 10 *  *      YaBS is distributed in the hope that it will be useful,
 11 *  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
 12 * *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 13 *  *      GNU General Public License for more details.
 14 *  *  
 15 *  *      You should have received a copy of the GNU General Public License
 16 *  *      along with YaBS.  If not, see <http://www.gnu.org/licenses/>.
 17 *  
 18 */
 19package mpv5.globals;
 20
 21import java.math.BigDecimal;
 22
 23/**
 24 *
 25 * 
 26 */
 27public interface Constants {
 28
 29    /**
 30     * 
 31     * Full Version number
 32     */
 33    public static final String VERSION = "Yabs-1.18-rc1";
 34
 35    /**
 36     * The original database version of this release
 37     */
 38    public static final Double DATABASE_ORIGINAL_VERSION = 1.0;
 39    /**
 40     * The minimal Database Version which is compatible with this release
 41     */
 42    public static final Double DATABASE_VERSION = 1.1973;
 43    /**
 44     * The max Database Version which is compatible with this release
 45     */
 46    public static final Double DATABASE_MAX_VERSION = 2.0;
 47    /**
 48     * Will be dynamically changed by SVN.
 49     */
 50    public static final String REVISION = "$Rev: $";
 51    /**
 52     *
 53     * The Release version
 54     */
 55    public static final String RELEASE_VERSION = "0";
 56    /**
 57     *
 58     * Alias
 59     */
 60    public static final String TITLE = "Yabs - Cookme";
 61    /**
 62     *
 63     * Name of the main JAR
 64     */
 65    public static final String JAR_NAME = "yabs.jar";
 66    /**
 67     *
 68     * Program name
 69     */
 70    public static final String PROG_NAME = "Yabs-" + Constants.VERSION + "";
 71    /**
 72     *
 73     * Running Java Version info
 74     */
 75    public static String JAVA_VERSION = "Java Version: " + System.getProperty("java.version");
 76    /**
 77     *
 78     * The class name to be loaded from plugins
 79     */
 80    public static String PLUGIN_LOAD_CLASS = "plugin.Main";
 81    /**
 82     * Name of databasedir 
 83     */
 84    public static final String DATABASENAME = "yabs" + Constants.RELEASE_VERSION + "db";
 85    public static String ICON_NAME_LIN = "yabs.desktop";
 86    public static String ICON_NAME_WIN = "YaBS.url";
 87    public static String XML_ROOT = "mpv5";
 88    public static String XML_DOCTYPE_ID = "-//http://openyabs.org//DTD mpv5 V 1.0//EN";
 89    public static String XML_DOCTYPE_URL = "http://openyabs.org/files/yabs_import_1.0.dtd";
 90    public static String SPLASH_IMAGE = "/mpv5/resources/images/background_k.png";
 91    public static String ABOUT_IMAGE = "/mpv5/resources/images/about1.png";
 92    public static String ICON = "/mpv5/resources/images/icon.png";
 93    public static String WEBSITE = "http://openyabs.org";
 94    public static String CURRENT_VERSION_URL = "http://mp-rechnungs-und-kundenverwaltung.googlecode.com/files/" + VERSION + ".zip";
 95    public static final String[] CONTRIBUTORS = new String[]{
 96        "Andreas Weber",
 97        "Jan Hahnisch",
 98        "P.Eser",
 99        "Christian Gabel",
100        "Daniel Lang",
101        "Daniel Kulesz",
102        "Denny Beyer",
103        "Michael Stibane",
104        "Sven Lindenhahn",
105        "Uwe Schoeler",
106        "Uwe Stark",
107        "P.Heller",
108        "Jean-Christoph von Oertzen"};
109    public static String LANGUAGES_DIR = "languages";
110    public static String PLUGINS_DIR = "plugins";
111    public static String TEMPLATES_DIR = "templates";
112    public static String BABELFISH_URL = "http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&langpair=";
113    public static String FALLBACK_CACHE_DIR = "Cache";//Go for a relative path
114    public static String LIBS_DIR = "lib";
115    public static BigDecimal BD100 = new BigDecimal("100");
116    
117    
118    public static final int TYPE_BILL = 0;
119    public static final int TYPE_ORDER = 1;
120    public static final int TYPE_OFFER = 2;
121    public static final int TYPE_DELIVERY_NOTE = 3;
122    public static final int TYPE_ORDER_CONFIRMATION = 4;
123    public static final int TYPE_PRODUCT = 5;
124    public static final int TYPE_SERVICE = 6;
125    public static final int TYPE_REMINDER = 7;
126    public static final int TYPE_CONTACT = 8;
127    public static final int TYPE_JOURNAL = 9;
128    public static final int TYPE_PRODUCT_ORDER = 10;
129    public static final int TYPE_CONTRACT = 11;
130    public static final int TYPE_CONVERSATION = 12;
131    public static final int TYPE_MASSPRINT = 13;
132    public static final int TYPE_ACTIVITY = 14;
133    public static final int TYPE_CUSTOMER = 15;
134    public static final int TYPE_MANUFACTURER = 16;
135    public static final int TYPE_SUPPLIER = 17;
136    public static final int TYPE_EXPENSE = 18;
137    public static final int TYPE_REVENUE = 19;
138    
139}