From 859733fb09b09dc8e231235028dd01a1bc21bd49 Mon Sep 17 00:00:00 2001 From: risadmin_prod Date: Mon, 28 Jul 2025 09:15:10 +0000 Subject: [PATCH] build_app --- .../Builders/Services/BuilderService.java | 15 + .../Customer_informationController.java | 195 +++ .../Deployment_typeController.java | 83 ++ ...Deployment_type_ListFilter1Controller.java | 24 + .../Controllers/ManufacturerController.java | 91 ++ .../Manufacturer_ListFilter1Controller.java | 24 + .../Controllers/ProductController.java | 91 ++ .../Product_ListFilter1Controller.java | 24 + .../basicp1/Controllers/TypesController.java | 91 ++ .../Types_ListFilter1Controller.java | 24 + ...enFree_Customer_informationController.java | 195 +++ .../tokenFree_Deployment_typeController.java | 83 ++ ...Deployment_type_ListFilter1Controller.java | 24 + .../tokenFree_ManufacturerController.java | 91 ++ ...ee_Manufacturer_ListFilter1Controller.java | 24 + .../tokenFree_ProductController.java | 91 ++ ...kenFree_Product_ListFilter1Controller.java | 24 + .../tokenFree_TypesController.java | 91 ++ ...tokenFree_Types_ListFilter1Controller.java | 24 + .../basicp1/Entity/Customer_information.java | 144 +++ .../basicp1/Entity/Deployment_type.java | 24 + .../Entity/Deployment_type_ListFilter1.java | 14 + .../realnet/basicp1/Entity/Manufacturer.java | 30 + .../Entity/Manufacturer_ListFilter1.java | 14 + .../com/realnet/basicp1/Entity/Product.java | 28 + .../basicp1/Entity/Product_ListFilter1.java | 14 + .../com/realnet/basicp1/Entity/Types.java | 28 + .../basicp1/Entity/Types_ListFilter1.java | 14 + .../Customer_informationRepository.java | 54 + .../Repository/Deployment_typeRepository.java | 26 + .../Repository/ManufacturerRepository.java | 28 + .../basicp1/Repository/ProductRepository.java | 28 + .../basicp1/Repository/TypesRepository.java | 28 + .../Services/Customer_informationService.java | 313 +++++ .../Services/Deployment_typeService.java | 73 ++ .../Deployment_type_ListFilter1Service.java | 47 + .../basicp1/Services/ManufacturerService.java | 83 ++ .../Manufacturer_ListFilter1Service.java | 47 + .../basicp1/Services/ProductService.java | 83 ++ .../Services/Product_ListFilter1Service.java | 53 + .../basicp1/Services/TypesService.java | 83 ++ .../Services/Types_ListFilter1Service.java | 53 + .../login/login-page/login_environment.ts | 18 +- .../Customer_information.component.html | 1140 +++++++++++++++++ .../Customer_information.component.scss | 78 ++ .../Customer_information.component.ts | 887 +++++++++++++ .../Customer_information.service.ts | 77 ++ .../Customer_information_cardvariable.ts | 4 + .../Deployment_type.component.html | 315 +++++ .../Deployment_type.component.scss | 78 ++ .../Deployment_type.component.ts | 225 ++++ .../Deployment_type.service.ts | 35 + .../Deployment_type_cardvariable.ts | 4 + .../Manufacturer/Manufacturer.component.html | 347 +++++ .../Manufacturer/Manufacturer.component.scss | 78 ++ .../Manufacturer/Manufacturer.component.ts | 251 ++++ .../Manufacturer/Manufacturer.service.ts | 37 + .../Manufacturer/Manufacturer_cardvariable.ts | 4 + .../basicp1/Product/Product.component.html | 344 +++++ .../basicp1/Product/Product.component.scss | 78 ++ .../basicp1/Product/Product.component.ts | 249 ++++ .../basicp1/Product/Product.service.ts | 37 + .../basicp1/Product/Product_cardvariable.ts | 4 + .../basicp1/Types/Types.component.html | 344 +++++ .../basicp1/Types/Types.component.scss | 78 ++ .../basicp1/Types/Types.component.ts | 249 ++++ .../basicp1/Types/Types.service.ts | 37 + .../basicp1/Types/Types_cardvariable.ts | 4 + .../app/modules/main/main-routing.module.ts | 20 + .../src/app/modules/main/main.module.ts | 20 + .../src/assets/i18n/en.json | 37 +- .../authsec_mysql/mysql/wf_table/wf_table.sql | 10 + 72 files changed, 7693 insertions(+), 14 deletions(-) create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/Customer_informationController.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/Deployment_typeController.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/Deployment_type_ListFilter1Controller.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/ManufacturerController.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/Manufacturer_ListFilter1Controller.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/ProductController.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/Product_ListFilter1Controller.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/TypesController.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/Types_ListFilter1Controller.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_Customer_informationController.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_Deployment_typeController.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_Deployment_type_ListFilter1Controller.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_ManufacturerController.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_Manufacturer_ListFilter1Controller.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_ProductController.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_Product_ListFilter1Controller.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_TypesController.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_Types_ListFilter1Controller.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Customer_information.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Deployment_type.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Deployment_type_ListFilter1.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Manufacturer.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Manufacturer_ListFilter1.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Product.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Product_ListFilter1.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Types.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Types_ListFilter1.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/Customer_informationRepository.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/Deployment_typeRepository.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/ManufacturerRepository.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/ProductRepository.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/TypesRepository.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/Customer_informationService.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/Deployment_typeService.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/Deployment_type_ListFilter1Service.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/ManufacturerService.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/Manufacturer_ListFilter1Service.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/ProductService.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/Product_ListFilter1Service.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/TypesService.java create mode 100644 orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/Types_ListFilter1Service.java create mode 100644 orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Customer_information/Customer_information.component.html create mode 100644 orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Customer_information/Customer_information.component.scss create mode 100644 orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Customer_information/Customer_information.component.ts create mode 100644 orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Customer_information/Customer_information.service.ts create mode 100644 orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Customer_information/Customer_information_cardvariable.ts create mode 100644 orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deployment_type/Deployment_type.component.html create mode 100644 orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deployment_type/Deployment_type.component.scss create mode 100644 orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deployment_type/Deployment_type.component.ts create mode 100644 orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deployment_type/Deployment_type.service.ts create mode 100644 orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deployment_type/Deployment_type_cardvariable.ts create mode 100644 orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Manufacturer/Manufacturer.component.html create mode 100644 orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Manufacturer/Manufacturer.component.scss create mode 100644 orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Manufacturer/Manufacturer.component.ts create mode 100644 orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Manufacturer/Manufacturer.service.ts create mode 100644 orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Manufacturer/Manufacturer_cardvariable.ts create mode 100644 orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Product/Product.component.html create mode 100644 orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Product/Product.component.scss create mode 100644 orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Product/Product.component.ts create mode 100644 orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Product/Product.service.ts create mode 100644 orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Product/Product_cardvariable.ts create mode 100644 orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Types/Types.component.html create mode 100644 orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Types/Types.component.scss create mode 100644 orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Types/Types.component.ts create mode 100644 orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Types/Types.service.ts create mode 100644 orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Types/Types_cardvariable.ts create mode 100755 orderestimation013-orderestimationdb-d/authsec_mysql/mysql/wf_table/wf_table.sql diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/Builders/Services/BuilderService.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/Builders/Services/BuilderService.java index f9801fb..b23e3b3 100644 --- a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/Builders/Services/BuilderService.java +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/Builders/Services/BuilderService.java @@ -69,6 +69,21 @@ public class BuilderService { executeDump(true); // ADD OTHER SERVICE +addCustomMenu( "Types","Types", "Transcations"); + + +addCustomMenu( "Product","Product", "Transcations"); + + +addCustomMenu( "Manufacturer","Manufacturer", "Transcations"); + + +addCustomMenu( "Deployment_type","Deployment_type", "Transcations"); + + +addCustomMenu( "Customer_information","Customer_information", "Transcations"); + + System.out.println("dashboard and menu inserted..."); diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/Customer_informationController.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/Customer_informationController.java new file mode 100644 index 0000000..c8efcf1 --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/Customer_informationController.java @@ -0,0 +1,195 @@ +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.Customer_information; +import com.realnet.basicp1.Services.Customer_informationService ; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@RequestMapping(value = "/Customer_information") + @CrossOrigin("*") +@RestController +public class Customer_informationController { + @Autowired + private Customer_informationService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @PostMapping("/Customer_information") + public Customer_information Savedata(@RequestBody Customer_information data) { + Customer_information save = Service.Savedata(data) ; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Customer_information/{id}") + public Customer_information update(@RequestBody Customer_information data,@PathVariable Integer id ) { + Customer_information update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Customer_information/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("/Customer_information") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Customer_information") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Customer_information/{id}") + public Customer_information getdetailsbyId(@PathVariable Integer id ) { + Customer_information get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Customer_information/{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/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/Deployment_typeController.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/Deployment_typeController.java new file mode 100644 index 0000000..fc52ab4 --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/Deployment_typeController.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.Deployment_type; +import com.realnet.basicp1.Services.Deployment_typeService ; + + +@RequestMapping(value = "/Deployment_type") + @CrossOrigin("*") +@RestController +public class Deployment_typeController { + @Autowired + private Deployment_typeService Service; + +@Value("${projectPath}") + private String projectPath; + + + + @PostMapping("/Deployment_type") + public Deployment_type Savedata(@RequestBody Deployment_type data) { + Deployment_type save = Service.Savedata(data) ; + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Deployment_type/{id}") + public Deployment_type update(@RequestBody Deployment_type data,@PathVariable Integer id ) { + Deployment_type update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Deployment_type/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("/Deployment_type") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Deployment_type") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Deployment_type/{id}") + public Deployment_type getdetailsbyId(@PathVariable Integer id ) { + Deployment_type get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Deployment_type/{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/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/Deployment_type_ListFilter1Controller.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/Deployment_type_ListFilter1Controller.java new file mode 100644 index 0000000..ca9779f --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/Deployment_type_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.Deployment_type_ListFilter1; +import com.realnet.basicp1.Services.Deployment_type_ListFilter1Service ; +@RequestMapping(value = "/Deployment_type_ListFilter1") +@RestController +public class Deployment_type_ListFilter1Controller { + + @Autowired + private Deployment_type_ListFilter1Service Service; + + @GetMapping("/Deployment_type_ListFilter1") + public List getlist() { + List get = Service.getlistbuilder(); + return get; +} + @GetMapping("/Deployment_type_ListFilter11") + public List getlistwithparam( ) { + List get = Service.getlistbuilderparam( ); + return get; +} +} \ No newline at end of file diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/ManufacturerController.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/ManufacturerController.java new file mode 100644 index 0000000..eab6c11 --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/ManufacturerController.java @@ -0,0 +1,91 @@ +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.Manufacturer; +import com.realnet.basicp1.Services.ManufacturerService ; + + + + +@RequestMapping(value = "/Manufacturer") + @CrossOrigin("*") +@RestController +public class ManufacturerController { + @Autowired + private ManufacturerService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + @PostMapping("/Manufacturer") + public Manufacturer Savedata(@RequestBody Manufacturer data) { + Manufacturer save = Service.Savedata(data) ; + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Manufacturer/{id}") + public Manufacturer update(@RequestBody Manufacturer data,@PathVariable Integer id ) { + Manufacturer update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Manufacturer/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("/Manufacturer") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Manufacturer") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Manufacturer/{id}") + public Manufacturer getdetailsbyId(@PathVariable Integer id ) { + Manufacturer get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Manufacturer/{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/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/Manufacturer_ListFilter1Controller.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/Manufacturer_ListFilter1Controller.java new file mode 100644 index 0000000..ee15b0d --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/Manufacturer_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.Manufacturer_ListFilter1; +import com.realnet.basicp1.Services.Manufacturer_ListFilter1Service ; +@RequestMapping(value = "/Manufacturer_ListFilter1") +@RestController +public class Manufacturer_ListFilter1Controller { + + @Autowired + private Manufacturer_ListFilter1Service Service; + + @GetMapping("/Manufacturer_ListFilter1") + public List getlist() { + List get = Service.getlistbuilder(); + return get; +} + @GetMapping("/Manufacturer_ListFilter11") + public List getlistwithparam( ) { + List get = Service.getlistbuilderparam( ); + return get; +} +} \ No newline at end of file diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/ProductController.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/ProductController.java new file mode 100644 index 0000000..4a98716 --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/ProductController.java @@ -0,0 +1,91 @@ +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.Product; +import com.realnet.basicp1.Services.ProductService ; + + + + +@RequestMapping(value = "/Product") + @CrossOrigin("*") +@RestController +public class ProductController { + @Autowired + private ProductService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + @PostMapping("/Product") + public Product Savedata(@RequestBody Product data) { + Product save = Service.Savedata(data) ; + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Product/{id}") + public Product update(@RequestBody Product data,@PathVariable Integer id ) { + Product update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Product/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("/Product") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Product") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Product/{id}") + public Product getdetailsbyId(@PathVariable Integer id ) { + Product get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Product/{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/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/Product_ListFilter1Controller.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/Product_ListFilter1Controller.java new file mode 100644 index 0000000..1ca6976 --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/Product_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.Product_ListFilter1; +import com.realnet.basicp1.Services.Product_ListFilter1Service ; +@RequestMapping(value = "/Product_ListFilter1") +@RestController +public class Product_ListFilter1Controller { + + @Autowired + private Product_ListFilter1Service Service; + + @GetMapping("/Product_ListFilter1") + public List getlist() { + List get = Service.getlistbuilder(); + return get; +} + @GetMapping("/Product_ListFilter11/{item}") + public List getlistwithparam( @PathVariable String item) { + List get = Service.getlistbuilderparam( item); + return get; +} +} \ No newline at end of file diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/TypesController.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/TypesController.java new file mode 100644 index 0000000..41dd173 --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/TypesController.java @@ -0,0 +1,91 @@ +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.Types; +import com.realnet.basicp1.Services.TypesService ; + + + + +@RequestMapping(value = "/Types") + @CrossOrigin("*") +@RestController +public class TypesController { + @Autowired + private TypesService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + @PostMapping("/Types") + public Types Savedata(@RequestBody Types data) { + Types save = Service.Savedata(data) ; + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Types/{id}") + public Types update(@RequestBody Types data,@PathVariable Integer id ) { + Types update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Types/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("/Types") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Types") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Types/{id}") + public Types getdetailsbyId(@PathVariable Integer id ) { + Types get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Types/{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/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/Types_ListFilter1Controller.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/Types_ListFilter1Controller.java new file mode 100644 index 0000000..09bdd02 --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/Types_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.Types_ListFilter1; +import com.realnet.basicp1.Services.Types_ListFilter1Service ; +@RequestMapping(value = "/Types_ListFilter1") +@RestController +public class Types_ListFilter1Controller { + + @Autowired + private Types_ListFilter1Service Service; + + @GetMapping("/Types_ListFilter1") + public List getlist() { + List get = Service.getlistbuilder(); + return get; +} + @GetMapping("/Types_ListFilter11/{item}") + public List getlistwithparam( @PathVariable String item) { + List get = Service.getlistbuilderparam( item); + return get; +} +} \ No newline at end of file diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_Customer_informationController.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_Customer_informationController.java new file mode 100644 index 0000000..d28d209 --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_Customer_informationController.java @@ -0,0 +1,195 @@ +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.Customer_information; +import com.realnet.basicp1.Services.Customer_informationService ; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@RequestMapping(value = "/token/Customer_information") + @CrossOrigin("*") +@RestController +public class tokenFree_Customer_informationController { + @Autowired + private Customer_informationService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @PostMapping("/Customer_information") + public Customer_information Savedata(@RequestBody Customer_information data) { + Customer_information save = Service.Savedata(data) ; + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Customer_information/{id}") + public Customer_information update(@RequestBody Customer_information data,@PathVariable Integer id ) { + Customer_information update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Customer_information/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("/Customer_information") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Customer_information") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Customer_information/{id}") + public Customer_information getdetailsbyId(@PathVariable Integer id ) { + Customer_information get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Customer_information/{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/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_Deployment_typeController.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_Deployment_typeController.java new file mode 100644 index 0000000..6685603 --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_Deployment_typeController.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.Deployment_type; +import com.realnet.basicp1.Services.Deployment_typeService ; + + +@RequestMapping(value = "/token/Deployment_type") + @CrossOrigin("*") +@RestController +public class tokenFree_Deployment_typeController { + @Autowired + private Deployment_typeService Service; + +@Value("${projectPath}") + private String projectPath; + + + + @PostMapping("/Deployment_type") + public Deployment_type Savedata(@RequestBody Deployment_type data) { + Deployment_type save = Service.Savedata(data) ; + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Deployment_type/{id}") + public Deployment_type update(@RequestBody Deployment_type data,@PathVariable Integer id ) { + Deployment_type update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Deployment_type/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("/Deployment_type") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Deployment_type") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Deployment_type/{id}") + public Deployment_type getdetailsbyId(@PathVariable Integer id ) { + Deployment_type get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Deployment_type/{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/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_Deployment_type_ListFilter1Controller.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_Deployment_type_ListFilter1Controller.java new file mode 100644 index 0000000..e96cd1b --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_Deployment_type_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.Deployment_type_ListFilter1; +import com.realnet.basicp1.Services.Deployment_type_ListFilter1Service ; +@RequestMapping(value = "/token/Deployment_type_ListFilter1") +@RestController +public class tokenFree_Deployment_type_ListFilter1Controller { + + @Autowired + private Deployment_type_ListFilter1Service Service; + + @GetMapping("/Deployment_type_ListFilter1") + public List getlist() { + List get = Service.getlistbuilder(); + return get; +} + @GetMapping("/Deployment_type_ListFilter11") + public List getlistwithparam( ) { + List get = Service.getlistbuilderparam( ); + return get; +} +} \ No newline at end of file diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_ManufacturerController.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_ManufacturerController.java new file mode 100644 index 0000000..0be13d2 --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_ManufacturerController.java @@ -0,0 +1,91 @@ +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.Manufacturer; +import com.realnet.basicp1.Services.ManufacturerService ; + + + + +@RequestMapping(value = "/token/Manufacturer") + @CrossOrigin("*") +@RestController +public class tokenFree_ManufacturerController { + @Autowired + private ManufacturerService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + @PostMapping("/Manufacturer") + public Manufacturer Savedata(@RequestBody Manufacturer data) { + Manufacturer save = Service.Savedata(data) ; + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Manufacturer/{id}") + public Manufacturer update(@RequestBody Manufacturer data,@PathVariable Integer id ) { + Manufacturer update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Manufacturer/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("/Manufacturer") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Manufacturer") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Manufacturer/{id}") + public Manufacturer getdetailsbyId(@PathVariable Integer id ) { + Manufacturer get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Manufacturer/{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/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_Manufacturer_ListFilter1Controller.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_Manufacturer_ListFilter1Controller.java new file mode 100644 index 0000000..81a858a --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_Manufacturer_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.Manufacturer_ListFilter1; +import com.realnet.basicp1.Services.Manufacturer_ListFilter1Service ; +@RequestMapping(value = "/token/Manufacturer_ListFilter1") +@RestController +public class tokenFree_Manufacturer_ListFilter1Controller { + + @Autowired + private Manufacturer_ListFilter1Service Service; + + @GetMapping("/Manufacturer_ListFilter1") + public List getlist() { + List get = Service.getlistbuilder(); + return get; +} + @GetMapping("/Manufacturer_ListFilter11") + public List getlistwithparam( ) { + List get = Service.getlistbuilderparam( ); + return get; +} +} \ No newline at end of file diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_ProductController.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_ProductController.java new file mode 100644 index 0000000..9ba33c9 --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_ProductController.java @@ -0,0 +1,91 @@ +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.Product; +import com.realnet.basicp1.Services.ProductService ; + + + + +@RequestMapping(value = "/token/Product") + @CrossOrigin("*") +@RestController +public class tokenFree_ProductController { + @Autowired + private ProductService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + @PostMapping("/Product") + public Product Savedata(@RequestBody Product data) { + Product save = Service.Savedata(data) ; + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Product/{id}") + public Product update(@RequestBody Product data,@PathVariable Integer id ) { + Product update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Product/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("/Product") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Product") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Product/{id}") + public Product getdetailsbyId(@PathVariable Integer id ) { + Product get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Product/{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/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_Product_ListFilter1Controller.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_Product_ListFilter1Controller.java new file mode 100644 index 0000000..5c6e9ff --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_Product_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.Product_ListFilter1; +import com.realnet.basicp1.Services.Product_ListFilter1Service ; +@RequestMapping(value = "/token/Product_ListFilter1") +@RestController +public class tokenFree_Product_ListFilter1Controller { + + @Autowired + private Product_ListFilter1Service Service; + + @GetMapping("/Product_ListFilter1") + public List getlist() { + List get = Service.getlistbuilder(); + return get; +} + @GetMapping("/Product_ListFilter11/{item}") + public List getlistwithparam( @PathVariable String item) { + List get = Service.getlistbuilderparam( item); + return get; +} +} \ No newline at end of file diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_TypesController.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_TypesController.java new file mode 100644 index 0000000..83cef4d --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_TypesController.java @@ -0,0 +1,91 @@ +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.Types; +import com.realnet.basicp1.Services.TypesService ; + + + + +@RequestMapping(value = "/token/Types") + @CrossOrigin("*") +@RestController +public class tokenFree_TypesController { + @Autowired + private TypesService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + @PostMapping("/Types") + public Types Savedata(@RequestBody Types data) { + Types save = Service.Savedata(data) ; + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Types/{id}") + public Types update(@RequestBody Types data,@PathVariable Integer id ) { + Types update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Types/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("/Types") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Types") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Types/{id}") + public Types getdetailsbyId(@PathVariable Integer id ) { + Types get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Types/{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/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_Types_ListFilter1Controller.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_Types_ListFilter1Controller.java new file mode 100644 index 0000000..16c83a5 --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/tokenFree_Types_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.Types_ListFilter1; +import com.realnet.basicp1.Services.Types_ListFilter1Service ; +@RequestMapping(value = "/token/Types_ListFilter1") +@RestController +public class tokenFree_Types_ListFilter1Controller { + + @Autowired + private Types_ListFilter1Service Service; + + @GetMapping("/Types_ListFilter1") + public List getlist() { + List get = Service.getlistbuilder(); + return get; +} + @GetMapping("/Types_ListFilter11/{item}") + public List getlistwithparam( @PathVariable String item) { + List get = Service.getlistbuilderparam( item); + return get; +} +} \ No newline at end of file diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Customer_information.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Customer_information.java new file mode 100644 index 0000000..a96efc9 --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Customer_information.java @@ -0,0 +1,144 @@ +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 Customer_information extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String company_name; + +@Column(length = 2000) +private String contact_person; + +private String manufacturer; +private String manufactureridentifier; + +private String type; + + + + + +private String product; + + + + + +private String email_address; + +private int phone_number; + + +@Column(length = 2000) +private String customer_address; + +private String deployment_type; +private String deployment_typeidentifier; + + + + +private Boolean dg_monitoring___without_fule; + + + +private Boolean active_energy; + + + +private Boolean dg_monitoring___with_fule; + + + +private Boolean ups_monitoring; + + + +private Boolean apfc_panel_monitoring; + + + +private Boolean busbar_monitoring; + + + +private Boolean water_management_stp_etp; + + + +private Boolean lt_panel_monitoring; + + + +private Boolean ht_panel_monitoring; + + + +private Boolean compressed_air__gag_monitoring; + + + +private Boolean compressed_air___lpg_n2_o2_co2; + + + +private Boolean water_management_water_monitoring; + + + +private int quantity; + +private int price; + +private String total; + + +@Column(length = 2000) +private String description; + + + + +} diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Deployment_type.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Deployment_type.java new file mode 100644 index 0000000..9ba5c3c --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Deployment_type.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 Deployment_type extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String deployment_type; + + +} diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Deployment_type_ListFilter1.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Deployment_type_ListFilter1.java new file mode 100644 index 0000000..aa4eae7 --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Deployment_type_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 Deployment_type_ListFilter1 { + + private Integer id; + + + private String deployment_type; +} diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Manufacturer.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Manufacturer.java new file mode 100644 index 0000000..d212a7d --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Manufacturer.java @@ -0,0 +1,30 @@ +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 Manufacturer extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String manufacturer_name; + + +@Column(length = 2000) +private String description; + + +} diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Manufacturer_ListFilter1.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Manufacturer_ListFilter1.java new file mode 100644 index 0000000..3951216 --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Manufacturer_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 Manufacturer_ListFilter1 { + + private Integer id; + + + private String manufacturer_name; +} diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Product.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Product.java new file mode 100644 index 0000000..7c161ec --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Product.java @@ -0,0 +1,28 @@ +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 Product extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String product_name; + +private String type_name; + + +} diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Product_ListFilter1.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Product_ListFilter1.java new file mode 100644 index 0000000..2410c91 --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Product_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 Product_ListFilter1 { + + private Integer id; + + + private String product_name; +} diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Types.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Types.java new file mode 100644 index 0000000..7d47d73 --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Types.java @@ -0,0 +1,28 @@ +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 Types extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String type_name; + +private String manufacturer; + + +} diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Types_ListFilter1.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Types_ListFilter1.java new file mode 100644 index 0000000..5c74743 --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Types_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 Types_ListFilter1 { + + private Integer id; + + + private String type_name; +} diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/Customer_informationRepository.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/Customer_informationRepository.java new file mode 100644 index 0000000..79bccdc --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/Customer_informationRepository.java @@ -0,0 +1,54 @@ +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.Customer_information; + +@Repository +public interface Customer_informationRepository extends JpaRepository { + +@Query(value = "select * from customer_information where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from customer_information where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/Deployment_typeRepository.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/Deployment_typeRepository.java new file mode 100644 index 0000000..d89e6eb --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/Deployment_typeRepository.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.Deployment_type; + +@Repository +public interface Deployment_typeRepository extends JpaRepository { + +@Query(value = "select * from deployment_type where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from deployment_type where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/ManufacturerRepository.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/ManufacturerRepository.java new file mode 100644 index 0000000..4da2c16 --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/ManufacturerRepository.java @@ -0,0 +1,28 @@ +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.Manufacturer; + +@Repository +public interface ManufacturerRepository extends JpaRepository { + +@Query(value = "select * from manufacturer where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from manufacturer where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/ProductRepository.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/ProductRepository.java new file mode 100644 index 0000000..b444590 --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/ProductRepository.java @@ -0,0 +1,28 @@ +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.Product; + +@Repository +public interface ProductRepository extends JpaRepository { + +@Query(value = "select * from product where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from product where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/TypesRepository.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/TypesRepository.java new file mode 100644 index 0000000..d2a63ed --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/TypesRepository.java @@ -0,0 +1,28 @@ +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.Types; + +@Repository +public interface TypesRepository extends JpaRepository { + +@Query(value = "select * from types where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from types where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/Customer_informationService.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/Customer_informationService.java new file mode 100644 index 0000000..7b19a55 --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/Customer_informationService.java @@ -0,0 +1,313 @@ +package com.realnet.basicp1.Services; +import com.realnet.basicp1.Repository.Customer_informationRepository; +import com.realnet.basicp1.Entity.Customer_information +;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.Manufacturer; +import com.realnet.basicp1.Services.ManufacturerService; + + + + + + + + + + + + + +import com.realnet.basicp1.Entity.Deployment_type; +import com.realnet.basicp1.Services.Deployment_typeService; + + + + + + + + + + + + + + + + import org.springframework.stereotype.Service; + +@Service + public class Customer_informationService { +@Autowired +private Customer_informationRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + +@Autowired + private ManufacturerService manufacturerserv; + + + + + + + + + + + +@Autowired + private Deployment_typeService deployment_typeserv; + + + + + + + + + + + + + +public Customer_information Savedata(Customer_information data) { + + + + + + +if (data.getManufacturer() != null) { + try { + int manufacturerId = Integer.valueOf(data.getManufacturer()); +Manufacturer get = manufacturerserv.getdetailsbyId(manufacturerId); + if (get != null) { + + data.setManufactureridentifier(get.getManufacturer_name()); +} +} catch (NumberFormatException e) { + System.out.println(" manufacturerId is not integer.."); + // Invalid integer string — ignore or log + } + + } + + + + + + + + + + + + + + + + +if (data.getDeployment_type() != null) { + try { + int deployment_typeId = Integer.valueOf(data.getDeployment_type()); +Deployment_type get = deployment_typeserv.getdetailsbyId(deployment_typeId); + if (get != null) { + + data.setDeployment_typeidentifier(get.getDeployment_type()); +} +} catch (NumberFormatException e) { + System.out.println(" deployment_typeId is not integer.."); + // Invalid integer string — ignore or log + } + + } + + + + + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Customer_information 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 Customer_information getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Customer_information update(Customer_information data,Integer id) { + Customer_information old = Repository.findById(id).get(); +old.setCompany_name(data.getCompany_name()); + +old.setContact_person(data.getContact_person()); + +old.setManufacturer(data.getManufacturer()); + +old.setType(data.getType()); + + + + +old.setProduct(data.getProduct()); + + + + +old.setEmail_address(data.getEmail_address()); + +old.setPhone_number(data.getPhone_number()); + +old.setCustomer_address(data.getCustomer_address()); + +old.setDeployment_type(data.getDeployment_type()); + + + +old.setDg_monitoring___without_fule(data.getDg_monitoring___without_fule()); + + + +old.setActive_energy(data.getActive_energy()); + + + +old.setDg_monitoring___with_fule(data.getDg_monitoring___with_fule()); + + + +old.setUps_monitoring(data.getUps_monitoring()); + + + +old.setApfc_panel_monitoring(data.getApfc_panel_monitoring()); + + + +old.setBusbar_monitoring(data.getBusbar_monitoring()); + + + +old.setLt_panel_monitoring(data.getLt_panel_monitoring()); + + + +old.setHt_panel_monitoring(data.getHt_panel_monitoring()); + + + +old.setCompressed_air__gag_monitoring(data.getCompressed_air__gag_monitoring()); + + + +old.setWater_management_stp_etp(data.getWater_management_stp_etp()); + + + +old.setCompressed_air___lpg_n2_o2_co2(data.getCompressed_air___lpg_n2_o2_co2()); + + + +old.setWater_management_water_monitoring(data.getWater_management_water_monitoring()); + + + + + +old.setQuantity(data.getQuantity()); + +old.setPrice(data.getPrice()); + +old.setTotal(data.getTotal()); + +old.setDescription(data.getDescription()); + + + +final Customer_information test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/Deployment_typeService.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/Deployment_typeService.java new file mode 100644 index 0000000..7980255 --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/Deployment_typeService.java @@ -0,0 +1,73 @@ +package com.realnet.basicp1.Services; +import com.realnet.basicp1.Repository.Deployment_typeRepository; +import com.realnet.basicp1.Entity.Deployment_type +;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 Deployment_typeService { +@Autowired +private Deployment_typeRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + +public Deployment_type Savedata(Deployment_type data) { + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Deployment_type 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 Deployment_type getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Deployment_type update(Deployment_type data,Integer id) { + Deployment_type old = Repository.findById(id).get(); +old.setDeployment_type(data.getDeployment_type()); + +final Deployment_type test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/Deployment_type_ListFilter1Service.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/Deployment_type_ListFilter1Service.java new file mode 100644 index 0000000..7a110c2 --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/Deployment_type_ListFilter1Service.java @@ -0,0 +1,47 @@ +package com.realnet.basicp1.Services; +import java.util.*; +import com.realnet.basicp1.Repository.Deployment_typeRepository; +import com.realnet.basicp1.Entity.Deployment_type; + +import com.realnet.basicp1.Entity.Deployment_type_ListFilter1; +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Service; + +@Service + public class Deployment_type_ListFilter1Service { +@Autowired +private Deployment_typeRepository Repository; + + + + + public List getlistbuilder() { + List list= Repository.findAll(); + ArrayList l = new ArrayList<>(); + for (Deployment_type data : list) { +{ +Deployment_type_ListFilter1 dummy = new Deployment_type_ListFilter1(); + dummy.setId(data.getId()); + dummy.setDeployment_type(data.getDeployment_type()); + l.add(dummy); +} +} +return l;} + + + + public List getlistbuilderparam( ) { + List list= Repository.findAll(); + ArrayList l = new ArrayList<>(); + for (Deployment_type data : list) { +{ +Deployment_type_ListFilter1 dummy = new Deployment_type_ListFilter1(); + dummy.setId(data.getId()); + dummy.setDeployment_type(data.getDeployment_type()); + l.add(dummy); +} +} +return l;} +} \ No newline at end of file diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/ManufacturerService.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/ManufacturerService.java new file mode 100644 index 0000000..9064f6d --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/ManufacturerService.java @@ -0,0 +1,83 @@ +package com.realnet.basicp1.Services; +import com.realnet.basicp1.Repository.ManufacturerRepository; +import com.realnet.basicp1.Entity.Manufacturer +;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 ManufacturerService { +@Autowired +private ManufacturerRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + +public Manufacturer Savedata(Manufacturer data) { + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Manufacturer 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 Manufacturer getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Manufacturer update(Manufacturer data,Integer id) { + Manufacturer old = Repository.findById(id).get(); +old.setManufacturer_name(data.getManufacturer_name()); + +old.setDescription(data.getDescription()); + +final Manufacturer test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/Manufacturer_ListFilter1Service.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/Manufacturer_ListFilter1Service.java new file mode 100644 index 0000000..956752d --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/Manufacturer_ListFilter1Service.java @@ -0,0 +1,47 @@ +package com.realnet.basicp1.Services; +import java.util.*; +import com.realnet.basicp1.Repository.ManufacturerRepository; +import com.realnet.basicp1.Entity.Manufacturer; + +import com.realnet.basicp1.Entity.Manufacturer_ListFilter1; +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Service; + +@Service + public class Manufacturer_ListFilter1Service { +@Autowired +private ManufacturerRepository Repository; + + + + + public List getlistbuilder() { + List list= Repository.findAll(); + ArrayList l = new ArrayList<>(); + for (Manufacturer data : list) { +{ +Manufacturer_ListFilter1 dummy = new Manufacturer_ListFilter1(); + dummy.setId(data.getId()); + dummy.setManufacturer_name(data.getManufacturer_name()); + l.add(dummy); +} +} +return l;} + + + + public List getlistbuilderparam( ) { + List list= Repository.findAll(); + ArrayList l = new ArrayList<>(); + for (Manufacturer data : list) { +{ +Manufacturer_ListFilter1 dummy = new Manufacturer_ListFilter1(); + dummy.setId(data.getId()); + dummy.setManufacturer_name(data.getManufacturer_name()); + l.add(dummy); +} +} +return l;} +} \ No newline at end of file diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/ProductService.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/ProductService.java new file mode 100644 index 0000000..25f465a --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/ProductService.java @@ -0,0 +1,83 @@ +package com.realnet.basicp1.Services; +import com.realnet.basicp1.Repository.ProductRepository; +import com.realnet.basicp1.Entity.Product +;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 ProductService { +@Autowired +private ProductRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + +public Product Savedata(Product data) { + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Product 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 Product getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Product update(Product data,Integer id) { + Product old = Repository.findById(id).get(); +old.setProduct_name(data.getProduct_name()); + +old.setType_name(data.getType_name()); + +final Product test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/Product_ListFilter1Service.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/Product_ListFilter1Service.java new file mode 100644 index 0000000..d1a63b1 --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/Product_ListFilter1Service.java @@ -0,0 +1,53 @@ +package com.realnet.basicp1.Services; +import java.util.*; +import com.realnet.basicp1.Repository.ProductRepository; +import com.realnet.basicp1.Entity.Product; + +import com.realnet.basicp1.Entity.Product_ListFilter1; +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Service; + +@Service + public class Product_ListFilter1Service { +@Autowired +private ProductRepository Repository; + + + + + public List getlistbuilder() { + List list= Repository.findAll(); + ArrayList l = new ArrayList<>(); + for (Product data : list) { +String Type_name = data.getType_name(); + System.out.println(Type_name + "\n"); + + if ("item".equals(Type_name)){ +Product_ListFilter1 dummy = new Product_ListFilter1(); + dummy.setId(data.getId()); + dummy.setProduct_name(data.getProduct_name()); + l.add(dummy); +} +} +return l;} + + + + public List getlistbuilderparam( String item) { + List list= Repository.findAll(); + ArrayList l = new ArrayList<>(); + for (Product data : list) { +String Type_name = data.getType_name(); + System.out.println(Type_name + "\n"); + + if (item.equals(Type_name)){ +Product_ListFilter1 dummy = new Product_ListFilter1(); + dummy.setId(data.getId()); + dummy.setProduct_name(data.getProduct_name()); + l.add(dummy); +} +} +return l;} +} \ No newline at end of file diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/TypesService.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/TypesService.java new file mode 100644 index 0000000..259d311 --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/TypesService.java @@ -0,0 +1,83 @@ +package com.realnet.basicp1.Services; +import com.realnet.basicp1.Repository.TypesRepository; +import com.realnet.basicp1.Entity.Types +;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 TypesService { +@Autowired +private TypesRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + +public Types Savedata(Types data) { + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Types 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 Types getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Types update(Types data,Integer id) { + Types old = Repository.findById(id).get(); +old.setType_name(data.getType_name()); + +old.setManufacturer(data.getManufacturer()); + +final Types test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/Types_ListFilter1Service.java b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/Types_ListFilter1Service.java new file mode 100644 index 0000000..bc7a79e --- /dev/null +++ b/orderestimation013-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/Types_ListFilter1Service.java @@ -0,0 +1,53 @@ +package com.realnet.basicp1.Services; +import java.util.*; +import com.realnet.basicp1.Repository.TypesRepository; +import com.realnet.basicp1.Entity.Types; + +import com.realnet.basicp1.Entity.Types_ListFilter1; +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Service; + +@Service + public class Types_ListFilter1Service { +@Autowired +private TypesRepository Repository; + + + + + public List getlistbuilder() { + List list= Repository.findAll(); + ArrayList l = new ArrayList<>(); + for (Types data : list) { +String Manufacturer = data.getManufacturer(); + System.out.println(Manufacturer + "\n"); + + if ("item".equals(Manufacturer)){ +Types_ListFilter1 dummy = new Types_ListFilter1(); + dummy.setId(data.getId()); + dummy.setType_name(data.getType_name()); + l.add(dummy); +} +} +return l;} + + + + public List getlistbuilderparam( String item) { + List list= Repository.findAll(); + ArrayList l = new ArrayList<>(); + for (Types data : list) { +String Manufacturer = data.getManufacturer(); + System.out.println(Manufacturer + "\n"); + + if (item.equals(Manufacturer)){ +Types_ListFilter1 dummy = new Types_ListFilter1(); + dummy.setId(data.getId()); + dummy.setType_name(data.getType_name()); + l.add(dummy); +} +} +return l;} +} \ No newline at end of file diff --git a/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/login/login-page/login_environment.ts b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/login/login-page/login_environment.ts index 231b3a1..fdff417 100644 --- a/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/login/login-page/login_environment.ts +++ b/orderestimation013-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/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Customer_information/Customer_information.component.html b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Customer_information/Customer_information.component.html new file mode 100644 index 0000000..7e1e9d5 --- /dev/null +++ b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Customer_information/Customer_information.component.html @@ -0,0 +1,1140 @@ + +
+
+
+

Customer Information

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Company Name + + + + Contact Person + + + + Manufacturer + + + + Type + + + + Product + + + + Email Address + + + + Phone Number + + + + Customer Address + + + + Deployment Type + + + + + + busbar monitoring + + + + + active energy + + + + + dg monitoring - with fule + + + + + dg monitoring - without fule + + + + + ups monitoring + + + + + apfc panel monitoring + + + + + water management-stp/etp + + + + + lt panel monitoring + + + + + ht panel monitoring + + + + + compressed air -gag monitoring + + + + + compressed air - lpg/n2/o2/co2 + + + + + water management-water monitoring + + + + + + + Quantity + + + + Price + + + + + + Description + + + + + + + + Action + + + + + +{{user.company_name }} + + + + + + +{{user. manufactureridentifier}} + + +{{user.type }} + + +{{user.product }} + + +{{user.email_address }} + + +{{user.phone_number }} + + + + + +{{user. deployment_typeidentifier}} + + + + +{{user.active_energy}} + + + +{{user.dg_monitoring___with_fule}} + + + +{{user.dg_monitoring___without_fule}} + + + +{{user.ups_monitoring}} + + + +{{user.apfc_panel_monitoring}} + + + +{{user.busbar_monitoring}} + + + +{{user.lt_panel_monitoring}} + + + +{{user.ht_panel_monitoring}} + + + +{{user.water_management_stp_etp}} + + + +{{user.compressed_air__gag_monitoring}} + + + +{{user.compressed_air___lpg_n2_o2_co2}} + + + +{{user.water_management_water_monitoring}} + + + + + +{{user.quantity }} + + +{{user.price }} + + + + + + + + + + + + + + +
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/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Customer_information/Customer_information.component.scss b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Customer_information/Customer_information.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Customer_information/Customer_information.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/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Customer_information/Customer_information.component.ts b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Customer_information/Customer_information.component.ts new file mode 100644 index 0000000..c0a3dae --- /dev/null +++ b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Customer_information/Customer_information.component.ts @@ -0,0 +1,887 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Customer_informationservice} from './Customer_information.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 { Customer_informationcardvariable } from './Customer_information_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Customer_information', + templateUrl: './Customer_information.component.html', + styleUrls: ['./Customer_information.component.scss'] +}) +export class Customer_informationComponent implements OnInit { + cardButton = Customer_informationcardvariable.cardButton; + cardmodeldata = Customer_informationcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Customer_informationcardvariable.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 = 'Customer_information_formCode' +tableName = 'Customer_information'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Customer_informationservice, + private alertService: AlertService, + private toastr: ToastrService, + private _fb: FormBuilder, + ) { } + private editInterval: any; +// 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({ +company_name : [null], + +contact_person : [null], + +manufacturer : [null], + +type : [null], + + +product : [null], + + +email_address : [null], + +phone_number : [null,[Validators.required]], + +customer_address : [null], + +deployment_type : [null], + + + +dg_monitoring___with_fule:[false], + + + +active_energy:[false], + + + +dg_monitoring___without_fule:[false], + + + +ups_monitoring:[false], + + + +apfc_panel_monitoring:[false], + + + +water_management_stp_etp:[false], + + + +busbar_monitoring:[false], + + + +lt_panel_monitoring:[false], + + + +ht_panel_monitoring:[false], + + + +compressed_air__gag_monitoring:[false], + + + +compressed_air___lpg_n2_o2_co2:[false], + + + +water_management_water_monitoring:[false], + + + +quantity : [null,[Validators.required]], + +price : [null,[Validators.required]], + + + +description : [null], + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + }); // component_button200 + // form code start + this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { + console.log(data); + const jsonArray = data.map((str) => JSON.parse(str)); + this.additionalFieldsFromBackend = jsonArray; + this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Customer_information_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.getallmanufacturer(); + + + // Listen for country changes + + + this.entryForm.get('manufacturer')?.valueChanges.subscribe((item) => { + + + if (item) { + this.dependet2type(item); + } else { + this.typedependentData = []; + this.entryForm.get('type')?.setValue(null); // clear state + } + }); + + + + // Listen for country changes + + + this.entryForm.get('type')?.valueChanges.subscribe((item) => { + + + if (item) { + this.dependet2product(item); + } else { + this.productdependentData = []; + this.entryForm.get('product')?.setValue(null); // clear state + } + }); + + + + + + + + +this.getalldeployment_type(); + + + + + + + + // Subscribe to value changes for auto calculation + this.entryForm.valueChanges.subscribe(() => { + this.onInputChangetotal('add'); + }); + +// Start polling for edit changes + this.editInterval = setInterval(() => { + if (this.modalEdit) { + this.onInputChangetotal('edit'); + } + }, 200); + + + + + + + } + ngOnDestroy(): void { + if (this.editInterval) { + clearInterval(this.editInterval); + } + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; +this.product = [...this.product].reverse(); 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; + + + + + + +// Dependemt Dropdown field start +this.dependet2type(row.dependentDD); + // Dependemt Dropdown field end + +// Dependemt Dropdown field start +this.dependet2product(row.dependentDD); + // Dependemt Dropdown 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.onInputChangetotal ('edit'); + //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); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + }, (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(); + +} + + +rsModalcontact_person = false; +goToReplaceStringcontact_person(row){ +this.rowSelected = row; this.rsModalcontact_person =true; } + +selectmanufacturer ; +getallmanufacturer() { + this.mainService.getAllmanufacturer().subscribe(data=>{ +this.selectmanufacturer = data; +console.log(data); +},(error) => { console.log(error); }); } + +// Dependemt Dropdown field start + + + typedependentData: any; +dependet2type (item){ + this.mainService.gettypeDependent(item).subscribe( (data) => { + console.log(data); + this.typedependentData = data; + },(error) => { console.log(error); }); + } + + + // DependemtDropdown field end + +// Dependemt Dropdown field start + + + productdependentData: any; +dependet2product (item){ + this.mainService.getproductDependent(item).subscribe( (data) => { + console.log(data); + this.productdependentData = data; + },(error) => { console.log(error); }); + } + + + // DependemtDropdown field end + +isValidemail_address(email: string): boolean { + const emailPattern = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/; + return emailPattern.test(email); } + + + +rsModalcustomer_address = false; + goToReplaceStringcustomer_address (row){ + this.rowSelected = row; this.rsModalcustomer_address =true; } + +selectdeployment_type ; +getalldeployment_type() { + this.mainService.getAlldeployment_type().subscribe(data=>{ +this.selectdeployment_type = data; +console.log(data); +},(error) => { console.log(error); }); } + + + + + + + + + // calculated field code start + + + + totalquantity; + + + + totalprice; + + + + totaltotal; + totalcalculateOperators: 'Addition' | 'Subtraction' | 'Multiplication' | 'Division' | 'Concatination' = "Multiplication" + onInputChangetotal(mode: 'add' | 'edit') { + + + const lastObj = 0 + const lastObjstring = '' + if (mode === 'add') { + + + this.totalquantity = this.entryForm.value.quantity || ''; + + + + this.totalprice = this.entryForm.value.price || ''; + + + + } else { + + + this.totalquantity = this.rowSelected.quantity; + + + + this.totalprice = this.rowSelected.price; + + + } + + + const quantityValue = parseFloat(this.totalquantity) || 0; + + + + const priceValue = parseFloat(this.totalprice) || 0; + + + switch (this.totalcalculateOperators) { + case 'Addition': + this.totaltotal = ( + + + quantityValue + + + + + priceValue + + + + lastObj).toString(); + break; + case 'Subtraction': + this.totaltotal = ( + + + quantityValue - + + + + priceValue - + + + lastObj).toString(); + break; + case 'Multiplication': + this.totaltotal = ( + + + quantityValue * + + + + priceValue * + + + 1).toString(); + + break; + case 'Division': + + this.totaltotal = ( + + + quantityValue / + + + + priceValue / + + + 1).toString(); + + break; + case 'Concatination': + this.totaltotal = ` + + + ${this.totalquantity || ''} + + + + ${this.totalprice || ''} + + + ${lastObjstring || ''}`; + + break; + default: + this.totaltotal = ''; + } + } + + +rsModaldescription = false; + goToReplaceStringdescription (row){ + this.rowSelected = row; this.rsModaldescription =true; } + +//Value List field start +valuelistMode; +searchcusttextorder_summary :any; + valueListModalorder_summary :boolean=false; + openvalueListorder_summary(mode){ + this.valueListModalorder_summary=!this.valueListModalorder_summary ; + this.valuelistMode = mode; } + customerdataorder_summary ; +cutomererror; + clickedID:number; + +getcustorder_summaryID(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('product').setValue(data.product); + + + + this.entryForm.get('description').setValue(data.description); + + + + this.entryForm.get('price').setValue(data.price); + + + + this.entryForm.get('quantity').setValue(data.quantity); + + + + this.entryForm.get('total').setValue(data.total); + + + + }else if(this.valuelistMode == "EDIT"){ + + + + this.rowSelected.product= data. product + + + + this.rowSelected.description= data. description + + + + this.rowSelected.price= data. price + + + + this.rowSelected.quantity= data. quantity + + + + this.rowSelected.total= data. total + + + + } }); this.valueListModalorder_summary =false; + } //value List field end + +// updateaction +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Customer_information/Customer_information.service.ts b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Customer_information/Customer_information.service.ts new file mode 100644 index 0000000..2569838 --- /dev/null +++ b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Customer_information/Customer_information.service.ts @@ -0,0 +1,77 @@ +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 Customer_informationservice{ + private baseURL = "Customer_information/Customer_information" ; 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); + } + + + + +getAllmanufacturer(): Observable { +return this.apiRequest.get("Manufacturer_ListFilter1/Manufacturer_ListFilter1"); } + + + + gettypeDependent(field: string): Observable { + return this.apiRequest.get("Types_ListFilter1/Types_ListFilter11/" + field); + } + + + + + + getproductDependent(field: string): Observable { + return this.apiRequest.get("Product_ListFilter1/Product_ListFilter11/" + field); + } + + + + + + + + + +getAlldeployment_type(): Observable { +return this.apiRequest.get("Deployment_type_ListFilter1/Deployment_type_ListFilter1"); } + + + + + + + + + + + + + +// updateaction +} \ No newline at end of file diff --git a/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Customer_information/Customer_information_cardvariable.ts b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Customer_information/Customer_information_cardvariable.ts new file mode 100644 index 0000000..c036c4b --- /dev/null +++ b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Customer_information/Customer_information_cardvariable.ts @@ -0,0 +1,4 @@ +export const Customer_informationcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deployment_type/Deployment_type.component.html b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deployment_type/Deployment_type.component.html new file mode 100644 index 0000000..81e2b89 --- /dev/null +++ b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deployment_type/Deployment_type.component.html @@ -0,0 +1,315 @@ + +
+
+
+

