Budget 2019

This commit is contained in:
2019-05-14 15:44:37 +02:00
parent 0996682d8b
commit b5c0090f87
8 changed files with 200 additions and 137 deletions

View File

@@ -95,7 +95,7 @@ class AsdCurl
$login_data = [
'asd_username' => 'A005_TrinklW',
'asd_password' => 'HiegTzs!12',
'asd_password' => 'HiegTzs!183',
//'asd_username' => 'A005_Superuser',
//'asd_password' => 'asdtest01',
];
@@ -172,7 +172,7 @@ class AsdCurl
//debug($html);
$login_data = [
'portal_username' => 'asd.trinkl',
'portal_password' => 'HiegTzs!182',
'portal_password' => 'HiegTzs!192',
];
$post = [

View File

@@ -37,7 +37,7 @@ class AsdUp extends AsdCurl
'mainForm:istAnzeigeMaske' => 'false',
'mainForm:schulnr' => $snr,
'mainForm:action_anzeigen' => 'Direkt zur gewählten Schule',
'mainForm:schuljahr' => '23',
'mainForm:schuljahr' => '24',
'javax.faces.ViewState' => $viewstate
];
@@ -63,6 +63,7 @@ class AsdUp extends AsdCurl
if(!($this->status)) {
die($this->error);
}
// Im linken Menue Budget GY anzeigen
$viewstate = $this->get_string_between($this->html, 'id="javax.faces.ViewState" value="', '" autocomplete');
$conversationId = $this->get_string_between($this->html, 'name="conversationId" value="', '" />');
@@ -135,7 +136,7 @@ class AsdUp extends AsdCurl
if(!($this->status)) {
die($this->error);
}
//echo $this->html;die;
}
public function read_budget($ch,$snr) {
@@ -145,7 +146,7 @@ class AsdUp extends AsdCurl
$htmlParser->loadHTML($this->html); //Loaded the html string we took from simple xml
$htmlParser->preserveWhiteSpace = false;
//echo $this->html;
//echo $this->html;die;
$headers = ['checkbox','herkunft','budget','von','bis','count','comment'];
$table = $htmlParser->getElementById('mainForm:dataTable:zuschlaege');
@@ -371,10 +372,10 @@ class AsdUp extends AsdCurl
'skipvalidation' => 'false',
'mainForm:istAnzeigeMaske' => 'false',
'mainForm:schulnr' => '',
'mainForm:schuljahr' => '23',
'mainForm:schuljahr' => '24',
'mainForm:schulnummer' => $budget['snr'],
'mainForm:tab2:artZuschlag' => 'com.hp.asd.wl.domain.standard.Budgetform:' . $budget['wl_werteliste_nr'],
'mainForm:tab2:datumBis' => '31.07.2019',
'mainForm:tab2:datumBis' => '31.07.2020',
'mainForm:tab2:_edit_budget' => $budget['count'],
'mainForm:tab2:_edit_bemerkung' => $budget['comment'],
'mainForm:tab2:hinzufuegen' => 'Hinzufügen',
@@ -402,10 +403,10 @@ class AsdUp extends AsdCurl
'skipvalidation' => 'false',
'mainForm:istAnzeigeMaske' => 'false',
'mainForm:schulnr' => '',
'mainForm:schuljahr' => '23',
'mainForm:schuljahr' => '24',
'mainForm:schulnummer' => $budget['snr'],
'mainForm:tab2:artZuschlag' => 'com.hp.asd.wl.domain.standard.Budgetform:' . $budget['wl_werteliste_nr'],
'mainForm:tab2:datumBis' => '31.07.2019',
'mainForm:tab2:datumBis' => '31.07.2020',
'mainForm:tab2:_edit_budget' => '',
'mainForm:tab2:_edit_bemerkung' => '',
'mainForm:speichern' => 'Speichern',