From 11a787e7d09880741df6d5aa27e17f49bd15834a Mon Sep 17 00:00:00 2001 From: risadmin_prod Date: Thu, 12 Jun 2025 16:41:44 +0000 Subject: [PATCH] build_app --- .../Builders/Services/BuilderService.java | 24 + .../Customer_informationController.java | 146 +++ ...Customer_informationInsertController1.java | 21 + .../Controllers/Generate_quoteController.java | 107 +++ .../Controllers/ManufacturerController.java | 83 ++ .../Manufacturer_ListFilter1Controller.java | 24 + .../Notes_and_termsController.java | 91 ++ .../Controllers/Order_summaryController.java | 139 +++ .../Product_selectionController.java | 138 +++ .../Product_selectionInsertController1.java | 21 + .../Controllers/ProductssController.java | 83 ++ .../Productss_ListFilter1Controller.java | 24 + .../Controllers/TypeController.java | 83 ++ .../Type_ListFilter1Controller.java | 24 + ...enFree_Customer_informationController.java | 146 +++ .../tokenFree_Generate_quoteController.java | 107 +++ .../tokenFree_ManufacturerController.java | 83 ++ ...ee_Manufacturer_ListFilter1Controller.java | 24 + .../tokenFree_Notes_and_termsController.java | 91 ++ .../tokenFree_Order_summaryController.java | 139 +++ ...tokenFree_Product_selectionController.java | 138 +++ .../tokenFree_ProductssController.java | 83 ++ ...nFree_Productss_ListFilter1Controller.java | 24 + .../Controllers/tokenFree_TypeController.java | 83 ++ .../tokenFree_Type_ListFilter1Controller.java | 24 + .../Entity/Customer_information.java | 103 ++ .../Entity/Generate_quote.java | 36 + .../order_estimation/Entity/Manufacturer.java | 24 + .../Entity/Manufacturer_ListFilter1.java | 14 + .../Entity/Notes_and_terms.java | 30 + .../Entity/Order_summary.java | 54 ++ .../Entity/Product_selection.java | 51 + .../order_estimation/Entity/Productss.java | 24 + .../Entity/Productss_ListFilter1.java | 14 + .../realnet/order_estimation/Entity/Type.java | 24 + .../Entity/Type_ListFilter1.java | 14 + .../Customer_informationRepository.java | 40 + .../Repository/Generate_quoteRepository.java | 32 + .../Repository/ManufacturerRepository.java | 26 + .../Repository/Notes_and_termsRepository.java | 28 + .../Repository/Order_summaryRepository.java | 40 + .../Product_selectionRepository.java | 38 + .../Repository/ProductssRepository.java | 26 + .../Repository/TypeRepository.java | 26 + .../Customer_informationInsertService1.java | 39 + .../Services/Customer_informationService.java | 211 +++++ .../Services/Generate_quoteService.java | 103 ++ .../Services/ManufacturerService.java | 73 ++ .../Manufacturer_ListFilter1Service.java | 47 + .../Services/Notes_and_termsService.java | 83 ++ .../Services/Order_summaryService.java | 143 +++ .../Product_selectionInsertService1.java | 31 + .../Services/Product_selectionService.java | 190 ++++ .../Services/ProductssService.java | 73 ++ .../Productss_ListFilter1Service.java | 47 + .../Services/TypeService.java | 73 ++ .../Services/Type_ListFilter1Service.java | 47 + .../authsec_mysql/mysql/wf_table/wf_table.sql | 16 + .../login/login-page/login_environment.ts | 18 +- .../Customer_information.component.html | 880 ++++++++++++++++++ .../Customer_information.component.scss | 78 ++ .../Customer_information.component.ts | 501 ++++++++++ .../Customer_information.service.ts | 54 ++ .../Customer_information_cardvariable.ts | 4 + .../Generate_quote.component.html | 402 ++++++++ .../Generate_quote.component.scss | 78 ++ .../Generate_quote.component.ts | 292 ++++++ .../Generate_quote/Generate_quote.service.ts | 41 + .../Generate_quote_cardvariable.ts | 4 + .../Manufacturer/Manufacturer.component.html | 315 +++++++ .../Manufacturer/Manufacturer.component.scss | 78 ++ .../Manufacturer/Manufacturer.component.ts | 220 +++++ .../Manufacturer/Manufacturer.service.ts | 35 + .../Manufacturer/Manufacturer_cardvariable.ts | 4 + .../Notes_and_terms.component.html | 347 +++++++ .../Notes_and_terms.component.scss | 78 ++ .../Notes_and_terms.component.ts | 246 +++++ .../Notes_and_terms.service.ts | 37 + .../Notes_and_terms_cardvariable.ts | 4 + .../Order_summary.component.html | 613 ++++++++++++ .../Order_summary.component.scss | 78 ++ .../Order_summary/Order_summary.component.ts | 540 +++++++++++ .../Order_summary/Order_summary.service.ts | 49 + .../Order_summary_cardvariable.ts | 4 + .../Product_selection.component.html | 571 ++++++++++++ .../Product_selection.component.scss | 78 ++ .../Product_selection.component.ts | 442 +++++++++ .../Product_selection.service.ts | 55 ++ .../Product_selection_cardvariable.ts | 4 + .../Productss/Productss.component.html | 315 +++++++ .../Productss/Productss.component.scss | 78 ++ .../Productss/Productss.component.ts | 220 +++++ .../Productss/Productss.service.ts | 35 + .../Productss/Productss_cardvariable.ts | 4 + .../order_estimation/Type/Type.component.html | 315 +++++++ .../order_estimation/Type/Type.component.scss | 78 ++ .../order_estimation/Type/Type.component.ts | 220 +++++ .../order_estimation/Type/Type.service.ts | 35 + .../Type/Type_cardvariable.ts | 4 + .../app/modules/main/main-routing.module.ts | 32 + .../src/app/modules/main/main.module.ts | 32 + .../src/assets/i18n/en.json | 181 ++-- 102 files changed, 11395 insertions(+), 74 deletions(-) create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Customer_informationController.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Customer_informationInsertController1.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Generate_quoteController.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/ManufacturerController.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Manufacturer_ListFilter1Controller.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Notes_and_termsController.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Order_summaryController.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Product_selectionController.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Product_selectionInsertController1.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/ProductssController.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Productss_ListFilter1Controller.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/TypeController.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Type_ListFilter1Controller.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Customer_informationController.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Generate_quoteController.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_ManufacturerController.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Manufacturer_ListFilter1Controller.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Notes_and_termsController.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Order_summaryController.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Product_selectionController.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_ProductssController.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Productss_ListFilter1Controller.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_TypeController.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Type_ListFilter1Controller.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Customer_information.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Generate_quote.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Manufacturer.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Manufacturer_ListFilter1.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Notes_and_terms.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Order_summary.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Product_selection.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Productss.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Productss_ListFilter1.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Type.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Type_ListFilter1.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/Customer_informationRepository.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/Generate_quoteRepository.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/ManufacturerRepository.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/Notes_and_termsRepository.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/Order_summaryRepository.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/Product_selectionRepository.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/ProductssRepository.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/TypeRepository.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Customer_informationInsertService1.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Customer_informationService.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Generate_quoteService.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/ManufacturerService.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Manufacturer_ListFilter1Service.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Notes_and_termsService.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Order_summaryService.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Product_selectionInsertService1.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Product_selectionService.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/ProductssService.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Productss_ListFilter1Service.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/TypeService.java create mode 100644 orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Type_ListFilter1Service.java create mode 100755 orderestimate5-orderestimationdb-d/authsec_mysql/mysql/wf_table/wf_table.sql create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Customer_information/Customer_information.component.html create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Customer_information/Customer_information.component.scss create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Customer_information/Customer_information.component.ts create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Customer_information/Customer_information.service.ts create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Customer_information/Customer_information_cardvariable.ts create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Generate_quote/Generate_quote.component.html create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Generate_quote/Generate_quote.component.scss create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Generate_quote/Generate_quote.component.ts create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Generate_quote/Generate_quote.service.ts create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Generate_quote/Generate_quote_cardvariable.ts create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Manufacturer/Manufacturer.component.html create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Manufacturer/Manufacturer.component.scss create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Manufacturer/Manufacturer.component.ts create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Manufacturer/Manufacturer.service.ts create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Manufacturer/Manufacturer_cardvariable.ts create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Notes_and_terms/Notes_and_terms.component.html create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Notes_and_terms/Notes_and_terms.component.scss create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Notes_and_terms/Notes_and_terms.component.ts create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Notes_and_terms/Notes_and_terms.service.ts create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Notes_and_terms/Notes_and_terms_cardvariable.ts create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Order_summary/Order_summary.component.html create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Order_summary/Order_summary.component.scss create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Order_summary/Order_summary.component.ts create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Order_summary/Order_summary.service.ts create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Order_summary/Order_summary_cardvariable.ts create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Product_selection/Product_selection.component.html create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Product_selection/Product_selection.component.scss create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Product_selection/Product_selection.component.ts create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Product_selection/Product_selection.service.ts create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Product_selection/Product_selection_cardvariable.ts create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Productss/Productss.component.html create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Productss/Productss.component.scss create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Productss/Productss.component.ts create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Productss/Productss.service.ts create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Productss/Productss_cardvariable.ts create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Type/Type.component.html create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Type/Type.component.scss create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Type/Type.component.ts create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Type/Type.service.ts create mode 100644 orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Type/Type_cardvariable.ts diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/Builders/Services/BuilderService.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/Builders/Services/BuilderService.java index f9801fb..29e15c1 100644 --- a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/Builders/Services/BuilderService.java +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/Builders/Services/BuilderService.java @@ -69,6 +69,30 @@ public class BuilderService { executeDump(true); // ADD OTHER SERVICE +addCustomMenu( "Generate_quote","Generate_quote", "Transcations"); + + +addCustomMenu( "Notes_and_terms","Notes_and_terms", "Transcations"); + + +addCustomMenu( "Order_summary","Order_summary", "Transcations"); + + +addCustomMenu( "Manufacturer","Manufacturer", "Transcations"); + + +addCustomMenu( "Productss","Productss", "Transcations"); + + +addCustomMenu( "Type","Type", "Transcations"); + + +addCustomMenu( "Product_selection","Product_selection", "Transcations"); + + +addCustomMenu( "Customer_information","Customer_information", "Transcations"); + + System.out.println("dashboard and menu inserted..."); diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Customer_informationController.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Customer_informationController.java new file mode 100644 index 0000000..407e96b --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Customer_informationController.java @@ -0,0 +1,146 @@ +package com.realnet.order_estimation.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.order_estimation.Entity.Customer_information; +import com.realnet.order_estimation.Services.Customer_informationService ; + + + + + + + + + + + + + + +import com.realnet.order_estimation.Entity.Customer_information; + + +@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); + + } + + + + + + + + + + + + + + + + + + @PostMapping("/Customer_information/Customer_information_insert") + public Customer_information insertCustomer_information(@RequestBody Customer_information data) { + Customer_information insertaction = Service.insertCustomer_information(data); + return insertaction; + } + +} \ No newline at end of file diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Customer_informationInsertController1.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Customer_informationInsertController1.java new file mode 100644 index 0000000..111d161 --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Customer_informationInsertController1.java @@ -0,0 +1,21 @@ +package com.realnet.order_estimation.Controllers; +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.web.bind.annotation.*; +import org.springframework.http.*; +import com.realnet.order_estimation.Entity.Customer_information; +import com.realnet.order_estimation.Services.Customer_informationInsertService1; +@RequestMapping(value = "/Customer_information") +@RestController +public class Customer_informationInsertController1{ + + @Autowired + private Customer_informationInsertService1 Service; + +@PostMapping("/Customer_information_insert") + public ResponseEntity insert(@RequestBody Customer_information customer_information) { + Customer_information insertaction = Service.insertaction(customer_information); + return new ResponseEntity<>(insertaction, HttpStatus.OK); + } + +} \ No newline at end of file diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Generate_quoteController.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Generate_quoteController.java new file mode 100644 index 0000000..60e2d5a --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Generate_quoteController.java @@ -0,0 +1,107 @@ +package com.realnet.order_estimation.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.order_estimation.Entity.Generate_quote; +import com.realnet.order_estimation.Services.Generate_quoteService ; + + + + + + + + +@RequestMapping(value = "/Generate_quote") + @CrossOrigin("*") +@RestController +public class Generate_quoteController { + @Autowired + private Generate_quoteService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + @PostMapping("/Generate_quote") + public Generate_quote Savedata(@RequestBody Generate_quote data) { + Generate_quote save = Service.Savedata(data) ; + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Generate_quote/{id}") + public Generate_quote update(@RequestBody Generate_quote data,@PathVariable Integer id ) { + Generate_quote update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Generate_quote/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("/Generate_quote") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Generate_quote") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Generate_quote/{id}") + public Generate_quote getdetailsbyId(@PathVariable Integer id ) { + Generate_quote get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Generate_quote/{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/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/ManufacturerController.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/ManufacturerController.java new file mode 100644 index 0000000..bc50371 --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/ManufacturerController.java @@ -0,0 +1,83 @@ +package com.realnet.order_estimation.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.order_estimation.Entity.Manufacturer; +import com.realnet.order_estimation.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/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Manufacturer_ListFilter1Controller.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Manufacturer_ListFilter1Controller.java new file mode 100644 index 0000000..bfc4e3b --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Manufacturer_ListFilter1Controller.java @@ -0,0 +1,24 @@ +package com.realnet.order_estimation.Controllers; +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.web.bind.annotation.*; +import com.realnet.order_estimation.Entity.Manufacturer_ListFilter1; +import com.realnet.order_estimation.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/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Notes_and_termsController.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Notes_and_termsController.java new file mode 100644 index 0000000..25fae07 --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Notes_and_termsController.java @@ -0,0 +1,91 @@ +package com.realnet.order_estimation.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.order_estimation.Entity.Notes_and_terms; +import com.realnet.order_estimation.Services.Notes_and_termsService ; + + + + +@RequestMapping(value = "/Notes_and_terms") + @CrossOrigin("*") +@RestController +public class Notes_and_termsController { + @Autowired + private Notes_and_termsService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + @PostMapping("/Notes_and_terms") + public Notes_and_terms Savedata(@RequestBody Notes_and_terms data) { + Notes_and_terms save = Service.Savedata(data) ; + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Notes_and_terms/{id}") + public Notes_and_terms update(@RequestBody Notes_and_terms data,@PathVariable Integer id ) { + Notes_and_terms update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Notes_and_terms/getall/page") + public Page getall(@RequestParam(value = "page", required = false) Integer page, + @RequestParam(value = "size", required = false) Integer size) { + Pageable paging = PageRequest.of(page, size); + Page get = Service.getAllWithPagination(paging); + + return get; + + } + @GetMapping("/Notes_and_terms") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Notes_and_terms") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Notes_and_terms/{id}") + public Notes_and_terms getdetailsbyId(@PathVariable Integer id ) { + Notes_and_terms get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Notes_and_terms/{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/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Order_summaryController.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Order_summaryController.java new file mode 100644 index 0000000..7c8397b --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Order_summaryController.java @@ -0,0 +1,139 @@ +package com.realnet.order_estimation.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.order_estimation.Entity.Order_summary; +import com.realnet.order_estimation.Services.Order_summaryService ; + + + + + + + + + + + + + + + + +@RequestMapping(value = "/Order_summary") + @CrossOrigin("*") +@RestController +public class Order_summaryController { + @Autowired + private Order_summaryService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + + + @PostMapping("/Order_summary") + public Order_summary Savedata(@RequestBody Order_summary data) { + Order_summary save = Service.Savedata(data) ; + + + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Order_summary/{id}") + public Order_summary update(@RequestBody Order_summary data,@PathVariable Integer id ) { + Order_summary update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Order_summary/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("/Order_summary") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Order_summary") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Order_summary/{id}") + public Order_summary getdetailsbyId(@PathVariable Integer id ) { + Order_summary get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Order_summary/{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/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Product_selectionController.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Product_selectionController.java new file mode 100644 index 0000000..a58e2ad --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Product_selectionController.java @@ -0,0 +1,138 @@ +package com.realnet.order_estimation.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.order_estimation.Entity.Product_selection; +import com.realnet.order_estimation.Services.Product_selectionService ; + + + + + + + + + + + + +import com.realnet.order_estimation.Entity.Product_selection; + + +@RequestMapping(value = "/Product_selection") + @CrossOrigin("*") +@RestController +public class Product_selectionController { + @Autowired + private Product_selectionService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + @PostMapping("/Product_selection") + public Product_selection Savedata(@RequestBody Product_selection data) { + Product_selection save = Service.Savedata(data) ; + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Product_selection/{id}") + public Product_selection update(@RequestBody Product_selection data,@PathVariable Integer id ) { + Product_selection update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Product_selection/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_selection") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Product_selection") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Product_selection/{id}") + public Product_selection getdetailsbyId(@PathVariable Integer id ) { + Product_selection get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Product_selection/{id}") + public ResponseEntity delete_by_id(@PathVariable Integer id ) { + Service.delete_by_id(id); + return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK); + + } + + + + + + + + + + + + + + + + @PostMapping("/Product_selection/Product_selection_insert") + public Product_selection insertProduct_selection(@RequestBody Product_selection data) { + Product_selection insertaction = Service.insertProduct_selection(data); + return insertaction; + } + +} \ No newline at end of file diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Product_selectionInsertController1.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Product_selectionInsertController1.java new file mode 100644 index 0000000..c47144d --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Product_selectionInsertController1.java @@ -0,0 +1,21 @@ +package com.realnet.order_estimation.Controllers; +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.web.bind.annotation.*; +import org.springframework.http.*; +import com.realnet.order_estimation.Entity.Product_selection; +import com.realnet.order_estimation.Services.Product_selectionInsertService1; +@RequestMapping(value = "/Product_selection") +@RestController +public class Product_selectionInsertController1{ + + @Autowired + private Product_selectionInsertService1 Service; + +@PostMapping("/Product_selection_insert") + public ResponseEntity insert(@RequestBody Product_selection product_selection) { + Product_selection insertaction = Service.insertaction(product_selection); + return new ResponseEntity<>(insertaction, HttpStatus.OK); + } + +} \ No newline at end of file diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/ProductssController.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/ProductssController.java new file mode 100644 index 0000000..e310042 --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/ProductssController.java @@ -0,0 +1,83 @@ +package com.realnet.order_estimation.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.order_estimation.Entity.Productss; +import com.realnet.order_estimation.Services.ProductssService ; + + +@RequestMapping(value = "/Productss") + @CrossOrigin("*") +@RestController +public class ProductssController { + @Autowired + private ProductssService Service; + +@Value("${projectPath}") + private String projectPath; + + + + @PostMapping("/Productss") + public Productss Savedata(@RequestBody Productss data) { + Productss save = Service.Savedata(data) ; + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Productss/{id}") + public Productss update(@RequestBody Productss data,@PathVariable Integer id ) { + Productss update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Productss/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("/Productss") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Productss") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Productss/{id}") + public Productss getdetailsbyId(@PathVariable Integer id ) { + Productss get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Productss/{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/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Productss_ListFilter1Controller.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Productss_ListFilter1Controller.java new file mode 100644 index 0000000..f08e790 --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Productss_ListFilter1Controller.java @@ -0,0 +1,24 @@ +package com.realnet.order_estimation.Controllers; +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.web.bind.annotation.*; +import com.realnet.order_estimation.Entity.Productss_ListFilter1; +import com.realnet.order_estimation.Services.Productss_ListFilter1Service ; +@RequestMapping(value = "/Productss_ListFilter1") +@RestController +public class Productss_ListFilter1Controller { + + @Autowired + private Productss_ListFilter1Service Service; + + @GetMapping("/Productss_ListFilter1") + public List getlist() { + List get = Service.getlistbuilder(); + return get; +} + @GetMapping("/Productss_ListFilter11") + public List getlistwithparam( ) { + List get = Service.getlistbuilderparam( ); + return get; +} +} \ No newline at end of file diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/TypeController.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/TypeController.java new file mode 100644 index 0000000..d8627c0 --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/TypeController.java @@ -0,0 +1,83 @@ +package com.realnet.order_estimation.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.order_estimation.Entity.Type; +import com.realnet.order_estimation.Services.TypeService ; + + +@RequestMapping(value = "/Type") + @CrossOrigin("*") +@RestController +public class TypeController { + @Autowired + private TypeService Service; + +@Value("${projectPath}") + private String projectPath; + + + + @PostMapping("/Type") + public Type Savedata(@RequestBody Type data) { + Type save = Service.Savedata(data) ; + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Type/{id}") + public Type update(@RequestBody Type data,@PathVariable Integer id ) { + Type update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/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("/Type") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Type") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Type/{id}") + public Type getdetailsbyId(@PathVariable Integer id ) { + Type get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/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/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Type_ListFilter1Controller.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Type_ListFilter1Controller.java new file mode 100644 index 0000000..df1dc4d --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/Type_ListFilter1Controller.java @@ -0,0 +1,24 @@ +package com.realnet.order_estimation.Controllers; +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.web.bind.annotation.*; +import com.realnet.order_estimation.Entity.Type_ListFilter1; +import com.realnet.order_estimation.Services.Type_ListFilter1Service ; +@RequestMapping(value = "/Type_ListFilter1") +@RestController +public class Type_ListFilter1Controller { + + @Autowired + private Type_ListFilter1Service Service; + + @GetMapping("/Type_ListFilter1") + public List getlist() { + List get = Service.getlistbuilder(); + return get; +} + @GetMapping("/Type_ListFilter11") + public List getlistwithparam( ) { + List get = Service.getlistbuilderparam( ); + return get; +} +} \ No newline at end of file diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Customer_informationController.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Customer_informationController.java new file mode 100644 index 0000000..588324a --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Customer_informationController.java @@ -0,0 +1,146 @@ +package com.realnet.order_estimation.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.order_estimation.Entity.Customer_information; +import com.realnet.order_estimation.Services.Customer_informationService ; + + + + + + + + + + + + + + +import com.realnet.order_estimation.Entity.Customer_information; + + +@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); + + } + + + + + + + + + + + + + + + + + + @PostMapping("/Customer_information/Customer_information_insert") + public Customer_information insertCustomer_information(@RequestBody Customer_information data) { + Customer_information insertaction = Service.insertCustomer_information(data); + return insertaction; + } + +} \ No newline at end of file diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Generate_quoteController.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Generate_quoteController.java new file mode 100644 index 0000000..1c2a9ab --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Generate_quoteController.java @@ -0,0 +1,107 @@ +package com.realnet.order_estimation.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.order_estimation.Entity.Generate_quote; +import com.realnet.order_estimation.Services.Generate_quoteService ; + + + + + + + + +@RequestMapping(value = "/token/Generate_quote") + @CrossOrigin("*") +@RestController +public class tokenFree_Generate_quoteController { + @Autowired + private Generate_quoteService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + @PostMapping("/Generate_quote") + public Generate_quote Savedata(@RequestBody Generate_quote data) { + Generate_quote save = Service.Savedata(data) ; + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Generate_quote/{id}") + public Generate_quote update(@RequestBody Generate_quote data,@PathVariable Integer id ) { + Generate_quote update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Generate_quote/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("/Generate_quote") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Generate_quote") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Generate_quote/{id}") + public Generate_quote getdetailsbyId(@PathVariable Integer id ) { + Generate_quote get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Generate_quote/{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/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_ManufacturerController.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_ManufacturerController.java new file mode 100644 index 0000000..fcff3eb --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_ManufacturerController.java @@ -0,0 +1,83 @@ +package com.realnet.order_estimation.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.order_estimation.Entity.Manufacturer; +import com.realnet.order_estimation.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/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Manufacturer_ListFilter1Controller.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Manufacturer_ListFilter1Controller.java new file mode 100644 index 0000000..31f979b --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Manufacturer_ListFilter1Controller.java @@ -0,0 +1,24 @@ +package com.realnet.order_estimation.Controllers; +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.web.bind.annotation.*; +import com.realnet.order_estimation.Entity.Manufacturer_ListFilter1; +import com.realnet.order_estimation.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/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Notes_and_termsController.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Notes_and_termsController.java new file mode 100644 index 0000000..2c711bb --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Notes_and_termsController.java @@ -0,0 +1,91 @@ +package com.realnet.order_estimation.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.order_estimation.Entity.Notes_and_terms; +import com.realnet.order_estimation.Services.Notes_and_termsService ; + + + + +@RequestMapping(value = "/token/Notes_and_terms") + @CrossOrigin("*") +@RestController +public class tokenFree_Notes_and_termsController { + @Autowired + private Notes_and_termsService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + @PostMapping("/Notes_and_terms") + public Notes_and_terms Savedata(@RequestBody Notes_and_terms data) { + Notes_and_terms save = Service.Savedata(data) ; + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Notes_and_terms/{id}") + public Notes_and_terms update(@RequestBody Notes_and_terms data,@PathVariable Integer id ) { + Notes_and_terms update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Notes_and_terms/getall/page") + public Page getall(@RequestParam(value = "page", required = false) Integer page, + @RequestParam(value = "size", required = false) Integer size) { + Pageable paging = PageRequest.of(page, size); + Page get = Service.getAllWithPagination(paging); + + return get; + + } + @GetMapping("/Notes_and_terms") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Notes_and_terms") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Notes_and_terms/{id}") + public Notes_and_terms getdetailsbyId(@PathVariable Integer id ) { + Notes_and_terms get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Notes_and_terms/{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/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Order_summaryController.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Order_summaryController.java new file mode 100644 index 0000000..44a5d4b --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Order_summaryController.java @@ -0,0 +1,139 @@ +package com.realnet.order_estimation.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.order_estimation.Entity.Order_summary; +import com.realnet.order_estimation.Services.Order_summaryService ; + + + + + + + + + + + + + + + + +@RequestMapping(value = "/token/Order_summary") + @CrossOrigin("*") +@RestController +public class tokenFree_Order_summaryController { + @Autowired + private Order_summaryService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + + + @PostMapping("/Order_summary") + public Order_summary Savedata(@RequestBody Order_summary data) { + Order_summary save = Service.Savedata(data) ; + + + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Order_summary/{id}") + public Order_summary update(@RequestBody Order_summary data,@PathVariable Integer id ) { + Order_summary update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Order_summary/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("/Order_summary") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Order_summary") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Order_summary/{id}") + public Order_summary getdetailsbyId(@PathVariable Integer id ) { + Order_summary get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Order_summary/{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/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Product_selectionController.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Product_selectionController.java new file mode 100644 index 0000000..c431b8d --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Product_selectionController.java @@ -0,0 +1,138 @@ +package com.realnet.order_estimation.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.order_estimation.Entity.Product_selection; +import com.realnet.order_estimation.Services.Product_selectionService ; + + + + + + + + + + + + +import com.realnet.order_estimation.Entity.Product_selection; + + +@RequestMapping(value = "/token/Product_selection") + @CrossOrigin("*") +@RestController +public class tokenFree_Product_selectionController { + @Autowired + private Product_selectionService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + @PostMapping("/Product_selection") + public Product_selection Savedata(@RequestBody Product_selection data) { + Product_selection save = Service.Savedata(data) ; + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Product_selection/{id}") + public Product_selection update(@RequestBody Product_selection data,@PathVariable Integer id ) { + Product_selection update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Product_selection/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_selection") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Product_selection") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Product_selection/{id}") + public Product_selection getdetailsbyId(@PathVariable Integer id ) { + Product_selection get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Product_selection/{id}") + public ResponseEntity delete_by_id(@PathVariable Integer id ) { + Service.delete_by_id(id); + return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK); + + } + + + + + + + + + + + + + + + + @PostMapping("/Product_selection/Product_selection_insert") + public Product_selection insertProduct_selection(@RequestBody Product_selection data) { + Product_selection insertaction = Service.insertProduct_selection(data); + return insertaction; + } + +} \ No newline at end of file diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_ProductssController.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_ProductssController.java new file mode 100644 index 0000000..64833e2 --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_ProductssController.java @@ -0,0 +1,83 @@ +package com.realnet.order_estimation.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.order_estimation.Entity.Productss; +import com.realnet.order_estimation.Services.ProductssService ; + + +@RequestMapping(value = "/token/Productss") + @CrossOrigin("*") +@RestController +public class tokenFree_ProductssController { + @Autowired + private ProductssService Service; + +@Value("${projectPath}") + private String projectPath; + + + + @PostMapping("/Productss") + public Productss Savedata(@RequestBody Productss data) { + Productss save = Service.Savedata(data) ; + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Productss/{id}") + public Productss update(@RequestBody Productss data,@PathVariable Integer id ) { + Productss update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Productss/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("/Productss") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Productss") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Productss/{id}") + public Productss getdetailsbyId(@PathVariable Integer id ) { + Productss get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Productss/{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/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Productss_ListFilter1Controller.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Productss_ListFilter1Controller.java new file mode 100644 index 0000000..0e70d34 --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Productss_ListFilter1Controller.java @@ -0,0 +1,24 @@ +package com.realnet.order_estimation.Controllers; +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.web.bind.annotation.*; +import com.realnet.order_estimation.Entity.Productss_ListFilter1; +import com.realnet.order_estimation.Services.Productss_ListFilter1Service ; +@RequestMapping(value = "/token/Productss_ListFilter1") +@RestController +public class tokenFree_Productss_ListFilter1Controller { + + @Autowired + private Productss_ListFilter1Service Service; + + @GetMapping("/Productss_ListFilter1") + public List getlist() { + List get = Service.getlistbuilder(); + return get; +} + @GetMapping("/Productss_ListFilter11") + public List getlistwithparam( ) { + List get = Service.getlistbuilderparam( ); + return get; +} +} \ No newline at end of file diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_TypeController.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_TypeController.java new file mode 100644 index 0000000..e63b735 --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_TypeController.java @@ -0,0 +1,83 @@ +package com.realnet.order_estimation.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.order_estimation.Entity.Type; +import com.realnet.order_estimation.Services.TypeService ; + + +@RequestMapping(value = "/token/Type") + @CrossOrigin("*") +@RestController +public class tokenFree_TypeController { + @Autowired + private TypeService Service; + +@Value("${projectPath}") + private String projectPath; + + + + @PostMapping("/Type") + public Type Savedata(@RequestBody Type data) { + Type save = Service.Savedata(data) ; + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Type/{id}") + public Type update(@RequestBody Type data,@PathVariable Integer id ) { + Type update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/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("/Type") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Type") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Type/{id}") + public Type getdetailsbyId(@PathVariable Integer id ) { + Type get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/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/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Type_ListFilter1Controller.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Type_ListFilter1Controller.java new file mode 100644 index 0000000..1197061 --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Controllers/tokenFree_Type_ListFilter1Controller.java @@ -0,0 +1,24 @@ +package com.realnet.order_estimation.Controllers; +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.web.bind.annotation.*; +import com.realnet.order_estimation.Entity.Type_ListFilter1; +import com.realnet.order_estimation.Services.Type_ListFilter1Service ; +@RequestMapping(value = "/token/Type_ListFilter1") +@RestController +public class tokenFree_Type_ListFilter1Controller { + + @Autowired + private Type_ListFilter1Service Service; + + @GetMapping("/Type_ListFilter1") + public List getlist() { + List get = Service.getlistbuilder(); + return get; +} + @GetMapping("/Type_ListFilter11") + public List getlistwithparam( ) { + List get = Service.getlistbuilderparam( ); + return get; +} +} \ No newline at end of file diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Customer_information.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Customer_information.java new file mode 100644 index 0000000..90d4dc8 --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Customer_information.java @@ -0,0 +1,103 @@ +package com.realnet.order_estimation.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 customer_name; + +private String contact_person; + +private String email_address; + + private String phone_number; + + +@Column(length = 2000) +private String customer_address; + +private String deployment_type; + + + + +private boolean dg_monitoring_without_fuel; + + + +private boolean active_energy; + + + +private boolean dg_monitoring_with_fuel; + + + +private boolean ups_monitoring; + + + +private boolean apfc_panel_monitoring; + + + +private boolean busbar_monitoring; + + + +private boolean lt_panel_monitoring; + + + +private boolean ht_panel_monitoring; + + + +private boolean compressed_air__gas_monitoring; + + + +private boolean compressed_air_lpg_o2_n2_co2; + + + +private boolean water_management_water_monitoring; + + + +private boolean water_management_stp_etp; + + + + + + +} diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Generate_quote.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Generate_quote.java new file mode 100644 index 0000000..b8a3924 --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Generate_quote.java @@ -0,0 +1,36 @@ +package com.realnet.order_estimation.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + @Entity + @Data + public class Generate_quote extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String genrate_quote; + +private String package_300k; + +private String package_400k; + +private String package_500k; + + +} diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Manufacturer.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Manufacturer.java new file mode 100644 index 0000000..8d9cf70 --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Manufacturer.java @@ -0,0 +1,24 @@ +package com.realnet.order_estimation.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; + + +} diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Manufacturer_ListFilter1.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Manufacturer_ListFilter1.java new file mode 100644 index 0000000..2b9cc0a --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Manufacturer_ListFilter1.java @@ -0,0 +1,14 @@ +package com.realnet.order_estimation.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/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Notes_and_terms.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Notes_and_terms.java new file mode 100644 index 0000000..faf55ee --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Notes_and_terms.java @@ -0,0 +1,30 @@ +package com.realnet.order_estimation.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + @Entity + @Data + public class Notes_and_terms extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String additional_notes; + + +@Column(length = 2000) +private String terms_and_conditions; + + +} diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Order_summary.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Order_summary.java new file mode 100644 index 0000000..3ab9931 --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Order_summary.java @@ -0,0 +1,54 @@ +package com.realnet.order_estimation.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + + + + + + + @Entity + @Data + public class Order_summary extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private int line; + +private String product; + + +@Column(length = 2000) +private String description; + +private String unit_price; + +private int quantity; + +private String total; + +private int gst; + +private int final_total; + + +} diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Product_selection.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Product_selection.java new file mode 100644 index 0000000..1fd3d5e --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Product_selection.java @@ -0,0 +1,51 @@ +package com.realnet.order_estimation.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + + + + + @Entity + @Data + public class Product_selection extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String name; + +private Integer manufacturer; +private String manufacturername; + +private Integer type; +private String typename; + +private Integer product; +private String productname; + +private String price; + +private int quantity; + + + + +} diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Productss.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Productss.java new file mode 100644 index 0000000..60ada68 --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Productss.java @@ -0,0 +1,24 @@ +package com.realnet.order_estimation.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + @Entity + @Data + public class Productss extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String product_name; + + +} diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Productss_ListFilter1.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Productss_ListFilter1.java new file mode 100644 index 0000000..22fac90 --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Productss_ListFilter1.java @@ -0,0 +1,14 @@ +package com.realnet.order_estimation.Entity; + import lombok.*; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + @Data + public class Productss_ListFilter1 { + + private Integer id; + + + private String product_name; +} diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Type.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Type.java new file mode 100644 index 0000000..c90f5a6 --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Type.java @@ -0,0 +1,24 @@ +package com.realnet.order_estimation.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + @Entity + @Data + public class Type extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String type_name; + + +} diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Type_ListFilter1.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Type_ListFilter1.java new file mode 100644 index 0000000..f23d30f --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Entity/Type_ListFilter1.java @@ -0,0 +1,14 @@ +package com.realnet.order_estimation.Entity; + import lombok.*; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + @Data + public class Type_ListFilter1 { + + private Integer id; + + + private String type_name; +} diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/Customer_informationRepository.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/Customer_informationRepository.java new file mode 100644 index 0000000..dbcea46 --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/Customer_informationRepository.java @@ -0,0 +1,40 @@ +package com.realnet.order_estimation.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.order_estimation.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/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/Generate_quoteRepository.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/Generate_quoteRepository.java new file mode 100644 index 0000000..f721068 --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/Generate_quoteRepository.java @@ -0,0 +1,32 @@ +package com.realnet.order_estimation.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.order_estimation.Entity.Generate_quote; + +@Repository +public interface Generate_quoteRepository extends JpaRepository { + +@Query(value = "select * from generate_quote where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from generate_quote where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/ManufacturerRepository.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/ManufacturerRepository.java new file mode 100644 index 0000000..55f48e2 --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/ManufacturerRepository.java @@ -0,0 +1,26 @@ +package com.realnet.order_estimation.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.order_estimation.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/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/Notes_and_termsRepository.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/Notes_and_termsRepository.java new file mode 100644 index 0000000..4e37016 --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/Notes_and_termsRepository.java @@ -0,0 +1,28 @@ +package com.realnet.order_estimation.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.order_estimation.Entity.Notes_and_terms; + +@Repository +public interface Notes_and_termsRepository extends JpaRepository { + +@Query(value = "select * from notes_and_terms where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from notes_and_terms where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/Order_summaryRepository.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/Order_summaryRepository.java new file mode 100644 index 0000000..79fb9c3 --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/Order_summaryRepository.java @@ -0,0 +1,40 @@ +package com.realnet.order_estimation.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.order_estimation.Entity.Order_summary; + +@Repository +public interface Order_summaryRepository extends JpaRepository { + +@Query(value = "select * from order_summary where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from order_summary where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/Product_selectionRepository.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/Product_selectionRepository.java new file mode 100644 index 0000000..98e284d --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/Product_selectionRepository.java @@ -0,0 +1,38 @@ +package com.realnet.order_estimation.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.order_estimation.Entity.Product_selection; + +@Repository +public interface Product_selectionRepository extends JpaRepository { + +@Query(value = "select * from product_selection where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from product_selection where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/ProductssRepository.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/ProductssRepository.java new file mode 100644 index 0000000..fc5a0b9 --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/ProductssRepository.java @@ -0,0 +1,26 @@ +package com.realnet.order_estimation.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.order_estimation.Entity.Productss; + +@Repository +public interface ProductssRepository extends JpaRepository { + +@Query(value = "select * from productss where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from productss where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/TypeRepository.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/TypeRepository.java new file mode 100644 index 0000000..27aaa45 --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Repository/TypeRepository.java @@ -0,0 +1,26 @@ +package com.realnet.order_estimation.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.order_estimation.Entity.Type; + +@Repository +public interface TypeRepository extends JpaRepository { + +@Query(value = "select * from type where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from type where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Customer_informationInsertService1.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Customer_informationInsertService1.java new file mode 100644 index 0000000..088b8ca --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Customer_informationInsertService1.java @@ -0,0 +1,39 @@ +package com.realnet.order_estimation.Services; +import com.realnet.order_estimation.Repository.Customer_informationRepository; +import com.realnet.order_estimation.Entity.Customer_information; + import java.util.List; +import com.realnet.users.entity1.AppUser; +import com.realnet.users.service1.AppUserServiceImpl; +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Service; + +@Service + public class Customer_informationInsertService1 { +@Autowired +private Customer_informationRepository Repository; +@Autowired + private AppUserServiceImpl userService; + + +public Customer_information insertaction(Customer_information customer_information ) { + + + customer_information.setUpdatedBy(getUser().getUserId()); + customer_information.setCreatedBy(getUser().getUserId()); + customer_information.setAccountId(getUser().getAccount().getAccount_id()); + customer_information.setCustomer_name("text"); +customer_information.setEmail_address("email"); +customer_information.setContact_person("text"); +customer_information.setPhone_number("phone"); +customer_information.setSelect_objective("checkbox"); +customer_information.setReset_btn("text"); +customer_information.setCustomer_address("Paragraph"); +customer_information.setDeployment_type("select"); +final Customer_information save = Repository.save(customer_information); + return save; +} +public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} \ No newline at end of file diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Customer_informationService.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Customer_informationService.java new file mode 100644 index 0000000..66ce0fa --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Customer_informationService.java @@ -0,0 +1,211 @@ +package com.realnet.order_estimation.Services; +import com.realnet.order_estimation.Repository.Customer_informationRepository; +import com.realnet.order_estimation.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.order_estimation.Entity.Customer_information; + +import com.realnet.order_estimation.Repository.Customer_informationRepository; + + + import org.springframework.stereotype.Service; + +@Service + public class Customer_informationService { +@Autowired +private Customer_informationRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + + + + + +public Customer_information Savedata(Customer_information data) { + + + + + + + + + + + + + + + + + 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.setCustomer_name(data.getCustomer_name()); + +old.setContact_person(data.getContact_person()); + +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.setActive_energy(data.isActive_energy()); + + + +old.setDg_monitoring_with_fuel(data.isDg_monitoring_with_fuel()); + + + +old.setDg_monitoring_without_fuel(data.isDg_monitoring_without_fuel()); + + + +old.setUps_monitoring(data.isUps_monitoring()); + + + +old.setApfc_panel_monitoring(data.isApfc_panel_monitoring()); + + + +old.setWater_management_stp_etp(data.isWater_management_stp_etp()); + + + +old.setBusbar_monitoring(data.isBusbar_monitoring()); + + + +old.setLt_panel_monitoring(data.isLt_panel_monitoring()); + + + +old.setHt_panel_monitoring(data.isHt_panel_monitoring()); + + + +old.setCompressed_air__gas_monitoring(data.isCompressed_air__gas_monitoring()); + + + +old.setCompressed_air_lpg_o2_n2_co2(data.isCompressed_air_lpg_o2_n2_co2()); + + + +old.setWater_management_water_monitoring(data.isWater_management_water_monitoring()); + + + + + + + +final Customer_information test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + + + +// Insert Action + + @Autowired + private Customer_informationRepository customer_informationinsertrepository; + +public Customer_information insertCustomer_information(Customer_information data) { + +data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); + + + final Customer_information save = customer_informationinsertrepository.save(data); + return save; + } + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Generate_quoteService.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Generate_quoteService.java new file mode 100644 index 0000000..7a1ef9f --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Generate_quoteService.java @@ -0,0 +1,103 @@ +package com.realnet.order_estimation.Services; +import com.realnet.order_estimation.Repository.Generate_quoteRepository; +import com.realnet.order_estimation.Entity.Generate_quote +;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 Generate_quoteService { +@Autowired +private Generate_quoteRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + +public Generate_quote Savedata(Generate_quote data) { + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Generate_quote 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 Generate_quote getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Generate_quote update(Generate_quote data,Integer id) { + Generate_quote old = Repository.findById(id).get(); +old.setGenrate_quote(data.getGenrate_quote()); + +old.setPackage_300k(data.getPackage_300k()); + +old.setPackage_400k(data.getPackage_400k()); + +old.setPackage_500k(data.getPackage_500k()); + +final Generate_quote test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/ManufacturerService.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/ManufacturerService.java new file mode 100644 index 0000000..8d16831 --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/ManufacturerService.java @@ -0,0 +1,73 @@ +package com.realnet.order_estimation.Services; +import com.realnet.order_estimation.Repository.ManufacturerRepository; +import com.realnet.order_estimation.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()); + +final Manufacturer test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Manufacturer_ListFilter1Service.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Manufacturer_ListFilter1Service.java new file mode 100644 index 0000000..7187597 --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Manufacturer_ListFilter1Service.java @@ -0,0 +1,47 @@ +package com.realnet.order_estimation.Services; +import java.util.*; +import com.realnet.order_estimation.Repository.ManufacturerRepository; +import com.realnet.order_estimation.Entity.Manufacturer; + +import com.realnet.order_estimation.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/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Notes_and_termsService.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Notes_and_termsService.java new file mode 100644 index 0000000..0a8003b --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Notes_and_termsService.java @@ -0,0 +1,83 @@ +package com.realnet.order_estimation.Services; +import com.realnet.order_estimation.Repository.Notes_and_termsRepository; +import com.realnet.order_estimation.Entity.Notes_and_terms +;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 Notes_and_termsService { +@Autowired +private Notes_and_termsRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + +public Notes_and_terms Savedata(Notes_and_terms data) { + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Notes_and_terms save = Repository.save(data); + return save; + } + + +// get all with pagination + public Page getAllWithPagination(Pageable page) { + return Repository.findAll(page, getUser().getUserId()); + } +public List getdetails() { + List realm = realmService.findByUserId(getUser().getUserId()); +List all = Repository.findAll(getUser().getUserId()); + + return all ; } + + +public Notes_and_terms getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Notes_and_terms update(Notes_and_terms data,Integer id) { + Notes_and_terms old = Repository.findById(id).get(); +old.setAdditional_notes(data.getAdditional_notes()); + +old.setTerms_and_conditions(data.getTerms_and_conditions()); + +final Notes_and_terms test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Order_summaryService.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Order_summaryService.java new file mode 100644 index 0000000..442d135 --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Order_summaryService.java @@ -0,0 +1,143 @@ +package com.realnet.order_estimation.Services; +import com.realnet.order_estimation.Repository.Order_summaryRepository; +import com.realnet.order_estimation.Entity.Order_summary +;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 Order_summaryService { +@Autowired +private Order_summaryRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + + + + + +public Order_summary Savedata(Order_summary data) { + + + + + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Order_summary 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 Order_summary getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Order_summary update(Order_summary data,Integer id) { + Order_summary old = Repository.findById(id).get(); +old.setLine(data.getLine()); + +old.setProduct(data.getProduct()); + +old.setDescription(data.getDescription()); + +old.setUnit_price(data.getUnit_price()); + +old.setQuantity(data.getQuantity()); + +old.setTotal(data.getTotal()); + +old.setGst(data.getGst()); + +old.setFinal_total(data.getFinal_total()); + +final Order_summary test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Product_selectionInsertService1.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Product_selectionInsertService1.java new file mode 100644 index 0000000..ddde94a --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Product_selectionInsertService1.java @@ -0,0 +1,31 @@ +package com.realnet.order_estimation.Services; +import com.realnet.order_estimation.Repository.Product_selectionRepository; +import com.realnet.order_estimation.Entity.Product_selection; + import java.util.List; +import com.realnet.users.entity1.AppUser; +import com.realnet.users.service1.AppUserServiceImpl; +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Service; + +@Service + public class Product_selectionInsertService1 { +@Autowired +private Product_selectionRepository Repository; +@Autowired + private AppUserServiceImpl userService; + + +public Product_selection insertaction(Product_selection product_selection ) { + + + product_selection.setUpdatedBy(getUser().getUserId()); + product_selection.setCreatedBy(getUser().getUserId()); + product_selection.setAccountId(getUser().getAccount().getAccount_id()); + final Product_selection save = Repository.save(product_selection); + return save; +} +public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} \ No newline at end of file diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Product_selectionService.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Product_selectionService.java new file mode 100644 index 0000000..2843dce --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Product_selectionService.java @@ -0,0 +1,190 @@ +package com.realnet.order_estimation.Services; +import com.realnet.order_estimation.Repository.Product_selectionRepository; +import com.realnet.order_estimation.Entity.Product_selection +;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.order_estimation.Entity.Manufacturer; +import com.realnet.order_estimation.Services.ManufacturerService; + + + +import com.realnet.order_estimation.Entity.Type; +import com.realnet.order_estimation.Services.TypeService; + + + +import com.realnet.order_estimation.Entity.Productss; +import com.realnet.order_estimation.Services.ProductssService; + + + + + + + +import com.realnet.order_estimation.Entity.Product_selection; + +import com.realnet.order_estimation.Repository.Product_selectionRepository; + + + import org.springframework.stereotype.Service; + +@Service + public class Product_selectionService { +@Autowired +private Product_selectionRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + +@Autowired + private ManufacturerService manufacturerserv; + +@Autowired + private TypeService typeserv; + +@Autowired + private ProductssService productserv; + + + + + + + +public Product_selection Savedata(Product_selection data) { + + + + +if (data.getManufacturer() != null) { + Manufacturer get = manufacturerserv.getdetailsbyId(data.getManufacturer()); + data.setManufacturername(get.getManufacturer_Name()); + + } + + + + + + +if (data.getType() != null) { + Type get = typeserv.getdetailsbyId(data.getType()); + data.setTypename(get.getType_name()); + + } + + + + + + +if (data.getProduct() != null) { + Productss get = productserv.getdetailsbyId(data.getProduct()); + data.setProductname(get.getProduct_Name()); + + } + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Product_selection 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_selection getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Product_selection update(Product_selection data,Integer id) { + Product_selection old = Repository.findById(id).get(); +old.setName(data.getName()); + +old.setManufacturer(data.getManufacturer()); + +old.setType(data.getType()); + +old.setProduct(data.getProduct()); + +old.setPrice(data.getPrice()); + +old.setQuantity(data.getQuantity()); + + + +final Product_selection test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + +// Insert Action + + @Autowired + private Product_selectionRepository product_selectioninsertrepository; + +public Product_selection insertProduct_selection(Product_selection data) { + +data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); + + + final Product_selection save = product_selectioninsertrepository.save(data); + return save; + } + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/ProductssService.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/ProductssService.java new file mode 100644 index 0000000..802b3eb --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/ProductssService.java @@ -0,0 +1,73 @@ +package com.realnet.order_estimation.Services; +import com.realnet.order_estimation.Repository.ProductssRepository; +import com.realnet.order_estimation.Entity.Productss +;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 ProductssService { +@Autowired +private ProductssRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + +public Productss Savedata(Productss data) { + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Productss 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 Productss getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Productss update(Productss data,Integer id) { + Productss old = Repository.findById(id).get(); +old.setProduct_name(data.getProduct_name()); + +final Productss test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Productss_ListFilter1Service.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Productss_ListFilter1Service.java new file mode 100644 index 0000000..3163b64 --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Productss_ListFilter1Service.java @@ -0,0 +1,47 @@ +package com.realnet.order_estimation.Services; +import java.util.*; +import com.realnet.order_estimation.Repository.ProductssRepository; +import com.realnet.order_estimation.Entity.Productss; + +import com.realnet.order_estimation.Entity.Productss_ListFilter1; +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Service; + +@Service + public class Productss_ListFilter1Service { +@Autowired +private ProductssRepository Repository; + + + + + public List getlistbuilder() { + List list= Repository.findAll(); + ArrayList l = new ArrayList<>(); + for (Productss data : list) { +{ +Productss_ListFilter1 dummy = new Productss_ListFilter1(); + dummy.setId(data.getId()); + dummy.setProduct_name(data.getProduct_name()); + l.add(dummy); +} +} +return l;} + + + + public List getlistbuilderparam( ) { + List list= Repository.findAll(); + ArrayList l = new ArrayList<>(); + for (Productss data : list) { +{ +Productss_ListFilter1 dummy = new Productss_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/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/TypeService.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/TypeService.java new file mode 100644 index 0000000..d81dcbe --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/TypeService.java @@ -0,0 +1,73 @@ +package com.realnet.order_estimation.Services; +import com.realnet.order_estimation.Repository.TypeRepository; +import com.realnet.order_estimation.Entity.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 TypeService { +@Autowired +private TypeRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + +public Type Savedata(Type data) { + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +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 Type getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Type update(Type data,Integer id) { + Type old = Repository.findById(id).get(); +old.setType_name(data.getType_name()); + +final Type test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Type_ListFilter1Service.java b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Type_ListFilter1Service.java new file mode 100644 index 0000000..c11230d --- /dev/null +++ b/orderestimate5-orderestimationback-b/authsec_springboot/backend/src/main/java/com/realnet/order_estimation/Services/Type_ListFilter1Service.java @@ -0,0 +1,47 @@ +package com.realnet.order_estimation.Services; +import java.util.*; +import com.realnet.order_estimation.Repository.TypeRepository; +import com.realnet.order_estimation.Entity.Type; + +import com.realnet.order_estimation.Entity.Type_ListFilter1; +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Service; + +@Service + public class Type_ListFilter1Service { +@Autowired +private TypeRepository Repository; + + + + + public List getlistbuilder() { + List list= Repository.findAll(); + ArrayList l = new ArrayList<>(); + for (Type data : list) { +{ +Type_ListFilter1 dummy = new Type_ListFilter1(); + dummy.setId(data.getId()); + dummy.setType_name(data.getType_name()); + l.add(dummy); +} +} +return l;} + + + + public List getlistbuilderparam( ) { + List list= Repository.findAll(); + ArrayList l = new ArrayList<>(); + for (Type data : list) { +{ +Type_ListFilter1 dummy = new Type_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/orderestimate5-orderestimationdb-d/authsec_mysql/mysql/wf_table/wf_table.sql b/orderestimate5-orderestimationdb-d/authsec_mysql/mysql/wf_table/wf_table.sql new file mode 100755 index 0000000..05fde82 --- /dev/null +++ b/orderestimate5-orderestimationdb-d/authsec_mysql/mysql/wf_table/wf_table.sql @@ -0,0 +1,16 @@ +CREATE TABLE orderestimationdb.Customer_information(id BIGINT NOT NULL AUTO_INCREMENT, dg_monitoring-with_fuel_ bit(1), apfc_panel_monitoring bit(1), lt_panel_monitoring bit(1), customer_name VARCHAR(400), active_energy bit(1), ht_panel_monitoring bit(1), email_address VARCHAR(400), contact_person VARCHAR(400), phone_number VARCHAR(400), compressed_air-_gas_monitoring bit(1), dg_monitoring-without_fuel_ bit(1), ups_monitoring bit(1), water_management-water_monitoring bit(1), water_management-stp/etp bit(1), busbar_monitoring bit(1), reset_btn VARCHAR(400), customer_address VARCHAR(400), deployment_type VARCHAR(400), compressed_air-lpg/o2/n2/co2 bit(1), PRIMARY KEY (id)); + +CREATE TABLE orderestimationdb.Product_selection(id BIGINT NOT NULL AUTO_INCREMENT, type int, add_to_order_btn VARCHAR(400), price VARCHAR(400), name VARCHAR(400), manufacturer int, product int, quantity int, PRIMARY KEY (id)); + +CREATE TABLE orderestimationdb.Type(id BIGINT NOT NULL AUTO_INCREMENT, type_name VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE orderestimationdb.Productss(id BIGINT NOT NULL AUTO_INCREMENT, product_name VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE orderestimationdb.Manufacturer(id BIGINT NOT NULL AUTO_INCREMENT, manufacturer_name VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE orderestimationdb.Order_summary(id BIGINT NOT NULL AUTO_INCREMENT, line int, final_total int, description VARCHAR(400), total VARCHAR(400), product VARCHAR(400), quantity int, gst int, unit_price VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE orderestimationdb.Notes_and_terms(id BIGINT NOT NULL AUTO_INCREMENT, additional_notes VARCHAR(400), terms_and_conditions VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE orderestimationdb.Generate_quote(id BIGINT NOT NULL AUTO_INCREMENT, package_500k VARCHAR(400), genrate_quote VARCHAR(400), package_400k VARCHAR(400), package_300k VARCHAR(400), PRIMARY KEY (id)); + diff --git a/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/login/login-page/login_environment.ts b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/login/login-page/login_environment.ts index 231b3a1..fdff417 100644 --- a/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/login/login-page/login_environment.ts +++ b/orderestimate5-orderestimationfront-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/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Customer_information/Customer_information.component.html b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Customer_information/Customer_information.component.html new file mode 100644 index 0000000..c02634b --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Customer_information/Customer_information.component.html @@ -0,0 +1,880 @@ + +
+
+
+

Customer Information

+
+
+ + + + + + + +
+ + + + Loading ... + +
{{error}}
+
+ + Customer Name + + + + Contact Person + + + + Email Address + + + + Phone Number + + + + Customer Address + + + + Deployment Type + + + + + + dg_monitoring_with_fuel + + + + + active_energy + + + + + dg_monitoring_without_fuel + + + + + ups_monitoring + + + + + apfc_panel_monitoring + + + + + busbar_monitoring + + + + + lt_panel_monitoring + + + + + ht_panel_monitoring + + + + + compressed_air__gas_monitoring + + + + + compressed_air_lpg_o2_n2_co2 + + + + + water_management_stp_etp + + + + + water_management_water_monitoring + + + + + + + + + + + Action + + + + + +{{user. customer_name }} + + +{{user. contact_person }} + + +{{user. email_address }} + + +{{user. phone_number }} + + + + + +{{user. deployment_type }} + + + + +{{user. dg_monitoring_without_fuel}} + + + +{{user. active_energy}} + + + +{{user. dg_monitoring_with_fuel}} + + + +{{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__gas_monitoring}} + + + +{{user. compressed_air_lpg_o2_n2_co2}} + + + +{{user. water_management_water_monitoring}} + + + + + + + + + + + + +
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/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Customer_information/Customer_information.component.scss b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Customer_information/Customer_information.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/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/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Customer_information/Customer_information.component.ts b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Customer_information/Customer_information.component.ts new file mode 100644 index 0000000..68345b9 --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Customer_information/Customer_information.component.ts @@ -0,0 +1,501 @@ +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, + ) { } +// component button + public insertFormReset_btn: FormGroup; + + + ngOnInit(): void { + if(this.cardmodeldata !== ''){ + this.cardmodal = JSON.parse(this.cardmodeldata); + this.dashboardArray = this.cardmodal.dashboard.slice(); + console.log(this.dashboardArray) + } + this.userrole=this.userInfoService.getRoles(); + this.getData(); + this.entryForm = this._fb.group({ +customer_name : [null], + +contact_person : [null], + +email_address : [null], + +phone_number: ['+91'], + +customer_address : [null], + +deployment_type : [null], + + + +apfc_panel_monitoring:[false], + + + +active_energy:[false], + + + +dg_monitoring_with_fuel:[false], + + + +dg_monitoring_without_fuel:[false], + + + +water_management_stp_etp:[false], + + + +ups_monitoring:[false], + + + +busbar_monitoring:[false], + + + +lt_panel_monitoring:[false], + + + +ht_panel_monitoring:[false], + + + +compressed_air__gas_monitoring:[false], + + + +compressed_air_lpg_o2_n2_co2:[false], + + + +water_management_water_monitoring:[false], + + + + + + + + + + + + + + + + + + + + + + + }); // component_button200 +// inser code start + this.insertFormReset_btn = this._fb.group({ + customer_name: 'text', + email_address: 'email', + contact_person: 'text', + phone_number: 'phone', + select_objective: 'checkbox', + reset_btn: 'text', + customer_address: 'Paragraph', + deployment_type: 'select', + }); + + // insert code end + + // form code start + this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { + console.log(data); + const jsonArray = data.map((str) => JSON.parse(str)); + this.additionalFieldsFromBackend = jsonArray; + this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "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 + + + + + + + + + + + + + + + + + + } + + + + + + + + + + + + + + + + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + + + + + + + + + + + + + + + this.modalEdit = true; + } + onDelete(row) { + this.rowSelected = row; + this.modaldelete=true; + } + delete(id) + { + this.modaldelete = false; + console.log("in delete "+id); + this.mainService.delete(id).subscribe( + (data) => { + console.log(data); + this.ngOnInit(); + if (data) { this.toastr.success('Deleted successfully'); } + }); + } + onUpdate(id) { + this.modalEdit = false; + + + + + + + + + + + + + + + + + //console.log("in update"); + console.log("id " + id); + console.log(this.rowSelected); + //console.log("out update"); + this.mainService.update(id, this.rowSelected).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Update Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + + + + + + + + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("update Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Updated"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Updated"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } +onCreate() { + this.modalAdd=false; + + + + + + + + + + + + + + + + + this.mainService.create(this.entryForm.value).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Added Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + + + + + + + + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("Added Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Added"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Added"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } + goToAdd(row) { +this.modalAdd = true; this.submitted = false; + + + + + + + + + + + + + + + + + } + submitted = false; +onSubmit() { + console.log(this.entryForm.value); + this.submitted = true; + if (this.entryForm.invalid) { + return; + }this.onCreate(); + +} + + + + +isValidemail_address(email: string): boolean { + const emailPattern = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/; + return emailPattern.test(email); } + +isValidPhone_number(phone: string): boolean { + const phonePattern = /^(\+[1-9][0-9]{0,2})?[1-9][0-9]{9}$/; + return phonePattern.test(phone); +} + +rsModalcustomer_address = false; + goToReplaceStringcustomer_address (row){ + this.rowSelected = row; this.rsModalcustomer_address =true; } + + + + + + + +// updateaction + +// insert button + + +modalInsertReset_btn = false; +goToInsertReset_btn() { + this.modalInsertReset_btn=true; + } +onSubmitInsertReset_btn() { + console.log(this.insertFormReset_btn.value); + this.submitted=true; + if (this.insertFormReset_btn.invalid) { + return; + } + this.onInsertReset_btn(); +} +onInsertReset_btn() { + this.modalInsertReset_btn=false; + this.mainService.insertReset_btnCustomer_information(this.insertFormReset_btn.value).subscribe(data => { + console.log('After add',data) + if (data.status >=200 && data.status <=209) { + this.toastr.success('Added successfully'); + } +if (data && data.id != null) { + this.toastr.success('Added successfully'); + } this.ngOnInit(); + },(error) => { + console.error(error); + if ( error.status >= 200 && error.status <= 299) { + this.toastr.success("Update Successfully"); + } + if ( error.status >= 400 && error.status <= 499) { + this.toastr.error("Update Failed"); + } + if ( error.status >= 500 && error.status <= 599) { + this.toastr.error("Server Error"); + } + this.ngOnInit(); + }); + this.insertFormReset_btn.reset(); + } +// insert buuton code end + + +} + + + + + + + + + + + + diff --git a/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Customer_information/Customer_information.service.ts b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Customer_information/Customer_information.service.ts new file mode 100644 index 0000000..e0191ee --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Customer_information/Customer_information.service.ts @@ -0,0 +1,54 @@ +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); + } + + + + + + + + + + + + + + + + +// updateaction +// insert button code start +insertReset_btnCustomer_information(Customer_information: any): Observable { + return this.apiRequest.post(`Customer_information/Customer_information/Customer_information_insert`, Customer_information); +} + +} \ No newline at end of file diff --git a/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Customer_information/Customer_information_cardvariable.ts b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Customer_information/Customer_information_cardvariable.ts new file mode 100644 index 0000000..c036c4b --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/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/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Generate_quote/Generate_quote.component.html b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Generate_quote/Generate_quote.component.html new file mode 100644 index 0000000..dcfb790 --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Generate_quote/Generate_quote.component.html @@ -0,0 +1,402 @@ + +
+
+
+

