build_app
This commit is contained in:
		
							parent
							
								
									aa63f7f263
								
							
						
					
					
						commit
						ba1c532d1d
					
				| @ -69,6 +69,9 @@ public class BuilderService { | ||||
| 		executeDump(true); | ||||
| 
 | ||||
| 		// ADD OTHER SERVICE | ||||
| addCustomMenu( "Todo","Todo",  "Transcations");  | ||||
| 
 | ||||
| 
 | ||||
| addCustomMenu( "Calculator","Calculator",  "Transcations");  | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
| @ -24,13 +24,13 @@ import com.realnet.WhoColumn.Entity.Extension; | ||||
|  @GeneratedValue(strategy = GenerationType.IDENTITY) | ||||
|  private Integer id; | ||||
| 
 | ||||
| private String  taskname; | ||||
| private String  task; | ||||
| 
 | ||||
| private String  description; | ||||
| 
 | ||||
| private String duedate; | ||||
| private String due_date; | ||||
| 
 | ||||
| private String iscompleted; | ||||
| private String completed; | ||||
| 
 | ||||
| 
 | ||||
| } | ||||
|  | ||||
| @ -77,13 +77,13 @@ public Todo getdetailsbyId(Integer id) { | ||||
| 
 | ||||
| public Todo update(Todo data,Integer id) { | ||||
| 	Todo old = Repository.findById(id).get(); | ||||
| old.setTaskname(data.getTaskname()); | ||||
| old.setTask(data.getTask()); | ||||
| 
 | ||||
| old.setDescription(data.getDescription()); | ||||
| 
 | ||||
| old.setDuedate(data.getDuedate()); | ||||
| old.setDue_date(data.getDue_date()); | ||||
| 
 | ||||
| old.setIscompleted(data.getIscompleted()); | ||||
| old.setCompleted(data.getCompleted()); | ||||
| 
 | ||||
| final Todo test = Repository.save(old); | ||||
| 		data.setUpdatedBy(getUser().getUserId()); | ||||
|  | ||||
| @ -1,4 +1,2 @@ | ||||
| CREATE TABLE app-d.Calculatorwireframe(id BIGINT NOT NULL AUTO_INCREMENT, result int, number1 int, number2 int, operation VARCHAR(400),  PRIMARY KEY (id)); | ||||
| 
 | ||||
| CREATE TABLE app-d.Calculator(id BIGINT NOT NULL AUTO_INCREMENT, number2 int, number1 int, operation VARCHAR(400), result int,  PRIMARY KEY (id)); | ||||
| CREATE TABLE app-d.Todo(id BIGINT NOT NULL AUTO_INCREMENT, task VARCHAR(400), due_date 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://"> ToDo</a></li> | ||||
|   <li><a href="javascript://"> Todo</a></li> | ||||
| </ol> | ||||
| <div class="dg-wrapper"> | ||||
|   <div class="clr-row"> | ||||
|     <div class="clr-col-8"> | ||||
|       <h3>ToDo </h3> | ||||
|       <h3>Todo </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,19 +23,19 @@ | ||||
|         <div *ngIf="error;else loadingSpinner">{{error}}</div> | ||||
|     </clr-dg-placeholder> | ||||
| 
 | ||||
| <clr-dg-column [clrDgField]="'taskname'"> <ng-container *clrDgHideableColumn="{hidden: false}"> TaskName | ||||
| <clr-dg-column [clrDgField]="'task'"> <ng-container *clrDgHideableColumn="{hidden: false}"> task | ||||
| 						    </ng-container></clr-dg-column> | ||||
| 
 | ||||
| 
 | ||||
| <clr-dg-column [clrDgField]="'description'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Description | ||||
| <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 | ||||
| <clr-dg-column [clrDgField]="'due_date'"> <ng-container *clrDgHideableColumn="{hidden: false}"> due date | ||||
| 						    </ng-container></clr-dg-column> | ||||
| 
 | ||||
| 
 | ||||
| <clr-dg-column [clrDgField]="'iscompleted'"> <ng-container *clrDgHideableColumn="{hidden: false}"> IsCompleted | ||||
| <clr-dg-column [clrDgField]="'completed'"> <ng-container *clrDgHideableColumn="{hidden: false}"> completed | ||||
| 						    </ng-container></clr-dg-column> | ||||
| 
 | ||||
|   | ||||
| @ -47,16 +47,16 @@ | ||||
| 
 | ||||
|  <clr-dg-row *clrDgItems="let user of product" [clrDgItem]="user"> | ||||
| 
 | ||||
| <clr-dg-cell>{{user.taskname }}</clr-dg-cell> | ||||
| <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.due_date }}</clr-dg-cell> | ||||
| 
 | ||||
| 
 | ||||
| <clr-dg-cell>{{user.iscompleted }}</clr-dg-cell> | ||||
| <clr-dg-cell>{{user.completed }}</clr-dg-cell> | ||||
| 
 | ||||
|   | ||||
|   <!-- who column --> | ||||
| @ -220,7 +220,7 @@ | ||||
| 
 | ||||
| <!-- //		EDIT DATA......... --> | ||||
| <clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true"> | ||||
|   <h3 class="modal-title">Update ToDo | ||||
|   <h3 class="modal-title">Update Todo | ||||
|  <!--update button --> | ||||
| 
 | ||||
| 
 | ||||
| @ -236,23 +236,23 @@ | ||||
|     <form > | ||||
| <div class="clr-row">  | ||||
| <div class="clr-col-sm-12">        | ||||
| <label>TaskName</label> | ||||
| 	        <input class="clr-input"  type="text" [(ngModel)]="rowSelected.taskname" name="taskname" /> | ||||
| <label>task</label> | ||||
| 	        <input class="clr-input"  type="text" [(ngModel)]="rowSelected.task" name="task" /> | ||||
| 	      </div> | ||||
| 
 | ||||
| <div class="clr-col-sm-12">        | ||||
| <label>Description</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" /> | ||||
| <label>due date</label> | ||||
| 	        <input id="name" class="clr-input"  type="date" [(ngModel)]="rowSelected.due_date" name="due_date" /> | ||||
| 	      </div> | ||||
| 
 | ||||
| <div class="clr-col-sm-12">        | ||||
| <label>IsCompleted</label> | ||||
| 	        <input class="clr-input"  type="text" [(ngModel)]="rowSelected.iscompleted" name="iscompleted" /> | ||||
| <label>completed</label> | ||||
| 	        <input class="clr-input"  type="text" [(ngModel)]="rowSelected.completed" name="completed" /> | ||||
| 	      </div> | ||||
| 
 | ||||
|   </div>  | ||||
| @ -307,7 +307,7 @@ | ||||
| </clr-modal> | ||||
| <!-- ADD FORM ..... --> | ||||
| <clr-modal [(clrModalOpen)]="modalAdd" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true"> | ||||
|   <h3 class="modal-title">Add ToDo  | ||||
|   <h3 class="modal-title">Add Todo  | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| @ -330,23 +330,23 @@ | ||||
|    <div class="clr-row" style="height: fit-content;"> | ||||
| 
 | ||||
| <div class="clr-col-sm-12"> | ||||
|  <label>  TaskName</label> | ||||
|  <input class="clr-input"  type="text"  formControlName="taskname" />        | ||||
|  <label>  task</label> | ||||
|  <input class="clr-input"  type="text"  formControlName="task" />        | ||||
|  </div> | ||||
| 
 | ||||
| <div class="clr-col-sm-12"> | ||||
|  <label>  Description</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" />        | ||||
|  <label>  due date</label> | ||||
|  <input class="clr-input"  type="date"  formControlName="due_date" />        | ||||
|  </div> | ||||
| 
 | ||||
| <div class="clr-col-sm-12"> | ||||
|  <label>  IsCompleted</label> | ||||
|  <input class="clr-input"  type="text"  formControlName="iscompleted" />        | ||||
|  <label>  completed</label> | ||||
|  <input class="clr-input"  type="text"  formControlName="completed" />        | ||||
|  </div> | ||||
| 
 | ||||
|   | ||||
|  | ||||
| @ -64,13 +64,13 @@ private userInfoService:UserInfoService, | ||||
|     this.userrole=this.userInfoService.getRoles(); | ||||
|     this.getData(); | ||||
|     this.entryForm = this._fb.group({ | ||||
| taskname : [null], | ||||
| task : [null], | ||||
| 
 | ||||
| description : [null], | ||||
| 
 | ||||
| duedate : [null], | ||||
| due_date : [null], | ||||
| 
 | ||||
| iscompleted : [null], | ||||
| completed : [null], | ||||
| 
 | ||||
| 
 | ||||
|   | ||||
|  | ||||
| @ -1,4 +1,5 @@ | ||||
| 
 | ||||
| 
 | ||||
| import { CalculatorwireframeComponent } from './BuilderComponents/app-b/Calculatorwireframe/Calculatorwireframe.component'; | ||||
| 
 | ||||
| 
 | ||||
| @ -285,6 +286,8 @@ const routes: Routes = [ | ||||
|       // buildercomponents
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| {path:'Calculatorwireframe',component:CalculatorwireframeComponent}, | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
| @ -1,4 +1,5 @@ | ||||
| 
 | ||||
| 
 | ||||
| import { CalculatorwireframeComponent } from './BuilderComponents/app-b/Calculatorwireframe/Calculatorwireframe.component'; | ||||
| 
 | ||||
| 
 | ||||
| @ -158,6 +159,8 @@ import { MyworkspaceComponent } from './admin/myworkspace/myworkspace.component' | ||||
|     // buildercomponents
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| CalculatorwireframeComponent, | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
| @ -226,4 +226,9 @@ | ||||
|   "MENU_ACTION_LINK": "Menu Action Link", | ||||
|   "STATUS": "Status", | ||||
|   "SUB_MENU": "Sub Menu", | ||||
|   "Todo": "Todo", | ||||
|   "task": "task", | ||||
|   "due_date": "due_date", | ||||
|   "description": "description", | ||||
|   "completed": "completed" | ||||
| } | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user