瀏覽代碼

Tasks - Anpassungen Update-c11-gc-002

S und K 1 年之前
父節點
當前提交
65c56551c0

+ 19 - 0
Tasks/FIBU_aktuelles_Jahr_aktualisieren.bat

@@ -0,0 +1,19 @@
+@call "%~dp0"scripts\config.bat 0 > nul
+
+:skr51
+call impromptu2.bat belege\KORE_Buchungen_aktuelles_Jahr.imr csv
+rem call impromptu2.bat belege\KORE_Buchungen_Vorjahr.imr csv
+rem call impromptu2.bat belege\KORE_Buchungen_aktuelles_Jahr_Umsatz_Dashboard.imr csv
+rem call impromptu.bat belege\KORE_Buchungen_Vorvorjahr.imr csv
+
+call impromptu.bat serv_teile\Service_Rechnungsausgangsbuch.imr csv
+   
+ move /Y %PORTAL%\System\WERWISO\IQD\Belege\*.csv %PORTAL%\System\WERWISO\Export\
+ move /Y %PORTAL%\System\WERWISO\IQD\serv_teile\*.csv %PORTAL%\System\WERWISO\Export\
+
+  call transformer11.bat F_Belege_SKR.pyj
+  call transformer11.bat S_Aftersales.pyj
+ 
+ 
+
+ 

+ 9 - 5
Tasks/GAPS.ini

@@ -5,20 +5,24 @@ C11_SRV="C:\Program Files\ibm\cognos\analytics"
 SQLSRV="C:\Program Files (x86)\Microsoft SQL Server\140\DTS\binn"
 PHP="C:\GlobalCube\Tasks\php"
 EXCEL=""
+DOMAIN="autohaus-suk.de"
 
 XML="C:\GlobalCube\Tasks\config"
 PORTAL="C:\GlobalCube"
 STARTER="C:\GlobalCube\GCStarter"
 
 SYSTEM="WERWISO"
-KUNDE="Mueller Freising C11"
+KUNDE="S und K C11"
 STATUSBERICHT=""
 
-CAT_U=""
-CAT_P=""
+CAT_U="Phor"
+CAT_P="Gbl1980"
 
-CAT_U2="TybonyPhor"
-CAT_P2="Tp04022022!"
+CAT_U2=""
+CAT_P2=""
+
+CAT_U3="tncf"
+CAT_P3="Tpof12zn"
 
 GAPS_XML="GAPS.xml"
 GAPS_TITEL="Cognos 11"

+ 11 - 0
Tasks/GlobalCube_manuelle_Aktua.bat

@@ -0,0 +1,11 @@
+@call "%~dp0"scripts\config.bat "%~dpnx0"
+
+if "%Mo-So%"=="J" (
+  echo Taegliche Aktualisierung [Montag - Samstag]
+  rem call konten_aktualisieren.bat
+
+  rem call ..\CARLO_import.bat
+  call ..\WERWISO_imr_csv.bat   
+  call ..\WERWISO_Cubes.bat
+  
+)

+ 9 - 3
Tasks/WERWISO_Cubes.bat

@@ -1,15 +1,21 @@
 @call "%~dp0"scripts\config.bat 0 > nul
 
 
-  rem call transformer11.bat F_Belege.pyj
-  rem call transformer11.bat F_Forderungen.pyj
+  call transformer11.bat F_Belege_SKR.pyj
+  call transformer11.bat F_Forderungen.pyj
   call transformer11.bat S_Aftersales.pyj
   rem call transformer11.bat S_Teile.pyj
   call transformer11.bat S_Offene_Auftraege.pyj
   call transformer11.bat V_Bestand.pyj
   call transformer11.bat V_Verkauf.pyj
   call transformer11.bat Z_Monteure.pyj
-  rem call transformer11.bat Dashboard_gesamt.pyj
+  call transformer11.bat Z_Monteure_vor_Abschluss_fakt.pyj
+  call transformer11.bat Dashboard_gesamt.pyj
   rem call transformer11.bat F_Belege_GJ.pyj
   rem call transformer11.bat Dashboard_gesamt_GJ.pyj
 
+  call transformer11.bat S_Aftersales_Sievers.pyj
+  call transformer11.bat S_Offene_Auftraege_Sievers.pyj
+  call transformer11.bat V_Bestand_Sievers.pyj
+  call transformer11.bat V_Verkauf_Sievers.pyj
+  call transformer11.bat Z_Monteure_Sievers.pyj 

+ 37 - 0
Tasks/WERWISO_Versand.bat

@@ -0,0 +1,37 @@
+@call "%~dp0"scripts\config.bat 0 > nul
+
+
+echo Taeglich
+call c11_reportoutput.bat taeglich
+call versand.bat taeglich.csv
+
+
+if "%Mo-Fr%"=="J" (
+  echo Taeglich Montag - Freitag
+  call c11_reportoutput.bat taeglich_Mo-Fr
+  call versand.bat taeglich_Mo-Fr.csv
+)
+
+if "%Wochentag%"=="Di" (
+  echo Jeden Dienstag
+  call c11_reportoutput.bat Dienstag
+  call versand.bat Dienstag.csv
+)
+
+if "%Wochentag%"=="Do" if "%UngeradeWoche%"=="J" (
+  echo Jeden 2. Donnerstag (ungerade KW)
+  call c11_reportoutput.bat 14taeglich_Donnerstag
+  call versand.bat 14taeglich_Donnerstag.csv
+)
+
+if "%Tag%"=="01" (
+  echo Jeden 1. des Monats
+  call c11_reportoutput.bat monatlich_01
+  call versand.bat monatlich_01.csv
+)
+
+if "%Tag%"=="13" (
+  echo Jeden 13. des Monats
+  call c11_reportoutput.bat monatlich_13
+  call versand.bat monatlich_13.csv
+)

+ 66 - 26
Tasks/WERWISO_imr_csv.bat

@@ -1,38 +1,78 @@
 @call "%~dp0"scripts\config.bat 0 > nul
 
 :skr51
-call impromptu.bat belege\current_date_Prognose_operativ.imr csv
+rem call impromptu.bat belege\kontenrahmen_gc_struct_skr.imr csv 
+rem call impromptu.bat belege\kontenrahmen_stk_gc_struct_skr.imr csv 
+rem call impromptu.bat belege\skr_herkunft_kst.imr csv
+rem call impromptu.bat belege\skr_marke.imr csv 
+rem call impromptu.bat belege\skr_absatzkanal.imr csv 
+rem call impromptu.bat belege\skr_kostentraeger.imr csv 
 rem call impromptu.bat belege\Kontenrahmen_GC_Struct_SKR.imr csv
