Esempio n. 1
0
require_once "../../includes/configuration.php";
$_SESSION["environment_path"] = dirname(dirname(getcwd()));
require_once APP_BASEPATH . "/includes/Entities/User/UserCore.php";
require_once APP_BASEPATH . "/includes/Entities/Task/TaskCore.php";
require_once APP_BASEPATH . "/includes/Entities/Request/RequestCore.php";
require_once APP_BASEPATH . "/includes/Entities/RequestMetadata/RequestMetadataCore.php";
require_once APP_BASEPATH . "/includes/Entities/FlowSettings/FlowSettingsCore.php";
require_once APP_BASEPATH . "/includes/Entities/Attachment/AttachmentCore.php";
require_once APP_BASEPATH . "/includes/Entities/Filetype/FiletypeCore.php";
require_once $_SESSION["environment_path"] . "/customcode/Reclamos/includes/Entities/General/GeneralCore.php";
require_once $_SESSION["environment_path"] . "/customcode/Reclamos/includes/Entities/Clase/ClaseCore.php";
require_once $_SESSION["environment_path"] . "/customcode/Reclamos/includes/Entities/Reclamo/ReclamoCore.php";
require_once $_SESSION["environment_path"] . "/customcode/Reclamos/includes/Entities/ReclamoDetalle/ReclamoDetalleCore.php";
define("CURRENT_FLOW", "1");
$handlerRequestCore = new RequestCore();
$handlerReclamoCore = new ReclamoCore();
$handlerReclamoDetalleCore = new ReclamoDetalleCore();
$handlerRequestMetadataCore = new RequestMetadataCore();
$handlerFlowSettingsCore = new FlowSettingsCore();
$handlerAttachmentCore = new AttachmentCore();
$handlerFiletypeCore = new FiletypeCore();
$handlerGeneralCore = new GeneralCore();
$handlerClaseCore = new ClaseCore();
if ($_POST["cliente_pais"] == "ECU") {
    $tipo = "venta_local";
    $creador = $handlerFlowSettingsCore->getSettingValue(CURRENT_FLOW, "REC_PRO_USUARIO_VL");
    $asignado_a = $handlerFlowSettingsCore->getSettingValue(CURRENT_FLOW, "REC_PRO_USUARIO_VL");
} else {
    $tipo = "exportacion";
    $creador = $handlerFlowSettingsCore->getSettingValue(CURRENT_FLOW, "REC_PRO_USUARIO_EXP");
    $asignado_a = $handlerFlowSettingsCore->getSettingValue(CURRENT_FLOW, "REC_PRO_USUARIO_EXP");
Esempio n. 2
0
<?php

//header('Access-Control-Allow-Origin: *');
session_start();
$_SESSION["environment_path"] = dirname(dirname(getcwd()));
require_once "../../includes/configuration.php";
require_once $_SESSION["environment_path"] . "/customcode/Reclamos/includes/Entities/General/GeneralCore.php";
require_once $_SESSION["environment_path"] . "/customcode/Reclamos/includes/Entities/Clase/ClaseCore.php";
require_once $_SESSION["environment_path"] . "/customcode/Reclamos/includes/Entities/Reclamo/ReclamoCore.php";
require_once $_SESSION["environment_path"] . "/customcode/Reclamos/includes/Entities/ReclamoDetalle/ReclamoDetalleCore.php";
require_once APP_BASEPATH . "/includes/Entities/RequestMetadata/RequestMetadataCore.php";
define("CURRENT_FLOW", "1");
$handlerReclamoCore = new ReclamoCore();
$handlerReclamoDetalleCore = new ReclamoDetalleCore();
$handlerGeneralCore = new GeneralCore();
$handlerClaseCore = new ClaseCore();
$handlerRequestMetadataCore = new RequestMetadataCore();
$reclamosArray = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18);
foreach ($reclamosArray as $reclamo) {
    $reclamoData = $handlerReclamoCore->getRecordById($reclamo);
    $reclamoDetalleData = $handlerReclamoDetalleCore->getRecordsByFieldFilter(array(array("field" => "reclamo", "type" => "i", "value" => $reclamo)));
    $listaFacturas = array();
    foreach ($reclamoDetalleData as $reclamo) {
        $listaFacturas[] = $reclamo["factura"];
    }
    $listaFacturas = array_unique($listaFacturas);
    $request_id = $reclamoData["ef_id"];
    $handlerRequestMetadataCore->setVariable($request_id, "REC-CODIGO-CLIENTE", $reclamoData["cliente_codigo"]);
    $handlerRequestMetadataCore->setVariable($request_id, "REC-NOMBRE-CLIENTE", $reclamoData["cliente_nombre"]);
    $handlerRequestMetadataCore->setVariable($request_id, "REC-IDENTIFICACION-CLIENTE", $reclamoData["cliente_identificacion"]);
    $handlerRequestMetadataCore->setVariable($request_id, "REC-EMAIL-CLIENTE", $reclamoData["contacto_email"]);