build_app
This commit is contained in:
		
							parent
							
								
									67fc8da912
								
							
						
					
					
						commit
						f53b2eea70
					
				| @ -78,6 +78,12 @@ addCustomMenu( "Stopwatch","Stopwatch",  "Transcations"); | |||||||
| addCustomMenu( "Stopwatch","Stopwatch",  "Transcations");  | addCustomMenu( "Stopwatch","Stopwatch",  "Transcations");  | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | addCustomMenu( "Stopwatch","Stopwatch",  "Transcations");  | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | addCustomMenu( "Stopwatch","Stopwatch",  "Transcations");  | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| addCustomMenu( "Stopwatch","Stopwatch",  "Transcations");  | addCustomMenu( "Stopwatch","Stopwatch",  "Transcations");  | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -18,12 +18,6 @@ import com.realnet.stopwatch.Entity.Stopwatch; | |||||||
| import com.realnet.stopwatch.Services.StopwatchService ; | import com.realnet.stopwatch.Services.StopwatchService ; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| @RequestMapping(value = "/Stopwatch") | @RequestMapping(value = "/Stopwatch") | ||||||
|  @CrossOrigin("*")  |  @CrossOrigin("*")  | ||||||
| @RestController | @RestController | ||||||
| @ -36,22 +30,10 @@ public class StopwatchController { | |||||||
|   |   | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 	@PostMapping("/Stopwatch") | 	@PostMapping("/Stopwatch") | ||||||
| 		  public Stopwatch Savedata(@RequestBody Stopwatch data) { | 		  public Stopwatch Savedata(@RequestBody Stopwatch data) { | ||||||
| 		Stopwatch save = Service.Savedata(data)	; | 		Stopwatch save = Service.Savedata(data)	; | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 		System.out.println("data saved..." + save); | 		System.out.println("data saved..." + save); | ||||||
| 
 | 
 | ||||||
|  return save; |  return save; | ||||||
| @ -98,10 +80,4 @@ public class StopwatchController { | |||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| } | } | ||||||
| @ -18,12 +18,6 @@ import com.realnet.stopwatch.Entity.Stopwatch; | |||||||
| import com.realnet.stopwatch.Services.StopwatchService ; | import com.realnet.stopwatch.Services.StopwatchService ; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| @RequestMapping(value = "/token/Stopwatch") | @RequestMapping(value = "/token/Stopwatch") | ||||||
|  @CrossOrigin("*")  |  @CrossOrigin("*")  | ||||||
| @RestController | @RestController | ||||||
| @ -36,22 +30,10 @@ public class tokenFree_StopwatchController { | |||||||
|   |   | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 	@PostMapping("/Stopwatch") | 	@PostMapping("/Stopwatch") | ||||||
| 		  public Stopwatch Savedata(@RequestBody Stopwatch data) { | 		  public Stopwatch Savedata(@RequestBody Stopwatch data) { | ||||||
| 		Stopwatch save = Service.Savedata(data)	; | 		Stopwatch save = Service.Savedata(data)	; | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 		System.out.println("data saved..." + save); | 		System.out.println("data saved..." + save); | ||||||
| 
 | 
 | ||||||
|  return save; |  return save; | ||||||
| @ -98,10 +80,4 @@ public class tokenFree_StopwatchController { | |||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| } | } | ||||||
| @ -6,12 +6,6 @@ import com.realnet.WhoColumn.Entity.Extension; | |||||||
|  import java.util.*; |  import java.util.*; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
|  @Entity  |  @Entity  | ||||||
|  @Data |  @Data | ||||||
|  public class    Stopwatch extends Extension {  |  public class    Stopwatch extends Extension {  | ||||||
| @ -24,13 +18,7 @@ import com.realnet.WhoColumn.Entity.Extension; | |||||||
|  @GeneratedValue(strategy = GenerationType.IDENTITY) |  @GeneratedValue(strategy = GenerationType.IDENTITY) | ||||||
|  private Integer id; |  private Integer id; | ||||||
| 
 | 
 | ||||||
| private String starttime; | private int elapsedtime; | ||||||
| 
 |  | ||||||
| private String endtime; |  | ||||||
| 
 |  | ||||||
| private int duration; |  | ||||||
| 
 |  | ||||||
| private String  status; |  | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| } | } | ||||||
|  | |||||||
| @ -10,12 +10,6 @@ import org.springframework.stereotype.Repository; | |||||||
| import java.util.*; | import java.util.*; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 | 
 | ||||||
|   |   | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -14,12 +14,6 @@ import com.realnet.users.service1.AppUserServiceImpl; | |||||||
| import com.realnet.users.entity1.AppUser; | import com.realnet.users.entity1.AppUser; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 	import org.springframework.stereotype.Service; | 	import org.springframework.stereotype.Service; | ||||||
| 
 | 
 | ||||||
| @Service | @Service | ||||||
| @ -31,21 +25,9 @@ private StopwatchRepository Repository; | |||||||
| @Autowired | @Autowired | ||||||
| 	private RealmService realmService; | 	private RealmService realmService; | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| public Stopwatch Savedata(Stopwatch data) { | public Stopwatch Savedata(Stopwatch 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()); | ||||||
| @ -77,25 +59,13 @@ public Stopwatch getdetailsbyId(Integer id) { | |||||||
| 
 | 
 | ||||||
| public Stopwatch update(Stopwatch data,Integer id) { | public Stopwatch update(Stopwatch data,Integer id) { | ||||||
| 	Stopwatch old = Repository.findById(id).get(); | 	Stopwatch old = Repository.findById(id).get(); | ||||||
| old.setStarttime(data.getStarttime()); | old.setElapsedtime(data.getElapsedtime()); | ||||||
| 
 |  | ||||||
| old.setEndtime(data.getEndtime()); |  | ||||||
| 
 |  | ||||||
| old.setDuration(data.getDuration()); |  | ||||||
| 
 |  | ||||||
| old.setStatus(data.getStatus()); |  | ||||||
| 
 | 
 | ||||||
| final Stopwatch test = Repository.save(old); | final Stopwatch test = Repository.save(old); | ||||||
| 		data.setUpdatedBy(getUser().getUserId()); | 		data.setUpdatedBy(getUser().getUserId()); | ||||||
|   return test;}  |   return test;}  | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
|  public AppUser getUser() { |  public AppUser getUser() { | ||||||
| 		AppUser user = userService.getLoggedInUser(); | 		AppUser user = userService.getLoggedInUser(); | ||||||
| 		return user; | 		return user; | ||||||
|  | |||||||
| @ -1,2 +1,4 @@ | |||||||
| CREATE TABLE stop_watch_app-d.Stopwatch(id BIGINT NOT NULL AUTO_INCREMENT, duration int, starttime Date, endtime Date, status VARCHAR(400),  PRIMARY KEY (id)); | CREATE TABLE stop_watch_app-d.Stopwatch(id BIGINT NOT NULL AUTO_INCREMENT, duration int, starttime Date, endtime Date, status VARCHAR(400),  PRIMARY KEY (id)); | ||||||
| 
 | 
 | ||||||
|  | CREATE TABLE stop_watch_app-d.Stopwatch(id BIGINT NOT NULL AUTO_INCREMENT, elapsedtime int,  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://"> Stopwatch</a></li> |   <li><a href="javascript://"> StopWatch</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>Stopwatch </h3> |       <h3>StopWatch </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,7 @@ | |||||||
|         <div *ngIf="error;else loadingSpinner">{{error}}</div> |         <div *ngIf="error;else loadingSpinner">{{error}}</div> | ||||||
|     </clr-dg-placeholder> |     </clr-dg-placeholder> | ||||||
| 
 | 
 | ||||||
| <clr-dg-column [clrDgField]="'starttime'"> <ng-container *clrDgHideableColumn="{hidden: false}"> startTime | <clr-dg-column [clrDgField]="'elapsedtime'"> <ng-container *clrDgHideableColumn="{hidden: false}"> elapsedTime | ||||||
| 						    </ng-container></clr-dg-column> |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| <clr-dg-column [clrDgField]="'endtime'"> <ng-container *clrDgHideableColumn="{hidden: false}"> endTime |  | ||||||
| 						    </ng-container></clr-dg-column> |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| <clr-dg-column [clrDgField]="'duration'"> <ng-container *clrDgHideableColumn="{hidden: false}"> duration |  | ||||||
| 						    </ng-container></clr-dg-column> |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| <clr-dg-column [clrDgField]="'status'"> <ng-container *clrDgHideableColumn="{hidden: false}"> status |  | ||||||
| 						    </ng-container></clr-dg-column> | 						    </ng-container></clr-dg-column> | ||||||
| 
 | 
 | ||||||
|   |   | ||||||
| @ -47,16 +35,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.starttime }}</clr-dg-cell> | <clr-dg-cell>{{user.elapsedtime }}</clr-dg-cell> | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| <clr-dg-cell>{{user.endtime }}</clr-dg-cell> |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| <clr-dg-cell>{{user.duration }}</clr-dg-cell> |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| <clr-dg-cell>{{user.status }}</clr-dg-cell> |  | ||||||
| 
 | 
 | ||||||
|   |   | ||||||
|   <!-- who column --> |   <!-- who column --> | ||||||
| @ -212,23 +191,11 @@ | |||||||
| </div> | </div> | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| <!-- //		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 Stopwatch |   <h3 class="modal-title">Update StopWatch | ||||||
|  <!--update button --> |  <!--update button --> | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| </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> | ||||||
| @ -236,34 +203,13 @@ | |||||||
|     <form > |     <form > | ||||||
| <div class="clr-row">  | <div class="clr-row">  | ||||||
| <div class="clr-col-sm-12">        | <div class="clr-col-sm-12">        | ||||||
| <label>startTime</label> | <label>elapsedTime</label> | ||||||
| 	        <input id="name" class="clr-input"  type="date" [(ngModel)]="rowSelected.starttime" name="starttime" /> | 	        <input id="name" class="clr-input"  type="number" [(ngModel)]="rowSelected.elapsedtime" name="elapsedtime" /> | ||||||
| 	      </div> |  | ||||||
| 
 |  | ||||||
| <div class="clr-col-sm-12">        |  | ||||||
| <label>endTime</label> |  | ||||||
| 	        <input id="name" class="clr-input"  type="date" [(ngModel)]="rowSelected.endtime" name="endtime" /> |  | ||||||
| 	      </div> |  | ||||||
| 
 |  | ||||||
| <div class="clr-col-sm-12">        |  | ||||||
| <label>duration</label> |  | ||||||
| 	        <input id="name" class="clr-input"  type="number" [(ngModel)]="rowSelected.duration" name="duration" /> |  | ||||||
| 	      </div> |  | ||||||
| 
 |  | ||||||
| <div class="clr-col-sm-12">        |  | ||||||
| <label>status</label> |  | ||||||
| 	        <input class="clr-input"  type="text" [(ngModel)]="rowSelected.status" name="status" /> |  | ||||||
| 	      </div> | 	      </div> | ||||||
| 
 | 
 | ||||||
|   </div>  |   </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> | ||||||
| @ -307,13 +253,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 Stopwatch  |   <h3 class="modal-title">Add StopWatch  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|   <!-- aeroplane icon --> |   <!-- aeroplane icon --> | ||||||
| @ -330,38 +270,17 @@ | |||||||
|    <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>  startTime</label> |  <label>  elapsedTime</label> | ||||||
|  <input class="clr-input"  type="date"  formControlName="starttime" />        |  <input class="clr-input"  type="number"  formControlName="elapsedtime" />       | ||||||
|  </div> |  <div *ngIf="submitted && entryForm.controls.elapsedtime.errors" class="error_mess"> | ||||||
| 
 |   <div *ngIf="submitted && entryForm.controls.elapsedtime.errors.required" class="error_mess">*This field is Required</div> | ||||||
| <div class="clr-col-sm-12"> |  | ||||||
|  <label>  endTime</label> |  | ||||||
|  <input class="clr-input"  type="date"  formControlName="endtime" />        |  | ||||||
|  </div> |  | ||||||
| 
 |  | ||||||
| <div class="clr-col-sm-12"> |  | ||||||
|  <label>  duration</label> |  | ||||||
|  <input class="clr-input"  type="number"  formControlName="duration" />       |  | ||||||
|  <div *ngIf="submitted && entryForm.controls.duration.errors" class="error_mess"> |  | ||||||
|   <div *ngIf="submitted && entryForm.controls.duration.errors.required" class="error_mess">*This field is Required</div> |  | ||||||
| </div>   | </div>   | ||||||
|  </div> |  </div> | ||||||
| 
 | 
 | ||||||
| <div class="clr-col-sm-12"> |  | ||||||
|  <label>  status</label> |  | ||||||
|  <input class="clr-input"  type="text"  formControlName="status" />        |  | ||||||
|  </div> |  | ||||||
| 
 |  | ||||||
|   |   | ||||||
|  </div>  |  </div>  | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|       <!-- form code start --> |       <!-- form code start --> | ||||||
| @ -396,10 +315,4 @@ | |||||||
| </clr-modal> | </clr-modal> | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
|   <!-- htmlpopup --> |   <!-- htmlpopup --> | ||||||
|  | |||||||
| @ -64,23 +64,11 @@ 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({ | ||||||
| starttime : [null], | elapsedtime : [null,[Validators.required]], | ||||||
| 
 |  | ||||||
| endtime : [null], |  | ||||||
| 
 |  | ||||||
| duration : [null,[Validators.required]], |  | ||||||
| 
 |  | ||||||
| status : [null], |  | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|   |   | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
|   }); // component_button200
 |   }); // component_button200
 | ||||||
|  // form code start
 |  // form code start
 | ||||||
|     this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { |     this.extensionService.getJsonObjectsByFormCodeList(this.formcode).subscribe(data => { | ||||||
| @ -105,12 +93,6 @@ status : [null], | |||||||
|     // form code end 
 |     // form code end 
 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 | 
 | ||||||
|   } |   } | ||||||
|  ngOnDestroy(): void { |  ngOnDestroy(): void { | ||||||
| @ -119,12 +101,6 @@ status : [null], | |||||||
|     } |     } | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
|  error;  |  error;  | ||||||
|   getData() { |   getData() { | ||||||
|     this.mainService.getAll().subscribe((data) => { |     this.mainService.getAll().subscribe((data) => { | ||||||
| @ -144,12 +120,6 @@ this.product = [...this.product].reverse(); if(this.product.length==0){ | |||||||
|     this.rowSelected = row; |     this.rowSelected = row; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 | 
 | ||||||
|     this.modalEdit = true; |     this.modalEdit = true; | ||||||
|   } |   } | ||||||
| @ -172,12 +142,6 @@ this.product = [...this.product].reverse(); if(this.product.length==0){ | |||||||
|     this.modalEdit = false; |     this.modalEdit = false; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
|     //console.log("in update");
 |     //console.log("in update");
 | ||||||
|     console.log("id  " + id); |     console.log("id  " + id); | ||||||
|     console.log(this.rowSelected); |     console.log(this.rowSelected); | ||||||
| @ -193,12 +157,6 @@ setTimeout(() => { | |||||||
|     }, 500); |     }, 500); | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
|       }, (error) => { |       }, (error) => { | ||||||
|         console.log(error); |         console.log(error); | ||||||
|         if (error.status >= 200 && error.status <= 299) { |         if (error.status >= 200 && error.status <= 299) { | ||||||
| @ -219,12 +177,6 @@ onCreate() { | |||||||
|      this.modalAdd=false; |      this.modalAdd=false; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
|   this.mainService.create(this.entryForm.value).subscribe( |   this.mainService.create(this.entryForm.value).subscribe( | ||||||
|     (data) => { |     (data) => { | ||||||
|       console.log(data); |       console.log(data); | ||||||
| @ -235,12 +187,6 @@ setTimeout(() => { | |||||||
|       this.ngOnInit(); |       this.ngOnInit(); | ||||||
|     }, 500); |     }, 500); | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 | 
 | ||||||
|       }, (error) => { |       }, (error) => { | ||||||
|         console.log(error); |         console.log(error); | ||||||
| @ -261,12 +207,6 @@ setTimeout(() => { | |||||||
|   goToAdd(row) { |   goToAdd(row) { | ||||||
| this.modalAdd = true; this.submitted = false; | this.modalAdd = true; this.submitted = false; | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 | 
 | ||||||
|   } |   } | ||||||
|  submitted = false; |  submitted = false; | ||||||
| @ -280,18 +220,6 @@ onSubmit() { | |||||||
| }  | }  | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| // updateaction
 | // updateaction
 | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
|  | |||||||
| @ -31,11 +31,5 @@ export class Stopwatchservice{ | |||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| // updateaction
 | // updateaction
 | ||||||
| } | } | ||||||
| @ -1,6 +1,8 @@ | |||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| import { StopwatchComponent } from './BuilderComponents/stopwatch/Stopwatch/Stopwatch.component'; | import { StopwatchComponent } from './BuilderComponents/stopwatch/Stopwatch/Stopwatch.component'; | ||||||
| 
 | 
 | ||||||
| import { SequencegenaratorComponent } from './fnd/sequencegenarator/sequencegenarator.component'; | import { SequencegenaratorComponent } from './fnd/sequencegenarator/sequencegenarator.component'; | ||||||
| @ -270,6 +272,10 @@ const routes: Routes = [ | |||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| {path:'Stopwatch',component:StopwatchComponent}, | {path:'Stopwatch',component:StopwatchComponent}, | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1,6 +1,8 @@ | |||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| import { StopwatchComponent } from './BuilderComponents/stopwatch/Stopwatch/Stopwatch.component'; | import { StopwatchComponent } from './BuilderComponents/stopwatch/Stopwatch/Stopwatch.component'; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -143,6 +145,10 @@ import { MyworkspaceComponent } from './admin/myworkspace/myworkspace.component' | |||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| StopwatchComponent, | StopwatchComponent, | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -230,5 +230,6 @@ | |||||||
|   "Stopwatch": "Stopwatch", |   "Stopwatch": "Stopwatch", | ||||||
|   "startTime": "startTime", |   "startTime": "startTime", | ||||||
|   "endTime": "endTime", |   "endTime": "endTime", | ||||||
|   "status": "status" |   "status": "status", | ||||||
|  |   "elapsedTime": "elapsedTime" | ||||||
| } | } | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user