Changeset 772 for Scheduling/trunk/cs/bsdx0200GUISourceCode/DAppointPage.cs
- Timestamp:
- May 21, 2010, 9:03:45 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/DAppointPage.cs
r753 r772 53 53 private System.Windows.Forms.Label label14; 54 54 private System.Windows.Forms.TextBox txtHRN; 55 private System.Windows.Forms.Button cmdPrintLetter;56 55 private GroupBox groupBox4; 57 56 private BindingSource dsPatientApptDisplay2BindingSource; … … 75 74 this.tabControl1 = new System.Windows.Forms.TabControl(); 76 75 this.tabAppointment = new System.Windows.Forms.TabPage(); 76 this.groupBox4 = new System.Windows.Forms.GroupBox(); 77 77 this.groupBox3 = new System.Windows.Forms.GroupBox(); 78 78 this.lblClinic = new System.Windows.Forms.Label(); … … 108 108 this.txtStreet = new System.Windows.Forms.TextBox(); 109 109 this.panel1 = new System.Windows.Forms.Panel(); 110 this.cmdPrintLetter = new System.Windows.Forms.Button();111 110 this.cmdCancel = new System.Windows.Forms.Button(); 112 111 this.cmdOK = new System.Windows.Forms.Button(); 113 this.groupBox4 = new System.Windows.Forms.GroupBox();114 112 this.patientApptsBindingSource = new System.Windows.Forms.BindingSource(this.components); 115 113 this.dsPatientApptDisplay2BindingSource = new System.Windows.Forms.BindingSource(this.components); … … 148 146 this.tabAppointment.TabIndex = 1; 149 147 this.tabAppointment.Text = "Appointment"; 148 // 149 // groupBox4 150 // 151 this.groupBox4.Location = new System.Drawing.Point(8, 254); 152 this.groupBox4.Name = "groupBox4"; 153 this.groupBox4.Size = new System.Drawing.Size(439, 204); 154 this.groupBox4.TabIndex = 14; 155 this.groupBox4.TabStop = false; 156 this.groupBox4.Text = "Other Appointments"; 150 157 // 151 158 // groupBox3 … … 456 463 // panel1 457 464 // 458 this.panel1.Controls.Add(this.cmdPrintLetter);459 465 this.panel1.Controls.Add(this.cmdCancel); 460 466 this.panel1.Controls.Add(this.cmdOK); … … 465 471 this.panel1.TabIndex = 1; 466 472 // 467 // cmdPrintLetter468 //469 this.cmdPrintLetter.CausesValidation = false;470 this.cmdPrintLetter.Location = new System.Drawing.Point(12, 9);471 this.cmdPrintLetter.Name = "cmdPrintLetter";472 this.cmdPrintLetter.Size = new System.Drawing.Size(68, 24);473 this.cmdPrintLetter.TabIndex = 3;474 this.cmdPrintLetter.Text = "Print Letter";475 this.cmdPrintLetter.Click += new System.EventHandler(this.cmdPrintLetter_Click);476 //477 473 // cmdCancel 478 474 // … … 493 489 this.cmdOK.Text = "OK"; 494 490 this.cmdOK.Click += new System.EventHandler(this.cmdOK_Click); 495 //496 // groupBox4497 //498 this.groupBox4.Location = new System.Drawing.Point(8, 254);499 this.groupBox4.Name = "groupBox4";500 this.groupBox4.Size = new System.Drawing.Size(439, 204);501 this.groupBox4.TabIndex = 14;502 this.groupBox4.TabStop = false;503 this.groupBox4.Text = "Other Appointments";504 491 // 505 492 // patientApptsBindingSource … … 530 517 this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; 531 518 this.Text = "Patient Appointment"; 532 this.Load += new System.EventHandler(this.DAppointPage_Load);533 519 this.tabControl1.ResumeLayout(false); 534 520 this.tabAppointment.ResumeLayout(false); … … 674 660 } 675 661 676 private void cmdViewAppointments_Click(object sender, System.EventArgs e)677 {678 try679 {680 Debug.Assert(m_sPatientIEN != "");681 int nPatientID = Convert.ToInt32(m_sPatientIEN);682 ViewPatientAppointments(nPatientID);683 }684 catch (Exception ex)685 {686 MessageBox.Show(this, ex.Message, "Clinical Scheduling", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);687 }688 }689 690 public void ViewPatientAppointments(int PatientID)691 {692 DPatientApptDisplay dPa = new DPatientApptDisplay();693 694 dPa.InitializeForm(this.DocManager, PatientID);695 696 if (dPa.ShowDialog(this) != DialogResult.Cancel)697 {698 return;699 }700 }701 702 703 private void cmdPrintLetter_Click(object sender, System.EventArgs e)704 {705 try706 {707 Debug.Assert(m_sPatientIEN != "");708 int nPatientID = Convert.ToInt32(m_sPatientIEN);709 PrintPatientLetter(nPatientID);710 }711 catch (Exception ex)712 {713 MessageBox.Show(this, ex.Message, "Clinical Scheduling", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);714 }715 }716 717 private void PrintPatientLetter(int PatientID)718 {719 //Print letter for individual patient720 try721 {722 DPatientLetter dPa = new DPatientLetter();723 dPa.InitializeForm(DocManager, PatientID);724 725 if (dPa.ShowDialog(this) != DialogResult.Cancel)726 {727 return;728 }729 }730 catch (Exception ex)731 {732 throw ex;733 }734 }735 736 private void DAppointPage_Load(object sender, System.EventArgs e)737 {738 cmdPrintLetter.Enabled = !(m_dStartTime < DateTime.Today);739 }740 662 741 663 #endregion //Methods
Note:
See TracChangeset
for help on using the changeset viewer.