diff --git a/cs/bmx_0200scr/BMX2/BMXNet.suo b/cs/bmx_0200scr/BMX2/BMXNet.suo index cf640aa..8c92ce7 100644 Binary files a/cs/bmx_0200scr/BMX2/BMXNet.suo and b/cs/bmx_0200scr/BMX2/BMXNet.suo differ diff --git a/cs/bmx_0200scr/BMX2/BMXNet/BMXNetLib.cs b/cs/bmx_0200scr/BMX2/BMXNet/BMXNetLib.cs index b96b779..177a90f 100644 --- a/cs/bmx_0200scr/BMX2/BMXNet/BMXNetLib.cs +++ b/cs/bmx_0200scr/BMX2/BMXNet/BMXNetLib.cs @@ -1066,10 +1066,17 @@ namespace IndianHealthService.BMXNet string sMult = ""; string sSend = ADEBLDMsg(m_cHDR, sRPC, sParam, ref sMult); SendString(m_pCommSocket, sSend, sMult); - // Debug.Write("TransmitRPC Sent: " + sSend + "\n"); - string strResult = ReceiveString(m_pCommSocket); - // Debug.Write("TransmitRPC Received: " + strResult + "\n"); - +#if DEBUG + DateTime sendTime = DateTime.Now; + Debug.Write("TransmitRPC Sent: " + sSend + "\n"); +#endif + string strResult = ReceiveString(m_pCommSocket); +#if DEBUG + DateTime receiveTime = DateTime.Now; + Debug.Write("TransmitRPC Received: " + strResult + "\n"); + TimeSpan executionTime = receiveTime - sendTime; + Debug.Write("Execution Time: " + executionTime.Milliseconds + " ms.\n"); +#endif if (sOldAppContext != "") { this.AppContext = sOldAppContext; diff --git a/cs/bmx_0200scr/BMX2/BMXNet/bmxnet.xml b/cs/bmx_0200scr/BMX2/BMXNet/bmxnet.xml index f8f1c50..57d75d0 100644 --- a/cs/bmx_0200scr/BMX2/BMXNet/bmxnet.xml +++ b/cs/bmx_0200scr/BMX2/BMXNet/bmxnet.xml @@ -4,6 +4,188 @@ BMXNet20 + + + Returns the array of RMPSResultSets retrieved from RPMS + + + + + Sets and Returns the current recordset + + + + + Contains methods and properties to support RPMS Login for .NET applications + + + + + Register interest in an RPMS event. + + + + + + + Unregister an RPMS event + + + + + + + Raise an RPMS event + + The name of the event to raise + Parameters associated with the event + True if the event should be raised back to the caller + + + + + For backwards compatibility. Internally calls LoadConnectInfo() + + + + + Change the internet address and port of the RPMS server + Throws a BMXNetException if user cancels + + + + + Called to connect to an M server + Server address, port, Access and Verify codes will be + prompted for depending on whether these values are + cached. + + + + + Called to connect to the M server specified by + server address and listener port. The default namespace on the server will be used. + Access and Verify codes will be prompted if + valid values for the current Windows Identity are + not cached on the server. + + The IP address or name of the MServer + The port on which the BMXNet Monitor is listening + + + + Called to connect to the M server specified by + server address, listener port and namespace. + Access and Verify codes will be prompted if + valid values for the current Windows Identity are + not cached on the server. + + The IP address or name of the MServer + The port on which the BMXNet Monitor is listening + The namespace in which the BMXNet application will run + + + + Called to connect to an M server + using specific Access and Verify codes. + Server address and port will be prompted if they + are not cached in local storage. + + The user's access code + The user's verify code + + + + Called to connect to a specific M server + using specific Access and Verify codes. + + The user's access code + The user's verify code + The IP address or name of the MServer + The port on which the BMXNet Monitor is listening + + + + Called to connect to a specific namespace on the M server + using specific Access and Verify codes. + + The user's access code + The user's verify code + The IP address or name of the MServer + The port on which the BMXNet Monitor is listening + The namespace in which the BMXNet application will run + + + + Creates and names a DataTable using the command in CommandString + and the name in TableName. + + The SQL or RPC call + The name of the resulting table + + Returns the resulting DataTable. + + + + + Creates and names a DataTable using the command in CommandString + and the name in TableName then adds it to DataSet. + + The SQL or RPC call + The name of the resulting table + The dataset in which to place the table + + Returns the resulting DataTable. + + + + + Enables and disables event polling for the RPMS connection + + + + + Sets and retrieves the interval in milliseconds for RPMS event polling + + + + + Sets and retrieves the number of times that the Event Timer will generage a BMXNet AutoFire event. + For example, if AutoFire == 3, then every 3rd time the Event Timer fires, it will generate an AutoFire event. + + + + + Set and retrieve the timeout, in milliseconds, to receive a response from the RPMS server. + If the retrieve time exceeds the timeout, an exception will be thrown and the connection will be closed. + The default is 30 seconds. + + + + + Returns a string representation of DUZ + + + + + Sets and Returns DUZ(2) + + + + + Gets the address of the RPMS Server + + + + + Gets the port on which the MServer is connected + + + + + Serializes RPMS server address and port + + Prompts for RPMS Server address and port @@ -189,21 +371,6 @@ Throws an exception if unable to set the context. - - - Custom exception class for BMXNet - - - - - Returns the array of RMPSResultSets retrieved from RPMS - - - - - Sets and Returns the current recordset - - Summary description for DLoginInfo. @@ -242,176 +409,9 @@ Gets the verify code entered by the user. - + - Contains methods and properties to support RPMS Login for .NET applications - - - - - Register interest in an RPMS event. - - - - - - - Unregister an RPMS event - - - - - - - Raise an RPMS event - - The name of the event to raise - Parameters associated with the event - True if the event should be raised back to the caller - - - - - For backwards compatibility. Internally calls LoadConnectInfo() - - - - - Change the internet address and port of the RPMS server - Throws a BMXNetException if user cancels - - - - - Called to connect to an M server - Server address, port, Access and Verify codes will be - prompted for depending on whether these values are - cached. - - - - - Called to connect to the M server specified by - server address and listener port. The default namespace on the server will be used. - Access and Verify codes will be prompted if - valid values for the current Windows Identity are - not cached on the server. - - The IP address or name of the MServer - The port on which the BMXNet Monitor is listening - - - - Called to connect to the M server specified by - server address, listener port and namespace. - Access and Verify codes will be prompted if - valid values for the current Windows Identity are - not cached on the server. - - The IP address or name of the MServer - The port on which the BMXNet Monitor is listening - The namespace in which the BMXNet application will run - - - - Called to connect to an M server - using specific Access and Verify codes. - Server address and port will be prompted if they - are not cached in local storage. - - The user's access code - The user's verify code - - - - Called to connect to a specific M server - using specific Access and Verify codes. - - The user's access code - The user's verify code - The IP address or name of the MServer - The port on which the BMXNet Monitor is listening - - - - Called to connect to a specific namespace on the M server - using specific Access and Verify codes. - - The user's access code - The user's verify code - The IP address or name of the MServer - The port on which the BMXNet Monitor is listening - The namespace in which the BMXNet application will run - - - - Creates and names a DataTable using the command in CommandString - and the name in TableName. - - The SQL or RPC call - The name of the resulting table - - Returns the resulting DataTable. - - - - - Creates and names a DataTable using the command in CommandString - and the name in TableName then adds it to DataSet. - - The SQL or RPC call - The name of the resulting table - The dataset in which to place the table - - Returns the resulting DataTable. - - - - - Enables and disables event polling for the RPMS connection - - - - - Sets and retrieves the interval in milliseconds for RPMS event polling - - - - - Sets and retrieves the number of times that the Event Timer will generage a BMXNet AutoFire event. - For example, if AutoFire == 3, then every 3rd time the Event Timer fires, it will generate an AutoFire event. - - - - - Set and retrieve the timeout, in milliseconds, to receive a response from the RPMS server. - If the retrieve time exceeds the timeout, an exception will be thrown and the connection will be closed. - The default is 30 seconds. - - - - - Returns a string representation of DUZ - - - - - Sets and Returns DUZ(2) - - - - - Gets the address of the RPMS Server - - - - - Gets the port on which the MServer is connected - - - - - Serializes RPMS server address and port + Custom exception class for BMXNet diff --git a/cs/bmx_0200scr/BMX2/BMXNetTest/frmBMXNetTest.cs b/cs/bmx_0200scr/BMX2/BMXNetTest/frmBMXNetTest.cs index 16675d9..45ed051 100644 --- a/cs/bmx_0200scr/BMX2/BMXNetTest/frmBMXNetTest.cs +++ b/cs/bmx_0200scr/BMX2/BMXNetTest/frmBMXNetTest.cs @@ -1112,7 +1112,7 @@ namespace IndianHealthService.BMXNet // AV codes. You may then pass // the values you collected to LoadConnectInfo(access,verify) // - m_ci.LoadConnectInfo("172.16.17.31",9240,"",""); + m_ci.LoadConnectInfo("192.168.1.103",9260,"",""); m_ci.AppContext = "BMXRPC"; txtContext.Text = m_ci.AppContext;