Generate Quote

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Genrate Quote + + + + Package 300k + + + + Package 400k + + + + Package 500k + + + + + + Action + + + + + +{{user. genrate_quote }} + + +{{user. package_300k }} + + +{{user. package_400k }} + + +{{user. package_500k }} + + + + + + + +
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/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Generate_quote/Generate_quote.component.scss b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Generate_quote/Generate_quote.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Generate_quote/Generate_quote.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/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Generate_quote/Generate_quote.component.ts b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Generate_quote/Generate_quote.component.ts new file mode 100644 index 0000000..df54018 --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Generate_quote/Generate_quote.component.ts @@ -0,0 +1,292 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Generate_quoteservice} from './Generate_quote.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 { Generate_quotecardvariable } from './Generate_quote_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Generate_quote', + templateUrl: './Generate_quote.component.html', + styleUrls: ['./Generate_quote.component.scss'] +}) +export class Generate_quoteComponent implements OnInit { + cardButton = Generate_quotecardvariable.cardButton; + cardmodeldata = Generate_quotecardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Generate_quotecardvariable.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 = 'Generate_quote_formCode' +tableName = 'Generate_quote'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Generate_quoteservice, + private alertService: AlertService, + private toastr: ToastrService, + private _fb: FormBuilder, + ) { } +// component button + ngOnInit(): void { + if(this.cardmodeldata !== ''){ + this.cardmodal = JSON.parse(this.cardmodeldata); + this.dashboardArray = this.cardmodal.dashboard.slice(); + console.log(this.dashboardArray) + } + this.userrole=this.userInfoService.getRoles(); + this.getData(); + this.entryForm = this._fb.group({ +genrate_quote : [null], + +package_300k : [null], + +package_400k : [null], + +package_500k : [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 === "Generate_quote_formCode"); + console.log(this.checkFormCode); + console.log(this.additionalFieldsFromBackend); + if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) { + this.additionalFieldsFromBackend.forEach(field => { + if (field.formCode === this.formcode) { + if (!this.entryForm.contains(field.extValue)) { + // Add the control only if it doesn't exist in the form + this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue)); + } + } + }); + } + }); + console.log(this.entryForm.value); + // form code end + + + + + + + + + + } + + + + + + + + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + + + + + + + this.modalEdit = true; + } + onDelete(row) { + this.rowSelected = row; + this.modaldelete=true; + } + delete(id) + { + this.modaldelete = false; + console.log("in delete "+id); + this.mainService.delete(id).subscribe( + (data) => { + console.log(data); + this.ngOnInit(); + if (data) { this.toastr.success('Deleted successfully'); } + }); + } + onUpdate(id) { + this.modalEdit = false; + + + + + + + + + //console.log("in update"); + console.log("id " + id); + console.log(this.rowSelected); + //console.log("out update"); + this.mainService.update(id, this.rowSelected).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Update Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("update Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Updated"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Updated"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } +onCreate() { + this.modalAdd=false; + + + + + + + + + this.mainService.create(this.entryForm.value).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Added Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("Added Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Added"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Added"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } + goToAdd(row) { +this.modalAdd = true; this.submitted = false; + + + + + + + + + } + submitted = false; +onSubmit() { + console.log(this.entryForm.value); + this.submitted = true; + if (this.entryForm.invalid) { + return; + }this.onCreate(); + +} + + + + + + + + +// updateaction +} + + + + + + + diff --git a/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Generate_quote/Generate_quote.service.ts b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Generate_quote/Generate_quote.service.ts new file mode 100644 index 0000000..7f8257d --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Generate_quote/Generate_quote.service.ts @@ -0,0 +1,41 @@ +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 Generate_quoteservice{ + private baseURL = "Generate_quote/Generate_quote" ; 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/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Generate_quote/Generate_quote_cardvariable.ts b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Generate_quote/Generate_quote_cardvariable.ts new file mode 100644 index 0000000..0010d56 --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Generate_quote/Generate_quote_cardvariable.ts @@ -0,0 +1,4 @@ +export const Generate_quotecardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Manufacturer/Manufacturer.component.html b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Manufacturer/Manufacturer.component.html new file mode 100644 index 0000000..67c59b4 --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Manufacturer/Manufacturer.component.html @@ -0,0 +1,315 @@ + +
+
+
+

