Changeset 1069 for Scheduling/trunk
- Timestamp:
- Jan 17, 2011, 9:25:48 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGView.cs
r1066 r1069 13 13 { 14 14 /// <summary> 15 /// Summary description for CGView.15 /// Main Form: Shows Tree of Clinics and Calendar Grid 16 16 /// </summary> 17 17 public class CGView : System.Windows.Forms.Form … … 820 820 this.calendarGrid1.TabIndex = 0; 821 821 this.calendarGrid1.TimeScale = 20; 822 this.calendarGrid1.CGAppointmentAdded += new IndianHealthService.ClinicalScheduling.CGAppointmentChangedHandler(this.calendarGrid1_CGAppointmentAdded);823 this.calendarGrid1.CGAppointmentChanged += new IndianHealthService.ClinicalScheduling.CGAppointmentChangedHandler(this.calendarGrid1_CGAppointmentChanged);824 this.calendarGrid1.CGSelectionChanged += new IndianHealthService.ClinicalScheduling.CGSelectionChangedHandler(this.calendarGrid1_CGSelectionChanged);822 this.calendarGrid1.CGAppointmentAdded += new CalendarGrid.CGAppointmentChangedHandler(this.calendarGrid1_CGAppointmentAdded); 823 this.calendarGrid1.CGAppointmentChanged += new CalendarGrid.CGAppointmentChangedHandler(this.calendarGrid1_CGAppointmentChanged); 824 this.calendarGrid1.CGSelectionChanged += new CalendarGrid.CGSelectionChangedHandler(this.calendarGrid1_CGSelectionChanged); 825 825 this.calendarGrid1.DoubleClick += new System.EventHandler(this.calendarGrid1_DoubleClick); 826 826 // … … 1483 1483 1484 1484 //Position grid to 0700 1485 PositionGrid(cg,7);1485 cg.PositionGrid(7); 1486 1486 } 1487 1487 } … … 1573 1573 cg.TimeScale = nScale; 1574 1574 1575 PositionGrid(cg,7);1575 cg.PositionGrid(7); 1576 1576 1577 1577 //Get the OverBook and ModifySchedule permissions from ResourceUser table … … 1620 1620 v.calendarGrid1.Refresh(); 1621 1621 } 1622 }1623 1624 private void PositionGrid(CalendarGrid cg, int nHour)1625 {1626 //Position grid to nHour1627 int nRow = 0, nCol = 0;1628 DateTime dStart = DateTime.Today;1629 dStart = dStart.AddHours(nHour);1630 cg.GetCellFromTime(dStart, ref nRow, ref nCol, false, "");1631 int nHeight = cg.CellHeight + 10;1632 nHeight *= nRow;1633 cg.AutoScrollPosition = new Point(50, nHeight);1634 cg.Invalidate();1635 1622 } 1636 1623 … … 2429 2416 CalendarGrid cg = this.calendarGrid1; 2430 2417 cg.TimeScale = 10; 2431 PositionGrid(cg,7);2418 cg.PositionGrid(7); 2432 2419 } 2433 2420 … … 2436 2423 CalendarGrid cg = this.calendarGrid1; 2437 2424 cg.TimeScale = 15; 2438 PositionGrid(cg,7);2425 cg.PositionGrid(7); 2439 2426 } 2440 2427 … … 2443 2430 CalendarGrid cg = this.calendarGrid1; 2444 2431 cg.TimeScale = 20; 2445 PositionGrid(cg,7);2432 cg.PositionGrid(7); 2446 2433 } 2447 2434 … … 2450 2437 CalendarGrid cg = this.calendarGrid1; 2451 2438 cg.TimeScale = 30; 2452 PositionGrid(cg,7);2439 cg.PositionGrid(7); 2453 2440 } 2454 2441
Note:
See TracChangeset
for help on using the changeset viewer.