/** * @return array * @access public * * @param string $msg_uid {@min 1}{@max 32} * @param string $app_uid {@min 1}{@max 32} * * @url GET /process/case/:app_uid/message/:msg_uid/view */ public function getViewMessages($app_uid, $msg_uid) { try { $oMobile = new \ProcessMaker\BusinessModel\Light\Tracker(); $Fields = \Cases::getHistoryMessagesTrackerView($app_uid, $msg_uid); $response = $oMobile->parserMessages($Fields); //$response = $oMobile->messages($pro_uid, $app_uid); } catch (\Exception $e) { throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()); } return $response; }
$oCase->getAllUploadedDocumentsCriteria($_SESSION['PROCESS'], $_SESSION['APPLICATION'], $_SESSION['TASK'], $_SESSION['USER_LOGGED']); break; case 'deleteGeneratedDocument': //require_once 'classes/model/AppDocument.php'; $oAppDocument = new AppDocument(); $oAppDocument->remove($_POST['DOC']); $oCase = new Cases(); $oCase->getAllGeneratedDocumentsCriteria($_SESSION['PROCESS'], $_SESSION['APPLICATION'], $_SESSION['TASK'], $_SESSION['USER_LOGGED']); break; /* @Author Erik Amaru Ortiz <*****@*****.**> */ /* @Author Erik Amaru Ortiz <*****@*****.**> */ case 'resendMessage': //require_once 'classes/model/Configuration.php'; G::LoadClass('spool'); $oCase = new Cases(); $data = $oCase->getHistoryMessagesTrackerView($_POST['APP_UID'], $_POST['APP_MSG_UID']); //print_r($data); G::LoadClass("system"); $aSetup = System::getEmailConfiguration(); $passwd = $aSetup['MESS_PASSWORD']; $passwdDec = G::decrypt($passwd, 'EMAILENCRYPT'); $auxPass = explode('hash:', $passwdDec); if (count($auxPass) > 1) { if (count($auxPass) == 2) { $passwd = $auxPass[1]; } else { array_shift($auxPass); $passwd = implode('', $auxPass); } } $aSetup['MESS_PASSWORD'] = $passwd;
leimnud.browser = {}; leimnud.browser.isIphone = ""; leimnud.iphone = {}; leimnud.iphone.make = function(){}; function ajax_function(ajax_server, funcion, parameters, method){ } //! </script> <?php G::LoadClass('case'); $oCase = new Cases(); $_POST["APP_UID"] = $_REQUEST["APP_UID"]; $_POST['APP_MSG_UID'] = $_REQUEST["APP_MSG_UID"]; $G_PUBLISH = new Publisher(); $oCase = new Cases(); $G_PUBLISH->AddContent('xmlform', 'xmlform', 'cases/cases_MessagesView', '', $oCase->getHistoryMessagesTrackerView($_POST['APP_UID'], $_POST['APP_MSG_UID'])); ?> <script language="javascript"> <?php global $G_FORM; ?> function loadForm_<?php echo $G_FORM->id; ?> (parametro1){ } </script> <?php G::RenderPage('publish', 'raw'); } if ($actionAjax == 'showDynaformListHistory') {
* it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * For more information, contact Colosa Inc, 2566 Le Jeune Rd., * Coral Gables, FL, 33134, USA, or email info@colosa.com. */ /* * Messages for Case Tracker * * @author Everth S. Berrios Morales <*****@*****.**> * */ if (!isset($_SESSION['PROCESS'])) { G::header('location: login'); } $G_MAIN_MENU = 'caseTracker'; $G_ID_MENU_SELECTED = 'MESSAGES'; G::LoadClass("case"); $Fields = Cases::getHistoryMessagesTrackerView($_GET['APP_UID'], $_GET['APP_MSG_UID']); $G_PUBLISH = new Publisher(); $G_PUBLISH->AddContent('xmlform', 'xmlform', 'tracker/tracker_MessagesView', '', $Fields); G::RenderPage('publish');