Manufacturer

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Manufacturer Name + + + + + + 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/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Manufacturer/Manufacturer.component.scss b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Manufacturer/Manufacturer.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/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/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Manufacturer/Manufacturer.component.ts b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Manufacturer/Manufacturer.component.ts new file mode 100644 index 0000000..4e42e49 --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Manufacturer/Manufacturer.component.ts @@ -0,0 +1,220 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { 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, + ) { } +// 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], + + + + + }); // 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 + + + + } + + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + this.modalEdit = true; + } + onDelete(row) { + this.rowSelected = row; + this.modaldelete=true; + } + delete(id) + { + this.modaldelete = false; + console.log("in delete "+id); + this.mainService.delete(id).subscribe( + (data) => { + console.log(data); + this.ngOnInit(); + if (data) { this.toastr.success('Deleted successfully'); } + }); + } + onUpdate(id) { + this.modalEdit = false; + + + //console.log("in update"); + console.log("id " + id); + console.log(this.rowSelected); + //console.log("out update"); + this.mainService.update(id, this.rowSelected).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Update Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("update Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Updated"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Updated"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } +onCreate() { + this.modalAdd=false; + + + this.mainService.create(this.entryForm.value).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Added Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("Added Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Added"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Added"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } + goToAdd(row) { +this.modalAdd = true; this.submitted = false; + + + } + submitted = false; +onSubmit() { + console.log(this.entryForm.value); + this.submitted = true; + if (this.entryForm.invalid) { + return; + }this.onCreate(); + +} + + +// updateaction +} + diff --git a/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Manufacturer/Manufacturer.service.ts b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Manufacturer/Manufacturer.service.ts new file mode 100644 index 0000000..8bf0584 --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Manufacturer/Manufacturer.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 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/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Manufacturer/Manufacturer_cardvariable.ts b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Manufacturer/Manufacturer_cardvariable.ts new file mode 100644 index 0000000..d57ae46 --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Manufacturer/Manufacturer_cardvariable.ts @@ -0,0 +1,4 @@ +export const Manufacturercardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Notes_and_terms/Notes_and_terms.component.html b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Notes_and_terms/Notes_and_terms.component.html new file mode 100644 index 0000000..548b82d --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Notes_and_terms/Notes_and_terms.component.html @@ -0,0 +1,347 @@ + +
+
+
+

