Exemplo n.º 1
0
        public bool PrepareMainStreetSectionsMaintenanceDecisions(int mainStID, string user, bool wholeNetwork)
        {
            bool      result = true;
            DataTable dt;

            if (wholeNetwork)
            {
                dt = distSurvey.GetRegionsAndMainStreetSectionIntersections(0, "", "", "", false, false, false, false, mainStID, true, false);
            }
            else
            {
                dt = distSurvey.GetLastSurveyForRoadsNetwork(0, "", "", "", false, false, false, false, mainStID, true, false);
            }

            foreach (DataRow dr in dt.Rows)
            {
                result &= PrepareMainStreetSectionsMaintenanceDecisions(mainStID, int.Parse(dr["SURVEY_NO"].ToString()), user);
            }

            return(result);
        }
Exemplo n.º 2
0
        public bool CalculateRegionSecondaryStreetsUDI(int regionID, string user, bool wholeNetwork)
        {
            bool      result = true;
            DataTable dt;

            if (wholeNetwork)
            {
                dt = distSurvey.GetRegionsAndMainStreetSectionIntersections(regionID, "", "", "", true, false, false, false, 0, false, false);
            }
            else
            {
                dt = distSurvey.GetLastSurveyForRoadsNetwork(regionID, "", "", "", true, false, false, false, 0, false, false);
            }

            foreach (DataRow dr in dt.Rows)
            {
                result &= CalculateRegionSecondaryStreetsUDI(regionID, int.Parse(dr["SURVEY_NO"].ToString()), user);
            }

            return(result);
        }