-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
not yet done still working on so entry part for demo purposes
- Loading branch information
Karl M. Mobe
committed
Dec 7, 2017
1 parent
72c5aba
commit 882d1ab
Showing
12 changed files
with
129 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,24 @@ | ||
import { Component } from '@angular/core'; | ||
import { Router, ActivatedRoute, Params } from '@angular/router'; | ||
|
||
import { TestDataService, SalesOrder, Customer } from '../../services/testdata.service'; | ||
|
||
@Component({ | ||
templateUrl: 'neworder.component.html' | ||
}) | ||
export class NewOrderComponent { | ||
constructor() { } | ||
|
||
Model:SalesOrder = new SalesOrder(); | ||
|
||
constructor(private router: Router, private route: ActivatedRoute, private service: TestDataService) { | ||
this.Model.Customer = new Customer(); | ||
this.LoadData(); | ||
} | ||
|
||
async LoadData(){ | ||
let transNo: string = this.route.snapshot.queryParams['transactionNo']; | ||
if(transNo != undefined){ | ||
this.Model = await this.service.getOrderByTransaction(transNo); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.