Ejemplo n.º 1
0
        private static bool InDoubleKaoHuoTimeRange(DateTime dateTime)
        {
            DateTimeRange[] dateTimeRangeArray = SpecailTimeManager.GetTimeLimitsByID(2);
            bool            result;

            if (null == dateTimeRangeArray)
            {
                result = false;
            }
            else
            {
                int endMinute = 0;
                result = Global.JugeDateTimeInTimeRange(dateTime, dateTimeRangeArray, out endMinute, true);
            }
            return(result);
        }
Ejemplo n.º 2
0
        public static bool InSpercailTime(int spercailid)
        {
            DateTime dateTime = TimeUtil.NowDateTime();

            DateTimeRange[] dateTimeRangeArray = SpecailTimeManager.GetTimeLimitsByID(spercailid);
            bool            result;

            if (null == dateTimeRangeArray)
            {
                result = false;
            }
            else
            {
                int endMinute = 0;
                result = Global.JugeDateTimeInTimeRange(dateTime, dateTimeRangeArray, out endMinute, true);
            }
            return(result);
        }
Ejemplo n.º 3
0
        public static bool InSpercailTime(int spercailid)
        {
            DateTime dateTime = DateTime.Now;

            DateTimeRange[] dateTimeRangeArray = SpecailTimeManager.GetTimeLimitsByID(spercailid);
            if (null == dateTimeRangeArray)
            {
                return(false);
            }

            int endMinute = 0;

            if (!Global.JugeDateTimeInTimeRange(dateTime, dateTimeRangeArray, out endMinute))
            {
                return(false);
            }

            return(true);
        }