package com.ejie.ab39a.constantes;

import java.util.Locale;

import com.ejie.x38.util.Constants;

/**
 * Clase con constants del proyecto
 * 
 *  
 *
 */
public class Constantes {

	public static final String APLICACION = "ab39a";

	public static final String SEPARADOR_COMA = ",";
	public static final int MIL_VEINTICUATRO = 1024;

	public static final String VACIO = "";
	public static final String SEPARADOR = "/";
	public static final String ESPACIO = " ";
	public static final String GUION = "-";

	public static final String UNDERSCORE = "_";
	public static final String SEPARADOR_EXTENSION = ".";

	public static final String EXTENSION_EXCEL_XML = "xlsx";

	// SI - NO
	public static final String VALUE_NO = "0";
	public static final String VALUE_SI = "1";
	public static final String VALUE_TODOS_NUM = "-1";

	public static final String UTF_8 = "UTF-8";
	public static final String ISO_8859_1 = "ISO-8859-1";

	public static final int NUM_CERO = 0;
	public static final int NUM_UNO = 1;
	public static final int NUM_DOS = 2;
	public static final int NUM_TRES = 3;
	public static final int NUM_CUATRO = 4;
	public static final int NUM_CINCO = 5;
	public static final int NUM_SEIS = 6;
	public static final int NUM_SIETE = 7;
	public static final int NUM_OCHO = 8;
	public static final int NUM_NUEVE = 9;
	public static final int NUM_DIEZ = 10;
	public static final int NUM_ONCE = 11;
	public static final int NUM_DOCE = 12;
	public static final int NUM_TRECE = 13;
	public static final int NUM_CATORCE = 14;
	public static final int NUM_QUINCE = 15;
	public static final int NUM_DIECISEIS = 16;
	public static final int NUM_DIECISIETE = 17;
	public static final int NUM_DIECIOCHO = 18;
	public static final int NUM_DIECINUEVE = 19;
	public static final int NUM_VEINTE = 20;
	public static final int NUM_VEINTIUNO = 21;

	public static final int BAJA_LOGICA = 1;
	public static final int ALTA_LOGICA = 0;
	public static final int TODOS_LOGICA = 2;

	public static final int HERRI_ADMINISTRAZIOA = 1;
	public static final int ENPRESA_PRIBATUA = 2;
	public static final int ENTE_PUBLIKOA = 3;
	public static final int TODOS_TIPOENTI = 0;

	public static final int NIVEL_UNO = 1;
	public static final int NIVEL_DOS = 2;
	public static final int NIVEL_TRES = 3;
	public static final int NIVEL_CUATRO = 4;
	public static final int NIVEL_CINCO = 5;
	public static final int NIVEL_OBJ = 8;
	public static final int NUM_CINCUENTA_Y_NUEVE = 59;
	public static final int NUM_SESENTA_Y_TRES = 63;
	public static final int NUM_SESENTA_Y_UNO = 61;
	public static final int NUM_SESENTA = 60;
	public static final int NUM_SESENTA_Y_DOS = 62;
	public static final int NUM_SESENTA_Y_CUATRO = 64;
	public static final int NUM_CIENTO_OCHO = 108;
	public static final int NUM_CIENTO_CINCUENTA_Y_SEIS = 156;
	public static final int NUM_CIENTO_SESENTA_Y_DOS = 162;
	public static final int NUM_CIENTO_OCHENTA_Y_CINCO = 185;
	public static final int NUM_CIENTO_OCHENTA_Y_TRES = 183;
	public static final int NUM_CIENTO_OCHENTA_Y_SEIS = 186;
	public static final int NUM_OCHENTA_Y_CUATRO = 84;
	public static final int NUM_DOSCIENTOS_VEINTE = 220;
	public static final int NUM_DOSCIENTOS_TREINTA_Y_OCHO = 238;
	public static final int NUM_DOSCIENTOS_CINCUENTA_Y_CINCO = 255;
	public static final int NUM_DOSCIENTOS_CUARENTA_Y_TRES = 243;
	public static final int NUM_DOSCIENTOS_TREINTA = 230;
	public static final int NUM_DOSCIENTOS_TREINTA_Y_UNO = 231;
	public static final int NUM_DOSCIENTOS_TREINTA_Y_DOS = 232;
	public static final int NUM_DOSCIENTOS_CINCUENTA = 250;
	public static final int NUM_DOSCIENTOS_CINCUENTA_Y_CUATRO = 254;
	public static final int NUM_DOSCIENTOS_TREINTA_Y_SIETE = 237;
	public static final int NUM_DOSCIENTOS_VEINTITRES = 223;
	public static final int NUM_CIENTO_OCHENTA_Y_UNO = 181;
	public static final int NUM_DOSCIENTOS_CINCO = 205;
	public static final int NUM_DOSCIENTOS_SEIS = 206;
	public static final int NUM_CIENTO_NOVENTA_Y_UNO = 191;
	public static final int NUM_DOSCIENTOS_VEINTISEIS = 226;
	public static final int NUM_SEISCIENTOS_OCHENTA = 660;
	public static final int NUM_SEISCIENTOS = 600;
	public static final int NUM_CUATROCIENTOS = 400;
	public static final int NUM_OCHOCIENTOS_CUARENTA_Y_DOS = 842;
	public static final int NUM_QUINIENTOS_NOVENTA_Y_CINCO = 595;

