Changeset 859 for Scheduling/trunk/cs


Ignore:
Timestamp:
Jul 13, 2010, 3:03:41 AM (14 years ago)
Author:
Sam Habiel
Message:

i18n code (use FM Dates instead of localized dates)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/DCopyAppts.cs

    r627 r859  
    2323                private System.Windows.Forms.Label lblProgress;
    2424                private System.ComponentModel.IContainer components;
     25
     26        delegate DataTable RPMSDataTableDelegate(string CommandString, string TableName);
     27
    2528
    2629        #region Fields
     
    187190                                lblProgress.Text = "Starting Process... \r\n";
    188191
    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);
    193206
    194207                                DataRow dr = dt.Rows[0];
Note: See TracChangeset for help on using the changeset viewer.