using Exferia_Aplicacion.General; using Exferia_KairosPRO._1_Modelos; using GMap.NET; using GMap.NET.MapProviders; using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Exferia_KairosPRO.General { public class Variables_KairosPRO { #region Tipos de TareasPendientes public static INTERNO_CodigoDescripcion_Modelo G_MDL_TIPO_TAREAPENDIENTE_SOLICITUDAUSENTISMO = new INTERNO_CodigoDescripcion_Modelo("1", "Solicitud ausentismo"); public static INTERNO_CodigoDescripcion_Modelo G_MDL_TIPO_TAREAPENDIENTE_AUTORIZARHORASEXTRAS = new INTERNO_CodigoDescripcion_Modelo("2", "Autorizar horas extras"); public static INTERNO_CodigoDescripcion_Modelo G_MDL_TIPO_TAREAPENDIENTE_RESPUESTAEMPLEADO = new INTERNO_CodigoDescripcion_Modelo("3", "Respuesta empleado"); public static INTERNO_CodigoDescripcion_Modelo G_MDL_TIPO_TAREAPENDIENTE_RESPUESTASUPERVISOR = new INTERNO_CodigoDescripcion_Modelo("4", "Respuesta supervisor"); #endregion //VARIABLES CALENDARIO public static string G_STR_CALENDARIO_MES_SIMPLIFICADO_ENERO = "Ene."; public static string G_STR_CALENDARIO_MES_SIMPLIFICADO_FEBRERO = "Feb."; public static string G_STR_CALENDARIO_MES_SIMPLIFICADO_MARZO = "Mar."; public static string G_STR_CALENDARIO_MES_SIMPLIFICADO_ABRIL = "Abr."; public static string G_STR_CALENDARIO_MES_SIMPLIFICADO_MAYO = "May."; public static string G_STR_CALENDARIO_MES_SIMPLIFICADO_JUNIO = "Jun."; public static string G_STR_CALENDARIO_MES_SIMPLIFICADO_JULIO = "Jul."; public static string G_STR_CALENDARIO_MES_SIMPLIFICADO_AGOSTO = "Ago."; public static string G_STR_CALENDARIO_MES_SIMPLIFICADO_SEPTIEMBRE = "Sep."; public static string G_STR_CALENDARIO_MES_SIMPLIFICADO_OCTUBRE = "Oct."; public static string G_STR_CALENDARIO_MES_SIMPLIFICADO_NOVIEMBRE = "Nov."; public static string G_STR_CALENDARIO_MES_SIMPLIFICADO_DICIEMBRE = "Dic."; //VARIABLES CALENDARIO_DETALLE public static string G_STR_CALENDARIO_DETALLE_COMBOBOX_AUSENCIAPROGRAMADATIPO = "Tipo de ausencia programada"; public static string G_STR_CALENDARIO_DETALLE_COMBOBOX_PRESENCIAPROGRAMADATIPO = "Tipo de presencia programadas"; public static string G_STR_CALENDARIO_DETALLE_TITULO_DIAFESTIVO = "Día festivo"; public static string G_STR_CALENDARIO_DETALLE_TITULO_AUSENCIAPROGRAMADA = "Ausencia programada"; public static string G_STR_CALENDARIO_DETALLE_TITULO_PRESENCIAPROGRAMADA = "Presencia programada"; public static string G_STR_CONTROL_INCIDENCIAS_DIA_LABEL_PRESENCIA = "P"; public static string G_STR_CONTROL_INCIDENCIAS_DIA_LABEL_AUSENCIA = "A"; public static string G_STR_CONTROL_INCIDENCIAS_DIA_LABEL_FESTIVO = "F"; public static string G_STR_CONTROL_INCIDENCIAS_DIA_LABEL_MODIFICACION = "M"; public static string G_STR_INCIDENCIAS_SIN_JORNADA = "Sin Jornada"; public static int G_INT_CONTROL_INCIDENCIAS_DIA_VALOR_PRESENCIA = 0; public static int G_INT_CONTROL_INCIDENCIAS_DIA_VALOR_AUSENCIA = 1; public static int G_INT_CONTROL_INCIDENCIAS_DIA_VALOR_FESTIVO = 2; public static int G_INT_CONTROL_INCIDENCIAS_DIA_VALOR_RESTO = 3; public static string G_STR_FICHAJES_DETALLE_TOOLTIP_MAPA = "Fichaje"; public static string G_STR_PAUSAS_DETALLE_TOOLTIP_MAPA = "Pausa"; public static int G_INT_FICHAJEPAUSA_DETALLE_ZOOM_MAPA = 15; //VARIABLES CONSULTADETALLE JORNADAEMPLEADO public static string G_STR_CONSULTADETALLADA_PORJORNADAEMPLEADO_DIASTRABAJADOS = "Días trabajados"; public static string G_STR_CONSULTADETALLADA_PORJORNADAEMPLEADO_HORASTEORICAS = "Horas teóricas (hh:mm)"; public static string G_STR_CONSULTADETALLADA_PORJORNADAEMPLEADO_HORASREALES = "Horas reales (hh:mm)"; public static string G_STR_CONSULTADETALLADA_PORJORNADAEMPLEADO_HORASCONTABILIZABLES = "Horas contabilizables (hh:mm)"; public static string G_STR_CONSULTADETALLADA_PORJORNADAEMPLEADO_SALDO = "Saldo (hh:mm)"; public static string G_STR_CONSULTADETALLADA_PORJORNADAEMPLEADO_HORASEXTRAS_REALES = "H.E. reales (hh:mm)"; public static string G_STR_CONSULTADETALLADA_PORJORNADAEMPLEADO_HORASEXTRAS_REALES_PORCONVENIO = "H.E. reales convenio (hh:mm)"; public static string G_STR_CONSULTADETALLADA_PORJORNADAEMPLEADO_HORASEXTRAS_AUTORIZADAS = "H.E. autorizadas (hh:mm)"; public static string G_STR_CONSULTADETALLADA_PORJORNADAEMPLEADO_HORASEXTRAS_AUTORIZADAS_CONVENIO = "H.E. autorizadas convenio (hh:mm)"; public static string G_STR_CONSULTADETALLADA_PORJORNADAEMPLEADO_DIASFESTIVOS = "Días festivos"; public static string G_STR_CONSULTADETALLADA_PORJORNADAEMPLEADO_AUSENCIASPROGRAMADAS = "Ausencias programadas"; public static string G_STR_CONSULTADETALLADA_PORJORNADAEMPLEADO_PRESENCIASPROGRAMADAS = "Presencias programadas"; public static INTERNO_CodigoDescripcion_Modelo G_MDL_CONSULTADETALLADA_PORJORNADAEMPLEADO_DIASTRABAJADOS = new INTERNO_CodigoDescripcion_Modelo("1","Días trabajados"); public static INTERNO_CodigoDescripcion_Modelo G_MDL_CONSULTADETALLADA_PORJORNADAEMPLEADO_HORASTEORICAS = new INTERNO_CodigoDescripcion_Modelo("2", "Horas teóricas (hh:mm)"); public static INTERNO_CodigoDescripcion_Modelo G_MDL_CONSULTADETALLADA_PORJORNADAEMPLEADO_HORASREALES = new INTERNO_CodigoDescripcion_Modelo("3", "Horas reales (hh:mm)"); public static INTERNO_CodigoDescripcion_Modelo G_MDL_CONSULTADETALLADA_PORJORNADAEMPLEADO_HORASCONTABILIZABLES = new INTERNO_CodigoDescripcion_Modelo("4", "Horas contabilizables (hh:mm)"); public static INTERNO_CodigoDescripcion_Modelo G_MDL_CONSULTADETALLADA_PORJORNADAEMPLEADO_SALDO = new INTERNO_CodigoDescripcion_Modelo("5", "Saldo (hh:mm)"); public static INTERNO_CodigoDescripcion_Modelo G_MDL_CONSULTADETALLADA_PORJORNADAEMPLEADO_HORASEXTRAS_REALES = new INTERNO_CodigoDescripcion_Modelo("1", "H.E. reales (hh:mm)"); public static INTERNO_CodigoDescripcion_Modelo G_MDL_CONSULTADETALLADA_PORJORNADAEMPLEADO_HORASEXTRAS_REALES_CONVENIO = new INTERNO_CodigoDescripcion_Modelo("2", "H.E. reales convenio (hh:mm)"); public static INTERNO_CodigoDescripcion_Modelo G_MDL_CONSULTADETALLADA_PORJORNADAEMPLEADO_HORASEXTRAS_AUTORIZADAS = new INTERNO_CodigoDescripcion_Modelo("3", "H.E. autorizadas (hh:mm)"); public static INTERNO_CodigoDescripcion_Modelo G_MDL_CONSULTADETALLADA_PORJORNADAEMPLEADO_HORASEXTRAS_AUTORIZADAS_CONVENIO = new INTERNO_CodigoDescripcion_Modelo("4", "H.E. autorizadas convenio (hh:mm)"); public static INTERNO_CodigoDescripcion_Modelo G_MDL_CONSULTADETALLADA_PORJORNADAEMPLEADO_SOLICITUDESVARIAS = new INTERNO_CodigoDescripcion_Modelo("6", "Solicitudes varias (hh:mm)"); #region Consulta Externa public static INTERNO_CodigoDescripcion_Modelo G_MDL_CONSULTAEXTERNA_DIASTRABAJADOS = new INTERNO_CodigoDescripcion_Modelo("1", "Días trabajados"); public static INTERNO_CodigoDescripcion_Modelo G_MDL_CONSULTAEXTERNA_HORASTEORICAS = new INTERNO_CodigoDescripcion_Modelo("2", "Horas teóricas (hh:mm)"); public static INTERNO_CodigoDescripcion_Modelo G_MDL_CONSULTAEXTERNA_HORASREALES = new INTERNO_CodigoDescripcion_Modelo("3", "Horas reales (hh:mm)"); public static INTERNO_CodigoDescripcion_Modelo G_MDL_CONSULTAEXTERNA_HORASCONTABILIZABLES = new INTERNO_CodigoDescripcion_Modelo("4", "Horas contabilizables (hh:mm)"); public static INTERNO_CodigoDescripcion_Modelo G_MDL_CONSULTAEXTERNA_SALDO = new INTERNO_CodigoDescripcion_Modelo("5", "Saldo (hh:mm)"); public static INTERNO_CodigoDescripcion_Modelo G_MDL_CONSULTAEXTERNA_HORASEXTRAS_REALES = new INTERNO_CodigoDescripcion_Modelo("6", "H.E. reales (hh:mm)"); public static INTERNO_CodigoDescripcion_Modelo G_MDL_CONSULTAEXTERNA_HORASEXTRAS_REALES_CONVENIO = new INTERNO_CodigoDescripcion_Modelo("7", "H.E. reales convenio (hh:mm)"); public static INTERNO_CodigoDescripcion_Modelo G_MDL_CONSULTAEXTERNA_HORASEXTRAS_AUTORIZADAS = new INTERNO_CodigoDescripcion_Modelo("8", "H.E. autorizadas (hh:mm)"); public static INTERNO_CodigoDescripcion_Modelo G_MDL_CONSULTAEXTERNA_HORASEXTRAS_AUTORIZADAS_CONVENIO = new INTERNO_CodigoDescripcion_Modelo("9", "H.E. autorizadas convenio (hh:mm)"); public static INTERNO_CodigoDescripcion_Modelo G_MDL_CONSULTAEXTERNA_SOLICITUDESVARIAS = new INTERNO_CodigoDescripcion_Modelo("10", "Solicitudes varias (hh:mm)"); #endregion //VARIABLES DE TIPO DE INCIDENCIA POR DIA public static string G_STR_TIPO_INCIDENCIA_SINFICHAJES = "Sin fichajes"; public static string G_STR_TIPO_INCIDENCIA_SINVALIDAR = "Sin validar"; public static string G_STR_TIPO_INCIDENCIA_CONINCIDENCIAS = "Con incidencias"; public static string G_STR_TIPO_INCIDENCIA_SININCIDENCIAS = ""; //VARIABLES PROCESOS public static string G_STR_PROCESO_OPCIONES_BIOMETRIATRASPASO = "Proceso_Biometria_Traspaso"; #region Verificacion Fichajes public static int G_INT_NUMERODIASACONSIDERAR_FICHEROSVIEJOS = -3; public static Dictionary> G_DCT_JORNADASLINEASHORAFINALYAVALIDADAS = new Dictionary>(); public static Dictionary> G_DCT_JORNADASLINEASHORAINICIALYAVALIDADAS = new Dictionary>(); public static Dictionary> G_DCT_DETALLEFICHAJEYAVALIDADOS = new Dictionary>(); public static string G_STR_NOMBREFICHEROS_DICCIONARIO_JORNADASLINEASHORAINICIALYAVALIDADAS = "DCT_JORNADASLINEASHORAINICIALYAVALIDADAS.LOG"; public static string G_STR_NOMBREFICHEROS_DICCIONARIO_JORNADASLINEASHORAFINALYAVALIDADAS = "DCT_JORNADASLINEASHORAFINALYAVALIDADAS.LOG"; public static string G_STR_NOMBREFICHEROS_DICCIONARIO_DETALLEFICHAJEYAVALIDADOS = "DCT_DETALLEFICHAJEYAVALIDADOS.LOG"; public static long G_LNG_JORNADALINEA_TIPO_CODIGO_AUSENCIAOBLIGADA = 0; public static string G_STR_JORNADALINEA_TIPO_DESCRIPCION_AUSENCIAOBLIGADA = "Ausencia obligada"; public static long G_LNG_JORNADALINEA_TIPO_CODIGO_FLEXIBLE = 1; public static string G_STR_JORNADALINEA_TIPO_DESCRIPCION_FLEXIBLE = "Flexible"; public static long G_LNG_JORNADALINEA_TIPO_CODIGO_PRESENCIAOBLIGADA = 2; public static string G_STR_JORNADALINEA_TIPO_DESCRIPCION_PRESENCIAOBLIGADA = "Presencia obligada"; public static string G_STR_FICHAJE_ENTRADA = "E"; public static string G_STR_FICHAJE_SALIDA = "S"; public static string G_STR_FICHAJE_ENTRADA_NOMBRECOMPLETO = "Entrada"; public static string G_STR_FICHAJE_SALIDA_NOMBRECOMPLETO = "Salida"; public static string G_STR_FICHAJE_INICIO_NOMBRECOMPLETO = "Inicio"; public static string G_STR_FICHAJE_FIN_NOMBRECOMPLETO = "Fin"; public static string G_STR_FICHAJE_SINSALIDA = "Sin Salida"; public static string G_STR_PAUSAS_ENTRADA = "E"; public static string G_STR_PAUSAS_SALIDA = "S"; public static string G_STR_PAUSAS_ENTRADA_NOMBRECOMPLETO = "Entrada"; public static string G_STR_PAUSAS_SALIDA_NOMBRECOMPLETO = "Salida"; public static string G_STR_PAUSAS_SINENTRADA = "Sin Entrada"; public static int G_INT_TIPOINCIDENCIA_FICHAJE_FUERAJORNADA = 1; public static int G_INT_TIPOINCIDENCIA_FICHAJE_NOHAYFICHAJE = 2; public static int G_INT_TIPOINCIDENCIA_FICHAJE_HAYFICHAJENODEBERIA_AUSENCIAPROGRAMA = 3; public static int G_INT_TIPOINCIDENCIA_FICHAJE_HAYFICHAJENODEBERIA_DIAFESTIVO = 4; public static int G_INT_TIPOINCIDENCIA_FICHAJE_TIPOINCORRECTO_ENTRADASALIDA = 5; public static string G_STR_TIPOINCIDENCIA_FICHAJE_MENSAJE_EMAIL_FUERAJORNADA = "Fichaje fuera de rango"; public static string G_STR_TIPOINCIDENCIA_FICHAJE_MENSAJE_EMAIL_NOHAYFICHAJE = "No hay Fichaje"; public static string G_STR_TIPOINCIDENCIA_FICHAJE_MENSAJE_EMAIL_HAYFICHAJENODEBERIA_AUSENCIAPROGRAMA = "Ausencia programada: "; public static string G_STR_TIPOINCIDENCIA_FICHAJE_MENSAJE_EMAIL_HAYFICHAJENODEBERIA_DIAFESTIVO = "Día festivo: "; public static string G_STR_TIPOINCIDENCIA_FICHAJE_MENSAJE_EMAIL_ENTRADASALIDA = "Hay un entrada cuando deberia haber una salida"; public static string G_STR_TIPOINCIDENCIA_FICHAJE_MENSAJE_EMAIL_SALIDAENTRADA = "Hay un salida cuando deberia haber una entrada"; public static int G_INT_TIPOINCIDENCIA_PAUSAS_SALIDA_CON_OTRASALIDAABIERTA = 1; public static int G_INT_TIPOINCIDENCIA_PAUSAS_ENTRADA_SIN_SALIDA = 2; public static int G_INT_TIPOINCIDENCIA_PAUSAS_DURACION_SOBREPASADA_CONENTRADA = 3; public static int G_INT_TIPOINCIDENCIA_PAUSAS_NUMEROPAUSASPORJORNADA_SOBREPASADO = 4; public static int G_INT_TIPOINCIDENCIA_PAUSAS_DURACION_SOBREPASADA_SIN_ENTRADA = 5; public static string G_STR_TIPOINCIDENCIA_PAUSAS_MENSAJE_EMAIL_SALIDA_SIN_ENTRADA(string _str_Valor) { return "Pausa salida de tipo " + _str_Valor + " duplicada."; } public static string G_STR_TIPOINCIDENCIA_PAUSAS_MENSAJE_EMAIL_ENTRADA_SIN_SALIDA(string _str_Valor) { return "Pausa entrada de tipo " + _str_Valor + " sin una salida válida."; } public static string G_STR_TIPOINCIDENCIA_PAUSAS_MENSAJE_EMAIL_DURACION_SOBREPASADA_CONENTRADA(string _str_Valor) { return "Pausa de tipo " + _str_Valor + " sobrepasada la duración."; } public static string G_STR_TIPOINCIDENCIA_PAUSAS_MENSAJE_EMAIL_NUMEROPAUSASPORJORNADA_SOBREPASADO(string _str_Valor) { return "Pausa de tipo " + _str_Valor + " sobrepasada el número máximo por joranda."; } public static string G_STR_TIPOINCIDENCIA_PAUSAS_MENSAJE_EMAIL_DURACION_SOBREPASADA_SIN_ENTRADA(string _str_Valor) { return "Pausa de tipo " + _str_Valor + " sobrepasada la duración."; } public static string G_STR_TIPOJORNADADIA_PRESENCIAPROGRAMADA = "PP"; public static string G_STR_TIPOJORNADADIA_AUSENCIAPROGRAMADA = "AP"; public static string G_STR_TIPOJORNADADIA_DIAFESTIVO = "DF"; public static string G_STR_TIPOJORNADADIA_JORNADALABORAL = "JL"; public static string G_STR_DISPOSITIVOMODELO_AUTOMATICO = "Automatico"; public static string G_STR_DISPOSITIVOMODELO_DISPOSITIVO = "Dispositivo"; #endregion #region Envio Email public static string G_STR_TMP_RECORDATORIO_NOTIENEEMAIL(string str_NombreEmpleado) { return str_NombreEmpleado + " no tiene un email asignado."; } #endregion #region Programas Externos public static string G_STR_PROGRAMAEXTERNO_BIOSTAR_V_1_8 = "BioStar v1.8"; #endregion #region public static INTERNO_CodigoDescripcion_Modelo G_MDL_TIPOHORAEXTRA_FESTIVOS = new INTERNO_CodigoDescripcion_Modelo("1", "Días festivos"); public static INTERNO_CodigoDescripcion_Modelo G_MDL_TIPOHORAEXTRA_TIPOAUSENCIAPROGRAMADA = new INTERNO_CodigoDescripcion_Modelo("2", "Tipo ausencia programada"); public static INTERNO_CodigoDescripcion_Modelo G_MDL_TIPOHORAEXTRA_DIA = new INTERNO_CodigoDescripcion_Modelo("3", "Día de la semana"); public static INTERNO_CodigoDescripcion_Modelo G_MDL_TIPOHORAEXTRA_JORNADANORMAL = new INTERNO_CodigoDescripcion_Modelo("4", "Jornada normal"); #endregion #region public static int G_INT_ARBOLJERARQUICO_GRUPOS_TIPO_SOLICITUD = 1; public static int G_INT_ARBOLJERARQUICO_GRUPOS_TIPO_RESPUESTA = 2; public static int G_INT_ARBOLJERARQUICO_GRUPOS_TIPO_RESULTADO = 3; #endregion #region Estado Solicitud AusenciaProgramada public static INTERNO_CodigoDescripcion_Modelo G_MDL_ESTADOSOLICITUD_PENDIENTE = new INTERNO_CodigoDescripcion_Modelo("P", "Pendiente"); public static INTERNO_CodigoDescripcion_Modelo G_MDL_ESTADOSOLICITUD_ENCURSO = new INTERNO_CodigoDescripcion_Modelo("E", "En curso"); public static INTERNO_CodigoDescripcion_Modelo G_MDL_ESTADOSOLICITUD_ACEPTADO = new INTERNO_CodigoDescripcion_Modelo("A", "Aceptado"); public static INTERNO_CodigoDescripcion_Modelo G_MDL_ESTADOSOLICITUD_CANCELADO = new INTERNO_CodigoDescripcion_Modelo("C", "Cancelado"); public static Color G_COLOR_LETRA_ESTADOSOLICITUD_PENDIENTE = ColorTranslator.FromHtml("#c3b65e"); public static Color G_COLOR_LETRA_ESTADOSOLICITUD_ENCURSO = ColorTranslator.FromHtml("#5e86c3"); public static Color G_COLOR_LETRA_ESTADOSOLICITUD_ACEPTADO = ColorTranslator.FromHtml("#5ec368"); public static Color G_COLOR_LETRA_ESTADOSOLICITUD_CANCELADO = ColorTranslator.FromHtml("#c35e5e"); #endregion #region Tipos de dias public static INTERNO_CodigoDescripcion_Modelo G_MDL_TIPODIA_LABORABLE = new INTERNO_CodigoDescripcion_Modelo("3", "Laborables"); public static INTERNO_CodigoDescripcion_Modelo G_MDL_TIPODIA_HABIL = new INTERNO_CodigoDescripcion_Modelo("2", "Hábiles"); public static INTERNO_CodigoDescripcion_Modelo G_MDL_TIPODIA_NATURAL = new INTERNO_CodigoDescripcion_Modelo("1", "Naturales"); #endregion #region Tipo public static INTERNO_CodigoDescripcion_Modelo G_MDL_TIPO_ANUAL = new INTERNO_CodigoDescripcion_Modelo("1", "Anual"); public static INTERNO_CodigoDescripcion_Modelo G_MDL_TIPO_MENSUAL = new INTERNO_CodigoDescripcion_Modelo("2", "Mensual"); #endregion } }