Changeset 1125


Ignore:
Timestamp:
Mar 30, 2011, 5:42:22 AM (13 years ago)
Author:
Sam Habiel
Message:

CGView: Appointment Object now has Patient subobject created for routing slip information.
DPatientLookup: Now returns DOB as well.
Routing Slip doesn't print Sex anymore.
Updated Release Exes.

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

Legend:

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

    r1124 r1125  
    240240            this.lblResource = new System.Windows.Forms.Label();
    241241            this.panelCenter = new System.Windows.Forms.Panel();
     242            this.calendarGrid1 = new IndianHealthService.ClinicalScheduling.CalendarGrid();
    242243            this.ctxCalendarGrid = new System.Windows.Forms.ContextMenu();
    243244            this.ctxCalGridAdd = new System.Windows.Forms.MenuItem();
     
    257258            this.splitter1 = new System.Windows.Forms.Splitter();
    258259            this.splitter2 = new System.Windows.Forms.Splitter();
    259             this.calendarGrid1 = new IndianHealthService.ClinicalScheduling.CalendarGrid();
    260260            this.panelRight.SuspendLayout();
    261261            this.panelClip.SuspendLayout();
     
    629629            this.tvSchedules.Location = new System.Drawing.Point(0, 0);
    630630            this.tvSchedules.Name = "tvSchedules";
    631             this.tvSchedules.Size = new System.Drawing.Size(128, 204);
     631            this.tvSchedules.Size = new System.Drawing.Size(128, 485);
    632632            this.tvSchedules.Sorted = true;
    633633            this.tvSchedules.TabIndex = 1;
     
    698698            this.panelRight.Location = new System.Drawing.Point(996, 0);
    699699            this.panelRight.Name = "panelRight";
    700             this.panelRight.Size = new System.Drawing.Size(128, 204);
     700            this.panelRight.Size = new System.Drawing.Size(128, 485);
    701701            this.panelRight.TabIndex = 3;
    702702            this.panelRight.Visible = false;
     
    794794            this.panelCenter.Location = new System.Drawing.Point(136, 24);
    795795            this.panelCenter.Name = "panelCenter";
    796             this.panelCenter.Size = new System.Drawing.Size(857, 156);
     796            this.panelCenter.Size = new System.Drawing.Size(857, 437);
    797797            this.panelCenter.TabIndex = 7;
    798             //
    799             // ctxCalendarGrid
    800             //
    801             this.ctxCalendarGrid.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
    802             this.ctxCalGridAdd,
    803             this.ctxCalGridEdit,
    804             this.ctxCalGridDelete,
    805             this.ctxCalGridCheckIn,
    806             this.ctxCalGridUndoCheckin,
    807             this.menuItem2,
    808             this.ctxCalGridNoShow,
    809             this.ctxCalGridNoShowUndo,
    810             this.menuItem9,
    811             this.ctxCalGridWalkin,
    812             this.menuItem10,
    813             this.ctxCalGridReprintApptSlip});
    814             this.ctxCalendarGrid.Popup += new System.EventHandler(this.ctxCalendarGrid_Popup);
    815             //
    816             // ctxCalGridAdd
    817             //
    818             this.ctxCalGridAdd.Index = 0;
    819             this.ctxCalGridAdd.Text = "Add Appointment";
    820             this.ctxCalGridAdd.Click += new System.EventHandler(this.ctxCalGridAdd_Click);
    821             //
    822             // ctxCalGridEdit
    823             //
    824             this.ctxCalGridEdit.Index = 1;
    825             this.ctxCalGridEdit.Text = "Edit Appointment";
    826             this.ctxCalGridEdit.Click += new System.EventHandler(this.ctxCalGridEdit_Click);
    827             //
    828             // ctxCalGridDelete
    829             //
    830             this.ctxCalGridDelete.Index = 2;
    831             this.ctxCalGridDelete.Text = "Cancel Appointment";
    832             this.ctxCalGridDelete.Click += new System.EventHandler(this.ctxCalGridDelete_Click);
    833             //
    834             // ctxCalGridCheckIn
    835             //
    836             this.ctxCalGridCheckIn.Index = 3;
    837             this.ctxCalGridCheckIn.Text = "Check In Patient";
    838             this.ctxCalGridCheckIn.Click += new System.EventHandler(this.ctxCalGridCheckIn_Click);
    839             //
    840             // ctxCalGridUndoCheckin
    841             //
    842             this.ctxCalGridUndoCheckin.Index = 4;
    843             this.ctxCalGridUndoCheckin.Text = "&Undo Check In";
    844             this.ctxCalGridUndoCheckin.Click += new System.EventHandler(this.ctxCalGridUndoCheckin_Click);
    845             //
    846             // menuItem2
    847             //
    848             this.menuItem2.Index = 5;
    849             this.menuItem2.Text = "-";
    850             //
    851             // ctxCalGridNoShow
    852             //
    853             this.ctxCalGridNoShow.Index = 6;
    854             this.ctxCalGridNoShow.Text = "Mark as No Show";
    855             this.ctxCalGridNoShow.Click += new System.EventHandler(this.ctxCalGridNoShow_Click);
    856             //
    857             // ctxCalGridNoShowUndo
    858             //
    859             this.ctxCalGridNoShowUndo.Index = 7;
    860             this.ctxCalGridNoShowUndo.Text = "Undo NoShow";
    861             this.ctxCalGridNoShowUndo.Click += new System.EventHandler(this.ctxCalGridNoShowUndo_Click);
    862             //
    863             // menuItem9
    864             //
    865             this.menuItem9.Index = 8;
    866             this.menuItem9.Text = "-";
    867             //
    868             // ctxCalGridWalkin
    869             //
    870             this.ctxCalGridWalkin.Index = 9;
    871             this.ctxCalGridWalkin.Text = "Create Wal&k-In Appointment";
    872             this.ctxCalGridWalkin.Click += new System.EventHandler(this.ctxCalGridWalkin_Click);
    873             //
    874             // menuItem10
    875             //
    876             this.menuItem10.Index = 10;
    877             this.menuItem10.Text = "-";
    878             //
    879             // ctxCalGridReprintApptSlip
    880             //
    881             this.ctxCalGridReprintApptSlip.Index = 11;
    882             this.ctxCalGridReprintApptSlip.Text = "&Reprint Appointment Slip";
    883             this.ctxCalGridReprintApptSlip.Click += new System.EventHandler(this.ctxCalGridReprintApptSlip_Click);
    884             //
    885             // panelBottom
    886             //
    887             this.panelBottom.Controls.Add(this.statusBar1);
    888             this.panelBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
    889             this.panelBottom.Location = new System.Drawing.Point(136, 180);
    890             this.panelBottom.Name = "panelBottom";
    891             this.panelBottom.Size = new System.Drawing.Size(857, 24);
    892             this.panelBottom.TabIndex = 8;
    893             //
    894             // statusBar1
    895             //
    896             this.statusBar1.Dock = System.Windows.Forms.DockStyle.Fill;
    897             this.statusBar1.Location = new System.Drawing.Point(0, 0);
    898             this.statusBar1.Name = "statusBar1";
    899             this.statusBar1.Size = new System.Drawing.Size(857, 24);
    900             this.statusBar1.SizingGrip = false;
    901             this.statusBar1.TabIndex = 0;
    902             //
    903             // splitter1
    904             //
    905             this.splitter1.Location = new System.Drawing.Point(128, 24);
    906             this.splitter1.Name = "splitter1";
    907             this.splitter1.Size = new System.Drawing.Size(8, 180);
    908             this.splitter1.TabIndex = 9;
    909             this.splitter1.TabStop = false;
    910             //
    911             // splitter2
    912             //
    913             this.splitter2.Dock = System.Windows.Forms.DockStyle.Right;
    914             this.splitter2.Location = new System.Drawing.Point(993, 24);
    915             this.splitter2.Name = "splitter2";
    916             this.splitter2.Size = new System.Drawing.Size(3, 180);
    917             this.splitter2.TabIndex = 10;
    918             this.splitter2.TabStop = false;
    919798            //
    920799            // calendarGrid1
     
    937816            this.calendarGrid1.Resources = ((System.Collections.ArrayList)(resources.GetObject("calendarGrid1.Resources")));
    938817            this.calendarGrid1.SelectedAppointment = 0;
    939             this.calendarGrid1.Size = new System.Drawing.Size(857, 156);
     818            this.calendarGrid1.Size = new System.Drawing.Size(857, 437);
    940819            this.calendarGrid1.StartDate = new System.DateTime(2003, 1, 27, 0, 0, 0, 0);
    941820            this.calendarGrid1.TabIndex = 0;
     
    947826            this.calendarGrid1.MouseEnter += new System.EventHandler(this.calendarGrid1_MouseEnter);
    948827            //
     828            // ctxCalendarGrid
     829            //
     830            this.ctxCalendarGrid.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
     831            this.ctxCalGridAdd,
     832            this.ctxCalGridEdit,
     833            this.ctxCalGridDelete,
     834            this.ctxCalGridCheckIn,
     835            this.ctxCalGridUndoCheckin,
     836            this.menuItem2,
     837            this.ctxCalGridNoShow,
     838            this.ctxCalGridNoShowUndo,
     839            this.menuItem9,
     840            this.ctxCalGridWalkin,
     841            this.menuItem10,
     842            this.ctxCalGridReprintApptSlip});
     843            this.ctxCalendarGrid.Popup += new System.EventHandler(this.ctxCalendarGrid_Popup);
     844            //
     845            // ctxCalGridAdd
     846            //
     847            this.ctxCalGridAdd.Index = 0;
     848            this.ctxCalGridAdd.Text = "Add Appointment";
     849            this.ctxCalGridAdd.Click += new System.EventHandler(this.ctxCalGridAdd_Click);
     850            //
     851            // ctxCalGridEdit
     852            //
     853            this.ctxCalGridEdit.Index = 1;
     854            this.ctxCalGridEdit.Text = "Edit Appointment";
     855            this.ctxCalGridEdit.Click += new System.EventHandler(this.ctxCalGridEdit_Click);
     856            //
     857            // ctxCalGridDelete
     858            //
     859            this.ctxCalGridDelete.Index = 2;
     860            this.ctxCalGridDelete.Text = "Cancel Appointment";
     861            this.ctxCalGridDelete.Click += new System.EventHandler(this.ctxCalGridDelete_Click);
     862            //
     863            // ctxCalGridCheckIn
     864            //
     865            this.ctxCalGridCheckIn.Index = 3;
     866            this.ctxCalGridCheckIn.Text = "Check In Patient";
     867            this.ctxCalGridCheckIn.Click += new System.EventHandler(this.ctxCalGridCheckIn_Click);
     868            //
     869            // ctxCalGridUndoCheckin
     870            //
     871            this.ctxCalGridUndoCheckin.Index = 4;
     872            this.ctxCalGridUndoCheckin.Text = "&Undo Check In";
     873            this.ctxCalGridUndoCheckin.Click += new System.EventHandler(this.ctxCalGridUndoCheckin_Click);
     874            //
     875            // menuItem2
     876            //
     877            this.menuItem2.Index = 5;
     878            this.menuItem2.Text = "-";
     879            //
     880            // ctxCalGridNoShow
     881            //
     882            this.ctxCalGridNoShow.Index = 6;
     883            this.ctxCalGridNoShow.Text = "Mark as No Show";
     884            this.ctxCalGridNoShow.Click += new System.EventHandler(this.ctxCalGridNoShow_Click);
     885            //
     886            // ctxCalGridNoShowUndo
     887            //
     888            this.ctxCalGridNoShowUndo.Index = 7;
     889            this.ctxCalGridNoShowUndo.Text = "Undo NoShow";
     890            this.ctxCalGridNoShowUndo.Click += new System.EventHandler(this.ctxCalGridNoShowUndo_Click);
     891            //
     892            // menuItem9
     893            //
     894            this.menuItem9.Index = 8;
     895            this.menuItem9.Text = "-";
     896            //
     897            // ctxCalGridWalkin
     898            //
     899            this.ctxCalGridWalkin.Index = 9;
     900            this.ctxCalGridWalkin.Text = "Create Wal&k-In Appointment";
     901            this.ctxCalGridWalkin.Click += new System.EventHandler(this.ctxCalGridWalkin_Click);
     902            //
     903            // menuItem10
     904            //
     905            this.menuItem10.Index = 10;
     906            this.menuItem10.Text = "-";
     907            //
     908            // ctxCalGridReprintApptSlip
     909            //
     910            this.ctxCalGridReprintApptSlip.Index = 11;
     911            this.ctxCalGridReprintApptSlip.Text = "&Reprint Appointment Slip";
     912            this.ctxCalGridReprintApptSlip.Click += new System.EventHandler(this.ctxCalGridReprintApptSlip_Click);
     913            //
     914            // panelBottom
     915            //
     916            this.panelBottom.Controls.Add(this.statusBar1);
     917            this.panelBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
     918            this.panelBottom.Location = new System.Drawing.Point(136, 461);
     919            this.panelBottom.Name = "panelBottom";
     920            this.panelBottom.Size = new System.Drawing.Size(857, 24);
     921            this.panelBottom.TabIndex = 8;
     922            //
     923            // statusBar1
     924            //
     925            this.statusBar1.Dock = System.Windows.Forms.DockStyle.Fill;
     926            this.statusBar1.Location = new System.Drawing.Point(0, 0);
     927            this.statusBar1.Name = "statusBar1";
     928            this.statusBar1.Size = new System.Drawing.Size(857, 24);
     929            this.statusBar1.SizingGrip = false;
     930            this.statusBar1.TabIndex = 0;
     931            //
     932            // splitter1
     933            //
     934            this.splitter1.Location = new System.Drawing.Point(128, 24);
     935            this.splitter1.Name = "splitter1";
     936            this.splitter1.Size = new System.Drawing.Size(8, 461);
     937            this.splitter1.TabIndex = 9;
     938            this.splitter1.TabStop = false;
     939            //
     940            // splitter2
     941            //
     942            this.splitter2.Dock = System.Windows.Forms.DockStyle.Right;
     943            this.splitter2.Location = new System.Drawing.Point(993, 24);
     944            this.splitter2.Name = "splitter2";
     945            this.splitter2.Size = new System.Drawing.Size(3, 461);
     946            this.splitter2.TabIndex = 10;
     947            this.splitter2.TabStop = false;
     948            //
    949949            // CGView
    950950            //
    951951            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
    952             this.ClientSize = new System.Drawing.Size(1124, 204);
     952            this.ClientSize = new System.Drawing.Size(1124, 485);
    953953            this.Controls.Add(this.panelCenter);
    954954            this.Controls.Add(this.panelBottom);
     
    21312131                        try
    21322132                        {
    2133                                 CGAppointment appt = new CGAppointment();
     2133
    21342134                       
    21352135                                //Get Time and Resource from Selected Cell
     
    21932193                                }
    21942194
     2195                CGAppointment appt = new CGAppointment();
    21952196                                appt.PatientID = Convert.ToInt32(dPat.PatientIEN);
    21962197                                appt.PatientName = dPat.PatientName;
     
    22002201                                appt.HealthRecordNumber = dPat.HealthRecordNumber;
    22012202
     2203                appt.Patient = new Patient
     2204                {
     2205                    DFN = Convert.ToInt32(dPat.PatientIEN),
     2206                    ID = dPat.PatientPID,
     2207                    Name = dPat.PatientName,
     2208                    HRN = dPat.HealthRecordNumber,
     2209                    DOB = dPat.PatientDOB
     2210                };
     2211
    22022212                //smh: Takes too long
    22032213                                //this.Document.RefreshDocument();
     
    22102220                                AppointmentCheckIn();
    22112221
    2212                 //Show the new set of appointments by calling UpdateArrays. Fetches Document's CGAppointments
     2222                //Show the new set of appointments by calling UpdateArrays.
    22132223                this.UpdateArrays();
    22142224
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/DPatientLookup.cs

    r1097 r1125  
    226226                                        this.m_sPatientIEN = r["IEN"].ToString();
    227227                                        this.m_sPatientPID = r["PID"].ToString();
     228                    DateTime d = Convert.ToDateTime(r["DOB"]);
     229                    string sFormat = System.Globalization.DateTimeFormatInfo.CurrentInfo.ShortDatePattern;
     230                    this.m_sPatientDOB = d.ToString(sFormat);
    228231                                        this.cmdOK.Enabled = true;
    229232                                        this.AcceptButton = cmdOK;
     
    369372                }
    370373
     374        public DateTime PatientDOB
     375        {
     376            get
     377            {
     378                return DateTime.Parse(m_sPatientDOB);
     379            }
     380        }
     381
     382        public string PatientPID
     383        {
     384            get
     385            {
     386                return m_sPatientPID;
     387            }
     388        }
     389
    371390                #endregion //Properties
    372391
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/Printing.cs

    r1112 r1125  
    615615            sb.AppendLine();
    616616            sb.AppendLine("Age:" + "\t" + appt.Patient.UserFriendlyAge);
    617             sb.AppendLine();
    618             sb.AppendLine("Sex:" + "\t" + appt.Patient.Sex.ToString());
     617            //sb.AppendLine();
     618            //sb.AppendLine("Sex:" + "\t" + appt.Patient.Sex.ToString());
    619619
    620620            // Draw them
Note: See TracChangeset for help on using the changeset viewer.