Changeset 964 for Scheduling/trunk/cs/bsdx0200GUISourceCode
- Timestamp:
- Sep 28, 2010, 9:40:17 AM (14 years ago)
- Location:
- Scheduling/trunk/cs/bsdx0200GUISourceCode
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocumentManager.cs
r935 r964 511 511 public void LoadResourceUserTable(bool bAllUsers) 512 512 { 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; 514 514 ConnectInfo.RPMSDataTable(sCommandText, "ResourceUser", m_dsGlobal); 515 515 Debug.Write("LoadGlobalRecordsets -- ResourceUser loaded\n"); -
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGView.cs
r892 r964 2095 2095 } 2096 2096 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 2097 2104 /* 2098 2105 * 8-10-05 Added overbook prompt for walkin … … 2172 2179 if (bRet == false) 2173 2180 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 2175 2189 //Test dStart for Holiday 2176 2190 DataView dvHoliday = new DataView(this.DocManager.GlobalDataSet.Tables["HOLIDAY"]); … … 2657 2671 } 2658 2672 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 2659 2680 if (EditAppointmentEnabled(e.Resource) == false) 2660 2681 return; … … 2708 2729 m_Document.CreateAppointment(e.Appointment); 2709 2730 2710 string sError = AppointmentDeleteOne(e.Appointment.AppointmentKey); 2711 if (sError != "") 2731 2732 string sError = AppointmentDeleteOne(e.Appointment.AppointmentKey); 2733 if (sError != "") 2712 2734 { 2713 2735 MessageBox.Show(sError); … … 2866 2888 if (bModAppts == false) 2867 2889 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 2868 2898 2869 2899 bOverbook = (bool) this.m_htOverbook[e.Resource.ToString()]; -
Scheduling/trunk/cs/bsdx0200GUISourceCode/DCheckIn.cs
r886 r964 241 241 //an experiment (doesn't work yet, but leaving for future enlightenment): LINQ 242 242 var defProv = from Provider in m_dtProvider.AsEnumerable() 243 where 244 Provider["DEFAULT"] == "YES" 243 where Provider.Field<string>("DEFAULT") == "YES" 245 244 select Provider; 246 245 -
Scheduling/trunk/cs/bsdx0200GUISourceCode/dsPatientApptDisplay2.Designer.cs
r935 r964 328 328 [global::System.Serializable()] 329 329 [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 { 331 331 332 332 private global::System.Data.DataColumn columnName; … … 605 605 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 606 606 [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")] 607 613 public override global::System.Data.DataTable Clone() { 608 614 PatientApptsDataTable cln = ((PatientApptsDataTable)(base.Clone())); … … 804 810 [global::System.Serializable()] 805 811 [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 { 807 813 808 814 private global::System.Data.DataColumn columnRESOURCEID; … … 915 921 this.Rows.Add(rowBSDXResourceRow); 916 922 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(); 917 929 } 918 930 -
Scheduling/trunk/cs/bsdx0200GUISourceCode/dsRebookAppts.Designer.cs
r935 r964 328 328 [global::System.Serializable()] 329 329 [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 { 331 331 332 332 private global::System.Data.DataColumn columnName; … … 617 617 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 618 618 [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")] 619 625 public override global::System.Data.DataTable Clone() { 620 626 PatientApptsDataTable cln = ((PatientApptsDataTable)(base.Clone())); … … 819 825 [global::System.Serializable()] 820 826 [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 { 822 828 823 829 private global::System.Data.DataColumn columnRESOURCEID; … … 952 958 this.Rows.Add(rowBSDXResourceRow); 953 959 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(); 954 966 } 955 967
Note:
See TracChangeset
for help on using the changeset viewer.