Changeset 1131 for Scheduling
- Timestamp:
- Apr 4, 2011, 6:11:50 AM (14 years ago)
- Location:
- Scheduling/trunk/cs/bsdx0200GUISourceCode
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocumentManager.cs
r1122 r1131 497 497 498 498 499 500 499 //User Interface Culture (m_CultureName is set from the command line flag /culture) 501 try { Thread.CurrentThread.CurrentUICulture = new CultureInfo(m_CultureName); } // if "", invariant culture 502 catch (CultureNotFoundException) { Thread.CurrentThread.CurrentUICulture = CultureInfo.InvariantCulture; } 500 // 501 //If passed, set that try that culture; fail over to Invariant Culture 502 if (m_CultureName != String.Empty) 503 { 504 try { Thread.CurrentThread.CurrentUICulture = new CultureInfo(m_CultureName); } 505 catch (CultureNotFoundException) { Thread.CurrentThread.CurrentUICulture = CultureInfo.InvariantCulture; } 506 } 507 //otherwise, use the Current Computer Culture, EVEN IF (!!) the UI Culture is different. 508 //this allows localization even if Windows still displays messages in English. 509 else 510 { 511 Thread.CurrentThread.CurrentUICulture = Thread.CurrentThread.CurrentCulture; 512 } 503 513 504 514 //Create global dataset -
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGView.cs
r1128 r1131 244 244 this.lblResource = new System.Windows.Forms.Label(); 245 245 this.panelCenter = new System.Windows.Forms.Panel(); 246 this.calendarGrid1 = new IndianHealthService.ClinicalScheduling.CalendarGrid();247 246 this.ctxCalendarGrid = new System.Windows.Forms.ContextMenu(); 248 247 this.ctxCalGridAdd = new System.Windows.Forms.MenuItem(); … … 262 261 this.splitter1 = new System.Windows.Forms.Splitter(); 263 262 this.splitter2 = new System.Windows.Forms.Splitter(); 263 this.calendarGrid1 = new IndianHealthService.ClinicalScheduling.CalendarGrid(); 264 264 this.panelRight.SuspendLayout(); 265 265 this.panelClip.SuspendLayout(); … … 647 647 this.tvSchedules.Location = new System.Drawing.Point(0, 0); 648 648 this.tvSchedules.Name = "tvSchedules"; 649 this.tvSchedules.Size = new System.Drawing.Size(128, 485);649 this.tvSchedules.Size = new System.Drawing.Size(128, 359); 650 650 this.tvSchedules.Sorted = true; 651 651 this.tvSchedules.TabIndex = 1; … … 716 716 this.panelRight.Location = new System.Drawing.Point(996, 0); 717 717 this.panelRight.Name = "panelRight"; 718 this.panelRight.Size = new System.Drawing.Size(128, 485);718 this.panelRight.Size = new System.Drawing.Size(128, 359); 719 719 this.panelRight.TabIndex = 3; 720 720 this.panelRight.Visible = false; … … 812 812 this.panelCenter.Location = new System.Drawing.Point(136, 24); 813 813 this.panelCenter.Name = "panelCenter"; 814 this.panelCenter.Size = new System.Drawing.Size(857, 437);814 this.panelCenter.Size = new System.Drawing.Size(857, 311); 815 815 this.panelCenter.TabIndex = 7; 816 // 817 // ctxCalendarGrid 818 // 819 this.ctxCalendarGrid.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { 820 this.ctxCalGridAdd, 821 this.ctxCalGridEdit, 822 this.ctxCalGridDelete, 823 this.ctxCalGridCheckIn, 824 this.ctxCalGridUndoCheckin, 825 this.menuItem2, 826 this.ctxCalGridNoShow, 827 this.ctxCalGridNoShowUndo, 828 this.menuItem9, 829 this.ctxCalGridWalkin, 830 this.menuItem10, 831 this.ctxCalGridReprintApptSlip}); 832 this.ctxCalendarGrid.Popup += new System.EventHandler(this.ctxCalendarGrid_Popup); 833 // 834 // ctxCalGridAdd 835 // 836 this.ctxCalGridAdd.Index = 0; 837 this.ctxCalGridAdd.Text = "Add Appointment"; 838 this.ctxCalGridAdd.Click += new System.EventHandler(this.ctxCalGridAdd_Click); 839 // 840 // ctxCalGridEdit 841 // 842 this.ctxCalGridEdit.Index = 1; 843 this.ctxCalGridEdit.Text = "Edit Appointment"; 844 this.ctxCalGridEdit.Click += new System.EventHandler(this.ctxCalGridEdit_Click); 845 // 846 // ctxCalGridDelete 847 // 848 this.ctxCalGridDelete.Index = 2; 849 this.ctxCalGridDelete.Text = "Cancel Appointment"; 850 this.ctxCalGridDelete.Click += new System.EventHandler(this.ctxCalGridDelete_Click); 851 // 852 // ctxCalGridCheckIn 853 // 854 this.ctxCalGridCheckIn.Index = 3; 855 this.ctxCalGridCheckIn.Text = "Check In Patient"; 856 this.ctxCalGridCheckIn.Click += new System.EventHandler(this.ctxCalGridCheckIn_Click); 857 // 858 // ctxCalGridUndoCheckin 859 // 860 this.ctxCalGridUndoCheckin.Index = 4; 861 this.ctxCalGridUndoCheckin.Text = "&Undo Check In"; 862 this.ctxCalGridUndoCheckin.Click += new System.EventHandler(this.ctxCalGridUndoCheckin_Click); 863 // 864 // menuItem2 865 // 866 this.menuItem2.Index = 5; 867 this.menuItem2.Text = "-"; 868 // 869 // ctxCalGridNoShow 870 // 871 this.ctxCalGridNoShow.Index = 6; 872 this.ctxCalGridNoShow.Text = "Mark as No Show"; 873 this.ctxCalGridNoShow.Click += new System.EventHandler(this.ctxCalGridNoShow_Click); 874 // 875 // ctxCalGridNoShowUndo 876 // 877 this.ctxCalGridNoShowUndo.Index = 7; 878 this.ctxCalGridNoShowUndo.Text = "Undo NoShow"; 879 this.ctxCalGridNoShowUndo.Click += new System.EventHandler(this.ctxCalGridNoShowUndo_Click); 880 // 881 // menuItem9 882 // 883 this.menuItem9.Index = 8; 884 this.menuItem9.Text = "-"; 885 // 886 // ctxCalGridWalkin 887 // 888 this.ctxCalGridWalkin.Index = 9; 889 this.ctxCalGridWalkin.Text = "Create Wal&k-In Appointment"; 890 this.ctxCalGridWalkin.Click += new System.EventHandler(this.ctxCalGridWalkin_Click); 891 // 892 // menuItem10 893 // 894 this.menuItem10.Index = 10; 895 this.menuItem10.Text = "-"; 896 // 897 // ctxCalGridReprintApptSlip 898 // 899 this.ctxCalGridReprintApptSlip.Index = 11; 900 this.ctxCalGridReprintApptSlip.Text = "&Reprint Appointment Slip"; 901 this.ctxCalGridReprintApptSlip.Click += new System.EventHandler(this.ctxCalGridReprintApptSlip_Click); 902 // 903 // panelBottom 904 // 905 this.panelBottom.Controls.Add(this.statusBar1); 906 this.panelBottom.Dock = System.Windows.Forms.DockStyle.Bottom; 907 this.panelBottom.Location = new System.Drawing.Point(136, 335); 908 this.panelBottom.Name = "panelBottom"; 909 this.panelBottom.Size = new System.Drawing.Size(857, 24); 910 this.panelBottom.TabIndex = 8; 911 // 912 // statusBar1 913 // 914 this.statusBar1.Dock = System.Windows.Forms.DockStyle.Fill; 915 this.statusBar1.Location = new System.Drawing.Point(0, 0); 916 this.statusBar1.Name = "statusBar1"; 917 this.statusBar1.Size = new System.Drawing.Size(857, 24); 918 this.statusBar1.SizingGrip = false; 919 this.statusBar1.TabIndex = 0; 920 // 921 // splitter1 922 // 923 this.splitter1.Location = new System.Drawing.Point(128, 24); 924 this.splitter1.Name = "splitter1"; 925 this.splitter1.Size = new System.Drawing.Size(8, 335); 926 this.splitter1.TabIndex = 9; 927 this.splitter1.TabStop = false; 928 // 929 // splitter2 930 // 931 this.splitter2.Dock = System.Windows.Forms.DockStyle.Right; 932 this.splitter2.Location = new System.Drawing.Point(993, 24); 933 this.splitter2.Name = "splitter2"; 934 this.splitter2.Size = new System.Drawing.Size(3, 335); 935 this.splitter2.TabIndex = 10; 936 this.splitter2.TabStop = false; 816 937 // 817 938 // calendarGrid1 … … 834 955 this.calendarGrid1.Resources = ((System.Collections.ArrayList)(resources.GetObject("calendarGrid1.Resources"))); 835 956 this.calendarGrid1.SelectedAppointment = 0; 836 this.calendarGrid1.Size = new System.Drawing.Size(857, 437);957 this.calendarGrid1.Size = new System.Drawing.Size(857, 311); 837 958 this.calendarGrid1.StartDate = new System.DateTime(2003, 1, 27, 0, 0, 0, 0); 838 959 this.calendarGrid1.TabIndex = 0; … … 844 965 this.calendarGrid1.MouseEnter += new System.EventHandler(this.calendarGrid1_MouseEnter); 845 966 // 846 // ctxCalendarGrid847 //848 this.ctxCalendarGrid.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {849 this.ctxCalGridAdd,850 this.ctxCalGridEdit,851 this.ctxCalGridDelete,852 this.ctxCalGridCheckIn,853 this.ctxCalGridUndoCheckin,854 this.menuItem2,855 this.ctxCalGridNoShow,856 this.ctxCalGridNoShowUndo,857 this.menuItem9,858 this.ctxCalGridWalkin,859 this.menuItem10,860 this.ctxCalGridReprintApptSlip});861 this.ctxCalendarGrid.Popup += new System.EventHandler(this.ctxCalendarGrid_Popup);862 //863 // ctxCalGridAdd864 //865 this.ctxCalGridAdd.Index = 0;866 this.ctxCalGridAdd.Text = "Add Appointment";867 this.ctxCalGridAdd.Click += new System.EventHandler(this.ctxCalGridAdd_Click);868 //869 // ctxCalGridEdit870 //871 this.ctxCalGridEdit.Index = 1;872 this.ctxCalGridEdit.Text = "Edit Appointment";873 this.ctxCalGridEdit.Click += new System.EventHandler(this.ctxCalGridEdit_Click);874 //875 // ctxCalGridDelete876 //877 this.ctxCalGridDelete.Index = 2;878 this.ctxCalGridDelete.Text = "Cancel Appointment";879 this.ctxCalGridDelete.Click += new System.EventHandler(this.ctxCalGridDelete_Click);880 //881 // ctxCalGridCheckIn882 //883 this.ctxCalGridCheckIn.Index = 3;884 this.ctxCalGridCheckIn.Text = "Check In Patient";885 this.ctxCalGridCheckIn.Click += new System.EventHandler(this.ctxCalGridCheckIn_Click);886 //887 // ctxCalGridUndoCheckin888 //889 this.ctxCalGridUndoCheckin.Index = 4;890 this.ctxCalGridUndoCheckin.Text = "&Undo Check In";891 this.ctxCalGridUndoCheckin.Click += new System.EventHandler(this.ctxCalGridUndoCheckin_Click);892 //893 // menuItem2894 //895 this.menuItem2.Index = 5;896 this.menuItem2.Text = "-";897 //898 // ctxCalGridNoShow899 //900 this.ctxCalGridNoShow.Index = 6;901 this.ctxCalGridNoShow.Text = "Mark as No Show";902 this.ctxCalGridNoShow.Click += new System.EventHandler(this.ctxCalGridNoShow_Click);903 //904 // ctxCalGridNoShowUndo905 //906 this.ctxCalGridNoShowUndo.Index = 7;907 this.ctxCalGridNoShowUndo.Text = "Undo NoShow";908 this.ctxCalGridNoShowUndo.Click += new System.EventHandler(this.ctxCalGridNoShowUndo_Click);909 //910 // menuItem9911 //912 this.menuItem9.Index = 8;913 this.menuItem9.Text = "-";914 //915 // ctxCalGridWalkin916 //917 this.ctxCalGridWalkin.Index = 9;918 this.ctxCalGridWalkin.Text = "Create Wal&k-In Appointment";919 this.ctxCalGridWalkin.Click += new System.EventHandler(this.ctxCalGridWalkin_Click);920 //921 // menuItem10922 //923 this.menuItem10.Index = 10;924 this.menuItem10.Text = "-";925 //926 // ctxCalGridReprintApptSlip927 //928 this.ctxCalGridReprintApptSlip.Index = 11;929 this.ctxCalGridReprintApptSlip.Text = "&Reprint Appointment Slip";930 this.ctxCalGridReprintApptSlip.Click += new System.EventHandler(this.ctxCalGridReprintApptSlip_Click);931 //932 // panelBottom933 //934 this.panelBottom.Controls.Add(this.statusBar1);935 this.panelBottom.Dock = System.Windows.Forms.DockStyle.Bottom;936 this.panelBottom.Location = new System.Drawing.Point(136, 461);937 this.panelBottom.Name = "panelBottom";938 this.panelBottom.Size = new System.Drawing.Size(857, 24);939 this.panelBottom.TabIndex = 8;940 //941 // statusBar1942 //943 this.statusBar1.Dock = System.Windows.Forms.DockStyle.Fill;944 this.statusBar1.Location = new System.Drawing.Point(0, 0);945 this.statusBar1.Name = "statusBar1";946 this.statusBar1.Size = new System.Drawing.Size(857, 24);947 this.statusBar1.SizingGrip = false;948 this.statusBar1.TabIndex = 0;949 //950 // splitter1951 //952 this.splitter1.Location = new System.Drawing.Point(128, 24);953 this.splitter1.Name = "splitter1";954 this.splitter1.Size = new System.Drawing.Size(8, 461);955 this.splitter1.TabIndex = 9;956 this.splitter1.TabStop = false;957 //958 // splitter2959 //960 this.splitter2.Dock = System.Windows.Forms.DockStyle.Right;961 this.splitter2.Location = new System.Drawing.Point(993, 24);962 this.splitter2.Name = "splitter2";963 this.splitter2.Size = new System.Drawing.Size(3, 461);964 this.splitter2.TabIndex = 10;965 this.splitter2.TabStop = false;966 //967 967 // CGView 968 968 // 969 969 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); 970 this.ClientSize = new System.Drawing.Size(1124, 485);970 this.ClientSize = new System.Drawing.Size(1124, 359); 971 971 this.Controls.Add(this.panelCenter); 972 972 this.Controls.Add(this.panelBottom); -
Scheduling/trunk/cs/bsdx0200GUISourceCode/ClinicalScheduling.csproj.user
r1124 r1131 37 37 </RemoteDebugMachine> 38 38 <StartAction>Project</StartAction> 39 <StartArguments>/s=172.16.16.108 /p=9250 /a= s.habiel /v=catdog.66 /culture=ar-JO</StartArguments>39 <StartArguments>/s=172.16.16.108 /p=9250 /a=BASMA.ALDWAIRI /v=SELEN.123</StartArguments> 40 40 <StartPage> 41 41 </StartPage> -
Scheduling/trunk/cs/bsdx0200GUISourceCode/Printing.cs
r1126 r1131 136 136 apptPrinting++; 137 137 } 138 139 140 g.Dispose(); 138 141 } 139 142 … … 164 167 }; 165 168 169 string s; 166 170 167 171 // A few fonts … … 170 174 Font fGroupTitle = new Font(FontFamily.GenericSansSerif, 10, FontStyle.Bold); 171 175 172 StringFormat sf 0= new StringFormat()176 StringFormat sfCenterCenter = new StringFormat() 173 177 { 174 178 Alignment = StringAlignment.Center, … … 178 182 // Draw Header 179 183 string division = CGDocumentManager.Current.ConnectInfo.DivisionName; 180 g.DrawString(division, fBody, Brushes.Black, headerArea, sf0); 181 184 g.DrawString(division, fBody, Brushes.Black, headerArea, sfCenterCenter); 185 186 const int watermarkLength = 75; 187 188 // Move down for optional form paper 189 printArea.Y += watermarkLength; 190 printArea.Height -= watermarkLength; 191 182 192 // Draw Title 183 StringFormat sf = new StringFormat();184 sf .Alignment = StringAlignment.Center; //for title & header193 StringFormat sfCenter = new StringFormat(); 194 sfCenter.Alignment = StringAlignment.Center; //for title & header 185 195 186 196 //string s = "Appointment Reminder Slip"; 187 s tring s= strings.ApptReminderSlip;188 g.DrawString(s, fTitle, Brushes.Black, printArea, sf ); //title197 s = strings.ApptReminderSlip; 198 g.DrawString(s, fTitle, Brushes.Black, printArea, sfCenter); //title 189 199 190 200 // move down … … 270 280 // Draw new Title 271 281 s = strings.ClinicInstructions; 272 g.DrawString(s, fTitle, Brushes.Black, printArea, sf ); //title282 g.DrawString(s, fTitle, Brushes.Black, printArea, sfCenter); //title 273 283 274 284 // move down … … 303 313 304 314 s = strings.Notes; 305 g.DrawString(s, fTitle, Brushes.Black, printArea, sf ); // Notes title315 g.DrawString(s, fTitle, Brushes.Black, printArea, sfCenter); // Notes title 306 316 307 317 // move down … … 324 334 s = strings.Printed + ": " + DateTime.Now.ToString(); 325 335 Font fFooter = new Font(FontFamily.GenericSerif, 7); 326 g.DrawString(s, fFooter, Brushes.Black, footerArea, sf0); 327 336 g.DrawString(s, fFooter, Brushes.Black, footerArea, sfCenterCenter); 337 338 g.Dispose(); 328 339 } 329 340 … … 404 415 address.AppendLine(ptRow.CITY + ", " + ptRow.STATE + " " + ptRow.ZIP); 405 416 g.DrawString(address.ToString(), fBody, Brushes.Black, printArea, sf); 417 418 g.Dispose(); 406 419 } 407 420 … … 460 473 address.AppendLine(ptRow.CITY + ", " + ptRow.STATE + " " + ptRow.ZIP); 461 474 g.DrawString(address.ToString(), fBody, Brushes.Black, printArea, sf); 475 476 g.Dispose(); 462 477 } 463 478 … … 518 533 g.DrawString(address.ToString(), fBody, Brushes.Black, printArea, sf); 519 534 535 g.Dispose(); 520 536 } 521 537 … … 530 546 e.Graphics.DrawString(msg, new Font(FontFamily.GenericSerif, 14), 531 547 Brushes.Black, e.MarginBounds); 548 e.Graphics.Dispose(); 532 549 } 533 550 … … 577 594 g.DrawString(division, fBody, Brushes.Black, headerArea, sf0); 578 595 596 const int watermarkLength = 75; 597 598 // Move down for optional form paper 599 printArea.Y += watermarkLength; 600 printArea.Height -= watermarkLength; 601 579 602 // Draw Title 580 603 StringFormat sf = new StringFormat(); 581 604 sf.Alignment = StringAlignment.Center; //for title & header 582 string title = "Routing Slip";605 string title = strings.RoutingSlip; 583 606 g.DrawString(title, fTitle, Brushes.Black, printArea, sf); //title 584 607 … … 601 624 602 625 // group header 603 g.DrawString("Patient Information", fGroupTitle, Brushes.Black, new Point(personalInfoRectangle.X, personalInfoRectangle.Y - 20)); 626 s = strings.PtInfo; 627 StringFormat sf3 = new StringFormat(System.Threading.Thread.CurrentThread.CurrentUICulture.TextInfo.IsRightToLeft ? StringFormatFlags.DirectionRightToLeft : 0); 628 g.DrawString(s, fGroupTitle, Brushes.Black, new Rectangle(personalInfoRectangle.X, personalInfoRectangle.Y - 20, personalInfoRectangle.Width, 20), sf3); 629 630 StringFormat sf4 = new StringFormat(System.Threading.Thread.CurrentThread.CurrentUICulture.TextInfo.IsRightToLeft ? StringFormatFlags.DirectionRightToLeft : 0); 631 sf4.SetTabStops(0, new float[] { 75 }); 632 sf4.SetDigitSubstitution(System.Threading.Thread.CurrentThread.CurrentUICulture.LCID, StringDigitSubstitute.Traditional); 604 633 605 634 // inner rectangle for drawing strings: … … 608 637 // Strings to write 609 638 StringBuilder sb = new StringBuilder(500); 610 sb.AppendLine( "Name:" + "\t" + appt.Patient.Name);611 sb.AppendLine(); 612 sb.AppendLine( "ID#:" + "\t" + appt.Patient.ID);613 sb.AppendLine(); 614 sb.AppendLine( "DOB:" + "\t" + appt.Patient.DOB.ToShortDateString());615 sb.AppendLine(); 616 sb.AppendLine( "Age:" + "\t" + appt.Patient.UserFriendlyAge);639 sb.AppendLine(strings.Name + ":" + "\t" + appt.Patient.Name); 640 sb.AppendLine(); 641 sb.AppendLine(strings.ID + ":" + "\t" + appt.Patient.ID); 642 sb.AppendLine(); 643 sb.AppendLine(strings.DOB + ":" + "\t" + appt.Patient.DOB.ToShortDateString()); 644 sb.AppendLine(); 645 sb.AppendLine(strings.Age + ":" + "\t" + appt.Patient.UserFriendlyAge); 617 646 //sb.AppendLine(); 618 647 //sb.AppendLine("Sex:" + "\t" + appt.Patient.Sex.ToString()); 619 648 620 649 // Draw them 621 g.DrawString(sb.ToString(), fBody, Brushes.Black, personalInfoInnerRectangle );650 g.DrawString(sb.ToString(), fBody, Brushes.Black, personalInfoInnerRectangle, sf4); 622 651 623 652 // draw curved rectangle … … 629 658 630 659 // group header 631 g.DrawString("Appointment Information", fGroupTitle, Brushes.Black, new Point(apptInfoRectangle.X, apptInfoRectangle.Y - 20)); 660 s = strings.ApptInfo; 661 g.DrawString(s, fGroupTitle, Brushes.Black, new Rectangle(apptInfoRectangle.X, apptInfoRectangle.Y - 20, apptInfoRectangle.Width, 20), sf3); 632 662 633 663 // Strings to write 634 664 sb = new StringBuilder(); 635 sb.AppendLine( "Clinic:");665 sb.AppendLine(strings.Clinic + ":"); 636 666 sb.AppendLine(appt.Resource); 637 667 sb.AppendLine(); 638 sb.AppendLine( "Appointment Provider:");639 sb.AppendLine((appt.Provider == null) ? "(none)": appt.Provider.ToString()); //Appt Provider or (none) if null640 sb.AppendLine(); 641 sb.AppendLine( "Patient Order:" + "\t" + apptOrder);642 sb.AppendLine( "Date:" + "\t" + appt.StartTime.ToShortDateString() + " " + appt.StartTime.ToShortTimeString());643 sb.AppendLine(); 644 sb.AppendLine( "Appointment Note:");645 sb.AppendLine(String.IsNullOrWhiteSpace(appt.Note)? "(none)": appt.Note);668 sb.AppendLine(strings.AppointmentProvider + ":"); 669 sb.AppendLine((appt.Provider == null) ? strings.none : appt.Provider.ToString()); //Appt Provider or (none) if null 670 sb.AppendLine(); 671 sb.AppendLine(strings.PatientOrder + ":" + "\t" + apptOrder); 672 sb.AppendLine(strings.Date + ":" + "\t" + appt.StartTime.ToShortDateString() + " " + appt.StartTime.ToShortTimeString()); 673 sb.AppendLine(); 674 sb.AppendLine(strings.AppointmentNote + ":"); 675 sb.AppendLine(String.IsNullOrWhiteSpace(appt.Note)? strings.none : appt.Note); 646 676 647 677 // Draw them … … 649 679 650 680 // Draw them 651 g.DrawString(sb.ToString(), fBody, Brushes.Black, apptInfoInnerRectangle );681 g.DrawString(sb.ToString(), fBody, Brushes.Black, apptInfoInnerRectangle, sf4); 652 682 653 683 // Move Drawing Rectangle Down … … 665 695 printArea.Height -= 5; 666 696 667 s = "Scratch Area"; 668 g.DrawString(s, fGroupTitle, Brushes.Black, printArea); 669 670 // move down 671 printArea.Y += 300; 672 printArea.Height -= 300; 673 674 //TODO: Put Next Appointment Area 697 s = strings.ScratchArea; 698 g.DrawString(s, fGroupTitle, Brushes.Black, printArea, sf3); 699 700 // move down 701 printArea.Y += 240; 702 printArea.Height -= 240; 703 675 704 using (Pen dashpen = new Pen(Color.Black)) 676 705 { … … 682 711 printArea.Height -= 5; 683 712 684 s = "Next Appointment Instructions";685 g.DrawString(s, fGroupTitle, Brushes.Black, printArea );713 s = strings.NextAppointmentInstructions; 714 g.DrawString(s, fGroupTitle, Brushes.Black, printArea, sf3); 686 715 687 716 // Draw Footer 688 717 //use sf0 to print the footer (center all the way) 689 s = "Printed: " + DateTime.Now.ToString();718 s = strings.Printed + ": " + DateTime.Now.ToString(); 690 719 Font fFooter = new Font(FontFamily.GenericSerif, 7); 691 720 g.DrawString(s, fFooter, Brushes.Black, footerArea, sf0); -
Scheduling/trunk/cs/bsdx0200GUISourceCode/strings.Designer.cs
r1126 r1131 80 80 81 81 /// <summary> 82 /// Looks up a localized string similar to Appointment Note. 83 /// </summary> 84 internal static string AppointmentNote { 85 get { 86 return ResourceManager.GetString("AppointmentNote", resourceCulture); 87 } 88 } 89 90 /// <summary> 91 /// Looks up a localized string similar to Appointment Provider. 92 /// </summary> 93 internal static string AppointmentProvider { 94 get { 95 return ResourceManager.GetString("AppointmentProvider", resourceCulture); 96 } 97 } 98 99 /// <summary> 82 100 /// Looks up a localized string similar to Appointment Details. 83 101 /// </summary> … … 188 206 189 207 /// <summary> 208 /// Looks up a localized string similar to Next Appointment Instructions. 209 /// </summary> 210 internal static string NextAppointmentInstructions { 211 get { 212 return ResourceManager.GetString("NextAppointmentInstructions", resourceCulture); 213 } 214 } 215 216 /// <summary> 190 217 /// Looks up a localized string similar to (no instructions provided). 191 218 /// </summary> … … 197 224 198 225 /// <summary> 226 /// Looks up a localized string similar to (none). 227 /// </summary> 228 internal static string none { 229 get { 230 return ResourceManager.GetString("none", resourceCulture); 231 } 232 } 233 234 /// <summary> 199 235 /// Looks up a localized string similar to Notes. 200 236 /// </summary> … … 206 242 207 243 /// <summary> 244 /// Looks up a localized string similar to Patient Order. 245 /// </summary> 246 internal static string PatientOrder { 247 get { 248 return ResourceManager.GetString("PatientOrder", resourceCulture); 249 } 250 } 251 252 /// <summary> 208 253 /// Looks up a localized string similar to Printed. 209 254 /// </summary> … … 220 265 get { 221 266 return ResourceManager.GetString("PtInfo", resourceCulture); 267 } 268 } 269 270 /// <summary> 271 /// Looks up a localized string similar to Routing Slip. 272 /// </summary> 273 internal static string RoutingSlip { 274 get { 275 return ResourceManager.GetString("RoutingSlip", resourceCulture); 276 } 277 } 278 279 /// <summary> 280 /// Looks up a localized string similar to Scratch Area. 281 /// </summary> 282 internal static string ScratchArea { 283 get { 284 return ResourceManager.GetString("ScratchArea", resourceCulture); 222 285 } 223 286 } -
Scheduling/trunk/cs/bsdx0200GUISourceCode/strings.ar.resx
r1126 r1131 173 173 </data> 174 174 <data name="years" xml:space="preserve"> 175 <value>سن وات</value>175 <value>سنة</value> 176 176 </data> 177 177 <data name="Female" xml:space="preserve"> … … 181 181 <value>ذكر</value> 182 182 </data> 183 <data name="AppointmentNote" xml:space="preserve"> 184 <value>ملاحضات الموعد</value> 185 </data> 186 <data name="AppointmentProvider" xml:space="preserve"> 187 <value>الموعد عند</value> 188 </data> 189 <data name="NextAppointmentInstructions" xml:space="preserve"> 190 <value>تعليمات الموعد القادم</value> 191 </data> 192 <data name="none" xml:space="preserve"> 193 <value>(غير متوفر)</value> 194 </data> 195 <data name="PatientOrder" xml:space="preserve"> 196 <value>دور المريض</value> 197 </data> 198 <data name="RoutingSlip" xml:space="preserve"> 199 <value>قسيمة التوجيه</value> 200 </data> 201 <data name="ScratchArea" xml:space="preserve"> 202 <value>ملاحضات زائدة</value> 203 </data> 183 204 </root> -
Scheduling/trunk/cs/bsdx0200GUISourceCode/strings.resx
r1126 r1131 181 181 <value>Male</value> 182 182 </data> 183 <data name="AppointmentNote" xml:space="preserve"> 184 <value>Appointment Note</value> 185 </data> 186 <data name="AppointmentProvider" xml:space="preserve"> 187 <value>Appointment Provider</value> 188 </data> 189 <data name="NextAppointmentInstructions" xml:space="preserve"> 190 <value>Next Appointment Instructions</value> 191 </data> 192 <data name="none" xml:space="preserve"> 193 <value>(none)</value> 194 </data> 195 <data name="PatientOrder" xml:space="preserve"> 196 <value>Patient Order</value> 197 </data> 198 <data name="RoutingSlip" xml:space="preserve"> 199 <value>Routing Slip</value> 200 </data> 201 <data name="ScratchArea" xml:space="preserve"> 202 <value>Scratch Area</value> 203 </data> 183 204 </root>
Note:
See TracChangeset
for help on using the changeset viewer.