Examples of TestataFattura


Examples of it.pdor.contabilita.domain.hbm.TestataFattura

    dao = (ContabilitaDaoMockCheLeggeMaNonScrive) context.getBean("contabilitaDaoMockCheLeggeMaNonScrive");

    InputStream systemResourceAsStream = RisorsaNelClasspath
        .getInputStream("dbSofia/txtPerTest/ContabilizzaFattura/caso90010_db_fattura_da_inserire_per_il_test.xml");
    InputStreamReader reader = new InputStreamReader(systemResourceAsStream);
    TestataFattura fatturaPerTest = (TestataFattura) new XStream(new DomDriver()).fromXML(reader);

    if (fatturaPerTest.getDataFattura() == null)
      fatturaPerTest.setDataFattura(new Date());

    long numeroFattura = fatturaPerTest.getNumeroFattura();
    TestataFattura fatturaNelDb = dao.leggiTestataFatturaById(numeroFattura);
    if (fatturaNelDb == null) {
      dao.scriviTestataFatturaDavvero(fatturaPerTest);
      System.out.println("inserita la fattura (" + numeroFattura + ")");
    } else {
      throw new RuntimeException("la fattura (" + numeroFattura + ") � gia' inserita.");
View Full Code Here

Examples of it.pdor.contabilita.domain.hbm.TestataFattura

public class ExportDatiDaDbTestataFattura extends ExportDatiDaDb {

  protected Object getObjectDaEsportare(long id) throws Exception {

    TestataFattura testata = dao.leggiTestataFatturaById(id);

    List<TestataFattura> lista = new ArrayList<TestataFattura>();
    lista.add(testata);
    Collections.sort(lista, new TestataFatturaComparatorPeriTest());
    return lista;
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.