build_app
This commit is contained in:
@@ -46,6 +46,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- who column -->
|
<!-- who column -->
|
||||||
<clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}">
|
<clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}">
|
||||||
<clr-icon shape="bars"></clr-icon> Action
|
<clr-icon shape="bars"></clr-icon> Action
|
||||||
@@ -76,6 +78,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- who column -->
|
<!-- who column -->
|
||||||
<clr-dg-cell>
|
<clr-dg-cell>
|
||||||
<clr-signpost>
|
<clr-signpost>
|
||||||
@@ -235,6 +239,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- // 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 Ad8
|
<h3 class="modal-title">Update Ad8
|
||||||
@@ -258,6 +264,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</h3>
|
</h3>
|
||||||
<div class="modal-body" *ngIf="rowSelected.id">
|
<div class="modal-body" *ngIf="rowSelected.id">
|
||||||
<h2 class="heading">{{rowSelected.id}}</h2>
|
<h2 class="heading">{{rowSelected.id}}</h2>
|
||||||
@@ -275,6 +283,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@@ -305,6 +315,51 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- one to many code start here -->
|
||||||
|
<div class="clr-row">
|
||||||
|
<div class="clr-col-lg-12">
|
||||||
|
<table class="table" style="width:100%;">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<th class="left" style="width:200px;">description</th>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<th class="left" style="width:200px;">name</th>
|
||||||
|
|
||||||
|
|
||||||
|
<th class="right" style="width:200px;">{{ supportcomponents?.length >= 1 ? 'Actions' : '' }}</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr *ngFor="let component of supportcomponents; let i = index">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<td class="left"> <input type="text" name="description" [(ngModel)]="component.description" [ngModelOptions]=" {standalone: true}" placeholder="Enter description" class="clr-input">
|
||||||
|
</td>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<td class="left"> <input type="text" name="name" [(ngModel)]="component.name" [ngModelOptions]=" {standalone: true}" placeholder="Enter name" class="clr-input">
|
||||||
|
</td>
|
||||||
|
|
||||||
|
|
||||||
|
<td> <a>
|
||||||
|
<clr-icon shape="trash" class="is-error" (click)="deleteRow(i)"></clr-icon>
|
||||||
|
</a> </td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
<button type="button" class="btn btn-primary button1" (click)="oneditsupport()" style="margin-left: 20px;">
|
||||||
|
<clr-icon shape="plus"></clr-icon> </button>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- one to many code end here -->
|
||||||
|
|
||||||
<!-- form code start -->
|
<!-- form code start -->
|
||||||
<div *ngIf="checkFormCode">
|
<div *ngIf="checkFormCode">
|
||||||
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
<h4 style="font-weight: 300;display: inline;">Extension</h4>
|
||||||
@@ -357,6 +412,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- aeroplane icon -->
|
<!-- aeroplane icon -->
|
||||||
|
|
||||||
<a *ngIf="userrole?.includes('ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip" aria-haspopup="true"
|
<a *ngIf="userrole?.includes('ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip" aria-haspopup="true"
|
||||||
@@ -382,6 +439,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@@ -414,6 +473,56 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- one to many code start here -->
|
||||||
|
<div style="margin-top: 30px;"><h4 style="display: inline;">support </h4>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<div class="clr-row">
|
||||||
|
<div class="clr-col-lg-12">
|
||||||
|
<table class="table" style="width:100%;" formArrayName="support">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<th class="left" style="width:125px;">description</th>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<th class="left" style="width:125px;">name</th>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<th class="right" style="width:125px;">{{ supportcontrols.length > 1 ? 'Actions' : '' }}</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr *ngFor="let item of supportcontrols; let i=index" [formGroupName]="i">
|
||||||
|
|
||||||
|
|
||||||
|
<td class="left"> <input type="text" formControlName="description" placeholder="Enter description" style="width:180px"
|
||||||
|
class="clr-input"> </td>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<td class="left"> <input type="text" formControlName="name" placeholder="Enter name" style="width:180px"
|
||||||
|
class="clr-input"> </td>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<td style="width:40px;">
|
||||||
|
<a *ngIf="supportcontrols.length > 1" (click)="onRemovesupport(i)"><clr-icon shape="trash" class="is-error"></clr-icon>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
<button type="button" class="btn btn-primary button1" (click)="onAddsupport()" >
|
||||||
|
<clr-icon shape="plus"></clr-icon> </button>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- one to many code end here -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- form code start -->
|
<!-- form code start -->
|
||||||
@@ -454,6 +563,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- htmlpopup -->
|
<!-- htmlpopup -->
|
||||||
|
|
||||||
<clr-modal [(clrModalOpen)]="modalUpdateButtonupdate2" [clrModalSize]="'xl'" [clrModalStaticBackdrop]="true">
|
<clr-modal [(clrModalOpen)]="modalUpdateButtonupdate2" [clrModalSize]="'xl'" [clrModalStaticBackdrop]="true">
|
||||||
|
|||||||
@@ -78,6 +78,10 @@ name : [null],
|
|||||||
|
|
||||||
childform: this.childforminitLinesForm(),
|
childform: this.childforminitLinesForm(),
|
||||||
|
|
||||||
|
support: this._fb.array([this.initsupportForm()]),
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -135,6 +139,8 @@ childform: this.childforminitLinesForm(),
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
ngOnDestroy(): void {
|
ngOnDestroy(): void {
|
||||||
if (this.editInterval) {
|
if (this.editInterval) {
|
||||||
@@ -165,6 +171,43 @@ childforminitLinesForm() { return this._fb.group({
|
|||||||
}); }
|
}); }
|
||||||
|
|
||||||
|
|
||||||
|
// one to many start
|
||||||
|
initsupportForm() { return this._fb.group({
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
description: [null],
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
name: [null],
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}); }
|
||||||
|
get supportcontrols() {return (this.entryForm.get("support") as FormArray).controls; }
|
||||||
|
onAddsupport() {
|
||||||
|
(<FormArray>this.entryForm.get("support")).push(this.initsupportForm()); }
|
||||||
|
onRemovesupport(index: number) {
|
||||||
|
(<FormArray>this.entryForm.get("support")).removeAt(index); }
|
||||||
|
oneditsupport() { this.supportcomponents.push({
|
||||||
|
|
||||||
|
|
||||||
|
description: "",
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
name: "",
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}); }
|
||||||
|
deletesupportRow(index) {
|
||||||
|
this.supportcomponents.splice(index, 1);
|
||||||
|
}
|
||||||
|
supportcomponents;
|
||||||
|
// one to many end
|
||||||
|
|
||||||
error;
|
error;
|
||||||
getData() {
|
getData() {
|
||||||
this.mainService.getAll().subscribe((data) => {
|
this.mainService.getAll().subscribe((data) => {
|
||||||
@@ -190,6 +233,8 @@ this.product = [...this.product].reverse(); if(this.product.length==0){
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
this.supportcomponents = row.support;
|
||||||
|
|
||||||
|
|
||||||
this.modalEdit = true;
|
this.modalEdit = true;
|
||||||
}
|
}
|
||||||
@@ -218,6 +263,8 @@ this.product = [...this.product].reverse(); if(this.product.length==0){
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//console.log("in update");
|
//console.log("in update");
|
||||||
console.log("id " + id);
|
console.log("id " + id);
|
||||||
console.log(this.rowSelected);
|
console.log(this.rowSelected);
|
||||||
@@ -239,6 +286,8 @@ setTimeout(() => {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}, (error) => {
|
}, (error) => {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
if (error.status >= 200 && error.status <= 299) {
|
if (error.status >= 200 && error.status <= 299) {
|
||||||
@@ -265,6 +314,8 @@ onCreate() {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.mainService.create(this.entryForm.value).subscribe(
|
this.mainService.create(this.entryForm.value).subscribe(
|
||||||
(data) => {
|
(data) => {
|
||||||
console.log(data);
|
console.log(data);
|
||||||
@@ -282,6 +333,8 @@ setTimeout(() => {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}, (error) => {
|
}, (error) => {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
if (error.status >= 200 && error.status <= 299) {
|
if (error.status >= 200 && error.status <= 299) {
|
||||||
@@ -308,6 +361,8 @@ this.modalAdd = true; this.submitted = false;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
submitted = false;
|
submitted = false;
|
||||||
onSubmit() {
|
onSubmit() {
|
||||||
@@ -326,6 +381,8 @@ onSubmit() {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// updateaction
|
// updateaction
|
||||||
|
|
||||||
// update button
|
// update button
|
||||||
@@ -413,3 +470,5 @@ onUpdateButtonUpdate(id) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -37,6 +37,8 @@ export class Ad8service{
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// updateaction
|
// updateaction
|
||||||
// update button code start
|
// update button code start
|
||||||
updateChildform(id: number,Childform: any): Observable<any> {
|
updateChildform(id: number,Childform: any): Observable<any> {
|
||||||
|
|||||||
@@ -1,3 +1,20 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import { ChildformComponent } from './BuilderComponents/stpkg/Childform/Childform.component';
|
import { ChildformComponent } from './BuilderComponents/stpkg/Childform/Childform.component';
|
||||||
import { DistrictComponent } from './BuilderComponents/testdata/District/District.component';
|
import { DistrictComponent } from './BuilderComponents/testdata/District/District.component';
|
||||||
import { StateComponent } from './BuilderComponents/testdata/State/State.component';
|
import { StateComponent } from './BuilderComponents/testdata/State/State.component';
|
||||||
@@ -293,6 +310,40 @@ const routes: Routes = [
|
|||||||
|
|
||||||
|
|
||||||
// buildercomponents
|
// buildercomponents
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{path:'Childform',component:ChildformComponent},
|
{path:'Childform',component:ChildformComponent},
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,20 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import { ChildformComponent } from './BuilderComponents/stpkg/Childform/Childform.component';
|
import { ChildformComponent } from './BuilderComponents/stpkg/Childform/Childform.component';
|
||||||
import { DistrictComponent } from './BuilderComponents/testdata/District/District.component';
|
import { DistrictComponent } from './BuilderComponents/testdata/District/District.component';
|
||||||
import { StateComponent } from './BuilderComponents/testdata/State/State.component';
|
import { StateComponent } from './BuilderComponents/testdata/State/State.component';
|
||||||
@@ -157,6 +174,40 @@ import { DynamicFormViewerComponent } from './superadmin/dynamicform/dynamic-for
|
|||||||
|
|
||||||
|
|
||||||
// buildercomponents
|
// buildercomponents
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ChildformComponent,
|
ChildformComponent,
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -128,6 +128,57 @@ addCustomMenu( "Basicp3","Basicp3", "Transcations");
|
|||||||
addCustomMenu( "Basicp2","Basicp2", "Transcations");
|
addCustomMenu( "Basicp2","Basicp2", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
|
addCustomMenu( "Basicp1","Basicp1", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
|
addCustomMenu( "Childform","Childform", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
|
addCustomMenu( "District","District", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
|
addCustomMenu( "State","State", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
|
addCustomMenu( "Country","Country", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
|
addCustomMenu( "Ad9","Ad9", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
|
addCustomMenu( "Ad8","Ad8", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
|
addCustomMenu( "Ad7","Ad7", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
|
addCustomMenu( "Ad6","Ad6", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
|
addCustomMenu( "Adv5","Adv5", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
|
addCustomMenu( "Adv4","Adv4", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
|
addCustomMenu( "Support","Support", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
|
addCustomMenu( "Adv3","Adv3", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
|
addCustomMenu( "Dv2","Dv2", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
|
addCustomMenu( "Adv1","Adv1", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
|
addCustomMenu( "Basicp3","Basicp3", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
|
addCustomMenu( "Basicp2","Basicp2", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
addCustomMenu( "Basicp1","Basicp1", "Transcations");
|
addCustomMenu( "Basicp1","Basicp1", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,8 @@ import com.realnet.stpkg.Entity.Childform;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@RequestMapping(value = "/Ad8")
|
@RequestMapping(value = "/Ad8")
|
||||||
@CrossOrigin("*")
|
@CrossOrigin("*")
|
||||||
@RestController
|
@RestController
|
||||||
@@ -44,6 +46,8 @@ public class Ad8Controller {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@PostMapping("/Ad8")
|
@PostMapping("/Ad8")
|
||||||
public Ad8 Savedata(@RequestBody Ad8 data) {
|
public Ad8 Savedata(@RequestBody Ad8 data) {
|
||||||
Ad8 save = Service.Savedata(data) ;
|
Ad8 save = Service.Savedata(data) ;
|
||||||
@@ -54,6 +58,8 @@ public class Ad8Controller {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
System.out.println("data saved..." + save);
|
System.out.println("data saved..." + save);
|
||||||
|
|
||||||
return save;
|
return save;
|
||||||
@@ -120,4 +126,6 @@ public class Ad8Controller {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -26,6 +26,8 @@ import com.realnet.stpkg.Entity.Childform;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@RequestMapping(value = "/token/Ad8")
|
@RequestMapping(value = "/token/Ad8")
|
||||||
@CrossOrigin("*")
|
@CrossOrigin("*")
|
||||||
@RestController
|
@RestController
|
||||||
@@ -44,6 +46,8 @@ public class tokenFree_Ad8Controller {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@PostMapping("/Ad8")
|
@PostMapping("/Ad8")
|
||||||
public Ad8 Savedata(@RequestBody Ad8 data) {
|
public Ad8 Savedata(@RequestBody Ad8 data) {
|
||||||
Ad8 save = Service.Savedata(data) ;
|
Ad8 save = Service.Savedata(data) ;
|
||||||
@@ -54,6 +58,8 @@ public class tokenFree_Ad8Controller {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
System.out.println("data saved..." + save);
|
System.out.println("data saved..." + save);
|
||||||
|
|
||||||
return save;
|
return save;
|
||||||
@@ -120,4 +126,6 @@ public class tokenFree_Ad8Controller {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -12,6 +12,8 @@ import com.realnet.WhoColumn.Entity.Extension;
|
|||||||
|
|
||||||
import com.realnet.stpkg.Entity.Childform;
|
import com.realnet.stpkg.Entity.Childform;
|
||||||
|
|
||||||
|
import com.realnet.angulardatatype.Entity.Support;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
@Data
|
@Data
|
||||||
public class Ad8 extends Extension {
|
public class Ad8 extends Extension {
|
||||||
@@ -33,5 +35,8 @@ private String name;
|
|||||||
@OneToOne( cascade=CascadeType.ALL)
|
@OneToOne( cascade=CascadeType.ALL)
|
||||||
private Childform childform;
|
private Childform childform;
|
||||||
|
|
||||||
|
@OneToMany( cascade=CascadeType.ALL)
|
||||||
|
private List<Support> support = new ArrayList<>();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,8 @@ import java.util.*;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import com.realnet.angulardatatype.Entity.Ad8;
|
import com.realnet.angulardatatype.Entity.Ad8;
|
||||||
|
|
||||||
@Repository
|
@Repository
|
||||||
|
|||||||
@@ -26,6 +26,8 @@ import com.realnet.stpkg.Repository.ChildformRepository;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
@@ -43,6 +45,8 @@ private Ad8Repository Repository;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public Ad8 Savedata(Ad8 data) {
|
public Ad8 Savedata(Ad8 data) {
|
||||||
|
|
||||||
|
|
||||||
@@ -52,6 +56,8 @@ public Ad8 Savedata(Ad8 data) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
data.setUpdatedBy(getUser().getUserId());
|
data.setUpdatedBy(getUser().getUserId());
|
||||||
data.setCreatedBy(getUser().getUserId());
|
data.setCreatedBy(getUser().getUserId());
|
||||||
data.setAccountId(getUser().getAccount().getAccount_id());
|
data.setAccountId(getUser().getAccount().getAccount_id());
|
||||||
@@ -91,6 +97,8 @@ old.setName(data.getName());
|
|||||||
|
|
||||||
old.setChildform(data.getChildform());
|
old.setChildform(data.getChildform());
|
||||||
|
|
||||||
|
old.setSupport(data.getSupport());
|
||||||
|
|
||||||
final Ad8 test = Repository.save(old);
|
final Ad8 test = Repository.save(old);
|
||||||
data.setUpdatedBy(getUser().getUserId());
|
data.setUpdatedBy(getUser().getUserId());
|
||||||
return test;}
|
return test;}
|
||||||
@@ -168,6 +176,8 @@ final Ad8 test = Repository.save(old);
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public AppUser getUser() {
|
public AppUser getUser() {
|
||||||
AppUser user = userService.getLoggedInUser();
|
AppUser user = userService.getLoggedInUser();
|
||||||
return user;
|
return user;
|
||||||
|
|||||||
Reference in New Issue
Block a user