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