Guest User

Untitled

a guest
Nov 16th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. @Input() system: System;
  2.  
  3. constructor(
  4. private route: ActivatedRoute,
  5. private baseService: BaseService,
  6. private location: Location
  7. ) { }
  8.  
  9.  
  10. ngOnInit(): void {
  11. this.getSystem();
  12. }
  13.  
  14. getSystem(): void {
  15. const messagingSystemID = this.route.snapshot.paramMap.get('messagingSystemID');
  16. console.log("The ID is: ")
  17. console.log(messagingSystemID);
  18. this.baseService.getSystem(messagingSystemID)
  19. .subscribe(system => this.system = system);
  20. }
  21.  
  22. <h2>{{ system.systemID | uppercase }} Details</h2>
  23. <div>
  24. <label>Host:
  25. <input type="text" [(ngModel)]="system.host" placeholder="host"/>
  26. </label>
  27. <label>Port:
  28. <input type="number" [(ngModel)]="system.port" placeholder="port"/>
  29. </label>
  30. <label>RFC Dest:
  31. <input type="text" [(ngModel)]="system.rfcDest" placeholder="RfcDest"/>
  32. </label>
  33. <label>User:
  34. <input type="text" [(ngModel)]="system.userId" placeholder="password"/>
  35. </label>
  36. <label>Password:
  37. <input type="text" [(ngModel)]="system.password" placeholder="password"/>
  38. </label>
  39. <select name="Version" #version style="text-align:top">
  40. <option value=""></option>
  41. <option value="7.3">7.3</option>
  42. <option value="7.4">7.4</option>
  43. <option value="7.5">7.5</option>
  44. </select>
  45. <label>System:
  46. <input type="text" [(ngModel)]="system.systemID" placeholder="System ID"/>
  47. </label>
  48. </div>
Add Comment
Please, Sign In to add comment