diff --git a/cs/bsdx0200GUISourceCode/AssemblyInfo.cs b/cs/bsdx0200GUISourceCode/AssemblyInfo.cs
index 8f77ff3..a2b2e74 100644
--- a/cs/bsdx0200GUISourceCode/AssemblyInfo.cs
+++ b/cs/bsdx0200GUISourceCode/AssemblyInfo.cs
@@ -27,7 +27,7 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
-[assembly: AssemblyVersion("1.1.*")]
+[assembly: AssemblyVersion("1.2.*")]
//
// In order to sign your assembly you must specify a key to use. Refer to the
@@ -57,5 +57,5 @@ using System.Runtime.InteropServices;
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
[assembly: AssemblyKeyName("")]
-[assembly: AssemblyFileVersionAttribute("1.1.0.0")]
+[assembly: AssemblyFileVersionAttribute("1.2.0.0")]
[assembly: ComVisibleAttribute(false)]
diff --git a/cs/bsdx0200GUISourceCode/CGView.cs b/cs/bsdx0200GUISourceCode/CGView.cs
index 5cac603..10ea582 100644
--- a/cs/bsdx0200GUISourceCode/CGView.cs
+++ b/cs/bsdx0200GUISourceCode/CGView.cs
@@ -100,6 +100,9 @@ namespace IndianHealthService.ClinicalScheduling
private System.Windows.Forms.MenuItem mnuOpenMultipleSchedules;
private System.Windows.Forms.MenuItem mnuDisplayWalkIns;
private System.Windows.Forms.MenuItem mnuRPMSDivision;
+ private System.Drawing.Printing.PrintDocument printRoutingSlip;
+ private MenuItem menuItem10;
+ private MenuItem ctxCalGridReprintRoutingSlip;
private IContainer components;
#region Initialization
@@ -265,7 +268,6 @@ namespace IndianHealthService.ClinicalScheduling
this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker();
this.lblResource = new System.Windows.Forms.Label();
this.panelCenter = new System.Windows.Forms.Panel();
- this.calendarGrid1 = new IndianHealthService.ClinicalScheduling.CalendarGrid();
this.ctxCalendarGrid = new System.Windows.Forms.ContextMenu();
this.ctxCalGridAdd = new System.Windows.Forms.MenuItem();
this.ctxCalGridEdit = new System.Windows.Forms.MenuItem();
@@ -276,10 +278,14 @@ namespace IndianHealthService.ClinicalScheduling
this.ctxCalGridNoShowUndo = new System.Windows.Forms.MenuItem();
this.menuItem9 = new System.Windows.Forms.MenuItem();
this.ctxCalGridWalkin = new System.Windows.Forms.MenuItem();
+ this.menuItem10 = new System.Windows.Forms.MenuItem();
this.panelBottom = new System.Windows.Forms.Panel();
this.statusBar1 = new System.Windows.Forms.StatusBar();
this.splitter1 = new System.Windows.Forms.Splitter();
this.splitter2 = new System.Windows.Forms.Splitter();
+ this.printRoutingSlip = new System.Drawing.Printing.PrintDocument();
+ this.calendarGrid1 = new IndianHealthService.ClinicalScheduling.CalendarGrid();
+ this.ctxCalGridReprintRoutingSlip = new System.Windows.Forms.MenuItem();
this.panelRight.SuspendLayout();
this.panelClip.SuspendLayout();
this.panelTop.SuspendLayout();
@@ -642,7 +648,7 @@ namespace IndianHealthService.ClinicalScheduling
this.tvSchedules.HotTracking = true;
this.tvSchedules.Location = new System.Drawing.Point(0, 0);
this.tvSchedules.Name = "tvSchedules";
- this.tvSchedules.Size = new System.Drawing.Size(128, 422);
+ this.tvSchedules.Size = new System.Drawing.Size(128, 369);
this.tvSchedules.Sorted = true;
this.tvSchedules.TabIndex = 1;
this.tvSchedules.DoubleClick += new System.EventHandler(this.tvSchedules_DoubleClick);
@@ -690,7 +696,7 @@ namespace IndianHealthService.ClinicalScheduling
this.panelRight.Dock = System.Windows.Forms.DockStyle.Right;
this.panelRight.Location = new System.Drawing.Point(807, 0);
this.panelRight.Name = "panelRight";
- this.panelRight.Size = new System.Drawing.Size(128, 422);
+ this.panelRight.Size = new System.Drawing.Size(128, 369);
this.panelRight.TabIndex = 3;
this.panelRight.Visible = false;
//
@@ -786,37 +792,9 @@ namespace IndianHealthService.ClinicalScheduling
this.panelCenter.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelCenter.Location = new System.Drawing.Point(136, 24);
this.panelCenter.Name = "panelCenter";
- this.panelCenter.Size = new System.Drawing.Size(668, 374);
+ this.panelCenter.Size = new System.Drawing.Size(668, 321);
this.panelCenter.TabIndex = 7;
//
- // calendarGrid1
- //
- this.calendarGrid1.AllowDrop = true;
- this.calendarGrid1.Appointments = null;
- this.calendarGrid1.ApptDragSource = null;
- this.calendarGrid1.AutoScroll = true;
- this.calendarGrid1.AutoScrollMinSize = new System.Drawing.Size(600, 1898);
- this.calendarGrid1.AvailabilityArray = null;
- this.calendarGrid1.BackColor = System.Drawing.SystemColors.Window;
- this.calendarGrid1.Columns = 5;
- this.calendarGrid1.ContextMenu = this.ctxCalendarGrid;
- this.calendarGrid1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.calendarGrid1.DrawWalkIns = true;
- this.calendarGrid1.GridBackColor = null;
- this.calendarGrid1.GridEnter = false;
- this.calendarGrid1.Location = new System.Drawing.Point(0, 0);
- this.calendarGrid1.Name = "calendarGrid1";
- this.calendarGrid1.Resources = ((System.Collections.ArrayList)(resources.GetObject("calendarGrid1.Resources")));
- this.calendarGrid1.SelectedAppointment = 0;
- this.calendarGrid1.Size = new System.Drawing.Size(668, 374);
- this.calendarGrid1.StartDate = new System.DateTime(2003, 1, 27, 0, 0, 0, 0);
- this.calendarGrid1.TabIndex = 0;
- this.calendarGrid1.TimeScale = 20;
- this.calendarGrid1.DoubleClick += new System.EventHandler(this.calendarGrid1_DoubleClick);
- this.calendarGrid1.CGSelectionChanged += new IndianHealthService.ClinicalScheduling.CGSelectionChangedHandler(this.calendarGrid1_CGSelectionChanged);
- this.calendarGrid1.CGAppointmentChanged += new IndianHealthService.ClinicalScheduling.CGAppointmentChangedHandler(this.calendarGrid1_CGAppointmentChanged);
- this.calendarGrid1.CGAppointmentAdded += new IndianHealthService.ClinicalScheduling.CGAppointmentChangedHandler(this.calendarGrid1_CGAppointmentAdded);
- //
// ctxCalendarGrid
//
this.ctxCalendarGrid.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
@@ -828,7 +806,9 @@ namespace IndianHealthService.ClinicalScheduling
this.ctxCalGridNoShow,
this.ctxCalGridNoShowUndo,
this.menuItem9,
- this.ctxCalGridWalkin});
+ this.ctxCalGridWalkin,
+ this.menuItem10,
+ this.ctxCalGridReprintRoutingSlip});
this.ctxCalendarGrid.Popup += new System.EventHandler(this.ctxCalendarGrid_Popup);
//
// ctxCalGridAdd
@@ -883,11 +863,16 @@ namespace IndianHealthService.ClinicalScheduling
this.ctxCalGridWalkin.Text = "Create Wal&k-In Appointment";
this.ctxCalGridWalkin.Click += new System.EventHandler(this.ctxCalGridWalkin_Click);
//
+ // menuItem10
+ //
+ this.menuItem10.Index = 9;
+ this.menuItem10.Text = "-";
+ //
// panelBottom
//
this.panelBottom.Controls.Add(this.statusBar1);
this.panelBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
- this.panelBottom.Location = new System.Drawing.Point(136, 398);
+ this.panelBottom.Location = new System.Drawing.Point(136, 345);
this.panelBottom.Name = "panelBottom";
this.panelBottom.Size = new System.Drawing.Size(668, 24);
this.panelBottom.TabIndex = 8;
@@ -905,7 +890,7 @@ namespace IndianHealthService.ClinicalScheduling
//
this.splitter1.Location = new System.Drawing.Point(128, 24);
this.splitter1.Name = "splitter1";
- this.splitter1.Size = new System.Drawing.Size(8, 398);
+ this.splitter1.Size = new System.Drawing.Size(8, 345);
this.splitter1.TabIndex = 9;
this.splitter1.TabStop = false;
//
@@ -914,14 +899,53 @@ namespace IndianHealthService.ClinicalScheduling
this.splitter2.Dock = System.Windows.Forms.DockStyle.Right;
this.splitter2.Location = new System.Drawing.Point(804, 24);
this.splitter2.Name = "splitter2";
- this.splitter2.Size = new System.Drawing.Size(3, 398);
+ this.splitter2.Size = new System.Drawing.Size(3, 345);
this.splitter2.TabIndex = 10;
this.splitter2.TabStop = false;
//
+ // printRoutingSlip
+ //
+ this.printRoutingSlip.DocumentName = "Routing Slip";
+ this.printRoutingSlip.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printRoutingSlip_PrintPage);
+ //
+ // calendarGrid1
+ //
+ this.calendarGrid1.AllowDrop = true;
+ this.calendarGrid1.Appointments = null;
+ this.calendarGrid1.ApptDragSource = null;
+ this.calendarGrid1.AutoScroll = true;
+ this.calendarGrid1.AutoScrollMinSize = new System.Drawing.Size(600, 1898);
+ this.calendarGrid1.AvailabilityArray = null;
+ this.calendarGrid1.BackColor = System.Drawing.SystemColors.Window;
+ this.calendarGrid1.Columns = 5;
+ this.calendarGrid1.ContextMenu = this.ctxCalendarGrid;
+ this.calendarGrid1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.calendarGrid1.DrawWalkIns = true;
+ this.calendarGrid1.GridBackColor = null;
+ this.calendarGrid1.GridEnter = false;
+ this.calendarGrid1.Location = new System.Drawing.Point(0, 0);
+ this.calendarGrid1.Name = "calendarGrid1";
+ this.calendarGrid1.Resources = ((System.Collections.ArrayList)(resources.GetObject("calendarGrid1.Resources")));
+ this.calendarGrid1.SelectedAppointment = 0;
+ this.calendarGrid1.Size = new System.Drawing.Size(668, 321);
+ this.calendarGrid1.StartDate = new System.DateTime(2003, 1, 27, 0, 0, 0, 0);
+ this.calendarGrid1.TabIndex = 0;
+ this.calendarGrid1.TimeScale = 20;
+ this.calendarGrid1.DoubleClick += new System.EventHandler(this.calendarGrid1_DoubleClick);
+ this.calendarGrid1.CGSelectionChanged += new IndianHealthService.ClinicalScheduling.CGSelectionChangedHandler(this.calendarGrid1_CGSelectionChanged);
+ this.calendarGrid1.CGAppointmentChanged += new IndianHealthService.ClinicalScheduling.CGAppointmentChangedHandler(this.calendarGrid1_CGAppointmentChanged);
+ this.calendarGrid1.CGAppointmentAdded += new IndianHealthService.ClinicalScheduling.CGAppointmentChangedHandler(this.calendarGrid1_CGAppointmentAdded);
+ //
+ // ctxCalGridReprintRoutingSlip
+ //
+ this.ctxCalGridReprintRoutingSlip.Index = 10;
+ this.ctxCalGridReprintRoutingSlip.Text = "&Reprint Routing Slip";
+ this.ctxCalGridReprintRoutingSlip.Click += new System.EventHandler(this.ctxCalGridReprintRoutingSlip_Click);
+ //
// CGView
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
- this.ClientSize = new System.Drawing.Size(935, 422);
+ this.ClientSize = new System.Drawing.Size(935, 369);
this.Controls.Add(this.panelCenter);
this.Controls.Add(this.panelBottom);
this.Controls.Add(this.splitter2);
@@ -1229,7 +1253,10 @@ namespace IndianHealthService.ClinicalScheduling
ctxCalGridNoShow.Enabled = bEditAppointments;
ctxCalGridNoShowUndo.Enabled = bEditAppointments;
ctxCalGridWalkin.Enabled = ctxCalGridAdd.Enabled;
- }
+ //smh new code
+ ctxCalGridReprintRoutingSlip.Enabled = ctxCalGridEdit.Enabled;
+ //end new code
+ }
private void ctxCalGridAdd_Click(object sender, System.EventArgs e)
{
@@ -1267,6 +1294,13 @@ namespace IndianHealthService.ClinicalScheduling
AppointmentNoShow(false);
}
+ //new code smh
+ private void ctxCalGridReprintRoutingSlip_Click(object sender, EventArgs e)
+ {
+ printRoutingSlip.Print();
+ }
+ //end new code
+
#endregion ctxCalGridMenu Handlers
#region Methods
@@ -2002,6 +2036,11 @@ namespace IndianHealthService.ClinicalScheduling
dlgCheckin.PCCFormIEN,
dlgCheckin.PCCOutGuide
);
+ //smh new code
+ if (dlgCheckin.PrintRouteSlip == "true") //TODO: strange that we use a string for a boolean value??
+ this.printRoutingSlip.Print();
+ // end new code
+
this.calendarGrid1.Invalidate();
}
catch (Exception ex)
@@ -3056,10 +3095,20 @@ namespace IndianHealthService.ClinicalScheduling
}
}
+ private void printRoutingSlip_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
+ {
+ int nApptID = this.calendarGrid1.SelectedAppointment;
+ CGAppointment a = (CGAppointment)this.Appointments.AppointmentTable[nApptID];
+ ClinicalScheduling.Printing.PrintRoutingSlip(a, "Routing Slip", e);
+ }
+
+
#endregion events
+
+
}//End class
}
diff --git a/cs/bsdx0200GUISourceCode/CGView.resx b/cs/bsdx0200GUISourceCode/CGView.resx
index 4637bab..2dce9f2 100644
--- a/cs/bsdx0200GUISourceCode/CGView.resx
+++ b/cs/bsdx0200GUISourceCode/CGView.resx
@@ -135,6 +135,9 @@
bXMFX3NpemUIX3ZlcnNpb24FAAAICAkCAAAAAAAAAAAAAAAQAgAAAAAAAAAL
+
+ 512, 17
+
75
diff --git a/cs/bsdx0200GUISourceCode/ClinicalScheduling.suo b/cs/bsdx0200GUISourceCode/ClinicalScheduling.suo
index b23b735..ddf0700 100644
Binary files a/cs/bsdx0200GUISourceCode/ClinicalScheduling.suo and b/cs/bsdx0200GUISourceCode/ClinicalScheduling.suo differ
diff --git a/cs/bsdx0200GUISourceCode/DCheckIn.cs b/cs/bsdx0200GUISourceCode/DCheckIn.cs
index c3ca695..3ff09c6 100644
--- a/cs/bsdx0200GUISourceCode/DCheckIn.cs
+++ b/cs/bsdx0200GUISourceCode/DCheckIn.cs
@@ -14,10 +14,7 @@ namespace IndianHealthService.ClinicalScheduling
///
public class DCheckIn : System.Windows.Forms.Form
{
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.Container components = null;
+ private IContainer components;
public DCheckIn()
{
@@ -81,6 +78,7 @@ namespace IndianHealthService.ClinicalScheduling
private bool m_bPCC;
private string m_sPCCClinicIEN;
private string m_sPCCFormIEN;
+ private ToolTip toolTip1;
private bool m_bPCCOutGuide;
#endregion Fields
@@ -240,6 +238,7 @@ namespace IndianHealthService.ClinicalScheduling
if (nRow.Length > 0) nFind = m_dtProvider.Rows.IndexOf(nRow[0]);
cboProvider.SelectedIndex = nFind;
}
+ //otherwise, just use the default provider table
else
{
m_dtProvider = m_dsGlobal.Tables["Provider"];
@@ -261,6 +260,7 @@ namespace IndianHealthService.ClinicalScheduling
//Stop code processing
+ //TODO: Remove... not in VISTA.
this.lblStopCode.Visible = false;
this.cboStopCode.Visible = false;
m_dvCS = new DataView(m_dsGlobal.Tables["ClinicStop"]);
@@ -452,6 +452,8 @@ namespace IndianHealthService.ClinicalScheduling
///
private void InitializeComponent()
{
+ this.components = new System.ComponentModel.Container();
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DCheckIn));
this.pnlPageBottom = new System.Windows.Forms.Panel();
this.cmdCancel = new System.Windows.Forms.Button();
this.cmdOK = new System.Windows.Forms.Button();
@@ -474,6 +476,7 @@ namespace IndianHealthService.ClinicalScheduling
this.cboPCCPlusClinic = new System.Windows.Forms.ComboBox();
this.cboPCCPlusForm = new System.Windows.Forms.ComboBox();
this.label5 = new System.Windows.Forms.Label();
+ this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.pnlPageBottom.SuspendLayout();
this.pnlDescription.SuspendLayout();
this.grpDescriptionResourceGroup.SuspendLayout();
@@ -536,9 +539,7 @@ namespace IndianHealthService.ClinicalScheduling
this.lblDescriptionResourceGroup.Name = "lblDescriptionResourceGroup";
this.lblDescriptionResourceGroup.Size = new System.Drawing.Size(514, 53);
this.lblDescriptionResourceGroup.TabIndex = 0;
- this.lblDescriptionResourceGroup.Text = "Use this panel to check in an appointment. A PCC visit will automatically be crea" +
- "ted for this patient at the check in date and time if the clinic is set up to cr" +
- "eate a visit at checkin. A patient may only be checked-in once.";
+ this.lblDescriptionResourceGroup.Text = resources.GetString("lblDescriptionResourceGroup.Text");
//
// label1
//
@@ -561,7 +562,7 @@ namespace IndianHealthService.ClinicalScheduling
//
// lblAlready
//
- this.lblAlready.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
+ this.lblAlready.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblAlready.ForeColor = System.Drawing.Color.Green;
this.lblAlready.Location = new System.Drawing.Point(288, 40);
this.lblAlready.Name = "lblAlready";
@@ -624,6 +625,7 @@ namespace IndianHealthService.ClinicalScheduling
this.chkRoutingSlip.Size = new System.Drawing.Size(128, 16);
this.chkRoutingSlip.TabIndex = 14;
this.chkRoutingSlip.Text = "Print Routing Slip";
+ this.toolTip1.SetToolTip(this.chkRoutingSlip, "Prints routing slip to the Windows Default Printer");
//
// grpPCCPlus
//
diff --git a/cs/bsdx0200GUISourceCode/DCheckIn.resx b/cs/bsdx0200GUISourceCode/DCheckIn.resx
index 52a8b0c..9bec46a 100644
--- a/cs/bsdx0200GUISourceCode/DCheckIn.resx
+++ b/cs/bsdx0200GUISourceCode/DCheckIn.resx
@@ -3,7 +3,7 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
@@ -89,276 +109,18 @@
text/microsoft-resx
- 1.3
+ 2.0
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- False
-
-
- True
-
-
- Private
-
-
- 8, 8
-
-
- False
-
-
- Private
-
-
- False
-
-
- Private
-
-
- Private
-
-
- False
-
-
- Private
-
-
- Private
-
-
- False
-
-
- True
-
-
- 8, 8
-
-
- True
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- 8, 8
-
-
- True
-
-
- False
-
-
- True
-
-
- Private
-
-
- False
-
-
- Private
-
-
- Private
-
-
- False
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- False
-
-
- False
-
-
- Private
-
-
- Private
-
-
- False
-
-
- Private
-
-
- Private
-
-
- False
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- False
-
-
- Private
-
-
- False
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- False
-
-
- Private
-
-
- False
-
-
- Private
-
-
- Private
-
-
- False
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- 8, 8
-
-
- True
-
-
- False
-
-
- True
-
-
- Private
-
-
- False
-
-
- Private
-
-
- Private
-
-
- False
-
-
- Private
-
-
- Private
-
-
- Private
-
-
- False
-
-
- Private
-
-
- Private
-
-
- False
-
-
- Private
-
-
- False
-
-
- Private
-
-
- Private
-
-
- False
-
-
- (Default)
-
-
- False
-
-
- DCheckIn
-
-
- False
-
-
- 8, 8
-
-
- True
-
-
- 80
-
-
- True
-
-
- Private
+
+ Use this panel to check in an appointment. A PCC visit will automatically be created for this patient at the check in date and time if the clinic is set up to create a visit at checkin. A patient may only be checked-in once.
+
+ 17, 17
+
\ No newline at end of file
diff --git a/cs/bsdx0200GUISourceCode/Printing.cs b/cs/bsdx0200GUISourceCode/Printing.cs
index 02768b5..0c9f816 100644
--- a/cs/bsdx0200GUISourceCode/Printing.cs
+++ b/cs/bsdx0200GUISourceCode/Printing.cs
@@ -278,6 +278,7 @@ namespace IndianHealthService.ClinicalScheduling
///
/// Print message on a page; typically that there are no appointments to be found.
+ /// Or just a test message to verify that printing works.
///
/// The exact string to print.
/// Print Page event args
@@ -286,6 +287,54 @@ namespace IndianHealthService.ClinicalScheduling
e.Graphics.DrawString(msg, new Font(FontFamily.GenericSerif, 14),
Brushes.Black, e.MarginBounds);
}
-
+
+ ///
+ /// Print Routing Slip
+ ///
+ /// Appointment Data Structure
+ /// String to print for title
+ /// etc
+ public static void PrintRoutingSlip(CGAppointment a, string title, PrintPageEventArgs e)
+ {
+ Rectangle printArea = e.MarginBounds;
+ Graphics g = e.Graphics;
+ StringFormat sf = new StringFormat();
+ sf.Alignment = StringAlignment.Center; //for title
+ Font fTitle = new Font(FontFamily.GenericSerif, 24, FontStyle.Bold); //for title
+ Font fBody = new Font(FontFamily.GenericSerif, 18);
+ Font fBodyEm = new Font(FontFamily.GenericSerif, 18, FontStyle.Bold);
+ g.DrawString(title, fTitle, Brushes.Black, printArea, sf); //title
+
+ // move down
+ int titleHeight = (int)g.MeasureString(title, fTitle, printArea.Width).Height;
+ printArea.Y += titleHeight;
+ printArea.Height -= titleHeight;
+
+ // draw underline
+ g.DrawLine(Pens.Black, printArea.Location, new Point(printArea.Right, printArea.Y));
+ printArea.Y += 15;
+ printArea.Height -= 15;
+
+ //construct what to print
+ string toprint = "Patient: " + a.PatientName + "\t" + "ID: " + a.PatientID;
+ toprint += "\n\n";
+ toprint += "Appointment Time: " + a.StartTime.ToLongDateString() + " " + a.StartTime.ToLongTimeString();
+ toprint += "\n\n";
+ toprint += "Notes:\n" + a.Note;
+
+ //print
+ g.DrawString(toprint, fBody, Brushes.Black, printArea);
+
+ // Print Date Printed
+ //sf to move to bottom center
+ StringFormat sf2 = new StringFormat();
+ sf2.LineAlignment = StringAlignment.Far;
+ sf2.Alignment = StringAlignment.Center;
+
+ //Print
+ Font fFooter = new Font(FontFamily.GenericSerif, 8);
+ g.DrawString("Printed: " + DateTime.Now, fFooter, Brushes.Black, printArea, sf2);
+
+ }
}
}
diff --git a/cs/bsdx0200GUISourceCode/bin/Release/ClinicalScheduling.XML b/cs/bsdx0200GUISourceCode/bin/Release/ClinicalScheduling.XML
index c5dfe84..e0982ea 100644
--- a/cs/bsdx0200GUISourceCode/bin/Release/ClinicalScheduling.XML
+++ b/cs/bsdx0200GUISourceCode/bin/Release/ClinicalScheduling.XML
@@ -584,10 +584,19 @@
Print message on a page; typically that there are no appointments to be found.
+ Or just a test message to verify that printing works.
The exact string to print.
Print Page event args
+
+
+ Print Routing Slip
+
+ Appointment Data Structure
+ String to print for title
+ etc
+
Summary description for DResourceGroup.
@@ -659,11 +668,6 @@
Summary description for DCheckIn.
-
-
- Required designer variable.
-
-
Fill memeber variables before showing dialog