Exemple #1
0
        public bool IsOneDayPastAfterReturn(int IDREADER)
        {
            BJDatabaseWrapper dbw   = new BJDatabaseWrapper(this.Fund);
            DataTable         table = dbw.IsOneDayPastAfterReturn(this.ID, IDREADER);

            foreach (DataRow r in table.Rows)
            {
                TimeSpan ts = (DateTime.Now.Date - (DateTime)r["DATERETURN"]);
                if (ts.Days >= 1)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            return(true);
        }