	// Constantes para el Idioma
	public static final String EU = Constants.EUSKARA;
	public static final String ES = Constants.CASTELLANO;

	public static final String CAS = "CAS";
	public static final String EUS = "EUS";

	public static final String COD_EUSKADI = "16";

	public static final int PLANGINTZALDI_TARTEA = 5;

	public static final Long ELEMENTO_NIVEL_1 = 1l;
	public static final Long ELEMENTO_NIVEL_2 = 2l;
	public static final Long ELEMENTO_NIVEL_3 = 3l;
	public static final Long ELEMENTO_NIVEL_4 = 4l;
	public static final Long ELEMENTO_VALOR_0 = 0l;
	public static final Long ELEMENTO_VALOR_1 = 1l;
	public static final Long LONG_5 = 5l;
	public static final Long LONG_OCHOCIENTOS = 800L;
	public static final Long LONG_VEINTE = 20L;

	public static final int VALORES = 10;

	// Cosntantes pkanes estratégicos
	public static final int TXOSTENA_TODOS = -1;
	public static final int TXOSTENA_SOLICITADO = 1;
	public static final int TXOSTENA_NO_SOLICITADO = 0;

	// Formato de fechas
	public static final String EU_DATE_MASK = "yyyy/MM/dd";
	public static final String ES_DATE_MASK = "dd/MM/yyyy";
	public static final Locale LOCALE_ES = new Locale(Constantes.ES, "", "");
	public static final Locale LOCALE_EU = new Locale(Constantes.EU, "", "");
	public static final String IDIOMA_ES = "es";
	public static final String IDIOMA_EU = "eu";
	public static final String FORMATO_FECHA_STR = "dd/MM/yyyy";
	public static final String FORMATO_FECHA_STR_MILI = "dd/MM/yyyy hh:mm:ss:mmm";

	public static final String TIPO_PLAN_ESTRAT = "PE";
	public static final String TIPO_PLAN_GESTION = "PG";

	public static final String SITUACION1COD = "1";
	public static final String SITUACION2COD = "2";
	public static final String SITUACION3COD = "3";
	public static final String SITUACION1ES = "Hecha";
	public static final String SITUACION2ES = "Retrasada";
	public static final String SITUACION3ES = "Abandonada";
	public static final String SITUACION1EU = "Eginda";
	public static final String SITUACION2EU = "Atzeratuta";
	public static final String SITUACION3EU = "Bertan behera utzi";

	public static final String BILINGUECOD = "0";
	public static final String EUSKERACOD = "1";
	public static final String BILINGUE = "Biligüe";
	public static final String EUSKERA = "Euskera";
	public static final String BILINGUE_EU = "Elebitan";
	public static final String EUSKERA_EU = "Euskaraz";

	public static final String PREGUNTAHECHAES1 = "Muy eficaz";
	public static final String PREGUNTAHECHAEU1 = "Oso eraginkorra";
	public static final String PREGUNTAHECHAES2 = "Bastante eficaz";
	public static final String PREGUNTAHECHAEU2 = "Nahiko eraginkorra";
	public static final String PREGUNTAHECHAES3 = "Eficaz";
	public static final String PREGUNTAHECHAEU3 = "Eraginkorra";
	public static final String PREGUNTAHECHAES4 = "No eficaz";
	public static final String PREGUNTAHECHAEU4 = "Ez eraginkorra";
	public static final String PREGUNTAHECHAES5 = "Nada eficaz";
	public static final String PREGUNTAHECHAEU5 = "Batere eraginkorra";

	public static final String TIPO_ACCION_SELECC = "S";
	public static final String TIPO_ACCION_CREADA = "0";

	// Valores Tipo IDENTIFICACION TITULAR
	public static final String TIPO_IDENTIFICACION_NIF = "0";
	public static final String TIPO_IDENTIFICACION_CIF = "1";

	public static final Integer STRING_BUILDER_INIT = 4096;

	public static final String POLITICA_JUEGOBARCOS = "Juego.de.Barcos.IZENPE";

	public static final String USUARIO_HPS = "HPS";
	public static final String USUARIO_TECNICO = "ENT";
	public static final String USUARIO_TEC_ENTIDAD = "TECNICO";

	public static final int PLANE_ACTIVO = 1;
	public static final int PLANE_CODVERSION = 1;

	// EXCEL
	public static final String EXCEL_PLANTILLA_PE = "PlantillaExcelPE";
	public static final String EXCEL_PLANTILLA_PG = "PlantillaExcelPG";

	public static final String ESTILO_NEGRITA = "N";
	public static final String ESTILO_EJE = "E";
	public static final String ESTILO_CABECERAS = "C";
	public static final String ESTILO_OBJETIVOS = "O";

	public static final int PORCENTAJE_TOTAL = 100;
	public static final int PORCENTAJE_0 = 0;

	public static final String EXTENSION_EXCEL = ".xls";
	public static final String NOMBRE_EXCEL = "ExcelPlanes.xls";

	public static final String EXTENSION_PDF = ".pdf";
	public static final String NOMBRE_PDF = "PDFPlanes";

	public static final int ADMINISTRACION_PUBLICA = 1;
	public static final int ENTIDAD_PRIVADA = 2;
	public static final int SOCIEDAD_PUBLICA = 3;

	// Variable llmadas ajax en el portal
	public static final String PORTAL_NOPORTAL = "R01HNoPortal=true";

	// -------------------------------------
	// Constantes sobre la generacion de PDF

	// Entradas de atributos de definicion del PDF

	// este valor podria no usarse si el pdf no requiere marca de agua
	public static final float MARCA_AGUA_GRADO_TRANSPARENCIA = 0.2f;

	// Entradas de recuperacion de datos del fichero de propiedades
	// Fichero:
	public static final String PARAMETRO_PROPERTIES_PDF_PLANE_HTML = "pdf.plane.html";
	public static final String PARAMETRO_PROPERTIES_PDF_PLANE_CSS = "pdf.plane.css";
	public static final String PARAMETRO_PROPERTIES_PDF_PLANE_IMG_MARCAAGUA = "pdf.plane.marcaagua";
	public static final String PARAMETRO_PROPERTIES_PDF_PLANE_IMG_CABECERA = "pdf.plane.img.cabecera";

	public static final String PARAMETRO_PROPERTIES_PDF_DIR = "pdf.dir";
	public static final String PARAMETRO_PROPERTIES_PDF_SALIDA_DIR = "pdf.salida.dir";
	public static final String PARAMETRO_PROPERTIES_PDF_DIR_IMAGENES = "pdf.imagenes";
	public static final String PARAMETRO_PROPERTIES_PDF_FUENTE = "pdf.fuente";
	public static final String PARAMETRO_PROPERTIES_PDF_ICC_PROFILE = "pdf.icc_profile";

	public static final String PARAMETRO_PROPERTIES_PLAN_LIT_TIT_PLANE = "excel.litTitPlanE";
	public static final String PARAMETRO_PROPERTIES_PLAN_LIT_NOMBRE_ENTIDAD = "excel.nombreEntidad";
	public static final String PARAMETRO_PROPERTIES_PLAN_LIT_NOMBRE_PLAN = "excel.nombrePlan";
	public static final String PARAMETRO_PROPERTIES_PLAN_LIT_NOMBRECAS = "excel.nombreCas";
	public static final String PARAMETRO_PROPERTIES_PLAN_LIT_NOMBREEUS = "excel.nombreEus";
	public static final String PARAMETRO_PROPERTIES_PLAN_LIT_ANYOINICIO = "excel.anyoInicio";
	public static final String PARAMETRO_PROPERTIES_PLAN_LIT_ANYOFIN = "excel.anyoFin";
	public static final String PARAMETRO_PROPERTIES_PLAN_LIT_INDICE = "excel.indice";
	public static final String PARAMETRO_PROPERTIES_PLAN_LIT_NIVELCUMPL = "excel.nivelCumpl";
	public static final String PARAMETRO_PROPERTIES_PLAN_LIT_PORCENTAJE = "excel.porcentaje";
	public static final String PARAMETRO_PROPERTIES_PLAN_LIT_FECHAACEP = "excel.fechaAcep";
	public static final String PARAMETRO_PROPERTIES_PLAN_LIT_NOMBRE = "excel.nombre";
	public static final String PARAMETRO_PROPERTIES_PLAN_LIT_OBJETIVO = "excel.objetivo";
	public static final String PARAMETRO_PROPERTIES_PLAN_LIT_HASIERA = "excel.hasiera";
	public static final String PARAMETRO_PROPERTIES_PLAN_LIT_AURRE = "excel.aurre";
	public static final String PARAMETRO_PROPERTIES_PLAN_LIT_AMAI = "excel.amai";
	public static final String PARAMETRO_PROPERTIES_PLAN_LIT_EUS = "excel.eus";
	public static final String PARAMETRO_PROPERTIES_PLAN_LIT_ELEBI = "excel.elebi";

	// Entradas de sustitucion de variables en el PDF
	// public static final String VALOR_VARIABLE_PLAN_NOMBRECAS =
	// "${planNombreCas}";
	// public static final String VALOR_VARIABLE_PLAN_NOMBREEUS =
	// "${planNombreEus}";
	public static final String VALOR_VARIABLE_PLAN_NOMBRE_ENTIDAD = "${nombreEntidad}";
	public static final String VALOR_VARIABLE_PLAN_NOMBREPE = "${nombrePlan}";
	public static final String VALOR_VARIABLE_PLAN_ANYO_INI = "${planAnyoIni}";
	public static final String VALOR_VARIABLE_PLAN_ANYO_FIN = "${planAnyoFin}";
	public static final String VALOR_VARIABLE_PLAN_INDICE_OBLIGAT = "${planIndiceObligat}";
	public static final String VALOR_VARIABLE_PLAN_NIVEL_CUMPLIMIENTO = "${planNivelCumplimiento}";
	public static final String VALOR_VARIABLE_PLAN_PORCENTAJE_BILING = "${planPorcentajeBiling}";
	public static final String VALOR_VARIABLE_PLAN_FECHA_ACEPTACION = "${planFechaAceptacion}";
	public static final String VALOR_VARIABLE_PLAN_IMG_CABECERA = "${planImgCabecera}";
	public static final String VALOR_VARIABLE_PLAN_FILAS_EJES_ELEMENTOS = "${filasEjesElementos}";

	public static final String TIPO_IDENTIFICACION_CIF_BBDD = "2";

	public static final String SESSION_ENTIDAD_PRINCIPAL = "entidadPrincipal";

	public static final String VALOR_VARIABLE_PLAN_LIT_TIT_PLANE = "${litTitPlanE}";
	public static final String VALOR_VARIABLE_PLAN_LIT_NOMBRE_ENTIDAD = "${litNombreEntidad}";
	public static final String VALOR_VARIABLE_PLAN_LIT_NOMBRE_PLAN = "${litNombrePlan}";
	// public static final String VALOR_VARIABLE_PLAN_LIT_NOMBRECAS =
	// "${litNombreCas}";
	// public static final String VALOR_VARIABLE_PLAN_LIT_NOMBREEUS =
	// "${litNombreEus}";
	public static final String VALOR_VARIABLE_PLAN_LIT_ANYOINICIO = "${litAnyoInicio}";
	public static final String VALOR_VARIABLE_PLAN_LIT_ANYOFIN = "${litAnyoFin}";
	public static final String VALOR_VARIABLE_PLAN_LIT_INDICE = "${litIndice}";
	public static final String VALOR_VARIABLE_PLAN_LIT_NIVELCUMPL = "${litNivelCumpl}";
	public static final String VALOR_VARIABLE_PLAN_LIT_PORCENTAJE = "${litPorcentaje}";
	public static final String VALOR_VARIABLE_PLAN_LIT_FECHAACEP = "${litFechaAcep}";
	public static final String VALOR_VARIABLE_PLAN_LIT_NOMBRE = "${litNombre}";
	public static final String VALOR_VARIABLE_PLAN_LIT_OBJETIVO = "${litObjetivo}";
	public static final String VALOR_VARIABLE_PLAN_LIT_HASIERA = "${litHasiera}";
	public static final String VALOR_VARIABLE_PLAN_LIT_AURRE = "${litAurre}";
	public static final String VALOR_VARIABLE_PLAN_LIT_AMAI = "${litAmai}";
	public static final String VALOR_VARIABLE_PLAN_LIT_EUS = "${litEus}";
	public static final String VALOR_VARIABLE_PLAN_LIT_ELEBI = "${litElebi}";

	// Fin de constantes sobre la generacion de PDF
	// --------------------------------------------

	// TIMEOUT
	public static final int MAX_TIMEOUT = 100000;

	/**
	 * Constructor privado de la clase
	 */
	private Constantes() {
	}

}