Advertisement
Guest User

Untitled

a guest
Feb 28th, 2019
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.60 KB | None | 0 0
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. package main;
  7.  
  8. import domein.DomeinController;
  9. import domein.Geslacht;
  10. import domein.Graad;
  11. import domein.Lid;
  12. import domein.RolType;
  13. import java.util.ArrayList;
  14. import java.util.GregorianCalendar;
  15. import persistentie.ExportFiles;
  16.  
  17. /**
  18. *
  19. * @author Nante
  20. */
  21. public class testExport {
  22.  
  23. public static void main(String[] args) {
  24. DomeinController dc = new DomeinController();
  25.  
  26. Lid lid1 = new Lid("Nante", "Vermeulen", "nv12345", "0479154879", "053548216", "Straat", 100, 9320, "Landegem", "België", "nante.vermeulen@student.hogent.be",
  27. "ouders.nante@telenet.be", new GregorianCalendar(1998, 10, 19), new GregorianCalendar(2019, 1, 1), new ArrayList<>(), Geslacht.MAN, Graad.GROEN, RolType.BEHEERDER);
  28.  
  29. Lid lid0 = new Lid("Indy", "Van Canegem", "ivc12345", "0479154978", "053698442", "Straat", 13, 9520, "Zele", "België", "indy.vancanegem@student.hogent.be",
  30. "ouders.indy@skynet.be", new GregorianCalendar(1998, 8, 16), new GregorianCalendar(2014, 5, 9), new ArrayList<>(), Geslacht.ANDERS, Graad.GROEN, RolType.LID);
  31.  
  32. Lid lid2 = new Lid("Jef", "Malfliet", "jm12345", "0234567890", "053698420", "Straat", 1, 9220, "Hamme", "België", "jef.malfliet@student.hogent.be",
  33. "ouders.jef@proxymus.be", new GregorianCalendar(1999, 10, 24), new GregorianCalendar(2016, 8, 31), new ArrayList<>(), Geslacht.VROUW, Graad.WIT, RolType.LESGEVER);
  34.  
  35. Lid lid3 = new Lid("Mout", "Pessemier", "mp12345", "0234567890", "053248216", "Bertha De Dekenlaan", 14, 9320, "Erembodegen", "België", "mout.pessemier@student.hogent.be",
  36. "ouders.mout@telenet.be", new GregorianCalendar(1999, 6, 14), new GregorianCalendar(2007, 11, 8), new ArrayList<>(), Geslacht.MAN, Graad.DAN12, RolType.BEHEERDER);
  37.  
  38. dc.voegLidToe(lid0);
  39. dc.voegLidToe(lid1);
  40. dc.voegLidToe(lid2);
  41. dc.voegLidToe(lid3);
  42.  
  43. String locatie = System.getProperty("user.home");
  44. locatie += "/Desktop/";
  45. String locatie2 = locatie;
  46. locatie += "TESTTT";
  47.  
  48. locatie2 += "hallow12.pdf";
  49. locatie += ".xls";
  50.  
  51. //ExportFiles.toExcel(dc.getLeden(), 25, 20, locatie);
  52. // ExportFiles.toPdf(locatie2, locatie2);
  53. // ExportFiles.toPdf(locatie, locatie + ".pdf");
  54. new ExportFiles().toExcel(dc.getLeden(), 25, 20, locatie);
  55. new ExportFiles().toPdf(locatie, locatie2);
  56.  
  57. }
  58.  
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement