Ignore:
Timestamp:
Mar 3, 2011, 4:44:18 AM (13 years ago)
Author:
Sam Habiel
Message:

DPatientLookup.cs: Usings Cleanup
DApptSearch: Extensive refactoring. Now uses new algorithm to find appointments. Now outputs CGAvailability
CGView: Appointments checked in now set the Checkin time on the appointment structure; changes to support DApptSearch modified output.
CGSchedLib: Extensive refactoring; only 2 methods remain: CreateAppointmentSchedule and CreateAvailabilitySchedule
CGDocument: SlotsAvailable uses a new algorithm
CGAVView: Uses CalendarGrid.TimesOverlap instead of the removed one in CGSchedLib
CGAVDocument: Uses CalendarGrid.TimesOverlap instead of the removed one in CGSchedLib; CreateAssignedSlotSchedule reassigned to CreateAvailabilitySchedule

File:
1 edited

Legend:

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

    r1095 r1097  
    617617            this.tvSchedules.Location = new System.Drawing.Point(0, 0);
    618618            this.tvSchedules.Name = "tvSchedules";
    619             this.tvSchedules.Size = new System.Drawing.Size(128, 400);
     619            this.tvSchedules.Size = new System.Drawing.Size(128, 358);
    620620            this.tvSchedules.Sorted = true;
    621621            this.tvSchedules.TabIndex = 1;
     
    664664            this.panelRight.Location = new System.Drawing.Point(941, 0);
    665665            this.panelRight.Name = "panelRight";
    666             this.panelRight.Size = new System.Drawing.Size(128, 400);
     666            this.panelRight.Size = new System.Drawing.Size(128, 358);
    667667            this.panelRight.TabIndex = 3;
    668668            this.panelRight.Visible = false;
     
    737737            this.dateTimePicker1.Dock = System.Windows.Forms.DockStyle.Right;
    738738            this.dateTimePicker1.DropDownAlign = System.Windows.Forms.LeftRightAlignment.Right;
    739             this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Short;
    740             this.dateTimePicker1.Location = new System.Drawing.Point(685, 0);
     739            this.dateTimePicker1.Location = new System.Drawing.Point(607, 0);
    741740            this.dateTimePicker1.Name = "dateTimePicker1";
    742             this.dateTimePicker1.Size = new System.Drawing.Size(128, 20);
     741            this.dateTimePicker1.Size = new System.Drawing.Size(206, 20);
    743742            this.dateTimePicker1.TabIndex = 1;
    744743            this.dateTimePicker1.CloseUp += new System.EventHandler(this.dateTimePicker1_CloseUp);
     
    761760            this.panelCenter.Location = new System.Drawing.Point(136, 24);
    762761            this.panelCenter.Name = "panelCenter";
    763             this.panelCenter.Size = new System.Drawing.Size(802, 352);
     762            this.panelCenter.Size = new System.Drawing.Size(802, 310);
    764763            this.panelCenter.TabIndex = 7;
    765764            //
     
    847846            this.panelBottom.Controls.Add(this.statusBar1);
    848847            this.panelBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
    849             this.panelBottom.Location = new System.Drawing.Point(136, 376);
     848            this.panelBottom.Location = new System.Drawing.Point(136, 334);
    850849            this.panelBottom.Name = "panelBottom";
    851850            this.panelBottom.Size = new System.Drawing.Size(802, 24);
     
    865864            this.splitter1.Location = new System.Drawing.Point(128, 24);
    866865            this.splitter1.Name = "splitter1";
    867             this.splitter1.Size = new System.Drawing.Size(8, 376);
     866            this.splitter1.Size = new System.Drawing.Size(8, 334);
    868867            this.splitter1.TabIndex = 9;
    869868            this.splitter1.TabStop = false;
     
    874873            this.splitter2.Location = new System.Drawing.Point(938, 24);
    875874            this.splitter2.Name = "splitter2";
    876             this.splitter2.Size = new System.Drawing.Size(3, 376);
     875            this.splitter2.Size = new System.Drawing.Size(3, 334);
    877876            this.splitter2.TabIndex = 10;
    878877            this.splitter2.TabStop = false;
     
    902901            this.calendarGrid1.Resources = ((System.Collections.ArrayList)(resources.GetObject("calendarGrid1.Resources")));
    903902            this.calendarGrid1.SelectedAppointment = 0;
    904             this.calendarGrid1.Size = new System.Drawing.Size(802, 352);
     903            this.calendarGrid1.Size = new System.Drawing.Size(802, 310);
    905904            this.calendarGrid1.StartDate = new System.DateTime(2003, 1, 27, 0, 0, 0, 0);
    906905            this.calendarGrid1.TabIndex = 0;
     
    915914            //
    916915            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
    917             this.ClientSize = new System.Drawing.Size(1069, 400);
     916            this.ClientSize = new System.Drawing.Size(1069, 358);
    918917            this.Controls.Add(this.panelCenter);
    919918            this.Controls.Add(this.panelBottom);
     
    19881987                this.Document.CheckInAppointment(nApptID, dtCheckIn);
    19891988
    1990                 //Tell appointment that it is checked in--smh cancel that!
    1991                 //a.CheckInTime = DateTime.Now;
     1989                //Tell appointment that it is checked in
     1990                a.CheckInTime = DateTime.Now;
    19921991
    19931992                //smh new code
     
    19961995                // end new code
    19971996
    1998                 //redraw grid (would this work???)
     1997                //redraw grid
    19991998                                this.calendarGrid1.Invalidate();
    20001999                        }
     
    24752474                return;
    24762475
    2477             string sResource = dSearch.SelectedResource;
     2476            CGAvailability av = dSearch.SelectedAvailability;
     2477
    24782478            ArrayList alResource = new ArrayList();
    2479             alResource.Add(sResource);
    2480             DateTime sDate = dSearch.SelectedDate;
    2481             m_sDocName = sResource;
     2479            alResource.Add(av.ResourceList);
     2480            DateTime sDate = av.StartTime;
     2481            m_sDocName = av.ResourceList;
    24822482            OpenSelectedSchedule(alResource, sDate);
    24832483
Note: See TracChangeset for help on using the changeset viewer.