Beispiel #1
0
        private int recIDHORA()
        {
            int bloque = 0;

            //### Validar Día Feriado
            e_expedientes expB = new e_expedientes();

            if (expB.EsFeriado() == true)
            {
                bloque = 1;
            }
            else
            {
                try
                {
                    int           id  = 0;
                    e_expedientes exp = new e_expedientes(0, "", "", 0.0, "", "", false, 0.0, DateTime.Now, DateTime.Now, "", "", "", "", "", "", "", 0, 0, 0, false, 0, 0, "", "");
                    fecha_registro = informacionExpediente1.Controls["textFechaHoraAlarma"].Text;
                    arreglo_1      = fecha_registro.Split(' ');
                    arreglo_2      = arreglo_1[1].Split(':');
                    hora_decimal   = arreglo_2[0].ToString() + "." + arreglo_2[1].ToString() + arreglo_2[2].ToString();
                    bloque         = exp.recuperarIDHoraDLL(hora_decimal);
                }
                catch (Exception exe)
                {
                }

                //catch (Exception myErr)
                //{
                //    throw (new Exception(myErr.ToString() + reqSQL));
                //}
            }
            return(bloque);
        }