From accce4e2f605d8280665cd9424c07c5464ddee42 Mon Sep 17 00:00:00 2001 From: risadmin_prod Date: Wed, 25 Jun 2025 10:50:13 +0000 Subject: [PATCH] build_app --- .../Builders/Services/BuilderService.java | 12 + .../basicp1/Controllers/ChildController.java | 83 ++ .../basicp1/Controllers/TestaController.java | 203 +++ .../basicp1/Controllers/TestbController.java | 162 +++ .../Controllers/TestbInsertController1.java | 21 + .../Controllers/TestlistController.java | 99 ++ .../Testlist_ListFilter1Controller.java | 24 + .../tokenFree_ChildController.java | 83 ++ .../tokenFree_TestaController.java | 203 +++ .../tokenFree_TestbController.java | 162 +++ .../tokenFree_TestlistController.java | 99 ++ ...enFree_Testlist_ListFilter1Controller.java | 24 + .../com/realnet/basicp1/Entity/Child.java | 24 + .../com/realnet/basicp1/Entity/Testa.java | 108 ++ .../com/realnet/basicp1/Entity/Testb.java | 63 + .../com/realnet/basicp1/Entity/Testlist.java | 33 + .../basicp1/Entity/Testlist_ListFilter1.java | 14 + .../basicp1/Repository/ChildRepository.java | 26 + .../basicp1/Repository/TestaRepository.java | 56 + .../basicp1/Repository/TestbRepository.java | 44 + .../Repository/TestlistRepository.java | 30 + .../basicp1/Services/ChildService.java | 73 + .../basicp1/Services/TestaService.java | 242 ++++ .../basicp1/Services/TestbInsertService1.java | 34 + .../basicp1/Services/TestbService.java | 225 +++ .../basicp1/Services/TestlistService.java | 93 ++ .../Services/Testlist_ListFilter1Service.java | 51 + .../authsec_mysql/mysql/wf_table/wf_table.sql | 8 + .../login/login-page/login_environment.ts | 18 +- .../basicp1/Child/Child.component.html | 315 ++++ .../basicp1/Child/Child.component.scss | 78 + .../basicp1/Child/Child.component.ts | 220 +++ .../basicp1/Child/Child.service.ts | 35 + .../basicp1/Child/Child_cardvariable.ts | 4 + .../basicp1/Testa/Testa.component.html | 1276 +++++++++++++++++ .../basicp1/Testa/Testa.component.scss | 78 + .../basicp1/Testa/Testa.component.ts | 1015 +++++++++++++ .../basicp1/Testa/Testa.service.ts | 117 ++ .../basicp1/Testa/Testa_cardvariable.ts | 4 + .../basicp1/Testb/Testb.component.html | 737 ++++++++++ .../basicp1/Testb/Testb.component.scss | 78 + .../basicp1/Testb/Testb.component.ts | 558 +++++++ .../basicp1/Testb/Testb.service.ts | 62 + .../basicp1/Testb/Testb_cardvariable.ts | 4 + .../basicp1/Testlist/Testlist.component.html | 376 +++++ .../basicp1/Testlist/Testlist.component.scss | 78 + .../basicp1/Testlist/Testlist.component.ts | 270 ++++ .../basicp1/Testlist/Testlist.service.ts | 39 + .../basicp1/Testlist/Testlist_cardvariable.ts | 4 + .../app/modules/main/main-routing.module.ts | 16 + .../src/app/modules/main/main.module.ts | 16 + .../src/assets/i18n/en.json | 36 +- 52 files changed, 7720 insertions(+), 13 deletions(-) create mode 100644 testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/ChildController.java create mode 100644 testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/TestaController.java create mode 100644 testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/TestbController.java create mode 100644 testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/TestbInsertController1.java create mode 100644 testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/TestlistController.java create mode 100644 testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/Testlist_ListFilter1Controller.java create mode 100644 testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_ChildController.java create mode 100644 testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_TestaController.java create mode 100644 testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_TestbController.java create mode 100644 testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_TestlistController.java create mode 100644 testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_Testlist_ListFilter1Controller.java create mode 100644 testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Child.java create mode 100644 testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Testa.java create mode 100644 testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Testb.java create mode 100644 testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Testlist.java create mode 100644 testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Testlist_ListFilter1.java create mode 100644 testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/ChildRepository.java create mode 100644 testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/TestaRepository.java create mode 100644 testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/TestbRepository.java create mode 100644 testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/TestlistRepository.java create mode 100644 testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/ChildService.java create mode 100644 testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/TestaService.java create mode 100644 testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/TestbInsertService1.java create mode 100644 testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/TestbService.java create mode 100644 testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/TestlistService.java create mode 100644 testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/Testlist_ListFilter1Service.java create mode 100755 testaddadv01-db-d/authsec_mysql/mysql/wf_table/wf_table.sql create mode 100644 testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Child/Child.component.html create mode 100644 testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Child/Child.component.scss create mode 100644 testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Child/Child.component.ts create mode 100644 testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Child/Child.service.ts create mode 100644 testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Child/Child_cardvariable.ts create mode 100644 testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testa/Testa.component.html create mode 100644 testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testa/Testa.component.scss create mode 100644 testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testa/Testa.component.ts create mode 100644 testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testa/Testa.service.ts create mode 100644 testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testa/Testa_cardvariable.ts create mode 100644 testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testb/Testb.component.html create mode 100644 testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testb/Testb.component.scss create mode 100644 testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testb/Testb.component.ts create mode 100644 testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testb/Testb.service.ts create mode 100644 testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testb/Testb_cardvariable.ts create mode 100644 testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testlist/Testlist.component.html create mode 100644 testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testlist/Testlist.component.scss create mode 100644 testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testlist/Testlist.component.ts create mode 100644 testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testlist/Testlist.service.ts create mode 100644 testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testlist/Testlist_cardvariable.ts diff --git a/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/Builders/Services/BuilderService.java b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/Builders/Services/BuilderService.java index f9801fb..0a6826b 100644 --- a/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/Builders/Services/BuilderService.java +++ b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/Builders/Services/BuilderService.java @@ -69,6 +69,18 @@ public class BuilderService { executeDump(true); // ADD OTHER SERVICE +addCustomMenu( "Testb","Testb", "Transcations"); + + +addCustomMenu( "Child","Child", "Transcations"); + + +addCustomMenu( "Testlist","Testlist", "Transcations"); + + +addCustomMenu( "Testa","Testa", "Transcations"); + + System.out.println("dashboard and menu inserted..."); diff --git a/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/ChildController.java b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/ChildController.java new file mode 100644 index 0000000..d5d40cb --- /dev/null +++ b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/ChildController.java @@ -0,0 +1,83 @@ +package com.realnet.basicp1.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.basicp1.Entity.Child; +import com.realnet.basicp1.Services.ChildService ; + + +@RequestMapping(value = "/Child") + @CrossOrigin("*") +@RestController +public class ChildController { + @Autowired + private ChildService Service; + +@Value("${projectPath}") + private String projectPath; + + + + @PostMapping("/Child") + public Child Savedata(@RequestBody Child data) { + Child save = Service.Savedata(data) ; + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Child/{id}") + public Child update(@RequestBody Child data,@PathVariable Integer id ) { + Child update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Child/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("/Child") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Child") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Child/{id}") + public Child getdetailsbyId(@PathVariable Integer id ) { + Child get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Child/{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/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/TestaController.java b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/TestaController.java new file mode 100644 index 0000000..c5a5674 --- /dev/null +++ b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/TestaController.java @@ -0,0 +1,203 @@ +package com.realnet.basicp1.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.basicp1.Entity.Testa; +import com.realnet.basicp1.Services.TestaService ; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@RequestMapping(value = "/Testa") + @CrossOrigin("*") +@RestController +public class TestaController { + @Autowired + private TestaService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @PostMapping("/Testa") + public Testa Savedata(@RequestBody Testa data) { + Testa save = Service.Savedata(data) ; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Testa/{id}") + public Testa update(@RequestBody Testa data,@PathVariable Integer id ) { + Testa update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Testa/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("/Testa") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Testa") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Testa/{id}") + public Testa getdetailsbyId(@PathVariable Integer id ) { + Testa get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Testa/{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/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/TestbController.java b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/TestbController.java new file mode 100644 index 0000000..8a0eee0 --- /dev/null +++ b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/TestbController.java @@ -0,0 +1,162 @@ +package com.realnet.basicp1.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.basicp1.Entity.Testb; +import com.realnet.basicp1.Services.TestbService ; + + + + + + + + + + + + + + +import com.realnet.basicp1.Entity.Testb; + + + + + + +@RequestMapping(value = "/Testb") + @CrossOrigin("*") +@RestController +public class TestbController { + @Autowired + private TestbService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + + + + + + + @PostMapping("/Testb") + public Testb Savedata(@RequestBody Testb data) { + Testb save = Service.Savedata(data) ; + + + + + + + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Testb/{id}") + public Testb update(@RequestBody Testb data,@PathVariable Integer id ) { + Testb update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Testb/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("/Testb") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Testb") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Testb/{id}") + public Testb getdetailsbyId(@PathVariable Integer id ) { + Testb get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Testb/{id}") + public ResponseEntity delete_by_id(@PathVariable Integer id ) { + Service.delete_by_id(id); + return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK); + + } + + + + + + + + + + + + + + + + + + @PostMapping("/Testb/Testb_insert") + public Testb insertTestb(@RequestBody Testb data) { + Testb insertaction = Service.insertTestb(data); + return insertaction; + } + + + + + +} \ No newline at end of file diff --git a/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/TestbInsertController1.java b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/TestbInsertController1.java new file mode 100644 index 0000000..6277cd5 --- /dev/null +++ b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/TestbInsertController1.java @@ -0,0 +1,21 @@ +package com.realnet.basicp1.Controllers; +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.web.bind.annotation.*; +import org.springframework.http.*; +import com.realnet.basicp1.Entity.Testb; +import com.realnet.basicp1.Services.TestbInsertService1; +@RequestMapping(value = "/Testb") +@RestController +public class TestbInsertController1{ + + @Autowired + private TestbInsertService1 Service; + +@PostMapping("/Testb_insert") + public ResponseEntity insert(@RequestBody Testb testb) { + Testb insertaction = Service.insertaction(testb); + return new ResponseEntity<>(insertaction, HttpStatus.OK); + } + +} \ No newline at end of file diff --git a/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/TestlistController.java b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/TestlistController.java new file mode 100644 index 0000000..fd34299 --- /dev/null +++ b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/TestlistController.java @@ -0,0 +1,99 @@ +package com.realnet.basicp1.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.basicp1.Entity.Testlist; +import com.realnet.basicp1.Services.TestlistService ; + + + + + + +@RequestMapping(value = "/Testlist") + @CrossOrigin("*") +@RestController +public class TestlistController { + @Autowired + private TestlistService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + @PostMapping("/Testlist") + public Testlist Savedata(@RequestBody Testlist data) { + Testlist save = Service.Savedata(data) ; + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Testlist/{id}") + public Testlist update(@RequestBody Testlist data,@PathVariable Integer id ) { + Testlist update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Testlist/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("/Testlist") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Testlist") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Testlist/{id}") + public Testlist getdetailsbyId(@PathVariable Integer id ) { + Testlist get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Testlist/{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/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/Testlist_ListFilter1Controller.java b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/Testlist_ListFilter1Controller.java new file mode 100644 index 0000000..7ce75d3 --- /dev/null +++ b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/Testlist_ListFilter1Controller.java @@ -0,0 +1,24 @@ +package com.realnet.basicp1.Controllers; +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.web.bind.annotation.*; +import com.realnet.basicp1.Entity.Testlist_ListFilter1; +import com.realnet.basicp1.Services.Testlist_ListFilter1Service ; +@RequestMapping(value = "/Testlist_ListFilter1") +@RestController +public class Testlist_ListFilter1Controller { + + @Autowired + private Testlist_ListFilter1Service Service; + + @GetMapping("/Testlist_ListFilter1") + public List getlist() { + List get = Service.getlistbuilder(); + return get; +} + @GetMapping("/Testlist_ListFilter11") + public List getlistwithparam( ) { + List get = Service.getlistbuilderparam( ); + return get; +} +} \ No newline at end of file diff --git a/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_ChildController.java b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_ChildController.java new file mode 100644 index 0000000..33b5de6 --- /dev/null +++ b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_ChildController.java @@ -0,0 +1,83 @@ +package com.realnet.basicp1.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.basicp1.Entity.Child; +import com.realnet.basicp1.Services.ChildService ; + + +@RequestMapping(value = "/token/Child") + @CrossOrigin("*") +@RestController +public class tokenFree_ChildController { + @Autowired + private ChildService Service; + +@Value("${projectPath}") + private String projectPath; + + + + @PostMapping("/Child") + public Child Savedata(@RequestBody Child data) { + Child save = Service.Savedata(data) ; + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Child/{id}") + public Child update(@RequestBody Child data,@PathVariable Integer id ) { + Child update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Child/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("/Child") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Child") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Child/{id}") + public Child getdetailsbyId(@PathVariable Integer id ) { + Child get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Child/{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/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_TestaController.java b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_TestaController.java new file mode 100644 index 0000000..52ea4a2 --- /dev/null +++ b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_TestaController.java @@ -0,0 +1,203 @@ +package com.realnet.basicp1.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.basicp1.Entity.Testa; +import com.realnet.basicp1.Services.TestaService ; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@RequestMapping(value = "/token/Testa") + @CrossOrigin("*") +@RestController +public class tokenFree_TestaController { + @Autowired + private TestaService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @PostMapping("/Testa") + public Testa Savedata(@RequestBody Testa data) { + Testa save = Service.Savedata(data) ; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Testa/{id}") + public Testa update(@RequestBody Testa data,@PathVariable Integer id ) { + Testa update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Testa/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("/Testa") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Testa") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Testa/{id}") + public Testa getdetailsbyId(@PathVariable Integer id ) { + Testa get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Testa/{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/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_TestbController.java b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_TestbController.java new file mode 100644 index 0000000..8a1bbbe --- /dev/null +++ b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_TestbController.java @@ -0,0 +1,162 @@ +package com.realnet.basicp1.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.basicp1.Entity.Testb; +import com.realnet.basicp1.Services.TestbService ; + + + + + + + + + + + + + + +import com.realnet.basicp1.Entity.Testb; + + + + + + +@RequestMapping(value = "/token/Testb") + @CrossOrigin("*") +@RestController +public class tokenFree_TestbController { + @Autowired + private TestbService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + + + + + + + @PostMapping("/Testb") + public Testb Savedata(@RequestBody Testb data) { + Testb save = Service.Savedata(data) ; + + + + + + + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Testb/{id}") + public Testb update(@RequestBody Testb data,@PathVariable Integer id ) { + Testb update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Testb/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("/Testb") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Testb") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Testb/{id}") + public Testb getdetailsbyId(@PathVariable Integer id ) { + Testb get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Testb/{id}") + public ResponseEntity delete_by_id(@PathVariable Integer id ) { + Service.delete_by_id(id); + return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK); + + } + + + + + + + + + + + + + + + + + + @PostMapping("/Testb/Testb_insert") + public Testb insertTestb(@RequestBody Testb data) { + Testb insertaction = Service.insertTestb(data); + return insertaction; + } + + + + + +} \ No newline at end of file diff --git a/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_TestlistController.java b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_TestlistController.java new file mode 100644 index 0000000..2a1bd06 --- /dev/null +++ b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_TestlistController.java @@ -0,0 +1,99 @@ +package com.realnet.basicp1.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.basicp1.Entity.Testlist; +import com.realnet.basicp1.Services.TestlistService ; + + + + + + +@RequestMapping(value = "/token/Testlist") + @CrossOrigin("*") +@RestController +public class tokenFree_TestlistController { + @Autowired + private TestlistService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + @PostMapping("/Testlist") + public Testlist Savedata(@RequestBody Testlist data) { + Testlist save = Service.Savedata(data) ; + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Testlist/{id}") + public Testlist update(@RequestBody Testlist data,@PathVariable Integer id ) { + Testlist update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Testlist/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("/Testlist") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Testlist") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Testlist/{id}") + public Testlist getdetailsbyId(@PathVariable Integer id ) { + Testlist get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Testlist/{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/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_Testlist_ListFilter1Controller.java b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_Testlist_ListFilter1Controller.java new file mode 100644 index 0000000..8a5c566 --- /dev/null +++ b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_Testlist_ListFilter1Controller.java @@ -0,0 +1,24 @@ +package com.realnet.basicp1.Controllers; +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.web.bind.annotation.*; +import com.realnet.basicp1.Entity.Testlist_ListFilter1; +import com.realnet.basicp1.Services.Testlist_ListFilter1Service ; +@RequestMapping(value = "/token/Testlist_ListFilter1") +@RestController +public class tokenFree_Testlist_ListFilter1Controller { + + @Autowired + private Testlist_ListFilter1Service Service; + + @GetMapping("/Testlist_ListFilter1") + public List getlist() { + List get = Service.getlistbuilder(); + return get; +} + @GetMapping("/Testlist_ListFilter11") + public List getlistwithparam( ) { + List get = Service.getlistbuilderparam( ); + return get; +} +} \ No newline at end of file diff --git a/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Child.java b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Child.java new file mode 100644 index 0000000..2dedaea --- /dev/null +++ b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Child.java @@ -0,0 +1,24 @@ +package com.realnet.basicp1.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + @Entity + @Data + public class Child extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String names; + + +} diff --git a/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Testa.java b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Testa.java new file mode 100644 index 0000000..bed1708 --- /dev/null +++ b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Testa.java @@ -0,0 +1,108 @@ +package com.realnet.basicp1.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @Entity + @Data + public class Testa extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String name; + + private String radiofield; + + + + +private boolean k; + + + +private boolean l; + + + +private String fileupload_fieldname; +private String fileupload_fieldpath ; + +private String imageupload_fieldname; +private String imageupload_fieldpath ; + +private String audio_fieldname; +private String audio_fieldpath ; + +private String video_fieldname; +private String video_fieldpath ; + +private String currency; + +private String qrcode_field; + +private String barcode_field; + + + +private int numa; + +private int numb; + +private String calculated_field; + + + + + +private String a; + + + + +private String b; + + + +private String survey_form; + + +} diff --git a/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Testb.java b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Testb.java new file mode 100644 index 0000000..61facc4 --- /dev/null +++ b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Testb.java @@ -0,0 +1,63 @@ +package com.realnet.basicp1.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + + + + + + +import com.realnet.basicp1.Entity.Child; + + + + @Entity + @Data + public class Testb extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String name; + +private String selectstatic; + +private String selectstaticmul; + +private String selectdynamic; +private String selectdynamicname; + +private String selectdynamicmul; + +private String selectautocom; +private String selectautocomname; + +private String selectautomul; + + + +@OneToOne( cascade=CascadeType.ALL) + private Child child; + + + + +} diff --git a/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Testlist.java b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Testlist.java new file mode 100644 index 0000000..4f42e76 --- /dev/null +++ b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Testlist.java @@ -0,0 +1,33 @@ +package com.realnet.basicp1.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + @Entity + @Data + public class Testlist extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String name; + +@Column(length = 2000) +private String description; + +private boolean active; + + +} diff --git a/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Testlist_ListFilter1.java b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Testlist_ListFilter1.java new file mode 100644 index 0000000..23f52a9 --- /dev/null +++ b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Testlist_ListFilter1.java @@ -0,0 +1,14 @@ +package com.realnet.basicp1.Entity; + import lombok.*; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + @Data + public class Testlist_ListFilter1 { + + private Integer id; + + + private String name; +} diff --git a/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/ChildRepository.java b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/ChildRepository.java new file mode 100644 index 0000000..8101d37 --- /dev/null +++ b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/ChildRepository.java @@ -0,0 +1,26 @@ +package com.realnet.basicp1.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.basicp1.Entity.Child; + +@Repository +public interface ChildRepository extends JpaRepository { + +@Query(value = "select * from child where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from child where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/TestaRepository.java b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/TestaRepository.java new file mode 100644 index 0000000..89ff650 --- /dev/null +++ b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/TestaRepository.java @@ -0,0 +1,56 @@ +package com.realnet.basicp1.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.basicp1.Entity.Testa; + +@Repository +public interface TestaRepository extends JpaRepository { + +@Query(value = "select * from testa where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from testa where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/TestbRepository.java b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/TestbRepository.java new file mode 100644 index 0000000..30b7f53 --- /dev/null +++ b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/TestbRepository.java @@ -0,0 +1,44 @@ +package com.realnet.basicp1.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.basicp1.Entity.Testb; + +@Repository +public interface TestbRepository extends JpaRepository { + +@Query(value = "select * from testb where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from testb where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/TestlistRepository.java b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/TestlistRepository.java new file mode 100644 index 0000000..7fae69c --- /dev/null +++ b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/TestlistRepository.java @@ -0,0 +1,30 @@ +package com.realnet.basicp1.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.basicp1.Entity.Testlist; + +@Repository +public interface TestlistRepository extends JpaRepository { + +@Query(value = "select * from testlist where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from testlist where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/ChildService.java b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/ChildService.java new file mode 100644 index 0000000..e6323c2 --- /dev/null +++ b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/ChildService.java @@ -0,0 +1,73 @@ +package com.realnet.basicp1.Services; +import com.realnet.basicp1.Repository.ChildRepository; +import com.realnet.basicp1.Entity.Child +;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 ChildService { +@Autowired +private ChildRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + +public Child Savedata(Child data) { + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Child 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 Child getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Child update(Child data,Integer id) { + Child old = Repository.findById(id).get(); +old.setNames(data.getNames()); + +final Child test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/TestaService.java b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/TestaService.java new file mode 100644 index 0000000..3b11674 --- /dev/null +++ b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/TestaService.java @@ -0,0 +1,242 @@ +package com.realnet.basicp1.Services; +import com.realnet.basicp1.Repository.TestaRepository; +import com.realnet.basicp1.Entity.Testa +;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 TestaService { +@Autowired +private TestaRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +public Testa Savedata(Testa data) { + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Testa 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 Testa getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Testa update(Testa data,Integer id) { + Testa old = Repository.findById(id).get(); +old.setName(data.getName()); + +old.setRadiofield(data.getRadiofield()); + + + +old.setK(data.isK()); + + + +old.setL(data.isL()); + + + + + + + + + + + + + +old.setCurrency(data.getCurrency()); + +old.setQrcode_field(data.getQrcode_field()); + +old.setBarcode_field(data.getBarcode_field()); + + + +old.setNuma(data.getNuma()); + +old.setNumb(data.getNumb()); + +old.setCalculated_field(data.getCalculated_field()); + + + +old.setA(data.getA()); + + + +old.setB(data.getB()); + + + + +old.setSurvey_form(data.getSurvey_form()); + +final Testa test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/TestbInsertService1.java b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/TestbInsertService1.java new file mode 100644 index 0000000..17df36c --- /dev/null +++ b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/TestbInsertService1.java @@ -0,0 +1,34 @@ +package com.realnet.basicp1.Services; +import com.realnet.basicp1.Repository.TestbRepository; +import com.realnet.basicp1.Entity.Testb; + import java.util.List; +import com.realnet.users.entity1.AppUser; +import com.realnet.users.service1.AppUserServiceImpl; +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Service; + +@Service + public class TestbInsertService1 { +@Autowired +private TestbRepository Repository; +@Autowired + private AppUserServiceImpl userService; + + +public Testb insertaction(Testb testb ) { + + + testb.setUpdatedBy(getUser().getUserId()); + testb.setCreatedBy(getUser().getUserId()); + testb.setAccountId(getUser().getAccount().getAccount_id()); + testb.setActive("toggle_switch"); +testb.setDescription("textarea"); +testb.setName("text"); +final Testb save = Repository.save(testb); + return save; +} +public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} \ No newline at end of file diff --git a/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/TestbService.java b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/TestbService.java new file mode 100644 index 0000000..fe1ca83 --- /dev/null +++ b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/TestbService.java @@ -0,0 +1,225 @@ +package com.realnet.basicp1.Services; +import com.realnet.basicp1.Repository.TestbRepository; +import com.realnet.basicp1.Entity.Testb +;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 com.realnet.basicp1.Entity.Testlist; +import com.realnet.basicp1.Services.TestlistService; + + + + + +import com.realnet.basicp1.Entity.Testlist; +import com.realnet.basicp1.Services.TestlistService; + + + + + +import com.realnet.basicp1.Entity.Testb; + +import com.realnet.basicp1.Repository.TestbRepository; + + + + + + + import org.springframework.stereotype.Service; + +@Service + public class TestbService { +@Autowired +private TestbRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + +@Autowired + private TestlistService selectdynamicserv; + + + +@Autowired + private TestlistService selectautocomserv; + + + + + + + + + +public Testb Savedata(Testb data) { + + + + + + + + +if (data.getSelectdynamic() != null) { + try { + int selectdynamicId = Integer.valueOf(data.getSelectdynamic()); +Testlist get = selectdynamicserv.getdetailsbyId(selectdynamicId); + if (get != null) { + + data.setSelectdynamicname(get.getName()); +} +} catch (NumberFormatException e) { + System.out.println(" selectdynamicId is not integer.."); + // Invalid integer string — ignore or log + } + + } + + + + + + + + +if (data.getSelectautocom() != null) { + try { + int selectautocomId = Integer.valueOf(data.getSelectautocom()); +Testlist get = selectautocomserv.getdetailsbyId(selectautocomId); + if (get != null) { + + data.setSelectautocomname(get.getName()); +} +} catch (NumberFormatException e) { + System.out.println(" selectautocomId is not integer.."); + // Invalid integer string — ignore or log + } + + } + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Testb 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 Testb getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Testb update(Testb data,Integer id) { + Testb old = Repository.findById(id).get(); +old.setName(data.getName()); + +old.setSelectstatic(data.getSelectstatic()); + +old.setSelectstaticmul(data.getSelectstaticmul()); + +old.setSelectdynamic(data.getSelectdynamic()); + +old.setSelectdynamicmul(data.getSelectdynamicmul()); + +old.setSelectautocom(data.getSelectautocom()); + +old.setSelectautomul(data.getSelectautomul()); + + + +old.setChild(data.getChild()); + + + +final Testb test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + + + +// Insert Action + + @Autowired + private TestbRepository testbinsertrepository; + +public Testb insertTestb(Testb data) { + +data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); + + + final Testb save = testbinsertrepository.save(data); + return save; + } + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/TestlistService.java b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/TestlistService.java new file mode 100644 index 0000000..732bd85 --- /dev/null +++ b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/TestlistService.java @@ -0,0 +1,93 @@ +package com.realnet.basicp1.Services; +import com.realnet.basicp1.Repository.TestlistRepository; +import com.realnet.basicp1.Entity.Testlist +;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 TestlistService { +@Autowired +private TestlistRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + +public Testlist Savedata(Testlist data) { + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Testlist 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 Testlist getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Testlist update(Testlist data,Integer id) { + Testlist old = Repository.findById(id).get(); +old.setName(data.getName()); + +old.setDescription(data.getDescription()); + +old.setActive (data.isActive()); + +final Testlist test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/Testlist_ListFilter1Service.java b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/Testlist_ListFilter1Service.java new file mode 100644 index 0000000..6862d90 --- /dev/null +++ b/testaddadv01-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/Testlist_ListFilter1Service.java @@ -0,0 +1,51 @@ +package com.realnet.basicp1.Services; +import java.util.*; +import com.realnet.basicp1.Repository.TestlistRepository; +import com.realnet.basicp1.Entity.Testlist; + +import com.realnet.basicp1.Entity.Testlist_ListFilter1; +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Service; + +@Service + public class Testlist_ListFilter1Service { +@Autowired +private TestlistRepository Repository; + + + + + public List getlistbuilder() { + List list= Repository.findAll(); + ArrayList l = new ArrayList<>(); + for (Testlist data : list) { +boolean isactive = data.isActive(); + + if (isactive) {{ +Testlist_ListFilter1 dummy = new Testlist_ListFilter1(); + dummy.setId(data.getId()); + dummy.setName(data.getName()); + l.add(dummy); +}} +} +return l;} + + + + public List getlistbuilderparam( ) { + List list= Repository.findAll(); + ArrayList l = new ArrayList<>(); + for (Testlist data : list) { +boolean isactive = data.isActive(); + + if (isactive) {{ +Testlist_ListFilter1 dummy = new Testlist_ListFilter1(); + dummy.setId(data.getId()); + dummy.setName(data.getName()); + l.add(dummy); +}} +} +return l;} +} \ No newline at end of file diff --git a/testaddadv01-db-d/authsec_mysql/mysql/wf_table/wf_table.sql b/testaddadv01-db-d/authsec_mysql/mysql/wf_table/wf_table.sql new file mode 100755 index 0000000..f1b853f --- /dev/null +++ b/testaddadv01-db-d/authsec_mysql/mysql/wf_table/wf_table.sql @@ -0,0 +1,8 @@ +CREATE TABLE db.Testa(id BIGINT NOT NULL AUTO_INCREMENT, video_field VARCHAR(400), calculated_field VARCHAR(400), a VARCHAR(400), b VARCHAR(400), qrcode_field VARCHAR(400), k bit(1), fileupload_field VARCHAR(400), value_list_field VARCHAR(400), l bit(1), name VARCHAR(400), radiofield VARCHAR(400), survey_form VARCHAR(400), currency VARCHAR(400), numb int, imageupload_field VARCHAR(400), audio_field VARCHAR(400), barcode_field VARCHAR(400), numa int, PRIMARY KEY (id)); + +CREATE TABLE db.Testlist(id BIGINT NOT NULL AUTO_INCREMENT, active VARCHAR(400), description VARCHAR(400), name VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Child(id BIGINT NOT NULL AUTO_INCREMENT, names VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Testb(id BIGINT NOT NULL AUTO_INCREMENT, selectstatic VARCHAR(400), onetoone VARCHAR(400), selectautocom int, selectdynamic int, selectautomul VARCHAR(400), selectdynamicmul VARCHAR(400), selectstaticmul VARCHAR(400), datagrid_field VARCHAR(400), button_field VARCHAR(400), name VARCHAR(400), PRIMARY KEY (id)); + diff --git a/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/login/login-page/login_environment.ts b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/login/login-page/login_environment.ts index 231b3a1..fdff417 100644 --- a/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/login/login-page/login_environment.ts +++ b/testaddadv01-front-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/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Child/Child.component.html b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Child/Child.component.html new file mode 100644 index 0000000..32b0a01 --- /dev/null +++ b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Child/Child.component.html @@ -0,0 +1,315 @@ + +
+
+
+

Child

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Names + + + + + + Action + + + + + +{{user.names }} + + + + + + + +
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/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Child/Child.component.scss b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Child/Child.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Child/Child.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/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Child/Child.component.ts b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Child/Child.component.ts new file mode 100644 index 0000000..ed9fe58 --- /dev/null +++ b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Child/Child.component.ts @@ -0,0 +1,220 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Childservice} from './Child.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 { Childcardvariable } from './Child_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Child', + templateUrl: './Child.component.html', + styleUrls: ['./Child.component.scss'] +}) +export class ChildComponent implements OnInit { + cardButton = Childcardvariable.cardButton; + cardmodeldata = Childcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Childcardvariable.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 = 'Child_formCode' +tableName = 'Child'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Childservice, + 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({ +names : [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 === "Child_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/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Child/Child.service.ts b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Child/Child.service.ts new file mode 100644 index 0000000..025ce9d --- /dev/null +++ b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Child/Child.service.ts @@ -0,0 +1,35 @@ +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 Childservice{ + private baseURL = "Child/Child" ; 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/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Child/Child_cardvariable.ts b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Child/Child_cardvariable.ts new file mode 100644 index 0000000..587aaf8 --- /dev/null +++ b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Child/Child_cardvariable.ts @@ -0,0 +1,4 @@ +export const Childcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testa/Testa.component.html b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testa/Testa.component.html new file mode 100644 index 0000000..0c954a9 --- /dev/null +++ b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testa/Testa.component.html @@ -0,0 +1,1276 @@ + +
+
+
+