Notes and Terms

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Additional Notes + + + + Terms and Conditions + + + + + + Action + + + + + +{{user. additional_notes }} + + + + + + + + + + +
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/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Notes_and_terms/Notes_and_terms.component.scss b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Notes_and_terms/Notes_and_terms.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Notes_and_terms/Notes_and_terms.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/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Notes_and_terms/Notes_and_terms.component.ts b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Notes_and_terms/Notes_and_terms.component.ts new file mode 100644 index 0000000..0827177 --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Notes_and_terms/Notes_and_terms.component.ts @@ -0,0 +1,246 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Notes_and_termsservice} from './Notes_and_terms.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 { Notes_and_termscardvariable } from './Notes_and_terms_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Notes_and_terms', + templateUrl: './Notes_and_terms.component.html', + styleUrls: ['./Notes_and_terms.component.scss'] +}) +export class Notes_and_termsComponent implements OnInit { + cardButton = Notes_and_termscardvariable.cardButton; + cardmodeldata = Notes_and_termscardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Notes_and_termscardvariable.cardButton; + cardmodal; changeView(){ + this.isCardview = !this.isCardview; + } + beforeText(fieldtext: string): string { // Extract the text before the first '<' + const index = fieldtext.indexOf('<'); + return index !== -1 ? fieldtext.substring(0, index) : fieldtext; + } + afterText(fieldtext: string): string { // Extract the text after the last '>' + const index = fieldtext.lastIndexOf('>'); + return index !== -1 ? fieldtext.substring(index + 1) : ''; + } + transform(fieldtext: string): string { + const match = fieldtext.match(/<([^>]*)>/); + return match ? match[1] : ''; // Extract the text between '<' and '>' + } + userrole; + rowSelected :any= {}; + modaldelete=false; + modalEdit=false; + modalAdd= false; + public entryForm: FormGroup; + loading = false; + product; + modalOpenedforNewLine = false; + newLine:any; + additionalFieldsFromBackend: any[] = []; + formcode = 'Notes_and_terms_formCode' +tableName = 'Notes_and_terms'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Notes_and_termsservice, + private alertService: AlertService, + private toastr: ToastrService, + private _fb: FormBuilder, + ) { } +// component button + ngOnInit(): void { + if(this.cardmodeldata !== ''){ + this.cardmodal = JSON.parse(this.cardmodeldata); + this.dashboardArray = this.cardmodal.dashboard.slice(); + console.log(this.dashboardArray) + } + this.userrole=this.userInfoService.getRoles(); + this.getData(); + this.entryForm = this._fb.group({ +additional_notes : [null], + +terms_and_conditions : [null], + + + + + + + }); // component_button200 + // form code start + this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { + console.log(data); + const jsonArray = data.map((str) => JSON.parse(str)); + this.additionalFieldsFromBackend = jsonArray; + this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Notes_and_terms_formCode"); + console.log(this.checkFormCode); + console.log(this.additionalFieldsFromBackend); + if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) { + this.additionalFieldsFromBackend.forEach(field => { + if (field.formCode === this.formcode) { + if (!this.entryForm.contains(field.extValue)) { + // Add the control only if it doesn't exist in the form + this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue)); + } + } + }); + } + }); + console.log(this.entryForm.value); + // form code end + + + + + + } + + + + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + + + this.modalEdit = true; + } + onDelete(row) { + this.rowSelected = row; + this.modaldelete=true; + } + delete(id) + { + this.modaldelete = false; + console.log("in delete "+id); + this.mainService.delete(id).subscribe( + (data) => { + console.log(data); + this.ngOnInit(); + if (data) { this.toastr.success('Deleted successfully'); } + }); + } + onUpdate(id) { + this.modalEdit = false; + + + + + //console.log("in update"); + console.log("id " + id); + console.log(this.rowSelected); + //console.log("out update"); + this.mainService.update(id, this.rowSelected).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Update Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("update Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Updated"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Updated"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } +onCreate() { + this.modalAdd=false; + + + + + this.mainService.create(this.entryForm.value).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Added Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("Added Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Added"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Added"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } + goToAdd(row) { +this.modalAdd = true; this.submitted = false; + + + + + } + submitted = false; +onSubmit() { + console.log(this.entryForm.value); + this.submitted = true; + if (this.entryForm.invalid) { + return; + }this.onCreate(); + +} + + +rsModalterms_and_conditions = false; + goToReplaceStringterms_and_conditions (row){ + this.rowSelected = row; this.rsModalterms_and_conditions =true; } + +// updateaction +} + + + diff --git a/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Notes_and_terms/Notes_and_terms.service.ts b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Notes_and_terms/Notes_and_terms.service.ts new file mode 100644 index 0000000..8741e58 --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Notes_and_terms/Notes_and_terms.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 Notes_and_termsservice{ + private baseURL = "Notes_and_terms/Notes_and_terms" ; 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/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Notes_and_terms/Notes_and_terms_cardvariable.ts b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Notes_and_terms/Notes_and_terms_cardvariable.ts new file mode 100644 index 0000000..a617239 --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Notes_and_terms/Notes_and_terms_cardvariable.ts @@ -0,0 +1,4 @@ +export const Notes_and_termscardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Order_summary/Order_summary.component.html b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Order_summary/Order_summary.component.html new file mode 100644 index 0000000..9f29476 --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Order_summary/Order_summary.component.html @@ -0,0 +1,613 @@ + +
+
+
+

