Changeset 964


Ignore:
Timestamp:
Sep 28, 2010, 9:40:17 AM (14 years ago)
Author:
Sam Habiel
Message:

Several fixes:

  1. Appointments in Past now trigger a warning.
  2. Changes to support Division based management of Scheduling GUI.
Location:
Scheduling/trunk/cs/bsdx0200GUISourceCode
Files:
5 edited

Legend:

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

    r935 r964  
    511511                public void LoadResourceUserTable(bool bAllUsers)
    512512                {
    513                         string sCommandText = "SELECT BMXIEN RESOURCEUSER_ID, RESOURCENAME, INTERNAL[RESOURCENAME] RESOURCEID, OVERBOOK, MODIFY_SCHEDULE, MODIFY_APPOINTMENTS, USERNAME, INTERNAL[USERNAME] USERID FROM BSDX_RESOURCE_USER";
     513                        string sCommandText = "SELECT BMXIEN RESOURCEUSER_ID, RESOURCENAME, INTERNAL[RESOURCENAME] RESOURCEID, OVERBOOK, MODIFY_SCHEDULE, MODIFY_APPOINTMENTS, USERNAME, INTERNAL[USERNAME] USERID FROM BSDX_RESOURCE_USER WHERE INTERNAL[INSTITUTION]=" + m_ConnectInfo.DUZ2;
    514514                        ConnectInfo.RPMSDataTable(sCommandText, "ResourceUser", m_dsGlobal);
    515515                        Debug.Write("LoadGlobalRecordsets -- ResourceUser loaded\n");
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/CGView.cs

    r892 r964  
    20952095                                }
    20962096
     2097                // Added check for making Walk-ins in the past. 9/28/2010
     2098                if (dStart.Date < DateTime.Today.Date)
     2099                {
     2100                    var result = MessageBox.Show("Are you sure you want to make a Walk-in in the past?", "Windows Scheduling", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2);
     2101                    if (result == DialogResult.No) return;
     2102                }
     2103
    20972104                                /*
    20982105                                 * 8-10-05 Added overbook prompt for walkin
     
    21722179                                if (bRet == false)
    21732180                                        return;
    2174                                
     2181
     2182                // Added check for making Walk-ins in the past. 9/28/2010
     2183                if (dStart.Date < DateTime.Today.Date)
     2184                {
     2185                    var result = MessageBox.Show("Are you sure you want to make an appointment in the past?", "Windows Scheduling", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2);
     2186                    if (result == DialogResult.No) return;
     2187                }
     2188
    21752189                                //Test dStart for Holiday
    21762190                                DataView dvHoliday = new DataView(this.DocManager.GlobalDataSet.Tables["HOLIDAY"]);
     
    26572671                                }
    26582672
     2673                // Added check for making Walk-ins/appts in the past. 9/28/2010 //smh
     2674                if (e.StartTime < DateTime.Today.Date)
     2675                {
     2676                    var result = MessageBox.Show("Are you sure you want to make an appointment in the past?", "Windows Scheduling", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2);
     2677                    if (result == DialogResult.No) return;
     2678                }
     2679
    26592680                                if (EditAppointmentEnabled(e.Resource) == false)
    26602681                                        return;
     
    27082729                                m_Document.CreateAppointment(e.Appointment);
    27092730                       
    2710                                 string sError = AppointmentDeleteOne(e.Appointment.AppointmentKey);
    2711                                 if (sError != "")
     2731                               
     2732                string sError = AppointmentDeleteOne(e.Appointment.AppointmentKey);
     2733                if (sError != "")
    27122734                                {
    27132735                                        MessageBox.Show(sError);
     
    28662888                                if (bModAppts == false)
    28672889                                        return;
     2890
     2891                // Added check for making Walk-ins/appts in the past. 9/28/2010 //smh
     2892                if (e.StartTime < DateTime.Today.Date)
     2893                {
     2894                    var result = MessageBox.Show("Are you sure you want to make an appointment in the past?", "Windows Scheduling", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2);
     2895                    if (result == DialogResult.No) return;
     2896                }
     2897
    28682898
    28692899                                bOverbook = (bool) this.m_htOverbook[e.Resource.ToString()];
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/DCheckIn.cs

    r886 r964  
    241241                //an experiment (doesn't work yet, but leaving for future enlightenment): LINQ
    242242                var defProv = from Provider in m_dtProvider.AsEnumerable()
    243                               where
    244                                 Provider["DEFAULT"] == "YES"
     243                              where Provider.Field<string>("DEFAULT") == "YES"
    245244                              select Provider;
    246245
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/dsPatientApptDisplay2.Designer.cs

    r935 r964  
    328328        [global::System.Serializable()]
    329329        [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
    330         public partial class PatientApptsDataTable : global::System.Data.TypedTableBase<PatientApptsRow> {
     330        public partial class PatientApptsDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
    331331           
    332332            private global::System.Data.DataColumn columnName;
     
    605605            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    606606            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
     607            public virtual global::System.Collections.IEnumerator GetEnumerator() {
     608                return this.Rows.GetEnumerator();
     609            }
     610           
     611            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     612            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
    607613            public override global::System.Data.DataTable Clone() {
    608614                PatientApptsDataTable cln = ((PatientApptsDataTable)(base.Clone()));
     
    804810        [global::System.Serializable()]
    805811        [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
    806         public partial class BSDXResourceDataTable : global::System.Data.TypedTableBase<BSDXResourceRow> {
     812        public partial class BSDXResourceDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
    807813           
    808814            private global::System.Data.DataColumn columnRESOURCEID;
     
    915921                this.Rows.Add(rowBSDXResourceRow);
    916922                return rowBSDXResourceRow;
     923            }
     924           
     925            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     926            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
     927            public virtual global::System.Collections.IEnumerator GetEnumerator() {
     928                return this.Rows.GetEnumerator();
    917929            }
    918930           
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/dsRebookAppts.Designer.cs

    r935 r964  
    328328        [global::System.Serializable()]
    329329        [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
    330         public partial class PatientApptsDataTable : global::System.Data.TypedTableBase<PatientApptsRow> {
     330        public partial class PatientApptsDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
    331331           
    332332            private global::System.Data.DataColumn columnName;
     
    617617            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    618618            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
     619            public virtual global::System.Collections.IEnumerator GetEnumerator() {
     620                return this.Rows.GetEnumerator();
     621            }
     622           
     623            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     624            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
    619625            public override global::System.Data.DataTable Clone() {
    620626                PatientApptsDataTable cln = ((PatientApptsDataTable)(base.Clone()));
     
    819825        [global::System.Serializable()]
    820826        [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
    821         public partial class BSDXResourceDataTable : global::System.Data.TypedTableBase<BSDXResourceRow> {
     827        public partial class BSDXResourceDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
    822828           
    823829            private global::System.Data.DataColumn columnRESOURCEID;
     
    952958                this.Rows.Add(rowBSDXResourceRow);
    953959                return rowBSDXResourceRow;
     960            }
     961           
     962            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     963            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
     964            public virtual global::System.Collections.IEnumerator GetEnumerator() {
     965                return this.Rows.GetEnumerator();
    954966            }
    955967           
Note: See TracChangeset for help on using the changeset viewer.