public bool CheckStationGrp(string dataPoint, string currentGrpLocation)
        {
            bool bConfigured = true;

            if (currentGrpLocation.ToUpper() != DAOHelper.OCC_LOCATIONNAME)
            {
                if (dataPoint.Contains(".Value"))
                {
                    dataPoint = dataPoint.Remove(dataPoint.Length - 6);
                }
                EntityDAO entityDAO    = new EntityDAO();
                double    locationkey  = entityDAO.GetLocationKeyByEtyName(dataPoint);
                string    locationName = entityDAO.GetLocationNameFromKey(locationkey);
                if (locationName.ToUpper() != currentGrpLocation.ToUpper())
                {
                    bConfigured = false;
                }
            }
            return(bConfigured);
        }
예제 #2
0
 public void TestGetLocationNameFromKey()
 {
     entityDAO.GetLocationNameFromKey(0);
 }