Order summary

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Line + + + + Product + + + + Description + + + + Unit Price + + + + Quantity + + + + + + GSt + + + + final Total + + + + + + Action + + + + + +{{user. line }} + + +{{user. product }} + + + + + +{{user. unit_price }} + + +{{user. quantity }} + + + + +{{user. gst }} + + +{{user. final_total }} + + + + + + + +
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/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Order_summary/Order_summary.component.scss b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Order_summary/Order_summary.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Order_summary/Order_summary.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/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Order_summary/Order_summary.component.ts b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Order_summary/Order_summary.component.ts new file mode 100644 index 0000000..fb641a8 --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Order_summary/Order_summary.component.ts @@ -0,0 +1,540 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Order_summaryservice} from './Order_summary.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 { Order_summarycardvariable } from './Order_summary_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Order_summary', + templateUrl: './Order_summary.component.html', + styleUrls: ['./Order_summary.component.scss'] +}) +export class Order_summaryComponent implements OnInit { + cardButton = Order_summarycardvariable.cardButton; + cardmodeldata = Order_summarycardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Order_summarycardvariable.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 = 'Order_summary_formCode' +tableName = 'Order_summary'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Order_summaryservice, + private alertService: AlertService, + private toastr: ToastrService, + private _fb: FormBuilder, + ) { } +// component button + ngOnInit(): void { + if(this.cardmodeldata !== ''){ + this.cardmodal = JSON.parse(this.cardmodeldata); + this.dashboardArray = this.cardmodal.dashboard.slice(); + console.log(this.dashboardArray) + } + this.userrole=this.userInfoService.getRoles(); + this.getData(); + this.entryForm = this._fb.group({ +line : [null,[Validators.required]], + +product : [null], + +description : [null], + +unit_price : [null, { updateOn: 'blur' }], + +quantity : [null,[Validators.required]], + + + +gst : [null,[Validators.required]], + +final_total : [null,[Validators.required]], + + + + + + + + + + + + + + + + + + + }); // 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 === "Order_summary_formCode"); + console.log(this.checkFormCode); + console.log(this.additionalFieldsFromBackend); + if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) { + this.additionalFieldsFromBackend.forEach(field => { + if (field.formCode === this.formcode) { + if (!this.entryForm.contains(field.extValue)) { + // Add the control only if it doesn't exist in the form + this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue)); + } + } + }); + } + }); + console.log(this.entryForm.value); + // form code end + + + + + + + + + + + + + + + + + + } + + + + + + + + + + + + + + + + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + + + + + + + +//calculated field start + + + this.totalunit_price= row.unit_price; + + + + this.totalquantity= row.quantity; + + +//calculated field end + + + + + + + this.modalEdit = true; + } + onDelete(row) { + this.rowSelected = row; + this.modaldelete=true; + } + delete(id) + { + this.modaldelete = false; + console.log("in delete "+id); + this.mainService.delete(id).subscribe( + (data) => { + console.log(data); + this.ngOnInit(); + if (data) { this.toastr.success('Deleted successfully'); } + }); + } + onUpdate(id) { + this.modalEdit = false; + + + + + + + + + + +//calculated field start + + +this.rowSelected.unit_price= this.totalunit_price; + + + +this.rowSelected.quantity= this.totalquantity; + + +this.onInputChangetotal (); + //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; + + + + + + + + + + +//calculated field start + + +this.entryForm.value.unit_price = this.totalunit_price ; + + + +this.entryForm.value.quantity = this.totalquantity ; + + +//calculated field end + + + + + + this.mainService.create(this.entryForm.value).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Added Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + + + + + + + + + + + + + }, (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; + + + + + + + + + + //calculated field start + + + + this.totalunit_price = ''; + + + + this.totalquantity = ''; + + + + + this.totaltotal = ''; + + //calculated field end + + + + + + + } + 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; } + +//currency field start + formatCurrencyunit_price () { + // Format the currency with two decimal places + this.rowSelected.unit_price = Number(this.rowSelected.unit_price ).toFixed(2); + // Remove commas from the formatted currency + this.rowSelected.unit_price = this.rowSelected.unit_price?.replace(/,/g, ''); } + //currency field end + + + + // calculated field code start + + + totalunit_price; + + + + totalquantity; + + + totaltotal ; + totalcalculateOperators = "Multiplication" +onInputChangetotal() { +const lastObj = 0 +const lastObjstring = '' + + + + const unit_price= this.totalunit_price|| ''; + + const unit_priceValue = parseFloat(this.totalunit_price) || 0; + + + + + + const quantity= this.totalquantity|| ''; + + const quantityValue = parseFloat(this.totalquantity) || 0; + + + +if (this.totalcalculateOperators =="Addition") { + this.totaltotal = ( + + + unit_priceValue + + + + + quantityValue + + + lastObj).toString(); +} +if (this.totalcalculateOperators == "Subtraction") { + this.totaltotal = ( + + + unit_priceValue - + + + + quantityValue - + + + lastObj).toString(); +} +if (this.totalcalculateOperators =="Multiplication") { + this.totaltotal = ( + + + + unit_priceValue * + + + + quantityValue * + + +lastObj).toString(); +} +if (this.totalcalculateOperators =="Division") { + + this.totaltotal = ( + + +unit_priceValue / + + + +quantityValue / + + +lastObj).toString(); + +} +if (this.totalcalculateOperators =="Concatination") { + this.totaltotal = + + +unit_price+ ' '+ + + + +quantity+ ' '+ + + lastObjstring +} +} + + + + + +// updateaction +} + + + + + + + + + + + + + + + diff --git a/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Order_summary/Order_summary.service.ts b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Order_summary/Order_summary.service.ts new file mode 100644 index 0000000..4ef1ef9 --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Order_summary/Order_summary.service.ts @@ -0,0 +1,49 @@ +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 Order_summaryservice{ + private baseURL = "Order_summary/Order_summary" ; 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/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Order_summary/Order_summary_cardvariable.ts b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Order_summary/Order_summary_cardvariable.ts new file mode 100644 index 0000000..4f02dc9 --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Order_summary/Order_summary_cardvariable.ts @@ -0,0 +1,4 @@ +export const Order_summarycardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Product_selection/Product_selection.component.html b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Product_selection/Product_selection.component.html new file mode 100644 index 0000000..509dc82 --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Product_selection/Product_selection.component.html @@ -0,0 +1,571 @@ + +
+
+
+

