- Timestamp:
- Jul 6, 2010, 8:18:14 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocumentManager.cs
r821 r824 24 24 private bool m_bExitOK = true; 25 25 public string m_sHandle = "0"; 26 27 //Connection variables 26 28 private string m_AccessCode=""; 27 29 private string m_VerifyCode=""; 28 30 private string m_Server=""; 29 31 private int m_Port=0; 32 33 //Encoding string (empty by default) 34 private string m_Encoding=""; 30 35 31 36 //M Connection member variables … … 37 42 #endregion 38 43 44 /// <summary> 45 /// Constructor. Sets up connector, and ties BMXNet Events to function here. 46 /// </summary> 39 47 public CGDocumentManager() 40 48 { 41 49 InitializeComponent(); 42 m_ConnectInfo = new BMXNetConnectInfo();43 //m_ConnectInfo.bmxNetLib.StartLog(); //This line turns on logging of messages44 50 m_bSchedManager = false; 45 CDocMgrEventDelegate = new BMXNetConnectInfo.BMXNetEventDelegate(CDocMgrEventHandler);46 m_ConnectInfo.BMXNetEvent += CDocMgrEventDelegate;47 m_ConnectInfo.EventPollingEnabled = false;48 51 } 49 52 … … 227 230 private void InitializeApp(bool bReLogin) 228 231 { 232 m_ConnectInfo = new BMXNetConnectInfo(m_Encoding); // Encoding is "" unless passed in command line 233 //m_ConnectInfo.bmxNetLib.StartLog(); //This line turns on logging of messages 234 CDocMgrEventDelegate = new BMXNetConnectInfo.BMXNetEventDelegate(CDocMgrEventHandler); 235 m_ConnectInfo.BMXNetEvent += CDocMgrEventDelegate; 236 m_ConnectInfo.EventPollingEnabled = false; 237 229 238 try 230 239 { … … 393 402 { "p=", p => _current.m_Port = int.Parse(p) }, 394 403 { "a=", a => _current.m_AccessCode = a }, 395 { "v=", v => _current.m_VerifyCode = v } 404 { "v=", v => _current.m_VerifyCode = v }, 405 { "e=", e => _current.m_Encoding = e} 396 406 }; 397 407 … … 648 658 649 659 //Build active provider table 650 sCommandText = "SELECT BMXIEN, NAME FROM NEW_PERSON WHERE INACTIVE_DATE = '' ";660 sCommandText = "SELECT BMXIEN, NAME FROM NEW_PERSON WHERE INACTIVE_DATE = '' AND BMXIEN > 1"; 651 661 ConnectInfo.RPMSDataTable(sCommandText, "Provider", m_dsGlobal); 652 662 Debug.Write("LoadGlobalRecordsets -- Provider loaded\n"); … … 1039 1049 DataTable dtOut; 1040 1050 RPMSDataTableDelegate rdtd = new RPMSDataTableDelegate(ConnectInfo.RPMSDataTable); 1041 dtOut = (DataTable) this.Invoke(rdtd, new object[] {sSQL, sTableName}); 1051 //dtOut = (DataTable) this.Invoke(rdtd, new object[] {sSQL, sTableName}); 1052 dtOut = ConnectInfo.RPMSDataTable(sSQL, sTableName); 1042 1053 return dtOut; 1043 1054 }
Note:
See TracChangeset
for help on using the changeset viewer.