build_app
This commit is contained in:
		
							parent
							
								
									d55c20a750
								
							
						
					
					
						commit
						1be79f604c
					
				| @ -72,6 +72,9 @@ public class BuilderService { | ||||
| addCustomMenu( "Calculator","Calculator",  "Transcations");  | ||||
| 
 | ||||
| 
 | ||||
| addCustomMenu( "Calculator","Calculator",  "Transcations");  | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 		System.out.println("dashboard and menu inserted..."); | ||||
| 
 | ||||
|  | ||||
| @ -22,8 +22,6 @@ import com.realnet.app-b.Services.CalculatorService ; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| @RequestMapping(value = "/Calculator") | ||||
|  @CrossOrigin("*")  | ||||
| @RestController | ||||
| @ -40,8 +38,6 @@ public class CalculatorController { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 	@PostMapping("/Calculator") | ||||
| 		  public Calculator Savedata(@RequestBody Calculator data) { | ||||
| 		Calculator save = Service.Savedata(data)	; | ||||
| @ -50,8 +46,6 @@ public class CalculatorController { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 		System.out.println("data saved..." + save); | ||||
| 
 | ||||
|  return save; | ||||
| @ -102,6 +96,4 @@ public class CalculatorController { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| } | ||||
| @ -22,8 +22,6 @@ import com.realnet.app-b.Services.CalculatorService ; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| @RequestMapping(value = "/token/Calculator") | ||||
|  @CrossOrigin("*")  | ||||
| @RestController | ||||
| @ -40,8 +38,6 @@ public class tokenFree_CalculatorController { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 	@PostMapping("/Calculator") | ||||
| 		  public Calculator Savedata(@RequestBody Calculator data) { | ||||
| 		Calculator save = Service.Savedata(data)	; | ||||
| @ -50,8 +46,6 @@ public class tokenFree_CalculatorController { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 		System.out.println("data saved..." + save); | ||||
| 
 | ||||
|  return save; | ||||
| @ -102,6 +96,4 @@ public class tokenFree_CalculatorController { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| } | ||||
| @ -10,8 +10,6 @@ import com.realnet.WhoColumn.Entity.Extension; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  @Entity  | ||||
|  @Data | ||||
|  public class    Calculator extends Extension {  | ||||
| @ -26,8 +24,6 @@ import com.realnet.WhoColumn.Entity.Extension; | ||||
| 
 | ||||
| private int number1; | ||||
| 
 | ||||
| private String  operation; | ||||
| 
 | ||||
| private int number2; | ||||
| 
 | ||||
| private String  result; | ||||
|  | ||||
| @ -14,8 +14,6 @@ import java.util.*; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   | ||||
| 
 | ||||
|  | ||||
| @ -18,8 +18,6 @@ import com.realnet.users.entity1.AppUser; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 	import org.springframework.stereotype.Service; | ||||
| 
 | ||||
| @Service | ||||
| @ -35,8 +33,6 @@ private CalculatorRepository Repository; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| public Calculator Savedata(Calculator data) { | ||||
| 
 | ||||
| 
 | ||||
| @ -44,8 +40,6 @@ public Calculator Savedata(Calculator data) { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 	data.setUpdatedBy(getUser().getUserId()); | ||||
| 		data.setCreatedBy(getUser().getUserId()); | ||||
| 		data.setAccountId(getUser().getAccount().getAccount_id()); | ||||
| @ -79,8 +73,6 @@ public Calculator update(Calculator data,Integer id) { | ||||
| 	Calculator old = Repository.findById(id).get(); | ||||
| old.setNumber1(data.getNumber1()); | ||||
| 
 | ||||
| old.setOperation(data.getOperation()); | ||||
| 
 | ||||
| old.setNumber2(data.getNumber2()); | ||||
| 
 | ||||
| old.setResult(data.getResult()); | ||||
| @ -94,8 +86,6 @@ final Calculator test = Repository.save(old); | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  public AppUser getUser() { | ||||
| 		AppUser user = userService.getLoggedInUser(); | ||||
| 		return user; | ||||
|  | ||||
| @ -1,2 +1,2 @@ | ||||
| CREATE TABLE app-d.Calculator(id BIGINT NOT NULL AUTO_INCREMENT, number2 int, number1 int, operation VARCHAR(400), result VARCHAR(400),  PRIMARY KEY (id)); | ||||
| CREATE TABLE app-d.Calculator(id BIGINT NOT NULL AUTO_INCREMENT, number2 int, number1 int, result VARCHAR(400),  PRIMARY KEY (id)); | ||||
| 
 | ||||
|  | ||||
| @ -27,10 +27,6 @@ | ||||
| 						    </ng-container></clr-dg-column> | ||||
| 
 | ||||
| 
 | ||||
| <clr-dg-column [clrDgField]="'operation'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Operation | ||||
| 						    </ng-container></clr-dg-column> | ||||
| 
 | ||||
| 
 | ||||
| <clr-dg-column [clrDgField]="'number2'"> <ng-container *clrDgHideableColumn="{hidden: false}"> Number2 | ||||
| 						    </ng-container></clr-dg-column> | ||||
| 
 | ||||
| @ -50,9 +46,6 @@ | ||||
| <clr-dg-cell>{{user.number1 }}</clr-dg-cell> | ||||
| 
 | ||||
| 
 | ||||
| <clr-dg-cell>{{user.operation }}</clr-dg-cell> | ||||
| 
 | ||||
| 
 | ||||
| <clr-dg-cell>{{user.number2 }}</clr-dg-cell> | ||||
| 
 | ||||
| 
 | ||||
| @ -216,8 +209,6 @@ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| <!-- //		EDIT DATA......... --> | ||||
| <clr-modal [(clrModalOpen)]="modalEdit" [clrModalSize]="'lg'" [clrModalStaticBackdrop]="true"> | ||||
|   <h3 class="modal-title">Update Calculator | ||||
| @ -227,8 +218,6 @@ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| </h3> | ||||
|   <div class="modal-body" *ngIf="rowSelected.id"> | ||||
|     <h2 class="heading">{{rowSelected.id}}</h2> | ||||
| @ -240,11 +229,6 @@ | ||||
| 	        <input id="name" class="clr-input"  type="number" [(ngModel)]="rowSelected.number1" name="number1" /> | ||||
| 	      </div> | ||||
| 
 | ||||
| <div class="clr-col-sm-12">        | ||||
| <label>Operation</label> | ||||
| 	        <input class="clr-input"  type="text" [(ngModel)]="rowSelected.operation" name="operation" /> | ||||
| 	      </div> | ||||
| 
 | ||||
| <div class="clr-col-sm-12">        | ||||
| <label>Number2</label> | ||||
| 	        <input id="name" class="clr-input"  type="number" [(ngModel)]="rowSelected.number2" name="number2" /> | ||||
| @ -262,8 +246,6 @@ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| <!-- form code start --> | ||||
|   <div *ngIf="checkFormCode"> | ||||
|     <h4 style="font-weight: 300;display: inline;">Extension</h4> | ||||
| @ -314,8 +296,6 @@ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   <!-- aeroplane icon --> | ||||
|             | ||||
|     <a *ngIf="userrole?.includes('ADMIN')" style="float: right;" href="javascript:void(0)" role="tooltip" aria-haspopup="true" | ||||
| @ -337,11 +317,6 @@ | ||||
| </div>   | ||||
|  </div> | ||||
| 
 | ||||
| <div class="clr-col-sm-12"> | ||||
|  <label>  Operation</label> | ||||
|  <input class="clr-input"  type="text"  formControlName="operation" />        | ||||
|  </div> | ||||
| 
 | ||||
| <div class="clr-col-sm-12"> | ||||
|  <label>  Number2</label> | ||||
|  <input class="clr-input"  type="number"  formControlName="number2" />       | ||||
| @ -363,8 +338,6 @@ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|       <!-- form code start --> | ||||
| @ -403,6 +376,4 @@ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   <!-- htmlpopup --> | ||||
|  | ||||
| @ -66,8 +66,6 @@ private userInfoService:UserInfoService, | ||||
|     this.entryForm = this._fb.group({ | ||||
| number1 : [null,[Validators.required]], | ||||
| 
 | ||||
| operation : [null], | ||||
| 
 | ||||
| number2 : [null,[Validators.required]], | ||||
| 
 | ||||
| result : [null], | ||||
| @ -79,8 +77,6 @@ result : [null], | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   }); // component_button200
 | ||||
|  // form code start
 | ||||
|     this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { | ||||
| @ -109,8 +105,6 @@ result : [null], | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   } | ||||
|  ngOnDestroy(): void { | ||||
| @ -123,8 +117,6 @@ result : [null], | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  error;  | ||||
|   getData() { | ||||
|     this.mainService.getAll().subscribe((data) => { | ||||
| @ -148,8 +140,6 @@ this.product = [...this.product].reverse(); if(this.product.length==0){ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|     this.modalEdit = true; | ||||
|   } | ||||
| @ -176,8 +166,6 @@ this.product = [...this.product].reverse(); if(this.product.length==0){ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|     //console.log("in update");
 | ||||
|     console.log("id  " + id); | ||||
|     console.log(this.rowSelected); | ||||
| @ -197,8 +185,6 @@ setTimeout(() => { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|       }, (error) => { | ||||
|         console.log(error); | ||||
|         if (error.status >= 200 && error.status <= 299) { | ||||
| @ -223,8 +209,6 @@ onCreate() { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   this.mainService.create(this.entryForm.value).subscribe( | ||||
|     (data) => { | ||||
|       console.log(data); | ||||
| @ -239,8 +223,6 @@ setTimeout(() => { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|       }, (error) => { | ||||
|         console.log(error); | ||||
| @ -265,8 +247,6 @@ this.modalAdd = true; this.submitted = false; | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|   } | ||||
|  submitted = false; | ||||
| @ -284,8 +264,6 @@ onSubmit() { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| // updateaction
 | ||||
| } | ||||
| 
 | ||||
| @ -293,5 +271,3 @@ onSubmit() { | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
| @ -35,7 +35,5 @@ export class Calculatorservice{ | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| // updateaction
 | ||||
| } | ||||
| @ -1,3 +1,4 @@ | ||||
| 
 | ||||
| import { CalculatorComponent } from './BuilderComponents/app-b/Calculator/Calculator.component'; | ||||
| 
 | ||||
| import { SequencegenaratorComponent } from './fnd/sequencegenarator/sequencegenarator.component'; | ||||
| @ -261,6 +262,8 @@ const routes: Routes = [ | ||||
| 
 | ||||
| 
 | ||||
|       // buildercomponents
 | ||||
| 
 | ||||
| 
 | ||||
| {path:'Calculator',component:CalculatorComponent}, | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
| @ -1,3 +1,4 @@ | ||||
| 
 | ||||
| import { CalculatorComponent } from './BuilderComponents/app-b/Calculator/Calculator.component'; | ||||
| 
 | ||||
| 
 | ||||
| @ -134,6 +135,8 @@ import { MyworkspaceComponent } from './admin/myworkspace/myworkspace.component' | ||||
| 
 | ||||
| 
 | ||||
|     // buildercomponents
 | ||||
| 
 | ||||
| 
 | ||||
| CalculatorComponent, | ||||
| 
 | ||||
| 
 | ||||
|  | ||||
| @ -229,6 +229,5 @@ | ||||
|   "Number2": "Number2", | ||||
|   "Number1": "Number1", | ||||
|   "Calculator": "Calculator", | ||||
|   "Operation": "Operation", | ||||
|   "Result": "Result" | ||||
| } | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user