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( "Calculator","Calculator",  "Transcations");  | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
| @ -20,6 +20,8 @@ import com.realnet.app-b.Services.NoteService ; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| @RequestMapping(value = "/Note") | ||||
|  @CrossOrigin("*")  | ||||
| @RestController | ||||
| @ -34,12 +36,16 @@ public class NoteController { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 	@PostMapping("/Note") | ||||
| 		  public Note Savedata(@RequestBody Note data) { | ||||
| 		Note save = Service.Savedata(data)	; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 		System.out.println("data saved..." + 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") | ||||
|  @CrossOrigin("*")  | ||||
| @RestController | ||||
| @ -34,12 +36,16 @@ 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; | ||||
| @ -88,4 +94,6 @@ public class tokenFree_NoteController { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| } | ||||
| @ -8,6 +8,8 @@ import com.realnet.WhoColumn.Entity.Extension; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  @Entity  | ||||
|  @Data | ||||
|  public class    Note extends Extension {  | ||||
| @ -24,5 +26,7 @@ private String  title; | ||||
| 
 | ||||
| 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; | ||||
| 
 | ||||
| @Service | ||||
| @ -29,11 +31,15 @@ private NoteRepository Repository; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| public Note Savedata(Note data) { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 	data.setUpdatedBy(getUser().getUserId()); | ||||
| 		data.setCreatedBy(getUser().getUserId()); | ||||
| 		data.setAccountId(getUser().getAccount().getAccount_id()); | ||||
| @ -69,6 +75,8 @@ old.setTitle(data.getTitle()); | ||||
| 
 | ||||
| old.setContent(data.getContent()); | ||||
| 
 | ||||
| old.setCreateddate(data.getCreateddate()); | ||||
| 
 | ||||
| final Note test = Repository.save(old); | ||||
| 		data.setUpdatedBy(getUser().getUserId()); | ||||
|   return test;}  | ||||
| @ -76,6 +84,8 @@ final Note test = Repository.save(old); | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  public AppUser getUser() { | ||||
| 		AppUser user = userService.getLoggedInUser(); | ||||
| 		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), 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)); | ||||
| 
 | ||||
|  | ||||
| @ -30,6 +30,10 @@ | ||||
| <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 | ||||
| 						    </ng-container></clr-dg-column> | ||||
| 
 | ||||
|   | ||||
|  <!-- who column --> | ||||
|       <clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}"> | ||||
| @ -44,6 +48,9 @@ | ||||
| 
 | ||||
| <clr-dg-cell>{{user.content }}</clr-dg-cell> | ||||
| 
 | ||||
| 
 | ||||
| <clr-dg-cell>{{user.createddate }}</clr-dg-cell> | ||||
| 
 | ||||
|   | ||||
|   <!-- who column --> | ||||
| <clr-dg-cell> | ||||
| @ -200,6 +207,8 @@ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| <!-- //		EDIT DATA......... --> | ||||
| <clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true"> | ||||
|   <h3 class="modal-title">Update Note | ||||
| @ -207,6 +216,8 @@ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| </h3> | ||||
|   <div class="modal-body" *ngIf="rowSelected.id"> | ||||
|     <h2 class="heading">{{rowSelected.id}}</h2> | ||||
| @ -223,11 +234,18 @@ | ||||
| 	        <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" /> | ||||
| 	      </div> | ||||
| 
 | ||||
|   </div>  | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| <!-- form code start --> | ||||
|   <div *ngIf="checkFormCode"> | ||||
|     <h4 style="font-weight: 300;display: inline;">Extension</h4> | ||||
| @ -276,6 +294,8 @@ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   <!-- aeroplane icon --> | ||||
|             | ||||
|     <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" />        | ||||
|  </div> | ||||
| 
 | ||||
| <div class="clr-col-sm-12"> | ||||
|  <label>  CreatedDate</label> | ||||
|  <input class="clr-input"  type="date"  formControlName="createddate" />        | ||||
|  </div> | ||||
| 
 | ||||
|   | ||||
|  </div>  | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|       <!-- form code start --> | ||||
| @ -341,4 +368,6 @@ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   <!-- htmlpopup --> | ||||
|  | ||||
| @ -68,11 +68,15 @@ title : [null], | ||||
| 
 | ||||
| content : [null], | ||||
| 
 | ||||
| createddate : [null], | ||||
| 
 | ||||
| 
 | ||||
|   | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   }); // component_button200
 | ||||
|  // form code start
 | ||||
|     this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { | ||||
| @ -99,6 +103,8 @@ content : [null], | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   } | ||||
|  ngOnDestroy(): void { | ||||
| @ -109,6 +115,8 @@ content : [null], | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  error;  | ||||
|   getData() { | ||||
|     this.mainService.getAll().subscribe((data) => { | ||||
| @ -130,6 +138,8 @@ this.product = [...this.product].reverse(); if(this.product.length==0){ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|     this.modalEdit = true; | ||||
|   } | ||||
| @ -154,6 +164,8 @@ this.product = [...this.product].reverse(); if(this.product.length==0){ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|     //console.log("in update");
 | ||||
|     console.log("id  " + id); | ||||
|     console.log(this.rowSelected); | ||||
| @ -171,6 +183,8 @@ setTimeout(() => { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|       }, (error) => { | ||||
|         console.log(error); | ||||
|         if (error.status >= 200 && error.status <= 299) { | ||||
| @ -193,6 +207,8 @@ onCreate() { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   this.mainService.create(this.entryForm.value).subscribe( | ||||
|     (data) => { | ||||
|       console.log(data); | ||||
| @ -205,6 +221,8 @@ setTimeout(() => { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|       }, (error) => { | ||||
|         console.log(error); | ||||
| @ -227,6 +245,8 @@ this.modalAdd = true; this.submitted = false; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   } | ||||
|  submitted = false; | ||||
| @ -242,8 +262,12 @@ onSubmit() { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| // updateaction
 | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
| @ -33,5 +33,7 @@ export class Noteservice{ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| // updateaction
 | ||||
| } | ||||
| @ -1,6 +1,7 @@ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| import { NoteComponent } from './BuilderComponents/app-b/Note/Note.component'; | ||||
| 
 | ||||
| import { CalculatorComponent } from './BuilderComponents/app-b/Calculator/Calculator.component'; | ||||
| @ -272,6 +273,8 @@ const routes: Routes = [ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| {path:'Note',component:NoteComponent}, | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
| @ -1,6 +1,7 @@ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| import { NoteComponent } from './BuilderComponents/app-b/Note/Note.component'; | ||||
| 
 | ||||
| import { CalculatorComponent } from './BuilderComponents/app-b/Calculator/Calculator.component'; | ||||
| @ -145,6 +146,8 @@ import { MyworkspaceComponent } from './admin/myworkspace/myworkspace.component' | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| NoteComponent, | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
| @ -226,7 +226,6 @@ | ||||
|   "MENU_ACTION_LINK": "Menu Action Link", | ||||
|   "STATUS": "Status", | ||||
|   "SUB_MENU": "Sub Menu", | ||||
|   "LastModifiedDate": "LastModifiedDate", | ||||
|   "Content": "Content", | ||||
|   "Note": "Note", | ||||
|   "CreatedDate": "CreatedDate", | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user