From 73a88305c35abf641496a751aedfdf9a88cabda3 Mon Sep 17 00:00:00 2001 From: risadmin_prod Date: Fri, 18 Jul 2025 06:07:04 +0000 Subject: [PATCH] build_app --- .../Builders/Services/BuilderService.java | 15 + .../Controllers/ExpensesController.java | 99 +++ .../Expenses_ListFilter1Controller.java | 24 + .../Founders_friendController.java | 115 +++ .../Controllers/JournalController.java | 99 +++ .../Controllers/NotesController.java | 91 ++ .../Controllers/TasksController.java | 91 ++ .../tokenFree_ExpensesController.java | 99 +++ ...enFree_Expenses_ListFilter1Controller.java | 24 + .../tokenFree_Founders_friendController.java | 115 +++ .../tokenFree_JournalController.java | 99 +++ .../tokenFree_NotesController.java | 91 ++ .../tokenFree_TasksController.java | 91 ++ .../founder's_friend/Entity/Expenses.java | 33 + .../Entity/Expenses_ListFilter1.java | 14 + .../Entity/Founders_friend.java | 44 + .../founder's_friend/Entity/Journal.java | 33 + .../founder's_friend/Entity/Notes.java | 29 + .../founder's_friend/Entity/Tasks.java | 28 + .../Repository/ExpensesRepository.java | 30 + .../Repository/Founders_friendRepository.java | 34 + .../Repository/JournalRepository.java | 30 + .../Repository/NotesRepository.java | 28 + .../Repository/TasksRepository.java | 28 + .../Services/ExpensesService.java | 93 ++ .../Services/Expenses_ListFilter1Service.java | 47 + .../Services/Founders_friendService.java | 113 +++ .../Services/JournalService.java | 93 ++ .../Services/NotesService.java | 83 ++ .../Services/TasksService.java | 83 ++ .../authsec_mysql/mysql/wf_table/wf_table.sql | 10 + .../login/login-page/login_environment.ts | 18 +- .../Expenses/Expenses.component.html | 434 ++++++++++ .../Expenses/Expenses.component.scss | 78 ++ .../Expenses/Expenses.component.ts | 270 ++++++ .../Expenses/Expenses.service.ts | 39 + .../Expenses/Expenses_cardvariable.ts | 4 + .../Founders_friend.component.html | 813 ++++++++++++++++++ .../Founders_friend.component.scss | 78 ++ .../Founders_friend.component.ts | 480 +++++++++++ .../Founders_friend.service.ts | 43 + .../Founders_friend_cardvariable.ts | 4 + .../Journal/Journal.component.html | 378 ++++++++ .../Journal/Journal.component.scss | 78 ++ .../Journal/Journal.component.ts | 270 ++++++ .../Journal/Journal.service.ts | 39 + .../Journal/Journal_cardvariable.ts | 4 + .../Notes/Notes.component.html | 349 ++++++++ .../Notes/Notes.component.scss | 78 ++ .../founder's_friend/Notes/Notes.component.ts | 246 ++++++ .../founder's_friend/Notes/Notes.service.ts | 37 + .../Notes/Notes_cardvariable.ts | 4 + .../Tasks/Tasks.component.html | 379 ++++++++ .../Tasks/Tasks.component.scss | 78 ++ .../founder's_friend/Tasks/Tasks.component.ts | 244 ++++++ .../founder's_friend/Tasks/Tasks.service.ts | 37 + .../Tasks/Tasks_cardvariable.ts | 4 + .../app/modules/main/main-routing.module.ts | 20 + .../src/app/modules/main/main.module.ts | 20 + .../src/assets/i18n/en.json | 19 +- 60 files changed, 6437 insertions(+), 14 deletions(-) create mode 100644 foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/ExpensesController.java create mode 100644 foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/Expenses_ListFilter1Controller.java create mode 100644 foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/Founders_friendController.java create mode 100644 foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/JournalController.java create mode 100644 foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/NotesController.java create mode 100644 foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/TasksController.java create mode 100644 foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/tokenFree_ExpensesController.java create mode 100644 foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/tokenFree_Expenses_ListFilter1Controller.java create mode 100644 foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/tokenFree_Founders_friendController.java create mode 100644 foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/tokenFree_JournalController.java create mode 100644 foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/tokenFree_NotesController.java create mode 100644 foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/tokenFree_TasksController.java create mode 100644 foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Entity/Expenses.java create mode 100644 foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Entity/Expenses_ListFilter1.java create mode 100644 foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Entity/Founders_friend.java create mode 100644 foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Entity/Journal.java create mode 100644 foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Entity/Notes.java create mode 100644 foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Entity/Tasks.java create mode 100644 foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Repository/ExpensesRepository.java create mode 100644 foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Repository/Founders_friendRepository.java create mode 100644 foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Repository/JournalRepository.java create mode 100644 foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Repository/NotesRepository.java create mode 100644 foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Repository/TasksRepository.java create mode 100644 foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Services/ExpensesService.java create mode 100644 foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Services/Expenses_ListFilter1Service.java create mode 100644 foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Services/Founders_friendService.java create mode 100644 foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Services/JournalService.java create mode 100644 foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Services/NotesService.java create mode 100644 foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Services/TasksService.java create mode 100755 foundersfriend01-dbf-d/authsec_mysql/mysql/wf_table/wf_table.sql create mode 100644 foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Expenses/Expenses.component.html create mode 100644 foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Expenses/Expenses.component.scss create mode 100644 foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Expenses/Expenses.component.ts create mode 100644 foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Expenses/Expenses.service.ts create mode 100644 foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Expenses/Expenses_cardvariable.ts create mode 100644 foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Founders_friend/Founders_friend.component.html create mode 100644 foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Founders_friend/Founders_friend.component.scss create mode 100644 foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Founders_friend/Founders_friend.component.ts create mode 100644 foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Founders_friend/Founders_friend.service.ts create mode 100644 foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Founders_friend/Founders_friend_cardvariable.ts create mode 100644 foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Journal/Journal.component.html create mode 100644 foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Journal/Journal.component.scss create mode 100644 foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Journal/Journal.component.ts create mode 100644 foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Journal/Journal.service.ts create mode 100644 foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Journal/Journal_cardvariable.ts create mode 100644 foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Notes/Notes.component.html create mode 100644 foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Notes/Notes.component.scss create mode 100644 foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Notes/Notes.component.ts create mode 100644 foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Notes/Notes.service.ts create mode 100644 foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Notes/Notes_cardvariable.ts create mode 100644 foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Tasks/Tasks.component.html create mode 100644 foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Tasks/Tasks.component.scss create mode 100644 foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Tasks/Tasks.component.ts create mode 100644 foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Tasks/Tasks.service.ts create mode 100644 foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Tasks/Tasks_cardvariable.ts diff --git a/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/Builders/Services/BuilderService.java b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/Builders/Services/BuilderService.java index f9801fb..72b5b5f 100644 --- a/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/Builders/Services/BuilderService.java +++ b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/Builders/Services/BuilderService.java @@ -69,6 +69,21 @@ public class BuilderService { executeDump(true); // ADD OTHER SERVICE +addCustomMenu( "Founders_friend","Founders_friend", "Transcations"); + + +addCustomMenu( "Expenses","Expenses", "Transcations"); + + +addCustomMenu( "Notes","Notes", "Transcations"); + + +addCustomMenu( "Tasks","Tasks", "Transcations"); + + +addCustomMenu( "Journal","Journal", "Transcations"); + + System.out.println("dashboard and menu inserted..."); diff --git a/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/ExpensesController.java b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/ExpensesController.java new file mode 100644 index 0000000..ccef842 --- /dev/null +++ b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/ExpensesController.java @@ -0,0 +1,99 @@ +package com.realnet.founder's_friend.Controllers; +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; +import com.fasterxml.jackson.core.JsonProcessingException; +import org.springframework.web.bind.annotation.CrossOrigin; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.realnet.config.EmailService; +import com.realnet.users.entity1.AppUser; +import com.realnet.users.service1.AppUserServiceImpl; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.springframework.data.domain.*; +import com.realnet.fnd.response.EntityResponse; +import org.springframework.http.*; +import org.springframework.beans.factory.annotation.*; +import com.realnet.founder's_friend.Entity.Expenses; +import com.realnet.founder's_friend.Services.ExpensesService ; + + + + + + +@RequestMapping(value = "/Expenses") + @CrossOrigin("*") +@RestController +public class ExpensesController { + @Autowired + private ExpensesService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + @PostMapping("/Expenses") + public Expenses Savedata(@RequestBody Expenses data) { + Expenses save = Service.Savedata(data) ; + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Expenses/{id}") + public Expenses update(@RequestBody Expenses data,@PathVariable Integer id ) { + Expenses update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Expenses/getall/page") + public Page getall(@RequestParam(value = "page", required = false) Integer page, + @RequestParam(value = "size", required = false) Integer size) { + Pageable paging = PageRequest.of(page, size); + Page get = Service.getAllWithPagination(paging); + + return get; + + } + @GetMapping("/Expenses") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Expenses") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Expenses/{id}") + public Expenses getdetailsbyId(@PathVariable Integer id ) { + Expenses get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Expenses/{id}") + public ResponseEntity delete_by_id(@PathVariable Integer id ) { + Service.delete_by_id(id); + return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK); + + } + + + + + + + +} \ No newline at end of file diff --git a/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/Expenses_ListFilter1Controller.java b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/Expenses_ListFilter1Controller.java new file mode 100644 index 0000000..a91a3b4 --- /dev/null +++ b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/Expenses_ListFilter1Controller.java @@ -0,0 +1,24 @@ +package com.realnet.founder's_friend.Controllers; +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.web.bind.annotation.*; +import com.realnet.founder's_friend.Entity.Expenses_ListFilter1; +import com.realnet.founder's_friend.Services.Expenses_ListFilter1Service ; +@RequestMapping(value = "/Expenses_ListFilter1") +@RestController +public class Expenses_ListFilter1Controller { + + @Autowired + private Expenses_ListFilter1Service Service; + + @GetMapping("/Expenses_ListFilter1") + public List getlist() { + List get = Service.getlistbuilder(); + return get; +} + @GetMapping("/Expenses_ListFilter11") + public List getlistwithparam( ) { + List get = Service.getlistbuilderparam( ); + return get; +} +} \ No newline at end of file diff --git a/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/Founders_friendController.java b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/Founders_friendController.java new file mode 100644 index 0000000..033bde9 --- /dev/null +++ b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/Founders_friendController.java @@ -0,0 +1,115 @@ +package com.realnet.founder's_friend.Controllers; +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; +import com.fasterxml.jackson.core.JsonProcessingException; +import org.springframework.web.bind.annotation.CrossOrigin; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.realnet.config.EmailService; +import com.realnet.users.entity1.AppUser; +import com.realnet.users.service1.AppUserServiceImpl; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.springframework.data.domain.*; +import com.realnet.fnd.response.EntityResponse; +import org.springframework.http.*; +import org.springframework.beans.factory.annotation.*; +import com.realnet.founder's_friend.Entity.Founders_friend; +import com.realnet.founder's_friend.Services.Founders_friendService ; + + + + + + + + + + +@RequestMapping(value = "/Founders_friend") + @CrossOrigin("*") +@RestController +public class Founders_friendController { + @Autowired + private Founders_friendService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + @PostMapping("/Founders_friend") + public Founders_friend Savedata(@RequestBody Founders_friend data) { + Founders_friend save = Service.Savedata(data) ; + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Founders_friend/{id}") + public Founders_friend update(@RequestBody Founders_friend data,@PathVariable Integer id ) { + Founders_friend update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Founders_friend/getall/page") + public Page getall(@RequestParam(value = "page", required = false) Integer page, + @RequestParam(value = "size", required = false) Integer size) { + Pageable paging = PageRequest.of(page, size); + Page get = Service.getAllWithPagination(paging); + + return get; + + } + @GetMapping("/Founders_friend") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Founders_friend") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Founders_friend/{id}") + public Founders_friend getdetailsbyId(@PathVariable Integer id ) { + Founders_friend get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Founders_friend/{id}") + public ResponseEntity delete_by_id(@PathVariable Integer id ) { + Service.delete_by_id(id); + return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK); + + } + + + + + + + + + + + +} \ No newline at end of file diff --git a/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/JournalController.java b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/JournalController.java new file mode 100644 index 0000000..36048a3 --- /dev/null +++ b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/JournalController.java @@ -0,0 +1,99 @@ +package com.realnet.founder's_friend.Controllers; +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; +import com.fasterxml.jackson.core.JsonProcessingException; +import org.springframework.web.bind.annotation.CrossOrigin; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.realnet.config.EmailService; +import com.realnet.users.entity1.AppUser; +import com.realnet.users.service1.AppUserServiceImpl; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.springframework.data.domain.*; +import com.realnet.fnd.response.EntityResponse; +import org.springframework.http.*; +import org.springframework.beans.factory.annotation.*; +import com.realnet.founder's_friend.Entity.Journal; +import com.realnet.founder's_friend.Services.JournalService ; + + + + + + +@RequestMapping(value = "/Journal") + @CrossOrigin("*") +@RestController +public class JournalController { + @Autowired + private JournalService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + @PostMapping("/Journal") + public Journal Savedata(@RequestBody Journal data) { + Journal save = Service.Savedata(data) ; + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Journal/{id}") + public Journal update(@RequestBody Journal data,@PathVariable Integer id ) { + Journal update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Journal/getall/page") + public Page getall(@RequestParam(value = "page", required = false) Integer page, + @RequestParam(value = "size", required = false) Integer size) { + Pageable paging = PageRequest.of(page, size); + Page get = Service.getAllWithPagination(paging); + + return get; + + } + @GetMapping("/Journal") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Journal") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Journal/{id}") + public Journal getdetailsbyId(@PathVariable Integer id ) { + Journal get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Journal/{id}") + public ResponseEntity delete_by_id(@PathVariable Integer id ) { + Service.delete_by_id(id); + return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK); + + } + + + + + + + +} \ No newline at end of file diff --git a/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/NotesController.java b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/NotesController.java new file mode 100644 index 0000000..586c76d --- /dev/null +++ b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/NotesController.java @@ -0,0 +1,91 @@ +package com.realnet.founder's_friend.Controllers; +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; +import com.fasterxml.jackson.core.JsonProcessingException; +import org.springframework.web.bind.annotation.CrossOrigin; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.realnet.config.EmailService; +import com.realnet.users.entity1.AppUser; +import com.realnet.users.service1.AppUserServiceImpl; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.springframework.data.domain.*; +import com.realnet.fnd.response.EntityResponse; +import org.springframework.http.*; +import org.springframework.beans.factory.annotation.*; +import com.realnet.founder's_friend.Entity.Notes; +import com.realnet.founder's_friend.Services.NotesService ; + + + + +@RequestMapping(value = "/Notes") + @CrossOrigin("*") +@RestController +public class NotesController { + @Autowired + private NotesService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + @PostMapping("/Notes") + public Notes Savedata(@RequestBody Notes data) { + Notes save = Service.Savedata(data) ; + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Notes/{id}") + public Notes update(@RequestBody Notes data,@PathVariable Integer id ) { + Notes update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Notes/getall/page") + public Page getall(@RequestParam(value = "page", required = false) Integer page, + @RequestParam(value = "size", required = false) Integer size) { + Pageable paging = PageRequest.of(page, size); + Page get = Service.getAllWithPagination(paging); + + return get; + + } + @GetMapping("/Notes") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Notes") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Notes/{id}") + public Notes getdetailsbyId(@PathVariable Integer id ) { + Notes get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Notes/{id}") + public ResponseEntity delete_by_id(@PathVariable Integer id ) { + Service.delete_by_id(id); + return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK); + + } + + + + + +} \ No newline at end of file diff --git a/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/TasksController.java b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/TasksController.java new file mode 100644 index 0000000..4117ae9 --- /dev/null +++ b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/TasksController.java @@ -0,0 +1,91 @@ +package com.realnet.founder's_friend.Controllers; +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; +import com.fasterxml.jackson.core.JsonProcessingException; +import org.springframework.web.bind.annotation.CrossOrigin; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.realnet.config.EmailService; +import com.realnet.users.entity1.AppUser; +import com.realnet.users.service1.AppUserServiceImpl; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.springframework.data.domain.*; +import com.realnet.fnd.response.EntityResponse; +import org.springframework.http.*; +import org.springframework.beans.factory.annotation.*; +import com.realnet.founder's_friend.Entity.Tasks; +import com.realnet.founder's_friend.Services.TasksService ; + + + + +@RequestMapping(value = "/Tasks") + @CrossOrigin("*") +@RestController +public class TasksController { + @Autowired + private TasksService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + @PostMapping("/Tasks") + public Tasks Savedata(@RequestBody Tasks data) { + Tasks save = Service.Savedata(data) ; + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Tasks/{id}") + public Tasks update(@RequestBody Tasks data,@PathVariable Integer id ) { + Tasks update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Tasks/getall/page") + public Page getall(@RequestParam(value = "page", required = false) Integer page, + @RequestParam(value = "size", required = false) Integer size) { + Pageable paging = PageRequest.of(page, size); + Page get = Service.getAllWithPagination(paging); + + return get; + + } + @GetMapping("/Tasks") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Tasks") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Tasks/{id}") + public Tasks getdetailsbyId(@PathVariable Integer id ) { + Tasks get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Tasks/{id}") + public ResponseEntity delete_by_id(@PathVariable Integer id ) { + Service.delete_by_id(id); + return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK); + + } + + + + + +} \ No newline at end of file diff --git a/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/tokenFree_ExpensesController.java b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/tokenFree_ExpensesController.java new file mode 100644 index 0000000..a619233 --- /dev/null +++ b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/tokenFree_ExpensesController.java @@ -0,0 +1,99 @@ +package com.realnet.founder's_friend.Controllers; +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; +import com.fasterxml.jackson.core.JsonProcessingException; +import org.springframework.web.bind.annotation.CrossOrigin; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.realnet.config.EmailService; +import com.realnet.users.entity1.AppUser; +import com.realnet.users.service1.AppUserServiceImpl; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.springframework.data.domain.*; +import com.realnet.fnd.response.EntityResponse; +import org.springframework.http.*; +import org.springframework.beans.factory.annotation.*; +import com.realnet.founder's_friend.Entity.Expenses; +import com.realnet.founder's_friend.Services.ExpensesService ; + + + + + + +@RequestMapping(value = "/token/Expenses") + @CrossOrigin("*") +@RestController +public class tokenFree_ExpensesController { + @Autowired + private ExpensesService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + @PostMapping("/Expenses") + public Expenses Savedata(@RequestBody Expenses data) { + Expenses save = Service.Savedata(data) ; + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Expenses/{id}") + public Expenses update(@RequestBody Expenses data,@PathVariable Integer id ) { + Expenses update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Expenses/getall/page") + public Page getall(@RequestParam(value = "page", required = false) Integer page, + @RequestParam(value = "size", required = false) Integer size) { + Pageable paging = PageRequest.of(page, size); + Page get = Service.getAllWithPagination(paging); + + return get; + + } + @GetMapping("/Expenses") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Expenses") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Expenses/{id}") + public Expenses getdetailsbyId(@PathVariable Integer id ) { + Expenses get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Expenses/{id}") + public ResponseEntity delete_by_id(@PathVariable Integer id ) { + Service.delete_by_id(id); + return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK); + + } + + + + + + + +} \ No newline at end of file diff --git a/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/tokenFree_Expenses_ListFilter1Controller.java b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/tokenFree_Expenses_ListFilter1Controller.java new file mode 100644 index 0000000..ffa4033 --- /dev/null +++ b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/tokenFree_Expenses_ListFilter1Controller.java @@ -0,0 +1,24 @@ +package com.realnet.founder's_friend.Controllers; +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.web.bind.annotation.*; +import com.realnet.founder's_friend.Entity.Expenses_ListFilter1; +import com.realnet.founder's_friend.Services.Expenses_ListFilter1Service ; +@RequestMapping(value = "/token/Expenses_ListFilter1") +@RestController +public class tokenFree_Expenses_ListFilter1Controller { + + @Autowired + private Expenses_ListFilter1Service Service; + + @GetMapping("/Expenses_ListFilter1") + public List getlist() { + List get = Service.getlistbuilder(); + return get; +} + @GetMapping("/Expenses_ListFilter11") + public List getlistwithparam( ) { + List get = Service.getlistbuilderparam( ); + return get; +} +} \ No newline at end of file diff --git a/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/tokenFree_Founders_friendController.java b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/tokenFree_Founders_friendController.java new file mode 100644 index 0000000..53ded1c --- /dev/null +++ b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/tokenFree_Founders_friendController.java @@ -0,0 +1,115 @@ +package com.realnet.founder's_friend.Controllers; +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; +import com.fasterxml.jackson.core.JsonProcessingException; +import org.springframework.web.bind.annotation.CrossOrigin; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.realnet.config.EmailService; +import com.realnet.users.entity1.AppUser; +import com.realnet.users.service1.AppUserServiceImpl; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.springframework.data.domain.*; +import com.realnet.fnd.response.EntityResponse; +import org.springframework.http.*; +import org.springframework.beans.factory.annotation.*; +import com.realnet.founder's_friend.Entity.Founders_friend; +import com.realnet.founder's_friend.Services.Founders_friendService ; + + + + + + + + + + +@RequestMapping(value = "/token/Founders_friend") + @CrossOrigin("*") +@RestController +public class tokenFree_Founders_friendController { + @Autowired + private Founders_friendService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + @PostMapping("/Founders_friend") + public Founders_friend Savedata(@RequestBody Founders_friend data) { + Founders_friend save = Service.Savedata(data) ; + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Founders_friend/{id}") + public Founders_friend update(@RequestBody Founders_friend data,@PathVariable Integer id ) { + Founders_friend update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Founders_friend/getall/page") + public Page getall(@RequestParam(value = "page", required = false) Integer page, + @RequestParam(value = "size", required = false) Integer size) { + Pageable paging = PageRequest.of(page, size); + Page get = Service.getAllWithPagination(paging); + + return get; + + } + @GetMapping("/Founders_friend") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Founders_friend") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Founders_friend/{id}") + public Founders_friend getdetailsbyId(@PathVariable Integer id ) { + Founders_friend get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Founders_friend/{id}") + public ResponseEntity delete_by_id(@PathVariable Integer id ) { + Service.delete_by_id(id); + return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK); + + } + + + + + + + + + + + +} \ No newline at end of file diff --git a/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/tokenFree_JournalController.java b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/tokenFree_JournalController.java new file mode 100644 index 0000000..a1e1881 --- /dev/null +++ b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/tokenFree_JournalController.java @@ -0,0 +1,99 @@ +package com.realnet.founder's_friend.Controllers; +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; +import com.fasterxml.jackson.core.JsonProcessingException; +import org.springframework.web.bind.annotation.CrossOrigin; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.realnet.config.EmailService; +import com.realnet.users.entity1.AppUser; +import com.realnet.users.service1.AppUserServiceImpl; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.springframework.data.domain.*; +import com.realnet.fnd.response.EntityResponse; +import org.springframework.http.*; +import org.springframework.beans.factory.annotation.*; +import com.realnet.founder's_friend.Entity.Journal; +import com.realnet.founder's_friend.Services.JournalService ; + + + + + + +@RequestMapping(value = "/token/Journal") + @CrossOrigin("*") +@RestController +public class tokenFree_JournalController { + @Autowired + private JournalService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + @PostMapping("/Journal") + public Journal Savedata(@RequestBody Journal data) { + Journal save = Service.Savedata(data) ; + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Journal/{id}") + public Journal update(@RequestBody Journal data,@PathVariable Integer id ) { + Journal update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Journal/getall/page") + public Page getall(@RequestParam(value = "page", required = false) Integer page, + @RequestParam(value = "size", required = false) Integer size) { + Pageable paging = PageRequest.of(page, size); + Page get = Service.getAllWithPagination(paging); + + return get; + + } + @GetMapping("/Journal") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Journal") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Journal/{id}") + public Journal getdetailsbyId(@PathVariable Integer id ) { + Journal get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Journal/{id}") + public ResponseEntity delete_by_id(@PathVariable Integer id ) { + Service.delete_by_id(id); + return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK); + + } + + + + + + + +} \ No newline at end of file diff --git a/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/tokenFree_NotesController.java b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/tokenFree_NotesController.java new file mode 100644 index 0000000..14ec4a3 --- /dev/null +++ b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/tokenFree_NotesController.java @@ -0,0 +1,91 @@ +package com.realnet.founder's_friend.Controllers; +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; +import com.fasterxml.jackson.core.JsonProcessingException; +import org.springframework.web.bind.annotation.CrossOrigin; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.realnet.config.EmailService; +import com.realnet.users.entity1.AppUser; +import com.realnet.users.service1.AppUserServiceImpl; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.springframework.data.domain.*; +import com.realnet.fnd.response.EntityResponse; +import org.springframework.http.*; +import org.springframework.beans.factory.annotation.*; +import com.realnet.founder's_friend.Entity.Notes; +import com.realnet.founder's_friend.Services.NotesService ; + + + + +@RequestMapping(value = "/token/Notes") + @CrossOrigin("*") +@RestController +public class tokenFree_NotesController { + @Autowired + private NotesService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + @PostMapping("/Notes") + public Notes Savedata(@RequestBody Notes data) { + Notes save = Service.Savedata(data) ; + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Notes/{id}") + public Notes update(@RequestBody Notes data,@PathVariable Integer id ) { + Notes update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Notes/getall/page") + public Page getall(@RequestParam(value = "page", required = false) Integer page, + @RequestParam(value = "size", required = false) Integer size) { + Pageable paging = PageRequest.of(page, size); + Page get = Service.getAllWithPagination(paging); + + return get; + + } + @GetMapping("/Notes") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Notes") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Notes/{id}") + public Notes getdetailsbyId(@PathVariable Integer id ) { + Notes get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Notes/{id}") + public ResponseEntity delete_by_id(@PathVariable Integer id ) { + Service.delete_by_id(id); + return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK); + + } + + + + + +} \ No newline at end of file diff --git a/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/tokenFree_TasksController.java b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/tokenFree_TasksController.java new file mode 100644 index 0000000..52e1e13 --- /dev/null +++ b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Controllers/tokenFree_TasksController.java @@ -0,0 +1,91 @@ +package com.realnet.founder's_friend.Controllers; +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; +import com.fasterxml.jackson.core.JsonProcessingException; +import org.springframework.web.bind.annotation.CrossOrigin; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.realnet.config.EmailService; +import com.realnet.users.entity1.AppUser; +import com.realnet.users.service1.AppUserServiceImpl; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.springframework.data.domain.*; +import com.realnet.fnd.response.EntityResponse; +import org.springframework.http.*; +import org.springframework.beans.factory.annotation.*; +import com.realnet.founder's_friend.Entity.Tasks; +import com.realnet.founder's_friend.Services.TasksService ; + + + + +@RequestMapping(value = "/token/Tasks") + @CrossOrigin("*") +@RestController +public class tokenFree_TasksController { + @Autowired + private TasksService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + @PostMapping("/Tasks") + public Tasks Savedata(@RequestBody Tasks data) { + Tasks save = Service.Savedata(data) ; + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Tasks/{id}") + public Tasks update(@RequestBody Tasks data,@PathVariable Integer id ) { + Tasks update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Tasks/getall/page") + public Page getall(@RequestParam(value = "page", required = false) Integer page, + @RequestParam(value = "size", required = false) Integer size) { + Pageable paging = PageRequest.of(page, size); + Page get = Service.getAllWithPagination(paging); + + return get; + + } + @GetMapping("/Tasks") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Tasks") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Tasks/{id}") + public Tasks getdetailsbyId(@PathVariable Integer id ) { + Tasks get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Tasks/{id}") + public ResponseEntity delete_by_id(@PathVariable Integer id ) { + Service.delete_by_id(id); + return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK); + + } + + + + + +} \ No newline at end of file diff --git a/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Entity/Expenses.java b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Entity/Expenses.java new file mode 100644 index 0000000..320b625 --- /dev/null +++ b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Entity/Expenses.java @@ -0,0 +1,33 @@ +package com.realnet.founder's_friend.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + @Entity + @Data + public class Expenses extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +@Column(length = 2000) +private String description; + +private int amount; + +private String select_category; + + +} diff --git a/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Entity/Expenses_ListFilter1.java b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Entity/Expenses_ListFilter1.java new file mode 100644 index 0000000..09bed46 --- /dev/null +++ b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Entity/Expenses_ListFilter1.java @@ -0,0 +1,14 @@ +package com.realnet.founder's_friend.Entity; + import lombok.*; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + @Data + public class Expenses_ListFilter1 { + + private Integer id; + + + private String amount; +} diff --git a/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Entity/Founders_friend.java b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Entity/Founders_friend.java new file mode 100644 index 0000000..ce62604 --- /dev/null +++ b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Entity/Founders_friend.java @@ -0,0 +1,44 @@ +package com.realnet.founder's_friend.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + +import com.realnet.founder's_friend.Entity.Journal; + +import com.realnet.founder's_friend.Entity.Tasks; + +import com.realnet.founder's_friend.Entity.Notes; + +import com.realnet.founder's_friend.Entity.Expenses; + + @Entity + @Data + public class Founders_friend extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String name; + +@OneToMany( cascade=CascadeType.ALL) + private List journal = new ArrayList<>(); + +@OneToMany( cascade=CascadeType.ALL) + private List tasks = new ArrayList<>(); + +@OneToMany( cascade=CascadeType.ALL) + private List notes = new ArrayList<>(); + +@OneToMany( cascade=CascadeType.ALL) + private List expenses = new ArrayList<>(); + + +} diff --git a/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Entity/Journal.java b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Entity/Journal.java new file mode 100644 index 0000000..f48208b --- /dev/null +++ b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Entity/Journal.java @@ -0,0 +1,33 @@ +package com.realnet.founder's_friend.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + @Entity + @Data + public class Journal extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String title; + +@Column(length = 2000) +private String description; + +private String datetime_field; + + +} diff --git a/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Entity/Notes.java b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Entity/Notes.java new file mode 100644 index 0000000..84d401c --- /dev/null +++ b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Entity/Notes.java @@ -0,0 +1,29 @@ +package com.realnet.founder's_friend.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + @Entity + @Data + public class Notes extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String note_title; + +@Column(length = 2000) +private String description; + + +} diff --git a/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Entity/Tasks.java b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Entity/Tasks.java new file mode 100644 index 0000000..18d86c5 --- /dev/null +++ b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Entity/Tasks.java @@ -0,0 +1,28 @@ +package com.realnet.founder's_friend.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + @Entity + @Data + public class Tasks extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String task; + +private String status; + + +} diff --git a/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Repository/ExpensesRepository.java b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Repository/ExpensesRepository.java new file mode 100644 index 0000000..eee6527 --- /dev/null +++ b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Repository/ExpensesRepository.java @@ -0,0 +1,30 @@ +package com.realnet.founder's_friend.Repository; + + +import org.springframework.data.domain.Page; +import org.springframework.data.domain.Pageable; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.Query; + +import org.springframework.stereotype.Repository; +import java.util.*; + + + + + + + + + +import com.realnet.founder's_friend.Entity.Expenses; + +@Repository +public interface ExpensesRepository extends JpaRepository { + +@Query(value = "select * from expenses where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from expenses where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Repository/Founders_friendRepository.java b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Repository/Founders_friendRepository.java new file mode 100644 index 0000000..e289e4d --- /dev/null +++ b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Repository/Founders_friendRepository.java @@ -0,0 +1,34 @@ +package com.realnet.founder's_friend.Repository; + + +import org.springframework.data.domain.Page; +import org.springframework.data.domain.Pageable; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.Query; + +import org.springframework.stereotype.Repository; +import java.util.*; + + + + + + + + + + + + + +import com.realnet.founder's_friend.Entity.Founders_friend; + +@Repository +public interface Founders_friendRepository extends JpaRepository { + +@Query(value = "select * from founders_friend where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from founders_friend where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Repository/JournalRepository.java b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Repository/JournalRepository.java new file mode 100644 index 0000000..d210586 --- /dev/null +++ b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Repository/JournalRepository.java @@ -0,0 +1,30 @@ +package com.realnet.founder's_friend.Repository; + + +import org.springframework.data.domain.Page; +import org.springframework.data.domain.Pageable; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.Query; + +import org.springframework.stereotype.Repository; +import java.util.*; + + + + + + + + + +import com.realnet.founder's_friend.Entity.Journal; + +@Repository +public interface JournalRepository extends JpaRepository { + +@Query(value = "select * from journal where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from journal where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Repository/NotesRepository.java b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Repository/NotesRepository.java new file mode 100644 index 0000000..656d498 --- /dev/null +++ b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Repository/NotesRepository.java @@ -0,0 +1,28 @@ +package com.realnet.founder's_friend.Repository; + + +import org.springframework.data.domain.Page; +import org.springframework.data.domain.Pageable; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.Query; + +import org.springframework.stereotype.Repository; +import java.util.*; + + + + + + + +import com.realnet.founder's_friend.Entity.Notes; + +@Repository +public interface NotesRepository extends JpaRepository { + +@Query(value = "select * from notes where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from notes where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Repository/TasksRepository.java b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Repository/TasksRepository.java new file mode 100644 index 0000000..625472d --- /dev/null +++ b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Repository/TasksRepository.java @@ -0,0 +1,28 @@ +package com.realnet.founder's_friend.Repository; + + +import org.springframework.data.domain.Page; +import org.springframework.data.domain.Pageable; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.Query; + +import org.springframework.stereotype.Repository; +import java.util.*; + + + + + + + +import com.realnet.founder's_friend.Entity.Tasks; + +@Repository +public interface TasksRepository extends JpaRepository { + +@Query(value = "select * from tasks where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from tasks where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Services/ExpensesService.java b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Services/ExpensesService.java new file mode 100644 index 0000000..c3ee988 --- /dev/null +++ b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Services/ExpensesService.java @@ -0,0 +1,93 @@ +package com.realnet.founder's_friend.Services; +import com.realnet.founder's_friend.Repository.ExpensesRepository; +import com.realnet.founder's_friend.Entity.Expenses +;import java.util.*; + +import org.springframework.beans.factory.annotation.Autowired; +import com.realnet.SequenceGenerator.Service.SequenceService; +import org.springframework.data.domain.Page; +import com.realnet.realm.Entity.Realm; +import com.realnet.realm.Services.RealmService; +import org.springframework.data.domain.Pageable; +import org.springframework.http.*; +import com.realnet.users.service1.AppUserServiceImpl; +import com.realnet.users.entity1.AppUser; + + + + + + + import org.springframework.stereotype.Service; + +@Service + public class ExpensesService { +@Autowired +private ExpensesRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + +public Expenses Savedata(Expenses data) { + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Expenses save = Repository.save(data); + return save; + } + + +// get all with pagination + public Page getAllWithPagination(Pageable page) { + return Repository.findAll(page, getUser().getUserId()); + } +public List getdetails() { + List realm = realmService.findByUserId(getUser().getUserId()); +List all = Repository.findAll(getUser().getUserId()); + + return all ; } + + +public Expenses getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Expenses update(Expenses data,Integer id) { + Expenses old = Repository.findById(id).get(); +old.setDescription(data.getDescription()); + +old.setAmount(data.getAmount()); + +old.setSelect_category(data.getSelect_category()); + +final Expenses test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Services/Expenses_ListFilter1Service.java b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Services/Expenses_ListFilter1Service.java new file mode 100644 index 0000000..f48789a --- /dev/null +++ b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Services/Expenses_ListFilter1Service.java @@ -0,0 +1,47 @@ +package com.realnet.founder's_friend.Services; +import java.util.*; +import com.realnet.founder's_friend.Repository.ExpensesRepository; +import com.realnet.founder's_friend.Entity.Expenses; + +import com.realnet.founder's_friend.Entity.Expenses_ListFilter1; +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Service; + +@Service + public class Expenses_ListFilter1Service { +@Autowired +private ExpensesRepository Repository; + + + + + public List getlistbuilder() { + List list= Repository.findAll(); + ArrayList l = new ArrayList<>(); + for (Expenses data : list) { +{ +Expenses_ListFilter1 dummy = new Expenses_ListFilter1(); + dummy.setId(data.getId()); + dummy.setAmount(data.getAmount()); + l.add(dummy); +} +} +return l;} + + + + public List getlistbuilderparam( ) { + List list= Repository.findAll(); + ArrayList l = new ArrayList<>(); + for (Expenses data : list) { +{ +Expenses_ListFilter1 dummy = new Expenses_ListFilter1(); + dummy.setId(data.getId()); + dummy.setAmount(data.getAmount()); + l.add(dummy); +} +} +return l;} +} \ No newline at end of file diff --git a/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Services/Founders_friendService.java b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Services/Founders_friendService.java new file mode 100644 index 0000000..d8c6b8a --- /dev/null +++ b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Services/Founders_friendService.java @@ -0,0 +1,113 @@ +package com.realnet.founder's_friend.Services; +import com.realnet.founder's_friend.Repository.Founders_friendRepository; +import com.realnet.founder's_friend.Entity.Founders_friend +;import java.util.*; + +import org.springframework.beans.factory.annotation.Autowired; +import com.realnet.SequenceGenerator.Service.SequenceService; +import org.springframework.data.domain.Page; +import com.realnet.realm.Entity.Realm; +import com.realnet.realm.Services.RealmService; +import org.springframework.data.domain.Pageable; +import org.springframework.http.*; +import com.realnet.users.service1.AppUserServiceImpl; +import com.realnet.users.entity1.AppUser; + + + + + + + + + + + import org.springframework.stereotype.Service; + +@Service + public class Founders_friendService { +@Autowired +private Founders_friendRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + +public Founders_friend Savedata(Founders_friend data) { + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Founders_friend save = Repository.save(data); + return save; + } + + +// get all with pagination + public Page getAllWithPagination(Pageable page) { + return Repository.findAll(page, getUser().getUserId()); + } +public List getdetails() { + List realm = realmService.findByUserId(getUser().getUserId()); +List all = Repository.findAll(getUser().getUserId()); + + return all ; } + + +public Founders_friend getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Founders_friend update(Founders_friend data,Integer id) { + Founders_friend old = Repository.findById(id).get(); +old.setName(data.getName()); + +old.setJournal(data.getJournal()); + +old.setTasks(data.getTasks()); + +old.setNotes(data.getNotes()); + +old.setExpenses(data.getExpenses()); + +final Founders_friend test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Services/JournalService.java b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Services/JournalService.java new file mode 100644 index 0000000..9165e95 --- /dev/null +++ b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Services/JournalService.java @@ -0,0 +1,93 @@ +package com.realnet.founder's_friend.Services; +import com.realnet.founder's_friend.Repository.JournalRepository; +import com.realnet.founder's_friend.Entity.Journal +;import java.util.*; + +import org.springframework.beans.factory.annotation.Autowired; +import com.realnet.SequenceGenerator.Service.SequenceService; +import org.springframework.data.domain.Page; +import com.realnet.realm.Entity.Realm; +import com.realnet.realm.Services.RealmService; +import org.springframework.data.domain.Pageable; +import org.springframework.http.*; +import com.realnet.users.service1.AppUserServiceImpl; +import com.realnet.users.entity1.AppUser; + + + + + + + import org.springframework.stereotype.Service; + +@Service + public class JournalService { +@Autowired +private JournalRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + +public Journal Savedata(Journal data) { + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Journal save = Repository.save(data); + return save; + } + + +// get all with pagination + public Page getAllWithPagination(Pageable page) { + return Repository.findAll(page, getUser().getUserId()); + } +public List getdetails() { + List realm = realmService.findByUserId(getUser().getUserId()); +List all = Repository.findAll(getUser().getUserId()); + + return all ; } + + +public Journal getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Journal update(Journal data,Integer id) { + Journal old = Repository.findById(id).get(); +old.setTitle(data.getTitle()); + +old.setDescription(data.getDescription()); + +old.setDatetime_field(data.getDatetime_field()); + +final Journal test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Services/NotesService.java b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Services/NotesService.java new file mode 100644 index 0000000..c0d8706 --- /dev/null +++ b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Services/NotesService.java @@ -0,0 +1,83 @@ +package com.realnet.founder's_friend.Services; +import com.realnet.founder's_friend.Repository.NotesRepository; +import com.realnet.founder's_friend.Entity.Notes +;import java.util.*; + +import org.springframework.beans.factory.annotation.Autowired; +import com.realnet.SequenceGenerator.Service.SequenceService; +import org.springframework.data.domain.Page; +import com.realnet.realm.Entity.Realm; +import com.realnet.realm.Services.RealmService; +import org.springframework.data.domain.Pageable; +import org.springframework.http.*; +import com.realnet.users.service1.AppUserServiceImpl; +import com.realnet.users.entity1.AppUser; + + + + + import org.springframework.stereotype.Service; + +@Service + public class NotesService { +@Autowired +private NotesRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + +public Notes Savedata(Notes data) { + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Notes save = Repository.save(data); + return save; + } + + +// get all with pagination + public Page getAllWithPagination(Pageable page) { + return Repository.findAll(page, getUser().getUserId()); + } +public List getdetails() { + List realm = realmService.findByUserId(getUser().getUserId()); +List all = Repository.findAll(getUser().getUserId()); + + return all ; } + + +public Notes getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Notes update(Notes data,Integer id) { + Notes old = Repository.findById(id).get(); +old.setNote_title(data.getNote_title()); + +old.setDescription(data.getDescription()); + +final Notes test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Services/TasksService.java b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Services/TasksService.java new file mode 100644 index 0000000..4e86c4f --- /dev/null +++ b/foundersfriend01-backf-b/authsec_springboot/backend/src/main/java/com/realnet/founder's_friend/Services/TasksService.java @@ -0,0 +1,83 @@ +package com.realnet.founder's_friend.Services; +import com.realnet.founder's_friend.Repository.TasksRepository; +import com.realnet.founder's_friend.Entity.Tasks +;import java.util.*; + +import org.springframework.beans.factory.annotation.Autowired; +import com.realnet.SequenceGenerator.Service.SequenceService; +import org.springframework.data.domain.Page; +import com.realnet.realm.Entity.Realm; +import com.realnet.realm.Services.RealmService; +import org.springframework.data.domain.Pageable; +import org.springframework.http.*; +import com.realnet.users.service1.AppUserServiceImpl; +import com.realnet.users.entity1.AppUser; + + + + + import org.springframework.stereotype.Service; + +@Service + public class TasksService { +@Autowired +private TasksRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + +public Tasks Savedata(Tasks data) { + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Tasks save = Repository.save(data); + return save; + } + + +// get all with pagination + public Page getAllWithPagination(Pageable page) { + return Repository.findAll(page, getUser().getUserId()); + } +public List getdetails() { + List realm = realmService.findByUserId(getUser().getUserId()); +List all = Repository.findAll(getUser().getUserId()); + + return all ; } + + +public Tasks getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Tasks update(Tasks data,Integer id) { + Tasks old = Repository.findById(id).get(); +old.setTask(data.getTask()); + +old.setStatus(data.getStatus()); + +final Tasks test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/foundersfriend01-dbf-d/authsec_mysql/mysql/wf_table/wf_table.sql b/foundersfriend01-dbf-d/authsec_mysql/mysql/wf_table/wf_table.sql new file mode 100755 index 0000000..f41a2fb --- /dev/null +++ b/foundersfriend01-dbf-d/authsec_mysql/mysql/wf_table/wf_table.sql @@ -0,0 +1,10 @@ +CREATE TABLE dbf.Journal(id BIGINT NOT NULL AUTO_INCREMENT, description VARCHAR(400), datetime_field VARCHAR(400), title VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE dbf.Tasks(id BIGINT NOT NULL AUTO_INCREMENT, task VARCHAR(400), status VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE dbf.Notes(id BIGINT NOT NULL AUTO_INCREMENT, description VARCHAR(400), note_title VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE dbf.Expenses(id BIGINT NOT NULL AUTO_INCREMENT, description VARCHAR(400), amount int, select_category VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE dbf.Founders_friend(id BIGINT NOT NULL AUTO_INCREMENT, onetomanyextension VARCHAR(400), name VARCHAR(400), PRIMARY KEY (id)); + diff --git a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/login/login-page/login_environment.ts b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/login/login-page/login_environment.ts index 231b3a1..fdff417 100644 --- a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/login/login-page/login_environment.ts +++ b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/login/login-page/login_environment.ts @@ -2,14 +2,14 @@ export const LoginEnvironment = { - "templateNo": "", - "loginHeading": "", - "loginHeading2": "", - "isSignup": "", - "loginSignup": " ", - "loginSignup2": "", - "loginForgotpass": "", - "loginImage": "", - "loginImageURL": "" + "templateNo": "Template 1", + "loginHeading": "Welcome to", + "loginHeading2": "io8.dev", + "isSignup": "true", + "loginSignup": "Use your ID to sign in OR ", + "loginSignup2": "create one now", + "loginForgotpass": "FORGOT PASSWORD?", + "loginImage": "[]", + "loginImageURL": "null" } diff --git a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Expenses/Expenses.component.html b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Expenses/Expenses.component.html new file mode 100644 index 0000000..6ea4367 --- /dev/null +++ b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Expenses/Expenses.component.html @@ -0,0 +1,434 @@ + +
+
+
+

Expenses

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Description + + + + Amount + + + + select Category + + + + + + Action + + + + + + + + + +{{user.amount }} + + +{{user.select_category }} + + + + + + + +
Who Column
+
Account ID: {{user.accountId}}
+
Created At: {{user.createdAt| date}}
+
Created By: {{user.createdBy}}
+
Updated At: {{user.updatedAt | date}}
+
Updated By: {{user.updatedBy}}
+
+
+
+ + + + + + + +
+ + + Users per page + {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}} + of {{pagination.totalItems}} users + + +
+ + + +
+
+
+
+
+
+ +
+
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ] }} + {{afterText(item.fieldtext)}} +
+ +
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ] | date}} + {{afterText(item.fieldtext)}} +
+
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ]}} + {{afterText(item.fieldtext)}} +
+ +
+
+
+ + +
+ +
+ +
File Preview
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Expenses/Expenses.component.scss b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Expenses/Expenses.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Expenses/Expenses.component.scss @@ -0,0 +1,78 @@ +//@import "../../../../assets/scss/var"; +.s-info-bar { + display: flex; + flex-direction: row; + justify-content: space-between; + button { + outline: none; + } +} +.delete,.heading{ + text-align: center; + color: red; +} +.entry-pg { + width: 750px; +} + +.button1::after { + content: none; +} +.button1:hover::after { + content: "ADD ROWS"; +} + +.section { + background-color: #dddddd; + height: 40px; +} + +.section p { + //color: white; + padding: 10px; + font-size: 18px; +} + +.clr-input { + color: #212529; + border: 1px solid #ced4da; + border-radius: 0.25rem; + padding: 0.75rem 0.75rem; + margin-top: 3px; + width: 100%; + margin-bottom: 10px; +} + +.clr-file { + color: #212529; + border: 1px solid #ced4da; + border-radius: 0.25rem; + //padding: 0.6rem 0.75rem; + margin-top: 3px; + width: 100%; + margin-bottom: 10px; +} + +.center { + text-align: center; +} +select{ + width: 100%; + margin-top: 3px; + padding: 5px 5px; + border: 1px solid #ccc; + border-radius: 4px; +} +input[type=text],[type=date],[type=number],textarea { + width: 100%; + padding: 15px 15px; + background-color:rgb(255, 255, 255); + // margin: 8px 0; + display: inline-block; + border: 1px solid #ccc; + border-radius: 4px; + box-sizing: border-box; +} +.error_mess { + color: red; +} diff --git a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Expenses/Expenses.component.ts b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Expenses/Expenses.component.ts new file mode 100644 index 0000000..d1d96ad --- /dev/null +++ b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Expenses/Expenses.component.ts @@ -0,0 +1,270 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Expensesservice} from './Expenses.service'; +import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms'; +import { ExtensionService } from 'src/app/services/fnd/extension.service'; +import { DashboardContentModel2 } from 'src/app/models/builder/dashboard'; +import { Expensescardvariable } from './Expenses_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Expenses', + templateUrl: './Expenses.component.html', + styleUrls: ['./Expenses.component.scss'] +}) +export class ExpensesComponent implements OnInit { + cardButton = Expensescardvariable.cardButton; + cardmodeldata = Expensescardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Expensescardvariable.cardButton; + cardmodal; changeView(){ + this.isCardview = !this.isCardview; + } + beforeText(fieldtext: string): string { // Extract the text before the first '<' + const index = fieldtext.indexOf('<'); + return index !== -1 ? fieldtext.substring(0, index) : fieldtext; + } + afterText(fieldtext: string): string { // Extract the text after the last '>' + const index = fieldtext.lastIndexOf('>'); + return index !== -1 ? fieldtext.substring(index + 1) : ''; + } + transform(fieldtext: string): string { + const match = fieldtext.match(/<([^>]*)>/); + return match ? match[1] : ''; // Extract the text between '<' and '>' + } + userrole; + rowSelected :any= {}; + modaldelete=false; + modalEdit=false; + modalAdd= false; + public entryForm: FormGroup; + loading = false; + product; + modalOpenedforNewLine = false; + newLine:any; + additionalFieldsFromBackend: any[] = []; + formcode = 'Expenses_formCode' +tableName = 'Expenses'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Expensesservice, + private alertService: AlertService, + private toastr: ToastrService, + private _fb: FormBuilder, + ) { } +// component button + ngOnInit(): void { + if(this.cardmodeldata !== ''){ + this.cardmodal = JSON.parse(this.cardmodeldata); + this.dashboardArray = this.cardmodal.dashboard.slice(); + console.log(this.dashboardArray) + } + this.userrole=this.userInfoService.getRoles(); + this.getData(); + this.entryForm = this._fb.group({ +description : [null], + +amount : [null,[Validators.required]], + +select_category : [null], + + + + + + + + + }); // component_button200 + // form code start + this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { + console.log(data); + const jsonArray = data.map((str) => JSON.parse(str)); + this.additionalFieldsFromBackend = jsonArray; + this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Expenses_formCode"); + console.log(this.checkFormCode); + console.log(this.additionalFieldsFromBackend); + if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) { + this.additionalFieldsFromBackend.forEach(field => { + if (field.formCode === this.formcode) { + if (!this.entryForm.contains(field.extValue)) { + // Add the control only if it doesn't exist in the form + this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue)); + } + } + }); + } + }); + console.log(this.entryForm.value); + // form code end + + + + + + + + } + + + + + + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + + + + + this.modalEdit = true; + } + onDelete(row) { + this.rowSelected = row; + this.modaldelete=true; + } + delete(id) + { + this.modaldelete = false; + console.log("in delete "+id); + this.mainService.delete(id).subscribe( + (data) => { + console.log(data); + this.ngOnInit(); + if (data) { this.toastr.success('Deleted successfully'); } + }); + } + onUpdate(id) { + this.modalEdit = false; + + + + + + + //console.log("in update"); + console.log("id " + id); + console.log(this.rowSelected); + //console.log("out update"); + this.mainService.update(id, this.rowSelected).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Update Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("update Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Updated"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Updated"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } +onCreate() { + this.modalAdd=false; + + + + + + + this.mainService.create(this.entryForm.value).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Added Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("Added Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Added"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Added"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } + goToAdd(row) { +this.modalAdd = true; this.submitted = false; + + + + + + + } + submitted = false; +onSubmit() { + console.log(this.entryForm.value); + this.submitted = true; + if (this.entryForm.invalid) { + return; + }this.onCreate(); + +} +rsModaldescription = false; +goToReplaceStringdescription(row){ +this.rowSelected = row; this.rsModaldescription =true; } + + + + + +// updateaction +} + + + + + diff --git a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Expenses/Expenses.service.ts b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Expenses/Expenses.service.ts new file mode 100644 index 0000000..10edf24 --- /dev/null +++ b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Expenses/Expenses.service.ts @@ -0,0 +1,39 @@ +import { Injectable } from '@angular/core'; +import { Observable } from "rxjs"; +import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http"; +import { ApiRequestService } from "src/app/services/api/api-request.service"; +import { environment } from 'src/environments/environment'; +@Injectable({ + providedIn: 'root' +}) +export class Expensesservice{ + private baseURL = "Expenses/Expenses" ; constructor( + private http: HttpClient, + private apiRequest: ApiRequestService, + ) { } + getAll(page?: number, size?: number): Observable { + return this.apiRequest.get(this.baseURL); + } + getById(id: number): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.get(_http); + } + create(data: any): Observable { + return this.apiRequest.post(this.baseURL, data); + } + update(id: number, data: any): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.put(_http, data); + } + delete(id: number): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.delete(_http); + } + + + + + + +// updateaction +} \ No newline at end of file diff --git a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Expenses/Expenses_cardvariable.ts b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Expenses/Expenses_cardvariable.ts new file mode 100644 index 0000000..81439a8 --- /dev/null +++ b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Expenses/Expenses_cardvariable.ts @@ -0,0 +1,4 @@ +export const Expensescardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Founders_friend/Founders_friend.component.html b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Founders_friend/Founders_friend.component.html new file mode 100644 index 0000000..2bb65ed --- /dev/null +++ b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Founders_friend/Founders_friend.component.html @@ -0,0 +1,813 @@ + +
+
+
+