-rem call impromptu.bat belege\KORE_Buchungen_aktuelles_Jahr.imr csv
-rem call impromptu.bat belege\KORE_Buchungen_Vorjahr.imr csv
-rem call impromptu.bat belege\KORE_Buchungen_Vorvorjahr.imr csv
+call impromptu2.bat belege\KORE_Buchungen_aktuelles_Jahr.imr csv
+call impromptu2.bat belege\KORE_Buchungen_Vorjahr.imr csv
+call impromptu2.bat belege\KORE_Buchungen_aktuelles_Jahr_Umsatz_Dashboard.imr csv
+if "%MONAT%"=="01" (
+  rem duerfte sich zum 2. Jahreswechsel nicht mehr aendern
+  call impromptu.bat belege\KORE_Buchungen_Vorvorjahr.imr csv
+)
 
-:serv_teile
-call impromptu2.bat serv_teile\Leistung_fuer_verk_Std_in_Festpreis_Pakete.imr ims
-call impromptu2.bat serv_teile\Service_intern_fuer_Bestand.imr ims
-call impromptu2.bat serv_teile\Service_offene_Auftraege.imr csv 
-rem call impromptu.bat op\op.imr csv 
-
-:nw
-call impromptu2.bat nw\FZG_Fibu_Rechnungsausgangsbuch.imr csv 
-call impromptu2.bat nw\NW_GW_BE.imr csv 
+:zeit 
+ call impromptu.bat zeit\Stempelzeiten_Monteur.imr csv
+ call impromptu.bat zeit\Stempelzeiten_Monteur_Aftersales.imr csv
+ call impromptu.bat zeit\Verr_ben_Zeit_Monteur.imr csv
+ call impromptu.bat zeit\Ben_Zeit_Monteur.imr csv 
+ call impromptu.bat zeit\Monteur_fakt_Abschluss.imr csv 
+ 
+:verkauf
+ call impromptu.bat nw\current_date_Prognose_operativ.imr csv 
+ call impromptu.bat nw\NW_GW_BE.imr csv 
+ call impromptu.bat nw\NW_GW_BE_Int_Aufwendungen.imr csv 
+ call impromptu.bat nw\FZG_Fibu_Rechnungsausgangsbuch.imr csv
+ call impromptu2.bat nw\DATEV_VK_Hilfe_Boni.imr ims
+ call impromptu.bat nw\FZG_Fibu_Rechnungsausgangsbuch_mit_VK_Hilfe_DATEV.imr csv
  
 :op 
-rem call impromptu.bat op\Personal.imr ims 
-rem call impromptu.bat op\op.imr csv 
+rem copy /Y C:\SNCControl\A_Daten\DATEV\Jahr\Opos.txt C:\SNCControl\A_Daten\DATEV\Jahr\Opos_RGNr_Zeichen.txt
+ call impromptu.bat op\Personal.imr ims 
+rem call impromptu.bat op\op.imr csv
+rem call impromptu3.bat op\Rechnungen_FZG_Verkauf_fuer_OP.imr ims 
+rem call impromptu3.bat op\op_Datev.imr csv
+ call impromptu.bat op\Rechnungen_FZG_Verkauf_fuer_OP_WERWISO_ims.imr ims
+ call impromptu.bat op\Service_Rechnungsausgangsbuch_SB_OP_ims.imr ims
+ call impromptu.bat op\Kunden_OP.imr ims
+ call impromptu.bat op\OP_DATEV_WERWISO_FINAL.imr csv
 
-:zeit 
-call impromptu2.bat zeit\Stempelzeiten_Monteur.imr csv
-rem call impromptu.bat zeit\Stempelzeiten_Monteur_Aftersales.imr csv
-call impromptu2.bat zeit\Verr_ben_Zeit_Monteur.imr csv
-rem call impromptu.bat zeit\Ben_Zeit_Monteur.imr csv 
-  
-move /Y %PORTAL%\System\WERWISO\IQD\Belege\*.csv %PORTAL%\System\WERWISO\Export\
-move /Y %PORTAL%\System\WERWISO\IQD\Zeit\*.csv %PORTAL%\System\WERWISO\Export\
-move /Y %PORTAL%\System\WERWISO\IQD\Serv_Teile\*.csv %PORTAL%\System\WERWISO\Export\
-move /Y %PORTAL%\System\WERWISO\IQD\nw\*.csv %PORTAL%\System\WERWISO\Export\
-rem move /Y %PORTAL%\System\WERWISO\IQD\op\*.csv %PORTAL%\System\WERWISO\Export\
+:service
+ call impromptu.bat serv_teile\Service_offene_Vorgaenge_ims.imr ims
+ call impromptu.bat zeit\Verr_ben_Zeit_Monteur_S_Aftersales.imr ims
+ call impromptu.bat zeit\Inrebuch_Rechnungsdatum_ben_Zeit.imr ims 
+ call impromptu.bat zeit\Reaubuch_Rechnungsdatum_ben_Zeit.imr ims 
+ call impromptu.bat zeit\Ben_Zeit_Monteur_S_offene_Auftraege.imr ims 
+ call impromptu.bat serv_teile\Service_intern_fuer_Bestand.imr ims
+ call impromptu.bat serv_teile\Filialen_GC.imr ims 
+ 
+ call impromptu.bat serv_teile\Service_Rechnungsausgangsbuch.imr csv 
+ call impromptu.bat serv_teile\Service_intern_Rechnungsausgangsbuch.imr csv 
+ call impromptu.bat serv_teile\Service_offene_Auftraege.imr csv 
+ call impromptu.bat serv_teile\Service_intern_Rechnungsausgangsbuch_Monteur_1.imr csv
+ call impromptu.bat serv_teile\Service_intern_Rechnungsausgangsbuch_Monteur_2.imr csv
+ call impromptu.bat serv_teile\Service_intern_Rechnungsausgangsbuch_Monteur_3.imr csv
+ call impromptu.bat serv_teile\Service_intern_Rechnungsausgangsbuch_Monteur_4.imr csv
+ call impromptu.bat serv_teile\Service_intern_Rechnungsausgangsbuch_Monteur_5.imr csv
+ call impromptu.bat serv_teile\Service_Rechnungsausgangsbuch_Monteur_1.imr csv
+ call impromptu.bat serv_teile\Service_Rechnungsausgangsbuch_Monteur_2.imr csv
+ call impromptu.bat serv_teile\Service_Rechnungsausgangsbuch_Monteur_3.imr csv
+ call impromptu.bat serv_teile\Service_Rechnungsausgangsbuch_Monteur_4.imr csv
+ call impromptu.bat serv_teile\Service_Rechnungsausgangsbuch_Monteur_5.imr csv
+ call impromptu.bat serv_teile\Lagerbestand.imr csv
 
+
+  
+ move /Y %PORTAL%\System\WERWISO\IQD\Belege\*.csv %PORTAL%\System\WERWISO\Export\
+ move /Y %PORTAL%\System\WERWISO\IQD\nw\*.csv %PORTAL%\System\WERWISO\Export\
+ move /Y %PORTAL%\System\WERWISO\IQD\serv_teile\*.csv %PORTAL%\System\WERWISO\Export\
+ move /Y %PORTAL%\System\WERWISO\IQD\op\*.csv %PORTAL%\System\WERWISO\Export\
+ move /Y %PORTAL%\System\WERWISO\IQD\zeit\*.csv %PORTAL%\System\WERWISO\Export\
  
 
  

+ 17 - 0
Tasks/manuell_FIBU_aktuelles_Jahr_aktualisieren.bat

@@ -0,0 +1,17 @@
+@call "%~dp0"scripts\config.bat 0 > nul
+
+:skr51
+call impromptu2.bat belege\KORE_Buchungen_aktuelles_Jahr.imr csv
+rem call impromptu2.bat belege\KORE_Buchungen_Vorjahr.imr csv
+rem call impromptu2.bat belege\KORE_Buchungen_aktuelles_Jahr_Umsatz_Dashboard.imr csv
+rem call impromptu.bat belege\KORE_Buchungen_Vorvorjahr.imr csv
+
+  
+ move /Y %PORTAL%\System\WERWISO\IQD\Belege\*.csv %PORTAL%\System\WERWISO\Export\
+
+  call transformer11.bat F_Belege_SKR.pyj
+
+ 
+ 
+
+ 

+ 22 - 0
Tasks/manuell_OP_aktualisieren.bat

@@ -0,0 +1,22 @@
+@call "%~dp0"scripts\config.bat 0 > nul
+
+
+:op 
+rem copy /Y C:\SNCControl\A_Daten\DATEV\Jahr\Opos.txt C:\SNCControl\A_Daten\DATEV\Jahr\Opos_RGNr_Zeichen.txt
+ call impromptu.bat op\Personal.imr ims 
+rem call impromptu.bat op\op.imr csv
+rem call impromptu3.bat op\Rechnungen_FZG_Verkauf_fuer_OP.imr ims 
+rem call impromptu3.bat op\op_Datev.imr csv
+ call impromptu.bat op\Rechnungen_FZG_Verkauf_fuer_OP_WERWISO_ims.imr ims
+ call impromptu.bat op\Service_Rechnungsausgangsbuch_SB_OP_ims.imr ims
+ call impromptu.bat op\Kunden_OP.imr ims
+ call impromptu.bat op\OP_DATEV_WERWISO_FINAL.imr csv
+   
+ move /Y %PORTAL%\System\WERWISO\IQD\OP\*.csv %PORTAL%\System\WERWISO\Export\
+rem move /Y %PORTAL%\System\WERWISO\IQD\serv_teile\*.csv %PORTAL%\System\WERWISO\Export\
+
+  call transformer11.bat F_Forderungen.pyj
+
+ 
+
+ 

+ 1 - 1
Tasks/scripts/Tools/controllers/ImpromptuController.php

@@ -153,7 +153,7 @@ class ImpromptuController
 			$row = fgets($fh);
 			if (preg_match("/catalogs.(\w*)\.cat/i", $row, $matches)) {
 				fclose($fh);
-				return strtolower($matches[1]) . ".cat";
+				return str_replace("\\", "", strtolower($matches[1])) . ".cat";
 			}
 		}
 		fclose($fh);

+ 26 - 29
Tasks/scripts/Tools/controllers/MailController.php

@@ -17,11 +17,17 @@ class MailController
 
 	/** @var string */
 	private $mailError;
+	/** @var string */
+	private $replyTo;
 
     function __construct($config = array())
     {
 		$this->config = $config;
 		$this->smtpConfDefault = new MailConfig();
+		if (isset($config['DOMAIN']) && $config['DOMAIN'] != "") {
+			$this->smtpConfDefault->MailFrom = "versand+" . $config['DOMAIN'] . "@global-cube.com";
+		}
+		$this->replyTo = $this->smtpConfDefault->MailFrom;
         $this->smtpConfXml = (isset($config['SMTP_HOST']) && $config['SMTP_HOST'] != "")
         		? $this->getSmtpConfFromIni($config)
         		: $this->smtpConfDefault;
@@ -185,12 +191,21 @@ class MailController
 
 		foreach ($file as $row) {
 			$col = explode(";", $row);
-			if (count($col) < 2 || $col[1] == "\r\n") continue;
-
-			$attachment = realpath($this->config['PORTAL'] . "\\" . $col[0]);
-			$body = basename($attachment);
-
-			$this->sendMail($col[1], $subject, $body, "Global Cube", array($attachment));
+			if (count($col) < 2 || in_array($col[1], array("", "\n", "\r\n"))) continue;
+			
+			$attachment = realpath($this->config['PORTAL'] . "\\ReportOutput\\" . $col[0]);
+			$mailTo = str_replace("\r\n", "", $col[1]);
+			$subject = basename($attachment);
+			$body = $subject;
+
+			echo str_replace(",", "\n", $mailTo) . "\n";			
+			if (!file_exists($attachment) || abs(filemtime($attachment) - strtotime("now")) > 24 * 60 * 60) {
+				$info_text = (file_exists($attachment)) ? "nicht aktuell" : "nicht vorhanden";
+				echo " -> " . $col[0] . " " . $info_text . "\n";
+				continue;
+			}
+			
+			$this->sendMail($mailTo, $subject, $body, "Global Cube", array($attachment));
 		}
 	}
 
@@ -206,7 +221,11 @@ class MailController
 	{
 		$mail = new PHPMailer();
 		$mail->ClearAllRecipients();
-		$mail->AddAddress($mailTo, $mailTo);
+		$mail->addReplyTo($this->replyTo, "Global Cube");
+		
+		foreach (explode(",", $mailTo) as $to) {
+			$mail->AddAddress($to, $to);
+		}
 		$mail->Subject = $subject;
 		$mail->MsgHTML($body);
 
@@ -228,28 +247,6 @@ class MailController
 		if ($res) {
 			return true;
 		}
-
-		if (false) {
-			sleep(10);
-
-			$this->setSmtpConf($mail, $this->smtpConfDefault, $mailFrom);
-			$res = $mail->Send();
-			$mail->SmtpClose();
-
-			if ($res) {
-				return true;
-			}
-			sleep(10);
-
-			$mail->Port = 25;
-			$res = $mail->Send();
-			$mail->SmtpClose();
-
-			if ($res) {
-				return true;
-			}
-		}
-		$this->mailError = "  Fehler im Mailversand: " . $mail->ErrorInfo;
 		return false;
 	}
 }

+ 1 - 1
Tasks/scripts/Tools/controllers/UpdateController.php

@@ -21,7 +21,7 @@ class UpdateController
 		$updateCtrl->symlink();		
 	}
 
-	private $url = "http://dev.global-cube.de/";
+	private $url = "http://dev.global-cube.com/";
 	private $path;
 
 	public function __construct($beta = false) 

+ 3 - 20
Tasks/scripts/Tools/mail.php

@@ -2,7 +2,7 @@
 require_once(dirname(__FILE__).'/vendor/PHPMailer/class.phpmailer.php');
 require_once(dirname(__FILE__).'/vendor/PHPMailer/class.smtp.php');
 
-$smtpConfDefault = array('host' => "smtp.1und1.de", 'secure' => true, 'auth' => true, 'port' => 465, 'from' => "smtp@global-cube.de", 'username' => "smtp@global-cube.de", 'password' => "gcbssmtp");
+$smtpConfDefault = array('host' => "mail.global-cube.com", 'secure' => true, 'auth' => true, 'port' => 465, 'from' => "versand@global-cube.com", 'username' => "versand", 'password' => "y6!avXX3tQvr");
 
 $config = parse_ini_file(dirname(__FILE__) . "/../../GAPS.ini");
 $smtpConfXml = getSmtpConfFromIni($config);
@@ -106,23 +106,6 @@ function send ($mail, $mailFrom) {
 		return true;
 	}
 	$mail->SmtpClose();
-	sleep(10);
-	$mail->Port = 25;
-	$mail->SMTPSecure = false;
-	if ($mail->Send()) {
-		$mail->SmtpClose();
-		return true;
-	}
-	$mail->SmtpClose();
-	sleep(10);
-	if ($smtpConfXml['host']!="") {
-		setSmtpConf($mail, $smtpConfXml, $mailFrom);
-		if ($mail->Send()) {
-			$mail->SmtpClose();
-			return true;
-		}
-		$mail->SmtpClose();
-	}
 	echo "  Fehler im Mailversand: " . $mail->ErrorInfo . "\r\n";
 	return false;
 }
@@ -131,7 +114,7 @@ function sendStatusMail($mailFrom, $startTime, $endTime, $errorCount, $batchFile
     global $config;
 
 	$mail = new PHPMailer();
-	$mail->AddAddress('status@global-cube.de', 'Global Cube');
+	$mail->AddAddress('status@global-cube.com', 'Global Cube');
 	$today = date("Y-m-d");
 	
 	$content = array('subject' => "{$mailFrom};{$startTime};{$endTime};{$today};{$errorCount};{$batchFile}");
@@ -161,7 +144,7 @@ function sendStatusMail($mailFrom, $startTime, $endTime, $errorCount, $batchFile
 			$opt['http']['request_fulluri'] = true;
 		}
 		$context  = stream_context_create($opts);
-		$result = file_get_contents('http://dev.global-cube.de/statusmail/', false, $context, -1, 40000);
+		$result = file_get_contents('http://dev.global-cube.com/statusmail/', false, $context, -1, 40000);
 		echo "  " . $result;
 	}
 	return true;

+ 18 - 20
Tasks/scripts/Tools/models/Logfile.php

@@ -31,8 +31,8 @@ class Logfile
 				$this->Summary = $errors->summary;
 			}
 		} else if (preg_match("/\.\D+\.log$/", $this->Filename)) {
-			$this->Errors = array(implode("\r\n", $this->Content()));
 			$this->Type = "Workflow";
+			$this->Errors = array(implode("\r\n", $this->Content()));
 			$this->ErrorLevel = 3;
 		} else {
 			$this->transformerErrors();
@@ -48,8 +48,9 @@ class Logfile
 
 	function Content()
 	{
-		$content = file($this->Filename);
-		return array_map(array($this, 'formatMessage'), $content);
+		$content = file_get_contents($this->Filename);
+		$content = mb_convert_encoding($content, 'UTF-8', mb_detect_encoding($content, "UTF-8, ISO-8859-1, Windows-1252, CP850", true));
+		return explode("\r\n", $content);
 	}
 
 	function Link() {
@@ -118,24 +119,21 @@ class Logfile
 		return $diff;
 	}
 	
-	private function formatMessage($m)
+	private function formatMessage($message)
 	{
-		$m = utf8_encode($m);
-		$m = str_replace("'", "`", $m);
-		$m = str_replace("\"", "`", $m);
-		$m = str_replace("ä", "ae", $m);
-		$m = str_replace("ö", "oe", $m);
-		$m = str_replace("ü", "ue", $m);
-		$m = str_replace("ß", "ss", $m);
-		$m = str_replace("Ä", "Ae", $m);
-		$m = str_replace("Ö", "Oe", $m);
-		$m = str_replace("Ü", "Ue", $m);
-		$m = str_replace("[->OK]", "", $m);
-		$m = str_replace("\r", "", $m);
-		$m = str_replace("\n", "", $m);
-		$m = str_replace("<", "", $m);
-		$m = str_replace(">", "", $m);
-		return $m;
+		$message = str_replace("'", "`", $message);
+		$message = str_replace("\"", "`", $message);
+		$message = str_replace("ä", "ae", $message);
+		$message = str_replace("ö", "oe", $message);
+		$message = str_replace("ü", "ue", $message);
+		$message = str_replace("ß", "ss", $message);
+		$message = str_replace("Ä", "Ae", $message);
+		$message = str_replace("Ö", "Oe", $message);
+		$message = str_replace("Ü", "Ue", $message);
+		$message = str_replace("[->OK]", "", $message);
+		$message = str_replace("\r", "", $message);
+		$message = str_replace("\n", "", $message);
+		return $message;
 	}
 }
 

+ 4 - 4
Tasks/scripts/Tools/models/MailConfig.php

@@ -2,7 +2,7 @@
 class MailConfig
 {
 	/** @var string */
-	public $Host = "smtp.1und1.de";
+	public $Host = "mail.global-cube.com";
 	/** @var bool  */
 	public $Auth = true;
 	/** @var bool  */
@@ -10,9 +10,9 @@ class MailConfig
 	/** @var int  */
 	public $Port = 465;
 	/** @var string  */
-	public $MailFrom = "smtp@global-cube.de";
+	public $MailFrom = "versand@global-cube.com";
 	/** @var string  */
-	public $Username = "smtp@global-cube.de";
+	public $Username = "versand";
 	/** @var string  */
-	public $Password = "gcbssmtp";
+	public $Password = "y6!avXX3tQvr";
 }

+ 3 - 0
Tasks/scripts/c11_reportoutput.bat

@@ -0,0 +1,3 @@
+@call "%~dp0config.bat" 0 > nul
+
+gctools.exe c11 reportoutput --folder "%~1"

+ 1 - 1
Tasks/scripts/config.bat

@@ -79,7 +79,7 @@ call teste_verzeichnis.bat %EXCEL%
 md %TASKS%\logs 1> nul 2> nul
 call datum.bat
 call config_backup.bat
-robocopy /MIR /NJH /NJS /NDL %C11_SRV%\deployment %SYSTEM_DIR%\Sicherung
+copy /Y %C11_SRV%\deployment\GC_BACKUP_CONTENT_STORE_DAILY.zip %PORTAL%\Content\Deployment\ 2> nul || echo !! GC_BACKUP_CONTENT_STORE_DAILY nicht eingerichtet !!
 echo.
 service_status.exe
 echo.

二進制
Tasks/scripts/gctools.exe


+ 6 - 0
Tasks/scripts/impromptu3.bat

@@ -0,0 +1,6 @@
+@call "%~dp0config.bat" 0 > nul
+if [%1]==[] (
+  echo Aufruf: call impromptu.bat <Abfrage.imr> [csv|ims] [Catalog.cat]
+  goto :eof
+)
+%PHP%\php Tools\run.php impromptu %PORTAL%\System\WERWISO\IQD\%1 %2 %CAT_U3% %CAT_P3% %3

+ 50 - 0
Tasks/scripts/templates/create_report.xml

@@ -0,0 +1,50 @@
+<SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:bus='http://developer.cognos.com/schemas/bibus/3/' xmlns:rns1='http://developer.cognos.com/schemas/reportService/1'>
+    <SOAP-ENV:Header>
+        <bus:biBusHeader xsi:type="bus:biBusHeader">
+            <bus:CAM xsi:type="bus:CAM">
+                <authenticityToken xsi:type="xsd:base64Binary">{{cam}}</authenticityToken>
+            </bus:CAM>
+            <bus:CAF xsi:type="bus:CAF">
+                <contextID xsi:type="xsd:string">{{caf}}</contextID>
+            </bus:CAF>
+            <bus:userPreferenceVars SOAP-ENC:arrayType="bus:userPreferenceVar[]" xsi:type="SOAP-ENC:Array">
+                <item>
+                    <bus:name xsi:type="xsd:string">productLocale</bus:name>
+                    <bus:value xsi:type="xsd:string">de</bus:value>
+                </item>
+                <item>
+                    <bus:name xsi:type="xsd:string">contentLocale</bus:name>
+                    <bus:value xsi:type="xsd:string">de-de</bus:value>
+                </item>
+            </bus:userPreferenceVars>
+            <bus:dispatcherTransportVars xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:dispatcherTransportVar[]">
+                <item xsi:type="bus:dispatcherTransportVar">
+                    <name xsi:type="xsd:string">rs</name>
+                    <value xsi:type="xsd:string">true</value>
+                </item>
+            </bus:dispatcherTransportVars>
+        </bus:biBusHeader>
+    </SOAP-ENV:Header>
+    <SOAP-ENV:Body>
+        <rns1:add>
+            <parentPath>{{search_path}}</parentPath>
+            <object xsi:type="bus:report">
+                <defaultName>
+                    <value xsi:type="xsd:string">{{report_name}}</value>
+                </defaultName>
+                <specification>
+                    <value xsi:type="xsd:string" xml:space="preserve">{{unstubbed}}</value>
+                </specification>
+                <parameters xsi:type="bus:parameterValueArrayProp" SOAP-ENC:arrayType="bus:parameterValue[]">
+                    <value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:parameterValue[]"></value>
+                </parameters>
+                <runInAdvancedViewer xsi:type="bus:booleanProp">
+                    <value xsi:type="xsd:boolean">true</value>
+                </runInAdvancedViewer>
+            </object>
+            <options xsi:type="bus:addOptions">
+                <updateAction xsi:type="bus:updateActionEnum">fail</updateAction>
+            </options>
+        </rns1:add>
+    </SOAP-ENV:Body>
+</SOAP-ENV:Envelope>

+ 131 - 0
Tasks/scripts/templates/get_package.xml

