Changeset 822
- Timestamp:
- Jul 6, 2010, 8:09:10 AM (14 years ago)
- Location:
- BMXNET_RPMS_dotNET_UTILITIES-BMX/trunk/cs/bmx_0200scr/BMX2
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
BMXNET_RPMS_dotNET_UTILITIES-BMX/trunk/cs/bmx_0200scr/BMX2/BMXNet.sln
r816 r822 7 7 EndProject 8 8 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BMXNet", "BMXNet\BMXNet.csproj", "{DE8E4CC9-4F3A-4E32-8DFE-EE5692E8FC45}" 9 EndProject 10 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BMXCmdTester", "BMXCmdTester\BMXCmdTester.csproj", "{25C6E4FD-16F0-49E0-B0BA-6126E451F5D6}" 9 11 EndProject 10 12 Global … … 22 24 {DE8E4CC9-4F3A-4E32-8DFE-EE5692E8FC45}.Release|Any CPU.ActiveCfg = Release|Any CPU 23 25 {DE8E4CC9-4F3A-4E32-8DFE-EE5692E8FC45}.Release|Any CPU.Build.0 = Release|Any CPU 26 {25C6E4FD-16F0-49E0-B0BA-6126E451F5D6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 27 {25C6E4FD-16F0-49E0-B0BA-6126E451F5D6}.Debug|Any CPU.Build.0 = Debug|Any CPU 28 {25C6E4FD-16F0-49E0-B0BA-6126E451F5D6}.Release|Any CPU.ActiveCfg = Release|Any CPU 29 {25C6E4FD-16F0-49E0-B0BA-6126E451F5D6}.Release|Any CPU.Build.0 = Release|Any CPU 24 30 EndGlobalSection 25 31 GlobalSection(SolutionProperties) = preSolution -
BMXNET_RPMS_dotNET_UTILITIES-BMX/trunk/cs/bmx_0200scr/BMX2/BMXNet/BMXNet.csproj
r817 r822 11 11 <AssemblyKeyContainerName> 12 12 </AssemblyKeyContainerName> 13 <AssemblyName>BMXNet2 0</AssemblyName>13 <AssemblyName>BMXNet21</AssemblyName> 14 14 <AssemblyOriginatorKeyFile>wv.key.snk</AssemblyOriginatorKeyFile> 15 15 <DefaultClientScript>JScript</DefaultClientScript> … … 52 52 <ConfigurationOverrideFile> 53 53 </ConfigurationOverrideFile> 54 <DefineConstants>DEBUG ;TRACE</DefineConstants>54 <DefineConstants>DEBUG</DefineConstants> 55 55 <DocumentationFile>bmxnet.xml</DocumentationFile> 56 56 <DebugSymbols>true</DebugSymbols> … … 73 73 <ConfigurationOverrideFile> 74 74 </ConfigurationOverrideFile> 75 <DefineConstants>DEBUG;TRACE</DefineConstants> 75 <DefineConstants> 76 </DefineConstants> 76 77 <DocumentationFile>bmxnet.xml</DocumentationFile> 77 78 <DebugSymbols>true</DebugSymbols> -
BMXNET_RPMS_dotNET_UTILITIES-BMX/trunk/cs/bmx_0200scr/BMX2/BMXNet/BMXNetAdapter.cs
r815 r822 77 77 */ 78 78 79 public override int Fill( 80 DataSet ds 81 ) 79 public override int Fill(DataSet ds) 82 80 { 83 81 //The inital call to base.fill calls the RPC which loads up the array -
BMXNET_RPMS_dotNET_UTILITIES-BMX/trunk/cs/bmx_0200scr/BMX2/BMXNet/BMXNetConnectInfo.cs
r815 r822 57 57 } 58 58 59 public BMXNetConnectInfo() 60 { 61 m_BMXNetLib = new BMXNetLib(); 62 63 //Initialize BMXNetEvent timer 64 m_timerEvent = new System.Timers.Timer(); 65 m_timerEvent.Elapsed+=new ElapsedEventHandler(OnEventTimer); 66 m_timerEvent.Interval = 10000; 67 m_timerEvent.Enabled = false; 68 } 59 /// <summary> 60 /// BMXNetConnector With Default Encoding (invokes BMXNetLib) 61 /// </summary> 62 public BMXNetConnectInfo() : this("") { } 63 64 /// <summary> 65 /// BMXNetConnector with a specific encoding 66 /// </summary> 67 /// <param name="encoding">String representation of encoding (e.g. windows-1256 for arabic). 68 /// If encoding is not found, we fall back to the default windows encoding. A debug message 69 /// is printed to that effect.</param> 70 public BMXNetConnectInfo(string encoding) 71 { 72 if (encoding == String.Empty) m_BMXNetLib = new BMXNetLib(); 73 else m_BMXNetLib = new BMXNetLib(encoding); 74 75 m_timerEvent = new System.Timers.Timer(); 76 m_timerEvent.Elapsed += new ElapsedEventHandler(OnEventTimer); 77 m_timerEvent.Interval = 10000; 78 m_timerEvent.Enabled = false; 79 } 69 80 70 81 #region BMXNetEvent -
BMXNET_RPMS_dotNET_UTILITIES-BMX/trunk/cs/bmx_0200scr/BMX2/BMXNet/BMXNetLib.cs
r818 r822 21 21 public class BMXNetLib 22 22 { 23 public BMXNetLib() 23 /// <summary> 24 /// Main constructor with default machine encoding 25 /// </summary> 26 public BMXNetLib() 24 27 { 25 28 m_sWKID = "BMX"; … … 30 33 31 34 } 35 36 /// <summary> 37 /// Constructor specifiying encoding 38 /// </summary> 39 /// <param name="charset">String name of character set</param> 40 public BMXNetLib(string charset) : this() 41 { 42 43 //char[] arabic_nm_ch = arabic_name.ToCharArray(); 44 //byte[] arabic_nm_by = cp1256.GetBytes(arabic_nm_ch); 45 //string arabic_name2 = ""; 46 //foreach (byte eachbyte in arabic_nm_by) 47 //{ 48 // arabic_name2 += ((char)eachbyte); 49 //} 50 51 try 52 { 53 m_Encoding = System.Text.Encoding.GetEncoding(charset); 54 } 55 catch (ArgumentException) 56 { 57 Debug.Write("Invalid Code Page... Falling back to default system encoding"); 58 m_Encoding = Encoding.GetEncoding(0); 59 } 60 } 32 61 33 62 #region Piece Functions … … 139 168 private string m_sNameSpace = ""; 140 169 private int m_nReceiveTimeout = 30000; 170 171 private Encoding m_Encoding = Encoding.GetEncoding(0); 141 172 142 173 #endregion RPX Fields … … 802 833 803 834 NetworkStream ns = tcpClient.GetStream(); 804 byte[] sendBytes = Encoding.ASCII.GetBytes(cSendString);835 byte[] sendBytes = m_Encoding.GetBytes(cSendString); 805 836 ns.Write(sendBytes,0,sendBytes.Length); 806 837 if (this.m_bLogging == true) … … 852 883 do 853 884 { 854 855 885 numberOfBytesRead = ns.Read(bReadBuffer, 0, bReadBuffer.Length); 856 886 if ((numberOfBytesRead == 1)&&(bStarted == false)) … … 869 899 lpBuf += 2; 870 900 } 871 sError = Encoding.ASCII.GetString(bReadBuffer, lpBuf + 1, nErrLen);901 sError = m_Encoding.GetString(bReadBuffer, lpBuf + 1, nErrLen); 872 902 if (sError != "") 873 903 { 874 904 throw new BMXNetException(sError); 875 905 } 876 sAppError = Encoding.ASCII.GetString(bReadBuffer, lpBuf+1+nErrLen+1, nAppLen);906 sAppError = m_Encoding.GetString(bReadBuffer, lpBuf+1+nErrLen+1, nAppLen); 877 907 lpBuf += (nErrLen + nAppLen + 2); 878 908 numberOfBytesRead -= (nErrLen + nAppLen + 2); … … 884 914 bFinished = true; 885 915 Debug.Assert(numberOfBytesRead > -1); 886 sReadBuffer = Encoding.ASCII.GetString(bReadBuffer, lpBuf, numberOfBytesRead);916 sReadBuffer = m_Encoding.GetString(bReadBuffer, lpBuf, numberOfBytesRead); 887 917 lpBuf = 0; 888 918 if (nFind > -1) … … 1315 1345 } 1316 1346 1347 /// <summary> 1348 /// Gets or Sets the Default Encoder to use 1349 /// </summary> 1350 public Encoding Encoder 1351 { 1352 get 1353 { 1354 return this.m_Encoding; 1355 } 1356 set 1357 { 1358 this.m_Encoding = Encoder; 1359 } 1360 } 1361 1317 1362 #endregion RPX Properties 1318 1363 -
BMXNET_RPMS_dotNET_UTILITIES-BMX/trunk/cs/bmx_0200scr/BMX2/BMXNet/RPMSDb.cs
r815 r822 165 165 Type tType; 166 166 167 int nTemp = 10; 167 int nTemp = 10; //length of @@@meta@@@ 168 //actual header 168 169 sHeader = sHeader.Substring(10,(sHeader.Length - nTemp)); 169 170 string[] sRecordSetInfo = sHeader.Split(cFldDelim); 170 171 172 //substract one because 1st item is RecordId|File# -- rest is columns 171 173 numCols = sRecordSetInfo.GetLength(0)-1; 172 174 m_aResultSets[nSet].metaData = new RPMSDbResultSet.MetaData[numCols]; 173 175 174 //First ^-Piece is recordset-level info: RecordIdentifier|File# 176 //Set FileID 177 //First ^-Piece is recordset-level info: RecordIdentifier|File# 175 178 string[] sRecordInfo = sRecordSetInfo[0].Split(cBar); 176 179 m_aResultSets[nSet].fmFileID = sRecordInfo[1]; 180 181 //What is the seed??? 177 182 if (sRecordInfo.GetLength(0) > 2) 178 183 { … … 190 195 } 191 196 197 // Foreign key is included 192 198 if (sRecordInfo.GetLength(0) > 3) 193 199 { … … 197 203 198 204 m_aResultSets[nSet].fmKeyField = ""; 199 //2nd through nth ^-Pieces are Column info: Fileman File# FileMan Field#|DataType|Field Length|Column Name|IsReadOnly|IsKeyField205 //2nd through nth ^-Pieces are Column info: Fileman File#|FileMan Field#|DataType|Field Length|Column Name|IsReadOnly|IsKeyField|???? 200 206 for (j=1; j < sRecordSetInfo.GetLength(0); j++) 201 207 { … … 208 214 //Field 5 = IsReadOnly 209 215 //Field 6 = IsKeyField 216 //Field 7 {MISSING} 210 217 sFileID = sColumnInfo[0]; 211 218 string sFieldID = sColumnInfo[1]; … … 302 309 string sFldDelim = "^"; 303 310 char[] cFldDelim = sFldDelim.ToCharArray(); 311 // nRecords-1 because last record is empty (Where $C(31) (end of record) is) 304 312 m_aResultSets[nSet].data = new object[nRecords-1, numCols]; 305 313 string[] saRecord; … … 310 318 for (int k = 0; k< saRecord.GetLength(0); k++) 311 319 { 320 //Date Time validation 321 //TODO: Support Fileman DateTime 312 322 if (m_aResultSets[nSet].metaData[k].type == typeof(DateTime)) 313 323 { … … 385 395 int nRecordSetCount; //Count of recordsets 386 396 397 //Gets Records[sets] (val is number of records for each set), Headers[sets] (val is header location in array), and number of record sets. 387 398 IndexRecords(sResultArray, out naRecords, out naHeaderIndex, out nRecordSetCount); 399 //Create array of result sets 388 400 m_aResultSets = new RPMSDbResultSet[nRecordSetCount]; 389 401 -
BMXNET_RPMS_dotNET_UTILITIES-BMX/trunk/cs/bmx_0200scr/BMX2/BMXNet/bin/Release/bmxnet.xml
r816 r822 2 2 <doc> 3 3 <assembly> 4 <name>BMXNet2 0</name>4 <name>BMXNet21</name> 5 5 </assembly> 6 6 <members> … … 83 83 </summary> 84 84 </member> 85 <member name="M:IndianHealthService.BMXNet.BMXNetLib.#ctor"> 86 <summary> 87 Main constructor with default machine encoding 88 </summary> 89 </member> 90 <member name="M:IndianHealthService.BMXNet.BMXNetLib.#ctor(System.String)"> 91 <summary> 92 Constructor specifiying encoding 93 </summary> 94 <param name="charset">String name of character set</param> 95 </member> 85 96 <member name="M:IndianHealthService.BMXNet.BMXNetLib.PieceLength(System.String,System.String)"> 86 97 <summary> … … 190 201 </summary> 191 202 </member> 203 <member name="P:IndianHealthService.BMXNet.BMXNetLib.Encoder"> 204 <summary> 205 Gets or Sets the Default Encoder to use 206 </summary> 207 </member> 192 208 <member name="T:IndianHealthService.BMXNet.BMXNetException"> 193 209 <summary> … … 247 263 Contains methods and properties to support RPMS Login for .NET applications 248 264 </summary> 265 </member> 266 <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.#ctor"> 267 <summary> 268 BMXNetConnector With Default Encoding (invokes BMXNetLib) 269 </summary> 270 </member> 271 <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.#ctor(System.String)"> 272 <summary> 273 BMXNetConnector with a specific encoding 274 </summary> 275 <param name="encoding">String representation of encoding (e.g. windows-1256 for arabic). 276 If encoding is not found, we fall back to the default windows encoding. A debug message 277 is printed to that effect.</param> 249 278 </member> 250 279 <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.SubscribeEvent(System.String)"> -
BMXNET_RPMS_dotNET_UTILITIES-BMX/trunk/cs/bmx_0200scr/BMX2/BMXNet/bmxnet.xml
r818 r822 2 2 <doc> 3 3 <assembly> 4 <name>BMXNet2 0</name>4 <name>BMXNet21</name> 5 5 </assembly> 6 6 <members> 7 <member name="T:IndianHealthService.BMXNet.DServerInfo"> 8 <summary> 9 Prompts for RPMS Server address and port 10 Obtains current values, if any, from isolated storage 11 and uses them as defaults. 12 If OK, then writes values to isolated storage and returns 13 Address and Port as properties. 14 15 </summary> 16 </member> 17 <member name="F:IndianHealthService.BMXNet.DServerInfo.components"> 18 <summary> 19 Required designer variable. 20 </summary> 21 </member> 22 <member name="M:IndianHealthService.BMXNet.DServerInfo.Dispose(System.Boolean)"> 23 <summary> 24 Clean up any resources being used. 25 </summary> 26 </member> 27 <member name="M:IndianHealthService.BMXNet.DServerInfo.InitializeComponent"> 28 <summary> 29 Required method for Designer support - do not modify 30 the contents of this method with the code editor. 31 </summary> 32 </member> 33 <member name="M:IndianHealthService.BMXNet.DServerInfo.UpdateDialogData(System.Boolean)"> 34 <summary> 35 If b is true, moves member vars into control data 36 otherwise, moves control data into member vars 37 </summary> 38 <param name="b"></param> 39 </member> 40 <member name="P:IndianHealthService.BMXNet.DServerInfo.MServerAddress"> 41 <summary> 42 Gets/sets the internet address of the RPMS Server 43 </summary> 44 </member> 45 <member name="P:IndianHealthService.BMXNet.DServerInfo.MServerNamespace"> 46 <summary> 47 Gets/sets the namespace of the RPMS Server 48 </summary> 49 </member> 50 <member name="P:IndianHealthService.BMXNet.DServerInfo.MServerPort"> 51 <summary> 52 Gets/sets the TCP/IP Port of the RPMS Server 53 </summary> 54 </member> 55 <member name="T:IndianHealthService.BMXNet.DSelectDivision"> 56 <summary> 57 Summary description for DSelectDivision. 58 </summary> 59 </member> 60 <member name="M:IndianHealthService.BMXNet.DSelectDivision.InitializeComponent"> 61 <summary> 62 Required method for Designer support - do not modify 63 the contents of this method with the code editor. 64 </summary> 65 </member> 66 <member name="M:IndianHealthService.BMXNet.DSelectDivision.UpdateDialogData(System.Boolean)"> 67 <summary> 68 If b is true, moves member vars into control data 69 otherwise, moves control data into member vars 70 </summary> 71 <param name="b"></param> 72 </member> 73 <member name="M:IndianHealthService.BMXNet.DSelectDivision.Dispose(System.Boolean)"> 74 <summary> 75 Clean up any resources being used. 76 </summary> 77 </member> 78 <member name="T:IndianHealthService.BMXNet.BMXNetLib"> 79 <summary> 80 BMXNetLib implements low-level socket connectivity to RPMS databases. 81 The VA RPC Broker must be running on the RPMS server in order for 82 BMXNetLib to connect. 83 </summary> 84 </member> 85 <member name="M:IndianHealthService.BMXNet.BMXNetLib.#ctor"> 86 <summary> 87 Main constructor with default machine encoding 88 </summary> 89 </member> 90 <member name="M:IndianHealthService.BMXNet.BMXNetLib.#ctor(System.String)"> 91 <summary> 92 Constructor specifiying encoding 93 </summary> 94 <param name="charset">String name of character set</param> 95 </member> 96 <member name="M:IndianHealthService.BMXNet.BMXNetLib.PieceLength(System.String,System.String)"> 97 <summary> 98 Corresponds to M's $L(STRING,DELIMITER) 99 </summary> 100 <param name="sInput"></param> 101 <param name="sDelim"></param> 102 <returns></returns> 103 </member> 104 <member name="M:IndianHealthService.BMXNet.BMXNetLib.Piece(System.String,System.String,System.Int32)"> 105 <summary> 106 Corresponds to M's $$Piece function 107 </summary> 108 <param name="sInput"></param> 109 <param name="sDelim"></param> 110 <param name="nNumber"></param> 111 <returns></returns> 112 </member> 113 <member name="M:IndianHealthService.BMXNet.BMXNetLib.ADEBLDPadString(System.String)"> 114 <summary> 115 Given strInput = "13" builds "013" if nLength = 3. Default for nLength is 3. 116 </summary> 117 <param name="strInput"></param> 118 <returns></returns> 119 </member> 120 <member name="M:IndianHealthService.BMXNet.BMXNetLib.ADEBLDPadString(System.String,System.Int32)"> 121 <summary> 122 Given strInput = "13" builds "013" if nLength = 3 Default for nLength is 3. 123 </summary> 124 <param name="strInput"></param> 125 <param name="nLength">Default = 3</param> 126 <returns></returns> 127 </member> 128 <member name="M:IndianHealthService.BMXNet.BMXNetLib.ADEBLDB(System.String)"> 129 <summary> 130 Concatenates zero-padded length of sInput to sInput 131 Given "Hello" returns "004Hello" 132 If nSize = 5, returns "00004Hello" 133 Default for nSize is 3. 134 </summary> 135 <param name="sInput"></param> 136 <returns></returns> 137 </member> 138 <member name="M:IndianHealthService.BMXNet.BMXNetLib.ADEBLDB(System.String,System.Int32)"> 139 <summary> 140 Concatenates zero-padded length of sInput to sInput 141 Given "Hello" returns "004Hello" 142 If nSize = 5, returns "00004Hello" 143 Default for nSize is 3. 144 </summary> 145 <param name="sInput"></param> 146 <param name="nSize"></param> 147 <returns></returns> 148 </member> 149 <member name="M:IndianHealthService.BMXNet.BMXNetLib.ADEBHDR(System.String,System.String,System.String,System.String)"> 150 <summary> 151 Build protocol header 152 </summary> 153 <param name="sWKID"></param> 154 <param name="sWINH"></param> 155 <param name="sPRCH"></param> 156 <param name="sWISH"></param> 157 <returns></returns> 158 </member> 159 <member name="M:IndianHealthService.BMXNet.BMXNetLib.FindSubString(System.String,System.String)"> 160 <summary> 161 Returns index of first instance of sSubString in sString. 162 If sSubString not found, returns -1. 163 </summary> 164 <param name="sString"></param> 165 <param name="sSubString"></param> 166 <returns></returns> 167 </member> 168 <member name="M:IndianHealthService.BMXNet.BMXNetLib.Lock(System.String,System.String,System.String)"> 169 <summary> 170 Lock a local or global M variable 171 Returns true if lock is obtained during TimeOut seconds 172 Use + to increment, - to decrement lock. 173 </summary> 174 <param name="Variable"></param> 175 <param name="Increment"></param> 176 <param name="TimeOut"></param> 177 <returns></returns> 178 </member> 179 <member name="P:IndianHealthService.BMXNet.BMXNetLib.BMXRWL"> 180 <summary> 181 Returns a reference to the internal ReaderWriterLock member. 182 </summary> 183 </member> 184 <member name="P:IndianHealthService.BMXNet.BMXNetLib.RWLTimeout"> 185 <summary> 186 Sets and returns the timeout in milliseconds for locking the transmit port. 187 If the transmit port is unavailable an ApplicationException will be thrown. 188 </summary> 189 </member> 190 <member name="P:IndianHealthService.BMXNet.BMXNetLib.ReceiveTimeout"> 191 <summary> 192 Set and retrieve the timeout, in milliseconds, to receive a response from the RPMS server. 193 If the retrieve time exceeds the timeout, an exception will be thrown and the connection will be closed. 194 The default is 30 seconds. 195 </summary> 196 </member> 197 <member name="P:IndianHealthService.BMXNet.BMXNetLib.AppContext"> 198 <summary> 199 Gets/sets the Kernel Application context 200 Throws an exception if unable to set the context. 201 </summary> 202 </member> 203 <member name="P:IndianHealthService.BMXNet.BMXNetLib.Encoder"> 204 <summary> 205 Gets or Sets the Default Encoder to use 206 </summary> 207 </member> 208 <member name="T:IndianHealthService.BMXNet.BMXNetException"> 209 <summary> 210 Custom exception class for BMXNet 211 </summary> 212 </member> 7 213 <member name="P:IndianHealthService.BMXNet.RPMSDb.ResultSets"> 8 214 <summary> … … 15 221 </summary> 16 222 </member> 223 <member name="T:IndianHealthService.BMXNet.DLoginInfo"> 224 <summary> 225 Summary description for DLoginInfo. 226 </summary> 227 </member> 228 <member name="F:IndianHealthService.BMXNet.DLoginInfo.components"> 229 <summary> 230 Required designer variable. 231 </summary> 232 </member> 233 <member name="M:IndianHealthService.BMXNet.DLoginInfo.InitializeComponent"> 234 <summary> 235 Required method for Designer support - do not modify 236 the contents of this method with the code editor. 237 </summary> 238 </member> 239 <member name="M:IndianHealthService.BMXNet.DLoginInfo.Dispose(System.Boolean)"> 240 <summary> 241 Clean up any resources being used. 242 </summary> 243 </member> 244 <member name="M:IndianHealthService.BMXNet.DLoginInfo.UpdateDialogData(System.Boolean)"> 245 <summary> 246 If b is true, moves member vars into control data 247 otherwise, moves control data into member vars 248 </summary> 249 <param name="b"></param> 250 </member> 251 <member name="P:IndianHealthService.BMXNet.DLoginInfo.AccessCode"> 252 <summary> 253 Gets the access code entered by the user. 254 </summary> 255 </member> 256 <member name="P:IndianHealthService.BMXNet.DLoginInfo.VerifyCode"> 257 <summary> 258 Gets the verify code entered by the user. 259 </summary> 260 </member> 17 261 <member name="T:IndianHealthService.BMXNet.BMXNetConnectInfo"> 18 262 <summary> 19 263 Contains methods and properties to support RPMS Login for .NET applications 20 264 </summary> 265 </member> 266 <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.#ctor"> 267 <summary> 268 BMXNetConnector With Default Encoding (invokes BMXNetLib) 269 </summary> 270 </member> 271 <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.#ctor(System.String)"> 272 <summary> 273 BMXNetConnector with a specific encoding 274 </summary> 275 <param name="encoding">String representation of encoding (e.g. windows-1256 for arabic). 276 If encoding is not found, we fall back to the default windows encoding. A debug message 277 is printed to that effect.</param> 21 278 </member> 22 279 <member name="M:IndianHealthService.BMXNet.BMXNetConnectInfo.SubscribeEvent(System.String)"> … … 187 444 </summary> 188 445 </member> 189 <member name="T:IndianHealthService.BMXNet.DServerInfo">190 <summary>191 Prompts for RPMS Server address and port192 Obtains current values, if any, from isolated storage193 and uses them as defaults.194 If OK, then writes values to isolated storage and returns195 Address and Port as properties.196 197 </summary>198 </member>199 <member name="F:IndianHealthService.BMXNet.DServerInfo.components">200 <summary>201 Required designer variable.202 </summary>203 </member>204 <member name="M:IndianHealthService.BMXNet.DServerInfo.Dispose(System.Boolean)">205 <summary>206 Clean up any resources being used.207 </summary>208 </member>209 <member name="M:IndianHealthService.BMXNet.DServerInfo.InitializeComponent">210 <summary>211 Required method for Designer support - do not modify212 the contents of this method with the code editor.213 </summary>214 </member>215 <member name="M:IndianHealthService.BMXNet.DServerInfo.UpdateDialogData(System.Boolean)">216 <summary>217 If b is true, moves member vars into control data218 otherwise, moves control data into member vars219 </summary>220 <param name="b"></param>221 </member>222 <member name="P:IndianHealthService.BMXNet.DServerInfo.MServerAddress">223 <summary>224 Gets/sets the internet address of the RPMS Server225 </summary>226 </member>227 <member name="P:IndianHealthService.BMXNet.DServerInfo.MServerNamespace">228 <summary>229 Gets/sets the namespace of the RPMS Server230 </summary>231 </member>232 <member name="P:IndianHealthService.BMXNet.DServerInfo.MServerPort">233 <summary>234 Gets/sets the TCP/IP Port of the RPMS Server235 </summary>236 </member>237 <member name="T:IndianHealthService.BMXNet.DSelectDivision">238 <summary>239 Summary description for DSelectDivision.240 </summary>241 </member>242 <member name="M:IndianHealthService.BMXNet.DSelectDivision.InitializeComponent">243 <summary>244 Required method for Designer support - do not modify245 the contents of this method with the code editor.246 </summary>247 </member>248 <member name="M:IndianHealthService.BMXNet.DSelectDivision.UpdateDialogData(System.Boolean)">249 <summary>250 If b is true, moves member vars into control data251 otherwise, moves control data into member vars252 </summary>253 <param name="b"></param>254 </member>255 <member name="M:IndianHealthService.BMXNet.DSelectDivision.Dispose(System.Boolean)">256 <summary>257 Clean up any resources being used.258 </summary>259 </member>260 <member name="T:IndianHealthService.BMXNet.BMXNetLib">261 <summary>262 BMXNetLib implements low-level socket connectivity to RPMS databases.263 The VA RPC Broker must be running on the RPMS server in order for264 BMXNetLib to connect.265 </summary>266 </member>267 <member name="M:IndianHealthService.BMXNet.BMXNetLib.PieceLength(System.String,System.String)">268 <summary>269 Corresponds to M's $L(STRING,DELIMITER)270 </summary>271 <param name="sInput"></param>272 <param name="sDelim"></param>273 <returns></returns>274 </member>275 <member name="M:IndianHealthService.BMXNet.BMXNetLib.Piece(System.String,System.String,System.Int32)">276 <summary>277 Corresponds to M's $$Piece function278 </summary>279 <param name="sInput"></param>280 <param name="sDelim"></param>281 <param name="nNumber"></param>282 <returns></returns>283 </member>284 <member name="M:IndianHealthService.BMXNet.BMXNetLib.ADEBLDPadString(System.String)">285 <summary>286 Given strInput = "13" builds "013" if nLength = 3. Default for nLength is 3.287 </summary>288 <param name="strInput"></param>289 <returns></returns>290 </member>291 <member name="M:IndianHealthService.BMXNet.BMXNetLib.ADEBLDPadString(System.String,System.Int32)">292 <summary>293 Given strInput = "13" builds "013" if nLength = 3 Default for nLength is 3.294 </summary>295 <param name="strInput"></param>296 <param name="nLength">Default = 3</param>297 <returns></returns>298 </member>299 <member name="M:IndianHealthService.BMXNet.BMXNetLib.ADEBLDB(System.String)">300 <summary>301 Concatenates zero-padded length of sInput to sInput302 Given "Hello" returns "004Hello"303 If nSize = 5, returns "00004Hello"304 Default for nSize is 3.305 </summary>306 <param name="sInput"></param>307 <returns></returns>308 </member>309 <member name="M:IndianHealthService.BMXNet.BMXNetLib.ADEBLDB(System.String,System.Int32)">310 <summary>311 Concatenates zero-padded length of sInput to sInput312 Given "Hello" returns "004Hello"313 If nSize = 5, returns "00004Hello"314 Default for nSize is 3.315 </summary>316 <param name="sInput"></param>317 <param name="nSize"></param>318 <returns></returns>319 </member>320 <member name="M:IndianHealthService.BMXNet.BMXNetLib.ADEBHDR(System.String,System.String,System.String,System.String)">321 <summary>322 Build protocol header323 </summary>324 <param name="sWKID"></param>325 <param name="sWINH"></param>326 <param name="sPRCH"></param>327 <param name="sWISH"></param>328 <returns></returns>329 </member>330 <member name="M:IndianHealthService.BMXNet.BMXNetLib.FindSubString(System.String,System.String)">331 <summary>332 Returns index of first instance of sSubString in sString.333 If sSubString not found, returns -1.334 </summary>335 <param name="sString"></param>336 <param name="sSubString"></param>337 <returns></returns>338 </member>339 <member name="M:IndianHealthService.BMXNet.BMXNetLib.Lock(System.String,System.String,System.String)">340 <summary>341 Lock a local or global M variable342 Returns true if lock is obtained during TimeOut seconds343 Use + to increment, - to decrement lock.344 </summary>345 <param name="Variable"></param>346 <param name="Increment"></param>347 <param name="TimeOut"></param>348 <returns></returns>349 </member>350 <member name="P:IndianHealthService.BMXNet.BMXNetLib.BMXRWL">351 <summary>352 Returns a reference to the internal ReaderWriterLock member.353 </summary>354 </member>355 <member name="P:IndianHealthService.BMXNet.BMXNetLib.RWLTimeout">356 <summary>357 Sets and returns the timeout in milliseconds for locking the transmit port.358 If the transmit port is unavailable an ApplicationException will be thrown.359 </summary>360 </member>361 <member name="P:IndianHealthService.BMXNet.BMXNetLib.ReceiveTimeout">362 <summary>363 Set and retrieve the timeout, in milliseconds, to receive a response from the RPMS server.364 If the retrieve time exceeds the timeout, an exception will be thrown and the connection will be closed.365 The default is 30 seconds.366 </summary>367 </member>368 <member name="P:IndianHealthService.BMXNet.BMXNetLib.AppContext">369 <summary>370 Gets/sets the Kernel Application context371 Throws an exception if unable to set the context.372 </summary>373 </member>374 <member name="T:IndianHealthService.BMXNet.DLoginInfo">375 <summary>376 Summary description for DLoginInfo.377 </summary>378 </member>379 <member name="F:IndianHealthService.BMXNet.DLoginInfo.components">380 <summary>381 Required designer variable.382 </summary>383 </member>384 <member name="M:IndianHealthService.BMXNet.DLoginInfo.InitializeComponent">385 <summary>386 Required method for Designer support - do not modify387 the contents of this method with the code editor.388 </summary>389 </member>390 <member name="M:IndianHealthService.BMXNet.DLoginInfo.Dispose(System.Boolean)">391 <summary>392 Clean up any resources being used.393 </summary>394 </member>395 <member name="M:IndianHealthService.BMXNet.DLoginInfo.UpdateDialogData(System.Boolean)">396 <summary>397 If b is true, moves member vars into control data398 otherwise, moves control data into member vars399 </summary>400 <param name="b"></param>401 </member>402 <member name="P:IndianHealthService.BMXNet.DLoginInfo.AccessCode">403 <summary>404 Gets the access code entered by the user.405 </summary>406 </member>407 <member name="P:IndianHealthService.BMXNet.DLoginInfo.VerifyCode">408 <summary>409 Gets the verify code entered by the user.410 </summary>411 </member>412 <member name="T:IndianHealthService.BMXNet.BMXNetException">413 <summary>414 Custom exception class for BMXNet415 </summary>416 </member>417 446 </members> 418 447 </doc> -
BMXNET_RPMS_dotNET_UTILITIES-BMX/trunk/cs/bmx_0200scr/BMX2/BMXNetTest/frmBMXNetTest.cs
r818 r822 53 53 private void InitializeComponent() 54 54 { 55 this. tabControl1= new System.Windows.Forms.TabControl();55 this.mlTests = new System.Windows.Forms.TabControl(); 56 56 this.tpaQuery = new System.Windows.Forms.TabPage(); 57 57 this.panGrid = new System.Windows.Forms.Panel(); … … 135 135 this.cmdReleaseLock = new System.Windows.Forms.Button(); 136 136 this.cmdEventPollingInterval = new System.Windows.Forms.Button(); 137 this.tabControl1.SuspendLayout(); 137 this.tabPage1 = new System.Windows.Forms.TabPage(); 138 this.txtML = new System.Windows.Forms.TextBox(); 139 this.lblML = new System.Windows.Forms.Label(); 140 this.btnML = new System.Windows.Forms.Button(); 141 this.mlTests.SuspendLayout(); 138 142 this.tpaQuery.SuspendLayout(); 139 143 this.panGrid.SuspendLayout(); … … 147 151 ((System.ComponentModel.ISupportInitialize)(this.nudEventPollingInterval)).BeginInit(); 148 152 this.grpPiece.SuspendLayout(); 153 this.tabPage1.SuspendLayout(); 149 154 this.SuspendLayout(); 150 155 // 151 // tabControl1 152 // 153 this.tabControl1.Controls.Add(this.tpaQuery); 154 this.tabControl1.Controls.Add(this.tpaControls); 155 this.tabControl1.Controls.Add(this.tpaConnection); 156 this.tabControl1.Controls.Add(this.tpaOther); 157 this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill; 158 this.tabControl1.Location = new System.Drawing.Point(0, 0); 159 this.tabControl1.Name = "tabControl1"; 160 this.tabControl1.SelectedIndex = 0; 161 this.tabControl1.Size = new System.Drawing.Size(736, 566); 162 this.tabControl1.TabIndex = 0; 156 // mlTests 157 // 158 this.mlTests.Controls.Add(this.tpaQuery); 159 this.mlTests.Controls.Add(this.tpaControls); 160 this.mlTests.Controls.Add(this.tpaConnection); 161 this.mlTests.Controls.Add(this.tpaOther); 162 this.mlTests.Controls.Add(this.tabPage1); 163 this.mlTests.Dock = System.Windows.Forms.DockStyle.Fill; 164 this.mlTests.Location = new System.Drawing.Point(0, 0); 165 this.mlTests.Name = "mlTests"; 166 this.mlTests.SelectedIndex = 0; 167 this.mlTests.Size = new System.Drawing.Size(736, 566); 168 this.mlTests.TabIndex = 0; 163 169 // 164 170 // tpaQuery … … 495 501 this.tpaConnection.Location = new System.Drawing.Point(4, 22); 496 502 this.tpaConnection.Name = "tpaConnection"; 497 this.tpaConnection.Size = new System.Drawing.Size( 605, 465);503 this.tpaConnection.Size = new System.Drawing.Size(728, 540); 498 504 this.tpaConnection.TabIndex = 1; 499 505 this.tpaConnection.Text = "Connection"; … … 635 641 this.tpaOther.Location = new System.Drawing.Point(4, 22); 636 642 this.tpaOther.Name = "tpaOther"; 637 this.tpaOther.Size = new System.Drawing.Size( 605, 465);643 this.tpaOther.Size = new System.Drawing.Size(728, 540); 638 644 this.tpaOther.TabIndex = 2; 639 645 this.tpaOther.Text = "Events"; … … 947 953 this.cmdEventPollingInterval.Text = "Event Polling Interval"; 948 954 // 955 // tabPage1 956 // 957 this.tabPage1.Controls.Add(this.btnML); 958 this.tabPage1.Controls.Add(this.lblML); 959 this.tabPage1.Controls.Add(this.txtML); 960 this.tabPage1.Location = new System.Drawing.Point(4, 22); 961 this.tabPage1.Name = "tabPage1"; 962 this.tabPage1.Padding = new System.Windows.Forms.Padding(3); 963 this.tabPage1.Size = new System.Drawing.Size(728, 540); 964 this.tabPage1.TabIndex = 4; 965 this.tabPage1.Text = "Multi Lingual Tests"; 966 this.tabPage1.UseVisualStyleBackColor = true; 967 // 968 // txtML 969 // 970 this.txtML.Location = new System.Drawing.Point(177, 66); 971 this.txtML.Name = "txtML"; 972 this.txtML.Size = new System.Drawing.Size(100, 20); 973 this.txtML.TabIndex = 0; 974 // 975 // lblML 976 // 977 this.lblML.AutoSize = true; 978 this.lblML.Location = new System.Drawing.Point(51, 66); 979 this.lblML.Name = "lblML"; 980 this.lblML.Size = new System.Drawing.Size(110, 13); 981 this.lblML.TabIndex = 1; 982 this.lblML.Text = "Type Something Here"; 983 // 984 // btnML 985 // 986 this.btnML.Location = new System.Drawing.Point(132, 112); 987 this.btnML.Name = "btnML"; 988 this.btnML.Size = new System.Drawing.Size(75, 23); 989 this.btnML.TabIndex = 2; 990 this.btnML.Text = "Store Data"; 991 this.btnML.UseVisualStyleBackColor = true; 992 this.btnML.Click += new System.EventHandler(this.btnML_Click); 993 // 949 994 // frmBMXNetTest 950 995 // 951 996 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); 952 997 this.ClientSize = new System.Drawing.Size(736, 566); 953 this.Controls.Add(this. tabControl1);998 this.Controls.Add(this.mlTests); 954 999 this.Name = "frmBMXNetTest"; 955 1000 this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; 956 1001 this.Text = "BMXNet Test Application"; 957 1002 this.Load += new System.EventHandler(this.frmBMXNetTest_Load); 958 this. tabControl1.ResumeLayout(false);1003 this.mlTests.ResumeLayout(false); 959 1004 this.tpaQuery.ResumeLayout(false); 960 1005 this.panGrid.ResumeLayout(false); … … 973 1018 this.grpPiece.ResumeLayout(false); 974 1019 this.grpPiece.PerformLayout(); 1020 this.tabPage1.ResumeLayout(false); 1021 this.tabPage1.PerformLayout(); 975 1022 this.ResumeLayout(false); 976 1023 … … 998 1045 999 1046 private BMXNetConnectInfo m_ci; 1000 private System.Windows.Forms.TabControl tabControl1;1047 private System.Windows.Forms.TabControl mlTests; 1001 1048 private System.Windows.Forms.DataGrid dataGrid2; 1002 1049 private System.Windows.Forms.Button cmdCancelChanges; … … 1080 1127 private Button cmdStopLogging; 1081 1128 private Button cmdStartLogging; 1129 private TabPage tabPage1; 1130 private Button btnML; 1131 private Label lblML; 1132 private TextBox txtML; 1082 1133 BMXNetDataAdapter m_da = new BMXNetDataAdapter(); 1083 1134 … … 1926 1977 } 1927 1978 1979 private void btnML_Click(object sender, EventArgs e) 1980 { 1981 string cmd = "KBAN BMX"; 1982 string result = m_ci.bmxNetLib.TransmitRPC(cmd, txtML.Text); 1983 MessageBox.Show("What got sent and back is:" + result); 1984 } 1985 1928 1986 1929 1987
Note:
See TracChangeset
for help on using the changeset viewer.