<?php include_once '../../includes.sys/ini.php'; include_once '../../includes.sys/metodos.php'; include_once '../DAO/AnexoItemDAO.php'; include_once '../AnexoItem.class.php'; include_once '../Item.class.php'; checkUserAuth(EXTERNAL_ROOT_PORTAL . '/index.php?error=true'); include_once '../../head.php'; $DAO = new AnexoItemDAO(); $anexoItem = new AnexoItem(); connectSQL(); $anexoItem->setId(limpaTexto($_GET['id'])); $anexoItem->setIdMedicao(limpaTexto($_GET['medicao'])); //Verifica se foi executado a acao de salvar if (!empty($_POST['cmd']) && $_POST['cmd'] == 'salvar') { $id_contrato_item = $_POST['id_contrato_item']; $anexoItem->setDataViagem($_POST['data']); $anexoItem->setDataVolta($_POST['data_volta']); $anexoItem->setEmpresa($_POST['empresa']); $anexoItem->setIdEmpresa($_POST['consorcio']); $anexoItem->setGrupo($_POST['item']); $anexoItem->setMoeda($_POST['moeda']); $anexoItem->setNfRecibo($_POST['nf']); $anexoItem->setPessoa($_POST['pessoa']); $anexoItem->setProduto($_POST['produto']); $anexoItem->setQuantidade($_POST['quantidade']); $anexoItem->setValor($_POST['valor']); $anexoItem->setMedicaoItem($_POST['medicao_item']); $anexoItem->setDataNF($_POST['data_nf']); $anexoItem->setIdAnexo($_POST['anexo']);