build_app

This commit is contained in:
risadmin_prod 2025-10-09 04:52:16 +00:00
parent e7c676ba11
commit 4c97786db3
13 changed files with 13 additions and 88 deletions

View File

@ -69,6 +69,9 @@ public class BuilderService {
executeDump(true);
// ADD OTHER SERVICE
addCustomMenu( "Note","Note", "Transcations");
addCustomMenu( "Stopwatch","Stopwatch", "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 {
@ -26,7 +24,5 @@ private String title;
private String content;
private String createdat;
}

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());
@ -75,8 +69,6 @@ old.setTitle(data.getTitle());
old.setContent(data.getContent());
old.setCreatedat(data.getCreatedat());
final Note test = Repository.save(old);
data.setUpdatedBy(getUser().getUserId());
return test;}
@ -84,8 +76,6 @@ final Note test = Repository.save(old);
public AppUser getUser() {
AppUser user = userService.getLoggedInUser();
return user;

View File

@ -1,2 +1,2 @@
CREATE TABLE app-d.Stopwatch(id BIGINT NOT NULL AUTO_INCREMENT, time 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));

View File

@ -30,10 +30,6 @@
<clr-dg-column [clrDgField]="'content'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Content
</ng-container></clr-dg-column>
<clr-dg-column [clrDgField]="'createdat'"> <ng-container *clrDgHideableColumn="{hidden: false}"> CreatedAt
</ng-container></clr-dg-column>
<!-- who column -->
<clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}">
@ -48,9 +44,6 @@
<clr-dg-cell>{{user.content }}</clr-dg-cell>
<clr-dg-cell>{{user.createdat }}</clr-dg-cell>
<!-- who column -->
<clr-dg-cell>
@ -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>
@ -234,18 +223,11 @@
<input class="clr-input" type="text" [(ngModel)]="rowSelected.content" name="content" />
</div>
<div class="clr-col-sm-12">
<label>CreatedAt</label>
<input id="name" class="clr-input" type="date" [(ngModel)]="rowSelected.createdat" name="createdat" />
</div>
</div>
<!-- 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"
@ -319,19 +299,12 @@
<input class="clr-input" type="text" formControlName="content" />
</div>
<div class="clr-col-sm-12">
<label> CreatedAt</label>
<input class="clr-input" type="date" formControlName="createdat" />
</div>
</div>
<!-- form code start -->
@ -368,6 +341,4 @@
<!-- htmlpopup -->

View File

@ -68,15 +68,11 @@ title : [null],
content : [null],
createdat : [null],
}); // component_button200
// form code start
this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => {
@ -103,8 +99,6 @@ createdat : [null],
}
ngOnDestroy(): void {
@ -115,8 +109,6 @@ createdat : [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 { NotesappwireframeComponent } from './BuilderComponents/app-b/Notesappwireframe/Notesappwireframe.component';
@ -308,6 +309,8 @@ const routes: Routes = [
{path:'Notesappwireframe',component:NotesappwireframeComponent},

View File

@ -2,6 +2,7 @@
import { NotesappwireframeComponent } from './BuilderComponents/app-b/Notesappwireframe/Notesappwireframe.component';
@ -181,6 +182,8 @@ import { MyworkspaceComponent } from './admin/myworkspace/myworkspace.component'
NotesappwireframeComponent,

View File

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