Founders Friend

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Name + + + + + + + + + + + + + + Action + + + + + +{{user.name }} + + + + + + + + + + + + + + + +
Who Column
+
Account ID: {{user.accountId}}
+
Created At: {{user.createdAt| date}}
+
Created By: {{user.createdBy}}
+
Updated At: {{user.updatedAt | date}}
+
Updated By: {{user.updatedBy}}
+
+
+
+ + + + + + + +
+ + + Users per page + {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}} + of {{pagination.totalItems}} users + + +
+ + + +
+
+
+
+
+
+ +
+
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ] }} + {{afterText(item.fieldtext)}} +
+ +
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ] | date}} + {{afterText(item.fieldtext)}} +
+
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ]}} + {{afterText(item.fieldtext)}} +
+ +
+
+
+ + +
+ +
+ +
File Preview
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Founders_friend/Founders_friend.component.scss b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Founders_friend/Founders_friend.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Founders_friend/Founders_friend.component.scss @@ -0,0 +1,78 @@ +//@import "../../../../assets/scss/var"; +.s-info-bar { + display: flex; + flex-direction: row; + justify-content: space-between; + button { + outline: none; + } +} +.delete,.heading{ + text-align: center; + color: red; +} +.entry-pg { + width: 750px; +} + +.button1::after { + content: none; +} +.button1:hover::after { + content: "ADD ROWS"; +} + +.section { + background-color: #dddddd; + height: 40px; +} + +.section p { + //color: white; + padding: 10px; + font-size: 18px; +} + +.clr-input { + color: #212529; + border: 1px solid #ced4da; + border-radius: 0.25rem; + padding: 0.75rem 0.75rem; + margin-top: 3px; + width: 100%; + margin-bottom: 10px; +} + +.clr-file { + color: #212529; + border: 1px solid #ced4da; + border-radius: 0.25rem; + //padding: 0.6rem 0.75rem; + margin-top: 3px; + width: 100%; + margin-bottom: 10px; +} + +.center { + text-align: center; +} +select{ + width: 100%; + margin-top: 3px; + padding: 5px 5px; + border: 1px solid #ccc; + border-radius: 4px; +} +input[type=text],[type=date],[type=number],textarea { + width: 100%; + padding: 15px 15px; + background-color:rgb(255, 255, 255); + // margin: 8px 0; + display: inline-block; + border: 1px solid #ccc; + border-radius: 4px; + box-sizing: border-box; +} +.error_mess { + color: red; +} diff --git a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Founders_friend/Founders_friend.component.ts b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Founders_friend/Founders_friend.component.ts new file mode 100644 index 0000000..7e458e0 --- /dev/null +++ b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Founders_friend/Founders_friend.component.ts @@ -0,0 +1,480 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Founders_friendservice} from './Founders_friend.service'; +import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms'; +import { ExtensionService } from 'src/app/services/fnd/extension.service'; +import { DashboardContentModel2 } from 'src/app/models/builder/dashboard'; +import { Founders_friendcardvariable } from './Founders_friend_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Founders_friend', + templateUrl: './Founders_friend.component.html', + styleUrls: ['./Founders_friend.component.scss'] +}) +export class Founders_friendComponent implements OnInit { + cardButton = Founders_friendcardvariable.cardButton; + cardmodeldata = Founders_friendcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Founders_friendcardvariable.cardButton; + cardmodal; changeView(){ + this.isCardview = !this.isCardview; + } + beforeText(fieldtext: string): string { // Extract the text before the first '<' + const index = fieldtext.indexOf('<'); + return index !== -1 ? fieldtext.substring(0, index) : fieldtext; + } + afterText(fieldtext: string): string { // Extract the text after the last '>' + const index = fieldtext.lastIndexOf('>'); + return index !== -1 ? fieldtext.substring(index + 1) : ''; + } + transform(fieldtext: string): string { + const match = fieldtext.match(/<([^>]*)>/); + return match ? match[1] : ''; // Extract the text between '<' and '>' + } + userrole; + rowSelected :any= {}; + modaldelete=false; + modalEdit=false; + modalAdd= false; + public entryForm: FormGroup; + loading = false; + product; + modalOpenedforNewLine = false; + newLine:any; + additionalFieldsFromBackend: any[] = []; + formcode = 'Founders_friend_formCode' +tableName = 'Founders_friend'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Founders_friendservice, + private alertService: AlertService, + private toastr: ToastrService, + private _fb: FormBuilder, + ) { } +// component button + ngOnInit(): void { + if(this.cardmodeldata !== ''){ + this.cardmodal = JSON.parse(this.cardmodeldata); + this.dashboardArray = this.cardmodal.dashboard.slice(); + console.log(this.dashboardArray) + } + this.userrole=this.userInfoService.getRoles(); + this.getData(); + this.entryForm = this._fb.group({ +name : [null], + +journal: this._fb.array([this.initLinesForm()]), + +tasks: this._fb.array([this.initLinesForm()]), + +notes: this._fb.array([this.initLinesForm()]), + +expenses: this._fb.array([this.initLinesForm()]), + + + + + + + + + + + + + }); // component_button200 + // form code start + this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { + console.log(data); + const jsonArray = data.map((str) => JSON.parse(str)); + this.additionalFieldsFromBackend = jsonArray; + this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Founders_friend_formCode"); + console.log(this.checkFormCode); + console.log(this.additionalFieldsFromBackend); + if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) { + this.additionalFieldsFromBackend.forEach(field => { + if (field.formCode === this.formcode) { + if (!this.entryForm.contains(field.extValue)) { + // Add the control only if it doesn't exist in the form + this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue)); + } + } + }); + } + }); + console.log(this.entryForm.value); + // form code end + + + + + + + + + + + + } + + +// one to many start + initLinesForm() { return this._fb.group({ + + + + description: [null], + + + + datetime_field: [null], + + + + title: [null], + + + +}); } +get controls() {return (this.entryForm.get("journal") as FormArray).controls; } +onAddLines() { +(this.entryForm.get("journal")).push(this.initLinesForm()); } +onRemoveLines(index: number) { +(this.entryForm.get("journal")).removeAt(index); } + oneditLines() { this.components.push({ + + +description: "", + + + +datetime_field: "", + + + +title: "", + + + + }); } + deleteRow(index) { + this.components.splice(index, 1); + } + components; + // one to many end + +// one to many start + initLinesForm() { return this._fb.group({ + + + + task: [null], + + + + status: [null], + + + +}); } +get controls() {return (this.entryForm.get("tasks") as FormArray).controls; } +onAddLines() { +(this.entryForm.get("tasks")).push(this.initLinesForm()); } +onRemoveLines(index: number) { +(this.entryForm.get("tasks")).removeAt(index); } + oneditLines() { this.components.push({ + + +task: "", + + + +status: "", + + + + }); } + deleteRow(index) { + this.components.splice(index, 1); + } + components; + // one to many end + +// one to many start + initLinesForm() { return this._fb.group({ + + + + description: [null], + + + + note_title: [null], + + + +}); } +get controls() {return (this.entryForm.get("notes") as FormArray).controls; } +onAddLines() { +(this.entryForm.get("notes")).push(this.initLinesForm()); } +onRemoveLines(index: number) { +(this.entryForm.get("notes")).removeAt(index); } + oneditLines() { this.components.push({ + + +description: "", + + + +note_title: "", + + + + }); } + deleteRow(index) { + this.components.splice(index, 1); + } + components; + // one to many end + +// one to many start + initLinesForm() { return this._fb.group({ + + + + description: [null], + + + + amount: [null], + + + + select_category: [null], + + + + total_expenses: [null], + + + +}); } +get controls() {return (this.entryForm.get("expenses") as FormArray).controls; } +onAddLines() { +(this.entryForm.get("expenses")).push(this.initLinesForm()); } +onRemoveLines(index: number) { +(this.entryForm.get("expenses")).removeAt(index); } + oneditLines() { this.components.push({ + + +description: "", + + + +amount: "", + + + +select_category: "", + + + +total_expenses: "", + + + + }); } + deleteRow(index) { + this.components.splice(index, 1); + } + components; + // one to many end + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + +this.components = row.journal; + +this.components = row.tasks; + +this.components = row.notes; + +this.components = row.expenses; + + + this.modalEdit = true; + } + onDelete(row) { + this.rowSelected = row; + this.modaldelete=true; + } + delete(id) + { + this.modaldelete = false; + console.log("in delete "+id); + this.mainService.delete(id).subscribe( + (data) => { + console.log(data); + this.ngOnInit(); + if (data) { this.toastr.success('Deleted successfully'); } + }); + } + onUpdate(id) { + this.modalEdit = false; + + + + + + + + + + + //console.log("in update"); + console.log("id " + id); + console.log(this.rowSelected); + //console.log("out update"); + this.mainService.update(id, this.rowSelected).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Update Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("update Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Updated"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Updated"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } +onCreate() { + this.modalAdd=false; + + + + + + + + + + + this.mainService.create(this.entryForm.value).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Added Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("Added Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Added"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Added"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } + goToAdd(row) { +this.modalAdd = true; this.submitted = false; + + + + + + + + + + + } + submitted = false; +onSubmit() { + console.log(this.entryForm.value); + this.submitted = true; + if (this.entryForm.invalid) { + return; + }this.onCreate(); + +} + + + + + + + + + + +// updateaction +} + + + + + + + + + diff --git a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Founders_friend/Founders_friend.service.ts b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Founders_friend/Founders_friend.service.ts new file mode 100644 index 0000000..c02d919 --- /dev/null +++ b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Founders_friend/Founders_friend.service.ts @@ -0,0 +1,43 @@ +import { Injectable } from '@angular/core'; +import { Observable } from "rxjs"; +import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http"; +import { ApiRequestService } from "src/app/services/api/api-request.service"; +import { environment } from 'src/environments/environment'; +@Injectable({ + providedIn: 'root' +}) +export class Founders_friendservice{ + private baseURL = "Founders_friend/Founders_friend" ; constructor( + private http: HttpClient, + private apiRequest: ApiRequestService, + ) { } + getAll(page?: number, size?: number): Observable { + return this.apiRequest.get(this.baseURL); + } + getById(id: number): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.get(_http); + } + create(data: any): Observable { + return this.apiRequest.post(this.baseURL, data); + } + update(id: number, data: any): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.put(_http, data); + } + delete(id: number): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.delete(_http); + } + + + + + + + + + + +// updateaction +} \ No newline at end of file diff --git a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Founders_friend/Founders_friend_cardvariable.ts b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Founders_friend/Founders_friend_cardvariable.ts new file mode 100644 index 0000000..42d1aae --- /dev/null +++ b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Founders_friend/Founders_friend_cardvariable.ts @@ -0,0 +1,4 @@ +export const Founders_friendcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Journal/Journal.component.html b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Journal/Journal.component.html new file mode 100644 index 0000000..b5ff8d4 --- /dev/null +++ b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Journal/Journal.component.html @@ -0,0 +1,378 @@ + +
+
+
+