Product Selection

+
+
+ + + + + + + +
+ + + + Loading ... + +
{{error}}
+
+ + name + + + + Manufacturer + + + + Type + + + + Product + + + + Price + + + + Quantity + + + + + + + + Action + + + + + +{{user. name }} + + +{{user. manufacturername }} + + +{{user. typename }} + + +{{user. productname }} + + +{{user. price }} + + +{{user. quantity }} + + + + + + + + + +
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/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Product_selection/Product_selection.component.scss b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Product_selection/Product_selection.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Product_selection/Product_selection.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/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Product_selection/Product_selection.component.ts b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Product_selection/Product_selection.component.ts new file mode 100644 index 0000000..0f0174e --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Product_selection/Product_selection.component.ts @@ -0,0 +1,442 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Product_selectionservice} from './Product_selection.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 { Product_selectioncardvariable } from './Product_selection_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Product_selection', + templateUrl: './Product_selection.component.html', + styleUrls: ['./Product_selection.component.scss'] +}) +export class Product_selectionComponent implements OnInit { + cardButton = Product_selectioncardvariable.cardButton; + cardmodeldata = Product_selectioncardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Product_selectioncardvariable.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_selection_formCode' +tableName = 'Product_selection'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Product_selectionservice, + private alertService: AlertService, + private toastr: ToastrService, + private _fb: FormBuilder, + ) { } +// component button + public insertFormAdd_to_order_Btn: FormGroup; + + + ngOnInit(): void { + if(this.cardmodeldata !== ''){ + this.cardmodal = JSON.parse(this.cardmodeldata); + this.dashboardArray = this.cardmodal.dashboard.slice(); + console.log(this.dashboardArray) + } + this.userrole=this.userInfoService.getRoles(); + this.getData(); + this.entryForm = this._fb.group({ +name : [null], + +manufacturer : [null], + +type : [null], + +product : [null], + +price : [null, { updateOn: 'blur' }], + +quantity : [null,[Validators.required]], + + + + + + + + + + + + + + + + + + + }); // component_button200 +// inser code start + this.insertFormAdd_to_order_Btn = this._fb.group({ + type: '', + price: '', + name: '', + manufacturer: '', + product: '', + quantity: '', + add_to_order_btn: '', + }); + + // insert code end + + // form code start + this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { + console.log(data); + const jsonArray = data.map((str) => JSON.parse(str)); + this.additionalFieldsFromBackend = jsonArray; + this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Product_selection_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(); + +this.getalltype(); + +this.getallproduct(); + + + + + + + + + } + + + + + + + + + + + + + + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + + + + + + + + + + + + + this.modalEdit = true; + } + onDelete(row) { + this.rowSelected = row; + this.modaldelete=true; + } + delete(id) + { + this.modaldelete = false; + console.log("in delete "+id); + this.mainService.delete(id).subscribe( + (data) => { + console.log(data); + this.ngOnInit(); + if (data) { this.toastr.success('Deleted successfully'); } + }); + } + onUpdate(id) { + this.modalEdit = false; + + + + + + + + + + + + + + + //console.log("in update"); + console.log("id " + id); + console.log(this.rowSelected); + //console.log("out update"); + this.mainService.update(id, this.rowSelected).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Update Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + + + + + + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("update Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Updated"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Updated"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } +onCreate() { + this.modalAdd=false; + + + + + + + + + + + + + + + this.mainService.create(this.entryForm.value).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Added Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + + + + + + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("Added Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Added"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Added"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } + goToAdd(row) { +this.modalAdd = true; this.submitted = false; + + + + + + + + + + + + + + + } + submitted = false; +onSubmit() { + console.log(this.entryForm.value); + this.submitted = true; + if (this.entryForm.invalid) { + return; + }this.onCreate(); + +} + + +selectmanufacturer ; +getallmanufacturer() { + this.mainService.getAllmanufacturer().subscribe(data=>{ +this.selectmanufacturer = data; +console.log(data); +},(error) => { console.log(error); }); } + +selecttype ; +getalltype() { + this.mainService.getAlltype().subscribe(data=>{ +this.selecttype = data; +console.log(data); +},(error) => { console.log(error); }); } + +selectproduct ; +getallproduct() { + this.mainService.getAllproduct().subscribe(data=>{ +this.selectproduct = data; +console.log(data); +},(error) => { console.log(error); }); } + +//currency field start + formatCurrencyprice () { + // Format the currency with two decimal places + this.rowSelected.price = Number(this.rowSelected.price ).toFixed(2); + // Remove commas from the formatted currency + this.rowSelected.price = this.rowSelected.price?.replace(/,/g, ''); } + //currency field end + + + + + +// updateaction + +// insert button + + +modalInsertAdd_to_order_Btn = false; +goToInsertAdd_to_order_Btn() { + this.modalInsertAdd_to_order_Btn=true; + } +onSubmitInsertAdd_to_order_Btn() { + console.log(this.insertFormAdd_to_order_Btn.value); + this.submitted=true; + if (this.insertFormAdd_to_order_Btn.invalid) { + return; + } + this.onInsertAdd_to_order_Btn(); +} +onInsertAdd_to_order_Btn() { + this.modalInsertAdd_to_order_Btn=false; + this.mainService.insertAdd_to_order_BtnProduct_selection(this.insertFormAdd_to_order_Btn.value).subscribe(data => { + console.log('After add',data) + if (data.status >=200 && data.status <=209) { + this.toastr.success('Added successfully'); + } +if (data && data.id != null) { + this.toastr.success('Added successfully'); + } this.ngOnInit(); + },(error) => { + console.error(error); + if ( error.status >= 200 && error.status <= 299) { + this.toastr.success("Update Successfully"); + } + if ( error.status >= 400 && error.status <= 499) { + this.toastr.error("Update Failed"); + } + if ( error.status >= 500 && error.status <= 599) { + this.toastr.error("Server Error"); + } + this.ngOnInit(); + }); + this.insertFormAdd_to_order_Btn.reset(); + } +// insert buuton code end + + +} + + + + + + + + + + diff --git a/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Product_selection/Product_selection.service.ts b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Product_selection/Product_selection.service.ts new file mode 100644 index 0000000..1c2b130 --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Product_selection/Product_selection.service.ts @@ -0,0 +1,55 @@ +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 Product_selectionservice{ + private baseURL = "Product_selection/Product_selection" ; 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"); } + +getAlltype(): Observable { +return this.apiRequest.get("Type_ListFilter1/Type_ListFilter1"); } + +getAllproduct(): Observable { +return this.apiRequest.get("Productss_ListFilter1/Productss_ListFilter1"); } + + + + + + + +// updateaction +// insert button code start +insertAdd_to_order_BtnProduct_selection(Product_selection: any): Observable { + return this.apiRequest.post(`Product_selection/Product_selection/Product_selection_insert`, Product_selection); +} + +} \ No newline at end of file diff --git a/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Product_selection/Product_selection_cardvariable.ts b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Product_selection/Product_selection_cardvariable.ts new file mode 100644 index 0000000..8ad9027 --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Product_selection/Product_selection_cardvariable.ts @@ -0,0 +1,4 @@ +export const Product_selectioncardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Productss/Productss.component.html b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Productss/Productss.component.html new file mode 100644 index 0000000..80e5de1 --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Productss/Productss.component.html @@ -0,0 +1,315 @@ + +
+
+
+