Deployment type

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Deployment Type + + + + + + Action + + + + + +{{user.deployment_type }} + + + + + + + +
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/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deployment_type/Deployment_type.component.scss b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deployment_type/Deployment_type.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deployment_type/Deployment_type.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/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deployment_type/Deployment_type.component.ts b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deployment_type/Deployment_type.component.ts new file mode 100644 index 0000000..cca1486 --- /dev/null +++ b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deployment_type/Deployment_type.component.ts @@ -0,0 +1,225 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Deployment_typeservice} from './Deployment_type.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 { Deployment_typecardvariable } from './Deployment_type_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Deployment_type', + templateUrl: './Deployment_type.component.html', + styleUrls: ['./Deployment_type.component.scss'] +}) +export class Deployment_typeComponent implements OnInit { + cardButton = Deployment_typecardvariable.cardButton; + cardmodeldata = Deployment_typecardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Deployment_typecardvariable.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 = 'Deployment_type_formCode' +tableName = 'Deployment_type'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Deployment_typeservice, + private alertService: AlertService, + private toastr: ToastrService, + private _fb: FormBuilder, + ) { } + private editInterval: any; +// 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({ +deployment_type : [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 === "Deployment_type_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 + + + + } + ngOnDestroy(): void { + if (this.editInterval) { + clearInterval(this.editInterval); + } + } + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; +this.product = [...this.product].reverse(); 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/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deployment_type/Deployment_type.service.ts b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deployment_type/Deployment_type.service.ts new file mode 100644 index 0000000..e0d4347 --- /dev/null +++ b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deployment_type/Deployment_type.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 Deployment_typeservice{ + private baseURL = "Deployment_type/Deployment_type" ; 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/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deployment_type/Deployment_type_cardvariable.ts b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deployment_type/Deployment_type_cardvariable.ts new file mode 100644 index 0000000..a843bca --- /dev/null +++ b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deployment_type/Deployment_type_cardvariable.ts @@ -0,0 +1,4 @@ +export const Deployment_typecardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Manufacturer/Manufacturer.component.html b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Manufacturer/Manufacturer.component.html new file mode 100644 index 0000000..8938317 --- /dev/null +++ b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Manufacturer/Manufacturer.component.html @@ -0,0 +1,347 @@ + +
+
+
+