Testa

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Name + + + + Radiofield + + + + + + k + + + + + l + + + + + + + + + + + + + + + Currency + + + + QRCode Field + + + + BarCode Field + + + + + + Numa + + + + Numb + + + + + + + + a + + + + + b + + + + + + + Survey Form + + + + + + Action + + + + + +{{user.name }} + + +{{user.radiofield }} + + + + +{{user.k}} + + + +{{user.l}} + + + + + + + + + + + + + +{{user.currency }} + + +{{user.qrcode_field }} + + +{{user.barcode_field }} + + + + +{{user.numa }} + + +{{user.numb }} + + + + + + +{{user. a}} + + + +{{user. b}} + + + + + +{{user.survey_form }} + + + + + + + +
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/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testa/Testa.component.scss b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testa/Testa.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testa/Testa.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/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testa/Testa.component.ts b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testa/Testa.component.ts new file mode 100644 index 0000000..57fc4ba --- /dev/null +++ b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testa/Testa.component.ts @@ -0,0 +1,1015 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Testaservice} from './Testa.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 { Testacardvariable } from './Testa_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Testa', + templateUrl: './Testa.component.html', + styleUrls: ['./Testa.component.scss'] +}) +export class TestaComponent implements OnInit { + cardButton = Testacardvariable.cardButton; + cardmodeldata = Testacardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Testacardvariable.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 = 'Testa_formCode' +tableName = 'Testa'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Testaservice, + 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], + +radiofield : [null], + + + +k:[false], + + + +l:[false], + + + + + + + + + + + +currency : [null, { updateOn: 'blur' }], + +qrcode_field : [null], + +barcode_field : [null], + + + +numa : [null,[Validators.required]], + +numb : [null,[Validators.required]], + + + + + +a:[null], + + + +b:[null], + + + +survey_form : [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 === "Testa_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 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + } + + + + + + + + +FileDataImageupload_field: any[]; + selectedImageupload_field: any[]; + +FileDataAudio_field: any[]; + selectedAudio_field: any[]; + +FileDataVideo_field: any[]; + selectedVideo_field: any[]; + + + + + + + + + + + + + + + + + + + + + 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.selectedfileupload_field = []; + this.mainService.uploadfilegetByIdfileupload_field(row.id,this.tableName).subscribe(uploaddata =>{ + console.log(uploaddata); + this.FileDatafileupload_field = uploaddata; + + }) + + this.selectedimageupload_field = []; + this.mainService.uploadImageupload_fieldgetById(row.id,this.tableName).subscribe(uploaddata =>{ + console.log(uploaddata); + this.FileDataimageupload_field = uploaddata; + + }) + + this.selectedaudio_field = []; + this.mainService.uploadAudio_fieldgetById(row.id,this.tableName).subscribe(uploaddata =>{ + console.log(uploaddata); + this.FileDataaudio_field = uploaddata; + + }) + + this.selectedvideo_field = []; + this.mainService.uploadVideo_fieldgetById(row.id,this.tableName).subscribe(uploaddata =>{ + console.log(uploaddata); + this.FileDatavideo_field = uploaddata; + + }) + + + + + + // bar code field start + setTimeout(function(){ + JsBarcode("#barcodebarcode_field", row?.barcode_field); + }, 500); + // bar code field start + + + + + + + +//calculated field start + + + this.calculated_fieldnuma= row.numa; + + + + this.calculated_fieldnumb= row.numb; + + +//calculated field end + + + + + + + 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; + + + + + + + + + + + + + + + + + + + + + + + + + + +//calculated field start + + +this.rowSelected.numa= this.calculated_fieldnuma; + + + +this.rowSelected.numb= this.calculated_fieldnumb; + + +this.onInputChangecalculated_field (); + //calculated field end + + + + + + //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); + + + + + + +for (let i = 0; i < this.selectedfileupload_field.length; i++){ + + this.mainService.uploadfilefileupload_field(data.id,this.tableName,this.selectedfileupload_field[i]).subscribe(uploaddata =>{ + console.log(uploaddata); + }) +} + +for (let i = 0; i < this.selectedimageupload_field.length; i++){ + + this.mainService.uploadImageupload_field(data.id,this.tableName,this.selectedimageupload_field[i]).subscribe(uploaddata =>{ + console.log(uploaddata); + }) +} + +for (let i = 0; i < this.selectedaudio_field.length; i++){ + + this.mainService.uploadAudio_field(data.id,this.tableName,this.selectedaudio_field[i]).subscribe(uploaddata =>{ + console.log(uploaddata); + }) +} + +for (let i = 0; i < this.selectedvideo_field.length; i++){ + + this.mainService.uploadVideo_field(data.id,this.tableName,this.selectedvideo_field[i]).subscribe(uploaddata =>{ + console.log(uploaddata); + }) +} + + + + + + + + + + + + + + + + + + + + }, (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; + + + + + + + + + + + + + + + + + + + + + + + + + + +//calculated field start + + +this.entryForm.value.numa = this.calculated_fieldnuma ; + + + +this.entryForm.value.numb = this.calculated_fieldnumb ; + + +//calculated field end + + + + + + 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); + + + + + +for (let i = 0; i < this.selectedfileupload_field.length; i++){ + + this.mainService.uploadfilefileupload_field(data.id,this.tableName,this.selectedfileupload_field[i]).subscribe(uploaddata =>{ + console.log(uploaddata); + }) +} + +for (let i = 0; i < this.selectedimageupload_field.length; i++){ + + this.mainService.uploadImageupload_field(data.id,this.tableName,this.selectedimageupload_field[i]).subscribe(uploaddata =>{ + console.log(uploaddata); + }) +} + +for (let i = 0; i < this.selectedaudio_field.length; i++){ + + this.mainService.uploadAudio_field(data.id,this.tableName,this.selectedaudio_field[i]).subscribe(uploaddata =>{ + console.log(uploaddata); + }) +} + +for (let i = 0; i < this.selectedvideo_field.length; i++){ + + this.mainService.uploadVideo_field(data.id,this.tableName,this.selectedvideo_field[i]).subscribe(uploaddata =>{ + console.log(uploaddata); + }) +} + + + + + + + + + + + + + + + + + + + + + }, (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; + + + + + +this.FileDatafileupload_field = []; +this.selectedfileupload_field =[]; + +this.FileDataImageupload_field = []; +this.selectedImageupload_field =[]; + +this.FileDataAudio_field = []; +this.selectedAudio_field =[]; + +this.FileDataVideo_field = []; +this.selectedVideo_field =[]; + + + + + + + + + + + + + + //calculated field start + + + + this.calculated_fieldnuma = ''; + + + + this.calculated_fieldnumb = ''; + + + + + this.calculated_fieldtotal = ''; + + //calculated field end + + + + + + + } + submitted = false; +onSubmit() { + console.log(this.entryForm.value); + this.submitted = true; + if (this.entryForm.invalid) { + return; + }this.onCreate(); + +} + + +updateradiofield (radiofield : string): void { + this.entryForm.get('radiofield').setValue(radiofield); } + +updateradiofieldEdit(radiofield : string): void { this.rowSelected.radiofield = radiofield } + ; + + + +filePreviewfileupload_field: string | ArrayBuffer | null = null; +FileDatafileupload_field: {uploadedfile_name?:any, filePreview: string | ArrayBuffer | null }[] = []; // Initialize the array +selectedfileupload_field: File[]=[]; +public onFileChangedfileupload_field(event, index) { + const files = event.target.files; + for (let i = 0; i < files.length; i++) { + const file = files[i]; + this.FileDatafileupload_field[index].uploadedfile_name = files[i].name; + this.selectedfileupload_field.push(files[i]); + if (file.type.startsWith('file/')) { + const reader = new FileReader(); + reader.onload = (e) => { + // Set the file preview source + const filePreview = e.target?.result as string; + this.FileDatafileupload_field[index] = { + ...this.FileDatafileupload_field[index], // Preserve existing properties + filePreview: filePreview // Update only the filePreview property + }; + }; + reader.readAsDataURL(file); + } + } +} + onAddLinesfileupload_field(){ + this.FileDatafileupload_field.push({ + uploadedfile_name: "", + filePreview: "", + // f3: "", + }); + } + deleteRowfileupload_field(index,id) { + this.FileDatafileupload_field.splice(index, 1); + + if(id){ + this.mainService.uploadfiledeletefileupload_field(id).subscribe(data =>{ + console.log(data); + }) + } + } + +filePreviewimageupload_field: string | ArrayBuffer | null = null; +FileDataimageupload_field: {uploadedfile_name?:any, filePreview: string | ArrayBuffer | null }[] = []; // Initialize the array +selectedimageupload_field: File[]=[]; +public onFileChangedimageupload_field(event, index) { + const files = event.target.files; + for (let i = 0; i < files.length; i++) { + const file = files[i]; + this.FileDataimageupload_field[index].uploadedfile_name = files[i].name; + this.selectedimageupload_field.push(files[i]); + if (file.type.startsWith('image/')) { + const reader = new FileReader(); + reader.onload = (e) => { + // Set the file preview source + const filePreview = e.target?.result as string; + this.FileDataimageupload_field[index] = { + ...this.FileDataimageupload_field[index], // Preserve existing properties + filePreview: filePreview // Update only the filePreview property + }; + }; + reader.readAsDataURL(file); + } + } +} + onAddLinesimageupload_field(){ + this.FileDataimageupload_field.push({ + uploadedfile_name: "", + filePreview: "", + // f3: "", + }); + } + deleteRowimageupload_field(index,id) { + this.FileDataimageupload_field.splice(index, 1); + + if(id){ + this.mainService.uploadImageupload_fielddelete(id).subscribe(data =>{ + console.log(data); + }) + } + } + +filePreviewaudio_field: string | ArrayBuffer | null = null; +FileDataaudio_field: {uploadedfile_name?:any, filePreview: string | ArrayBuffer | null }[] = []; // Initialize the array +selectedaudio_field: File[]=[]; +public onFileChangedaudio_field(event, index) { + const files = event.target.files; + for (let i = 0; i < files.length; i++) { + const file = files[i]; + this.FileDataaudio_field[index].uploadedfile_name = files[i].name; + this.selectedaudio_field.push(files[i]); + if (file.type.startsWith('audio/')) { + const reader = new FileReader(); + reader.onload = (e) => { + // Set the file preview source + const filePreview = e.target?.result as string; + this.FileDataaudio_field[index] = { + ...this.FileDataaudio_field[index], // Preserve existing properties + filePreview: filePreview // Update only the filePreview property + }; + }; + reader.readAsDataURL(file); + } + } +} + onAddLinesaudio_field(){ + this.FileDataaudio_field.push({ + uploadedfile_name: "", + filePreview: "", + // f3: "", + }); + } + deleteRowaudio_field(index,id) { + this.FileDataaudio_field.splice(index, 1); + + if(id){ + this.mainService.uploadAudio_fielddelete(id).subscribe(data =>{ + console.log(data); + }) + } + } + +filePreviewvideo_field: string | ArrayBuffer | null = null; +FileDatavideo_field: {uploadedfile_name?:any, filePreview: string | ArrayBuffer | null }[] = []; // Initialize the array +selectedvideo_field: File[]=[]; +public onFileChangedvideo_field(event, index) { + const files = event.target.files; + for (let i = 0; i < files.length; i++) { + const file = files[i]; + this.FileDatavideo_field[index].uploadedfile_name = files[i].name; + this.selectedvideo_field.push(files[i]); + if (file.type.startsWith('video/')) { + const reader = new FileReader(); + reader.onload = (e) => { + // Set the file preview source + const filePreview = e.target?.result as string; + this.FileDatavideo_field[index] = { + ...this.FileDatavideo_field[index], // Preserve existing properties + filePreview: filePreview // Update only the filePreview property + }; + }; + reader.readAsDataURL(file); + } + } +} + onAddLinesvideo_field(){ + this.FileDatavideo_field.push({ + uploadedfile_name: "", + filePreview: "", + // f3: "", + }); + } + deleteRowvideo_field(index,id) { + this.FileDatavideo_field.splice(index, 1); + + if(id){ + this.mainService.uploadVideo_fielddelete(id).subscribe(data =>{ + console.log(data); + }) + } + } + +//currency field start + formatCurrencycurrency () { + // Format the currency with two decimal places + this.rowSelected.currency = Number(this.rowSelected.currency ).toFixed(2); + // Remove commas from the formatted currency + this.rowSelected.currency = this.rowSelected.currency?.replace(/,/g, ''); } + //currency field end + + + +//bar code field start + generateBarcodebarcode_field(value) { + const barcodeValue = value; + const barcodeElement = document.getElementById("barcodebarcode_field"); + if (barcodeElement) { if (barcodeValue) { + JsBarcode(barcodeElement, barcodeValue, { format: "CODE128" + }); } else { + // Clear the barcode if the input is empty + barcodeElement.innerHTML = ''; } } } + // bar code field end + +//Value List field start +valuelistMode; +searchcusttextvalue_list_field :any; + valueListModalvalue_list_field :boolean=false; + openvalueListvalue_list_field(mode){ + this.valueListModalvalue_list_field=!this.valueListModalvalue_list_field ; + this.valuelistMode = mode; } + customerdatavalue_list_field ; +cutomererror; + clickedID:number; + +getcustvalue_list_fieldID(id:number){ + this.clickedID=id; + console.log("clicked by id"+ id); + this.mainService.getById(id).subscribe((data) => { console.log(data); + if(this.valuelistMode == "ADD"){ + + + + this.entryForm.get('name').setValue(data.name); + + + + }else if(this.valuelistMode == "EDIT"){ + + + + this.rowSelected.name= data. name + + + + } }); this.valueListModalvalue_list_field =false; + } //value List field end + + + + + + // calculated field code start + + + calculated_fieldnuma; + + + + calculated_fieldnumb; + + + calculated_fieldtotal ; + calculated_fieldcalculateOperators = "Addition" +onInputChangecalculated_field() { +const lastObj = 0 +const lastObjstring = '' + + + + const numa= this.calculated_fieldnuma|| ''; + + const numaValue = parseFloat(this.calculated_fieldnuma) || 0; + + + + + + const numb= this.calculated_fieldnumb|| ''; + + const numbValue = parseFloat(this.calculated_fieldnumb) || 0; + + + +if (this.calculated_fieldcalculateOperators =="Addition") { + this.calculated_fieldtotal = ( + + + numaValue + + + + + numbValue + + + lastObj).toString(); +} +if (this.calculated_fieldcalculateOperators == "Subtraction") { + this.calculated_fieldtotal = ( + + + numaValue - + + + + numbValue - + + + lastObj).toString(); +} +if (this.calculated_fieldcalculateOperators =="Multiplication") { + this.calculated_fieldtotal = ( + + + + numaValue * + + + + numbValue * + + +lastObj).toString(); +} +if (this.calculated_fieldcalculateOperators =="Division") { + + this.calculated_fieldtotal = ( + + +numaValue / + + + +numbValue / + + +lastObj).toString(); + +} +if (this.calculated_fieldcalculateOperators =="Concatination") { + this.calculated_fieldtotal = + + +numa+ ' '+ + + + +numb+ ' '+ + + lastObjstring +} +} + + + + + +// updateaction +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testa/Testa.service.ts b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testa/Testa.service.ts new file mode 100644 index 0000000..dfbefa3 --- /dev/null +++ b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testa/Testa.service.ts @@ -0,0 +1,117 @@ +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 Testaservice{ + private baseURL = "Testa/Testa" ; 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); + } + + + + + + + uploadfilefileupload_field(ref:any, Testa:any, file:any): Observable{ + const formData = new FormData(); + formData.append('file', file); + return this.apiRequest.postFormData(`FileUpload/Uploadeddocs/${ref}/${Testa}`, formData); + } + + uploadfilegetByIdfileupload_field(ref:any, Testa:any,): Observable { + return this.apiRequest.get(`FileUpload/Uploadeddocs/${ref}/${Testa}`); + } + + + uploadfiledeletefileupload_field(id: number): Observable { + return this.apiRequest.delete(`FileUpload/Uploadeddocs/${id}`); + } + + uploadImageupload_field(ref:any, Testa:any, file:any): Observable{ + const formData = new FormData(); + formData.append('file', file); + return this.apiRequest.postFormData(`FileUpload/Uploadeddocs/${ref}/${Testa}`, formData); + } + + uploadImageupload_fieldgetById(ref:any, Testa:any,): Observable { + return this.apiRequest.get(`FileUpload/Uploadeddocs/${ref}/${Testa}`); + } + + + uploadImageupload_fielddelete(id: number): Observable { + return this.apiRequest.delete(`FileUpload/Uploadeddocs/${id}`); + } + + uploadAudio_field(ref:any, Testa:any, file:any): Observable{ + const formData = new FormData(); + formData.append('file', file); + return this.apiRequest.postFormData(`FileUpload/Uploadeddocs/${ref}/${Testa}`, formData); + } + + uploadAudio_fieldgetById(ref:any, Testa:any,): Observable { + return this.apiRequest.get(`FileUpload/Uploadeddocs/${ref}/${Testa}`); + } + + + uploadAudio_fielddelete(id: number): Observable { + return this.apiRequest.delete(`FileUpload/Uploadeddocs/${id}`); + } + + uploadVideo_field(ref:any, Testa:any, file:any): Observable{ + const formData = new FormData(); + formData.append('file', file); + return this.apiRequest.postFormData(`FileUpload/Uploadeddocs/${ref}/${Testa}`, formData); + } + + uploadVideo_fieldgetById(ref:any, Testa:any,): Observable { + return this.apiRequest.get(`FileUpload/Uploadeddocs/${ref}/${Testa}`); + } + + + uploadVideo_fielddelete(id: number): Observable { + return this.apiRequest.delete(`FileUpload/Uploadeddocs/${id}`); + } + + + + + + + + + + + + + + + + + + + +// updateaction +} \ No newline at end of file diff --git a/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testa/Testa_cardvariable.ts b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testa/Testa_cardvariable.ts new file mode 100644 index 0000000..10c9678 --- /dev/null +++ b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testa/Testa_cardvariable.ts @@ -0,0 +1,4 @@ +export const Testacardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testb/Testb.component.html b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testb/Testb.component.html new file mode 100644 index 0000000..c8c8186 --- /dev/null +++ b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testb/Testb.component.html @@ -0,0 +1,737 @@ + +
+
+
+