@@ -0,0 +1,131 @@
+<SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:bus='http://developer.cognos.com/schemas/bibus/3/' xmlns:rns1='http://developer.cognos.com/schemas/reportService/1'>
+    <SOAP-ENV:Header>
+        <bus:biBusHeader xsi:type="bus:biBusHeader">
+            <bus:CAM xsi:type="bus:CAM">
+                <authenticityToken xsi:type="xsd:base64Binary">{{cam}}</authenticityToken>
+            </bus:CAM>
+            <bus:CAF xsi:type="bus:CAF">
+                <contextID xsi:type="xsd:string">{{caf}}</contextID>
+            </bus:CAF>
+            <bus:userPreferenceVars SOAP-ENC:arrayType="bus:userPreferenceVar[]" xsi:type="SOAP-ENC:Array">
+                <item>
+                    <bus:name xsi:type="xsd:string">productLocale</bus:name>
+                    <bus:value xsi:type="xsd:string">de</bus:value>
+                </item>
+                <item>
+                    <bus:name xsi:type="xsd:string">contentLocale</bus:name>
+                    <bus:value xsi:type="xsd:string">de-de</bus:value>
+                </item>
+            </bus:userPreferenceVars>
+            <bus:dispatcherTransportVars xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:dispatcherTransportVar[]">
+                <item xsi:type="bus:dispatcherTransportVar">
+                    <name xsi:type="xsd:string">rs</name>
+                    <value xsi:type="xsd:string">true</value>
+                </item>
+            </bus:dispatcherTransportVars>
+        </bus:biBusHeader>
+    </SOAP-ENV:Header>
+    <SOAP-ENV:Body>
+        <rns1:runSpecification>
+            <bus:specification xsi:type="bus:reportServiceMetadataSpecification">
+                <bus:value xsi:type="bus:specification">&lt;metadataRequest connection=&quot;/content/folder[@name=&amp;apos;GC&amp;apos;]/folder[@name=&amp;apos;Packages&amp;apos;]/package[@name=&amp;apos;V_Verkauf&amp;apos;]/model[@name=&amp;apos;2021-04-19T08:31:52.816Z&amp;apos;]&quot;&gt;
+			&lt;Metadata authoringLocale=&quot;de&quot; xml:lang=&quot;&quot; Depth=&quot;2&quot; start_atPath=&quot;&quot; no_collections=&quot;1&quot; _enumLabels=&quot;1&quot;&gt;
+				&lt;Properties&gt;
+					&lt;!-- Properties we want for all elements  --&gt;
+					&lt;Property name=&quot;*/@name&quot;/&gt;
+					&lt;Property name=&quot;*/@_path&quot;/&gt;
+					&lt;Property name=&quot;*/@_ref&quot;/&gt;
+					&lt;Property name=&quot;*/@isNamespace&quot;/&gt;
+					&lt;Property name=&quot;*/@screenTip&quot;/&gt;
+					&lt;Property name=&quot;*/@description&quot;/&gt;
+					&lt;Property name=&quot;*/@calcType&quot;/&gt;
+					&lt;Property name=&quot;*/@parentChild&quot;/&gt;
+					&lt;Property name=&quot;*/@_IntrinsicPropertiesOff&quot;/&gt;
+		
+					&lt;Property name=&quot;./dimension&quot;/&gt;
+					&lt;Property name=&quot;dimension/@type&quot;/&gt;
+		
+					&lt;Property name=&quot;./queryItem&quot;/&gt;
+					&lt;Property name=&quot;queryItem/@datatype&quot;/&gt;
+					&lt;Property name=&quot;queryItem/@currency&quot;/&gt;
+					&lt;Property name=&quot;queryItem/@usage&quot;/&gt;
+					&lt;Property name=&quot;queryItem/@regularAggregate&quot;/&gt;
+					&lt;Property name=&quot;queryItem/@promptType&quot;/&gt;
+					&lt;Property name=&quot;queryItem/@promptFilterItemRef&quot;/&gt;
+					&lt;Property name=&quot;queryItem/@promptDisplayItemRef&quot;/&gt;
+					&lt;Property name=&quot;queryItem/@promptUseItemRef&quot;/&gt;
+					&lt;Property name=&quot;queryItem/@promptCascadeOnRef&quot;/&gt;
+					&lt;Property name=&quot;queryItem/@unSortable&quot;/&gt;
+					&lt;Property name=&quot;queryItem/@displayType&quot;/&gt;
+					&lt;Property name=&quot;queryItem/@_isMemberProperty&quot;/&gt;
+		
+					&lt;Property name=&quot;./calculation&quot;/&gt;
+					&lt;Property name=&quot;calculation/@currency&quot;/&gt;
+					&lt;Property name=&quot;calculation/@usage&quot;/&gt;
+					&lt;Property name=&quot;calculation/@regularAggregate&quot;/&gt;
+					&lt;Property name=&quot;calculation/@promptType&quot;/&gt;
+					&lt;Property name=&quot;calculation/@promptFilterItemRef&quot;/&gt;
+					&lt;Property name=&quot;calculation/@promptDisplayItemRef&quot;/&gt;
+					&lt;Property name=&quot;calculation/@promptUseItemRef&quot;/&gt;
+					&lt;Property name=&quot;calculation/@promptCascadeOnRef&quot;/&gt;
+					&lt;Property name=&quot;calculation/@unSortable&quot;/&gt;
+					&lt;Property name=&quot;calculation/@displayType&quot;/&gt;
+					&lt;Property name=&quot;calculation/@calcType&quot;/&gt;
+					&lt;Property name=&quot;calculation/@datatype&quot;/&gt;
+					&lt;Property name=&quot;calculation/@hierarchies&quot;/&gt;
+					&lt;Property name=&quot;calculation/@dimensions&quot;/&gt;
+		
+					&lt;Property name=&quot;./measure&quot;/&gt;
+					&lt;Property name=&quot;measure/@datatype&quot;/&gt;
+					&lt;Property name=&quot;measure/@currency&quot;/&gt;
+					&lt;Property name=&quot;measure/@isHierarchical&quot;/&gt;
+					&lt;Property name=&quot;measure/@regularAggregate&quot;/&gt;
+		
+					&lt;Property name=&quot;./folder&quot;/&gt;
+					&lt;Property name=&quot;./measureFolder&quot;/&gt;
+					&lt;Property name=&quot;./querySubject&quot;/&gt;
+					&lt;Property name=&quot;./queryItemFolder&quot;/&gt;
+					&lt;Property name=&quot;./queryItemFolder/@datatype&quot;/&gt;
+					&lt;Property name=&quot;./filter&quot;/&gt;
+					&lt;Property name=&quot;./hierarchy&quot;/&gt;
+					&lt;Property name=&quot;./hierarchyFolder&quot;/&gt;
+					&lt;Property name=&quot;./level&quot;/&gt;
+					
+					&lt;Property name=&quot;./hierarchyNamedSet&quot;/&gt;
+					&lt;Property name=&quot;hierarchyNamedSet/@dimensions&quot;/&gt;
+					&lt;Property name=&quot;hierarchyNamedSet/@hierarchies&quot;/&gt;
+				&lt;/Properties&gt;
+				
+			&lt;/Metadata&gt;
+		&lt;/metadataRequest&gt;</bus:value>
+            </bus:specification>
+            <bus:parameterValues xmlns:bus='http://developer.cognos.com/schemas/bibus/3/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/' SOAP-ENC:arrayType="bus:parameterValue[]" xsi:type="SOAP-ENC:Array"></bus:parameterValues>
+            <bus:options SOAP-ENC:arrayType="bus:option[]" xsi:type="SOAP-ENC:Array">
+                <item xsi:type="bus:asynchOptionInt">
+                    <bus:name xsi:type="bus:asynchOptionEnum">primaryWaitThreshold</bus:name>
+                    <bus:value xsi:type="xsd:int">300</bus:value>
+                </item>
+                <item xsi:type="bus:asynchOptionInt">
+                    <bus:name xsi:type="bus:asynchOptionEnum">secondaryWaitThreshold</bus:name>
+                    <bus:value xsi:type="xsd:int">30</bus:value>
+                </item>
+                <item xsi:type="bus:runOptionBoolean">
+                    <bus:name xsi:type="bus:runOptionEnum">prompt</bus:name>
+                    <bus:value xsi:type="xsd:boolean">false</bus:value>
+                </item>
+                <item xsi:type="bus:asynchOptionEncoding">
+                    <bus:name xsi:type="bus:asynchOptionEnum">attachmentEncoding</bus:name>
+                    <bus:value xsi:type="bus:encodingEnum">MIME</bus:value>
+                </item>
+                <item xsi:type="bus:runOptionString">
+                    <bus:name xsi:type="bus:runOptionEnum">promptFormat</bus:name>
+                    <bus:value xsi:type="xsd:string">XHTMLFRGMT</bus:value>
+                </item>
+                <item xsi:type="bus:genericOptionAnyURI">
+                    <bus:name xsi:type="xsd:string">http://developer.cognos.com/ceba/constants/runOptionEnum#promptXslUrl</bus:name>
+                    <bus:value xsi:type="xsd:string">V5html_viewer.xsl</bus:value>
+                </item>
+            </bus:options>
+        </rns1:runSpecification>
+    </SOAP-ENV:Body>
+</SOAP-ENV:Envelope>

