diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/Builders/Services/BuilderService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/Builders/Services/BuilderService.java index 11edc5f..62f7a01 100644 --- a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/Builders/Services/BuilderService.java +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/Builders/Services/BuilderService.java @@ -69,6 +69,156 @@ public class BuilderService { executeDump(true); // ADD OTHER SERVICE +addCustomMenu( "Visa_app_order", "Transcations"); + + +addCustomMenu( "Paget", "Transcations"); + + +addCustomMenu( "Groupss", "Transcations"); + + +addCustomMenu( "Media", "Transcations"); + + +addCustomMenu( "Site", "Transcations"); + + +addCustomMenu( "Refrreres", "Transcations"); + + +addCustomMenu( "Refrreres_line", "Transcations"); + + +addCustomMenu( "S_m_s", "Transcations"); + + +addCustomMenu( "Xero", "Transcations"); + + +addCustomMenu( "Sage_pays", "Transcations"); + + +addCustomMenu( "Coupon", "Transcations"); + + +addCustomMenu( "Notification", "Transcations"); + + +addCustomMenu( "Status", "Transcations"); + + +addCustomMenu( "Nationality", "Transcations"); + + +addCustomMenu( "Visa_status", "Transcations"); + + +addCustomMenu( "Emails", "Transcations"); + + +addCustomMenu( "Refferere_report", "Transcations"); + + +addCustomMenu( "Refferere_report_line", "Transcations"); + + +addCustomMenu( "Customer_report", "Transcations"); + + +addCustomMenu( "Supplier_report", "Transcations"); + + +addCustomMenu( "Supplier_report_line", "Transcations"); + + +addCustomMenu( "Agent_report", "Transcations"); + + +addCustomMenu( "Agent_report_line", "Transcations"); + + +addCustomMenu( "Sage_pay", "Transcations"); + + +addCustomMenu( "Xero_invoices_line", "Transcations"); + + +addCustomMenu( "Xero_invoices", "Transcations"); + + +addCustomMenu( "Visa_prices", "Transcations"); + + +addCustomMenu( "Visa_processing_time", "Transcations"); + + +addCustomMenu( "Visa_duration", "Transcations"); + + +addCustomMenu( "Visa_billing", "Transcations"); + + +addCustomMenu( "Cost_sheet_upload", "Transcations"); + + +addCustomMenu( "Upload_visa", "Transcations"); + + +addCustomMenu( "Deleted", "Transcations"); + + +addCustomMenu( "Deleted_child", "Transcations"); + + +addCustomMenu( "Completed_or_archive", "Transcations"); + + +addCustomMenu( "Completed_or_archive_child", "Transcations"); + + +addCustomMenu( "Rejected", "Transcations"); + + +addCustomMenu( "Rejected_child", "Transcations"); + + +addCustomMenu( "Refund", "Transcations"); + + +addCustomMenu( "Refund_child", "Transcations"); + + +addCustomMenu( "Processing_agent_child", "Transcations"); + + +addCustomMenu( "Processing_agent", "Transcations"); + + +addCustomMenu( "Processing_customer", "Transcations"); + + +addCustomMenu( "Processing_customer_child", "Transcations"); + + +addCustomMenu( "Pending_agent", "Transcations"); + + +addCustomMenu( "Pending_agent_child", "Transcations"); + + +addCustomMenu( "Pending_customer_child", "Transcations"); + + +addCustomMenu( "Staff_application", "Transcations"); + + +addCustomMenu( "Pending_customer", "Transcations"); + + +addCustomMenu( "Staffappchild", "Transcations"); + + System.out.println("dashboard and menu inserted..."); diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/Deleted_childController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/Deleted_childController.java new file mode 100644 index 0000000..7c6b6dd --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Controllers/Deleted_childController.java @@ -0,0 +1,147 @@ +package com.realnet.basicp1.Controllers; +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; +import com.fasterxml.jackson.core.JsonProcessingException; +import org.springframework.web.bind.annotation.CrossOrigin; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.realnet.config.EmailService; +import com.realnet.users.entity1.AppUser; +import com.realnet.users.service1.AppUserServiceImpl; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.springframework.data.domain.*; +import com.realnet.fnd.response.EntityResponse; +import org.springframework.http.*; +import org.springframework.beans.factory.annotation.*; +import com.realnet.basicp1.Entity.Deleted_child; +import com.realnet.basicp1.Services.Deleted_childService ; + + + + + + + + + + + + + + + + + + +@RequestMapping(value = "/Deleted_child") + @CrossOrigin("*") +@RestController +public class Deleted_childController { + @Autowired + private Deleted_childService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + + + + + @PostMapping("/Deleted_child") + public Deleted_child Savedata(@RequestBody Deleted_child data) { + Deleted_child save = Service.Savedata(data) ; + + + + + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Deleted_child/{id}") + public Deleted_child update(@RequestBody Deleted_child data,@PathVariable Integer id ) { + Deleted_child update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Deleted_child/getall/page") + public Page getall(@RequestParam(value = "page", required = false) Integer page, + @RequestParam(value = "size", required = false) Integer size) { + Pageable paging = PageRequest.of(page, size); + Page get = Service.getAllWithPagination(paging); + + return get; + + } + @GetMapping("/Deleted_child") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Deleted_child") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Deleted_child/{id}") + public Deleted_child getdetailsbyId(@PathVariable Integer id ) { + Deleted_child get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Deleted_child/{id}") + public ResponseEntity delete_by_id(@PathVariable Integer id ) { + Service.delete_by_id(id); + return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK); + + } + + + + + + + + + + + + + + + + + + + +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Deleted_child.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Deleted_child.java new file mode 100644 index 0000000..dd53be4 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Entity/Deleted_child.java @@ -0,0 +1,56 @@ +package com.realnet.basicp1.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + + + + + + + + + @Entity + @Data + public class Deleted_child extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String full_name; + +private String agent; + +private boolean supplier_acknowledged; + +private String status; + +private String entry_date; + +private String application_code; + +private String email_id; + + private String phone_number; + +private String supplier; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/Deleted_childRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/Deleted_childRepository.java new file mode 100644 index 0000000..e8e5134 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Repository/Deleted_childRepository.java @@ -0,0 +1,42 @@ +package com.realnet.basicp1.Repository; + + +import org.springframework.data.domain.Page; +import org.springframework.data.domain.Pageable; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.Query; + +import org.springframework.stereotype.Repository; +import java.util.*; + + + + + + + + + + + + + + + + + + + + + +import com.realnet.basicp1.Entity.Deleted_child; + +@Repository +public interface Deleted_childRepository extends JpaRepository { + +@Query(value = "select * from deleted_child where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from deleted_child where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/Deleted_childService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/Deleted_childService.java new file mode 100644 index 0000000..645daa4 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/basicp1/Services/Deleted_childService.java @@ -0,0 +1,153 @@ +package com.realnet.basicp1.Services; +import com.realnet.basicp1.Repository.Deleted_childRepository; +import com.realnet.basicp1.Entity.Deleted_child +;import java.util.*; + +import org.springframework.beans.factory.annotation.Autowired; +import com.realnet.SequenceGenerator.Service.SequenceService; +import org.springframework.data.domain.Page; +import com.realnet.realm.Entity.Realm; +import com.realnet.realm.Services.RealmService; +import org.springframework.data.domain.Pageable; +import org.springframework.http.*; +import com.realnet.users.service1.AppUserServiceImpl; +import com.realnet.users.entity1.AppUser; + + + + + + + + + + + + + + + + + + + import org.springframework.stereotype.Service; + +@Service + public class Deleted_childService { +@Autowired +private Deleted_childRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + + + + + + + +public Deleted_child Savedata(Deleted_child data) { + + + + + + + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Deleted_child save = Repository.save(data); + return save; + } + + +// get all with pagination + public Page getAllWithPagination(Pageable page) { + return Repository.findAll(page, getUser().getUserId()); + } +public List getdetails() { + List realm = realmService.findByUserId(getUser().getUserId()); +List all = Repository.findAll(getUser().getUserId()); + + return all ; } + + +public Deleted_child getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Deleted_child update(Deleted_child data,Integer id) { + Deleted_child old = Repository.findById(id).get(); +old.setFull_name(data.getFull_name()); + +old.setAgent(data.getAgent()); + +old.setSupplier_acknowledged (data.isSupplier_acknowledged()); + +old.setStatus(data.getStatus()); + +old.setEntry_date(data.getEntry_date()); + +old.setApplication_code(data.getApplication_code()); + +old.setEmail_id(data.getEmail_id()); + +old.setPhone_number(data.getPhone_number()); + +old.setSupplier(data.getSupplier()); + +final Deleted_child test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Agent_reportController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Agent_reportController.java new file mode 100644 index 0000000..9eab138 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Agent_reportController.java @@ -0,0 +1,171 @@ +package com.realnet.vpspack.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.vpspack.Entity.Agent_report; +import com.realnet.vpspack.Services.Agent_reportService ; + + + + + + + + + + + + + + + + + + + + + + + + +@RequestMapping(value = "/Agent_report") + @CrossOrigin("*") +@RestController +public class Agent_reportController { + @Autowired + private Agent_reportService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + + + + + + + + + + + @PostMapping("/Agent_report") + public Agent_report Savedata(@RequestBody Agent_report data) { + Agent_report save = Service.Savedata(data) ; + + + + + + + + + + + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Agent_report/{id}") + public Agent_report update(@RequestBody Agent_report data,@PathVariable Integer id ) { + Agent_report update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Agent_report/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("/Agent_report") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Agent_report") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Agent_report/{id}") + public Agent_report getdetailsbyId(@PathVariable Integer id ) { + Agent_report get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Agent_report/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Agent_report_lineController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Agent_report_lineController.java new file mode 100644 index 0000000..5bb674f --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Agent_report_lineController.java @@ -0,0 +1,179 @@ +package com.realnet.vpspack.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.vpspack.Entity.Agent_report_line; +import com.realnet.vpspack.Services.Agent_report_lineService ; + + + + + + + + + + + + + + + + + + + + + + + + + + +@RequestMapping(value = "/Agent_report_line") + @CrossOrigin("*") +@RestController +public class Agent_report_lineController { + @Autowired + private Agent_report_lineService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + + + + + + + + + + + + + @PostMapping("/Agent_report_line") + public Agent_report_line Savedata(@RequestBody Agent_report_line data) { + Agent_report_line save = Service.Savedata(data) ; + + + + + + + + + + + + + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Agent_report_line/{id}") + public Agent_report_line update(@RequestBody Agent_report_line data,@PathVariable Integer id ) { + Agent_report_line update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Agent_report_line/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("/Agent_report_line") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Agent_report_line") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Agent_report_line/{id}") + public Agent_report_line getdetailsbyId(@PathVariable Integer id ) { + Agent_report_line get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Agent_report_line/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Completed_or_archiveController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Completed_or_archiveController.java new file mode 100644 index 0000000..fd7b29c --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Completed_or_archiveController.java @@ -0,0 +1,131 @@ +package com.realnet.vpspack.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.vpspack.Entity.Completed_or_archive; +import com.realnet.vpspack.Services.Completed_or_archiveService ; + + + + + + + + + + + + + + +@RequestMapping(value = "/Completed_or_archive") + @CrossOrigin("*") +@RestController +public class Completed_or_archiveController { + @Autowired + private Completed_or_archiveService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + @PostMapping("/Completed_or_archive") + public Completed_or_archive Savedata(@RequestBody Completed_or_archive data) { + Completed_or_archive save = Service.Savedata(data) ; + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Completed_or_archive/{id}") + public Completed_or_archive update(@RequestBody Completed_or_archive data,@PathVariable Integer id ) { + Completed_or_archive update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Completed_or_archive/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("/Completed_or_archive") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Completed_or_archive") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Completed_or_archive/{id}") + public Completed_or_archive getdetailsbyId(@PathVariable Integer id ) { + Completed_or_archive get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Completed_or_archive/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Completed_or_archive_childController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Completed_or_archive_childController.java new file mode 100644 index 0000000..3392dd0 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Completed_or_archive_childController.java @@ -0,0 +1,171 @@ +package com.realnet.vpspack.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.vpspack.Entity.Completed_or_archive_child; +import com.realnet.vpspack.Services.Completed_or_archive_childService ; + + + + + + + + + + + + + + + + + + + + + + + + +@RequestMapping(value = "/Completed_or_archive_child") + @CrossOrigin("*") +@RestController +public class Completed_or_archive_childController { + @Autowired + private Completed_or_archive_childService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + + + + + + + + + + + @PostMapping("/Completed_or_archive_child") + public Completed_or_archive_child Savedata(@RequestBody Completed_or_archive_child data) { + Completed_or_archive_child save = Service.Savedata(data) ; + + + + + + + + + + + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Completed_or_archive_child/{id}") + public Completed_or_archive_child update(@RequestBody Completed_or_archive_child data,@PathVariable Integer id ) { + Completed_or_archive_child update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Completed_or_archive_child/getall/page") + public Page getall(@RequestParam(value = "page", required = false) Integer page, + @RequestParam(value = "size", required = false) Integer size) { + Pageable paging = PageRequest.of(page, size); + Page get = Service.getAllWithPagination(paging); + + return get; + + } + @GetMapping("/Completed_or_archive_child") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Completed_or_archive_child") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Completed_or_archive_child/{id}") + public Completed_or_archive_child getdetailsbyId(@PathVariable Integer id ) { + Completed_or_archive_child get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Completed_or_archive_child/{id}") + public ResponseEntity delete_by_id(@PathVariable Integer id ) { + Service.delete_by_id(id); + return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK); + + } + + + + + + + + + + + + + + + + + + + + + + + + + +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Cost_sheet_uploadController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Cost_sheet_uploadController.java new file mode 100644 index 0000000..da82c72 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Cost_sheet_uploadController.java @@ -0,0 +1,131 @@ +package com.realnet.vpspack.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.vpspack.Entity.Cost_sheet_upload; +import com.realnet.vpspack.Services.Cost_sheet_uploadService ; + + + + + + + + + + + + + + +@RequestMapping(value = "/Cost_sheet_upload") + @CrossOrigin("*") +@RestController +public class Cost_sheet_uploadController { + @Autowired + private Cost_sheet_uploadService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + @PostMapping("/Cost_sheet_upload") + public Cost_sheet_upload Savedata(@RequestBody Cost_sheet_upload data) { + Cost_sheet_upload save = Service.Savedata(data) ; + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Cost_sheet_upload/{id}") + public Cost_sheet_upload update(@RequestBody Cost_sheet_upload data,@PathVariable Integer id ) { + Cost_sheet_upload update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Cost_sheet_upload/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("/Cost_sheet_upload") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Cost_sheet_upload") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Cost_sheet_upload/{id}") + public Cost_sheet_upload getdetailsbyId(@PathVariable Integer id ) { + Cost_sheet_upload get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Cost_sheet_upload/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/CouponController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/CouponController.java new file mode 100644 index 0000000..a1118a0 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/CouponController.java @@ -0,0 +1,107 @@ +package com.realnet.vpspack.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.vpspack.Entity.Coupon; +import com.realnet.vpspack.Services.CouponService ; + + + + + + + + +@RequestMapping(value = "/Coupon") + @CrossOrigin("*") +@RestController +public class CouponController { + @Autowired + private CouponService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + @PostMapping("/Coupon") + public Coupon Savedata(@RequestBody Coupon data) { + Coupon save = Service.Savedata(data) ; + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Coupon/{id}") + public Coupon update(@RequestBody Coupon data,@PathVariable Integer id ) { + Coupon update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Coupon/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("/Coupon") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Coupon") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Coupon/{id}") + public Coupon getdetailsbyId(@PathVariable Integer id ) { + Coupon get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Coupon/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Customer_reportController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Customer_reportController.java new file mode 100644 index 0000000..9efcbf7 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Customer_reportController.java @@ -0,0 +1,99 @@ +package com.realnet.vpspack.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.vpspack.Entity.Customer_report; +import com.realnet.vpspack.Services.Customer_reportService ; + + + + + + +@RequestMapping(value = "/Customer_report") + @CrossOrigin("*") +@RestController +public class Customer_reportController { + @Autowired + private Customer_reportService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + @PostMapping("/Customer_report") + public Customer_report Savedata(@RequestBody Customer_report data) { + Customer_report save = Service.Savedata(data) ; + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Customer_report/{id}") + public Customer_report update(@RequestBody Customer_report data,@PathVariable Integer id ) { + Customer_report update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Customer_report/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_report") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Customer_report") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Customer_report/{id}") + public Customer_report getdetailsbyId(@PathVariable Integer id ) { + Customer_report get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Customer_report/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/DeletedController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/DeletedController.java new file mode 100644 index 0000000..fcb3006 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/DeletedController.java @@ -0,0 +1,123 @@ +package com.realnet.vpspack.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.vpspack.Entity.Deleted; +import com.realnet.vpspack.Services.DeletedService ; + + + + + + + + + + + + +@RequestMapping(value = "/Deleted") + @CrossOrigin("*") +@RestController +public class DeletedController { + @Autowired + private DeletedService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + @PostMapping("/Deleted") + public Deleted Savedata(@RequestBody Deleted data) { + Deleted save = Service.Savedata(data) ; + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Deleted/{id}") + public Deleted update(@RequestBody Deleted data,@PathVariable Integer id ) { + Deleted update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Deleted/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("/Deleted") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Deleted") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Deleted/{id}") + public Deleted getdetailsbyId(@PathVariable Integer id ) { + Deleted get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Deleted/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/EmailsController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/EmailsController.java new file mode 100644 index 0000000..cc18101 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/EmailsController.java @@ -0,0 +1,91 @@ +package com.realnet.vpspack.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.vpspack.Entity.Emails; +import com.realnet.vpspack.Services.EmailsService ; + + + + +@RequestMapping(value = "/Emails") + @CrossOrigin("*") +@RestController +public class EmailsController { + @Autowired + private EmailsService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + @PostMapping("/Emails") + public Emails Savedata(@RequestBody Emails data) { + Emails save = Service.Savedata(data) ; + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Emails/{id}") + public Emails update(@RequestBody Emails data,@PathVariable Integer id ) { + Emails update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Emails/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("/Emails") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Emails") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Emails/{id}") + public Emails getdetailsbyId(@PathVariable Integer id ) { + Emails get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Emails/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/GroupssController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/GroupssController.java new file mode 100644 index 0000000..7948ab6 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/GroupssController.java @@ -0,0 +1,83 @@ +package com.realnet.vpspack.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.vpspack.Entity.Groupss; +import com.realnet.vpspack.Services.GroupssService ; + + +@RequestMapping(value = "/Groupss") + @CrossOrigin("*") +@RestController +public class GroupssController { + @Autowired + private GroupssService Service; + +@Value("${projectPath}") + private String projectPath; + + + + @PostMapping("/Groupss") + public Groupss Savedata(@RequestBody Groupss data) { + Groupss save = Service.Savedata(data) ; + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Groupss/{id}") + public Groupss update(@RequestBody Groupss data,@PathVariable Integer id ) { + Groupss update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Groupss/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("/Groupss") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Groupss") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Groupss/{id}") + public Groupss getdetailsbyId(@PathVariable Integer id ) { + Groupss get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Groupss/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/MediaController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/MediaController.java new file mode 100644 index 0000000..de8fb31 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/MediaController.java @@ -0,0 +1,83 @@ +package com.realnet.vpspack.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.vpspack.Entity.Media; +import com.realnet.vpspack.Services.MediaService ; + + +@RequestMapping(value = "/Media") + @CrossOrigin("*") +@RestController +public class MediaController { + @Autowired + private MediaService Service; + +@Value("${projectPath}") + private String projectPath; + + + + @PostMapping("/Media") + public Media Savedata(@RequestBody Media data) { + Media save = Service.Savedata(data) ; + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Media/{id}") + public Media update(@RequestBody Media data,@PathVariable Integer id ) { + Media update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Media/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("/Media") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Media") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Media/{id}") + public Media getdetailsbyId(@PathVariable Integer id ) { + Media get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Media/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/NationalityController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/NationalityController.java new file mode 100644 index 0000000..59ebb2f --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/NationalityController.java @@ -0,0 +1,91 @@ +package com.realnet.vpspack.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.vpspack.Entity.Nationality; +import com.realnet.vpspack.Services.NationalityService ; + + + + +@RequestMapping(value = "/Nationality") + @CrossOrigin("*") +@RestController +public class NationalityController { + @Autowired + private NationalityService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + @PostMapping("/Nationality") + public Nationality Savedata(@RequestBody Nationality data) { + Nationality save = Service.Savedata(data) ; + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Nationality/{id}") + public Nationality update(@RequestBody Nationality data,@PathVariable Integer id ) { + Nationality update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Nationality/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("/Nationality") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Nationality") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Nationality/{id}") + public Nationality getdetailsbyId(@PathVariable Integer id ) { + Nationality get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Nationality/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/NotificationController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/NotificationController.java new file mode 100644 index 0000000..f2ebbf0 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/NotificationController.java @@ -0,0 +1,91 @@ +package com.realnet.vpspack.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.vpspack.Entity.Notification; +import com.realnet.vpspack.Services.NotificationService ; + + + + +@RequestMapping(value = "/Notification") + @CrossOrigin("*") +@RestController +public class NotificationController { + @Autowired + private NotificationService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + @PostMapping("/Notification") + public Notification Savedata(@RequestBody Notification data) { + Notification save = Service.Savedata(data) ; + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Notification/{id}") + public Notification update(@RequestBody Notification data,@PathVariable Integer id ) { + Notification update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Notification/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("/Notification") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Notification") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Notification/{id}") + public Notification getdetailsbyId(@PathVariable Integer id ) { + Notification get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Notification/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/PagetController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/PagetController.java new file mode 100644 index 0000000..3897682 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/PagetController.java @@ -0,0 +1,83 @@ +package com.realnet.vpspack.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.vpspack.Entity.Paget; +import com.realnet.vpspack.Services.PagetService ; + + +@RequestMapping(value = "/Paget") + @CrossOrigin("*") +@RestController +public class PagetController { + @Autowired + private PagetService Service; + +@Value("${projectPath}") + private String projectPath; + + + + @PostMapping("/Paget") + public Paget Savedata(@RequestBody Paget data) { + Paget save = Service.Savedata(data) ; + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Paget/{id}") + public Paget update(@RequestBody Paget data,@PathVariable Integer id ) { + Paget update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Paget/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("/Paget") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Paget") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Paget/{id}") + public Paget getdetailsbyId(@PathVariable Integer id ) { + Paget get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Paget/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Pending_agentController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Pending_agentController.java new file mode 100644 index 0000000..9898de4 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Pending_agentController.java @@ -0,0 +1,131 @@ +package com.realnet.vpspack.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.vpspack.Entity.Pending_agent; +import com.realnet.vpspack.Services.Pending_agentService ; + + + + + + + + + + + + + + +@RequestMapping(value = "/Pending_agent") + @CrossOrigin("*") +@RestController +public class Pending_agentController { + @Autowired + private Pending_agentService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + @PostMapping("/Pending_agent") + public Pending_agent Savedata(@RequestBody Pending_agent data) { + Pending_agent save = Service.Savedata(data) ; + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Pending_agent/{id}") + public Pending_agent update(@RequestBody Pending_agent data,@PathVariable Integer id ) { + Pending_agent update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Pending_agent/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("/Pending_agent") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Pending_agent") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Pending_agent/{id}") + public Pending_agent getdetailsbyId(@PathVariable Integer id ) { + Pending_agent get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Pending_agent/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Pending_agent_childController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Pending_agent_childController.java new file mode 100644 index 0000000..45ab408 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Pending_agent_childController.java @@ -0,0 +1,171 @@ +package com.realnet.vpspack.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.vpspack.Entity.Pending_agent_child; +import com.realnet.vpspack.Services.Pending_agent_childService ; + + + + + + + + + + + + + + + + + + + + + + + + +@RequestMapping(value = "/Pending_agent_child") + @CrossOrigin("*") +@RestController +public class Pending_agent_childController { + @Autowired + private Pending_agent_childService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + + + + + + + + + + + @PostMapping("/Pending_agent_child") + public Pending_agent_child Savedata(@RequestBody Pending_agent_child data) { + Pending_agent_child save = Service.Savedata(data) ; + + + + + + + + + + + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Pending_agent_child/{id}") + public Pending_agent_child update(@RequestBody Pending_agent_child data,@PathVariable Integer id ) { + Pending_agent_child update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Pending_agent_child/getall/page") + public Page getall(@RequestParam(value = "page", required = false) Integer page, + @RequestParam(value = "size", required = false) Integer size) { + Pageable paging = PageRequest.of(page, size); + Page get = Service.getAllWithPagination(paging); + + return get; + + } + @GetMapping("/Pending_agent_child") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Pending_agent_child") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Pending_agent_child/{id}") + public Pending_agent_child getdetailsbyId(@PathVariable Integer id ) { + Pending_agent_child get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Pending_agent_child/{id}") + public ResponseEntity delete_by_id(@PathVariable Integer id ) { + Service.delete_by_id(id); + return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK); + + } + + + + + + + + + + + + + + + + + + + + + + + + + +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Pending_customerController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Pending_customerController.java new file mode 100644 index 0000000..bd2049a --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Pending_customerController.java @@ -0,0 +1,131 @@ +package com.realnet.vpspack.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.vpspack.Entity.Pending_customer; +import com.realnet.vpspack.Services.Pending_customerService ; + + + + + + + + + + + + + + +@RequestMapping(value = "/Pending_customer") + @CrossOrigin("*") +@RestController +public class Pending_customerController { + @Autowired + private Pending_customerService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + @PostMapping("/Pending_customer") + public Pending_customer Savedata(@RequestBody Pending_customer data) { + Pending_customer save = Service.Savedata(data) ; + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Pending_customer/{id}") + public Pending_customer update(@RequestBody Pending_customer data,@PathVariable Integer id ) { + Pending_customer update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Pending_customer/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("/Pending_customer") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Pending_customer") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Pending_customer/{id}") + public Pending_customer getdetailsbyId(@PathVariable Integer id ) { + Pending_customer get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Pending_customer/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Pending_customer_childController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Pending_customer_childController.java new file mode 100644 index 0000000..9666fc0 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Pending_customer_childController.java @@ -0,0 +1,171 @@ +package com.realnet.vpspack.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.vpspack.Entity.Pending_customer_child; +import com.realnet.vpspack.Services.Pending_customer_childService ; + + + + + + + + + + + + + + + + + + + + + + + + +@RequestMapping(value = "/Pending_customer_child") + @CrossOrigin("*") +@RestController +public class Pending_customer_childController { + @Autowired + private Pending_customer_childService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + + + + + + + + + + + @PostMapping("/Pending_customer_child") + public Pending_customer_child Savedata(@RequestBody Pending_customer_child data) { + Pending_customer_child save = Service.Savedata(data) ; + + + + + + + + + + + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Pending_customer_child/{id}") + public Pending_customer_child update(@RequestBody Pending_customer_child data,@PathVariable Integer id ) { + Pending_customer_child update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Pending_customer_child/getall/page") + public Page getall(@RequestParam(value = "page", required = false) Integer page, + @RequestParam(value = "size", required = false) Integer size) { + Pageable paging = PageRequest.of(page, size); + Page get = Service.getAllWithPagination(paging); + + return get; + + } + @GetMapping("/Pending_customer_child") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Pending_customer_child") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Pending_customer_child/{id}") + public Pending_customer_child getdetailsbyId(@PathVariable Integer id ) { + Pending_customer_child get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Pending_customer_child/{id}") + public ResponseEntity delete_by_id(@PathVariable Integer id ) { + Service.delete_by_id(id); + return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK); + + } + + + + + + + + + + + + + + + + + + + + + + + + + +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Processing_agentController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Processing_agentController.java new file mode 100644 index 0000000..e84db34 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Processing_agentController.java @@ -0,0 +1,131 @@ +package com.realnet.vpspack.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.vpspack.Entity.Processing_agent; +import com.realnet.vpspack.Services.Processing_agentService ; + + + + + + + + + + + + + + +@RequestMapping(value = "/Processing_agent") + @CrossOrigin("*") +@RestController +public class Processing_agentController { + @Autowired + private Processing_agentService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + @PostMapping("/Processing_agent") + public Processing_agent Savedata(@RequestBody Processing_agent data) { + Processing_agent save = Service.Savedata(data) ; + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Processing_agent/{id}") + public Processing_agent update(@RequestBody Processing_agent data,@PathVariable Integer id ) { + Processing_agent update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Processing_agent/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("/Processing_agent") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Processing_agent") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Processing_agent/{id}") + public Processing_agent getdetailsbyId(@PathVariable Integer id ) { + Processing_agent get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Processing_agent/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Processing_agent_childController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Processing_agent_childController.java new file mode 100644 index 0000000..af652bf --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Processing_agent_childController.java @@ -0,0 +1,171 @@ +package com.realnet.vpspack.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.vpspack.Entity.Processing_agent_child; +import com.realnet.vpspack.Services.Processing_agent_childService ; + + + + + + + + + + + + + + + + + + + + + + + + +@RequestMapping(value = "/Processing_agent_child") + @CrossOrigin("*") +@RestController +public class Processing_agent_childController { + @Autowired + private Processing_agent_childService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + + + + + + + + + + + @PostMapping("/Processing_agent_child") + public Processing_agent_child Savedata(@RequestBody Processing_agent_child data) { + Processing_agent_child save = Service.Savedata(data) ; + + + + + + + + + + + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Processing_agent_child/{id}") + public Processing_agent_child update(@RequestBody Processing_agent_child data,@PathVariable Integer id ) { + Processing_agent_child update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Processing_agent_child/getall/page") + public Page getall(@RequestParam(value = "page", required = false) Integer page, + @RequestParam(value = "size", required = false) Integer size) { + Pageable paging = PageRequest.of(page, size); + Page get = Service.getAllWithPagination(paging); + + return get; + + } + @GetMapping("/Processing_agent_child") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Processing_agent_child") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Processing_agent_child/{id}") + public Processing_agent_child getdetailsbyId(@PathVariable Integer id ) { + Processing_agent_child get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Processing_agent_child/{id}") + public ResponseEntity delete_by_id(@PathVariable Integer id ) { + Service.delete_by_id(id); + return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK); + + } + + + + + + + + + + + + + + + + + + + + + + + + + +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Processing_customerController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Processing_customerController.java new file mode 100644 index 0000000..cde8fe7 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Processing_customerController.java @@ -0,0 +1,131 @@ +package com.realnet.vpspack.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.vpspack.Entity.Processing_customer; +import com.realnet.vpspack.Services.Processing_customerService ; + + + + + + + + + + + + + + +@RequestMapping(value = "/Processing_customer") + @CrossOrigin("*") +@RestController +public class Processing_customerController { + @Autowired + private Processing_customerService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + @PostMapping("/Processing_customer") + public Processing_customer Savedata(@RequestBody Processing_customer data) { + Processing_customer save = Service.Savedata(data) ; + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Processing_customer/{id}") + public Processing_customer update(@RequestBody Processing_customer data,@PathVariable Integer id ) { + Processing_customer update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Processing_customer/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("/Processing_customer") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Processing_customer") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Processing_customer/{id}") + public Processing_customer getdetailsbyId(@PathVariable Integer id ) { + Processing_customer get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Processing_customer/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Processing_customer_childController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Processing_customer_childController.java new file mode 100644 index 0000000..875ccbd --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Processing_customer_childController.java @@ -0,0 +1,171 @@ +package com.realnet.vpspack.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.vpspack.Entity.Processing_customer_child; +import com.realnet.vpspack.Services.Processing_customer_childService ; + + + + + + + + + + + + + + + + + + + + + + + + +@RequestMapping(value = "/Processing_customer_child") + @CrossOrigin("*") +@RestController +public class Processing_customer_childController { + @Autowired + private Processing_customer_childService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + + + + + + + + + + + @PostMapping("/Processing_customer_child") + public Processing_customer_child Savedata(@RequestBody Processing_customer_child data) { + Processing_customer_child save = Service.Savedata(data) ; + + + + + + + + + + + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Processing_customer_child/{id}") + public Processing_customer_child update(@RequestBody Processing_customer_child data,@PathVariable Integer id ) { + Processing_customer_child update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Processing_customer_child/getall/page") + public Page getall(@RequestParam(value = "page", required = false) Integer page, + @RequestParam(value = "size", required = false) Integer size) { + Pageable paging = PageRequest.of(page, size); + Page get = Service.getAllWithPagination(paging); + + return get; + + } + @GetMapping("/Processing_customer_child") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Processing_customer_child") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Processing_customer_child/{id}") + public Processing_customer_child getdetailsbyId(@PathVariable Integer id ) { + Processing_customer_child get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Processing_customer_child/{id}") + public ResponseEntity delete_by_id(@PathVariable Integer id ) { + Service.delete_by_id(id); + return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK); + + } + + + + + + + + + + + + + + + + + + + + + + + + + +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Refferere_reportController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Refferere_reportController.java new file mode 100644 index 0000000..66ca7fe --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Refferere_reportController.java @@ -0,0 +1,99 @@ +package com.realnet.vpspack.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.vpspack.Entity.Refferere_report; +import com.realnet.vpspack.Services.Refferere_reportService ; + + + + + + +@RequestMapping(value = "/Refferere_report") + @CrossOrigin("*") +@RestController +public class Refferere_reportController { + @Autowired + private Refferere_reportService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + @PostMapping("/Refferere_report") + public Refferere_report Savedata(@RequestBody Refferere_report data) { + Refferere_report save = Service.Savedata(data) ; + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Refferere_report/{id}") + public Refferere_report update(@RequestBody Refferere_report data,@PathVariable Integer id ) { + Refferere_report update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Refferere_report/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("/Refferere_report") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Refferere_report") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Refferere_report/{id}") + public Refferere_report getdetailsbyId(@PathVariable Integer id ) { + Refferere_report get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Refferere_report/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Refferere_report_lineController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Refferere_report_lineController.java new file mode 100644 index 0000000..3f3fc65 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Refferere_report_lineController.java @@ -0,0 +1,179 @@ +package com.realnet.vpspack.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.vpspack.Entity.Refferere_report_line; +import com.realnet.vpspack.Services.Refferere_report_lineService ; + + + + + + + + + + + + + + + + + + + + + + + + + + +@RequestMapping(value = "/Refferere_report_line") + @CrossOrigin("*") +@RestController +public class Refferere_report_lineController { + @Autowired + private Refferere_report_lineService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + + + + + + + + + + + + + @PostMapping("/Refferere_report_line") + public Refferere_report_line Savedata(@RequestBody Refferere_report_line data) { + Refferere_report_line save = Service.Savedata(data) ; + + + + + + + + + + + + + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Refferere_report_line/{id}") + public Refferere_report_line update(@RequestBody Refferere_report_line data,@PathVariable Integer id ) { + Refferere_report_line update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Refferere_report_line/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("/Refferere_report_line") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Refferere_report_line") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Refferere_report_line/{id}") + public Refferere_report_line getdetailsbyId(@PathVariable Integer id ) { + Refferere_report_line get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Refferere_report_line/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/RefrreresController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/RefrreresController.java new file mode 100644 index 0000000..7b87b97 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/RefrreresController.java @@ -0,0 +1,107 @@ +package com.realnet.vpspack.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.vpspack.Entity.Refrreres; +import com.realnet.vpspack.Services.RefrreresService ; + + + + + + + + +@RequestMapping(value = "/Refrreres") + @CrossOrigin("*") +@RestController +public class RefrreresController { + @Autowired + private RefrreresService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + @PostMapping("/Refrreres") + public Refrreres Savedata(@RequestBody Refrreres data) { + Refrreres save = Service.Savedata(data) ; + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Refrreres/{id}") + public Refrreres update(@RequestBody Refrreres data,@PathVariable Integer id ) { + Refrreres update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Refrreres/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("/Refrreres") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Refrreres") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Refrreres/{id}") + public Refrreres getdetailsbyId(@PathVariable Integer id ) { + Refrreres get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Refrreres/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Refrreres_lineController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Refrreres_lineController.java new file mode 100644 index 0000000..be6c964 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Refrreres_lineController.java @@ -0,0 +1,123 @@ +package com.realnet.vpspack.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.vpspack.Entity.Refrreres_line; +import com.realnet.vpspack.Services.Refrreres_lineService ; + + + + + + + + + + + + +@RequestMapping(value = "/Refrreres_line") + @CrossOrigin("*") +@RestController +public class Refrreres_lineController { + @Autowired + private Refrreres_lineService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + @PostMapping("/Refrreres_line") + public Refrreres_line Savedata(@RequestBody Refrreres_line data) { + Refrreres_line save = Service.Savedata(data) ; + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Refrreres_line/{id}") + public Refrreres_line update(@RequestBody Refrreres_line data,@PathVariable Integer id ) { + Refrreres_line update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Refrreres_line/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("/Refrreres_line") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Refrreres_line") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Refrreres_line/{id}") + public Refrreres_line getdetailsbyId(@PathVariable Integer id ) { + Refrreres_line get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Refrreres_line/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/RefundController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/RefundController.java new file mode 100644 index 0000000..cd147c4 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/RefundController.java @@ -0,0 +1,123 @@ +package com.realnet.vpspack.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.vpspack.Entity.Refund; +import com.realnet.vpspack.Services.RefundService ; + + + + + + + + + + + + +@RequestMapping(value = "/Refund") + @CrossOrigin("*") +@RestController +public class RefundController { + @Autowired + private RefundService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + @PostMapping("/Refund") + public Refund Savedata(@RequestBody Refund data) { + Refund save = Service.Savedata(data) ; + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Refund/{id}") + public Refund update(@RequestBody Refund data,@PathVariable Integer id ) { + Refund update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Refund/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("/Refund") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Refund") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Refund/{id}") + public Refund getdetailsbyId(@PathVariable Integer id ) { + Refund get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Refund/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Refund_childController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Refund_childController.java new file mode 100644 index 0000000..fb6623f --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Refund_childController.java @@ -0,0 +1,171 @@ +package com.realnet.vpspack.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.vpspack.Entity.Refund_child; +import com.realnet.vpspack.Services.Refund_childService ; + + + + + + + + + + + + + + + + + + + + + + + + +@RequestMapping(value = "/Refund_child") + @CrossOrigin("*") +@RestController +public class Refund_childController { + @Autowired + private Refund_childService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + + + + + + + + + + + @PostMapping("/Refund_child") + public Refund_child Savedata(@RequestBody Refund_child data) { + Refund_child save = Service.Savedata(data) ; + + + + + + + + + + + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Refund_child/{id}") + public Refund_child update(@RequestBody Refund_child data,@PathVariable Integer id ) { + Refund_child update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Refund_child/getall/page") + public Page getall(@RequestParam(value = "page", required = false) Integer page, + @RequestParam(value = "size", required = false) Integer size) { + Pageable paging = PageRequest.of(page, size); + Page get = Service.getAllWithPagination(paging); + + return get; + + } + @GetMapping("/Refund_child") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Refund_child") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Refund_child/{id}") + public Refund_child getdetailsbyId(@PathVariable Integer id ) { + Refund_child get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Refund_child/{id}") + public ResponseEntity delete_by_id(@PathVariable Integer id ) { + Service.delete_by_id(id); + return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK); + + } + + + + + + + + + + + + + + + + + + + + + + + + + +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/RejectedController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/RejectedController.java new file mode 100644 index 0000000..b2e7ed1 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/RejectedController.java @@ -0,0 +1,131 @@ +package com.realnet.vpspack.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.vpspack.Entity.Rejected; +import com.realnet.vpspack.Services.RejectedService ; + + + + + + + + + + + + + + +@RequestMapping(value = "/Rejected") + @CrossOrigin("*") +@RestController +public class RejectedController { + @Autowired + private RejectedService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + @PostMapping("/Rejected") + public Rejected Savedata(@RequestBody Rejected data) { + Rejected save = Service.Savedata(data) ; + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Rejected/{id}") + public Rejected update(@RequestBody Rejected data,@PathVariable Integer id ) { + Rejected update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Rejected/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("/Rejected") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Rejected") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Rejected/{id}") + public Rejected getdetailsbyId(@PathVariable Integer id ) { + Rejected get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Rejected/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Rejected_childController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Rejected_childController.java new file mode 100644 index 0000000..ad984ad --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Rejected_childController.java @@ -0,0 +1,171 @@ +package com.realnet.vpspack.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.vpspack.Entity.Rejected_child; +import com.realnet.vpspack.Services.Rejected_childService ; + + + + + + + + + + + + + + + + + + + + + + + + +@RequestMapping(value = "/Rejected_child") + @CrossOrigin("*") +@RestController +public class Rejected_childController { + @Autowired + private Rejected_childService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + + + + + + + + + + + @PostMapping("/Rejected_child") + public Rejected_child Savedata(@RequestBody Rejected_child data) { + Rejected_child save = Service.Savedata(data) ; + + + + + + + + + + + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Rejected_child/{id}") + public Rejected_child update(@RequestBody Rejected_child data,@PathVariable Integer id ) { + Rejected_child update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Rejected_child/getall/page") + public Page getall(@RequestParam(value = "page", required = false) Integer page, + @RequestParam(value = "size", required = false) Integer size) { + Pageable paging = PageRequest.of(page, size); + Page get = Service.getAllWithPagination(paging); + + return get; + + } + @GetMapping("/Rejected_child") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Rejected_child") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Rejected_child/{id}") + public Rejected_child getdetailsbyId(@PathVariable Integer id ) { + Rejected_child get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Rejected_child/{id}") + public ResponseEntity delete_by_id(@PathVariable Integer id ) { + Service.delete_by_id(id); + return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK); + + } + + + + + + + + + + + + + + + + + + + + + + + + + +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/S_m_sController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/S_m_sController.java new file mode 100644 index 0000000..4066c14 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/S_m_sController.java @@ -0,0 +1,99 @@ +package com.realnet.vpspack.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.vpspack.Entity.S_m_s; +import com.realnet.vpspack.Services.S_m_sService ; + + + + + + +@RequestMapping(value = "/S_m_s") + @CrossOrigin("*") +@RestController +public class S_m_sController { + @Autowired + private S_m_sService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + @PostMapping("/S_m_s") + public S_m_s Savedata(@RequestBody S_m_s data) { + S_m_s save = Service.Savedata(data) ; + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/S_m_s/{id}") + public S_m_s update(@RequestBody S_m_s data,@PathVariable Integer id ) { + S_m_s update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/S_m_s/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("/S_m_s") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/S_m_s") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/S_m_s/{id}") + public S_m_s getdetailsbyId(@PathVariable Integer id ) { + S_m_s get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/S_m_s/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Sage_payController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Sage_payController.java new file mode 100644 index 0000000..fb64fc5 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Sage_payController.java @@ -0,0 +1,163 @@ +package com.realnet.vpspack.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.vpspack.Entity.Sage_pay; +import com.realnet.vpspack.Services.Sage_payService ; + + + + + + + + + + + + + + + + + + + + + + +@RequestMapping(value = "/Sage_pay") + @CrossOrigin("*") +@RestController +public class Sage_payController { + @Autowired + private Sage_payService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + + + + + + + + + @PostMapping("/Sage_pay") + public Sage_pay Savedata(@RequestBody Sage_pay data) { + Sage_pay save = Service.Savedata(data) ; + + + + + + + + + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Sage_pay/{id}") + public Sage_pay update(@RequestBody Sage_pay data,@PathVariable Integer id ) { + Sage_pay update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Sage_pay/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("/Sage_pay") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Sage_pay") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Sage_pay/{id}") + public Sage_pay getdetailsbyId(@PathVariable Integer id ) { + Sage_pay get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Sage_pay/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Sage_paysController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Sage_paysController.java new file mode 100644 index 0000000..3a8ef68 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Sage_paysController.java @@ -0,0 +1,99 @@ +package com.realnet.vpspack.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.vpspack.Entity.Sage_pays; +import com.realnet.vpspack.Services.Sage_paysService ; + + + + + + +@RequestMapping(value = "/Sage_pays") + @CrossOrigin("*") +@RestController +public class Sage_paysController { + @Autowired + private Sage_paysService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + @PostMapping("/Sage_pays") + public Sage_pays Savedata(@RequestBody Sage_pays data) { + Sage_pays save = Service.Savedata(data) ; + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Sage_pays/{id}") + public Sage_pays update(@RequestBody Sage_pays data,@PathVariable Integer id ) { + Sage_pays update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Sage_pays/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("/Sage_pays") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Sage_pays") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Sage_pays/{id}") + public Sage_pays getdetailsbyId(@PathVariable Integer id ) { + Sage_pays get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Sage_pays/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/SiteController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/SiteController.java new file mode 100644 index 0000000..a0f162f --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/SiteController.java @@ -0,0 +1,147 @@ +package com.realnet.vpspack.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.vpspack.Entity.Site; +import com.realnet.vpspack.Services.SiteService ; + + + + + + + + + + + + + + + + + + +@RequestMapping(value = "/Site") + @CrossOrigin("*") +@RestController +public class SiteController { + @Autowired + private SiteService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + + + + + @PostMapping("/Site") + public Site Savedata(@RequestBody Site data) { + Site save = Service.Savedata(data) ; + + + + + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Site/{id}") + public Site update(@RequestBody Site data,@PathVariable Integer id ) { + Site update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Site/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("/Site") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Site") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Site/{id}") + public Site getdetailsbyId(@PathVariable Integer id ) { + Site get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Site/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Staff_applicationController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Staff_applicationController.java new file mode 100644 index 0000000..48a46a7 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Staff_applicationController.java @@ -0,0 +1,131 @@ +package com.realnet.vpspack.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.vpspack.Entity.Staff_application; +import com.realnet.vpspack.Services.Staff_applicationService ; + + + + + + + + + + + + + + +@RequestMapping(value = "/Staff_application") + @CrossOrigin("*") +@RestController +public class Staff_applicationController { + @Autowired + private Staff_applicationService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + @PostMapping("/Staff_application") + public Staff_application Savedata(@RequestBody Staff_application data) { + Staff_application save = Service.Savedata(data) ; + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Staff_application/{id}") + public Staff_application update(@RequestBody Staff_application data,@PathVariable Integer id ) { + Staff_application update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Staff_application/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("/Staff_application") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Staff_application") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Staff_application/{id}") + public Staff_application getdetailsbyId(@PathVariable Integer id ) { + Staff_application get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Staff_application/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/StaffappchildController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/StaffappchildController.java new file mode 100644 index 0000000..b3425a3 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/StaffappchildController.java @@ -0,0 +1,171 @@ +package com.realnet.vpspack.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.vpspack.Entity.Staffappchild; +import com.realnet.vpspack.Services.StaffappchildService ; + + + + + + + + + + + + + + + + + + + + + + + + +@RequestMapping(value = "/Staffappchild") + @CrossOrigin("*") +@RestController +public class StaffappchildController { + @Autowired + private StaffappchildService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + + + + + + + + + + + @PostMapping("/Staffappchild") + public Staffappchild Savedata(@RequestBody Staffappchild data) { + Staffappchild save = Service.Savedata(data) ; + + + + + + + + + + + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Staffappchild/{id}") + public Staffappchild update(@RequestBody Staffappchild data,@PathVariable Integer id ) { + Staffappchild update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Staffappchild/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("/Staffappchild") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Staffappchild") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Staffappchild/{id}") + public Staffappchild getdetailsbyId(@PathVariable Integer id ) { + Staffappchild get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Staffappchild/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/StatusController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/StatusController.java new file mode 100644 index 0000000..d0df115 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/StatusController.java @@ -0,0 +1,83 @@ +package com.realnet.vpspack.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.vpspack.Entity.Status; +import com.realnet.vpspack.Services.StatusService ; + + +@RequestMapping(value = "/Status") + @CrossOrigin("*") +@RestController +public class StatusController { + @Autowired + private StatusService Service; + +@Value("${projectPath}") + private String projectPath; + + + + @PostMapping("/Status") + public Status Savedata(@RequestBody Status data) { + Status save = Service.Savedata(data) ; + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Status/{id}") + public Status update(@RequestBody Status data,@PathVariable Integer id ) { + Status update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Status/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("/Status") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Status") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Status/{id}") + public Status getdetailsbyId(@PathVariable Integer id ) { + Status get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Status/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Supplier_reportController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Supplier_reportController.java new file mode 100644 index 0000000..7684d38 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Supplier_reportController.java @@ -0,0 +1,155 @@ +package com.realnet.vpspack.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.vpspack.Entity.Supplier_report; +import com.realnet.vpspack.Services.Supplier_reportService ; + + + + + + + + + + + + + + + + + + + + +@RequestMapping(value = "/Supplier_report") + @CrossOrigin("*") +@RestController +public class Supplier_reportController { + @Autowired + private Supplier_reportService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + + + + + + + @PostMapping("/Supplier_report") + public Supplier_report Savedata(@RequestBody Supplier_report data) { + Supplier_report save = Service.Savedata(data) ; + + + + + + + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Supplier_report/{id}") + public Supplier_report update(@RequestBody Supplier_report data,@PathVariable Integer id ) { + Supplier_report update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Supplier_report/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("/Supplier_report") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Supplier_report") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Supplier_report/{id}") + public Supplier_report getdetailsbyId(@PathVariable Integer id ) { + Supplier_report get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Supplier_report/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Supplier_report_lineController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Supplier_report_lineController.java new file mode 100644 index 0000000..f8e2c03 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Supplier_report_lineController.java @@ -0,0 +1,163 @@ +package com.realnet.vpspack.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.vpspack.Entity.Supplier_report_line; +import com.realnet.vpspack.Services.Supplier_report_lineService ; + + + + + + + + + + + + + + + + + + + + + + +@RequestMapping(value = "/Supplier_report_line") + @CrossOrigin("*") +@RestController +public class Supplier_report_lineController { + @Autowired + private Supplier_report_lineService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + + + + + + + + + @PostMapping("/Supplier_report_line") + public Supplier_report_line Savedata(@RequestBody Supplier_report_line data) { + Supplier_report_line save = Service.Savedata(data) ; + + + + + + + + + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Supplier_report_line/{id}") + public Supplier_report_line update(@RequestBody Supplier_report_line data,@PathVariable Integer id ) { + Supplier_report_line update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Supplier_report_line/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("/Supplier_report_line") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Supplier_report_line") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Supplier_report_line/{id}") + public Supplier_report_line getdetailsbyId(@PathVariable Integer id ) { + Supplier_report_line get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Supplier_report_line/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Upload_visaController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Upload_visaController.java new file mode 100644 index 0000000..d24a45a --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Upload_visaController.java @@ -0,0 +1,99 @@ +package com.realnet.vpspack.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.vpspack.Entity.Upload_visa; +import com.realnet.vpspack.Services.Upload_visaService ; + + + + + + +@RequestMapping(value = "/Upload_visa") + @CrossOrigin("*") +@RestController +public class Upload_visaController { + @Autowired + private Upload_visaService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + @PostMapping("/Upload_visa") + public Upload_visa Savedata(@RequestBody Upload_visa data) { + Upload_visa save = Service.Savedata(data) ; + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Upload_visa/{id}") + public Upload_visa update(@RequestBody Upload_visa data,@PathVariable Integer id ) { + Upload_visa update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Upload_visa/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("/Upload_visa") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Upload_visa") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Upload_visa/{id}") + public Upload_visa getdetailsbyId(@PathVariable Integer id ) { + Upload_visa get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Upload_visa/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Visa_app_orderController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Visa_app_orderController.java new file mode 100644 index 0000000..89ccd27 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Visa_app_orderController.java @@ -0,0 +1,99 @@ +package com.realnet.vpspack.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.vpspack.Entity.Visa_app_order; +import com.realnet.vpspack.Services.Visa_app_orderService ; + + + + + + +@RequestMapping(value = "/Visa_app_order") + @CrossOrigin("*") +@RestController +public class Visa_app_orderController { + @Autowired + private Visa_app_orderService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + @PostMapping("/Visa_app_order") + public Visa_app_order Savedata(@RequestBody Visa_app_order data) { + Visa_app_order save = Service.Savedata(data) ; + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Visa_app_order/{id}") + public Visa_app_order update(@RequestBody Visa_app_order data,@PathVariable Integer id ) { + Visa_app_order update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Visa_app_order/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("/Visa_app_order") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Visa_app_order") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Visa_app_order/{id}") + public Visa_app_order getdetailsbyId(@PathVariable Integer id ) { + Visa_app_order get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Visa_app_order/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Visa_app_order_ListFilter1Controller.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Visa_app_order_ListFilter1Controller.java new file mode 100644 index 0000000..72b82be --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Visa_app_order_ListFilter1Controller.java @@ -0,0 +1,24 @@ +package com.realnet.vpspack.Controllers; +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.web.bind.annotation.*; +import com.realnet.vpspack.Entity.Visa_app_order_ListFilter1; +import com.realnet.vpspack.Services.Visa_app_order_ListFilter1Service ; +@RequestMapping(value = "/Visa_app_order_ListFilter1") +@RestController +public class Visa_app_order_ListFilter1Controller { + + @Autowired + private Visa_app_order_ListFilter1Service Service; + + @GetMapping("/Visa_app_order_ListFilter1") + public List getlist() { + List get = Service.getlistbuilder(); + return get; +} + @GetMapping("/Visa_app_order_ListFilter11") + public List getlistwithparam( ) { + List get = Service.getlistbuilderparam( ); + return get; +} +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Visa_billingController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Visa_billingController.java new file mode 100644 index 0000000..6fc6b0d --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Visa_billingController.java @@ -0,0 +1,83 @@ +package com.realnet.vpspack.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.vpspack.Entity.Visa_billing; +import com.realnet.vpspack.Services.Visa_billingService ; + + +@RequestMapping(value = "/Visa_billing") + @CrossOrigin("*") +@RestController +public class Visa_billingController { + @Autowired + private Visa_billingService Service; + +@Value("${projectPath}") + private String projectPath; + + + + @PostMapping("/Visa_billing") + public Visa_billing Savedata(@RequestBody Visa_billing data) { + Visa_billing save = Service.Savedata(data) ; + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Visa_billing/{id}") + public Visa_billing update(@RequestBody Visa_billing data,@PathVariable Integer id ) { + Visa_billing update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Visa_billing/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("/Visa_billing") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Visa_billing") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Visa_billing/{id}") + public Visa_billing getdetailsbyId(@PathVariable Integer id ) { + Visa_billing get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Visa_billing/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Visa_durationController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Visa_durationController.java new file mode 100644 index 0000000..8200089 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Visa_durationController.java @@ -0,0 +1,83 @@ +package com.realnet.vpspack.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.vpspack.Entity.Visa_duration; +import com.realnet.vpspack.Services.Visa_durationService ; + + +@RequestMapping(value = "/Visa_duration") + @CrossOrigin("*") +@RestController +public class Visa_durationController { + @Autowired + private Visa_durationService Service; + +@Value("${projectPath}") + private String projectPath; + + + + @PostMapping("/Visa_duration") + public Visa_duration Savedata(@RequestBody Visa_duration data) { + Visa_duration save = Service.Savedata(data) ; + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Visa_duration/{id}") + public Visa_duration update(@RequestBody Visa_duration data,@PathVariable Integer id ) { + Visa_duration update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Visa_duration/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("/Visa_duration") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Visa_duration") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Visa_duration/{id}") + public Visa_duration getdetailsbyId(@PathVariable Integer id ) { + Visa_duration get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Visa_duration/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Visa_pricesController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Visa_pricesController.java new file mode 100644 index 0000000..02b8200 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Visa_pricesController.java @@ -0,0 +1,115 @@ +package com.realnet.vpspack.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.vpspack.Entity.Visa_prices; +import com.realnet.vpspack.Services.Visa_pricesService ; + + + + + + + + + + +@RequestMapping(value = "/Visa_prices") + @CrossOrigin("*") +@RestController +public class Visa_pricesController { + @Autowired + private Visa_pricesService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + @PostMapping("/Visa_prices") + public Visa_prices Savedata(@RequestBody Visa_prices data) { + Visa_prices save = Service.Savedata(data) ; + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Visa_prices/{id}") + public Visa_prices update(@RequestBody Visa_prices data,@PathVariable Integer id ) { + Visa_prices update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Visa_prices/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("/Visa_prices") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Visa_prices") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Visa_prices/{id}") + public Visa_prices getdetailsbyId(@PathVariable Integer id ) { + Visa_prices get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Visa_prices/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Visa_processing_timeController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Visa_processing_timeController.java new file mode 100644 index 0000000..a557421 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Visa_processing_timeController.java @@ -0,0 +1,83 @@ +package com.realnet.vpspack.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.vpspack.Entity.Visa_processing_time; +import com.realnet.vpspack.Services.Visa_processing_timeService ; + + +@RequestMapping(value = "/Visa_processing_time") + @CrossOrigin("*") +@RestController +public class Visa_processing_timeController { + @Autowired + private Visa_processing_timeService Service; + +@Value("${projectPath}") + private String projectPath; + + + + @PostMapping("/Visa_processing_time") + public Visa_processing_time Savedata(@RequestBody Visa_processing_time data) { + Visa_processing_time save = Service.Savedata(data) ; + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Visa_processing_time/{id}") + public Visa_processing_time update(@RequestBody Visa_processing_time data,@PathVariable Integer id ) { + Visa_processing_time update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Visa_processing_time/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("/Visa_processing_time") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Visa_processing_time") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Visa_processing_time/{id}") + public Visa_processing_time getdetailsbyId(@PathVariable Integer id ) { + Visa_processing_time get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Visa_processing_time/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Visa_statusController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Visa_statusController.java new file mode 100644 index 0000000..1d12ff0 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Visa_statusController.java @@ -0,0 +1,91 @@ +package com.realnet.vpspack.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.vpspack.Entity.Visa_status; +import com.realnet.vpspack.Services.Visa_statusService ; + + + + +@RequestMapping(value = "/Visa_status") + @CrossOrigin("*") +@RestController +public class Visa_statusController { + @Autowired + private Visa_statusService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + @PostMapping("/Visa_status") + public Visa_status Savedata(@RequestBody Visa_status data) { + Visa_status save = Service.Savedata(data) ; + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Visa_status/{id}") + public Visa_status update(@RequestBody Visa_status data,@PathVariable Integer id ) { + Visa_status update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Visa_status/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("/Visa_status") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Visa_status") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Visa_status/{id}") + public Visa_status getdetailsbyId(@PathVariable Integer id ) { + Visa_status get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Visa_status/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/XeroController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/XeroController.java new file mode 100644 index 0000000..e8218dd --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/XeroController.java @@ -0,0 +1,83 @@ +package com.realnet.vpspack.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.vpspack.Entity.Xero; +import com.realnet.vpspack.Services.XeroService ; + + +@RequestMapping(value = "/Xero") + @CrossOrigin("*") +@RestController +public class XeroController { + @Autowired + private XeroService Service; + +@Value("${projectPath}") + private String projectPath; + + + + @PostMapping("/Xero") + public Xero Savedata(@RequestBody Xero data) { + Xero save = Service.Savedata(data) ; + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Xero/{id}") + public Xero update(@RequestBody Xero data,@PathVariable Integer id ) { + Xero update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Xero/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("/Xero") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Xero") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Xero/{id}") + public Xero getdetailsbyId(@PathVariable Integer id ) { + Xero get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Xero/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Xero_invoicesController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Xero_invoicesController.java new file mode 100644 index 0000000..080c31f --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Xero_invoicesController.java @@ -0,0 +1,131 @@ +package com.realnet.vpspack.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.vpspack.Entity.Xero_invoices; +import com.realnet.vpspack.Services.Xero_invoicesService ; + + + + + + + + + + + + + + +@RequestMapping(value = "/Xero_invoices") + @CrossOrigin("*") +@RestController +public class Xero_invoicesController { + @Autowired + private Xero_invoicesService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + @PostMapping("/Xero_invoices") + public Xero_invoices Savedata(@RequestBody Xero_invoices data) { + Xero_invoices save = Service.Savedata(data) ; + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Xero_invoices/{id}") + public Xero_invoices update(@RequestBody Xero_invoices data,@PathVariable Integer id ) { + Xero_invoices update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Xero_invoices/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("/Xero_invoices") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Xero_invoices") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Xero_invoices/{id}") + public Xero_invoices getdetailsbyId(@PathVariable Integer id ) { + Xero_invoices get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Xero_invoices/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Xero_invoices_lineController.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Xero_invoices_lineController.java new file mode 100644 index 0000000..410ae6a --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Controllers/Xero_invoices_lineController.java @@ -0,0 +1,155 @@ +package com.realnet.vpspack.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.vpspack.Entity.Xero_invoices_line; +import com.realnet.vpspack.Services.Xero_invoices_lineService ; + + + + + + + + + + + + + + + + + + + + +@RequestMapping(value = "/Xero_invoices_line") + @CrossOrigin("*") +@RestController +public class Xero_invoices_lineController { + @Autowired + private Xero_invoices_lineService Service; + +@Value("${projectPath}") + private String projectPath; + + + + + + + + + + + + + + + + + + + + + + @PostMapping("/Xero_invoices_line") + public Xero_invoices_line Savedata(@RequestBody Xero_invoices_line data) { + Xero_invoices_line save = Service.Savedata(data) ; + + + + + + + + + + + + + + + + + + + + System.out.println("data saved..." + save); + + return save; + } +@PutMapping("/Xero_invoices_line/{id}") + public Xero_invoices_line update(@RequestBody Xero_invoices_line data,@PathVariable Integer id ) { + Xero_invoices_line update = Service.update(data,id); + System.out.println("data update..." + update); + return update; + } +// get all with pagination + @GetMapping("/Xero_invoices_line/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("/Xero_invoices_line") + public List getdetails() { + List get = Service.getdetails(); + return get; +} +// get all without authentication + + @GetMapping("/token/Xero_invoices_line") + public List getallwioutsec() { + List get = Service.getdetails(); + return get; +} +@GetMapping("/Xero_invoices_line/{id}") + public Xero_invoices_line getdetailsbyId(@PathVariable Integer id ) { + Xero_invoices_line get = Service.getdetailsbyId(id); + return get; + } +@DeleteMapping("/Xero_invoices_line/{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/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Agent_report.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Agent_report.java new file mode 100644 index 0000000..c6960e2 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Agent_report.java @@ -0,0 +1,69 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + + + + + + + + + + + + +import com.realnet.vpspack.Entity.Agent_report_line; + + @Entity + @Data + public class Agent_report extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String invoice_created; + +private String entry_date_form; + +private String date_field; + +private String entry_date_to; + +private String full_name; + +private String application_code; + +private String nationality; + +private String agent; + +private int passport_number; + +private String filter_btn; + +private String reset_btn; + +@OneToMany( cascade=CascadeType.ALL) + private List agent_report_line = new ArrayList<>(); + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Agent_report_line.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Agent_report_line.java new file mode 100644 index 0000000..464f3eb --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Agent_report_line.java @@ -0,0 +1,72 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + + + + + + + + + + + + + + + + + @Entity + @Data + public class Agent_report_line extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String invoice_created; + +private String status; + +private String full_name; + +private String agent; + +private String entry_date; + +private String application_code; + +private String nationality; + +private int passport_number; + +private String visa_entry_type; + +private String visa_processing_time; + +private String visa_duration; + +private int invoice_id; + +private int total_price; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Completed_or_archive.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Completed_or_archive.java new file mode 100644 index 0000000..5f0c7b1 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Completed_or_archive.java @@ -0,0 +1,49 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + + +import com.realnet.vpspack.Entity.Completed_or_archive_child; + + @Entity + @Data + public class Completed_or_archive extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String full_name; + +private String application_code; + +private String nationality; + +private int number_field; + +private String reset_btn; + +private String filter_btn; + +@OneToMany( cascade=CascadeType.ALL) + private List completed_or_archive_child = new ArrayList<>(); + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Completed_or_archive_child.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Completed_or_archive_child.java new file mode 100644 index 0000000..8e8e283 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Completed_or_archive_child.java @@ -0,0 +1,68 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + + + + + + + + + + + + + + + @Entity + @Data + public class Completed_or_archive_child extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String full_name; + +private String agent; + +private boolean supplier_acknowledged; + +private String status; + +private String entry_date; + +private String application_code; + +private String supplier; + + private String phone_number; + +private String email_id; + +private String note; + +private String visa; + +private String coupon; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Cost_sheet_upload.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Cost_sheet_upload.java new file mode 100644 index 0000000..45bb1df --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Cost_sheet_upload.java @@ -0,0 +1,49 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + + + + + @Entity + @Data + public class Cost_sheet_upload extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String cost_sheet_uploadname; +private String cost_sheet_uploadpath ; + +private String date; + +private String name; + +private String nationality; + +private String passport_type; + +private int passport_number; + +private int cost; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Coupon.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Coupon.java new file mode 100644 index 0000000..5b27eb3 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Coupon.java @@ -0,0 +1,36 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + @Entity + @Data + public class Coupon extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String code; + +private boolean active; + +private String coupon_validity; + +private int coupon_discount; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Customer_report.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Customer_report.java new file mode 100644 index 0000000..6515267 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Customer_report.java @@ -0,0 +1,32 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + @Entity + @Data + public class Customer_report extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String full_name; + + private String phone_number; + +private String email_id; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Deleted.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Deleted.java new file mode 100644 index 0000000..7d58dcd --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Deleted.java @@ -0,0 +1,45 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + +import com.realnet.basicp1.Entity.Deleted_child; + + @Entity + @Data + public class Deleted extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String name; + +private String application_code; + +private String nationality; + +private String filter_btn; + +private String reset_btn; + +@OneToMany( cascade=CascadeType.ALL) + private List deleted_child = new ArrayList<>(); + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Emails.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Emails.java new file mode 100644 index 0000000..b82e2dd --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Emails.java @@ -0,0 +1,28 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + @Entity + @Data + public class Emails extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String code; + +private String subject; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Groupss.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Groupss.java new file mode 100644 index 0000000..49f941c --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Groupss.java @@ -0,0 +1,45 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + @Entity + @Data + public class Groupss extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + + + + +private boolean name; + + + +private boolean staff; + + + +private boolean supplier; + + + +private boolean agent; + + + +private boolean admin; + + + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Media.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Media.java new file mode 100644 index 0000000..d6b3b71 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Media.java @@ -0,0 +1,24 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + @Entity + @Data + public class Media extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String media; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Nationality.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Nationality.java new file mode 100644 index 0000000..b70c4e1 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Nationality.java @@ -0,0 +1,28 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + @Entity + @Data + public class Nationality extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String nationality; + +private String visa_status; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Notification.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Notification.java new file mode 100644 index 0000000..e8c2e25 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Notification.java @@ -0,0 +1,28 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + @Entity + @Data + public class Notification extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String code; + +private String notification; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Paget.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Paget.java new file mode 100644 index 0000000..e6f1cd0 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Paget.java @@ -0,0 +1,24 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + @Entity + @Data + public class Paget extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String all_pages_link; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Pending_agent.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Pending_agent.java new file mode 100644 index 0000000..0f19468 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Pending_agent.java @@ -0,0 +1,49 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + + +import com.realnet.vpspack.Entity.Pending_agent_child; + + @Entity + @Data + public class Pending_agent extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String full_name; + +private String application_code; + +private String nationality; + +private int passport_number; + +private String filter_btn; + +private String reset_btn; + +@OneToMany( cascade=CascadeType.ALL) + private List pending_agent_child = new ArrayList<>(); + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Pending_agent_child.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Pending_agent_child.java new file mode 100644 index 0000000..760aab0 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Pending_agent_child.java @@ -0,0 +1,68 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + + + + + + + + + + + + + + + @Entity + @Data + public class Pending_agent_child extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String agent; + +private String full_name; + +private String supplier_acknowledged; + +private String entry_date; + +private String application_code; + +private String email_id; + + private String phone_number; + +private String supplier; + +private String nationality; + +private String note; + +private String visa; + +private String action; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Pending_customer.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Pending_customer.java new file mode 100644 index 0000000..67464e1 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Pending_customer.java @@ -0,0 +1,49 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + + +import com.realnet.vpspack.Entity.Pending_customer_child; + + @Entity + @Data + public class Pending_customer extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String full_name; + +private String application_code; + +private String nationality; + +private int passport_number; + +private String filter_btn; + +private String reset_btn; + +@OneToMany( cascade=CascadeType.ALL) + private List pending_customer_child = new ArrayList<>(); + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Pending_customer_child.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Pending_customer_child.java new file mode 100644 index 0000000..5e3b6bd --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Pending_customer_child.java @@ -0,0 +1,68 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + + + + + + + + + + + + + + + @Entity + @Data + public class Pending_customer_child extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String full_name; + +private boolean supplier_acknowledged; + +private String status; + +private String entry_date; + +private String application_code; + +private String email_id; + + private String phone_number; + +private String supplier; + +private String nationality; + +private String note; + +private String visa; + +private String coupon; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Processing_agent.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Processing_agent.java new file mode 100644 index 0000000..623fe9f --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Processing_agent.java @@ -0,0 +1,49 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + + +import com.realnet.vpspack.Entity.Pending_agent_child; + + @Entity + @Data + public class Processing_agent extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String full_name; + +private String application_code; + +private String nationality; + +private int passport_number; + +private String filter_btn; + +private String reset_btn; + +@OneToMany( cascade=CascadeType.ALL) + private List pending_agent_child = new ArrayList<>(); + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Processing_agent_child.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Processing_agent_child.java new file mode 100644 index 0000000..1a6b793 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Processing_agent_child.java @@ -0,0 +1,68 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + + + + + + + + + + + + + + + @Entity + @Data + public class Processing_agent_child extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String name; + +private String agent; + +private boolean supplier_acknowledged; + +private String status; + +private String entry_date; + +private String application_code; + +private String email_id; + + private String phone_number; + +private String supplier; + +private String nationality; + +private String note; + +private String visa; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Processing_customer.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Processing_customer.java new file mode 100644 index 0000000..6e8058a --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Processing_customer.java @@ -0,0 +1,49 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + + +import com.realnet.vpspack.Entity.Processing_customer_child; + + @Entity + @Data + public class Processing_customer extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String full_name; + +private String application_code; + +private String nationality; + +private int passport_number; + +private String filter_btn; + +private String reset_btn; + +@OneToMany( cascade=CascadeType.ALL) + private List processing_customer_child = new ArrayList<>(); + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Processing_customer_child.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Processing_customer_child.java new file mode 100644 index 0000000..7ac8fc5 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Processing_customer_child.java @@ -0,0 +1,68 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + + + + + + + + + + + + + + + @Entity + @Data + public class Processing_customer_child extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String full_name; + +private boolean supplier_acknowledged; + +private String status; + +private String entry_date; + +private String application_code; + +private String email_id; + + private String phone_number; + +private String supplier; + +private String nationality; + +private String note; + +private String visa; + +private String coupon; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Refferere_report.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Refferere_report.java new file mode 100644 index 0000000..96d624d --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Refferere_report.java @@ -0,0 +1,33 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + +import com.realnet.vpspack.Entity.Refferere_report_line; + + @Entity + @Data + public class Refferere_report extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String entry_date_from; + +private String entry_date_to; + +@OneToMany( cascade=CascadeType.ALL) + private List refferere_report_line = new ArrayList<>(); + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Refferere_report_line.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Refferere_report_line.java new file mode 100644 index 0000000..d3c6db2 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Refferere_report_line.java @@ -0,0 +1,72 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + + + + + + + + + + + + + + + + + @Entity + @Data + public class Refferere_report_line extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String invoice_created; + +private String status; + +private String full_name; + +private String agent; + +private String entry_date; + +private String application_code; + +private String nationality; + +private int passport_number; + +private String visa_entry_type; + +private String visa_duration; + +private String visa_processing_time; + +private String cost; + +private String total_price; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Refrreres.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Refrreres.java new file mode 100644 index 0000000..a84e865 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Refrreres.java @@ -0,0 +1,37 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + +import com.realnet.vpspack.Entity.Refferere_report_line; + + @Entity + @Data + public class Refrreres extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String company; + +private String first_name; + +private String last_name; + +@OneToMany( cascade=CascadeType.ALL) + private List refferere_report_line = new ArrayList<>(); + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Refrreres_line.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Refrreres_line.java new file mode 100644 index 0000000..fa7ea02 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Refrreres_line.java @@ -0,0 +1,44 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + + + @Entity + @Data + public class Refrreres_line extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String company; + +private String first_name; + +private String last_name; + +private String country; + +private String city; + +private String email; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Refund.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Refund.java new file mode 100644 index 0000000..387b5c4 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Refund.java @@ -0,0 +1,45 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + +import com.realnet.vpspack.Entity.Refund_child; + + @Entity + @Data + public class Refund extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String name; + +private String application_code; + +private int filter_btn; + +private String reset_btn; + +private String nationality; + +@OneToMany( cascade=CascadeType.ALL) + private List refund_child = new ArrayList<>(); + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Refund_child.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Refund_child.java new file mode 100644 index 0000000..f79ea7c --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Refund_child.java @@ -0,0 +1,68 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + + + + + + + + + + + + + + + @Entity + @Data + public class Refund_child extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String full_name; + +private boolean supplier_acknowledged; + +private String status; + +private String entry_date; + +private String application_code; + +private String email_id; + + private String phone_number; + +private String supplier; + +private String nationality; + +private String note; + +private String visa; + +private int transction_id; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Rejected.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Rejected.java new file mode 100644 index 0000000..a4fcac8 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Rejected.java @@ -0,0 +1,49 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + + +import com.realnet.vpspack.Entity.Rejected_child; + + @Entity + @Data + public class Rejected extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String full_name; + +private String application_code; + +private String nationality; + +private int passport_number; + +private String filter_btn; + +private String reset_btn; + +@OneToMany( cascade=CascadeType.ALL) + private List rejected_child = new ArrayList<>(); + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Rejected_child.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Rejected_child.java new file mode 100644 index 0000000..3a64573 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Rejected_child.java @@ -0,0 +1,68 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + + + + + + + + + + + + + + + @Entity + @Data + public class Rejected_child extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String full_name; + +private boolean supplier_acknowledged; + +private String status; + +private String entry_date; + +private String application_code; + +private String email_id; + + private String phone; + +private String supplier; + +private String nationality; + +private String note; + +private String visa; + +private String action; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/S_m_s.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/S_m_s.java new file mode 100644 index 0000000..1b0b126 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/S_m_s.java @@ -0,0 +1,34 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + @Entity + @Data + public class S_m_s extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String user; + +private String password; +@Transient +private String confirmpassword; + +private int api_id; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Sage_pay.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Sage_pay.java new file mode 100644 index 0000000..5881951 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Sage_pay.java @@ -0,0 +1,64 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + + + + + + + + + + + + + @Entity + @Data + public class Sage_pay extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String application_code; + +private String status; + +private int amount; + +private String created; + +private String vendercode; + +private String card_type; + +private String expiry_date; + +private int last4digit; + +private String vpstxid; + +private int txauthno; + +private String banckauthcode; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Sage_pays.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Sage_pays.java new file mode 100644 index 0000000..3b2b100 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Sage_pays.java @@ -0,0 +1,34 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + @Entity + @Data + public class Sage_pays extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private int vender_id; + +private String password; +@Transient +private String confirmpassword; + +private String url; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Site.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Site.java new file mode 100644 index 0000000..b6fda30 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Site.java @@ -0,0 +1,57 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + + + + + + + + + @Entity + @Data + public class Site extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String name; + +private boolean isdefault; + +private boolean enable; + +private String host; + +private String relative_path; + +private String local; + +private String enable_form; + +private String enable_to; + +private String snapshotname; +private String snapshotpath ; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Staff_application.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Staff_application.java new file mode 100644 index 0000000..5675f09 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Staff_application.java @@ -0,0 +1,49 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + + +import com.realnet.vpspack.Entity.Staffappchild; + + @Entity + @Data + public class Staff_application extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String full_name; + +private String application_code; + +private String nationality; + +private int passport_number; + +private String filter_btn; + +private String reset_btn; + +@OneToMany( cascade=CascadeType.ALL) + private List staffappchild = new ArrayList<>(); + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Staffappchild.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Staffappchild.java new file mode 100644 index 0000000..2c291bd --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Staffappchild.java @@ -0,0 +1,68 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + + + + + + + + + + + + + + + @Entity + @Data + public class Staffappchild extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String full_name; + +private boolean supplier_acknowledged; + +private String status; + +private String entry_date; + +private String application_code; + +private String email_field; + + private String phone_number; + +private String supllier; + +private String nationality; + +private String note; + +private String visa; + +private String coupon; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Status.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Status.java new file mode 100644 index 0000000..d6ac4d7 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Status.java @@ -0,0 +1,24 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + @Entity + @Data + public class Status extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String status; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Supplier_report.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Supplier_report.java new file mode 100644 index 0000000..171621c --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Supplier_report.java @@ -0,0 +1,61 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + + + + + + + + +import com.realnet.vpspack.Entity.Supplier_report_line; + + @Entity + @Data + public class Supplier_report extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String entry_date_form; + +private String entry_date_to; + +private String full_name; + +private String application_code; + +private String nationality; + +private String supplier; + +private int passport_number; + +private String filter_btn; + +private String reset_btn; + +@OneToMany( cascade=CascadeType.ALL) + private List supplier_report_line = new ArrayList<>(); + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Supplier_report_line.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Supplier_report_line.java new file mode 100644 index 0000000..186c6c4 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Supplier_report_line.java @@ -0,0 +1,64 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + + + + + + + + + + + + + @Entity + @Data + public class Supplier_report_line extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String full_name; + +private String supplier; + +private String agent; + +private String entry_date; + +private String application_code; + +private String nationality; + +private int passport_number; + +private String visa_entry_type; + +private String visa_duration; + +private String visa_processing_time; + +private int total_price; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Upload_visa.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Upload_visa.java new file mode 100644 index 0000000..90b0a94 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Upload_visa.java @@ -0,0 +1,33 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + @Entity + @Data + public class Upload_visa extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String fileupload_visaname; +private String fileupload_visapath ; + +private String rejected_visa; + +private String application; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Visa_app_order.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Visa_app_order.java new file mode 100644 index 0000000..e04a2fb --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Visa_app_order.java @@ -0,0 +1,33 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + @Entity + @Data + public class Visa_app_order extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String name; + +private int rate; + +private Integer price; +private String pricename; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Visa_app_order_ListFilter1.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Visa_app_order_ListFilter1.java new file mode 100644 index 0000000..e4dc536 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Visa_app_order_ListFilter1.java @@ -0,0 +1,14 @@ +package com.realnet.vpspack.Entity; + import lombok.*; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + @Data + public class Visa_app_order_ListFilter1 { + + private Integer id; + + + private String rate; +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Visa_billing.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Visa_billing.java new file mode 100644 index 0000000..b48fe6a --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Visa_billing.java @@ -0,0 +1,24 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + @Entity + @Data + public class Visa_billing extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String visa_entry_type; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Visa_duration.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Visa_duration.java new file mode 100644 index 0000000..26a9b27 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Visa_duration.java @@ -0,0 +1,24 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + @Entity + @Data + public class Visa_duration extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String visa_duration; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Visa_prices.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Visa_prices.java new file mode 100644 index 0000000..c07c0b8 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Visa_prices.java @@ -0,0 +1,40 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + @Entity + @Data + public class Visa_prices extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String visa_entry_type; + +private String visa_duration; + +private String visa_processing; + +private int total_price; + +private int cost; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Visa_processing_time.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Visa_processing_time.java new file mode 100644 index 0000000..e10ed73 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Visa_processing_time.java @@ -0,0 +1,24 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + @Entity + @Data + public class Visa_processing_time extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String visa_processing_time; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Visa_status.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Visa_status.java new file mode 100644 index 0000000..4f76ab5 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Visa_status.java @@ -0,0 +1,28 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + @Entity + @Data + public class Visa_status extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String visa_status; + +private String price; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Xero.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Xero.java new file mode 100644 index 0000000..23cf55c --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Xero.java @@ -0,0 +1,24 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + @Entity + @Data + public class Xero extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String customer_key; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Xero_invoices.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Xero_invoices.java new file mode 100644 index 0000000..0ecdc34 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Xero_invoices.java @@ -0,0 +1,49 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + + +import com.realnet.vpspack.Entity.Xero_invoices_line; + + @Entity + @Data + public class Xero_invoices extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String payed; + +private String invoice_sent; + +private String customer; + +private String agent; + +private String reset_btn; + +private String filter_btn; + +@OneToMany( cascade=CascadeType.ALL) + private List xero_invoices_line = new ArrayList<>(); + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Xero_invoices_line.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Xero_invoices_line.java new file mode 100644 index 0000000..3e7dce6 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Entity/Xero_invoices_line.java @@ -0,0 +1,60 @@ +package com.realnet.vpspack.Entity; + import lombok.*; +import com.realnet.WhoColumn.Entity.Extension; + import javax.persistence.*; + import java.time.LocalDateTime; + import java.util.*; + + + + + + + + + + + + + + + + + + + + + @Entity + @Data + public class Xero_invoices_line extends Extension { + /** + * + */ + private static final long serialVersionUID = 1L; + + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Integer id; + +private String payed; + +private String invoice_sent; + +private String coustomer; + +private String agent; + +private int invoice_id; + +private int invoice_number; + +private int total_price; + +private String show_btn; + +private String show_pdf_btn; + +private String send_invoice_btn; + + +} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Agent_reportRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Agent_reportRepository.java new file mode 100644 index 0000000..44ff98b --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Agent_reportRepository.java @@ -0,0 +1,48 @@ +package com.realnet.vpspack.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.vpspack.Entity.Agent_report; + +@Repository +public interface Agent_reportRepository extends JpaRepository { + +@Query(value = "select * from agent_report where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from agent_report where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Agent_report_lineRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Agent_report_lineRepository.java new file mode 100644 index 0000000..0bf7c91 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Agent_report_lineRepository.java @@ -0,0 +1,50 @@ +package com.realnet.vpspack.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.vpspack.Entity.Agent_report_line; + +@Repository +public interface Agent_report_lineRepository extends JpaRepository { + +@Query(value = "select * from agent_report_line where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from agent_report_line where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Completed_or_archiveRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Completed_or_archiveRepository.java new file mode 100644 index 0000000..a460685 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Completed_or_archiveRepository.java @@ -0,0 +1,38 @@ +package com.realnet.vpspack.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.vpspack.Entity.Completed_or_archive; + +@Repository +public interface Completed_or_archiveRepository extends JpaRepository { + +@Query(value = "select * from completed_or_archive where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from completed_or_archive where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Completed_or_archive_childRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Completed_or_archive_childRepository.java new file mode 100644 index 0000000..97757bf --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Completed_or_archive_childRepository.java @@ -0,0 +1,48 @@ +package com.realnet.vpspack.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.vpspack.Entity.Completed_or_archive_child; + +@Repository +public interface Completed_or_archive_childRepository extends JpaRepository { + +@Query(value = "select * from completed_or_archive_child where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from completed_or_archive_child where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Cost_sheet_uploadRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Cost_sheet_uploadRepository.java new file mode 100644 index 0000000..5304ff2 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Cost_sheet_uploadRepository.java @@ -0,0 +1,38 @@ +package com.realnet.vpspack.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.vpspack.Entity.Cost_sheet_upload; + +@Repository +public interface Cost_sheet_uploadRepository extends JpaRepository { + +@Query(value = "select * from cost_sheet_upload where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from cost_sheet_upload where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/CouponRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/CouponRepository.java new file mode 100644 index 0000000..7015e92 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/CouponRepository.java @@ -0,0 +1,32 @@ +package com.realnet.vpspack.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.vpspack.Entity.Coupon; + +@Repository +public interface CouponRepository extends JpaRepository { + +@Query(value = "select * from coupon where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from coupon where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Customer_reportRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Customer_reportRepository.java new file mode 100644 index 0000000..bb92494 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Customer_reportRepository.java @@ -0,0 +1,30 @@ +package com.realnet.vpspack.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.vpspack.Entity.Customer_report; + +@Repository +public interface Customer_reportRepository extends JpaRepository { + +@Query(value = "select * from customer_report where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from customer_report where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/DeletedRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/DeletedRepository.java new file mode 100644 index 0000000..a620688 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/DeletedRepository.java @@ -0,0 +1,36 @@ +package com.realnet.vpspack.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.vpspack.Entity.Deleted; + +@Repository +public interface DeletedRepository extends JpaRepository { + +@Query(value = "select * from deleted where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from deleted where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/EmailsRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/EmailsRepository.java new file mode 100644 index 0000000..ea26d8b --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/EmailsRepository.java @@ -0,0 +1,28 @@ +package com.realnet.vpspack.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.vpspack.Entity.Emails; + +@Repository +public interface EmailsRepository extends JpaRepository { + +@Query(value = "select * from emails where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from emails where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/GroupssRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/GroupssRepository.java new file mode 100644 index 0000000..43b97fb --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/GroupssRepository.java @@ -0,0 +1,26 @@ +package com.realnet.vpspack.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.vpspack.Entity.Groupss; + +@Repository +public interface GroupssRepository extends JpaRepository { + +@Query(value = "select * from groupss where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from groupss where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/MediaRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/MediaRepository.java new file mode 100644 index 0000000..456fdb5 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/MediaRepository.java @@ -0,0 +1,26 @@ +package com.realnet.vpspack.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.vpspack.Entity.Media; + +@Repository +public interface MediaRepository extends JpaRepository { + +@Query(value = "select * from media where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from media where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/NationalityRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/NationalityRepository.java new file mode 100644 index 0000000..1af212f --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/NationalityRepository.java @@ -0,0 +1,28 @@ +package com.realnet.vpspack.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.vpspack.Entity.Nationality; + +@Repository +public interface NationalityRepository extends JpaRepository { + +@Query(value = "select * from nationality where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from nationality where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/NotificationRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/NotificationRepository.java new file mode 100644 index 0000000..c7ed608 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/NotificationRepository.java @@ -0,0 +1,28 @@ +package com.realnet.vpspack.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.vpspack.Entity.Notification; + +@Repository +public interface NotificationRepository extends JpaRepository { + +@Query(value = "select * from notification where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from notification where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/PagetRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/PagetRepository.java new file mode 100644 index 0000000..ddc7859 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/PagetRepository.java @@ -0,0 +1,26 @@ +package com.realnet.vpspack.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.vpspack.Entity.Paget; + +@Repository +public interface PagetRepository extends JpaRepository { + +@Query(value = "select * from paget where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from paget where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Pending_agentRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Pending_agentRepository.java new file mode 100644 index 0000000..d99ceea --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Pending_agentRepository.java @@ -0,0 +1,38 @@ +package com.realnet.vpspack.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.vpspack.Entity.Pending_agent; + +@Repository +public interface Pending_agentRepository extends JpaRepository { + +@Query(value = "select * from pending_agent where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from pending_agent where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Pending_agent_childRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Pending_agent_childRepository.java new file mode 100644 index 0000000..69512c2 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Pending_agent_childRepository.java @@ -0,0 +1,48 @@ +package com.realnet.vpspack.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.vpspack.Entity.Pending_agent_child; + +@Repository +public interface Pending_agent_childRepository extends JpaRepository { + +@Query(value = "select * from pending_agent_child where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from pending_agent_child where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Pending_customerRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Pending_customerRepository.java new file mode 100644 index 0000000..6ac9227 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Pending_customerRepository.java @@ -0,0 +1,38 @@ +package com.realnet.vpspack.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.vpspack.Entity.Pending_customer; + +@Repository +public interface Pending_customerRepository extends JpaRepository { + +@Query(value = "select * from pending_customer where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from pending_customer where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Pending_customer_childRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Pending_customer_childRepository.java new file mode 100644 index 0000000..da60fa5 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Pending_customer_childRepository.java @@ -0,0 +1,48 @@ +package com.realnet.vpspack.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.vpspack.Entity.Pending_customer_child; + +@Repository +public interface Pending_customer_childRepository extends JpaRepository { + +@Query(value = "select * from pending_customer_child where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from pending_customer_child where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Processing_agentRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Processing_agentRepository.java new file mode 100644 index 0000000..b31c173 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Processing_agentRepository.java @@ -0,0 +1,38 @@ +package com.realnet.vpspack.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.vpspack.Entity.Processing_agent; + +@Repository +public interface Processing_agentRepository extends JpaRepository { + +@Query(value = "select * from processing_agent where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from processing_agent where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Processing_agent_childRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Processing_agent_childRepository.java new file mode 100644 index 0000000..ee4bfae --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Processing_agent_childRepository.java @@ -0,0 +1,48 @@ +package com.realnet.vpspack.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.vpspack.Entity.Processing_agent_child; + +@Repository +public interface Processing_agent_childRepository extends JpaRepository { + +@Query(value = "select * from processing_agent_child where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from processing_agent_child where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Processing_customerRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Processing_customerRepository.java new file mode 100644 index 0000000..2a25cf3 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Processing_customerRepository.java @@ -0,0 +1,38 @@ +package com.realnet.vpspack.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.vpspack.Entity.Processing_customer; + +@Repository +public interface Processing_customerRepository extends JpaRepository { + +@Query(value = "select * from processing_customer where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from processing_customer where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Processing_customer_childRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Processing_customer_childRepository.java new file mode 100644 index 0000000..689b9ce --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Processing_customer_childRepository.java @@ -0,0 +1,48 @@ +package com.realnet.vpspack.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.vpspack.Entity.Processing_customer_child; + +@Repository +public interface Processing_customer_childRepository extends JpaRepository { + +@Query(value = "select * from processing_customer_child where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from processing_customer_child where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Refferere_reportRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Refferere_reportRepository.java new file mode 100644 index 0000000..df7be1c --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Refferere_reportRepository.java @@ -0,0 +1,30 @@ +package com.realnet.vpspack.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.vpspack.Entity.Refferere_report; + +@Repository +public interface Refferere_reportRepository extends JpaRepository { + +@Query(value = "select * from refferere_report where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from refferere_report where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Refferere_report_lineRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Refferere_report_lineRepository.java new file mode 100644 index 0000000..fa26d81 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Refferere_report_lineRepository.java @@ -0,0 +1,50 @@ +package com.realnet.vpspack.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.vpspack.Entity.Refferere_report_line; + +@Repository +public interface Refferere_report_lineRepository extends JpaRepository { + +@Query(value = "select * from refferere_report_line where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from refferere_report_line where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/RefrreresRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/RefrreresRepository.java new file mode 100644 index 0000000..5a04d46 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/RefrreresRepository.java @@ -0,0 +1,32 @@ +package com.realnet.vpspack.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.vpspack.Entity.Refrreres; + +@Repository +public interface RefrreresRepository extends JpaRepository { + +@Query(value = "select * from refrreres where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from refrreres where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Refrreres_lineRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Refrreres_lineRepository.java new file mode 100644 index 0000000..303e6f6 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Refrreres_lineRepository.java @@ -0,0 +1,36 @@ +package com.realnet.vpspack.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.vpspack.Entity.Refrreres_line; + +@Repository +public interface Refrreres_lineRepository extends JpaRepository { + +@Query(value = "select * from refrreres_line where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from refrreres_line where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/RefundRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/RefundRepository.java new file mode 100644 index 0000000..f76afcd --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/RefundRepository.java @@ -0,0 +1,36 @@ +package com.realnet.vpspack.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.vpspack.Entity.Refund; + +@Repository +public interface RefundRepository extends JpaRepository { + +@Query(value = "select * from refund where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from refund where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Refund_childRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Refund_childRepository.java new file mode 100644 index 0000000..3be38dd --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Refund_childRepository.java @@ -0,0 +1,48 @@ +package com.realnet.vpspack.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.vpspack.Entity.Refund_child; + +@Repository +public interface Refund_childRepository extends JpaRepository { + +@Query(value = "select * from refund_child where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from refund_child where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/RejectedRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/RejectedRepository.java new file mode 100644 index 0000000..4a3a263 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/RejectedRepository.java @@ -0,0 +1,38 @@ +package com.realnet.vpspack.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.vpspack.Entity.Rejected; + +@Repository +public interface RejectedRepository extends JpaRepository { + +@Query(value = "select * from rejected where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from rejected where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Rejected_childRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Rejected_childRepository.java new file mode 100644 index 0000000..853b9c7 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Rejected_childRepository.java @@ -0,0 +1,48 @@ +package com.realnet.vpspack.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.vpspack.Entity.Rejected_child; + +@Repository +public interface Rejected_childRepository extends JpaRepository { + +@Query(value = "select * from rejected_child where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from rejected_child where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/S_m_sRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/S_m_sRepository.java new file mode 100644 index 0000000..67f777d --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/S_m_sRepository.java @@ -0,0 +1,30 @@ +package com.realnet.vpspack.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.vpspack.Entity.S_m_s; + +@Repository +public interface S_m_sRepository extends JpaRepository { + +@Query(value = "select * from s_m_s where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from s_m_s where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Sage_payRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Sage_payRepository.java new file mode 100644 index 0000000..3bce6c9 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Sage_payRepository.java @@ -0,0 +1,46 @@ +package com.realnet.vpspack.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.vpspack.Entity.Sage_pay; + +@Repository +public interface Sage_payRepository extends JpaRepository { + +@Query(value = "select * from sage_pay where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from sage_pay where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Sage_paysRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Sage_paysRepository.java new file mode 100644 index 0000000..e9171ac --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Sage_paysRepository.java @@ -0,0 +1,30 @@ +package com.realnet.vpspack.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.vpspack.Entity.Sage_pays; + +@Repository +public interface Sage_paysRepository extends JpaRepository { + +@Query(value = "select * from sage_pays where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from sage_pays where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/SiteRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/SiteRepository.java new file mode 100644 index 0000000..9224a56 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/SiteRepository.java @@ -0,0 +1,42 @@ +package com.realnet.vpspack.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.vpspack.Entity.Site; + +@Repository +public interface SiteRepository extends JpaRepository { + +@Query(value = "select * from site where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from site where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Staff_applicationRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Staff_applicationRepository.java new file mode 100644 index 0000000..88ce65a --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Staff_applicationRepository.java @@ -0,0 +1,38 @@ +package com.realnet.vpspack.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.vpspack.Entity.Staff_application; + +@Repository +public interface Staff_applicationRepository extends JpaRepository { + +@Query(value = "select * from staff_application where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from staff_application where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/StaffappchildRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/StaffappchildRepository.java new file mode 100644 index 0000000..e1c952b --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/StaffappchildRepository.java @@ -0,0 +1,48 @@ +package com.realnet.vpspack.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.vpspack.Entity.Staffappchild; + +@Repository +public interface StaffappchildRepository extends JpaRepository { + +@Query(value = "select * from staffappchild where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from staffappchild where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/StatusRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/StatusRepository.java new file mode 100644 index 0000000..eea11c4 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/StatusRepository.java @@ -0,0 +1,26 @@ +package com.realnet.vpspack.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.vpspack.Entity.Status; + +@Repository +public interface StatusRepository extends JpaRepository { + +@Query(value = "select * from status where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from status where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Supplier_reportRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Supplier_reportRepository.java new file mode 100644 index 0000000..e269575 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Supplier_reportRepository.java @@ -0,0 +1,44 @@ +package com.realnet.vpspack.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.vpspack.Entity.Supplier_report; + +@Repository +public interface Supplier_reportRepository extends JpaRepository { + +@Query(value = "select * from supplier_report where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from supplier_report where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Supplier_report_lineRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Supplier_report_lineRepository.java new file mode 100644 index 0000000..645fd7d --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Supplier_report_lineRepository.java @@ -0,0 +1,46 @@ +package com.realnet.vpspack.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.vpspack.Entity.Supplier_report_line; + +@Repository +public interface Supplier_report_lineRepository extends JpaRepository { + +@Query(value = "select * from supplier_report_line where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from supplier_report_line where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Upload_visaRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Upload_visaRepository.java new file mode 100644 index 0000000..1f7c6d9 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Upload_visaRepository.java @@ -0,0 +1,30 @@ +package com.realnet.vpspack.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.vpspack.Entity.Upload_visa; + +@Repository +public interface Upload_visaRepository extends JpaRepository { + +@Query(value = "select * from upload_visa where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from upload_visa where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Visa_app_orderRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Visa_app_orderRepository.java new file mode 100644 index 0000000..13ad633 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Visa_app_orderRepository.java @@ -0,0 +1,30 @@ +package com.realnet.vpspack.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.vpspack.Entity.Visa_app_order; + +@Repository +public interface Visa_app_orderRepository extends JpaRepository { + +@Query(value = "select * from visa_app_order where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from visa_app_order where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Visa_billingRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Visa_billingRepository.java new file mode 100644 index 0000000..943b53d --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Visa_billingRepository.java @@ -0,0 +1,26 @@ +package com.realnet.vpspack.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.vpspack.Entity.Visa_billing; + +@Repository +public interface Visa_billingRepository extends JpaRepository { + +@Query(value = "select * from visa_billing where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from visa_billing where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Visa_durationRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Visa_durationRepository.java new file mode 100644 index 0000000..06db80e --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Visa_durationRepository.java @@ -0,0 +1,26 @@ +package com.realnet.vpspack.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.vpspack.Entity.Visa_duration; + +@Repository +public interface Visa_durationRepository extends JpaRepository { + +@Query(value = "select * from visa_duration where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from visa_duration where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Visa_pricesRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Visa_pricesRepository.java new file mode 100644 index 0000000..86fdc90 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Visa_pricesRepository.java @@ -0,0 +1,34 @@ +package com.realnet.vpspack.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.vpspack.Entity.Visa_prices; + +@Repository +public interface Visa_pricesRepository extends JpaRepository { + +@Query(value = "select * from visa_prices where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from visa_prices where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Visa_processing_timeRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Visa_processing_timeRepository.java new file mode 100644 index 0000000..64781eb --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Visa_processing_timeRepository.java @@ -0,0 +1,26 @@ +package com.realnet.vpspack.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.vpspack.Entity.Visa_processing_time; + +@Repository +public interface Visa_processing_timeRepository extends JpaRepository { + +@Query(value = "select * from visa_processing_time where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from visa_processing_time where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Visa_statusRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Visa_statusRepository.java new file mode 100644 index 0000000..66cce9e --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Visa_statusRepository.java @@ -0,0 +1,28 @@ +package com.realnet.vpspack.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.vpspack.Entity.Visa_status; + +@Repository +public interface Visa_statusRepository extends JpaRepository { + +@Query(value = "select * from visa_status where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from visa_status where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/XeroRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/XeroRepository.java new file mode 100644 index 0000000..544e489 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/XeroRepository.java @@ -0,0 +1,26 @@ +package com.realnet.vpspack.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.vpspack.Entity.Xero; + +@Repository +public interface XeroRepository extends JpaRepository { + +@Query(value = "select * from xero where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from xero where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Xero_invoicesRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Xero_invoicesRepository.java new file mode 100644 index 0000000..80a508f --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Xero_invoicesRepository.java @@ -0,0 +1,38 @@ +package com.realnet.vpspack.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.vpspack.Entity.Xero_invoices; + +@Repository +public interface Xero_invoicesRepository extends JpaRepository { + +@Query(value = "select * from xero_invoices where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from xero_invoices where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Xero_invoices_lineRepository.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Xero_invoices_lineRepository.java new file mode 100644 index 0000000..4b09078 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Repository/Xero_invoices_lineRepository.java @@ -0,0 +1,44 @@ +package com.realnet.vpspack.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.vpspack.Entity.Xero_invoices_line; + +@Repository +public interface Xero_invoices_lineRepository extends JpaRepository { + +@Query(value = "select * from xero_invoices_line where created_by=?1", nativeQuery = true) + List findAll(Long creayedBy); + +@Query(value = "select * from xero_invoices_line where created_by=?1", nativeQuery = true) + Page findAll(Pageable page, Long creayedBy); +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Agent_reportService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Agent_reportService.java new file mode 100644 index 0000000..39c0670 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Agent_reportService.java @@ -0,0 +1,183 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Agent_reportRepository; +import com.realnet.vpspack.Entity.Agent_report +;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 Agent_reportService { +@Autowired +private Agent_reportRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + + + + + + + + + + + + + +public Agent_report Savedata(Agent_report data) { + + + + + + + + + + + + + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Agent_report 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 Agent_report getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Agent_report update(Agent_report data,Integer id) { + Agent_report old = Repository.findById(id).get(); +old.setInvoice_created(data.getInvoice_created()); + +old.setEntry_date_form(data.getEntry_date_form()); + +old.setDate_field(data.getDate_field()); + +old.setEntry_date_to(data.getEntry_date_to()); + +old.setFull_name(data.getFull_name()); + +old.setApplication_code(data.getApplication_code()); + +old.setNationality(data.getNationality()); + +old.setAgent(data.getAgent()); + +old.setPassport_number(data.getPassport_number()); + +old.setFilter_btn(data.getFilter_btn()); + +old.setReset_btn(data.getReset_btn()); + +old.setAgent_report_line(data.getAgent_report_line()); + +final Agent_report test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Agent_report_lineService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Agent_report_lineService.java new file mode 100644 index 0000000..1d5bd1b --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Agent_report_lineService.java @@ -0,0 +1,193 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Agent_report_lineRepository; +import com.realnet.vpspack.Entity.Agent_report_line +;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 Agent_report_lineService { +@Autowired +private Agent_report_lineRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + + + + + + + + + + + + + + + +public Agent_report_line Savedata(Agent_report_line data) { + + + + + + + + + + + + + + + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Agent_report_line 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 Agent_report_line getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Agent_report_line update(Agent_report_line data,Integer id) { + Agent_report_line old = Repository.findById(id).get(); +old.setInvoice_created(data.getInvoice_created()); + +old.setStatus(data.getStatus()); + +old.setFull_name(data.getFull_name()); + +old.setAgent(data.getAgent()); + +old.setEntry_date(data.getEntry_date()); + +old.setApplication_code(data.getApplication_code()); + +old.setNationality(data.getNationality()); + +old.setPassport_number(data.getPassport_number()); + +old.setVisa_entry_type(data.getVisa_entry_type()); + +old.setVisa_processing_time(data.getVisa_processing_time()); + +old.setVisa_duration(data.getVisa_duration()); + +old.setInvoice_id(data.getInvoice_id()); + +old.setTotal_price(data.getTotal_price()); + +final Agent_report_line test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + + + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Completed_or_archiveService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Completed_or_archiveService.java new file mode 100644 index 0000000..193691d --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Completed_or_archiveService.java @@ -0,0 +1,133 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Completed_or_archiveRepository; +import com.realnet.vpspack.Entity.Completed_or_archive +;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 Completed_or_archiveService { +@Autowired +private Completed_or_archiveRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + + + +public Completed_or_archive Savedata(Completed_or_archive data) { + + + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Completed_or_archive 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 Completed_or_archive getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Completed_or_archive update(Completed_or_archive data,Integer id) { + Completed_or_archive old = Repository.findById(id).get(); +old.setFull_name(data.getFull_name()); + +old.setApplication_code(data.getApplication_code()); + +old.setNationality(data.getNationality()); + +old.setNumber_field(data.getNumber_field()); + +old.setReset_btn(data.getReset_btn()); + +old.setFilter_btn(data.getFilter_btn()); + +old.setCompleted_or_archive_child(data.getCompleted_or_archive_child()); + +final Completed_or_archive test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Completed_or_archive_childService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Completed_or_archive_childService.java new file mode 100644 index 0000000..4a2cfc2 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Completed_or_archive_childService.java @@ -0,0 +1,183 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Completed_or_archive_childRepository; +import com.realnet.vpspack.Entity.Completed_or_archive_child +;import java.util.*; + +import org.springframework.beans.factory.annotation.Autowired; +import com.realnet.SequenceGenerator.Service.SequenceService; +import org.springframework.data.domain.Page; +import com.realnet.realm.Entity.Realm; +import com.realnet.realm.Services.RealmService; +import org.springframework.data.domain.Pageable; +import org.springframework.http.*; +import com.realnet.users.service1.AppUserServiceImpl; +import com.realnet.users.entity1.AppUser; + + + + + + + + + + + + + + + + + + + + + + + + + import org.springframework.stereotype.Service; + +@Service + public class Completed_or_archive_childService { +@Autowired +private Completed_or_archive_childRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + + + + + + + + + + + + + +public Completed_or_archive_child Savedata(Completed_or_archive_child data) { + + + + + + + + + + + + + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Completed_or_archive_child save = Repository.save(data); + return save; + } + + +// get all with pagination + public Page getAllWithPagination(Pageable page) { + return Repository.findAll(page, getUser().getUserId()); + } +public List getdetails() { + List realm = realmService.findByUserId(getUser().getUserId()); +List all = Repository.findAll(getUser().getUserId()); + + return all ; } + + +public Completed_or_archive_child getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Completed_or_archive_child update(Completed_or_archive_child data,Integer id) { + Completed_or_archive_child old = Repository.findById(id).get(); +old.setFull_name(data.getFull_name()); + +old.setAgent(data.getAgent()); + +old.setSupplier_acknowledged (data.isSupplier_acknowledged()); + +old.setStatus(data.getStatus()); + +old.setEntry_date(data.getEntry_date()); + +old.setApplication_code(data.getApplication_code()); + +old.setSupplier(data.getSupplier()); + +old.setPhone_number(data.getPhone_number()); + +old.setEmail_id(data.getEmail_id()); + +old.setNote(data.getNote()); + +old.setVisa(data.getVisa()); + +old.setCoupon(data.getCoupon()); + +final Completed_or_archive_child test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Cost_sheet_uploadService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Cost_sheet_uploadService.java new file mode 100644 index 0000000..2f84c61 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Cost_sheet_uploadService.java @@ -0,0 +1,133 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Cost_sheet_uploadRepository; +import com.realnet.vpspack.Entity.Cost_sheet_upload +;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 Cost_sheet_uploadService { +@Autowired +private Cost_sheet_uploadRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + + + +public Cost_sheet_upload Savedata(Cost_sheet_upload data) { + + + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Cost_sheet_upload 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 Cost_sheet_upload getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Cost_sheet_upload update(Cost_sheet_upload data,Integer id) { + Cost_sheet_upload old = Repository.findById(id).get(); + + +old.setDate(data.getDate()); + +old.setName(data.getName()); + +old.setNationality(data.getNationality()); + +old.setPassport_type(data.getPassport_type()); + +old.setPassport_number(data.getPassport_number()); + +old.setCost(data.getCost()); + +final Cost_sheet_upload test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/CouponService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/CouponService.java new file mode 100644 index 0000000..c3b4bf5 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/CouponService.java @@ -0,0 +1,103 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.CouponRepository; +import com.realnet.vpspack.Entity.Coupon +;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 CouponService { +@Autowired +private CouponRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + +public Coupon Savedata(Coupon data) { + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Coupon 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 Coupon getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Coupon update(Coupon data,Integer id) { + Coupon old = Repository.findById(id).get(); +old.setCode(data.getCode()); + +old.setActive (data.isActive()); + +old.setCoupon_validity(data.getCoupon_validity()); + +old.setCoupon_discount(data.getCoupon_discount()); + +final Coupon test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Customer_reportService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Customer_reportService.java new file mode 100644 index 0000000..cd4a1ff --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Customer_reportService.java @@ -0,0 +1,93 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Customer_reportRepository; +import com.realnet.vpspack.Entity.Customer_report +;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 Customer_reportService { +@Autowired +private Customer_reportRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + +public Customer_report Savedata(Customer_report data) { + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Customer_report 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_report getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Customer_report update(Customer_report data,Integer id) { + Customer_report old = Repository.findById(id).get(); +old.setFull_name(data.getFull_name()); + +old.setPhone_number(data.getPhone_number()); + +old.setEmail_id(data.getEmail_id()); + +final Customer_report test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/DeletedService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/DeletedService.java new file mode 100644 index 0000000..77d8d34 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/DeletedService.java @@ -0,0 +1,123 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.DeletedRepository; +import com.realnet.vpspack.Entity.Deleted +;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 DeletedService { +@Autowired +private DeletedRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + +public Deleted Savedata(Deleted data) { + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Deleted 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 Deleted getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Deleted update(Deleted data,Integer id) { + Deleted old = Repository.findById(id).get(); +old.setName(data.getName()); + +old.setApplication_code(data.getApplication_code()); + +old.setNationality(data.getNationality()); + +old.setFilter_btn(data.getFilter_btn()); + +old.setReset_btn(data.getReset_btn()); + +old.setDeleted_child(data.getDeleted_child()); + +final Deleted test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/EmailsService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/EmailsService.java new file mode 100644 index 0000000..baae793 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/EmailsService.java @@ -0,0 +1,83 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.EmailsRepository; +import com.realnet.vpspack.Entity.Emails +;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 EmailsService { +@Autowired +private EmailsRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + +public Emails Savedata(Emails data) { + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Emails 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 Emails getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Emails update(Emails data,Integer id) { + Emails old = Repository.findById(id).get(); +old.setCode(data.getCode()); + +old.setSubject(data.getSubject()); + +final Emails test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/GroupssService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/GroupssService.java new file mode 100644 index 0000000..40f27fe --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/GroupssService.java @@ -0,0 +1,95 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.GroupssRepository; +import com.realnet.vpspack.Entity.Groupss +;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 GroupssService { +@Autowired +private GroupssRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + +public Groupss Savedata(Groupss data) { + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Groupss 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 Groupss getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Groupss update(Groupss data,Integer id) { + Groupss old = Repository.findById(id).get(); + + +old.setName(data.isName()); + + + +old.setStaff(data.isStaff()); + + + +old.setSupplier(data.isSupplier()); + + + +old.setAgent(data.isAgent()); + + + +old.setAdmin(data.isAdmin()); + + + + + +final Groupss test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/MediaService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/MediaService.java new file mode 100644 index 0000000..f37da31 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/MediaService.java @@ -0,0 +1,73 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.MediaRepository; +import com.realnet.vpspack.Entity.Media +;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 MediaService { +@Autowired +private MediaRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + +public Media Savedata(Media data) { + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Media 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 Media getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Media update(Media data,Integer id) { + Media old = Repository.findById(id).get(); +old.setMedia(data.getMedia()); + +final Media test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/NationalityService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/NationalityService.java new file mode 100644 index 0000000..89c7794 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/NationalityService.java @@ -0,0 +1,83 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.NationalityRepository; +import com.realnet.vpspack.Entity.Nationality +;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 NationalityService { +@Autowired +private NationalityRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + +public Nationality Savedata(Nationality data) { + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Nationality 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 Nationality getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Nationality update(Nationality data,Integer id) { + Nationality old = Repository.findById(id).get(); +old.setNationality(data.getNationality()); + +old.setVisa_status(data.getVisa_status()); + +final Nationality test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/NotificationService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/NotificationService.java new file mode 100644 index 0000000..527d8f4 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/NotificationService.java @@ -0,0 +1,83 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.NotificationRepository; +import com.realnet.vpspack.Entity.Notification +;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 NotificationService { +@Autowired +private NotificationRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + +public Notification Savedata(Notification data) { + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Notification 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 Notification getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Notification update(Notification data,Integer id) { + Notification old = Repository.findById(id).get(); +old.setCode(data.getCode()); + +old.setNotification(data.getNotification()); + +final Notification test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/PagetService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/PagetService.java new file mode 100644 index 0000000..ae1ae21 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/PagetService.java @@ -0,0 +1,73 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.PagetRepository; +import com.realnet.vpspack.Entity.Paget +;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 PagetService { +@Autowired +private PagetRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + +public Paget Savedata(Paget data) { + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Paget 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 Paget getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Paget update(Paget data,Integer id) { + Paget old = Repository.findById(id).get(); +old.setAll_pages_link(data.getAll_pages_link()); + +final Paget test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Pending_agentService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Pending_agentService.java new file mode 100644 index 0000000..195d977 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Pending_agentService.java @@ -0,0 +1,133 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Pending_agentRepository; +import com.realnet.vpspack.Entity.Pending_agent +;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 Pending_agentService { +@Autowired +private Pending_agentRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + + + +public Pending_agent Savedata(Pending_agent data) { + + + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Pending_agent 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 Pending_agent getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Pending_agent update(Pending_agent data,Integer id) { + Pending_agent old = Repository.findById(id).get(); +old.setFull_name(data.getFull_name()); + +old.setApplication_code(data.getApplication_code()); + +old.setNationality(data.getNationality()); + +old.setPassport_number(data.getPassport_number()); + +old.setFilter_btn(data.getFilter_btn()); + +old.setReset_btn(data.getReset_btn()); + +old.setPending_agent_child(data.getPending_agent_child()); + +final Pending_agent test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Pending_agent_childService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Pending_agent_childService.java new file mode 100644 index 0000000..828822a --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Pending_agent_childService.java @@ -0,0 +1,183 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Pending_agent_childRepository; +import com.realnet.vpspack.Entity.Pending_agent_child +;import java.util.*; + +import org.springframework.beans.factory.annotation.Autowired; +import com.realnet.SequenceGenerator.Service.SequenceService; +import org.springframework.data.domain.Page; +import com.realnet.realm.Entity.Realm; +import com.realnet.realm.Services.RealmService; +import org.springframework.data.domain.Pageable; +import org.springframework.http.*; +import com.realnet.users.service1.AppUserServiceImpl; +import com.realnet.users.entity1.AppUser; + + + + + + + + + + + + + + + + + + + + + + + + + import org.springframework.stereotype.Service; + +@Service + public class Pending_agent_childService { +@Autowired +private Pending_agent_childRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + + + + + + + + + + + + + +public Pending_agent_child Savedata(Pending_agent_child data) { + + + + + + + + + + + + + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Pending_agent_child save = Repository.save(data); + return save; + } + + +// get all with pagination + public Page getAllWithPagination(Pageable page) { + return Repository.findAll(page, getUser().getUserId()); + } +public List getdetails() { + List realm = realmService.findByUserId(getUser().getUserId()); +List all = Repository.findAll(getUser().getUserId()); + + return all ; } + + +public Pending_agent_child getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Pending_agent_child update(Pending_agent_child data,Integer id) { + Pending_agent_child old = Repository.findById(id).get(); +old.setAgent(data.getAgent()); + +old.setFull_name(data.getFull_name()); + +old.setSupplier_acknowledged(data.getSupplier_acknowledged()); + +old.setEntry_date(data.getEntry_date()); + +old.setApplication_code(data.getApplication_code()); + +old.setEmail_id(data.getEmail_id()); + +old.setPhone_number(data.getPhone_number()); + +old.setSupplier(data.getSupplier()); + +old.setNationality(data.getNationality()); + +old.setNote(data.getNote()); + +old.setVisa(data.getVisa()); + +old.setAction(data.getAction()); + +final Pending_agent_child test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Pending_customerService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Pending_customerService.java new file mode 100644 index 0000000..454c12d --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Pending_customerService.java @@ -0,0 +1,133 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Pending_customerRepository; +import com.realnet.vpspack.Entity.Pending_customer +;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 Pending_customerService { +@Autowired +private Pending_customerRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + + + +public Pending_customer Savedata(Pending_customer data) { + + + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Pending_customer 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 Pending_customer getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Pending_customer update(Pending_customer data,Integer id) { + Pending_customer old = Repository.findById(id).get(); +old.setFull_name(data.getFull_name()); + +old.setApplication_code(data.getApplication_code()); + +old.setNationality(data.getNationality()); + +old.setPassport_number(data.getPassport_number()); + +old.setFilter_btn(data.getFilter_btn()); + +old.setReset_btn(data.getReset_btn()); + +old.setPending_customer_child(data.getPending_customer_child()); + +final Pending_customer test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Pending_customer_childService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Pending_customer_childService.java new file mode 100644 index 0000000..e6b0732 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Pending_customer_childService.java @@ -0,0 +1,183 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Pending_customer_childRepository; +import com.realnet.vpspack.Entity.Pending_customer_child +;import java.util.*; + +import org.springframework.beans.factory.annotation.Autowired; +import com.realnet.SequenceGenerator.Service.SequenceService; +import org.springframework.data.domain.Page; +import com.realnet.realm.Entity.Realm; +import com.realnet.realm.Services.RealmService; +import org.springframework.data.domain.Pageable; +import org.springframework.http.*; +import com.realnet.users.service1.AppUserServiceImpl; +import com.realnet.users.entity1.AppUser; + + + + + + + + + + + + + + + + + + + + + + + + + import org.springframework.stereotype.Service; + +@Service + public class Pending_customer_childService { +@Autowired +private Pending_customer_childRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + + + + + + + + + + + + + +public Pending_customer_child Savedata(Pending_customer_child data) { + + + + + + + + + + + + + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Pending_customer_child save = Repository.save(data); + return save; + } + + +// get all with pagination + public Page getAllWithPagination(Pageable page) { + return Repository.findAll(page, getUser().getUserId()); + } +public List getdetails() { + List realm = realmService.findByUserId(getUser().getUserId()); +List all = Repository.findAll(getUser().getUserId()); + + return all ; } + + +public Pending_customer_child getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Pending_customer_child update(Pending_customer_child data,Integer id) { + Pending_customer_child old = Repository.findById(id).get(); +old.setFull_name(data.getFull_name()); + +old.setSupplier_acknowledged (data.isSupplier_acknowledged()); + +old.setStatus(data.getStatus()); + +old.setEntry_date(data.getEntry_date()); + +old.setApplication_code(data.getApplication_code()); + +old.setEmail_id(data.getEmail_id()); + +old.setPhone_number(data.getPhone_number()); + +old.setSupplier(data.getSupplier()); + +old.setNationality(data.getNationality()); + +old.setNote(data.getNote()); + +old.setVisa(data.getVisa()); + +old.setCoupon(data.getCoupon()); + +final Pending_customer_child test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Processing_agentService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Processing_agentService.java new file mode 100644 index 0000000..9293942 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Processing_agentService.java @@ -0,0 +1,133 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Processing_agentRepository; +import com.realnet.vpspack.Entity.Processing_agent +;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 Processing_agentService { +@Autowired +private Processing_agentRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + + + +public Processing_agent Savedata(Processing_agent data) { + + + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Processing_agent 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 Processing_agent getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Processing_agent update(Processing_agent data,Integer id) { + Processing_agent old = Repository.findById(id).get(); +old.setFull_name(data.getFull_name()); + +old.setApplication_code(data.getApplication_code()); + +old.setNationality(data.getNationality()); + +old.setPassport_number(data.getPassport_number()); + +old.setFilter_btn(data.getFilter_btn()); + +old.setReset_btn(data.getReset_btn()); + +old.setPending_agent_child(data.getPending_agent_child()); + +final Processing_agent test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Processing_agent_childService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Processing_agent_childService.java new file mode 100644 index 0000000..6a59c2f --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Processing_agent_childService.java @@ -0,0 +1,183 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Processing_agent_childRepository; +import com.realnet.vpspack.Entity.Processing_agent_child +;import java.util.*; + +import org.springframework.beans.factory.annotation.Autowired; +import com.realnet.SequenceGenerator.Service.SequenceService; +import org.springframework.data.domain.Page; +import com.realnet.realm.Entity.Realm; +import com.realnet.realm.Services.RealmService; +import org.springframework.data.domain.Pageable; +import org.springframework.http.*; +import com.realnet.users.service1.AppUserServiceImpl; +import com.realnet.users.entity1.AppUser; + + + + + + + + + + + + + + + + + + + + + + + + + import org.springframework.stereotype.Service; + +@Service + public class Processing_agent_childService { +@Autowired +private Processing_agent_childRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + + + + + + + + + + + + + +public Processing_agent_child Savedata(Processing_agent_child data) { + + + + + + + + + + + + + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Processing_agent_child save = Repository.save(data); + return save; + } + + +// get all with pagination + public Page getAllWithPagination(Pageable page) { + return Repository.findAll(page, getUser().getUserId()); + } +public List getdetails() { + List realm = realmService.findByUserId(getUser().getUserId()); +List all = Repository.findAll(getUser().getUserId()); + + return all ; } + + +public Processing_agent_child getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Processing_agent_child update(Processing_agent_child data,Integer id) { + Processing_agent_child old = Repository.findById(id).get(); +old.setName(data.getName()); + +old.setAgent(data.getAgent()); + +old.setSupplier_acknowledged (data.isSupplier_acknowledged()); + +old.setStatus(data.getStatus()); + +old.setEntry_date(data.getEntry_date()); + +old.setApplication_code(data.getApplication_code()); + +old.setEmail_id(data.getEmail_id()); + +old.setPhone_number(data.getPhone_number()); + +old.setSupplier(data.getSupplier()); + +old.setNationality(data.getNationality()); + +old.setNote(data.getNote()); + +old.setVisa(data.getVisa()); + +final Processing_agent_child test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Processing_customerService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Processing_customerService.java new file mode 100644 index 0000000..31b8458 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Processing_customerService.java @@ -0,0 +1,133 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Processing_customerRepository; +import com.realnet.vpspack.Entity.Processing_customer +;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 Processing_customerService { +@Autowired +private Processing_customerRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + + + +public Processing_customer Savedata(Processing_customer data) { + + + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Processing_customer 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 Processing_customer getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Processing_customer update(Processing_customer data,Integer id) { + Processing_customer old = Repository.findById(id).get(); +old.setFull_name(data.getFull_name()); + +old.setApplication_code(data.getApplication_code()); + +old.setNationality(data.getNationality()); + +old.setPassport_number(data.getPassport_number()); + +old.setFilter_btn(data.getFilter_btn()); + +old.setReset_btn(data.getReset_btn()); + +old.setProcessing_customer_child(data.getProcessing_customer_child()); + +final Processing_customer test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Processing_customer_childService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Processing_customer_childService.java new file mode 100644 index 0000000..a0efdac --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Processing_customer_childService.java @@ -0,0 +1,183 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Processing_customer_childRepository; +import com.realnet.vpspack.Entity.Processing_customer_child +;import java.util.*; + +import org.springframework.beans.factory.annotation.Autowired; +import com.realnet.SequenceGenerator.Service.SequenceService; +import org.springframework.data.domain.Page; +import com.realnet.realm.Entity.Realm; +import com.realnet.realm.Services.RealmService; +import org.springframework.data.domain.Pageable; +import org.springframework.http.*; +import com.realnet.users.service1.AppUserServiceImpl; +import com.realnet.users.entity1.AppUser; + + + + + + + + + + + + + + + + + + + + + + + + + import org.springframework.stereotype.Service; + +@Service + public class Processing_customer_childService { +@Autowired +private Processing_customer_childRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + + + + + + + + + + + + + +public Processing_customer_child Savedata(Processing_customer_child data) { + + + + + + + + + + + + + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Processing_customer_child save = Repository.save(data); + return save; + } + + +// get all with pagination + public Page getAllWithPagination(Pageable page) { + return Repository.findAll(page, getUser().getUserId()); + } +public List getdetails() { + List realm = realmService.findByUserId(getUser().getUserId()); +List all = Repository.findAll(getUser().getUserId()); + + return all ; } + + +public Processing_customer_child getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Processing_customer_child update(Processing_customer_child data,Integer id) { + Processing_customer_child old = Repository.findById(id).get(); +old.setFull_name(data.getFull_name()); + +old.setSupplier_acknowledged (data.isSupplier_acknowledged()); + +old.setStatus(data.getStatus()); + +old.setEntry_date(data.getEntry_date()); + +old.setApplication_code(data.getApplication_code()); + +old.setEmail_id(data.getEmail_id()); + +old.setPhone_number(data.getPhone_number()); + +old.setSupplier(data.getSupplier()); + +old.setNationality(data.getNationality()); + +old.setNote(data.getNote()); + +old.setVisa(data.getVisa()); + +old.setCoupon(data.getCoupon()); + +final Processing_customer_child test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Refferere_reportService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Refferere_reportService.java new file mode 100644 index 0000000..8e59020 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Refferere_reportService.java @@ -0,0 +1,93 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Refferere_reportRepository; +import com.realnet.vpspack.Entity.Refferere_report +;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 Refferere_reportService { +@Autowired +private Refferere_reportRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + +public Refferere_report Savedata(Refferere_report data) { + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Refferere_report 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 Refferere_report getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Refferere_report update(Refferere_report data,Integer id) { + Refferere_report old = Repository.findById(id).get(); +old.setEntry_date_from(data.getEntry_date_from()); + +old.setEntry_date_to(data.getEntry_date_to()); + +old.setRefferere_report_line(data.getRefferere_report_line()); + +final Refferere_report test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Refferere_report_lineService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Refferere_report_lineService.java new file mode 100644 index 0000000..d97c874 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Refferere_report_lineService.java @@ -0,0 +1,193 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Refferere_report_lineRepository; +import com.realnet.vpspack.Entity.Refferere_report_line +;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 Refferere_report_lineService { +@Autowired +private Refferere_report_lineRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + + + + + + + + + + + + + + + +public Refferere_report_line Savedata(Refferere_report_line data) { + + + + + + + + + + + + + + + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Refferere_report_line 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 Refferere_report_line getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Refferere_report_line update(Refferere_report_line data,Integer id) { + Refferere_report_line old = Repository.findById(id).get(); +old.setInvoice_created(data.getInvoice_created()); + +old.setStatus(data.getStatus()); + +old.setFull_name(data.getFull_name()); + +old.setAgent(data.getAgent()); + +old.setEntry_date(data.getEntry_date()); + +old.setApplication_code(data.getApplication_code()); + +old.setNationality(data.getNationality()); + +old.setPassport_number(data.getPassport_number()); + +old.setVisa_entry_type(data.getVisa_entry_type()); + +old.setVisa_duration(data.getVisa_duration()); + +old.setVisa_processing_time(data.getVisa_processing_time()); + +old.setCost(data.getCost()); + +old.setTotal_price(data.getTotal_price()); + +final Refferere_report_line test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + + + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/RefrreresService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/RefrreresService.java new file mode 100644 index 0000000..07704c4 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/RefrreresService.java @@ -0,0 +1,103 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.RefrreresRepository; +import com.realnet.vpspack.Entity.Refrreres +;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 RefrreresService { +@Autowired +private RefrreresRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + +public Refrreres Savedata(Refrreres data) { + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Refrreres 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 Refrreres getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Refrreres update(Refrreres data,Integer id) { + Refrreres old = Repository.findById(id).get(); +old.setCompany(data.getCompany()); + +old.setFirst_name(data.getFirst_name()); + +old.setLast_name(data.getLast_name()); + +old.setRefferere_report_line(data.getRefferere_report_line()); + +final Refrreres test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Refrreres_lineService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Refrreres_lineService.java new file mode 100644 index 0000000..220211d --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Refrreres_lineService.java @@ -0,0 +1,123 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Refrreres_lineRepository; +import com.realnet.vpspack.Entity.Refrreres_line +;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 Refrreres_lineService { +@Autowired +private Refrreres_lineRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + +public Refrreres_line Savedata(Refrreres_line data) { + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Refrreres_line 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 Refrreres_line getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Refrreres_line update(Refrreres_line data,Integer id) { + Refrreres_line old = Repository.findById(id).get(); +old.setCompany(data.getCompany()); + +old.setFirst_name(data.getFirst_name()); + +old.setLast_name(data.getLast_name()); + +old.setCountry(data.getCountry()); + +old.setCity(data.getCity()); + +old.setEmail(data.getEmail()); + +final Refrreres_line test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/RefundService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/RefundService.java new file mode 100644 index 0000000..cae558a --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/RefundService.java @@ -0,0 +1,123 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.RefundRepository; +import com.realnet.vpspack.Entity.Refund +;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 RefundService { +@Autowired +private RefundRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + +public Refund Savedata(Refund data) { + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Refund 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 Refund getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Refund update(Refund data,Integer id) { + Refund old = Repository.findById(id).get(); +old.setName(data.getName()); + +old.setApplication_code(data.getApplication_code()); + +old.setFilter_btn(data.getFilter_btn()); + +old.setReset_btn(data.getReset_btn()); + +old.setNationality(data.getNationality()); + +old.setRefund_child(data.getRefund_child()); + +final Refund test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Refund_childService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Refund_childService.java new file mode 100644 index 0000000..75fc71a --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Refund_childService.java @@ -0,0 +1,183 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Refund_childRepository; +import com.realnet.vpspack.Entity.Refund_child +;import java.util.*; + +import org.springframework.beans.factory.annotation.Autowired; +import com.realnet.SequenceGenerator.Service.SequenceService; +import org.springframework.data.domain.Page; +import com.realnet.realm.Entity.Realm; +import com.realnet.realm.Services.RealmService; +import org.springframework.data.domain.Pageable; +import org.springframework.http.*; +import com.realnet.users.service1.AppUserServiceImpl; +import com.realnet.users.entity1.AppUser; + + + + + + + + + + + + + + + + + + + + + + + + + import org.springframework.stereotype.Service; + +@Service + public class Refund_childService { +@Autowired +private Refund_childRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + + + + + + + + + + + + + +public Refund_child Savedata(Refund_child data) { + + + + + + + + + + + + + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Refund_child save = Repository.save(data); + return save; + } + + +// get all with pagination + public Page getAllWithPagination(Pageable page) { + return Repository.findAll(page, getUser().getUserId()); + } +public List getdetails() { + List realm = realmService.findByUserId(getUser().getUserId()); +List all = Repository.findAll(getUser().getUserId()); + + return all ; } + + +public Refund_child getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Refund_child update(Refund_child data,Integer id) { + Refund_child old = Repository.findById(id).get(); +old.setFull_name(data.getFull_name()); + +old.setSupplier_acknowledged (data.isSupplier_acknowledged()); + +old.setStatus(data.getStatus()); + +old.setEntry_date(data.getEntry_date()); + +old.setApplication_code(data.getApplication_code()); + +old.setEmail_id(data.getEmail_id()); + +old.setPhone_number(data.getPhone_number()); + +old.setSupplier(data.getSupplier()); + +old.setNationality(data.getNationality()); + +old.setNote(data.getNote()); + +old.setVisa(data.getVisa()); + +old.setTransction_id(data.getTransction_id()); + +final Refund_child test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/RejectedService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/RejectedService.java new file mode 100644 index 0000000..757c009 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/RejectedService.java @@ -0,0 +1,133 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.RejectedRepository; +import com.realnet.vpspack.Entity.Rejected +;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 RejectedService { +@Autowired +private RejectedRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + + + +public Rejected Savedata(Rejected data) { + + + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Rejected 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 Rejected getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Rejected update(Rejected data,Integer id) { + Rejected old = Repository.findById(id).get(); +old.setFull_name(data.getFull_name()); + +old.setApplication_code(data.getApplication_code()); + +old.setNationality(data.getNationality()); + +old.setPassport_number(data.getPassport_number()); + +old.setFilter_btn(data.getFilter_btn()); + +old.setReset_btn(data.getReset_btn()); + +old.setRejected_child(data.getRejected_child()); + +final Rejected test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Rejected_childService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Rejected_childService.java new file mode 100644 index 0000000..db83f15 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Rejected_childService.java @@ -0,0 +1,183 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Rejected_childRepository; +import com.realnet.vpspack.Entity.Rejected_child +;import java.util.*; + +import org.springframework.beans.factory.annotation.Autowired; +import com.realnet.SequenceGenerator.Service.SequenceService; +import org.springframework.data.domain.Page; +import com.realnet.realm.Entity.Realm; +import com.realnet.realm.Services.RealmService; +import org.springframework.data.domain.Pageable; +import org.springframework.http.*; +import com.realnet.users.service1.AppUserServiceImpl; +import com.realnet.users.entity1.AppUser; + + + + + + + + + + + + + + + + + + + + + + + + + import org.springframework.stereotype.Service; + +@Service + public class Rejected_childService { +@Autowired +private Rejected_childRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + + + + + + + + + + + + + +public Rejected_child Savedata(Rejected_child data) { + + + + + + + + + + + + + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Rejected_child save = Repository.save(data); + return save; + } + + +// get all with pagination + public Page getAllWithPagination(Pageable page) { + return Repository.findAll(page, getUser().getUserId()); + } +public List getdetails() { + List realm = realmService.findByUserId(getUser().getUserId()); +List all = Repository.findAll(getUser().getUserId()); + + return all ; } + + +public Rejected_child getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Rejected_child update(Rejected_child data,Integer id) { + Rejected_child old = Repository.findById(id).get(); +old.setFull_name(data.getFull_name()); + +old.setSupplier_acknowledged (data.isSupplier_acknowledged()); + +old.setStatus(data.getStatus()); + +old.setEntry_date(data.getEntry_date()); + +old.setApplication_code(data.getApplication_code()); + +old.setEmail_id(data.getEmail_id()); + +old.setPhone(data.getPhone()); + +old.setSupplier(data.getSupplier()); + +old.setNationality(data.getNationality()); + +old.setNote(data.getNote()); + +old.setVisa(data.getVisa()); + +old.setAction(data.getAction()); + +final Rejected_child test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/S_m_sService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/S_m_sService.java new file mode 100644 index 0000000..399f18d --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/S_m_sService.java @@ -0,0 +1,93 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.S_m_sRepository; +import com.realnet.vpspack.Entity.S_m_s +;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 S_m_sService { +@Autowired +private S_m_sRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + +public S_m_s Savedata(S_m_s data) { + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +S_m_s 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 S_m_s getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public S_m_s update(S_m_s data,Integer id) { + S_m_s old = Repository.findById(id).get(); +old.setUser(data.getUser()); + +old.setPassword(data.getPassword()); + +old.setApi_id(data.getApi_id()); + +final S_m_s test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Sage_payService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Sage_payService.java new file mode 100644 index 0000000..209f78e --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Sage_payService.java @@ -0,0 +1,173 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Sage_payRepository; +import com.realnet.vpspack.Entity.Sage_pay +;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 Sage_payService { +@Autowired +private Sage_payRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + + + + + + + + + + + +public Sage_pay Savedata(Sage_pay data) { + + + + + + + + + + + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Sage_pay 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 Sage_pay getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Sage_pay update(Sage_pay data,Integer id) { + Sage_pay old = Repository.findById(id).get(); +old.setApplication_code(data.getApplication_code()); + +old.setStatus(data.getStatus()); + +old.setAmount(data.getAmount()); + +old.setCreated(data.getCreated()); + +old.setVendercode(data.getVendercode()); + +old.setCard_type(data.getCard_type()); + +old.setExpiry_date(data.getExpiry_date()); + +old.setLast4digit(data.getLast4digit()); + +old.setVpstxid(data.getVpstxid()); + +old.setTxauthno(data.getTxauthno()); + +old.setBanckauthcode(data.getBanckauthcode()); + +final Sage_pay test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Sage_paysService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Sage_paysService.java new file mode 100644 index 0000000..6cf13bd --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Sage_paysService.java @@ -0,0 +1,93 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Sage_paysRepository; +import com.realnet.vpspack.Entity.Sage_pays +;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 Sage_paysService { +@Autowired +private Sage_paysRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + +public Sage_pays Savedata(Sage_pays data) { + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Sage_pays 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 Sage_pays getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Sage_pays update(Sage_pays data,Integer id) { + Sage_pays old = Repository.findById(id).get(); +old.setVender_id(data.getVender_id()); + +old.setPassword(data.getPassword()); + +old.setUrl(data.getUrl()); + +final Sage_pays test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/SiteService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/SiteService.java new file mode 100644 index 0000000..319c709 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/SiteService.java @@ -0,0 +1,153 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.SiteRepository; +import com.realnet.vpspack.Entity.Site +;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 SiteService { +@Autowired +private SiteRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + + + + + + + +public Site Savedata(Site data) { + + + + + + + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Site 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 Site getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Site update(Site data,Integer id) { + Site old = Repository.findById(id).get(); +old.setName(data.getName()); + +old.setIsdefault (data.isIsdefault()); + +old.setEnable (data.isEnable()); + +old.setHost(data.getHost()); + +old.setRelative_path(data.getRelative_path()); + +old.setLocal(data.getLocal()); + +old.setEnable_form(data.getEnable_form()); + +old.setEnable_to(data.getEnable_to()); + + + +final Site test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Staff_applicationService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Staff_applicationService.java new file mode 100644 index 0000000..4520ec8 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Staff_applicationService.java @@ -0,0 +1,133 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Staff_applicationRepository; +import com.realnet.vpspack.Entity.Staff_application +;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 Staff_applicationService { +@Autowired +private Staff_applicationRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + + + +public Staff_application Savedata(Staff_application data) { + + + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Staff_application 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 Staff_application getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Staff_application update(Staff_application data,Integer id) { + Staff_application old = Repository.findById(id).get(); +old.setFull_name(data.getFull_name()); + +old.setApplication_code(data.getApplication_code()); + +old.setNationality(data.getNationality()); + +old.setPassport_number(data.getPassport_number()); + +old.setFilter_btn(data.getFilter_btn()); + +old.setReset_btn(data.getReset_btn()); + +old.setStaffappchild(data.getStaffappchild()); + +final Staff_application test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/StaffappchildService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/StaffappchildService.java new file mode 100644 index 0000000..4d2ea0e --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/StaffappchildService.java @@ -0,0 +1,183 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.StaffappchildRepository; +import com.realnet.vpspack.Entity.Staffappchild +;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 StaffappchildService { +@Autowired +private StaffappchildRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + + + + + + + + + + + + + +public Staffappchild Savedata(Staffappchild data) { + + + + + + + + + + + + + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Staffappchild 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 Staffappchild getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Staffappchild update(Staffappchild data,Integer id) { + Staffappchild old = Repository.findById(id).get(); +old.setFull_name(data.getFull_name()); + +old.setSupplier_acknowledged (data.isSupplier_acknowledged()); + +old.setStatus(data.getStatus()); + +old.setEntry_date(data.getEntry_date()); + +old.setApplication_code(data.getApplication_code()); + +old.setEmail_field(data.getEmail_field()); + +old.setPhone_number(data.getPhone_number()); + +old.setSupllier(data.getSupllier()); + +old.setNationality(data.getNationality()); + +old.setNote(data.getNote()); + +old.setVisa(data.getVisa()); + +old.setCoupon(data.getCoupon()); + +final Staffappchild test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/StatusService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/StatusService.java new file mode 100644 index 0000000..d94184f --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/StatusService.java @@ -0,0 +1,73 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.StatusRepository; +import com.realnet.vpspack.Entity.Status +;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 StatusService { +@Autowired +private StatusRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + +public Status Savedata(Status data) { + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Status 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 Status getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Status update(Status data,Integer id) { + Status old = Repository.findById(id).get(); +old.setStatus(data.getStatus()); + +final Status test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Supplier_reportService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Supplier_reportService.java new file mode 100644 index 0000000..a75b60d --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Supplier_reportService.java @@ -0,0 +1,163 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Supplier_reportRepository; +import com.realnet.vpspack.Entity.Supplier_report +;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 Supplier_reportService { +@Autowired +private Supplier_reportRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + + + + + + + + + +public Supplier_report Savedata(Supplier_report data) { + + + + + + + + + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Supplier_report 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 Supplier_report getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Supplier_report update(Supplier_report data,Integer id) { + Supplier_report old = Repository.findById(id).get(); +old.setEntry_date_form(data.getEntry_date_form()); + +old.setEntry_date_to(data.getEntry_date_to()); + +old.setFull_name(data.getFull_name()); + +old.setApplication_code(data.getApplication_code()); + +old.setNationality(data.getNationality()); + +old.setSupplier(data.getSupplier()); + +old.setPassport_number(data.getPassport_number()); + +old.setFilter_btn(data.getFilter_btn()); + +old.setReset_btn(data.getReset_btn()); + +old.setSupplier_report_line(data.getSupplier_report_line()); + +final Supplier_report test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Supplier_report_lineService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Supplier_report_lineService.java new file mode 100644 index 0000000..5431581 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Supplier_report_lineService.java @@ -0,0 +1,173 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Supplier_report_lineRepository; +import com.realnet.vpspack.Entity.Supplier_report_line +;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 Supplier_report_lineService { +@Autowired +private Supplier_report_lineRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + + + + + + + + + + + +public Supplier_report_line Savedata(Supplier_report_line data) { + + + + + + + + + + + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Supplier_report_line 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 Supplier_report_line getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Supplier_report_line update(Supplier_report_line data,Integer id) { + Supplier_report_line old = Repository.findById(id).get(); +old.setFull_name(data.getFull_name()); + +old.setSupplier(data.getSupplier()); + +old.setAgent(data.getAgent()); + +old.setEntry_date(data.getEntry_date()); + +old.setApplication_code(data.getApplication_code()); + +old.setNationality(data.getNationality()); + +old.setPassport_number(data.getPassport_number()); + +old.setVisa_entry_type(data.getVisa_entry_type()); + +old.setVisa_duration(data.getVisa_duration()); + +old.setVisa_processing_time(data.getVisa_processing_time()); + +old.setTotal_price(data.getTotal_price()); + +final Supplier_report_line test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Upload_visaService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Upload_visaService.java new file mode 100644 index 0000000..daf4680 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Upload_visaService.java @@ -0,0 +1,93 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Upload_visaRepository; +import com.realnet.vpspack.Entity.Upload_visa +;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 Upload_visaService { +@Autowired +private Upload_visaRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + +public Upload_visa Savedata(Upload_visa data) { + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Upload_visa 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 Upload_visa getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Upload_visa update(Upload_visa data,Integer id) { + Upload_visa old = Repository.findById(id).get(); + + +old.setRejected_visa(data.getRejected_visa()); + +old.setApplication(data.getApplication()); + +final Upload_visa test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Visa_app_orderService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Visa_app_orderService.java new file mode 100644 index 0000000..d2509fa --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Visa_app_orderService.java @@ -0,0 +1,106 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Visa_app_orderRepository; +import com.realnet.vpspack.Entity.Visa_app_order +;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.vpspack.Entity.Visa_app_order; +import com.realnet.vpspack.Services.Visa_app_orderService; + + + + import org.springframework.stereotype.Service; + +@Service + public class Visa_app_orderService { +@Autowired +private Visa_app_orderRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + +@Autowired + private Visa_app_orderService priceserv; + +public Visa_app_order Savedata(Visa_app_order data) { + + + + + + +if (data.getPrice() != null) { + Visa_app_order get = priceserv.getdetailsbyId(data.getPrice()); + data.setPricename(get.getRate()); + + } + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Visa_app_order 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 Visa_app_order getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Visa_app_order update(Visa_app_order data,Integer id) { + Visa_app_order old = Repository.findById(id).get(); +old.setName(data.getName()); + +old.setRate(data.getRate()); + +old.setPrice(data.getPrice()); + +final Visa_app_order test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Visa_app_order_ListFilter1Service.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Visa_app_order_ListFilter1Service.java new file mode 100644 index 0000000..59f47c1 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Visa_app_order_ListFilter1Service.java @@ -0,0 +1,47 @@ +package com.realnet.vpspack.Services; +import java.util.*; +import com.realnet.vpspack.Repository.Visa_app_orderRepository; +import com.realnet.vpspack.Entity.Visa_app_order; + +import com.realnet.vpspack.Entity.Visa_app_order_ListFilter1; +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; + import org.springframework.stereotype.Service; + +@Service + public class Visa_app_order_ListFilter1Service { +@Autowired +private Visa_app_orderRepository Repository; + + + + + public List getlistbuilder() { + List list= Repository.findAll(); + ArrayList l = new ArrayList<>(); + for (Visa_app_order data : list) { +{ +Visa_app_order_ListFilter1 dummy = new Visa_app_order_ListFilter1(); + dummy.setId(data.getId()); + dummy.setRate(data.getRate()); + l.add(dummy); +} +} +return l;} + + + + public List getlistbuilderparam( ) { + List list= Repository.findAll(); + ArrayList l = new ArrayList<>(); + for (Visa_app_order data : list) { +{ +Visa_app_order_ListFilter1 dummy = new Visa_app_order_ListFilter1(); + dummy.setId(data.getId()); + dummy.setRate(data.getRate()); + l.add(dummy); +} +} +return l;} +} \ No newline at end of file diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Visa_billingService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Visa_billingService.java new file mode 100644 index 0000000..3210620 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Visa_billingService.java @@ -0,0 +1,73 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Visa_billingRepository; +import com.realnet.vpspack.Entity.Visa_billing +;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 Visa_billingService { +@Autowired +private Visa_billingRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + +public Visa_billing Savedata(Visa_billing data) { + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Visa_billing 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 Visa_billing getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Visa_billing update(Visa_billing data,Integer id) { + Visa_billing old = Repository.findById(id).get(); +old.setVisa_entry_type(data.getVisa_entry_type()); + +final Visa_billing test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Visa_durationService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Visa_durationService.java new file mode 100644 index 0000000..a414fa1 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Visa_durationService.java @@ -0,0 +1,73 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Visa_durationRepository; +import com.realnet.vpspack.Entity.Visa_duration +;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 Visa_durationService { +@Autowired +private Visa_durationRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + +public Visa_duration Savedata(Visa_duration data) { + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Visa_duration 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 Visa_duration getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Visa_duration update(Visa_duration data,Integer id) { + Visa_duration old = Repository.findById(id).get(); +old.setVisa_duration(data.getVisa_duration()); + +final Visa_duration test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Visa_pricesService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Visa_pricesService.java new file mode 100644 index 0000000..2793697 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Visa_pricesService.java @@ -0,0 +1,113 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Visa_pricesRepository; +import com.realnet.vpspack.Entity.Visa_prices +;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 Visa_pricesService { +@Autowired +private Visa_pricesRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + +public Visa_prices Savedata(Visa_prices data) { + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Visa_prices 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 Visa_prices getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Visa_prices update(Visa_prices data,Integer id) { + Visa_prices old = Repository.findById(id).get(); +old.setVisa_entry_type(data.getVisa_entry_type()); + +old.setVisa_duration(data.getVisa_duration()); + +old.setVisa_processing(data.getVisa_processing()); + +old.setTotal_price(data.getTotal_price()); + +old.setCost(data.getCost()); + +final Visa_prices test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Visa_processing_timeService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Visa_processing_timeService.java new file mode 100644 index 0000000..576d2d3 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Visa_processing_timeService.java @@ -0,0 +1,73 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Visa_processing_timeRepository; +import com.realnet.vpspack.Entity.Visa_processing_time +;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 Visa_processing_timeService { +@Autowired +private Visa_processing_timeRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + +public Visa_processing_time Savedata(Visa_processing_time data) { + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Visa_processing_time 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 Visa_processing_time getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Visa_processing_time update(Visa_processing_time data,Integer id) { + Visa_processing_time old = Repository.findById(id).get(); +old.setVisa_processing_time(data.getVisa_processing_time()); + +final Visa_processing_time test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Visa_statusService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Visa_statusService.java new file mode 100644 index 0000000..1cd97f3 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Visa_statusService.java @@ -0,0 +1,83 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Visa_statusRepository; +import com.realnet.vpspack.Entity.Visa_status +;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 Visa_statusService { +@Autowired +private Visa_statusRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + +public Visa_status Savedata(Visa_status data) { + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Visa_status 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 Visa_status getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Visa_status update(Visa_status data,Integer id) { + Visa_status old = Repository.findById(id).get(); +old.setVisa_status(data.getVisa_status()); + +old.setPrice(data.getPrice()); + +final Visa_status test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/XeroService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/XeroService.java new file mode 100644 index 0000000..4d7077c --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/XeroService.java @@ -0,0 +1,73 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.XeroRepository; +import com.realnet.vpspack.Entity.Xero +;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 XeroService { +@Autowired +private XeroRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + +public Xero Savedata(Xero data) { + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Xero 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 Xero getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Xero update(Xero data,Integer id) { + Xero old = Repository.findById(id).get(); +old.setCustomer_key(data.getCustomer_key()); + +final Xero test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Xero_invoicesService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Xero_invoicesService.java new file mode 100644 index 0000000..f814be6 --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Xero_invoicesService.java @@ -0,0 +1,133 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Xero_invoicesRepository; +import com.realnet.vpspack.Entity.Xero_invoices +;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 Xero_invoicesService { +@Autowired +private Xero_invoicesRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + + + +public Xero_invoices Savedata(Xero_invoices data) { + + + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Xero_invoices 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 Xero_invoices getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Xero_invoices update(Xero_invoices data,Integer id) { + Xero_invoices old = Repository.findById(id).get(); +old.setPayed(data.getPayed()); + +old.setInvoice_sent(data.getInvoice_sent()); + +old.setCustomer(data.getCustomer()); + +old.setAgent(data.getAgent()); + +old.setReset_btn(data.getReset_btn()); + +old.setFilter_btn(data.getFilter_btn()); + +old.setXero_invoices_line(data.getXero_invoices_line()); + +final Xero_invoices test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Xero_invoices_lineService.java b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Xero_invoices_lineService.java new file mode 100644 index 0000000..be8808a --- /dev/null +++ b/newvisaapptesting03-back-b/authsec_springboot/backend/src/main/java/com/realnet/vpspack/Services/Xero_invoices_lineService.java @@ -0,0 +1,163 @@ +package com.realnet.vpspack.Services; +import com.realnet.vpspack.Repository.Xero_invoices_lineRepository; +import com.realnet.vpspack.Entity.Xero_invoices_line +;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 Xero_invoices_lineService { +@Autowired +private Xero_invoices_lineRepository Repository; + @Autowired + private AppUserServiceImpl userService; +@Autowired + private RealmService realmService; + + + + + + + + + + + + + + + + + + + +public Xero_invoices_line Savedata(Xero_invoices_line data) { + + + + + + + + + + + + + + + + + + + + + data.setUpdatedBy(getUser().getUserId()); + data.setCreatedBy(getUser().getUserId()); + data.setAccountId(getUser().getAccount().getAccount_id()); +Xero_invoices_line 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 Xero_invoices_line getdetailsbyId(Integer id) { + return Repository.findById(id).get(); + } + + + public void delete_by_id(Integer id) { + Repository.deleteById(id); +} + + +public Xero_invoices_line update(Xero_invoices_line data,Integer id) { + Xero_invoices_line old = Repository.findById(id).get(); +old.setPayed(data.getPayed()); + +old.setInvoice_sent(data.getInvoice_sent()); + +old.setCoustomer(data.getCoustomer()); + +old.setAgent(data.getAgent()); + +old.setInvoice_id(data.getInvoice_id()); + +old.setInvoice_number(data.getInvoice_number()); + +old.setTotal_price(data.getTotal_price()); + +old.setShow_btn(data.getShow_btn()); + +old.setShow_pdf_btn(data.getShow_pdf_btn()); + +old.setSend_invoice_btn(data.getSend_invoice_btn()); + +final Xero_invoices_line test = Repository.save(old); + data.setUpdatedBy(getUser().getUserId()); + return test;} + + + + + + + + + + + + + + + + + + + + + public AppUser getUser() { + AppUser user = userService.getLoggedInUser(); + return user; + + }} diff --git a/newvisaapptesting03-db-d/authsec_mysql/mysql/wf_table/wf_table.sql b/newvisaapptesting03-db-d/authsec_mysql/mysql/wf_table/wf_table.sql new file mode 100755 index 0000000..860b661 --- /dev/null +++ b/newvisaapptesting03-db-d/authsec_mysql/mysql/wf_table/wf_table.sql @@ -0,0 +1,100 @@ +CREATE TABLE db.Staffappchild(id BIGINT NOT NULL AUTO_INCREMENT, status VARCHAR(400), full_name VARCHAR(400), note VARCHAR(400), nationality VARCHAR(400), coupon VARCHAR(400), supllier VARCHAR(400), visa VARCHAR(400), application_code VARCHAR(400), phone_number VARCHAR(400), email_field VARCHAR(400), supplier_acknowledged VARCHAR(400), entry_date Date, PRIMARY KEY (id)); + +CREATE TABLE db.Pending_customer(id BIGINT NOT NULL AUTO_INCREMENT, full_name VARCHAR(400), application_code VARCHAR(400), nationality VARCHAR(400), onetomanyextension VARCHAR(400), passport_number int, filter_btn VARCHAR(400), reset_btn VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Staff_application(id BIGINT NOT NULL AUTO_INCREMENT, full_name VARCHAR(400), filter_btn VARCHAR(400), nationality VARCHAR(400), onetomanyextension VARCHAR(400), passport_number int, application_code VARCHAR(400), reset_btn VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Pending_customer_child(id BIGINT NOT NULL AUTO_INCREMENT, phone_number VARCHAR(400), note VARCHAR(400), supplier_acknowledged VARCHAR(400), full_name VARCHAR(400), application_code VARCHAR(400), coupon VARCHAR(400), email_id VARCHAR(400), visa VARCHAR(400), supplier VARCHAR(400), nationality VARCHAR(400), status VARCHAR(400), entry_date Date, PRIMARY KEY (id)); + +CREATE TABLE db.Pending_agent_child(id BIGINT NOT NULL AUTO_INCREMENT, agent VARCHAR(400), full_name VARCHAR(400), supplier_acknowledged VARCHAR(400), phone_number VARCHAR(400), note VARCHAR(400), nationality VARCHAR(400), email_id VARCHAR(400), visa VARCHAR(400), supplier VARCHAR(400), application_code VARCHAR(400), action VARCHAR(400), entry_date Date, PRIMARY KEY (id)); + +CREATE TABLE db.Pending_agent(id BIGINT NOT NULL AUTO_INCREMENT, full_name VARCHAR(400), application_code VARCHAR(400), onetomanyextension VARCHAR(400), passport_number int, filter_btn VARCHAR(400), reset_btn VARCHAR(400), nationality VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Processing_customer_child(id BIGINT NOT NULL AUTO_INCREMENT, full_name VARCHAR(400), status VARCHAR(400), phone_number VARCHAR(400), note VARCHAR(400), supplier_acknowledged VARCHAR(400), application_code VARCHAR(400), coupon VARCHAR(400), email_id VARCHAR(400), visa VARCHAR(400), supplier VARCHAR(400), entry_date Date, nationality VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Processing_customer(id BIGINT NOT NULL AUTO_INCREMENT, full_name VARCHAR(400), nationality VARCHAR(400), onetomanyextension VARCHAR(400), application_code VARCHAR(400), passport_number int, filter_btn VARCHAR(400), reset_btn VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Processing_agent(id BIGINT NOT NULL AUTO_INCREMENT, full_name VARCHAR(400), application_code VARCHAR(400), onetomanyextension VARCHAR(400), passport_number int, filter_btn VARCHAR(400), reset_btn VARCHAR(400), nationality VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Processing_agent_child(id BIGINT NOT NULL AUTO_INCREMENT, agent VARCHAR(400), phone_number VARCHAR(400), note VARCHAR(400), supplier_acknowledged VARCHAR(400), application_code VARCHAR(400), nationality VARCHAR(400), email_id VARCHAR(400), visa VARCHAR(400), supplier VARCHAR(400), entry_date Date, name VARCHAR(400), status VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Refund_child(id BIGINT NOT NULL AUTO_INCREMENT, full_name VARCHAR(400), status VARCHAR(400), phone_number VARCHAR(400), note VARCHAR(400), supplier_acknowledged VARCHAR(400), application_code VARCHAR(400), nationality VARCHAR(400), email_id VARCHAR(400), visa VARCHAR(400), supplier VARCHAR(400), transction_id int, entry_date Date, PRIMARY KEY (id)); + +CREATE TABLE db.Refund(id BIGINT NOT NULL AUTO_INCREMENT, application_code VARCHAR(400), onetomanyextension VARCHAR(400), filter_btn int, reset_btn VARCHAR(400), nationality VARCHAR(400), name VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Rejected_child(id BIGINT NOT NULL AUTO_INCREMENT, full_name VARCHAR(400), status VARCHAR(400), supplier_acknowledged VARCHAR(400), action VARCHAR(400), email_id VARCHAR(400), phone VARCHAR(400), note VARCHAR(400), application_code VARCHAR(400), visa VARCHAR(400), supplier VARCHAR(400), entry_date Date, nationality VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Rejected(id BIGINT NOT NULL AUTO_INCREMENT, full_name VARCHAR(400), application_code VARCHAR(400), onetomanyextension VARCHAR(400), passport_number int, filter_btn VARCHAR(400), reset_btn VARCHAR(400), nationality VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Completed_or_archive_child(id BIGINT NOT NULL AUTO_INCREMENT, full_name VARCHAR(400), status VARCHAR(400), agent VARCHAR(400), phone_number VARCHAR(400), note VARCHAR(400), supplier_acknowledged VARCHAR(400), application_code VARCHAR(400), coupon VARCHAR(400), email_id VARCHAR(400), visa VARCHAR(400), supplier VARCHAR(400), entry_date Date, PRIMARY KEY (id)); + +CREATE TABLE db.Completed_or_archive(id BIGINT NOT NULL AUTO_INCREMENT, full_name VARCHAR(400), application_code VARCHAR(400), onetomanyextension VARCHAR(400), number_field int, filter_btn VARCHAR(400), reset_btn VARCHAR(400), nationality VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Deleted_child(id BIGINT NOT NULL AUTO_INCREMENT, full_name VARCHAR(400), agent VARCHAR(400), phone_number VARCHAR(400), supplier_acknowledged VARCHAR(400), application_code VARCHAR(400), email_id VARCHAR(400), supplier VARCHAR(400), status VARCHAR(400), entry_date Date, PRIMARY KEY (id)); + +CREATE TABLE db.Deleted(id BIGINT NOT NULL AUTO_INCREMENT, application_code VARCHAR(400), onetomanyextension VARCHAR(400), filter_btn VARCHAR(400), reset_btn VARCHAR(400), nationality VARCHAR(400), name VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Upload_visa(id BIGINT NOT NULL AUTO_INCREMENT, rejected_visa VARCHAR(400), fileupload_visa VARCHAR(400), application VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Cost_sheet_upload(id BIGINT NOT NULL AUTO_INCREMENT, passport_number int, cost_sheet_upload VARCHAR(400), cost int, date Date, nationality VARCHAR(400), name VARCHAR(400), passport_type VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Visa_billing(id BIGINT NOT NULL AUTO_INCREMENT, visa_entry_type VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Visa_duration(id BIGINT NOT NULL AUTO_INCREMENT, visa_duration VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Visa_processing_time(id BIGINT NOT NULL AUTO_INCREMENT, visa_processing_time VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Visa_prices(id BIGINT NOT NULL AUTO_INCREMENT, cost int, visa_entry_type VARCHAR(400), visa_duration VARCHAR(400), total_price int, visa_processing VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Xero_invoices(id BIGINT NOT NULL AUTO_INCREMENT, agent VARCHAR(400), filter_btn VARCHAR(400), payed VARCHAR(400), onetomanyextension VARCHAR(400), invoice_sent VARCHAR(400), reset_btn VARCHAR(400), customer VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Xero_invoices_line(id BIGINT NOT NULL AUTO_INCREMENT, agent VARCHAR(400), send_invoice_btn VARCHAR(400), payed VARCHAR(400), total_price int, invoice_number int, show_btn VARCHAR(400), show_pdf_btn VARCHAR(400), invoice_sent VARCHAR(400), invoice_id int, coustomer VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Sage_pay(id BIGINT NOT NULL AUTO_INCREMENT, status VARCHAR(400), vpstxid VARCHAR(400), application_code VARCHAR(400), created VARCHAR(400), amount int, vendercode VARCHAR(400), txauthno int, expiry_date Date, last4digit int, card_type VARCHAR(400), banckauthcode VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Agent_report_line(id BIGINT NOT NULL AUTO_INCREMENT, status VARCHAR(400), full_name VARCHAR(400), agent VARCHAR(400), visa_processing_time VARCHAR(400), passport_number int, total_price int, visa_duration VARCHAR(400), invoice_created VARCHAR(400), nationality VARCHAR(400), application_code VARCHAR(400), visa_entry_type VARCHAR(400), invoice_id int, entry_date Date, PRIMARY KEY (id)); + +CREATE TABLE db.Agent_report(id BIGINT NOT NULL AUTO_INCREMENT, entry_date_form Date, full_name VARCHAR(400), agent VARCHAR(400), filter_btn VARCHAR(400), application_code VARCHAR(400), onetomanyextension VARCHAR(400), entry_date_to Date, passport_number int, reset_btn VARCHAR(400), date_field Date, invoice_created VARCHAR(400), nationality VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Supplier_report_line(id BIGINT NOT NULL AUTO_INCREMENT, full_name VARCHAR(400), agent VARCHAR(400), visa_processing_time VARCHAR(400), application_code VARCHAR(400), nationality VARCHAR(400), total_price int, visa_entry_type VARCHAR(400), passport_number int, visa_duration VARCHAR(400), supplier VARCHAR(400), entry_date Date, PRIMARY KEY (id)); + +CREATE TABLE db.Supplier_report(id BIGINT NOT NULL AUTO_INCREMENT, entry_date_form Date, full_name VARCHAR(400), application_code VARCHAR(400), onetomanyextension VARCHAR(400), entry_date_to Date, supplier VARCHAR(400), passport_number int, filter_btn VARCHAR(400), reset_btn VARCHAR(400), nationality VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Customer_report(id BIGINT NOT NULL AUTO_INCREMENT, full_name VARCHAR(400), phone_number VARCHAR(400), email_id VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Refferere_report_line(id BIGINT NOT NULL AUTO_INCREMENT, status VARCHAR(400), full_name VARCHAR(400), agent VARCHAR(400), visa_processing_time VARCHAR(400), passport_number int, cost VARCHAR(400), total_price VARCHAR(400), visa_duration VARCHAR(400), invoice_created VARCHAR(400), application_code VARCHAR(400), nationality VARCHAR(400), visa_entry_type VARCHAR(400), entry_date Date, PRIMARY KEY (id)); + +CREATE TABLE db.Refferere_report(id BIGINT NOT NULL AUTO_INCREMENT, onetomanyextension VARCHAR(400), entry_date_to Date, entry_date_from Date, PRIMARY KEY (id)); + +CREATE TABLE db.Emails(id BIGINT NOT NULL AUTO_INCREMENT, code VARCHAR(400), subject VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Visa_status(id BIGINT NOT NULL AUTO_INCREMENT, visa_status VARCHAR(400), price VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Nationality(id BIGINT NOT NULL AUTO_INCREMENT, visa_status VARCHAR(400), nationality VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Status(id BIGINT NOT NULL AUTO_INCREMENT, status VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Notification(id BIGINT NOT NULL AUTO_INCREMENT, notification VARCHAR(400), code VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Coupon(id BIGINT NOT NULL AUTO_INCREMENT, active VARCHAR(400), code VARCHAR(400), coupon_validity Date, coupon_discount int, PRIMARY KEY (id)); + +CREATE TABLE db.Sage_pays(id BIGINT NOT NULL AUTO_INCREMENT, vender_id int, url VARCHAR(400), password VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Xero(id BIGINT NOT NULL AUTO_INCREMENT, customer_key VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.S_m_s(id BIGINT NOT NULL AUTO_INCREMENT, user VARCHAR(400), api_id int, password VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Refrreres_line(id BIGINT NOT NULL AUTO_INCREMENT, company VARCHAR(400), first_name VARCHAR(400), email VARCHAR(400), country VARCHAR(400), last_name VARCHAR(400), city VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Refrreres(id BIGINT NOT NULL AUTO_INCREMENT, company VARCHAR(400), first_name VARCHAR(400), onetomanyextension VARCHAR(400), last_name VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Site(id BIGINT NOT NULL AUTO_INCREMENT, snapshot VARCHAR(400), isdefault VARCHAR(400), enable VARCHAR(400), enable_form Date, host VARCHAR(400), relative_path VARCHAR(400), enable_to Date, local VARCHAR(400), name VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Media(id BIGINT NOT NULL AUTO_INCREMENT, media VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Groupss(id BIGINT NOT NULL AUTO_INCREMENT, agent bit(1), staff bit(1), supplier bit(1), admin bit(1), name bit(1), PRIMARY KEY (id)); + +CREATE TABLE db.Paget(id BIGINT NOT NULL AUTO_INCREMENT, all_pages_link VARCHAR(400), PRIMARY KEY (id)); + +CREATE TABLE db.Visa_app_order(id BIGINT NOT NULL AUTO_INCREMENT, rate int, price int, name VARCHAR(400), PRIMARY KEY (id)); + diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/login/login-page/login_environment.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/login/login-page/login_environment.ts index 231b3a1..fdff417 100644 --- a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/login/login-page/login_environment.ts +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/login/login-page/login_environment.ts @@ -2,14 +2,14 @@ export const LoginEnvironment = { - "templateNo": "", - "loginHeading": "", - "loginHeading2": "", - "isSignup": "", - "loginSignup": " ", - "loginSignup2": "", - "loginForgotpass": "", - "loginImage": "", - "loginImageURL": "" + "templateNo": "Template 1", + "loginHeading": "Welcome to", + "loginHeading2": "io8.dev", + "isSignup": "true", + "loginSignup": "Use your ID to sign in OR ", + "loginSignup2": "create one now", + "loginForgotpass": "FORGOT PASSWORD?", + "loginImage": "[]", + "loginImageURL": "null" } diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deleted_child/Deleted_child.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deleted_child/Deleted_child.component.html new file mode 100644 index 0000000..d83779a --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deleted_child/Deleted_child.component.html @@ -0,0 +1,589 @@ + +
+
+
+

Deleted_child

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Full Name + + + + Agent + + + + supplier acknowledged + + + + status + + + + entry date + + + + Application code + + + + Email id + + + + Phone number + + + + Supplier + + + + + + Action + + + + + +{{user. full_name }} + + +{{user. agent }} + + +{{user. supplier_acknowledged }} + + +{{user. status }} + + +{{user. entry_date }} + + +{{user. application_code }} + + +{{user. email_id }} + + +{{user. phone_number }} + + +{{user. supplier }} + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deleted_child/Deleted_child.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deleted_child/Deleted_child.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deleted_child/Deleted_child.component.scss @@ -0,0 +1,78 @@ +//@import "../../../../assets/scss/var"; +.s-info-bar { + display: flex; + flex-direction: row; + justify-content: space-between; + button { + outline: none; + } +} +.delete,.heading{ + text-align: center; + color: red; +} +.entry-pg { + width: 750px; +} + +.button1::after { + content: none; +} +.button1:hover::after { + content: "ADD ROWS"; +} + +.section { + background-color: #dddddd; + height: 40px; +} + +.section p { + //color: white; + padding: 10px; + font-size: 18px; +} + +.clr-input { + color: #212529; + border: 1px solid #ced4da; + border-radius: 0.25rem; + padding: 0.75rem 0.75rem; + margin-top: 3px; + width: 100%; + margin-bottom: 10px; +} + +.clr-file { + color: #212529; + border: 1px solid #ced4da; + border-radius: 0.25rem; + //padding: 0.6rem 0.75rem; + margin-top: 3px; + width: 100%; + margin-bottom: 10px; +} + +.center { + text-align: center; +} +select{ + width: 100%; + margin-top: 3px; + padding: 5px 5px; + border: 1px solid #ccc; + border-radius: 4px; +} +input[type=text],[type=date],[type=number],textarea { + width: 100%; + padding: 15px 15px; + background-color:rgb(255, 255, 255); + // margin: 8px 0; + display: inline-block; + border: 1px solid #ccc; + border-radius: 4px; + box-sizing: border-box; +} +.error_mess { + color: red; +} diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deleted_child/Deleted_child.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deleted_child/Deleted_child.component.ts new file mode 100644 index 0000000..061cb6b --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deleted_child/Deleted_child.component.ts @@ -0,0 +1,417 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Deleted_childservice} from './Deleted_child.service'; +import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms'; +import { ExtensionService } from 'src/app/services/fnd/extension.service'; +import { DashboardContentModel2 } from 'src/app/models/builder/dashboard'; +import { Deleted_childcardvariable } from './Deleted_child_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Deleted_child', + templateUrl: './Deleted_child.component.html', + styleUrls: ['./Deleted_child.component.scss'] +}) +export class Deleted_childComponent implements OnInit { + cardButton = Deleted_childcardvariable.cardButton; + cardmodeldata = Deleted_childcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Deleted_childcardvariable.cardButton; + cardmodal; changeView(){ + this.isCardview = !this.isCardview; + } + beforeText(fieldtext: string): string { // Extract the text before the first '<' + const index = fieldtext.indexOf('<'); + return index !== -1 ? fieldtext.substring(0, index) : fieldtext; + } + afterText(fieldtext: string): string { // Extract the text after the last '>' + const index = fieldtext.lastIndexOf('>'); + return index !== -1 ? fieldtext.substring(index + 1) : ''; + } + transform(fieldtext: string): string { + const match = fieldtext.match(/<([^>]*)>/); + return match ? match[1] : ''; // Extract the text between '<' and '>' + } + userrole; + rowSelected :any= {}; + modaldelete=false; + modalEdit=false; + modalAdd= false; + public entryForm: FormGroup; + loading = false; + product; + modalOpenedforNewLine = false; + newLine:any; + additionalFieldsFromBackend: any[] = []; + formcode = 'Deleted_child_formCode' +tableName = 'Deleted_child'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Deleted_childservice, + private alertService: AlertService, + private toastr: ToastrService, + private _fb: FormBuilder, + ) { } +// component button + ngOnInit(): void { + if(this.cardmodeldata !== ''){ + this.cardmodal = JSON.parse(this.cardmodeldata); + this.dashboardArray = this.cardmodal.dashboard.slice(); + console.log(this.dashboardArray) + } + this.userrole=this.userInfoService.getRoles(); + this.getData(); + this.entryForm = this._fb.group({ +full_name : [null], + +agent : [null], + +supplier_acknowledged : [false], + +status : [null], + +entry_date : [null], + +application_code : [null], + +email_id : [null], + +phone_number: ['+91'], + +supplier : [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 === "Deleted_child_formCode"); + console.log(this.checkFormCode); + console.log(this.additionalFieldsFromBackend); + if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) { + this.additionalFieldsFromBackend.forEach(field => { + if (field.formCode === this.formcode) { + if (!this.entryForm.contains(field.extValue)) { + // Add the control only if it doesn't exist in the form + this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue)); + } + } + }); + } + }); + console.log(this.entryForm.value); + // form code end + + + + + + + + + + + + + + + + + + + + } + + + + + + + + + + + + + + + + + + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + + + + + + + + + + + + + + + + + this.modalEdit = true; + } + onDelete(row) { + this.rowSelected = row; + this.modaldelete=true; + } + delete(id) + { + this.modaldelete = false; + console.log("in delete "+id); + this.mainService.delete(id).subscribe( + (data) => { + console.log(data); + this.ngOnInit(); + if (data) { this.toastr.success('Deleted successfully'); } + }); + } + onUpdate(id) { + this.modalEdit = false; + + + + + + + + + + + + + + + + + + + //console.log("in update"); + console.log("id " + id); + console.log(this.rowSelected); + //console.log("out update"); + this.mainService.update(id, this.rowSelected).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Update Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + + + + + + + + + + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("update Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Updated"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Updated"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } +onCreate() { + this.modalAdd=false; + + + + + + + + + + + + + + + + + + + this.mainService.create(this.entryForm.value).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Added Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + + + + + + + + + + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("Added Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Added"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Added"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } + goToAdd(row) { +this.modalAdd = true; this.submitted = false; + + + + + + + + + + + + + + + + + + + } + submitted = false; +onSubmit() { + console.log(this.entryForm.value); + this.submitted = true; + if (this.entryForm.invalid) { + return; + }this.onCreate(); + +} + + + + + + + + + + + + +isValidemail_id(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); +} + + + +// updateaction +} + + + + + + + + + + + + + + + + + diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deleted_child/Deleted_child.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deleted_child/Deleted_child.service.ts new file mode 100644 index 0000000..4d58c4c --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deleted_child/Deleted_child.service.ts @@ -0,0 +1,51 @@ +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 Deleted_childservice{ + private baseURL = "Deleted_child/Deleted_child" ; constructor( + private http: HttpClient, + private apiRequest: ApiRequestService, + ) { } + getAll(page?: number, size?: number): Observable { + return this.apiRequest.get(this.baseURL); + } + getById(id: number): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.get(_http); + } + create(data: any): Observable { + return this.apiRequest.post(this.baseURL, data); + } + update(id: number, data: any): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.put(_http, data); + } + delete(id: number): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.delete(_http); + } + + + + + + + + + + + + + + + + + + +// updateaction +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deleted_child/Deleted_child_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deleted_child/Deleted_child_cardvariable.ts new file mode 100644 index 0000000..3299dd3 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/basicp1/Deleted_child/Deleted_child_cardvariable.ts @@ -0,0 +1,4 @@ +export const Deleted_childcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Agent_report/Agent_report.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Agent_report/Agent_report.component.html new file mode 100644 index 0000000..83971a9 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Agent_report/Agent_report.component.html @@ -0,0 +1,968 @@ + +
+
+
+

Agent_report

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Invoice created + + + + Entry date form + + + + Date Field + + + + Entry date to + + + + Full name + + + + Application code + + + + Nationality + + + + Agent + + + + passport number + + + + Filter btn + + + + Reset btn + + + + + + + + Action + + + + + +{{user. invoice_created }} + + +{{user. entry_date_form }} + + +{{user. date_field }} + + +{{user. entry_date_to }} + + +{{user. full_name }} + + +{{user. application_code }} + + +{{user. nationality }} + + +{{user. agent }} + + +{{user. passport_number }} + + +{{user. filter_btn }} + + +{{user. reset_btn }} + + + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Agent_report/Agent_report.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Agent_report/Agent_report.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Agent_report/Agent_report.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Agent_report/Agent_report.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Agent_report/Agent_report.component.ts new file mode 100644 index 0000000..50d191b --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Agent_report/Agent_report.component.ts @@ -0,0 +1,607 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Agent_reportservice} from './Agent_report.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 { Agent_reportcardvariable } from './Agent_report_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Agent_report', + templateUrl: './Agent_report.component.html', + styleUrls: ['./Agent_report.component.scss'] +}) +export class Agent_reportComponent implements OnInit { + cardButton = Agent_reportcardvariable.cardButton; + cardmodeldata = Agent_reportcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Agent_reportcardvariable.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 = 'Agent_report_formCode' +tableName = 'Agent_report'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Agent_reportservice, + 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({ +invoice_created : [null], + +entry_date_form : [null], + +date_field : [null], + +entry_date_to : [null], + +full_name : [null], + +application_code : [null], + +nationality : [null], + +agent : [null], + +passport_number : [null,[Validators.required]], + +filter_btn : [null], + +reset_btn : [null], + +agent_report_line: this._fb.array([this.initLinesForm()]), + + + + + + + + + + + + + + + + + + + + + + + + + + + }); // component_button200 + // form code start + this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { + console.log(data); + const jsonArray = data.map((str) => JSON.parse(str)); + this.additionalFieldsFromBackend = jsonArray; + this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Agent_report_formCode"); + console.log(this.checkFormCode); + console.log(this.additionalFieldsFromBackend); + if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) { + this.additionalFieldsFromBackend.forEach(field => { + if (field.formCode === this.formcode) { + if (!this.entryForm.contains(field.extValue)) { + // Add the control only if it doesn't exist in the form + this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue)); + } + } + }); + } + }); + console.log(this.entryForm.value); + // form code end + + + + + + + + + + + + + + + + + + + + + + + + + + } + + + + + + + + + + + + + + + + + + + + + + +// one to many start + initLinesForm() { return this._fb.group({ + + + + status: [null], + + + + full_name: [null], + + + + agent: [null], + + + + visa_processing_time: [null], + + + + passport_number: [null], + + + + total_price: [null], + + + + visa_duration: [null], + + + + invoice_created: [null], + + + + nationality: [null], + + + + application_code: [null], + + + + visa_entry_type: [null], + + + + invoice_id: [null], + + + + entry_date: [null], + + + +}); } +get controls() {return (this.entryForm.get("agent_report_line") as FormArray).controls; } +onAddLines() { +(this.entryForm.get("agent_report_line")).push(this.initLinesForm()); } +onRemoveLines(index: number) { +(this.entryForm.get("agent_report_line")).removeAt(index); } + oneditLines() { this.components.push({ + + +status: "", + + + +full_name: "", + + + +agent: "", + + + +visa_processing_time: "", + + + +passport_number: "", + + + +total_price: "", + + + +visa_duration: "", + + + +invoice_created: "", + + + +nationality: "", + + + +application_code: "", + + + +visa_entry_type: "", + + + +invoice_id: "", + + + +entry_date: "", + + + + }); } + deleteRow(index) { + this.components.splice(index, 1); + } + components; + // one to many end + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + + + + + + + + + + + + + + + + + + + +this.components = row.agent_report_line; + + + 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Agent_report/Agent_report.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Agent_report/Agent_report.service.ts new file mode 100644 index 0000000..bf02fc9 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Agent_report/Agent_report.service.ts @@ -0,0 +1,57 @@ +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 Agent_reportservice{ + private baseURL = "Agent_report/Agent_report" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Agent_report/Agent_report_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Agent_report/Agent_report_cardvariable.ts new file mode 100644 index 0000000..2abe187 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Agent_report/Agent_report_cardvariable.ts @@ -0,0 +1,4 @@ +export const Agent_reportcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Agent_report_line/Agent_report_line.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Agent_report_line/Agent_report_line.component.html new file mode 100644 index 0000000..6c9a440 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Agent_report_line/Agent_report_line.component.html @@ -0,0 +1,864 @@ + +
+
+
+

Agent_report_line

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Invoice created + + + + Status + + + + Full name + + + + Agent + + + + Entry date + + + + Application code + + + + Nationality + + + + Passport number + + + + Visa entry type + + + + visa processing time + + + + Visa Duration + + + + invoice id + + + + total price + + + + + + Action + + + + + +{{user. invoice_created }} + + +{{user. status }} + + +{{user. full_name }} + + +{{user. agent }} + + +{{user. entry_date }} + + +{{user. application_code }} + + +{{user. nationality }} + + +{{user. passport_number }} + + +{{user. visa_entry_type }} + + +{{user. visa_processing_time }} + + +{{user. visa_duration }} + + +{{user. invoice_id }} + + +{{user. total_price }} + + + + + + + +
Who Column
+
Account ID: {{user.accountId}}
+
Created At: {{user.createdAt| date}}
+
Created By: {{user.createdBy}}
+
Updated At: {{user.updatedAt | date}}
+
Updated By: {{user.updatedBy}}
+
+
+
+ + + + + + + +
+ + + Users per page + {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}} + of {{pagination.totalItems}} users + + +
+ + + +
+
+
+
+
+
+ +
+
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ] }} + {{afterText(item.fieldtext)}} +
+ +
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ] | date}} + {{afterText(item.fieldtext)}} +
+
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ]}} + {{afterText(item.fieldtext)}} +
+ +
+
+
+ + +
+ +
+ +
File Preview
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Agent_report_line/Agent_report_line.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Agent_report_line/Agent_report_line.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Agent_report_line/Agent_report_line.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Agent_report_line/Agent_report_line.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Agent_report_line/Agent_report_line.component.ts new file mode 100644 index 0000000..63ac7d7 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Agent_report_line/Agent_report_line.component.ts @@ -0,0 +1,508 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Agent_report_lineservice} from './Agent_report_line.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 { Agent_report_linecardvariable } from './Agent_report_line_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Agent_report_line', + templateUrl: './Agent_report_line.component.html', + styleUrls: ['./Agent_report_line.component.scss'] +}) +export class Agent_report_lineComponent implements OnInit { + cardButton = Agent_report_linecardvariable.cardButton; + cardmodeldata = Agent_report_linecardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Agent_report_linecardvariable.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 = 'Agent_report_line_formCode' +tableName = 'Agent_report_line'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Agent_report_lineservice, + 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({ +invoice_created : [null], + +status : [null], + +full_name : [null], + +agent : [null], + +entry_date : [null], + +application_code : [null], + +nationality : [null], + +passport_number : [null,[Validators.required]], + +visa_entry_type : [null], + +visa_processing_time : [null], + +visa_duration : [null], + +invoice_id : [null,[Validators.required]], + +total_price : [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 === "Agent_report_line_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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Agent_report_line/Agent_report_line.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Agent_report_line/Agent_report_line.service.ts new file mode 100644 index 0000000..8f7a376 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Agent_report_line/Agent_report_line.service.ts @@ -0,0 +1,59 @@ +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 Agent_report_lineservice{ + private baseURL = "Agent_report_line/Agent_report_line" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Agent_report_line/Agent_report_line_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Agent_report_line/Agent_report_line_cardvariable.ts new file mode 100644 index 0000000..b224694 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Agent_report_line/Agent_report_line_cardvariable.ts @@ -0,0 +1,4 @@ +export const Agent_report_linecardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Completed_or_archive/Completed_or_archive.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Completed_or_archive/Completed_or_archive.component.html new file mode 100644 index 0000000..4cfcf91 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Completed_or_archive/Completed_or_archive.component.html @@ -0,0 +1,779 @@ + +
+
+
+

Completed_or_archive

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Full name + + + + Application code + + + + Nationality + + + + Number Field + + + + Reset btn + + + + filter btn + + + + + + + + Action + + + + + +{{user. full_name }} + + +{{user. application_code }} + + +{{user. nationality }} + + +{{user. number_field }} + + +{{user. reset_btn }} + + +{{user. filter_btn }} + + + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Completed_or_archive/Completed_or_archive.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Completed_or_archive/Completed_or_archive.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Completed_or_archive/Completed_or_archive.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Completed_or_archive/Completed_or_archive.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Completed_or_archive/Completed_or_archive.component.ts new file mode 100644 index 0000000..49b3568 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Completed_or_archive/Completed_or_archive.component.ts @@ -0,0 +1,479 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Completed_or_archiveservice} from './Completed_or_archive.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 { Completed_or_archivecardvariable } from './Completed_or_archive_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Completed_or_archive', + templateUrl: './Completed_or_archive.component.html', + styleUrls: ['./Completed_or_archive.component.scss'] +}) +export class Completed_or_archiveComponent implements OnInit { + cardButton = Completed_or_archivecardvariable.cardButton; + cardmodeldata = Completed_or_archivecardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Completed_or_archivecardvariable.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 = 'Completed_or_archive_formCode' +tableName = 'Completed_or_archive'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Completed_or_archiveservice, + 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({ +full_name : [null], + +application_code : [null], + +nationality : [null], + +number_field : [null,[Validators.required]], + +reset_btn : [null], + +filter_btn : [null], + +completed_or_archive_child: this._fb.array([this.initLinesForm()]), + + + + + + + + + + + + + + + + + }); // component_button200 + // form code start + this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { + console.log(data); + const jsonArray = data.map((str) => JSON.parse(str)); + this.additionalFieldsFromBackend = jsonArray; + this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Completed_or_archive_formCode"); + console.log(this.checkFormCode); + console.log(this.additionalFieldsFromBackend); + if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) { + this.additionalFieldsFromBackend.forEach(field => { + if (field.formCode === this.formcode) { + if (!this.entryForm.contains(field.extValue)) { + // Add the control only if it doesn't exist in the form + this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue)); + } + } + }); + } + }); + console.log(this.entryForm.value); + // form code end + + + + + + + + + + + + + + + + } + + + + + + + + + + + + +// one to many start + initLinesForm() { return this._fb.group({ + + + + full_name: [null], + + + + status: [null], + + + + agent: [null], + + + + phone_number: [null], + + + + note: [null], + + + + supplier_acknowledged: [null], + + + + application_code: [null], + + + + coupon: [null], + + + + email_id: [null], + + + + visa: [null], + + + + supplier: [null], + + + + entry_date: [null], + + + +}); } +get controls() {return (this.entryForm.get("completed_or_archive_child") as FormArray).controls; } +onAddLines() { +(this.entryForm.get("completed_or_archive_child")).push(this.initLinesForm()); } +onRemoveLines(index: number) { +(this.entryForm.get("completed_or_archive_child")).removeAt(index); } + oneditLines() { this.components.push({ + + +full_name: "", + + + +status: "", + + + +agent: "", + + + +phone_number: "", + + + +note: "", + + + +supplier_acknowledged: "", + + + +application_code: "", + + + +coupon: "", + + + +email_id: "", + + + +visa: "", + + + +supplier: "", + + + +entry_date: "", + + + + }); } + deleteRow(index) { + this.components.splice(index, 1); + } + components; + // one to many end + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + + + + + + + + + +this.components = row.completed_or_archive_child; + + + 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Completed_or_archive/Completed_or_archive.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Completed_or_archive/Completed_or_archive.service.ts new file mode 100644 index 0000000..df242c1 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Completed_or_archive/Completed_or_archive.service.ts @@ -0,0 +1,47 @@ +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 Completed_or_archiveservice{ + private baseURL = "Completed_or_archive/Completed_or_archive" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Completed_or_archive/Completed_or_archive_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Completed_or_archive/Completed_or_archive_cardvariable.ts new file mode 100644 index 0000000..f8a5e83 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Completed_or_archive/Completed_or_archive_cardvariable.ts @@ -0,0 +1,4 @@ +export const Completed_or_archivecardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Completed_or_archive_child/Completed_or_archive_child.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Completed_or_archive_child/Completed_or_archive_child.component.html new file mode 100644 index 0000000..a8929aa --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Completed_or_archive_child/Completed_or_archive_child.component.html @@ -0,0 +1,676 @@ + +
+
+
+

Completed_or_archive_child

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Full Name + + + + Agent + + + + supplier acknowledged + + + + Status + + + + Entry date + + + + Application code + + + + supplier + + + + Phone number + + + + Email id + + + + note + + + + visa + + + + coupon + + + + + + Action + + + + + +{{user. full_name }} + + +{{user. agent }} + + +{{user. supplier_acknowledged }} + + +{{user. status }} + + +{{user. entry_date }} + + +{{user. application_code }} + + +{{user. supplier }} + + +{{user. phone_number }} + + +{{user. email_id }} + + +{{user. note }} + + +{{user. visa }} + + +{{user. coupon }} + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Completed_or_archive_child/Completed_or_archive_child.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Completed_or_archive_child/Completed_or_archive_child.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Completed_or_archive_child/Completed_or_archive_child.component.scss @@ -0,0 +1,78 @@ +//@import "../../../../assets/scss/var"; +.s-info-bar { + display: flex; + flex-direction: row; + justify-content: space-between; + button { + outline: none; + } +} +.delete,.heading{ + text-align: center; + color: red; +} +.entry-pg { + width: 750px; +} + +.button1::after { + content: none; +} +.button1:hover::after { + content: "ADD ROWS"; +} + +.section { + background-color: #dddddd; + height: 40px; +} + +.section p { + //color: white; + padding: 10px; + font-size: 18px; +} + +.clr-input { + color: #212529; + border: 1px solid #ced4da; + border-radius: 0.25rem; + padding: 0.75rem 0.75rem; + margin-top: 3px; + width: 100%; + margin-bottom: 10px; +} + +.clr-file { + color: #212529; + border: 1px solid #ced4da; + border-radius: 0.25rem; + //padding: 0.6rem 0.75rem; + margin-top: 3px; + width: 100%; + margin-bottom: 10px; +} + +.center { + text-align: center; +} +select{ + width: 100%; + margin-top: 3px; + padding: 5px 5px; + border: 1px solid #ccc; + border-radius: 4px; +} +input[type=text],[type=date],[type=number],textarea { + width: 100%; + padding: 15px 15px; + background-color:rgb(255, 255, 255); + // margin: 8px 0; + display: inline-block; + border: 1px solid #ccc; + border-radius: 4px; + box-sizing: border-box; +} +.error_mess { + color: red; +} diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Completed_or_archive_child/Completed_or_archive_child.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Completed_or_archive_child/Completed_or_archive_child.component.ts new file mode 100644 index 0000000..4d7c0a7 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Completed_or_archive_child/Completed_or_archive_child.component.ts @@ -0,0 +1,489 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Completed_or_archive_childservice} from './Completed_or_archive_child.service'; +import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms'; +import { ExtensionService } from 'src/app/services/fnd/extension.service'; +import { DashboardContentModel2 } from 'src/app/models/builder/dashboard'; +import { Completed_or_archive_childcardvariable } from './Completed_or_archive_child_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Completed_or_archive_child', + templateUrl: './Completed_or_archive_child.component.html', + styleUrls: ['./Completed_or_archive_child.component.scss'] +}) +export class Completed_or_archive_childComponent implements OnInit { + cardButton = Completed_or_archive_childcardvariable.cardButton; + cardmodeldata = Completed_or_archive_childcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Completed_or_archive_childcardvariable.cardButton; + cardmodal; changeView(){ + this.isCardview = !this.isCardview; + } + beforeText(fieldtext: string): string { // Extract the text before the first '<' + const index = fieldtext.indexOf('<'); + return index !== -1 ? fieldtext.substring(0, index) : fieldtext; + } + afterText(fieldtext: string): string { // Extract the text after the last '>' + const index = fieldtext.lastIndexOf('>'); + return index !== -1 ? fieldtext.substring(index + 1) : ''; + } + transform(fieldtext: string): string { + const match = fieldtext.match(/<([^>]*)>/); + return match ? match[1] : ''; // Extract the text between '<' and '>' + } + userrole; + rowSelected :any= {}; + modaldelete=false; + modalEdit=false; + modalAdd= false; + public entryForm: FormGroup; + loading = false; + product; + modalOpenedforNewLine = false; + newLine:any; + additionalFieldsFromBackend: any[] = []; + formcode = 'Completed_or_archive_child_formCode' +tableName = 'Completed_or_archive_child'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Completed_or_archive_childservice, + private alertService: AlertService, + private toastr: ToastrService, + private _fb: FormBuilder, + ) { } +// component button + ngOnInit(): void { + if(this.cardmodeldata !== ''){ + this.cardmodal = JSON.parse(this.cardmodeldata); + this.dashboardArray = this.cardmodal.dashboard.slice(); + console.log(this.dashboardArray) + } + this.userrole=this.userInfoService.getRoles(); + this.getData(); + this.entryForm = this._fb.group({ +full_name : [null], + +agent : [null], + +supplier_acknowledged : [false], + +status : [null], + +entry_date : [null], + +application_code : [null], + +supplier : [null], + +phone_number: ['+91'], + +email_id : [null], + +note : [null], + +visa : [null], + +coupon : [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 === "Completed_or_archive_child_formCode"); + console.log(this.checkFormCode); + console.log(this.additionalFieldsFromBackend); + if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) { + this.additionalFieldsFromBackend.forEach(field => { + if (field.formCode === this.formcode) { + if (!this.entryForm.contains(field.extValue)) { + // Add the control only if it doesn't exist in the form + this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue)); + } + } + }); + } + }); + console.log(this.entryForm.value); + // form code end + + + + + + + + + + + + + + + + + + + + + + + + + + } + + + + + + + + + + + + + + + + + + + + + + + + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + + + + + + + + + + + + + + + + + + + + + + + this.modalEdit = true; + } + onDelete(row) { + this.rowSelected = row; + this.modaldelete=true; + } + delete(id) + { + this.modaldelete = false; + console.log("in delete "+id); + this.mainService.delete(id).subscribe( + (data) => { + console.log(data); + this.ngOnInit(); + if (data) { this.toastr.success('Deleted successfully'); } + }); + } + onUpdate(id) { + this.modalEdit = false; + + + + + + + + + + + + + + + + + + + + + + + + + //console.log("in update"); + console.log("id " + id); + console.log(this.rowSelected); + //console.log("out update"); + this.mainService.update(id, this.rowSelected).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Update Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + + + + + + + + + + + + + + + + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("update Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Updated"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Updated"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } +onCreate() { + this.modalAdd=false; + + + + + + + + + + + + + + + + + + + + + + + + + this.mainService.create(this.entryForm.value).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Added Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + + + + + + + + + + + + + + + + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("Added Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Added"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Added"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } + goToAdd(row) { +this.modalAdd = true; this.submitted = false; + + + + + + + + + + + + + + + + + + + + + + + + + } + submitted = false; +onSubmit() { + console.log(this.entryForm.value); + this.submitted = true; + if (this.entryForm.invalid) { + return; + }this.onCreate(); + +} + + + + + + + + + + + + + + +isValidPhone_number(phone: string): boolean { + const phonePattern = /^(\+[1-9][0-9]{0,2})?[1-9][0-9]{9}$/; + return phonePattern.test(phone); +} + +isValidemail_id(email: string): boolean { + const emailPattern = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/; + return emailPattern.test(email); } + + + + + + + +// updateaction +} + + + + + + + + + + + + + + + + + + + + + + + diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Completed_or_archive_child/Completed_or_archive_child.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Completed_or_archive_child/Completed_or_archive_child.service.ts new file mode 100644 index 0000000..50a3068 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Completed_or_archive_child/Completed_or_archive_child.service.ts @@ -0,0 +1,57 @@ +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 Completed_or_archive_childservice{ + private baseURL = "Completed_or_archive_child/Completed_or_archive_child" ; constructor( + private http: HttpClient, + private apiRequest: ApiRequestService, + ) { } + getAll(page?: number, size?: number): Observable { + return this.apiRequest.get(this.baseURL); + } + getById(id: number): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.get(_http); + } + create(data: any): Observable { + return this.apiRequest.post(this.baseURL, data); + } + update(id: number, data: any): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.put(_http, data); + } + delete(id: number): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.delete(_http); + } + + + + + + + + + + + + + + + + + + + + + + + + +// updateaction +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Completed_or_archive_child/Completed_or_archive_child_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Completed_or_archive_child/Completed_or_archive_child_cardvariable.ts new file mode 100644 index 0000000..93d36c9 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Completed_or_archive_child/Completed_or_archive_child_cardvariable.ts @@ -0,0 +1,4 @@ +export const Completed_or_archive_childcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Cost_sheet_upload/Cost_sheet_upload.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Cost_sheet_upload/Cost_sheet_upload.component.html new file mode 100644 index 0000000..2624598 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Cost_sheet_upload/Cost_sheet_upload.component.html @@ -0,0 +1,619 @@ + +
+
+
+

Cost_sheet_upload

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + + + Date + + + + Name + + + + Nationality + + + + Passport type + + + + Passport number + + + + Cost + + + + + + Action + + + + + + + +{{user. date }} + + +{{user. name }} + + +{{user. nationality }} + + +{{user. passport_type }} + + +{{user. passport_number }} + + +{{user. cost }} + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Cost_sheet_upload/Cost_sheet_upload.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Cost_sheet_upload/Cost_sheet_upload.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Cost_sheet_upload/Cost_sheet_upload.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Cost_sheet_upload/Cost_sheet_upload.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Cost_sheet_upload/Cost_sheet_upload.component.ts new file mode 100644 index 0000000..b8d023c --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Cost_sheet_upload/Cost_sheet_upload.component.ts @@ -0,0 +1,418 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Cost_sheet_uploadservice} from './Cost_sheet_upload.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 { Cost_sheet_uploadcardvariable } from './Cost_sheet_upload_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Cost_sheet_upload', + templateUrl: './Cost_sheet_upload.component.html', + styleUrls: ['./Cost_sheet_upload.component.scss'] +}) +export class Cost_sheet_uploadComponent implements OnInit { + cardButton = Cost_sheet_uploadcardvariable.cardButton; + cardmodeldata = Cost_sheet_uploadcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Cost_sheet_uploadcardvariable.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 = 'Cost_sheet_upload_formCode' +tableName = 'Cost_sheet_upload'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Cost_sheet_uploadservice, + 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({ + + +date : [null], + +name : [null], + +nationality : [null], + +passport_type : [null], + +passport_number : [null,[Validators.required]], + +cost : [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 === "Cost_sheet_upload_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.selectedcost_sheet_upload = []; + this.mainService.uploadfilegetByIdcost_sheet_upload(row.id,this.tableName).subscribe(uploaddata =>{ + console.log(uploaddata); + this.FileDatacost_sheet_upload = uploaddata; + + }) + + + + + + + + + + + + + + + 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); +for (let i = 0; i < this.selectedcost_sheet_upload.length; i++){ + + this.mainService.uploadfilecost_sheet_upload(data.id,this.tableName,this.selectedcost_sheet_upload[i]).subscribe(uploaddata =>{ + console.log(uploaddata); + }) +} + + + + + + + + + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("update Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Updated"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Updated"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } +onCreate() { + this.modalAdd=false; + + + + + + + + + + + + + + + this.mainService.create(this.entryForm.value).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Added Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500);for (let i = 0; i < this.selectedcost_sheet_upload.length; i++){ + + this.mainService.uploadfilecost_sheet_upload(data.id,this.tableName,this.selectedcost_sheet_upload[i]).subscribe(uploaddata =>{ + console.log(uploaddata); + }) +} + + + + + + + + + + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("Added Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Added"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Added"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } + goToAdd(row) { +this.modalAdd = true; this.submitted = false;this.FileDatacost_sheet_upload = []; +this.selectedcost_sheet_upload =[]; + + + + + + + + + + + + + + + } + submitted = false; +onSubmit() { + console.log(this.entryForm.value); + this.submitted = true; + if (this.entryForm.invalid) { + return; + }this.onCreate(); + +} +filePreviewcost_sheet_upload: string | ArrayBuffer | null = null; +FileDatacost_sheet_upload: {uploadedfile_name?:any, filePreview: string | ArrayBuffer | null }[] = []; // Initialize the array +selectedcost_sheet_upload: File[]=[]; +public onFileChangedcost_sheet_upload(event, index) { + const files = event.target.files; + for (let i = 0; i < files.length; i++) { + const file = files[i]; + this.FileDatacost_sheet_upload[index].uploadedfile_name = files[i].name; + this.selectedcost_sheet_upload.push(files[i]); + if (file.type.startsWith('file/')) { + const reader = new FileReader(); + reader.onload = (e) => { + // Set the file preview source + const filePreview = e.target?.result as string; + this.FileDatacost_sheet_upload[index] = { + ...this.FileDatacost_sheet_upload[index], // Preserve existing properties + filePreview: filePreview // Update only the filePreview property + }; + }; + reader.readAsDataURL(file); + } + } +} + onAddLinescost_sheet_upload(){ + this.FileDatacost_sheet_upload.push({ + uploadedfile_name: "", + filePreview: "", + // f3: "", + }); + } + deleteRowcost_sheet_upload(index,id) { + this.FileDatacost_sheet_upload.splice(index, 1); + + if(id){ + this.mainService.uploadfiledeletecost_sheet_upload(id).subscribe(data =>{ + console.log(data); + }) + } + } + + + + + + + + + + + + + +// updateaction +} + + + + + + + + + + + + + diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Cost_sheet_upload/Cost_sheet_upload.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Cost_sheet_upload/Cost_sheet_upload.service.ts new file mode 100644 index 0000000..1986250 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Cost_sheet_upload/Cost_sheet_upload.service.ts @@ -0,0 +1,60 @@ +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 Cost_sheet_uploadservice{ + private baseURL = "Cost_sheet_upload/Cost_sheet_upload" ; 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); + } + uploadfilecost_sheet_upload(ref:any, Cost_sheet_upload:any, file:any): Observable{ + const formData = new FormData(); + formData.append('file', file); + return this.apiRequest.postFormData(`FileUpload/Uploadeddocs/${ref}/${Cost_sheet_upload}`, formData); + } + + uploadfilegetByIdcost_sheet_upload(ref:any, Cost_sheet_upload:any,): Observable { + return this.apiRequest.get(`FileUpload/Uploadeddocs/${ref}/${Cost_sheet_upload}`); + } + + + uploadfiledeletecost_sheet_upload(id: number): Observable { + return this.apiRequest.delete(`FileUpload/Uploadeddocs/${id}`); + } + + + + + + + + + + + + + +// updateaction +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Cost_sheet_upload/Cost_sheet_upload_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Cost_sheet_upload/Cost_sheet_upload_cardvariable.ts new file mode 100644 index 0000000..d90ce7f --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Cost_sheet_upload/Cost_sheet_upload_cardvariable.ts @@ -0,0 +1,4 @@ +export const Cost_sheet_uploadcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Coupon/Coupon.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Coupon/Coupon.component.html new file mode 100644 index 0000000..f9bfd1c --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Coupon/Coupon.component.html @@ -0,0 +1,402 @@ + +
+
+
+

Coupon

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Code + + + + Active + + + + coupon validity + + + + coupon discount + + + + + + Action + + + + + +{{user. code }} + + +{{user. active }} + + +{{user. coupon_validity }} + + +{{user. coupon_discount }} + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Coupon/Coupon.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Coupon/Coupon.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Coupon/Coupon.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Coupon/Coupon.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Coupon/Coupon.component.ts new file mode 100644 index 0000000..f631d90 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Coupon/Coupon.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 { Couponservice} from './Coupon.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 { Couponcardvariable } from './Coupon_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Coupon', + templateUrl: './Coupon.component.html', + styleUrls: ['./Coupon.component.scss'] +}) +export class CouponComponent implements OnInit { + cardButton = Couponcardvariable.cardButton; + cardmodeldata = Couponcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Couponcardvariable.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 = 'Coupon_formCode' +tableName = 'Coupon'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Couponservice, + 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({ +code : [null], + +active : [false], + +coupon_validity : [null], + +coupon_discount : [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 === "Coupon_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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Coupon/Coupon.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Coupon/Coupon.service.ts new file mode 100644 index 0000000..0bca167 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Coupon/Coupon.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 Couponservice{ + private baseURL = "Coupon/Coupon" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Coupon/Coupon_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Coupon/Coupon_cardvariable.ts new file mode 100644 index 0000000..0c6e652 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Coupon/Coupon_cardvariable.ts @@ -0,0 +1,4 @@ +export const Couponcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Customer_report/Customer_report.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Customer_report/Customer_report.component.html new file mode 100644 index 0000000..9b95d68 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Customer_report/Customer_report.component.html @@ -0,0 +1,382 @@ + +
+
+
+

Customer_report

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Full name + + + + Phone number + + + + Email id + + + + + + Action + + + + + +{{user. full_name }} + + +{{user. phone_number }} + + +{{user. email_id }} + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Customer_report/Customer_report.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Customer_report/Customer_report.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Customer_report/Customer_report.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Customer_report/Customer_report.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Customer_report/Customer_report.component.ts new file mode 100644 index 0000000..40df04b --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Customer_report/Customer_report.component.ts @@ -0,0 +1,273 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Customer_reportservice} from './Customer_report.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_reportcardvariable } from './Customer_report_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Customer_report', + templateUrl: './Customer_report.component.html', + styleUrls: ['./Customer_report.component.scss'] +}) +export class Customer_reportComponent implements OnInit { + cardButton = Customer_reportcardvariable.cardButton; + cardmodeldata = Customer_reportcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Customer_reportcardvariable.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_report_formCode' +tableName = 'Customer_report'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Customer_reportservice, + 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({ +full_name : [null], + +phone_number: ['+91'], + +email_id : [null], + + + + + + + + + }); // component_button200 + // form code start + this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { + console.log(data); + const jsonArray = data.map((str) => JSON.parse(str)); + this.additionalFieldsFromBackend = jsonArray; + this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Customer_report_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(); + +} + + +isValidPhone_number(phone: string): boolean { + const phonePattern = /^(\+[1-9][0-9]{0,2})?[1-9][0-9]{9}$/; + return phonePattern.test(phone); +} + +isValidemail_id(email: string): boolean { + const emailPattern = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/; + return emailPattern.test(email); } + +// updateaction +} + + + + + diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Customer_report/Customer_report.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Customer_report/Customer_report.service.ts new file mode 100644 index 0000000..9b00133 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Customer_report/Customer_report.service.ts @@ -0,0 +1,39 @@ +import { Injectable } from '@angular/core'; +import { Observable } from "rxjs"; +import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http"; +import { ApiRequestService } from "src/app/services/api/api-request.service"; +import { environment } from 'src/environments/environment'; +@Injectable({ + providedIn: 'root' +}) +export class Customer_reportservice{ + private baseURL = "Customer_report/Customer_report" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Customer_report/Customer_report_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Customer_report/Customer_report_cardvariable.ts new file mode 100644 index 0000000..5dff3f3 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Customer_report/Customer_report_cardvariable.ts @@ -0,0 +1,4 @@ +export const Customer_reportcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Deleted/Deleted.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Deleted/Deleted.component.html new file mode 100644 index 0000000..4c74bfb --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Deleted/Deleted.component.html @@ -0,0 +1,693 @@ + +
+
+
+

Deleted

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Name + + + + Application code + + + + Nationality + + + + filter btn + + + + Reset btn + + + + + + + + Action + + + + + +{{user. name }} + + +{{user. application_code }} + + +{{user. nationality }} + + +{{user. filter_btn }} + + +{{user. reset_btn }} + + + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Deleted/Deleted.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Deleted/Deleted.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Deleted/Deleted.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Deleted/Deleted.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Deleted/Deleted.component.ts new file mode 100644 index 0000000..95fa91d --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Deleted/Deleted.component.ts @@ -0,0 +1,431 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Deletedservice} from './Deleted.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 { Deletedcardvariable } from './Deleted_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Deleted', + templateUrl: './Deleted.component.html', + styleUrls: ['./Deleted.component.scss'] +}) +export class DeletedComponent implements OnInit { + cardButton = Deletedcardvariable.cardButton; + cardmodeldata = Deletedcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Deletedcardvariable.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 = 'Deleted_formCode' +tableName = 'Deleted'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Deletedservice, + private alertService: AlertService, + private toastr: ToastrService, + private _fb: FormBuilder, + ) { } +// component button + ngOnInit(): void { + if(this.cardmodeldata !== ''){ + this.cardmodal = JSON.parse(this.cardmodeldata); + this.dashboardArray = this.cardmodal.dashboard.slice(); + console.log(this.dashboardArray) + } + this.userrole=this.userInfoService.getRoles(); + this.getData(); + this.entryForm = this._fb.group({ +name : [null], + +application_code : [null], + +nationality : [null], + +filter_btn : [null], + +reset_btn : [null], + +deleted_child: this._fb.array([this.initLinesForm()]), + + + + + + + + + + + + + + + }); // component_button200 + // form code start + this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { + console.log(data); + const jsonArray = data.map((str) => JSON.parse(str)); + this.additionalFieldsFromBackend = jsonArray; + this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Deleted_formCode"); + console.log(this.checkFormCode); + console.log(this.additionalFieldsFromBackend); + if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) { + this.additionalFieldsFromBackend.forEach(field => { + if (field.formCode === this.formcode) { + if (!this.entryForm.contains(field.extValue)) { + // Add the control only if it doesn't exist in the form + this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue)); + } + } + }); + } + }); + console.log(this.entryForm.value); + // form code end + + + + + + + + + + + + + + } + + + + + + + + + + +// one to many start + initLinesForm() { return this._fb.group({ + + + + full_name: [null], + + + + agent: [null], + + + + phone_number: [null], + + + + supplier_acknowledged: [null], + + + + application_code: [null], + + + + email_id: [null], + + + + supplier: [null], + + + + status: [null], + + + + entry_date: [null], + + + +}); } +get controls() {return (this.entryForm.get("deleted_child") as FormArray).controls; } +onAddLines() { +(this.entryForm.get("deleted_child")).push(this.initLinesForm()); } +onRemoveLines(index: number) { +(this.entryForm.get("deleted_child")).removeAt(index); } + oneditLines() { this.components.push({ + + +full_name: "", + + + +agent: "", + + + +phone_number: "", + + + +supplier_acknowledged: "", + + + +application_code: "", + + + +email_id: "", + + + +supplier: "", + + + +status: "", + + + +entry_date: "", + + + + }); } + deleteRow(index) { + this.components.splice(index, 1); + } + components; + // one to many end + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + + + + + + + +this.components = row.deleted_child; + + + 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Deleted/Deleted.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Deleted/Deleted.service.ts new file mode 100644 index 0000000..d23f45b --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Deleted/Deleted.service.ts @@ -0,0 +1,45 @@ +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 Deletedservice{ + private baseURL = "Deleted/Deleted" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Deleted/Deleted_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Deleted/Deleted_cardvariable.ts new file mode 100644 index 0000000..8c7a2a4 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Deleted/Deleted_cardvariable.ts @@ -0,0 +1,4 @@ +export const Deletedcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Emails/Emails.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Emails/Emails.component.html new file mode 100644 index 0000000..11888cd --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Emails/Emails.component.html @@ -0,0 +1,343 @@ + +
+
+
+

Emails

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + code + + + + subject + + + + + + Action + + + + + +{{user. code }} + + +{{user. subject }} + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Emails/Emails.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Emails/Emails.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Emails/Emails.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Emails/Emails.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Emails/Emails.component.ts new file mode 100644 index 0000000..29ecc14 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Emails/Emails.component.ts @@ -0,0 +1,244 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Emailsservice} from './Emails.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 { Emailscardvariable } from './Emails_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Emails', + templateUrl: './Emails.component.html', + styleUrls: ['./Emails.component.scss'] +}) +export class EmailsComponent implements OnInit { + cardButton = Emailscardvariable.cardButton; + cardmodeldata = Emailscardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Emailscardvariable.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 = 'Emails_formCode' +tableName = 'Emails'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Emailsservice, + 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({ +code : [null], + +subject : [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 === "Emails_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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Emails/Emails.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Emails/Emails.service.ts new file mode 100644 index 0000000..757e883 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Emails/Emails.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 Emailsservice{ + private baseURL = "Emails/Emails" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Emails/Emails_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Emails/Emails_cardvariable.ts new file mode 100644 index 0000000..b3f44f1 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Emails/Emails_cardvariable.ts @@ -0,0 +1,4 @@ +export const Emailscardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Groupss/Groupss.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Groupss/Groupss.component.html new file mode 100644 index 0000000..88d0b51 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Groupss/Groupss.component.html @@ -0,0 +1,437 @@ + +
+
+
+

Groupss

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + + + name + + + + + staff + + + + + supplier + + + + + agent + + + + + admin + + + + + + + + + Action + + + + + + + +{{user. name}} + + + +{{user. staff}} + + + +{{user. supplier}} + + + +{{user. agent}} + + + +{{user. admin}} + + + + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Groupss/Groupss.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Groupss/Groupss.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Groupss/Groupss.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Groupss/Groupss.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Groupss/Groupss.component.ts new file mode 100644 index 0000000..a14cde1 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Groupss/Groupss.component.ts @@ -0,0 +1,240 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Groupssservice} from './Groupss.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 { Groupsscardvariable } from './Groupss_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Groupss', + templateUrl: './Groupss.component.html', + styleUrls: ['./Groupss.component.scss'] +}) +export class GroupssComponent implements OnInit { + cardButton = Groupsscardvariable.cardButton; + cardmodeldata = Groupsscardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Groupsscardvariable.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 = 'Groupss_formCode' +tableName = 'Groupss'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Groupssservice, + private alertService: AlertService, + private toastr: ToastrService, + private _fb: FormBuilder, + ) { } +// component button + ngOnInit(): void { + if(this.cardmodeldata !== ''){ + this.cardmodal = JSON.parse(this.cardmodeldata); + this.dashboardArray = this.cardmodal.dashboard.slice(); + console.log(this.dashboardArray) + } + this.userrole=this.userInfoService.getRoles(); + this.getData(); + this.entryForm = this._fb.group({ + + +name:[false], + + + +staff:[false], + + + +supplier:[false], + + + +agent:[false], + + + +admin:[false], + + + + + + + }); // 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 === "Groupss_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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Groupss/Groupss.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Groupss/Groupss.service.ts new file mode 100644 index 0000000..d782dc4 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Groupss/Groupss.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 Groupssservice{ + private baseURL = "Groupss/Groupss" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Groupss/Groupss_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Groupss/Groupss_cardvariable.ts new file mode 100644 index 0000000..50d5bf5 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Groupss/Groupss_cardvariable.ts @@ -0,0 +1,4 @@ +export const Groupsscardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Media/Media.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Media/Media.component.html new file mode 100644 index 0000000..651064b --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Media/Media.component.html @@ -0,0 +1,314 @@ + +
+
+
+

Media

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + media + + + + + + Action + + + + + +{{user. media }} + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Media/Media.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Media/Media.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Media/Media.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Media/Media.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Media/Media.component.ts new file mode 100644 index 0000000..3970b1c --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Media/Media.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 { Mediaservice} from './Media.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 { Mediacardvariable } from './Media_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Media', + templateUrl: './Media.component.html', + styleUrls: ['./Media.component.scss'] +}) +export class MediaComponent implements OnInit { + cardButton = Mediacardvariable.cardButton; + cardmodeldata = Mediacardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Mediacardvariable.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 = 'Media_formCode' +tableName = 'Media'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Mediaservice, + 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({ +media : [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 === "Media_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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Media/Media.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Media/Media.service.ts new file mode 100644 index 0000000..73eb8a5 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Media/Media.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 Mediaservice{ + private baseURL = "Media/Media" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Media/Media_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Media/Media_cardvariable.ts new file mode 100644 index 0000000..c879ed8 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Media/Media_cardvariable.ts @@ -0,0 +1,4 @@ +export const Mediacardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Nationality/Nationality.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Nationality/Nationality.component.html new file mode 100644 index 0000000..0ccf578 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Nationality/Nationality.component.html @@ -0,0 +1,404 @@ + +
+
+
+

Nationality

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Nationality + + + + Visa status + + + + + + Action + + + + + +{{user. nationality }} + + +{{user. visa_status }} + + + + + + + +
Who Column
+
Account ID: {{user.accountId}}
+
Created At: {{user.createdAt| date}}
+
Created By: {{user.createdBy}}
+
Updated At: {{user.updatedAt | date}}
+
Updated By: {{user.updatedBy}}
+
+
+
+ + + + + + + +
+ + + Users per page + {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}} + of {{pagination.totalItems}} users + + +
+ + + +
+
+
+
+
+
+ +
+
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ] }} + {{afterText(item.fieldtext)}} +
+ +
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ] | date}} + {{afterText(item.fieldtext)}} +
+
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ]}} + {{afterText(item.fieldtext)}} +
+ +
+
+
+ + +
+ +
+ +
File Preview
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Nationality/Nationality.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Nationality/Nationality.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Nationality/Nationality.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Nationality/Nationality.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Nationality/Nationality.component.ts new file mode 100644 index 0000000..b69ee02 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Nationality/Nationality.component.ts @@ -0,0 +1,244 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Nationalityservice} from './Nationality.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 { Nationalitycardvariable } from './Nationality_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Nationality', + templateUrl: './Nationality.component.html', + styleUrls: ['./Nationality.component.scss'] +}) +export class NationalityComponent implements OnInit { + cardButton = Nationalitycardvariable.cardButton; + cardmodeldata = Nationalitycardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Nationalitycardvariable.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 = 'Nationality_formCode' +tableName = 'Nationality'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Nationalityservice, + 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({ +nationality : [null], + +visa_status : [null], + + + + + + + }); // component_button200 + // form code start + this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { + console.log(data); + const jsonArray = data.map((str) => JSON.parse(str)); + this.additionalFieldsFromBackend = jsonArray; + this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Nationality_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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Nationality/Nationality.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Nationality/Nationality.service.ts new file mode 100644 index 0000000..2da3643 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Nationality/Nationality.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 Nationalityservice{ + private baseURL = "Nationality/Nationality" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Nationality/Nationality_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Nationality/Nationality_cardvariable.ts new file mode 100644 index 0000000..43acac2 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Nationality/Nationality_cardvariable.ts @@ -0,0 +1,4 @@ +export const Nationalitycardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Notification/Notification.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Notification/Notification.component.html new file mode 100644 index 0000000..3cc3da5 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Notification/Notification.component.html @@ -0,0 +1,343 @@ + +
+
+
+

Notification

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Code + + + + notification + + + + + + Action + + + + + +{{user. code }} + + +{{user. notification }} + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Notification/Notification.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Notification/Notification.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Notification/Notification.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Notification/Notification.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Notification/Notification.component.ts new file mode 100644 index 0000000..7d713f5 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Notification/Notification.component.ts @@ -0,0 +1,244 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Notificationservice} from './Notification.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 { Notificationcardvariable } from './Notification_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Notification', + templateUrl: './Notification.component.html', + styleUrls: ['./Notification.component.scss'] +}) +export class NotificationComponent implements OnInit { + cardButton = Notificationcardvariable.cardButton; + cardmodeldata = Notificationcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Notificationcardvariable.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 = 'Notification_formCode' +tableName = 'Notification'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Notificationservice, + 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({ +code : [null], + +notification : [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 === "Notification_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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Notification/Notification.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Notification/Notification.service.ts new file mode 100644 index 0000000..cfe2a0a --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Notification/Notification.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 Notificationservice{ + private baseURL = "Notification/Notification" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Notification/Notification_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Notification/Notification_cardvariable.ts new file mode 100644 index 0000000..4798f99 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Notification/Notification_cardvariable.ts @@ -0,0 +1,4 @@ +export const Notificationcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Paget/Paget.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Paget/Paget.component.html new file mode 100644 index 0000000..c58cc59 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Paget/Paget.component.html @@ -0,0 +1,314 @@ + +
+
+
+

Paget

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + All pages link + + + + + + Action + + + + + +{{user. all_pages_link }} + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Paget/Paget.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Paget/Paget.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Paget/Paget.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Paget/Paget.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Paget/Paget.component.ts new file mode 100644 index 0000000..d39948e --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Paget/Paget.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 { Pagetservice} from './Paget.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 { Pagetcardvariable } from './Paget_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Paget', + templateUrl: './Paget.component.html', + styleUrls: ['./Paget.component.scss'] +}) +export class PagetComponent implements OnInit { + cardButton = Pagetcardvariable.cardButton; + cardmodeldata = Pagetcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Pagetcardvariable.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 = 'Paget_formCode' +tableName = 'Paget'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Pagetservice, + 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({ +all_pages_link : [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 === "Paget_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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Paget/Paget.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Paget/Paget.service.ts new file mode 100644 index 0000000..6f51ae0 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Paget/Paget.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 Pagetservice{ + private baseURL = "Paget/Paget" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Paget/Paget_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Paget/Paget_cardvariable.ts new file mode 100644 index 0000000..1a4debb --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Paget/Paget_cardvariable.ts @@ -0,0 +1,4 @@ +export const Pagetcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_agent/Pending_agent.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_agent/Pending_agent.component.html new file mode 100644 index 0000000..5b2be24 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_agent/Pending_agent.component.html @@ -0,0 +1,779 @@ + +
+
+
+

Pending_agent

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Full name + + + + Application code + + + + Nationality + + + + passport number + + + + filter btn + + + + reset btn + + + + + + + + Action + + + + + +{{user. full_name }} + + +{{user. application_code }} + + +{{user. nationality }} + + +{{user. passport_number }} + + +{{user. filter_btn }} + + +{{user. reset_btn }} + + + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_agent/Pending_agent.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_agent/Pending_agent.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_agent/Pending_agent.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_agent/Pending_agent.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_agent/Pending_agent.component.ts new file mode 100644 index 0000000..924edcf --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_agent/Pending_agent.component.ts @@ -0,0 +1,479 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Pending_agentservice} from './Pending_agent.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 { Pending_agentcardvariable } from './Pending_agent_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Pending_agent', + templateUrl: './Pending_agent.component.html', + styleUrls: ['./Pending_agent.component.scss'] +}) +export class Pending_agentComponent implements OnInit { + cardButton = Pending_agentcardvariable.cardButton; + cardmodeldata = Pending_agentcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Pending_agentcardvariable.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 = 'Pending_agent_formCode' +tableName = 'Pending_agent'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Pending_agentservice, + 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({ +full_name : [null], + +application_code : [null], + +nationality : [null], + +passport_number : [null,[Validators.required]], + +filter_btn : [null], + +reset_btn : [null], + +pending_agent_child: this._fb.array([this.initLinesForm()]), + + + + + + + + + + + + + + + + + }); // component_button200 + // form code start + this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { + console.log(data); + const jsonArray = data.map((str) => JSON.parse(str)); + this.additionalFieldsFromBackend = jsonArray; + this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Pending_agent_formCode"); + console.log(this.checkFormCode); + console.log(this.additionalFieldsFromBackend); + if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) { + this.additionalFieldsFromBackend.forEach(field => { + if (field.formCode === this.formcode) { + if (!this.entryForm.contains(field.extValue)) { + // Add the control only if it doesn't exist in the form + this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue)); + } + } + }); + } + }); + console.log(this.entryForm.value); + // form code end + + + + + + + + + + + + + + + + } + + + + + + + + + + + + +// one to many start + initLinesForm() { return this._fb.group({ + + + + agent: [null], + + + + full_name: [null], + + + + supplier_acknowledged: [null], + + + + phone_number: [null], + + + + note: [null], + + + + nationality: [null], + + + + email_id: [null], + + + + visa: [null], + + + + supplier: [null], + + + + application_code: [null], + + + + action: [null], + + + + entry_date: [null], + + + +}); } +get controls() {return (this.entryForm.get("pending_agent_child") as FormArray).controls; } +onAddLines() { +(this.entryForm.get("pending_agent_child")).push(this.initLinesForm()); } +onRemoveLines(index: number) { +(this.entryForm.get("pending_agent_child")).removeAt(index); } + oneditLines() { this.components.push({ + + +agent: "", + + + +full_name: "", + + + +supplier_acknowledged: "", + + + +phone_number: "", + + + +note: "", + + + +nationality: "", + + + +email_id: "", + + + +visa: "", + + + +supplier: "", + + + +application_code: "", + + + +action: "", + + + +entry_date: "", + + + + }); } + deleteRow(index) { + this.components.splice(index, 1); + } + components; + // one to many end + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + + + + + + + + + +this.components = row.pending_agent_child; + + + 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_agent/Pending_agent.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_agent/Pending_agent.service.ts new file mode 100644 index 0000000..0773036 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_agent/Pending_agent.service.ts @@ -0,0 +1,47 @@ +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 Pending_agentservice{ + private baseURL = "Pending_agent/Pending_agent" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_agent/Pending_agent_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_agent/Pending_agent_cardvariable.ts new file mode 100644 index 0000000..cfd2eae --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_agent/Pending_agent_cardvariable.ts @@ -0,0 +1,4 @@ +export const Pending_agentcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_agent_child/Pending_agent_child.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_agent_child/Pending_agent_child.component.html new file mode 100644 index 0000000..ebe2c73 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_agent_child/Pending_agent_child.component.html @@ -0,0 +1,669 @@ + +
+
+
+

Pending_agent_child

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Agent + + + + Full name + + + + Supplier acknowledged + + + + entry date + + + + application code + + + + Email id + + + + Phone number + + + + supplier + + + + nationality + + + + note + + + + visa + + + + action + + + + + + Action + + + + + +{{user. agent }} + + +{{user. full_name }} + + +{{user. supplier_acknowledged }} + + +{{user. entry_date }} + + +{{user. application_code }} + + +{{user. email_id }} + + +{{user. phone_number }} + + +{{user. supplier }} + + +{{user. nationality }} + + +{{user. note }} + + +{{user. visa }} + + +{{user. action }} + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_agent_child/Pending_agent_child.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_agent_child/Pending_agent_child.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_agent_child/Pending_agent_child.component.scss @@ -0,0 +1,78 @@ +//@import "../../../../assets/scss/var"; +.s-info-bar { + display: flex; + flex-direction: row; + justify-content: space-between; + button { + outline: none; + } +} +.delete,.heading{ + text-align: center; + color: red; +} +.entry-pg { + width: 750px; +} + +.button1::after { + content: none; +} +.button1:hover::after { + content: "ADD ROWS"; +} + +.section { + background-color: #dddddd; + height: 40px; +} + +.section p { + //color: white; + padding: 10px; + font-size: 18px; +} + +.clr-input { + color: #212529; + border: 1px solid #ced4da; + border-radius: 0.25rem; + padding: 0.75rem 0.75rem; + margin-top: 3px; + width: 100%; + margin-bottom: 10px; +} + +.clr-file { + color: #212529; + border: 1px solid #ced4da; + border-radius: 0.25rem; + //padding: 0.6rem 0.75rem; + margin-top: 3px; + width: 100%; + margin-bottom: 10px; +} + +.center { + text-align: center; +} +select{ + width: 100%; + margin-top: 3px; + padding: 5px 5px; + border: 1px solid #ccc; + border-radius: 4px; +} +input[type=text],[type=date],[type=number],textarea { + width: 100%; + padding: 15px 15px; + background-color:rgb(255, 255, 255); + // margin: 8px 0; + display: inline-block; + border: 1px solid #ccc; + border-radius: 4px; + box-sizing: border-box; +} +.error_mess { + color: red; +} diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_agent_child/Pending_agent_child.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_agent_child/Pending_agent_child.component.ts new file mode 100644 index 0000000..18783dd --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_agent_child/Pending_agent_child.component.ts @@ -0,0 +1,489 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Pending_agent_childservice} from './Pending_agent_child.service'; +import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms'; +import { ExtensionService } from 'src/app/services/fnd/extension.service'; +import { DashboardContentModel2 } from 'src/app/models/builder/dashboard'; +import { Pending_agent_childcardvariable } from './Pending_agent_child_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Pending_agent_child', + templateUrl: './Pending_agent_child.component.html', + styleUrls: ['./Pending_agent_child.component.scss'] +}) +export class Pending_agent_childComponent implements OnInit { + cardButton = Pending_agent_childcardvariable.cardButton; + cardmodeldata = Pending_agent_childcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Pending_agent_childcardvariable.cardButton; + cardmodal; changeView(){ + this.isCardview = !this.isCardview; + } + beforeText(fieldtext: string): string { // Extract the text before the first '<' + const index = fieldtext.indexOf('<'); + return index !== -1 ? fieldtext.substring(0, index) : fieldtext; + } + afterText(fieldtext: string): string { // Extract the text after the last '>' + const index = fieldtext.lastIndexOf('>'); + return index !== -1 ? fieldtext.substring(index + 1) : ''; + } + transform(fieldtext: string): string { + const match = fieldtext.match(/<([^>]*)>/); + return match ? match[1] : ''; // Extract the text between '<' and '>' + } + userrole; + rowSelected :any= {}; + modaldelete=false; + modalEdit=false; + modalAdd= false; + public entryForm: FormGroup; + loading = false; + product; + modalOpenedforNewLine = false; + newLine:any; + additionalFieldsFromBackend: any[] = []; + formcode = 'Pending_agent_child_formCode' +tableName = 'Pending_agent_child'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Pending_agent_childservice, + private alertService: AlertService, + private toastr: ToastrService, + private _fb: FormBuilder, + ) { } +// component button + ngOnInit(): void { + if(this.cardmodeldata !== ''){ + this.cardmodal = JSON.parse(this.cardmodeldata); + this.dashboardArray = this.cardmodal.dashboard.slice(); + console.log(this.dashboardArray) + } + this.userrole=this.userInfoService.getRoles(); + this.getData(); + this.entryForm = this._fb.group({ +agent : [null], + +full_name : [null], + +supplier_acknowledged : [null], + +entry_date : [null], + +application_code : [null], + +email_id : [null], + +phone_number: ['+91'], + +supplier : [null], + +nationality : [null], + +note : [null], + +visa : [null], + +action : [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 === "Pending_agent_child_formCode"); + console.log(this.checkFormCode); + console.log(this.additionalFieldsFromBackend); + if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) { + this.additionalFieldsFromBackend.forEach(field => { + if (field.formCode === this.formcode) { + if (!this.entryForm.contains(field.extValue)) { + // Add the control only if it doesn't exist in the form + this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue)); + } + } + }); + } + }); + console.log(this.entryForm.value); + // form code end + + + + + + + + + + + + + + + + + + + + + + + + + + } + + + + + + + + + + + + + + + + + + + + + + + + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + + + + + + + + + + + + + + + + + + + + + + + this.modalEdit = true; + } + onDelete(row) { + this.rowSelected = row; + this.modaldelete=true; + } + delete(id) + { + this.modaldelete = false; + console.log("in delete "+id); + this.mainService.delete(id).subscribe( + (data) => { + console.log(data); + this.ngOnInit(); + if (data) { this.toastr.success('Deleted successfully'); } + }); + } + onUpdate(id) { + this.modalEdit = false; + + + + + + + + + + + + + + + + + + + + + + + + + //console.log("in update"); + console.log("id " + id); + console.log(this.rowSelected); + //console.log("out update"); + this.mainService.update(id, this.rowSelected).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Update Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + + + + + + + + + + + + + + + + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("update Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Updated"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Updated"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } +onCreate() { + this.modalAdd=false; + + + + + + + + + + + + + + + + + + + + + + + + + this.mainService.create(this.entryForm.value).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Added Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + + + + + + + + + + + + + + + + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("Added Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Added"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Added"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } + goToAdd(row) { +this.modalAdd = true; this.submitted = false; + + + + + + + + + + + + + + + + + + + + + + + + + } + submitted = false; +onSubmit() { + console.log(this.entryForm.value); + this.submitted = true; + if (this.entryForm.invalid) { + return; + }this.onCreate(); + +} + + + + + + + + + + +isValidemail_id(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); +} + + + + + + + + + + + +// updateaction +} + + + + + + + + + + + + + + + + + + + + + + + diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_agent_child/Pending_agent_child.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_agent_child/Pending_agent_child.service.ts new file mode 100644 index 0000000..6cb698b --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_agent_child/Pending_agent_child.service.ts @@ -0,0 +1,57 @@ +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 Pending_agent_childservice{ + private baseURL = "Pending_agent_child/Pending_agent_child" ; constructor( + private http: HttpClient, + private apiRequest: ApiRequestService, + ) { } + getAll(page?: number, size?: number): Observable { + return this.apiRequest.get(this.baseURL); + } + getById(id: number): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.get(_http); + } + create(data: any): Observable { + return this.apiRequest.post(this.baseURL, data); + } + update(id: number, data: any): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.put(_http, data); + } + delete(id: number): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.delete(_http); + } + + + + + + + + + + + + + + + + + + + + + + + + +// updateaction +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_agent_child/Pending_agent_child_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_agent_child/Pending_agent_child_cardvariable.ts new file mode 100644 index 0000000..4a2f253 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_agent_child/Pending_agent_child_cardvariable.ts @@ -0,0 +1,4 @@ +export const Pending_agent_childcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_customer/Pending_customer.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_customer/Pending_customer.component.html new file mode 100644 index 0000000..b8a4acc --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_customer/Pending_customer.component.html @@ -0,0 +1,788 @@ + +
+
+
+

Pending_customer

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + full Name + + + + Application code + + + + nationality + + + + passport number + + + + filter btn + + + + reset btn + + + + + + + + Action + + + + + +{{user. full_name }} + + +{{user. application_code }} + + +{{user. nationality }} + + +{{user. passport_number }} + + +{{user. filter_btn }} + + +{{user. reset_btn }} + + + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_customer/Pending_customer.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_customer/Pending_customer.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_customer/Pending_customer.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_customer/Pending_customer.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_customer/Pending_customer.component.ts new file mode 100644 index 0000000..9c61077 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_customer/Pending_customer.component.ts @@ -0,0 +1,479 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Pending_customerservice} from './Pending_customer.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 { Pending_customercardvariable } from './Pending_customer_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Pending_customer', + templateUrl: './Pending_customer.component.html', + styleUrls: ['./Pending_customer.component.scss'] +}) +export class Pending_customerComponent implements OnInit { + cardButton = Pending_customercardvariable.cardButton; + cardmodeldata = Pending_customercardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Pending_customercardvariable.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 = 'Pending_customer_formCode' +tableName = 'Pending_customer'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Pending_customerservice, + 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({ +full_name : [null], + +application_code : [null], + +nationality : [null], + +passport_number : [null,[Validators.required]], + +filter_btn : [null], + +reset_btn : [null], + +pending_customer_child: this._fb.array([this.initLinesForm()]), + + + + + + + + + + + + + + + + + }); // component_button200 + // form code start + this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { + console.log(data); + const jsonArray = data.map((str) => JSON.parse(str)); + this.additionalFieldsFromBackend = jsonArray; + this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Pending_customer_formCode"); + console.log(this.checkFormCode); + console.log(this.additionalFieldsFromBackend); + if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) { + this.additionalFieldsFromBackend.forEach(field => { + if (field.formCode === this.formcode) { + if (!this.entryForm.contains(field.extValue)) { + // Add the control only if it doesn't exist in the form + this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue)); + } + } + }); + } + }); + console.log(this.entryForm.value); + // form code end + + + + + + + + + + + + + + + + } + + + + + + + + + + + + +// one to many start + initLinesForm() { return this._fb.group({ + + + + phone_number: [null], + + + + note: [null], + + + + supplier_acknowledged: [null], + + + + full_name: [null], + + + + application_code: [null], + + + + coupon: [null], + + + + email_id: [null], + + + + visa: [null], + + + + supplier: [null], + + + + nationality: [null], + + + + status: [null], + + + + entry_date: [null], + + + +}); } +get controls() {return (this.entryForm.get("pending_customer_child") as FormArray).controls; } +onAddLines() { +(this.entryForm.get("pending_customer_child")).push(this.initLinesForm()); } +onRemoveLines(index: number) { +(this.entryForm.get("pending_customer_child")).removeAt(index); } + oneditLines() { this.components.push({ + + +phone_number: "", + + + +note: "", + + + +supplier_acknowledged: "", + + + +full_name: "", + + + +application_code: "", + + + +coupon: "", + + + +email_id: "", + + + +visa: "", + + + +supplier: "", + + + +nationality: "", + + + +status: "", + + + +entry_date: "", + + + + }); } + deleteRow(index) { + this.components.splice(index, 1); + } + components; + // one to many end + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + + + + + + + + + +this.components = row.pending_customer_child; + + + 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_customer/Pending_customer.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_customer/Pending_customer.service.ts new file mode 100644 index 0000000..39e0060 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_customer/Pending_customer.service.ts @@ -0,0 +1,47 @@ +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 Pending_customerservice{ + private baseURL = "Pending_customer/Pending_customer" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_customer/Pending_customer_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_customer/Pending_customer_cardvariable.ts new file mode 100644 index 0000000..20788a2 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_customer/Pending_customer_cardvariable.ts @@ -0,0 +1,4 @@ +export const Pending_customercardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_customer_child/Pending_customer_child.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_customer_child/Pending_customer_child.component.html new file mode 100644 index 0000000..48105e1 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_customer_child/Pending_customer_child.component.html @@ -0,0 +1,693 @@ + +
+
+
+

Pending_customer_child

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + full name + + + + supplier acknowledged + + + + status + + + + entry date + + + + Application code + + + + Email id + + + + Phone number + + + + Supplier + + + + Nationality + + + + note + + + + visa + + + + coupon + + + + + + Action + + + + + +{{user. full_name }} + + +{{user. supplier_acknowledged }} + + +{{user. status }} + + +{{user. entry_date }} + + +{{user. application_code }} + + +{{user. email_id }} + + +{{user. phone_number }} + + +{{user. supplier }} + + +{{user. nationality }} + + +{{user. note }} + + +{{user. visa }} + + +{{user. coupon }} + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_customer_child/Pending_customer_child.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_customer_child/Pending_customer_child.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_customer_child/Pending_customer_child.component.scss @@ -0,0 +1,78 @@ +//@import "../../../../assets/scss/var"; +.s-info-bar { + display: flex; + flex-direction: row; + justify-content: space-between; + button { + outline: none; + } +} +.delete,.heading{ + text-align: center; + color: red; +} +.entry-pg { + width: 750px; +} + +.button1::after { + content: none; +} +.button1:hover::after { + content: "ADD ROWS"; +} + +.section { + background-color: #dddddd; + height: 40px; +} + +.section p { + //color: white; + padding: 10px; + font-size: 18px; +} + +.clr-input { + color: #212529; + border: 1px solid #ced4da; + border-radius: 0.25rem; + padding: 0.75rem 0.75rem; + margin-top: 3px; + width: 100%; + margin-bottom: 10px; +} + +.clr-file { + color: #212529; + border: 1px solid #ced4da; + border-radius: 0.25rem; + //padding: 0.6rem 0.75rem; + margin-top: 3px; + width: 100%; + margin-bottom: 10px; +} + +.center { + text-align: center; +} +select{ + width: 100%; + margin-top: 3px; + padding: 5px 5px; + border: 1px solid #ccc; + border-radius: 4px; +} +input[type=text],[type=date],[type=number],textarea { + width: 100%; + padding: 15px 15px; + background-color:rgb(255, 255, 255); + // margin: 8px 0; + display: inline-block; + border: 1px solid #ccc; + border-radius: 4px; + box-sizing: border-box; +} +.error_mess { + color: red; +} diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_customer_child/Pending_customer_child.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_customer_child/Pending_customer_child.component.ts new file mode 100644 index 0000000..9700a1b --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_customer_child/Pending_customer_child.component.ts @@ -0,0 +1,489 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Pending_customer_childservice} from './Pending_customer_child.service'; +import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms'; +import { ExtensionService } from 'src/app/services/fnd/extension.service'; +import { DashboardContentModel2 } from 'src/app/models/builder/dashboard'; +import { Pending_customer_childcardvariable } from './Pending_customer_child_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Pending_customer_child', + templateUrl: './Pending_customer_child.component.html', + styleUrls: ['./Pending_customer_child.component.scss'] +}) +export class Pending_customer_childComponent implements OnInit { + cardButton = Pending_customer_childcardvariable.cardButton; + cardmodeldata = Pending_customer_childcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Pending_customer_childcardvariable.cardButton; + cardmodal; changeView(){ + this.isCardview = !this.isCardview; + } + beforeText(fieldtext: string): string { // Extract the text before the first '<' + const index = fieldtext.indexOf('<'); + return index !== -1 ? fieldtext.substring(0, index) : fieldtext; + } + afterText(fieldtext: string): string { // Extract the text after the last '>' + const index = fieldtext.lastIndexOf('>'); + return index !== -1 ? fieldtext.substring(index + 1) : ''; + } + transform(fieldtext: string): string { + const match = fieldtext.match(/<([^>]*)>/); + return match ? match[1] : ''; // Extract the text between '<' and '>' + } + userrole; + rowSelected :any= {}; + modaldelete=false; + modalEdit=false; + modalAdd= false; + public entryForm: FormGroup; + loading = false; + product; + modalOpenedforNewLine = false; + newLine:any; + additionalFieldsFromBackend: any[] = []; + formcode = 'Pending_customer_child_formCode' +tableName = 'Pending_customer_child'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Pending_customer_childservice, + private alertService: AlertService, + private toastr: ToastrService, + private _fb: FormBuilder, + ) { } +// component button + ngOnInit(): void { + if(this.cardmodeldata !== ''){ + this.cardmodal = JSON.parse(this.cardmodeldata); + this.dashboardArray = this.cardmodal.dashboard.slice(); + console.log(this.dashboardArray) + } + this.userrole=this.userInfoService.getRoles(); + this.getData(); + this.entryForm = this._fb.group({ +full_name : [null], + +supplier_acknowledged : [false], + +status : [null], + +entry_date : [null], + +application_code : [null], + +email_id : [null], + +phone_number: ['+91'], + +supplier : [null], + +nationality : [null], + +note : [null], + +visa : [null], + +coupon : [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 === "Pending_customer_child_formCode"); + console.log(this.checkFormCode); + console.log(this.additionalFieldsFromBackend); + if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) { + this.additionalFieldsFromBackend.forEach(field => { + if (field.formCode === this.formcode) { + if (!this.entryForm.contains(field.extValue)) { + // Add the control only if it doesn't exist in the form + this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue)); + } + } + }); + } + }); + console.log(this.entryForm.value); + // form code end + + + + + + + + + + + + + + + + + + + + + + + + + + } + + + + + + + + + + + + + + + + + + + + + + + + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + + + + + + + + + + + + + + + + + + + + + + + this.modalEdit = true; + } + onDelete(row) { + this.rowSelected = row; + this.modaldelete=true; + } + delete(id) + { + this.modaldelete = false; + console.log("in delete "+id); + this.mainService.delete(id).subscribe( + (data) => { + console.log(data); + this.ngOnInit(); + if (data) { this.toastr.success('Deleted successfully'); } + }); + } + onUpdate(id) { + this.modalEdit = false; + + + + + + + + + + + + + + + + + + + + + + + + + //console.log("in update"); + console.log("id " + id); + console.log(this.rowSelected); + //console.log("out update"); + this.mainService.update(id, this.rowSelected).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Update Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + + + + + + + + + + + + + + + + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("update Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Updated"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Updated"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } +onCreate() { + this.modalAdd=false; + + + + + + + + + + + + + + + + + + + + + + + + + this.mainService.create(this.entryForm.value).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Added Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + + + + + + + + + + + + + + + + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("Added Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Added"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Added"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } + goToAdd(row) { +this.modalAdd = true; this.submitted = false; + + + + + + + + + + + + + + + + + + + + + + + + + } + submitted = false; +onSubmit() { + console.log(this.entryForm.value); + this.submitted = true; + if (this.entryForm.invalid) { + return; + }this.onCreate(); + +} + + + + + + + + + + +isValidemail_id(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); +} + + + + + + + + + + + +// updateaction +} + + + + + + + + + + + + + + + + + + + + + + + diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_customer_child/Pending_customer_child.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_customer_child/Pending_customer_child.service.ts new file mode 100644 index 0000000..1e7be5c --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_customer_child/Pending_customer_child.service.ts @@ -0,0 +1,57 @@ +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 Pending_customer_childservice{ + private baseURL = "Pending_customer_child/Pending_customer_child" ; constructor( + private http: HttpClient, + private apiRequest: ApiRequestService, + ) { } + getAll(page?: number, size?: number): Observable { + return this.apiRequest.get(this.baseURL); + } + getById(id: number): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.get(_http); + } + create(data: any): Observable { + return this.apiRequest.post(this.baseURL, data); + } + update(id: number, data: any): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.put(_http, data); + } + delete(id: number): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.delete(_http); + } + + + + + + + + + + + + + + + + + + + + + + + + +// updateaction +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_customer_child/Pending_customer_child_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_customer_child/Pending_customer_child_cardvariable.ts new file mode 100644 index 0000000..30c379e --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Pending_customer_child/Pending_customer_child_cardvariable.ts @@ -0,0 +1,4 @@ +export const Pending_customer_childcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_agent/Processing_agent.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_agent/Processing_agent.component.html new file mode 100644 index 0000000..b14899a --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_agent/Processing_agent.component.html @@ -0,0 +1,779 @@ + +
+
+
+

Processing_agent

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + full name + + + + Application code + + + + Nationality + + + + passport number + + + + filter btn + + + + reset btn + + + + + + + + Action + + + + + +{{user. full_name }} + + +{{user. application_code }} + + +{{user. nationality }} + + +{{user. passport_number }} + + +{{user. filter_btn }} + + +{{user. reset_btn }} + + + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_agent/Processing_agent.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_agent/Processing_agent.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_agent/Processing_agent.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_agent/Processing_agent.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_agent/Processing_agent.component.ts new file mode 100644 index 0000000..52a8088 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_agent/Processing_agent.component.ts @@ -0,0 +1,479 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Processing_agentservice} from './Processing_agent.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 { Processing_agentcardvariable } from './Processing_agent_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Processing_agent', + templateUrl: './Processing_agent.component.html', + styleUrls: ['./Processing_agent.component.scss'] +}) +export class Processing_agentComponent implements OnInit { + cardButton = Processing_agentcardvariable.cardButton; + cardmodeldata = Processing_agentcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Processing_agentcardvariable.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 = 'Processing_agent_formCode' +tableName = 'Processing_agent'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Processing_agentservice, + 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({ +full_name : [null], + +application_code : [null], + +nationality : [null], + +passport_number : [null,[Validators.required]], + +filter_btn : [null], + +reset_btn : [null], + +pending_agent_child: this._fb.array([this.initLinesForm()]), + + + + + + + + + + + + + + + + + }); // component_button200 + // form code start + this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { + console.log(data); + const jsonArray = data.map((str) => JSON.parse(str)); + this.additionalFieldsFromBackend = jsonArray; + this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Processing_agent_formCode"); + console.log(this.checkFormCode); + console.log(this.additionalFieldsFromBackend); + if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) { + this.additionalFieldsFromBackend.forEach(field => { + if (field.formCode === this.formcode) { + if (!this.entryForm.contains(field.extValue)) { + // Add the control only if it doesn't exist in the form + this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue)); + } + } + }); + } + }); + console.log(this.entryForm.value); + // form code end + + + + + + + + + + + + + + + + } + + + + + + + + + + + + +// one to many start + initLinesForm() { return this._fb.group({ + + + + agent: [null], + + + + full_name: [null], + + + + supplier_acknowledged: [null], + + + + phone_number: [null], + + + + note: [null], + + + + nationality: [null], + + + + email_id: [null], + + + + visa: [null], + + + + supplier: [null], + + + + application_code: [null], + + + + action: [null], + + + + entry_date: [null], + + + +}); } +get controls() {return (this.entryForm.get("pending_agent_child") as FormArray).controls; } +onAddLines() { +(this.entryForm.get("pending_agent_child")).push(this.initLinesForm()); } +onRemoveLines(index: number) { +(this.entryForm.get("pending_agent_child")).removeAt(index); } + oneditLines() { this.components.push({ + + +agent: "", + + + +full_name: "", + + + +supplier_acknowledged: "", + + + +phone_number: "", + + + +note: "", + + + +nationality: "", + + + +email_id: "", + + + +visa: "", + + + +supplier: "", + + + +application_code: "", + + + +action: "", + + + +entry_date: "", + + + + }); } + deleteRow(index) { + this.components.splice(index, 1); + } + components; + // one to many end + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + + + + + + + + + +this.components = row.pending_agent_child; + + + 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_agent/Processing_agent.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_agent/Processing_agent.service.ts new file mode 100644 index 0000000..0c324c2 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_agent/Processing_agent.service.ts @@ -0,0 +1,47 @@ +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 Processing_agentservice{ + private baseURL = "Processing_agent/Processing_agent" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_agent/Processing_agent_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_agent/Processing_agent_cardvariable.ts new file mode 100644 index 0000000..8e4cc87 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_agent/Processing_agent_cardvariable.ts @@ -0,0 +1,4 @@ +export const Processing_agentcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_agent_child/Processing_agent_child.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_agent_child/Processing_agent_child.component.html new file mode 100644 index 0000000..c579794 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_agent_child/Processing_agent_child.component.html @@ -0,0 +1,702 @@ + +
+
+
+

Processing_agent_child

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Name + + + + Agent + + + + supplier acknowledged + + + + status + + + + Entry date + + + + Application code + + + + Email id + + + + Phone number + + + + Supplier + + + + nationality + + + + note + + + + visa + + + + + + Action + + + + + +{{user. name }} + + +{{user. agent }} + + +{{user. supplier_acknowledged }} + + +{{user. status }} + + +{{user. entry_date }} + + +{{user. application_code }} + + +{{user. email_id }} + + +{{user. phone_number }} + + +{{user. supplier }} + + +{{user. nationality }} + + +{{user. note }} + + +{{user. visa }} + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_agent_child/Processing_agent_child.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_agent_child/Processing_agent_child.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_agent_child/Processing_agent_child.component.scss @@ -0,0 +1,78 @@ +//@import "../../../../assets/scss/var"; +.s-info-bar { + display: flex; + flex-direction: row; + justify-content: space-between; + button { + outline: none; + } +} +.delete,.heading{ + text-align: center; + color: red; +} +.entry-pg { + width: 750px; +} + +.button1::after { + content: none; +} +.button1:hover::after { + content: "ADD ROWS"; +} + +.section { + background-color: #dddddd; + height: 40px; +} + +.section p { + //color: white; + padding: 10px; + font-size: 18px; +} + +.clr-input { + color: #212529; + border: 1px solid #ced4da; + border-radius: 0.25rem; + padding: 0.75rem 0.75rem; + margin-top: 3px; + width: 100%; + margin-bottom: 10px; +} + +.clr-file { + color: #212529; + border: 1px solid #ced4da; + border-radius: 0.25rem; + //padding: 0.6rem 0.75rem; + margin-top: 3px; + width: 100%; + margin-bottom: 10px; +} + +.center { + text-align: center; +} +select{ + width: 100%; + margin-top: 3px; + padding: 5px 5px; + border: 1px solid #ccc; + border-radius: 4px; +} +input[type=text],[type=date],[type=number],textarea { + width: 100%; + padding: 15px 15px; + background-color:rgb(255, 255, 255); + // margin: 8px 0; + display: inline-block; + border: 1px solid #ccc; + border-radius: 4px; + box-sizing: border-box; +} +.error_mess { + color: red; +} diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_agent_child/Processing_agent_child.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_agent_child/Processing_agent_child.component.ts new file mode 100644 index 0000000..9b971c7 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_agent_child/Processing_agent_child.component.ts @@ -0,0 +1,489 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Processing_agent_childservice} from './Processing_agent_child.service'; +import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms'; +import { ExtensionService } from 'src/app/services/fnd/extension.service'; +import { DashboardContentModel2 } from 'src/app/models/builder/dashboard'; +import { Processing_agent_childcardvariable } from './Processing_agent_child_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Processing_agent_child', + templateUrl: './Processing_agent_child.component.html', + styleUrls: ['./Processing_agent_child.component.scss'] +}) +export class Processing_agent_childComponent implements OnInit { + cardButton = Processing_agent_childcardvariable.cardButton; + cardmodeldata = Processing_agent_childcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Processing_agent_childcardvariable.cardButton; + cardmodal; changeView(){ + this.isCardview = !this.isCardview; + } + beforeText(fieldtext: string): string { // Extract the text before the first '<' + const index = fieldtext.indexOf('<'); + return index !== -1 ? fieldtext.substring(0, index) : fieldtext; + } + afterText(fieldtext: string): string { // Extract the text after the last '>' + const index = fieldtext.lastIndexOf('>'); + return index !== -1 ? fieldtext.substring(index + 1) : ''; + } + transform(fieldtext: string): string { + const match = fieldtext.match(/<([^>]*)>/); + return match ? match[1] : ''; // Extract the text between '<' and '>' + } + userrole; + rowSelected :any= {}; + modaldelete=false; + modalEdit=false; + modalAdd= false; + public entryForm: FormGroup; + loading = false; + product; + modalOpenedforNewLine = false; + newLine:any; + additionalFieldsFromBackend: any[] = []; + formcode = 'Processing_agent_child_formCode' +tableName = 'Processing_agent_child'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Processing_agent_childservice, + private alertService: AlertService, + private toastr: ToastrService, + private _fb: FormBuilder, + ) { } +// component button + ngOnInit(): void { + if(this.cardmodeldata !== ''){ + this.cardmodal = JSON.parse(this.cardmodeldata); + this.dashboardArray = this.cardmodal.dashboard.slice(); + console.log(this.dashboardArray) + } + this.userrole=this.userInfoService.getRoles(); + this.getData(); + this.entryForm = this._fb.group({ +name : [null], + +agent : [null], + +supplier_acknowledged : [false], + +status : [null], + +entry_date : [null], + +application_code : [null], + +email_id : [null], + +phone_number: ['+91'], + +supplier : [null], + +nationality : [null], + +note : [null], + +visa : [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 === "Processing_agent_child_formCode"); + console.log(this.checkFormCode); + console.log(this.additionalFieldsFromBackend); + if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) { + this.additionalFieldsFromBackend.forEach(field => { + if (field.formCode === this.formcode) { + if (!this.entryForm.contains(field.extValue)) { + // Add the control only if it doesn't exist in the form + this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue)); + } + } + }); + } + }); + console.log(this.entryForm.value); + // form code end + + + + + + + + + + + + + + + + + + + + + + + + + + } + + + + + + + + + + + + + + + + + + + + + + + + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + + + + + + + + + + + + + + + + + + + + + + + this.modalEdit = true; + } + onDelete(row) { + this.rowSelected = row; + this.modaldelete=true; + } + delete(id) + { + this.modaldelete = false; + console.log("in delete "+id); + this.mainService.delete(id).subscribe( + (data) => { + console.log(data); + this.ngOnInit(); + if (data) { this.toastr.success('Deleted successfully'); } + }); + } + onUpdate(id) { + this.modalEdit = false; + + + + + + + + + + + + + + + + + + + + + + + + + //console.log("in update"); + console.log("id " + id); + console.log(this.rowSelected); + //console.log("out update"); + this.mainService.update(id, this.rowSelected).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Update Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + + + + + + + + + + + + + + + + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("update Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Updated"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Updated"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } +onCreate() { + this.modalAdd=false; + + + + + + + + + + + + + + + + + + + + + + + + + this.mainService.create(this.entryForm.value).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Added Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + + + + + + + + + + + + + + + + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("Added Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Added"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Added"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } + goToAdd(row) { +this.modalAdd = true; this.submitted = false; + + + + + + + + + + + + + + + + + + + + + + + + + } + submitted = false; +onSubmit() { + console.log(this.entryForm.value); + this.submitted = true; + if (this.entryForm.invalid) { + return; + }this.onCreate(); + +} + + + + + + + + + + + + +isValidemail_id(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); +} + + + + + + + + + +// updateaction +} + + + + + + + + + + + + + + + + + + + + + + + diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_agent_child/Processing_agent_child.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_agent_child/Processing_agent_child.service.ts new file mode 100644 index 0000000..5215e80 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_agent_child/Processing_agent_child.service.ts @@ -0,0 +1,57 @@ +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 Processing_agent_childservice{ + private baseURL = "Processing_agent_child/Processing_agent_child" ; constructor( + private http: HttpClient, + private apiRequest: ApiRequestService, + ) { } + getAll(page?: number, size?: number): Observable { + return this.apiRequest.get(this.baseURL); + } + getById(id: number): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.get(_http); + } + create(data: any): Observable { + return this.apiRequest.post(this.baseURL, data); + } + update(id: number, data: any): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.put(_http, data); + } + delete(id: number): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.delete(_http); + } + + + + + + + + + + + + + + + + + + + + + + + + +// updateaction +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_agent_child/Processing_agent_child_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_agent_child/Processing_agent_child_cardvariable.ts new file mode 100644 index 0000000..e5d9014 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_agent_child/Processing_agent_child_cardvariable.ts @@ -0,0 +1,4 @@ +export const Processing_agent_childcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_customer/Processing_customer.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_customer/Processing_customer.component.html new file mode 100644 index 0000000..8d306d5 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_customer/Processing_customer.component.html @@ -0,0 +1,779 @@ + +
+
+
+

Processing_customer

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + full Name + + + + Application Code + + + + nationality + + + + passport number + + + + filter btn + + + + Reset btn + + + + + + + + Action + + + + + +{{user. full_name }} + + +{{user. application_code }} + + +{{user. nationality }} + + +{{user. passport_number }} + + +{{user. filter_btn }} + + +{{user. reset_btn }} + + + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_customer/Processing_customer.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_customer/Processing_customer.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_customer/Processing_customer.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_customer/Processing_customer.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_customer/Processing_customer.component.ts new file mode 100644 index 0000000..fedc826 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_customer/Processing_customer.component.ts @@ -0,0 +1,479 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Processing_customerservice} from './Processing_customer.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 { Processing_customercardvariable } from './Processing_customer_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Processing_customer', + templateUrl: './Processing_customer.component.html', + styleUrls: ['./Processing_customer.component.scss'] +}) +export class Processing_customerComponent implements OnInit { + cardButton = Processing_customercardvariable.cardButton; + cardmodeldata = Processing_customercardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Processing_customercardvariable.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 = 'Processing_customer_formCode' +tableName = 'Processing_customer'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Processing_customerservice, + 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({ +full_name : [null], + +application_code : [null], + +nationality : [null], + +passport_number : [null,[Validators.required]], + +filter_btn : [null], + +reset_btn : [null], + +processing_customer_child: this._fb.array([this.initLinesForm()]), + + + + + + + + + + + + + + + + + }); // component_button200 + // form code start + this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { + console.log(data); + const jsonArray = data.map((str) => JSON.parse(str)); + this.additionalFieldsFromBackend = jsonArray; + this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Processing_customer_formCode"); + console.log(this.checkFormCode); + console.log(this.additionalFieldsFromBackend); + if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) { + this.additionalFieldsFromBackend.forEach(field => { + if (field.formCode === this.formcode) { + if (!this.entryForm.contains(field.extValue)) { + // Add the control only if it doesn't exist in the form + this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue)); + } + } + }); + } + }); + console.log(this.entryForm.value); + // form code end + + + + + + + + + + + + + + + + } + + + + + + + + + + + + +// one to many start + initLinesForm() { return this._fb.group({ + + + + full_name: [null], + + + + status: [null], + + + + phone_number: [null], + + + + note: [null], + + + + supplier_acknowledged: [null], + + + + application_code: [null], + + + + coupon: [null], + + + + email_id: [null], + + + + visa: [null], + + + + supplier: [null], + + + + entry_date: [null], + + + + nationality: [null], + + + +}); } +get controls() {return (this.entryForm.get("processing_customer_child") as FormArray).controls; } +onAddLines() { +(this.entryForm.get("processing_customer_child")).push(this.initLinesForm()); } +onRemoveLines(index: number) { +(this.entryForm.get("processing_customer_child")).removeAt(index); } + oneditLines() { this.components.push({ + + +full_name: "", + + + +status: "", + + + +phone_number: "", + + + +note: "", + + + +supplier_acknowledged: "", + + + +application_code: "", + + + +coupon: "", + + + +email_id: "", + + + +visa: "", + + + +supplier: "", + + + +entry_date: "", + + + +nationality: "", + + + + }); } + deleteRow(index) { + this.components.splice(index, 1); + } + components; + // one to many end + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + + + + + + + + + +this.components = row.processing_customer_child; + + + 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_customer/Processing_customer.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_customer/Processing_customer.service.ts new file mode 100644 index 0000000..60c8c05 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_customer/Processing_customer.service.ts @@ -0,0 +1,47 @@ +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 Processing_customerservice{ + private baseURL = "Processing_customer/Processing_customer" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_customer/Processing_customer_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_customer/Processing_customer_cardvariable.ts new file mode 100644 index 0000000..f1d7008 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_customer/Processing_customer_cardvariable.ts @@ -0,0 +1,4 @@ +export const Processing_customercardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_customer_child/Processing_customer_child.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_customer_child/Processing_customer_child.component.html new file mode 100644 index 0000000..996bd64 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_customer_child/Processing_customer_child.component.html @@ -0,0 +1,702 @@ + +
+
+
+

Processing_customer_child

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Full Name + + + + supplier acknowledged + + + + Status + + + + Entry date + + + + Application code + + + + Email id + + + + Phone number + + + + Supplier + + + + Nationality + + + + note + + + + visa + + + + coupon + + + + + + Action + + + + + +{{user. full_name }} + + +{{user. supplier_acknowledged }} + + +{{user. status }} + + +{{user. entry_date }} + + +{{user. application_code }} + + +{{user. email_id }} + + +{{user. phone_number }} + + +{{user. supplier }} + + +{{user. nationality }} + + +{{user. note }} + + +{{user. visa }} + + +{{user. coupon }} + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_customer_child/Processing_customer_child.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_customer_child/Processing_customer_child.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_customer_child/Processing_customer_child.component.scss @@ -0,0 +1,78 @@ +//@import "../../../../assets/scss/var"; +.s-info-bar { + display: flex; + flex-direction: row; + justify-content: space-between; + button { + outline: none; + } +} +.delete,.heading{ + text-align: center; + color: red; +} +.entry-pg { + width: 750px; +} + +.button1::after { + content: none; +} +.button1:hover::after { + content: "ADD ROWS"; +} + +.section { + background-color: #dddddd; + height: 40px; +} + +.section p { + //color: white; + padding: 10px; + font-size: 18px; +} + +.clr-input { + color: #212529; + border: 1px solid #ced4da; + border-radius: 0.25rem; + padding: 0.75rem 0.75rem; + margin-top: 3px; + width: 100%; + margin-bottom: 10px; +} + +.clr-file { + color: #212529; + border: 1px solid #ced4da; + border-radius: 0.25rem; + //padding: 0.6rem 0.75rem; + margin-top: 3px; + width: 100%; + margin-bottom: 10px; +} + +.center { + text-align: center; +} +select{ + width: 100%; + margin-top: 3px; + padding: 5px 5px; + border: 1px solid #ccc; + border-radius: 4px; +} +input[type=text],[type=date],[type=number],textarea { + width: 100%; + padding: 15px 15px; + background-color:rgb(255, 255, 255); + // margin: 8px 0; + display: inline-block; + border: 1px solid #ccc; + border-radius: 4px; + box-sizing: border-box; +} +.error_mess { + color: red; +} diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_customer_child/Processing_customer_child.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_customer_child/Processing_customer_child.component.ts new file mode 100644 index 0000000..3699b6f --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_customer_child/Processing_customer_child.component.ts @@ -0,0 +1,489 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Processing_customer_childservice} from './Processing_customer_child.service'; +import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms'; +import { ExtensionService } from 'src/app/services/fnd/extension.service'; +import { DashboardContentModel2 } from 'src/app/models/builder/dashboard'; +import { Processing_customer_childcardvariable } from './Processing_customer_child_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Processing_customer_child', + templateUrl: './Processing_customer_child.component.html', + styleUrls: ['./Processing_customer_child.component.scss'] +}) +export class Processing_customer_childComponent implements OnInit { + cardButton = Processing_customer_childcardvariable.cardButton; + cardmodeldata = Processing_customer_childcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Processing_customer_childcardvariable.cardButton; + cardmodal; changeView(){ + this.isCardview = !this.isCardview; + } + beforeText(fieldtext: string): string { // Extract the text before the first '<' + const index = fieldtext.indexOf('<'); + return index !== -1 ? fieldtext.substring(0, index) : fieldtext; + } + afterText(fieldtext: string): string { // Extract the text after the last '>' + const index = fieldtext.lastIndexOf('>'); + return index !== -1 ? fieldtext.substring(index + 1) : ''; + } + transform(fieldtext: string): string { + const match = fieldtext.match(/<([^>]*)>/); + return match ? match[1] : ''; // Extract the text between '<' and '>' + } + userrole; + rowSelected :any= {}; + modaldelete=false; + modalEdit=false; + modalAdd= false; + public entryForm: FormGroup; + loading = false; + product; + modalOpenedforNewLine = false; + newLine:any; + additionalFieldsFromBackend: any[] = []; + formcode = 'Processing_customer_child_formCode' +tableName = 'Processing_customer_child'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Processing_customer_childservice, + private alertService: AlertService, + private toastr: ToastrService, + private _fb: FormBuilder, + ) { } +// component button + ngOnInit(): void { + if(this.cardmodeldata !== ''){ + this.cardmodal = JSON.parse(this.cardmodeldata); + this.dashboardArray = this.cardmodal.dashboard.slice(); + console.log(this.dashboardArray) + } + this.userrole=this.userInfoService.getRoles(); + this.getData(); + this.entryForm = this._fb.group({ +full_name : [null], + +supplier_acknowledged : [false], + +status : [null], + +entry_date : [null], + +application_code : [null], + +email_id : [null], + +phone_number: ['+91'], + +supplier : [null], + +nationality : [null], + +note : [null], + +visa : [null], + +coupon : [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 === "Processing_customer_child_formCode"); + console.log(this.checkFormCode); + console.log(this.additionalFieldsFromBackend); + if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) { + this.additionalFieldsFromBackend.forEach(field => { + if (field.formCode === this.formcode) { + if (!this.entryForm.contains(field.extValue)) { + // Add the control only if it doesn't exist in the form + this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue)); + } + } + }); + } + }); + console.log(this.entryForm.value); + // form code end + + + + + + + + + + + + + + + + + + + + + + + + + + } + + + + + + + + + + + + + + + + + + + + + + + + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + + + + + + + + + + + + + + + + + + + + + + + this.modalEdit = true; + } + onDelete(row) { + this.rowSelected = row; + this.modaldelete=true; + } + delete(id) + { + this.modaldelete = false; + console.log("in delete "+id); + this.mainService.delete(id).subscribe( + (data) => { + console.log(data); + this.ngOnInit(); + if (data) { this.toastr.success('Deleted successfully'); } + }); + } + onUpdate(id) { + this.modalEdit = false; + + + + + + + + + + + + + + + + + + + + + + + + + //console.log("in update"); + console.log("id " + id); + console.log(this.rowSelected); + //console.log("out update"); + this.mainService.update(id, this.rowSelected).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Update Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + + + + + + + + + + + + + + + + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("update Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Updated"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Updated"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } +onCreate() { + this.modalAdd=false; + + + + + + + + + + + + + + + + + + + + + + + + + this.mainService.create(this.entryForm.value).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Added Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + + + + + + + + + + + + + + + + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("Added Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Added"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Added"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } + goToAdd(row) { +this.modalAdd = true; this.submitted = false; + + + + + + + + + + + + + + + + + + + + + + + + + } + submitted = false; +onSubmit() { + console.log(this.entryForm.value); + this.submitted = true; + if (this.entryForm.invalid) { + return; + }this.onCreate(); + +} + + + + + + + + + + +isValidemail_id(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); +} + + + + + + + + + + + +// updateaction +} + + + + + + + + + + + + + + + + + + + + + + + diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_customer_child/Processing_customer_child.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_customer_child/Processing_customer_child.service.ts new file mode 100644 index 0000000..f1775f8 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_customer_child/Processing_customer_child.service.ts @@ -0,0 +1,57 @@ +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 Processing_customer_childservice{ + private baseURL = "Processing_customer_child/Processing_customer_child" ; constructor( + private http: HttpClient, + private apiRequest: ApiRequestService, + ) { } + getAll(page?: number, size?: number): Observable { + return this.apiRequest.get(this.baseURL); + } + getById(id: number): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.get(_http); + } + create(data: any): Observable { + return this.apiRequest.post(this.baseURL, data); + } + update(id: number, data: any): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.put(_http, data); + } + delete(id: number): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.delete(_http); + } + + + + + + + + + + + + + + + + + + + + + + + + +// updateaction +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_customer_child/Processing_customer_child_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_customer_child/Processing_customer_child_cardvariable.ts new file mode 100644 index 0000000..47d8105 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Processing_customer_child/Processing_customer_child_cardvariable.ts @@ -0,0 +1,4 @@ +export const Processing_customer_childcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refferere_report/Refferere_report.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refferere_report/Refferere_report.component.html new file mode 100644 index 0000000..0463d07 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refferere_report/Refferere_report.component.html @@ -0,0 +1,652 @@ + +
+
+
+

Refferere_report

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Entry date from + + + + Entry date to + + + + + + + + Action + + + + + +{{user. entry_date_from }} + + +{{user. entry_date_to }} + + + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refferere_report/Refferere_report.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refferere_report/Refferere_report.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refferere_report/Refferere_report.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refferere_report/Refferere_report.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refferere_report/Refferere_report.component.ts new file mode 100644 index 0000000..40ff181 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refferere_report/Refferere_report.component.ts @@ -0,0 +1,391 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Refferere_reportservice} from './Refferere_report.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 { Refferere_reportcardvariable } from './Refferere_report_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Refferere_report', + templateUrl: './Refferere_report.component.html', + styleUrls: ['./Refferere_report.component.scss'] +}) +export class Refferere_reportComponent implements OnInit { + cardButton = Refferere_reportcardvariable.cardButton; + cardmodeldata = Refferere_reportcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Refferere_reportcardvariable.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 = 'Refferere_report_formCode' +tableName = 'Refferere_report'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Refferere_reportservice, + 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({ +entry_date_from : [null], + +entry_date_to : [null], + +refferere_report_line: this._fb.array([this.initLinesForm()]), + + + + + + + + + }); // component_button200 + // form code start + this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { + console.log(data); + const jsonArray = data.map((str) => JSON.parse(str)); + this.additionalFieldsFromBackend = jsonArray; + this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Refferere_report_formCode"); + console.log(this.checkFormCode); + console.log(this.additionalFieldsFromBackend); + if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) { + this.additionalFieldsFromBackend.forEach(field => { + if (field.formCode === this.formcode) { + if (!this.entryForm.contains(field.extValue)) { + // Add the control only if it doesn't exist in the form + this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue)); + } + } + }); + } + }); + console.log(this.entryForm.value); + // form code end + + + + + + + + } + + + + +// one to many start + initLinesForm() { return this._fb.group({ + + + + status: [null], + + + + full_name: [null], + + + + agent: [null], + + + + visa_processing_time: [null], + + + + passport_number: [null], + + + + cost: [null], + + + + total_price: [null], + + + + visa_duration: [null], + + + + invoice_created: [null], + + + + application_code: [null], + + + + nationality: [null], + + + + visa_entry_type: [null], + + + + entry_date: [null], + + + +}); } +get controls() {return (this.entryForm.get("refferere_report_line") as FormArray).controls; } +onAddLines() { +(this.entryForm.get("refferere_report_line")).push(this.initLinesForm()); } +onRemoveLines(index: number) { +(this.entryForm.get("refferere_report_line")).removeAt(index); } + oneditLines() { this.components.push({ + + +status: "", + + + +full_name: "", + + + +agent: "", + + + +visa_processing_time: "", + + + +passport_number: "", + + + +cost: "", + + + +total_price: "", + + + +visa_duration: "", + + + +invoice_created: "", + + + +application_code: "", + + + +nationality: "", + + + +visa_entry_type: "", + + + +entry_date: "", + + + + }); } + deleteRow(index) { + this.components.splice(index, 1); + } + components; + // one to many end + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + +this.components = row.refferere_report_line; + + + 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refferere_report/Refferere_report.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refferere_report/Refferere_report.service.ts new file mode 100644 index 0000000..59d0763 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refferere_report/Refferere_report.service.ts @@ -0,0 +1,39 @@ +import { Injectable } from '@angular/core'; +import { Observable } from "rxjs"; +import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http"; +import { ApiRequestService } from "src/app/services/api/api-request.service"; +import { environment } from 'src/environments/environment'; +@Injectable({ + providedIn: 'root' +}) +export class Refferere_reportservice{ + private baseURL = "Refferere_report/Refferere_report" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refferere_report/Refferere_report_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refferere_report/Refferere_report_cardvariable.ts new file mode 100644 index 0000000..ce94ff2 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refferere_report/Refferere_report_cardvariable.ts @@ -0,0 +1,4 @@ +export const Refferere_reportcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refferere_report_line/Refferere_report_line.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refferere_report_line/Refferere_report_line.component.html new file mode 100644 index 0000000..8764e74 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refferere_report_line/Refferere_report_line.component.html @@ -0,0 +1,866 @@ + +
+
+
+

Refferere_report_line

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Invoice created + + + + Status + + + + Full name + + + + Agent + + + + Entry date + + + + Application code + + + + nationality + + + + Passport number + + + + Visa entry type + + + + Visa Duration + + + + visa processing time + + + + cost + + + + total price + + + + + + Action + + + + + +{{user. invoice_created }} + + +{{user. status }} + + +{{user. full_name }} + + +{{user. agent }} + + +{{user. entry_date }} + + +{{user. application_code }} + + +{{user. nationality }} + + +{{user. passport_number }} + + +{{user. visa_entry_type }} + + +{{user. visa_duration }} + + +{{user. visa_processing_time }} + + +{{user. cost }} + + +{{user. total_price }} + + + + + + + +
Who Column
+
Account ID: {{user.accountId}}
+
Created At: {{user.createdAt| date}}
+
Created By: {{user.createdBy}}
+
Updated At: {{user.updatedAt | date}}
+
Updated By: {{user.updatedBy}}
+
+
+
+ + + + + + + +
+ + + Users per page + {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}} + of {{pagination.totalItems}} users + + +
+ + + +
+
+
+
+
+
+ +
+
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ] }} + {{afterText(item.fieldtext)}} +
+ +
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ] | date}} + {{afterText(item.fieldtext)}} +
+
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ]}} + {{afterText(item.fieldtext)}} +
+ +
+
+
+ + +
+ +
+ +
File Preview
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refferere_report_line/Refferere_report_line.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refferere_report_line/Refferere_report_line.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refferere_report_line/Refferere_report_line.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refferere_report_line/Refferere_report_line.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refferere_report_line/Refferere_report_line.component.ts new file mode 100644 index 0000000..a502ab0 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refferere_report_line/Refferere_report_line.component.ts @@ -0,0 +1,520 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Refferere_report_lineservice} from './Refferere_report_line.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 { Refferere_report_linecardvariable } from './Refferere_report_line_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Refferere_report_line', + templateUrl: './Refferere_report_line.component.html', + styleUrls: ['./Refferere_report_line.component.scss'] +}) +export class Refferere_report_lineComponent implements OnInit { + cardButton = Refferere_report_linecardvariable.cardButton; + cardmodeldata = Refferere_report_linecardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Refferere_report_linecardvariable.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 = 'Refferere_report_line_formCode' +tableName = 'Refferere_report_line'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Refferere_report_lineservice, + 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({ +invoice_created : [null], + +status : [null], + +full_name : [null], + +agent : [null], + +entry_date : [null], + +application_code : [null], + +nationality : [null], + +passport_number : [null,[Validators.required]], + +visa_entry_type : [null], + +visa_duration : [null], + +visa_processing_time : [null], + +cost : [null, { updateOn: 'blur' }], + +total_price : [null, { updateOn: 'blur' }], + + + + + + + + + + + + + + + + + + + + + + + + + + + + + }); // 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 === "Refferere_report_line_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(); + +} + + + + + + + + + + + + + + + + + + + + + + +//currency field start + formatCurrencycost () { + // Format the currency with two decimal places + this.rowSelected.cost = Number(this.rowSelected.cost ).toFixed(2); + // Remove commas from the formatted currency + this.rowSelected.cost = this.rowSelected.cost?.replace(/,/g, ''); } + //currency field end + +//currency field start + formatCurrencytotal_price () { + // Format the currency with two decimal places + this.rowSelected.total_price = Number(this.rowSelected.total_price ).toFixed(2); + // Remove commas from the formatted currency + this.rowSelected.total_price = this.rowSelected.total_price?.replace(/,/g, ''); } + //currency field end + +// updateaction +} + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refferere_report_line/Refferere_report_line.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refferere_report_line/Refferere_report_line.service.ts new file mode 100644 index 0000000..71f0824 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refferere_report_line/Refferere_report_line.service.ts @@ -0,0 +1,59 @@ +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 Refferere_report_lineservice{ + private baseURL = "Refferere_report_line/Refferere_report_line" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refferere_report_line/Refferere_report_line_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refferere_report_line/Refferere_report_line_cardvariable.ts new file mode 100644 index 0000000..1fe9d8c --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refferere_report_line/Refferere_report_line_cardvariable.ts @@ -0,0 +1,4 @@ +export const Refferere_report_linecardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refrreres/Refrreres.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refrreres/Refrreres.component.html new file mode 100644 index 0000000..ac692ab --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refrreres/Refrreres.component.html @@ -0,0 +1,681 @@ + +
+
+
+

Refrreres

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Company + + + + First name + + + + last name + + + + + + + + Action + + + + + +{{user. company }} + + +{{user. first_name }} + + +{{user. last_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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refrreres/Refrreres.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refrreres/Refrreres.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refrreres/Refrreres.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refrreres/Refrreres.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refrreres/Refrreres.component.ts new file mode 100644 index 0000000..4003686 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refrreres/Refrreres.component.ts @@ -0,0 +1,415 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Refrreresservice} from './Refrreres.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 { Refrrerescardvariable } from './Refrreres_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Refrreres', + templateUrl: './Refrreres.component.html', + styleUrls: ['./Refrreres.component.scss'] +}) +export class RefrreresComponent implements OnInit { + cardButton = Refrrerescardvariable.cardButton; + cardmodeldata = Refrrerescardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Refrrerescardvariable.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 = 'Refrreres_formCode' +tableName = 'Refrreres'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Refrreresservice, + 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({ +company : [null], + +first_name : [null], + +last_name : [null], + +refferere_report_line: this._fb.array([this.initLinesForm()]), + + + + + + + + + + + }); // component_button200 + // form code start + this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { + console.log(data); + const jsonArray = data.map((str) => JSON.parse(str)); + this.additionalFieldsFromBackend = jsonArray; + this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Refrreres_formCode"); + console.log(this.checkFormCode); + console.log(this.additionalFieldsFromBackend); + if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) { + this.additionalFieldsFromBackend.forEach(field => { + if (field.formCode === this.formcode) { + if (!this.entryForm.contains(field.extValue)) { + // Add the control only if it doesn't exist in the form + this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue)); + } + } + }); + } + }); + console.log(this.entryForm.value); + // form code end + + + + + + + + + + } + + + + + + +// one to many start + initLinesForm() { return this._fb.group({ + + + + status: [null], + + + + full_name: [null], + + + + agent: [null], + + + + visa_processing_time: [null], + + + + passport_number: [null], + + + + cost: [null], + + + + total_price: [null], + + + + visa_duration: [null], + + + + invoice_created: [null], + + + + application_code: [null], + + + + nationality: [null], + + + + visa_entry_type: [null], + + + + entry_date: [null], + + + +}); } +get controls() {return (this.entryForm.get("refferere_report_line") as FormArray).controls; } +onAddLines() { +(this.entryForm.get("refferere_report_line")).push(this.initLinesForm()); } +onRemoveLines(index: number) { +(this.entryForm.get("refferere_report_line")).removeAt(index); } + oneditLines() { this.components.push({ + + +status: "", + + + +full_name: "", + + + +agent: "", + + + +visa_processing_time: "", + + + +passport_number: "", + + + +cost: "", + + + +total_price: "", + + + +visa_duration: "", + + + +invoice_created: "", + + + +application_code: "", + + + +nationality: "", + + + +visa_entry_type: "", + + + +entry_date: "", + + + + }); } + deleteRow(index) { + this.components.splice(index, 1); + } + components; + // one to many end + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + + + +this.components = row.refferere_report_line; + + + 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refrreres/Refrreres.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refrreres/Refrreres.service.ts new file mode 100644 index 0000000..5e3ac5d --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refrreres/Refrreres.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 Refrreresservice{ + private baseURL = "Refrreres/Refrreres" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refrreres/Refrreres_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refrreres/Refrreres_cardvariable.ts new file mode 100644 index 0000000..c927aca --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refrreres/Refrreres_cardvariable.ts @@ -0,0 +1,4 @@ +export const Refrrerescardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refrreres_line/Refrreres_line.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refrreres_line/Refrreres_line.component.html new file mode 100644 index 0000000..8b0cc17 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refrreres_line/Refrreres_line.component.html @@ -0,0 +1,544 @@ + +
+
+
+

Refrreres_line

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Company + + + + First name + + + + Last name + + + + Country + + + + City + + + + Email + + + + + + Action + + + + + +{{user. company }} + + +{{user. first_name }} + + +{{user. last_name }} + + +{{user. country }} + + +{{user. city }} + + +{{user. email }} + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refrreres_line/Refrreres_line.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refrreres_line/Refrreres_line.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refrreres_line/Refrreres_line.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refrreres_line/Refrreres_line.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refrreres_line/Refrreres_line.component.ts new file mode 100644 index 0000000..e8df583 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refrreres_line/Refrreres_line.component.ts @@ -0,0 +1,342 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Refrreres_lineservice} from './Refrreres_line.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 { Refrreres_linecardvariable } from './Refrreres_line_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Refrreres_line', + templateUrl: './Refrreres_line.component.html', + styleUrls: ['./Refrreres_line.component.scss'] +}) +export class Refrreres_lineComponent implements OnInit { + cardButton = Refrreres_linecardvariable.cardButton; + cardmodeldata = Refrreres_linecardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Refrreres_linecardvariable.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 = 'Refrreres_line_formCode' +tableName = 'Refrreres_line'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Refrreres_lineservice, + 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({ +company : [null], + +first_name : [null], + +last_name : [null], + +country : [null], + +city : [null], + +email : [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 === "Refrreres_line_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(email: string): boolean { + const emailPattern = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/; + return emailPattern.test(email); } + +// updateaction +} + + + + + + + + + + + diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refrreres_line/Refrreres_line.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refrreres_line/Refrreres_line.service.ts new file mode 100644 index 0000000..f4499c1 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refrreres_line/Refrreres_line.service.ts @@ -0,0 +1,45 @@ +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 Refrreres_lineservice{ + private baseURL = "Refrreres_line/Refrreres_line" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refrreres_line/Refrreres_line_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refrreres_line/Refrreres_line_cardvariable.ts new file mode 100644 index 0000000..b4774ef --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refrreres_line/Refrreres_line_cardvariable.ts @@ -0,0 +1,4 @@ +export const Refrreres_linecardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refund/Refund.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refund/Refund.component.html new file mode 100644 index 0000000..b22b9ee --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refund/Refund.component.html @@ -0,0 +1,750 @@ + +
+
+
+

Refund

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Name + + + + Application code + + + + filter btn + + + + reset btn + + + + Nationality + + + + + + + + Action + + + + + +{{user. name }} + + +{{user. application_code }} + + +{{user. filter_btn }} + + +{{user. reset_btn }} + + +{{user. nationality }} + + + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refund/Refund.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refund/Refund.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refund/Refund.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refund/Refund.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refund/Refund.component.ts new file mode 100644 index 0000000..51ddf5e --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refund/Refund.component.ts @@ -0,0 +1,455 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Refundservice} from './Refund.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 { Refundcardvariable } from './Refund_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Refund', + templateUrl: './Refund.component.html', + styleUrls: ['./Refund.component.scss'] +}) +export class RefundComponent implements OnInit { + cardButton = Refundcardvariable.cardButton; + cardmodeldata = Refundcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Refundcardvariable.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 = 'Refund_formCode' +tableName = 'Refund'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Refundservice, + private alertService: AlertService, + private toastr: ToastrService, + private _fb: FormBuilder, + ) { } +// component button + ngOnInit(): void { + if(this.cardmodeldata !== ''){ + this.cardmodal = JSON.parse(this.cardmodeldata); + this.dashboardArray = this.cardmodal.dashboard.slice(); + console.log(this.dashboardArray) + } + this.userrole=this.userInfoService.getRoles(); + this.getData(); + this.entryForm = this._fb.group({ +name : [null], + +application_code : [null], + +filter_btn : [null,[Validators.required]], + +reset_btn : [null], + +nationality : [null], + +refund_child: this._fb.array([this.initLinesForm()]), + + + + + + + + + + + + + + + }); // component_button200 + // form code start + this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { + console.log(data); + const jsonArray = data.map((str) => JSON.parse(str)); + this.additionalFieldsFromBackend = jsonArray; + this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Refund_formCode"); + console.log(this.checkFormCode); + console.log(this.additionalFieldsFromBackend); + if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) { + this.additionalFieldsFromBackend.forEach(field => { + if (field.formCode === this.formcode) { + if (!this.entryForm.contains(field.extValue)) { + // Add the control only if it doesn't exist in the form + this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue)); + } + } + }); + } + }); + console.log(this.entryForm.value); + // form code end + + + + + + + + + + + + + + } + + + + + + + + + + +// one to many start + initLinesForm() { return this._fb.group({ + + + + full_name: [null], + + + + status: [null], + + + + phone_number: [null], + + + + note: [null], + + + + supplier_acknowledged: [null], + + + + application_code: [null], + + + + nationality: [null], + + + + email_id: [null], + + + + visa: [null], + + + + supplier: [null], + + + + transction_id: [null], + + + + entry_date: [null], + + + +}); } +get controls() {return (this.entryForm.get("refund_child") as FormArray).controls; } +onAddLines() { +(this.entryForm.get("refund_child")).push(this.initLinesForm()); } +onRemoveLines(index: number) { +(this.entryForm.get("refund_child")).removeAt(index); } + oneditLines() { this.components.push({ + + +full_name: "", + + + +status: "", + + + +phone_number: "", + + + +note: "", + + + +supplier_acknowledged: "", + + + +application_code: "", + + + +nationality: "", + + + +email_id: "", + + + +visa: "", + + + +supplier: "", + + + +transction_id: "", + + + +entry_date: "", + + + + }); } + deleteRow(index) { + this.components.splice(index, 1); + } + components; + // one to many end + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + + + + + + + +this.components = row.refund_child; + + + 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refund/Refund.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refund/Refund.service.ts new file mode 100644 index 0000000..a88f349 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refund/Refund.service.ts @@ -0,0 +1,45 @@ +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 Refundservice{ + private baseURL = "Refund/Refund" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refund/Refund_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refund/Refund_cardvariable.ts new file mode 100644 index 0000000..11185de --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refund/Refund_cardvariable.ts @@ -0,0 +1,4 @@ +export const Refundcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refund_child/Refund_child.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refund_child/Refund_child.component.html new file mode 100644 index 0000000..01ed897 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refund_child/Refund_child.component.html @@ -0,0 +1,696 @@ + +
+
+
+

Refund_child

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Full Name + + + + supplier acknowledged + + + + Status + + + + Entry date + + + + Application code + + + + Email id + + + + Phone number + + + + supplier + + + + nationality + + + + note + + + + visa + + + + Transction id + + + + + + Action + + + + + +{{user. full_name }} + + +{{user. supplier_acknowledged }} + + +{{user. status }} + + +{{user. entry_date }} + + +{{user. application_code }} + + +{{user. email_id }} + + +{{user. phone_number }} + + +{{user. supplier }} + + +{{user. nationality }} + + +{{user. note }} + + +{{user. visa }} + + +{{user. transction_id }} + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refund_child/Refund_child.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refund_child/Refund_child.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refund_child/Refund_child.component.scss @@ -0,0 +1,78 @@ +//@import "../../../../assets/scss/var"; +.s-info-bar { + display: flex; + flex-direction: row; + justify-content: space-between; + button { + outline: none; + } +} +.delete,.heading{ + text-align: center; + color: red; +} +.entry-pg { + width: 750px; +} + +.button1::after { + content: none; +} +.button1:hover::after { + content: "ADD ROWS"; +} + +.section { + background-color: #dddddd; + height: 40px; +} + +.section p { + //color: white; + padding: 10px; + font-size: 18px; +} + +.clr-input { + color: #212529; + border: 1px solid #ced4da; + border-radius: 0.25rem; + padding: 0.75rem 0.75rem; + margin-top: 3px; + width: 100%; + margin-bottom: 10px; +} + +.clr-file { + color: #212529; + border: 1px solid #ced4da; + border-radius: 0.25rem; + //padding: 0.6rem 0.75rem; + margin-top: 3px; + width: 100%; + margin-bottom: 10px; +} + +.center { + text-align: center; +} +select{ + width: 100%; + margin-top: 3px; + padding: 5px 5px; + border: 1px solid #ccc; + border-radius: 4px; +} +input[type=text],[type=date],[type=number],textarea { + width: 100%; + padding: 15px 15px; + background-color:rgb(255, 255, 255); + // margin: 8px 0; + display: inline-block; + border: 1px solid #ccc; + border-radius: 4px; + box-sizing: border-box; +} +.error_mess { + color: red; +} diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refund_child/Refund_child.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refund_child/Refund_child.component.ts new file mode 100644 index 0000000..481fa39 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refund_child/Refund_child.component.ts @@ -0,0 +1,489 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Refund_childservice} from './Refund_child.service'; +import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms'; +import { ExtensionService } from 'src/app/services/fnd/extension.service'; +import { DashboardContentModel2 } from 'src/app/models/builder/dashboard'; +import { Refund_childcardvariable } from './Refund_child_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Refund_child', + templateUrl: './Refund_child.component.html', + styleUrls: ['./Refund_child.component.scss'] +}) +export class Refund_childComponent implements OnInit { + cardButton = Refund_childcardvariable.cardButton; + cardmodeldata = Refund_childcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Refund_childcardvariable.cardButton; + cardmodal; changeView(){ + this.isCardview = !this.isCardview; + } + beforeText(fieldtext: string): string { // Extract the text before the first '<' + const index = fieldtext.indexOf('<'); + return index !== -1 ? fieldtext.substring(0, index) : fieldtext; + } + afterText(fieldtext: string): string { // Extract the text after the last '>' + const index = fieldtext.lastIndexOf('>'); + return index !== -1 ? fieldtext.substring(index + 1) : ''; + } + transform(fieldtext: string): string { + const match = fieldtext.match(/<([^>]*)>/); + return match ? match[1] : ''; // Extract the text between '<' and '>' + } + userrole; + rowSelected :any= {}; + modaldelete=false; + modalEdit=false; + modalAdd= false; + public entryForm: FormGroup; + loading = false; + product; + modalOpenedforNewLine = false; + newLine:any; + additionalFieldsFromBackend: any[] = []; + formcode = 'Refund_child_formCode' +tableName = 'Refund_child'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Refund_childservice, + private alertService: AlertService, + private toastr: ToastrService, + private _fb: FormBuilder, + ) { } +// component button + ngOnInit(): void { + if(this.cardmodeldata !== ''){ + this.cardmodal = JSON.parse(this.cardmodeldata); + this.dashboardArray = this.cardmodal.dashboard.slice(); + console.log(this.dashboardArray) + } + this.userrole=this.userInfoService.getRoles(); + this.getData(); + this.entryForm = this._fb.group({ +full_name : [null], + +supplier_acknowledged : [false], + +status : [null], + +entry_date : [null], + +application_code : [null], + +email_id : [null], + +phone_number: ['+91'], + +supplier : [null], + +nationality : [null], + +note : [null], + +visa : [null], + +transction_id : [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 === "Refund_child_formCode"); + console.log(this.checkFormCode); + console.log(this.additionalFieldsFromBackend); + if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) { + this.additionalFieldsFromBackend.forEach(field => { + if (field.formCode === this.formcode) { + if (!this.entryForm.contains(field.extValue)) { + // Add the control only if it doesn't exist in the form + this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue)); + } + } + }); + } + }); + console.log(this.entryForm.value); + // form code end + + + + + + + + + + + + + + + + + + + + + + + + + + } + + + + + + + + + + + + + + + + + + + + + + + + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + + + + + + + + + + + + + + + + + + + + + + + this.modalEdit = true; + } + onDelete(row) { + this.rowSelected = row; + this.modaldelete=true; + } + delete(id) + { + this.modaldelete = false; + console.log("in delete "+id); + this.mainService.delete(id).subscribe( + (data) => { + console.log(data); + this.ngOnInit(); + if (data) { this.toastr.success('Deleted successfully'); } + }); + } + onUpdate(id) { + this.modalEdit = false; + + + + + + + + + + + + + + + + + + + + + + + + + //console.log("in update"); + console.log("id " + id); + console.log(this.rowSelected); + //console.log("out update"); + this.mainService.update(id, this.rowSelected).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Update Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + + + + + + + + + + + + + + + + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("update Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Updated"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Updated"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } +onCreate() { + this.modalAdd=false; + + + + + + + + + + + + + + + + + + + + + + + + + this.mainService.create(this.entryForm.value).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Added Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + + + + + + + + + + + + + + + + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("Added Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Added"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Added"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } + goToAdd(row) { +this.modalAdd = true; this.submitted = false; + + + + + + + + + + + + + + + + + + + + + + + + + } + submitted = false; +onSubmit() { + console.log(this.entryForm.value); + this.submitted = true; + if (this.entryForm.invalid) { + return; + }this.onCreate(); + +} + + + + + + + + + + +isValidemail_id(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); +} + + + + + + + + + + + +// updateaction +} + + + + + + + + + + + + + + + + + + + + + + + diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refund_child/Refund_child.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refund_child/Refund_child.service.ts new file mode 100644 index 0000000..a249c35 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refund_child/Refund_child.service.ts @@ -0,0 +1,57 @@ +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 Refund_childservice{ + private baseURL = "Refund_child/Refund_child" ; constructor( + private http: HttpClient, + private apiRequest: ApiRequestService, + ) { } + getAll(page?: number, size?: number): Observable { + return this.apiRequest.get(this.baseURL); + } + getById(id: number): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.get(_http); + } + create(data: any): Observable { + return this.apiRequest.post(this.baseURL, data); + } + update(id: number, data: any): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.put(_http, data); + } + delete(id: number): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.delete(_http); + } + + + + + + + + + + + + + + + + + + + + + + + + +// updateaction +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refund_child/Refund_child_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refund_child/Refund_child_cardvariable.ts new file mode 100644 index 0000000..d8b56ca --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Refund_child/Refund_child_cardvariable.ts @@ -0,0 +1,4 @@ +export const Refund_childcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Rejected/Rejected.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Rejected/Rejected.component.html new file mode 100644 index 0000000..b4b3153 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Rejected/Rejected.component.html @@ -0,0 +1,779 @@ + +
+
+
+

Rejected

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Full Name + + + + Application code + + + + Nationality + + + + passport number + + + + filter btn + + + + Reset btn + + + + + + + + Action + + + + + +{{user. full_name }} + + +{{user. application_code }} + + +{{user. nationality }} + + +{{user. passport_number }} + + +{{user. filter_btn }} + + +{{user. reset_btn }} + + + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Rejected/Rejected.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Rejected/Rejected.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Rejected/Rejected.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Rejected/Rejected.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Rejected/Rejected.component.ts new file mode 100644 index 0000000..10112f5 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Rejected/Rejected.component.ts @@ -0,0 +1,479 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Rejectedservice} from './Rejected.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 { Rejectedcardvariable } from './Rejected_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Rejected', + templateUrl: './Rejected.component.html', + styleUrls: ['./Rejected.component.scss'] +}) +export class RejectedComponent implements OnInit { + cardButton = Rejectedcardvariable.cardButton; + cardmodeldata = Rejectedcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Rejectedcardvariable.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 = 'Rejected_formCode' +tableName = 'Rejected'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Rejectedservice, + 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({ +full_name : [null], + +application_code : [null], + +nationality : [null], + +passport_number : [null,[Validators.required]], + +filter_btn : [null], + +reset_btn : [null], + +rejected_child: this._fb.array([this.initLinesForm()]), + + + + + + + + + + + + + + + + + }); // component_button200 + // form code start + this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { + console.log(data); + const jsonArray = data.map((str) => JSON.parse(str)); + this.additionalFieldsFromBackend = jsonArray; + this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Rejected_formCode"); + console.log(this.checkFormCode); + console.log(this.additionalFieldsFromBackend); + if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) { + this.additionalFieldsFromBackend.forEach(field => { + if (field.formCode === this.formcode) { + if (!this.entryForm.contains(field.extValue)) { + // Add the control only if it doesn't exist in the form + this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue)); + } + } + }); + } + }); + console.log(this.entryForm.value); + // form code end + + + + + + + + + + + + + + + + } + + + + + + + + + + + + +// one to many start + initLinesForm() { return this._fb.group({ + + + + full_name: [null], + + + + status: [null], + + + + supplier_acknowledged: [null], + + + + action: [null], + + + + email_id: [null], + + + + phone: [null], + + + + note: [null], + + + + application_code: [null], + + + + visa: [null], + + + + supplier: [null], + + + + entry_date: [null], + + + + nationality: [null], + + + +}); } +get controls() {return (this.entryForm.get("rejected_child") as FormArray).controls; } +onAddLines() { +(this.entryForm.get("rejected_child")).push(this.initLinesForm()); } +onRemoveLines(index: number) { +(this.entryForm.get("rejected_child")).removeAt(index); } + oneditLines() { this.components.push({ + + +full_name: "", + + + +status: "", + + + +supplier_acknowledged: "", + + + +action: "", + + + +email_id: "", + + + +phone: "", + + + +note: "", + + + +application_code: "", + + + +visa: "", + + + +supplier: "", + + + +entry_date: "", + + + +nationality: "", + + + + }); } + deleteRow(index) { + this.components.splice(index, 1); + } + components; + // one to many end + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + + + + + + + + + +this.components = row.rejected_child; + + + 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Rejected/Rejected.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Rejected/Rejected.service.ts new file mode 100644 index 0000000..898ab37 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Rejected/Rejected.service.ts @@ -0,0 +1,47 @@ +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 Rejectedservice{ + private baseURL = "Rejected/Rejected" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Rejected/Rejected_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Rejected/Rejected_cardvariable.ts new file mode 100644 index 0000000..39a3f04 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Rejected/Rejected_cardvariable.ts @@ -0,0 +1,4 @@ +export const Rejectedcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Rejected_child/Rejected_child.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Rejected_child/Rejected_child.component.html new file mode 100644 index 0000000..241c79d --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Rejected_child/Rejected_child.component.html @@ -0,0 +1,693 @@ + +
+
+
+

Rejected_child

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Full Name + + + + supplier acknowledged + + + + Status + + + + Entry date + + + + application code + + + + Email id + + + + Phone + + + + Supplier + + + + Nationality + + + + Note + + + + Visa + + + + Action + + + + + + Action + + + + + +{{user. full_name }} + + +{{user. supplier_acknowledged }} + + +{{user. status }} + + +{{user. entry_date }} + + +{{user. application_code }} + + +{{user. email_id }} + + +{{user. phone }} + + +{{user. supplier }} + + +{{user. nationality }} + + +{{user. note }} + + +{{user. visa }} + + +{{user. action }} + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Rejected_child/Rejected_child.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Rejected_child/Rejected_child.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Rejected_child/Rejected_child.component.scss @@ -0,0 +1,78 @@ +//@import "../../../../assets/scss/var"; +.s-info-bar { + display: flex; + flex-direction: row; + justify-content: space-between; + button { + outline: none; + } +} +.delete,.heading{ + text-align: center; + color: red; +} +.entry-pg { + width: 750px; +} + +.button1::after { + content: none; +} +.button1:hover::after { + content: "ADD ROWS"; +} + +.section { + background-color: #dddddd; + height: 40px; +} + +.section p { + //color: white; + padding: 10px; + font-size: 18px; +} + +.clr-input { + color: #212529; + border: 1px solid #ced4da; + border-radius: 0.25rem; + padding: 0.75rem 0.75rem; + margin-top: 3px; + width: 100%; + margin-bottom: 10px; +} + +.clr-file { + color: #212529; + border: 1px solid #ced4da; + border-radius: 0.25rem; + //padding: 0.6rem 0.75rem; + margin-top: 3px; + width: 100%; + margin-bottom: 10px; +} + +.center { + text-align: center; +} +select{ + width: 100%; + margin-top: 3px; + padding: 5px 5px; + border: 1px solid #ccc; + border-radius: 4px; +} +input[type=text],[type=date],[type=number],textarea { + width: 100%; + padding: 15px 15px; + background-color:rgb(255, 255, 255); + // margin: 8px 0; + display: inline-block; + border: 1px solid #ccc; + border-radius: 4px; + box-sizing: border-box; +} +.error_mess { + color: red; +} diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Rejected_child/Rejected_child.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Rejected_child/Rejected_child.component.ts new file mode 100644 index 0000000..26243a0 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Rejected_child/Rejected_child.component.ts @@ -0,0 +1,489 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Rejected_childservice} from './Rejected_child.service'; +import { AbstractControl, FormArray, FormBuilder, FormGroup, Validators, ValidationErrors } from '@angular/forms'; +import { ExtensionService } from 'src/app/services/fnd/extension.service'; +import { DashboardContentModel2 } from 'src/app/models/builder/dashboard'; +import { Rejected_childcardvariable } from './Rejected_child_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Rejected_child', + templateUrl: './Rejected_child.component.html', + styleUrls: ['./Rejected_child.component.scss'] +}) +export class Rejected_childComponent implements OnInit { + cardButton = Rejected_childcardvariable.cardButton; + cardmodeldata = Rejected_childcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Rejected_childcardvariable.cardButton; + cardmodal; changeView(){ + this.isCardview = !this.isCardview; + } + beforeText(fieldtext: string): string { // Extract the text before the first '<' + const index = fieldtext.indexOf('<'); + return index !== -1 ? fieldtext.substring(0, index) : fieldtext; + } + afterText(fieldtext: string): string { // Extract the text after the last '>' + const index = fieldtext.lastIndexOf('>'); + return index !== -1 ? fieldtext.substring(index + 1) : ''; + } + transform(fieldtext: string): string { + const match = fieldtext.match(/<([^>]*)>/); + return match ? match[1] : ''; // Extract the text between '<' and '>' + } + userrole; + rowSelected :any= {}; + modaldelete=false; + modalEdit=false; + modalAdd= false; + public entryForm: FormGroup; + loading = false; + product; + modalOpenedforNewLine = false; + newLine:any; + additionalFieldsFromBackend: any[] = []; + formcode = 'Rejected_child_formCode' +tableName = 'Rejected_child'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Rejected_childservice, + private alertService: AlertService, + private toastr: ToastrService, + private _fb: FormBuilder, + ) { } +// component button + ngOnInit(): void { + if(this.cardmodeldata !== ''){ + this.cardmodal = JSON.parse(this.cardmodeldata); + this.dashboardArray = this.cardmodal.dashboard.slice(); + console.log(this.dashboardArray) + } + this.userrole=this.userInfoService.getRoles(); + this.getData(); + this.entryForm = this._fb.group({ +full_name : [null], + +supplier_acknowledged : [false], + +status : [null], + +entry_date : [null], + +application_code : [null], + +email_id : [null], + +phone: ['+91'], + +supplier : [null], + +nationality : [null], + +note : [null], + +visa : [null], + +action : [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 === "Rejected_child_formCode"); + console.log(this.checkFormCode); + console.log(this.additionalFieldsFromBackend); + if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) { + this.additionalFieldsFromBackend.forEach(field => { + if (field.formCode === this.formcode) { + if (!this.entryForm.contains(field.extValue)) { + // Add the control only if it doesn't exist in the form + this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue)); + } + } + }); + } + }); + console.log(this.entryForm.value); + // form code end + + + + + + + + + + + + + + + + + + + + + + + + + + } + + + + + + + + + + + + + + + + + + + + + + + + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + + + + + + + + + + + + + + + + + + + + + + + this.modalEdit = true; + } + onDelete(row) { + this.rowSelected = row; + this.modaldelete=true; + } + delete(id) + { + this.modaldelete = false; + console.log("in delete "+id); + this.mainService.delete(id).subscribe( + (data) => { + console.log(data); + this.ngOnInit(); + if (data) { this.toastr.success('Deleted successfully'); } + }); + } + onUpdate(id) { + this.modalEdit = false; + + + + + + + + + + + + + + + + + + + + + + + + + //console.log("in update"); + console.log("id " + id); + console.log(this.rowSelected); + //console.log("out update"); + this.mainService.update(id, this.rowSelected).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Update Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + + + + + + + + + + + + + + + + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("update Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Updated"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Updated"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } +onCreate() { + this.modalAdd=false; + + + + + + + + + + + + + + + + + + + + + + + + + this.mainService.create(this.entryForm.value).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Added Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + + + + + + + + + + + + + + + + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("Added Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Added"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Added"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } + goToAdd(row) { +this.modalAdd = true; this.submitted = false; + + + + + + + + + + + + + + + + + + + + + + + + + } + submitted = false; +onSubmit() { + console.log(this.entryForm.value); + this.submitted = true; + if (this.entryForm.invalid) { + return; + }this.onCreate(); + +} + + + + + + + + + + +isValidemail_id(email: string): boolean { + const emailPattern = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/; + return emailPattern.test(email); } + +isValidPhone(phone: string): boolean { + const phonePattern = /^(\+[1-9][0-9]{0,2})?[1-9][0-9]{9}$/; + return phonePattern.test(phone); +} + + + + + + + + + + + +// updateaction +} + + + + + + + + + + + + + + + + + + + + + + + diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Rejected_child/Rejected_child.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Rejected_child/Rejected_child.service.ts new file mode 100644 index 0000000..7b310ab --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Rejected_child/Rejected_child.service.ts @@ -0,0 +1,57 @@ +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 Rejected_childservice{ + private baseURL = "Rejected_child/Rejected_child" ; constructor( + private http: HttpClient, + private apiRequest: ApiRequestService, + ) { } + getAll(page?: number, size?: number): Observable { + return this.apiRequest.get(this.baseURL); + } + getById(id: number): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.get(_http); + } + create(data: any): Observable { + return this.apiRequest.post(this.baseURL, data); + } + update(id: number, data: any): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.put(_http, data); + } + delete(id: number): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.delete(_http); + } + + + + + + + + + + + + + + + + + + + + + + + + +// updateaction +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Rejected_child/Rejected_child_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Rejected_child/Rejected_child_cardvariable.ts new file mode 100644 index 0000000..e6205ce --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Rejected_child/Rejected_child_cardvariable.ts @@ -0,0 +1,4 @@ +export const Rejected_childcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/S_m_s/S_m_s.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/S_m_s/S_m_s.component.html new file mode 100644 index 0000000..38fcf6b --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/S_m_s/S_m_s.component.html @@ -0,0 +1,385 @@ + +
+
+
+

S_m_s

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + User + + + + Password + + + + Api id + + + + + + Action + + + + + +{{user. user }} + + +{{user. password }} + + +{{user. api_id }} + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/S_m_s/S_m_s.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/S_m_s/S_m_s.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/S_m_s/S_m_s.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/S_m_s/S_m_s.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/S_m_s/S_m_s.component.ts new file mode 100644 index 0000000..0add5d2 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/S_m_s/S_m_s.component.ts @@ -0,0 +1,296 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { S_m_sservice} from './S_m_s.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 { S_m_scardvariable } from './S_m_s_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-S_m_s', + templateUrl: './S_m_s.component.html', + styleUrls: ['./S_m_s.component.scss'] +}) +export class S_m_sComponent implements OnInit { + cardButton = S_m_scardvariable.cardButton; + cardmodeldata = S_m_scardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = S_m_scardvariable.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 = 'S_m_s_formCode' +tableName = 'S_m_s'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:S_m_sservice, + 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({ +user : [null], + +password : [null], +confirmpassword : [null], + +api_id : [null,[Validators.required]], + + + + + }, { + validator: ConfirmedpasswordValidator('password', 'confirmpassword') + + + + }); // 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 === "S_m_s_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(); + +} + + +newpHidepassword: boolean = true; + newIconpassword: string = "eye"; +newShapeChangerpassword() { +this.newpHidepassword = !this.newpHidepassword; + if(this.newpHidepassword){ +this.newIconpassword = 'eye' } else { this.newIconpassword = 'eye-hide' } +} + + newaddpHidepassword: boolean = true; + newaddIconpassword: string = "eye"; +newaddChangerpassword() { this.newaddpHidepassword = !this.newaddpHidepassword; + if(this.newaddpHidepassword){ this.newaddIconpassword = 'eye' } else { + this.newaddIconpassword = 'eye-hide' } } + + + +// updateaction +} + +export function ConfirmedpasswordValidator(controlName: string, matchingControlName: string){ + return (formGroup: FormGroup) => { + const control = formGroup.controls[controlName]; + const matchingControl = formGroup.controls[matchingControlName]; + if (matchingControl.errors && !matchingControl.errors.confirmedpasswordValidator) { + return; + } + if (control.value !== matchingControl.value) { + matchingControl.setErrors({ confirmedpasswordValidator: true }); + } else { + matchingControl.setErrors(null); + } + } +} + + + + diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/S_m_s/S_m_s.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/S_m_s/S_m_s.service.ts new file mode 100644 index 0000000..d55e9d5 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/S_m_s/S_m_s.service.ts @@ -0,0 +1,39 @@ +import { Injectable } from '@angular/core'; +import { Observable } from "rxjs"; +import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http"; +import { ApiRequestService } from "src/app/services/api/api-request.service"; +import { environment } from 'src/environments/environment'; +@Injectable({ + providedIn: 'root' +}) +export class S_m_sservice{ + private baseURL = "S_m_s/S_m_s" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/S_m_s/S_m_s_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/S_m_s/S_m_s_cardvariable.ts new file mode 100644 index 0000000..f942938 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/S_m_s/S_m_s_cardvariable.ts @@ -0,0 +1,4 @@ +export const S_m_scardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Sage_pay/Sage_pay.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Sage_pay/Sage_pay.component.html new file mode 100644 index 0000000..49d9475 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Sage_pay/Sage_pay.component.html @@ -0,0 +1,674 @@ + +
+
+
+

Sage_pay

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Application code + + + + Status + + + + Amount + + + + created + + + + vendercode + + + + Card type + + + + Expiry date + + + + last4digit + + + + vpstxid + + + + txauthno + + + + banckauthcode + + + + + + Action + + + + + +{{user. application_code }} + + +{{user. status }} + + +{{user. amount }} + + +{{user. created }} + + +{{user. vendercode }} + + +{{user. card_type }} + + +{{user. expiry_date }} + + +{{user. last4digit }} + + +{{user. vpstxid }} + + +{{user. txauthno }} + + +{{user. banckauthcode }} + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Sage_pay/Sage_pay.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Sage_pay/Sage_pay.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Sage_pay/Sage_pay.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Sage_pay/Sage_pay.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Sage_pay/Sage_pay.component.ts new file mode 100644 index 0000000..91f1966 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Sage_pay/Sage_pay.component.ts @@ -0,0 +1,460 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Sage_payservice} from './Sage_pay.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 { Sage_paycardvariable } from './Sage_pay_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Sage_pay', + templateUrl: './Sage_pay.component.html', + styleUrls: ['./Sage_pay.component.scss'] +}) +export class Sage_payComponent implements OnInit { + cardButton = Sage_paycardvariable.cardButton; + cardmodeldata = Sage_paycardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Sage_paycardvariable.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 = 'Sage_pay_formCode' +tableName = 'Sage_pay'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Sage_payservice, + 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({ +application_code : [null], + +status : [null], + +amount : [null,[Validators.required]], + +created : [null], + +vendercode : [null], + +card_type : [null], + +expiry_date : [null], + +last4digit : [null,[Validators.required]], + +vpstxid : [null], + +txauthno : [null,[Validators.required]], + +banckauthcode : [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 === "Sage_pay_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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Sage_pay/Sage_pay.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Sage_pay/Sage_pay.service.ts new file mode 100644 index 0000000..eb3573f --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Sage_pay/Sage_pay.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 Sage_payservice{ + private baseURL = "Sage_pay/Sage_pay" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Sage_pay/Sage_pay_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Sage_pay/Sage_pay_cardvariable.ts new file mode 100644 index 0000000..932eec0 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Sage_pay/Sage_pay_cardvariable.ts @@ -0,0 +1,4 @@ +export const Sage_paycardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Sage_pays/Sage_pays.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Sage_pays/Sage_pays.component.html new file mode 100644 index 0000000..fd58eb1 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Sage_pays/Sage_pays.component.html @@ -0,0 +1,387 @@ + +
+
+
+

Sage_pays

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Vender id + + + + Password + + + + Url + + + + + + Action + + + + + +{{user. vender_id }} + + +{{user. password }} + + +{{user.url}} + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Sage_pays/Sage_pays.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Sage_pays/Sage_pays.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Sage_pays/Sage_pays.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Sage_pays/Sage_pays.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Sage_pays/Sage_pays.component.ts new file mode 100644 index 0000000..709932f --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Sage_pays/Sage_pays.component.ts @@ -0,0 +1,298 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Sage_paysservice} from './Sage_pays.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 { Sage_payscardvariable } from './Sage_pays_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Sage_pays', + templateUrl: './Sage_pays.component.html', + styleUrls: ['./Sage_pays.component.scss'] +}) +export class Sage_paysComponent implements OnInit { + cardButton = Sage_payscardvariable.cardButton; + cardmodeldata = Sage_payscardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Sage_payscardvariable.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 = 'Sage_pays_formCode' +tableName = 'Sage_pays'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Sage_paysservice, + 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({ +vender_id : [null,[Validators.required]], + +password : [null], +confirmpassword : [null], + +url : [null], + + + + + }, { + validator: ConfirmedpasswordValidator('password', 'confirmpassword') + + + + }); // 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 === "Sage_pays_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(); + +} + + +newpHidepassword: boolean = true; + newIconpassword: string = "eye"; +newShapeChangerpassword() { +this.newpHidepassword = !this.newpHidepassword; + if(this.newpHidepassword){ +this.newIconpassword = 'eye' } else { this.newIconpassword = 'eye-hide' } +} + + newaddpHidepassword: boolean = true; + newaddIconpassword: string = "eye"; +newaddChangerpassword() { this.newaddpHidepassword = !this.newaddpHidepassword; + if(this.newaddpHidepassword){ this.newaddIconpassword = 'eye' } else { + this.newaddIconpassword = 'eye-hide' } } + +isValidurl(url: string): boolean { + return /^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/.test(url); } + goTourlUrl(val){ window.open(val) } + +// updateaction +} + +export function ConfirmedpasswordValidator(controlName: string, matchingControlName: string){ + return (formGroup: FormGroup) => { + const control = formGroup.controls[controlName]; + const matchingControl = formGroup.controls[matchingControlName]; + if (matchingControl.errors && !matchingControl.errors.confirmedpasswordValidator) { + return; + } + if (control.value !== matchingControl.value) { + matchingControl.setErrors({ confirmedpasswordValidator: true }); + } else { + matchingControl.setErrors(null); + } + } +} + + + + diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Sage_pays/Sage_pays.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Sage_pays/Sage_pays.service.ts new file mode 100644 index 0000000..d0be83e --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Sage_pays/Sage_pays.service.ts @@ -0,0 +1,39 @@ +import { Injectable } from '@angular/core'; +import { Observable } from "rxjs"; +import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http"; +import { ApiRequestService } from "src/app/services/api/api-request.service"; +import { environment } from 'src/environments/environment'; +@Injectable({ + providedIn: 'root' +}) +export class Sage_paysservice{ + private baseURL = "Sage_pays/Sage_pays" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Sage_pays/Sage_pays_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Sage_pays/Sage_pays_cardvariable.ts new file mode 100644 index 0000000..945ce5d --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Sage_pays/Sage_pays_cardvariable.ts @@ -0,0 +1,4 @@ +export const Sage_payscardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Site/Site.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Site/Site.component.html new file mode 100644 index 0000000..19ad7e4 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Site/Site.component.html @@ -0,0 +1,606 @@ + +
+
+
+

Site

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Name + + + + Isdefault + + + + Enable + + + + Host + + + + Relative path + + + + local + + + + Enable form + + + + Enable to + + + + + + + + Action + + + + + +{{user. name }} + + +{{user. isdefault }} + + +{{user. enable }} + + +{{user. host }} + + +{{user. relative_path }} + + +{{user. local }} + + +{{user. enable_form }} + + +{{user. enable_to }} + + + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Site/Site.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Site/Site.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Site/Site.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Site/Site.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Site/Site.component.ts new file mode 100644 index 0000000..41035f6 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Site/Site.component.ts @@ -0,0 +1,467 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Siteservice} from './Site.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 { Sitecardvariable } from './Site_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Site', + templateUrl: './Site.component.html', + styleUrls: ['./Site.component.scss'] +}) +export class SiteComponent implements OnInit { + cardButton = Sitecardvariable.cardButton; + cardmodeldata = Sitecardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Sitecardvariable.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 = 'Site_formCode' +tableName = 'Site'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Siteservice, + private alertService: AlertService, + private toastr: ToastrService, + private _fb: FormBuilder, + ) { } +// component button + ngOnInit(): void { + if(this.cardmodeldata !== ''){ + this.cardmodal = JSON.parse(this.cardmodeldata); + this.dashboardArray = this.cardmodal.dashboard.slice(); + console.log(this.dashboardArray) + } + this.userrole=this.userInfoService.getRoles(); + this.getData(); + this.entryForm = this._fb.group({ +name : [null], + +isdefault : [false], + +enable : [false], + +host : [null], + +relative_path : [null], + +local : [null], + +enable_form : [null], + +enable_to : [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 === "Site_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 + + + + + + + + + + + + + + + + + + + + } + + + + + + + + + + + + + + + + +FileDataSnapshot: any[]; + selectedSnapshot: any[]; + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + + + + + + + + + + + + + + this.selectedsnapshot = []; + this.mainService.uploadSnapshotgetById(row.id,this.tableName).subscribe(uploaddata =>{ + console.log(uploaddata); + this.FileDatasnapshot = uploaddata; + + }) + + + 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); + + + + + + + + + + + + + + + + +for (let i = 0; i < this.selectedsnapshot.length; i++){ + + this.mainService.uploadSnapshot(data.id,this.tableName,this.selectedsnapshot[i]).subscribe(uploaddata =>{ + console.log(uploaddata); + }) +} + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("update Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Updated"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Updated"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } +onCreate() { + this.modalAdd=false; + + + + + + + + + + + + + + + + + + + this.mainService.create(this.entryForm.value).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Added Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500); + + + + + + + + + + + + + + + +for (let i = 0; i < this.selectedsnapshot.length; i++){ + + this.mainService.uploadSnapshot(data.id,this.tableName,this.selectedsnapshot[i]).subscribe(uploaddata =>{ + console.log(uploaddata); + }) +} + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("Added Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Added"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Added"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } + goToAdd(row) { +this.modalAdd = true; this.submitted = false; + + + + + + + + + + + + + + + +this.FileDataSnapshot = []; +this.selectedSnapshot =[]; + + + } + submitted = false; +onSubmit() { + console.log(this.entryForm.value); + this.submitted = true; + if (this.entryForm.invalid) { + return; + }this.onCreate(); + +} + + + + + + + + + + + + + + + + +filePreviewsnapshot: string | ArrayBuffer | null = null; +FileDatasnapshot: {uploadedfile_name?:any, filePreview: string | ArrayBuffer | null }[] = []; // Initialize the array +selectedsnapshot: File[]=[]; +public onFileChangedsnapshot(event, index) { + const files = event.target.files; + for (let i = 0; i < files.length; i++) { + const file = files[i]; + this.FileDatasnapshot[index].uploadedfile_name = files[i].name; + this.selectedsnapshot.push(files[i]); + if (file.type.startsWith('image/')) { + const reader = new FileReader(); + reader.onload = (e) => { + // Set the file preview source + const filePreview = e.target?.result as string; + this.FileDatasnapshot[index] = { + ...this.FileDatasnapshot[index], // Preserve existing properties + filePreview: filePreview // Update only the filePreview property + }; + }; + reader.readAsDataURL(file); + } + } +} + onAddLinessnapshot(){ + this.FileDatasnapshot.push({ + uploadedfile_name: "", + filePreview: "", + // f3: "", + }); + } + deleteRowsnapshot(index,id) { + this.FileDatasnapshot.splice(index, 1); + + if(id){ + this.mainService.uploadSnapshotdelete(id).subscribe(data =>{ + console.log(data); + }) + } + } + +// updateaction +} + + + + + + + + + + + + + + + + + diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Site/Site.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Site/Site.service.ts new file mode 100644 index 0000000..2a650e9 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Site/Site.service.ts @@ -0,0 +1,64 @@ +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 Siteservice{ + private baseURL = "Site/Site" ; 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); + } + + + + + + + + + + + + + + + + + uploadSnapshot(ref:any, Site:any, file:any): Observable{ + const formData = new FormData(); + formData.append('file', file); + return this.apiRequest.postFormData(`FileUpload/Uploadeddocs/${ref}/${Site}`, formData); + } + + uploadSnapshotgetById(ref:any, Site:any,): Observable { + return this.apiRequest.get(`FileUpload/Uploadeddocs/${ref}/${Site}`); + } + + + uploadSnapshotdelete(id: number): Observable { + return this.apiRequest.delete(`FileUpload/Uploadeddocs/${id}`); + } + +// updateaction +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Site/Site_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Site/Site_cardvariable.ts new file mode 100644 index 0000000..c13be73 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Site/Site_cardvariable.ts @@ -0,0 +1,4 @@ +export const Sitecardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Staff_application/Staff_application.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Staff_application/Staff_application.component.html new file mode 100644 index 0000000..4aee7cd --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Staff_application/Staff_application.component.html @@ -0,0 +1,788 @@ + +
+
+
+

Staff_application

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Full name + + + + application code + + + + nationality + + + + passport number + + + + Filter btn + + + + Reset btn + + + + + + + + Action + + + + + +{{user. full_name }} + + +{{user. application_code }} + + +{{user. nationality }} + + +{{user. passport_number }} + + +{{user. filter_btn }} + + +{{user. reset_btn }} + + + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Staff_application/Staff_application.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Staff_application/Staff_application.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Staff_application/Staff_application.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Staff_application/Staff_application.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Staff_application/Staff_application.component.ts new file mode 100644 index 0000000..ee573c6 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Staff_application/Staff_application.component.ts @@ -0,0 +1,479 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Staff_applicationservice} from './Staff_application.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 { Staff_applicationcardvariable } from './Staff_application_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Staff_application', + templateUrl: './Staff_application.component.html', + styleUrls: ['./Staff_application.component.scss'] +}) +export class Staff_applicationComponent implements OnInit { + cardButton = Staff_applicationcardvariable.cardButton; + cardmodeldata = Staff_applicationcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Staff_applicationcardvariable.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 = 'Staff_application_formCode' +tableName = 'Staff_application'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Staff_applicationservice, + 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({ +full_name : [null], + +application_code : [null], + +nationality : [null], + +passport_number : [null,[Validators.required]], + +filter_btn : [null], + +reset_btn : [null], + +staffappchild: this._fb.array([this.initLinesForm()]), + + + + + + + + + + + + + + + + + }); // component_button200 + // form code start + this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { + console.log(data); + const jsonArray = data.map((str) => JSON.parse(str)); + this.additionalFieldsFromBackend = jsonArray; + this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Staff_application_formCode"); + console.log(this.checkFormCode); + console.log(this.additionalFieldsFromBackend); + if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) { + this.additionalFieldsFromBackend.forEach(field => { + if (field.formCode === this.formcode) { + if (!this.entryForm.contains(field.extValue)) { + // Add the control only if it doesn't exist in the form + this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue)); + } + } + }); + } + }); + console.log(this.entryForm.value); + // form code end + + + + + + + + + + + + + + + + } + + + + + + + + + + + + +// one to many start + initLinesForm() { return this._fb.group({ + + + + status: [null], + + + + full_name: [null], + + + + note: [null], + + + + nationality: [null], + + + + coupon: [null], + + + + supllier: [null], + + + + visa: [null], + + + + application_code: [null], + + + + phone_number: [null], + + + + email_field: [null], + + + + supplier_acknowledged: [null], + + + + entry_date: [null], + + + +}); } +get controls() {return (this.entryForm.get("staffappchild") as FormArray).controls; } +onAddLines() { +(this.entryForm.get("staffappchild")).push(this.initLinesForm()); } +onRemoveLines(index: number) { +(this.entryForm.get("staffappchild")).removeAt(index); } + oneditLines() { this.components.push({ + + +status: "", + + + +full_name: "", + + + +note: "", + + + +nationality: "", + + + +coupon: "", + + + +supllier: "", + + + +visa: "", + + + +application_code: "", + + + +phone_number: "", + + + +email_field: "", + + + +supplier_acknowledged: "", + + + +entry_date: "", + + + + }); } + deleteRow(index) { + this.components.splice(index, 1); + } + components; + // one to many end + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + + + + + + + + + +this.components = row.staffappchild; + + + 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Staff_application/Staff_application.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Staff_application/Staff_application.service.ts new file mode 100644 index 0000000..d6ca48f --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Staff_application/Staff_application.service.ts @@ -0,0 +1,47 @@ +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 Staff_applicationservice{ + private baseURL = "Staff_application/Staff_application" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Staff_application/Staff_application_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Staff_application/Staff_application_cardvariable.ts new file mode 100644 index 0000000..9ccf70a --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Staff_application/Staff_application_cardvariable.ts @@ -0,0 +1,4 @@ +export const Staff_applicationcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Staffappchild/Staffappchild.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Staffappchild/Staffappchild.component.html new file mode 100644 index 0000000..e52eb56 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Staffappchild/Staffappchild.component.html @@ -0,0 +1,711 @@ + +
+
+
+

Staffappchild

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Full name + + + + Supplier Acknowledged + + + + Status + + + + Entry date + + + + application code + + + + Email Field + + + + Phone Number + + + + Supllier + + + + nationality + + + + note + + + + visa + + + + coupon + + + + + + Action + + + + + +{{user. full_name }} + + +{{user. supplier_acknowledged }} + + +{{user. status }} + + +{{user. entry_date }} + + +{{user. application_code }} + + +{{user. email_field }} + + +{{user. phone_number }} + + +{{user. supllier }} + + +{{user. nationality }} + + +{{user. note }} + + +{{user. visa }} + + +{{user. coupon }} + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Staffappchild/Staffappchild.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Staffappchild/Staffappchild.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Staffappchild/Staffappchild.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Staffappchild/Staffappchild.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Staffappchild/Staffappchild.component.ts new file mode 100644 index 0000000..d2c7d14 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Staffappchild/Staffappchild.component.ts @@ -0,0 +1,489 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Staffappchildservice} from './Staffappchild.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 { Staffappchildcardvariable } from './Staffappchild_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Staffappchild', + templateUrl: './Staffappchild.component.html', + styleUrls: ['./Staffappchild.component.scss'] +}) +export class StaffappchildComponent implements OnInit { + cardButton = Staffappchildcardvariable.cardButton; + cardmodeldata = Staffappchildcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Staffappchildcardvariable.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 = 'Staffappchild_formCode' +tableName = 'Staffappchild'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Staffappchildservice, + 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({ +full_name : [null], + +supplier_acknowledged : [false], + +status : [null], + +entry_date : [null], + +application_code : [null], + +email_field : [null], + +phone_number: ['+91'], + +supllier : [null], + +nationality : [null], + +note : [null], + +visa : [null], + +coupon : [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 === "Staffappchild_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_field(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); +} + + + + + + + + + + + +// updateaction +} + + + + + + + + + + + + + + + + + + + + + + + diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Staffappchild/Staffappchild.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Staffappchild/Staffappchild.service.ts new file mode 100644 index 0000000..9b4dae5 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Staffappchild/Staffappchild.service.ts @@ -0,0 +1,57 @@ +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 Staffappchildservice{ + private baseURL = "Staffappchild/Staffappchild" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Staffappchild/Staffappchild_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Staffappchild/Staffappchild_cardvariable.ts new file mode 100644 index 0000000..a1bc59e --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Staffappchild/Staffappchild_cardvariable.ts @@ -0,0 +1,4 @@ +export const Staffappchildcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Status/Status.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Status/Status.component.html new file mode 100644 index 0000000..95f70b8 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Status/Status.component.html @@ -0,0 +1,367 @@ + +
+
+
+

Status

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Status + + + + + + Action + + + + + +{{user. status }} + + + + + + + +
Who Column
+
Account ID: {{user.accountId}}
+
Created At: {{user.createdAt| date}}
+
Created By: {{user.createdBy}}
+
Updated At: {{user.updatedAt | date}}
+
Updated By: {{user.updatedBy}}
+
+
+
+ + + + + + + +
+ + + Users per page + {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}} + of {{pagination.totalItems}} users + + +
+ + + +
+
+
+
+
+
+ +
+
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ] }} + {{afterText(item.fieldtext)}} +
+ +
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ] | date}} + {{afterText(item.fieldtext)}} +
+
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ]}} + {{afterText(item.fieldtext)}} +
+ +
+
+
+ + +
+ +
+ +
File Preview
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Status/Status.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Status/Status.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Status/Status.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Status/Status.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Status/Status.component.ts new file mode 100644 index 0000000..5fc2801 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Status/Status.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 { Statusservice} from './Status.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 { Statuscardvariable } from './Status_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Status', + templateUrl: './Status.component.html', + styleUrls: ['./Status.component.scss'] +}) +export class StatusComponent implements OnInit { + cardButton = Statuscardvariable.cardButton; + cardmodeldata = Statuscardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Statuscardvariable.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 = 'Status_formCode' +tableName = 'Status'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Statusservice, + 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({ +status : [null], + + + + + }); // component_button200 + // form code start + this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { + console.log(data); + const jsonArray = data.map((str) => JSON.parse(str)); + this.additionalFieldsFromBackend = jsonArray; + this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Status_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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Status/Status.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Status/Status.service.ts new file mode 100644 index 0000000..8300562 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Status/Status.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 Statusservice{ + private baseURL = "Status/Status" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Status/Status_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Status/Status_cardvariable.ts new file mode 100644 index 0000000..9153439 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Status/Status_cardvariable.ts @@ -0,0 +1,4 @@ +export const Statuscardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Supplier_report/Supplier_report.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Supplier_report/Supplier_report.component.html new file mode 100644 index 0000000..51725cc --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Supplier_report/Supplier_report.component.html @@ -0,0 +1,848 @@ + +
+
+
+

Supplier_report

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Entry date form + + + + Entry date to + + + + full name + + + + Application code + + + + Nationality + + + + supplier + + + + passport number + + + + filter btn + + + + Reset btn + + + + + + + + Action + + + + + +{{user. entry_date_form }} + + +{{user. entry_date_to }} + + +{{user. full_name }} + + +{{user. application_code }} + + +{{user. nationality }} + + +{{user. supplier }} + + +{{user. passport_number }} + + +{{user. filter_btn }} + + +{{user. reset_btn }} + + + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Supplier_report/Supplier_report.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Supplier_report/Supplier_report.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Supplier_report/Supplier_report.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Supplier_report/Supplier_report.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Supplier_report/Supplier_report.component.ts new file mode 100644 index 0000000..59c756e --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Supplier_report/Supplier_report.component.ts @@ -0,0 +1,543 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Supplier_reportservice} from './Supplier_report.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 { Supplier_reportcardvariable } from './Supplier_report_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Supplier_report', + templateUrl: './Supplier_report.component.html', + styleUrls: ['./Supplier_report.component.scss'] +}) +export class Supplier_reportComponent implements OnInit { + cardButton = Supplier_reportcardvariable.cardButton; + cardmodeldata = Supplier_reportcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Supplier_reportcardvariable.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 = 'Supplier_report_formCode' +tableName = 'Supplier_report'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Supplier_reportservice, + 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({ +entry_date_form : [null], + +entry_date_to : [null], + +full_name : [null], + +application_code : [null], + +nationality : [null], + +supplier : [null], + +passport_number : [null,[Validators.required]], + +filter_btn : [null], + +reset_btn : [null], + +supplier_report_line: this._fb.array([this.initLinesForm()]), + + + + + + + + + + + + + + + + + + + + + + + }); // component_button200 + // form code start + this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { + console.log(data); + const jsonArray = data.map((str) => JSON.parse(str)); + this.additionalFieldsFromBackend = jsonArray; + this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Supplier_report_formCode"); + console.log(this.checkFormCode); + console.log(this.additionalFieldsFromBackend); + if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) { + this.additionalFieldsFromBackend.forEach(field => { + if (field.formCode === this.formcode) { + if (!this.entryForm.contains(field.extValue)) { + // Add the control only if it doesn't exist in the form + this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue)); + } + } + }); + } + }); + console.log(this.entryForm.value); + // form code end + + + + + + + + + + + + + + + + + + + + + + } + + + + + + + + + + + + + + + + + + +// one to many start + initLinesForm() { return this._fb.group({ + + + + full_name: [null], + + + + agent: [null], + + + + visa_processing_time: [null], + + + + application_code: [null], + + + + nationality: [null], + + + + total_price: [null], + + + + visa_entry_type: [null], + + + + passport_number: [null], + + + + visa_duration: [null], + + + + supplier: [null], + + + + entry_date: [null], + + + +}); } +get controls() {return (this.entryForm.get("supplier_report_line") as FormArray).controls; } +onAddLines() { +(this.entryForm.get("supplier_report_line")).push(this.initLinesForm()); } +onRemoveLines(index: number) { +(this.entryForm.get("supplier_report_line")).removeAt(index); } + oneditLines() { this.components.push({ + + +full_name: "", + + + +agent: "", + + + +visa_processing_time: "", + + + +application_code: "", + + + +nationality: "", + + + +total_price: "", + + + +visa_entry_type: "", + + + +passport_number: "", + + + +visa_duration: "", + + + +supplier: "", + + + +entry_date: "", + + + + }); } + deleteRow(index) { + this.components.splice(index, 1); + } + components; + // one to many end + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + + + + + + + + + + + + + + + +this.components = row.supplier_report_line; + + + 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Supplier_report/Supplier_report.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Supplier_report/Supplier_report.service.ts new file mode 100644 index 0000000..34868f3 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Supplier_report/Supplier_report.service.ts @@ -0,0 +1,53 @@ +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 Supplier_reportservice{ + private baseURL = "Supplier_report/Supplier_report" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Supplier_report/Supplier_report_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Supplier_report/Supplier_report_cardvariable.ts new file mode 100644 index 0000000..cc16a31 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Supplier_report/Supplier_report_cardvariable.ts @@ -0,0 +1,4 @@ +export const Supplier_reportcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Supplier_report_line/Supplier_report_line.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Supplier_report_line/Supplier_report_line.component.html new file mode 100644 index 0000000..ac47fb4 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Supplier_report_line/Supplier_report_line.component.html @@ -0,0 +1,768 @@ + +
+
+
+

Supplier_report_line

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Full name + + + + Supplier + + + + Agent + + + + Entry date + + + + Application code + + + + nationality + + + + passport number + + + + Visa entry type + + + + Visa Duration + + + + visa processing time + + + + total price + + + + + + Action + + + + + +{{user. full_name }} + + +{{user. supplier }} + + +{{user. agent }} + + +{{user. entry_date }} + + +{{user. application_code }} + + +{{user. nationality }} + + +{{user. passport_number }} + + +{{user. visa_entry_type }} + + +{{user. visa_duration }} + + +{{user. visa_processing_time }} + + +{{user. total_price }} + + + + + + + +
Who Column
+
Account ID: {{user.accountId}}
+
Created At: {{user.createdAt| date}}
+
Created By: {{user.createdBy}}
+
Updated At: {{user.updatedAt | date}}
+
Updated By: {{user.updatedBy}}
+
+
+
+ + + + + + + +
+ + + Users per page + {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}} + of {{pagination.totalItems}} users + + +
+ + + +
+
+
+
+
+
+ +
+
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ] }} + {{afterText(item.fieldtext)}} +
+ +
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ] | date}} + {{afterText(item.fieldtext)}} +
+
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ]}} + {{afterText(item.fieldtext)}} +
+ +
+
+
+ + +
+ +
+ +
File Preview
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Supplier_report_line/Supplier_report_line.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Supplier_report_line/Supplier_report_line.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Supplier_report_line/Supplier_report_line.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Supplier_report_line/Supplier_report_line.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Supplier_report_line/Supplier_report_line.component.ts new file mode 100644 index 0000000..2f00b27 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Supplier_report_line/Supplier_report_line.component.ts @@ -0,0 +1,460 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Supplier_report_lineservice} from './Supplier_report_line.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 { Supplier_report_linecardvariable } from './Supplier_report_line_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Supplier_report_line', + templateUrl: './Supplier_report_line.component.html', + styleUrls: ['./Supplier_report_line.component.scss'] +}) +export class Supplier_report_lineComponent implements OnInit { + cardButton = Supplier_report_linecardvariable.cardButton; + cardmodeldata = Supplier_report_linecardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Supplier_report_linecardvariable.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 = 'Supplier_report_line_formCode' +tableName = 'Supplier_report_line'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Supplier_report_lineservice, + 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({ +full_name : [null], + +supplier : [null], + +agent : [null], + +entry_date : [null], + +application_code : [null], + +nationality : [null], + +passport_number : [null,[Validators.required]], + +visa_entry_type : [null], + +visa_duration : [null], + +visa_processing_time : [null], + +total_price : [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 === "Supplier_report_line_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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Supplier_report_line/Supplier_report_line.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Supplier_report_line/Supplier_report_line.service.ts new file mode 100644 index 0000000..d8d498c --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Supplier_report_line/Supplier_report_line.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 Supplier_report_lineservice{ + private baseURL = "Supplier_report_line/Supplier_report_line" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Supplier_report_line/Supplier_report_line_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Supplier_report_line/Supplier_report_line_cardvariable.ts new file mode 100644 index 0000000..da2370c --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Supplier_report_line/Supplier_report_line_cardvariable.ts @@ -0,0 +1,4 @@ +export const Supplier_report_linecardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Upload_visa/Upload_visa.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Upload_visa/Upload_visa.component.html new file mode 100644 index 0000000..1e0d4fd --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Upload_visa/Upload_visa.component.html @@ -0,0 +1,436 @@ + +
+
+
+

Upload_visa

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + + + Rejected visa + + + + Application + + + + + + Action + + + + + + + +{{user. rejected_visa }} + + +{{user. application }} + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Upload_visa/Upload_visa.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Upload_visa/Upload_visa.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Upload_visa/Upload_visa.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Upload_visa/Upload_visa.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Upload_visa/Upload_visa.component.ts new file mode 100644 index 0000000..fc784fd --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Upload_visa/Upload_visa.component.ts @@ -0,0 +1,322 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Upload_visaservice} from './Upload_visa.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 { Upload_visacardvariable } from './Upload_visa_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Upload_visa', + templateUrl: './Upload_visa.component.html', + styleUrls: ['./Upload_visa.component.scss'] +}) +export class Upload_visaComponent implements OnInit { + cardButton = Upload_visacardvariable.cardButton; + cardmodeldata = Upload_visacardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Upload_visacardvariable.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 = 'Upload_visa_formCode' +tableName = 'Upload_visa'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Upload_visaservice, + 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({ + + +rejected_visa : [null], + +application : [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 === "Upload_visa_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.selectedfileupload_visa = []; + this.mainService.uploadfilegetByIdfileupload_visa(row.id,this.tableName).subscribe(uploaddata =>{ + console.log(uploaddata); + this.FileDatafileupload_visa = uploaddata; + + }) + + + + + + + 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); +for (let i = 0; i < this.selectedfileupload_visa.length; i++){ + + this.mainService.uploadfilefileupload_visa(data.id,this.tableName,this.selectedfileupload_visa[i]).subscribe(uploaddata =>{ + console.log(uploaddata); + }) +} + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("update Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Updated"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Updated"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } +onCreate() { + this.modalAdd=false; + + + + + + + this.mainService.create(this.entryForm.value).subscribe( + (data) => { + console.log(data); + if (data || data.status >= 200 && data.status <= 299) { + this.toastr.success("Added Successfully"); + } +setTimeout(() => { + this.ngOnInit(); + }, 500);for (let i = 0; i < this.selectedfileupload_visa.length; i++){ + + this.mainService.uploadfilefileupload_visa(data.id,this.tableName,this.selectedfileupload_visa[i]).subscribe(uploaddata =>{ + console.log(uploaddata); + }) +} + + + + + + + }, (error) => { + console.log(error); + if (error.status >= 200 && error.status <= 299) { + // this.toastr.success("Added Succesfully"); + } + if (error.status >= 400 && error.status <= 499) { + this.toastr.error("Not Added"); + } + if (error.status >= 500 && error.status <= 599) { + this.toastr.error("Not Added"); + } + }); + setTimeout(() => { + this.ngOnInit(); + }, 500); + } + goToAdd(row) { +this.modalAdd = true; this.submitted = false;this.FileDatafileupload_visa = []; +this.selectedfileupload_visa =[]; + + + + + + + } + submitted = false; +onSubmit() { + console.log(this.entryForm.value); + this.submitted = true; + if (this.entryForm.invalid) { + return; + }this.onCreate(); + +} +filePreviewfileupload_visa: string | ArrayBuffer | null = null; +FileDatafileupload_visa: {uploadedfile_name?:any, filePreview: string | ArrayBuffer | null }[] = []; // Initialize the array +selectedfileupload_visa: File[]=[]; +public onFileChangedfileupload_visa(event, index) { + const files = event.target.files; + for (let i = 0; i < files.length; i++) { + const file = files[i]; + this.FileDatafileupload_visa[index].uploadedfile_name = files[i].name; + this.selectedfileupload_visa.push(files[i]); + if (file.type.startsWith('file/')) { + const reader = new FileReader(); + reader.onload = (e) => { + // Set the file preview source + const filePreview = e.target?.result as string; + this.FileDatafileupload_visa[index] = { + ...this.FileDatafileupload_visa[index], // Preserve existing properties + filePreview: filePreview // Update only the filePreview property + }; + }; + reader.readAsDataURL(file); + } + } +} + onAddLinesfileupload_visa(){ + this.FileDatafileupload_visa.push({ + uploadedfile_name: "", + filePreview: "", + // f3: "", + }); + } + deleteRowfileupload_visa(index,id) { + this.FileDatafileupload_visa.splice(index, 1); + + if(id){ + this.mainService.uploadfiledeletefileupload_visa(id).subscribe(data =>{ + console.log(data); + }) + } + } + + + + + +// updateaction +} + + + + + diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Upload_visa/Upload_visa.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Upload_visa/Upload_visa.service.ts new file mode 100644 index 0000000..a3c0127 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Upload_visa/Upload_visa.service.ts @@ -0,0 +1,52 @@ +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 Upload_visaservice{ + private baseURL = "Upload_visa/Upload_visa" ; constructor( + private http: HttpClient, + private apiRequest: ApiRequestService, + ) { } + getAll(page?: number, size?: number): Observable { + return this.apiRequest.get(this.baseURL); + } + getById(id: number): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.get(_http); + } + create(data: any): Observable { + return this.apiRequest.post(this.baseURL, data); + } + update(id: number, data: any): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.put(_http, data); + } + delete(id: number): Observable { + const _http = this.baseURL + "/" + id; + return this.apiRequest.delete(_http); + } + uploadfilefileupload_visa(ref:any, Upload_visa:any, file:any): Observable{ + const formData = new FormData(); + formData.append('file', file); + return this.apiRequest.postFormData(`FileUpload/Uploadeddocs/${ref}/${Upload_visa}`, formData); + } + + uploadfilegetByIdfileupload_visa(ref:any, Upload_visa:any,): Observable { + return this.apiRequest.get(`FileUpload/Uploadeddocs/${ref}/${Upload_visa}`); + } + + + uploadfiledeletefileupload_visa(id: number): Observable { + return this.apiRequest.delete(`FileUpload/Uploadeddocs/${id}`); + } + + + + + +// updateaction +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Upload_visa/Upload_visa_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Upload_visa/Upload_visa_cardvariable.ts new file mode 100644 index 0000000..3586787 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Upload_visa/Upload_visa_cardvariable.ts @@ -0,0 +1,4 @@ +export const Upload_visacardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_app_order/Visa_app_order.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_app_order/Visa_app_order.component.html new file mode 100644 index 0000000..6eb9533 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_app_order/Visa_app_order.component.html @@ -0,0 +1,386 @@ + +
+
+
+

Visa_app_order

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Name + + + + rate + + + + Price + + + + + + Action + + + + + +{{user. name }} + + +{{user. rate }} + + +{{user. pricename }} + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_app_order/Visa_app_order.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_app_order/Visa_app_order.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_app_order/Visa_app_order.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_app_order/Visa_app_order.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_app_order/Visa_app_order.component.ts new file mode 100644 index 0000000..ff4d5f8 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_app_order/Visa_app_order.component.ts @@ -0,0 +1,273 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Visa_app_orderservice} from './Visa_app_order.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 { Visa_app_ordercardvariable } from './Visa_app_order_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Visa_app_order', + templateUrl: './Visa_app_order.component.html', + styleUrls: ['./Visa_app_order.component.scss'] +}) +export class Visa_app_orderComponent implements OnInit { + cardButton = Visa_app_ordercardvariable.cardButton; + cardmodeldata = Visa_app_ordercardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Visa_app_ordercardvariable.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 = 'Visa_app_order_formCode' +tableName = 'Visa_app_order'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Visa_app_orderservice, + private alertService: AlertService, + private toastr: ToastrService, + private _fb: FormBuilder, + ) { } +// component button + ngOnInit(): void { + if(this.cardmodeldata !== ''){ + this.cardmodal = JSON.parse(this.cardmodeldata); + this.dashboardArray = this.cardmodal.dashboard.slice(); + console.log(this.dashboardArray) + } + this.userrole=this.userInfoService.getRoles(); + this.getData(); + this.entryForm = this._fb.group({ +name : [null], + +rate : [null,[Validators.required]], + +price : [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 === "Visa_app_order_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.getallprice(); + + + } + + + + + + + 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(); + +} + + + + +selectprice ; +getallprice() { + this.mainService.getAllprice().subscribe(data=>{ +this.selectprice = data; +console.log(data); +},(error) => { console.log(error); }); } + +// updateaction +} + + + + + diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_app_order/Visa_app_order.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_app_order/Visa_app_order.service.ts new file mode 100644 index 0000000..bc76245 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_app_order/Visa_app_order.service.ts @@ -0,0 +1,40 @@ +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 Visa_app_orderservice{ + private baseURL = "Visa_app_order/Visa_app_order" ; 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); + } + + + + +getAllprice(): Observable { +return this.apiRequest.get("Visa_app_order_ListFilter1/Visa_app_order_ListFilter1"); } + +// updateaction +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_app_order/Visa_app_order_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_app_order/Visa_app_order_cardvariable.ts new file mode 100644 index 0000000..ef7dc6e --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_app_order/Visa_app_order_cardvariable.ts @@ -0,0 +1,4 @@ +export const Visa_app_ordercardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_billing/Visa_billing.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_billing/Visa_billing.component.html new file mode 100644 index 0000000..0ed4723 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_billing/Visa_billing.component.html @@ -0,0 +1,358 @@ + +
+
+
+

Visa_billing

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Visa entry type + + + + + + Action + + + + + +{{user. visa_entry_type }} + + + + + + + +
Who Column
+
Account ID: {{user.accountId}}
+
Created At: {{user.createdAt| date}}
+
Created By: {{user.createdBy}}
+
Updated At: {{user.updatedAt | date}}
+
Updated By: {{user.updatedBy}}
+
+
+
+ + + + + + + +
+ + + Users per page + {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}} + of {{pagination.totalItems}} users + + +
+ + + +
+
+
+
+
+
+ +
+
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ] }} + {{afterText(item.fieldtext)}} +
+ +
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ] | date}} + {{afterText(item.fieldtext)}} +
+
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ]}} + {{afterText(item.fieldtext)}} +
+ +
+
+
+ + +
+ +
+ +
File Preview
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_billing/Visa_billing.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_billing/Visa_billing.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_billing/Visa_billing.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_billing/Visa_billing.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_billing/Visa_billing.component.ts new file mode 100644 index 0000000..ec39e61 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_billing/Visa_billing.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 { Visa_billingservice} from './Visa_billing.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 { Visa_billingcardvariable } from './Visa_billing_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Visa_billing', + templateUrl: './Visa_billing.component.html', + styleUrls: ['./Visa_billing.component.scss'] +}) +export class Visa_billingComponent implements OnInit { + cardButton = Visa_billingcardvariable.cardButton; + cardmodeldata = Visa_billingcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Visa_billingcardvariable.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 = 'Visa_billing_formCode' +tableName = 'Visa_billing'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Visa_billingservice, + 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({ +visa_entry_type : [null], + + + + + }); // component_button200 + // form code start + this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { + console.log(data); + const jsonArray = data.map((str) => JSON.parse(str)); + this.additionalFieldsFromBackend = jsonArray; + this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Visa_billing_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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_billing/Visa_billing.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_billing/Visa_billing.service.ts new file mode 100644 index 0000000..47e3d17 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_billing/Visa_billing.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 Visa_billingservice{ + private baseURL = "Visa_billing/Visa_billing" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_billing/Visa_billing_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_billing/Visa_billing_cardvariable.ts new file mode 100644 index 0000000..5c29757 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_billing/Visa_billing_cardvariable.ts @@ -0,0 +1,4 @@ +export const Visa_billingcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_duration/Visa_duration.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_duration/Visa_duration.component.html new file mode 100644 index 0000000..f97f6ec --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_duration/Visa_duration.component.html @@ -0,0 +1,349 @@ + +
+
+
+

Visa_duration

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Visa Duration + + + + + + Action + + + + + +{{user. visa_duration }} + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_duration/Visa_duration.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_duration/Visa_duration.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_duration/Visa_duration.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_duration/Visa_duration.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_duration/Visa_duration.component.ts new file mode 100644 index 0000000..41ec880 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_duration/Visa_duration.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 { Visa_durationservice} from './Visa_duration.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 { Visa_durationcardvariable } from './Visa_duration_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Visa_duration', + templateUrl: './Visa_duration.component.html', + styleUrls: ['./Visa_duration.component.scss'] +}) +export class Visa_durationComponent implements OnInit { + cardButton = Visa_durationcardvariable.cardButton; + cardmodeldata = Visa_durationcardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Visa_durationcardvariable.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 = 'Visa_duration_formCode' +tableName = 'Visa_duration'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Visa_durationservice, + 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({ +visa_duration : [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 === "Visa_duration_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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_duration/Visa_duration.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_duration/Visa_duration.service.ts new file mode 100644 index 0000000..e25a5b8 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_duration/Visa_duration.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 Visa_durationservice{ + private baseURL = "Visa_duration/Visa_duration" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_duration/Visa_duration_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_duration/Visa_duration_cardvariable.ts new file mode 100644 index 0000000..e3c3f89 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_duration/Visa_duration_cardvariable.ts @@ -0,0 +1,4 @@ +export const Visa_durationcardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_prices/Visa_prices.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_prices/Visa_prices.component.html new file mode 100644 index 0000000..8623c16 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_prices/Visa_prices.component.html @@ -0,0 +1,559 @@ + +
+
+
+

Visa_prices

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + visa entry type + + + + visa duration + + + + visa processing + + + + Total price + + + + cost + + + + + + Action + + + + + +{{user. visa_entry_type }} + + +{{user. visa_duration }} + + +{{user. visa_processing }} + + +{{user. total_price }} + + +{{user. cost }} + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_prices/Visa_prices.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_prices/Visa_prices.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_prices/Visa_prices.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_prices/Visa_prices.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_prices/Visa_prices.component.ts new file mode 100644 index 0000000..6098277 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_prices/Visa_prices.component.ts @@ -0,0 +1,316 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Visa_pricesservice} from './Visa_prices.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 { Visa_pricescardvariable } from './Visa_prices_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Visa_prices', + templateUrl: './Visa_prices.component.html', + styleUrls: ['./Visa_prices.component.scss'] +}) +export class Visa_pricesComponent implements OnInit { + cardButton = Visa_pricescardvariable.cardButton; + cardmodeldata = Visa_pricescardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Visa_pricescardvariable.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 = 'Visa_prices_formCode' +tableName = 'Visa_prices'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Visa_pricesservice, + 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({ +visa_entry_type : [null], + +visa_duration : [null], + +visa_processing : [null], + +total_price : [null,[Validators.required]], + +cost : [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 === "Visa_prices_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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_prices/Visa_prices.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_prices/Visa_prices.service.ts new file mode 100644 index 0000000..04d1b7b --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_prices/Visa_prices.service.ts @@ -0,0 +1,43 @@ +import { Injectable } from '@angular/core'; +import { Observable } from "rxjs"; +import { HttpClient, HttpHeaders, HttpParams, } from "@angular/common/http"; +import { ApiRequestService } from "src/app/services/api/api-request.service"; +import { environment } from 'src/environments/environment'; +@Injectable({ + providedIn: 'root' +}) +export class Visa_pricesservice{ + private baseURL = "Visa_prices/Visa_prices" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_prices/Visa_prices_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_prices/Visa_prices_cardvariable.ts new file mode 100644 index 0000000..0ca2c5e --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_prices/Visa_prices_cardvariable.ts @@ -0,0 +1,4 @@ +export const Visa_pricescardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_processing_time/Visa_processing_time.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_processing_time/Visa_processing_time.component.html new file mode 100644 index 0000000..b50e037 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_processing_time/Visa_processing_time.component.html @@ -0,0 +1,367 @@ + +
+
+
+

Visa_processing_time

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + visa processing time + + + + + + Action + + + + + +{{user. visa_processing_time }} + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_processing_time/Visa_processing_time.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_processing_time/Visa_processing_time.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_processing_time/Visa_processing_time.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_processing_time/Visa_processing_time.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_processing_time/Visa_processing_time.component.ts new file mode 100644 index 0000000..a25cc53 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_processing_time/Visa_processing_time.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 { Visa_processing_timeservice} from './Visa_processing_time.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 { Visa_processing_timecardvariable } from './Visa_processing_time_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Visa_processing_time', + templateUrl: './Visa_processing_time.component.html', + styleUrls: ['./Visa_processing_time.component.scss'] +}) +export class Visa_processing_timeComponent implements OnInit { + cardButton = Visa_processing_timecardvariable.cardButton; + cardmodeldata = Visa_processing_timecardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Visa_processing_timecardvariable.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 = 'Visa_processing_time_formCode' +tableName = 'Visa_processing_time'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Visa_processing_timeservice, + 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({ +visa_processing_time : [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 === "Visa_processing_time_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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_processing_time/Visa_processing_time.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_processing_time/Visa_processing_time.service.ts new file mode 100644 index 0000000..2c69858 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_processing_time/Visa_processing_time.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 Visa_processing_timeservice{ + private baseURL = "Visa_processing_time/Visa_processing_time" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_processing_time/Visa_processing_time_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_processing_time/Visa_processing_time_cardvariable.ts new file mode 100644 index 0000000..2c202bf --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_processing_time/Visa_processing_time_cardvariable.ts @@ -0,0 +1,4 @@ +export const Visa_processing_timecardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_status/Visa_status.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_status/Visa_status.component.html new file mode 100644 index 0000000..0936379 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_status/Visa_status.component.html @@ -0,0 +1,382 @@ + +
+
+
+

Visa_status

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Visa status + + + + Price + + + + + + Action + + + + + +{{user. visa_status }} + + +{{user. price }} + + + + + + + +
Who Column
+
Account ID: {{user.accountId}}
+
Created At: {{user.createdAt| date}}
+
Created By: {{user.createdBy}}
+
Updated At: {{user.updatedAt | date}}
+
Updated By: {{user.updatedBy}}
+
+
+
+ + + + + + + +
+ + + Users per page + {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}} + of {{pagination.totalItems}} users + + +
+ + + +
+
+
+
+
+
+ +
+
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ] }} + {{afterText(item.fieldtext)}} +
+ +
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ] | date}} + {{afterText(item.fieldtext)}} +
+
+ {{beforeText(item.fieldtext)}} + {{ app[transform(item.fieldtext) ]}} + {{afterText(item.fieldtext)}} +
+ +
+
+
+ + +
+ +
+ +
File Preview
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_status/Visa_status.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_status/Visa_status.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_status/Visa_status.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_status/Visa_status.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_status/Visa_status.component.ts new file mode 100644 index 0000000..bb37220 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_status/Visa_status.component.ts @@ -0,0 +1,250 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Visa_statusservice} from './Visa_status.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 { Visa_statuscardvariable } from './Visa_status_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Visa_status', + templateUrl: './Visa_status.component.html', + styleUrls: ['./Visa_status.component.scss'] +}) +export class Visa_statusComponent implements OnInit { + cardButton = Visa_statuscardvariable.cardButton; + cardmodeldata = Visa_statuscardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Visa_statuscardvariable.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 = 'Visa_status_formCode' +tableName = 'Visa_status'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Visa_statusservice, + 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({ +visa_status : [null], + +price : [null, { updateOn: 'blur' }], + + + + + + + }); // 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 === "Visa_status_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(); + +} + + +//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 +} + + + diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_status/Visa_status.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_status/Visa_status.service.ts new file mode 100644 index 0000000..8768738 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_status/Visa_status.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 Visa_statusservice{ + private baseURL = "Visa_status/Visa_status" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_status/Visa_status_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_status/Visa_status_cardvariable.ts new file mode 100644 index 0000000..d5012d6 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Visa_status/Visa_status_cardvariable.ts @@ -0,0 +1,4 @@ +export const Visa_statuscardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero/Xero.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero/Xero.component.html new file mode 100644 index 0000000..85f0224 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero/Xero.component.html @@ -0,0 +1,314 @@ + +
+
+
+

Xero

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + customer key + + + + + + Action + + + + + +{{user. customer_key }} + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero/Xero.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero/Xero.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero/Xero.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero/Xero.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero/Xero.component.ts new file mode 100644 index 0000000..9dd9014 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero/Xero.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 { Xeroservice} from './Xero.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 { Xerocardvariable } from './Xero_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Xero', + templateUrl: './Xero.component.html', + styleUrls: ['./Xero.component.scss'] +}) +export class XeroComponent implements OnInit { + cardButton = Xerocardvariable.cardButton; + cardmodeldata = Xerocardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Xerocardvariable.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 = 'Xero_formCode' +tableName = 'Xero'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Xeroservice, + 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({ +customer_key : [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 === "Xero_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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero/Xero.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero/Xero.service.ts new file mode 100644 index 0000000..0b0f3a5 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero/Xero.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 Xeroservice{ + private baseURL = "Xero/Xero" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero/Xero_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero/Xero_cardvariable.ts new file mode 100644 index 0000000..b4f214b --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero/Xero_cardvariable.ts @@ -0,0 +1,4 @@ +export const Xerocardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero_invoices/Xero_invoices.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero_invoices/Xero_invoices.component.html new file mode 100644 index 0000000..10a5f29 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero_invoices/Xero_invoices.component.html @@ -0,0 +1,714 @@ + +
+
+
+

Xero_invoices

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Payed + + + + Invoice sent + + + + customer + + + + Agent + + + + Reset btn + + + + Filter btn + + + + + + + + Action + + + + + +{{user. payed }} + + +{{user. invoice_sent }} + + +{{user. customer }} + + +{{user. agent }} + + +{{user. reset_btn }} + + +{{user. filter_btn }} + + + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero_invoices/Xero_invoices.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero_invoices/Xero_invoices.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero_invoices/Xero_invoices.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero_invoices/Xero_invoices.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero_invoices/Xero_invoices.component.ts new file mode 100644 index 0000000..644d7ab --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero_invoices/Xero_invoices.component.ts @@ -0,0 +1,463 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Xero_invoicesservice} from './Xero_invoices.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 { Xero_invoicescardvariable } from './Xero_invoices_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Xero_invoices', + templateUrl: './Xero_invoices.component.html', + styleUrls: ['./Xero_invoices.component.scss'] +}) +export class Xero_invoicesComponent implements OnInit { + cardButton = Xero_invoicescardvariable.cardButton; + cardmodeldata = Xero_invoicescardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Xero_invoicescardvariable.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 = 'Xero_invoices_formCode' +tableName = 'Xero_invoices'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Xero_invoicesservice, + 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({ +payed : [null], + +invoice_sent : [null], + +customer : [null], + +agent : [null], + +reset_btn : [null], + +filter_btn : [null], + +xero_invoices_line: this._fb.array([this.initLinesForm()]), + + + + + + + + + + + + + + + + + }); // component_button200 + // form code start + this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { + console.log(data); + const jsonArray = data.map((str) => JSON.parse(str)); + this.additionalFieldsFromBackend = jsonArray; + this.checkFormCode = this.additionalFieldsFromBackend.some(field => field.formCode === "Xero_invoices_formCode"); + console.log(this.checkFormCode); + console.log(this.additionalFieldsFromBackend); + if (this.additionalFieldsFromBackend && this.additionalFieldsFromBackend.length > 0) { + this.additionalFieldsFromBackend.forEach(field => { + if (field.formCode === this.formcode) { + if (!this.entryForm.contains(field.extValue)) { + // Add the control only if it doesn't exist in the form + this.entryForm.addControl(field.extValue, this._fb.control(field.fieldValue)); + } + } + }); + } + }); + console.log(this.entryForm.value); + // form code end + + + + + + + + + + + + + + + + } + + + + + + + + + + + + +// one to many start + initLinesForm() { return this._fb.group({ + + + + agent: [null], + + + + send_invoice_btn: [null], + + + + payed: [null], + + + + total_price: [null], + + + + invoice_number: [null], + + + + show_btn: [null], + + + + show_pdf_btn: [null], + + + + invoice_sent: [null], + + + + invoice_id: [null], + + + + coustomer: [null], + + + +}); } +get controls() {return (this.entryForm.get("xero_invoices_line") as FormArray).controls; } +onAddLines() { +(this.entryForm.get("xero_invoices_line")).push(this.initLinesForm()); } +onRemoveLines(index: number) { +(this.entryForm.get("xero_invoices_line")).removeAt(index); } + oneditLines() { this.components.push({ + + +agent: "", + + + +send_invoice_btn: "", + + + +payed: "", + + + +total_price: "", + + + +invoice_number: "", + + + +show_btn: "", + + + +show_pdf_btn: "", + + + +invoice_sent: "", + + + +invoice_id: "", + + + +coustomer: "", + + + + }); } + deleteRow(index) { + this.components.splice(index, 1); + } + components; + // one to many end + + error; + getData() { + this.mainService.getAll().subscribe((data) => { + console.log(data); + this.product = data; + if(this.product.length==0){ + this.error="No Data Available" + } + },(error) => { + console.log(error); + if(error){ + this.error="Server Error"; + } + }); + } + onEdit(row) { + this.rowSelected = row; + + + + + + + + + + + + +this.components = row.xero_invoices_line; + + + 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero_invoices/Xero_invoices.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero_invoices/Xero_invoices.service.ts new file mode 100644 index 0000000..628f2e9 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero_invoices/Xero_invoices.service.ts @@ -0,0 +1,47 @@ +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 Xero_invoicesservice{ + private baseURL = "Xero_invoices/Xero_invoices" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero_invoices/Xero_invoices_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero_invoices/Xero_invoices_cardvariable.ts new file mode 100644 index 0000000..5c02570 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero_invoices/Xero_invoices_cardvariable.ts @@ -0,0 +1,4 @@ +export const Xero_invoicescardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero_invoices_line/Xero_invoices_line.component.html b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero_invoices_line/Xero_invoices_line.component.html new file mode 100644 index 0000000..5f6a18b --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero_invoices_line/Xero_invoices_line.component.html @@ -0,0 +1,584 @@ + +
+
+
+

Xero_invoices_line

+
+
+ + + +
+ + + + Loading ... + +
{{error}}
+
+ + Payed + + + + Invoice sent + + + + Coustomer + + + + Agent + + + + Invoice id + + + + Invoice number + + + + total price + + + + show btn + + + + show pdf btn + + + + send invoice btn + + + + + + Action + + + + + +{{user. payed }} + + +{{user. invoice_sent }} + + +{{user. coustomer }} + + +{{user. agent }} + + +{{user. invoice_id }} + + +{{user. invoice_number }} + + +{{user. total_price }} + + +{{user. show_btn }} + + +{{user. show_pdf_btn }} + + +{{user. send_invoice_btn }} + + + + + + + +
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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero_invoices_line/Xero_invoices_line.component.scss b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero_invoices_line/Xero_invoices_line.component.scss new file mode 100644 index 0000000..c47b921 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero_invoices_line/Xero_invoices_line.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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero_invoices_line/Xero_invoices_line.component.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero_invoices_line/Xero_invoices_line.component.ts new file mode 100644 index 0000000..89603d1 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero_invoices_line/Xero_invoices_line.component.ts @@ -0,0 +1,436 @@ +import { Component, OnInit } from '@angular/core'; +import { ToastrService } from 'ngx-toastr'; +import { AlertService } from 'src/app/services/alert.service'; +import { Xero_invoices_lineservice} from './Xero_invoices_line.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 { Xero_invoices_linecardvariable } from './Xero_invoices_line_cardvariable'; +import { UserInfoService } from 'src/app/services/user-info.service'; +declare var JsBarcode: any; +@Component({ + selector: 'app-Xero_invoices_line', + templateUrl: './Xero_invoices_line.component.html', + styleUrls: ['./Xero_invoices_line.component.scss'] +}) +export class Xero_invoices_lineComponent implements OnInit { + cardButton = Xero_invoices_linecardvariable.cardButton; + cardmodeldata = Xero_invoices_linecardvariable.cardmodeldata; + public dashboardArray: DashboardContentModel2[]; + isCardview = Xero_invoices_linecardvariable.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 = 'Xero_invoices_line_formCode' +tableName = 'Xero_invoices_line'; checkFormCode; selected: any[] = []; constructor( + private extensionService: ExtensionService, +private userInfoService:UserInfoService, + private mainService:Xero_invoices_lineservice, + 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({ +payed : [null], + +invoice_sent : [null], + +coustomer : [null], + +agent : [null], + +invoice_id : [null,[Validators.required]], + +invoice_number : [null,[Validators.required]], + +total_price : [null,[Validators.required]], + +show_btn : [null], + +show_pdf_btn : [null], + +send_invoice_btn : [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 === "Xero_invoices_line_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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero_invoices_line/Xero_invoices_line.service.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero_invoices_line/Xero_invoices_line.service.ts new file mode 100644 index 0000000..c299249 --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero_invoices_line/Xero_invoices_line.service.ts @@ -0,0 +1,53 @@ +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 Xero_invoices_lineservice{ + private baseURL = "Xero_invoices_line/Xero_invoices_line" ; 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/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero_invoices_line/Xero_invoices_line_cardvariable.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero_invoices_line/Xero_invoices_line_cardvariable.ts new file mode 100644 index 0000000..563299d --- /dev/null +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/BuilderComponents/vpspack/Xero_invoices_line/Xero_invoices_line_cardvariable.ts @@ -0,0 +1,4 @@ +export const Xero_invoices_linecardvariable = { + "cardButton": false, + "cardmodeldata": `` +} \ No newline at end of file diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main-routing.module.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main-routing.module.ts index c7450e8..aff8cf9 100644 --- a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main-routing.module.ts +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main-routing.module.ts @@ -1,3 +1,53 @@ +import { Visa_app_orderComponent } from './BuilderComponents/vpspack/Visa_app_order/Visa_app_order.component'; +import { PagetComponent } from './BuilderComponents/vpspack/Paget/Paget.component'; +import { GroupssComponent } from './BuilderComponents/vpspack/Groupss/Groupss.component'; +import { MediaComponent } from './BuilderComponents/vpspack/Media/Media.component'; +import { SiteComponent } from './BuilderComponents/vpspack/Site/Site.component'; +import { RefrreresComponent } from './BuilderComponents/vpspack/Refrreres/Refrreres.component'; +import { Refrreres_lineComponent } from './BuilderComponents/vpspack/Refrreres_line/Refrreres_line.component'; +import { S_m_sComponent } from './BuilderComponents/vpspack/S_m_s/S_m_s.component'; +import { XeroComponent } from './BuilderComponents/vpspack/Xero/Xero.component'; +import { Sage_paysComponent } from './BuilderComponents/vpspack/Sage_pays/Sage_pays.component'; +import { CouponComponent } from './BuilderComponents/vpspack/Coupon/Coupon.component'; +import { NotificationComponent } from './BuilderComponents/vpspack/Notification/Notification.component'; +import { StatusComponent } from './BuilderComponents/vpspack/Status/Status.component'; +import { NationalityComponent } from './BuilderComponents/vpspack/Nationality/Nationality.component'; +import { Visa_statusComponent } from './BuilderComponents/vpspack/Visa_status/Visa_status.component'; +import { EmailsComponent } from './BuilderComponents/vpspack/Emails/Emails.component'; +import { Refferere_reportComponent } from './BuilderComponents/vpspack/Refferere_report/Refferere_report.component'; +import { Refferere_report_lineComponent } from './BuilderComponents/vpspack/Refferere_report_line/Refferere_report_line.component'; +import { Customer_reportComponent } from './BuilderComponents/vpspack/Customer_report/Customer_report.component'; +import { Supplier_reportComponent } from './BuilderComponents/vpspack/Supplier_report/Supplier_report.component'; +import { Supplier_report_lineComponent } from './BuilderComponents/vpspack/Supplier_report_line/Supplier_report_line.component'; +import { Agent_reportComponent } from './BuilderComponents/vpspack/Agent_report/Agent_report.component'; +import { Agent_report_lineComponent } from './BuilderComponents/vpspack/Agent_report_line/Agent_report_line.component'; +import { Sage_payComponent } from './BuilderComponents/vpspack/Sage_pay/Sage_pay.component'; +import { Xero_invoices_lineComponent } from './BuilderComponents/vpspack/Xero_invoices_line/Xero_invoices_line.component'; +import { Xero_invoicesComponent } from './BuilderComponents/vpspack/Xero_invoices/Xero_invoices.component'; +import { Visa_pricesComponent } from './BuilderComponents/vpspack/Visa_prices/Visa_prices.component'; +import { Visa_processing_timeComponent } from './BuilderComponents/vpspack/Visa_processing_time/Visa_processing_time.component'; +import { Visa_durationComponent } from './BuilderComponents/vpspack/Visa_duration/Visa_duration.component'; +import { Visa_billingComponent } from './BuilderComponents/vpspack/Visa_billing/Visa_billing.component'; +import { Cost_sheet_uploadComponent } from './BuilderComponents/vpspack/Cost_sheet_upload/Cost_sheet_upload.component'; +import { Upload_visaComponent } from './BuilderComponents/vpspack/Upload_visa/Upload_visa.component'; +import { DeletedComponent } from './BuilderComponents/vpspack/Deleted/Deleted.component'; +import { Deleted_childComponent } from './BuilderComponents/basicp1/Deleted_child/Deleted_child.component'; +import { Completed_or_archiveComponent } from './BuilderComponents/vpspack/Completed_or_archive/Completed_or_archive.component'; +import { Completed_or_archive_childComponent } from './BuilderComponents/vpspack/Completed_or_archive_child/Completed_or_archive_child.component'; +import { RejectedComponent } from './BuilderComponents/vpspack/Rejected/Rejected.component'; +import { Rejected_childComponent } from './BuilderComponents/vpspack/Rejected_child/Rejected_child.component'; +import { RefundComponent } from './BuilderComponents/vpspack/Refund/Refund.component'; +import { Refund_childComponent } from './BuilderComponents/vpspack/Refund_child/Refund_child.component'; +import { Processing_agent_childComponent } from './BuilderComponents/vpspack/Processing_agent_child/Processing_agent_child.component'; +import { Processing_agentComponent } from './BuilderComponents/vpspack/Processing_agent/Processing_agent.component'; +import { Processing_customerComponent } from './BuilderComponents/vpspack/Processing_customer/Processing_customer.component'; +import { Processing_customer_childComponent } from './BuilderComponents/vpspack/Processing_customer_child/Processing_customer_child.component'; +import { Pending_agentComponent } from './BuilderComponents/vpspack/Pending_agent/Pending_agent.component'; +import { Pending_agent_childComponent } from './BuilderComponents/vpspack/Pending_agent_child/Pending_agent_child.component'; +import { Pending_customer_childComponent } from './BuilderComponents/vpspack/Pending_customer_child/Pending_customer_child.component'; +import { Staff_applicationComponent } from './BuilderComponents/vpspack/Staff_application/Staff_application.component'; +import { Pending_customerComponent } from './BuilderComponents/vpspack/Pending_customer/Pending_customer.component'; +import { StaffappchildComponent } from './BuilderComponents/vpspack/Staffappchild/Staffappchild.component'; @@ -258,6 +308,156 @@ const routes: Routes = [ // buildercomponents +{path:'Visa_app_order',component:Visa_app_orderComponent}, + + +{path:'Paget',component:PagetComponent}, + + +{path:'Groupss',component:GroupssComponent}, + + +{path:'Media',component:MediaComponent}, + + +{path:'Site',component:SiteComponent}, + + +{path:'Refrreres',component:RefrreresComponent}, + + +{path:'Refrreres_line',component:Refrreres_lineComponent}, + + +{path:'S_m_s',component:S_m_sComponent}, + + +{path:'Xero',component:XeroComponent}, + + +{path:'Sage_pays',component:Sage_paysComponent}, + + +{path:'Coupon',component:CouponComponent}, + + +{path:'Notification',component:NotificationComponent}, + + +{path:'Status',component:StatusComponent}, + + +{path:'Nationality',component:NationalityComponent}, + + +{path:'Visa_status',component:Visa_statusComponent}, + + +{path:'Emails',component:EmailsComponent}, + + +{path:'Refferere_report',component:Refferere_reportComponent}, + + +{path:'Refferere_report_line',component:Refferere_report_lineComponent}, + + +{path:'Customer_report',component:Customer_reportComponent}, + + +{path:'Supplier_report',component:Supplier_reportComponent}, + + +{path:'Supplier_report_line',component:Supplier_report_lineComponent}, + + +{path:'Agent_report',component:Agent_reportComponent}, + + +{path:'Agent_report_line',component:Agent_report_lineComponent}, + + +{path:'Sage_pay',component:Sage_payComponent}, + + +{path:'Xero_invoices_line',component:Xero_invoices_lineComponent}, + + +{path:'Xero_invoices',component:Xero_invoicesComponent}, + + +{path:'Visa_prices',component:Visa_pricesComponent}, + + +{path:'Visa_processing_time',component:Visa_processing_timeComponent}, + + +{path:'Visa_duration',component:Visa_durationComponent}, + + +{path:'Visa_billing',component:Visa_billingComponent}, + + +{path:'Cost_sheet_upload',component:Cost_sheet_uploadComponent}, + + +{path:'Upload_visa',component:Upload_visaComponent}, + + +{path:'Deleted',component:DeletedComponent}, + + +{path:'Deleted_child',component:Deleted_childComponent}, + + +{path:'Completed_or_archive',component:Completed_or_archiveComponent}, + + +{path:'Completed_or_archive_child',component:Completed_or_archive_childComponent}, + + +{path:'Rejected',component:RejectedComponent}, + + +{path:'Rejected_child',component:Rejected_childComponent}, + + +{path:'Refund',component:RefundComponent}, + + +{path:'Refund_child',component:Refund_childComponent}, + + +{path:'Processing_agent_child',component:Processing_agent_childComponent}, + + +{path:'Processing_agent',component:Processing_agentComponent}, + + +{path:'Processing_customer',component:Processing_customerComponent}, + + +{path:'Processing_customer_child',component:Processing_customer_childComponent}, + + +{path:'Pending_agent',component:Pending_agentComponent}, + + +{path:'Pending_agent_child',component:Pending_agent_childComponent}, + + +{path:'Pending_customer_child',component:Pending_customer_childComponent}, + + +{path:'Staff_application',component:Staff_applicationComponent}, + + +{path:'Pending_customer',component:Pending_customerComponent}, + + +{path:'Staffappchild',component:StaffappchildComponent}, + + { path: '**', component: PageNotFoundComponent }, diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main.module.ts b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main.module.ts index dacaf40..735a1c9 100644 --- a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main.module.ts +++ b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/app/modules/main/main.module.ts @@ -1,3 +1,53 @@ +import { Visa_app_orderComponent } from './BuilderComponents/vpspack/Visa_app_order/Visa_app_order.component'; +import { PagetComponent } from './BuilderComponents/vpspack/Paget/Paget.component'; +import { GroupssComponent } from './BuilderComponents/vpspack/Groupss/Groupss.component'; +import { MediaComponent } from './BuilderComponents/vpspack/Media/Media.component'; +import { SiteComponent } from './BuilderComponents/vpspack/Site/Site.component'; +import { RefrreresComponent } from './BuilderComponents/vpspack/Refrreres/Refrreres.component'; +import { Refrreres_lineComponent } from './BuilderComponents/vpspack/Refrreres_line/Refrreres_line.component'; +import { S_m_sComponent } from './BuilderComponents/vpspack/S_m_s/S_m_s.component'; +import { XeroComponent } from './BuilderComponents/vpspack/Xero/Xero.component'; +import { Sage_paysComponent } from './BuilderComponents/vpspack/Sage_pays/Sage_pays.component'; +import { CouponComponent } from './BuilderComponents/vpspack/Coupon/Coupon.component'; +import { NotificationComponent } from './BuilderComponents/vpspack/Notification/Notification.component'; +import { StatusComponent } from './BuilderComponents/vpspack/Status/Status.component'; +import { NationalityComponent } from './BuilderComponents/vpspack/Nationality/Nationality.component'; +import { Visa_statusComponent } from './BuilderComponents/vpspack/Visa_status/Visa_status.component'; +import { EmailsComponent } from './BuilderComponents/vpspack/Emails/Emails.component'; +import { Refferere_reportComponent } from './BuilderComponents/vpspack/Refferere_report/Refferere_report.component'; +import { Refferere_report_lineComponent } from './BuilderComponents/vpspack/Refferere_report_line/Refferere_report_line.component'; +import { Customer_reportComponent } from './BuilderComponents/vpspack/Customer_report/Customer_report.component'; +import { Supplier_reportComponent } from './BuilderComponents/vpspack/Supplier_report/Supplier_report.component'; +import { Supplier_report_lineComponent } from './BuilderComponents/vpspack/Supplier_report_line/Supplier_report_line.component'; +import { Agent_reportComponent } from './BuilderComponents/vpspack/Agent_report/Agent_report.component'; +import { Agent_report_lineComponent } from './BuilderComponents/vpspack/Agent_report_line/Agent_report_line.component'; +import { Sage_payComponent } from './BuilderComponents/vpspack/Sage_pay/Sage_pay.component'; +import { Xero_invoices_lineComponent } from './BuilderComponents/vpspack/Xero_invoices_line/Xero_invoices_line.component'; +import { Xero_invoicesComponent } from './BuilderComponents/vpspack/Xero_invoices/Xero_invoices.component'; +import { Visa_pricesComponent } from './BuilderComponents/vpspack/Visa_prices/Visa_prices.component'; +import { Visa_processing_timeComponent } from './BuilderComponents/vpspack/Visa_processing_time/Visa_processing_time.component'; +import { Visa_durationComponent } from './BuilderComponents/vpspack/Visa_duration/Visa_duration.component'; +import { Visa_billingComponent } from './BuilderComponents/vpspack/Visa_billing/Visa_billing.component'; +import { Cost_sheet_uploadComponent } from './BuilderComponents/vpspack/Cost_sheet_upload/Cost_sheet_upload.component'; +import { Upload_visaComponent } from './BuilderComponents/vpspack/Upload_visa/Upload_visa.component'; +import { DeletedComponent } from './BuilderComponents/vpspack/Deleted/Deleted.component'; +import { Deleted_childComponent } from './BuilderComponents/basicp1/Deleted_child/Deleted_child.component'; +import { Completed_or_archiveComponent } from './BuilderComponents/vpspack/Completed_or_archive/Completed_or_archive.component'; +import { Completed_or_archive_childComponent } from './BuilderComponents/vpspack/Completed_or_archive_child/Completed_or_archive_child.component'; +import { RejectedComponent } from './BuilderComponents/vpspack/Rejected/Rejected.component'; +import { Rejected_childComponent } from './BuilderComponents/vpspack/Rejected_child/Rejected_child.component'; +import { RefundComponent } from './BuilderComponents/vpspack/Refund/Refund.component'; +import { Refund_childComponent } from './BuilderComponents/vpspack/Refund_child/Refund_child.component'; +import { Processing_agent_childComponent } from './BuilderComponents/vpspack/Processing_agent_child/Processing_agent_child.component'; +import { Processing_agentComponent } from './BuilderComponents/vpspack/Processing_agent/Processing_agent.component'; +import { Processing_customerComponent } from './BuilderComponents/vpspack/Processing_customer/Processing_customer.component'; +import { Processing_customer_childComponent } from './BuilderComponents/vpspack/Processing_customer_child/Processing_customer_child.component'; +import { Pending_agentComponent } from './BuilderComponents/vpspack/Pending_agent/Pending_agent.component'; +import { Pending_agent_childComponent } from './BuilderComponents/vpspack/Pending_agent_child/Pending_agent_child.component'; +import { Pending_customer_childComponent } from './BuilderComponents/vpspack/Pending_customer_child/Pending_customer_child.component'; +import { Staff_applicationComponent } from './BuilderComponents/vpspack/Staff_application/Staff_application.component'; +import { Pending_customerComponent } from './BuilderComponents/vpspack/Pending_customer/Pending_customer.component'; +import { StaffappchildComponent } from './BuilderComponents/vpspack/Staffappchild/Staffappchild.component'; import { CommonModule } from '@angular/common'; import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; @@ -126,6 +176,156 @@ import { QueryeditComponent } from './superadmin/queryedit/queryedit.component'; // buildercomponents +Visa_app_orderComponent, + + +PagetComponent, + + +GroupssComponent, + + +MediaComponent, + + +SiteComponent, + + +RefrreresComponent, + + +Refrreres_lineComponent, + + +S_m_sComponent, + + +XeroComponent, + + +Sage_paysComponent, + + +CouponComponent, + + +NotificationComponent, + + +StatusComponent, + + +NationalityComponent, + + +Visa_statusComponent, + + +EmailsComponent, + + +Refferere_reportComponent, + + +Refferere_report_lineComponent, + + +Customer_reportComponent, + + +Supplier_reportComponent, + + +Supplier_report_lineComponent, + + +Agent_reportComponent, + + +Agent_report_lineComponent, + + +Sage_payComponent, + + +Xero_invoices_lineComponent, + + +Xero_invoicesComponent, + + +Visa_pricesComponent, + + +Visa_processing_timeComponent, + + +Visa_durationComponent, + + +Visa_billingComponent, + + +Cost_sheet_uploadComponent, + + +Upload_visaComponent, + + +DeletedComponent, + + +Deleted_childComponent, + + +Completed_or_archiveComponent, + + +Completed_or_archive_childComponent, + + +RejectedComponent, + + +Rejected_childComponent, + + +RefundComponent, + + +Refund_childComponent, + + +Processing_agent_childComponent, + + +Processing_agentComponent, + + +Processing_customerComponent, + + +Processing_customer_childComponent, + + +Pending_agentComponent, + + +Pending_agent_childComponent, + + +Pending_customer_childComponent, + + +Staff_applicationComponent, + + +Pending_customerComponent, + + +StaffappchildComponent, + + diff --git a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/assets/i18n/en.json b/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/assets/i18n/en.json index 3d60440..c3ef229 100644 --- a/newvisaapptesting03-front-f/authsec_angular/frontend/angular-clarity-master/src/assets/i18n/en.json +++ b/newvisaapptesting03-front-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,168 @@ "MENU_ACTION_LINK": "Menu Action Link", "STATUS": "Status", "SUB_MENU": "Sub Menu", - "Stt": "Stt", + "Customer_report": "Customer_report", + "Processing_agent_child": "Processing_agent_child", + "Application_Code": "Application_Code", + "Staff": "Staff", + "Sage_pay": "Sage_pay", + "Isdefault": "Isdefault", + "Rejected": "Rejected", + "Coustomer": "Coustomer", + "Phone_number": "Phone_number", + "Visa_entry_type": "Visa_entry_type", + "supplier": "supplier", + "action": "action", + "Pending_customer_child": "Pending_customer_child", + "Transction_id": "Transction_id", + "Last_name": "Last_name", + "Status": "Status", + "Agent": "Agent", + "Staff_application": "Staff_application", + "Xero": "Xero", + "Pending_agent_child": "Pending_agent_child", + "Number_Field": "Number_Field", + "Visa_Duration": "Visa_Duration", + "Pending_agent": "Pending_agent", + "Invoice_sent": "Invoice_sent", + "Email_Field": "Email_Field", + "Code": "Code", + "coupon_validity": "coupon_validity", + "send_invoice_btn": "send_invoice_btn", + "Snapshot": "Snapshot", + "Paget": "Paget", + "full_name": "full_name", + "nationality": "nationality", + "Refund": "Refund", + "Note": "Note", + "Country": "Country", + "Relative_path": "Relative_path", + "Application": "Application", + "Card_type": "Card_type", + "coupon_discount": "coupon_discount", + "status": "status", + "Site": "Site", + "visa_processing_time": "visa_processing_time", + "Visa": "Visa", + "Groupss": "Groupss", + "Invoice_id": "Invoice_id", + "Notification": "Notification", + "Url": "Url", + "local": "local", + "Rejected_child": "Rejected_child", + "Full_Name": "Full_Name", + "Supplier_acknowledged": "Supplier_acknowledged", + "Application_code": "Application_code", + "Entry_date_to": "Entry_date_to", + "show_pdf_btn": "show_pdf_btn", + "Enable": "Enable", + "Supplier": "Supplier", + "Reset_btn": "Reset_btn", + "Deleted": "Deleted", + "Xero_invoices": "Xero_invoices", + "Date_Field": "Date_Field", + "Enable_to": "Enable_to", + "last4digit": "last4digit", + "Passport_type": "Passport_type", + "Supplier_report_line": "Supplier_report_line", + "Entry_date_form": "Entry_date_form", + "Full_name": "Full_name", + "Vender_id": "Vender_id", + "coupon": "coupon", + "Visa_processing_time": "Visa_processing_time", + "filter_btn": "filter_btn", + "Rejected_visa": "Rejected_visa", + "Amount": "Amount", + "Refferere_report_line": "Refferere_report_line", + "last_name": "last_name", + "Fileupload_visa": "Fileupload_visa", + "Supplier_Acknowledged": "Supplier_Acknowledged", + "Nationality": "Nationality", + "banckauthcode": "banckauthcode", + "Pending_customer": "Pending_customer", + "Filter_btn": "Filter_btn", + "visa": "visa", + "Invoice_number": "Invoice_number", + "application_code": "application_code", + "Completed_or_archive": "Completed_or_archive", + "Upload_visa": "Upload_visa", + "Cost_sheet_upload": "Cost_sheet_upload", + "Agent_report_line": "Agent_report_line", + "Passport_number": "Passport_number", + "Company": "Company", + "Email": "Email", + "Email_id": "Email_id", + "Entry_date_from": "Entry_date_from", + "subject": "subject", + "Agent_report": "Agent_report", + "S_m_s": "S_m_s", + "entry_date": "entry_date", + "Name": "Name", + "notification": "notification", + "Supllier": "Supllier", + "invoice_id": "invoice_id", + "Emails": "Emails", + "All_pages_link": "All_pages_link", + "visa_processing": "visa_processing", + "full_Name": "full_Name", + "visa_entry_type": "visa_entry_type", + "created": "created", + "vendercode": "vendercode", + "Visa_duration": "Visa_duration", + "Media": "Media", + "Refund_child": "Refund_child", + "visa_duration": "visa_duration", + "City": "City", + "Staffappchild": "Staffappchild", + "Processing_customer_child": "Processing_customer_child", + "Payed": "Payed", + "Active": "Active", + "Sage_pays": "Sage_pays", + "Xero_invoices_line": "Xero_invoices_line", + "Price": "Price", + "Deleted_child": "Deleted_child", + "Total_price": "Total_price", + "note": "note", + "Action": "Action", + "code": "code", + "User": "User", + "Api_id": "Api_id", + "show_btn": "show_btn", + "reset_btn": "reset_btn", + "Phone_Number": "Phone_Number", + "media": "media", + "txauthno": "txauthno", + "Cost": "Cost", + "Supplier_report": "Supplier_report", + "Refrreres_line": "Refrreres_line", + "vpstxid": "vpstxid", + "Visa_status": "Visa_status", + "customer_key": "customer_key", + "supplier_acknowledged": "supplier_acknowledged", + "Completed_or_archive_child": "Completed_or_archive_child", + "rate": "rate", + "Phone": "Phone", + "cost_sheet_upload": "cost_sheet_upload", + "Enable_form": "Enable_form", + "Visa_app_order": "Visa_app_order", + "Expiry_date": "Expiry_date", + "Entry_date": "Entry_date", + "Password": "Password", + "Visa_prices": "Visa_prices", + "Coupon": "Coupon", + "Processing_customer": "Processing_customer", + "cost": "cost", + "First_name": "First_name", "OneToManyExtension": "OneToManyExtension", - "studentname": "studentname", - "description": "description", - "Studenthigh": "Studenthigh", - "Name": "Name" + "total_price": "total_price", + "Host": "Host", + "Refferere_report": "Refferere_report", + "Admin": "Admin", + "Invoice_created": "Invoice_created", + "Date": "Date", + "Processing_agent": "Processing_agent", + "Refrreres": "Refrreres", + "passport_number": "passport_number", + "Visa_billing": "Visa_billing", + "customer": "customer" } \ No newline at end of file