Productss

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Product Name + + + + + + Action + + + + + +{{user. product_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/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Productss/Productss.component.scss b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Productss/Productss.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Productss/Productss.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/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Productss/Productss.component.ts b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Productss/Productss.component.ts new file mode 100644 index 0000000..dc04c61 --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Productss/Productss.component.ts @@ -0,0 +1,220 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Productssservice} from './Productss.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 { Productsscardvariable } from './Productss_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Productss', + templateUrl: './Productss.component.html', + styleUrls: ['./Productss.component.scss'] +}) +export class ProductssComponent implements OnInit { + cardButton = Productsscardvariable.cardButton; + cardmodeldata = Productsscardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Productsscardvariable.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 = 'Productss_formCode' +tableName = 'Productss'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Productssservice, + private alertService: AlertService, + private toastr: ToastrService, + private _fb: FormBuilder, + ) { } +// component button + ngOnInit(): void { + if(this.cardmodeldata !== ''){ + this.cardmodal = JSON.parse(this.cardmodeldata); + this.dashboardArray = this.cardmodal.dashboard.slice(); + console.log(this.dashboardArray) + } + this.userrole=this.userInfoService.getRoles(); + this.getData(); + this.entryForm = this._fb.group({ +product_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 === "Productss_formCode"); + console.log(this.checkFormCode); + console.log(this.additionalFieldsFromBackend); + if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) { + this.additionalFieldsFromBackend.forEach(field => { + if (field.formCode === this.formcode) { + if (!this.entryForm.contains(field.extValue)) { + // Add the control only if it doesn't exist in the form + this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue)); + } + } + }); + } + }); + console.log(this.entryForm.value); + // form code end + + + + } + + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + this.modalEdit = true; + } + onDelete(row) { + this.rowSelected = row; + this.modaldelete=true; + } + delete(id) + { + this.modaldelete = false; + console.log("in delete "+id); + this.mainService.delete(id).subscribe( + (data) => { + console.log(data); + this.ngOnInit(); + if (data) { this.toastr.success('Deleted successfully'); } + }); + } + onUpdate(id) { + this.modalEdit = false; + + + //console.log("in update"); + console.log("id " + id); + console.log(this.rowSelected); + //console.log("out update"); + this.mainService.update(id, this.rowSelected).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Update Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("update Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Updated"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Updated"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } +onCreate() { + this.modalAdd=false; + + + this.mainService.create(this.entryForm.value).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Added Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("Added Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Added"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Added"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } + goToAdd(row) { +this.modalAdd = true; this.submitted = false; + + + } + submitted = false; +onSubmit() { + console.log(this.entryForm.value); + this.submitted = true; + if (this.entryForm.invalid) { + return; + }this.onCreate(); + +} + + +// updateaction +} + diff --git a/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Productss/Productss.service.ts b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Productss/Productss.service.ts new file mode 100644 index 0000000..bde3b39 --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Productss/Productss.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 Productssservice{ + private baseURL = "Productss/Productss" ; 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/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Productss/Productss_cardvariable.ts b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Productss/Productss_cardvariable.ts new file mode 100644 index 0000000..bdcc01c --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Productss/Productss_cardvariable.ts @@ -0,0 +1,4 @@ +export const Productsscardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Type/Type.component.html b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Type/Type.component.html new file mode 100644 index 0000000..00f9d69 --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Type/Type.component.html @@ -0,0 +1,315 @@ + +
+
+
+