+ 159 - 0
Tasks/scripts/templates/get_report.xml

@@ -0,0 +1,159 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<SOAP-ENV:Envelope
+	xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'
+	xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
+    SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
+	xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/'
+	xmlns:xsd='http://www.w3.org/2001/XMLSchema'
+	xmlns:xs="http://www.w3.org/2001/XMLSchema"
+	xmlns:bus='http://developer.cognos.com/schemas/bibus/3/'
+	xmlns:rns1='http://developer.cognos.com/schemas/reportService/1'>
+	<SOAP-ENV:Header>
+		<bus:biBusHeader xsi:type="bus:biBusHeader">
+			<bus:CAM xsi:type="bus:CAM">
+				<authenticityToken xsi:type="xsd:base64Binary">{{cam}}</authenticityToken>
+			</bus:CAM>
+			<bus:CAF xsi:type="bus:CAF">
+				<contextID xsi:type="xsd:string">{{caf}}</contextID>
+			</bus:CAF>
+			<bus:hdrSession xsi:type="bus:hdrSession">
+				<bus:formFieldVars SOAP-ENC:arrayType="bus:formFieldVar[]" xsi:type="SOAP-ENC:Array">
+					<item xsi:type="bus:formFieldVar">
+						<name xsi:type="xsd:string">_ContextBlockSize</name>
+						<value xsi:type="xsd:string">1000000</value>
+					</item>
+					<item xsi:type="bus:formFieldVar">
+						<name xsi:type="xsd:string">ignoreXHTMLStrict</name>
+						<value xsi:type="xsd:string">true</value>
+					</item>
+				</bus:formFieldVars>
+			</bus:hdrSession>
+			<bus:userPreferenceVars SOAP-ENC:arrayType="bus:userPreferenceVar[]" xsi:type="SOAP-ENC:Array">
+				<item>
+					<bus:name xsi:type="xsd:string">productLocale</bus:name>
+					<bus:value xsi:type="xsd:string">de</bus:value>
+				</item>
+				<item>
+					<bus:name xsi:type="xsd:string">contentLocale</bus:name>
+					<bus:value xsi:type="xsd:string">de-de</bus:value>
+				</item>
+			</bus:userPreferenceVars>
+			<bus:dispatcherTransportVars xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:dispatcherTransportVar[]">
+				<item xsi:type="bus:dispatcherTransportVar">
+					<name xsi:type="xsd:string">rs</name>
+					<value xsi:type="xsd:string">true</value>
+				</item>
+			</bus:dispatcherTransportVars>
+			<bus:tracking
+				xmlns:bus="http://developer.cognos.com/schemas/bibus/3/"
+				xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="bus:tracking">{{tracking}}</bus:tracking>
+		</bus:biBusHeader>
+	</SOAP-ENV:Header>
+	<SOAP-ENV:Body>
+		<rns1:run>
+			<bus:objectPath xsi:type="bus:searchPathSingleObject">storeID(&quot;{{report.id}}&quot;)</bus:objectPath>
+			<bus:parameterValues
+				xmlns:bus='http://developer.cognos.com/schemas/bibus/3/'
+				xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
+				xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/' 
+                SOAP-ENC:arrayType="bus:parameterValue[{{params|count}}]" xsi:type="SOAP-ENC:Array">
+{% for key, p in params.items() %}
+				<item xsi:type="bus:parameterValue">
+					<bus:name xsi:type="xs:string">{{key}}</bus:name>
+					<bus:value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:parmValueItem[{{p|count}}]">
+{% for use, display in p.items() %}
+						<item xsi:type="bus:simpleParmValueItem">
+							<bus:inclusive xsi:type="xs:boolean">true</bus:inclusive>
+							<bus:display xsi:type="xs:string">{{display}}</bus:display>
+							<bus:use xsi:type="xs:string">{{use}}</bus:use>
+						</item>
+{% endfor %}
+					</bus:value>
+				</item>
+{% endfor %}
+			</bus:parameterValues>
+
+			<bus:options SOAP-ENC:arrayType="bus:option[]" xsi:type="SOAP-ENC:Array">
+				<item xsi:type="bus:genericOptionAnyURI">
+					<bus:name xsi:type="xsd:string">runOptionEnum#globalParameters</bus:name>
+					<bus:value xsi:type="xsd:string">[]</bus:value>
+				</item>
+				<item xsi:type="bus:asynchOptionInt">
+					<bus:name xsi:type="bus:asynchOptionEnum">primaryWaitThreshold</bus:name>
+					<bus:value xsi:type="xsd:int">600</bus:value>
+				</item>
+				<item xsi:type="bus:asynchOptionInt">
+					<bus:name xsi:type="bus:asynchOptionEnum">secondaryWaitThreshold</bus:name>
+					<bus:value xsi:type="xsd:int">600</bus:value>
+				</item>
+				<item xsi:type="bus:runOptionStringArray">
+					<bus:name xsi:type="bus:runOptionEnum">outputFormat</bus:name>
+					<bus:value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="xsd:string[1]">
+						<item>{{format}}</item>
+					</bus:value>
+				</item>
+				<item xsi:type="bus:asynchOptionEncoding">
+					<bus:name xsi:type="bus:asynchOptionEnum">attachmentEncoding</bus:name>
+					<bus:value xsi:type="bus:encodingEnum">MIME</bus:value>
+				</item>
+				<item xsi:type="bus:runOptionAnyURI">
+					<bus:name xsi:type="bus:runOptionEnum">xslURL</bus:name>
+					<bus:value xsi:type="xsd:string">V5html_viewer.xsl</bus:value>
+				</item>
+				<item xsi:type="bus:runOptionString">
+					<bus:name xsi:type="bus:runOptionEnum">promptFormat</bus:name>
+					<bus:value xsi:type="xsd:string">XHTMLFRGMT</bus:value>
+				</item>
+				<item xsi:type="bus:runOptionBoolean">
+					<bus:name xsi:type="bus:runOptionEnum">prompt</bus:name>
+					<bus:value xsi:type="xsd:boolean">{{prompt}}</bus:value>
+				</item>
+				<item xsi:type="bus:runOptionAnyURI">
+					<bus:name xsi:type="bus:runOptionEnum">outputLocation</bus:name>
+					<bus:value xsi:type="xsd:string">http://developer.cognos.com/ceba/constants/temporaryObjectLocationEnum#serverFileSystem</bus:value>
+				</item>
+				<item xsi:type="bus:runOptionData">
+					<bus:name xsi:type="bus:runOptionEnum">data</bus:name>
+					<bus:value xsi:type="bus:dataEnum">runWithAllData</bus:value>
+				</item>
+				<item xsi:type="bus:genericOptionBoolean">
+					<bus:name xsi:type="xsd:string">http://developer.cognos.com/ceba/constants/systemOptionEnum#accessibilityFeatures</bus:name>
+					<bus:value xsi:type="xsd:boolean">false</bus:value>
+				</item>
+				<item xsi:type="bus:genericOptionBoolean">
+					<bus:name xsi:type="xsd:string">http://developer.cognos.com/ceba/constants/biDirectionalOptionEnum#biDirectionalFeaturesEnabled</bus:name>
+					<bus:value xsi:type="xsd:boolean">false</bus:value>
+				</item>
+				<item xsi:type="bus:runOptionBoolean">
+					<bus:name xsi:type="bus:runOptionEnum">returnOutputWhenAvailable</bus:name>
+					<bus:value xsi:type="xsd:boolean">true</bus:value>
+				</item>
+				<item xsi:type="bus:runOptionNameValueArray">
+					<bus:name xsi:type="bus:runOptionEnum">xslParameters</bus:name>
+					<bus:value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:nameValue[]">
+						<item xsi:type="bus:nameValue">
+							<name xsi:type="xsd:string">CVGateway</name>
+							<value xsi:type="xsd:string">../v1/disp</value>
+						</item>
+						<item xsi:type="bus:nameValue">
+							<name xsi:type="xsd:string">renderIntermediateXML</name>
+							<value xsi:type="xsd:string">false</value>
+						</item>
+						<item xsi:type="bus:nameValue">
+							<name xsi:type="xsd:string">renderEnvironment</name>
+							<value xsi:type="xsd:string">false</value>
+						</item>
+					</bus:value>
+				</item>
+				<item xsi:type="bus:genericOptionBoolean">
+					<bus:name xsi:type="xsd:string">http://developer.cognos.com/ceba/constants/runOptionEnum#interactive</bus:name>
+					<bus:value xsi:type="xsd:boolean">true</bus:value>
+				</item>
+				<item xsi:type="bus:genericOptionAnyURI">
+					<bus:name xsi:type="xsd:string">http://developer.cognos.com/ceba/constants/runOptionEnum#promptXslUrl</bus:name>
+					<bus:value xsi:type="xsd:string">V5html_viewer.xsl</bus:value>
+				</item>
+			</bus:options>
+		</rns1:run>
+	</SOAP-ENV:Body>
+</SOAP-ENV:Envelope>