Testb

+
+
+ + + + + + + +
+ + + + Loading ... + +
{{error}}
+
+ + Name + + + + selectstatic + + + + selectstaticmul + + + + selectdynamic + + + + selectdynamicmul + + + + selectautocom + + + + selectautomul + + + + + + + + names + + + + + + + + + Action + + + + + +{{user.name }} + + +{{user.selectstatic }} + + +{{user.selectstaticmul }} + + +{{user. selectdynamicname }} + + +{{user. selectdynamicmul }} + + +{{user. selectautocomname }} + + +{{user. selectautomul }} + + + + + + +{{user.child.names}} + + + + + + + + + + + +
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/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testb/Testb.component.scss b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testb/Testb.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testb/Testb.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/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testb/Testb.component.ts b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testb/Testb.component.ts new file mode 100644 index 0000000..4053f35 --- /dev/null +++ b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testb/Testb.component.ts @@ -0,0 +1,558 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Testbservice} from './Testb.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 { Testbcardvariable } from './Testb_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Testb', + templateUrl: './Testb.component.html', + styleUrls: ['./Testb.component.scss'] +}) +export class TestbComponent implements OnInit { + cardButton = Testbcardvariable.cardButton; + cardmodeldata = Testbcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Testbcardvariable.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 = 'Testb_formCode' +tableName = 'Testb'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Testbservice, + private alertService: AlertService, + private toastr: ToastrService, + private _fb: FormBuilder, + ) { } +// component button + public insertFormButton_Field: FormGroup; + + + 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], + +selectstatic : [null], + +selectstaticmul : [null], + +selectdynamic : [null], + +selectdynamicmul : [null], + +selectautocom : [null], + +selectautomul : [null], + + + +child: this.initLinesForm(), + + + + + + + + + + + + + + + + + + + + + + + + + }); // component_button200 +// inser code start + this.insertFormButton_Field = this._fb.group({ + active: 'toggle_switch', + description: 'textarea', + name: 'text', + }); + + // insert code end + + // 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 === "Testb_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 + + + + + + +this.getallselectdynamic(); + +this.getallselectdynamicmul(); + +this.getallselectautocom(); + +this.getallselectautomul(); + + + + + + + + + } + + + + + + + + + + + + + + + + + +initLinesForm() { return this._fb.group({ + + + names: [null], + + + +}); } + + + + + 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.nodeEditPropertiesselectstaticmul.editselectedAttributesselectstaticmul = JSON.parse(this.rowSelected.selectstaticmul ); + + + +this.nodeEditPropertiesselectdynamicmul.editselectedAttributesselectdynamicmul = JSON.parse(this.rowSelected.selectdynamicmul ); + + + +this.nodeEditPropertiesselectautomul.editselectedAttributesselectautomul = JSON.parse(this.rowSelected.selectautomul ); + + + + + + + + + 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; + + + + +this.rowSelected.selectstaticmul = JSON.stringify(this.nodeEditPropertiesselectstaticmul.editselectedAttributesselectstaticmul ); + + + +this.rowSelected.selectdynamicmul = JSON.stringify(this.nodeEditPropertiesselectdynamicmul.editselectedAttributesselectdynamicmul ); + + + +this.rowSelected.selectautomul = JSON.stringify(this.nodeEditPropertiesselectautomul.editselectedAttributesselectautomul ); + + + + + + + + //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.entryForm.value.selectstaticmul = JSON.stringify(this.nodeEditPropertiesselectstaticmul.addselectedAttributesselectstaticmul ); + + + +this.entryForm.value.selectdynamicmul = JSON.stringify(this.nodeEditPropertiesselectdynamicmul.addselectedAttributesselectdynamicmul ); + + + +this.entryForm.value.selectautomul = JSON.stringify(this.nodeEditPropertiesselectautomul.addselectedAttributesselectautomul ); + + + + + + + + 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; + + + + + + + +this.nodeEditPropertiesselectdynamicmul.addselectedAttributesselectdynamicmul = "" + + + +this.nodeEditPropertiesselectautomul.addselectedAttributesselectautomul = "" + + + + + + this.getdatagrid_fieldData(); + + + } + submitted = false; +onSubmit() { + console.log(this.entryForm.value); + this.submitted = true; + if (this.entryForm.invalid) { + return; + }this.onCreate(); + +} + + + + +nodeEditPropertiesselectstaticmul = { addselectedAttributesselectstaticmul :"", editselectedAttributesselectstaticmul :"" } + selectselectstaticmul =[ + + + 's', + + + + 'l', + + + + 'n', + + + ]; + +selectselectdynamic ; +getallselectdynamic() { + this.mainService.getAllselectdynamic().subscribe(data=>{ +this.selectselectdynamic = data; +console.log(data); +},(error) => { console.log(error); }); } + +selectselectdynamicmul; + getallselectdynamicmul () { + this.mainService.getAllselectdynamicmul().subscribe(data=>{ + this.selectselectdynamicmul = data; + console.log(data); + },(error) => { console.log(error); }); } + nodeEditPropertiesselectdynamicmul = { addselectedAttributesselectdynamicmul:"", editselectedAttributesselectdynamicmul :"" } + +selectselectautocom ; + getallselectautocom () { + this.mainService.getAllselectautocom().subscribe(data=>{ + this.selectselectautocom = data; console.log(data); + },(error) => { console.log(error); }); } + +selectselectautomul; + getallselectautomul () { + this.mainService.getAllselectautomul().subscribe(data=>{ + this.selectselectautomul = data; + console.log(data); + },(error) => { console.log(error); }); } + nodeEditPropertiesselectautomul = { addselectedAttributesselectautomul:"", editselectedAttributesselectautomul :"" } + + + + + +//datagrid datagrid_field filed start +productdatagrid_field; + rowsdatagrid_field :any[]; + getHeadersdatagrid_field () { + this.rowsdatagrid_field = this.productdatagrid_field; + let headers: string[] = []; + if(this.rowsdatagrid_field ) { +this.rowsdatagrid_field.forEach((value) => { + Object.keys(value).forEach((key) => { + if(!headers.find((header) => header == key)){ + headers.push(key) + } + }) + }) +} + + return headers; + } + //datagrid datagrid_field filed end + +getdatagrid_fieldData() { + this.mainService.getdatagrid_fieldAll().subscribe((data) => { + console.log(data); this.productdatagrid_field = data; + }); +} + +// updateaction + +// insert button + + +modalInsertButton_Field = false; +goToInsertButton_Field() { + this.modalInsertButton_Field=true; + } +onSubmitInsertButton_Field() { + console.log(this.insertFormButton_Field.value); + this.submitted=true; + if (this.insertFormButton_Field.invalid) { + return; + } + this.onInsertButton_Field(); +} +onInsertButton_Field() { + this.modalInsertButton_Field=false; + this.mainService.insertButton_FieldTestb(this.insertFormButton_Field.value).subscribe(data => { + console.log('After add',data) + if (data.status >=200 && data.status <=209) { + this.toastr.success('Added successfully'); + } +if (data && data.id != null) { + this.toastr.success('Added successfully'); + } this.ngOnInit(); + },(error) => { + console.error(error); + if ( error.status >= 200 && error.status <= 299) { + this.toastr.success("Update Successfully"); + } + if ( error.status >= 400 && error.status <= 499) { + this.toastr.error("Update Failed"); + } + if ( error.status >= 500 && error.status <= 599) { + this.toastr.error("Server Error"); + } + this.ngOnInit(); + }); + this.insertFormButton_Field.reset(); + } +// insert buuton code end + + +} + + + + + + + + + + + + + + + + diff --git a/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testb/Testb.service.ts b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testb/Testb.service.ts new file mode 100644 index 0000000..ee7568f --- /dev/null +++ b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testb/Testb.service.ts @@ -0,0 +1,62 @@ +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 Testbservice{ + private baseURL = "Testb/Testb" ; 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); + } + + + + + + +getAllselectdynamic(): Observable { +return this.apiRequest.get("Testlist_ListFilter1/Testlist_ListFilter1"); } + +getAllselectdynamicmul(): Observable { return this.apiRequest.get("Testlist_ListFilter1/Testlist_ListFilter1"); } + +getAllselectautocom(): Observable { return this.apiRequest.get("Testlist_ListFilter1/Testlist_ListFilter1"); } + +getAllselectautomul(): Observable { return this.apiRequest.get("Testlist_ListFilter1/Testlist_ListFilter1"); } + + + + + +getdatagrid_fieldAll(page?: number, size?: number): Observable { + return this.apiRequest.get("Testlist"); + + } + +// updateaction +// insert button code start +insertButton_FieldTestb(Testb: any): Observable { + return this.apiRequest.post(`testb/testb/Testb_insert`, Testb); +} + +} \ No newline at end of file diff --git a/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testb/Testb_cardvariable.ts b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testb/Testb_cardvariable.ts new file mode 100644 index 0000000..8bcc046 --- /dev/null +++ b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testb/Testb_cardvariable.ts @@ -0,0 +1,4 @@ +export const Testbcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testlist/Testlist.component.html b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testlist/Testlist.component.html new file mode 100644 index 0000000..fed024d --- /dev/null +++ b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testlist/Testlist.component.html @@ -0,0 +1,376 @@ + +
+
+
+

