Changeset 868
- Timestamp:
- Jul 14, 2010, 8:11:57 AM (14 years ago)
- Location:
- Scheduling/trunk/cs/bsdx0200GUISourceCode
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocument.cs
r864 r868 666 666 DateTime OldStartDay = m_dStartDate; 667 667 DateTime OldEndDay = m_dEndDate; 668 int nWeekDay = (int) SelectedDate.DayOfWeek; //0 == Sunday 669 670 int nOff = 1; 668 int nStartWeekDay = (int)System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.FirstDayOfWeek; 669 int nWeekDay = (int) SelectedDate.DayOfWeek; //0 == Sunday 670 671 int nOff = (nStartWeekDay + 1) % 7; 671 672 TimeSpan ts = new TimeSpan(nWeekDay - nOff,0,0,0); //d,h,m,s 672 673 -
Scheduling/trunk/cs/bsdx0200GUISourceCode/DPatientLookup.cs
r620 r868 168 168 private string m_sPatientIEN; 169 169 private string m_sPatientDOB; 170 private string m_sPatient SSN;170 private string m_sPatientPID; 171 171 172 172 #endregion //Fields … … 229 229 this.m_sPatientHRN = r["HRN"].ToString(); 230 230 this.m_sPatientIEN = r["IEN"].ToString(); 231 this.m_sPatient SSN = r["SSN"].ToString();231 this.m_sPatientPID = r["PID"].ToString(); 232 232 this.cmdOK.Enabled = true; 233 233 this.AcceptButton = cmdOK; … … 241 241 ListViewItem lv = new ListViewItem(sPat); 242 242 lv.SubItems.Add(r["HRN"].ToString()); 243 lv.SubItems.Add(r[" SSN"].ToString());243 lv.SubItems.Add(r["PID"].ToString()); 244 244 DateTime d = Convert.ToDateTime(r["DOB"]); 245 string sFormat = "MM/dd/yyyy";246 245 string sFormat = System.Globalization.DateTimeFormatInfo.CurrentInfo.ShortDatePattern; 246 string sDob = d.ToString(sFormat); 247 247 lv.SubItems.Add(sDob); 248 248 lv.SubItems.Add((r["IEN"].ToString())); … … 254 254 lvwPatients.Columns.Add("Name", w, HorizontalAlignment.Left); 255 255 lvwPatients.Columns.Add("HRN", w, HorizontalAlignment.Left); 256 lvwPatients.Columns.Add(" SSN", w, HorizontalAlignment.Left);256 lvwPatients.Columns.Add("PID", w, HorizontalAlignment.Left); 257 257 lvwPatients.Columns.Add("DOB",w, HorizontalAlignment.Left); 258 258 … … 292 292 m_sPatientHRN = v.SubItems[1].Text; 293 293 m_sPatientDOB = v.SubItems[3].Text; 294 m_sPatient SSN= v.SubItems[2].Text;294 m_sPatientPID = v.SubItems[2].Text; 295 295 this.txtSearch.Text = m_sPatientName; 296 296 this.cmdOK.Enabled = true;
Note:
See TracChangeset
for help on using the changeset viewer.