fam-archetype-app 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/README.md +38 -0
  2. package/package.json +25 -0
  3. package/src/collection.json +10 -0
  4. package/src/fam-archetype-app/files/.editorconfig +16 -0
  5. package/src/fam-archetype-app/files/.prettierignore +15 -0
  6. package/src/fam-archetype-app/files/.prettierrc.json +29 -0
  7. package/src/fam-archetype-app/files/LICENSE.md +21 -0
  8. package/src/fam-archetype-app/files/README.md +59 -0
  9. package/src/fam-archetype-app/files/angular.json.template +178 -0
  10. package/src/fam-archetype-app/files/cli +361 -0
  11. package/src/fam-archetype-app/files/eslint.config.js +89 -0
  12. package/src/fam-archetype-app/files/package-lock.json.template +18812 -0
  13. package/src/fam-archetype-app/files/package.json.template +62 -0
  14. package/src/fam-archetype-app/files/src/assets/fonts/DiBaScreen-Regular.woff2 +0 -0
  15. package/src/fam-archetype-app/files/src/assets/translations/translations-ca.json +284 -0
  16. package/src/fam-archetype-app/files/src/assets/translations/translations-en.json +28 -0
  17. package/src/fam-archetype-app/files/src/assets/translations/translations-es.json +28 -0
  18. package/src/fam-archetype-app/files/src/core/layout/component/footer/footer.component.html.template +3 -0
  19. package/src/fam-archetype-app/files/src/core/layout/component/footer/footer.component.scss +8 -0
  20. package/src/fam-archetype-app/files/src/core/layout/component/layout/layout.component.html +19 -0
  21. package/src/fam-archetype-app/files/src/core/layout/component/layout/layout.component.scss +28 -0
  22. package/src/fam-archetype-app/files/src/core/layout/component/main-info-popup/main-info-popup.component.html +33 -0
  23. package/src/fam-archetype-app/files/src/core/layout/component/main-info-popup/main-info-popup.component.scss +3 -0
  24. package/src/fam-archetype-app/files/src/core/layout/component/menu/menu.component.html +3 -0
  25. package/src/fam-archetype-app/files/src/core/layout/component/menu/menu.component.scss +163 -0
  26. package/src/fam-archetype-app/files/src/core/layout/component/menuitem/menuitem.component.html +39 -0
  27. package/src/fam-archetype-app/files/src/core/layout/component/menuitem/menuitem.component.scss +44 -0
  28. package/src/fam-archetype-app/files/src/core/layout/component/not-found/not-found.component.html +12 -0
  29. package/src/fam-archetype-app/files/src/core/layout/component/not-found/not-found.component.scss +17 -0
  30. package/src/fam-archetype-app/files/src/core/layout/component/sidebar/sidebar.component.html +13 -0
  31. package/src/fam-archetype-app/files/src/core/layout/component/sidebar/sidebar.component.scss +33 -0
  32. package/src/fam-archetype-app/files/src/core/layout/component/top-menu/top-menu.component.html +12 -0
  33. package/src/fam-archetype-app/files/src/core/layout/component/top-menu/top-menu.component.scss +9 -0
  34. package/src/fam-archetype-app/files/src/core/layout/component/topbar/_mixins.scss +8 -0
  35. package/src/fam-archetype-app/files/src/core/layout/component/topbar/topbar.component.html.template +45 -0
  36. package/src/fam-archetype-app/files/src/core/layout/component/topbar/topbar.component.scss +77 -0
  37. package/src/fam-archetype-app/files/src/environments/environment.dev.ts.template +12 -0
  38. package/src/fam-archetype-app/files/src/environments/environment.int.ts.template +12 -0
  39. package/src/fam-archetype-app/files/src/environments/environment.pre.ts.template +12 -0
  40. package/src/fam-archetype-app/files/src/environments/environment.ts.template +12 -0
  41. package/src/fam-archetype-app/files/src/index.html.template +18 -0
  42. package/src/fam-archetype-app/files/src/shared/filters/diba-filters/diba-filters.component.html +69 -0
  43. package/src/fam-archetype-app/files/src/shared/filters/diba-filters/diba-filters.component.scss +0 -0
  44. package/src/fam-archetype-app/files/src/shared/styles/_movements.scss +19 -0
  45. package/src/fam-archetype-app/files/src/shared/styles/global/_core.scss +20 -0
  46. package/src/fam-archetype-app/files/src/shared/styles/global/_icons.scss +37 -0
  47. package/src/fam-archetype-app/files/src/shared/styles/global/_tooltips.scss +14 -0
  48. package/src/fam-archetype-app/files/src/shared/styles/global/_typography.scss +68 -0
  49. package/src/fam-archetype-app/files/src/shared/styles/global/_utils.scss +24 -0
  50. package/src/fam-archetype-app/files/src/shared/styles/global/layout.scss +5 -0
  51. package/src/fam-archetype-app/files/src/shared/table/column-visibility-selector/column-visibility-selector.component.html +10 -0
  52. package/src/fam-archetype-app/files/src/shared/table/column-visibility-selector/column-visibility-selector.component.scss +0 -0
  53. package/src/fam-archetype-app/files/src/shared/table/diba-table/diba-table.component.html +136 -0
  54. package/src/fam-archetype-app/files/src/shared/table/diba-table/diba-table.component.scss +0 -0
  55. package/src/fam-archetype-app/files/src/styles.scss +109 -0
  56. package/src/fam-archetype-app/files/src/tailwind.css +3 -0
  57. package/src/fam-archetype-app/files/tailwind.config.js +36 -0
  58. package/src/fam-archetype-app/files/tools/cli/TelosysTools/commands/commands.txt +1 -0
  59. package/src/fam-archetype-app/files/tools/cli/TelosysTools/commands/db_to_entities.txt +1 -0
  60. package/src/fam-archetype-app/files/tools/cli/TelosysTools/commands/test_db_connection.txt +1 -0
  61. package/src/fam-archetype-app/files/tools/cli/TelosysTools/databases.yaml +188 -0
  62. package/src/fam-archetype-app/files/tools/cli/TelosysTools/downloads/.keep +0 -0
  63. package/src/fam-archetype-app/files/tools/cli/TelosysTools/lib/.keep +0 -0
  64. package/src/fam-archetype-app/files/tools/cli/TelosysTools/models/app/FamActivitat.entity +26 -0
  65. package/src/fam-archetype-app/files/tools/cli/TelosysTools/models/app/FamActivitatsUbicacio.entity +40 -0
  66. package/src/fam-archetype-app/files/tools/cli/TelosysTools/models/app/FamAlumne.entity +76 -0
  67. package/src/fam-archetype-app/files/tools/cli/TelosysTools/models/app/FamArea.entity +33 -0
  68. package/src/fam-archetype-app/files/tools/cli/TelosysTools/models/app/FamComanda.entity +37 -0
  69. package/src/fam-archetype-app/files/tools/cli/TelosysTools/models/app/FamCurs.entity +50 -0
  70. package/src/fam-archetype-app/files/tools/cli/TelosysTools/models/app/FamDocument.entity +53 -0
  71. package/src/fam-archetype-app/files/tools/cli/TelosysTools/models/app/FamDocumentTipus.entity +26 -0
  72. package/src/fam-archetype-app/files/tools/cli/TelosysTools/models/app/FamEntitatBase.entity +84 -0
  73. package/src/fam-archetype-app/files/tools/cli/TelosysTools/models/app/FamExpedient.entity +71 -0
  74. package/src/fam-archetype-app/files/tools/cli/TelosysTools/models/app/FamExpedientDocument.entity +51 -0
  75. package/src/fam-archetype-app/files/tools/cli/TelosysTools/models/app/FamExpedientEstat.entity +26 -0
  76. package/src/fam-archetype-app/files/tools/cli/TelosysTools/models/app/FamExpedientTipus.entity +26 -0
  77. package/src/fam-archetype-app/files/tools/cli/TelosysTools/models/app/FamJerarquia.entity +33 -0
  78. package/src/fam-archetype-app/files/tools/cli/TelosysTools/models/app/FamLinia.entity +56 -0
  79. package/src/fam-archetype-app/files/tools/cli/TelosysTools/models/app/FamMatricula.entity +63 -0
  80. package/src/fam-archetype-app/files/tools/cli/TelosysTools/models/app/FamTipusArticle.entity +26 -0
  81. package/src/fam-archetype-app/files/tools/cli/TelosysTools/models/app/FamUbicacio.entity +35 -0
  82. package/src/fam-archetype-app/files/tools/cli/TelosysTools/models/app/FamZona.entity +27 -0
  83. package/src/fam-archetype-app/files/tools/cli/TelosysTools/models/app/Funcionalitat.entity +65 -0
  84. package/src/fam-archetype-app/files/tools/cli/TelosysTools/models/app/FuncionalitatGrupFunc.entity +58 -0
  85. package/src/fam-archetype-app/files/tools/cli/TelosysTools/models/app/GrupFuncionalitat.entity +54 -0
  86. package/src/fam-archetype-app/files/tools/cli/TelosysTools/models/app/PerfilGrupFuncionalitat.entity +50 -0
  87. package/src/fam-archetype-app/files/tools/cli/TelosysTools/models/app/VusPerfil.entity +31 -0
  88. package/src/fam-archetype-app/files/tools/cli/TelosysTools/models/app/model.yaml +4 -0
  89. package/src/fam-archetype-app/files/tools/cli/TelosysTools/telosys-tools.cfg +31 -0
  90. package/src/fam-archetype-app/files/tools/cli/TelosysTools/telosys.env +5 -0
  91. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/README.md +12 -0
  92. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/database.properties +23 -0
  93. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/include/init_var_entity.vm +169 -0
  94. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/include/macros.vm +218 -0
  95. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/main-angular/app_config_ts.vm +56 -0
  96. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/main-angular/app_routes_ts.vm +21 -0
  97. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/main-angular/core/layout/component/menu/menu_component_ts.vm +30 -0
  98. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/main-angular/core/layout/component/top-menu/top-menu_component_ts.vm +36 -0
  99. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/main-angular/core/layout/service/menu_model_service_ts.vm +49 -0
  100. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/main-angular/modules/application/create-Xxx_use-case_ts.vm +18 -0
  101. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/main-angular/modules/application/create-file-Xxx_use-case_ts.vm +17 -0
  102. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/main-angular/modules/application/delete-Xxx_use-case_ts.vm +17 -0
  103. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/main-angular/modules/application/download-Xxx-file_use-case_ts.vm +24 -0
  104. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/main-angular/modules/application/find-Xxx_use-case_ts.vm +18 -0
  105. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/main-angular/modules/application/search-Xxx_use-case_ts.vm +25 -0
  106. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/main-angular/modules/application/update-Xxx_use-case_ts.vm +18 -0
  107. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/main-angular/modules/domain/Xxx_entity_ts.vm +36 -0
  108. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/main-angular/modules/domain/Xxx_repository_interface_ts.vm +27 -0
  109. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/main-angular/modules/infrastructure/inbound/mappers/Xxx_jsona_mapper_ts.vm +52 -0
  110. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/main-angular/modules/infrastructure/inbound/mappers/Xxx_mapper_ts.vm +36 -0
  111. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/main-angular/modules/infrastructure/inbound/pages/Xxx_routes_ts.vm +15 -0
  112. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/main-angular/modules/infrastructure/inbound/pages/detail/Xxx_detail_html.vm +178 -0
  113. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/main-angular/modules/infrastructure/inbound/pages/detail/Xxx_detail_scss.vm +0 -0
  114. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/main-angular/modules/infrastructure/inbound/pages/detail/Xxx_detail_spec_ts.vm +29 -0
  115. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/main-angular/modules/infrastructure/inbound/pages/detail/Xxx_detail_ts.vm +382 -0
  116. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/main-angular/modules/infrastructure/inbound/pages/list/Xxx_list_html.vm +37 -0
  117. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/main-angular/modules/infrastructure/inbound/pages/list/Xxx_list_scss.vm +10 -0
  118. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/main-angular/modules/infrastructure/inbound/pages/list/Xxx_list_spec_ts.vm +29 -0
  119. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/main-angular/modules/infrastructure/inbound/pages/list/Xxx_list_ts.vm +430 -0
  120. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/main-angular/modules/infrastructure/inbound/resources/Xxx_resource_ts.vm +43 -0
  121. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/main-angular/modules/infrastructure/outbound/Xxx_repository_impl_ts.vm +162 -0
  122. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/main-angular/test_code.vm +3 -0
  123. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/templates.cfg +52 -0
  124. package/src/fam-archetype-app/files/tools/cli/TelosysTools/templates/fam-app-templates/tools-test/test-api_Xxx_rest.vm +181 -0
  125. package/src/fam-archetype-app/files/tools/cli/telosys +5 -0
  126. package/src/fam-archetype-app/files/tools/cli/telosys-cli-4.2.0-001.jar +0 -0
  127. package/src/fam-archetype-app/files/tools/cli/telosys-cli.cfg +55 -0
  128. package/src/fam-archetype-app/files/tools/cli/telosys-term.sh +30 -0
  129. package/src/fam-archetype-app/files/tools/cli/telosys.bat +4 -0
  130. package/src/fam-archetype-app/files/tools/cli/telosys.ico +0 -0
  131. package/src/fam-archetype-app/files/tools/db/develop/data/.keep +0 -0
  132. package/src/fam-archetype-app/files/tools/db/production/data/.keep +0 -0
  133. package/src/fam-archetype-app/files/tools/db/production/migrations/.keep +0 -0
  134. package/src/fam-archetype-app/files/tools/docs/.keep +0 -0
  135. package/src/fam-archetype-app/files/tools/test/test-api.rest +80 -0
  136. package/src/fam-archetype-app/files/tsconfig.app.json +15 -0
  137. package/src/fam-archetype-app/files/tsconfig.json +42 -0
  138. package/src/fam-archetype-app/files/tsconfig.spec.json +15 -0
  139. package/src/fam-archetype-app/files/vercel.json +9 -0
  140. package/src/fam-archetype-app/index.d.ts +2 -0
  141. package/src/fam-archetype-app/index.js +18 -0
  142. package/src/fam-archetype-app/index.js.map +1 -0
  143. package/src/fam-archetype-app/index_spec.d.ts +1 -0
  144. package/src/fam-archetype-app/index_spec.js +23 -0
  145. package/src/fam-archetype-app/index_spec.js.map +1 -0
  146. package/src/fam-archetype-app/schema.json +21 -0
  147. package/tsconfig.json +24 -0