Journal

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Title + + + + Description + + + + Datetime Field + + + + + + Action + + + + + +{{user.title }} + + + + + + +{{user.datetime_field }} + + + + + + + +
Who Column
+
Account ID: {{user.accountId}}
+
Created At: {{user.createdAt| date}}
+
Created By: {{user.createdBy}}
+
Updated At: {{user.updatedAt | date}}
+
Updated By: {{user.updatedBy}}
+
+
+
+ + + + + + + +
+ + + Users per page + {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}} + of {{pagination.totalItems}} users + + +
+ + + +
+
+
+
+
+
+ +
+
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ] }} + {{afterText(item.fieldtext)}} +
+ +
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ] | date}} + {{afterText(item.fieldtext)}} +
+
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ]}} + {{afterText(item.fieldtext)}} +
+ +
+
+
+ + +
+ +
+ +
File Preview
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Journal/Journal.component.scss b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Journal/Journal.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Journal/Journal.component.scss @@ -0,0 +1,78 @@ +//@import "../../../../assets/scss/var"; +.s-info-bar { + display: flex; + flex-direction: row; + justify-content: space-between; + button { + outline: none; + } +} +.delete,.heading{ + text-align: center; + color: red; +} +.entry-pg { + width: 750px; +} + +.button1::after { + content: none; +} +.button1:hover::after { + content: "ADD ROWS"; +} + +.section { + background-color: #dddddd; + height: 40px; +} + +.section p { + //color: white; + padding: 10px; + font-size: 18px; +} + +.clr-input { + color: #212529; + border: 1px solid #ced4da; + border-radius: 0.25rem; + padding: 0.75rem 0.75rem; + margin-top: 3px; + width: 100%; + margin-bottom: 10px; +} + +.clr-file { + color: #212529; + border: 1px solid #ced4da; + border-radius: 0.25rem; + //padding: 0.6rem 0.75rem; + margin-top: 3px; + width: 100%; + margin-bottom: 10px; +} + +.center { + text-align: center; +} +select{ + width: 100%; + margin-top: 3px; + padding: 5px 5px; + border: 1px solid #ccc; + border-radius: 4px; +} +input[type=text],[type=date],[type=number],textarea { + width: 100%; + padding: 15px 15px; + background-color:rgb(255, 255, 255); + // margin: 8px 0; + display: inline-block; + border: 1px solid #ccc; + border-radius: 4px; + box-sizing: border-box; +} +.error_mess { + color: red; +} diff --git a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Journal/Journal.component.ts b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Journal/Journal.component.ts new file mode 100644 index 0000000..7e746a0 --- /dev/null +++ b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Journal/Journal.component.ts @@ -0,0 +1,270 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Journalservice} from './Journal.service'; +import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms'; +import { ExtensionService } from 'src/app/services/fnd/extension.service'; +import { DashboardContentModel2 } from 'src/app/models/builder/dashboard'; +import { Journalcardvariable } from './Journal_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Journal', + templateUrl: './Journal.component.html', + styleUrls: ['./Journal.component.scss'] +}) +export class JournalComponent implements OnInit { + cardButton = Journalcardvariable.cardButton; + cardmodeldata = Journalcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Journalcardvariable.cardButton; + cardmodal; changeView(){ + this.isCardview = !this.isCardview; + } + beforeText(fieldtext: string): string { // Extract the text before the first '<' + const index = fieldtext.indexOf('<'); + return index !== -1 ? fieldtext.substring(0, index) : fieldtext; + } + afterText(fieldtext: string): string { // Extract the text after the last '>' + const index = fieldtext.lastIndexOf('>'); + return index !== -1 ? fieldtext.substring(index + 1) : ''; + } + transform(fieldtext: string): string { + const match = fieldtext.match(/<([^>]*)>/); + return match ? match[1] : ''; // Extract the text between '<' and '>' + } + userrole; + rowSelected :any= {}; + modaldelete=false; + modalEdit=false; + modalAdd= false; + public entryForm: FormGroup; + loading = false; + product; + modalOpenedforNewLine = false; + newLine:any; + additionalFieldsFromBackend: any[] = []; + formcode = 'Journal_formCode' +tableName = 'Journal'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Journalservice, + private alertService: AlertService, + private toastr: ToastrService, + private _fb: FormBuilder, + ) { } +// component button + ngOnInit(): void { + if(this.cardmodeldata !== ''){ + this.cardmodal = JSON.parse(this.cardmodeldata); + this.dashboardArray = this.cardmodal.dashboard.slice(); + console.log(this.dashboardArray) + } + this.userrole=this.userInfoService.getRoles(); + this.getData(); + this.entryForm = this._fb.group({ +title : [null], + +description : [null], + +datetime_field : [null], + + + + + + + + + }); // component_button200 + // form code start + this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { + console.log(data); + const jsonArray = data.map((str) => JSON.parse(str)); + this.additionalFieldsFromBackend = jsonArray; + this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Journal_formCode"); + console.log(this.checkFormCode); + console.log(this.additionalFieldsFromBackend); + if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) { + this.additionalFieldsFromBackend.forEach(field => { + if (field.formCode === this.formcode) { + if (!this.entryForm.contains(field.extValue)) { + // Add the control only if it doesn't exist in the form + this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue)); + } + } + }); + } + }); + console.log(this.entryForm.value); + // form code end + + + + + + + + } + + + + + + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + + + + + this.modalEdit = true; + } + onDelete(row) { + this.rowSelected = row; + this.modaldelete=true; + } + delete(id) + { + this.modaldelete = false; + console.log("in delete "+id); + this.mainService.delete(id).subscribe( + (data) => { + console.log(data); + this.ngOnInit(); + if (data) { this.toastr.success('Deleted successfully'); } + }); + } + onUpdate(id) { + this.modalEdit = false; + + + + + + + //console.log("in update"); + console.log("id " + id); + console.log(this.rowSelected); + //console.log("out update"); + this.mainService.update(id, this.rowSelected).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Update Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("update Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Updated"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Updated"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } +onCreate() { + this.modalAdd=false; + + + + + + + this.mainService.create(this.entryForm.value).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Added Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("Added Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Added"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Added"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } + goToAdd(row) { +this.modalAdd = true; this.submitted = false; + + + + + + + } + submitted = false; +onSubmit() { + console.log(this.entryForm.value); + this.submitted = true; + if (this.entryForm.invalid) { + return; + }this.onCreate(); + +} + + +rsModaldescription = false; +goToReplaceStringdescription(row){ +this.rowSelected = row; this.rsModaldescription =true; } + + + +// updateaction +} + + + + + diff --git a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Journal/Journal.service.ts b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Journal/Journal.service.ts new file mode 100644 index 0000000..a2e25af --- /dev/null +++ b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Journal/Journal.service.ts @@ -0,0 +1,39 @@ +import { Injectable } from '@angular/core'; +import { Observable } from "rxjs"; +import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http"; +import { ApiRequestService } from "src/app/services/api/api-request.service"; +import { environment } from 'src/environments/environment'; +@Injectable({ + providedIn: 'root' +}) +export class Journalservice{ + private baseURL = "Journal/Journal" ; constructor( + private http: HttpClient, + private apiRequest: ApiRequestService, + ) { } + getAll(page?: number, size?: number): Observable { + return this.apiRequest.get(this.baseURL); + } + getById(id: number): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.get(_http); + } + create(data: any): Observable { + return this.apiRequest.post(this.baseURL, data); + } + update(id: number, data: any): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.put(_http, data); + } + delete(id: number): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.delete(_http); + } + + + + + + +// updateaction +} \ No newline at end of file diff --git a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Journal/Journal_cardvariable.ts b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Journal/Journal_cardvariable.ts new file mode 100644 index 0000000..f59f665 --- /dev/null +++ b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Journal/Journal_cardvariable.ts @@ -0,0 +1,4 @@ +export const Journalcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Notes/Notes.component.html b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Notes/Notes.component.html new file mode 100644 index 0000000..52b183c --- /dev/null +++ b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Notes/Notes.component.html @@ -0,0 +1,349 @@ + +
+
+
+

