Ignore:
Timestamp:
Apr 14, 2011, 8:33:14 AM (13 years ago)
Author:
Sam Habiel
Message:

CalendarGrid: Many changes:

  1. Dragover handler to handle auto scrolling when dragging. Also highlights destination cell in dragging.
  2. Solution for the click-right click problem by better handling of right click issues.
  3. New method OnRButtonDown()
  4. Extra comments everywhere.
  5. Fix for single column being enabled when there are multiple resources. Columns property now calls this.SetColumnInfo() to rectify that problem.

CGDocument:

  1. EditAppoitment Used to send request a refresh from the DB and update the view itself, rather than letting the view handle that. That's now changed.

CGDocumentManager:

  1. MessageBox displayed during login splash now are shown BY the splash form.

CGView:

  1. Shortcuts and some display text updated.
  2. Splash screen when updating now removed.
  3. If print appointment slip checkbox is checked when EditAppointment is chosen, now it will print the routing slip.
  4. Tiny change in appointment structure generated during drag and drop (added Patient member, as it was causing a crash)

DApptSearch:

  1. Change of name of Appointment to Slot, for better user understanding.

DSplash:

  1. RemoteMessage box methods and associated delegates for mickey mousing the form from another thread.

Updated release exes and dlls

File:
1 edited

