add indexes, add messagedetsta

This commit is contained in:
2016-01-29 17:13:33 +01:00
parent ad59cbb940
commit a00331ce7c
65 changed files with 3195 additions and 92 deletions

View File

@@ -5,12 +5,11 @@ namespace common\components;
use yii\base\Object;
use common\models\TicketInstallmentRequest;
use common\components\giro\GiroDETSTATetel;
use backend\models\TicketInstallmentMarkForSendForm;
use common\models\Ugiro;
use yii\db\Query;
use common\components\giro\GiroDETSTA;
use common\components\giro\GiroDETSTAFej;
use common\components\giro\GiroDETSTALab;
use common\components\DetStaDBSave;
/**
@@ -35,11 +34,23 @@ class DetStatProcessor extends Object{
// $this->readKoteg();
$this->readKotegMegbizasok();
$this->readDetstaUzenet();
$this->saveMessageDetsta();
$this->createMegbizasTetelHozzarendelesek();
$this->processMegbizasok();
$this->markKotegFinished();
}
public function saveMessageDetsta(){
$saver = new DetStaDBSave(
[
'giroDETSTA' => $this->detstatUzenet,
'koteg' => $this->koteg,
'idUser' =>\Yii::$app->user->id
]);
$saver->run();
}
public function markKotegFinished(){
$this->koteg->status = Ugiro::$STATUS_FINISHED;
$this->koteg->save();
@@ -64,11 +75,10 @@ class DetStatProcessor extends Object{
$content = file_get_contents($filename);
$this->detstatUzenet = GiroDETSTA::parse($content);
/*
$this->detstatUzenet = new GiroDETSTA();
$this->idKoteg = 38;
$this->idKoteg = 42;
$fej = new GiroDETSTAFej();
@@ -81,16 +91,15 @@ class DetStatProcessor extends Object{
$this->detstatUzenet->tetelek[] = $tetel;
$tetel = new GiroDETSTATetel();
$tetel->tetelSorszam = 2;
$tetel->visszajelzesInformacio = "00";
$tetel->visszajelzesInformacio = "02";
$this->detstatUzenet->tetelek[] = $tetel;
// $tetel = new GiroDETSTATetel();
// $tetel->tetelSorszam = 2;
// $tetel->visszajelzesInformacio = "00";
// $tetel->visszajelzesInformacio = "02";
// $this->detstatUzenet->tetelek[] = $tetel;
*/
$lab = new GiroDETSTALab();
$this->detstatUzenet->lab = $lab;
*/
}