build_app
This commit is contained in:
		
							parent
							
								
									f6d3a37ec4
								
							
						
					
					
						commit
						a1c4908401
					
				| @ -75,6 +75,15 @@ addCustomMenu( "Adv3","Adv3",  "Transcations"); | ||||
| addCustomMenu( "Testlist","Testlist",  "Transcations");  | ||||
| 
 | ||||
| 
 | ||||
| addCustomMenu( "Child","Child",  "Transcations");  | ||||
| 
 | ||||
| 
 | ||||
| addCustomMenu( "Adv3","Adv3",  "Transcations");  | ||||
| 
 | ||||
| 
 | ||||
| addCustomMenu( "Testlist","Testlist",  "Transcations");  | ||||
| 
 | ||||
| 
 | ||||
| addCustomMenu( "Child","Child",  "Transcations");  | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
| @ -21,10 +21,6 @@ import com.realnet.basicp1.Services.Adv3Service ; | ||||
| import com.realnet.Testlist_ListFilter1/Testlist_ListFilter1.Entity.Testlist; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| @RequestMapping(value = "/Adv3") | ||||
|  @CrossOrigin("*")  | ||||
| @RestController | ||||
| @ -39,20 +35,12 @@ public class Adv3Controller { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 	@PostMapping("/Adv3") | ||||
| 		  public Adv3 Savedata(@RequestBody Adv3 data) { | ||||
| 		Adv3 save = Service.Savedata(data)	; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 		System.out.println("data saved..." + save); | ||||
| 
 | ||||
|  return save; | ||||
| @ -107,8 +95,4 @@ public class Adv3Controller { | ||||
| 		return insertaction; | ||||
| 	} | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| } | ||||
| @ -21,10 +21,6 @@ import com.realnet.basicp1.Services.Adv3Service ; | ||||
| import com.realnet.Testlist_ListFilter1/Testlist_ListFilter1.Entity.Testlist; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| @RequestMapping(value = "/token/Adv3") | ||||
|  @CrossOrigin("*")  | ||||
| @RestController | ||||
| @ -39,20 +35,12 @@ public class tokenFree_Adv3Controller { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 	@PostMapping("/Adv3") | ||||
| 		  public Adv3 Savedata(@RequestBody Adv3 data) { | ||||
| 		Adv3 save = Service.Savedata(data)	; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 		System.out.println("data saved..." + save); | ||||
| 
 | ||||
|  return save; | ||||
| @ -107,8 +95,4 @@ public class tokenFree_Adv3Controller { | ||||
| 		return insertaction; | ||||
| 	} | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| } | ||||
| @ -8,10 +8,6 @@ import com.realnet.WhoColumn.Entity.Extension; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| import com.realnet.basicp1.Entity.Child; | ||||
| 
 | ||||
|  @Entity  | ||||
|  @Data | ||||
|  public class    Adv3 extends Extension {  | ||||
| @ -29,9 +25,4 @@ private String  name; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| @OneToOne(  cascade=CascadeType.ALL) | ||||
|  private  Child child;  | ||||
| 
 | ||||
| 
 | ||||
| } | ||||
|  | ||||
| @ -12,10 +12,6 @@ import java.util.*; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   | ||||
| 
 | ||||
|  | ||||
| @ -19,10 +19,6 @@ import com.realnet.Testlist_ListFilter1/Testlist_ListFilter1.Entity.Testlist; | ||||
| import com.realnet.Testlist_ListFilter1/Testlist_ListFilter1.Repository.TestlistRepository; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 	import org.springframework.stereotype.Service; | ||||
| 
 | ||||
| @Service | ||||
| @ -36,19 +32,11 @@ private Adv3Repository Repository; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| public Adv3 Savedata(Adv3 data) { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 	data.setUpdatedBy(getUser().getUserId()); | ||||
| 		data.setCreatedBy(getUser().getUserId()); | ||||
| 		data.setAccountId(getUser().getAccount().getAccount_id()); | ||||
| @ -84,10 +72,6 @@ old.setName(data.getName()); | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| old.setChild(data.getChild()); | ||||
| 
 | ||||
| final Adv3 test = Repository.save(old); | ||||
| 		data.setUpdatedBy(getUser().getUserId()); | ||||
|   return test;}  | ||||
| @ -110,10 +94,6 @@ data.setUpdatedBy(getUser().getUserId()); | ||||
| 		return save; | ||||
| 	} | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  public AppUser getUser() { | ||||
| 		AppUser user = userService.getLoggedInUser(); | ||||
| 		return user; | ||||
|  | ||||
| @ -2,5 +2,5 @@ CREATE TABLE db.Child(id BIGINT NOT NULL AUTO_INCREMENT, description VARCHAR(400 | ||||
| 
 | ||||
| CREATE TABLE db.Testlist(id BIGINT NOT NULL AUTO_INCREMENT, description VARCHAR(400), name VARCHAR(400),  PRIMARY KEY (id)); | ||||
| 
 | ||||
| CREATE TABLE db.Adv3(id BIGINT NOT NULL AUTO_INCREMENT, onetoone VARCHAR(400), value_list_field VARCHAR(400), button_field VARCHAR(400), name VARCHAR(400),  PRIMARY KEY (id)); | ||||
| CREATE TABLE db.Adv3(id BIGINT NOT NULL AUTO_INCREMENT, button_field VARCHAR(400), name VARCHAR(400),  PRIMARY KEY (id)); | ||||
| 
 | ||||
|  | ||||
| @ -35,19 +35,6 @@ | ||||
| 
 | ||||
| 
 | ||||
|   | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   | ||||
| <clr-dg-column [clrDgField]="'child.Description'"> <ng-container *clrDgHideableColumn="{hidden: false}">Description</ng-container></clr-dg-column> | ||||
|   | ||||
| 
 | ||||
|   | ||||
| <clr-dg-column [clrDgField]="'child.Name'"> <ng-container *clrDgHideableColumn="{hidden: false}">Name</ng-container></clr-dg-column> | ||||
|   | ||||
| 
 | ||||
| 
 | ||||
|   | ||||
|  <!-- who column --> | ||||
|       <clr-dg-column> <ng-container *clrDgHideableColumn="{hidden: false}"> | ||||
|         <clr-icon shape="bars"></clr-icon> Action | ||||
| @ -60,19 +47,6 @@ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   | ||||
| <clr-dg-cell>{{user.child.Description}}</clr-dg-cell> | ||||
|   | ||||
| 
 | ||||
|   | ||||
| <clr-dg-cell>{{user.child.Name}}</clr-dg-cell> | ||||
|   | ||||
| 
 | ||||
| 
 | ||||
|   | ||||
|   <!-- who column --> | ||||
| <clr-dg-cell> | ||||
| @ -229,10 +203,6 @@ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| <!-- //		EDIT DATA......... --> | ||||
| <clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true"> | ||||
|   <h3 class="modal-title">Update Adv3 | ||||
| @ -240,10 +210,6 @@ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| <button  class="btn btn-icon btn-primary" (click)="openvalueListvalue_list_field('EDIT')">V</button> | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| </h3> | ||||
|   <div class="modal-body" *ngIf="rowSelected.id"> | ||||
|     <h2 class="heading">{{rowSelected.id}}</h2> | ||||
| @ -257,33 +223,11 @@ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   </div>  | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   | ||||
| 
 | ||||
| <div class="clr-col-md-4 clr-col-sm-12"> <label>Description</label> | ||||
|   <input class="clr-input" id="name" type="text" [(ngModel)]="rowSelected.child.Description" name="Description" /> | ||||
| </div> | ||||
|   | ||||
| 
 | ||||
|   | ||||
| 
 | ||||
| <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 --> | ||||
|   <div *ngIf="checkFormCode"> | ||||
|     <h4 style="font-weight: 300;display: inline;">Extension</h4> | ||||
| @ -331,10 +275,6 @@ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| <button  class="btn btn-icon btn-primary" (click)="openvalueListvalue_list_field('ADD')">V</button> | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   <!-- aeroplane icon --> | ||||
|             | ||||
| @ -356,10 +296,6 @@ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   | ||||
|  </div>  | ||||
| 
 | ||||
| @ -368,27 +304,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> Description</label> | ||||
| 	 <input class="clr-input" type="text" formControlName="Description" />     </div>  | ||||
|   | ||||
| 
 | ||||
|   | ||||
| 					<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 --> | ||||
|       <div *ngIf="checkFormCode"> | ||||
|         <h4 style="font-weight: 300;display: inline;">Extension</h4> | ||||
| @ -423,40 +338,6 @@ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  <!--   value List field start--> | ||||
|  <clr-modal [(clrModalOpen)]="valueListModalvalue_list_field" [clrModalSize]="'md'"> | ||||
| 	  <h3 class="modal-title"><b>Select From  value_list_field  List:</b></h3> | ||||
| 	  <div class="modal-body">    | ||||
| 		 <div class="clr-row"> | ||||
| 	      <div class="clr-col-md-12 clr-col-sm-12" style="margin-top: 8px;"> | ||||
| 	          <input id="data" type="text" placeholder="Enter search Criteria" class="clr-input" name="searchcusttextvalue_list_field" [(ngModel)]="searchcusttextvalue_list_field">       </div> | ||||
| 	      </div>     <clr-datagrid [clrDgLoading]="loading"> | ||||
| 	      <clr-dg-placeholder><clr-spinner [clrMedium]="true">Loading ...</clr-spinner></clr-dg-placeholder> | ||||
| 	 | ||||
| 
 | ||||
| 		    | ||||
|   | ||||
| 		   <clr-dg-column [clrDgField]="'name'"> <ng-container *clrDgHideableColumn="{hidden: false}">name</ng-container></clr-dg-column>  | ||||
| 		   | ||||
| 
 | ||||
| <clr-dg-row *clrDgItems="let user of product?.slice()?.reverse() | filter:searchcusttextvalue_list_field;  let i = index " [clrDgItem]="user"> | ||||
| 
 | ||||
| 	 | ||||
|   | ||||
| 	<clr-dg-cell (click)="getcustvalue_list_fieldID(user.id)" style="color: rgb(108, 108, 194); cursor:pointer;">{{user.name}}</clr-dg-cell> | ||||
|   | ||||
| 
 | ||||
| 
 | ||||
|  </clr-dg-row>     <clr-dg-footer> | ||||
| 	        <clr-dg-pagination #pagination [clrDgPageSize]="10"> | ||||
| 	          <clr-dg-page-size [clrPageSizeOptions]="[10,20,50,100]">Record per page</clr-dg-page-size> | ||||
| 	          {{pagination.firstItem + 1}} - {{pagination.lastItem + 1}} | ||||
| 	          of {{pagination.totalItems}} Records        </clr-dg-pagination> | ||||
| 	      </clr-dg-footer>    </clr-datagrid>  </div></clr-modal> | ||||
| 	   <!--   value List field end--> | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   <!-- htmlpopup --> | ||||
| 
 | ||||
|   <clr-modal [(clrModalOpen)]="modalInsertButton_Field" [clrModalSize]="'xl'" [clrModalStaticBackdrop]="true"> | ||||
|  | ||||
| @ -71,18 +71,10 @@ name : [null], | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| child: this.initLinesForm(), | ||||
| 
 | ||||
| 
 | ||||
|   | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   }); // component_button200
 | ||||
| // inser code start
 | ||||
|   this.insertFormButton_Field = this._fb.group({ | ||||
| @ -118,32 +110,11 @@ child: this.initLinesForm(), | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   } | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| initLinesForm() {   return this._fb.group({ | ||||
| 
 | ||||
|   | ||||
|   Description: [null], | ||||
|   | ||||
| 
 | ||||
|   | ||||
|   Name: [null], | ||||
|   | ||||
| 		 | ||||
| 
 | ||||
| });   }  | ||||
| 		 | ||||
| 
 | ||||
|  error;  | ||||
|   getData() { | ||||
|     this.mainService.getAll().subscribe((data) => { | ||||
| @ -166,10 +137,6 @@ initLinesForm() {   return this._fb.group({ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|     this.modalEdit = true; | ||||
|   } | ||||
|    onDelete(row) { | ||||
| @ -193,10 +160,6 @@ initLinesForm() {   return this._fb.group({ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|     //console.log("in update");
 | ||||
|     console.log("id  " + id); | ||||
|     console.log(this.rowSelected); | ||||
| @ -214,10 +177,6 @@ setTimeout(() => { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|       }, (error) => { | ||||
|         console.log(error); | ||||
|         if (error.status >= 200 && error.status <= 299) { | ||||
| @ -240,10 +199,6 @@ onCreate() { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   this.mainService.create(this.entryForm.value).subscribe( | ||||
|     (data) => { | ||||
|       console.log(data); | ||||
| @ -257,10 +212,6 @@ setTimeout(() => { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|       }, (error) => { | ||||
|         console.log(error); | ||||
|         if (error.status >= 200 && error.status <= 299) { | ||||
| @ -283,10 +234,6 @@ this.modalAdd = true; this.submitted = false; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   } | ||||
|  submitted = false; | ||||
| onSubmit() { | ||||
| @ -301,42 +248,6 @@ onSubmit() { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| //Value List field start    
 | ||||
| valuelistMode; | ||||
| searchcusttextvalue_list_field :any;     | ||||
|  valueListModalvalue_list_field :boolean=false; | ||||
|     openvalueListvalue_list_field(mode){ | ||||
|  this.valueListModalvalue_list_field=!this.valueListModalvalue_list_field ;  | ||||
|       this.valuelistMode = mode;     } | ||||
|      customerdatavalue_list_field ;      | ||||
| cutomererror; | ||||
|    clickedID:number; | ||||
| 
 | ||||
| getcustvalue_list_fieldID(id:number){     | ||||
|  this.clickedID=id; | ||||
| 						    console.log("clicked by id"+ id); | ||||
| 						    this.mainService.getById(id).subscribe((data) => {       console.log(data); | ||||
| 						         if(this.valuelistMode == "ADD"){  | ||||
| 
 | ||||
| 							 | ||||
|   | ||||
| 							this.entryForm.get('name').setValue(data.name); | ||||
| 							  | ||||
| 
 | ||||
| 
 | ||||
| 						}else if(this.valuelistMode == "EDIT"){ | ||||
| 
 | ||||
| 							 | ||||
|   | ||||
| 							this.rowSelected.name= data. name | ||||
| 							  | ||||
| 
 | ||||
| 
 | ||||
| 						}       });       this.valueListModalvalue_list_field =false; | ||||
| 						    }    //value List field end 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| // updateaction
 | ||||
| 
 | ||||
| // insert button
 | ||||
| @ -383,7 +294,3 @@ if (data && data.id != null) { | ||||
| 
 | ||||
| 
 | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
| @ -33,10 +33,6 @@ export class Adv3service{ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| // updateaction
 | ||||
| // insert button code start
 | ||||
| insertButton_FieldTestlist(Testlist: any): Observable<any> { | ||||
|  | ||||
| @ -1,3 +1,6 @@ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| import { Adv3Component } from './BuilderComponents/basicp1/Adv3/Adv3.component'; | ||||
| import { TestlistComponent } from './BuilderComponents/basicp1/Testlist/Testlist.component'; | ||||
| import { ChildComponent } from './BuilderComponents/basicp1/Child/Child.component'; | ||||
| @ -260,6 +263,12 @@ const routes: Routes = [ | ||||
| 
 | ||||
| 
 | ||||
|       // buildercomponents
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| {path:'Adv3',component:Adv3Component}, | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
| @ -1,3 +1,6 @@ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| import { Adv3Component } from './BuilderComponents/basicp1/Adv3/Adv3.component'; | ||||
| import { TestlistComponent } from './BuilderComponents/basicp1/Testlist/Testlist.component'; | ||||
| import { ChildComponent } from './BuilderComponents/basicp1/Child/Child.component'; | ||||
| @ -132,6 +135,12 @@ import { Stepper_workflowComponent } from './BuilderComponents/stepperworkflow/S | ||||
| 
 | ||||
| 
 | ||||
|     // buildercomponents
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| Adv3Component, | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user