build_app
This commit is contained in:
parent
50238ed727
commit
25022f26fa
@ -78,6 +78,18 @@ addCustomMenu( "Testlist","Testlist", "Transcations");
|
|||||||
addCustomMenu( "Child","Child", "Transcations");
|
addCustomMenu( "Child","Child", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
|
addCustomMenu( "Adv3","Adv3", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
|
addCustomMenu( "Stepss","Stepper_workflow", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
|
addCustomMenu( "Testlist","Testlist", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
|
addCustomMenu( "Child","Child", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
addCustomMenu( "Adv3","Adv3", "Transcations");
|
addCustomMenu( "Adv3","Adv3", "Transcations");
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -18,11 +18,6 @@ import com.realnet.basicp1.Entity.Adv3;
|
|||||||
import com.realnet.basicp1.Services.Adv3Service ;
|
import com.realnet.basicp1.Services.Adv3Service ;
|
||||||
|
|
||||||
|
|
||||||
import com.realnet.basicp1.Entity.Child;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -43,10 +38,6 @@ public class Adv3Controller {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@PostMapping("/Adv3")
|
@PostMapping("/Adv3")
|
||||||
public Adv3 Savedata(@RequestBody Adv3 data) {
|
public Adv3 Savedata(@RequestBody Adv3 data) {
|
||||||
Adv3 save = Service.Savedata(data) ;
|
Adv3 save = Service.Savedata(data) ;
|
||||||
@ -55,10 +46,6 @@ public class Adv3Controller {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
System.out.println("data saved..." + save);
|
System.out.println("data saved..." + save);
|
||||||
|
|
||||||
return save;
|
return save;
|
||||||
@ -107,16 +94,6 @@ public class Adv3Controller {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
@PostMapping("/Adv3/Child_insert")
|
|
||||||
public Child insertChild(@RequestBody Child data) {
|
|
||||||
Child insertaction = Service.insertChild(data);
|
|
||||||
return insertaction;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -18,11 +18,6 @@ import com.realnet.basicp1.Entity.Adv3;
|
|||||||
import com.realnet.basicp1.Services.Adv3Service ;
|
import com.realnet.basicp1.Services.Adv3Service ;
|
||||||
|
|
||||||
|
|
||||||
import com.realnet.basicp1.Entity.Child;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -43,10 +38,6 @@ public class tokenFree_Adv3Controller {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@PostMapping("/Adv3")
|
@PostMapping("/Adv3")
|
||||||
public Adv3 Savedata(@RequestBody Adv3 data) {
|
public Adv3 Savedata(@RequestBody Adv3 data) {
|
||||||
Adv3 save = Service.Savedata(data) ;
|
Adv3 save = Service.Savedata(data) ;
|
||||||
@ -55,10 +46,6 @@ public class tokenFree_Adv3Controller {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
System.out.println("data saved..." + save);
|
System.out.println("data saved..." + save);
|
||||||
|
|
||||||
return save;
|
return save;
|
||||||
@ -107,16 +94,6 @@ public class tokenFree_Adv3Controller {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
@PostMapping("/Adv3/Child_insert")
|
|
||||||
public Child insertChild(@RequestBody Child data) {
|
|
||||||
Child insertaction = Service.insertChild(data);
|
|
||||||
return insertaction;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -10,10 +10,6 @@ import com.realnet.WhoColumn.Entity.Extension;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
import com.realnet.basicp1.Entity.Child;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
@Data
|
@Data
|
||||||
public class Adv3 extends Extension {
|
public class Adv3 extends Extension {
|
||||||
@ -32,8 +28,6 @@ private String name;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private String l;
|
private String l;
|
||||||
|
|
||||||
|
|
||||||
@ -43,9 +37,6 @@ private String m;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
@OneToOne( cascade=CascadeType.ALL)
|
|
||||||
private Child child;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -17,10 +17,6 @@ import java.util.*;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import com.realnet.basicp1.Entity.Adv3;
|
import com.realnet.basicp1.Entity.Adv3;
|
||||||
|
|
||||||
@Repository
|
@Repository
|
||||||
|
|||||||
@ -14,13 +14,6 @@ import com.realnet.users.service1.AppUserServiceImpl;
|
|||||||
import com.realnet.users.entity1.AppUser;
|
import com.realnet.users.entity1.AppUser;
|
||||||
|
|
||||||
|
|
||||||
import com.realnet.basicp1.Entity.Child;
|
|
||||||
|
|
||||||
import com.realnet.basicp1.Repository.ChildRepository;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -40,10 +33,6 @@ private Adv3Repository Repository;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public Adv3 Savedata(Adv3 data) {
|
public Adv3 Savedata(Adv3 data) {
|
||||||
|
|
||||||
|
|
||||||
@ -51,10 +40,6 @@ public Adv3 Savedata(Adv3 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());
|
||||||
@ -90,8 +75,6 @@ old.setName(data.getName());
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
old.setL(data.getL());
|
old.setL(data.getL());
|
||||||
|
|
||||||
|
|
||||||
@ -101,8 +84,6 @@ old.setM(data.getM());
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
old.setChild(data.getChild());
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
final Adv3 test = Repository.save(old);
|
final Adv3 test = Repository.save(old);
|
||||||
@ -111,25 +92,6 @@ final Adv3 test = Repository.save(old);
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Insert Action
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private ChildRepository childinsertrepository;
|
|
||||||
|
|
||||||
public Child insertChild(Child data) {
|
|
||||||
|
|
||||||
data.setUpdatedBy(getUser().getUserId());
|
|
||||||
data.setCreatedBy(getUser().getUserId());
|
|
||||||
data.setAccountId(getUser().getAccount().getAccount_id());
|
|
||||||
|
|
||||||
|
|
||||||
final Child save = childinsertrepository.save(data);
|
|
||||||
return save;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
CREATE TABLE dsb.Adv3(id BIGINT NOT NULL AUTO_INCREMENT, onetoone VARCHAR(400), value_list_field VARCHAR(400), l VARCHAR(400), m VARCHAR(400), button_field VARCHAR(400), name VARCHAR(400), PRIMARY KEY (id));
|
CREATE TABLE dsb.Adv3(id BIGINT NOT NULL AUTO_INCREMENT, value_list_field VARCHAR(400), l VARCHAR(400), m VARCHAR(400), name VARCHAR(400), PRIMARY KEY (id));
|
||||||
|
|
||||||
CREATE TABLE dsb.Child(id BIGINT NOT NULL AUTO_INCREMENT, name VARCHAR(400), PRIMARY KEY (id));
|
CREATE TABLE dsb.Child(id BIGINT NOT NULL AUTO_INCREMENT, name VARCHAR(400), PRIMARY KEY (id));
|
||||||
|
|
||||||
|
|||||||
@ -11,12 +11,6 @@
|
|||||||
<clr-icon *ngIf="!isCardview" shape="grid-view"></clr-icon> <clr-icon *ngIf="isCardview" shape="bars"></clr-icon>
|
<clr-icon *ngIf="!isCardview" shape="grid-view"></clr-icon> <clr-icon *ngIf="isCardview" shape="bars"></clr-icon>
|
||||||
</button>
|
</button>
|
||||||
<!-- button -->
|
<!-- button -->
|
||||||
<!-- insert button -->
|
|
||||||
<button id="insert" class="btn btn-primary" (click)="goToInsertButton_Field()">
|
|
||||||
<clr-icon shape="plus"></clr-icon>Insert Button_Field
|
|
||||||
</button>
|
|
||||||
<!-- insert end -->
|
|
||||||
|
|
||||||
<button id="add" class="btn btn-primary" (click)="goToAdd(product)" >
|
<button id="add" class="btn btn-primary" (click)="goToAdd(product)" >
|
||||||
<clr-icon shape="plus"></clr-icon>ADD
|
<clr-icon shape="plus"></clr-icon>ADD
|
||||||
</button>
|
</button>
|
||||||
@ -35,8 +29,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="' l'"> <ng-container *clrDgHideableColumn="{hidden: false}"> l
|
<clr-dg-column [clrDgField]="' l'"> <ng-container *clrDgHideableColumn="{hidden: false}"> l
|
||||||
</ng-container></clr-dg-column>
|
</ng-container></clr-dg-column>
|
||||||
|
|
||||||
@ -51,13 +43,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-column [clrDgField]="'child.name'"> <ng-container *clrDgHideableColumn="{hidden: false}">name</ng-container></clr-dg-column>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- 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
|
||||||
@ -71,8 +56,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-cell>{{user. l}}</clr-dg-cell>
|
<clr-dg-cell>{{user. l}}</clr-dg-cell>
|
||||||
|
|
||||||
|
|
||||||
@ -85,13 +68,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<clr-dg-cell>{{user.child.name}}</clr-dg-cell>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- who column -->
|
<!-- who column -->
|
||||||
<clr-dg-cell>
|
<clr-dg-cell>
|
||||||
<clr-signpost>
|
<clr-signpost>
|
||||||
@ -249,10 +225,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- // 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 Adv3
|
<h3 class="modal-title">Update Adv3
|
||||||
@ -260,10 +232,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<button class="btn btn-icon btn-primary" (click)="openvalueListvalue_list_field('EDIT')">V</button>
|
<button class="btn btn-icon btn-primary" (click)="openvalueListvalue_list_field('EDIT')">V</button>
|
||||||
|
|
||||||
</h3>
|
</h3>
|
||||||
@ -277,8 +245,6 @@
|
|||||||
<input class="clr-input" type="text" [(ngModel)]="rowSelected.name" name="name" />
|
<input class="clr-input" type="text" [(ngModel)]="rowSelected.name" name="name" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- multiselect field start -->
|
<!-- multiselect field start -->
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Field Group</label>
|
<label> Field Group</label>
|
||||||
@ -311,8 +277,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -320,17 +284,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="clr-col-md-4 clr-col-sm-12"> <label>name</label>
|
|
||||||
<input class="clr-input" id="name" type="text" [(ngModel)]="rowSelected.child.name" name="name" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- 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>
|
||||||
@ -378,10 +331,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<button class="btn btn-icon btn-primary" (click)="openvalueListvalue_list_field('ADD')">V</button>
|
<button class="btn btn-icon btn-primary" (click)="openvalueListvalue_list_field('ADD')">V</button>
|
||||||
|
|
||||||
|
|
||||||
@ -403,8 +352,6 @@
|
|||||||
<input class="clr-input" type="text" formControlName="name" />
|
<input class="clr-input" type="text" formControlName="name" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- multiselect field start -->
|
<!-- multiselect field start -->
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Field Group</label>
|
<label> Field Group</label>
|
||||||
@ -432,8 +379,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -441,21 +386,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div style="margin-top: 30px;">
|
|
||||||
<h4 style="display: inline;">child </h4> </div> <hr>
|
|
||||||
<div class="clr-row" formArrayName="child">
|
|
||||||
|
|
||||||
|
|
||||||
<div class="clr-col-md-4 clr-col-sm-12">
|
|
||||||
<label> name</label>
|
|
||||||
<input class="clr-input" type="text" formControlName="name" /> </div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- form code start -->
|
<!-- form code start -->
|
||||||
@ -492,10 +422,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- value List field start-->
|
<!-- value List field start-->
|
||||||
<clr-modal [(clrModalOpen)]="valueListModalvalue_list_field" [clrModalSize]="'md'">
|
<clr-modal [(clrModalOpen)]="valueListModalvalue_list_field" [clrModalSize]="'md'">
|
||||||
<h3 class="modal-title"><b>Select From value_list_field List:</b></h3>
|
<h3 class="modal-title"><b>Select From value_list_field List:</b></h3>
|
||||||
@ -529,24 +455,3 @@
|
|||||||
<!-- value List field end-->
|
<!-- value List field end-->
|
||||||
|
|
||||||
<!-- htmlpopup -->
|
<!-- htmlpopup -->
|
||||||
|
|
||||||
<clr-modal [(clrModalOpen)]="modalInsertButton_Field" [clrModalSize]="'xl'" [clrModalStaticBackdrop]="true">
|
|
||||||
<h3 class="modal-title">Insert Button_Field</h3>
|
|
||||||
<div class="modal-body">
|
|
||||||
<form [formGroup]="insertFormButton_Field" (ngSubmit)="onSubmitInsertButton_Field()">
|
|
||||||
<div class="clr-row">
|
|
||||||
<div class="clr-col-md-4 clr-col-sm-12">
|
|
||||||
<label for="name">Name:</label>
|
|
||||||
<input type="text" id="name" formControlName="name" name="name" placeholder="Enter Name" class="clr-input">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<br>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" class="btn btn-outline" (click)="modalInsertButton_Field = false">Cancel</button>
|
|
||||||
<button type="submit" class="btn btn-primary" >Insert</button>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</clr-modal>
|
|
||||||
|
|
||||||
|
|||||||
@ -54,9 +54,6 @@ private userInfoService:UserInfoService,
|
|||||||
private _fb: FormBuilder,
|
private _fb: FormBuilder,
|
||||||
) { }
|
) { }
|
||||||
// component button
|
// component button
|
||||||
public insertFormButton_Field: FormGroup;
|
|
||||||
|
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
if(this.cardmodeldata !== ''){
|
if(this.cardmodeldata !== ''){
|
||||||
this.cardmodal = JSON.parse(this.cardmodeldata);
|
this.cardmodal = JSON.parse(this.cardmodeldata);
|
||||||
@ -70,8 +67,6 @@ name : [null],
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
l:[null],
|
l:[null],
|
||||||
|
|
||||||
|
|
||||||
@ -80,12 +75,6 @@ m:[null],
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
child: this.initLinesForm(),
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -96,13 +85,6 @@ child: this.initLinesForm(),
|
|||||||
|
|
||||||
|
|
||||||
}); // component_button200
|
}); // component_button200
|
||||||
// inser code start
|
|
||||||
this.insertFormButton_Field = this._fb.group({
|
|
||||||
name: '',
|
|
||||||
});
|
|
||||||
|
|
||||||
// insert code end
|
|
||||||
|
|
||||||
// form code start
|
// form code start
|
||||||
this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => {
|
this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => {
|
||||||
console.log(data);
|
console.log(data);
|
||||||
@ -131,10 +113,6 @@ child: this.initLinesForm(),
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -142,19 +120,6 @@ child: this.initLinesForm(),
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
initLinesForm() { return this._fb.group({
|
|
||||||
|
|
||||||
|
|
||||||
name: [null],
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}); }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
error;
|
error;
|
||||||
getData() {
|
getData() {
|
||||||
this.mainService.getAll().subscribe((data) => {
|
this.mainService.getAll().subscribe((data) => {
|
||||||
@ -179,10 +144,6 @@ initLinesForm() { return this._fb.group({
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.modalEdit = true;
|
this.modalEdit = true;
|
||||||
}
|
}
|
||||||
onDelete(row) {
|
onDelete(row) {
|
||||||
@ -208,10 +169,6 @@ initLinesForm() { return this._fb.group({
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//console.log("in update");
|
//console.log("in update");
|
||||||
console.log("id " + id);
|
console.log("id " + id);
|
||||||
console.log(this.rowSelected);
|
console.log(this.rowSelected);
|
||||||
@ -231,10 +188,6 @@ setTimeout(() => {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}, (error) => {
|
}, (error) => {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
if (error.status >= 200 && error.status <= 299) {
|
if (error.status >= 200 && error.status <= 299) {
|
||||||
@ -259,10 +212,6 @@ onCreate() {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.mainService.create(this.entryForm.value).subscribe(
|
this.mainService.create(this.entryForm.value).subscribe(
|
||||||
(data) => {
|
(data) => {
|
||||||
console.log(data);
|
console.log(data);
|
||||||
@ -278,10 +227,6 @@ setTimeout(() => {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}, (error) => {
|
}, (error) => {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
if (error.status >= 200 && error.status <= 299) {
|
if (error.status >= 200 && error.status <= 299) {
|
||||||
@ -306,10 +251,6 @@ this.modalAdd = true; this.submitted = false;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
submitted = false;
|
submitted = false;
|
||||||
onSubmit() {
|
onSubmit() {
|
||||||
@ -324,10 +265,6 @@ onSubmit() {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//Value List field start
|
//Value List field start
|
||||||
valuelistMode;
|
valuelistMode;
|
||||||
searchcusttextvalue_list_field :any;
|
searchcusttextvalue_list_field :any;
|
||||||
@ -363,54 +300,9 @@ getcustvalue_list_fieldID(id:number){
|
|||||||
} //value List field end
|
} //value List field end
|
||||||
|
|
||||||
// updateaction
|
// updateaction
|
||||||
|
|
||||||
// insert button
|
|
||||||
|
|
||||||
|
|
||||||
modalInsertButton_Field = false;
|
|
||||||
goToInsertButton_Field() {
|
|
||||||
this.modalInsertButton_Field=true;
|
|
||||||
}
|
|
||||||
onSubmitInsertButton_Field() {
|
|
||||||
console.log(this.insertFormButton_Field.value);
|
|
||||||
this.submitted=true;
|
|
||||||
if (this.insertFormButton_Field.invalid) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.onInsertButton_Field();
|
|
||||||
}
|
|
||||||
onInsertButton_Field() {
|
|
||||||
this.modalInsertButton_Field=false;
|
|
||||||
this.mainService.insertButton_FieldChild(this.insertFormButton_Field.value).subscribe(data => {
|
|
||||||
console.log('After add',data)
|
|
||||||
if (data.status >=200 && data.status <=209) {
|
|
||||||
this.toastr.success('Added successfully');
|
|
||||||
}
|
|
||||||
if (data && data.id != null) {
|
|
||||||
this.toastr.success('Added successfully');
|
|
||||||
} this.ngOnInit();
|
|
||||||
},(error) => {
|
|
||||||
console.error(error);
|
|
||||||
if ( error.status >= 200 && error.status <= 299) {
|
|
||||||
this.toastr.success("Update Successfully");
|
|
||||||
}
|
|
||||||
if ( error.status >= 400 && error.status <= 499) {
|
|
||||||
this.toastr.error("Update Failed");
|
|
||||||
}
|
|
||||||
if ( error.status >= 500 && error.status <= 599) {
|
|
||||||
this.toastr.error("Server Error");
|
|
||||||
}
|
|
||||||
this.ngOnInit();
|
|
||||||
});
|
|
||||||
this.insertFormButton_Field.reset();
|
|
||||||
}
|
|
||||||
// insert buuton code end
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -35,14 +35,5 @@ export class Adv3service{
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// updateaction
|
// updateaction
|
||||||
// insert button code start
|
|
||||||
insertButton_FieldChild(Child: any): Observable<any> {
|
|
||||||
return this.apiRequest.post(`adv3/adv3/Child_insert`, Child);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -20,6 +20,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
@ -250,6 +251,8 @@ export class Stepper_workflowComponent implements OnInit {
|
|||||||
console.log('id is ', id)
|
console.log('id is ', id)
|
||||||
|
|
||||||
// stepper route
|
// stepper route
|
||||||
|
|
||||||
|
|
||||||
this.router.navigate(["../stepss/", id], { relativeTo: this.route });
|
this.router.navigate(["../stepss/", id], { relativeTo: this.route });
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -63,8 +63,6 @@
|
|||||||
<input class="clr-input" type="text" formControlName="name" />
|
<input class="clr-input" type="text" formControlName="name" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- multiselect field start -->
|
<!-- multiselect field start -->
|
||||||
<div class="clr-col-sm-12">
|
<div class="clr-col-sm-12">
|
||||||
<label> Field Group</label>
|
<label> Field Group</label>
|
||||||
@ -92,8 +90,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -102,21 +98,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div style="margin-top: 30px;">
|
|
||||||
<h4 style="display: inline;">child </h4> </div> <hr>
|
|
||||||
<div class="clr-row" formArrayName="child">
|
|
||||||
|
|
||||||
|
|
||||||
<div class="clr-col-md-4 clr-col-sm-12">
|
|
||||||
<label> name</label>
|
|
||||||
<input class="clr-input" type="text" formControlName="name" /> </div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="clr-row">
|
<div class="clr-row">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -147,8 +128,6 @@
|
|||||||
<div class="clr-col-12">
|
<div class="clr-col-12">
|
||||||
<h5>Bbb Summary:</h5><p><strong>Name : </strong> {{ Adv3entryForm.get('name')?.value | json}}</p>
|
<h5>Bbb Summary:</h5><p><strong>Name : </strong> {{ Adv3entryForm.get('name')?.value | json}}</p>
|
||||||
|
|
||||||
<p><strong>Child : </strong> {{ Adv3entryForm.get('child')?.value | json}}</p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p><strong>l : </strong> {{ Adv3entryForm.get('l')?.value | json}}</p>
|
<p><strong>l : </strong> {{ Adv3entryForm.get('l')?.value | json}}</p>
|
||||||
@ -164,8 +143,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p><strong>child : </strong> {{ Adv3entryForm.get('child')?.value | json}}</p>
|
|
||||||
|
|
||||||
<p><strong>Value List Field : </strong> {{ Adv3entryForm.get('value_list_field')?.value | json}}</p>
|
<p><strong>Value List Field : </strong> {{ Adv3entryForm.get('value_list_field')?.value | json}}</p>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -73,8 +73,6 @@ name : [null],
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
l:[null],
|
l:[null],
|
||||||
|
|
||||||
|
|
||||||
@ -83,8 +81,6 @@ m:[null],
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
child: this.initLinesForm(),
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -95,10 +91,6 @@ child: this.initLinesForm(),
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const stepId = this.id; // or from route/query/etc
|
const stepId = this.id; // or from route/query/etc
|
||||||
|
|
||||||
this.getResolvedDataFromStepper(stepId).subscribe(res => {
|
this.getResolvedDataFromStepper(stepId).subscribe(res => {
|
||||||
@ -127,8 +119,6 @@ showEmptyForm(): void {
|
|||||||
id: data.id || '',
|
id: data.id || '',
|
||||||
name: data.name || '',
|
name: data.name || '',
|
||||||
|
|
||||||
child: data.child || '',
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -141,8 +131,6 @@ m: data.m || '',
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
child: data.child || '',
|
|
||||||
|
|
||||||
value_list_field: data.value_list_field || '',
|
value_list_field: data.value_list_field || '',
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -249,10 +237,6 @@ value_list_field: data.value_list_field || '',
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.mainService.createAdv3(this.Adv3entryForm.value).subscribe(
|
this.mainService.createAdv3(this.Adv3entryForm.value).subscribe(
|
||||||
(data) => {
|
(data) => {
|
||||||
console.log('adding data ', data);
|
console.log('adding data ', data);
|
||||||
@ -281,10 +265,6 @@ value_list_field: data.value_list_field || '',
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}, (error) => {
|
}, (error) => {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
if (error.status >= 200 && error.status <= 299) {
|
if (error.status >= 200 && error.status <= 299) {
|
||||||
@ -336,10 +316,6 @@ value_list_field: data.value_list_field || '',
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//Value List field start
|
//Value List field start
|
||||||
valuelistMode;
|
valuelistMode;
|
||||||
searchcusttextvalue_list_field :any;
|
searchcusttextvalue_list_field :any;
|
||||||
@ -380,19 +356,6 @@ getcustvalue_list_fieldID(id:number){
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
initLinesForm() { return this.Adv3_fb.group({
|
|
||||||
|
|
||||||
|
|
||||||
name: [null],
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}); }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// updateaction
|
// updateaction
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -400,7 +363,3 @@ initLinesForm() { return this.Adv3_fb.group({
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -48,9 +48,5 @@ gettabledata(id: number): Observable<any> {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// updateaction
|
// updateaction
|
||||||
}
|
}
|
||||||
@ -1,3 +1,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import { stepssComponent } from './BuilderComponents/stepperworkflow/stepss/stepss.component';
|
import { stepssComponent } from './BuilderComponents/stepperworkflow/stepss/stepss.component';
|
||||||
import { TestlistComponent } from './BuilderComponents/basicp1/Testlist/Testlist.component';
|
import { TestlistComponent } from './BuilderComponents/basicp1/Testlist/Testlist.component';
|
||||||
import { ChildComponent } from './BuilderComponents/basicp1/Child/Child.component';
|
import { ChildComponent } from './BuilderComponents/basicp1/Child/Child.component';
|
||||||
@ -260,6 +264,14 @@ const routes: Routes = [
|
|||||||
|
|
||||||
|
|
||||||
// buildercomponents
|
// buildercomponents
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{path:'stepss/:id',component:stepssComponent},
|
{path:'stepss/:id',component:stepssComponent},
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
import { stepssComponent } from './BuilderComponents/stepperworkflow/stepss/stepss.component';
|
import { stepssComponent } from './BuilderComponents/stepperworkflow/stepss/stepss.component';
|
||||||
import { TestlistComponent } from './BuilderComponents/basicp1/Testlist/Testlist.component';
|
import { TestlistComponent } from './BuilderComponents/basicp1/Testlist/Testlist.component';
|
||||||
import { ChildComponent } from './BuilderComponents/basicp1/Child/Child.component';
|
import { ChildComponent } from './BuilderComponents/basicp1/Child/Child.component';
|
||||||
@ -133,6 +137,14 @@ import { Stepper_workflowComponent } from './BuilderComponents/stepperworkflow/S
|
|||||||
|
|
||||||
|
|
||||||
// buildercomponents
|
// buildercomponents
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
stepssComponent,
|
stepssComponent,
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -226,13 +226,11 @@
|
|||||||
"MENU_ACTION_LINK": "Menu Action Link",
|
"MENU_ACTION_LINK": "Menu Action Link",
|
||||||
"STATUS": "Status",
|
"STATUS": "Status",
|
||||||
"SUB_MENU": "Sub Menu",
|
"SUB_MENU": "Sub Menu",
|
||||||
"OneToOne": "OneToOne",
|
|
||||||
"Testlist": "Testlist",
|
"Testlist": "Testlist",
|
||||||
"Value_List_Field": "Value_List_Field",
|
"Value_List_Field": "Value_List_Field",
|
||||||
"l": "l",
|
"l": "l",
|
||||||
"m": "m",
|
"m": "m",
|
||||||
"Child": "Child",
|
"Child": "Child",
|
||||||
"Button_Field": "Button_Field",
|
|
||||||
"Adv3": "Adv3",
|
"Adv3": "Adv3",
|
||||||
"Name": "Name"
|
"Name": "Name"
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user