Ignore:
Timestamp:
May 29, 2011, 2:13:37 AM (13 years ago)
Author:
Sam Habiel
Message:

All changes to support BMX4. Now works with BMX 4.
AssemblyInfo: Bumped to 1.6 (will be 1.7 pending server changes).
Removed BMXNet23.dll and added BMXNET40.dll and BMXWIN40.dll.
Actual changes to support BMX 4 in the code:
All references to DocManager.ConnectInfo.bmxNetLib substituted with CGDocumentManager.Current.RemoteSession everywhere.
All Events use RemoteSession.EventServices APIs.
All references to DUZ use RemoteSession.User APIs.
All references to BMXNetLib.Piece changed to M.Piece.
Added RPC Logging Capability courtesy of BMX4.
Extensive changes in the Main[] class CGDocumentManager:

  • Added references to IndianHealthService.BMXNet.WinForm
  • Removed references to BMXNetLib and changed to RemoteSession
  • Singleton Instance constructor now private (overdue change).
  • Use new Event Framework part of Remote Session.
  • Login code totally rewritten to use BMXWIN40.dll.
  • RPMSDataTable references changed to TableFromCommand or TableFromSQL.

DAL:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Scheduling/branches/BMX4Support/CGAVView.cs

    r1117 r1194  
    654654//                              sSql = "BSDX RAISE EVENT^" + sEvent + "^" + sParams + "^^";
    655655//                              DataTable dtAppt =m_DocManager.RPMSDataTable(sSql, "RaiseEvent");
    656                                 this.m_DocManager.ConnectInfo.RaiseEvent(sEvent, sParams, true);
     656                                CGDocumentManager.Current.RemoteSession.EventServices.TriggerEvent(sEvent, sParams, true);
    657657                        }
    658658                        catch (Exception ex)
     
    809809                {
    810810                        calendarGrid1.CGToolTip.Active = false;
    811                         string sMsg = " this access block?";
     811                        string sMsg;
    812812                        if (calendarGrid1.SelectedAppointments.AppointmentTable.Count > 1)
    813813                                sMsg = " these access blocks?";
     
    859859                        try
    860860                        {
    861                                 bool bLock = DocManager.ConnectInfo.bmxNetLib.Lock("^BSDXMGR", "+");
     861                                bool bLock = CGDocumentManager.Current.RemoteSession.Lock("^BSDXMGR", "+");
    862862                                if (bLock == false)
    863863                                {
     
    872872                                        return;
    873873                                }
    874                                 bLock = DocManager.ConnectInfo.bmxNetLib.Lock("^BSDXMGR", "-");
     874                bLock = CGDocumentManager.Current.RemoteSession.Lock("^BSDXMGR", "-");
    875875                        }
    876876                        catch (Exception ex)
     
    947947                {
    948948                        this.calendarGrid1.CloseGrid();
    949                         DocManager.ConnectInfo.bmxNetLib.Lock("^BSDXRES(" + Document.ResourceID.ToString() + ")", "-");
     949            CGDocumentManager.Current.RemoteSession.Lock("^BSDXRES(" + Document.ResourceID.ToString() + ")", "-");
    950950                }
    951951
Note: See TracChangeset for help on using the changeset viewer.