Package bpntojava.model.bpndata

Examples of bpntojava.model.bpndata.Data


     *
     * @param filename Dateiname
     * @return Datenbank
     */
    public static Data load(String filename) {
        Data data = null;
        FileInputStream fis;
        ObjectInputStream in;
        try {
            fis = new FileInputStream(filename);
            in = new ObjectInputStream(fis);
View Full Code Here


                    datesdata.get(j).add(data.get(i));
                    added = true;
                }
            }
            if (!added) {
                Data tmpdata = new Data();
                tmpdata.setName(datum);
                tmpdata.add(data.get(i));
                datesdata.add(tmpdata);
            }

        }
    }
View Full Code Here

        if (article.equals("Außendienst")) {
            return getADDATA(date, staff);
        }
        float ret = (float) 0;

        Data tmpdata = null;
        for (int i = 0; i < datesdata.size(); i++) {
            if (date.equals(datesdata.get(i).getName())) {
                tmpdata = datesdata.get(i);
            }
        }

        for (int i = 0; i < tmpdata.size(); i++) {
            DataLine dataline = tmpdata.get(i);
            if (dataline.get(1).equals(staff)
                    && article.startsWith(dataline.get(2))
                    && dataline.get(0).equals(date)) {
                ret += Float.parseFloat(dataline.get(4));
            }
View Full Code Here

TOP

Related Classes of bpntojava.model.bpndata.Data

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.