Ignore:
Timestamp:
Jul 4, 2010, 1:25:13 AM (14 years ago)
Author:
Sam Habiel
Message:

Mostly commenting the code.

File:
1 edited

Legend:

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

    r804 r821  
    140140                        this.Document = doc;
    141141                        this.Appointments = cgAppts;
    142                         this.Text = this.DocManager.ConnectInfo.UserName;
     142                       
     143            // Set username and division up top
     144            this.Text = this.DocManager.ConnectInfo.UserName;
    143145                        if (sText != null)
    144146                                this.Text += " - " + sText;
     
    269271            this.lblResource = new System.Windows.Forms.Label();
    270272            this.panelCenter = new System.Windows.Forms.Panel();
     273            this.calendarGrid1 = new IndianHealthService.ClinicalScheduling.CalendarGrid();
    271274            this.ctxCalendarGrid = new System.Windows.Forms.ContextMenu();
    272275            this.ctxCalGridAdd = new System.Windows.Forms.MenuItem();
     
    280283            this.ctxCalGridWalkin = new System.Windows.Forms.MenuItem();
    281284            this.menuItem10 = new System.Windows.Forms.MenuItem();
     285            this.ctxCalGridReprintRoutingSlip = new System.Windows.Forms.MenuItem();
    282286            this.panelBottom = new System.Windows.Forms.Panel();
    283287            this.statusBar1 = new System.Windows.Forms.StatusBar();
     
    285289            this.splitter2 = new System.Windows.Forms.Splitter();
    286290            this.printRoutingSlip = new System.Drawing.Printing.PrintDocument();
    287             this.calendarGrid1 = new IndianHealthService.ClinicalScheduling.CalendarGrid();
    288             this.ctxCalGridReprintRoutingSlip = new System.Windows.Forms.MenuItem();
    289291            this.panelRight.SuspendLayout();
    290292            this.panelClip.SuspendLayout();
     
    795797            this.panelCenter.Size = new System.Drawing.Size(668, 321);
    796798            this.panelCenter.TabIndex = 7;
    797             //
    798             // ctxCalendarGrid
    799             //
    800             this.ctxCalendarGrid.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
    801             this.ctxCalGridAdd,
    802             this.ctxCalGridEdit,
    803             this.ctxCalGridDelete,
    804             this.ctxCalGridCheckIn,
    805             this.menuItem2,
    806             this.ctxCalGridNoShow,
    807             this.ctxCalGridNoShowUndo,
    808             this.menuItem9,
    809             this.ctxCalGridWalkin,
    810             this.menuItem10,
    811             this.ctxCalGridReprintRoutingSlip});
    812             this.ctxCalendarGrid.Popup += new System.EventHandler(this.ctxCalendarGrid_Popup);
    813             //
    814             // ctxCalGridAdd
    815             //
    816             this.ctxCalGridAdd.Index = 0;
    817             this.ctxCalGridAdd.Text = "Add Appointment";
    818             this.ctxCalGridAdd.Click += new System.EventHandler(this.ctxCalGridAdd_Click);
    819             //
    820             // ctxCalGridEdit
    821             //
    822             this.ctxCalGridEdit.Index = 1;
    823             this.ctxCalGridEdit.Text = "Edit Appointment";
    824             this.ctxCalGridEdit.Click += new System.EventHandler(this.ctxCalGridEdit_Click);
    825             //
    826             // ctxCalGridDelete
    827             //
    828             this.ctxCalGridDelete.Index = 2;
    829             this.ctxCalGridDelete.Text = "Cancel Appointment";
    830             this.ctxCalGridDelete.Click += new System.EventHandler(this.ctxCalGridDelete_Click);
    831             //
    832             // ctxCalGridCheckIn
    833             //
    834             this.ctxCalGridCheckIn.Index = 3;
    835             this.ctxCalGridCheckIn.Text = "Check In Patient";
    836             this.ctxCalGridCheckIn.Click += new System.EventHandler(this.ctxCalGridCheckIn_Click);
    837             //
    838             // menuItem2
    839             //
    840             this.menuItem2.Index = 4;
    841             this.menuItem2.Text = "-";
    842             //
    843             // ctxCalGridNoShow
    844             //
    845             this.ctxCalGridNoShow.Index = 5;
    846             this.ctxCalGridNoShow.Text = "Mark as No Show";
    847             this.ctxCalGridNoShow.Click += new System.EventHandler(this.ctxCalGridNoShow_Click);
    848             //
    849             // ctxCalGridNoShowUndo
    850             //
    851             this.ctxCalGridNoShowUndo.Index = 6;
    852             this.ctxCalGridNoShowUndo.Text = "Undo NoShow";
    853             this.ctxCalGridNoShowUndo.Click += new System.EventHandler(this.ctxCalGridNoShowUndo_Click);
    854             //
    855             // menuItem9
    856             //
    857             this.menuItem9.Index = 7;
    858             this.menuItem9.Text = "-";
    859             //
    860             // ctxCalGridWalkin
    861             //
    862             this.ctxCalGridWalkin.Index = 8;
    863             this.ctxCalGridWalkin.Text = "Create Wal&k-In Appointment";
    864             this.ctxCalGridWalkin.Click += new System.EventHandler(this.ctxCalGridWalkin_Click);
    865             //
    866             // menuItem10
    867             //
    868             this.menuItem10.Index = 9;
    869             this.menuItem10.Text = "-";
    870             //
    871             // panelBottom
    872             //
    873             this.panelBottom.Controls.Add(this.statusBar1);
    874             this.panelBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
    875             this.panelBottom.Location = new System.Drawing.Point(136, 345);
    876             this.panelBottom.Name = "panelBottom";
    877             this.panelBottom.Size = new System.Drawing.Size(668, 24);
    878             this.panelBottom.TabIndex = 8;
    879             //
    880             // statusBar1
    881             //
    882             this.statusBar1.Dock = System.Windows.Forms.DockStyle.Fill;
    883             this.statusBar1.Location = new System.Drawing.Point(0, 0);
    884             this.statusBar1.Name = "statusBar1";
    885             this.statusBar1.Size = new System.Drawing.Size(668, 24);
    886             this.statusBar1.SizingGrip = false;
    887             this.statusBar1.TabIndex = 0;
    888             //
    889             // splitter1
    890             //
    891             this.splitter1.Location = new System.Drawing.Point(128, 24);
    892             this.splitter1.Name = "splitter1";
    893             this.splitter1.Size = new System.Drawing.Size(8, 345);
    894             this.splitter1.TabIndex = 9;
    895             this.splitter1.TabStop = false;
    896             //
    897             // splitter2
    898             //
    899             this.splitter2.Dock = System.Windows.Forms.DockStyle.Right;
    900             this.splitter2.Location = new System.Drawing.Point(804, 24);
    901             this.splitter2.Name = "splitter2";
    902             this.splitter2.Size = new System.Drawing.Size(3, 345);
    903             this.splitter2.TabIndex = 10;
    904             this.splitter2.TabStop = false;
    905             //
    906             // printRoutingSlip
    907             //
    908             this.printRoutingSlip.DocumentName = "Routing Slip";
    909             this.printRoutingSlip.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printRoutingSlip_PrintPage);
    910799            //
    911800            // calendarGrid1
     
    937826            this.calendarGrid1.CGAppointmentAdded += new IndianHealthService.ClinicalScheduling.CGAppointmentChangedHandler(this.calendarGrid1_CGAppointmentAdded);
    938827            //
     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.menuItem2,
     836            this.ctxCalGridNoShow,
     837            this.ctxCalGridNoShowUndo,
     838            this.menuItem9,
     839            this.ctxCalGridWalkin,
     840            this.menuItem10,
     841            this.ctxCalGridReprintRoutingSlip});
     842            this.ctxCalendarGrid.Popup += new System.EventHandler(this.ctxCalendarGrid_Popup);
     843            //
     844            // ctxCalGridAdd
     845            //
     846            this.ctxCalGridAdd.Index = 0;
     847            this.ctxCalGridAdd.Text = "Add Appointment";
     848            this.ctxCalGridAdd.Click += new System.EventHandler(this.ctxCalGridAdd_Click);
     849            //
     850            // ctxCalGridEdit
     851            //
     852            this.ctxCalGridEdit.Index = 1;
     853            this.ctxCalGridEdit.Text = "Edit Appointment";
     854            this.ctxCalGridEdit.Click += new System.EventHandler(this.ctxCalGridEdit_Click);
     855            //
     856            // ctxCalGridDelete
     857            //
     858            this.ctxCalGridDelete.Index = 2;
     859            this.ctxCalGridDelete.Text = "Cancel Appointment";
     860            this.ctxCalGridDelete.Click += new System.EventHandler(this.ctxCalGridDelete_Click);
     861            //
     862            // ctxCalGridCheckIn
     863            //
     864            this.ctxCalGridCheckIn.Index = 3;
     865            this.ctxCalGridCheckIn.Text = "Check In Patient";
     866            this.ctxCalGridCheckIn.Click += new System.EventHandler(this.ctxCalGridCheckIn_Click);
     867            //
     868            // menuItem2
     869            //
     870            this.menuItem2.Index = 4;
     871            this.menuItem2.Text = "-";
     872            //
     873            // ctxCalGridNoShow
     874            //
     875            this.ctxCalGridNoShow.Index = 5;
     876            this.ctxCalGridNoShow.Text = "Mark as No Show";
     877            this.ctxCalGridNoShow.Click += new System.EventHandler(this.ctxCalGridNoShow_Click);
     878            //
     879            // ctxCalGridNoShowUndo
     880            //
     881            this.ctxCalGridNoShowUndo.Index = 6;
     882            this.ctxCalGridNoShowUndo.Text = "Undo NoShow";
     883            this.ctxCalGridNoShowUndo.Click += new System.EventHandler(this.ctxCalGridNoShowUndo_Click);
     884            //
     885            // menuItem9
     886            //
     887            this.menuItem9.Index = 7;
     888            this.menuItem9.Text = "-";
     889            //
     890            // ctxCalGridWalkin
     891            //
     892            this.ctxCalGridWalkin.Index = 8;
     893            this.ctxCalGridWalkin.Text = "Create Wal&k-In Appointment";
     894            this.ctxCalGridWalkin.Click += new System.EventHandler(this.ctxCalGridWalkin_Click);
     895            //
     896            // menuItem10
     897            //
     898            this.menuItem10.Index = 9;
     899            this.menuItem10.Text = "-";
     900            //
    939901            // ctxCalGridReprintRoutingSlip
    940902            //
     
    942904            this.ctxCalGridReprintRoutingSlip.Text = "&Reprint Routing Slip";
    943905            this.ctxCalGridReprintRoutingSlip.Click += new System.EventHandler(this.ctxCalGridReprintRoutingSlip_Click);
     906            //
     907            // panelBottom
     908            //
     909            this.panelBottom.Controls.Add(this.statusBar1);
     910            this.panelBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
     911            this.panelBottom.Location = new System.Drawing.Point(136, 345);
     912            this.panelBottom.Name = "panelBottom";
     913            this.panelBottom.Size = new System.Drawing.Size(668, 24);
     914            this.panelBottom.TabIndex = 8;
     915            //
     916            // statusBar1
     917            //
     918            this.statusBar1.Dock = System.Windows.Forms.DockStyle.Fill;
     919            this.statusBar1.Location = new System.Drawing.Point(0, 0);
     920            this.statusBar1.Name = "statusBar1";
     921            this.statusBar1.Size = new System.Drawing.Size(668, 24);
     922            this.statusBar1.SizingGrip = false;
     923            this.statusBar1.TabIndex = 0;
     924            //
     925            // splitter1
     926            //
     927            this.splitter1.Location = new System.Drawing.Point(128, 24);
     928            this.splitter1.Name = "splitter1";
     929            this.splitter1.Size = new System.Drawing.Size(8, 345);
     930            this.splitter1.TabIndex = 9;
     931            this.splitter1.TabStop = false;
     932            //
     933            // splitter2
     934            //
     935            this.splitter2.Dock = System.Windows.Forms.DockStyle.Right;
     936            this.splitter2.Location = new System.Drawing.Point(804, 24);
     937            this.splitter2.Name = "splitter2";
     938            this.splitter2.Size = new System.Drawing.Size(3, 345);
     939            this.splitter2.TabIndex = 10;
     940            this.splitter2.TabStop = false;
     941            //
     942            // printRoutingSlip
     943            //
     944            this.printRoutingSlip.DocumentName = "Routing Slip";
     945            this.printRoutingSlip.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printRoutingSlip_PrintPage);
    944946            //
    945947            // CGView
     
    22912293                {
    22922294                        Debug.Assert(this.InvokeRequired == false,"CGView.UpdateArrays InvokeRequired");
     2295            // This is where you set how the grid will look
    22932296                        try
    22942297                        {
    22952298                                this.calendarGrid1.AvailabilityArray = this.m_Document.AvailabilityArray;
    22962299                                this.calendarGrid1.Resources = this.m_Document.Resources;
    2297                                 this.calendarGrid1.OnUpdateArrays();
     2300                // this.calendarGrid1.Columns = 7; //test
     2301                this.calendarGrid1.StartDate = DateTime.Parse("10-10-2007"); // another test
     2302                                this.calendarGrid1.OnUpdateArrays(); // this draws the Calendar
    22982303                                this.lblResource.Text = this.m_Document.DocName;
    22992304                                this.calendarGrid1.Invalidate();
Note: See TracChangeset for help on using the changeset viewer.