Ignore:
Timestamp:
Dec 8, 2010, 9:44:29 AM (14 years ago)
Author:
Sam Habiel
Message:

UCPatientAppts: Now uses LINQ. Mumps side fixes deal with other bugs.
calendarGrid: Fixes 1 day drawing bug showing yesterday's appointments
CGAVView: Cosmetic changes so far
CGDocument: Documentation change due to change in return values from Mumps.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/CalendarGrid.cs

    r1027 r1038  
    667667            int startTotalMinutesoffset = (int) startTime.TimeOfDay.TotalMinutes;
    668668            int endTotalMinutesoffset = (int) endTime.TimeOfDay.TotalMinutes;
     669           
     670            // To fix a bug with 1 day view: if the start time of appt is before Calendar Start Date, don't draw anything.
     671            if (startTime < this.m_dtStart)
     672            {
     673                bRet = false;
     674                return rectangle;
     675            }
     676           
    669677            // if grid has more than one reource
    670678            if (this.m_sResourcesArray.Count > 1)
     
    677685            else
    678686            {
    679                 //columnToPutAppt = (startTime - this.m_dtStart).Days + 1;
    680                 //test sam
    681687                columnToPutAppt = (startTime - this.m_dtStart).Days + 1;
    682688            }
    683             if (columnToPutAppt < 1)
    684             {
    685                 bRet = false;
    686                 return rectangle;
    687             }
     689            // this if should not get tripped; it did the same function as the new first if check.
     690            //if (columnToPutAppt < 1)
     691            //{
     692            //    bRet = false;
     693            //    return rectangle;
     694            //}
    688695            originX = col0Width + (cellWidth * (columnToPutAppt - 1));
    689696            int num8 = startTotalMinutesoffset + this.m_nTimeScale;
Note: See TracChangeset for help on using the changeset viewer.