Manufacturer

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Manufacturer name + + + + Description + + + + + + Action + + + + + +{{user.manufacturer_name }} + + + + + + + + + + +
Who Column
+
Account ID: {{user.accountId}}
+
Created At: {{user.createdAt| date}}
+
Created By: {{user.createdBy}}
+
Updated At: {{user.updatedAt | date}}
+
Updated By: {{user.updatedBy}}
+
+
+
+ + + + + + + +
+ + + Users per page + {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}} + of {{pagination.totalItems}} users + + +
+ + + +
+
+
+
+
+
+ +
+
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ] }} + {{afterText(item.fieldtext)}} +
+ +
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ] | date}} + {{afterText(item.fieldtext)}} +
+
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ]}} + {{afterText(item.fieldtext)}} +
+ +
+
+
+ + +
+ +
+ +
File Preview
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Manufacturer/Manufacturer.component.scss b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Manufacturer/Manufacturer.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Manufacturer/Manufacturer.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/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Manufacturer/Manufacturer.component.ts b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Manufacturer/Manufacturer.component.ts new file mode 100644 index 0000000..7cdffee --- /dev/null +++ b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Manufacturer/Manufacturer.component.ts @@ -0,0 +1,251 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Manufacturerservice} from './Manufacturer.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 { Manufacturercardvariable } from './Manufacturer_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Manufacturer', + templateUrl: './Manufacturer.component.html', + styleUrls: ['./Manufacturer.component.scss'] +}) +export class ManufacturerComponent implements OnInit { + cardButton = Manufacturercardvariable.cardButton; + cardmodeldata = Manufacturercardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Manufacturercardvariable.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 = 'Manufacturer_formCode' +tableName = 'Manufacturer'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Manufacturerservice, + private alertService: AlertService, + private toastr: ToastrService, + private _fb: FormBuilder, + ) { } + private editInterval: any; +// 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({ +manufacturer_name : [null], + +description : [null], + + + + + + + }); // component_button200 + // form code start + this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { + console.log(data); + const jsonArray = data.map((str) => JSON.parse(str)); + this.additionalFieldsFromBackend = jsonArray; + this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Manufacturer_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 + + + + + + } + ngOnDestroy(): void { + if (this.editInterval) { + clearInterval(this.editInterval); + } + } + + + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; +this.product = [...this.product].reverse(); 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/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Manufacturer/Manufacturer.service.ts b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Manufacturer/Manufacturer.service.ts new file mode 100644 index 0000000..3464c0b --- /dev/null +++ b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Manufacturer/Manufacturer.service.ts @@ -0,0 +1,37 @@ +import { Injectable } from '@angular/core'; +import { Observable } from "rxjs"; +import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http"; +import { ApiRequestService } from "src/app/services/api/api-request.service"; +import { environment } from 'src/environments/environment'; +@Injectable({ + providedIn: 'root' +}) +export class Manufacturerservice{ + private baseURL = "Manufacturer/Manufacturer" ; 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/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Manufacturer/Manufacturer_cardvariable.ts b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Manufacturer/Manufacturer_cardvariable.ts new file mode 100644 index 0000000..d57ae46 --- /dev/null +++ b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Manufacturer/Manufacturer_cardvariable.ts @@ -0,0 +1,4 @@ +export const Manufacturercardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Product/Product.component.html b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Product/Product.component.html new file mode 100644 index 0000000..7266ed0 --- /dev/null +++ b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Product/Product.component.html @@ -0,0 +1,344 @@ + +
+
+
+

