Ignore:
Timestamp:
Mar 29, 2011, 5:38:18 AM (13 years ago)
Author:
Sam Habiel
Message:

CGAVDocument: Don't Update Grid. Leave that to CGAVView.
CGAVView: When updating grid, make a copy of appointments, and use the copy, so there won't be clashes when updating appointments in the background.
CGDocument: Minor Changes in AppointmentNoShow; New method AppointmentUndoCheckIn
CGDocumentManager: Resequenced load order b/c UserPreferences now talks to DB.
DAL: New Methods to save autoprint preferences; new delegate to enable some async stuff
DCheckIn & DAppointPage: _myCodeIsFiringIstheCheckBoxChangedEvent added to protect against firing event when setting checkbox in the code.
DPatientLetter: No changes.
UserPreferences: Now gets and saves user preferences from DB.

File:
1 edited

Legend:

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

    r1112 r1117  
    354354            threadSplash.Start(m_ds); // pass form as parameter.
    355355
    356             //There are 19 steps to load the application. That's max for the progress bar.
    357             setMaxProgressDelegate(19);
     356            //There are 21 steps to load the application. That's max for the progress bar.
     357            setMaxProgressDelegate(21);
    358358           
    359359            // smh--not used: System.Configuration.ConfigurationManager.GetSection("appSettings");
     
    472472            }
    473473           
    474             //User Preferences Object
    475             _current.UserPreferences = new UserPreferences();
     474           
    476475
    477476            //User Interface Culture (m_CultureName is set from the command line flag /culture)
     
    536535                        setStatusDelegate("Setting Application Context to BSDXRPC...");
    537536                        m_ConnectInfo.AppContext = "BSDXRPC";
    538        
    539                         //Load global recordsets
     537
     538            //User Preferences Object
     539            setProgressDelegate(4); //next number is 6 b/c two calls
     540            setStatusDelegate("Getting User Preferences from the Server...");
     541
     542            _current.UserPreferences = new UserPreferences(); // Does the calling to do that...
     543           
     544            //Load global recordsets
    540545            string statusConst = "Loading VistA data tables...";
    541546                        setStatusDelegate(statusConst);
     
    545550            //Schedule User Info
    546551            // Table #4
    547             setProgressDelegate(4);
     552            setProgressDelegate(6);
    548553            setStatusDelegate(statusConst + " Schedule User");
    549554            DataTable dtUser = _dal.GetUserInfo(m_ConnectInfo.DUZ);
     
    560565            //Get Access Types
    561566            // Table #5
    562             setProgressDelegate(5);
     567            setProgressDelegate(7);
    563568            setStatusDelegate(statusConst + " Access Types");
    564569            DataTable dtAccessTypes = _dal.GetAccessTypes();
     
    568573            //Get Access Groups
    569574            // Table #6
    570             setProgressDelegate(6);
     575            setProgressDelegate(8);
    571576            setStatusDelegate(statusConst + " Access Groups");
    572577            LoadAccessGroupsTable();
     
    583588            // But they are heavily referenced throughout the code.
    584589            // Table #7
    585             setProgressDelegate(7);
     590            setProgressDelegate(9);
    586591            setStatusDelegate(statusConst + " Access Group Types");
    587592            LoadAccessGroupTypesTable();
     
    603608            // Table #8
    604609            // What shows up on the tree. The groups the user has access to.
    605             setProgressDelegate(8);
     610            setProgressDelegate(10);
    606611            setStatusDelegate(statusConst + " Resource Groups By User");
    607612            LoadResourceGroupTable();
     
    610615            // Table #9
    611616            // Individual Resources
    612             setProgressDelegate(9);
     617            setProgressDelegate(11);
    613618            setStatusDelegate(statusConst + " Resources By User");
    614619            LoadBSDXResourcesTable();
     
    622627            // Table #10
    623628            // Resource Groups and Indivdual Resources together
    624             setProgressDelegate(10);
     629            setProgressDelegate(12);
    625630            setStatusDelegate(statusConst + " Group Resources");
    626631            LoadGroupResourcesTable();
     
    640645            //HospitalLocation table
    641646            //Table #11
    642             setProgressDelegate(11);
     647            setProgressDelegate(13);
    643648            setStatusDelegate(statusConst + " Clinics");
    644649            //cmd.CommandText = "SELECT BMXIEN 'HOSPITAL_LOCATION_ID', NAME 'HOSPITAL_LOCATION', DEFAULT_PROVIDER, STOP_CODE_NUMBER, INACTIVATE_DATE, REACTIVATE_DATE FROM HOSPITAL_LOCATION";
     
    661666            //Build ScheduleUser table
    662667            //Table #12
    663             setProgressDelegate(12);
     668            setProgressDelegate(14);
    664669            setStatusDelegate(statusConst + " Schedule User");
    665670            this.LoadScheduleUserTable();
     
    674679            //Table #13
    675680            //Acess to Resources by [this] User
    676             setProgressDelegate(13);
     681            setProgressDelegate(15);
    677682            setStatusDelegate(statusConst + " Resource User");
    678683            this.LoadResourceUserTable();
     
    693698            //Table #14
    694699            //TODO: Lazy load the provider table; no need to load in advance.
    695             setProgressDelegate(14);
     700            setProgressDelegate(16);
    696701            setStatusDelegate(statusConst + " Providers");
    697702            sCommandText = "SELECT BMXIEN, NAME FROM NEW_PERSON WHERE INACTIVE_DATE = '' AND BMXIEN > 1";
     
    701706            //Build the HOLIDAY table
    702707            //Table #15
    703             setProgressDelegate(15);
     708            setProgressDelegate(17);
    704709            setStatusDelegate(statusConst + " Holiday");
    705710            sCommandText = "SELECT NAME, DATE FROM HOLIDAY WHERE INTERNAL[DATE] > '" + FMDateTime.Create(DateTime.Today).DateOnly.FMDateString + "'";
     
    721726            setStatusDelegate("Subscribing to Server Events");
    722727            //Table #16
    723             setProgressDelegate(16);
     728            setProgressDelegate(18);
    724729            _current.m_ConnectInfo.SubscribeEvent("BSDX SCHEDULE");
    725730                        //Table #17
    726             setProgressDelegate(17);
     731            setProgressDelegate(19);
    727732            _current.m_ConnectInfo.SubscribeEvent("BSDX CALL WORKSTATIONS");
    728733                        //Table #18
    729             setProgressDelegate(18);
     734            setProgressDelegate(20);
    730735            _current.m_ConnectInfo.SubscribeEvent("BSDX ADMIN MESSAGE");
    731736                        //Table #19
    732             setProgressDelegate(19);
     737            setProgressDelegate(21);
    733738            _current.m_ConnectInfo.SubscribeEvent("BSDX ADMIN SHUTDOWN");
    734739
Note: See TracChangeset for help on using the changeset viewer.