Ignore:
Timestamp:
May 21, 2010, 9:03:45 PM (14 years ago)
Author:
Sam Habiel
Message:

Removal of Crystal Reports
Partial Rework of Clinic Patient List report
Other reports that used Crystal don't work yet.
Fixes for Strongly typed DataTables (change the RESOURCEID from uint to int) to support table merge from untyped table.
Support for command line arguments: /s= for server /p= for port /a= for access code /v= for verify code
Only the following combinations work: none; /s and /p; /s, /p, /a, /v

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocumentManager.cs

    r627 r772  
    1111using IndianHealthService.BMXNet;
    1212using System.Configuration;
     13using Mono.Options;
    1314
    1415namespace IndianHealthService.ClinicalScheduling
     
    2829                private bool                                            m_bExitOK = true;
    2930        public string                       m_sHandle = "0";
     31        private string                      m_AccessCode="";
     32        private string                      m_VerifyCode="";
     33        private string                      m_Server="";
     34        private int                         m_Port=0;
    3035
    3136                //M Connection member variables
     
    251256                                                else
    252257                                                {
    253                                                         //Use autologin
    254                                                         _current.m_ConnectInfo.LoadConnectInfo();
    255                                                 }
     258                            if (m_Server != String.Empty && m_Port != 0 && m_AccessCode != String.Empty
     259                                && m_VerifyCode != String.Empty)
     260                                m_ConnectInfo.LoadConnectInfo(m_Server, m_Port, m_AccessCode, m_VerifyCode);
     261
     262                            else if (m_Server != String.Empty && m_Port != 0)
     263                                m_ConnectInfo.LoadConnectInfo(m_Server, m_Port);
     264
     265                            else
     266                                                            m_ConnectInfo.LoadConnectInfo();
     267                        }
    256268                                                bRetry = false;
    257269                                        }
     
    292304
    293305                                //Set application context
    294                                 m_ds.SetStatus("Setting Application Context...");
     306                                m_ds.SetStatus("Setting Application Context to BSDXRPC...");
    295307                m_ds.Refresh();
    296308                                m_ConnectInfo.AppContext = "BSDXRPC";
     
    335347                }
    336348
    337                 [STAThread()] static void Main()
     349                [STAThread()] static void Main(string[] args)
    338350                {
    339351            try
    340             {
    341                 //Store the current manager
     352            {   
     353                 //Store the current manager
    342354                _current = new CGDocumentManager();
    343 
     355               
     356                var opset = new OptionSet () {
     357                    { "s=", s => _current.m_Server = s },
     358                    { "p=", p => _current.m_Port = int.Parse(p) },
     359                    { "a=", a => _current.m_AccessCode = a },
     360                    { "v=", v => _current.m_VerifyCode = v }
     361                };
     362
     363                opset.Parse(args);
     364               
    344365                try
    345366                {
Note: See TracChangeset for help on using the changeset viewer.