Product

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Product Name + + + + Type name + + + + + + Action + + + + + +{{user.product_name }} + + +{{user.type_name }} + + + + + + + +
Who Column
+
Account ID: {{user.accountId}}
+
Created At: {{user.createdAt| date}}
+
Created By: {{user.createdBy}}
+
Updated At: {{user.updatedAt | date}}
+
Updated By: {{user.updatedBy}}
+
+
+
+ + + + + + + +
+ + + Users per page + {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}} + of {{pagination.totalItems}} users + + +
+ + + +
+
+
+
+
+
+ +
+
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ] }} + {{afterText(item.fieldtext)}} +
+ +
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ] | date}} + {{afterText(item.fieldtext)}} +
+
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ]}} + {{afterText(item.fieldtext)}} +
+ +
+
+
+ + +
+ +
+ +
File Preview
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + diff --git a/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Product/Product.component.scss b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Product/Product.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Product/Product.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/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Product/Product.component.ts b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Product/Product.component.ts new file mode 100644 index 0000000..97e71c7 --- /dev/null +++ b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Product/Product.component.ts @@ -0,0 +1,249 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Productservice} from './Product.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 { Productcardvariable } from './Product_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Product', + templateUrl: './Product.component.html', + styleUrls: ['./Product.component.scss'] +}) +export class ProductComponent implements OnInit { + cardButton = Productcardvariable.cardButton; + cardmodeldata = Productcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Productcardvariable.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 = 'Product_formCode' +tableName = 'Product'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Productservice, + private alertService: AlertService, + private toastr: ToastrService, + private _fb: FormBuilder, + ) { } + private editInterval: any; +// 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({ +product_name : [null], + +type_name : [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 === "Product_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 + + + + + + } + ngOnDestroy(): void { + if (this.editInterval) { + clearInterval(this.editInterval); + } + } + + + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; +this.product = [...this.product].reverse(); 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/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Product/Product.service.ts b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Product/Product.service.ts new file mode 100644 index 0000000..2408363 --- /dev/null +++ b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Product/Product.service.ts @@ -0,0 +1,37 @@ +import { Injectable } from '@angular/core'; +import { Observable } from "rxjs"; +import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http"; +import { ApiRequestService } from "src/app/services/api/api-request.service"; +import { environment } from 'src/environments/environment'; +@Injectable({ + providedIn: 'root' +}) +export class Productservice{ + private baseURL = "Product/Product" ; 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/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Product/Product_cardvariable.ts b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Product/Product_cardvariable.ts new file mode 100644 index 0000000..d01e2f1 --- /dev/null +++ b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Product/Product_cardvariable.ts @@ -0,0 +1,4 @@ +export const Productcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Types/Types.component.html b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Types/Types.component.html new file mode 100644 index 0000000..97ccc19 --- /dev/null +++ b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Types/Types.component.html @@ -0,0 +1,344 @@ + +
+
+
+

