V 1.3 exe and dll, now open for testing.

This commit is contained in:
sam 2010-07-18 13:42:17 +00:00
parent 0c2fb21ab3
commit d8fd8d3dc0
6 changed files with 11 additions and 6 deletions

View File

@ -654,8 +654,10 @@ namespace IndianHealthService.ClinicalScheduling
/// Given a selected date,
/// Calculates StartDay and End Day and returns them in output params.
/// nWeeks == number of Weeks to display
/// nColumnCount is number of days displayed per week. If 5 columns, begin on
/// Monday, if 7 Columns, begin on Sunday
/// nColumnCount is number of days displayed per week.
/// If 5 columns, begin on Second Day of Week
/// If 7 Columns, begin on First Day of Week
/// (this is a change from the hardcoded behavior for US-based calendars)
///
/// Returns TRUE if the document's data needs refreshing based on
/// this newly selected date.
@ -665,9 +667,11 @@ namespace IndianHealthService.ClinicalScheduling
{
DateTime OldStartDay = m_dStartDate;
DateTime OldEndDay = m_dEndDate;
// Week start based on machine locale
int nStartWeekDay = (int)System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.FirstDayOfWeek;
int nWeekDay = (int) SelectedDate.DayOfWeek; //0 == Sunday
// this offset gets approrpriate day based on locale.
int nOff = (nStartWeekDay + 1) % 7;
TimeSpan ts = new TimeSpan(nWeekDay - nOff,0,0,0); //d,h,m,s

View File

@ -66,7 +66,7 @@
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>TRACE;DEBUG</DefineConstants>
<DefineConstants>DEBUG</DefineConstants>
<DocumentationFile>bin\Release\ClinicalScheduling.XML</DocumentationFile>
<DebugSymbols>false</DebugSymbols>
<FileAlignment>4096</FileAlignment>
@ -89,7 +89,8 @@
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>TRACE;DEBUG</DefineConstants>
<DefineConstants>
</DefineConstants>
<DocumentationFile>bin\Release\ClinicalScheduling.XML</DocumentationFile>
<DebugSymbols>false</DebugSymbols>
<FileAlignment>4096</FileAlignment>

View File

@ -238,7 +238,7 @@ namespace IndianHealthService.ClinicalScheduling
if (nRow.Length > 0) nFind = m_dtProvider.Rows.IndexOf(nRow[0]);
cboProvider.SelectedIndex = nFind;
//an experiment: LINQ
//an experiment (doesn't work yet, but leaving for future enlightenment): LINQ
var defProv = from Provider in m_dtProvider.AsEnumerable()
where
Provider["DEFAULT"] == "YES"