Changeset 900 for Scheduling/trunk/cs/bsdx0200GUISourceCode
- Timestamp:
- Aug 10, 2010, 8:00:01 AM (14 years ago)
- Location:
- Scheduling/trunk/cs/bsdx0200GUISourceCode
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGAppointment.cs
r622 r900 42 42 public override string ToString() 43 43 { 44 //StringFormat sf = new StringFormat(); 45 //sf.SetDigitSubstitution(System.Threading.Thread.CurrentThread.CurrentCulture.LCID, StringDigitSubstitute.National); 44 46 string patientName = ""; 45 47 if (this.m_bAccessBlock) -
Scheduling/trunk/cs/bsdx0200GUISourceCode/CalendarGrid.cs
r846 r900 659 659 DateTime endTime = a.EndTime; 660 660 string resource = a.Resource; 661 int num= 0;662 int num2= 0;663 int num3= 0;664 int num4= 0;665 int num5= 0;661 int originX = 0; 662 int originY = 0; 663 int recHeight = 0; 664 int recWidth = 0; 665 int columnToPutAppt = 0; 666 666 Rectangle rectangle = new Rectangle(); 667 int totalMinutes = (int) startTime.TimeOfDay.TotalMinutes; 668 int num7 = (int) endTime.TimeOfDay.TotalMinutes; 667 int startTotalMinutesoffset = (int) startTime.TimeOfDay.TotalMinutes; 668 int endTotalMinutesoffset = (int) endTime.TimeOfDay.TotalMinutes; 669 // if grid has more than one reource 669 670 if (this.m_sResourcesArray.Count > 1) 670 671 { 671 num5 = (int) this.m_ColumnInfoTable[resource]; 672 num5++; 672 // get zero based index 673 columnToPutAppt = (int) this.m_ColumnInfoTable[resource]; 674 // increment to 1 based index 675 columnToPutAppt++; 673 676 } 674 677 else 675 678 { 676 num5 = ((int) (startTime.DayOfWeek - this.m_dtStart.DayOfWeek))+ 1;677 } 678 if ( num5< 1)679 columnToPutAppt = (startTime - this.m_dtStart).Days + 1; 680 } 681 if (columnToPutAppt < 1) 679 682 { 680 683 bRet = false; 681 684 return rectangle; 682 685 } 683 num = col0Width + (cellWidth * (num5- 1));684 int num8 = totalMinutes+ this.m_nTimeScale;685 int num9 = ( num7 > 0) ? num7: 0x5a0;686 num9 -= totalMinutes;687 num2= (cellHeight * num8) / this.m_nTimeScale;688 num3= (cellHeight * num9) / this.m_nTimeScale;689 num4= cellWidth;690 rectangle.X = num;691 rectangle.Y = num2;692 rectangle.Width = num4;693 rectangle.Height = num3;686 originX = col0Width + (cellWidth * (columnToPutAppt - 1)); 687 int num8 = startTotalMinutesoffset + this.m_nTimeScale; 688 int num9 = (endTotalMinutesoffset > 0) ? endTotalMinutesoffset : 0x5a0; 689 num9 -= startTotalMinutesoffset; 690 originY = (cellHeight * num8) / this.m_nTimeScale; 691 recHeight = (cellHeight * num9) / this.m_nTimeScale; 692 recWidth = cellWidth; 693 rectangle.X = originX; 694 rectangle.Y = originY; 695 rectangle.Width = recWidth; 696 rectangle.Height = recHeight; 694 697 bRet = true; 695 698 return rectangle; -
Scheduling/trunk/cs/bsdx0200GUISourceCode/ClinicalScheduling.csproj.user
r884 r900 36 36 </RemoteDebugMachine> 37 37 <StartAction>Project</StartAction> 38 <StartArguments>/s=1 72.16.17.51 /p=9240 /a=shabiel12 /v=catdog.44/e=windows-1256</StartArguments>38 <StartArguments>/s=10.161.20.25 /p=9235 /a=shabiel12 /v=abc,123! /e=windows-1256</StartArguments> 39 39 <StartPage> 40 40 </StartPage> … … 55 55 </RemoteDebugMachine> 56 56 <StartAction>Project</StartAction> 57 <StartArguments>/s=1 72.16.17.51 /p=9240 /a=shabiel12 /v=catdog.44/e=windows-1256</StartArguments>57 <StartArguments>/s=10.161.20.25 /p=9235 /a=shabiel12 /v=abc,123! /e=windows-1256</StartArguments> 58 58 <StartPage> 59 59 </StartPage> -
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.