Types

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Type Name + + + + Manufacturer + + + + + + Action + + + + + +{{user.type_name }} + + +{{user.manufacturer }} + + + + + + + +
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/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Types/Types.component.scss b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Types/Types.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Types/Types.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/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Types/Types.component.ts b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Types/Types.component.ts new file mode 100644 index 0000000..167465c --- /dev/null +++ b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Types/Types.component.ts @@ -0,0 +1,249 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Typesservice} from './Types.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 { Typescardvariable } from './Types_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Types', + templateUrl: './Types.component.html', + styleUrls: ['./Types.component.scss'] +}) +export class TypesComponent implements OnInit { + cardButton = Typescardvariable.cardButton; + cardmodeldata = Typescardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Typescardvariable.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 = 'Types_formCode' +tableName = 'Types'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Typesservice, + private alertService: AlertService, + private toastr: ToastrService, + private _fb: FormBuilder, + ) { } + private editInterval: any; +// 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({ +type_name : [null], + +manufacturer : [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 === "Types_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 + + + + + + } + ngOnDestroy(): void { + if (this.editInterval) { + clearInterval(this.editInterval); + } + } + + + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; +this.product = [...this.product].reverse(); 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/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Types/Types.service.ts b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Types/Types.service.ts new file mode 100644 index 0000000..8f1c9d6 --- /dev/null +++ b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Types/Types.service.ts @@ -0,0 +1,37 @@ +import { Injectable } from '@angular/core'; +import { Observable } from "rxjs"; +import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http"; +import { ApiRequestService } from "src/app/services/api/api-request.service"; +import { environment } from 'src/environments/environment'; +@Injectable({ + providedIn: 'root' +}) +export class Typesservice{ + private baseURL = "Types/Types" ; 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/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Types/Types_cardvariable.ts b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Types/Types_cardvariable.ts new file mode 100644 index 0000000..057f1f8 --- /dev/null +++ b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Types/Types_cardvariable.ts @@ -0,0 +1,4 @@ +export const Typescardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main-routing.module.ts b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main-routing.module.ts index 7377c69..f96c6f4 100644 --- a/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main-routing.module.ts +++ b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main-routing.module.ts @@ -1,3 +1,8 @@ +import { TypesComponent } from './BuilderComponents/basicp1/Types/Types.component'; +import { ProductComponent } from './BuilderComponents/basicp1/Product/Product.component'; +import { ManufacturerComponent } from './BuilderComponents/basicp1/Manufacturer/Manufacturer.component'; +import { Deployment_typeComponent } from './BuilderComponents/basicp1/Deployment_type/Deployment_type.component'; +import { Customer_informationComponent } from './BuilderComponents/basicp1/Customer_information/Customer_information.component'; import { SequencegenaratorComponent } from './fnd/sequencegenarator/sequencegenarator.component'; import { Component, NgModule } from '@angular/core'; @@ -256,6 +261,21 @@ const routes: Routes = [ // buildercomponents +{path:'Types',component:TypesComponent}, + + +{path:'Product',component:ProductComponent}, + + +{path:'Manufacturer',component:ManufacturerComponent}, + + +{path:'Deployment_type',component:Deployment_typeComponent}, + + +{path:'Customer_information',component:Customer_informationComponent}, + + diff --git a/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main.module.ts b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main.module.ts index ecbab3d..5025c00 100644 --- a/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main.module.ts +++ b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main.module.ts @@ -1,3 +1,8 @@ +import { TypesComponent } from './BuilderComponents/basicp1/Types/Types.component'; +import { ProductComponent } from './BuilderComponents/basicp1/Product/Product.component'; +import { ManufacturerComponent } from './BuilderComponents/basicp1/Manufacturer/Manufacturer.component'; +import { Deployment_typeComponent } from './BuilderComponents/basicp1/Deployment_type/Deployment_type.component'; +import { Customer_informationComponent } from './BuilderComponents/basicp1/Customer_information/Customer_information.component'; import { CommonModule } from '@angular/common'; @@ -129,6 +134,21 @@ import { Stepper_workflowComponent } from './BuilderComponents/stepperworkflow/S // buildercomponents +TypesComponent, + + +ProductComponent, + + +ManufacturerComponent, + + +Deployment_typeComponent, + + +Customer_informationComponent, + + diff --git a/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/assets/i18n/en.json b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/assets/i18n/en.json index ee15955..6b2f183 100644 --- a/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/assets/i18n/en.json +++ b/orderestimation013-front-f/authsec_angular/frontend/angular-clarity-master/src/assets/i18n/en.json @@ -226,10 +226,37 @@ "MENU_ACTION_LINK": "Menu Action Link", "STATUS": "Status", "SUB_MENU": "Sub Menu", - "Active": "Active", + "Types": "Types", + "LT_Panel_Monitoring": "LT_Panel_Monitoring", "Description": "Description", - "Fileupload_Field": "Fileupload_Field", - "Test22": "Test22", - "Test11": "Test11", - "Name": "Name" + "Contact_Person": "Contact_Person", + "Product": "Product", + "Phone_Number": "Phone_Number", + "Compressed_Air_-_LPG/N2/O2/CO2": "Compressed_Air_-_LPG/N2/O2/CO2", + "Manufacturer_name": "Manufacturer_name", + "total": "total", + "Water_Management-STP/ETP": "Water_Management-STP/ETP", + "Order_Summary": "Order_Summary", + "Manufacturer": "Manufacturer", + "Deployment_Type": "Deployment_Type", + "Compressed_Air_-Gag_Monitoring": "Compressed_Air_-Gag_Monitoring", + "APFC_Panel_Monitoring": "APFC_Panel_Monitoring", + "Active_Energy": "Active_Energy", + "Type_Name": "Type_Name", + "HT_Panel_Monitoring": "HT_Panel_Monitoring", + "Email_Address": "Email_Address", + "Customer_information": "Customer_information", + "DG_Monitoring_-_with_fule": "DG_Monitoring_-_with_fule", + "Quantity": "Quantity", + "Product_Name": "Product_Name", + "UPS_Monitoring": "UPS_Monitoring", + "Deployment_type": "Deployment_type", + "Water_Management-water_Monitoring": "Water_Management-water_Monitoring", + "Type": "Type", + "Type_name": "Type_name", + "DG_Monitoring_-_without_fule": "DG_Monitoring_-_without_fule", + "Price": "Price", + "Busbar_Monitoring": "Busbar_Monitoring", + "Company_Name": "Company_Name", + "Customer_Address": "Customer_Address" } \ No newline at end of file diff --git a/orderestimation013-orderestimationdb-d/authsec_mysql/mysql/wf_table/wf_table.sql b/orderestimation013-orderestimationdb-d/authsec_mysql/mysql/wf_table/wf_table.sql new file mode 100755 index 0000000..4225fbf --- /dev/null +++ b/orderestimation013-orderestimationdb-d/authsec_mysql/mysql/wf_table/wf_table.sql @@ -0,0 +1,10 @@ +CREATE TABLE orderestimationdb.Customer_information(id BIGINT NOT NULL AUTO_INCREMENT, lt_panel_monitoring bit(1), description VARCHAR(400), contact_person VARCHAR(400), product VARCHAR(400), phone_number int, compressed_air_-_lpg/n2/o2/co2 bit(1), total VARCHAR(400), water_management-stp/etp bit(1), order_summary VARCHAR(400), manufacturer int, deployment_type int, compressed_air_-gag_monitoring bit(1), apfc_panel_monitoring bit(1), active_energy bit(1), ht_panel_monitoring bit(1), email_address VARCHAR(400), dg_monitoring_-_with_fule bit(1), quantity int, ups_monitoring bit(1), water_management-water_monitoring bit(1), type VARCHAR(400), dg_monitoring_-_without_fule bit(1), price int, busbar_monitoring bit(1), company_name VARCHAR(400), customer_address VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE orderestimationdb.Deployment_type(id BIGINT NOT NULL AUTO_INCREMENT, deployment_type VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE orderestimationdb.Manufacturer(id BIGINT NOT NULL AUTO_INCREMENT, description VARCHAR(400), manufacturer_name VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE orderestimationdb.Product(id BIGINT NOT NULL AUTO_INCREMENT, type_name VARCHAR(400), product_name VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE orderestimationdb.Types(id BIGINT NOT NULL AUTO_INCREMENT, type_name VARCHAR(400), manufacturer VARCHAR(400), PRIMARY KEY (id)); +