Ignore:
Timestamp:
Jun 18, 2010, 7:06:14 PM (14 years ago)
Author:
Sam Habiel
Message:

DCheckIn.cs: Handling of providers for hospital locations (HL). If provider(s) assigned to HL linked to resource, they are brought over and if a default one is in VISTA, it's picked as the default in the combobox. If no default, combobox defaults to <None>. If resource not linked to HL, then all providers in system brought over, and combobox default is <None>.
CGDocumentManager.cs: Remove loading of ClinicSetupParameters file. File doesn't exist in VISTA.
DResource.cs: Remove handling of same file.

File:
1 edited

Legend:

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

    r794 r802  
    442442
    443443        //TODO:REMOVE THIS
    444                 public void LoadClinicSetupTable()
     444                /*public void LoadClinicSetupTable()
    445445                {
    446446                        string sCommandText = "BSDX CLINIC SETUP";
    447447                        ConnectInfo.RPMSDataTable(sCommandText, "ClinicSetupParameters", m_dsGlobal);
    448448                        Debug.Write("LoadGlobalRecordsets -- ClinicSetupParameters loaded\n");
    449                 }
     449                }*/
    450450
    451451                public void LoadBSDXResourcesTable()
     
    590590                        m_dsGlobal.Tables["HospitalLocation"].PrimaryKey = dc;
    591591
    592                         LoadClinicSetupTable();
    593 
     592            //smh
     593                        //LoadClinicSetupTable();
     594
     595            //smh
    594596                        //Build Primary Key for ClinicSetupParameters table
    595                         dc = new DataColumn[1];
     597                        /*dc = new DataColumn[1];
    596598                        dtTemp = m_dsGlobal.Tables["ClinicSetupParameters"];
    597599                        dc[0] = dtTemp.Columns["HOSPITAL_LOCATION_ID"];
     
    602604                                m_dsGlobal.Tables["HospitalLocation"].Columns["HOSPITAL_LOCATION_ID"],  //Parent
    603605                                m_dsGlobal.Tables["ClinicSetupParameters"].Columns["HOSPITAL_LOCATION_ID"], false);     //Child
    604                         m_dsGlobal.Relations.Add(dr);
    605 
     606                        m_dsGlobal.Relations.Add(dr);*/
     607            /*SMH
    606608                        dtTemp.Columns.Add("PROVIDER", System.Type.GetType("System.String"), "Parent.DEFAULT_PROVIDER");
    607609                        dtTemp.Columns.Add("CLINIC_STOP", System.Type.GetType("System.String"), "Parent.STOP_CODE_NUMBER");
    608610                        dtTemp.Columns.Add("INACTIVATE_DATE", System.Type.GetType("System.String"), "Parent.INACTIVATE_DATE");
    609611                        dtTemp.Columns.Add("REACTIVATE_DATE", System.Type.GetType("System.String"), "Parent.REACTIVATE_DATE");
     612            */
    610613
    611614                        //Build Data Relationships between Resources and HospitalLocation tables
     
    655658            Debug.Write("LoadingGlobalRecordsets -- Holidays loaded\n");
    656659
    657             sCommandText = @"SELECT HOSPITAL_LOCATION.BMXIEN 'BMXIEN', HOSPITAL_LOCATION.PROVIDER.PROVIDER 'PROVIDER', HOSPITAL_LOCATION.PROVIDER.DEFAULT_PROVIDER 'DEFAULT' FROM HOSPITAL_LOCATION";
    658             ConnectInfo.RPMSDataTable(sCommandText, "ClinicProviders", m_dsGlobal);
    659             Debug.Write("LoadingGlobalRecordsets -- ClinicProviders loaded\n");
    660660
    661661                        //Save the xml schema
Note: See TracChangeset for help on using the changeset viewer.