- Timestamp:
- Jan 9, 2011, 7:13:00 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocumentManager.cs
r1051 r1062 293 293 threadSplash.Start(m_ds); // pass form as parameter. 294 294 295 //There are 20steps to load the application. That's max for the progress bar.296 setMaxProgressDelegate( 20);295 //There are 19 steps to load the application. That's max for the progress bar. 296 setMaxProgressDelegate(19); 297 297 298 298 // smh--not used: System.Configuration.ConfigurationManager.GetSection("appSettings"); … … 300 300 setStatusDelegate("Connecting to VISTA"); 301 301 302 bool bRetry = true;303 304 302 //Try to connect using supplied values for Server and Port 305 303 //Why am I doing this? The library BMX net uses prompts for access and verify code … … 322 320 } 323 321 324 322 323 bool bRetry = true; 324 325 325 // Do block is Log-in logic 326 326 do … … 470 470 dtGroups.PrimaryKey = dcKeys; 471 471 472 //Get Access Group Types (??) 472 //Get Access Group Types (Combines Access Types and Groups) 473 //Optimization Note: Can eliminate Access type and Access Group Table 474 // But they are heavily referenced throughout the code. 473 475 // Table #7 474 476 setProgressDelegate(7); … … 491 493 //ResourceGroup Table (Resource Groups by User) 492 494 // Table #8 495 // What shows up on the tree. The groups the user has access to. 493 496 setProgressDelegate(8); 494 497 setStatusDelegate(statusConst + " Resource Groups By User"); … … 497 500 //Resources by user 498 501 // Table #9 502 // Individual Resources 499 503 setProgressDelegate(9); 500 504 setStatusDelegate(statusConst + " Resources By User"); … … 508 512 //GroupResources table 509 513 // Table #10 514 // Resource Groups and Indivdual Resources together 510 515 setProgressDelegate(10); 511 516 setStatusDelegate(statusConst + " Group Resources"); … … 559 564 //Build ResourceUser table 560 565 //Table #13 566 //Acess to Resources by [this] User 561 567 setProgressDelegate(13); 562 568 setStatusDelegate(statusConst + " Resource User"); … … 577 583 //Build active provider table 578 584 //Table #14 585 //TODO: Lazy load the provider table; no need to load in advance. 579 586 setProgressDelegate(14); 580 587 setStatusDelegate(statusConst + " Providers"); … … 583 590 Debug.Write("LoadGlobalRecordsets -- Provider loaded\n"); 584 591 585 //Build the CLINIC_STOPtable592 //Build the HOLIDAY table 586 593 //Table #15 587 594 setProgressDelegate(15); 588 setStatusDelegate(statusConst + " Clinic Stops");589 // sCommandText = "SELECT BMXIEN, CODE, NAME FROM CLINIC_STOP"; //SMH590 sCommandText = "SELECT BMXIEN, AMIS_REPORTING_STOP_CODE, NAME FROM CLINIC_STOP";591 ConnectInfo.RPMSDataTable(sCommandText, "ClinicStop", m_dsGlobal);592 Debug.Write("LoadGlobalRecordsets -- ClinicStop loaded\n");593 594 //Build the HOLIDAY table595 //Table #16596 setProgressDelegate(16);597 595 setStatusDelegate(statusConst + " Holiday"); 598 596 sCommandText = "SELECT NAME, DATE FROM HOLIDAY WHERE DATE > '" + DateTime.Today.ToShortDateString() + "'"; … … 613 611 // Event Subsriptions 614 612 setStatusDelegate("Subscribing to Server Events"); 615 //Table #17 613 //Table #16 614 setProgressDelegate(16); 615 _current.m_ConnectInfo.SubscribeEvent("BSDX SCHEDULE"); 616 //Table #17 616 617 setProgressDelegate(17); 617 _current.m_ConnectInfo.SubscribeEvent("BSDX SCHEDULE");618 _current.m_ConnectInfo.SubscribeEvent("BSDX CALL WORKSTATIONS"); 618 619 //Table #18 619 620 setProgressDelegate(18); 620 _current.m_ConnectInfo.SubscribeEvent("BSDX CALL WORKSTATIONS");621 _current.m_ConnectInfo.SubscribeEvent("BSDX ADMIN MESSAGE"); 621 622 //Table #19 622 623 setProgressDelegate(19); 623 _current.m_ConnectInfo.SubscribeEvent("BSDX ADMIN MESSAGE");624 //Table #20625 setProgressDelegate(20);626 624 _current.m_ConnectInfo.SubscribeEvent("BSDX ADMIN SHUTDOWN"); 627 625
Note:
See TracChangeset
for help on using the changeset viewer.