build_app
This commit is contained in:
parent
044c948e5e
commit
090a4195e4
@ -72,6 +72,9 @@ public class BuilderService {
|
|||||||
addCustomMenu( "Forma","Forma", "Transcations");
|
addCustomMenu( "Forma","Forma", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
|
addCustomMenu( "Forma","Forma", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
System.out.println("dashboard and menu inserted...");
|
System.out.println("dashboard and menu inserted...");
|
||||||
|
|
||||||
|
|||||||
@ -20,8 +20,6 @@ import com.realnet.basicp1.Services.FormaService ;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@RequestMapping(value = "/Forma")
|
@RequestMapping(value = "/Forma")
|
||||||
@CrossOrigin("*")
|
@CrossOrigin("*")
|
||||||
@RestController
|
@RestController
|
||||||
@ -36,16 +34,12 @@ public class FormaController {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@PostMapping("/Forma")
|
@PostMapping("/Forma")
|
||||||
public Forma Savedata(@RequestBody Forma data) {
|
public Forma Savedata(@RequestBody Forma data) {
|
||||||
Forma save = Service.Savedata(data) ;
|
Forma save = Service.Savedata(data) ;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
System.out.println("data saved..." + save);
|
System.out.println("data saved..." + save);
|
||||||
|
|
||||||
return save;
|
return save;
|
||||||
@ -94,6 +88,4 @@ public class FormaController {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -20,8 +20,6 @@ import com.realnet.basicp1.Services.FormaService ;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@RequestMapping(value = "/token/Forma")
|
@RequestMapping(value = "/token/Forma")
|
||||||
@CrossOrigin("*")
|
@CrossOrigin("*")
|
||||||
@RestController
|
@RestController
|
||||||
@ -36,16 +34,12 @@ public class tokenFree_FormaController {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@PostMapping("/Forma")
|
@PostMapping("/Forma")
|
||||||
public Forma Savedata(@RequestBody Forma data) {
|
public Forma Savedata(@RequestBody Forma data) {
|
||||||
Forma save = Service.Savedata(data) ;
|
Forma save = Service.Savedata(data) ;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
System.out.println("data saved..." + save);
|
System.out.println("data saved..." + save);
|
||||||
|
|
||||||
return save;
|
return save;
|
||||||
@ -94,6 +88,4 @@ public class tokenFree_FormaController {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -8,8 +8,6 @@ import com.realnet.WhoColumn.Entity.Extension;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
@Data
|
@Data
|
||||||
public class Forma extends Extension {
|
public class Forma extends Extension {
|
||||||
@ -26,8 +24,5 @@ private String name;
|
|||||||
|
|
||||||
private String documentsequence;
|
private String documentsequence;
|
||||||
|
|
||||||
private Long user_id;
|
|
||||||
private String user_name;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,8 +15,6 @@ import java.util.*;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import com.realnet.basicp1.Entity.Forma;
|
import com.realnet.basicp1.Entity.Forma;
|
||||||
|
|
||||||
@Repository
|
@Repository
|
||||||
|
|||||||
@ -16,8 +16,6 @@ import com.realnet.users.entity1.AppUser;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
@ -32,16 +30,11 @@ private FormaRepository Repository;
|
|||||||
@Autowired
|
@Autowired
|
||||||
private SequenceService documentsequencesequenceService;
|
private SequenceService documentsequencesequenceService;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public Forma Savedata(Forma data) {
|
public Forma Savedata(Forma data) {
|
||||||
|
|
||||||
|
|
||||||
data.setDocumentsequence (documentsequencesequenceService.GenerateSequence("kk"));
|
data.setDocumentsequence (documentsequencesequenceService.GenerateSequence("kk"));
|
||||||
|
|
||||||
data.setUser_id(getUser().getUserId());
|
|
||||||
data.setUser_name(getUser().getFullName());
|
|
||||||
|
|
||||||
data.setUpdatedBy(getUser().getUserId());
|
data.setUpdatedBy(getUser().getUserId());
|
||||||
data.setCreatedBy(getUser().getUserId());
|
data.setCreatedBy(getUser().getUserId());
|
||||||
data.setAccountId(getUser().getAccount().getAccount_id());
|
data.setAccountId(getUser().getAccount().getAccount_id());
|
||||||
@ -77,8 +70,6 @@ old.setName(data.getName());
|
|||||||
|
|
||||||
old.setDocumentsequence(data.getDocumentsequence());
|
old.setDocumentsequence(data.getDocumentsequence());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final Forma test = Repository.save(old);
|
final Forma test = Repository.save(old);
|
||||||
data.setUpdatedBy(getUser().getUserId());
|
data.setUpdatedBy(getUser().getUserId());
|
||||||
return test;}
|
return test;}
|
||||||
@ -86,8 +77,6 @@ final Forma test = Repository.save(old);
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public AppUser getUser() {
|
public AppUser getUser() {
|
||||||
AppUser user = userService.getLoggedInUser();
|
AppUser user = userService.getLoggedInUser();
|
||||||
return user;
|
return user;
|
||||||
|
|||||||
@ -1,2 +1,2 @@
|
|||||||
CREATE TABLE db.Forma(id BIGINT NOT NULL AUTO_INCREMENT, userid_field VARCHAR(400), name VARCHAR(400), documentsequence VARCHAR(400), PRIMARY KEY (id));
|
CREATE TABLE db.Forma(id BIGINT NOT NULL AUTO_INCREMENT, name VARCHAR(400), documentsequence VARCHAR(400), PRIMARY KEY (id));
|
||||||
|
|
||||||
|
|||||||
@ -31,8 +31,6 @@
|
|||||||
</ng-container></clr-dg-column>
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- who column -->
|
<!-- who column -->
|
||||||
<clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}">
|
<clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}">
|
||||||
<clr-icon shape="bars"></clr-icon> Action
|
<clr-icon shape="bars"></clr-icon> Action
|
||||||
@ -47,8 +45,6 @@
|
|||||||
<clr-dg-cell>{{user. documentsequence }}</clr-dg-cell>
|
<clr-dg-cell>{{user. documentsequence }}</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- who column -->
|
<!-- who column -->
|
||||||
<clr-dg-cell>
|
<clr-dg-cell>
|
||||||
<clr-signpost>
|
<clr-signpost>
|
||||||
@ -204,8 +200,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- // EDIT DATA......... -->
|
<!-- // EDIT DATA......... -->
|
||||||
<clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
|
||||||
<h3 class="modal-title">Update Forma
|
<h3 class="modal-title">Update Forma
|
||||||
@ -213,8 +207,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</h3>
|
</h3>
|
||||||
<div class="modal-body" *ngIf="rowSelected.id">
|
<div class="modal-body" *ngIf="rowSelected.id">
|
||||||
<h2 class="heading">{{rowSelected.id}}</h2>
|
<h2 class="heading">{{rowSelected.id}}</h2>
|
||||||
@ -228,15 +220,11 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- form code start -->
|
<!-- form code start -->
|
||||||
<div *ngIf="checkFormCode">
|
<div *ngIf="checkFormCode">
|
||||||
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
||||||
@ -285,8 +273,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- aeroplane icon -->
|
<!-- aeroplane icon -->
|
||||||
|
|
||||||
<a *ngIf="userrole?.includes('ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip" aria-haspopup="true"
|
<a *ngIf="userrole?.includes('ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip" aria-haspopup="true"
|
||||||
@ -308,8 +294,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -317,8 +301,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- form code start -->
|
<!-- form code start -->
|
||||||
<div *ngIf="checkFormCode">
|
<div *ngIf="checkFormCode">
|
||||||
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
||||||
@ -353,6 +335,4 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- htmlpopup -->
|
<!-- htmlpopup -->
|
||||||
|
|||||||
@ -72,10 +72,6 @@ documentsequence : [null],
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}); // component_button200
|
}); // component_button200
|
||||||
// form code start
|
// form code start
|
||||||
this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => {
|
this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => {
|
||||||
@ -103,15 +99,11 @@ documentsequence : [null],
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
error;
|
error;
|
||||||
getData() {
|
getData() {
|
||||||
this.mainService.getAll().subscribe((data) => {
|
this.mainService.getAll().subscribe((data) => {
|
||||||
@ -134,8 +126,6 @@ documentsequence : [null],
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.modalEdit = true;
|
this.modalEdit = true;
|
||||||
}
|
}
|
||||||
onDelete(row) {
|
onDelete(row) {
|
||||||
@ -159,8 +149,6 @@ documentsequence : [null],
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//console.log("in update");
|
//console.log("in update");
|
||||||
console.log("id " + id);
|
console.log("id " + id);
|
||||||
console.log(this.rowSelected);
|
console.log(this.rowSelected);
|
||||||
@ -178,8 +166,6 @@ setTimeout(() => {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}, (error) => {
|
}, (error) => {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
if (error.status >= 200 && error.status <= 299) {
|
if (error.status >= 200 && error.status <= 299) {
|
||||||
@ -202,8 +188,6 @@ onCreate() {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.mainService.create(this.entryForm.value).subscribe(
|
this.mainService.create(this.entryForm.value).subscribe(
|
||||||
(data) => {
|
(data) => {
|
||||||
console.log(data);
|
console.log(data);
|
||||||
@ -217,8 +201,6 @@ setTimeout(() => {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}, (error) => {
|
}, (error) => {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
if (error.status >= 200 && error.status <= 299) {
|
if (error.status >= 200 && error.status <= 299) {
|
||||||
@ -241,8 +223,6 @@ this.modalAdd = true; this.submitted = false;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
submitted = false;
|
submitted = false;
|
||||||
onSubmit() {
|
onSubmit() {
|
||||||
@ -257,12 +237,8 @@ onSubmit() {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// updateaction
|
// updateaction
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -33,7 +33,5 @@ export class Formaservice{
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// updateaction
|
// updateaction
|
||||||
}
|
}
|
||||||
@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
import { FormaComponent } from './BuilderComponents/basicp1/Forma/Forma.component';
|
import { FormaComponent } from './BuilderComponents/basicp1/Forma/Forma.component';
|
||||||
|
|
||||||
import { SequencegenaratorComponent } from './fnd/sequencegenarator/sequencegenarator.component';
|
import { SequencegenaratorComponent } from './fnd/sequencegenarator/sequencegenarator.component';
|
||||||
@ -257,6 +258,8 @@ const routes: Routes = [
|
|||||||
|
|
||||||
|
|
||||||
// buildercomponents
|
// buildercomponents
|
||||||
|
|
||||||
|
|
||||||
{path:'Forma',component:FormaComponent},
|
{path:'Forma',component:FormaComponent},
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
import { FormaComponent } from './BuilderComponents/basicp1/Forma/Forma.component';
|
import { FormaComponent } from './BuilderComponents/basicp1/Forma/Forma.component';
|
||||||
|
|
||||||
|
|
||||||
@ -130,6 +131,8 @@ import { Stepper_workflowComponent } from './BuilderComponents/stepperworkflow/S
|
|||||||
|
|
||||||
|
|
||||||
// buildercomponents
|
// buildercomponents
|
||||||
|
|
||||||
|
|
||||||
FormaComponent,
|
FormaComponent,
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -227,7 +227,6 @@
|
|||||||
"STATUS": "Status",
|
"STATUS": "Status",
|
||||||
"SUB_MENU": "Sub Menu",
|
"SUB_MENU": "Sub Menu",
|
||||||
"Forma": "Forma",
|
"Forma": "Forma",
|
||||||
"UserId_Field": "UserId_Field",
|
|
||||||
"Name": "Name",
|
"Name": "Name",
|
||||||
"documentsequence": "documentsequence"
|
"documentsequence": "documentsequence"
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user