Commit 17b44cb3 authored by Open Source Developer's avatar Open Source Developer
Browse files

trans

parent 1ea38e90
...@@ -31,8 +31,8 @@ import { ...@@ -31,8 +31,8 @@ import {
</div> </div>
<div class="form-group"> <div class="form-group">
<div *ngIf="(selectionBClass | async)" > <div *ngIf="(selectionBClass | async)" >
<select #tmop class="form-control" (change)="checkbclass(tmop,txoption,i)" formControlName="tomeas"> <select #tmop class="form-control" (change)="checkbclass(tmop,txoption)" formControlName="tomeas">
<option *ngFor="let SectorSelection$ of StudentSelected$ | async; let i=index"> {{SectorSelection$.sector_id}} </option> <option *ngFor="let SectorSelection$ of StudentSelected$ | async; let i=index" [value] = "SectorSelection$.id"> {{SectorSelection$.sector_id}} </option>
</select> </select>
</div> </div>
</div> </div>
...@@ -50,7 +50,7 @@ import { ...@@ -50,7 +50,7 @@ import {
<button type="button" class="btn-primary btn-sm pull-right" (click)="findstudent(tmop,txoption)"> <button type="button" class="btn-primary btn-sm pull-right" (click)="findstudent(tmop,txoption)">
Αναζήτηση Αναζήτηση
</button> </button>
<div *ngIf="StudentInfo$ != {} || (retrievedStudent | async)"> <div *ngIf="(retrievedStudent | async)">
<div *ngFor="let StudentDetails$ of StudentInfo$ | async"> <div *ngFor="let StudentDetails$ of StudentInfo$ | async">
Όνομα: {{StudentDetails$.name}} <br> Όνομα: {{StudentDetails$.name}} <br>
Επώνυμο: {{StudentDetails$.studentsurname}}<br> Επώνυμο: {{StudentDetails$.studentsurname}}<br>
...@@ -143,7 +143,8 @@ import { ...@@ -143,7 +143,8 @@ import {
} }
else if (txop.value === "3") else if (txop.value === "3")
{ {
console.log("trith");
this.selectionBClass.next(true); this.selectionBClass.next(true);
this.selectionCClass.next(true); this.selectionCClass.next(true);
this.StudentSelectedSub = this._hds.getSectorPerSchool(this.SchoolId).subscribe(this.StudentSelected$); this.StudentSelectedSub = this._hds.getSectorPerSchool(this.SchoolId).subscribe(this.StudentSelected$);
...@@ -151,12 +152,12 @@ import { ...@@ -151,12 +152,12 @@ import {
} }
checkbclass(tmop,txop,id) checkbclass(tmop,txop)
{ {
console.log(id, "aaaaaaa!!!"); console.log(tmop.value, "aaaaaaa!!!");
var sectorint = +id ; var sectorint = +tmop.value;
if (txop.value === "3") if (txop.value === "3")
{ {
this.StudentSelectedSpecialSub = this._hds.getSpecialityPerSchool(this.SchoolId, sectorint).subscribe(this.StudentSelectedSpecial$); this.StudentSelectedSpecialSub = this._hds.getSpecialityPerSchool(this.SchoolId, sectorint).subscribe(this.StudentSelectedSpecial$);
...@@ -166,11 +167,10 @@ import { ...@@ -166,11 +167,10 @@ import {
findstudent(tmop,txop) findstudent(tmop,txop)
{ {
const [id, sector] = tmop.value.split(': '); var sectorint = document.getElementById(tmop);
var sectorint = +sector;
console.log(sectorint,"aaaaaa"); console.log(sectorint,"aaaaaa");
this.StudentInfoSub = this._hds.getStudentPerSchool(this.SchoolId, sectorint).subscribe(this.StudentInfo$); // this.StudentInfoSub = this._hds.getStudentPerSchool(this.SchoolId, sectorint).subscribe(this.StudentInfo$);
this.retrievedStudent.next(true); // this.retrievedStudent.next(true);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment