Exemple #1
0
        internal bool CheckBothTimeHasFilledIn(OrderTemp orderTmp)
        {
            orderTmp.SelectByUserID();
            DateTime SQLInitialTime = Convert.ToDateTime(System.Data.SqlTypes.SqlDateTime.MinValue.Value);

            if (orderTmp.StartTime == SQLInitialTime || orderTmp.EndTime == SQLInitialTime)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }
Exemple #2
0
        public static bool CompareIsEarlierThanStartTime(DateTime EndTime, OrderTemp orderTmp)
        {
            orderTmp.SelectByUserID();
            if (orderTmp.StartTime == Convert.ToDateTime(System.Data.SqlTypes.SqlDateTime.MinValue.Value))
            {
                return(false);
            }
            int result = DateTime.Compare(orderTmp.StartTime, EndTime);

            if (result < 0)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }