build_app
This commit is contained in:
parent
69647d3b80
commit
91b3c01455
@ -81,6 +81,9 @@ addCustomMenu( "Note","Note", "Transcations");
|
|||||||
addCustomMenu( "Note","Note", "Transcations");
|
addCustomMenu( "Note","Note", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
|
addCustomMenu( "Note","Note", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
addCustomMenu( "Calculator","Calculator", "Transcations");
|
addCustomMenu( "Calculator","Calculator", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -20,6 +20,8 @@ import com.realnet.app-b.Services.NoteService ;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@RequestMapping(value = "/Note")
|
@RequestMapping(value = "/Note")
|
||||||
@CrossOrigin("*")
|
@CrossOrigin("*")
|
||||||
@RestController
|
@RestController
|
||||||
@ -34,12 +36,16 @@ public class NoteController {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@PostMapping("/Note")
|
@PostMapping("/Note")
|
||||||
public Note Savedata(@RequestBody Note data) {
|
public Note Savedata(@RequestBody Note data) {
|
||||||
Note save = Service.Savedata(data) ;
|
Note save = Service.Savedata(data) ;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
System.out.println("data saved..." + save);
|
System.out.println("data saved..." + save);
|
||||||
|
|
||||||
return save;
|
return save;
|
||||||
@ -88,4 +94,6 @@ public class NoteController {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -20,6 +20,8 @@ import com.realnet.app-b.Services.NoteService ;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@RequestMapping(value = "/token/Note")
|
@RequestMapping(value = "/token/Note")
|
||||||
@CrossOrigin("*")
|
@CrossOrigin("*")
|
||||||
@RestController
|
@RestController
|
||||||
@ -34,12 +36,16 @@ public class tokenFree_NoteController {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@PostMapping("/Note")
|
@PostMapping("/Note")
|
||||||
public Note Savedata(@RequestBody Note data) {
|
public Note Savedata(@RequestBody Note data) {
|
||||||
Note save = Service.Savedata(data) ;
|
Note save = Service.Savedata(data) ;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
System.out.println("data saved..." + save);
|
System.out.println("data saved..." + save);
|
||||||
|
|
||||||
return save;
|
return save;
|
||||||
@ -88,4 +94,6 @@ public class tokenFree_NoteController {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -8,6 +8,8 @@ import com.realnet.WhoColumn.Entity.Extension;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
@Data
|
@Data
|
||||||
public class Note extends Extension {
|
public class Note extends Extension {
|
||||||
@ -24,5 +26,7 @@ private String title;
|
|||||||
|
|
||||||
private String content;
|
private String content;
|
||||||
|
|
||||||
|
private String createddate;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -12,6 +12,8 @@ import java.util.*;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -16,6 +16,8 @@ import com.realnet.users.entity1.AppUser;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
@ -29,11 +31,15 @@ private NoteRepository Repository;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public Note Savedata(Note data) {
|
public Note Savedata(Note data) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
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());
|
||||||
@ -69,6 +75,8 @@ old.setTitle(data.getTitle());
|
|||||||
|
|
||||||
old.setContent(data.getContent());
|
old.setContent(data.getContent());
|
||||||
|
|
||||||
|
old.setCreateddate(data.getCreateddate());
|
||||||
|
|
||||||
final Note test = Repository.save(old);
|
final Note test = Repository.save(old);
|
||||||
data.setUpdatedBy(getUser().getUserId());
|
data.setUpdatedBy(getUser().getUserId());
|
||||||
return test;}
|
return test;}
|
||||||
@ -76,6 +84,8 @@ final Note test = Repository.save(old);
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public AppUser getUser() {
|
public AppUser getUser() {
|
||||||
AppUser user = userService.getLoggedInUser();
|
AppUser user = userService.getLoggedInUser();
|
||||||
return user;
|
return user;
|
||||||
|
|||||||
@ -1,4 +1,2 @@
|
|||||||
CREATE TABLE app-d.Note(id BIGINT NOT NULL AUTO_INCREMENT, lastmodifieddate Date, content VARCHAR(400), createddate Date, title VARCHAR(400), PRIMARY KEY (id));
|
CREATE TABLE app-d.Note(id BIGINT NOT NULL AUTO_INCREMENT, content VARCHAR(400), createddate Date, title VARCHAR(400), PRIMARY KEY (id));
|
||||||
|
|
||||||
CREATE TABLE app-d.Note(id BIGINT NOT NULL AUTO_INCREMENT, content VARCHAR(400), title VARCHAR(400), PRIMARY KEY (id));
|
|
||||||
|
|
||||||
|
|||||||
@ -30,6 +30,10 @@
|
|||||||
<clr-dg-column [clrDgField]="'content'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Content
|
<clr-dg-column [clrDgField]="'content'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Content
|
||||||
</ng-container></clr-dg-column>
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-column [clrDgField]="'createddate'"> <ng-container *clrDgHideableColumn="{hidden: false}"> CreatedDate
|
||||||
|
</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}">
|
||||||
@ -44,6 +48,9 @@
|
|||||||
|
|
||||||
<clr-dg-cell>{{user.content }}</clr-dg-cell>
|
<clr-dg-cell>{{user.content }}</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
|
<clr-dg-cell>{{user.createddate }}</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
<!-- who column -->
|
<!-- who column -->
|
||||||
<clr-dg-cell>
|
<clr-dg-cell>
|
||||||
@ -200,6 +207,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- // 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 Note
|
<h3 class="modal-title">Update Note
|
||||||
@ -207,6 +216,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</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>
|
||||||
@ -223,11 +234,18 @@
|
|||||||
<input class="clr-input" type="text" [(ngModel)]="rowSelected.content" name="content" />
|
<input class="clr-input" type="text" [(ngModel)]="rowSelected.content" name="content" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="clr-col-sm-12">
|
||||||
|
<label>CreatedDate</label>
|
||||||
|
<input id="name" class="clr-input" type="date" [(ngModel)]="rowSelected.createddate" name="createddate" />
|
||||||
|
</div>
|
||||||
|
|
||||||
</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>
|
||||||
@ -276,6 +294,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- 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"
|
||||||
@ -299,12 +319,19 @@
|
|||||||
<input class="clr-input" type="text" formControlName="content" />
|
<input class="clr-input" type="text" formControlName="content" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="clr-col-sm-12">
|
||||||
|
<label> CreatedDate</label>
|
||||||
|
<input class="clr-input" type="date" formControlName="createddate" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- form code start -->
|
<!-- form code start -->
|
||||||
@ -341,4 +368,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- htmlpopup -->
|
<!-- htmlpopup -->
|
||||||
|
|||||||
@ -68,11 +68,15 @@ title : [null],
|
|||||||
|
|
||||||
content : [null],
|
content : [null],
|
||||||
|
|
||||||
|
createddate : [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 => {
|
||||||
@ -99,6 +103,8 @@ content : [null],
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
ngOnDestroy(): void {
|
ngOnDestroy(): void {
|
||||||
@ -109,6 +115,8 @@ content : [null],
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
error;
|
error;
|
||||||
getData() {
|
getData() {
|
||||||
this.mainService.getAll().subscribe((data) => {
|
this.mainService.getAll().subscribe((data) => {
|
||||||
@ -130,6 +138,8 @@ this.product = [...this.product].reverse(); if(this.product.length==0){
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.modalEdit = true;
|
this.modalEdit = true;
|
||||||
}
|
}
|
||||||
@ -154,6 +164,8 @@ this.product = [...this.product].reverse(); if(this.product.length==0){
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//console.log("in update");
|
//console.log("in update");
|
||||||
console.log("id " + id);
|
console.log("id " + id);
|
||||||
console.log(this.rowSelected);
|
console.log(this.rowSelected);
|
||||||
@ -171,6 +183,8 @@ setTimeout(() => {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}, (error) => {
|
}, (error) => {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
if (error.status >= 200 && error.status <= 299) {
|
if (error.status >= 200 && error.status <= 299) {
|
||||||
@ -193,6 +207,8 @@ onCreate() {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.mainService.create(this.entryForm.value).subscribe(
|
this.mainService.create(this.entryForm.value).subscribe(
|
||||||
(data) => {
|
(data) => {
|
||||||
console.log(data);
|
console.log(data);
|
||||||
@ -205,6 +221,8 @@ setTimeout(() => {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}, (error) => {
|
}, (error) => {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
@ -227,6 +245,8 @@ this.modalAdd = true; this.submitted = false;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
submitted = false;
|
submitted = false;
|
||||||
@ -242,8 +262,12 @@ onSubmit() {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// updateaction
|
// updateaction
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -33,5 +33,7 @@ export class Noteservice{
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// updateaction
|
// updateaction
|
||||||
}
|
}
|
||||||
@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import { NoteComponent } from './BuilderComponents/app-b/Note/Note.component';
|
import { NoteComponent } from './BuilderComponents/app-b/Note/Note.component';
|
||||||
|
|
||||||
import { CalculatorComponent } from './BuilderComponents/app-b/Calculator/Calculator.component';
|
import { CalculatorComponent } from './BuilderComponents/app-b/Calculator/Calculator.component';
|
||||||
@ -272,6 +273,8 @@ const routes: Routes = [
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{path:'Note',component:NoteComponent},
|
{path:'Note',component:NoteComponent},
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import { NoteComponent } from './BuilderComponents/app-b/Note/Note.component';
|
import { NoteComponent } from './BuilderComponents/app-b/Note/Note.component';
|
||||||
|
|
||||||
import { CalculatorComponent } from './BuilderComponents/app-b/Calculator/Calculator.component';
|
import { CalculatorComponent } from './BuilderComponents/app-b/Calculator/Calculator.component';
|
||||||
@ -145,6 +146,8 @@ import { MyworkspaceComponent } from './admin/myworkspace/myworkspace.component'
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
NoteComponent,
|
NoteComponent,
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -226,7 +226,6 @@
|
|||||||
"MENU_ACTION_LINK": "Menu Action Link",
|
"MENU_ACTION_LINK": "Menu Action Link",
|
||||||
"STATUS": "Status",
|
"STATUS": "Status",
|
||||||
"SUB_MENU": "Sub Menu",
|
"SUB_MENU": "Sub Menu",
|
||||||
"LastModifiedDate": "LastModifiedDate",
|
|
||||||
"Content": "Content",
|
"Content": "Content",
|
||||||
"Note": "Note",
|
"Note": "Note",
|
||||||
"CreatedDate": "CreatedDate",
|
"CreatedDate": "CreatedDate",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user