Changeset 964 for Scheduling/trunk/cs/bsdx0200GUISourceCode/CGView.cs
- Timestamp:
- Sep 28, 2010, 9:40:17 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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()];
Note:
See TracChangeset
for help on using the changeset viewer.