Examples of InvoiceIdCounter


Examples of org.jayasoft.woj.portal.model.commercial.InvoiceIdCounter

            Calendar c = TimeUtil.getCurrentCalendar();
            int year = c.get(Calendar.YEAR);
            int month = c.get(Calendar.MONTH);
            long id;
           
            InvoiceIdCounter count = DaoFactory.getInvoiceIdCounterDao().perYear(year);
            if (count==null) {
                count = (InvoiceIdCounter)DaoFactory.getInvoiceIdCounterDao().newHandledObject();
                count.setYear(year);
            }
            id = count.getCounter() + 1;
            count.setCounter(id);
           
            InvoiceIdImpl invId = (InvoiceIdImpl)DaoFactory.getInvoiceIdDao().newHandledObject();
            invId.setReason(message);
            invId.setIdent(formatIdent(id, year, month));
           
View Full Code Here

Examples of org.jayasoft.woj.portal.model.commercial.InvoiceIdCounter

    public HibernateInvoiceIdCounterDao(DaoHelper helper) {
        super(helper, InvoiceIdCounter.class);
    }
   
    public WOJObject newHandledObject() {
        return new InvoiceIdCounter();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.