Changeset 859 for Scheduling
- Timestamp:
- Jul 13, 2010, 3:03:41 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/DCopyAppts.cs
r627 r859 23 23 private System.Windows.Forms.Label lblProgress; 24 24 private System.ComponentModel.IContainer components; 25 26 delegate DataTable RPMSDataTableDelegate(string CommandString, string TableName); 27 25 28 26 29 #region Fields … … 187 190 lblProgress.Text = "Starting Process... \r\n"; 188 191 189 string sSql = "BSDX COPY APPOINTMENTS^" + m_ResourceID + "^" + m_HospLocationID + "^" + m_dtBegin.ToShortDateString() + "^" + m_dtEnd.ToShortDateString(); 190 DataTable dt = m_DocManager.RPMSDataTable(sSql, "ApptCopy"); 191 Debug.Assert(dt.Rows.Count == 1); 192 192 string sFMBeginDate = FMDateTime.Create(m_dtBegin).DateOnly.FMDateString; 193 string sFMEndDate = FMDateTime.Create(m_dtEnd).DateOnly.FMDateString; 194 195 //smh - i18n 196 //string sSql = "BSDX COPY APPOINTMENTS^" + m_ResourceID + "^" + m_HospLocationID + "^" + m_dtBegin.ToShortDateString() + "^" + m_dtEnd.ToShortDateString(); 197 string sSql = "BSDX COPY APPOINTMENTS^" + m_ResourceID + "^" + m_HospLocationID + "^" + sFMBeginDate + "^" + sFMEndDate; 198 199 //DataTable dt = m_DocManager.RPMSDataTable(sSql, "ApptCopy"); 200 //Debug.Assert(dt.Rows.Count == 1); 201 202 // TODO (later): delegate is supposed to support cross thread communication -- but this doesn't work. 203 RPMSDataTableDelegate d = new RPMSDataTableDelegate(m_DocManager.RPMSDataTable); 204 DataTable dt = d.Invoke(sSql, "ApptCopy"); 205 Debug.Assert(dt.Rows.Count == 1); 193 206 194 207 DataRow dr = dt.Rows[0];
Note:
See TracChangeset
for help on using the changeset viewer.