Changeset 1453 for Scheduling/branches/BMX4Support/CGView.cs
- Timestamp:
- Jun 21, 2012, 6:15:08 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/branches/BMX4Support/CGView.cs
r1194 r1453 1564 1564 private bool IsThisARadiologyResource(string sResource) 1565 1565 { 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 1566 1571 // see if resource is mapped to a Radiology Hospital Location. 1567 1572 return ( //select all Hospital Locations which are radiology locations … … 1570 1575 //join this to the resources table using the foreign ID (plain jane relational join) 1571 1576 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") 1573 1579 //then filter this down to the resource that we have 1574 1580 where res.Field<string>("RESOURCE_NAME") == sResource
Note:
See TracChangeset
for help on using the changeset viewer.