build_app
This commit is contained in:
parent
ba6eea8c01
commit
8c29a21a5a
@ -78,6 +78,9 @@ addCustomMenu( "Todoitem","Todoitem", "Transcations");
|
|||||||
addCustomMenu( "Todoitem","Todoitem", "Transcations");
|
addCustomMenu( "Todoitem","Todoitem", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
|
addCustomMenu( "Todoitem","Todoitem", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
addCustomMenu( "Note","Note", "Transcations");
|
addCustomMenu( "Note","Note", "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 name;
|
private String taskname;
|
||||||
|
|
||||||
private String description;
|
private String description;
|
||||||
|
|
||||||
private String duedate;
|
private String duedate;
|
||||||
|
|
||||||
private String completed;
|
private String iscompleted;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -77,13 +77,13 @@ public Todoitem getdetailsbyId(Integer id) {
|
|||||||
|
|
||||||
public Todoitem update(Todoitem data,Integer id) {
|
public Todoitem update(Todoitem data,Integer id) {
|
||||||
Todoitem old = Repository.findById(id).get();
|
Todoitem old = Repository.findById(id).get();
|
||||||
old.setName(data.getName());
|
old.setTaskname(data.getTaskname());
|
||||||
|
|
||||||
old.setDescription(data.getDescription());
|
old.setDescription(data.getDescription());
|
||||||
|
|
||||||
old.setDuedate(data.getDuedate());
|
old.setDuedate(data.getDuedate());
|
||||||
|
|
||||||
old.setCompleted(data.getCompleted());
|
old.setIscompleted(data.getIscompleted());
|
||||||
|
|
||||||
final Todoitem test = Repository.save(old);
|
final Todoitem test = Repository.save(old);
|
||||||
data.setUpdatedBy(getUser().getUserId());
|
data.setUpdatedBy(getUser().getUserId());
|
||||||
|
|||||||
@ -1,2 +1,2 @@
|
|||||||
CREATE TABLE app-d.Todoitem(id BIGINT NOT NULL AUTO_INCREMENT, duedate Date, name VARCHAR(400), description VARCHAR(400), completed bit(1), PRIMARY KEY (id));
|
CREATE TABLE app-d.Todoitem(id BIGINT NOT NULL AUTO_INCREMENT, description VARCHAR(400), taskname VARCHAR(400), iscompleted bit(1), duedate Date, 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://"> Todoitem</a></li>
|
<li><a href="javascript://"> ToDoItem</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>Todoitem </h3>
|
<h3>ToDoItem </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]="'name'"> <ng-container *clrDgHideableColumn="{hidden: false}"> name
|
<clr-dg-column [clrDgField]="'taskname'"> <ng-container *clrDgHideableColumn="{hidden: false}"> TaskName
|
||||||
</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]="'duedate'"> <ng-container *clrDgHideableColumn="{hidden: false}"> DueDate
|
||||||
</ng-container></clr-dg-column>
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="'completed'"> <ng-container *clrDgHideableColumn="{hidden: false}"> completed
|
<clr-dg-column [clrDgField]="'iscompleted'"> <ng-container *clrDgHideableColumn="{hidden: false}"> IsCompleted
|
||||||
</ng-container></clr-dg-column>
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
|
|
||||||
@ -47,7 +47,7 @@
|
|||||||
|
|
||||||
<clr-dg-row *clrDgItems="let user of product" [clrDgItem]="user">
|
<clr-dg-row *clrDgItems="let user of product" [clrDgItem]="user">
|
||||||
|
|
||||||
<clr-dg-cell>{{user.name }}</clr-dg-cell>
|
<clr-dg-cell>{{user.taskname }}</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-cell>{{user.description }}</clr-dg-cell>
|
<clr-dg-cell>{{user.description }}</clr-dg-cell>
|
||||||
@ -56,7 +56,7 @@
|
|||||||
<clr-dg-cell>{{user.duedate }}</clr-dg-cell>
|
<clr-dg-cell>{{user.duedate }}</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-cell>{{user.completed }}</clr-dg-cell>
|
<clr-dg-cell>{{user.iscompleted }}</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 Todoitem
|
<h3 class="modal-title">Update ToDoItem
|
||||||
<!--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>name</label>
|
<label>TaskName</label>
|
||||||
<input class="clr-input" type="text" [(ngModel)]="rowSelected.name" name="name" />
|
<input class="clr-input" type="text" [(ngModel)]="rowSelected.taskname" name="taskname" />
|
||||||
</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>DueDate</label>
|
||||||
<input id="name" class="clr-input" type="date" [(ngModel)]="rowSelected.duedate" name="duedate" />
|
<input id="name" class="clr-input" type="date" [(ngModel)]="rowSelected.duedate" name="duedate" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label>completed</label>
|
<label>IsCompleted</label>
|
||||||
<input class="clr-input" type="text" [(ngModel)]="rowSelected.completed" name="completed" />
|
<input class="clr-input" type="text" [(ngModel)]="rowSelected.iscompleted" name="iscompleted" />
|
||||||
</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 Todoitem
|
<h3 class="modal-title">Add ToDoItem
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -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> name</label>
|
<label> TaskName</label>
|
||||||
<input class="clr-input" type="text" formControlName="name" />
|
<input class="clr-input" type="text" formControlName="taskname" />
|
||||||
</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> DueDate</label>
|
||||||
<input class="clr-input" type="date" formControlName="duedate" />
|
<input class="clr-input" type="date" formControlName="duedate" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> completed</label>
|
<label> IsCompleted</label>
|
||||||
<input class="clr-input" type="text" formControlName="completed" />
|
<input class="clr-input" type="text" formControlName="iscompleted" />
|
||||||
</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({
|
||||||
name : [null],
|
taskname : [null],
|
||||||
|
|
||||||
description : [null],
|
description : [null],
|
||||||
|
|
||||||
duedate : [null],
|
duedate : [null],
|
||||||
|
|
||||||
completed : [null],
|
iscompleted : [null],
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
import { TodoitemComponent } from './BuilderComponents/app-b/Todoitem/Todoitem.component';
|
import { TodoitemComponent } from './BuilderComponents/app-b/Todoitem/Todoitem.component';
|
||||||
|
|
||||||
|
|
||||||
@ -274,6 +275,8 @@ const routes: Routes = [
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{path:'Todoitem',component:TodoitemComponent},
|
{path:'Todoitem',component:TodoitemComponent},
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
import { TodoitemComponent } from './BuilderComponents/app-b/Todoitem/Todoitem.component';
|
import { TodoitemComponent } from './BuilderComponents/app-b/Todoitem/Todoitem.component';
|
||||||
|
|
||||||
|
|
||||||
@ -147,6 +148,8 @@ import { MyworkspaceComponent } from './admin/myworkspace/myworkspace.component'
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
TodoitemComponent,
|
TodoitemComponent,
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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",
|
||||||
|
"Todoitem": "Todoitem",
|
||||||
|
"Description": "Description",
|
||||||
|
"TaskName": "TaskName",
|
||||||
|
"IsCompleted": "IsCompleted",
|
||||||
|
"DueDate": "DueDate"
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user