Examples of StampaPrimaNota


Examples of it.pdor.contabilita.domain.StampaPrimaNota

  public static void main(String[] args) throws FileNotFoundException {

    System.out.println("START  ...............");

    StampaPrimaNota stampaPrimaNota = new StampaPrimaNota();
    TestataStampa testataStampa = new TestataStampa();
    testataStampa.setDataAl(new Date()); // viene preso dai parameri di Input
    testataStampa.setDataDal(new Date()); // viene preso dai parameri di Output
    testataStampa.setDescrizioneTestata("S");
    testataStampa.setOperatore("la gianna");

    stampaPrimaNota.setTestataStampa(testataStampa);

    RigaStampaPrimaNotaOut objectPrimaNota = new RigaStampaPrimaNotaOut();

    objectPrimaNota.setCodCausale("01");
    objectPrimaNota.setCodiceConto(1232);
    objectPrimaNota.setCodiceFinanziamento(2);
    objectPrimaNota.setCodiceGruppo(787);
    objectPrimaNota.setCodiceMastro(99);
    objectPrimaNota.setDescrizioneCausOper("desc oper");
    objectPrimaNota.setDescrizioneConto("descrizioneConto");
    objectPrimaNota.setImportoAvere(34.00);
    objectPrimaNota.setImportoDare(78.00);
    objectPrimaNota.setProgRigaArticolo(6);

    stampaPrimaNota.addRigaPrimaNota(objectPrimaNota);

    RigaStampaPrimaNotaOut objectPrimaNota2 = new RigaStampaPrimaNotaOut();

    objectPrimaNota2.setCodCausale("02");
    objectPrimaNota2.setCodiceConto(12324);
    objectPrimaNota2.setCodiceFinanziamento(25);
    objectPrimaNota2.setCodiceGruppo(7876);
    objectPrimaNota2.setCodiceMastro(99);
    objectPrimaNota2.setDescrizioneCausOper("desc oper");
    objectPrimaNota2.setDescrizioneConto("descrizioneConto");
    objectPrimaNota2.setImportoAvere(34.00);
    objectPrimaNota2.setImportoDare(78.00);
    objectPrimaNota2.setProgRigaArticolo(6);
    objectPrimaNota2.setTipoBollatoIva("dd");

    stampaPrimaNota.addRigaPrimaNota(objectPrimaNota2);

    RigaStampaPrimaNotaIvaOut iva = new RigaStampaPrimaNotaIvaOut();

    iva.setAliquotaIva(45);
    iva.setCodiceTipoProtocollo("dfasd");
    iva.setImponibile(6767.00);

    stampaPrimaNota.addRigaPrimaNotaIva(iva);

    XStream fileXml = new XStream();

    fileXml.alias("RigaStampaPrimaNota", RigaStampaPrimaNotaIvaOut.class);
    fileXml.alias("RigaStampaPrimaNotaIva", RigaStampaPrimaNotaOut.class);
View Full Code Here

Examples of it.pdor.contabilita.domain.StampaPrimaNota

    // System.out.println("START  ...............");
    // System.out.println("StampaPrimaNotaIn  ..............." +
    // param.toString());

    StampaPrimaNota stampaPrimaNota = new StampaPrimaNota();
    TestataStampa testataStampa = new TestataStampa();

    testataStampa.setDataAl(param.getAllaData());
    testataStampa.setDataDal(param.getDallaData());
    testataStampa.setDescrizioneTestata(param.getTpMovimento());
    testataStampa.setOperatore(param.getUser().toString());

    stampaPrimaNota.setTestataStampa(testataStampa);

    // List<RigaStampaPrimaNotaOut> lista =
    // contabilitaDao.getRigheStampaPrimaNota(param);
    List<RigaStampaPrimaNotaOut> lista = getRigheStampaPrimaNota(param);

    if (lista != null && lista.size() > 0) {
      // System.out.println("lista................. " + lista.size());
      for (RigaStampaPrimaNotaOut rigaStampaPrimaNotaOut : lista) {
        stampaPrimaNota.addRigaPrimaNota(rigaStampaPrimaNotaOut);
      }
    } else
      throw new Exception("TextNoDataPrimaNota");

    // List<RigaStampaPrimaNotaIvaOut> listaIva =
    // contabilitaDao.getRigheStampaPrimaNotaIva(param);
    List<RigaStampaPrimaNotaIvaOut> listaIva = getRigheStampaPrimaNotaIva(param);

    if (listaIva != null && listaIva.size() > 0) {
      // System.out.println("listaIva................. " +
      // listaIva.size());
      for (RigaStampaPrimaNotaIvaOut rigaStampaPrimaNotaIvaOut : listaIva) {
        stampaPrimaNota.addRigaPrimaNotaIva(rigaStampaPrimaNotaIvaOut);
      }
    } else
      throw new Exception("TextNoDataPrimaNota");

    // String fileName = "C:/stampa.xml";
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.