Testlist

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Name + + + + Description + + + + Active + + + + + + Action + + + + + +{{user.name }} + + + + + + +{{user.active }} + + + + + + + +
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/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testlist/Testlist.component.scss b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testlist/Testlist.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testlist/Testlist.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/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testlist/Testlist.component.ts b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testlist/Testlist.component.ts new file mode 100644 index 0000000..a8e749d --- /dev/null +++ b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testlist/Testlist.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 { Testlistservice} from './Testlist.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 { Testlistcardvariable } from './Testlist_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Testlist', + templateUrl: './Testlist.component.html', + styleUrls: ['./Testlist.component.scss'] +}) +export class TestlistComponent implements OnInit { + cardButton = Testlistcardvariable.cardButton; + cardmodeldata = Testlistcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Testlistcardvariable.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 = 'Testlist_formCode' +tableName = 'Testlist'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Testlistservice, + 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], + +description : [null], + +active : [true], + + + + + + + + + }); // 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 === "Testlist_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/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testlist/Testlist.service.ts b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testlist/Testlist.service.ts new file mode 100644 index 0000000..a9ee001 --- /dev/null +++ b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testlist/Testlist.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 Testlistservice{ + private baseURL = "Testlist/Testlist" ; 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/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testlist/Testlist_cardvariable.ts b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testlist/Testlist_cardvariable.ts new file mode 100644 index 0000000..87981b4 --- /dev/null +++ b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Testlist/Testlist_cardvariable.ts @@ -0,0 +1,4 @@ +export const Testlistcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main-routing.module.ts b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main-routing.module.ts index 7377c69..b2e78cf 100644 --- a/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main-routing.module.ts +++ b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main-routing.module.ts @@ -1,3 +1,7 @@ +import { TestbComponent } from './BuilderComponents/basicp1/Testb/Testb.component'; +import { ChildComponent } from './BuilderComponents/basicp1/Child/Child.component'; +import { TestlistComponent } from './BuilderComponents/basicp1/Testlist/Testlist.component'; +import { TestaComponent } from './BuilderComponents/basicp1/Testa/Testa.component'; import { SequencegenaratorComponent } from './fnd/sequencegenarator/sequencegenarator.component'; import { Component, NgModule } from '@angular/core'; @@ -256,6 +260,18 @@ const routes: Routes = [ // buildercomponents +{path:'Testb',component:TestbComponent}, + + +{path:'Child',component:ChildComponent}, + + +{path:'Testlist',component:TestlistComponent}, + + +{path:'Testa',component:TestaComponent}, + + diff --git a/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main.module.ts b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main.module.ts index ecbab3d..e004e13 100644 --- a/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main.module.ts +++ b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main.module.ts @@ -1,3 +1,7 @@ +import { TestbComponent } from './BuilderComponents/basicp1/Testb/Testb.component'; +import { ChildComponent } from './BuilderComponents/basicp1/Child/Child.component'; +import { TestlistComponent } from './BuilderComponents/basicp1/Testlist/Testlist.component'; +import { TestaComponent } from './BuilderComponents/basicp1/Testa/Testa.component'; import { CommonModule } from '@angular/common'; @@ -129,6 +133,18 @@ import { Stepper_workflowComponent } from './BuilderComponents/stepperworkflow/S // buildercomponents +TestbComponent, + + +ChildComponent, + + +TestlistComponent, + + +TestaComponent, + + diff --git a/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/assets/i18n/en.json b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/assets/i18n/en.json index ee15955..da14018 100644 --- a/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/assets/i18n/en.json +++ b/testaddadv01-front-f/authsec_angular/frontend/angular-clarity-master/src/assets/i18n/en.json @@ -226,10 +226,38 @@ "MENU_ACTION_LINK": "Menu Action Link", "STATUS": "Status", "SUB_MENU": "Sub Menu", - "Active": "Active", + "video_Field": "video_Field", "Description": "Description", + "QRCode_Field": "QRCode_Field", + "selectdynamic": "selectdynamic", + "selectdynamicmul": "selectdynamicmul", "Fileupload_Field": "Fileupload_Field", - "Test22": "Test22", - "Test11": "Test11", - "Name": "Name" + "Value_List_Field": "Value_List_Field", + "selectstaticmul": "selectstaticmul", + "Name": "Name", + "Names": "Names", + "selectstatic": "selectstatic", + "OneToOne": "OneToOne", + "selectautocom": "selectautocom", + "Currency": "Currency", + "Numb": "Numb", + "selectautomul": "selectautomul", + "Testlist": "Testlist", + "BarCode_Field": "BarCode_Field", + "Child": "Child", + "Numa": "Numa", + "Testa": "Testa", + "calculated_Field": "calculated_Field", + "a": "a", + "b": "b", + "k": "k", + "l": "l", + "datagrid_Field": "datagrid_Field", + "Radiofield": "Radiofield", + "Survey_Form": "Survey_Form", + "Active": "Active", + "Imageupload_Field": "Imageupload_Field", + "audio_Field": "audio_Field", + "Button_Field": "Button_Field", + "Testb": "Testb" } \ No newline at end of file