Changeset 850 for Scheduling/trunk
- Timestamp:
- Jul 11, 2010, 10:09:11 AM (14 years ago)
- Location:
- Scheduling/trunk/cs/bsdx0200GUISourceCode
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocument.cs
r821 r850 206 206 this.m_appointments.ClearAllAppointments(); 207 207 208 // calls RPC to (presumably--not sure yet)get appointments208 // calls RPC to get appointments 209 209 rAppointmentSchedule = CGSchedLib.CreateAppointmentSchedule(m_DocManager, m_sResourcesArray, this.m_dStartDate, this.m_dEndDate); 210 210 -
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGSchedLib.cs
r614 r850 35 35 sResName += "|"; 36 36 } 37 string sStart;38 string sEnd;39 sStart = StartTime.ToString("M-d-yyyy");40 sEnd = EndTime.ToString("M-d-yyyy@HH:m");37 38 39 string sStart = FMDateTime.Create(StartTime).DateOnly.FMDateString; 40 string sEnd = FMDateTime.Create(EndTime).FMDateString; 41 41 string sSql = "BSDX CREATE APPT SCHEDULE^" + sResName + "^" + sStart + "^" + sEnd ; 42 42 DataTable dtRet = docManager.RPMSDataTable(sSql, "AppointmentSchedule"); -
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGView.cs
r825 r850 393 393 // 394 394 this.mnuPrintReminderLetters.Index = 10; 395 this.mnuPrintReminderLetters.Shortcut = System.Windows.Forms.Shortcut.Ctrl R;395 this.mnuPrintReminderLetters.Shortcut = System.Windows.Forms.Shortcut.CtrlI; 396 396 this.mnuPrintReminderLetters.Text = "Print Rem&inder Letters"; 397 397 this.mnuPrintReminderLetters.Click += new System.EventHandler(this.mnuPrintReminderLetters_Click); … … 400 400 // 401 401 this.mnuPrintRebookLetters.Index = 11; 402 this.mnuPrintRebookLetters.Shortcut = System.Windows.Forms.Shortcut.CtrlR; 402 403 this.mnuPrintRebookLetters.Text = "Print &Rebook Letters"; 403 404 this.mnuPrintRebookLetters.Click += new System.EventHandler(this.mnuPrintRebookLetters_Click); … … 651 652 this.tvSchedules.Location = new System.Drawing.Point(0, 0); 652 653 this.tvSchedules.Name = "tvSchedules"; 653 this.tvSchedules.Size = new System.Drawing.Size(128, 369);654 this.tvSchedules.Size = new System.Drawing.Size(128, 479); 654 655 this.tvSchedules.Sorted = true; 655 656 this.tvSchedules.TabIndex = 1; … … 697 698 this.panelRight.Controls.Add(this.panelClip); 698 699 this.panelRight.Dock = System.Windows.Forms.DockStyle.Right; 699 this.panelRight.Location = new System.Drawing.Point( 807, 0);700 this.panelRight.Location = new System.Drawing.Point(941, 0); 700 701 this.panelRight.Name = "panelRight"; 701 this.panelRight.Size = new System.Drawing.Size(128, 369);702 this.panelRight.Size = new System.Drawing.Size(128, 479); 702 703 this.panelRight.TabIndex = 3; 703 704 this.panelRight.Visible = false; … … 765 766 this.panelTop.Location = new System.Drawing.Point(128, 0); 766 767 this.panelTop.Name = "panelTop"; 767 this.panelTop.Size = new System.Drawing.Size( 679, 24);768 this.panelTop.Size = new System.Drawing.Size(813, 24); 768 769 this.panelTop.TabIndex = 6; 769 770 // … … 773 774 this.dateTimePicker1.DropDownAlign = System.Windows.Forms.LeftRightAlignment.Right; 774 775 this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Short; 775 this.dateTimePicker1.Location = new System.Drawing.Point( 551, 0);776 this.dateTimePicker1.Location = new System.Drawing.Point(685, 0); 776 777 this.dateTimePicker1.Name = "dateTimePicker1"; 777 778 this.dateTimePicker1.Size = new System.Drawing.Size(128, 20); … … 795 796 this.panelCenter.Location = new System.Drawing.Point(136, 24); 796 797 this.panelCenter.Name = "panelCenter"; 797 this.panelCenter.Size = new System.Drawing.Size( 668, 321);798 this.panelCenter.Size = new System.Drawing.Size(802, 431); 798 799 this.panelCenter.TabIndex = 7; 799 800 // … … 817 818 this.calendarGrid1.Resources = ((System.Collections.ArrayList)(resources.GetObject("calendarGrid1.Resources"))); 818 819 this.calendarGrid1.SelectedAppointment = 0; 819 this.calendarGrid1.Size = new System.Drawing.Size( 668, 321);820 this.calendarGrid1.Size = new System.Drawing.Size(802, 431); 820 821 this.calendarGrid1.StartDate = new System.DateTime(2003, 1, 27, 0, 0, 0, 0); 821 822 this.calendarGrid1.TabIndex = 0; … … 909 910 this.panelBottom.Controls.Add(this.statusBar1); 910 911 this.panelBottom.Dock = System.Windows.Forms.DockStyle.Bottom; 911 this.panelBottom.Location = new System.Drawing.Point(136, 345);912 this.panelBottom.Location = new System.Drawing.Point(136, 455); 912 913 this.panelBottom.Name = "panelBottom"; 913 this.panelBottom.Size = new System.Drawing.Size( 668, 24);914 this.panelBottom.Size = new System.Drawing.Size(802, 24); 914 915 this.panelBottom.TabIndex = 8; 915 916 // … … 919 920 this.statusBar1.Location = new System.Drawing.Point(0, 0); 920 921 this.statusBar1.Name = "statusBar1"; 921 this.statusBar1.Size = new System.Drawing.Size( 668, 24);922 this.statusBar1.Size = new System.Drawing.Size(802, 24); 922 923 this.statusBar1.SizingGrip = false; 923 924 this.statusBar1.TabIndex = 0; … … 927 928 this.splitter1.Location = new System.Drawing.Point(128, 24); 928 929 this.splitter1.Name = "splitter1"; 929 this.splitter1.Size = new System.Drawing.Size(8, 345);930 this.splitter1.Size = new System.Drawing.Size(8, 455); 930 931 this.splitter1.TabIndex = 9; 931 932 this.splitter1.TabStop = false; … … 934 935 // 935 936 this.splitter2.Dock = System.Windows.Forms.DockStyle.Right; 936 this.splitter2.Location = new System.Drawing.Point( 804, 24);937 this.splitter2.Location = new System.Drawing.Point(938, 24); 937 938 this.splitter2.Name = "splitter2"; 938 this.splitter2.Size = new System.Drawing.Size(3, 345);939 this.splitter2.Size = new System.Drawing.Size(3, 455); 939 940 this.splitter2.TabIndex = 10; 940 941 this.splitter2.TabStop = false; … … 948 949 // 949 950 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); 950 this.ClientSize = new System.Drawing.Size( 935, 369);951 this.ClientSize = new System.Drawing.Size(1069, 479); 951 952 this.Controls.Add(this.panelCenter); 952 953 this.Controls.Add(this.panelBottom); -
Scheduling/trunk/cs/bsdx0200GUISourceCode/ClinicalScheduling.csproj.user
r824 r850 36 36 </RemoteDebugMachine> 37 37 <StartAction>Project</StartAction> 38 <StartArguments>/s=172.16.17. 31 /p=9240 /a=shabiel12 /v=catdog.44 /e=windows-1256</StartArguments>38 <StartArguments>/s=172.16.17.51 /p=9240 /a=shabiel12 /v=catdog.44 /e=windows-1256</StartArguments> 39 39 <StartPage> 40 40 </StartPage> … … 55 55 </RemoteDebugMachine> 56 56 <StartAction>Project</StartAction> 57 <StartArguments>/s=172.16.17. 31 /p=9240 /a=shabiel12 /v=catdog.44 /e=windows-1256</StartArguments>57 <StartArguments>/s=172.16.17.51 /p=9240 /a=shabiel12 /v=catdog.44 /e=windows-1256</StartArguments> 58 58 <StartPage> 59 59 </StartPage> -
Scheduling/trunk/cs/bsdx0200GUISourceCode/DAL.cs
r848 r850 94 94 /// ^T00030STATE^T00030ZIP^T00030HOMEPHONE^D00030OldApptDate 95 95 ///</returns> 96 /// <remarks>Not sure if this works yet</remarks>97 96 /// <remarks>Mirrors dsRebookAppts.PatientAppt Schema. Can merge table into schema.</remarks> 98 97 public DataTable GetRebookedAppointments(string sClinicList, DateTime BeginDate, DateTime EndDate) … … 103 102 return RPMSDataTable(cmd, ""); 104 103 } 104 105 public DataTable GetRebookedAppointments(string sApptList) 106 { 107 string cmd = String.Format("BSDX REBOOK LIST^{0}", sApptList); 108 return RPMSDataTable(cmd, ""); 109 } 110 111 public DataTable GetCancelledAppointments(string sClinicList, DateTime BeginDate, DateTime EndDate) 112 { 113 string sBegin = FMDateTime.Create(BeginDate).DateOnly.FMDateString; 114 string sEnd = FMDateTime.Create(EndDate).DateOnly.FMDateString; 115 string cmd = String.Format("BSDX CANCEL CLINIC LIST^{0}^{1}^{2}", sClinicList, sBegin, sEnd); 116 return RPMSDataTable(cmd, ""); 117 } 118 105 119 106 120 /// <summary> -
Scheduling/trunk/cs/bsdx0200GUISourceCode/DPatientLetter.cs
r848 r850 8 8 { 9 9 /// <summary> 10 /// Summary description for DPatientLetter.10 /// Handles Printing of letters (Reminder, Rebook, Cancellation) and a Report. Contains a Print Preview dialog. 11 11 /// </summary> 12 12 public class DPatientLetter : System.Windows.Forms.PrintPreviewDialog … … 18 18 private System.Drawing.Printing.PrintDocument printAppts; 19 19 private System.Drawing.Printing.PrintDocument printReminderLetters; 20 private System.Drawing.Printing.PrintDocument printCancelLetters; 21 private System.Drawing.Printing.PrintDocument printRebookLetters; 20 22 21 23 #region Fields … … 28 30 int _pageNumber = 0; 29 31 30 // datasetto load the results of queries into and set to print routines32 //typed datasets to load the results of queries into and set to print routines 31 33 dsPatientApptDisplay2 _dsApptDisplay; 32 private PrintDocument printCancelLetters;33 private PrintDocument printRebookLetters;34 34 dsRebookAppts _dsRebookAppts; 35 35 36 #endregion Fields 37 38 #region Windows Form Designer generated code 39 /// <summary> 40 /// Required method for Designer support - do not modify 41 /// the contents of this method with the code editor. 42 /// </summary> 43 private void InitializeComponent() 44 { 45 this.printAppts = new System.Drawing.Printing.PrintDocument(); 46 this.printReminderLetters = new System.Drawing.Printing.PrintDocument(); 47 this.printCancelLetters = new System.Drawing.Printing.PrintDocument(); 48 this.printRebookLetters = new System.Drawing.Printing.PrintDocument(); 49 this.SuspendLayout(); 50 // 51 // printAppts 52 // 53 this.printAppts.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printAppts_PrintPage); 54 // 55 // printReminderLetters 56 // 57 this.printReminderLetters.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printReminderLetters_PrintPage); 58 // 59 // printCancelLetters 60 // 61 this.printCancelLetters.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printCancelLetters_PrintPage); 62 // 63 // printRebookLetters 64 // 65 this.printRebookLetters.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printRebookLetters_PrintPage); 66 // 67 // DPatientLetter 68 // 69 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); 70 this.ClientSize = new System.Drawing.Size(648, 398); 71 this.Name = "DPatientLetter"; 72 this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; 73 this.Text = "Patient Letter"; 74 this.ResumeLayout(false); 75 76 } 77 #endregion 78 36 79 37 80 /// <summary> … … 83 126 /// <param name="dtBegin">Beginning Date</param> 84 127 /// <param name="dtEnd">End Date</param> 85 /// working on moving this over...86 128 public void InitializeFormRebookLetters(CGDocumentManager docManager, 87 129 string sClinicList, … … 96 138 } 97 139 98 string sBegin = dtBegin.ToString("M/d/yyyy@HH:mm");99 string sEnd = dtEnd.ToString("M/d/yyyy@HH:mm");100 101 140 //Call RPC to get list of appt ids that have been rebooked for these clinics on these dates 102 string sSql1 = "BSDX REBOOK CLINIC LIST^" + sClinicList + "^" + sBegin + "^" + sEnd;103 string sSql2 = "BSDX RESOURCE LETTERS^" + sClinicList;141 DataTable PatientAppts = docManager.DAL.GetRebookedAppointments(sClinicList, dtBegin, dtEnd); 142 DataTable Resources = docManager.DAL.GetResourceLetters(sClinicList); 104 143 105 144 _dsRebookAppts = new dsRebookAppts(); 106 _dsRebookAppts.PatientAppts.Merge( docManager.RPMSDataTable(sSql1, "PatientAppts"));107 _dsRebookAppts.BSDXResource.Merge( docManager.RPMSDataTable(sSql2, "Resources"));145 _dsRebookAppts.PatientAppts.Merge(PatientAppts); 146 _dsRebookAppts.BSDXResource.Merge(Resources); 108 147 109 148 } … … 134 173 } 135 174 136 string sSql1 = "BSDX REBOOK LIST^" + sApptIDList;137 string sSql2 = "BSDX RESOURCE LETTERS^" + sClinicList;175 DataTable PatientAppts = docManager.DAL.GetRebookedAppointments(sApptIDList); 176 DataTable Resources = docManager.DAL.GetResourceLetters(sClinicList); 138 177 139 178 _dsRebookAppts = new dsRebookAppts(); 140 _dsRebookAppts.PatientAppts.Merge(docManager.RPMSDataTable(sSql1, "PatientAppts")); 141 _dsRebookAppts.BSDXResource.Merge(docManager.RPMSDataTable(sSql2, "Resources")); 142 143 179 _dsRebookAppts.PatientAppts.Merge(PatientAppts); 180 _dsRebookAppts.BSDXResource.Merge(Resources); 144 181 } 145 182 catch (Exception ex) … … 169 206 throw new Exception("At least one clinic must be selected."); 170 207 } 171 172 string sBegin = dtBegin.ToString("M/d/yyyy@HH:mm"); 173 string sEnd = dtEnd.ToString("M/d/yyyy@HH:mm"); 174 175 //Call RPC to get list of appt ids that have been cancelled for these clinics on these dates 176 string sSql1 = "BSDX CANCEL CLINIC LIST^" + sClinicList + "^" + sBegin + "^" + sEnd; 177 string sSql2 = "BSDX RESOURCE LETTERS^" + sClinicList; 178 208 209 DataTable PatientAppts = docManager.DAL.GetCancelledAppointments(sClinicList, dtBegin, dtEnd); 210 DataTable Resources = docManager.DAL.GetResourceLetters(sClinicList); 211 179 212 _dsRebookAppts = new dsRebookAppts(); 180 _dsRebookAppts.PatientAppts.Merge( docManager.RPMSDataTable(sSql1, "PatientAppts"));181 _dsRebookAppts.BSDXResource.Merge( docManager.RPMSDataTable(sSql2, "Resources"));182 213 _dsRebookAppts.PatientAppts.Merge(PatientAppts); 214 _dsRebookAppts.BSDXResource.Merge(Resources); 215 183 216 PrintPreviewControl.Document = printCancelLetters; 184 217 … … 208 241 } 209 242 243 // Global variables to use in printing routine down below 210 244 _dtBegin = dtBegin; 211 245 _dtEnd = dtEnd; 212 string sBegin = dtBegin.ToShortDateString(); 213 string sEnd = dtEnd.ToShortDateString(); 214 this.Text = "Clinic Schedules"; 215 216 string sSql = "BSDX CLINIC LETTERS^" + sClinicList + "^" + sBegin + "^" + sEnd; 217 string sSql2 = "BSDX RESOURCE LETTERS^" + sClinicList; 218 246 247 this.Text = "Reminder Letters"; 248 249 // Get Data 250 DataTable PatientAppts = docManager.DAL.GetClinicSchedules(sClinicList, dtBegin, dtEnd); 251 DataTable Resources = docManager.DAL.GetResourceLetters(sClinicList); 252 253 // Merge tables into typed dataset 219 254 _dsApptDisplay = new dsPatientApptDisplay2(); 220 _dsApptDisplay. BSDXResource.Merge(docManager.RPMSDataTable(sSql2, "Resources"));221 _dsApptDisplay. PatientAppts.Merge(docManager.RPMSDataTable(sSql, "PatientAppts"));255 _dsApptDisplay.PatientAppts.Merge(PatientAppts); 256 _dsApptDisplay.BSDXResource.Merge(Resources); 222 257 223 258 this.PrintPreviewControl.Document = printReminderLetters; … … 260 295 } 261 296 262 #region Windows Form Designer generated code263 /// <summary>264 /// Required method for Designer support - do not modify265 /// the contents of this method with the code editor.266 /// </summary>267 private void InitializeComponent()268 {269 this.printAppts = new System.Drawing.Printing.PrintDocument();270 this.printReminderLetters = new System.Drawing.Printing.PrintDocument();271 this.printCancelLetters = new System.Drawing.Printing.PrintDocument();272 this.printRebookLetters = new System.Drawing.Printing.PrintDocument();273 this.SuspendLayout();274 //275 // printAppts276 //277 this.printAppts.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printAppts_PrintPage);278 //279 // printReminderLetters280 //281 this.printReminderLetters.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printReminderLetters_PrintPage);282 //283 // printCancelLetters284 //285 this.printCancelLetters.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printCancelLetters_PrintPage);286 //287 // printRebookLetters288 //289 this.printRebookLetters.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printRebookLetters_PrintPage);290 //291 // DPatientLetter292 //293 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);294 this.ClientSize = new System.Drawing.Size(648, 398);295 this.Name = "DPatientLetter";296 this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;297 this.Text = "Patient Letter";298 this.ResumeLayout(false);299 300 }301 #endregion302 297 303 298 private void printAppts_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
Note:
See TracChangeset
for help on using the changeset viewer.