Commit dbe11cbe authored by Kostas G's avatar Kostas G

get dde for SDE students

parent 9ee7aab9
......@@ -57,7 +57,7 @@ class CustomViews extends ControllerBase {
return $res;
}
public function getSchoolList(Request $request, $schsearch, $category) {
public function getSchoolList(Request $request, $schsearch) {
try {
$list = array();
$sCon = $this->connection->select('gel_school', 'eSchool')
......
......@@ -275,7 +275,7 @@
<!-- <input class="form-control" type="text" formControlName="assigned_dde"> -->
<select class="form-control" formControlName="assigned_dde">
<option value="">Παρακαλώ επιλέξτε...</option>
<option *ngFor="let dide$ of DDE$ | async;" [value] = "dide$.name" > {{dide$.name}}</option>
<option *ngFor="let dide$ of DDE$ | async;" [ngValue] = "dide$" > {{dide$.name}}</option>
</select>
</div>
<div class="alert alert-danger" *ngIf="studentDataGroup.get('assigned_dde').touched && studentDataGroup.get('assigned_dde').hasError('required')">
......
......@@ -199,22 +199,6 @@ import {
(<any>$("#applicationFormNotice")).appendTo("body");
window.scrollTo(0, 0);
this.DDESub = this.hds.getDDE().subscribe(dde => {
// let dieyth=dde;
// let retArr = <any>Array();
// let i=0;
// if (dde.size > 0) {
// dde.reduce(({}, dide) => {
// retArr[i] = {};
// retArr[i].registry_no = dde.get("id");
// retArr[i].name = dde.get("name");
// i++
// }, {});
// }
this.DDE$.next(dde);
});
//this._cfb.getClassesList(false);
this.gelclassesSub = this._ngRedux.select("gelclasses")
.map(gelclasses => <IGelClassRecords>gelclasses)
......@@ -647,7 +631,16 @@ import {
this.studentDataGroup.controls["special_type"].updateValueAndValidity();
if (this.studentDataGroup.controls["lastschool_schoolname"].value.unit_type_id == 40){
this.DDESub = this.hds.getDDE().subscribe(dde => {
let dieyth=dde;
let retArr = <any>Array();
for (let i = 0; i < dde.length; i++) {
retArr[i] = {};
retArr[i].id = dde[i].id;
retArr[i].name = dde[i].name;
}
this.DDE$.next(retArr);
});
this.studentDataGroup.controls["assigned_dde"].setValidators(this.checkChoice);
}
else{
......
......@@ -159,7 +159,7 @@ import { StudentGelCourseChosen } from "../students/student";
</tr>
</table>
<div class="form-group" *ngIf="gelstudentDataField$.get('lastschool_schoolname').unit_type_id ==40">
<label for="assigned_dde">ΔΔΕ Σχολείου Τοποθέτησης</label> <p class="form-control" style="border:1px solid #eceeef;"> {{gelstudentDataField$.get("assigned_dde")}} </p>
<label for="assigned_dde">ΔΔΕ Σχολείου Τοποθέτησης</label> <p class="form-control" style="border:1px solid #eceeef;"> {{gelstudentDataField$.get("assigned_dde").name}} </p>
</div>
<div><label for="relationtostudent">Η δήλωση προτίμησης γίνεται από</label> <p class="form-control" style="border:1px solid #eceeef;"> {{gelstudentDataField$.get("relationtostudent")}} </p></div>
<div><label for="telnum">Τηλέφωνο επικοινωνίας</label> <p class="form-control" style="border:1px solid #eceeef;"> {{gelstudentDataField$.get("telnum")}} </p></div>
......
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