gel distribution updated

parent 2cab71dc
......@@ -2278,8 +2278,11 @@ class ReportsCreator extends ControllerBase
->fields('eStudent', array('name','studentsurname','regionaddress', 'regiontk', 'regionarea','telnum'))
->condition('eStudent.id', $epalStudentClass->student_id, '=')
->condition('eStudent.delapp', 0 , '=')
->condition('eStudent.myschool_promoted', 2 , '<=')
->condition('eStudent.myschool_promoted', 1 , '>=');
//Για α' περίοδο: myschool_promoted in (1,2), Για β' περίοδο: myschool_promoted in (1,2,6,7)
//Να παραμετροποιηθεί με βάση την περίοδο, στην επόμενη έκδοση!
//->condition('eStudent.myschool_promoted', 2 , '<=')
//->condition('eStudent.myschool_promoted', 1 , '>=');
->condition(db_or()->condition('myschool_promoted', 1)->condition('myschool_promoted', 2)->condition('myschool_promoted', 6)->condition('myschool_promoted', 7));
$epalStudents = $sCon->execute()->fetchAll(\PDO::FETCH_OBJ);
foreach ($epalStudents as $epalStudent) {
array_push($idColumn, $epalStudentClass->student_id);
......@@ -2335,8 +2338,9 @@ class ReportsCreator extends ControllerBase
->fields('eStudent', array('name','studentsurname','regionaddress', 'regiontk', 'regionarea','telnum'))
->condition('eStudent.delapp', 0 , '=')
->condition('eStudent.id', $epalStudentClass->student_id, '=')
->condition('eStudent.myschool_promoted', 2 , '<=')
->condition('eStudent.myschool_promoted', 1 , '>=');
//->condition('eStudent.myschool_promoted', 2 , '<=')
//->condition('eStudent.myschool_promoted', 1 , '>=');
->condition(db_or()->condition('myschool_promoted', 1)->condition('myschool_promoted', 2)->condition('myschool_promoted', 6)->condition('myschool_promoted', 7));
$epalStudents = $sCon->execute()->fetchAll(\PDO::FETCH_OBJ);
foreach ($epalStudents as $epalStudent) {
array_push($idColumn, $epalStudentClass->student_id);
......@@ -2382,8 +2386,9 @@ class ReportsCreator extends ControllerBase
->fields('eStudent', array('name','studentsurname','regionaddress', 'regiontk', 'regionarea','telnum'))
->condition('eStudent.delapp', 0 , '=')
->condition('eStudent.id', $epalStudentClass->student_id, '=')
->condition('eStudent.myschool_promoted', 2 , '<=')
->condition('eStudent.myschool_promoted', 1 , '>=');
//->condition('eStudent.myschool_promoted', 2 , '<=')
//->condition('eStudent.myschool_promoted', 1 , '>=');
->condition(db_or()->condition('myschool_promoted', 1)->condition('myschool_promoted', 2)->condition('myschool_promoted', 6)->condition('myschool_promoted', 7));
$epalStudents = $sCon->execute()->fetchAll(\PDO::FETCH_OBJ);
foreach ($epalStudents as $epalStudent) {
array_push($idColumn, $epalStudentClass->student_id);
......@@ -2429,8 +2434,9 @@ class ReportsCreator extends ControllerBase
->fields('eStudent', array('name','studentsurname','regionaddress', 'regiontk', 'regionarea','telnum'))
->condition('eStudent.delapp', 0 , '=')
->condition('eStudent.id', $epalStudentClass->student_id, '=')
->condition('eStudent.myschool_promoted', 2 , '<=')
->condition('eStudent.myschool_promoted', 1 , '>=');
//->condition('eStudent.myschool_promoted', 2 , '<=')
//->condition('eStudent.myschool_promoted', 1 , '>=');
->condition(db_or()->condition('myschool_promoted', 1)->condition('myschool_promoted', 2)->condition('myschool_promoted', 6)->condition('myschool_promoted', 7));
$epalStudents = $sCon->execute()->fetchAll(\PDO::FETCH_OBJ);
foreach ($epalStudents as $epalStudent) {
array_push($idColumn, $epalStudentClass->student_id);
......
......@@ -3810,7 +3810,7 @@ public function Initializationbperiod(Request $request)
->fields('gSchool', array('id', 'edu_admin_id', 'registry_no','extra_unitid'))
->condition('gStudent.lastschool_unittypeid', 4 , '=')
->condition('gStudent.nextclass', "6",'=')
->condition('gStudent.lastschool_class', "1",'=')
->condition(db_or()->condition('gStudent.lastschool_class', "1")->condition('gStudent.lastschool_class', "2"))
->condition('gStudent.delapp', 0, '=')
->condition('gSchool.extra_unitid',300,'!=')
->condition('gStudent.second_period', 1, '=');
......@@ -3835,6 +3835,9 @@ public function Initializationbperiod(Request $request)
}
$student = array();
//initialazation B class from idiwtika
$sCon = $this->connection->select('gel_student', 'gStudent');
......@@ -3910,7 +3913,7 @@ public function Initializationbperiod(Request $request)
$sCon->fields('gStudent', array('id', 'lastschool_registrynumber','lastschool_unittypeid','lastschool_class','nextclass','second_period'))
->fields('gSchool', array('id', 'edu_admin_id', 'registry_no','extra_unitid'))
->condition('gStudent.lastschool_unittypeid', 4 , '=')
->condition('gStudent.lastschool_class', "2",'=')
->condition(db_or()->condition('gStudent.lastschool_class', "3")->condition('gStudent.lastschool_class', "2"))
->condition('gStudent.nextclass', "7",'=')
->condition('gStudent.delapp', 0, '=')
->condition('gStudent.second_period', 1, '=');
......
......@@ -74,15 +74,15 @@ import { IAppState } from "../../store/store";
<div class="col-md-6">
<button type="submit" class="btn btn-lg btn-block" *ngIf="(loginInfo$ | async).size !== 0" (click)="goToSecondPeriod()" >
Μετάπτωση Αιτήσεων σε Β' περίδο<span class="glyphicon glyphicon-menu-right"></span>
Μετάπτωση Αιτήσεων σε Β' περίοδο<span class="glyphicon glyphicon-menu-right"></span>
</button>
</div>
<br>
<div class="col-md-6">
<button type="submit" class="btn btn-lg btn-block"
<button type="submit" class="btn btn-lg btn-block"
*ngIf="(loginInfo$ | async).size !== 0" (click)="InitializeBPeriod()" >
Initialization Β Περιόδου <span class="glyphicon glyphicon-menu-right"></span>
Αρχικοποίηση Διαχειριστικού Β' περιόδου <span class="glyphicon glyphicon-menu-right"></span>
</button>
</div>
<br>
......@@ -296,6 +296,3 @@ import { IAppState } from "../../store/store";
}
//}
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