build_app

This commit is contained in:
risadmin_prod 2025-10-06 04:52:34 +00:00
parent fdcf212018
commit b718dff91c
13 changed files with 31 additions and 108 deletions

View File

@ -69,6 +69,9 @@ public class BuilderService {
executeDump(true);
// ADD OTHER SERVICE
addCustomMenu( "Note","Note", "Transcations");
addCustomMenu( "Calculator","Calculator", "Transcations");

View File

@ -20,8 +20,6 @@ import com.realnet.app-b.Services.NoteService ;
@RequestMapping(value = "/Note")
@CrossOrigin("*")
@RestController
@ -36,16 +34,12 @@ public class NoteController {
@PostMapping("/Note")
public Note Savedata(@RequestBody Note data) {
Note save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
@ -94,6 +88,4 @@ public class NoteController {
}

View File

@ -20,8 +20,6 @@ import com.realnet.app-b.Services.NoteService ;
@RequestMapping(value = "/token/Note")
@CrossOrigin("*")
@RestController
@ -36,16 +34,12 @@ public class tokenFree_NoteController {
@PostMapping("/Note")
public Note Savedata(@RequestBody Note data) {
Note save = Service.Savedata(data) ;
System.out.println("data saved..." + save);
return save;
@ -94,6 +88,4 @@ public class tokenFree_NoteController {
}

View File

@ -8,8 +8,6 @@ import com.realnet.WhoColumn.Entity.Extension;
@Entity
@Data
public class Note extends Extension {
@ -22,11 +20,9 @@ import com.realnet.WhoColumn.Entity.Extension;
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
private String title;
private String notetitle;
private String content;
private String createddate;
private String notecontent;
}

View File

@ -16,8 +16,6 @@ import com.realnet.users.entity1.AppUser;
import org.springframework.stereotype.Service;
@Service
@ -31,15 +29,11 @@ private NoteRepository Repository;
public Note Savedata(Note data) {
data.setUpdatedBy(getUser().getUserId());
data.setCreatedBy(getUser().getUserId());
data.setAccountId(getUser().getAccount().getAccount_id());
@ -71,11 +65,9 @@ public Note getdetailsbyId(Integer id) {
public Note update(Note data,Integer id) {
Note old = Repository.findById(id).get();
old.setTitle(data.getTitle());
old.setNotetitle(data.getNotetitle());
old.setContent(data.getContent());
old.setCreateddate(data.getCreateddate());
old.setNotecontent(data.getNotecontent());
final Note test = Repository.save(old);
data.setUpdatedBy(getUser().getUserId());
@ -84,8 +76,6 @@ final Note test = Repository.save(old);
public AppUser getUser() {
AppUser user = userService.getLoggedInUser();
return user;

View File

@ -1,4 +1,2 @@
CREATE TABLE app-d.Calculator(id BIGINT NOT NULL AUTO_INCREMENT, number2 int, number1 int, result VARCHAR(400), PRIMARY KEY (id));
CREATE TABLE app-d.Calculator(id BIGINT NOT NULL AUTO_INCREMENT, number2 int, number1 int, result VARCHAR(400), PRIMARY KEY (id));
CREATE TABLE app-d.Note(id BIGINT NOT NULL AUTO_INCREMENT, notecontent VARCHAR(400), notetitle VARCHAR(400), PRIMARY KEY (id));

View File

@ -23,15 +23,11 @@
<div *ngIf="error;else loadingSpinner">{{error}}</div>
</clr-dg-placeholder>
<clr-dg-column [clrDgField]="'title'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Title
<clr-dg-column [clrDgField]="'notetitle'"> <ng-container *clrDgHideableColumn="{hidden: false}"> NoteTitle
</ng-container></clr-dg-column>
<clr-dg-column [clrDgField]="'content'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Content
</ng-container></clr-dg-column>
<clr-dg-column [clrDgField]="'createddate'"> <ng-container *clrDgHideableColumn="{hidden: false}"> CreatedDate
<clr-dg-column [clrDgField]="'notecontent'"> <ng-container *clrDgHideableColumn="{hidden: false}"> NoteContent
</ng-container></clr-dg-column>
@ -43,13 +39,10 @@
<clr-dg-row *clrDgItems="let user of product" [clrDgItem]="user">
<clr-dg-cell>{{user.title }}</clr-dg-cell>
<clr-dg-cell>{{user.notetitle }}</clr-dg-cell>
<clr-dg-cell>{{user.content }}</clr-dg-cell>
<clr-dg-cell>{{user.createddate }}</clr-dg-cell>
<clr-dg-cell>{{user.notecontent }}</clr-dg-cell>
<!-- who column -->
@ -207,8 +200,6 @@
<!-- // EDIT DATA......... -->
<clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true">
<h3 class="modal-title">Update Note
@ -216,8 +207,6 @@
</h3>
<div class="modal-body" *ngIf="rowSelected.id">
<h2 class="heading">{{rowSelected.id}}</h2>
@ -225,18 +214,13 @@
<form >
<div class="clr-row">
<div class="clr-col-sm-12">
<label>Title</label>
<input class="clr-input" type="text" [(ngModel)]="rowSelected.title" name="title" />
<label>NoteTitle</label>
<input class="clr-input" type="text" [(ngModel)]="rowSelected.notetitle" name="notetitle" />
</div>
<div class="clr-col-sm-12">
<label>Content</label>
<input class="clr-input" type="text" [(ngModel)]="rowSelected.content" name="content" />
</div>
<div class="clr-col-sm-12">
<label>CreatedDate</label>
<input id="name" class="clr-input" type="date" [(ngModel)]="rowSelected.createddate" name="createddate" />
<label>NoteContent</label>
<input class="clr-input" type="text" [(ngModel)]="rowSelected.notecontent" name="notecontent" />
</div>
</div>
@ -244,8 +228,6 @@
<!-- form code start -->
<div *ngIf="checkFormCode">
<h4 style="font-weight: 300;display: inline;">Extension</h4>
@ -294,8 +276,6 @@
<!-- aeroplane icon -->
&nbsp; &nbsp; &nbsp; &nbsp;
<a *ngIf="userrole?.includes('ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip" aria-haspopup="true"
@ -310,18 +290,13 @@
<div class="clr-row" style="height: fit-content;">
<div class="clr-col-sm-12">
<label> Title</label>
<input class="clr-input" type="text" formControlName="title" />
<label> NoteTitle</label>
<input class="clr-input" type="text" formControlName="notetitle" />
</div>
<div class="clr-col-sm-12">
<label> Content</label>
<input class="clr-input" type="text" formControlName="content" />
</div>
<div class="clr-col-sm-12">
<label> CreatedDate</label>
<input class="clr-input" type="date" formControlName="createddate" />
<label> NoteContent</label>
<input class="clr-input" type="text" formControlName="notecontent" />
</div>
@ -330,8 +305,6 @@
<!-- form code start -->
@ -368,6 +341,4 @@
<!-- htmlpopup -->

View File

@ -64,19 +64,15 @@ private userInfoService:UserInfoService,
this.userrole=this.userInfoService.getRoles();
this.getData();
this.entryForm = this._fb.group({
title : [null],
notetitle : [null],
content : [null],
createddate : [null],
notecontent : [null],
}); // component_button200
// form code start
this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => {
@ -103,8 +99,6 @@ createddate : [null],
}
ngOnDestroy(): void {
@ -115,8 +109,6 @@ createddate : [null],
error;
getData() {
this.mainService.getAll().subscribe((data) => {
@ -138,8 +130,6 @@ this.product = [...this.product].reverse(); if(this.product.length==0){
this.modalEdit = true;
}
@ -164,8 +154,6 @@ this.product = [...this.product].reverse(); if(this.product.length==0){
//console.log("in update");
console.log("id " + id);
console.log(this.rowSelected);
@ -183,8 +171,6 @@ setTimeout(() => {
}, (error) => {
console.log(error);
if (error.status >= 200 && error.status <= 299) {
@ -207,8 +193,6 @@ onCreate() {
this.mainService.create(this.entryForm.value).subscribe(
(data) => {
console.log(data);
@ -221,8 +205,6 @@ setTimeout(() => {
}, (error) => {
console.log(error);
@ -245,8 +227,6 @@ this.modalAdd = true; this.submitted = false;
}
submitted = false;
@ -262,12 +242,8 @@ onSubmit() {
// updateaction
}

View File

@ -2,6 +2,7 @@
import { StopwatchComponent } from './BuilderComponents/app-b/Stopwatch/Stopwatch.component';
@ -299,6 +300,8 @@ const routes: Routes = [
{path:'Stopwatch',component:StopwatchComponent},

View File

@ -2,6 +2,7 @@
import { StopwatchComponent } from './BuilderComponents/app-b/Stopwatch/Stopwatch.component';
@ -172,6 +173,8 @@ import { MyworkspaceComponent } from './admin/myworkspace/myworkspace.component'
StopwatchComponent,

View File

@ -226,4 +226,7 @@
"MENU_ACTION_LINK": "Menu Action Link",
"STATUS": "Status",
"SUB_MENU": "Sub Menu",
"Note": "Note",
"NoteContent": "NoteContent",
"NoteTitle": "NoteTitle"
}