Changeset 900 for Scheduling/trunk/cs/bsdx0200GUISourceCode/Printing.cs
- Timestamp:
- Aug 10, 2010, 8:00:01 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/Printing.cs
r804 r900 86 86 87 87 StringBuilder apptPrintStr = new StringBuilder(200); 88 apptPrintStr.AppendLine(a.ApptDate.ToString() + "\t" + a.Name + " (" + a.Sex + ")" + "\t" + "DOB: " + a.DOB.ToString("dd-MMM-yyyy") + "\t" + "ID: " + a.HRN);88 apptPrintStr.AppendLine(a.ApptDate.ToString() + "\t" + a.Name + " (" + a.Sex + ")" + "\t" + "DOB: " + a.DOB.ToShortDateString() + "\t" + "ID: " + a.HRN); 89 89 apptPrintStr.AppendLine("P: " + a.HOMEPHONE + "\t" + "Address: " + a.STREET + ", " + a.CITY + ", " + a.STATE + " " + a.ZIP); 90 90 apptPrintStr.AppendLine("Note: " + a.NOTE); … … 158 158 printArea.Height -= strHeight; 159 159 160 //Text Direction 161 StringFormat sf2 = new StringFormat(); 162 if (System.Threading.Thread.CurrentThread.CurrentCulture.TextInfo.IsRightToLeft) 163 sf2.FormatFlags = StringFormatFlags.DirectionRightToLeft; 164 160 165 // write missive 161 g.DrawString(letter, fBody, Brushes.Black, printArea );166 g.DrawString(letter, fBody, Brushes.Black, printArea, sf2); 162 167 163 168 //print Address in lower left corner for windowed envolopes … … 209 214 printArea.Height -= strHeight; 210 215 216 //Text Direction 217 StringFormat sf2 = new StringFormat(); 218 if (System.Threading.Thread.CurrentThread.CurrentCulture.TextInfo.IsRightToLeft) 219 sf2.FormatFlags = StringFormatFlags.DirectionRightToLeft; 220 211 221 // write missive 212 g.DrawString(letter, fBody, Brushes.Black, printArea );222 g.DrawString(letter, fBody, Brushes.Black, printArea, sf2); 213 223 214 224 //print Address in lower left corner for windowed envolopes … … 261 271 printArea.Height -= strHeight; 262 272 273 //Text Direction 274 StringFormat sf2 = new StringFormat(); 275 if (System.Threading.Thread.CurrentThread.CurrentCulture.TextInfo.IsRightToLeft) 276 sf2.FormatFlags = StringFormatFlags.DirectionRightToLeft; 277 263 278 // write missive 264 g.DrawString(letter, fBody, Brushes.Black, printArea );279 g.DrawString(letter, fBody, Brushes.Black, printArea, sf2); 265 280 266 281 //print Address in lower left corner for windowed envolopes … … 313 328 // draw underline 314 329 g.DrawLine(Pens.Black, printArea.Location, new Point(printArea.Right, printArea.Y)); 330 331 // move down 315 332 printArea.Y += 15; 316 333 printArea.Height -= 15; 317 334 318 335 //construct what to print 319 string toprint = "Patient: " + a.PatientName + "\t" + "ID: " + a. PatientID;336 string toprint = "Patient: " + a.PatientName + "\t" + "ID: " + a.HealthRecordNumber; 320 337 toprint += "\n\n"; 321 toprint += "Appointment Time: " + a.StartTime.ToLongDateString() + " " + a.StartTime.ToLongTimeString(); 338 toprint += "Clinic: " + a.Resource; 339 toprint += "\n\n"; 340 toprint += "Appointment Time: " + a.StartTime; 322 341 toprint += "\n\n"; 323 342 toprint += "Notes:\n" + a.Note;
Note:
See TracChangeset
for help on using the changeset viewer.