Changeset 1131


Ignore:
Timestamp:
Apr 4, 2011, 6:11:50 AM (13 years ago)
Author:
Sam Habiel
Message:

CGDocumentManager: Localization now works from CurrentCulture, not just CurrentUICulture.
CGView: Nothing important. Designer moves around stuff; again.
Printing: Routing slip arabized; page starts at a lower level to allow for a watermark. Graphics.Dispose now called at the end of all prints to allow for faster gc.
strings: Updated with more translations.

Location:
Scheduling/trunk/cs/bsdx0200GUISourceCode
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocumentManager.cs

    r1122 r1131  
    497497           
    498498           
    499 
    500499            //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            }
    503513
    504514            //Create global dataset
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/CGView.cs

    r1128 r1131  
    244244            this.lblResource = new System.Windows.Forms.Label();
    245245            this.panelCenter = new System.Windows.Forms.Panel();
    246             this.calendarGrid1 = new IndianHealthService.ClinicalScheduling.CalendarGrid();
    247246            this.ctxCalendarGrid = new System.Windows.Forms.ContextMenu();
    248247            this.ctxCalGridAdd = new System.Windows.Forms.MenuItem();
     
    262261            this.splitter1 = new System.Windows.Forms.Splitter();
    263262            this.splitter2 = new System.Windows.Forms.Splitter();
     263            this.calendarGrid1 = new IndianHealthService.ClinicalScheduling.CalendarGrid();
    264264            this.panelRight.SuspendLayout();
    265265            this.panelClip.SuspendLayout();
     
    647647            this.tvSchedules.Location = new System.Drawing.Point(0, 0);
    648648            this.tvSchedules.Name = "tvSchedules";
    649             this.tvSchedules.Size = new System.Drawing.Size(128, 485);
     649            this.tvSchedules.Size = new System.Drawing.Size(128, 359);
    650650            this.tvSchedules.Sorted = true;
    651651            this.tvSchedules.TabIndex = 1;
     
    716716            this.panelRight.Location = new System.Drawing.Point(996, 0);
    717717            this.panelRight.Name = "panelRight";
    718             this.panelRight.Size = new System.Drawing.Size(128, 485);
     718            this.panelRight.Size = new System.Drawing.Size(128, 359);
    719719            this.panelRight.TabIndex = 3;
    720720            this.panelRight.Visible = false;
     
    812812            this.panelCenter.Location = new System.Drawing.Point(136, 24);
    813813            this.panelCenter.Name = "panelCenter";
    814             this.panelCenter.Size = new System.Drawing.Size(857, 437);
     814            this.panelCenter.Size = new System.Drawing.Size(857, 311);
    815815            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;
    816937            //
    817938            // calendarGrid1
     
    834955            this.calendarGrid1.Resources = ((System.Collections.ArrayList)(resources.GetObject("calendarGrid1.Resources")));
    835956            this.calendarGrid1.SelectedAppointment = 0;
    836             this.calendarGrid1.Size = new System.Drawing.Size(857, 437);
     957            this.calendarGrid1.Size = new System.Drawing.Size(857, 311);
    837958            this.calendarGrid1.StartDate = new System.DateTime(2003, 1, 27, 0, 0, 0, 0);
    838959            this.calendarGrid1.TabIndex = 0;
     
    844965            this.calendarGrid1.MouseEnter += new System.EventHandler(this.calendarGrid1_MouseEnter);
    845966            //
    846             // ctxCalendarGrid
    847             //
    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             // ctxCalGridAdd
    864             //
    865             this.ctxCalGridAdd.Index = 0;
    866             this.ctxCalGridAdd.Text = "Add Appointment";
    867             this.ctxCalGridAdd.Click += new System.EventHandler(this.ctxCalGridAdd_Click);
    868             //
    869             // ctxCalGridEdit
    870             //
    871             this.ctxCalGridEdit.Index = 1;
    872             this.ctxCalGridEdit.Text = "Edit Appointment";
    873             this.ctxCalGridEdit.Click += new System.EventHandler(this.ctxCalGridEdit_Click);
    874             //
    875             // ctxCalGridDelete
    876             //
    877             this.ctxCalGridDelete.Index = 2;
    878             this.ctxCalGridDelete.Text = "Cancel Appointment";
    879             this.ctxCalGridDelete.Click += new System.EventHandler(this.ctxCalGridDelete_Click);
    880             //
    881             // ctxCalGridCheckIn
    882             //
    883             this.ctxCalGridCheckIn.Index = 3;
    884             this.ctxCalGridCheckIn.Text = "Check In Patient";
    885             this.ctxCalGridCheckIn.Click += new System.EventHandler(this.ctxCalGridCheckIn_Click);
    886             //
    887             // ctxCalGridUndoCheckin
    888             //
    889             this.ctxCalGridUndoCheckin.Index = 4;
    890             this.ctxCalGridUndoCheckin.Text = "&Undo Check In";
    891             this.ctxCalGridUndoCheckin.Click += new System.EventHandler(this.ctxCalGridUndoCheckin_Click);
    892             //
    893             // menuItem2
    894             //
    895             this.menuItem2.Index = 5;
    896             this.menuItem2.Text = "-";
    897             //
    898             // ctxCalGridNoShow
    899             //
    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             // ctxCalGridNoShowUndo
    905             //
    906             this.ctxCalGridNoShowUndo.Index = 7;
    907             this.ctxCalGridNoShowUndo.Text = "Undo NoShow";
    908             this.ctxCalGridNoShowUndo.Click += new System.EventHandler(this.ctxCalGridNoShowUndo_Click);
    909             //
    910             // menuItem9
    911             //
    912             this.menuItem9.Index = 8;
    913             this.menuItem9.Text = "-";
    914             //
    915             // ctxCalGridWalkin
    916             //
    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             // menuItem10
    922             //
    923             this.menuItem10.Index = 10;
    924             this.menuItem10.Text = "-";
    925             //
    926             // ctxCalGridReprintApptSlip
    927             //
    928             this.ctxCalGridReprintApptSlip.Index = 11;
    929             this.ctxCalGridReprintApptSlip.Text = "&Reprint Appointment Slip";
    930             this.ctxCalGridReprintApptSlip.Click += new System.EventHandler(this.ctxCalGridReprintApptSlip_Click);
    931             //
    932             // panelBottom
    933             //
    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             // statusBar1
    942             //
    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             // splitter1
    951             //
    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             // splitter2
    959             //
    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             //
    967967            // CGView
    968968            //
    969969            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);
    971971            this.Controls.Add(this.panelCenter);
    972972            this.Controls.Add(this.panelBottom);
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/ClinicalScheduling.csproj.user

    r1124 r1131  
    3737    </RemoteDebugMachine>
    3838    <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>
    4040    <StartPage>
    4141    </StartPage>
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/Printing.cs

    r1126 r1131  
    136136                apptPrinting++;
    137137            }
     138
     139
     140            g.Dispose();
    138141        }
    139142
     
    164167            };
    165168
     169            string s;
    166170
    167171            // A few fonts
     
    170174            Font fGroupTitle = new Font(FontFamily.GenericSansSerif, 10, FontStyle.Bold);
    171175
    172             StringFormat sf0 = new StringFormat()
     176            StringFormat sfCenterCenter = new StringFormat()
    173177            {
    174178                 Alignment = StringAlignment.Center,
     
    178182            // Draw Header
    179183            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
    182192            // Draw Title
    183             StringFormat sf = new StringFormat();
    184             sf.Alignment = StringAlignment.Center; //for title & header
     193            StringFormat sfCenter = new StringFormat();
     194            sfCenter.Alignment = StringAlignment.Center; //for title & header
    185195
    186196            //string s = "Appointment Reminder Slip";
    187             string s = strings.ApptReminderSlip;
    188             g.DrawString(s, fTitle, Brushes.Black, printArea, sf); //title
     197            s = strings.ApptReminderSlip;
     198            g.DrawString(s, fTitle, Brushes.Black, printArea, sfCenter); //title
    189199
    190200            // move down
     
    270280            // Draw new Title
    271281            s = strings.ClinicInstructions;
    272             g.DrawString(s, fTitle, Brushes.Black, printArea, sf); //title
     282            g.DrawString(s, fTitle, Brushes.Black, printArea, sfCenter); //title
    273283
    274284            // move down
     
    303313
    304314            s = strings.Notes;
    305             g.DrawString(s, fTitle, Brushes.Black, printArea, sf); // Notes title
     315            g.DrawString(s, fTitle, Brushes.Black, printArea, sfCenter); // Notes title
    306316           
    307317            // move down
     
    324334            s = strings.Printed + ": " + DateTime.Now.ToString();
    325335            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();
    328339        }
    329340
     
    404415            address.AppendLine(ptRow.CITY + ", " + ptRow.STATE + " " + ptRow.ZIP);
    405416            g.DrawString(address.ToString(), fBody, Brushes.Black, printArea, sf);
     417
     418            g.Dispose();
    406419        }
    407420       
     
    460473            address.AppendLine(ptRow.CITY + ", " + ptRow.STATE + " " + ptRow.ZIP);
    461474            g.DrawString(address.ToString(), fBody, Brushes.Black, printArea, sf);
     475
     476            g.Dispose();
    462477        }
    463478
     
    518533            g.DrawString(address.ToString(), fBody, Brushes.Black, printArea, sf);
    519534
     535            g.Dispose();
    520536        }
    521537
     
    530546            e.Graphics.DrawString(msg, new Font(FontFamily.GenericSerif, 14),
    531547                Brushes.Black, e.MarginBounds);
     548            e.Graphics.Dispose();
    532549        }
    533550
     
    577594            g.DrawString(division, fBody, Brushes.Black, headerArea, sf0);
    578595
     596            const int watermarkLength = 75;
     597
     598            // Move down for optional form paper
     599            printArea.Y += watermarkLength;
     600            printArea.Height -= watermarkLength;
     601
    579602            // Draw Title
    580603            StringFormat sf = new StringFormat();
    581604            sf.Alignment = StringAlignment.Center; //for title & header
    582             string title = "Routing Slip";
     605            string title = strings.RoutingSlip;
    583606            g.DrawString(title, fTitle, Brushes.Black, printArea, sf); //title
    584607
     
    601624
    602625            // 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);
    604633
    605634            // inner rectangle for drawing strings:
     
    608637            // Strings to write
    609638            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);
    617646            //sb.AppendLine();
    618647            //sb.AppendLine("Sex:" + "\t" + appt.Patient.Sex.ToString());
    619648
    620649            // Draw them
    621             g.DrawString(sb.ToString(), fBody, Brushes.Black, personalInfoInnerRectangle);
     650            g.DrawString(sb.ToString(), fBody, Brushes.Black, personalInfoInnerRectangle, sf4);
    622651
    623652            // draw curved rectangle
     
    629658
    630659            // 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);
    632662
    633663            // Strings to write
    634664            sb = new StringBuilder();
    635             sb.AppendLine("Clinic:");
     665            sb.AppendLine(strings.Clinic + ":");
    636666            sb.AppendLine(appt.Resource);
    637667            sb.AppendLine();
    638             sb.AppendLine("Appointment Provider:");
    639             sb.AppendLine((appt.Provider == null) ? "(none)" : appt.Provider.ToString());  //Appt Provider or (none) if null
    640             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);
    646676
    647677            // Draw them
     
    649679
    650680            // Draw them
    651             g.DrawString(sb.ToString(), fBody, Brushes.Black, apptInfoInnerRectangle);
     681            g.DrawString(sb.ToString(), fBody, Brushes.Black, apptInfoInnerRectangle, sf4);
    652682
    653683            // Move Drawing Rectangle Down
     
    665695            printArea.Height -= 5;
    666696
    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
    675704            using (Pen dashpen = new Pen(Color.Black))
    676705            {
     
    682711            printArea.Height -= 5;
    683712
    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);
    686715
    687716            // Draw Footer
    688717            //use sf0 to print the footer (center all the way)
    689             s = "Printed: " + DateTime.Now.ToString();
     718            s = strings.Printed + ": " + DateTime.Now.ToString();
    690719            Font fFooter = new Font(FontFamily.GenericSerif, 7);
    691720            g.DrawString(s, fFooter, Brushes.Black, footerArea, sf0);
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/strings.Designer.cs

    r1126 r1131  
    8080       
    8181        /// <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>
    82100        ///   Looks up a localized string similar to Appointment Details.
    83101        /// </summary>
     
    188206       
    189207        /// <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>
    190217        ///   Looks up a localized string similar to (no instructions provided).
    191218        /// </summary>
     
    197224       
    198225        /// <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>
    199235        ///   Looks up a localized string similar to Notes.
    200236        /// </summary>
     
    206242       
    207243        /// <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>
    208253        ///   Looks up a localized string similar to Printed.
    209254        /// </summary>
     
    220265            get {
    221266                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);
    222285            }
    223286        }
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/strings.ar.resx

    r1126 r1131  
    173173  </data>
    174174  <data name="years" xml:space="preserve">
    175     <value>سنوات</value>
     175    <value>سنة</value>
    176176  </data>
    177177  <data name="Female" xml:space="preserve">
     
    181181    <value>ذكر</value>
    182182  </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>
    183204</root>
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/strings.resx

    r1126 r1131  
    181181    <value>Male</value>
    182182  </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>
    183204</root>
Note: See TracChangeset for help on using the changeset viewer.