build_app
This commit is contained in:
parent
18db0b7bbd
commit
aac3162888
@ -69,6 +69,9 @@ public class BuilderService {
|
|||||||
executeDump(true);
|
executeDump(true);
|
||||||
|
|
||||||
// ADD OTHER SERVICE
|
// ADD OTHER SERVICE
|
||||||
|
addCustomMenu( "Test_gk","Test_gk", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
System.out.println("dashboard and menu inserted...");
|
System.out.println("dashboard and menu inserted...");
|
||||||
|
|
||||||
|
|||||||
@ -0,0 +1,195 @@
|
|||||||
|
package com.realnet.basicp1.Controllers;
|
||||||
|
import java.util.List;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||||
|
import org.springframework.web.bind.annotation.CrossOrigin;
|
||||||
|
import com.fasterxml.jackson.databind.JsonMappingException;
|
||||||
|
import com.realnet.config.EmailService;
|
||||||
|
import com.realnet.users.entity1.AppUser;
|
||||||
|
import com.realnet.users.service1.AppUserServiceImpl;
|
||||||
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
|
import org.springframework.data.domain.*;
|
||||||
|
import com.realnet.fnd.response.EntityResponse;
|
||||||
|
import org.springframework.http.*;
|
||||||
|
import org.springframework.beans.factory.annotation.*;
|
||||||
|
import com.realnet.basicp1.Entity.Test_gk;
|
||||||
|
import com.realnet.basicp1.Services.Test_gkService ;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@RequestMapping(value = "/Test_gk")
|
||||||
|
@CrossOrigin("*")
|
||||||
|
@RestController
|
||||||
|
public class Test_gkController {
|
||||||
|
@Autowired
|
||||||
|
private Test_gkService Service;
|
||||||
|
|
||||||
|
@Value("${projectPath}")
|
||||||
|
private String projectPath;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@PostMapping("/Test_gk")
|
||||||
|
public Test_gk Savedata(@RequestBody Test_gk data) {
|
||||||
|
Test_gk save = Service.Savedata(data) ;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
System.out.println("data saved..." + save);
|
||||||
|
|
||||||
|
return save;
|
||||||
|
}
|
||||||
|
@PutMapping("/Test_gk/{id}")
|
||||||
|
public Test_gk update(@RequestBody Test_gk data,@PathVariable Integer id ) {
|
||||||
|
Test_gk update = Service.update(data,id);
|
||||||
|
System.out.println("data update..." + update);
|
||||||
|
return update;
|
||||||
|
}
|
||||||
|
// get all with pagination
|
||||||
|
@GetMapping("/Test_gk/getall/page")
|
||||||
|
public Page<Test_gk> getall(@RequestParam(value = "page", required = false) Integer page,
|
||||||
|
@RequestParam(value = "size", required = false) Integer size) {
|
||||||
|
Pageable paging = PageRequest.of(page, size);
|
||||||
|
Page<Test_gk> get = Service.getAllWithPagination(paging);
|
||||||
|
|
||||||
|
return get;
|
||||||
|
|
||||||
|
}
|
||||||
|
@GetMapping("/Test_gk")
|
||||||
|
public List<Test_gk> getdetails() {
|
||||||
|
List<Test_gk> get = Service.getdetails();
|
||||||
|
return get;
|
||||||
|
}
|
||||||
|
// get all without authentication
|
||||||
|
|
||||||
|
@GetMapping("/token/Test_gk")
|
||||||
|
public List<Test_gk> getallwioutsec() {
|
||||||
|
List<Test_gk> get = Service.getdetails();
|
||||||
|
return get;
|
||||||
|
}
|
||||||
|
@GetMapping("/Test_gk/{id}")
|
||||||
|
public Test_gk getdetailsbyId(@PathVariable Integer id ) {
|
||||||
|
Test_gk get = Service.getdetailsbyId(id);
|
||||||
|
return get;
|
||||||
|
}
|
||||||
|
@DeleteMapping("/Test_gk/{id}")
|
||||||
|
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
|
||||||
|
Service.delete_by_id(id);
|
||||||
|
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,195 @@
|
|||||||
|
package com.realnet.basicp1.Controllers;
|
||||||
|
import java.util.List;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||||
|
import org.springframework.web.bind.annotation.CrossOrigin;
|
||||||
|
import com.fasterxml.jackson.databind.JsonMappingException;
|
||||||
|
import com.realnet.config.EmailService;
|
||||||
|
import com.realnet.users.entity1.AppUser;
|
||||||
|
import com.realnet.users.service1.AppUserServiceImpl;
|
||||||
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
|
import org.springframework.data.domain.*;
|
||||||
|
import com.realnet.fnd.response.EntityResponse;
|
||||||
|
import org.springframework.http.*;
|
||||||
|
import org.springframework.beans.factory.annotation.*;
|
||||||
|
import com.realnet.basicp1.Entity.Test_gk;
|
||||||
|
import com.realnet.basicp1.Services.Test_gkService ;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@RequestMapping(value = "/token/Test_gk")
|
||||||
|
@CrossOrigin("*")
|
||||||
|
@RestController
|
||||||
|
public class tokenFree_Test_gkController {
|
||||||
|
@Autowired
|
||||||
|
private Test_gkService Service;
|
||||||
|
|
||||||
|
@Value("${projectPath}")
|
||||||
|
private String projectPath;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@PostMapping("/Test_gk")
|
||||||
|
public Test_gk Savedata(@RequestBody Test_gk data) {
|
||||||
|
Test_gk save = Service.Savedata(data) ;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
System.out.println("data saved..." + save);
|
||||||
|
|
||||||
|
return save;
|
||||||
|
}
|
||||||
|
@PutMapping("/Test_gk/{id}")
|
||||||
|
public Test_gk update(@RequestBody Test_gk data,@PathVariable Integer id ) {
|
||||||
|
Test_gk update = Service.update(data,id);
|
||||||
|
System.out.println("data update..." + update);
|
||||||
|
return update;
|
||||||
|
}
|
||||||
|
// get all with pagination
|
||||||
|
@GetMapping("/Test_gk/getall/page")
|
||||||
|
public Page<Test_gk> getall(@RequestParam(value = "page", required = false) Integer page,
|
||||||
|
@RequestParam(value = "size", required = false) Integer size) {
|
||||||
|
Pageable paging = PageRequest.of(page, size);
|
||||||
|
Page<Test_gk> get = Service.getAllWithPagination(paging);
|
||||||
|
|
||||||
|
return get;
|
||||||
|
|
||||||
|
}
|
||||||
|
@GetMapping("/Test_gk")
|
||||||
|
public List<Test_gk> getdetails() {
|
||||||
|
List<Test_gk> get = Service.getdetails();
|
||||||
|
return get;
|
||||||
|
}
|
||||||
|
// get all without authentication
|
||||||
|
|
||||||
|
@GetMapping("/token/Test_gk")
|
||||||
|
public List<Test_gk> getallwioutsec() {
|
||||||
|
List<Test_gk> get = Service.getdetails();
|
||||||
|
return get;
|
||||||
|
}
|
||||||
|
@GetMapping("/Test_gk/{id}")
|
||||||
|
public Test_gk getdetailsbyId(@PathVariable Integer id ) {
|
||||||
|
Test_gk get = Service.getdetailsbyId(id);
|
||||||
|
return get;
|
||||||
|
}
|
||||||
|
@DeleteMapping("/Test_gk/{id}")
|
||||||
|
public ResponseEntity<?> delete_by_id(@PathVariable Integer id ) {
|
||||||
|
Service.delete_by_id(id);
|
||||||
|
return new ResponseEntity<>(new EntityResponse("Deleted"), HttpStatus.OK);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,108 @@
|
|||||||
|
package com.realnet.basicp1.Entity;
|
||||||
|
import lombok.*;
|
||||||
|
import com.realnet.WhoColumn.Entity.Extension;
|
||||||
|
import javax.persistence.*;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.util.*;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@Entity
|
||||||
|
@Data
|
||||||
|
public class Test_gk extends Extension {
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
|
private Integer id;
|
||||||
|
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
private String radio_field;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private Boolean k;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private Boolean l;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private Boolean h;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private String fileupload_fieldname;
|
||||||
|
private String fileupload_fieldpath ;
|
||||||
|
|
||||||
|
private String imageupload_fieldname;
|
||||||
|
private String imageupload_fieldpath ;
|
||||||
|
|
||||||
|
private String audio_fieldname;
|
||||||
|
private String audio_fieldpath ;
|
||||||
|
|
||||||
|
private String video_fieldname;
|
||||||
|
private String video_fieldpath ;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private String b;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private String s;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private String currency;
|
||||||
|
|
||||||
|
private String qrcode_field;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
private String barcode_field;
|
||||||
|
|
||||||
|
private int number_field;
|
||||||
|
|
||||||
|
private int number_b;
|
||||||
|
|
||||||
|
private String calculated_field;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,54 @@
|
|||||||
|
package com.realnet.basicp1.Repository;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.data.domain.Page;
|
||||||
|
import org.springframework.data.domain.Pageable;
|
||||||
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
import org.springframework.data.jpa.repository.Query;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
import java.util.*;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
import com.realnet.basicp1.Entity.Test_gk;
|
||||||
|
|
||||||
|
@Repository
|
||||||
|
public interface Test_gkRepository extends JpaRepository<Test_gk, Integer> {
|
||||||
|
|
||||||
|
@Query(value = "select * from test_gk where created_by=?1", nativeQuery = true)
|
||||||
|
List<Test_gk> findAll(Long creayedBy);
|
||||||
|
|
||||||
|
@Query(value = "select * from test_gk where created_by=?1", nativeQuery = true)
|
||||||
|
Page<Test_gk> findAll(Pageable page, Long creayedBy);
|
||||||
|
}
|
||||||
@ -0,0 +1,236 @@
|
|||||||
|
package com.realnet.basicp1.Services;
|
||||||
|
import com.realnet.basicp1.Repository.Test_gkRepository;
|
||||||
|
import com.realnet.basicp1.Entity.Test_gk
|
||||||
|
;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 Test_gkService {
|
||||||
|
@Autowired
|
||||||
|
private Test_gkRepository Repository;
|
||||||
|
@Autowired
|
||||||
|
private AppUserServiceImpl userService;
|
||||||
|
@Autowired
|
||||||
|
private RealmService realmService;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public Test_gk Savedata(Test_gk data) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
data.setUpdatedBy(getUser().getUserId());
|
||||||
|
data.setCreatedBy(getUser().getUserId());
|
||||||
|
data.setAccountId(getUser().getAccount().getAccount_id());
|
||||||
|
Test_gk save = Repository.save(data);
|
||||||
|
return save;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// get all with pagination
|
||||||
|
public Page<Test_gk> getAllWithPagination(Pageable page) {
|
||||||
|
return Repository.findAll(page, getUser().getUserId());
|
||||||
|
}
|
||||||
|
public List<Test_gk> getdetails() {
|
||||||
|
List<Realm> realm = realmService.findByUserId(getUser().getUserId());
|
||||||
|
List<Test_gk> all = Repository.findAll(getUser().getUserId());
|
||||||
|
|
||||||
|
return all ; }
|
||||||
|
|
||||||
|
|
||||||
|
public Test_gk getdetailsbyId(Integer id) {
|
||||||
|
return Repository.findById(id).get();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void delete_by_id(Integer id) {
|
||||||
|
Repository.deleteById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public Test_gk update(Test_gk data,Integer id) {
|
||||||
|
Test_gk old = Repository.findById(id).get();
|
||||||
|
old.setName(data.getName());
|
||||||
|
|
||||||
|
old.setRadio_field(data.getRadio_field());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
old.setK(data.getK());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
old.setL(data.getL());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
old.setH(data.getH());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
old.setB(data.getB());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
old.setS(data.getS());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
old.setCurrency(data.getCurrency());
|
||||||
|
|
||||||
|
old.setQrcode_field(data.getQrcode_field());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
old.setBarcode_field(data.getBarcode_field());
|
||||||
|
|
||||||
|
old.setNumber_field(data.getNumber_field());
|
||||||
|
|
||||||
|
old.setNumber_b(data.getNumber_b());
|
||||||
|
|
||||||
|
old.setCalculated_field(data.getCalculated_field());
|
||||||
|
|
||||||
|
final Test_gk test = Repository.save(old);
|
||||||
|
data.setUpdatedBy(getUser().getUserId());
|
||||||
|
return test;}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public AppUser getUser() {
|
||||||
|
AppUser user = userService.getLoggedInUser();
|
||||||
|
return user;
|
||||||
|
|
||||||
|
}}
|
||||||
2
test0006-bdgk-d/authsec_mysql/mysql/wf_table/wf_table.sql
Executable file
2
test0006-bdgk-d/authsec_mysql/mysql/wf_table/wf_table.sql
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
CREATE TABLE bdgk.Test_gk(id BIGINT NOT NULL AUTO_INCREMENT, video_field VARCHAR(400), calculated_field VARCHAR(400), b VARCHAR(400), number_b int, number_field int, qrcode_field VARCHAR(400), h bit(1), k bit(1), fileupload_field VARCHAR(400), value_list_field VARCHAR(400), l bit(1), name VARCHAR(400), radio_field VARCHAR(400), s VARCHAR(400), currency VARCHAR(400), imageupload_field VARCHAR(400), audio_field VARCHAR(400), barcode_field VARCHAR(400), PRIMARY KEY (id));
|
||||||
|
|
||||||
@ -2,14 +2,14 @@
|
|||||||
|
|
||||||
export const LoginEnvironment = {
|
export const LoginEnvironment = {
|
||||||
|
|
||||||
"templateNo": "<templateNo>",
|
"templateNo": "Template 1",
|
||||||
"loginHeading": "<loginHeading>",
|
"loginHeading": "Welcome to",
|
||||||
"loginHeading2": "<loginHeading2>",
|
"loginHeading2": "io8.dev",
|
||||||
"isSignup": "<isSignup>",
|
"isSignup": "true",
|
||||||
"loginSignup": "<loginSignup> ",
|
"loginSignup": "Use your ID to sign in OR ",
|
||||||
"loginSignup2": "<loginSignup2>",
|
"loginSignup2": "create one now",
|
||||||
"loginForgotpass": "<loginForgotpass>",
|
"loginForgotpass": "FORGOT PASSWORD?",
|
||||||
"loginImage": "<loginImage>",
|
"loginImage": "[]",
|
||||||
"loginImageURL": "<loginImageURL>"
|
"loginImageURL": "null"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,85 @@
|
|||||||
|
//@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;
|
||||||
|
}
|
||||||
|
.universal-section-header {
|
||||||
|
margin: 24px 0 10px 0;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #1a237e;
|
||||||
|
letter-spacing: 0.5px;
|
||||||
|
font-size: 1.25rem;
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,115 @@
|
|||||||
|
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 Test_gkservice{
|
||||||
|
private baseURL = "Test_gk/Test_gk" ; constructor(
|
||||||
|
private http: HttpClient,
|
||||||
|
private apiRequest: ApiRequestService,
|
||||||
|
) { }
|
||||||
|
getAll(page?: number, size?: number): Observable<any> {
|
||||||
|
return this.apiRequest.get(this.baseURL);
|
||||||
|
}
|
||||||
|
getById(id: number): Observable<any> {
|
||||||
|
const _http = this.baseURL + "/" + id;
|
||||||
|
return this.apiRequest.get(_http);
|
||||||
|
}
|
||||||
|
create(data: any): Observable<any> {
|
||||||
|
return this.apiRequest.post(this.baseURL, data);
|
||||||
|
}
|
||||||
|
update(id: number, data: any): Observable<any> {
|
||||||
|
const _http = this.baseURL + "/" + id;
|
||||||
|
return this.apiRequest.put(_http, data);
|
||||||
|
}
|
||||||
|
delete(id: number): Observable<any> {
|
||||||
|
const _http = this.baseURL + "/" + id;
|
||||||
|
return this.apiRequest.delete(_http);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
uploadfilefileupload_field(ref:any, Test_gk:any, file:any): Observable<any>{
|
||||||
|
const formData = new FormData();
|
||||||
|
formData.append('file', file);
|
||||||
|
return this.apiRequest.postFormData(`FileUpload/Uploadeddocs/${ref}/${Test_gk}`, formData);
|
||||||
|
}
|
||||||
|
|
||||||
|
uploadfilegetByIdfileupload_field(ref:any, Test_gk:any,): Observable<any> {
|
||||||
|
return this.apiRequest.get(`FileUpload/Uploadeddocs/${ref}/${Test_gk}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
uploadfiledeletefileupload_field(id: number): Observable<any> {
|
||||||
|
return this.apiRequest.delete(`FileUpload/Uploadeddocs/${id}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
uploadImageupload_field(ref:any, Test_gk:any, file:any): Observable<any>{
|
||||||
|
const formData = new FormData();
|
||||||
|
formData.append('file', file);
|
||||||
|
return this.apiRequest.postFormData(`FileUpload/Uploadeddocs/${ref}/${Test_gk}`, formData);
|
||||||
|
}
|
||||||
|
|
||||||
|
uploadImageupload_fieldgetById(ref:any, Test_gk:any,): Observable<any> {
|
||||||
|
return this.apiRequest.get(`FileUpload/Uploadeddocs/${ref}/${Test_gk}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
uploadImageupload_fielddelete(id: number): Observable<any> {
|
||||||
|
return this.apiRequest.delete(`FileUpload/Uploadeddocs/${id}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
uploadAudio_field(ref:any, Test_gk:any, file:any): Observable<any>{
|
||||||
|
const formData = new FormData();
|
||||||
|
formData.append('file', file);
|
||||||
|
return this.apiRequest.postFormData(`FileUpload/Uploadeddocs/${ref}/${Test_gk}`, formData);
|
||||||
|
}
|
||||||
|
|
||||||
|
uploadAudio_fieldgetById(ref:any, Test_gk:any,): Observable<any> {
|
||||||
|
return this.apiRequest.get(`FileUpload/Uploadeddocs/${ref}/${Test_gk}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
uploadAudio_fielddelete(id: number): Observable<any> {
|
||||||
|
return this.apiRequest.delete(`FileUpload/Uploadeddocs/${id}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
uploadVideo_field(ref:any, Test_gk:any, file:any): Observable<any>{
|
||||||
|
const formData = new FormData();
|
||||||
|
formData.append('file', file);
|
||||||
|
return this.apiRequest.postFormData(`FileUpload/Uploadeddocs/${ref}/${Test_gk}`, formData);
|
||||||
|
}
|
||||||
|
|
||||||
|
uploadVideo_fieldgetById(ref:any, Test_gk:any,): Observable<any> {
|
||||||
|
return this.apiRequest.get(`FileUpload/Uploadeddocs/${ref}/${Test_gk}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
uploadVideo_fielddelete(id: number): Observable<any> {
|
||||||
|
return this.apiRequest.delete(`FileUpload/Uploadeddocs/${id}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// updateaction
|
||||||
|
}
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
export const Test_gkcardvariable = {
|
||||||
|
"cardButton": false,
|
||||||
|
"cardmodeldata": ``
|
||||||
|
}
|
||||||
@ -1,3 +1,4 @@
|
|||||||
|
import { Test_gkComponent } from './BuilderComponents/basicp1/Test_gk/Test_gk.component';
|
||||||
|
|
||||||
import { SequencegenaratorComponent } from './fnd/sequencegenarator/sequencegenarator.component';
|
import { SequencegenaratorComponent } from './fnd/sequencegenarator/sequencegenarator.component';
|
||||||
import { Component, NgModule } from '@angular/core';
|
import { Component, NgModule } from '@angular/core';
|
||||||
@ -256,6 +257,9 @@ const routes: Routes = [
|
|||||||
|
|
||||||
|
|
||||||
// buildercomponents
|
// buildercomponents
|
||||||
|
{path:'Test_gk',component:Test_gkComponent},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
import { Test_gkComponent } from './BuilderComponents/basicp1/Test_gk/Test_gk.component';
|
||||||
|
|
||||||
|
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
@ -129,6 +130,9 @@ import { Stepper_workflowComponent } from './BuilderComponents/stepperworkflow/S
|
|||||||
|
|
||||||
|
|
||||||
// buildercomponents
|
// buildercomponents
|
||||||
|
Test_gkComponent,
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -226,10 +226,23 @@
|
|||||||
"MENU_ACTION_LINK": "Menu Action Link",
|
"MENU_ACTION_LINK": "Menu Action Link",
|
||||||
"STATUS": "Status",
|
"STATUS": "Status",
|
||||||
"SUB_MENU": "Sub Menu",
|
"SUB_MENU": "Sub Menu",
|
||||||
"Active": "Active",
|
"video_Field": "video_Field",
|
||||||
"Description": "Description",
|
"calculated_Field": "calculated_Field",
|
||||||
|
"b": "b",
|
||||||
|
"Number_b": "Number_b",
|
||||||
|
"Number_Field": "Number_Field",
|
||||||
|
"QRCode_Field": "QRCode_Field",
|
||||||
|
"h": "h",
|
||||||
|
"k": "k",
|
||||||
"Fileupload_Field": "Fileupload_Field",
|
"Fileupload_Field": "Fileupload_Field",
|
||||||
"Test22": "Test22",
|
"Value_List_Field": "Value_List_Field",
|
||||||
"Test11": "Test11",
|
"l": "l",
|
||||||
"Name": "Name"
|
"Name": "Name",
|
||||||
|
"Radio_Field": "Radio_Field",
|
||||||
|
"s": "s",
|
||||||
|
"Currency": "Currency",
|
||||||
|
"Imageupload_Field": "Imageupload_Field",
|
||||||
|
"audio_Field": "audio_Field",
|
||||||
|
"BarCode_Field": "BarCode_Field",
|
||||||
|
"Test_gk": "Test_gk"
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user