- Timestamp:
- 07/31/20 10:43:09 (4 years ago)
- Branches:
- master
- Children:
- 58fa654, c73269d
- Parents:
- a55ef91
- Location:
- Farmatiko/ClientApp/src/app
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Farmatiko/ClientApp/src/app/home/home.component.html
ra55ef91 rd8fafb8 2 2 3 3 <mat-tab-group mat-stretch-tabs> 4 <mat-tab class="tab" label="Лекови"> 4 <mat-tab class="tab" label="Лекови"> 5 5 <div class="wrapper"> 6 6 <div class="header"> … … 15 15 <td mat-cell *matCellDef="let medicines"> {{medicines.name}} </td> 16 16 </ng-container> 17 17 18 18 <ng-container matColumnDef="Јачина"> 19 19 <th mat-header-cell *matHeaderCellDef mat-sort-header> Јачина </th> 20 20 <td mat-cell *matCellDef="let medicines"> {{medicines.strength}} </td> 21 21 </ng-container> 22 22 23 23 <ng-container matColumnDef="Форма"> 24 24 <th mat-header-cell *matHeaderCellDef mat-sort-header> Форма </th> 25 25 <td mat-cell *matCellDef="let medicines"> {{medicines.form}} </td> 26 26 </ng-container> 27 27 28 28 <ng-container matColumnDef="Начин на издавање"> 29 29 <th mat-header-cell *matHeaderCellDef mat-sort-header> Начин на издавање </th> 30 30 <td mat-cell *matCellDef="let medicines"> {{medicines.wayOfIssuing}} </td> 31 31 </ng-container> 32 32 33 33 <ng-container matColumnDef="Производител"> 34 34 <th mat-header-cell *matHeaderCellDef mat-sort-header> Производител </th> 35 35 <td mat-cell *matCellDef="let medicines"> {{medicines.manufacturer}} </td> 36 36 </ng-container> 37 37 38 38 <ng-container matColumnDef="Цена"> 39 39 <th mat-header-cell *matHeaderCellDef mat-sort-header> Цена </th> … … 52 52 </div> 53 53 </mat-tab> 54 <mat-tab class="tab" label="Аптеки"> 54 <mat-tab class="tab" label="Аптеки"> 55 55 <div class="wrapper"> 56 56 <div class="header"> … … 60 60 </mat-form-field> 61 61 </div> 62 <table [dataSource]="dataSource " mat-table matSort class="mat-elevation-z8">63 <ng-container matColumnDef="Име"> a62 <table [dataSource]="dataSourcePharmacies" mat-table matSort class="mat-elevation-z8"> 63 <ng-container matColumnDef="Име"> 64 64 <th mat-header-cell *matHeaderCellDef mat-sort-header> Име </th> 65 65 <td mat-cell *matCellDef="let pharmacies"> {{pharmacies.name}} </td> 66 66 </ng-container> 67 67 68 68 <ng-container matColumnDef="Локација"> 69 69 <th mat-header-cell *matHeaderCellDef mat-sort-header> Локација </th> 70 70 <td mat-cell *matCellDef="let pharmacies"> {{pharmacies.location}} </td> 71 71 </ng-container> 72 72 73 73 <ng-container matColumnDef="Адреса"> 74 74 <th mat-header-cell *matHeaderCellDef mat-sort-header> Адреса </th> 75 75 <td mat-cell *matCellDef="let pharmacies"> {{pharmacies.address}} </td> 76 76 </ng-container> 77 77 78 78 <ng-container matColumnDef="Работи 27/7?"> 79 79 <th mat-header-cell *matHeaderCellDef mat-sort-header> Работи 27/7? </th> 80 80 <td mat-cell *matCellDef="let pharmacies"> {{pharmacies.workAllTime}} </td> 81 81 </ng-container> 82 82 83 83 <tr mat-header-row *matHeaderRowDef="displayedColumnsPharmacies"></tr> 84 84 <tr mat-row *matRowDef="let row; columns: displayedColumnsPharmacies;"></tr> -
Farmatiko/ClientApp/src/app/korona/korona.component.html
ra55ef91 rd8fafb8 12 12 <div class="col"> 13 13 <div class="counter"> 14 <i class="fa fa-code fa-2x" *ngIf="korona">{{korona .totalMK}}</i>14 <i class="fa fa-code fa-2x" *ngIf="korona">{{korona[0].totalMK}}</i> 15 15 <h2 class="timer count-title count-number"></h2> 16 16 <p class="count-text ">Вкупно случаи во земјата</p> … … 19 19 <div class="col"> 20 20 <div class="counter"> 21 <i class="fa fa-coffee fa-2x" *ngIf="korona">{{korona .activeMK}}</i>21 <i class="fa fa-coffee fa-2x" *ngIf="korona">{{korona[0].activeMK}}</i> 22 22 <h2 class="timer count-title count-number"></h2> 23 23 <p class="count-text ">Активни случаи во земјата</p> … … 26 26 <div class="col"> 27 27 <div class="counter"> 28 <i class="fa fa-lightbulb-o fa-2x" *ngIf="korona">{{korona .deathsMK}}</i>28 <i class="fa fa-lightbulb-o fa-2x" *ngIf="korona">{{korona[0].deathsMK}}</i> 29 29 <h2 class="timer count-title count-number"></h2> 30 30 <p class="count-text ">Смртни случаи во земјата</p> … … 33 33 <div class="col"> 34 34 <div class="counter"> 35 <i class="fa fa-bug fa-2x" *ngIf="korona">{{korona .newMK}}</i>35 <i class="fa fa-bug fa-2x" *ngIf="korona">{{korona[0].newMK}}</i> 36 36 <h2 class="timer count-title count-number"></h2> 37 37 <p class="count-text ">Нови случаи во земјата</p> … … 42 42 <div class="col"> 43 43 <div class="counter"> 44 <i class="fa fa-bug fa-2x" *ngIf="korona">{{korona .totalGlobal}}</i>44 <i class="fa fa-bug fa-2x" *ngIf="korona">{{korona[0].totalGlobal}}</i> 45 45 <h2 class="timer count-title count-number"></h2> 46 46 <p class="count-text ">Вкупно случаи глобално</p> … … 49 49 <div class="col"> 50 50 <div class="counter"> 51 <i class="fa fa-bug fa-2x" *ngIf="korona">{{korona .activeGlobal}}</i>51 <i class="fa fa-bug fa-2x" *ngIf="korona">{{korona[0].activeGlobal}}</i> 52 52 <h2 class="timer count-title count-number"></h2> 53 53 <p class="count-text ">Активни случаи глобално</p> … … 56 56 <div class="col"> 57 57 <div class="counter"> 58 <i class="fa fa-bug fa-2x" *ngIf="korona">{{korona .deathsGlobal}}</i>58 <i class="fa fa-bug fa-2x" *ngIf="korona">{{korona[0].deathsGlobal}}</i> 59 59 <h2 class="timer count-title count-number"></h2> 60 60 <p class="count-text ">Смртни случаи глобално</p> -
Farmatiko/ClientApp/src/app/korona/korona.component.ts
ra55ef91 rd8fafb8 10 10 }) 11 11 export class KoronaComponent implements OnInit { 12 public korona: Pandemic ;12 public korona: Pandemic[]; 13 13 14 constructor(http: HttpClient, @Inject('BASE_URL') baseUrl: string) { 15 http.get<Pandemic >(baseUrl + 'Pandemic/Get?').subscribe(result => {14 constructor(http: HttpClient, @Inject('BASE_URL') baseUrl: string) { 15 http.get<Pandemic[]>(baseUrl + 'Pandemic/Get?').subscribe(result => { 16 16 this.korona = result; 17 17 console.log(this.korona); -
Farmatiko/ClientApp/src/app/models/Pandemic.ts
ra55ef91 rd8fafb8 1 1 export class Pandemic { 2 id: number; 3 createdOn: string; 4 deletedOn: string; 2 5 name: string; 3 6 totalMK: number;
Note:
See TracChangeset
for help on using the changeset viewer.