+ 47 - 0
Tasks/scripts/templates/update_report.xml

@@ -0,0 +1,47 @@
+<SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:bus='http://developer.cognos.com/schemas/bibus/3/' xmlns:rns1='http://developer.cognos.com/schemas/reportService/1'>
+    <SOAP-ENV:Header>
+        <bus:biBusHeader xsi:type="bus:biBusHeader">
+            <bus:CAM xsi:type="bus:CAM">
+                <authenticityToken xsi:type="xsd:base64Binary">{{cam}}</authenticityToken>
+            </bus:CAM>
+            <bus:CAF xsi:type="bus:CAF">
+                <contextID xsi:type="xsd:string">{{caf}}</contextID>
+            </bus:CAF>
+            <bus:userPreferenceVars SOAP-ENC:arrayType="bus:userPreferenceVar[]" xsi:type="SOAP-ENC:Array">
+                <item>
+                    <bus:name xsi:type="xsd:string">productLocale</bus:name>
+                    <bus:value xsi:type="xsd:string">de</bus:value>
+                </item>
+                <item>
+                    <bus:name xsi:type="xsd:string">contentLocale</bus:name>
+                    <bus:value xsi:type="xsd:string">de-de</bus:value>
+                </item>
+            </bus:userPreferenceVars>
+            <bus:dispatcherTransportVars xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:dispatcherTransportVar[]">
+                <item xsi:type="bus:dispatcherTransportVar">
+                    <name xsi:type="xsd:string">rs</name>
+                    <value xsi:type="xsd:string">true</value>
+                </item>
+            </bus:dispatcherTransportVars>
+        </bus:biBusHeader>
+    </SOAP-ENV:Header>
+    <SOAP-ENV:Body>
+        <rns1:update>
+            <object xsi:type="bus:report">
+                <searchPath>
+                    <value xsi:type="xsd:string">{{search_path}}</value>
+                </searchPath>
+                <specification>
+                    <value xsi:type="xsd:string" xml:space="preserve">{{unstubbed}}</value>
+                </specification>
+                <parameters xsi:type="bus:parameterValueArrayProp" SOAP-ENC:arrayType="bus:parameterValue[]">
+                    <value xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="bus:parameterValue[]"></value>
+                </parameters>
+                <runInAdvancedViewer xsi:type="bus:booleanProp">
+                    <value xsi:type="xsd:boolean">true</value>
+                </runInAdvancedViewer>
+            </object>
+            <options xsi:type="bus:updateOptions"/>
+        </rns1:update>
+    </SOAP-ENV:Body>
+</SOAP-ENV:Envelope>

+ 3 - 3
Tasks/scripts/transformer11.bat

@@ -4,12 +4,12 @@ call teste_verzeichnis.bat %COGNOS11% & if errorlevel 42 goto :eof
 
 echo == Modell "%~n1" ==
 
-copy /Y %PORTAL%\System\WERWISO\Models\%~n1.pyj  %PORTAL%\System\WERWISO\Models\gefuellt\%~n1.pyj
+copy /Y %SYSTEM_DIR%\Models\%~n1.pyj  %SYSTEM_DIR%\Models\gefuellt\%~n1.pyj
 
 
-%COGNOS11%\cogtr.exe -n -c -g -p%PORTAL:~0,-1%\System\WERWISO\Models\gefuellt\%~n1.pyj" 
+%COGNOS11%\cogtr.exe -n -c -g -p"%SYSTEM_DIR:~0,-1%\Models\gefuellt\%~n1.pyj" 
 
-copy /Y %PORTAL%\System\WERWISO\Logs\%~n1.log %TASKS%\logs
+copy /Y %SYSTEM_DIR%\Logs\%~n1.log %TASKS%\logs
 
 :end
 echo Fertiggestellt:    %TIME:~0,5%