Type

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Type name + + + + + + Action + + + + + +{{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/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Type/Type.component.scss b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Type/Type.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Type/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/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Type/Type.component.ts b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Type/Type.component.ts new file mode 100644 index 0000000..862aa1b --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Type/Type.component.ts @@ -0,0 +1,220 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Typeservice} from './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 { Typecardvariable } from './Type_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Type', + templateUrl: './Type.component.html', + styleUrls: ['./Type.component.scss'] +}) +export class TypeComponent implements OnInit { + cardButton = Typecardvariable.cardButton; + cardmodeldata = Typecardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = 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 = 'Type_formCode' +tableName = 'Type'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Typeservice, + private alertService: AlertService, + private toastr: ToastrService, + private _fb: FormBuilder, + ) { } +// component button + ngOnInit(): void { + if(this.cardmodeldata !== ''){ + this.cardmodal = JSON.parse(this.cardmodeldata); + this.dashboardArray = this.cardmodal.dashboard.slice(); + console.log(this.dashboardArray) + } + this.userrole=this.userInfoService.getRoles(); + this.getData(); + this.entryForm = this._fb.group({ +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 === "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 + + + + } + + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + this.modalEdit = true; + } + onDelete(row) { + this.rowSelected = row; + this.modaldelete=true; + } + delete(id) + { + this.modaldelete = false; + console.log("in delete "+id); + this.mainService.delete(id).subscribe( + (data) => { + console.log(data); + this.ngOnInit(); + if (data) { this.toastr.success('Deleted successfully'); } + }); + } + onUpdate(id) { + this.modalEdit = false; + + + //console.log("in update"); + console.log("id " + id); + console.log(this.rowSelected); + //console.log("out update"); + this.mainService.update(id, this.rowSelected).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Update Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("update Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Updated"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Updated"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } +onCreate() { + this.modalAdd=false; + + + this.mainService.create(this.entryForm.value).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Added Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("Added Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Added"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Added"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } + goToAdd(row) { +this.modalAdd = true; this.submitted = false; + + + } + submitted = false; +onSubmit() { + console.log(this.entryForm.value); + this.submitted = true; + if (this.entryForm.invalid) { + return; + }this.onCreate(); + +} + + +// updateaction +} + diff --git a/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Type/Type.service.ts b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Type/Type.service.ts new file mode 100644 index 0000000..14590e5 --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Type/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 Typeservice{ + private baseURL = "Type/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/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Type/Type_cardvariable.ts b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Type/Type_cardvariable.ts new file mode 100644 index 0000000..0d6180d --- /dev/null +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/order_estimation/Type/Type_cardvariable.ts @@ -0,0 +1,4 @@ +export const Typecardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main-routing.module.ts b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main-routing.module.ts index 4e04639..dd8e906 100644 --- a/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main-routing.module.ts +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main-routing.module.ts @@ -1,3 +1,11 @@ +import { Generate_quoteComponent } from './BuilderComponents/order_estimation/Generate_quote/Generate_quote.component'; +import { Notes_and_termsComponent } from './BuilderComponents/order_estimation/Notes_and_terms/Notes_and_terms.component'; +import { Order_summaryComponent } from './BuilderComponents/order_estimation/Order_summary/Order_summary.component'; +import { ManufacturerComponent } from './BuilderComponents/order_estimation/Manufacturer/Manufacturer.component'; +import { ProductssComponent } from './BuilderComponents/order_estimation/Productss/Productss.component'; +import { TypeComponent } from './BuilderComponents/order_estimation/Type/Type.component'; +import { Product_selectionComponent } from './BuilderComponents/order_estimation/Product_selection/Product_selection.component'; +import { Customer_informationComponent } from './BuilderComponents/order_estimation/Customer_information/Customer_information.component'; import { SequencegenaratorComponent } from './fnd/sequencegenarator/sequencegenarator.component'; import { Component, NgModule } from '@angular/core'; @@ -257,6 +265,30 @@ const routes: Routes = [ // buildercomponents +{path:'Generate_quote',component:Generate_quoteComponent}, + + +{path:'Notes_and_terms',component:Notes_and_termsComponent}, + + +{path:'Order_summary',component:Order_summaryComponent}, + + +{path:'Manufacturer',component:ManufacturerComponent}, + + +{path:'Productss',component:ProductssComponent}, + + +{path:'Type',component:TypeComponent}, + + +{path:'Product_selection',component:Product_selectionComponent}, + + +{path:'Customer_information',component:Customer_informationComponent}, + + diff --git a/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main.module.ts b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main.module.ts index ae29aea..3b3540e 100644 --- a/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main.module.ts +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main.module.ts @@ -1,3 +1,11 @@ +import { Generate_quoteComponent } from './BuilderComponents/order_estimation/Generate_quote/Generate_quote.component'; +import { Notes_and_termsComponent } from './BuilderComponents/order_estimation/Notes_and_terms/Notes_and_terms.component'; +import { Order_summaryComponent } from './BuilderComponents/order_estimation/Order_summary/Order_summary.component'; +import { ManufacturerComponent } from './BuilderComponents/order_estimation/Manufacturer/Manufacturer.component'; +import { ProductssComponent } from './BuilderComponents/order_estimation/Productss/Productss.component'; +import { TypeComponent } from './BuilderComponents/order_estimation/Type/Type.component'; +import { Product_selectionComponent } from './BuilderComponents/order_estimation/Product_selection/Product_selection.component'; +import { Customer_informationComponent } from './BuilderComponents/order_estimation/Customer_information/Customer_information.component'; import { CommonModule } from '@angular/common'; import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; @@ -129,6 +137,30 @@ import { Stepper_workflowComponent } from './BuilderComponents/stepperworkflow/S // buildercomponents +Generate_quoteComponent, + + +Notes_and_termsComponent, + + +Order_summaryComponent, + + +ManufacturerComponent, + + +ProductssComponent, + + +TypeComponent, + + +Product_selectionComponent, + + +Customer_informationComponent, + + Stepper_workflowComponent, diff --git a/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/assets/i18n/en.json b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/assets/i18n/en.json index 3d60440..3ba4fd4 100644 --- a/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/assets/i18n/en.json +++ b/orderestimate5-orderestimationfront-f/authsec_angular/frontend/angular-clarity-master/src/assets/i18n/en.json @@ -1,4 +1,4 @@ -{ + { "BREADCRUMB_HOME": "Home", "USER_GROUP_MAINTENANCE": "User Group Maintenance", "BREADCRUMB_ABOUT_US": "About Us", @@ -17,23 +17,25 @@ "IMPORT": "Import", "EXPORT_XLSX": "Export as XLSX", "ADD": "Add", - "MENU_ACCESS_CONTROL": "Menu Access Control", - "EDIT_MODE": "Edit Mode", - "FOR": "For", - "RELOAD": "Reload", - "SHOW_ALL": "Show All", - "ONLY_MAIN_MENU": "Only Main Menu", - "NO_DATA_AVAILABLE": "No data available", - "NO": "No", - "MENU_ITEM_NAME": "Menu Item Name", - "VIEW": "View", - "CREATE": "Create", - "EDIT": "Edit", - "DELETE": "Delete", - "QUERY": "Query", - "EXPORT": "Export", - "SYNC": "Sync", - "editMode": "Edit Mode", + + "MENU_ACCESS_CONTROL": "Menu Access Control", + "EDIT_MODE": "Edit Mode", + "FOR": "For", + "RELOAD": "Reload", + "SHOW_ALL": "Show All", + "ONLY_MAIN_MENU": "Only Main Menu", + + "NO_DATA_AVAILABLE": "No data available", + "NO": "No", + "MENU_ITEM_NAME": "Menu Item Name", + "VIEW": "View", + "CREATE": "Create", + "EDIT": "Edit", + "DELETE": "Delete", + "QUERY": "Query", + "EXPORT": "Export", + "SYNC": "Sync", + "editMode": "Edit Mode", "setupCode": "Setup Code", "value": "Value", "schedulerTimer": "Scheduler Timer", @@ -60,9 +62,11 @@ "oidAdminUserTooltip": "Admin user for OID access", "oidServerPort": "OID Server Port", "oidServerPortTooltip": "Port number for the OID server", - "companyDisplayName": "Company Display Name", + + + "companyDisplayName": "Company Display Name", "systemParameter": "System Parameter", - "userDefaultGroup": "User Default Group", + "userDefaultGroup": "User Default Group", "defaultDepartment": "Default Department", "defaultPosition": "Default Position", "singleCharge": "Single Charge", @@ -93,45 +97,49 @@ "areYouSureDelete": "Are You Sure Want to delete?", "updateAccessType": "Update Access Type", "update": "Update", - "SEQ_GENERATOR": "Sequence Generator", - "CURRENT_NO": "Current No", - "NAME": "Name", - "PREFIX": "Prefix", - "SEPARATOR": "Separator", - "SEQUENCE_SIZE": "Sequence Size", - "REPORT": "Report", - "REPORT_RUNNER": "Report Runner", - "REPORT_NAME": "Report Name", - "REPORT_DESCRIPTION": "Report Description", - "API_REGISTERY": "Api Registery", - "API_REGISTERY_DESCRIPTION": "Api Registery Description", - "ACTIVE": "Active", - "FOLDER_NAME": "Folder Name", - "ACTION": "Action", - "SET_UP": "Set Up", - "USERS_PER_PAGE": "Users per page", - "OF": "of", - "USERS": "users", - "ARE_YOU_SURE": "Are you sure you want to delete?", - "CANCEL": "Cancel", - "GO_TO": "Go To", - "ALL_REPORTS": "All Reports", - "ALL_REPORT": "All Report", - "REPORT_BUILDER_SQL": "Report Builder (SQL)", - "REPORT_BUILDER_URL": "Report Builder (URL)", - "LOADING_MESSAGE": "Dashboard could be found. Loading..", - "START_FROM_SCRATCH": "Start from scratch", - "IMPORT_TEMPLATE": "Import from a template", - "IMPORT_PUBLIC_PROJECT": "Import from public project", - "DELETE_CONFIRMATION": "Are You Sure Want to delete?", - "LAST_UPDATED_ON": "Last Updated On:", - "CREATE_NEW_REPORT": "Create New Report", - "ADD_MODE": "Add Mode", - "ENTER_NAME": "Enter name", - "DESCRIPTION": "Description", - "ENTER_DESCRIPTION": "Enter Description", - "SUBMIT": "Submit", - "home": "Home", + + "SEQ_GENERATOR": "Sequence Generator", + "CURRENT_NO": "Current No", + "NAME": "Name", + "PREFIX": "Prefix", + "SEPARATOR": "Separator", + "SEQUENCE_SIZE": "Sequence Size", + "REPORT": "Report", + "REPORT_RUNNER": "Report Runner", + + "REPORT_NAME": "Report Name", + "REPORT_DESCRIPTION": "Report Description", + "ACTIVE": "Active", + "FOLDER_NAME": "Folder Name", + "ACTION": "Action", + "SET_UP": "Set Up", + + "USERS_PER_PAGE": "Users per page", + "OF": "of", + "USERS": "users", + "ARE_YOU_SURE": "Are you sure you want to delete?", + "CANCEL": "Cancel", + "GO_TO": "Go To", + "ALL_REPORTS": "All Reports", + "ALL_REPORT": "All Report", + "REPORT_BUILDER_SQL": "Report Builder (SQL)", + "REPORT_BUILDER_URL": "Report Builder (URL)", + "LOADING_MESSAGE": "Dashboard could be found. Loading..", + "START_FROM_SCRATCH": "Start from scratch", + "IMPORT_TEMPLATE": "Import from a template", + "IMPORT_PUBLIC_PROJECT": "Import from public project", + "DELETE_CONFIRMATION": "Are You Sure Want to delete?", + + "LAST_UPDATED_ON": "Last Updated On:", + "CREATE_NEW_REPORT": "Create New Report", + "ADD_MODE": "Add Mode", + + "ENTER_NAME": "Enter name", + "DESCRIPTION": "Description", + "ENTER_DESCRIPTION": "Enter Description", + + "SUBMIT": "Submit", + "home": "Home", "dashboard": "Dashboard", "all_dashboard": "All Dashboard", "dashboard_builder": "Dashboard Builder", @@ -203,8 +211,10 @@ "GROUP_LEVEL": "Group Level", "STATUS": "Status", "UPDATED_DATE": "Updated Date", + "RECORDS_PER_PAGE": "Record per page", "IMPORT_FILE": "Import File", + "UPDATE": "Update", "ARE_YOU_SURE_DELETE": "Are You Sure Want to delete?", "THIS_FIELD_REQUIRED": "*This field is Required", @@ -216,10 +226,51 @@ "MENU_ACTION_LINK": "Menu Action Link", "STATUS": "Status", "SUB_MENU": "Sub Menu", - "Stt": "Stt", - "OneToManyExtension": "OneToManyExtension", - "studentname": "studentname", - "description": "description", - "Studenthigh": "Studenthigh", - "Name": "Name" + "Package_500k": "Package_500k", + "LT_Panel_Monitoring": "LT_Panel_Monitoring", + "Description": "Description", + "Customer_Name": "Customer_Name", + "Notes_and_terms": "Notes_and_terms", + "Contact_Person": "Contact_Person", + "Product": "Product", + "GSt": "GSt", + "Phone_Number": "Phone_Number", + "Compressed_Air-_Gas_Monitoring": "Compressed_Air-_Gas_Monitoring", + "DG_Monitoring-without_fuel_": "DG_Monitoring-without_fuel_", + "Add_to_order_Btn": "Add_to_order_Btn", + "final_Total": "final_Total", + "Additional_Notes": "Additional_Notes", + "Water_Management-STP/ETP": "Water_Management-STP/ETP", + "Genrate_Quote": "Genrate_Quote", + "Manufacturer": "Manufacturer", + "Reset_btn": "Reset_btn", + "Deployment_Type": "Deployment_Type", + "Generate_quote": "Generate_quote", + "Package_300k": "Package_300k", + "DG_Monitoring-with_fuel_": "DG_Monitoring-with_fuel_", + "APFC_Panel_Monitoring": "APFC_Panel_Monitoring", + "Product_selection": "Product_selection", + "Active_Energy": "Active_Energy", + "HT_Panel_Monitoring": "HT_Panel_Monitoring", + "Terms_and_Conditions": "Terms_and_Conditions", + "Email_Address": "Email_Address", + "Customer_information": "Customer_information", + "Quantity": "Quantity", + "Product_Name": "Product_Name", + "UPS_Monitoring": "UPS_Monitoring", + "Productss": "Productss", + "Line": "Line", + "Manufacturer_Name": "Manufacturer_Name", + "Water_Management-Water_Monitoring": "Water_Management-Water_Monitoring", + "Type": "Type", + "Type_name": "Type_name", + "Price": "Price", + "Busbar_Monitoring": "Busbar_Monitoring", + "Total": "Total", + "name": "name", + "Order_summary": "Order_summary", + "Package_400k": "Package_400k", + "Customer_Address": "Customer_Address", + "Compressed_Air-LPG/O2/N2/CO2": "Compressed_Air-LPG/O2/N2/CO2", + "Unit_Price": "Unit_Price" } \ No newline at end of file