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/DManagement.cs

    r1075 r1194  
    140140                        this.m_dsGlobal = m_DocManager.GlobalDataSet;
    141141
    142                         MgrEventDelegate = new BMXNetConnectInfo.BMXNetEventDelegate(MgrEventHandler);
    143                         m_DocManager.ConnectInfo.BMXNetEvent += MgrEventDelegate;
    144                         m_DocManager.ConnectInfo.SubscribeEvent("BSDX WORKSTATION REPORT");
     142            m_DocManager.RemoteSession.EventServices.RpmsEvent += MgrEventHandler;
     143                        m_DocManager.RemoteSession.EventServices.Subscribe("BSDX WORKSTATION REPORT");
    145144                        m_dtWSGrid = new DataTable("WSGrid");
    146145                        m_dtWSGrid.Columns.Add("UserName", typeof(System.String));
     
    18991898            m_dsGlobal.Tables["AccessTypes"].Clear();
    19001899            m_dsGlobal.Tables["AccessGroupType"].Clear();
    1901             DataTable dt1 = m_DocManager.DAL.GetAccessTypes();
    1902             m_dsGlobal.Tables["AccessTypes"].Merge(dt1);
    1903             m_dsGlobal.Tables.Add(dt1);
     1900            //PORT TODO: This may fail.
     1901            DataTable dt1 = m_DocManager.DAL.GetAccessTypes(m_dsGlobal, "AccessTypes");
     1902            //m_dsGlobal.Tables["AccessTypes"].Merge(dt1); //smh -commented out for BMX4
     1903            //m_dsGlobal.Tables.Add(dt1);                  //smh -commented out for BMX4
    19041904            //Fix Groups
    19051905            //m_DocManager.LoadAccessTypesTable();
     
    23292329                {
    23302330                        this.m_dtWSGrid.Clear();
    2331                         this.m_DocManager.ConnectInfo.RaiseEvent("BSDX CALL WORKSTATIONS", "A", true);
    2332                 }
    2333 
    2334                 private BMXNetConnectInfo.BMXNetEventDelegate   MgrEventDelegate;
     2331                        this.m_DocManager.RemoteSession.EventServices.TriggerEvent("BSDX CALL WORKSTATIONS", "A", true);
     2332                }
     2333
    23352334                delegate void UpdateWorkstationGridDelegate(string sParam);
    23362335
    2337                 private void MgrEventHandler(Object obj, BMXNet.BMXNetEventArgs e)
     2336                private void MgrEventHandler(Object obj, RemoteEventArgs e)
    23382337                {
    23392338                        try
    23402339                        {
    2341                                 if (e.BMXEvent == "BSDX WORKSTATION REPORT")
     2340                                if (e.EventType == "BSDX WORKSTATION REPORT")
    23422341                                {
    23432342                                        Debug.Write("DManagement Got Workstation Report\n");
     
    23452344                    if (this.InvokeRequired == true) //ensures that handle is created
    23462345                    {
    2347                         this.Invoke(uWSGd, new object[] { e.BMXParam });
     2346                        this.Invoke(uWSGd, new object[] { e.Details });
    23482347                    }
    23492348                    else
    23502349                    {
    2351                         UpdateWorkstationGrid(e.BMXParam);
     2350                        UpdateWorkstationGrid(e.Details);
    23522351                    }
    23532352                                }
     
    23632362                        string sDelim = "~";
    23642363                        DataRow dr = this.m_dtWSGrid.NewRow();
    2365                         dr["UserName"] = BMXNetLib.Piece(sParam,sDelim,1);
    2366                         dr["Handle"] = BMXNetLib.Piece(sParam,sDelim,2);
    2367                         dr["Version"] = BMXNetLib.Piece(sParam,sDelim,3);               
    2368                         dr["Views"] = BMXNetLib.Piece(sParam,sDelim,4);
     2364                        dr["UserName"] = M.Piece(sParam,sDelim,1);
     2365                        dr["Handle"] = M.Piece(sParam,sDelim,2);
     2366                        dr["Version"] = M.Piece(sParam,sDelim,3);               
     2367                        dr["Views"] = M.Piece(sParam,sDelim,4);
    23692368                        m_dtWSGrid.Rows.Add(dr);
    23702369                }
     
    23722371                private void DManagement_Closing(object sender, System.ComponentModel.CancelEventArgs e)
    23732372                {
    2374                         m_DocManager.ConnectInfo.UnSubscribeEvent("BSDX WORKSTATION REPORT");
     2373                        CGDocumentManager.Current.RemoteSession.EventServices.Unsubscribe("BSDX WORKSTATION REPORT");
    23752374                }
    23762375
     
    23892388                                return;
    23902389
    2391                         this.m_DocManager.ConnectInfo.RaiseEvent("BSDX ADMIN MESSAGE", sMessage, false);
     2390            this.m_DocManager.RemoteSession.EventServices.TriggerEvent("BSDX ADMIN MESSAGE", sMessage, false);
    23922391                }
    23932392
     
    23982397                                return;
    23992398                        }
    2400                         this.m_DocManager.ConnectInfo.RaiseEvent("BSDX ADMIN SHUTDOWN", txtSendMessage.Text, false);
     2399            this.m_DocManager.RemoteSession.EventServices.TriggerEvent("BSDX ADMIN SHUTDOWN", txtSendMessage.Text, false);
    24012400        }
    24022401        #endregion Workstations
Note: See TracChangeset for help on using the changeset viewer.