Changeset 1125
- Timestamp:
- Mar 30, 2011, 5:42:22 AM (14 years ago)
- Location:
- Scheduling/trunk/cs/bsdx0200GUISourceCode
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGView.cs
r1124 r1125 240 240 this.lblResource = new System.Windows.Forms.Label(); 241 241 this.panelCenter = new System.Windows.Forms.Panel(); 242 this.calendarGrid1 = new IndianHealthService.ClinicalScheduling.CalendarGrid(); 242 243 this.ctxCalendarGrid = new System.Windows.Forms.ContextMenu(); 243 244 this.ctxCalGridAdd = new System.Windows.Forms.MenuItem(); … … 257 258 this.splitter1 = new System.Windows.Forms.Splitter(); 258 259 this.splitter2 = new System.Windows.Forms.Splitter(); 259 this.calendarGrid1 = new IndianHealthService.ClinicalScheduling.CalendarGrid();260 260 this.panelRight.SuspendLayout(); 261 261 this.panelClip.SuspendLayout(); … … 629 629 this.tvSchedules.Location = new System.Drawing.Point(0, 0); 630 630 this.tvSchedules.Name = "tvSchedules"; 631 this.tvSchedules.Size = new System.Drawing.Size(128, 204);631 this.tvSchedules.Size = new System.Drawing.Size(128, 485); 632 632 this.tvSchedules.Sorted = true; 633 633 this.tvSchedules.TabIndex = 1; … … 698 698 this.panelRight.Location = new System.Drawing.Point(996, 0); 699 699 this.panelRight.Name = "panelRight"; 700 this.panelRight.Size = new System.Drawing.Size(128, 204);700 this.panelRight.Size = new System.Drawing.Size(128, 485); 701 701 this.panelRight.TabIndex = 3; 702 702 this.panelRight.Visible = false; … … 794 794 this.panelCenter.Location = new System.Drawing.Point(136, 24); 795 795 this.panelCenter.Name = "panelCenter"; 796 this.panelCenter.Size = new System.Drawing.Size(857, 156);796 this.panelCenter.Size = new System.Drawing.Size(857, 437); 797 797 this.panelCenter.TabIndex = 7; 798 //799 // ctxCalendarGrid800 //801 this.ctxCalendarGrid.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {802 this.ctxCalGridAdd,803 this.ctxCalGridEdit,804 this.ctxCalGridDelete,805 this.ctxCalGridCheckIn,806 this.ctxCalGridUndoCheckin,807 this.menuItem2,808 this.ctxCalGridNoShow,809 this.ctxCalGridNoShowUndo,810 this.menuItem9,811 this.ctxCalGridWalkin,812 this.menuItem10,813 this.ctxCalGridReprintApptSlip});814 this.ctxCalendarGrid.Popup += new System.EventHandler(this.ctxCalendarGrid_Popup);815 //816 // ctxCalGridAdd817 //818 this.ctxCalGridAdd.Index = 0;819 this.ctxCalGridAdd.Text = "Add Appointment";820 this.ctxCalGridAdd.Click += new System.EventHandler(this.ctxCalGridAdd_Click);821 //822 // ctxCalGridEdit823 //824 this.ctxCalGridEdit.Index = 1;825 this.ctxCalGridEdit.Text = "Edit Appointment";826 this.ctxCalGridEdit.Click += new System.EventHandler(this.ctxCalGridEdit_Click);827 //828 // ctxCalGridDelete829 //830 this.ctxCalGridDelete.Index = 2;831 this.ctxCalGridDelete.Text = "Cancel Appointment";832 this.ctxCalGridDelete.Click += new System.EventHandler(this.ctxCalGridDelete_Click);833 //834 // ctxCalGridCheckIn835 //836 this.ctxCalGridCheckIn.Index = 3;837 this.ctxCalGridCheckIn.Text = "Check In Patient";838 this.ctxCalGridCheckIn.Click += new System.EventHandler(this.ctxCalGridCheckIn_Click);839 //840 // ctxCalGridUndoCheckin841 //842 this.ctxCalGridUndoCheckin.Index = 4;843 this.ctxCalGridUndoCheckin.Text = "&Undo Check In";844 this.ctxCalGridUndoCheckin.Click += new System.EventHandler(this.ctxCalGridUndoCheckin_Click);845 //846 // menuItem2847 //848 this.menuItem2.Index = 5;849 this.menuItem2.Text = "-";850 //851 // ctxCalGridNoShow852 //853 this.ctxCalGridNoShow.Index = 6;854 this.ctxCalGridNoShow.Text = "Mark as No Show";855 this.ctxCalGridNoShow.Click += new System.EventHandler(this.ctxCalGridNoShow_Click);856 //857 // ctxCalGridNoShowUndo858 //859 this.ctxCalGridNoShowUndo.Index = 7;860 this.ctxCalGridNoShowUndo.Text = "Undo NoShow";861 this.ctxCalGridNoShowUndo.Click += new System.EventHandler(this.ctxCalGridNoShowUndo_Click);862 //863 // menuItem9864 //865 this.menuItem9.Index = 8;866 this.menuItem9.Text = "-";867 //868 // ctxCalGridWalkin869 //870 this.ctxCalGridWalkin.Index = 9;871 this.ctxCalGridWalkin.Text = "Create Wal&k-In Appointment";872 this.ctxCalGridWalkin.Click += new System.EventHandler(this.ctxCalGridWalkin_Click);873 //874 // menuItem10875 //876 this.menuItem10.Index = 10;877 this.menuItem10.Text = "-";878 //879 // ctxCalGridReprintApptSlip880 //881 this.ctxCalGridReprintApptSlip.Index = 11;882 this.ctxCalGridReprintApptSlip.Text = "&Reprint Appointment Slip";883 this.ctxCalGridReprintApptSlip.Click += new System.EventHandler(this.ctxCalGridReprintApptSlip_Click);884 //885 // panelBottom886 //887 this.panelBottom.Controls.Add(this.statusBar1);888 this.panelBottom.Dock = System.Windows.Forms.DockStyle.Bottom;889 this.panelBottom.Location = new System.Drawing.Point(136, 180);890 this.panelBottom.Name = "panelBottom";891 this.panelBottom.Size = new System.Drawing.Size(857, 24);892 this.panelBottom.TabIndex = 8;893 //894 // statusBar1895 //896 this.statusBar1.Dock = System.Windows.Forms.DockStyle.Fill;897 this.statusBar1.Location = new System.Drawing.Point(0, 0);898 this.statusBar1.Name = "statusBar1";899 this.statusBar1.Size = new System.Drawing.Size(857, 24);900 this.statusBar1.SizingGrip = false;901 this.statusBar1.TabIndex = 0;902 //903 // splitter1904 //905 this.splitter1.Location = new System.Drawing.Point(128, 24);906 this.splitter1.Name = "splitter1";907 this.splitter1.Size = new System.Drawing.Size(8, 180);908 this.splitter1.TabIndex = 9;909 this.splitter1.TabStop = false;910 //911 // splitter2912 //913 this.splitter2.Dock = System.Windows.Forms.DockStyle.Right;914 this.splitter2.Location = new System.Drawing.Point(993, 24);915 this.splitter2.Name = "splitter2";916 this.splitter2.Size = new System.Drawing.Size(3, 180);917 this.splitter2.TabIndex = 10;918 this.splitter2.TabStop = false;919 798 // 920 799 // calendarGrid1 … … 937 816 this.calendarGrid1.Resources = ((System.Collections.ArrayList)(resources.GetObject("calendarGrid1.Resources"))); 938 817 this.calendarGrid1.SelectedAppointment = 0; 939 this.calendarGrid1.Size = new System.Drawing.Size(857, 156);818 this.calendarGrid1.Size = new System.Drawing.Size(857, 437); 940 819 this.calendarGrid1.StartDate = new System.DateTime(2003, 1, 27, 0, 0, 0, 0); 941 820 this.calendarGrid1.TabIndex = 0; … … 947 826 this.calendarGrid1.MouseEnter += new System.EventHandler(this.calendarGrid1_MouseEnter); 948 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.ctxCalGridUndoCheckin, 836 this.menuItem2, 837 this.ctxCalGridNoShow, 838 this.ctxCalGridNoShowUndo, 839 this.menuItem9, 840 this.ctxCalGridWalkin, 841 this.menuItem10, 842 this.ctxCalGridReprintApptSlip}); 843 this.ctxCalendarGrid.Popup += new System.EventHandler(this.ctxCalendarGrid_Popup); 844 // 845 // ctxCalGridAdd 846 // 847 this.ctxCalGridAdd.Index = 0; 848 this.ctxCalGridAdd.Text = "Add Appointment"; 849 this.ctxCalGridAdd.Click += new System.EventHandler(this.ctxCalGridAdd_Click); 850 // 851 // ctxCalGridEdit 852 // 853 this.ctxCalGridEdit.Index = 1; 854 this.ctxCalGridEdit.Text = "Edit Appointment"; 855 this.ctxCalGridEdit.Click += new System.EventHandler(this.ctxCalGridEdit_Click); 856 // 857 // ctxCalGridDelete 858 // 859 this.ctxCalGridDelete.Index = 2; 860 this.ctxCalGridDelete.Text = "Cancel Appointment"; 861 this.ctxCalGridDelete.Click += new System.EventHandler(this.ctxCalGridDelete_Click); 862 // 863 // ctxCalGridCheckIn 864 // 865 this.ctxCalGridCheckIn.Index = 3; 866 this.ctxCalGridCheckIn.Text = "Check In Patient"; 867 this.ctxCalGridCheckIn.Click += new System.EventHandler(this.ctxCalGridCheckIn_Click); 868 // 869 // ctxCalGridUndoCheckin 870 // 871 this.ctxCalGridUndoCheckin.Index = 4; 872 this.ctxCalGridUndoCheckin.Text = "&Undo Check In"; 873 this.ctxCalGridUndoCheckin.Click += new System.EventHandler(this.ctxCalGridUndoCheckin_Click); 874 // 875 // menuItem2 876 // 877 this.menuItem2.Index = 5; 878 this.menuItem2.Text = "-"; 879 // 880 // ctxCalGridNoShow 881 // 882 this.ctxCalGridNoShow.Index = 6; 883 this.ctxCalGridNoShow.Text = "Mark as No Show"; 884 this.ctxCalGridNoShow.Click += new System.EventHandler(this.ctxCalGridNoShow_Click); 885 // 886 // ctxCalGridNoShowUndo 887 // 888 this.ctxCalGridNoShowUndo.Index = 7; 889 this.ctxCalGridNoShowUndo.Text = "Undo NoShow"; 890 this.ctxCalGridNoShowUndo.Click += new System.EventHandler(this.ctxCalGridNoShowUndo_Click); 891 // 892 // menuItem9 893 // 894 this.menuItem9.Index = 8; 895 this.menuItem9.Text = "-"; 896 // 897 // ctxCalGridWalkin 898 // 899 this.ctxCalGridWalkin.Index = 9; 900 this.ctxCalGridWalkin.Text = "Create Wal&k-In Appointment"; 901 this.ctxCalGridWalkin.Click += new System.EventHandler(this.ctxCalGridWalkin_Click); 902 // 903 // menuItem10 904 // 905 this.menuItem10.Index = 10; 906 this.menuItem10.Text = "-"; 907 // 908 // ctxCalGridReprintApptSlip 909 // 910 this.ctxCalGridReprintApptSlip.Index = 11; 911 this.ctxCalGridReprintApptSlip.Text = "&Reprint Appointment Slip"; 912 this.ctxCalGridReprintApptSlip.Click += new System.EventHandler(this.ctxCalGridReprintApptSlip_Click); 913 // 914 // panelBottom 915 // 916 this.panelBottom.Controls.Add(this.statusBar1); 917 this.panelBottom.Dock = System.Windows.Forms.DockStyle.Bottom; 918 this.panelBottom.Location = new System.Drawing.Point(136, 461); 919 this.panelBottom.Name = "panelBottom"; 920 this.panelBottom.Size = new System.Drawing.Size(857, 24); 921 this.panelBottom.TabIndex = 8; 922 // 923 // statusBar1 924 // 925 this.statusBar1.Dock = System.Windows.Forms.DockStyle.Fill; 926 this.statusBar1.Location = new System.Drawing.Point(0, 0); 927 this.statusBar1.Name = "statusBar1"; 928 this.statusBar1.Size = new System.Drawing.Size(857, 24); 929 this.statusBar1.SizingGrip = false; 930 this.statusBar1.TabIndex = 0; 931 // 932 // splitter1 933 // 934 this.splitter1.Location = new System.Drawing.Point(128, 24); 935 this.splitter1.Name = "splitter1"; 936 this.splitter1.Size = new System.Drawing.Size(8, 461); 937 this.splitter1.TabIndex = 9; 938 this.splitter1.TabStop = false; 939 // 940 // splitter2 941 // 942 this.splitter2.Dock = System.Windows.Forms.DockStyle.Right; 943 this.splitter2.Location = new System.Drawing.Point(993, 24); 944 this.splitter2.Name = "splitter2"; 945 this.splitter2.Size = new System.Drawing.Size(3, 461); 946 this.splitter2.TabIndex = 10; 947 this.splitter2.TabStop = false; 948 // 949 949 // CGView 950 950 // 951 951 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); 952 this.ClientSize = new System.Drawing.Size(1124, 204);952 this.ClientSize = new System.Drawing.Size(1124, 485); 953 953 this.Controls.Add(this.panelCenter); 954 954 this.Controls.Add(this.panelBottom); … … 2131 2131 try 2132 2132 { 2133 CGAppointment appt = new CGAppointment(); 2133 2134 2134 2135 2135 //Get Time and Resource from Selected Cell … … 2193 2193 } 2194 2194 2195 CGAppointment appt = new CGAppointment(); 2195 2196 appt.PatientID = Convert.ToInt32(dPat.PatientIEN); 2196 2197 appt.PatientName = dPat.PatientName; … … 2200 2201 appt.HealthRecordNumber = dPat.HealthRecordNumber; 2201 2202 2203 appt.Patient = new Patient 2204 { 2205 DFN = Convert.ToInt32(dPat.PatientIEN), 2206 ID = dPat.PatientPID, 2207 Name = dPat.PatientName, 2208 HRN = dPat.HealthRecordNumber, 2209 DOB = dPat.PatientDOB 2210 }; 2211 2202 2212 //smh: Takes too long 2203 2213 //this.Document.RefreshDocument(); … … 2210 2220 AppointmentCheckIn(); 2211 2221 2212 //Show the new set of appointments by calling UpdateArrays. Fetches Document's CGAppointments2222 //Show the new set of appointments by calling UpdateArrays. 2213 2223 this.UpdateArrays(); 2214 2224 -
Scheduling/trunk/cs/bsdx0200GUISourceCode/DPatientLookup.cs
r1097 r1125 226 226 this.m_sPatientIEN = r["IEN"].ToString(); 227 227 this.m_sPatientPID = r["PID"].ToString(); 228 DateTime d = Convert.ToDateTime(r["DOB"]); 229 string sFormat = System.Globalization.DateTimeFormatInfo.CurrentInfo.ShortDatePattern; 230 this.m_sPatientDOB = d.ToString(sFormat); 228 231 this.cmdOK.Enabled = true; 229 232 this.AcceptButton = cmdOK; … … 369 372 } 370 373 374 public DateTime PatientDOB 375 { 376 get 377 { 378 return DateTime.Parse(m_sPatientDOB); 379 } 380 } 381 382 public string PatientPID 383 { 384 get 385 { 386 return m_sPatientPID; 387 } 388 } 389 371 390 #endregion //Properties 372 391 -
Scheduling/trunk/cs/bsdx0200GUISourceCode/Printing.cs
r1112 r1125 615 615 sb.AppendLine(); 616 616 sb.AppendLine("Age:" + "\t" + appt.Patient.UserFriendlyAge); 617 sb.AppendLine();618 sb.AppendLine("Sex:" + "\t" + appt.Patient.Sex.ToString());617 //sb.AppendLine(); 618 //sb.AppendLine("Sex:" + "\t" + appt.Patient.Sex.ToString()); 619 619 620 620 // Draw them
Note:
See TracChangeset
for help on using the changeset viewer.