Legend:

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

    r1131 r1143  
    428428            //
    429429            this.mnuNewAppointment.Index = 0;
     430            this.mnuNewAppointment.Shortcut = System.Windows.Forms.Shortcut.Ins;
    430431            this.mnuNewAppointment.Text = "&New Appointment";
    431432            this.mnuNewAppointment.Click += new System.EventHandler(this.mnuNewAppointment_Click);
     
    434435            //
    435436            this.mnuEditAppointment.Index = 1;
     437            this.mnuEditAppointment.Shortcut = System.Windows.Forms.Shortcut.F2;
    436438            this.mnuEditAppointment.Text = "&Edit Appointment";
    437439            this.mnuEditAppointment.Click += new System.EventHandler(this.mnuEditAppointment_Click);
     
    440442            //
    441443            this.mnuDeleteAppointment.Index = 2;
     444            this.mnuDeleteAppointment.Shortcut = System.Windows.Forms.Shortcut.Del;
    442445            this.mnuDeleteAppointment.Text = "Cance&l Appointment";
    443446            this.mnuDeleteAppointment.Click += new System.EventHandler(this.mnuDeleteAppointment_Click);
     
    481484            this.mnuFindAppt.Index = 9;
    482485            this.mnuFindAppt.Shortcut = System.Windows.Forms.Shortcut.CtrlF;
    483             this.mnuFindAppt.Text = "&Find Available Appointment";
     486            this.mnuFindAppt.Text = "&Find Empty Slots";
    484487            this.mnuFindAppt.Click += new System.EventHandler(this.mnuFindAppt_Click);
    485488            //
     
    647650            this.tvSchedules.Location = new System.Drawing.Point(0, 0);
    648651            this.tvSchedules.Name = "tvSchedules";
    649             this.tvSchedules.Size = new System.Drawing.Size(128, 359);
     652            this.tvSchedules.Size = new System.Drawing.Size(128, 317);
    650653            this.tvSchedules.Sorted = true;
    651654            this.tvSchedules.TabIndex = 1;
     
    689692            //
    690693            this.ctxFindAppt.Index = 3;
    691             this.ctxFindAppt.Text = "&Find Available Appointment";
     694            this.ctxFindAppt.Text = "&Find Empty Slots";
    692695            this.ctxFindAppt.Click += new System.EventHandler(this.ctxFindAppt_Click);
    693696            //
     
    716719            this.panelRight.Location = new System.Drawing.Point(996, 0);
    717720            this.panelRight.Name = "panelRight";
    718             this.panelRight.Size = new System.Drawing.Size(128, 359);
     721            this.panelRight.Size = new System.Drawing.Size(128, 317);
    719722            this.panelRight.TabIndex = 3;
    720723            this.panelRight.Visible = false;
     
    812815            this.panelCenter.Location = new System.Drawing.Point(136, 24);
    813816            this.panelCenter.Name = "panelCenter";
    814             this.panelCenter.Size = new System.Drawing.Size(857, 311);
     817            this.panelCenter.Size = new System.Drawing.Size(857, 269);
    815818            this.panelCenter.TabIndex = 7;
    816819            //
     
    905908            this.panelBottom.Controls.Add(this.statusBar1);
    906909            this.panelBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
    907             this.panelBottom.Location = new System.Drawing.Point(136, 335);
     910            this.panelBottom.Location = new System.Drawing.Point(136, 293);
    908911            this.panelBottom.Name = "panelBottom";
    909912            this.panelBottom.Size = new System.Drawing.Size(857, 24);
     
    923926            this.splitter1.Location = new System.Drawing.Point(128, 24);
    924927            this.splitter1.Name = "splitter1";
    925             this.splitter1.Size = new System.Drawing.Size(8, 335);
     928            this.splitter1.Size = new System.Drawing.Size(8, 293);
    926929            this.splitter1.TabIndex = 9;
    927930            this.splitter1.TabStop = false;
     
    932935            this.splitter2.Location = new System.Drawing.Point(993, 24);
    933936            this.splitter2.Name = "splitter2";
    934             this.splitter2.Size = new System.Drawing.Size(3, 335);
     937            this.splitter2.Size = new System.Drawing.Size(3, 293);
    935938            this.splitter2.TabIndex = 10;
    936939            this.splitter2.TabStop = false;
     
    955958            this.calendarGrid1.Resources = ((System.Collections.ArrayList)(resources.GetObject("calendarGrid1.Resources")));
    956959            this.calendarGrid1.SelectedAppointment = 0;
    957             this.calendarGrid1.Size = new System.Drawing.Size(857, 311);
     960            this.calendarGrid1.Size = new System.Drawing.Size(857, 269);
    958961            this.calendarGrid1.StartDate = new System.DateTime(2003, 1, 27, 0, 0, 0, 0);
    959962            this.calendarGrid1.TabIndex = 0;
     
    968971            //
    969972            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
    970             this.ClientSize = new System.Drawing.Size(1124, 359);
     973            this.ClientSize = new System.Drawing.Size(1124, 317);
    971974            this.Controls.Add(this.panelCenter);
    972975            this.Controls.Add(this.panelBottom);
     
    18171820                                this.Document.EditAppointment(a, sNote);
    18181821
     1822                if (dAppt.PrintAppointmentSlip)
     1823                {
     1824                    PrintAppointmentSlip(a);
     1825                }
     1826
     1827                //Redraw appointments
     1828                this.UpdateArrays();
     1829
     1830                //Then tell RPMS that we are updated
     1831                RaiseRPMSEvent("BSDX SCHEDULE", a.Resource);
    18191832                        }
    18201833                        catch (Exception ex)
     
    26842697                        this.calendarGrid1.Columns = 5;
    26852698            this.Document.m_nColumnCount = 5; // MJL 1/17/2007
    2686             //this.Document.UpdateAllViews();
    2687             //TODO: Is there a way to just reuse the existing arrays? How far in the future do they go?
    26882699            RequestRefreshGrid();
    26892700                }
     
    26932704                        this.calendarGrid1.Columns = 7;
    26942705            this.Document.m_nColumnCount = 7; // MJL 1/17/2007
    2695             //TODO: Is there a way to just reuse the existing arrays? How far in the future do they go?
    26962706            RequestRefreshGrid();
    26972707        }
     
    29532963                appt.HealthRecordNumber = e.Appointment.HealthRecordNumber;
    29542964                appt.AccessTypeID = e.AccessTypeID;
     2965                appt.Patient = e.Appointment.Patient;
     2966
    29552967                this.Document.CreateAppointment(appt);
    29562968
     
    35083520        }
    35093521
    3510         LoadingSplash _loadingSplash; // Splash object a data point in class
     3522        //private delegate DialogResult dLoadingSplash(IWin32Window owner);
     3523        string _tempStatusBartext;
    35113524
    35123525        /// <summary>
    3513         /// Loads a splash that says "Loading"
     3526        /// Loads a splash that says "Loading" -- removed it april 13 2010
    35143527        /// </summary>
    35153528        private void LoadSplash()
    35163529        {
    3517             _loadingSplash = new LoadingSplash();
    3518             _loadingSplash.StartPosition = FormStartPosition.CenterScreen;  //XXX: Don't like this, but will do for now.
    3519             _loadingSplash.UseWaitCursor = true;    // tell user we are working
    3520             Thread threadSplash = new Thread(new ThreadStart(() => _loadingSplash.ShowDialog())); // lambda
    3521             threadSplash.IsBackground = true; //expendable thread -- exit even if still running.
    3522             threadSplash.Name = "Loading Thread";
    3523             threadSplash.Start();
     3530            _tempStatusBartext = this.statusBar1.Text;
     3531            this.statusBar1.Text = "Refreshing Schedule...";
     3532            //_loadingSplash = new LoadingSplash();
     3533            //_loadingSplash.StartPosition = FormStartPosition.CenterScreen;  //XXX: Don't like this, but will do for now.
     3534            //_loadingSplash.UseWaitCursor = true;    // tell user we are working
     3535            //_loadingSplash.Show(this);
     3536            //Thread threadSplash = new Thread(tstart);
     3537            //threadSplash.IsBackground = true;
     3538            //threadSplash.Name = "Loading Thread";
     3539            //threadSplash.Start(this);
     3540
     3541            //Thread threadSplash = new Thread(new ThreadStart(() => _loadingSplash.ShowDialog())); // lambda
     3542            //threadSplash.IsBackground = true; //expendable thread -- exit even if still running.
     3543            //threadSplash.Name = "Loading Thread";
     3544            //threadSplash.Start();
    35243545        }
    35253546
    35263547        private void StopSplash()
    35273548        {
    3528             _loadingSplash.RemoteClose();
     3549            this.statusBar1.Text = _tempStatusBartext;
    35293550        }
    35303551
Note: See TracChangeset for help on using the changeset viewer.