Ignore:
Timestamp:
Mar 30, 2011, 4:19:15 AM (13 years ago)
Author:
Sam Habiel
Message:

Updated Release exes.
CGDocument: Appointment Creation Code now reuses appt object passed in rather than creating a new one.
CGView:
ctxPrintScheduleT3 added. Print schedule in 3 days. For weekday after weekend.
Scaling of grid now restricted. You can't scale down from the original TimeScale, but you can scale up.
DCheckIn: Remove unused variables.
DResource: Remove unused variables.

File:
1 edited

Legend:

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

    r1118 r1124  
    228228            this.ctxPrintScheduleT0 = new System.Windows.Forms.MenuItem();
    229229            this.ctxPrintScheduleT1 = new System.Windows.Forms.MenuItem();
     230            this.ctxPrintScheduleT3 = new System.Windows.Forms.MenuItem();
    230231            this.panelRight = new System.Windows.Forms.Panel();
    231232            this.panelClip = new System.Windows.Forms.Panel();
     
    239240            this.lblResource = new System.Windows.Forms.Label();
    240241            this.panelCenter = new System.Windows.Forms.Panel();
    241             this.calendarGrid1 = new IndianHealthService.ClinicalScheduling.CalendarGrid();
    242242            this.ctxCalendarGrid = new System.Windows.Forms.ContextMenu();
    243243            this.ctxCalGridAdd = new System.Windows.Forms.MenuItem();
     
    257257            this.splitter1 = new System.Windows.Forms.Splitter();
    258258            this.splitter2 = new System.Windows.Forms.Splitter();
    259             this.ctxPrintScheduleT3 = new System.Windows.Forms.MenuItem();
     259            this.calendarGrid1 = new IndianHealthService.ClinicalScheduling.CalendarGrid();
    260260            this.panelRight.SuspendLayout();
    261261            this.panelClip.SuspendLayout();
     
    476476            //
    477477            this.mnuFindAppt.Index = 9;
     478            this.mnuFindAppt.Shortcut = System.Windows.Forms.Shortcut.CtrlF;
    478479            this.mnuFindAppt.Text = "&Find Available Appointment";
    479480            this.mnuFindAppt.Click += new System.EventHandler(this.mnuFindAppt_Click);
     
    550551            // mnu10Minute
    551552            //
     553            this.mnu10Minute.Enabled = false;
    552554            this.mnu10Minute.Index = 0;
    553555            this.mnu10Minute.Shortcut = System.Windows.Forms.Shortcut.Ctrl0;
     
    557559            // mnu15Minute
    558560            //
     561            this.mnu15Minute.Enabled = false;
    559562            this.mnu15Minute.Index = 1;
    560563            this.mnu15Minute.Shortcut = System.Windows.Forms.Shortcut.Ctrl4;
     
    564567            // mnu20Minute
    565568            //
     569            this.mnu20Minute.Enabled = false;
    566570            this.mnu20Minute.Index = 2;
    567571            this.mnu20Minute.Shortcut = System.Windows.Forms.Shortcut.Ctrl3;
     
    571575            // mnu30Minute
    572576            //
     577            this.mnu30Minute.Enabled = false;
    573578            this.mnu30Minute.Index = 3;
    574579            this.mnu30Minute.Shortcut = System.Windows.Forms.Shortcut.Ctrl2;
     
    624629            this.tvSchedules.Location = new System.Drawing.Point(0, 0);
    625630            this.tvSchedules.Name = "tvSchedules";
    626             this.tvSchedules.Size = new System.Drawing.Size(128, 351);
     631            this.tvSchedules.Size = new System.Drawing.Size(128, 204);
    627632            this.tvSchedules.Sorted = true;
    628633            this.tvSchedules.TabIndex = 1;
     
    681686            this.ctxPrintScheduleT1.Click += new System.EventHandler(this.ctxPrintScheduleT1_Click);
    682687            //
     688            // ctxPrintScheduleT3
     689            //
     690            this.ctxPrintScheduleT3.Index = 6;
     691            this.ctxPrintScheduleT3.Text = "Print Clinic Schedule(s) (T+&3)";
     692            this.ctxPrintScheduleT3.Click += new System.EventHandler(this.ctxPrintScheduleT3_Click);
     693            //
    683694            // panelRight
    684695            //
     
    687698            this.panelRight.Location = new System.Drawing.Point(996, 0);
    688699            this.panelRight.Name = "panelRight";
    689             this.panelRight.Size = new System.Drawing.Size(128, 351);
     700            this.panelRight.Size = new System.Drawing.Size(128, 204);
    690701            this.panelRight.TabIndex = 3;
    691702            this.panelRight.Visible = false;
     
    783794            this.panelCenter.Location = new System.Drawing.Point(136, 24);
    784795            this.panelCenter.Name = "panelCenter";
    785             this.panelCenter.Size = new System.Drawing.Size(857, 303);
     796            this.panelCenter.Size = new System.Drawing.Size(857, 156);
    786797            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;
    787919            //
    788920            // calendarGrid1
     
    805937            this.calendarGrid1.Resources = ((System.Collections.ArrayList)(resources.GetObject("calendarGrid1.Resources")));
    806938            this.calendarGrid1.SelectedAppointment = 0;
    807             this.calendarGrid1.Size = new System.Drawing.Size(857, 303);
     939            this.calendarGrid1.Size = new System.Drawing.Size(857, 156);
    808940            this.calendarGrid1.StartDate = new System.DateTime(2003, 1, 27, 0, 0, 0, 0);
    809941            this.calendarGrid1.TabIndex = 0;
     
    815947            this.calendarGrid1.MouseEnter += new System.EventHandler(this.calendarGrid1_MouseEnter);
    816948            //
    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, 327);
    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, 327);
    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, 327);
    935             this.splitter2.TabIndex = 10;
    936             this.splitter2.TabStop = false;
    937             //
    938             // ctxPrintScheduleT3
    939             //
    940             this.ctxPrintScheduleT3.Index = 6;
    941             this.ctxPrintScheduleT3.Text = "Print Clinic Schedule(s) (T+&3)";
    942             this.ctxPrintScheduleT3.Click += new System.EventHandler(this.ctxPrintScheduleT3_Click);
    943             //
    944949            // CGView
    945950            //
    946951            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
    947             this.ClientSize = new System.Drawing.Size(1124, 351);
     952            this.ClientSize = new System.Drawing.Size(1124, 204);
    948953            this.Controls.Add(this.panelCenter);
    949954            this.Controls.Add(this.panelBottom);
     
    15471552                {
    15481553                        //If resource already open, then navigate to its window
    1549                         CGView v =this.DocManager.GetViewByResource(sSelectedTreeResourceArray);
     1554                        CGView v = this.DocManager.GetViewByResource(sSelectedTreeResourceArray);
    15501555                        if (v != null)
    15511556                        {
     
    15851590            try
    15861591                        {
    1587                                 doc.OnOpenDocument(dDate);
     1592                                doc.OnOpenDocument(dDate); //this typically creates a new view
    15881593                        }
    15891594                               
     
    15951600                        }
    15961601
    1597             //We are doing this--Again?
     1602            //We are doing this--again--to fetch the view we just opened in OnOpenDocument
     1603            //XXX: Yes, I know, this totally sucks. But I don't fully grasp the whole thing yet to refactor it.
    15981604                        v =this.DocManager.GetViewByResource(sSelectedTreeResourceArray);
    15991605                       
     
    16331639
    16341640                        cg.PositionGrid(7);
     1641
     1642            //new code for v 1.5 //smh
     1643            //Disable entries that would make time scale smaller b/c users should not be able to
     1644            //make appointments for smaller time scales
     1645            if (nScale >= 10)
     1646            {
     1647                v.mnu10Minute.Enabled = true;
     1648                v.mnu15Minute.Enabled = true;
     1649                v.mnu20Minute.Enabled = true;
     1650                v.mnu30Minute.Enabled = true;
     1651            }
     1652            if (nScale >= 15)
     1653            {
     1654                v.mnu10Minute.Enabled = false;
     1655                v.mnu15Minute.Enabled = true;
     1656                v.mnu20Minute.Enabled = true;
     1657                v.mnu30Minute.Enabled = true;
     1658            }
     1659            if (nScale >= 20)
     1660            {
     1661                v.mnu10Minute.Enabled = false;
     1662                v.mnu15Minute.Enabled = false;
     1663                v.mnu20Minute.Enabled = true;
     1664                v.mnu30Minute.Enabled = true;
     1665            }
     1666            if (nScale >= 30)
     1667            {
     1668                v.mnu10Minute.Enabled = false;
     1669                v.mnu15Minute.Enabled = false;
     1670                v.mnu20Minute.Enabled = false;
     1671                v.mnu30Minute.Enabled = true;
     1672            }
     1673            if (nScale >= 60)
     1674            {
     1675                v.mnu10Minute.Enabled = false;
     1676                v.mnu15Minute.Enabled = false;
     1677                v.mnu20Minute.Enabled = false;
     1678                v.mnu30Minute.Enabled = false;
     1679            }
     1680            //end new code
    16351681
    16361682                        //Get the OverBook and ModifySchedule permissions from ResourceUser table
Note: See TracChangeset for help on using the changeset viewer.