@@ -0,0 +1,40 @@
1
+ // ----------------------------------------------------------------------------
2
+ // Outbound infrastructure: Database
3
+ @DbSchema("FAM_API")
4
+ @DbTable("FAM_ACTIVITATS_UBICACIO")
5
+ #DbColumnPrefix("FAM_AUB")
6
+ // ----------------------------------------------------------------------------
7
+ // Inbound infrastructure: API Rest
8
+ #ApiResource("activitats_ubicacio")
9
+ // ----------------------------------------------------------------------------
10
+ // Domain Model
11
+ @AggregateRoot
12
+ #AggregateDeletion("logical")
13
+ // ----------------------------------------------------------------------------
14
+ // UI Menu
15
+ #Menu("AUXILIARS")
16
+ // ----------------------------------------------------------------------------
17
+ // Model definition
18
+ FamActivitatsUbicacio {
19
+ famAubId : long {
20
+ @Id @NotNull @MaxLen(10) @DbName("ID") #postable(false) #updatable(false)
21
+ };
22
+ famAubOrdre : long {
23
+ @DbName("ORDRE") @MaxLen(15)
24
+ #mandatoryInList(true)
25
+ };
26
+ famUbicacio : FamUbicacio {
27
+ #Link("UBICACIO")
28
+ #fieldShowFront("famUbiNom")
29
+ #mandatoryInList(true)
30
+ #type("ubicacions")
31
+ };
32
+
33
+ famActivitat : FamActivitat {
34
+ #Link("ACTIVITAT")
35
+ #fieldShowFront("famActDescripcio")
36
+ #mandatoryInList(true)
37
+ #type("activitats")
38
+ #isParentEntity(true)
39
+ };
40
+ }
@@ -0,0 +1,76 @@
1
+ // ----------------------------------------------------------------------------
2
+ // Outbound infrastructure: Database
3
+ @DbSchema("FAM_API")
4
+ @DbTable("FAM_ALUMNE")
5
+ #DbColumnPrefix("FAM_ALUMNE")
6
+ // ----------------------------------------------------------------------------
7
+ // Inbound infrastructure: API Rest
8
+ #ApiResource("alumnes")
9
+ // ----------------------------------------------------------------------------
10
+ // Domain Model
11
+ @AggregateRoot
12
+ #AggregateDeletion("logical")
13
+ // ----------------------------------------------------------------------------
14
+ // Tabs in Detail Page
15
+ #DetailTabs("FamMatricula")
16
+ // Model definition
17
+ FamAlumne {
18
+ famAlumneId : long {
19
+ @Id @NotNull @MaxLen(10) @DbName("ID") #postable(false) #updatable(false)
20
+ };
21
+ famAlumneAdreca : string {
22
+ @MaxLen(255) @DbName("ADRECA")
23
+ #mandatoryInList(true)
24
+ #order(8)
25
+ };
26
+ famAlumneCognoms : string {
27
+ @MaxLen(255) @DbName("COGNOMS")
28
+ #mandatoryInList(true)
29
+ #order(2)
30
+ };
31
+ famAlumneCtFitxer : string {
32
+ @MaxLen(255) @DbName("CT_FITXER")
33
+ #mandatoryInList(false)
34
+ };
35
+ famAlumneDataNaixement : date {
36
+ @DbName("DATA_NAIXEMENT")
37
+ #mandatoryInList(true)
38
+ #order(4)
39
+ };
40
+ famAlumneDocument : string {
41
+ @MaxLen(255) @DbName("FDOCUMENT")
42
+ #mandatoryInList(true)
43
+ #order(5)
44
+ };
45
+ famAlumneEdat : long {
46
+ @DbName("EDAT") @MaxLen(15)
47
+ #mandatoryInList(true)
48
+ #order(3)
49
+ };
50
+ famAlumneNom : string {
51
+ @MaxLen(255) @DbName("NOM")
52
+ #mandatoryInList(true)
53
+ #order(1)
54
+ };
55
+ famAlumneNomFitxer : string {
56
+ @MaxLen(255) @DbName("NOM_FITXER")
57
+ #mandatoryInList(false)
58
+ };
59
+ famAlumnePesFitxer : long {
60
+ @DbName("PES_FITXER") @MaxLen(15)
61
+ #mandatoryInList(false)
62
+ #order(7)
63
+ };
64
+ famAlumneSexe : string {
65
+ @MaxLen(10) @DbName("FALUMNE_SEXE")
66
+ #mandatoryInList(true)
67
+ #order(6)
68
+ };
69
+ famUbicacio : FamUbicacio {
70
+ #Link("UBICACIO")
71
+ #fieldShowFront("famUbiNom")
72
+ #mandatoryInList(false)
73
+ #type("ubicacions")
74
+ };
75
+ famMatriculas : FamMatricula[] { @MappedBy(famAlumne) };
76
+ }
@@ -0,0 +1,33 @@
1
+ // ----------------------------------------------------------------------------
2
+ // Outbound infrastructure: Database
3
+ @DbSchema("FAM_API")
4
+ @DbTable("FAM_AREA")
5
+ #DbColumnPrefix("FAM_ARE")
6
+ // ----------------------------------------------------------------------------
7
+ // Inbound infrastructure: API Rest
8
+ #ApiResource("areas")
9
+ // ----------------------------------------------------------------------------
10
+ // Domain Model
11
+ @AggregateRoot
12
+ #AggregateDeletion("logical")
13
+ // ----------------------------------------------------------------------------
14
+ // Model definition
15
+ FamArea {
16
+ famAreId : long {
17
+ @Id @NotNull @MaxLen(10) @DbName("ID") #postable(false) #updatable(false)
18
+ };
19
+ famAreNom : string {
20
+ @NotNull @MaxLen(64) @DbName("NOM")
21
+ #mandatoryInList(true)
22
+ #order(1)
23
+ #linkInList(true)
24
+ };
25
+ famZona : FamZona {
26
+ #Link("ZONA")
27
+ #fieldShowFront("famZonaNom")
28
+ #mandatoryInList(true)
29
+ #type("zonas")
30
+ #isParentEntity(true)
31
+ #order(2)
32
+ };
33
+ }
@@ -0,0 +1,37 @@
1
+ // ----------------------------------------------------------------------------
2
+ // Outbound infrastructure: Database
3
+ @DbSchema("FAM_API")
4
+ @DbTable("FAM_COMANDA")
5
+ #DbColumnPrefix("FAM_COM")
6
+ // ----------------------------------------------------------------------------
7
+ // Inbound infrastructure: API Rest
8
+ #ApiResource("comandes")
9
+ // ----------------------------------------------------------------------------
10
+ // Domain Model
11
+ @AggregateRoot
12
+ #AggregateDeletion("logical")
13
+ // ----------------------------------------------------------------------------
14
+ // Tabs in Detail Page
15
+ #DetailTabs("FamLinia")
16
+ // ----------------------------------------------------------------------------
17
+ // Model definition
18
+ FamComanda {
19
+ famComId : long {
20
+ @Id @NotNull @MaxLen(10) @DbName("ID") #postable(false) #updatable(false)
21
+ };
22
+ famComEmailDestinatari : string {
23
+ @MaxLen(128) @DbName("EMAIL_DESTINATARI")
24
+ #mandatoryInList(true)
25
+ #order(3)
26
+ };
27
+ famComNomDestinatari : string {
28
+ @MaxLen(64) @DbName("NOM_DESTINATARI")
29
+ #mandatoryInList(true)
30
+ #order(2)
31
+ };
32
+ famComReferencia : string {
33
+ @MaxLen(64) @DbName("REFERENCIA")
34
+ #mandatoryInList(true)
35
+ #order(1)
36
+ };
37
+ }
@@ -0,0 +1,50 @@
1
+ // ----------------------------------------------------------------------------
2
+ // Outbound infrastructure: Database
3
+ @DbSchema("FAM_API")
4
+ @DbTable("FAM_CURS")
5
+ #DbColumnPrefix("FAM_CURS")
6
+ // ----------------------------------------------------------------------------
7
+ // Inbound infrastructure: API Rest
8
+ #ApiResource("cursos")
9
+ // ----------------------------------------------------------------------------
10
+ // Domain Model
11
+ @AggregateRoot
12
+ #AggregateDeletion("logical")
13
+ // ----------------------------------------------------------------------------
14
+ // Tabs in Detail Page
15
+ #DetailTabs("FamMatricula")
16
+ // Model definition
17
+ FamCurs {
18
+ famCursId : long {
19
+ @Id @NotNull @MaxLen(10) @DbName("ID") #postable(false) #updatable(false)
20
+ };
21
+ famCursActivat : long {
22
+ @DbName("ACTIVAT") @MaxLen(15)
23
+ #mandatoryInList(true)
24
+ };
25
+ famCursCodi : string {
26
+ @MaxLen(255) @DbName("CODI")
27
+ #mandatoryInList(true)
28
+ };
29
+ famCursDataFi : date {
30
+ @DbName("DATA_FI")
31
+ #mandatoryInList(true)
32
+ };
33
+ famCursDataInici : date {
34
+ @DbName("DATA_INICI")
35
+ #mandatoryInList(true)
36
+ };
37
+ famCursImport : long {
38
+ @DbName("IMPORT") @MaxLen(15)
39
+ #mandatoryInList(true)
40
+ };
41
+ famCursNom : string {
42
+ @MaxLen(255) @DbName("NOM")
43
+ #mandatoryInList(true)
44
+ };
45
+ famCursObservacions : string {
46
+ @MaxLen(1024) @DbName("OBSERVACIONS")
47
+ #mandatoryInList(false)
48
+ };
49
+ famMatriculas : FamMatricula[] { @MappedBy(famCurs) };
50
+ }
@@ -0,0 +1,53 @@
1
+ // ----------------------------------------------------------------------------
2
+ // Outbound infrastructure: Database
3
+ @DbSchema("FAM_API")
4
+ @DbTable("FAM_DOCUMENT")
5
+ #DbColumnPrefix("DOC")
6
+ // ----------------------------------------------------------------------------
7
+ // Inbound infrastructure: API Rest
8
+ #ApiResource("documents")
9
+ // ----------------------------------------------------------------------------
10
+ // Domain Model
11
+ @AggregateRoot
12
+ #AggregateDeletion("logical")
13
+ // ----------------------------------------------------------------------------
14
+ // Model definition
15
+ FamDocument {
16
+ docId : long {
17
+ @Id @NotNull @MaxLen(10) @DbName("ID") #postable(false) #updatable(false)
18
+ };
19
+ docAltaData : date {
20
+ @NotNull @DbName("ALTA_DATA")
21
+ #mandatoryInList(true)
22
+ };
23
+ docAltaUsuari : string {
24
+ @NotNull @MaxLen(255) @DbName("ALTA_USUARI")
25
+ #mandatoryInList(true)
26
+ };
27
+ docBaixaData : date {
28
+ @DbName("BAIXA_DATA")
29
+ #mandatoryInList(false)
30
+ };
31
+ docBaixaUsuari : string {
32
+ @MaxLen(255) @DbName("BAIXA_USUARI")
33
+ #mandatoryInList(false)
34
+ };
35
+ docContentType : string {
36
+ @NotNull @MaxLen(255) @DbName("CONTENT_TYPE")
37
+ #mandatoryInList(true)
38
+ };
39
+ docMida : long {
40
+ @NotNull @DbName("MIDA") @MaxLen(15)
41
+ #mandatoryInList(false)
42
+ };
43
+ famDocumentTipus : FamDocumentTipus {
44
+ #Link("TIPUS")
45
+ #fieldShowFront("tipusNom")
46
+ #mandatoryInList(true)
47
+ #type("document_tipus")
48
+ };
49
+ docNomArxiu : string {
50
+ @NotNull @MaxLen(255) @DbName("NOM_ARXIU")
51
+ #mandatoryInList(true)
52
+ };
53
+ }
@@ -0,0 +1,26 @@
1
+ // ----------------------------------------------------------------------------
2
+ // Outbound infrastructure: Database
3
+ @DbSchema("FAM_API")
4
+ @DbTable("FAM_DOCUMENT_TIPUS")
5
+ #DbColumnPrefix("TIPUS")
6
+ // ----------------------------------------------------------------------------
7
+ // Inbound infrastructure: API Rest
8
+ #ApiResource("document_tipus")
9
+ // ----------------------------------------------------------------------------
10
+ // Domain Model
11
+ @AggregateRoot
12
+ #AggregateDeletion("logical")
13
+ // ----------------------------------------------------------------------------
14
+ // UI Menu
15
+ #Menu("AUXILIARS")
16
+ // ----------------------------------------------------------------------------
17
+ // Model definition
18
+ FamDocumentTipus {
19
+ tipusId : long {
20
+ @Id @NotNull @MaxLen(10) @DbName("ID") #postable(false) #updatable(false)
21
+ };
22
+ tipusNom : string {
23
+ @MaxLen(255) @DbName("NOM")
24
+ #mandatoryInList(true)
25
+ };
26
+ }
@@ -0,0 +1,84 @@
1
+ // ----------------------------------------------------------------------------
2
+ // Outbound infrastructure: Database
3
+ @DbSchema("FAM_API")
4
+ @DbTable("FAM_ENTITAT_BASE")
5
+ #DbColumnPrefix("FAM_ENT")
6
+ // ----------------------------------------------------------------------------
7
+ // Inbound infrastructure: API Rest
8
+ #ApiResource("entitats_base")
9
+ // ----------------------------------------------------------------------------
10
+ // Domain Model
11
+ @AggregateRoot
12
+ #AggregateDeletion("logical")
13
+ // ----------------------------------------------------------------------------
14
+ // Form definition
15
+ #stackingForm(false)
16
+ #twoColumnForm(true)
17
+ // Model definition
18
+ FamEntitatBase {
19
+ famEntId : long {
20
+ @Id @NotNull @MaxLen(10) @DbName("ID") #postable(false) #updatable(false) #order(0)
21
+ };
22
+ famEntActivat : boolean {
23
+ @DbName("ACTIVAT")
24
+ #order(5)
25
+ #mandatoryInList(true)
26
+ };
27
+ famEntAssumpte : string {
28
+ @MaxLen(50) @DbName("ASSUMPTE")
29
+ #order(1)
30
+ #mandatoryInList(true)
31
+ };
32
+
33
+ famEntData : date {
34
+ @DbName("DATA")
35
+ #order(4)
36
+ #mandatoryInList(true)
37
+ };
38
+ famEntFitxer : binary {
39
+ @DbName("FITXER")
40
+ #order(6)
41
+ #mandatoryInList(false)
42
+ };
43
+ famEntFitxerNom : string {
44
+ @MaxLen(255) @DbName("FITXER_NOM") #disbaled(true)
45
+ #order(7)
46
+ #mandatoryInList(true)
47
+ };
48
+ famEntFitxerContentType : string {
49
+ @MaxLen(50) @DbName("FITXER_CONTENT_TYPE") #disbaled(true)
50
+ #order(8)
51
+ #mandatoryInList(false)
52
+ };
53
+ famEntFitxerPes : long {
54
+ @DbName("FITXER_PES") @MaxLen(15) #disbaled(true)
55
+ #order(9)
56
+ #mandatoryInList(false)
57
+ };
58
+ famEntImport : long {
59
+ @DbName("IMPORT") @MaxLen(15)
60
+ #order(3)
61
+ #mandatoryInList(true)
62
+ #pipe("money")
63
+ };
64
+ famEntObservacions : string {
65
+ @MaxLen(1024) @DbName("OBSERVACIONS")
66
+ #order(2)
67
+ #mandatoryInList(false)
68
+ #isTextArea(true)
69
+ };
70
+ famJerarquia : FamJerarquia {
71
+ #Link("JERARQUIA")
72
+ #fieldShowFront("famJerNom")
73
+ #mandatoryInList(true)
74
+ #type("jerarquies")
75
+ };
76
+ famUbicacio : FamUbicacio {
77
+ #Link("UBICACIO")
78
+ #fieldShowFront("famUbiNom")
79
+ #mandatoryInList(true)
80
+ #type("ubicacions")
81
+ #extraInclude("fam_ubicacio.fam_area, fam_ubicacio.fam_area.fam_zona")
82
+ #extraField("fam_ubicacio.fam_area.fam_are_nom, fam_ubicacio.fam_area.fam_zona.fam_zona_nom")
83
+ };
84
+ }
@@ -0,0 +1,71 @@
1
+ // ----------------------------------------------------------------------------
2
+ // Outbound infrastructure: Database
3
+ @DbSchema("FAM_API")
4
+ @DbTable("FAM_EXPEDIENT")
5
+ #DbColumnPrefix("EXP")
6
+ // ----------------------------------------------------------------------------
7
+ // Inbound infrastructure: API Rest
8
+ #ApiResource("expedients")
9
+ // ----------------------------------------------------------------------------
10
+ // Domain Model
11
+ @AggregateRoot
12
+ #AggregateDeletion("logical")
13
+ // ----------------------------------------------------------------------------
14
+ // Model definition
15
+ FamExpedient {
16
+ expId : long {
17
+ @Id @NotNull @MaxLen(10) @DbName("ID") #postable(false) #updatable(false)
18
+ };
19
+ expAltaData : date {
20
+ @DbName("ALTA_DATA")
21
+ #mandatoryInList(true)
22
+ };
23
+ expAltaUsuari : string {
24
+ @MaxLen(255) @DbName("ALTA_USUARI")
25
+ #mandatoryInList(true)
26
+ };
27
+ expBaixaData : date {
28
+ @DbName("BAIXA_DATA")
29
+ #mandatoryInList(false)
30
+ };
31
+ expBaixaUsuari : string {
32
+ @MaxLen(255) @DbName("BAIXA_USUARI")
33
+ #mandatoryInList(false)
34
+ };
35
+ expGestorCodiSap : string {
36
+ @MaxLen(255) @DbName("GESTOR_CODI_SAP")
37
+ #mandatoryInList(true)
38
+ };
39
+ expInfoXbmq : long {
40
+ @DbName("INFO_XBMQ") @MaxLen(15)
41
+ #mandatoryInList(false)
42
+ };
43
+ expModifData : date {
44
+ @DbName("MODIF_DATA")
45
+ #mandatoryInList(false)
46
+ };
47
+ expModifUsuari : string {
48
+ @MaxLen(255) @DbName("MODIF_USUARI")
49
+ #mandatoryInList(false)
50
+ };
51
+ expNumExpedientSap : string {
52
+ @MaxLen(255) @DbName("NUM_EXPEDIENT_SAP")
53
+ #mandatoryInList(true)
54
+ };
55
+ expTitol : string {
56
+ @MaxLen(255) @DbName("TITOL")
57
+ #mandatoryInList(true)
58
+ };
59
+ famExpedientEstat : FamExpedientEstat {
60
+ #Link("ESTAT")
61
+ #fieldShowFront("estatNom")
62
+ #mandatoryInList(true)
63
+ #type("expedient_estats")
64
+ };
65
+ famExpedientTipus : FamExpedientTipus {
66
+ #Link("TIPUS")
67
+ #fieldShowFront("tipusNom")
68
+ #mandatoryInList(true)
69
+ #type("expedient_tipus")
70
+ };
71
+ }
@@ -0,0 +1,51 @@
1
+ // ----------------------------------------------------------------------------
2
+ // Outbound infrastructure: Database
3
+ @DbSchema("FAM_API")
4
+ @DbTable("FAM_EXPEDIENT_DOCUMENT")
5
+ #DbColumnPrefix("EDOC")
6
+ // ----------------------------------------------------------------------------
7
+ // Inbound infrastructure: API Rest
8
+ #ApiResource("expedient_documents")
9
+ // ----------------------------------------------------------------------------
10
+ // Domain Model
11
+ @AggregateRoot
12
+ #AggregateDeletion("logical")
13
+ // ----------------------------------------------------------------------------
14
+ // Model definition
15
+ FamExpedientDocument {
16
+ edocId : long {
17
+ @Id @NotNull @MaxLen(10) @DbName("ID") #postable(false) #updatable(false)
18
+ };
19
+ edocAltaData : date {
20
+ @DbName("ALTA_DATA")
21
+ #mandatoryInList(true)
22
+ };
23
+ edocAltaUsuari : string {
24
+ @MaxLen(255) @DbName("ALTA_USUARI")
25
+ #mandatoryInList(true)
26
+ };
27
+ edocBaixaData : date {
28
+ @DbName("BAIXA_DATA")
29
+ #mandatoryInList(true)
30
+ };
31
+ edocBaixaUsuari : string {
32
+ @MaxLen(255) @DbName("BAIXA_USUARI")
33
+ #mandatoryInList(true)
34
+ };
35
+ edocVisibilitatExterna : boolean {
36
+ @DbName("VISIBILITAT_EXTERNA")
37
+ #mandatoryInList(true)
38
+ };
39
+ famDocument : FamDocument {
40
+ #Link("DOC")
41
+ #fieldShowFront("docNomArxiu")
42
+ #mandatoryInList(true)
43
+ #type("documents")
44
+ };
45
+ famExpedient : FamExpedient {
46
+ #Link("EXP")
47
+ #fieldShowFront("expTitol")
48
+ #mandatoryInList(true)
49
+ #type("expedients")
50
+ };
51
+ }
@@ -0,0 +1,26 @@
1
+ // ----------------------------------------------------------------------------
2
+ // Outbound infrastructure: Database
3
+ @DbSchema("FAM_API")
4
+ @DbTable("FAM_EXPEDIENT_ESTAT")
5
+ #DbColumnPrefix("ESTAT")
6
+ // ----------------------------------------------------------------------------
7
+ // Inbound infrastructure: API Rest
8
+ #ApiResource("expedient_estats")
9
+ // ----------------------------------------------------------------------------
10
+ // Domain Model
11
+ @AggregateRoot
12
+ #AggregateDeletion("logical")
13
+ // ----------------------------------------------------------------------------
14
+ // UI Menu
15
+ #Menu("AUXILIARS")
16
+ // ----------------------------------------------------------------------------
17
+ // Model definition
18
+ FamExpedientEstat {
19
+ estatId : long {
20
+ @Id @NotNull @MaxLen(10) @DbName("ID") #postable(false) #updatable(false)
21
+ };
22
+ estatNom : string {
23
+ @MaxLen(255) @DbName("NOM")
24
+ #mandatoryInList(true)
25
+ };
26
+ }
@@ -0,0 +1,26 @@
1
+ // ----------------------------------------------------------------------------
2
+ // Outbound infrastructure: Database
3
+ @DbSchema("FAM_API")
4
+ @DbTable("FAM_EXPEDIENT_TIPUS")
5
+ #DbColumnPrefix("TIPUS")
6
+ // ----------------------------------------------------------------------------
7
+ // Inbound infrastructure: API Rest
8
+ #ApiResource("expedient_tipus")
9
+ // ----------------------------------------------------------------------------
10
+ // Domain Model
11
+ @AggregateRoot
12
+ #AggregateDeletion("logical")
13
+ // ----------------------------------------------------------------------------
14
+ // UI Menu
15
+ #Menu("AUXILIARS")
16
+ // ----------------------------------------------------------------------------
17
+ // Model definition
18
+ FamExpedientTipus {
19
+ tipusId : long {
20
+ @Id @NotNull @MaxLen(10) @DbName("ID") #postable(false) #updatable(false)
21
+ };
22
+ tipusNom : string {
23
+ @MaxLen(255) @DbName("NOM")
24
+ #mandatoryInList(true)
25
+ };
26
+ }
@@ -0,0 +1,33 @@
1
+ // ----------------------------------------------------------------------------
2
+ // Outbound infrastructure: Database
3
+ @DbSchema("FAM_API")
4
+ @DbTable("FAM_JERARQUIA")
5
+ #DbColumnPrefix("FAM_JER")
6
+ // ----------------------------------------------------------------------------
7
+ // Inbound infrastructure: API Rest
8
+ #ApiResource("jerarquies")
9
+ // ----------------------------------------------------------------------------
10
+ // Domain Model
11
+ @AggregateRoot
12
+ #AggregateDeletion("logical")
13
+ // ----------------------------------------------------------------------------
14
+ // Model definition
15
+ FamJerarquia {
16
+ famJerId : long {
17
+ @Id @NotNull @MaxLen(10) @DbName("ID") #postable(false) #updatable(false)
18
+ };
19
+ famJerarquia : FamJerarquia {
20
+ @Optional #Link("JERARQUIA")
21
+ #fieldShowFront("famJerNom")
22
+ #mandatoryInList(true)
23
+ #type("jerarquies")
24
+ };
25
+ famJerDescripcio : string {
26
+ @MaxLen(255) @DbName("DESCRIPCIO")
27
+ #mandatoryInList(true)
28
+ };
29
+ famJerNom : string {
30
+ @MaxLen(64) @DbName("NOM")
31
+ #mandatoryInList(true)
32
+ };
33
+ }
@@ -0,0 +1,56 @@
1
+ // ----------------------------------------------------------------------------
2
+ // Outbound infrastructure: Database
3
+ @DbSchema("FAM_API")
4
+ @DbTable("FAM_LINIA")
5
+ #DbColumnPrefix("FAM_LIN")
6
+ // ----------------------------------------------------------------------------
7
+ // Inbound infrastructure: API Rest
8
+ #ApiResource("linies")
9
+ // ----------------------------------------------------------------------------
10
+ // Domain Model
11
+ @AggregateRoot
12
+ #AggregateDeletion("logical")
13
+ // ----------------------------------------------------------------------------
14
+ // UI Menu
15
+ #Menu("AUXILIARS")
16
+ // ----------------------------------------------------------------------------
17
+ // Model definition
18
+ FamLinia {
19
+ famLinId : long {
20
+ @Id @NotNull @MaxLen(10) @DbName("ID") #postable(false) #updatable(false)
21
+ };
22
+ famLinDataEntrega : timestamp {
23
+ @DbName("DATA_ENTREGA")
24
+ #mandatoryInList(true)
25
+ #order(5)
26
+ };
27
+ famLinDescripcio : string {
28
+ @MaxLen(255) @DbName("DESCRIPCIO")
29
+ #mandatoryInList(true)
30
+ #order(2)
31
+ };
32
+ famLinPreu : long {
33
+ @DbName("PREU") @MaxLen(15)
34
+ #mandatoryInList(true)
35
+ #order(4)
36
+ };
37
+ famLinUnitats : long {
38
+ @DbName("UNITATS") @MaxLen(15)
39
+ #mandatoryInList(true)
40
+ #order(3)
41
+ };
42
+ famComanda : FamComanda {
43
+ @Optional #Link("COMANDA")
44
+ #fieldShowFront("famComReferencia")
45
+ #mandatoryInList(true)
46
+ #type("comandes")
47
+ #isParentEntity(true)
48
+ };
49
+ famTipusArticle : FamTipusArticle {
50
+ @Optional #Link("TIPUS_ARTICLE")
51
+ #fieldShowFront("famTipDescripcio")
52
+ #mandatoryInList(true)
53
+ #type("tipus_articles")
54
+ #order(1)
55
+ };
56
+ }