Changeset 1453


Ignore:
Timestamp:
Jun 21, 2012, 6:15:08 PM (12 years ago)
Author:
Sam Habiel
Message:

CGView.cs: modified IsThisARadiologyResource to handle the possibility of Unlinked Resources (not linked to PIMS).

Location:
Scheduling/branches/BMX4Support
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • Scheduling/branches/BMX4Support/CGView.cs

    r1194 r1453  
    15641564        private bool IsThisARadiologyResource(string sResource)
    15651565        {
     1566            //smh - change in v 1.7... if the resource is not linked to a PIMS clinic, this method fails.
     1567            //This happens if there is just one resource that is not linked, which makes it impossible to
     1568            //make any appointments, because this method gets called at any time a menu is opened.
     1569            //So we change res.Field<int> to res.Field<int?>
     1570           
    15661571            // see if resource is mapped to a Radiology Hospital Location.
    15671572            return (   //select all Hospital Locations which are radiology locations
     
    15701575                       //join this to the resources table using the foreign ID (plain jane relational join)
    15711576                       join res in CGDocumentManager.Current.GlobalDataSet.Tables["Resources"].AsEnumerable()
    1572                        on hl.Field<int>("HOSPITAL_LOCATION_ID") equals res.Field<int>("HOSPITAL_LOCATION_ID")
     1577                       //on hl.Field<int>("HOSPITAL_LOCATION_ID") equals res.Field<int>("HOSPITAL_LOCATION_ID") //change in 1.7
     1578                       on hl.Field<int>("HOSPITAL_LOCATION_ID") equals res.Field<int?>("HOSPITAL_LOCATION_ID")
    15731579                       //then filter this down to the resource that we have
    15741580                       where res.Field<string>("RESOURCE_NAME") == sResource
  • Scheduling/branches/BMX4Support/ClinicalScheduling.csproj

    r1194 r1453  
    489489  </ItemGroup>
    490490  <ItemGroup>
    491     <ProjectReference Include="..\BMX4\IHS BMX Framework\IndianHealthService.BMXNet.WinForm\IndianHealthService.BMXNet.WinForm.csproj">
     491    <ProjectReference Include="..\BMX4\IndianHealthService.BMXNet.WinForm\IndianHealthService.BMXNet.WinForm.csproj">
    492492      <Project>{3B9011B5-59F4-4F6B-ADC7-54ADC6948F4D}</Project>
    493493      <Name>IndianHealthService.BMXNet.WinForm</Name>
    494494    </ProjectReference>
    495     <ProjectReference Include="..\BMX4\IHS BMX Framework\IndianHealthService.BMXNet\IndianHealthService.BMXNet.csproj">
     495    <ProjectReference Include="..\BMX4\IndianHealthService.BMXNet\IndianHealthService.BMXNet.csproj">
    496496      <Project>{DE8E4CC9-4F3A-4E32-8DFE-EE5692E8FC45}</Project>
    497497      <Name>IndianHealthService.BMXNet</Name>
  • Scheduling/branches/BMX4Support/ClinicalScheduling.csproj.user

    r1197 r1453  
    3737    </RemoteDebugMachine>
    3838    <StartAction>Project</StartAction>
    39     <StartArguments>
    40     </StartArguments>
     39    <StartArguments>/s=10.0.1.3 /p=9431 /a=shabiel12 /v=catdog.22</StartArguments>
    4140    <StartPage>
    4241    </StartPage>
  • Scheduling/branches/BMX4Support/ClinicalScheduling.sln

    r1194 r1453  
    33Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClinicalScheduling", "ClinicalScheduling.csproj", "{8C05C4F7-FE81-479F-87A0-44E04C7F6E0F}"
    44EndProject
    5 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IndianHealthService.BMXNet", "..\BMX4\IHS BMX Framework\IndianHealthService.BMXNet\IndianHealthService.BMXNet.csproj", "{DE8E4CC9-4F3A-4E32-8DFE-EE5692E8FC45}"
     5Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IndianHealthService.BMXNet", "..\BMX4\IndianHealthService.BMXNet\IndianHealthService.BMXNet.csproj", "{DE8E4CC9-4F3A-4E32-8DFE-EE5692E8FC45}"
    66EndProject
    7 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IndianHealthService.BMXNet.WinForm", "..\BMX4\IHS BMX Framework\IndianHealthService.BMXNet.WinForm\IndianHealthService.BMXNet.WinForm.csproj", "{3B9011B5-59F4-4F6B-ADC7-54ADC6948F4D}"
     7Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IndianHealthService.BMXNet.WinForm", "..\BMX4\IndianHealthService.BMXNet.WinForm\IndianHealthService.BMXNet.WinForm.csproj", "{3B9011B5-59F4-4F6B-ADC7-54ADC6948F4D}"
    88EndProject
    99Global
Note: See TracChangeset for help on using the changeset viewer.