Notes

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Note Title + + + + Description + + + + + + Action + + + + + +{{user.note_title }} + + + + + + + + + + + +
Who Column
+
Account ID: {{user.accountId}}
+
Created At: {{user.createdAt| date}}
+
Created By: {{user.createdBy}}
+
Updated At: {{user.updatedAt | date}}
+
Updated By: {{user.updatedBy}}
+
+
+
+ + + + + + + +
+ + + Users per page + {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}} + of {{pagination.totalItems}} users + + +
+ + + +
+
+
+
+
+
+ +
+
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ] }} + {{afterText(item.fieldtext)}} +
+ +
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ] | date}} + {{afterText(item.fieldtext)}} +
+
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ]}} + {{afterText(item.fieldtext)}} +
+ +
+
+
+ + +
+ +
+ +
File Preview
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Notes/Notes.component.scss b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Notes/Notes.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Notes/Notes.component.scss @@ -0,0 +1,78 @@ +//@import "../../../../assets/scss/var"; +.s-info-bar { + display: flex; + flex-direction: row; + justify-content: space-between; + button { + outline: none; + } +} +.delete,.heading{ + text-align: center; + color: red; +} +.entry-pg { + width: 750px; +} + +.button1::after { + content: none; +} +.button1:hover::after { + content: "ADD ROWS"; +} + +.section { + background-color: #dddddd; + height: 40px; +} + +.section p { + //color: white; + padding: 10px; + font-size: 18px; +} + +.clr-input { + color: #212529; + border: 1px solid #ced4da; + border-radius: 0.25rem; + padding: 0.75rem 0.75rem; + margin-top: 3px; + width: 100%; + margin-bottom: 10px; +} + +.clr-file { + color: #212529; + border: 1px solid #ced4da; + border-radius: 0.25rem; + //padding: 0.6rem 0.75rem; + margin-top: 3px; + width: 100%; + margin-bottom: 10px; +} + +.center { + text-align: center; +} +select{ + width: 100%; + margin-top: 3px; + padding: 5px 5px; + border: 1px solid #ccc; + border-radius: 4px; +} +input[type=text],[type=date],[type=number],textarea { + width: 100%; + padding: 15px 15px; + background-color:rgb(255, 255, 255); + // margin: 8px 0; + display: inline-block; + border: 1px solid #ccc; + border-radius: 4px; + box-sizing: border-box; +} +.error_mess { + color: red; +} diff --git a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Notes/Notes.component.ts b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Notes/Notes.component.ts new file mode 100644 index 0000000..e75fd21 --- /dev/null +++ b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Notes/Notes.component.ts @@ -0,0 +1,246 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Notesservice} from './Notes.service'; +import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms'; +import { ExtensionService } from 'src/app/services/fnd/extension.service'; +import { DashboardContentModel2 } from 'src/app/models/builder/dashboard'; +import { Notescardvariable } from './Notes_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Notes', + templateUrl: './Notes.component.html', + styleUrls: ['./Notes.component.scss'] +}) +export class NotesComponent implements OnInit { + cardButton = Notescardvariable.cardButton; + cardmodeldata = Notescardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Notescardvariable.cardButton; + cardmodal; changeView(){ + this.isCardview = !this.isCardview; + } + beforeText(fieldtext: string): string { // Extract the text before the first '<' + const index = fieldtext.indexOf('<'); + return index !== -1 ? fieldtext.substring(0, index) : fieldtext; + } + afterText(fieldtext: string): string { // Extract the text after the last '>' + const index = fieldtext.lastIndexOf('>'); + return index !== -1 ? fieldtext.substring(index + 1) : ''; + } + transform(fieldtext: string): string { + const match = fieldtext.match(/<([^>]*)>/); + return match ? match[1] : ''; // Extract the text between '<' and '>' + } + userrole; + rowSelected :any= {}; + modaldelete=false; + modalEdit=false; + modalAdd= false; + public entryForm: FormGroup; + loading = false; + product; + modalOpenedforNewLine = false; + newLine:any; + additionalFieldsFromBackend: any[] = []; + formcode = 'Notes_formCode' +tableName = 'Notes'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Notesservice, + private alertService: AlertService, + private toastr: ToastrService, + private _fb: FormBuilder, + ) { } +// component button + ngOnInit(): void { + if(this.cardmodeldata !== ''){ + this.cardmodal = JSON.parse(this.cardmodeldata); + this.dashboardArray = this.cardmodal.dashboard.slice(); + console.log(this.dashboardArray) + } + this.userrole=this.userInfoService.getRoles(); + this.getData(); + this.entryForm = this._fb.group({ +note_title : [null], + +description : [null], + + + + + + + }); // component_button200 + // form code start + this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { + console.log(data); + const jsonArray = data.map((str) => JSON.parse(str)); + this.additionalFieldsFromBackend = jsonArray; + this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Notes_formCode"); + console.log(this.checkFormCode); + console.log(this.additionalFieldsFromBackend); + if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) { + this.additionalFieldsFromBackend.forEach(field => { + if (field.formCode === this.formcode) { + if (!this.entryForm.contains(field.extValue)) { + // Add the control only if it doesn't exist in the form + this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue)); + } + } + }); + } + }); + console.log(this.entryForm.value); + // form code end + + + + + + } + + + + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + + + this.modalEdit = true; + } + onDelete(row) { + this.rowSelected = row; + this.modaldelete=true; + } + delete(id) + { + this.modaldelete = false; + console.log("in delete "+id); + this.mainService.delete(id).subscribe( + (data) => { + console.log(data); + this.ngOnInit(); + if (data) { this.toastr.success('Deleted successfully'); } + }); + } + onUpdate(id) { + this.modalEdit = false; + + + + + //console.log("in update"); + console.log("id " + id); + console.log(this.rowSelected); + //console.log("out update"); + this.mainService.update(id, this.rowSelected).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Update Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("update Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Updated"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Updated"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } +onCreate() { + this.modalAdd=false; + + + + + this.mainService.create(this.entryForm.value).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Added Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("Added Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Added"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Added"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } + goToAdd(row) { +this.modalAdd = true; this.submitted = false; + + + + + } + submitted = false; +onSubmit() { + console.log(this.entryForm.value); + this.submitted = true; + if (this.entryForm.invalid) { + return; + }this.onCreate(); + +} + + +rsModaldescription = false; +goToReplaceStringdescription(row){ +this.rowSelected = row; this.rsModaldescription =true; } + +// updateaction +} + + + diff --git a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Notes/Notes.service.ts b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Notes/Notes.service.ts new file mode 100644 index 0000000..7ec5b57 --- /dev/null +++ b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Notes/Notes.service.ts @@ -0,0 +1,37 @@ +import { Injectable } from '@angular/core'; +import { Observable } from "rxjs"; +import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http"; +import { ApiRequestService } from "src/app/services/api/api-request.service"; +import { environment } from 'src/environments/environment'; +@Injectable({ + providedIn: 'root' +}) +export class Notesservice{ + private baseURL = "Notes/Notes" ; constructor( + private http: HttpClient, + private apiRequest: ApiRequestService, + ) { } + getAll(page?: number, size?: number): Observable { + return this.apiRequest.get(this.baseURL); + } + getById(id: number): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.get(_http); + } + create(data: any): Observable { + return this.apiRequest.post(this.baseURL, data); + } + update(id: number, data: any): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.put(_http, data); + } + delete(id: number): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.delete(_http); + } + + + + +// updateaction +} \ No newline at end of file diff --git a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Notes/Notes_cardvariable.ts b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Notes/Notes_cardvariable.ts new file mode 100644 index 0000000..f712f4d --- /dev/null +++ b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Notes/Notes_cardvariable.ts @@ -0,0 +1,4 @@ +export const Notescardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Tasks/Tasks.component.html b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Tasks/Tasks.component.html new file mode 100644 index 0000000..4fb88c7 --- /dev/null +++ b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Tasks/Tasks.component.html @@ -0,0 +1,379 @@ + +
+
+
+

