Changeset 821 for Scheduling/trunk/cs/bsdx0200GUISourceCode/CGView.cs
- Timestamp:
- Jul 4, 2010, 1:25:13 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGView.cs
r804 r821 140 140 this.Document = doc; 141 141 this.Appointments = cgAppts; 142 this.Text = this.DocManager.ConnectInfo.UserName; 142 143 // Set username and division up top 144 this.Text = this.DocManager.ConnectInfo.UserName; 143 145 if (sText != null) 144 146 this.Text += " - " + sText; … … 269 271 this.lblResource = new System.Windows.Forms.Label(); 270 272 this.panelCenter = new System.Windows.Forms.Panel(); 273 this.calendarGrid1 = new IndianHealthService.ClinicalScheduling.CalendarGrid(); 271 274 this.ctxCalendarGrid = new System.Windows.Forms.ContextMenu(); 272 275 this.ctxCalGridAdd = new System.Windows.Forms.MenuItem(); … … 280 283 this.ctxCalGridWalkin = new System.Windows.Forms.MenuItem(); 281 284 this.menuItem10 = new System.Windows.Forms.MenuItem(); 285 this.ctxCalGridReprintRoutingSlip = new System.Windows.Forms.MenuItem(); 282 286 this.panelBottom = new System.Windows.Forms.Panel(); 283 287 this.statusBar1 = new System.Windows.Forms.StatusBar(); … … 285 289 this.splitter2 = new System.Windows.Forms.Splitter(); 286 290 this.printRoutingSlip = new System.Drawing.Printing.PrintDocument(); 287 this.calendarGrid1 = new IndianHealthService.ClinicalScheduling.CalendarGrid();288 this.ctxCalGridReprintRoutingSlip = new System.Windows.Forms.MenuItem();289 291 this.panelRight.SuspendLayout(); 290 292 this.panelClip.SuspendLayout(); … … 795 797 this.panelCenter.Size = new System.Drawing.Size(668, 321); 796 798 this.panelCenter.TabIndex = 7; 797 //798 // ctxCalendarGrid799 //800 this.ctxCalendarGrid.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {801 this.ctxCalGridAdd,802 this.ctxCalGridEdit,803 this.ctxCalGridDelete,804 this.ctxCalGridCheckIn,805 this.menuItem2,806 this.ctxCalGridNoShow,807 this.ctxCalGridNoShowUndo,808 this.menuItem9,809 this.ctxCalGridWalkin,810 this.menuItem10,811 this.ctxCalGridReprintRoutingSlip});812 this.ctxCalendarGrid.Popup += new System.EventHandler(this.ctxCalendarGrid_Popup);813 //814 // ctxCalGridAdd815 //816 this.ctxCalGridAdd.Index = 0;817 this.ctxCalGridAdd.Text = "Add Appointment";818 this.ctxCalGridAdd.Click += new System.EventHandler(this.ctxCalGridAdd_Click);819 //820 // ctxCalGridEdit821 //822 this.ctxCalGridEdit.Index = 1;823 this.ctxCalGridEdit.Text = "Edit Appointment";824 this.ctxCalGridEdit.Click += new System.EventHandler(this.ctxCalGridEdit_Click);825 //826 // ctxCalGridDelete827 //828 this.ctxCalGridDelete.Index = 2;829 this.ctxCalGridDelete.Text = "Cancel Appointment";830 this.ctxCalGridDelete.Click += new System.EventHandler(this.ctxCalGridDelete_Click);831 //832 // ctxCalGridCheckIn833 //834 this.ctxCalGridCheckIn.Index = 3;835 this.ctxCalGridCheckIn.Text = "Check In Patient";836 this.ctxCalGridCheckIn.Click += new System.EventHandler(this.ctxCalGridCheckIn_Click);837 //838 // menuItem2839 //840 this.menuItem2.Index = 4;841 this.menuItem2.Text = "-";842 //843 // ctxCalGridNoShow844 //845 this.ctxCalGridNoShow.Index = 5;846 this.ctxCalGridNoShow.Text = "Mark as No Show";847 this.ctxCalGridNoShow.Click += new System.EventHandler(this.ctxCalGridNoShow_Click);848 //849 // ctxCalGridNoShowUndo850 //851 this.ctxCalGridNoShowUndo.Index = 6;852 this.ctxCalGridNoShowUndo.Text = "Undo NoShow";853 this.ctxCalGridNoShowUndo.Click += new System.EventHandler(this.ctxCalGridNoShowUndo_Click);854 //855 // menuItem9856 //857 this.menuItem9.Index = 7;858 this.menuItem9.Text = "-";859 //860 // ctxCalGridWalkin861 //862 this.ctxCalGridWalkin.Index = 8;863 this.ctxCalGridWalkin.Text = "Create Wal&k-In Appointment";864 this.ctxCalGridWalkin.Click += new System.EventHandler(this.ctxCalGridWalkin_Click);865 //866 // menuItem10867 //868 this.menuItem10.Index = 9;869 this.menuItem10.Text = "-";870 //871 // panelBottom872 //873 this.panelBottom.Controls.Add(this.statusBar1);874 this.panelBottom.Dock = System.Windows.Forms.DockStyle.Bottom;875 this.panelBottom.Location = new System.Drawing.Point(136, 345);876 this.panelBottom.Name = "panelBottom";877 this.panelBottom.Size = new System.Drawing.Size(668, 24);878 this.panelBottom.TabIndex = 8;879 //880 // statusBar1881 //882 this.statusBar1.Dock = System.Windows.Forms.DockStyle.Fill;883 this.statusBar1.Location = new System.Drawing.Point(0, 0);884 this.statusBar1.Name = "statusBar1";885 this.statusBar1.Size = new System.Drawing.Size(668, 24);886 this.statusBar1.SizingGrip = false;887 this.statusBar1.TabIndex = 0;888 //889 // splitter1890 //891 this.splitter1.Location = new System.Drawing.Point(128, 24);892 this.splitter1.Name = "splitter1";893 this.splitter1.Size = new System.Drawing.Size(8, 345);894 this.splitter1.TabIndex = 9;895 this.splitter1.TabStop = false;896 //897 // splitter2898 //899 this.splitter2.Dock = System.Windows.Forms.DockStyle.Right;900 this.splitter2.Location = new System.Drawing.Point(804, 24);901 this.splitter2.Name = "splitter2";902 this.splitter2.Size = new System.Drawing.Size(3, 345);903 this.splitter2.TabIndex = 10;904 this.splitter2.TabStop = false;905 //906 // printRoutingSlip907 //908 this.printRoutingSlip.DocumentName = "Routing Slip";909 this.printRoutingSlip.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printRoutingSlip_PrintPage);910 799 // 911 800 // calendarGrid1 … … 937 826 this.calendarGrid1.CGAppointmentAdded += new IndianHealthService.ClinicalScheduling.CGAppointmentChangedHandler(this.calendarGrid1_CGAppointmentAdded); 938 827 // 828 // ctxCalendarGrid 829 // 830 this.ctxCalendarGrid.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { 831 this.ctxCalGridAdd, 832 this.ctxCalGridEdit, 833 this.ctxCalGridDelete, 834 this.ctxCalGridCheckIn, 835 this.menuItem2, 836 this.ctxCalGridNoShow, 837 this.ctxCalGridNoShowUndo, 838 this.menuItem9, 839 this.ctxCalGridWalkin, 840 this.menuItem10, 841 this.ctxCalGridReprintRoutingSlip}); 842 this.ctxCalendarGrid.Popup += new System.EventHandler(this.ctxCalendarGrid_Popup); 843 // 844 // ctxCalGridAdd 845 // 846 this.ctxCalGridAdd.Index = 0; 847 this.ctxCalGridAdd.Text = "Add Appointment"; 848 this.ctxCalGridAdd.Click += new System.EventHandler(this.ctxCalGridAdd_Click); 849 // 850 // ctxCalGridEdit 851 // 852 this.ctxCalGridEdit.Index = 1; 853 this.ctxCalGridEdit.Text = "Edit Appointment"; 854 this.ctxCalGridEdit.Click += new System.EventHandler(this.ctxCalGridEdit_Click); 855 // 856 // ctxCalGridDelete 857 // 858 this.ctxCalGridDelete.Index = 2; 859 this.ctxCalGridDelete.Text = "Cancel Appointment"; 860 this.ctxCalGridDelete.Click += new System.EventHandler(this.ctxCalGridDelete_Click); 861 // 862 // ctxCalGridCheckIn 863 // 864 this.ctxCalGridCheckIn.Index = 3; 865 this.ctxCalGridCheckIn.Text = "Check In Patient"; 866 this.ctxCalGridCheckIn.Click += new System.EventHandler(this.ctxCalGridCheckIn_Click); 867 // 868 // menuItem2 869 // 870 this.menuItem2.Index = 4; 871 this.menuItem2.Text = "-"; 872 // 873 // ctxCalGridNoShow 874 // 875 this.ctxCalGridNoShow.Index = 5; 876 this.ctxCalGridNoShow.Text = "Mark as No Show"; 877 this.ctxCalGridNoShow.Click += new System.EventHandler(this.ctxCalGridNoShow_Click); 878 // 879 // ctxCalGridNoShowUndo 880 // 881 this.ctxCalGridNoShowUndo.Index = 6; 882 this.ctxCalGridNoShowUndo.Text = "Undo NoShow"; 883 this.ctxCalGridNoShowUndo.Click += new System.EventHandler(this.ctxCalGridNoShowUndo_Click); 884 // 885 // menuItem9 886 // 887 this.menuItem9.Index = 7; 888 this.menuItem9.Text = "-"; 889 // 890 // ctxCalGridWalkin 891 // 892 this.ctxCalGridWalkin.Index = 8; 893 this.ctxCalGridWalkin.Text = "Create Wal&k-In Appointment"; 894 this.ctxCalGridWalkin.Click += new System.EventHandler(this.ctxCalGridWalkin_Click); 895 // 896 // menuItem10 897 // 898 this.menuItem10.Index = 9; 899 this.menuItem10.Text = "-"; 900 // 939 901 // ctxCalGridReprintRoutingSlip 940 902 // … … 942 904 this.ctxCalGridReprintRoutingSlip.Text = "&Reprint Routing Slip"; 943 905 this.ctxCalGridReprintRoutingSlip.Click += new System.EventHandler(this.ctxCalGridReprintRoutingSlip_Click); 906 // 907 // panelBottom 908 // 909 this.panelBottom.Controls.Add(this.statusBar1); 910 this.panelBottom.Dock = System.Windows.Forms.DockStyle.Bottom; 911 this.panelBottom.Location = new System.Drawing.Point(136, 345); 912 this.panelBottom.Name = "panelBottom"; 913 this.panelBottom.Size = new System.Drawing.Size(668, 24); 914 this.panelBottom.TabIndex = 8; 915 // 916 // statusBar1 917 // 918 this.statusBar1.Dock = System.Windows.Forms.DockStyle.Fill; 919 this.statusBar1.Location = new System.Drawing.Point(0, 0); 920 this.statusBar1.Name = "statusBar1"; 921 this.statusBar1.Size = new System.Drawing.Size(668, 24); 922 this.statusBar1.SizingGrip = false; 923 this.statusBar1.TabIndex = 0; 924 // 925 // splitter1 926 // 927 this.splitter1.Location = new System.Drawing.Point(128, 24); 928 this.splitter1.Name = "splitter1"; 929 this.splitter1.Size = new System.Drawing.Size(8, 345); 930 this.splitter1.TabIndex = 9; 931 this.splitter1.TabStop = false; 932 // 933 // splitter2 934 // 935 this.splitter2.Dock = System.Windows.Forms.DockStyle.Right; 936 this.splitter2.Location = new System.Drawing.Point(804, 24); 937 this.splitter2.Name = "splitter2"; 938 this.splitter2.Size = new System.Drawing.Size(3, 345); 939 this.splitter2.TabIndex = 10; 940 this.splitter2.TabStop = false; 941 // 942 // printRoutingSlip 943 // 944 this.printRoutingSlip.DocumentName = "Routing Slip"; 945 this.printRoutingSlip.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printRoutingSlip_PrintPage); 944 946 // 945 947 // CGView … … 2291 2293 { 2292 2294 Debug.Assert(this.InvokeRequired == false,"CGView.UpdateArrays InvokeRequired"); 2295 // This is where you set how the grid will look 2293 2296 try 2294 2297 { 2295 2298 this.calendarGrid1.AvailabilityArray = this.m_Document.AvailabilityArray; 2296 2299 this.calendarGrid1.Resources = this.m_Document.Resources; 2297 this.calendarGrid1.OnUpdateArrays(); 2300 // this.calendarGrid1.Columns = 7; //test 2301 this.calendarGrid1.StartDate = DateTime.Parse("10-10-2007"); // another test 2302 this.calendarGrid1.OnUpdateArrays(); // this draws the Calendar 2298 2303 this.lblResource.Text = this.m_Document.DocName; 2299 2304 this.calendarGrid1.Invalidate();
Note:
See TracChangeset
for help on using the changeset viewer.