build_app
This commit is contained in:
		
							parent
							
								
									b37fd2919b
								
							
						
					
					
						commit
						976f4191fc
					
				| @ -72,6 +72,9 @@ public class BuilderService { | ||||
| addCustomMenu( "Todoitem","Todoitem",  "Transcations");  | ||||
| 
 | ||||
| 
 | ||||
| addCustomMenu( "Todoitem","Todoitem",  "Transcations");  | ||||
| 
 | ||||
| 
 | ||||
| addCustomMenu( "Note","Note",  "Transcations");  | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
| @ -20,6 +20,10 @@ import com.realnet.app-b.Services.TodoitemService ; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| @RequestMapping(value = "/Todoitem") | ||||
|  @CrossOrigin("*")  | ||||
| @RestController | ||||
| @ -34,12 +38,20 @@ public class TodoitemController { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 	@PostMapping("/Todoitem") | ||||
| 		  public Todoitem Savedata(@RequestBody Todoitem data) { | ||||
| 		Todoitem save = Service.Savedata(data)	; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 		System.out.println("data saved..." + save); | ||||
| 
 | ||||
|  return save; | ||||
| @ -88,4 +100,8 @@ public class TodoitemController { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| } | ||||
| @ -20,6 +20,10 @@ import com.realnet.app-b.Services.TodoitemService ; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| @RequestMapping(value = "/token/Todoitem") | ||||
|  @CrossOrigin("*")  | ||||
| @RestController | ||||
| @ -34,12 +38,20 @@ public class tokenFree_TodoitemController { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 	@PostMapping("/Todoitem") | ||||
| 		  public Todoitem Savedata(@RequestBody Todoitem data) { | ||||
| 		Todoitem save = Service.Savedata(data)	; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 		System.out.println("data saved..." + save); | ||||
| 
 | ||||
|  return save; | ||||
| @ -88,4 +100,8 @@ public class tokenFree_TodoitemController { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| } | ||||
| @ -8,6 +8,10 @@ import com.realnet.WhoColumn.Entity.Extension; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  @Entity  | ||||
|  @Data | ||||
|  public class    Todoitem extends Extension {  | ||||
| @ -22,6 +26,10 @@ import com.realnet.WhoColumn.Entity.Extension; | ||||
| 
 | ||||
| private String  task; | ||||
| 
 | ||||
| private String  description; | ||||
| 
 | ||||
| private String duedate; | ||||
| 
 | ||||
| private String completed; | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
| @ -12,6 +12,10 @@ import java.util.*; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   | ||||
| 
 | ||||
|  | ||||
| @ -16,6 +16,10 @@ import com.realnet.users.entity1.AppUser; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 	import org.springframework.stereotype.Service; | ||||
| 
 | ||||
| @Service | ||||
| @ -29,11 +33,19 @@ private TodoitemRepository Repository; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| public Todoitem Savedata(Todoitem data) { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 	data.setUpdatedBy(getUser().getUserId()); | ||||
| 		data.setCreatedBy(getUser().getUserId()); | ||||
| 		data.setAccountId(getUser().getAccount().getAccount_id()); | ||||
| @ -67,6 +79,10 @@ public Todoitem update(Todoitem data,Integer id) { | ||||
| 	Todoitem old = Repository.findById(id).get(); | ||||
| old.setTask(data.getTask()); | ||||
| 
 | ||||
| old.setDescription(data.getDescription()); | ||||
| 
 | ||||
| old.setDuedate(data.getDuedate()); | ||||
| 
 | ||||
| old.setCompleted(data.getCompleted()); | ||||
| 
 | ||||
| final Todoitem test = Repository.save(old); | ||||
| @ -76,6 +92,10 @@ final Todoitem test = Repository.save(old); | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  public AppUser getUser() { | ||||
| 		AppUser user = userService.getLoggedInUser(); | ||||
| 		return user; | ||||
|  | ||||
| @ -1,2 +1,2 @@ | ||||
| CREATE TABLE app-d.Todoitem(id BIGINT NOT NULL AUTO_INCREMENT, task VARCHAR(400), completed bit(1),  PRIMARY KEY (id)); | ||||
| CREATE TABLE app-d.Todoitem(id BIGINT NOT NULL AUTO_INCREMENT, task VARCHAR(400), duedate Date, description VARCHAR(400), completed bit(1),  PRIMARY KEY (id)); | ||||
| 
 | ||||
|  | ||||
| @ -1,10 +1,10 @@ | ||||
| <ol class="breadcrumb breadcrumb-arrow font-trirong"> | ||||
|   <li><a href="javascript://"> ToDoItem</a></li> | ||||
|   <li><a href="javascript://"> Todoitem</a></li> | ||||
| </ol> | ||||
| <div class="dg-wrapper"> | ||||
|   <div class="clr-row"> | ||||
|     <div class="clr-col-8"> | ||||
|       <h3>ToDoItem </h3> | ||||
|       <h3>Todoitem </h3> | ||||
|     </div> | ||||
|     <div class="clr-col-4" style="text-align: right;"> | ||||
|  <button *ngIf="cardButton" id="add" class="btn btn-primary btn-icon" (click)="changeView()" > | ||||
| @ -23,11 +23,19 @@ | ||||
|         <div *ngIf="error;else loadingSpinner">{{error}}</div> | ||||
|     </clr-dg-placeholder> | ||||
| 
 | ||||
| <clr-dg-column [clrDgField]="'task'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Task | ||||
| <clr-dg-column [clrDgField]="'task'"> <ng-container *clrDgHideableColumn="{hidden: false}"> task | ||||
| 						    </ng-container></clr-dg-column> | ||||
| 
 | ||||
| 
 | ||||
| <clr-dg-column [clrDgField]="'completed'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Completed | ||||
| <clr-dg-column [clrDgField]="'description'"> <ng-container *clrDgHideableColumn="{hidden: false}"> description | ||||
| 						    </ng-container></clr-dg-column> | ||||
| 
 | ||||
| 
 | ||||
| <clr-dg-column [clrDgField]="'duedate'"> <ng-container *clrDgHideableColumn="{hidden: false}"> dueDate | ||||
| 						    </ng-container></clr-dg-column> | ||||
| 
 | ||||
| 
 | ||||
| <clr-dg-column [clrDgField]="'completed'"> <ng-container *clrDgHideableColumn="{hidden: false}"> completed | ||||
| 						    </ng-container></clr-dg-column> | ||||
| 
 | ||||
|   | ||||
| @ -42,6 +50,12 @@ | ||||
| <clr-dg-cell>{{user.task }}</clr-dg-cell> | ||||
| 
 | ||||
| 
 | ||||
| <clr-dg-cell>{{user.description }}</clr-dg-cell> | ||||
| 
 | ||||
| 
 | ||||
| <clr-dg-cell>{{user.duedate }}</clr-dg-cell> | ||||
| 
 | ||||
| 
 | ||||
| <clr-dg-cell>{{user.completed }}</clr-dg-cell> | ||||
| 
 | ||||
|   | ||||
| @ -200,13 +214,21 @@ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| <!-- //		EDIT DATA......... --> | ||||
| <clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true"> | ||||
|   <h3 class="modal-title">Update ToDoItem | ||||
|   <h3 class="modal-title">Update Todoitem | ||||
|  <!--update button --> | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| </h3> | ||||
|   <div class="modal-body" *ngIf="rowSelected.id"> | ||||
|     <h2 class="heading">{{rowSelected.id}}</h2> | ||||
| @ -214,12 +236,22 @@ | ||||
|     <form > | ||||
| <div class="clr-row">  | ||||
| <div class="clr-col-sm-12">        | ||||
| <label>Task</label> | ||||
| <label>task</label> | ||||
| 	        <input class="clr-input"  type="text" [(ngModel)]="rowSelected.task" name="task" /> | ||||
| 	      </div> | ||||
| 
 | ||||
| <div class="clr-col-sm-12">        | ||||
| <label>Completed</label> | ||||
| <label>description</label> | ||||
| 	        <input class="clr-input"  type="text" [(ngModel)]="rowSelected.description" name="description" /> | ||||
| 	      </div> | ||||
| 
 | ||||
| <div class="clr-col-sm-12">        | ||||
| <label>dueDate</label> | ||||
| 	        <input id="name" class="clr-input"  type="date" [(ngModel)]="rowSelected.duedate" name="duedate" /> | ||||
| 	      </div> | ||||
| 
 | ||||
| <div class="clr-col-sm-12">        | ||||
| <label>completed</label> | ||||
| 	        <input class="clr-input"  type="text" [(ngModel)]="rowSelected.completed" name="completed" /> | ||||
| 	      </div> | ||||
| 
 | ||||
| @ -228,6 +260,10 @@ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| <!-- form code start --> | ||||
|   <div *ngIf="checkFormCode"> | ||||
|     <h4 style="font-weight: 300;display: inline;">Extension</h4> | ||||
| @ -271,7 +307,11 @@ | ||||
| </clr-modal> | ||||
| <!-- ADD FORM ..... --> | ||||
| <clr-modal [(clrModalOpen)]="modalAdd" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true"> | ||||
|   <h3 class="modal-title">Add ToDoItem  | ||||
|   <h3 class="modal-title">Add Todoitem  | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| @ -290,12 +330,22 @@ | ||||
|    <div class="clr-row" style="height: fit-content;"> | ||||
| 
 | ||||
| <div class="clr-col-sm-12"> | ||||
|  <label>  Task</label> | ||||
|  <label>  task</label> | ||||
|  <input class="clr-input"  type="text"  formControlName="task" />        | ||||
|  </div> | ||||
| 
 | ||||
| <div class="clr-col-sm-12"> | ||||
|  <label>  Completed</label> | ||||
|  <label>  description</label> | ||||
|  <input class="clr-input"  type="text"  formControlName="description" />        | ||||
|  </div> | ||||
| 
 | ||||
| <div class="clr-col-sm-12"> | ||||
|  <label>  dueDate</label> | ||||
|  <input class="clr-input"  type="date"  formControlName="duedate" />        | ||||
|  </div> | ||||
| 
 | ||||
| <div class="clr-col-sm-12"> | ||||
|  <label>  completed</label> | ||||
|  <input class="clr-input"  type="text"  formControlName="completed" />        | ||||
|  </div> | ||||
| 
 | ||||
| @ -305,6 +355,10 @@ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|       <!-- form code start --> | ||||
| @ -341,4 +395,8 @@ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   <!-- htmlpopup --> | ||||
|  | ||||
| @ -66,6 +66,10 @@ private userInfoService:UserInfoService, | ||||
|     this.entryForm = this._fb.group({ | ||||
| task : [null], | ||||
| 
 | ||||
| description : [null], | ||||
| 
 | ||||
| duedate : [null], | ||||
| 
 | ||||
| completed : [null], | ||||
| 
 | ||||
| 
 | ||||
| @ -73,6 +77,10 @@ completed : [null], | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   }); // component_button200
 | ||||
|  // form code start
 | ||||
|     this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { | ||||
| @ -99,6 +107,10 @@ completed : [null], | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   } | ||||
|  ngOnDestroy(): void { | ||||
| @ -109,6 +121,10 @@ completed : [null], | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  error;  | ||||
|   getData() { | ||||
|     this.mainService.getAll().subscribe((data) => { | ||||
| @ -130,6 +146,10 @@ this.product = [...this.product].reverse(); if(this.product.length==0){ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|     this.modalEdit = true; | ||||
|   } | ||||
| @ -154,6 +174,10 @@ this.product = [...this.product].reverse(); if(this.product.length==0){ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|     //console.log("in update");
 | ||||
|     console.log("id  " + id); | ||||
|     console.log(this.rowSelected); | ||||
| @ -171,6 +195,10 @@ setTimeout(() => { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|       }, (error) => { | ||||
|         console.log(error); | ||||
|         if (error.status >= 200 && error.status <= 299) { | ||||
| @ -193,6 +221,10 @@ onCreate() { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   this.mainService.create(this.entryForm.value).subscribe( | ||||
|     (data) => { | ||||
|       console.log(data); | ||||
| @ -205,6 +237,10 @@ setTimeout(() => { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|       }, (error) => { | ||||
|         console.log(error); | ||||
| @ -227,6 +263,10 @@ this.modalAdd = true; this.submitted = false; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   } | ||||
|  submitted = false; | ||||
| @ -242,8 +282,16 @@ onSubmit() { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| // updateaction
 | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
| @ -33,5 +33,9 @@ export class Todoitemservice{ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| // updateaction
 | ||||
| } | ||||
| @ -1,3 +1,4 @@ | ||||
| 
 | ||||
| import { TodoitemComponent } from './BuilderComponents/app-b/Todoitem/Todoitem.component'; | ||||
| 
 | ||||
| 
 | ||||
| @ -268,6 +269,8 @@ const routes: Routes = [ | ||||
| 
 | ||||
| 
 | ||||
|       // buildercomponents
 | ||||
| 
 | ||||
| 
 | ||||
| {path:'Todoitem',component:TodoitemComponent}, | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
| @ -1,3 +1,4 @@ | ||||
| 
 | ||||
| import { TodoitemComponent } from './BuilderComponents/app-b/Todoitem/Todoitem.component'; | ||||
| 
 | ||||
| 
 | ||||
| @ -141,6 +142,8 @@ import { MyworkspaceComponent } from './admin/myworkspace/myworkspace.component' | ||||
| 
 | ||||
| 
 | ||||
|     // buildercomponents
 | ||||
| 
 | ||||
| 
 | ||||
| TodoitemComponent, | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
| @ -227,6 +227,8 @@ | ||||
|   "STATUS": "Status", | ||||
|   "SUB_MENU": "Sub Menu", | ||||
|   "Todoitem": "Todoitem", | ||||
|   "Task": "Task", | ||||
|   "Completed": "Completed" | ||||
|   "task": "task", | ||||
|   "dueDate": "dueDate", | ||||
|   "description": "description", | ||||
|   "completed": "completed" | ||||
| } | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user