Tasks

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Task + + + + status + + + + + + Action + + + + + +{{user.task }} + + +{{user.status }} + + + + + + + +
Who Column
+
Account ID: {{user.accountId}}
+
Created At: {{user.createdAt| date}}
+
Created By: {{user.createdBy}}
+
Updated At: {{user.updatedAt | date}}
+
Updated By: {{user.updatedBy}}
+
+
+
+ + + + + + + +
+ + + Users per page + {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}} + of {{pagination.totalItems}} users + + +
+ + + +
+
+
+
+
+
+ +
+
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ] }} + {{afterText(item.fieldtext)}} +
+ +
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ] | date}} + {{afterText(item.fieldtext)}} +
+
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ]}} + {{afterText(item.fieldtext)}} +
+ +
+
+
+ + +
+ +
+ +
File Preview
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + diff --git a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Tasks/Tasks.component.scss b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Tasks/Tasks.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Tasks/Tasks.component.scss @@ -0,0 +1,78 @@ +//@import "../../../../assets/scss/var"; +.s-info-bar { + display: flex; + flex-direction: row; + justify-content: space-between; + button { + outline: none; + } +} +.delete,.heading{ + text-align: center; + color: red; +} +.entry-pg { + width: 750px; +} + +.button1::after { + content: none; +} +.button1:hover::after { + content: "ADD ROWS"; +} + +.section { + background-color: #dddddd; + height: 40px; +} + +.section p { + //color: white; + padding: 10px; + font-size: 18px; +} + +.clr-input { + color: #212529; + border: 1px solid #ced4da; + border-radius: 0.25rem; + padding: 0.75rem 0.75rem; + margin-top: 3px; + width: 100%; + margin-bottom: 10px; +} + +.clr-file { + color: #212529; + border: 1px solid #ced4da; + border-radius: 0.25rem; + //padding: 0.6rem 0.75rem; + margin-top: 3px; + width: 100%; + margin-bottom: 10px; +} + +.center { + text-align: center; +} +select{ + width: 100%; + margin-top: 3px; + padding: 5px 5px; + border: 1px solid #ccc; + border-radius: 4px; +} +input[type=text],[type=date],[type=number],textarea { + width: 100%; + padding: 15px 15px; + background-color:rgb(255, 255, 255); + // margin: 8px 0; + display: inline-block; + border: 1px solid #ccc; + border-radius: 4px; + box-sizing: border-box; +} +.error_mess { + color: red; +} diff --git a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Tasks/Tasks.component.ts b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Tasks/Tasks.component.ts new file mode 100644 index 0000000..b9eb32f --- /dev/null +++ b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Tasks/Tasks.component.ts @@ -0,0 +1,244 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Tasksservice} from './Tasks.service'; +import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms'; +import { ExtensionService } from 'src/app/services/fnd/extension.service'; +import { DashboardContentModel2 } from 'src/app/models/builder/dashboard'; +import { Taskscardvariable } from './Tasks_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Tasks', + templateUrl: './Tasks.component.html', + styleUrls: ['./Tasks.component.scss'] +}) +export class TasksComponent implements OnInit { + cardButton = Taskscardvariable.cardButton; + cardmodeldata = Taskscardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Taskscardvariable.cardButton; + cardmodal; changeView(){ + this.isCardview = !this.isCardview; + } + beforeText(fieldtext: string): string { // Extract the text before the first '<' + const index = fieldtext.indexOf('<'); + return index !== -1 ? fieldtext.substring(0, index) : fieldtext; + } + afterText(fieldtext: string): string { // Extract the text after the last '>' + const index = fieldtext.lastIndexOf('>'); + return index !== -1 ? fieldtext.substring(index + 1) : ''; + } + transform(fieldtext: string): string { + const match = fieldtext.match(/<([^>]*)>/); + return match ? match[1] : ''; // Extract the text between '<' and '>' + } + userrole; + rowSelected :any= {}; + modaldelete=false; + modalEdit=false; + modalAdd= false; + public entryForm: FormGroup; + loading = false; + product; + modalOpenedforNewLine = false; + newLine:any; + additionalFieldsFromBackend: any[] = []; + formcode = 'Tasks_formCode' +tableName = 'Tasks'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Tasksservice, + private alertService: AlertService, + private toastr: ToastrService, + private _fb: FormBuilder, + ) { } +// component button + ngOnInit(): void { + if(this.cardmodeldata !== ''){ + this.cardmodal = JSON.parse(this.cardmodeldata); + this.dashboardArray = this.cardmodal.dashboard.slice(); + console.log(this.dashboardArray) + } + this.userrole=this.userInfoService.getRoles(); + this.getData(); + this.entryForm = this._fb.group({ +task : [null], + +status : [null], + + + + + + + }); // component_button200 + // form code start + this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { + console.log(data); + const jsonArray = data.map((str) => JSON.parse(str)); + this.additionalFieldsFromBackend = jsonArray; + this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Tasks_formCode"); + console.log(this.checkFormCode); + console.log(this.additionalFieldsFromBackend); + if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) { + this.additionalFieldsFromBackend.forEach(field => { + if (field.formCode === this.formcode) { + if (!this.entryForm.contains(field.extValue)) { + // Add the control only if it doesn't exist in the form + this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue)); + } + } + }); + } + }); + console.log(this.entryForm.value); + // form code end + + + + + + } + + + + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + + + this.modalEdit = true; + } + onDelete(row) { + this.rowSelected = row; + this.modaldelete=true; + } + delete(id) + { + this.modaldelete = false; + console.log("in delete "+id); + this.mainService.delete(id).subscribe( + (data) => { + console.log(data); + this.ngOnInit(); + if (data) { this.toastr.success('Deleted successfully'); } + }); + } + onUpdate(id) { + this.modalEdit = false; + + + + + //console.log("in update"); + console.log("id " + id); + console.log(this.rowSelected); + //console.log("out update"); + this.mainService.update(id, this.rowSelected).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Update Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("update Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Updated"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Updated"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } +onCreate() { + this.modalAdd=false; + + + + + this.mainService.create(this.entryForm.value).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Added Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("Added Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Added"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Added"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } + goToAdd(row) { +this.modalAdd = true; this.submitted = false; + + + + + } + submitted = false; +onSubmit() { + console.log(this.entryForm.value); + this.submitted = true; + if (this.entryForm.invalid) { + return; + }this.onCreate(); + +} + + + + +// updateaction +} + + + diff --git a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Tasks/Tasks.service.ts b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Tasks/Tasks.service.ts new file mode 100644 index 0000000..20ec5a9 --- /dev/null +++ b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Tasks/Tasks.service.ts @@ -0,0 +1,37 @@ +import { Injectable } from '@angular/core'; +import { Observable } from "rxjs"; +import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http"; +import { ApiRequestService } from "src/app/services/api/api-request.service"; +import { environment } from 'src/environments/environment'; +@Injectable({ + providedIn: 'root' +}) +export class Tasksservice{ + private baseURL = "Tasks/Tasks" ; constructor( + private http: HttpClient, + private apiRequest: ApiRequestService, + ) { } + getAll(page?: number, size?: number): Observable { + return this.apiRequest.get(this.baseURL); + } + getById(id: number): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.get(_http); + } + create(data: any): Observable { + return this.apiRequest.post(this.baseURL, data); + } + update(id: number, data: any): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.put(_http, data); + } + delete(id: number): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.delete(_http); + } + + + + +// updateaction +} \ No newline at end of file diff --git a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Tasks/Tasks_cardvariable.ts b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Tasks/Tasks_cardvariable.ts new file mode 100644 index 0000000..02e969d --- /dev/null +++ b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/founder's_friend/Tasks/Tasks_cardvariable.ts @@ -0,0 +1,4 @@ +export const Taskscardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main-routing.module.ts b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main-routing.module.ts index 7377c69..9922d67 100644 --- a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main-routing.module.ts +++ b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main-routing.module.ts @@ -1,3 +1,8 @@ +import { Founders_friendComponent } from './BuilderComponents/founder's_friend/Founders_friend/Founders_friend.component'; +import { ExpensesComponent } from './BuilderComponents/founder's_friend/Expenses/Expenses.component'; +import { NotesComponent } from './BuilderComponents/founder's_friend/Notes/Notes.component'; +import { TasksComponent } from './BuilderComponents/founder's_friend/Tasks/Tasks.component'; +import { JournalComponent } from './BuilderComponents/founder's_friend/Journal/Journal.component'; import { SequencegenaratorComponent } from './fnd/sequencegenarator/sequencegenarator.component'; import { Component, NgModule } from '@angular/core'; @@ -256,6 +261,21 @@ const routes: Routes = [ // buildercomponents +{path:'Founders_friend',component:Founders_friendComponent}, + + +{path:'Expenses',component:ExpensesComponent}, + + +{path:'Notes',component:NotesComponent}, + + +{path:'Tasks',component:TasksComponent}, + + +{path:'Journal',component:JournalComponent}, + + diff --git a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main.module.ts b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main.module.ts index ecbab3d..2a9a10a 100644 --- a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main.module.ts +++ b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main.module.ts @@ -1,3 +1,8 @@ +import { Founders_friendComponent } from './BuilderComponents/founder's_friend/Founders_friend/Founders_friend.component'; +import { ExpensesComponent } from './BuilderComponents/founder's_friend/Expenses/Expenses.component'; +import { NotesComponent } from './BuilderComponents/founder's_friend/Notes/Notes.component'; +import { TasksComponent } from './BuilderComponents/founder's_friend/Tasks/Tasks.component'; +import { JournalComponent } from './BuilderComponents/founder's_friend/Journal/Journal.component'; import { CommonModule } from '@angular/common'; @@ -129,6 +134,21 @@ import { Stepper_workflowComponent } from './BuilderComponents/stepperworkflow/S // buildercomponents +Founders_friendComponent, + + +ExpensesComponent, + + +NotesComponent, + + +TasksComponent, + + +JournalComponent, + + diff --git a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/assets/i18n/en.json b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/assets/i18n/en.json index ee15955..d81a5f0 100644 --- a/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/assets/i18n/en.json +++ b/foundersfriend01-frontf-f/authsec_angular/frontend/angular-clarity-master/src/assets/i18n/en.json @@ -226,10 +226,19 @@ "MENU_ACTION_LINK": "Menu Action Link", "STATUS": "Status", "SUB_MENU": "Sub Menu", - "Active": "Active", + "Task": "Task", "Description": "Description", - "Fileupload_Field": "Fileupload_Field", - "Test22": "Test22", - "Test11": "Test11", - "Name": "Name" + "Tasks": "Tasks", + "OneToManyExtension": "OneToManyExtension", + "Expenses": "Expenses", + "Amount": "Amount", + "Datetime_Field": "Datetime_Field", + "Title": "Title", + "select_Category": "select_Category", + "Journal": "Journal", + "Name": "Name", + "Note_Title": "Note_Title", + "Notes": "Notes", + "status": "status", + "Founders_friend": "Founders_friend" } \ No newline at end of file