예제 #1
0
    }
    if ($_REQUEST["pageid"] == "126") {
        ConvertGetToSession("FormulariosNomina", $_REQUEST);
        header("Location: /FormulariosNomina");
    }
}
if (isset($_REQUEST["pagename"]) and $_REQUEST["pagename"] == "ListadoPersonalExpuesto") {
    GetParamPersonalExp('NominaConfirmada');
    GetParamPersonalExp('idrelev');
    GetParamPersonalExp('idEstablecimiento');
    GetParamPersonalExp('ACTUAL');
    GetParamPersonalExp('empresaESTABLECI');
    GetParamPersonalExp('empresaCUITSINGUION');
    if (isset($_REQUEST['idEstablecimiento']) && $_REQUEST['idEstablecimiento'] > 0) {
        $idEstablecimiento = $_REQUEST['idEstablecimiento'];
        $rowEstableci = GetDatosNominaWebEstablecimiento($idEstablecimiento);
        $idrelev = $rowEstableci['EW_ID'];
        $tiponomina = $rowEstableci['EW_TIPONOMINA'];
        $_SESSION['ListadoPersonalExpuesto']['tiponomina'] = $tiponomina;
        $_SESSION['ListadoPersonalExpuesto']['idrelev'] = $idrelev;
    }
    if (isset($_REQUEST['empresaESTABLECI']) && $_REQUEST['idrelev'] == 0) {
        $empresaESTABLECI = $_REQUEST['empresaESTABLECI'];
        $empresaCUITSINGUION = $_REQUEST['empresaCUITSINGUION'];
        $rowDatosWeb = Get_NominaWEB_AnnoActual($empresaESTABLECI, $empresaCUITSINGUION);
        $idrelev = $rowDatosWeb['EW_ID'];
        $tiponomina = $rowDatosWeb['EW_TIPONOMINA'];
        $_SESSION['ListadoPersonalExpuesto']['tiponomina'] = $tiponomina;
        $_SESSION['ListadoPersonalExpuesto']['idrelev'] = $idrelev;
    }
    header("Location: /ListadoPersonalExpuesto");
예제 #2
0
        $ACCION = 'EDIT';
    }
    if (isset($_SESSION['FormulariosNomina']['NROESTABLECI'])) {
        $NROESTABLECI = $_SESSION['FormulariosNomina']['NROESTABLECI'];
    }
    if (isset($_SESSION['FormulariosNomina']['CODIGOEWID'])) {
        $CODIGOEWID = $_SESSION['FormulariosNomina']['CODIGOEWID'];
    }
}
if (!isset($_SESSION['FormulariosNomina'])) {
    echo "<script>\t\t\t\t\t\n\t\t\twindow.location.assign('/SeleccionarEstablecimiento');\t\t\t \n\t\t</script>";
}
$id = $_SESSION["FormulariosNomina"]["ID"];
$row = DatosGenEstablecimiento($id);
$DesbloqTipoNomina = 'N';
extract(GetDatosNominaWebEstablecimiento($CODIGOEWID), EXTR_PREFIX_ALL, "DNWE");
$_SESSION["IDACTIVIDAD"] = $DNWE_EW_IDACTIVIDAD;
if ($ACCION == 'EDIT') {
    if ($DNWE_EW_TIPOESTAB == 'O') {
        //echo '<script type="text/javascript">  DesactivaTipoNominaSeleccion(); </script> ';
    }
    $DesbloqTipoNomina = $DNWE_EW_TIPONOMINA;
}
/*busca responsable de HYS*/
extract(GetDatosNominaWebResponsable($CODIGOEWID, 'H'), EXTR_PREFIX_ALL, "DNWR_H");
extract(GetDatosNominaWebResponsable($CODIGOEWID, 'R'), EXTR_PREFIX_ALL, "DNWR_R");
extract(GetDatosNominaWebResponsable($CODIGOEWID, 'C'), EXTR_PREFIX_ALL, "DNWR_C");
$ArrayJsonTel = GetTelefonosJSON($CODIGOEWID);
$ExisteNominaEnProceso = Existe_NominaWebAnualEnProceso($row["ES_NROESTABLECI"], $row["CUIT"]);
$ExisteNominaAnnoAnterior = Existe_NominaWebAnnoAnterior($row["ES_NROESTABLECI"], $row["CUIT"]);
$checked_C_Exp = '';