Changeset 1512
- Timestamp:
- Aug 9, 2012, 4:05:09 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGView.cs
r1511 r1512 255 255 this.lblResource = new System.Windows.Forms.Label(); 256 256 this.panelCenter = new System.Windows.Forms.Panel(); 257 this.calendarGrid1 = new IndianHealthService.ClinicalScheduling.CalendarGrid();258 257 this.ctxCalendarGrid = new System.Windows.Forms.ContextMenu(); 259 258 this.ctxCalGridAdd = new System.Windows.Forms.MenuItem(); … … 275 274 this.splitter1 = new System.Windows.Forms.Splitter(); 276 275 this.splitter2 = new System.Windows.Forms.Splitter(); 276 this.calendarGrid1 = new IndianHealthService.ClinicalScheduling.CalendarGrid(); 277 277 this.panelRight.SuspendLayout(); 278 278 this.panelClip.SuspendLayout(); … … 716 716 this.tvSchedules.Location = new System.Drawing.Point(0, 0); 717 717 this.tvSchedules.Name = "tvSchedules"; 718 this.tvSchedules.Size = new System.Drawing.Size(128, 3 89);718 this.tvSchedules.Size = new System.Drawing.Size(128, 347); 719 719 this.tvSchedules.Sorted = true; 720 720 this.tvSchedules.TabIndex = 1; … … 785 785 this.panelRight.Location = new System.Drawing.Point(996, 0); 786 786 this.panelRight.Name = "panelRight"; 787 this.panelRight.Size = new System.Drawing.Size(128, 3 89);787 this.panelRight.Size = new System.Drawing.Size(128, 347); 788 788 this.panelRight.TabIndex = 3; 789 789 this.panelRight.Visible = false; … … 881 881 this.panelCenter.Location = new System.Drawing.Point(136, 24); 882 882 this.panelCenter.Name = "panelCenter"; 883 this.panelCenter.Size = new System.Drawing.Size(857, 341);883 this.panelCenter.Size = new System.Drawing.Size(857, 299); 884 884 this.panelCenter.TabIndex = 7; 885 885 // … … 988 988 this.panelBottom.Controls.Add(this.statusBar1); 989 989 this.panelBottom.Dock = System.Windows.Forms.DockStyle.Bottom; 990 this.panelBottom.Location = new System.Drawing.Point(136, 3 65);990 this.panelBottom.Location = new System.Drawing.Point(136, 323); 991 991 this.panelBottom.Name = "panelBottom"; 992 992 this.panelBottom.Size = new System.Drawing.Size(857, 24); … … 1006 1006 this.splitter1.Location = new System.Drawing.Point(128, 24); 1007 1007 this.splitter1.Name = "splitter1"; 1008 this.splitter1.Size = new System.Drawing.Size(8, 3 65);1008 this.splitter1.Size = new System.Drawing.Size(8, 323); 1009 1009 this.splitter1.TabIndex = 9; 1010 1010 this.splitter1.TabStop = false; … … 1015 1015 this.splitter2.Location = new System.Drawing.Point(993, 24); 1016 1016 this.splitter2.Name = "splitter2"; 1017 this.splitter2.Size = new System.Drawing.Size(3, 3 65);1017 this.splitter2.Size = new System.Drawing.Size(3, 323); 1018 1018 this.splitter2.TabIndex = 10; 1019 1019 this.splitter2.TabStop = false; … … 1038 1038 this.calendarGrid1.Resources = ((System.Collections.ArrayList)(resources.GetObject("calendarGrid1.Resources"))); 1039 1039 this.calendarGrid1.SelectedAppointment = 0; 1040 this.calendarGrid1.Size = new System.Drawing.Size(857, 341);1040 this.calendarGrid1.Size = new System.Drawing.Size(857, 299); 1041 1041 this.calendarGrid1.StartDate = new System.DateTime(2003, 1, 27, 0, 0, 0, 0); 1042 1042 this.calendarGrid1.TabIndex = 0; … … 1051 1051 // 1052 1052 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); 1053 this.ClientSize = new System.Drawing.Size(1124, 3 89);1053 this.ClientSize = new System.Drawing.Size(1124, 347); 1054 1054 this.Controls.Add(this.panelCenter); 1055 1055 this.Controls.Add(this.panelBottom); … … 3455 3455 { 3456 3456 CGAppointment a = (CGAppointment) e.Data.GetData(typeof(CGAppointment)); 3457 if (m_ClipList.AppointmentTable.Contains((int) a.AppointmentKey))3458 {3459 return;3460 }3461 3457 3462 3458 if (a.RadiologyExamIEN.HasValue) … … 3466 3462 } 3467 3463 3468 m_ClipList.AddAppointment(a); 3469 lstClip.Items.Add(a); 3464 // SMH: We copy the appointment so that when we change it later we don't inadvertently 3465 // change the original appointment which may be shared by the grid. 3466 //TODO: This is very messy. We need a true constructor. 3467 CGAppointment apptcopy = new CGAppointment(); 3468 apptcopy.Patient = a.Patient; 3469 apptcopy.PatientID = a.PatientID; 3470 apptcopy.PatientName = a.PatientName; 3471 apptcopy.StartTime = a.StartTime; 3472 apptcopy.EndTime = a.EndTime; 3473 apptcopy.Resource = String.Empty; 3474 apptcopy.HealthRecordNumber = a.HealthRecordNumber; 3475 // Using a different key to prevent addition of the same patient twice rather than the ApptID. 3476 apptcopy.AppointmentKey = a.PatientID; // this is the key of the array list m_ClipList 3477 3478 //If patient is already here, bye! No need to add him/her/it again. 3479 if (m_ClipList.AppointmentTable.Contains((int)apptcopy.AppointmentKey)) 3480 { 3481 return; 3482 } 3483 3484 //SMH: Why are there two lists? Should have one. Oh well. 3485 //m_ClipList is used elsewhere. And it seems that they get out of sync sometimes. Agh! 3486 m_ClipList.AddAppointment(apptcopy); 3487 lstClip.Items.Add(apptcopy); 3470 3488 } 3471 3489 catch(Exception ex)
Note:
See TracChangeset
for help on using the changeset viewer.