Changeset 1123


Ignore:
Timestamp:
Mar 29, 2011, 10:29:04 AM (13 years ago)
Author:
Sam Habiel
Message:

Several Fixes found in my own testing:

  • CalendarGrid needs to have StartDate as 12:00:00, otherwise a subtraction to calculate the column number of each availability doesn't work properly
  • CGDocument needs to have SelectedDate set otherwise when it refreshes, it uses the selected date and makes the screen suddenly blank.
  • DApptSearch needs to make date/times proper to send over to DB. CGSchedLib.CreateAvailabilitySchedule needs the startDate to be the beginning of the day and end date to be the end of the day. Now this is done.
  • Updated exes.
Location:
Scheduling/trunk/cs/bsdx0200GUISourceCode
Files:
8 edited

Legend:

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

    r1122 r1123  
    338338            {
    339339                //Create new Document
     340                this.SelectedDate = dDate.Date;
     341
    340342                m_ScheduleType = (m_sResourcesArray.Count == 1) ? ScheduleType.Resource : ScheduleType.Clinic;
    341343                bool bRet = false;
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/CalendarGrid.cs

    r1106 r1123  
    734734        }
    735735
     736        /// <summary>
     737        /// Translates a StartTime into a Cell, for coloring
     738        /// </summary>
     739        /// <param name="dDate"></param>
     740        /// <param name="nRow"></param>
     741        /// <param name="nCol"></param>
     742        /// <param name="bStartCell"></param>
     743        /// <param name="sResource"></param>
     744        /// <returns></returns>
    736745        public bool GetCellFromTime(DateTime dDate, ref int nRow, ref int nCol, bool bStartCell, string sResource)
    737746        {
     
    14211430            set
    14221431            {
    1423                 this.m_dtStart = value;
     1432                //this.m_dtStart = value;
     1433                this.m_dtStart = value.Date; // only date portion!!!//smh
    14241434            }
    14251435        }
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/ClinicalScheduling.csproj.user

    r1122 r1123  
    3737    </RemoteDebugMachine>
    3838    <StartAction>Project</StartAction>
    39     <StartArguments>
    40     </StartArguments>
     39    <StartArguments>/s=172.16.16.108 /p=9250 /a=BASMA.ALDWAIRI /v=SELEN.123 /culture=ar-JO</StartArguments>
    4140    <StartPage>
    4241    </StartPage>
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/DApptSearch.cs

    r1106 r1123  
    245245
    246246                                //End
    247                                 this.m_dEnd = this.dtEnd.Value;
     247                this.m_dEnd = this.dtEnd.Value;
    248248                        }               
    249249                }
     
    727727            //Get Availabilities and Appointments from the DB
    728728            //NB: m_sAmpm and m_sWeekDays don't have an effect on the M side side right now
    729                         string sSearchInfo = "1|" + m_sAmpm + "|" + m_sWeekDays;
     729            m_dStart = m_dStart.Date; // move to 1200
     730            m_dEnd = m_dEnd.Date.AddHours(23).AddMinutes(59).AddSeconds(59); //move to 235959
     731            string sSearchInfo = "1|" + m_sAmpm + "|" + m_sWeekDays;
    730732                        DataTable m_availTable = CGSchedLib.CreateAvailabilitySchedule(m_DocManager, m_alResources, m_dStart, m_dEnd, m_alAccessTypes, ScheduleType.Resource, sSearchInfo);
    731733            DataTable m_apptTable = CGSchedLib.CreateAppointmentSchedule(m_DocManager, m_alResources, m_dStart, m_dEnd);
Note: See TracChangeset for help on using the changeset viewer.