Support for different encodings besides ASCII.
Minor bug fixes dealing with internationalization of dates.
This commit is contained in:
parent
5c54e67cb8
commit
d2cf6f6d6d
|
@ -23,11 +23,16 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
private bool m_bSchedManager;
|
||||
private bool m_bExitOK = true;
|
||||
public string m_sHandle = "0";
|
||||
|
||||
//Connection variables
|
||||
private string m_AccessCode="";
|
||||
private string m_VerifyCode="";
|
||||
private string m_Server="";
|
||||
private int m_Port=0;
|
||||
|
||||
//Encoding string (empty by default)
|
||||
private string m_Encoding="";
|
||||
|
||||
//M Connection member variables
|
||||
private DataSet m_dsGlobal = null;
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
@ -36,15 +41,13 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// Constructor. Sets up connector, and ties BMXNet Events to function here.
|
||||
/// </summary>
|
||||
public CGDocumentManager()
|
||||
{
|
||||
InitializeComponent();
|
||||
m_ConnectInfo = new BMXNetConnectInfo();
|
||||
//m_ConnectInfo.bmxNetLib.StartLog(); //This line turns on logging of messages
|
||||
m_bSchedManager = false;
|
||||
CDocMgrEventDelegate = new BMXNetConnectInfo.BMXNetEventDelegate(CDocMgrEventHandler);
|
||||
m_ConnectInfo.BMXNetEvent += CDocMgrEventDelegate;
|
||||
m_ConnectInfo.EventPollingEnabled = false;
|
||||
}
|
||||
|
||||
#region BMXNet Event Handler
|
||||
|
@ -226,6 +229,12 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
|
||||
private void InitializeApp(bool bReLogin)
|
||||
{
|
||||
m_ConnectInfo = new BMXNetConnectInfo(m_Encoding); // Encoding is "" unless passed in command line
|
||||
//m_ConnectInfo.bmxNetLib.StartLog(); //This line turns on logging of messages
|
||||
CDocMgrEventDelegate = new BMXNetConnectInfo.BMXNetEventDelegate(CDocMgrEventHandler);
|
||||
m_ConnectInfo.BMXNetEvent += CDocMgrEventDelegate;
|
||||
m_ConnectInfo.EventPollingEnabled = false;
|
||||
|
||||
try
|
||||
{
|
||||
//Set M connection info
|
||||
|
@ -392,7 +401,8 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
{ "s=", s => _current.m_Server = s },
|
||||
{ "p=", p => _current.m_Port = int.Parse(p) },
|
||||
{ "a=", a => _current.m_AccessCode = a },
|
||||
{ "v=", v => _current.m_VerifyCode = v }
|
||||
{ "v=", v => _current.m_VerifyCode = v },
|
||||
{ "e=", e => _current.m_Encoding = e}
|
||||
};
|
||||
|
||||
opset.Parse(args);
|
||||
|
@ -647,7 +657,7 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
m_dsGlobal.Relations.Add(dr);
|
||||
|
||||
//Build active provider table
|
||||
sCommandText = "SELECT BMXIEN, NAME FROM NEW_PERSON WHERE INACTIVE_DATE = ''";
|
||||
sCommandText = "SELECT BMXIEN, NAME FROM NEW_PERSON WHERE INACTIVE_DATE = '' AND BMXIEN > 1";
|
||||
ConnectInfo.RPMSDataTable(sCommandText, "Provider", m_dsGlobal);
|
||||
Debug.Write("LoadGlobalRecordsets -- Provider loaded\n");
|
||||
|
||||
|
@ -1038,7 +1048,8 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
System.IntPtr pHandle = this.Handle;
|
||||
DataTable dtOut;
|
||||
RPMSDataTableDelegate rdtd = new RPMSDataTableDelegate(ConnectInfo.RPMSDataTable);
|
||||
dtOut = (DataTable) this.Invoke(rdtd, new object[] {sSQL, sTableName});
|
||||
//dtOut = (DataTable) this.Invoke(rdtd, new object[] {sSQL, sTableName});
|
||||
dtOut = ConnectInfo.RPMSDataTable(sSQL, sTableName);
|
||||
return dtOut;
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Windows.Forms;
|
||||
|
||||
/// <summary>
|
||||
/// This class is reponsible for rendering the Calendar Grid.
|
||||
/// </summary>
|
||||
|
|
|
@ -107,9 +107,9 @@
|
|||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="BMXNet20, Version=2.0.2459.21970, Culture=neutral, PublicKeyToken=069dc2499aed6a8c, processorArchitecture=MSIL">
|
||||
<Reference Include="BMXNet21, Version=2.0.3839.7911, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>bin\Release\BMXNet20.dll</HintPath>
|
||||
<HintPath>..\..\..\BMX\bmx_0200scr\BMX2\BMXNet\bin\Release\BMXNet21.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System">
|
||||
<Name>System</Name>
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
<RemoteDebugMachine>
|
||||
</RemoteDebugMachine>
|
||||
<StartAction>Project</StartAction>
|
||||
<StartArguments>/s=192.168.254.129 /p=9260 /a=shabiel12 /v=catdog.44</StartArguments>
|
||||
<StartArguments>/s=172.16.17.31 /p=9240 /a=shabiel12 /v=catdog.44 /e=windows-1256</StartArguments>
|
||||
<StartPage>
|
||||
</StartPage>
|
||||
<StartProgram>C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\IEExec.exe</StartProgram>
|
||||
|
@ -54,7 +54,7 @@
|
|||
<RemoteDebugMachine>
|
||||
</RemoteDebugMachine>
|
||||
<StartAction>Project</StartAction>
|
||||
<StartArguments>/s=192.168.254.129 /p=9260 /a=shabiel12 /v=catdog.44</StartArguments>
|
||||
<StartArguments>/s=172.16.17.31 /p=9240 /a=shabiel12 /v=catdog.44 /e=windows-1256</StartArguments>
|
||||
<StartPage>
|
||||
</StartPage>
|
||||
<StartProgram>
|
||||
|
|
|
@ -3,6 +3,8 @@ Microsoft Visual Studio Solution File, Format Version 10.00
|
|||
# Visual C# Express 2008
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClinicalScheduling", "ClinicalScheduling.csproj", "{8C05C4F7-FE81-479F-87A0-44E04C7F6E0F}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BMXNet", "..\..\..\BMX\bmx_0200scr\BMX2\BMXNet\BMXNet.csproj", "{DE8E4CC9-4F3A-4E32-8DFE-EE5692E8FC45}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
|
@ -13,6 +15,10 @@ Global
|
|||
{8C05C4F7-FE81-479F-87A0-44E04C7F6E0F}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{8C05C4F7-FE81-479F-87A0-44E04C7F6E0F}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{8C05C4F7-FE81-479F-87A0-44E04C7F6E0F}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{DE8E4CC9-4F3A-4E32-8DFE-EE5692E8FC45}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{DE8E4CC9-4F3A-4E32-8DFE-EE5692E8FC45}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{DE8E4CC9-4F3A-4E32-8DFE-EE5692E8FC45}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{DE8E4CC9-4F3A-4E32-8DFE-EE5692E8FC45}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
|
Binary file not shown.
|
@ -44,7 +44,7 @@ namespace IndianHealthService.ClinicalScheduling
|
|||
void SetPastFilter(bool ShowPastAppts)
|
||||
{
|
||||
if (ShowPastAppts) dvAppt.RowFilter = "";
|
||||
else dvAppt.RowFilter = "ApptDate > " + "#" + DateTime.Today.ToShortDateString() + "#";
|
||||
else dvAppt.RowFilter = "ApptDate > " + "'" + DateTime.Today.ToShortDateString() + "'";
|
||||
}
|
||||
|
||||
private void chkPastAppts_CheckedChanged(object sender, EventArgs e)
|
||||
|
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Loading…
Reference in New Issue