diff --git a/Controllers/CrossSectionController.cs b/Controllers/CrossSectionController.cs new file mode 100755 index 0000000..e30e9d1 --- /dev/null +++ b/Controllers/CrossSectionController.cs @@ -0,0 +1,167 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using Maps.Entities; + +namespace maps_core.Controllers +{ + public class CrossSectionController : Controller + { + private readonly PostgresDbContext _context; + + public CrossSectionController(PostgresDbContext context) + { + _context = context; + } + + // GET: CrossSection + public async Task Index() + { + var postgresDbContext = _context.CrossSection.Include(c => c.Region).Include(c => c.Road).Include(c => c.StateCommon).Include(c => c.SurfaceType); + return View(await postgresDbContext.ToListAsync()); + } + + // GET: CrossSection/Details/5 + public async Task Details(int? id) + { + if (id == null) + { + return NotFound(); + } + + var crossSection = await _context.CrossSection.SingleOrDefaultAsync(m => m.CrossSectionId == id); + if (crossSection == null) + { + return NotFound(); + } + + return View(crossSection); + } + + // GET: CrossSection/Create + public IActionResult Create() + { + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId"); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId"); + ViewData["StateCommonId"] = new SelectList(_context.StateCommon, "StateCommonId", "StateCommonId"); + ViewData["SurfaceTypeId"] = new SelectList(_context.SurfaceType, "SurfaceTypeId", "SurfaceTypeId"); + return View(); + } + + // POST: CrossSection/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create([Bind("CrossSectionId,Angle,Direction,DistanceEdge,LengthSection,LengthSurface,LocationLeft,LocationRight,RegionId,RoadId,SafetyAvailability,StateCommonId,SurfaceTypeId,TubeAvailability,Width,YearBuild,YearRepair")] CrossSection crossSection) + { + if (ModelState.IsValid) + { + _context.Add(crossSection); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", crossSection.RegionId); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", crossSection.RoadId); + ViewData["StateCommonId"] = new SelectList(_context.StateCommon, "StateCommonId", "StateCommonId", crossSection.StateCommonId); + ViewData["SurfaceTypeId"] = new SelectList(_context.SurfaceType, "SurfaceTypeId", "SurfaceTypeId", crossSection.SurfaceTypeId); + return View(crossSection); + } + + // GET: CrossSection/Edit/5 + public async Task Edit(int? id) + { + if (id == null) + { + return NotFound(); + } + + var crossSection = await _context.CrossSection.SingleOrDefaultAsync(m => m.CrossSectionId == id); + if (crossSection == null) + { + return NotFound(); + } + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", crossSection.RegionId); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", crossSection.RoadId); + ViewData["StateCommonId"] = new SelectList(_context.StateCommon, "StateCommonId", "StateCommonId", crossSection.StateCommonId); + ViewData["SurfaceTypeId"] = new SelectList(_context.SurfaceType, "SurfaceTypeId", "SurfaceTypeId", crossSection.SurfaceTypeId); + return View(crossSection); + } + + // POST: CrossSection/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit(int id, [Bind("CrossSectionId,Angle,Direction,DistanceEdge,LengthSection,LengthSurface,LocationLeft,LocationRight,RegionId,RoadId,SafetyAvailability,StateCommonId,SurfaceTypeId,TubeAvailability,Width,YearBuild,YearRepair")] CrossSection crossSection) + { + if (id != crossSection.CrossSectionId) + { + return NotFound(); + } + + if (ModelState.IsValid) + { + try + { + _context.Update(crossSection); + await _context.SaveChangesAsync(); + } + catch (DbUpdateConcurrencyException) + { + if (!CrossSectionExists(crossSection.CrossSectionId)) + { + return NotFound(); + } + else + { + throw; + } + } + return RedirectToAction("Index"); + } + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", crossSection.RegionId); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", crossSection.RoadId); + ViewData["StateCommonId"] = new SelectList(_context.StateCommon, "StateCommonId", "StateCommonId", crossSection.StateCommonId); + ViewData["SurfaceTypeId"] = new SelectList(_context.SurfaceType, "SurfaceTypeId", "SurfaceTypeId", crossSection.SurfaceTypeId); + return View(crossSection); + } + + // GET: CrossSection/Delete/5 + public async Task Delete(int? id) + { + if (id == null) + { + return NotFound(); + } + + var crossSection = await _context.CrossSection.SingleOrDefaultAsync(m => m.CrossSectionId == id); + if (crossSection == null) + { + return NotFound(); + } + + return View(crossSection); + } + + // POST: CrossSection/Delete/5 + [HttpPost, ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + var crossSection = await _context.CrossSection.SingleOrDefaultAsync(m => m.CrossSectionId == id); + _context.CrossSection.Remove(crossSection); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + + private bool CrossSectionExists(int id) + { + return _context.CrossSection.Any(e => e.CrossSectionId == id); + } + } +} diff --git a/Controllers/DepartmentAffiliationController.cs b/Controllers/DepartmentAffiliationController.cs new file mode 100755 index 0000000..21d4e9e --- /dev/null +++ b/Controllers/DepartmentAffiliationController.cs @@ -0,0 +1,150 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using Maps.Entities; + +namespace maps_core.Controllers +{ + public class DepartmentAffiliationController : Controller + { + private readonly PostgresDbContext _context; + + public DepartmentAffiliationController(PostgresDbContext context) + { + _context = context; + } + + // GET: DepartmentAffiliation + public async Task Index() + { + return View(await _context.DepartmentAffiliation.ToListAsync()); + } + + // GET: DepartmentAffiliation/Details/5 + public async Task Details(int? id) + { + if (id == null) + { + return NotFound(); + } + + var departmentAffiliation = await _context.DepartmentAffiliation.SingleOrDefaultAsync(m => m.DepartmentAffiliationId == id); + if (departmentAffiliation == null) + { + return NotFound(); + } + + return View(departmentAffiliation); + } + + // GET: DepartmentAffiliation/Create + public IActionResult Create() + { + return View(); + } + + // POST: DepartmentAffiliation/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create([Bind("DepartmentAffiliationId,Name")] DepartmentAffiliation departmentAffiliation) + { + if (ModelState.IsValid) + { + _context.Add(departmentAffiliation); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + return View(departmentAffiliation); + } + + // GET: DepartmentAffiliation/Edit/5 + public async Task Edit(int? id) + { + if (id == null) + { + return NotFound(); + } + + var departmentAffiliation = await _context.DepartmentAffiliation.SingleOrDefaultAsync(m => m.DepartmentAffiliationId == id); + if (departmentAffiliation == null) + { + return NotFound(); + } + return View(departmentAffiliation); + } + + // POST: DepartmentAffiliation/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit(int id, [Bind("DepartmentAffiliationId,Name")] DepartmentAffiliation departmentAffiliation) + { + if (id != departmentAffiliation.DepartmentAffiliationId) + { + return NotFound(); + } + + if (ModelState.IsValid) + { + try + { + _context.Update(departmentAffiliation); + await _context.SaveChangesAsync(); + } + catch (DbUpdateConcurrencyException) + { + if (!DepartmentAffiliationExists(departmentAffiliation.DepartmentAffiliationId)) + { + return NotFound(); + } + else + { + throw; + } + } + return RedirectToAction("Index"); + } + return View(departmentAffiliation); + } + + // GET: DepartmentAffiliation/Delete/5 + public async Task Delete(int? id) + { + if (id == null) + { + return NotFound(); + } + + var departmentAffiliation = await _context.DepartmentAffiliation.SingleOrDefaultAsync(m => m.DepartmentAffiliationId == id); + if (departmentAffiliation == null) + { + return NotFound(); + } + + return View(departmentAffiliation); + } + + // POST: DepartmentAffiliation/Delete/5 + [HttpPost, ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + var departmentAffiliation = await _context.DepartmentAffiliation.SingleOrDefaultAsync(m => m.DepartmentAffiliationId == id); + _context.DepartmentAffiliation.Remove(departmentAffiliation); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + + private bool DepartmentAffiliationExists(int id) + { + return _context.DepartmentAffiliation.Any(e => e.DepartmentAffiliationId == id); + } + } +} diff --git a/Controllers/FlowIntensityController.cs b/Controllers/FlowIntensityController.cs new file mode 100755 index 0000000..191312f --- /dev/null +++ b/Controllers/FlowIntensityController.cs @@ -0,0 +1,167 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using Maps.Entities; + +namespace maps_core.Controllers +{ + public class FlowIntensityController : Controller + { + private readonly PostgresDbContext _context; + + public FlowIntensityController(PostgresDbContext context) + { + _context = context; + } + + // GET: FlowIntensity + public async Task Index() + { + var postgresDbContext = _context.FlowIntensity.Include(f => f.Region).Include(f => f.Road).Include(f => f.RoadDirection).Include(f => f.Settlement); + return View(await postgresDbContext.ToListAsync()); + } + + // GET: FlowIntensity/Details/5 + public async Task Details(int? id) + { + if (id == null) + { + return NotFound(); + } + + var flowIntensity = await _context.FlowIntensity.SingleOrDefaultAsync(m => m.FlowIntensityId == id); + if (flowIntensity == null) + { + return NotFound(); + } + + return View(flowIntensity); + } + + // GET: FlowIntensity/Create + public IActionResult Create() + { + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId"); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId"); + ViewData["RoadDirectionId"] = new SelectList(_context.RoadDirection, "RoadDirectionId", "DirectionName"); + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name"); + return View(); + } + + // POST: FlowIntensity/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create([Bind("FlowIntensityId,Begin,DateAdd,End,IntensityBus,IntensityBusCoupled,IntensityCar,IntensityIncrease,IntensityLorryThirty,IntensityLorryTwelve,IntensityLorryTwelveTwenty,IntensityLorryTwentyThirty,IntensityMoto,IntensityMotoSidecar,IntensityTotal,IntensityTractorOverTen,IntensityTractorUnderTen,IntensityTruckEightFourteen,IntensityTruckFourteen,IntensityTruckSixEight,IntensityTruckTwo,IntensityTruckTwoSix,Location,RegionId,RoadDirectionId,RoadId,SettlementId")] FlowIntensity flowIntensity) + { + if (ModelState.IsValid) + { + _context.Add(flowIntensity); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", flowIntensity.RegionId); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", flowIntensity.RoadId); + ViewData["RoadDirectionId"] = new SelectList(_context.RoadDirection, "RoadDirectionId", "DirectionName", flowIntensity.RoadDirectionId); + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name", flowIntensity.SettlementId); + return View(flowIntensity); + } + + // GET: FlowIntensity/Edit/5 + public async Task Edit(int? id) + { + if (id == null) + { + return NotFound(); + } + + var flowIntensity = await _context.FlowIntensity.SingleOrDefaultAsync(m => m.FlowIntensityId == id); + if (flowIntensity == null) + { + return NotFound(); + } + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", flowIntensity.RegionId); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", flowIntensity.RoadId); + ViewData["RoadDirectionId"] = new SelectList(_context.RoadDirection, "RoadDirectionId", "DirectionName", flowIntensity.RoadDirectionId); + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name", flowIntensity.SettlementId); + return View(flowIntensity); + } + + // POST: FlowIntensity/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit(int id, [Bind("FlowIntensityId,Begin,DateAdd,End,IntensityBus,IntensityBusCoupled,IntensityCar,IntensityIncrease,IntensityLorryThirty,IntensityLorryTwelve,IntensityLorryTwelveTwenty,IntensityLorryTwentyThirty,IntensityMoto,IntensityMotoSidecar,IntensityTotal,IntensityTractorOverTen,IntensityTractorUnderTen,IntensityTruckEightFourteen,IntensityTruckFourteen,IntensityTruckSixEight,IntensityTruckTwo,IntensityTruckTwoSix,Location,RegionId,RoadDirectionId,RoadId,SettlementId")] FlowIntensity flowIntensity) + { + if (id != flowIntensity.FlowIntensityId) + { + return NotFound(); + } + + if (ModelState.IsValid) + { + try + { + _context.Update(flowIntensity); + await _context.SaveChangesAsync(); + } + catch (DbUpdateConcurrencyException) + { + if (!FlowIntensityExists(flowIntensity.FlowIntensityId)) + { + return NotFound(); + } + else + { + throw; + } + } + return RedirectToAction("Index"); + } + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", flowIntensity.RegionId); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", flowIntensity.RoadId); + ViewData["RoadDirectionId"] = new SelectList(_context.RoadDirection, "RoadDirectionId", "DirectionName", flowIntensity.RoadDirectionId); + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name", flowIntensity.SettlementId); + return View(flowIntensity); + } + + // GET: FlowIntensity/Delete/5 + public async Task Delete(int? id) + { + if (id == null) + { + return NotFound(); + } + + var flowIntensity = await _context.FlowIntensity.SingleOrDefaultAsync(m => m.FlowIntensityId == id); + if (flowIntensity == null) + { + return NotFound(); + } + + return View(flowIntensity); + } + + // POST: FlowIntensity/Delete/5 + [HttpPost, ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + var flowIntensity = await _context.FlowIntensity.SingleOrDefaultAsync(m => m.FlowIntensityId == id); + _context.FlowIntensity.Remove(flowIntensity); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + + private bool FlowIntensityExists(int id) + { + return _context.FlowIntensity.Any(e => e.FlowIntensityId == id); + } + } +} diff --git a/Controllers/HomeController.cs b/Controllers/HomeController.cs deleted file mode 100644 index e256f4f..0000000 --- a/Controllers/HomeController.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNetCore.Mvc; - -namespace Maps.Controllers -{ - public class HomeController : Controller - { - public IActionResult Index() - { - return View(); - } - - public IActionResult About() - { - ViewData["Message"] = "Your application description page."; - - return View(); - } - - public IActionResult Contact() - { - ViewData["Message"] = "Your contact page."; - - return View(); - } - - public IActionResult Error() - { - return View(); - } - } -} diff --git a/Controllers/OrganizationController.cs b/Controllers/OrganizationController.cs new file mode 100755 index 0000000..b98b598 --- /dev/null +++ b/Controllers/OrganizationController.cs @@ -0,0 +1,150 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using Maps.Entities; + +namespace maps_core.Controllers +{ + public class OrganizationController : Controller + { + private readonly PostgresDbContext _context; + + public OrganizationController(PostgresDbContext context) + { + _context = context; + } + + // GET: Organization + public async Task Index() + { + return View(await _context.Organization.ToListAsync()); + } + + // GET: Organization/Details/5 + public async Task Details(int? id) + { + if (id == null) + { + return NotFound(); + } + + var organization = await _context.Organization.SingleOrDefaultAsync(m => m.OrganizationId == id); + if (organization == null) + { + return NotFound(); + } + + return View(organization); + } + + // GET: Organization/Create + public IActionResult Create() + { + return View(); + } + + // POST: Organization/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create([Bind("OrganizationId,DateAdd,Name")] Organization organization) + { + if (ModelState.IsValid) + { + _context.Add(organization); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + return View(organization); + } + + // GET: Organization/Edit/5 + public async Task Edit(int? id) + { + if (id == null) + { + return NotFound(); + } + + var organization = await _context.Organization.SingleOrDefaultAsync(m => m.OrganizationId == id); + if (organization == null) + { + return NotFound(); + } + return View(organization); + } + + // POST: Organization/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit(int id, [Bind("OrganizationId,DateAdd,Name")] Organization organization) + { + if (id != organization.OrganizationId) + { + return NotFound(); + } + + if (ModelState.IsValid) + { + try + { + _context.Update(organization); + await _context.SaveChangesAsync(); + } + catch (DbUpdateConcurrencyException) + { + if (!OrganizationExists(organization.OrganizationId)) + { + return NotFound(); + } + else + { + throw; + } + } + return RedirectToAction("Index"); + } + return View(organization); + } + + // GET: Organization/Delete/5 + public async Task Delete(int? id) + { + if (id == null) + { + return NotFound(); + } + + var organization = await _context.Organization.SingleOrDefaultAsync(m => m.OrganizationId == id); + if (organization == null) + { + return NotFound(); + } + + return View(organization); + } + + // POST: Organization/Delete/5 + [HttpPost, ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + var organization = await _context.Organization.SingleOrDefaultAsync(m => m.OrganizationId == id); + _context.Organization.Remove(organization); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + + private bool OrganizationExists(int id) + { + return _context.Organization.Any(e => e.OrganizationId == id); + } + } +} diff --git a/Controllers/RegionController.cs b/Controllers/RegionController.cs new file mode 100755 index 0000000..cb736af --- /dev/null +++ b/Controllers/RegionController.cs @@ -0,0 +1,150 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using Maps.Entities; + +namespace maps_core.Controllers +{ + public class RegionController : Controller + { + private readonly PostgresDbContext _context; + + public RegionController(PostgresDbContext context) + { + _context = context; + } + + // GET: Region + public async Task Index() + { + return View(await _context.Region.ToListAsync()); + } + + // GET: Region/Details/5 + public async Task Details(int? id) + { + if (id == null) + { + return NotFound(); + } + + var region = await _context.Region.SingleOrDefaultAsync(m => m.RegionId == id); + if (region == null) + { + return NotFound(); + } + + return View(region); + } + + // GET: Region/Create + public IActionResult Create() + { + return View(); + } + + // POST: Region/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create([Bind("RegionId,Index,Name")] Region region) + { + if (ModelState.IsValid) + { + _context.Add(region); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + return View(region); + } + + // GET: Region/Edit/5 + public async Task Edit(int? id) + { + if (id == null) + { + return NotFound(); + } + + var region = await _context.Region.SingleOrDefaultAsync(m => m.RegionId == id); + if (region == null) + { + return NotFound(); + } + return View(region); + } + + // POST: Region/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit(int id, [Bind("RegionId,Index,Name")] Region region) + { + if (id != region.RegionId) + { + return NotFound(); + } + + if (ModelState.IsValid) + { + try + { + _context.Update(region); + await _context.SaveChangesAsync(); + } + catch (DbUpdateConcurrencyException) + { + if (!RegionExists(region.RegionId)) + { + return NotFound(); + } + else + { + throw; + } + } + return RedirectToAction("Index"); + } + return View(region); + } + + // GET: Region/Delete/5 + public async Task Delete(int? id) + { + if (id == null) + { + return NotFound(); + } + + var region = await _context.Region.SingleOrDefaultAsync(m => m.RegionId == id); + if (region == null) + { + return NotFound(); + } + + return View(region); + } + + // POST: Region/Delete/5 + [HttpPost, ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + var region = await _context.Region.SingleOrDefaultAsync(m => m.RegionId == id); + _context.Region.Remove(region); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + + private bool RegionExists(int id) + { + return _context.Region.Any(e => e.RegionId == id); + } + } +} diff --git a/Controllers/RoadCategoryController.cs b/Controllers/RoadCategoryController.cs new file mode 100755 index 0000000..85a2e24 --- /dev/null +++ b/Controllers/RoadCategoryController.cs @@ -0,0 +1,150 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using Maps.Entities; + +namespace maps_core.Controllers +{ + public class RoadCategoryController : Controller + { + private readonly PostgresDbContext _context; + + public RoadCategoryController(PostgresDbContext context) + { + _context = context; + } + + // GET: RoadCategory + public async Task Index() + { + return View(await _context.RoadCategory.ToListAsync()); + } + + // GET: RoadCategory/Details/5 + public async Task Details(int? id) + { + if (id == null) + { + return NotFound(); + } + + var roadCategory = await _context.RoadCategory.SingleOrDefaultAsync(m => m.RoadCategoryId == id); + if (roadCategory == null) + { + return NotFound(); + } + + return View(roadCategory); + } + + // GET: RoadCategory/Create + public IActionResult Create() + { + return View(); + } + + // POST: RoadCategory/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create([Bind("RoadCategoryId,Value")] RoadCategory roadCategory) + { + if (ModelState.IsValid) + { + _context.Add(roadCategory); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + return View(roadCategory); + } + + // GET: RoadCategory/Edit/5 + public async Task Edit(int? id) + { + if (id == null) + { + return NotFound(); + } + + var roadCategory = await _context.RoadCategory.SingleOrDefaultAsync(m => m.RoadCategoryId == id); + if (roadCategory == null) + { + return NotFound(); + } + return View(roadCategory); + } + + // POST: RoadCategory/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit(int id, [Bind("RoadCategoryId,Value")] RoadCategory roadCategory) + { + if (id != roadCategory.RoadCategoryId) + { + return NotFound(); + } + + if (ModelState.IsValid) + { + try + { + _context.Update(roadCategory); + await _context.SaveChangesAsync(); + } + catch (DbUpdateConcurrencyException) + { + if (!RoadCategoryExists(roadCategory.RoadCategoryId)) + { + return NotFound(); + } + else + { + throw; + } + } + return RedirectToAction("Index"); + } + return View(roadCategory); + } + + // GET: RoadCategory/Delete/5 + public async Task Delete(int? id) + { + if (id == null) + { + return NotFound(); + } + + var roadCategory = await _context.RoadCategory.SingleOrDefaultAsync(m => m.RoadCategoryId == id); + if (roadCategory == null) + { + return NotFound(); + } + + return View(roadCategory); + } + + // POST: RoadCategory/Delete/5 + [HttpPost, ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + var roadCategory = await _context.RoadCategory.SingleOrDefaultAsync(m => m.RoadCategoryId == id); + _context.RoadCategory.Remove(roadCategory); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + + private bool RoadCategoryExists(int id) + { + return _context.RoadCategory.Any(e => e.RoadCategoryId == id); + } + } +} diff --git a/Controllers/RoadController.cs b/Controllers/RoadController.cs new file mode 100755 index 0000000..4907f40 --- /dev/null +++ b/Controllers/RoadController.cs @@ -0,0 +1,155 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using Maps.Entities; + +namespace maps_core.Controllers +{ + public class RoadController : Controller + { + private readonly PostgresDbContext _context; + + public RoadController(PostgresDbContext context) + { + _context = context; + } + + // GET: Road + public async Task Index() + { + var postgresDbContext = _context.Road.Include(r => r.RoadType); + return View(await postgresDbContext.ToListAsync()); + } + + // GET: Road/Details/5 + public async Task Details(int? id) + { + if (id == null) + { + return NotFound(); + } + + var road = await _context.Road.SingleOrDefaultAsync(m => m.RoadId == id); + if (road == null) + { + return NotFound(); + } + + return View(road); + } + + // GET: Road/Create + public IActionResult Create() + { + ViewData["RoadTypeId"] = new SelectList(_context.RoadType, "RoadTypeId", "RoadTypeId"); + return View(); + } + + // POST: Road/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create([Bind("RoadId,AcceptTransferDoc,AcceptanceDoc,AuthorityAct,EconomicValue,HistoricalBackground,Index,LawDoc,Length,Name,RoadTypeId,Value")] Road road) + { + if (ModelState.IsValid) + { + _context.Add(road); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + ViewData["RoadTypeId"] = new SelectList(_context.RoadType, "RoadTypeId", "RoadTypeId", road.RoadTypeId); + return View(road); + } + + // GET: Road/Edit/5 + public async Task Edit(int? id) + { + if (id == null) + { + return NotFound(); + } + + var road = await _context.Road.SingleOrDefaultAsync(m => m.RoadId == id); + if (road == null) + { + return NotFound(); + } + ViewData["RoadTypeId"] = new SelectList(_context.RoadType, "RoadTypeId", "RoadTypeId", road.RoadTypeId); + return View(road); + } + + // POST: Road/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit(int id, [Bind("RoadId,AcceptTransferDoc,AcceptanceDoc,AuthorityAct,EconomicValue,HistoricalBackground,Index,LawDoc,Length,Name,RoadTypeId,Value")] Road road) + { + if (id != road.RoadId) + { + return NotFound(); + } + + if (ModelState.IsValid) + { + try + { + _context.Update(road); + await _context.SaveChangesAsync(); + } + catch (DbUpdateConcurrencyException) + { + if (!RoadExists(road.RoadId)) + { + return NotFound(); + } + else + { + throw; + } + } + return RedirectToAction("Index"); + } + ViewData["RoadTypeId"] = new SelectList(_context.RoadType, "RoadTypeId", "RoadTypeId", road.RoadTypeId); + return View(road); + } + + // GET: Road/Delete/5 + public async Task Delete(int? id) + { + if (id == null) + { + return NotFound(); + } + + var road = await _context.Road.SingleOrDefaultAsync(m => m.RoadId == id); + if (road == null) + { + return NotFound(); + } + + return View(road); + } + + // POST: Road/Delete/5 + [HttpPost, ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + var road = await _context.Road.SingleOrDefaultAsync(m => m.RoadId == id); + _context.Road.Remove(road); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + + private bool RoadExists(int id) + { + return _context.Road.Any(e => e.RoadId == id); + } + } +} diff --git a/Controllers/RoadDirectionController.cs b/Controllers/RoadDirectionController.cs new file mode 100755 index 0000000..c055fca --- /dev/null +++ b/Controllers/RoadDirectionController.cs @@ -0,0 +1,150 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using Maps.Entities; + +namespace maps_core.Controllers +{ + public class RoadDirectionController : Controller + { + private readonly PostgresDbContext _context; + + public RoadDirectionController(PostgresDbContext context) + { + _context = context; + } + + // GET: RoadDirection + public async Task Index() + { + return View(await _context.RoadDirection.ToListAsync()); + } + + // GET: RoadDirection/Details/5 + public async Task Details(int? id) + { + if (id == null) + { + return NotFound(); + } + + var roadDirection = await _context.RoadDirection.SingleOrDefaultAsync(m => m.RoadDirectionId == id); + if (roadDirection == null) + { + return NotFound(); + } + + return View(roadDirection); + } + + // GET: RoadDirection/Create + public IActionResult Create() + { + return View(); + } + + // POST: RoadDirection/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create([Bind("RoadDirectionId,DirectionName")] RoadDirection roadDirection) + { + if (ModelState.IsValid) + { + _context.Add(roadDirection); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + return View(roadDirection); + } + + // GET: RoadDirection/Edit/5 + public async Task Edit(int? id) + { + if (id == null) + { + return NotFound(); + } + + var roadDirection = await _context.RoadDirection.SingleOrDefaultAsync(m => m.RoadDirectionId == id); + if (roadDirection == null) + { + return NotFound(); + } + return View(roadDirection); + } + + // POST: RoadDirection/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit(int id, [Bind("RoadDirectionId,DirectionName")] RoadDirection roadDirection) + { + if (id != roadDirection.RoadDirectionId) + { + return NotFound(); + } + + if (ModelState.IsValid) + { + try + { + _context.Update(roadDirection); + await _context.SaveChangesAsync(); + } + catch (DbUpdateConcurrencyException) + { + if (!RoadDirectionExists(roadDirection.RoadDirectionId)) + { + return NotFound(); + } + else + { + throw; + } + } + return RedirectToAction("Index"); + } + return View(roadDirection); + } + + // GET: RoadDirection/Delete/5 + public async Task Delete(int? id) + { + if (id == null) + { + return NotFound(); + } + + var roadDirection = await _context.RoadDirection.SingleOrDefaultAsync(m => m.RoadDirectionId == id); + if (roadDirection == null) + { + return NotFound(); + } + + return View(roadDirection); + } + + // POST: RoadDirection/Delete/5 + [HttpPost, ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + var roadDirection = await _context.RoadDirection.SingleOrDefaultAsync(m => m.RoadDirectionId == id); + _context.RoadDirection.Remove(roadDirection); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + + private bool RoadDirectionExists(int id) + { + return _context.RoadDirection.Any(e => e.RoadDirectionId == id); + } + } +} diff --git a/Controllers/RoadPassportController.cs b/Controllers/RoadPassportController.cs new file mode 100755 index 0000000..470ff4e --- /dev/null +++ b/Controllers/RoadPassportController.cs @@ -0,0 +1,159 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using Maps.Entities; + +namespace maps_core.Controllers +{ + public class RoadPassportController : Controller + { + private readonly PostgresDbContext _context; + + public RoadPassportController(PostgresDbContext context) + { + _context = context; + } + + // GET: RoadPassport + public async Task Index() + { + var postgresDbContext = _context.RoadPassport.Include(r => r.Region).Include(r => r.Road); + return View(await postgresDbContext.ToListAsync()); + } + + // GET: RoadPassport/Details/5 + public async Task Details(int? id) + { + if (id == null) + { + return NotFound(); + } + + var roadPassport = await _context.RoadPassport.SingleOrDefaultAsync(m => m.RoadPassportId == id); + if (roadPassport == null) + { + return NotFound(); + } + + return View(roadPassport); + } + + // GET: RoadPassport/Create + public IActionResult Create() + { + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId"); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId"); + return View(); + } + + // POST: RoadPassport/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create([Bind("RoadPassportId,Begin,End,RegionId,RoadId")] RoadPassport roadPassport) + { + if (ModelState.IsValid) + { + _context.Add(roadPassport); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", roadPassport.RegionId); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", roadPassport.RoadId); + return View(roadPassport); + } + + // GET: RoadPassport/Edit/5 + public async Task Edit(int? id) + { + if (id == null) + { + return NotFound(); + } + + var roadPassport = await _context.RoadPassport.SingleOrDefaultAsync(m => m.RoadPassportId == id); + if (roadPassport == null) + { + return NotFound(); + } + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", roadPassport.RegionId); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", roadPassport.RoadId); + return View(roadPassport); + } + + // POST: RoadPassport/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit(int id, [Bind("RoadPassportId,Begin,End,RegionId,RoadId")] RoadPassport roadPassport) + { + if (id != roadPassport.RoadPassportId) + { + return NotFound(); + } + + if (ModelState.IsValid) + { + try + { + _context.Update(roadPassport); + await _context.SaveChangesAsync(); + } + catch (DbUpdateConcurrencyException) + { + if (!RoadPassportExists(roadPassport.RoadPassportId)) + { + return NotFound(); + } + else + { + throw; + } + } + return RedirectToAction("Index"); + } + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", roadPassport.RegionId); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", roadPassport.RoadId); + return View(roadPassport); + } + + // GET: RoadPassport/Delete/5 + public async Task Delete(int? id) + { + if (id == null) + { + return NotFound(); + } + + var roadPassport = await _context.RoadPassport.SingleOrDefaultAsync(m => m.RoadPassportId == id); + if (roadPassport == null) + { + return NotFound(); + } + + return View(roadPassport); + } + + // POST: RoadPassport/Delete/5 + [HttpPost, ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + var roadPassport = await _context.RoadPassport.SingleOrDefaultAsync(m => m.RoadPassportId == id); + _context.RoadPassport.Remove(roadPassport); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + + private bool RoadPassportExists(int id) + { + return _context.RoadPassport.Any(e => e.RoadPassportId == id); + } + } +} diff --git a/Controllers/RoadServiceController.cs b/Controllers/RoadServiceController.cs new file mode 100755 index 0000000..0a23b33 --- /dev/null +++ b/Controllers/RoadServiceController.cs @@ -0,0 +1,167 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using Maps.Entities; + +namespace maps_core.Controllers +{ + public class RoadServiceController : Controller + { + private readonly PostgresDbContext _context; + + public RoadServiceController(PostgresDbContext context) + { + _context = context; + } + + // GET: RoadService + public async Task Index() + { + var postgresDbContext = _context.RoadService.Include(r => r.Organization).Include(r => r.Region).Include(r => r.Road).Include(r => r.RoadDirection); + return View(await postgresDbContext.ToListAsync()); + } + + // GET: RoadService/Details/5 + public async Task Details(int? id) + { + if (id == null) + { + return NotFound(); + } + + var roadService = await _context.RoadService.SingleOrDefaultAsync(m => m.RoadServiceId == id); + if (roadService == null) + { + return NotFound(); + } + + return View(roadService); + } + + // GET: RoadService/Create + public IActionResult Create() + { + ViewData["OrganizationId"] = new SelectList(_context.Organization, "OrganizationId", "Name"); + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId"); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId"); + ViewData["RoadDirectionId"] = new SelectList(_context.RoadDirection, "RoadDirectionId", "DirectionName"); + return View(); + } + + // POST: RoadService/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create([Bind("RoadServiceId,Begin,End,OrganizationId,RegionId,RoadDirectionId,RoadId,YearBegin")] RoadService roadService) + { + if (ModelState.IsValid) + { + _context.Add(roadService); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + ViewData["OrganizationId"] = new SelectList(_context.Organization, "OrganizationId", "Name", roadService.OrganizationId); + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", roadService.RegionId); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", roadService.RoadId); + ViewData["RoadDirectionId"] = new SelectList(_context.RoadDirection, "RoadDirectionId", "DirectionName", roadService.RoadDirectionId); + return View(roadService); + } + + // GET: RoadService/Edit/5 + public async Task Edit(int? id) + { + if (id == null) + { + return NotFound(); + } + + var roadService = await _context.RoadService.SingleOrDefaultAsync(m => m.RoadServiceId == id); + if (roadService == null) + { + return NotFound(); + } + ViewData["OrganizationId"] = new SelectList(_context.Organization, "OrganizationId", "Name", roadService.OrganizationId); + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", roadService.RegionId); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", roadService.RoadId); + ViewData["RoadDirectionId"] = new SelectList(_context.RoadDirection, "RoadDirectionId", "DirectionName", roadService.RoadDirectionId); + return View(roadService); + } + + // POST: RoadService/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit(int id, [Bind("RoadServiceId,Begin,End,OrganizationId,RegionId,RoadDirectionId,RoadId,YearBegin")] RoadService roadService) + { + if (id != roadService.RoadServiceId) + { + return NotFound(); + } + + if (ModelState.IsValid) + { + try + { + _context.Update(roadService); + await _context.SaveChangesAsync(); + } + catch (DbUpdateConcurrencyException) + { + if (!RoadServiceExists(roadService.RoadServiceId)) + { + return NotFound(); + } + else + { + throw; + } + } + return RedirectToAction("Index"); + } + ViewData["OrganizationId"] = new SelectList(_context.Organization, "OrganizationId", "Name", roadService.OrganizationId); + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", roadService.RegionId); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", roadService.RoadId); + ViewData["RoadDirectionId"] = new SelectList(_context.RoadDirection, "RoadDirectionId", "DirectionName", roadService.RoadDirectionId); + return View(roadService); + } + + // GET: RoadService/Delete/5 + public async Task Delete(int? id) + { + if (id == null) + { + return NotFound(); + } + + var roadService = await _context.RoadService.SingleOrDefaultAsync(m => m.RoadServiceId == id); + if (roadService == null) + { + return NotFound(); + } + + return View(roadService); + } + + // POST: RoadService/Delete/5 + [HttpPost, ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + var roadService = await _context.RoadService.SingleOrDefaultAsync(m => m.RoadServiceId == id); + _context.RoadService.Remove(roadService); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + + private bool RoadServiceExists(int id) + { + return _context.RoadService.Any(e => e.RoadServiceId == id); + } + } +} diff --git a/Controllers/RoadSurfaceController.cs b/Controllers/RoadSurfaceController.cs new file mode 100755 index 0000000..7308523 --- /dev/null +++ b/Controllers/RoadSurfaceController.cs @@ -0,0 +1,175 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using Maps.Entities; + +namespace maps_core.Controllers +{ + public class RoadSurfaceController : Controller + { + private readonly PostgresDbContext _context; + + public RoadSurfaceController(PostgresDbContext context) + { + _context = context; + } + + // GET: RoadSurface + public async Task Index() + { + var postgresDbContext = _context.RoadSurface.Include(r => r.Region).Include(r => r.Road).Include(r => r.RoadDirection).Include(r => r.StateCommon).Include(r => r.SurfaceTreatment).Include(r => r.SurfaceType); + return View(await postgresDbContext.ToListAsync()); + } + + // GET: RoadSurface/Details/5 + public async Task Details(int? id) + { + if (id == null) + { + return NotFound(); + } + + var roadSurface = await _context.RoadSurface.SingleOrDefaultAsync(m => m.RoadSurfaceId == id); + if (roadSurface == null) + { + return NotFound(); + } + + return View(roadSurface); + } + + // GET: RoadSurface/Create + public IActionResult Create() + { + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId"); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId"); + ViewData["RoadDirectionId"] = new SelectList(_context.RoadDirection, "RoadDirectionId", "DirectionName"); + ViewData["StateCommonId"] = new SelectList(_context.StateCommon, "StateCommonId", "StateCommonId"); + ViewData["SurfaceTreatmentId"] = new SelectList(_context.SurfaceTreatment, "SurfaceTreatmentId", "SurfaceTreatmentId"); + ViewData["SurfaceTypeId"] = new SelectList(_context.SurfaceType, "SurfaceTypeId", "SurfaceTypeId"); + return View(); + } + + // POST: RoadSurface/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create([Bind("RoadSurfaceId,Begin,CrossSectionNumber,ElastisityModule,End,LaneCountLeft,LaneCountRight,RegionId,RoadDirectionId,RoadId,RoadSurfaceConstructionId,StateCommonId,SurfaceTreatmentId,SurfaceTypeId")] RoadSurface roadSurface) + { + if (ModelState.IsValid) + { + _context.Add(roadSurface); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", roadSurface.RegionId); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", roadSurface.RoadId); + ViewData["RoadDirectionId"] = new SelectList(_context.RoadDirection, "RoadDirectionId", "DirectionName", roadSurface.RoadDirectionId); + ViewData["StateCommonId"] = new SelectList(_context.StateCommon, "StateCommonId", "StateCommonId", roadSurface.StateCommonId); + ViewData["SurfaceTreatmentId"] = new SelectList(_context.SurfaceTreatment, "SurfaceTreatmentId", "SurfaceTreatmentId", roadSurface.SurfaceTreatmentId); + ViewData["SurfaceTypeId"] = new SelectList(_context.SurfaceType, "SurfaceTypeId", "SurfaceTypeId", roadSurface.SurfaceTypeId); + return View(roadSurface); + } + + // GET: RoadSurface/Edit/5 + public async Task Edit(int? id) + { + if (id == null) + { + return NotFound(); + } + + var roadSurface = await _context.RoadSurface.SingleOrDefaultAsync(m => m.RoadSurfaceId == id); + if (roadSurface == null) + { + return NotFound(); + } + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", roadSurface.RegionId); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", roadSurface.RoadId); + ViewData["RoadDirectionId"] = new SelectList(_context.RoadDirection, "RoadDirectionId", "DirectionName", roadSurface.RoadDirectionId); + ViewData["StateCommonId"] = new SelectList(_context.StateCommon, "StateCommonId", "StateCommonId", roadSurface.StateCommonId); + ViewData["SurfaceTreatmentId"] = new SelectList(_context.SurfaceTreatment, "SurfaceTreatmentId", "SurfaceTreatmentId", roadSurface.SurfaceTreatmentId); + ViewData["SurfaceTypeId"] = new SelectList(_context.SurfaceType, "SurfaceTypeId", "SurfaceTypeId", roadSurface.SurfaceTypeId); + return View(roadSurface); + } + + // POST: RoadSurface/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit(int id, [Bind("RoadSurfaceId,Begin,CrossSectionNumber,ElastisityModule,End,LaneCountLeft,LaneCountRight,RegionId,RoadDirectionId,RoadId,RoadSurfaceConstructionId,StateCommonId,SurfaceTreatmentId,SurfaceTypeId")] RoadSurface roadSurface) + { + if (id != roadSurface.RoadSurfaceId) + { + return NotFound(); + } + + if (ModelState.IsValid) + { + try + { + _context.Update(roadSurface); + await _context.SaveChangesAsync(); + } + catch (DbUpdateConcurrencyException) + { + if (!RoadSurfaceExists(roadSurface.RoadSurfaceId)) + { + return NotFound(); + } + else + { + throw; + } + } + return RedirectToAction("Index"); + } + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", roadSurface.RegionId); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", roadSurface.RoadId); + ViewData["RoadDirectionId"] = new SelectList(_context.RoadDirection, "RoadDirectionId", "DirectionName", roadSurface.RoadDirectionId); + ViewData["StateCommonId"] = new SelectList(_context.StateCommon, "StateCommonId", "StateCommonId", roadSurface.StateCommonId); + ViewData["SurfaceTreatmentId"] = new SelectList(_context.SurfaceTreatment, "SurfaceTreatmentId", "SurfaceTreatmentId", roadSurface.SurfaceTreatmentId); + ViewData["SurfaceTypeId"] = new SelectList(_context.SurfaceType, "SurfaceTypeId", "SurfaceTypeId", roadSurface.SurfaceTypeId); + return View(roadSurface); + } + + // GET: RoadSurface/Delete/5 + public async Task Delete(int? id) + { + if (id == null) + { + return NotFound(); + } + + var roadSurface = await _context.RoadSurface.SingleOrDefaultAsync(m => m.RoadSurfaceId == id); + if (roadSurface == null) + { + return NotFound(); + } + + return View(roadSurface); + } + + // POST: RoadSurface/Delete/5 + [HttpPost, ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + var roadSurface = await _context.RoadSurface.SingleOrDefaultAsync(m => m.RoadSurfaceId == id); + _context.RoadSurface.Remove(roadSurface); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + + private bool RoadSurfaceExists(int id) + { + return _context.RoadSurface.Any(e => e.RoadSurfaceId == id); + } + } +} diff --git a/Controllers/RoadTypeController.cs b/Controllers/RoadTypeController.cs new file mode 100755 index 0000000..cb2fbbd --- /dev/null +++ b/Controllers/RoadTypeController.cs @@ -0,0 +1,150 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using Maps.Entities; + +namespace maps_core.Controllers +{ + public class RoadTypeController : Controller + { + private readonly PostgresDbContext _context; + + public RoadTypeController(PostgresDbContext context) + { + _context = context; + } + + // GET: RoadType + public async Task Index() + { + return View(await _context.RoadType.ToListAsync()); + } + + // GET: RoadType/Details/5 + public async Task Details(int? id) + { + if (id == null) + { + return NotFound(); + } + + var roadType = await _context.RoadType.SingleOrDefaultAsync(m => m.RoadTypeId == id); + if (roadType == null) + { + return NotFound(); + } + + return View(roadType); + } + + // GET: RoadType/Create + public IActionResult Create() + { + return View(); + } + + // POST: RoadType/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create([Bind("RoadTypeId,Definition,Value")] RoadType roadType) + { + if (ModelState.IsValid) + { + _context.Add(roadType); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + return View(roadType); + } + + // GET: RoadType/Edit/5 + public async Task Edit(int? id) + { + if (id == null) + { + return NotFound(); + } + + var roadType = await _context.RoadType.SingleOrDefaultAsync(m => m.RoadTypeId == id); + if (roadType == null) + { + return NotFound(); + } + return View(roadType); + } + + // POST: RoadType/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit(int id, [Bind("RoadTypeId,Definition,Value")] RoadType roadType) + { + if (id != roadType.RoadTypeId) + { + return NotFound(); + } + + if (ModelState.IsValid) + { + try + { + _context.Update(roadType); + await _context.SaveChangesAsync(); + } + catch (DbUpdateConcurrencyException) + { + if (!RoadTypeExists(roadType.RoadTypeId)) + { + return NotFound(); + } + else + { + throw; + } + } + return RedirectToAction("Index"); + } + return View(roadType); + } + + // GET: RoadType/Delete/5 + public async Task Delete(int? id) + { + if (id == null) + { + return NotFound(); + } + + var roadType = await _context.RoadType.SingleOrDefaultAsync(m => m.RoadTypeId == id); + if (roadType == null) + { + return NotFound(); + } + + return View(roadType); + } + + // POST: RoadType/Delete/5 + [HttpPost, ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + var roadType = await _context.RoadType.SingleOrDefaultAsync(m => m.RoadTypeId == id); + _context.RoadType.Remove(roadType); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + + private bool RoadTypeExists(int id) + { + return _context.RoadType.Any(e => e.RoadTypeId == id); + } + } +} diff --git a/Controllers/RoadWidthController.cs b/Controllers/RoadWidthController.cs new file mode 100755 index 0000000..14147cf --- /dev/null +++ b/Controllers/RoadWidthController.cs @@ -0,0 +1,159 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using Maps.Entities; + +namespace maps_core.Controllers +{ + public class RoadWidthController : Controller + { + private readonly PostgresDbContext _context; + + public RoadWidthController(PostgresDbContext context) + { + _context = context; + } + + // GET: RoadWidth + public async Task Index() + { + var postgresDbContext = _context.RoadWidth.Include(r => r.Region).Include(r => r.Road); + return View(await postgresDbContext.ToListAsync()); + } + + // GET: RoadWidth/Details/5 + public async Task Details(int? id) + { + if (id == null) + { + return NotFound(); + } + + var roadWidth = await _context.RoadWidth.SingleOrDefaultAsync(m => m.RoadWidthId == id); + if (roadWidth == null) + { + return NotFound(); + } + + return View(roadWidth); + } + + // GET: RoadWidth/Create + public IActionResult Create() + { + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId"); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId"); + return View(); + } + + // POST: RoadWidth/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create([Bind("RoadWidthId,Begin,CountLaneLeft,CountLaneRight,End,RegionId,RoadId,WidthReverseRoad,WidthRoadsideLeft,WidthRoadsideRight,WidthRoadwayForward,WidthStrip")] RoadWidth roadWidth) + { + if (ModelState.IsValid) + { + _context.Add(roadWidth); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", roadWidth.RegionId); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", roadWidth.RoadId); + return View(roadWidth); + } + + // GET: RoadWidth/Edit/5 + public async Task Edit(int? id) + { + if (id == null) + { + return NotFound(); + } + + var roadWidth = await _context.RoadWidth.SingleOrDefaultAsync(m => m.RoadWidthId == id); + if (roadWidth == null) + { + return NotFound(); + } + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", roadWidth.RegionId); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", roadWidth.RoadId); + return View(roadWidth); + } + + // POST: RoadWidth/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit(int id, [Bind("RoadWidthId,Begin,CountLaneLeft,CountLaneRight,End,RegionId,RoadId,WidthReverseRoad,WidthRoadsideLeft,WidthRoadsideRight,WidthRoadwayForward,WidthStrip")] RoadWidth roadWidth) + { + if (id != roadWidth.RoadWidthId) + { + return NotFound(); + } + + if (ModelState.IsValid) + { + try + { + _context.Update(roadWidth); + await _context.SaveChangesAsync(); + } + catch (DbUpdateConcurrencyException) + { + if (!RoadWidthExists(roadWidth.RoadWidthId)) + { + return NotFound(); + } + else + { + throw; + } + } + return RedirectToAction("Index"); + } + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", roadWidth.RegionId); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", roadWidth.RoadId); + return View(roadWidth); + } + + // GET: RoadWidth/Delete/5 + public async Task Delete(int? id) + { + if (id == null) + { + return NotFound(); + } + + var roadWidth = await _context.RoadWidth.SingleOrDefaultAsync(m => m.RoadWidthId == id); + if (roadWidth == null) + { + return NotFound(); + } + + return View(roadWidth); + } + + // POST: RoadWidth/Delete/5 + [HttpPost, ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + var roadWidth = await _context.RoadWidth.SingleOrDefaultAsync(m => m.RoadWidthId == id); + _context.RoadWidth.Remove(roadWidth); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + + private bool RoadWidthExists(int id) + { + return _context.RoadWidth.Any(e => e.RoadWidthId == id); + } + } +} diff --git a/Controllers/ServiceObjectController.cs b/Controllers/ServiceObjectController.cs new file mode 100755 index 0000000..4817252 --- /dev/null +++ b/Controllers/ServiceObjectController.cs @@ -0,0 +1,171 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using Maps.Entities; + +namespace maps_core.Controllers +{ + public class ServiceObjectController : Controller + { + private readonly PostgresDbContext _context; + + public ServiceObjectController(PostgresDbContext context) + { + _context = context; + } + + // GET: ServiceObject + public async Task Index() + { + var postgresDbContext = _context.ServiceObject.Include(s => s.DepartmentAffiliation).Include(s => s.Region).Include(s => s.Road).Include(s => s.ServiceObjectType).Include(s => s.Settlement); + return View(await postgresDbContext.ToListAsync()); + } + + // GET: ServiceObject/Details/5 + public async Task Details(int? id) + { + if (id == null) + { + return NotFound(); + } + + var serviceObject = await _context.ServiceObject.SingleOrDefaultAsync(m => m.ServiceObjectId == id); + if (serviceObject == null) + { + return NotFound(); + } + + return View(serviceObject); + } + + // GET: ServiceObject/Create + public IActionResult Create() + { + ViewData["DepartmentAffiliationId"] = new SelectList(_context.DepartmentAffiliation, "DepartmentAffiliationId", "DepartmentAffiliationId"); + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId"); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId"); + ViewData["ServiceObjectTypeId"] = new SelectList(_context.ServiceObjectType, "ServiceObjectTypeId", "ServiceObjectTypeId"); + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name"); + return View(); + } + + // POST: ServiceObject/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create([Bind("ServiceObjectId,ArrangementElements,Capacity,DepartmentAffiliationId,Distance,LocationAxis,LocationLeft,LocationRight,RegionId,RoadId,ServiceObjectTypeId,SettlementId")] ServiceObject serviceObject) + { + if (ModelState.IsValid) + { + _context.Add(serviceObject); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + ViewData["DepartmentAffiliationId"] = new SelectList(_context.DepartmentAffiliation, "DepartmentAffiliationId", "DepartmentAffiliationId", serviceObject.DepartmentAffiliationId); + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", serviceObject.RegionId); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", serviceObject.RoadId); + ViewData["ServiceObjectTypeId"] = new SelectList(_context.ServiceObjectType, "ServiceObjectTypeId", "ServiceObjectTypeId", serviceObject.ServiceObjectTypeId); + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name", serviceObject.SettlementId); + return View(serviceObject); + } + + // GET: ServiceObject/Edit/5 + public async Task Edit(int? id) + { + if (id == null) + { + return NotFound(); + } + + var serviceObject = await _context.ServiceObject.SingleOrDefaultAsync(m => m.ServiceObjectId == id); + if (serviceObject == null) + { + return NotFound(); + } + ViewData["DepartmentAffiliationId"] = new SelectList(_context.DepartmentAffiliation, "DepartmentAffiliationId", "DepartmentAffiliationId", serviceObject.DepartmentAffiliationId); + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", serviceObject.RegionId); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", serviceObject.RoadId); + ViewData["ServiceObjectTypeId"] = new SelectList(_context.ServiceObjectType, "ServiceObjectTypeId", "ServiceObjectTypeId", serviceObject.ServiceObjectTypeId); + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name", serviceObject.SettlementId); + return View(serviceObject); + } + + // POST: ServiceObject/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit(int id, [Bind("ServiceObjectId,ArrangementElements,Capacity,DepartmentAffiliationId,Distance,LocationAxis,LocationLeft,LocationRight,RegionId,RoadId,ServiceObjectTypeId,SettlementId")] ServiceObject serviceObject) + { + if (id != serviceObject.ServiceObjectId) + { + return NotFound(); + } + + if (ModelState.IsValid) + { + try + { + _context.Update(serviceObject); + await _context.SaveChangesAsync(); + } + catch (DbUpdateConcurrencyException) + { + if (!ServiceObjectExists(serviceObject.ServiceObjectId)) + { + return NotFound(); + } + else + { + throw; + } + } + return RedirectToAction("Index"); + } + ViewData["DepartmentAffiliationId"] = new SelectList(_context.DepartmentAffiliation, "DepartmentAffiliationId", "DepartmentAffiliationId", serviceObject.DepartmentAffiliationId); + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", serviceObject.RegionId); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", serviceObject.RoadId); + ViewData["ServiceObjectTypeId"] = new SelectList(_context.ServiceObjectType, "ServiceObjectTypeId", "ServiceObjectTypeId", serviceObject.ServiceObjectTypeId); + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name", serviceObject.SettlementId); + return View(serviceObject); + } + + // GET: ServiceObject/Delete/5 + public async Task Delete(int? id) + { + if (id == null) + { + return NotFound(); + } + + var serviceObject = await _context.ServiceObject.SingleOrDefaultAsync(m => m.ServiceObjectId == id); + if (serviceObject == null) + { + return NotFound(); + } + + return View(serviceObject); + } + + // POST: ServiceObject/Delete/5 + [HttpPost, ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + var serviceObject = await _context.ServiceObject.SingleOrDefaultAsync(m => m.ServiceObjectId == id); + _context.ServiceObject.Remove(serviceObject); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + + private bool ServiceObjectExists(int id) + { + return _context.ServiceObject.Any(e => e.ServiceObjectId == id); + } + } +} diff --git a/Controllers/ServiceObjectTypeController.cs b/Controllers/ServiceObjectTypeController.cs new file mode 100755 index 0000000..1d894f1 --- /dev/null +++ b/Controllers/ServiceObjectTypeController.cs @@ -0,0 +1,150 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using Maps.Entities; + +namespace maps_core.Controllers +{ + public class ServiceObjectTypeController : Controller + { + private readonly PostgresDbContext _context; + + public ServiceObjectTypeController(PostgresDbContext context) + { + _context = context; + } + + // GET: ServiceObjectType + public async Task Index() + { + return View(await _context.ServiceObjectType.ToListAsync()); + } + + // GET: ServiceObjectType/Details/5 + public async Task Details(int? id) + { + if (id == null) + { + return NotFound(); + } + + var serviceObjectType = await _context.ServiceObjectType.SingleOrDefaultAsync(m => m.ServiceObjectTypeId == id); + if (serviceObjectType == null) + { + return NotFound(); + } + + return View(serviceObjectType); + } + + // GET: ServiceObjectType/Create + public IActionResult Create() + { + return View(); + } + + // POST: ServiceObjectType/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create([Bind("ServiceObjectTypeId,Name")] ServiceObjectType serviceObjectType) + { + if (ModelState.IsValid) + { + _context.Add(serviceObjectType); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + return View(serviceObjectType); + } + + // GET: ServiceObjectType/Edit/5 + public async Task Edit(int? id) + { + if (id == null) + { + return NotFound(); + } + + var serviceObjectType = await _context.ServiceObjectType.SingleOrDefaultAsync(m => m.ServiceObjectTypeId == id); + if (serviceObjectType == null) + { + return NotFound(); + } + return View(serviceObjectType); + } + + // POST: ServiceObjectType/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit(int id, [Bind("ServiceObjectTypeId,Name")] ServiceObjectType serviceObjectType) + { + if (id != serviceObjectType.ServiceObjectTypeId) + { + return NotFound(); + } + + if (ModelState.IsValid) + { + try + { + _context.Update(serviceObjectType); + await _context.SaveChangesAsync(); + } + catch (DbUpdateConcurrencyException) + { + if (!ServiceObjectTypeExists(serviceObjectType.ServiceObjectTypeId)) + { + return NotFound(); + } + else + { + throw; + } + } + return RedirectToAction("Index"); + } + return View(serviceObjectType); + } + + // GET: ServiceObjectType/Delete/5 + public async Task Delete(int? id) + { + if (id == null) + { + return NotFound(); + } + + var serviceObjectType = await _context.ServiceObjectType.SingleOrDefaultAsync(m => m.ServiceObjectTypeId == id); + if (serviceObjectType == null) + { + return NotFound(); + } + + return View(serviceObjectType); + } + + // POST: ServiceObjectType/Delete/5 + [HttpPost, ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + var serviceObjectType = await _context.ServiceObjectType.SingleOrDefaultAsync(m => m.ServiceObjectTypeId == id); + _context.ServiceObjectType.Remove(serviceObjectType); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + + private bool ServiceObjectTypeExists(int id) + { + return _context.ServiceObjectType.Any(e => e.ServiceObjectTypeId == id); + } + } +} diff --git a/Controllers/SettlementAddressLinkController.cs b/Controllers/SettlementAddressLinkController.cs new file mode 100755 index 0000000..cc17668 --- /dev/null +++ b/Controllers/SettlementAddressLinkController.cs @@ -0,0 +1,167 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using Maps.Entities; + +namespace maps_core.Controllers +{ + public class SettlementAddressLinkController : Controller + { + private readonly PostgresDbContext _context; + + public SettlementAddressLinkController(PostgresDbContext context) + { + _context = context; + } + + // GET: SettlementAddressLink + public async Task Index() + { + var postgresDbContext = _context.SettlementAddressLink.Include(s => s.Region).Include(s => s.Road).Include(s => s.Settlement).Include(s => s.SettlementLocation); + return View(await postgresDbContext.ToListAsync()); + } + + // GET: SettlementAddressLink/Details/5 + public async Task Details(int? id) + { + if (id == null) + { + return NotFound(); + } + + var settlementAddressLink = await _context.SettlementAddressLink.SingleOrDefaultAsync(m => m.SettlementAddressLinkId == id); + if (settlementAddressLink == null) + { + return NotFound(); + } + + return View(settlementAddressLink); + } + + // GET: SettlementAddressLink/Create + public IActionResult Create() + { + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId"); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId"); + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name"); + ViewData["SettlementLocationId"] = new SelectList(_context.SettlementLocation, "SettlementLocationId", "Value"); + return View(); + } + + // POST: SettlementAddressLink/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create([Bind("SettlementAddressLinkId,Begin,Distance,End,RegionId,RoadId,SettlementId,SettlementLocationId")] SettlementAddressLink settlementAddressLink) + { + if (ModelState.IsValid) + { + _context.Add(settlementAddressLink); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", settlementAddressLink.RegionId); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", settlementAddressLink.RoadId); + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name", settlementAddressLink.SettlementId); + ViewData["SettlementLocationId"] = new SelectList(_context.SettlementLocation, "SettlementLocationId", "Value", settlementAddressLink.SettlementLocationId); + return View(settlementAddressLink); + } + + // GET: SettlementAddressLink/Edit/5 + public async Task Edit(int? id) + { + if (id == null) + { + return NotFound(); + } + + var settlementAddressLink = await _context.SettlementAddressLink.SingleOrDefaultAsync(m => m.SettlementAddressLinkId == id); + if (settlementAddressLink == null) + { + return NotFound(); + } + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", settlementAddressLink.RegionId); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", settlementAddressLink.RoadId); + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name", settlementAddressLink.SettlementId); + ViewData["SettlementLocationId"] = new SelectList(_context.SettlementLocation, "SettlementLocationId", "Value", settlementAddressLink.SettlementLocationId); + return View(settlementAddressLink); + } + + // POST: SettlementAddressLink/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit(int id, [Bind("SettlementAddressLinkId,Begin,Distance,End,RegionId,RoadId,SettlementId,SettlementLocationId")] SettlementAddressLink settlementAddressLink) + { + if (id != settlementAddressLink.SettlementAddressLinkId) + { + return NotFound(); + } + + if (ModelState.IsValid) + { + try + { + _context.Update(settlementAddressLink); + await _context.SaveChangesAsync(); + } + catch (DbUpdateConcurrencyException) + { + if (!SettlementAddressLinkExists(settlementAddressLink.SettlementAddressLinkId)) + { + return NotFound(); + } + else + { + throw; + } + } + return RedirectToAction("Index"); + } + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", settlementAddressLink.RegionId); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", settlementAddressLink.RoadId); + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name", settlementAddressLink.SettlementId); + ViewData["SettlementLocationId"] = new SelectList(_context.SettlementLocation, "SettlementLocationId", "Value", settlementAddressLink.SettlementLocationId); + return View(settlementAddressLink); + } + + // GET: SettlementAddressLink/Delete/5 + public async Task Delete(int? id) + { + if (id == null) + { + return NotFound(); + } + + var settlementAddressLink = await _context.SettlementAddressLink.SingleOrDefaultAsync(m => m.SettlementAddressLinkId == id); + if (settlementAddressLink == null) + { + return NotFound(); + } + + return View(settlementAddressLink); + } + + // POST: SettlementAddressLink/Delete/5 + [HttpPost, ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + var settlementAddressLink = await _context.SettlementAddressLink.SingleOrDefaultAsync(m => m.SettlementAddressLinkId == id); + _context.SettlementAddressLink.Remove(settlementAddressLink); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + + private bool SettlementAddressLinkExists(int id) + { + return _context.SettlementAddressLink.Any(e => e.SettlementAddressLinkId == id); + } + } +} diff --git a/Controllers/SettlementController.cs b/Controllers/SettlementController.cs new file mode 100755 index 0000000..0cd5842 --- /dev/null +++ b/Controllers/SettlementController.cs @@ -0,0 +1,150 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using Maps.Entities; + +namespace maps_core.Controllers +{ + public class SettlementController : Controller + { + private readonly PostgresDbContext _context; + + public SettlementController(PostgresDbContext context) + { + _context = context; + } + + // GET: Settlement + public async Task Index() + { + return View(await _context.Settlement.ToListAsync()); + } + + // GET: Settlement/Details/5 + public async Task Details(int? id) + { + if (id == null) + { + return NotFound(); + } + + var settlement = await _context.Settlement.SingleOrDefaultAsync(m => m.SettlementId == id); + if (settlement == null) + { + return NotFound(); + } + + return View(settlement); + } + + // GET: Settlement/Create + public IActionResult Create() + { + return View(); + } + + // POST: Settlement/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create([Bind("SettlementId,Name,Sign")] Settlement settlement) + { + if (ModelState.IsValid) + { + _context.Add(settlement); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + return View(settlement); + } + + // GET: Settlement/Edit/5 + public async Task Edit(int? id) + { + if (id == null) + { + return NotFound(); + } + + var settlement = await _context.Settlement.SingleOrDefaultAsync(m => m.SettlementId == id); + if (settlement == null) + { + return NotFound(); + } + return View(settlement); + } + + // POST: Settlement/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit(int id, [Bind("SettlementId,Name,Sign")] Settlement settlement) + { + if (id != settlement.SettlementId) + { + return NotFound(); + } + + if (ModelState.IsValid) + { + try + { + _context.Update(settlement); + await _context.SaveChangesAsync(); + } + catch (DbUpdateConcurrencyException) + { + if (!SettlementExists(settlement.SettlementId)) + { + return NotFound(); + } + else + { + throw; + } + } + return RedirectToAction("Index"); + } + return View(settlement); + } + + // GET: Settlement/Delete/5 + public async Task Delete(int? id) + { + if (id == null) + { + return NotFound(); + } + + var settlement = await _context.Settlement.SingleOrDefaultAsync(m => m.SettlementId == id); + if (settlement == null) + { + return NotFound(); + } + + return View(settlement); + } + + // POST: Settlement/Delete/5 + [HttpPost, ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + var settlement = await _context.Settlement.SingleOrDefaultAsync(m => m.SettlementId == id); + _context.Settlement.Remove(settlement); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + + private bool SettlementExists(int id) + { + return _context.Settlement.Any(e => e.SettlementId == id); + } + } +} diff --git a/Controllers/SettlementLocationController.cs b/Controllers/SettlementLocationController.cs new file mode 100755 index 0000000..8075f77 --- /dev/null +++ b/Controllers/SettlementLocationController.cs @@ -0,0 +1,150 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using Maps.Entities; + +namespace maps_core.Controllers +{ + public class SettlementLocationController : Controller + { + private readonly PostgresDbContext _context; + + public SettlementLocationController(PostgresDbContext context) + { + _context = context; + } + + // GET: SettlementLocation + public async Task Index() + { + return View(await _context.SettlementLocation.ToListAsync()); + } + + // GET: SettlementLocation/Details/5 + public async Task Details(int? id) + { + if (id == null) + { + return NotFound(); + } + + var settlementLocation = await _context.SettlementLocation.SingleOrDefaultAsync(m => m.SettlementLocationId == id); + if (settlementLocation == null) + { + return NotFound(); + } + + return View(settlementLocation); + } + + // GET: SettlementLocation/Create + public IActionResult Create() + { + return View(); + } + + // POST: SettlementLocation/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create([Bind("SettlementLocationId,Value")] SettlementLocation settlementLocation) + { + if (ModelState.IsValid) + { + _context.Add(settlementLocation); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + return View(settlementLocation); + } + + // GET: SettlementLocation/Edit/5 + public async Task Edit(int? id) + { + if (id == null) + { + return NotFound(); + } + + var settlementLocation = await _context.SettlementLocation.SingleOrDefaultAsync(m => m.SettlementLocationId == id); + if (settlementLocation == null) + { + return NotFound(); + } + return View(settlementLocation); + } + + // POST: SettlementLocation/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit(int id, [Bind("SettlementLocationId,Value")] SettlementLocation settlementLocation) + { + if (id != settlementLocation.SettlementLocationId) + { + return NotFound(); + } + + if (ModelState.IsValid) + { + try + { + _context.Update(settlementLocation); + await _context.SaveChangesAsync(); + } + catch (DbUpdateConcurrencyException) + { + if (!SettlementLocationExists(settlementLocation.SettlementLocationId)) + { + return NotFound(); + } + else + { + throw; + } + } + return RedirectToAction("Index"); + } + return View(settlementLocation); + } + + // GET: SettlementLocation/Delete/5 + public async Task Delete(int? id) + { + if (id == null) + { + return NotFound(); + } + + var settlementLocation = await _context.SettlementLocation.SingleOrDefaultAsync(m => m.SettlementLocationId == id); + if (settlementLocation == null) + { + return NotFound(); + } + + return View(settlementLocation); + } + + // POST: SettlementLocation/Delete/5 + [HttpPost, ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + var settlementLocation = await _context.SettlementLocation.SingleOrDefaultAsync(m => m.SettlementLocationId == id); + _context.SettlementLocation.Remove(settlementLocation); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + + private bool SettlementLocationExists(int id) + { + return _context.SettlementLocation.Any(e => e.SettlementLocationId == id); + } + } +} diff --git a/Controllers/StateCommonController.cs b/Controllers/StateCommonController.cs new file mode 100755 index 0000000..86dec46 --- /dev/null +++ b/Controllers/StateCommonController.cs @@ -0,0 +1,150 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using Maps.Entities; + +namespace maps_core.Controllers +{ + public class StateCommonController : Controller + { + private readonly PostgresDbContext _context; + + public StateCommonController(PostgresDbContext context) + { + _context = context; + } + + // GET: StateCommon + public async Task Index() + { + return View(await _context.StateCommon.ToListAsync()); + } + + // GET: StateCommon/Details/5 + public async Task Details(int? id) + { + if (id == null) + { + return NotFound(); + } + + var stateCommon = await _context.StateCommon.SingleOrDefaultAsync(m => m.StateCommonId == id); + if (stateCommon == null) + { + return NotFound(); + } + + return View(stateCommon); + } + + // GET: StateCommon/Create + public IActionResult Create() + { + return View(); + } + + // POST: StateCommon/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create([Bind("StateCommonId,Value")] StateCommon stateCommon) + { + if (ModelState.IsValid) + { + _context.Add(stateCommon); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + return View(stateCommon); + } + + // GET: StateCommon/Edit/5 + public async Task Edit(int? id) + { + if (id == null) + { + return NotFound(); + } + + var stateCommon = await _context.StateCommon.SingleOrDefaultAsync(m => m.StateCommonId == id); + if (stateCommon == null) + { + return NotFound(); + } + return View(stateCommon); + } + + // POST: StateCommon/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit(int id, [Bind("StateCommonId,Value")] StateCommon stateCommon) + { + if (id != stateCommon.StateCommonId) + { + return NotFound(); + } + + if (ModelState.IsValid) + { + try + { + _context.Update(stateCommon); + await _context.SaveChangesAsync(); + } + catch (DbUpdateConcurrencyException) + { + if (!StateCommonExists(stateCommon.StateCommonId)) + { + return NotFound(); + } + else + { + throw; + } + } + return RedirectToAction("Index"); + } + return View(stateCommon); + } + + // GET: StateCommon/Delete/5 + public async Task Delete(int? id) + { + if (id == null) + { + return NotFound(); + } + + var stateCommon = await _context.StateCommon.SingleOrDefaultAsync(m => m.StateCommonId == id); + if (stateCommon == null) + { + return NotFound(); + } + + return View(stateCommon); + } + + // POST: StateCommon/Delete/5 + [HttpPost, ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + var stateCommon = await _context.StateCommon.SingleOrDefaultAsync(m => m.StateCommonId == id); + _context.StateCommon.Remove(stateCommon); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + + private bool StateCommonExists(int id) + { + return _context.StateCommon.Any(e => e.StateCommonId == id); + } + } +} diff --git a/Controllers/SurfaceTreatmentController.cs b/Controllers/SurfaceTreatmentController.cs new file mode 100755 index 0000000..8aa330b --- /dev/null +++ b/Controllers/SurfaceTreatmentController.cs @@ -0,0 +1,150 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using Maps.Entities; + +namespace maps_core.Controllers +{ + public class SurfaceTreatmentController : Controller + { + private readonly PostgresDbContext _context; + + public SurfaceTreatmentController(PostgresDbContext context) + { + _context = context; + } + + // GET: SurfaceTreatment + public async Task Index() + { + return View(await _context.SurfaceTreatment.ToListAsync()); + } + + // GET: SurfaceTreatment/Details/5 + public async Task Details(int? id) + { + if (id == null) + { + return NotFound(); + } + + var surfaceTreatment = await _context.SurfaceTreatment.SingleOrDefaultAsync(m => m.SurfaceTreatmentId == id); + if (surfaceTreatment == null) + { + return NotFound(); + } + + return View(surfaceTreatment); + } + + // GET: SurfaceTreatment/Create + public IActionResult Create() + { + return View(); + } + + // POST: SurfaceTreatment/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create([Bind("SurfaceTreatmentId,Name")] SurfaceTreatment surfaceTreatment) + { + if (ModelState.IsValid) + { + _context.Add(surfaceTreatment); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + return View(surfaceTreatment); + } + + // GET: SurfaceTreatment/Edit/5 + public async Task Edit(int? id) + { + if (id == null) + { + return NotFound(); + } + + var surfaceTreatment = await _context.SurfaceTreatment.SingleOrDefaultAsync(m => m.SurfaceTreatmentId == id); + if (surfaceTreatment == null) + { + return NotFound(); + } + return View(surfaceTreatment); + } + + // POST: SurfaceTreatment/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit(int id, [Bind("SurfaceTreatmentId,Name")] SurfaceTreatment surfaceTreatment) + { + if (id != surfaceTreatment.SurfaceTreatmentId) + { + return NotFound(); + } + + if (ModelState.IsValid) + { + try + { + _context.Update(surfaceTreatment); + await _context.SaveChangesAsync(); + } + catch (DbUpdateConcurrencyException) + { + if (!SurfaceTreatmentExists(surfaceTreatment.SurfaceTreatmentId)) + { + return NotFound(); + } + else + { + throw; + } + } + return RedirectToAction("Index"); + } + return View(surfaceTreatment); + } + + // GET: SurfaceTreatment/Delete/5 + public async Task Delete(int? id) + { + if (id == null) + { + return NotFound(); + } + + var surfaceTreatment = await _context.SurfaceTreatment.SingleOrDefaultAsync(m => m.SurfaceTreatmentId == id); + if (surfaceTreatment == null) + { + return NotFound(); + } + + return View(surfaceTreatment); + } + + // POST: SurfaceTreatment/Delete/5 + [HttpPost, ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + var surfaceTreatment = await _context.SurfaceTreatment.SingleOrDefaultAsync(m => m.SurfaceTreatmentId == id); + _context.SurfaceTreatment.Remove(surfaceTreatment); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + + private bool SurfaceTreatmentExists(int id) + { + return _context.SurfaceTreatment.Any(e => e.SurfaceTreatmentId == id); + } + } +} diff --git a/Controllers/SurfaceTypeController.cs b/Controllers/SurfaceTypeController.cs new file mode 100755 index 0000000..f1fcfce --- /dev/null +++ b/Controllers/SurfaceTypeController.cs @@ -0,0 +1,150 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using Maps.Entities; + +namespace maps_core.Controllers +{ + public class SurfaceTypeController : Controller + { + private readonly PostgresDbContext _context; + + public SurfaceTypeController(PostgresDbContext context) + { + _context = context; + } + + // GET: SurfaceType + public async Task Index() + { + return View(await _context.SurfaceType.ToListAsync()); + } + + // GET: SurfaceType/Details/5 + public async Task Details(int? id) + { + if (id == null) + { + return NotFound(); + } + + var surfaceType = await _context.SurfaceType.SingleOrDefaultAsync(m => m.SurfaceTypeId == id); + if (surfaceType == null) + { + return NotFound(); + } + + return View(surfaceType); + } + + // GET: SurfaceType/Create + public IActionResult Create() + { + return View(); + } + + // POST: SurfaceType/Create + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Create([Bind("SurfaceTypeId,Name")] SurfaceType surfaceType) + { + if (ModelState.IsValid) + { + _context.Add(surfaceType); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + return View(surfaceType); + } + + // GET: SurfaceType/Edit/5 + public async Task Edit(int? id) + { + if (id == null) + { + return NotFound(); + } + + var surfaceType = await _context.SurfaceType.SingleOrDefaultAsync(m => m.SurfaceTypeId == id); + if (surfaceType == null) + { + return NotFound(); + } + return View(surfaceType); + } + + // POST: SurfaceType/Edit/5 + // To protect from overposting attacks, please enable the specific properties you want to bind to, for + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. + [HttpPost] + [ValidateAntiForgeryToken] + public async Task Edit(int id, [Bind("SurfaceTypeId,Name")] SurfaceType surfaceType) + { + if (id != surfaceType.SurfaceTypeId) + { + return NotFound(); + } + + if (ModelState.IsValid) + { + try + { + _context.Update(surfaceType); + await _context.SaveChangesAsync(); + } + catch (DbUpdateConcurrencyException) + { + if (!SurfaceTypeExists(surfaceType.SurfaceTypeId)) + { + return NotFound(); + } + else + { + throw; + } + } + return RedirectToAction("Index"); + } + return View(surfaceType); + } + + // GET: SurfaceType/Delete/5 + public async Task Delete(int? id) + { + if (id == null) + { + return NotFound(); + } + + var surfaceType = await _context.SurfaceType.SingleOrDefaultAsync(m => m.SurfaceTypeId == id); + if (surfaceType == null) + { + return NotFound(); + } + + return View(surfaceType); + } + + // POST: SurfaceType/Delete/5 + [HttpPost, ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + var surfaceType = await _context.SurfaceType.SingleOrDefaultAsync(m => m.SurfaceTypeId == id); + _context.SurfaceType.Remove(surfaceType); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + + private bool SurfaceTypeExists(int id) + { + return _context.SurfaceType.Any(e => e.SurfaceTypeId == id); + } + } +} diff --git a/Startup.cs b/Startup.cs index c1d7c92..4cdd2ac 100644 --- a/Startup.cs +++ b/Startup.cs @@ -8,7 +8,6 @@ using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using Microsoft.EntityFrameworkCore; -using Maps.Models; using Maps.Entities; namespace Maps { diff --git a/Views/CrossSection/Create.cshtml b/Views/CrossSection/Create.cshtml new file mode 100755 index 0000000..0319f6e --- /dev/null +++ b/Views/CrossSection/Create.cshtml @@ -0,0 +1,142 @@ +@model Maps.Entities.CrossSection + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

CrossSection

+
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/CrossSection/Delete.cshtml b/Views/CrossSection/Delete.cshtml new file mode 100755 index 0000000..d2c666d --- /dev/null +++ b/Views/CrossSection/Delete.cshtml @@ -0,0 +1,103 @@ +@model Maps.Entities.CrossSection + +@{ + Layout = null; +} + + + + + + + Delete + + + +

Are you sure you want to delete this?

+
+

CrossSection

+
+
+
+ @Html.DisplayNameFor(model => model.Angle) +
+
+ @Html.DisplayFor(model => model.Angle) +
+
+ @Html.DisplayNameFor(model => model.Direction) +
+
+ @Html.DisplayFor(model => model.Direction) +
+
+ @Html.DisplayNameFor(model => model.DistanceEdge) +
+
+ @Html.DisplayFor(model => model.DistanceEdge) +
+
+ @Html.DisplayNameFor(model => model.LengthSection) +
+
+ @Html.DisplayFor(model => model.LengthSection) +
+
+ @Html.DisplayNameFor(model => model.LengthSurface) +
+
+ @Html.DisplayFor(model => model.LengthSurface) +
+
+ @Html.DisplayNameFor(model => model.LocationLeft) +
+
+ @Html.DisplayFor(model => model.LocationLeft) +
+
+ @Html.DisplayNameFor(model => model.LocationRight) +
+
+ @Html.DisplayFor(model => model.LocationRight) +
+
+ @Html.DisplayNameFor(model => model.SafetyAvailability) +
+
+ @Html.DisplayFor(model => model.SafetyAvailability) +
+
+ @Html.DisplayNameFor(model => model.TubeAvailability) +
+
+ @Html.DisplayFor(model => model.TubeAvailability) +
+
+ @Html.DisplayNameFor(model => model.Width) +
+
+ @Html.DisplayFor(model => model.Width) +
+
+ @Html.DisplayNameFor(model => model.YearBuild) +
+
+ @Html.DisplayFor(model => model.YearBuild) +
+
+ @Html.DisplayNameFor(model => model.YearRepair) +
+
+ @Html.DisplayFor(model => model.YearRepair) +
+
+ +
+
+ | + Back to List +
+
+
+ + diff --git a/Views/CrossSection/Details.cshtml b/Views/CrossSection/Details.cshtml new file mode 100755 index 0000000..bc92c4e --- /dev/null +++ b/Views/CrossSection/Details.cshtml @@ -0,0 +1,99 @@ +@model Maps.Entities.CrossSection + +@{ + Layout = null; +} + + + + + + + Details + + + +
+

CrossSection

+
+
+
+ @Html.DisplayNameFor(model => model.Angle) +
+
+ @Html.DisplayFor(model => model.Angle) +
+
+ @Html.DisplayNameFor(model => model.Direction) +
+
+ @Html.DisplayFor(model => model.Direction) +
+
+ @Html.DisplayNameFor(model => model.DistanceEdge) +
+
+ @Html.DisplayFor(model => model.DistanceEdge) +
+
+ @Html.DisplayNameFor(model => model.LengthSection) +
+
+ @Html.DisplayFor(model => model.LengthSection) +
+
+ @Html.DisplayNameFor(model => model.LengthSurface) +
+
+ @Html.DisplayFor(model => model.LengthSurface) +
+
+ @Html.DisplayNameFor(model => model.LocationLeft) +
+
+ @Html.DisplayFor(model => model.LocationLeft) +
+
+ @Html.DisplayNameFor(model => model.LocationRight) +
+
+ @Html.DisplayFor(model => model.LocationRight) +
+
+ @Html.DisplayNameFor(model => model.SafetyAvailability) +
+
+ @Html.DisplayFor(model => model.SafetyAvailability) +
+
+ @Html.DisplayNameFor(model => model.TubeAvailability) +
+
+ @Html.DisplayFor(model => model.TubeAvailability) +
+
+ @Html.DisplayNameFor(model => model.Width) +
+
+ @Html.DisplayFor(model => model.Width) +
+
+ @Html.DisplayNameFor(model => model.YearBuild) +
+
+ @Html.DisplayFor(model => model.YearBuild) +
+
+ @Html.DisplayNameFor(model => model.YearRepair) +
+
+ @Html.DisplayFor(model => model.YearRepair) +
+
+
+ + + diff --git a/Views/CrossSection/Edit.cshtml b/Views/CrossSection/Edit.cshtml new file mode 100755 index 0000000..c80923d --- /dev/null +++ b/Views/CrossSection/Edit.cshtml @@ -0,0 +1,147 @@ +@model Maps.Entities.CrossSection + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

CrossSection

+
+
+ +
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/CrossSection/Index.cshtml b/Views/CrossSection/Index.cshtml new file mode 100755 index 0000000..65d00ad --- /dev/null +++ b/Views/CrossSection/Index.cshtml @@ -0,0 +1,109 @@ +@model IEnumerable + +@{ + Layout = null; +} + + + + + + + Index + + +

+ Create New +

+ + + + + + + + + + + + + + + + + + + +@foreach (var item in Model) { + + + + + + + + + + + + + + + +} + +
+ @Html.DisplayNameFor(model => model.Angle) + + @Html.DisplayNameFor(model => model.Direction) + + @Html.DisplayNameFor(model => model.DistanceEdge) + + @Html.DisplayNameFor(model => model.LengthSection) + + @Html.DisplayNameFor(model => model.LengthSurface) + + @Html.DisplayNameFor(model => model.LocationLeft) + + @Html.DisplayNameFor(model => model.LocationRight) + + @Html.DisplayNameFor(model => model.SafetyAvailability) + + @Html.DisplayNameFor(model => model.TubeAvailability) + + @Html.DisplayNameFor(model => model.Width) + + @Html.DisplayNameFor(model => model.YearBuild) + + @Html.DisplayNameFor(model => model.YearRepair) +
+ @Html.DisplayFor(modelItem => item.Angle) + + @Html.DisplayFor(modelItem => item.Direction) + + @Html.DisplayFor(modelItem => item.DistanceEdge) + + @Html.DisplayFor(modelItem => item.LengthSection) + + @Html.DisplayFor(modelItem => item.LengthSurface) + + @Html.DisplayFor(modelItem => item.LocationLeft) + + @Html.DisplayFor(modelItem => item.LocationRight) + + @Html.DisplayFor(modelItem => item.SafetyAvailability) + + @Html.DisplayFor(modelItem => item.TubeAvailability) + + @Html.DisplayFor(modelItem => item.Width) + + @Html.DisplayFor(modelItem => item.YearBuild) + + @Html.DisplayFor(modelItem => item.YearRepair) + + Edit | + Details | + Delete +
+ + diff --git a/Views/DepartmentAffiliation/Create.cshtml b/Views/DepartmentAffiliation/Create.cshtml new file mode 100755 index 0000000..de6d999 --- /dev/null +++ b/Views/DepartmentAffiliation/Create.cshtml @@ -0,0 +1,41 @@ +@model Maps.Entities.DepartmentAffiliation + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

DepartmentAffiliation

+
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/DepartmentAffiliation/Delete.cshtml b/Views/DepartmentAffiliation/Delete.cshtml new file mode 100755 index 0000000..b313497 --- /dev/null +++ b/Views/DepartmentAffiliation/Delete.cshtml @@ -0,0 +1,37 @@ +@model Maps.Entities.DepartmentAffiliation + +@{ + Layout = null; +} + + + + + + + Delete + + + +

Are you sure you want to delete this?

+
+

DepartmentAffiliation

+
+
+
+ @Html.DisplayNameFor(model => model.Name) +
+
+ @Html.DisplayFor(model => model.Name) +
+
+ +
+
+ | + Back to List +
+
+
+ + diff --git a/Views/DepartmentAffiliation/Details.cshtml b/Views/DepartmentAffiliation/Details.cshtml new file mode 100755 index 0000000..f1c6116 --- /dev/null +++ b/Views/DepartmentAffiliation/Details.cshtml @@ -0,0 +1,33 @@ +@model Maps.Entities.DepartmentAffiliation + +@{ + Layout = null; +} + + + + + + + Details + + + +
+

DepartmentAffiliation

+
+
+
+ @Html.DisplayNameFor(model => model.Name) +
+
+ @Html.DisplayFor(model => model.Name) +
+
+
+ + + diff --git a/Views/DepartmentAffiliation/Edit.cshtml b/Views/DepartmentAffiliation/Edit.cshtml new file mode 100755 index 0000000..ef141f7 --- /dev/null +++ b/Views/DepartmentAffiliation/Edit.cshtml @@ -0,0 +1,42 @@ +@model Maps.Entities.DepartmentAffiliation + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

DepartmentAffiliation

+
+
+ +
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/DepartmentAffiliation/Index.cshtml b/Views/DepartmentAffiliation/Index.cshtml new file mode 100755 index 0000000..d4a7ce1 --- /dev/null +++ b/Views/DepartmentAffiliation/Index.cshtml @@ -0,0 +1,43 @@ +@model IEnumerable + +@{ + Layout = null; +} + + + + + + + Index + + +

+ Create New +

+ + + + + + + + +@foreach (var item in Model) { + + + + +} + +
+ @Html.DisplayNameFor(model => model.Name) +
+ @Html.DisplayFor(modelItem => item.Name) + + Edit | + Details | + Delete +
+ + diff --git a/Views/FlowIntensity/Create.cshtml b/Views/FlowIntensity/Create.cshtml new file mode 100755 index 0000000..7c90ad2 --- /dev/null +++ b/Views/FlowIntensity/Create.cshtml @@ -0,0 +1,212 @@ +@model Maps.Entities.FlowIntensity + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

FlowIntensity

+
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/FlowIntensity/Delete.cshtml b/Views/FlowIntensity/Delete.cshtml new file mode 100755 index 0000000..aefe204 --- /dev/null +++ b/Views/FlowIntensity/Delete.cshtml @@ -0,0 +1,163 @@ +@model Maps.Entities.FlowIntensity + +@{ + Layout = null; +} + + + + + + + Delete + + + +

Are you sure you want to delete this?

+
+

FlowIntensity

+
+
+
+ @Html.DisplayNameFor(model => model.Begin) +
+
+ @Html.DisplayFor(model => model.Begin) +
+
+ @Html.DisplayNameFor(model => model.DateAdd) +
+
+ @Html.DisplayFor(model => model.DateAdd) +
+
+ @Html.DisplayNameFor(model => model.End) +
+
+ @Html.DisplayFor(model => model.End) +
+
+ @Html.DisplayNameFor(model => model.IntensityBus) +
+
+ @Html.DisplayFor(model => model.IntensityBus) +
+
+ @Html.DisplayNameFor(model => model.IntensityBusCoupled) +
+
+ @Html.DisplayFor(model => model.IntensityBusCoupled) +
+
+ @Html.DisplayNameFor(model => model.IntensityCar) +
+
+ @Html.DisplayFor(model => model.IntensityCar) +
+
+ @Html.DisplayNameFor(model => model.IntensityIncrease) +
+
+ @Html.DisplayFor(model => model.IntensityIncrease) +
+
+ @Html.DisplayNameFor(model => model.IntensityLorryThirty) +
+
+ @Html.DisplayFor(model => model.IntensityLorryThirty) +
+
+ @Html.DisplayNameFor(model => model.IntensityLorryTwelve) +
+
+ @Html.DisplayFor(model => model.IntensityLorryTwelve) +
+
+ @Html.DisplayNameFor(model => model.IntensityLorryTwelveTwenty) +
+
+ @Html.DisplayFor(model => model.IntensityLorryTwelveTwenty) +
+
+ @Html.DisplayNameFor(model => model.IntensityLorryTwentyThirty) +
+
+ @Html.DisplayFor(model => model.IntensityLorryTwentyThirty) +
+
+ @Html.DisplayNameFor(model => model.IntensityMoto) +
+
+ @Html.DisplayFor(model => model.IntensityMoto) +
+
+ @Html.DisplayNameFor(model => model.IntensityMotoSidecar) +
+
+ @Html.DisplayFor(model => model.IntensityMotoSidecar) +
+
+ @Html.DisplayNameFor(model => model.IntensityTotal) +
+
+ @Html.DisplayFor(model => model.IntensityTotal) +
+
+ @Html.DisplayNameFor(model => model.IntensityTractorOverTen) +
+
+ @Html.DisplayFor(model => model.IntensityTractorOverTen) +
+
+ @Html.DisplayNameFor(model => model.IntensityTractorUnderTen) +
+
+ @Html.DisplayFor(model => model.IntensityTractorUnderTen) +
+
+ @Html.DisplayNameFor(model => model.IntensityTruckEightFourteen) +
+
+ @Html.DisplayFor(model => model.IntensityTruckEightFourteen) +
+
+ @Html.DisplayNameFor(model => model.IntensityTruckFourteen) +
+
+ @Html.DisplayFor(model => model.IntensityTruckFourteen) +
+
+ @Html.DisplayNameFor(model => model.IntensityTruckSixEight) +
+
+ @Html.DisplayFor(model => model.IntensityTruckSixEight) +
+
+ @Html.DisplayNameFor(model => model.IntensityTruckTwo) +
+
+ @Html.DisplayFor(model => model.IntensityTruckTwo) +
+
+ @Html.DisplayNameFor(model => model.IntensityTruckTwoSix) +
+
+ @Html.DisplayFor(model => model.IntensityTruckTwoSix) +
+
+ @Html.DisplayNameFor(model => model.Location) +
+
+ @Html.DisplayFor(model => model.Location) +
+
+ +
+
+ | + Back to List +
+
+
+ + diff --git a/Views/FlowIntensity/Details.cshtml b/Views/FlowIntensity/Details.cshtml new file mode 100755 index 0000000..0861b7e --- /dev/null +++ b/Views/FlowIntensity/Details.cshtml @@ -0,0 +1,159 @@ +@model Maps.Entities.FlowIntensity + +@{ + Layout = null; +} + + + + + + + Details + + + +
+

FlowIntensity

+
+
+
+ @Html.DisplayNameFor(model => model.Begin) +
+
+ @Html.DisplayFor(model => model.Begin) +
+
+ @Html.DisplayNameFor(model => model.DateAdd) +
+
+ @Html.DisplayFor(model => model.DateAdd) +
+
+ @Html.DisplayNameFor(model => model.End) +
+
+ @Html.DisplayFor(model => model.End) +
+
+ @Html.DisplayNameFor(model => model.IntensityBus) +
+
+ @Html.DisplayFor(model => model.IntensityBus) +
+
+ @Html.DisplayNameFor(model => model.IntensityBusCoupled) +
+
+ @Html.DisplayFor(model => model.IntensityBusCoupled) +
+
+ @Html.DisplayNameFor(model => model.IntensityCar) +
+
+ @Html.DisplayFor(model => model.IntensityCar) +
+
+ @Html.DisplayNameFor(model => model.IntensityIncrease) +
+
+ @Html.DisplayFor(model => model.IntensityIncrease) +
+
+ @Html.DisplayNameFor(model => model.IntensityLorryThirty) +
+
+ @Html.DisplayFor(model => model.IntensityLorryThirty) +
+
+ @Html.DisplayNameFor(model => model.IntensityLorryTwelve) +
+
+ @Html.DisplayFor(model => model.IntensityLorryTwelve) +
+
+ @Html.DisplayNameFor(model => model.IntensityLorryTwelveTwenty) +
+
+ @Html.DisplayFor(model => model.IntensityLorryTwelveTwenty) +
+
+ @Html.DisplayNameFor(model => model.IntensityLorryTwentyThirty) +
+
+ @Html.DisplayFor(model => model.IntensityLorryTwentyThirty) +
+
+ @Html.DisplayNameFor(model => model.IntensityMoto) +
+
+ @Html.DisplayFor(model => model.IntensityMoto) +
+
+ @Html.DisplayNameFor(model => model.IntensityMotoSidecar) +
+
+ @Html.DisplayFor(model => model.IntensityMotoSidecar) +
+
+ @Html.DisplayNameFor(model => model.IntensityTotal) +
+
+ @Html.DisplayFor(model => model.IntensityTotal) +
+
+ @Html.DisplayNameFor(model => model.IntensityTractorOverTen) +
+
+ @Html.DisplayFor(model => model.IntensityTractorOverTen) +
+
+ @Html.DisplayNameFor(model => model.IntensityTractorUnderTen) +
+
+ @Html.DisplayFor(model => model.IntensityTractorUnderTen) +
+
+ @Html.DisplayNameFor(model => model.IntensityTruckEightFourteen) +
+
+ @Html.DisplayFor(model => model.IntensityTruckEightFourteen) +
+
+ @Html.DisplayNameFor(model => model.IntensityTruckFourteen) +
+
+ @Html.DisplayFor(model => model.IntensityTruckFourteen) +
+
+ @Html.DisplayNameFor(model => model.IntensityTruckSixEight) +
+
+ @Html.DisplayFor(model => model.IntensityTruckSixEight) +
+
+ @Html.DisplayNameFor(model => model.IntensityTruckTwo) +
+
+ @Html.DisplayFor(model => model.IntensityTruckTwo) +
+
+ @Html.DisplayNameFor(model => model.IntensityTruckTwoSix) +
+
+ @Html.DisplayFor(model => model.IntensityTruckTwoSix) +
+
+ @Html.DisplayNameFor(model => model.Location) +
+
+ @Html.DisplayFor(model => model.Location) +
+
+
+ + + diff --git a/Views/FlowIntensity/Edit.cshtml b/Views/FlowIntensity/Edit.cshtml new file mode 100755 index 0000000..80b5bc0 --- /dev/null +++ b/Views/FlowIntensity/Edit.cshtml @@ -0,0 +1,217 @@ +@model Maps.Entities.FlowIntensity + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

FlowIntensity

+
+
+ +
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/FlowIntensity/Index.cshtml b/Views/FlowIntensity/Index.cshtml new file mode 100755 index 0000000..19e0b34 --- /dev/null +++ b/Views/FlowIntensity/Index.cshtml @@ -0,0 +1,169 @@ +@model IEnumerable + +@{ + Layout = null; +} + + + + + + + Index + + +

+ Create New +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@foreach (var item in Model) { + + + + + + + + + + + + + + + + + + + + + + + + + +} + +
+ @Html.DisplayNameFor(model => model.Begin) + + @Html.DisplayNameFor(model => model.DateAdd) + + @Html.DisplayNameFor(model => model.End) + + @Html.DisplayNameFor(model => model.IntensityBus) + + @Html.DisplayNameFor(model => model.IntensityBusCoupled) + + @Html.DisplayNameFor(model => model.IntensityCar) + + @Html.DisplayNameFor(model => model.IntensityIncrease) + + @Html.DisplayNameFor(model => model.IntensityLorryThirty) + + @Html.DisplayNameFor(model => model.IntensityLorryTwelve) + + @Html.DisplayNameFor(model => model.IntensityLorryTwelveTwenty) + + @Html.DisplayNameFor(model => model.IntensityLorryTwentyThirty) + + @Html.DisplayNameFor(model => model.IntensityMoto) + + @Html.DisplayNameFor(model => model.IntensityMotoSidecar) + + @Html.DisplayNameFor(model => model.IntensityTotal) + + @Html.DisplayNameFor(model => model.IntensityTractorOverTen) + + @Html.DisplayNameFor(model => model.IntensityTractorUnderTen) + + @Html.DisplayNameFor(model => model.IntensityTruckEightFourteen) + + @Html.DisplayNameFor(model => model.IntensityTruckFourteen) + + @Html.DisplayNameFor(model => model.IntensityTruckSixEight) + + @Html.DisplayNameFor(model => model.IntensityTruckTwo) + + @Html.DisplayNameFor(model => model.IntensityTruckTwoSix) + + @Html.DisplayNameFor(model => model.Location) +
+ @Html.DisplayFor(modelItem => item.Begin) + + @Html.DisplayFor(modelItem => item.DateAdd) + + @Html.DisplayFor(modelItem => item.End) + + @Html.DisplayFor(modelItem => item.IntensityBus) + + @Html.DisplayFor(modelItem => item.IntensityBusCoupled) + + @Html.DisplayFor(modelItem => item.IntensityCar) + + @Html.DisplayFor(modelItem => item.IntensityIncrease) + + @Html.DisplayFor(modelItem => item.IntensityLorryThirty) + + @Html.DisplayFor(modelItem => item.IntensityLorryTwelve) + + @Html.DisplayFor(modelItem => item.IntensityLorryTwelveTwenty) + + @Html.DisplayFor(modelItem => item.IntensityLorryTwentyThirty) + + @Html.DisplayFor(modelItem => item.IntensityMoto) + + @Html.DisplayFor(modelItem => item.IntensityMotoSidecar) + + @Html.DisplayFor(modelItem => item.IntensityTotal) + + @Html.DisplayFor(modelItem => item.IntensityTractorOverTen) + + @Html.DisplayFor(modelItem => item.IntensityTractorUnderTen) + + @Html.DisplayFor(modelItem => item.IntensityTruckEightFourteen) + + @Html.DisplayFor(modelItem => item.IntensityTruckFourteen) + + @Html.DisplayFor(modelItem => item.IntensityTruckSixEight) + + @Html.DisplayFor(modelItem => item.IntensityTruckTwo) + + @Html.DisplayFor(modelItem => item.IntensityTruckTwoSix) + + @Html.DisplayFor(modelItem => item.Location) + + Edit | + Details | + Delete +
+ + diff --git a/Views/Home/About.cshtml b/Views/Home/About.cshtml deleted file mode 100644 index 50476d1..0000000 --- a/Views/Home/About.cshtml +++ /dev/null @@ -1,7 +0,0 @@ -@{ - ViewData["Title"] = "About"; -} -

@ViewData["Title"].

-

@ViewData["Message"]

- -

Use this area to provide additional information.

diff --git a/Views/Home/Contact.cshtml b/Views/Home/Contact.cshtml deleted file mode 100644 index 15c12c6..0000000 --- a/Views/Home/Contact.cshtml +++ /dev/null @@ -1,17 +0,0 @@ -@{ - ViewData["Title"] = "Contact"; -} -

@ViewData["Title"].

-

@ViewData["Message"]

- -
- One Microsoft Way
- Redmond, WA 98052-6399
- P: - 425.555.0100 -
- -
- Support: Support@example.com
- Marketing: Marketing@example.com -
diff --git a/Views/Home/Index.cshtml b/Views/Home/Index.cshtml deleted file mode 100644 index 3cd243d..0000000 --- a/Views/Home/Index.cshtml +++ /dev/null @@ -1,109 +0,0 @@ -@{ - ViewData["Title"] = "Home Page"; -} - - - - diff --git a/Views/Organization/Create.cshtml b/Views/Organization/Create.cshtml new file mode 100755 index 0000000..fc7a248 --- /dev/null +++ b/Views/Organization/Create.cshtml @@ -0,0 +1,48 @@ +@model Maps.Entities.Organization + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

Organization

+
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/Organization/Delete.cshtml b/Views/Organization/Delete.cshtml new file mode 100755 index 0000000..49e3098 --- /dev/null +++ b/Views/Organization/Delete.cshtml @@ -0,0 +1,43 @@ +@model Maps.Entities.Organization + +@{ + Layout = null; +} + + + + + + + Delete + + + +

Are you sure you want to delete this?

+
+

Organization

+
+
+
+ @Html.DisplayNameFor(model => model.DateAdd) +
+
+ @Html.DisplayFor(model => model.DateAdd) +
+
+ @Html.DisplayNameFor(model => model.Name) +
+
+ @Html.DisplayFor(model => model.Name) +
+
+ +
+
+ | + Back to List +
+
+
+ + diff --git a/Views/Organization/Details.cshtml b/Views/Organization/Details.cshtml new file mode 100755 index 0000000..a644a7d --- /dev/null +++ b/Views/Organization/Details.cshtml @@ -0,0 +1,39 @@ +@model Maps.Entities.Organization + +@{ + Layout = null; +} + + + + + + + Details + + + +
+

Organization

+
+
+
+ @Html.DisplayNameFor(model => model.DateAdd) +
+
+ @Html.DisplayFor(model => model.DateAdd) +
+
+ @Html.DisplayNameFor(model => model.Name) +
+
+ @Html.DisplayFor(model => model.Name) +
+
+
+ + + diff --git a/Views/Organization/Edit.cshtml b/Views/Organization/Edit.cshtml new file mode 100755 index 0000000..c15ee80 --- /dev/null +++ b/Views/Organization/Edit.cshtml @@ -0,0 +1,49 @@ +@model Maps.Entities.Organization + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

Organization

+
+
+ +
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/Organization/Index.cshtml b/Views/Organization/Index.cshtml new file mode 100755 index 0000000..f28448a --- /dev/null +++ b/Views/Organization/Index.cshtml @@ -0,0 +1,49 @@ +@model IEnumerable + +@{ + Layout = null; +} + + + + + + + Index + + +

+ Create New +

+ + + + + + + + + +@foreach (var item in Model) { + + + + + +} + +
+ @Html.DisplayNameFor(model => model.DateAdd) + + @Html.DisplayNameFor(model => model.Name) +
+ @Html.DisplayFor(modelItem => item.DateAdd) + + @Html.DisplayFor(modelItem => item.Name) + + Edit | + Details | + Delete +
+ + diff --git a/Views/Region/Create.cshtml b/Views/Region/Create.cshtml new file mode 100755 index 0000000..fb7cd88 --- /dev/null +++ b/Views/Region/Create.cshtml @@ -0,0 +1,48 @@ +@model Maps.Entities.Region + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

Region

+
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/Region/Delete.cshtml b/Views/Region/Delete.cshtml new file mode 100755 index 0000000..3e971df --- /dev/null +++ b/Views/Region/Delete.cshtml @@ -0,0 +1,43 @@ +@model Maps.Entities.Region + +@{ + Layout = null; +} + + + + + + + Delete + + + +

Are you sure you want to delete this?

+
+

Region

+
+
+
+ @Html.DisplayNameFor(model => model.Index) +
+
+ @Html.DisplayFor(model => model.Index) +
+
+ @Html.DisplayNameFor(model => model.Name) +
+
+ @Html.DisplayFor(model => model.Name) +
+
+ +
+
+ | + Back to List +
+
+
+ + diff --git a/Views/Region/Details.cshtml b/Views/Region/Details.cshtml new file mode 100755 index 0000000..51c0950 --- /dev/null +++ b/Views/Region/Details.cshtml @@ -0,0 +1,39 @@ +@model Maps.Entities.Region + +@{ + Layout = null; +} + + + + + + + Details + + + +
+

Region

+
+
+
+ @Html.DisplayNameFor(model => model.Index) +
+
+ @Html.DisplayFor(model => model.Index) +
+
+ @Html.DisplayNameFor(model => model.Name) +
+
+ @Html.DisplayFor(model => model.Name) +
+
+
+ + + diff --git a/Views/Region/Edit.cshtml b/Views/Region/Edit.cshtml new file mode 100755 index 0000000..649eb75 --- /dev/null +++ b/Views/Region/Edit.cshtml @@ -0,0 +1,49 @@ +@model Maps.Entities.Region + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

Region

+
+
+ +
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/Region/Index.cshtml b/Views/Region/Index.cshtml new file mode 100755 index 0000000..d0bac31 --- /dev/null +++ b/Views/Region/Index.cshtml @@ -0,0 +1,49 @@ +@model IEnumerable + +@{ + Layout = null; +} + + + + + + + Index + + +

+ Create New +

+ + + + + + + + + +@foreach (var item in Model) { + + + + + +} + +
+ @Html.DisplayNameFor(model => model.Index) + + @Html.DisplayNameFor(model => model.Name) +
+ @Html.DisplayFor(modelItem => item.Index) + + @Html.DisplayFor(modelItem => item.Name) + + Edit | + Details | + Delete +
+ + diff --git a/Views/Road/Create.cshtml b/Views/Road/Create.cshtml new file mode 100755 index 0000000..110491d --- /dev/null +++ b/Views/Road/Create.cshtml @@ -0,0 +1,110 @@ +@model Maps.Entities.Road + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

Road

+
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/Road/Delete.cshtml b/Views/Road/Delete.cshtml new file mode 100755 index 0000000..20ee0cd --- /dev/null +++ b/Views/Road/Delete.cshtml @@ -0,0 +1,91 @@ +@model Maps.Entities.Road + +@{ + Layout = null; +} + + + + + + + Delete + + + +

Are you sure you want to delete this?

+
+

Road

+
+
+
+ @Html.DisplayNameFor(model => model.AcceptTransferDoc) +
+
+ @Html.DisplayFor(model => model.AcceptTransferDoc) +
+
+ @Html.DisplayNameFor(model => model.AcceptanceDoc) +
+
+ @Html.DisplayFor(model => model.AcceptanceDoc) +
+
+ @Html.DisplayNameFor(model => model.AuthorityAct) +
+
+ @Html.DisplayFor(model => model.AuthorityAct) +
+
+ @Html.DisplayNameFor(model => model.EconomicValue) +
+
+ @Html.DisplayFor(model => model.EconomicValue) +
+
+ @Html.DisplayNameFor(model => model.HistoricalBackground) +
+
+ @Html.DisplayFor(model => model.HistoricalBackground) +
+
+ @Html.DisplayNameFor(model => model.Index) +
+
+ @Html.DisplayFor(model => model.Index) +
+
+ @Html.DisplayNameFor(model => model.LawDoc) +
+
+ @Html.DisplayFor(model => model.LawDoc) +
+
+ @Html.DisplayNameFor(model => model.Length) +
+
+ @Html.DisplayFor(model => model.Length) +
+
+ @Html.DisplayNameFor(model => model.Name) +
+
+ @Html.DisplayFor(model => model.Name) +
+
+ @Html.DisplayNameFor(model => model.Value) +
+
+ @Html.DisplayFor(model => model.Value) +
+
+ +
+
+ | + Back to List +
+
+
+ + diff --git a/Views/Road/Details.cshtml b/Views/Road/Details.cshtml new file mode 100755 index 0000000..33c0cdb --- /dev/null +++ b/Views/Road/Details.cshtml @@ -0,0 +1,87 @@ +@model Maps.Entities.Road + +@{ + Layout = null; +} + + + + + + + Details + + + +
+

Road

+
+
+
+ @Html.DisplayNameFor(model => model.AcceptTransferDoc) +
+
+ @Html.DisplayFor(model => model.AcceptTransferDoc) +
+
+ @Html.DisplayNameFor(model => model.AcceptanceDoc) +
+
+ @Html.DisplayFor(model => model.AcceptanceDoc) +
+
+ @Html.DisplayNameFor(model => model.AuthorityAct) +
+
+ @Html.DisplayFor(model => model.AuthorityAct) +
+
+ @Html.DisplayNameFor(model => model.EconomicValue) +
+
+ @Html.DisplayFor(model => model.EconomicValue) +
+
+ @Html.DisplayNameFor(model => model.HistoricalBackground) +
+
+ @Html.DisplayFor(model => model.HistoricalBackground) +
+
+ @Html.DisplayNameFor(model => model.Index) +
+
+ @Html.DisplayFor(model => model.Index) +
+
+ @Html.DisplayNameFor(model => model.LawDoc) +
+
+ @Html.DisplayFor(model => model.LawDoc) +
+
+ @Html.DisplayNameFor(model => model.Length) +
+
+ @Html.DisplayFor(model => model.Length) +
+
+ @Html.DisplayNameFor(model => model.Name) +
+
+ @Html.DisplayFor(model => model.Name) +
+
+ @Html.DisplayNameFor(model => model.Value) +
+
+ @Html.DisplayFor(model => model.Value) +
+
+
+ + + diff --git a/Views/Road/Edit.cshtml b/Views/Road/Edit.cshtml new file mode 100755 index 0000000..d2bbcab --- /dev/null +++ b/Views/Road/Edit.cshtml @@ -0,0 +1,112 @@ +@model Maps.Entities.Road + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

Road

+
+
+ +
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/Road/Index.cshtml b/Views/Road/Index.cshtml new file mode 100755 index 0000000..f511cde --- /dev/null +++ b/Views/Road/Index.cshtml @@ -0,0 +1,97 @@ +@model IEnumerable + +@{ + Layout = null; +} + + + + + + + Index + + +

+ Create New +

+ + + + + + + + + + + + + + + + + +@foreach (var item in Model) { + + + + + + + + + + + + + +} + +
+ @Html.DisplayNameFor(model => model.AcceptTransferDoc) + + @Html.DisplayNameFor(model => model.AcceptanceDoc) + + @Html.DisplayNameFor(model => model.AuthorityAct) + + @Html.DisplayNameFor(model => model.EconomicValue) + + @Html.DisplayNameFor(model => model.HistoricalBackground) + + @Html.DisplayNameFor(model => model.Index) + + @Html.DisplayNameFor(model => model.LawDoc) + + @Html.DisplayNameFor(model => model.Length) + + @Html.DisplayNameFor(model => model.Name) + + @Html.DisplayNameFor(model => model.Value) +
+ @Html.DisplayFor(modelItem => item.AcceptTransferDoc) + + @Html.DisplayFor(modelItem => item.AcceptanceDoc) + + @Html.DisplayFor(modelItem => item.AuthorityAct) + + @Html.DisplayFor(modelItem => item.EconomicValue) + + @Html.DisplayFor(modelItem => item.HistoricalBackground) + + @Html.DisplayFor(modelItem => item.Index) + + @Html.DisplayFor(modelItem => item.LawDoc) + + @Html.DisplayFor(modelItem => item.Length) + + @Html.DisplayFor(modelItem => item.Name) + + @Html.DisplayFor(modelItem => item.Value) + + Edit | + Details | + Delete +
+ + diff --git a/Views/RoadCategory/Create.cshtml b/Views/RoadCategory/Create.cshtml new file mode 100755 index 0000000..b10b788 --- /dev/null +++ b/Views/RoadCategory/Create.cshtml @@ -0,0 +1,41 @@ +@model Maps.Entities.RoadCategory + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

RoadCategory

+
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/RoadCategory/Delete.cshtml b/Views/RoadCategory/Delete.cshtml new file mode 100755 index 0000000..43c2904 --- /dev/null +++ b/Views/RoadCategory/Delete.cshtml @@ -0,0 +1,37 @@ +@model Maps.Entities.RoadCategory + +@{ + Layout = null; +} + + + + + + + Delete + + + +

Are you sure you want to delete this?

+
+

RoadCategory

+
+
+
+ @Html.DisplayNameFor(model => model.Value) +
+
+ @Html.DisplayFor(model => model.Value) +
+
+ +
+
+ | + Back to List +
+
+
+ + diff --git a/Views/RoadCategory/Details.cshtml b/Views/RoadCategory/Details.cshtml new file mode 100755 index 0000000..12c6dc0 --- /dev/null +++ b/Views/RoadCategory/Details.cshtml @@ -0,0 +1,33 @@ +@model Maps.Entities.RoadCategory + +@{ + Layout = null; +} + + + + + + + Details + + + +
+

RoadCategory

+
+
+
+ @Html.DisplayNameFor(model => model.Value) +
+
+ @Html.DisplayFor(model => model.Value) +
+
+
+ + + diff --git a/Views/RoadCategory/Edit.cshtml b/Views/RoadCategory/Edit.cshtml new file mode 100755 index 0000000..0e0590c --- /dev/null +++ b/Views/RoadCategory/Edit.cshtml @@ -0,0 +1,42 @@ +@model Maps.Entities.RoadCategory + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

RoadCategory

+
+
+ +
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/RoadCategory/Index.cshtml b/Views/RoadCategory/Index.cshtml new file mode 100755 index 0000000..7130443 --- /dev/null +++ b/Views/RoadCategory/Index.cshtml @@ -0,0 +1,43 @@ +@model IEnumerable + +@{ + Layout = null; +} + + + + + + + Index + + +

+ Create New +

+ + + + + + + + +@foreach (var item in Model) { + + + + +} + +
+ @Html.DisplayNameFor(model => model.Value) +
+ @Html.DisplayFor(modelItem => item.Value) + + Edit | + Details | + Delete +
+ + diff --git a/Views/RoadDirection/Create.cshtml b/Views/RoadDirection/Create.cshtml new file mode 100755 index 0000000..92a046a --- /dev/null +++ b/Views/RoadDirection/Create.cshtml @@ -0,0 +1,41 @@ +@model Maps.Entities.RoadDirection + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

RoadDirection

+
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/RoadDirection/Delete.cshtml b/Views/RoadDirection/Delete.cshtml new file mode 100755 index 0000000..0af54f6 --- /dev/null +++ b/Views/RoadDirection/Delete.cshtml @@ -0,0 +1,37 @@ +@model Maps.Entities.RoadDirection + +@{ + Layout = null; +} + + + + + + + Delete + + + +

Are you sure you want to delete this?

+
+

RoadDirection

+
+
+
+ @Html.DisplayNameFor(model => model.DirectionName) +
+
+ @Html.DisplayFor(model => model.DirectionName) +
+
+ +
+
+ | + Back to List +
+
+
+ + diff --git a/Views/RoadDirection/Details.cshtml b/Views/RoadDirection/Details.cshtml new file mode 100755 index 0000000..720c2da --- /dev/null +++ b/Views/RoadDirection/Details.cshtml @@ -0,0 +1,33 @@ +@model Maps.Entities.RoadDirection + +@{ + Layout = null; +} + + + + + + + Details + + + +
+

RoadDirection

+
+
+
+ @Html.DisplayNameFor(model => model.DirectionName) +
+
+ @Html.DisplayFor(model => model.DirectionName) +
+
+
+ + + diff --git a/Views/RoadDirection/Edit.cshtml b/Views/RoadDirection/Edit.cshtml new file mode 100755 index 0000000..dc0f150 --- /dev/null +++ b/Views/RoadDirection/Edit.cshtml @@ -0,0 +1,42 @@ +@model Maps.Entities.RoadDirection + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

RoadDirection

+
+
+ +
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/RoadDirection/Index.cshtml b/Views/RoadDirection/Index.cshtml new file mode 100755 index 0000000..0b35814 --- /dev/null +++ b/Views/RoadDirection/Index.cshtml @@ -0,0 +1,43 @@ +@model IEnumerable + +@{ + Layout = null; +} + + + + + + + Index + + +

+ Create New +

+ + + + + + + + +@foreach (var item in Model) { + + + + +} + +
+ @Html.DisplayNameFor(model => model.DirectionName) +
+ @Html.DisplayFor(modelItem => item.DirectionName) + + Edit | + Details | + Delete +
+ + diff --git a/Views/RoadPassport/Create.cshtml b/Views/RoadPassport/Create.cshtml new file mode 100755 index 0000000..810278d --- /dev/null +++ b/Views/RoadPassport/Create.cshtml @@ -0,0 +1,60 @@ +@model Maps.Entities.RoadPassport + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

RoadPassport

+
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/RoadPassport/Delete.cshtml b/Views/RoadPassport/Delete.cshtml new file mode 100755 index 0000000..307cb53 --- /dev/null +++ b/Views/RoadPassport/Delete.cshtml @@ -0,0 +1,43 @@ +@model Maps.Entities.RoadPassport + +@{ + Layout = null; +} + + + + + + + Delete + + + +

Are you sure you want to delete this?

+
+

RoadPassport

+
+
+
+ @Html.DisplayNameFor(model => model.Begin) +
+
+ @Html.DisplayFor(model => model.Begin) +
+
+ @Html.DisplayNameFor(model => model.End) +
+
+ @Html.DisplayFor(model => model.End) +
+
+ +
+
+ | + Back to List +
+
+
+ + diff --git a/Views/RoadPassport/Details.cshtml b/Views/RoadPassport/Details.cshtml new file mode 100755 index 0000000..087ed8b --- /dev/null +++ b/Views/RoadPassport/Details.cshtml @@ -0,0 +1,39 @@ +@model Maps.Entities.RoadPassport + +@{ + Layout = null; +} + + + + + + + Details + + + +
+

RoadPassport

+
+
+
+ @Html.DisplayNameFor(model => model.Begin) +
+
+ @Html.DisplayFor(model => model.Begin) +
+
+ @Html.DisplayNameFor(model => model.End) +
+
+ @Html.DisplayFor(model => model.End) +
+
+
+ + + diff --git a/Views/RoadPassport/Edit.cshtml b/Views/RoadPassport/Edit.cshtml new file mode 100755 index 0000000..27cd8c7 --- /dev/null +++ b/Views/RoadPassport/Edit.cshtml @@ -0,0 +1,63 @@ +@model Maps.Entities.RoadPassport + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

RoadPassport

+
+
+ +
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/RoadPassport/Index.cshtml b/Views/RoadPassport/Index.cshtml new file mode 100755 index 0000000..b3932c1 --- /dev/null +++ b/Views/RoadPassport/Index.cshtml @@ -0,0 +1,49 @@ +@model IEnumerable + +@{ + Layout = null; +} + + + + + + + Index + + +

+ Create New +

+ + + + + + + + + +@foreach (var item in Model) { + + + + + +} + +
+ @Html.DisplayNameFor(model => model.Begin) + + @Html.DisplayNameFor(model => model.End) +
+ @Html.DisplayFor(modelItem => item.Begin) + + @Html.DisplayFor(modelItem => item.End) + + Edit | + Details | + Delete +
+ + diff --git a/Views/RoadService/Create.cshtml b/Views/RoadService/Create.cshtml new file mode 100755 index 0000000..5840753 --- /dev/null +++ b/Views/RoadService/Create.cshtml @@ -0,0 +1,79 @@ +@model Maps.Entities.RoadService + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

RoadService

+
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/RoadService/Delete.cshtml b/Views/RoadService/Delete.cshtml new file mode 100755 index 0000000..d5e27f0 --- /dev/null +++ b/Views/RoadService/Delete.cshtml @@ -0,0 +1,49 @@ +@model Maps.Entities.RoadService + +@{ + Layout = null; +} + + + + + + + Delete + + + +

Are you sure you want to delete this?

+
+

RoadService

+
+
+
+ @Html.DisplayNameFor(model => model.Begin) +
+
+ @Html.DisplayFor(model => model.Begin) +
+
+ @Html.DisplayNameFor(model => model.End) +
+
+ @Html.DisplayFor(model => model.End) +
+
+ @Html.DisplayNameFor(model => model.YearBegin) +
+
+ @Html.DisplayFor(model => model.YearBegin) +
+
+ +
+
+ | + Back to List +
+
+
+ + diff --git a/Views/RoadService/Details.cshtml b/Views/RoadService/Details.cshtml new file mode 100755 index 0000000..05abaa6 --- /dev/null +++ b/Views/RoadService/Details.cshtml @@ -0,0 +1,45 @@ +@model Maps.Entities.RoadService + +@{ + Layout = null; +} + + + + + + + Details + + + +
+

RoadService

+
+
+
+ @Html.DisplayNameFor(model => model.Begin) +
+
+ @Html.DisplayFor(model => model.Begin) +
+
+ @Html.DisplayNameFor(model => model.End) +
+
+ @Html.DisplayFor(model => model.End) +
+
+ @Html.DisplayNameFor(model => model.YearBegin) +
+
+ @Html.DisplayFor(model => model.YearBegin) +
+
+
+ + + diff --git a/Views/RoadService/Edit.cshtml b/Views/RoadService/Edit.cshtml new file mode 100755 index 0000000..40e784e --- /dev/null +++ b/Views/RoadService/Edit.cshtml @@ -0,0 +1,84 @@ +@model Maps.Entities.RoadService + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

RoadService

+
+
+ +
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/RoadService/Index.cshtml b/Views/RoadService/Index.cshtml new file mode 100755 index 0000000..7009658 --- /dev/null +++ b/Views/RoadService/Index.cshtml @@ -0,0 +1,55 @@ +@model IEnumerable + +@{ + Layout = null; +} + + + + + + + Index + + +

+ Create New +

+ + + + + + + + + + +@foreach (var item in Model) { + + + + + + +} + +
+ @Html.DisplayNameFor(model => model.Begin) + + @Html.DisplayNameFor(model => model.End) + + @Html.DisplayNameFor(model => model.YearBegin) +
+ @Html.DisplayFor(modelItem => item.Begin) + + @Html.DisplayFor(modelItem => item.End) + + @Html.DisplayFor(modelItem => item.YearBegin) + + Edit | + Details | + Delete +
+ + diff --git a/Views/RoadSurface/Create.cshtml b/Views/RoadSurface/Create.cshtml new file mode 100755 index 0000000..3bc04f3 --- /dev/null +++ b/Views/RoadSurface/Create.cshtml @@ -0,0 +1,119 @@ +@model Maps.Entities.RoadSurface + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

RoadSurface

+
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/RoadSurface/Delete.cshtml b/Views/RoadSurface/Delete.cshtml new file mode 100755 index 0000000..abb66ed --- /dev/null +++ b/Views/RoadSurface/Delete.cshtml @@ -0,0 +1,73 @@ +@model Maps.Entities.RoadSurface + +@{ + Layout = null; +} + + + + + + + Delete + + + +

Are you sure you want to delete this?

+
+

RoadSurface

+
+
+
+ @Html.DisplayNameFor(model => model.Begin) +
+
+ @Html.DisplayFor(model => model.Begin) +
+
+ @Html.DisplayNameFor(model => model.CrossSectionNumber) +
+
+ @Html.DisplayFor(model => model.CrossSectionNumber) +
+
+ @Html.DisplayNameFor(model => model.ElastisityModule) +
+
+ @Html.DisplayFor(model => model.ElastisityModule) +
+
+ @Html.DisplayNameFor(model => model.End) +
+
+ @Html.DisplayFor(model => model.End) +
+
+ @Html.DisplayNameFor(model => model.LaneCountLeft) +
+
+ @Html.DisplayFor(model => model.LaneCountLeft) +
+
+ @Html.DisplayNameFor(model => model.LaneCountRight) +
+
+ @Html.DisplayFor(model => model.LaneCountRight) +
+
+ @Html.DisplayNameFor(model => model.RoadSurfaceConstructionId) +
+
+ @Html.DisplayFor(model => model.RoadSurfaceConstructionId) +
+
+ +
+
+ | + Back to List +
+
+
+ + diff --git a/Views/RoadSurface/Details.cshtml b/Views/RoadSurface/Details.cshtml new file mode 100755 index 0000000..d83f4c8 --- /dev/null +++ b/Views/RoadSurface/Details.cshtml @@ -0,0 +1,69 @@ +@model Maps.Entities.RoadSurface + +@{ + Layout = null; +} + + + + + + + Details + + + +
+

RoadSurface

+
+
+
+ @Html.DisplayNameFor(model => model.Begin) +
+
+ @Html.DisplayFor(model => model.Begin) +
+
+ @Html.DisplayNameFor(model => model.CrossSectionNumber) +
+
+ @Html.DisplayFor(model => model.CrossSectionNumber) +
+
+ @Html.DisplayNameFor(model => model.ElastisityModule) +
+
+ @Html.DisplayFor(model => model.ElastisityModule) +
+
+ @Html.DisplayNameFor(model => model.End) +
+
+ @Html.DisplayFor(model => model.End) +
+
+ @Html.DisplayNameFor(model => model.LaneCountLeft) +
+
+ @Html.DisplayFor(model => model.LaneCountLeft) +
+
+ @Html.DisplayNameFor(model => model.LaneCountRight) +
+
+ @Html.DisplayFor(model => model.LaneCountRight) +
+
+ @Html.DisplayNameFor(model => model.RoadSurfaceConstructionId) +
+
+ @Html.DisplayFor(model => model.RoadSurfaceConstructionId) +
+
+
+ + + diff --git a/Views/RoadSurface/Edit.cshtml b/Views/RoadSurface/Edit.cshtml new file mode 100755 index 0000000..58bb2e0 --- /dev/null +++ b/Views/RoadSurface/Edit.cshtml @@ -0,0 +1,126 @@ +@model Maps.Entities.RoadSurface + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

RoadSurface

+
+
+ +
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/RoadSurface/Index.cshtml b/Views/RoadSurface/Index.cshtml new file mode 100755 index 0000000..f5d9613 --- /dev/null +++ b/Views/RoadSurface/Index.cshtml @@ -0,0 +1,79 @@ +@model IEnumerable + +@{ + Layout = null; +} + + + + + + + Index + + +

+ Create New +

+ + + + + + + + + + + + + + +@foreach (var item in Model) { + + + + + + + + + + +} + +
+ @Html.DisplayNameFor(model => model.Begin) + + @Html.DisplayNameFor(model => model.CrossSectionNumber) + + @Html.DisplayNameFor(model => model.ElastisityModule) + + @Html.DisplayNameFor(model => model.End) + + @Html.DisplayNameFor(model => model.LaneCountLeft) + + @Html.DisplayNameFor(model => model.LaneCountRight) + + @Html.DisplayNameFor(model => model.RoadSurfaceConstructionId) +
+ @Html.DisplayFor(modelItem => item.Begin) + + @Html.DisplayFor(modelItem => item.CrossSectionNumber) + + @Html.DisplayFor(modelItem => item.ElastisityModule) + + @Html.DisplayFor(modelItem => item.End) + + @Html.DisplayFor(modelItem => item.LaneCountLeft) + + @Html.DisplayFor(modelItem => item.LaneCountRight) + + @Html.DisplayFor(modelItem => item.RoadSurfaceConstructionId) + + Edit | + Details | + Delete +
+ + diff --git a/Views/RoadType/Create.cshtml b/Views/RoadType/Create.cshtml new file mode 100755 index 0000000..3e6b674 --- /dev/null +++ b/Views/RoadType/Create.cshtml @@ -0,0 +1,48 @@ +@model Maps.Entities.RoadType + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

RoadType

+
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/RoadType/Delete.cshtml b/Views/RoadType/Delete.cshtml new file mode 100755 index 0000000..8fe4952 --- /dev/null +++ b/Views/RoadType/Delete.cshtml @@ -0,0 +1,43 @@ +@model Maps.Entities.RoadType + +@{ + Layout = null; +} + + + + + + + Delete + + + +

Are you sure you want to delete this?

+
+

RoadType

+
+
+
+ @Html.DisplayNameFor(model => model.Definition) +
+
+ @Html.DisplayFor(model => model.Definition) +
+
+ @Html.DisplayNameFor(model => model.Value) +
+
+ @Html.DisplayFor(model => model.Value) +
+
+ +
+
+ | + Back to List +
+
+
+ + diff --git a/Views/RoadType/Details.cshtml b/Views/RoadType/Details.cshtml new file mode 100755 index 0000000..ea4a205 --- /dev/null +++ b/Views/RoadType/Details.cshtml @@ -0,0 +1,39 @@ +@model Maps.Entities.RoadType + +@{ + Layout = null; +} + + + + + + + Details + + + +
+

RoadType

+
+
+
+ @Html.DisplayNameFor(model => model.Definition) +
+
+ @Html.DisplayFor(model => model.Definition) +
+
+ @Html.DisplayNameFor(model => model.Value) +
+
+ @Html.DisplayFor(model => model.Value) +
+
+
+ + + diff --git a/Views/RoadType/Edit.cshtml b/Views/RoadType/Edit.cshtml new file mode 100755 index 0000000..b5cbba5 --- /dev/null +++ b/Views/RoadType/Edit.cshtml @@ -0,0 +1,49 @@ +@model Maps.Entities.RoadType + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

RoadType

+
+
+ +
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/RoadType/Index.cshtml b/Views/RoadType/Index.cshtml new file mode 100755 index 0000000..bdca650 --- /dev/null +++ b/Views/RoadType/Index.cshtml @@ -0,0 +1,49 @@ +@model IEnumerable + +@{ + Layout = null; +} + + + + + + + Index + + +

+ Create New +

+ + + + + + + + + +@foreach (var item in Model) { + + + + + +} + +
+ @Html.DisplayNameFor(model => model.Definition) + + @Html.DisplayNameFor(model => model.Value) +
+ @Html.DisplayFor(modelItem => item.Definition) + + @Html.DisplayFor(modelItem => item.Value) + + Edit | + Details | + Delete +
+ + diff --git a/Views/RoadWidth/Create.cshtml b/Views/RoadWidth/Create.cshtml new file mode 100755 index 0000000..d0f5c03 --- /dev/null +++ b/Views/RoadWidth/Create.cshtml @@ -0,0 +1,109 @@ +@model Maps.Entities.RoadWidth + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

RoadWidth

+
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/RoadWidth/Delete.cshtml b/Views/RoadWidth/Delete.cshtml new file mode 100755 index 0000000..a26a130 --- /dev/null +++ b/Views/RoadWidth/Delete.cshtml @@ -0,0 +1,85 @@ +@model Maps.Entities.RoadWidth + +@{ + Layout = null; +} + + + + + + + Delete + + + +

Are you sure you want to delete this?

+
+

RoadWidth

+
+
+
+ @Html.DisplayNameFor(model => model.Begin) +
+
+ @Html.DisplayFor(model => model.Begin) +
+
+ @Html.DisplayNameFor(model => model.CountLaneLeft) +
+
+ @Html.DisplayFor(model => model.CountLaneLeft) +
+
+ @Html.DisplayNameFor(model => model.CountLaneRight) +
+
+ @Html.DisplayFor(model => model.CountLaneRight) +
+
+ @Html.DisplayNameFor(model => model.End) +
+
+ @Html.DisplayFor(model => model.End) +
+
+ @Html.DisplayNameFor(model => model.WidthReverseRoad) +
+
+ @Html.DisplayFor(model => model.WidthReverseRoad) +
+
+ @Html.DisplayNameFor(model => model.WidthRoadsideLeft) +
+
+ @Html.DisplayFor(model => model.WidthRoadsideLeft) +
+
+ @Html.DisplayNameFor(model => model.WidthRoadsideRight) +
+
+ @Html.DisplayFor(model => model.WidthRoadsideRight) +
+
+ @Html.DisplayNameFor(model => model.WidthRoadwayForward) +
+
+ @Html.DisplayFor(model => model.WidthRoadwayForward) +
+
+ @Html.DisplayNameFor(model => model.WidthStrip) +
+
+ @Html.DisplayFor(model => model.WidthStrip) +
+
+ +
+
+ | + Back to List +
+
+
+ + diff --git a/Views/RoadWidth/Details.cshtml b/Views/RoadWidth/Details.cshtml new file mode 100755 index 0000000..b16ec69 --- /dev/null +++ b/Views/RoadWidth/Details.cshtml @@ -0,0 +1,81 @@ +@model Maps.Entities.RoadWidth + +@{ + Layout = null; +} + + + + + + + Details + + + +
+

RoadWidth

+
+
+
+ @Html.DisplayNameFor(model => model.Begin) +
+
+ @Html.DisplayFor(model => model.Begin) +
+
+ @Html.DisplayNameFor(model => model.CountLaneLeft) +
+
+ @Html.DisplayFor(model => model.CountLaneLeft) +
+
+ @Html.DisplayNameFor(model => model.CountLaneRight) +
+
+ @Html.DisplayFor(model => model.CountLaneRight) +
+
+ @Html.DisplayNameFor(model => model.End) +
+
+ @Html.DisplayFor(model => model.End) +
+
+ @Html.DisplayNameFor(model => model.WidthReverseRoad) +
+
+ @Html.DisplayFor(model => model.WidthReverseRoad) +
+
+ @Html.DisplayNameFor(model => model.WidthRoadsideLeft) +
+
+ @Html.DisplayFor(model => model.WidthRoadsideLeft) +
+
+ @Html.DisplayNameFor(model => model.WidthRoadsideRight) +
+
+ @Html.DisplayFor(model => model.WidthRoadsideRight) +
+
+ @Html.DisplayNameFor(model => model.WidthRoadwayForward) +
+
+ @Html.DisplayFor(model => model.WidthRoadwayForward) +
+
+ @Html.DisplayNameFor(model => model.WidthStrip) +
+
+ @Html.DisplayFor(model => model.WidthStrip) +
+
+
+ + + diff --git a/Views/RoadWidth/Edit.cshtml b/Views/RoadWidth/Edit.cshtml new file mode 100755 index 0000000..aa50085 --- /dev/null +++ b/Views/RoadWidth/Edit.cshtml @@ -0,0 +1,112 @@ +@model Maps.Entities.RoadWidth + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

RoadWidth

+
+
+ +
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/RoadWidth/Index.cshtml b/Views/RoadWidth/Index.cshtml new file mode 100755 index 0000000..34f6dad --- /dev/null +++ b/Views/RoadWidth/Index.cshtml @@ -0,0 +1,91 @@ +@model IEnumerable + +@{ + Layout = null; +} + + + + + + + Index + + +

+ Create New +

+ + + + + + + + + + + + + + + + +@foreach (var item in Model) { + + + + + + + + + + + + +} + +
+ @Html.DisplayNameFor(model => model.Begin) + + @Html.DisplayNameFor(model => model.CountLaneLeft) + + @Html.DisplayNameFor(model => model.CountLaneRight) + + @Html.DisplayNameFor(model => model.End) + + @Html.DisplayNameFor(model => model.WidthReverseRoad) + + @Html.DisplayNameFor(model => model.WidthRoadsideLeft) + + @Html.DisplayNameFor(model => model.WidthRoadsideRight) + + @Html.DisplayNameFor(model => model.WidthRoadwayForward) + + @Html.DisplayNameFor(model => model.WidthStrip) +
+ @Html.DisplayFor(modelItem => item.Begin) + + @Html.DisplayFor(modelItem => item.CountLaneLeft) + + @Html.DisplayFor(modelItem => item.CountLaneRight) + + @Html.DisplayFor(modelItem => item.End) + + @Html.DisplayFor(modelItem => item.WidthReverseRoad) + + @Html.DisplayFor(modelItem => item.WidthRoadsideLeft) + + @Html.DisplayFor(modelItem => item.WidthRoadsideRight) + + @Html.DisplayFor(modelItem => item.WidthRoadwayForward) + + @Html.DisplayFor(modelItem => item.WidthStrip) + + Edit | + Details | + Delete +
+ + diff --git a/Views/ServiceObject/Create.cshtml b/Views/ServiceObject/Create.cshtml new file mode 100755 index 0000000..b7dab21 --- /dev/null +++ b/Views/ServiceObject/Create.cshtml @@ -0,0 +1,106 @@ +@model Maps.Entities.ServiceObject + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

ServiceObject

+
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/ServiceObject/Delete.cshtml b/Views/ServiceObject/Delete.cshtml new file mode 100755 index 0000000..3f6e9ca --- /dev/null +++ b/Views/ServiceObject/Delete.cshtml @@ -0,0 +1,67 @@ +@model Maps.Entities.ServiceObject + +@{ + Layout = null; +} + + + + + + + Delete + + + +

Are you sure you want to delete this?

+
+

ServiceObject

+
+
+
+ @Html.DisplayNameFor(model => model.ArrangementElements) +
+
+ @Html.DisplayFor(model => model.ArrangementElements) +
+
+ @Html.DisplayNameFor(model => model.Capacity) +
+
+ @Html.DisplayFor(model => model.Capacity) +
+
+ @Html.DisplayNameFor(model => model.Distance) +
+
+ @Html.DisplayFor(model => model.Distance) +
+
+ @Html.DisplayNameFor(model => model.LocationAxis) +
+
+ @Html.DisplayFor(model => model.LocationAxis) +
+
+ @Html.DisplayNameFor(model => model.LocationLeft) +
+
+ @Html.DisplayFor(model => model.LocationLeft) +
+
+ @Html.DisplayNameFor(model => model.LocationRight) +
+
+ @Html.DisplayFor(model => model.LocationRight) +
+
+ +
+
+ | + Back to List +
+
+
+ + diff --git a/Views/ServiceObject/Details.cshtml b/Views/ServiceObject/Details.cshtml new file mode 100755 index 0000000..21585bd --- /dev/null +++ b/Views/ServiceObject/Details.cshtml @@ -0,0 +1,63 @@ +@model Maps.Entities.ServiceObject + +@{ + Layout = null; +} + + + + + + + Details + + + +
+

ServiceObject

+
+
+
+ @Html.DisplayNameFor(model => model.ArrangementElements) +
+
+ @Html.DisplayFor(model => model.ArrangementElements) +
+
+ @Html.DisplayNameFor(model => model.Capacity) +
+
+ @Html.DisplayFor(model => model.Capacity) +
+
+ @Html.DisplayNameFor(model => model.Distance) +
+
+ @Html.DisplayFor(model => model.Distance) +
+
+ @Html.DisplayNameFor(model => model.LocationAxis) +
+
+ @Html.DisplayFor(model => model.LocationAxis) +
+
+ @Html.DisplayNameFor(model => model.LocationLeft) +
+
+ @Html.DisplayFor(model => model.LocationLeft) +
+
+ @Html.DisplayNameFor(model => model.LocationRight) +
+
+ @Html.DisplayFor(model => model.LocationRight) +
+
+
+ + + diff --git a/Views/ServiceObject/Edit.cshtml b/Views/ServiceObject/Edit.cshtml new file mode 100755 index 0000000..88284bc --- /dev/null +++ b/Views/ServiceObject/Edit.cshtml @@ -0,0 +1,112 @@ +@model Maps.Entities.ServiceObject + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

ServiceObject

+
+
+ +
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/ServiceObject/Index.cshtml b/Views/ServiceObject/Index.cshtml new file mode 100755 index 0000000..eaceb8c --- /dev/null +++ b/Views/ServiceObject/Index.cshtml @@ -0,0 +1,73 @@ +@model IEnumerable + +@{ + Layout = null; +} + + + + + + + Index + + +

+ Create New +

+ + + + + + + + + + + + + +@foreach (var item in Model) { + + + + + + + + + +} + +
+ @Html.DisplayNameFor(model => model.ArrangementElements) + + @Html.DisplayNameFor(model => model.Capacity) + + @Html.DisplayNameFor(model => model.Distance) + + @Html.DisplayNameFor(model => model.LocationAxis) + + @Html.DisplayNameFor(model => model.LocationLeft) + + @Html.DisplayNameFor(model => model.LocationRight) +
+ @Html.DisplayFor(modelItem => item.ArrangementElements) + + @Html.DisplayFor(modelItem => item.Capacity) + + @Html.DisplayFor(modelItem => item.Distance) + + @Html.DisplayFor(modelItem => item.LocationAxis) + + @Html.DisplayFor(modelItem => item.LocationLeft) + + @Html.DisplayFor(modelItem => item.LocationRight) + + Edit | + Details | + Delete +
+ + diff --git a/Views/ServiceObjectType/Create.cshtml b/Views/ServiceObjectType/Create.cshtml new file mode 100755 index 0000000..febed8a --- /dev/null +++ b/Views/ServiceObjectType/Create.cshtml @@ -0,0 +1,41 @@ +@model Maps.Entities.ServiceObjectType + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

ServiceObjectType

+
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/ServiceObjectType/Delete.cshtml b/Views/ServiceObjectType/Delete.cshtml new file mode 100755 index 0000000..91ec801 --- /dev/null +++ b/Views/ServiceObjectType/Delete.cshtml @@ -0,0 +1,37 @@ +@model Maps.Entities.ServiceObjectType + +@{ + Layout = null; +} + + + + + + + Delete + + + +

Are you sure you want to delete this?

+
+

ServiceObjectType

+
+
+
+ @Html.DisplayNameFor(model => model.Name) +
+
+ @Html.DisplayFor(model => model.Name) +
+
+ +
+
+ | + Back to List +
+
+
+ + diff --git a/Views/ServiceObjectType/Details.cshtml b/Views/ServiceObjectType/Details.cshtml new file mode 100755 index 0000000..151bcae --- /dev/null +++ b/Views/ServiceObjectType/Details.cshtml @@ -0,0 +1,33 @@ +@model Maps.Entities.ServiceObjectType + +@{ + Layout = null; +} + + + + + + + Details + + + +
+

ServiceObjectType

+
+
+
+ @Html.DisplayNameFor(model => model.Name) +
+
+ @Html.DisplayFor(model => model.Name) +
+
+
+ + + diff --git a/Views/ServiceObjectType/Edit.cshtml b/Views/ServiceObjectType/Edit.cshtml new file mode 100755 index 0000000..b97c4c7 --- /dev/null +++ b/Views/ServiceObjectType/Edit.cshtml @@ -0,0 +1,42 @@ +@model Maps.Entities.ServiceObjectType + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

ServiceObjectType

+
+
+ +
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/ServiceObjectType/Index.cshtml b/Views/ServiceObjectType/Index.cshtml new file mode 100755 index 0000000..574ec74 --- /dev/null +++ b/Views/ServiceObjectType/Index.cshtml @@ -0,0 +1,43 @@ +@model IEnumerable + +@{ + Layout = null; +} + + + + + + + Index + + +

+ Create New +

+ + + + + + + + +@foreach (var item in Model) { + + + + +} + +
+ @Html.DisplayNameFor(model => model.Name) +
+ @Html.DisplayFor(modelItem => item.Name) + + Edit | + Details | + Delete +
+ + diff --git a/Views/Settlement/Create.cshtml b/Views/Settlement/Create.cshtml new file mode 100755 index 0000000..bcf465d --- /dev/null +++ b/Views/Settlement/Create.cshtml @@ -0,0 +1,48 @@ +@model Maps.Entities.Settlement + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

Settlement

+
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/Settlement/Delete.cshtml b/Views/Settlement/Delete.cshtml new file mode 100755 index 0000000..91ace9a --- /dev/null +++ b/Views/Settlement/Delete.cshtml @@ -0,0 +1,43 @@ +@model Maps.Entities.Settlement + +@{ + Layout = null; +} + + + + + + + Delete + + + +

Are you sure you want to delete this?

+
+

Settlement

+
+
+
+ @Html.DisplayNameFor(model => model.Name) +
+
+ @Html.DisplayFor(model => model.Name) +
+
+ @Html.DisplayNameFor(model => model.Sign) +
+
+ @Html.DisplayFor(model => model.Sign) +
+
+ +
+
+ | + Back to List +
+
+
+ + diff --git a/Views/Settlement/Details.cshtml b/Views/Settlement/Details.cshtml new file mode 100755 index 0000000..fc41983 --- /dev/null +++ b/Views/Settlement/Details.cshtml @@ -0,0 +1,39 @@ +@model Maps.Entities.Settlement + +@{ + Layout = null; +} + + + + + + + Details + + + +
+

Settlement

+
+
+
+ @Html.DisplayNameFor(model => model.Name) +
+
+ @Html.DisplayFor(model => model.Name) +
+
+ @Html.DisplayNameFor(model => model.Sign) +
+
+ @Html.DisplayFor(model => model.Sign) +
+
+
+ + + diff --git a/Views/Settlement/Edit.cshtml b/Views/Settlement/Edit.cshtml new file mode 100755 index 0000000..5c3ee6a --- /dev/null +++ b/Views/Settlement/Edit.cshtml @@ -0,0 +1,49 @@ +@model Maps.Entities.Settlement + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

Settlement

+
+
+ +
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/Settlement/Index.cshtml b/Views/Settlement/Index.cshtml new file mode 100755 index 0000000..2127ff1 --- /dev/null +++ b/Views/Settlement/Index.cshtml @@ -0,0 +1,49 @@ +@model IEnumerable + +@{ + Layout = null; +} + + + + + + + Index + + +

+ Create New +

+ + + + + + + + + +@foreach (var item in Model) { + + + + + +} + +
+ @Html.DisplayNameFor(model => model.Name) + + @Html.DisplayNameFor(model => model.Sign) +
+ @Html.DisplayFor(modelItem => item.Name) + + @Html.DisplayFor(modelItem => item.Sign) + + Edit | + Details | + Delete +
+ + diff --git a/Views/SettlementAddressLink/Create.cshtml b/Views/SettlementAddressLink/Create.cshtml new file mode 100755 index 0000000..04317da --- /dev/null +++ b/Views/SettlementAddressLink/Create.cshtml @@ -0,0 +1,79 @@ +@model Maps.Entities.SettlementAddressLink + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

SettlementAddressLink

+
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/SettlementAddressLink/Delete.cshtml b/Views/SettlementAddressLink/Delete.cshtml new file mode 100755 index 0000000..6af9d40 --- /dev/null +++ b/Views/SettlementAddressLink/Delete.cshtml @@ -0,0 +1,49 @@ +@model Maps.Entities.SettlementAddressLink + +@{ + Layout = null; +} + + + + + + + Delete + + + +

Are you sure you want to delete this?

+
+

SettlementAddressLink

+
+
+
+ @Html.DisplayNameFor(model => model.Begin) +
+
+ @Html.DisplayFor(model => model.Begin) +
+
+ @Html.DisplayNameFor(model => model.Distance) +
+
+ @Html.DisplayFor(model => model.Distance) +
+
+ @Html.DisplayNameFor(model => model.End) +
+
+ @Html.DisplayFor(model => model.End) +
+
+ +
+
+ | + Back to List +
+
+
+ + diff --git a/Views/SettlementAddressLink/Details.cshtml b/Views/SettlementAddressLink/Details.cshtml new file mode 100755 index 0000000..84aec36 --- /dev/null +++ b/Views/SettlementAddressLink/Details.cshtml @@ -0,0 +1,45 @@ +@model Maps.Entities.SettlementAddressLink + +@{ + Layout = null; +} + + + + + + + Details + + + +
+

SettlementAddressLink

+
+
+
+ @Html.DisplayNameFor(model => model.Begin) +
+
+ @Html.DisplayFor(model => model.Begin) +
+
+ @Html.DisplayNameFor(model => model.Distance) +
+
+ @Html.DisplayFor(model => model.Distance) +
+
+ @Html.DisplayNameFor(model => model.End) +
+
+ @Html.DisplayFor(model => model.End) +
+
+
+ + + diff --git a/Views/SettlementAddressLink/Edit.cshtml b/Views/SettlementAddressLink/Edit.cshtml new file mode 100755 index 0000000..6aa6159 --- /dev/null +++ b/Views/SettlementAddressLink/Edit.cshtml @@ -0,0 +1,84 @@ +@model Maps.Entities.SettlementAddressLink + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

SettlementAddressLink

+
+
+ +
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/SettlementAddressLink/Index.cshtml b/Views/SettlementAddressLink/Index.cshtml new file mode 100755 index 0000000..1585370 --- /dev/null +++ b/Views/SettlementAddressLink/Index.cshtml @@ -0,0 +1,55 @@ +@model IEnumerable + +@{ + Layout = null; +} + + + + + + + Index + + +

+ Create New +

+ + + + + + + + + + +@foreach (var item in Model) { + + + + + + +} + +
+ @Html.DisplayNameFor(model => model.Begin) + + @Html.DisplayNameFor(model => model.Distance) + + @Html.DisplayNameFor(model => model.End) +
+ @Html.DisplayFor(modelItem => item.Begin) + + @Html.DisplayFor(modelItem => item.Distance) + + @Html.DisplayFor(modelItem => item.End) + + Edit | + Details | + Delete +
+ + diff --git a/Views/SettlementLocation/Create.cshtml b/Views/SettlementLocation/Create.cshtml new file mode 100755 index 0000000..560b816 --- /dev/null +++ b/Views/SettlementLocation/Create.cshtml @@ -0,0 +1,41 @@ +@model Maps.Entities.SettlementLocation + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

SettlementLocation

+
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/SettlementLocation/Delete.cshtml b/Views/SettlementLocation/Delete.cshtml new file mode 100755 index 0000000..0d74900 --- /dev/null +++ b/Views/SettlementLocation/Delete.cshtml @@ -0,0 +1,37 @@ +@model Maps.Entities.SettlementLocation + +@{ + Layout = null; +} + + + + + + + Delete + + + +

Are you sure you want to delete this?

+
+

SettlementLocation

+
+
+
+ @Html.DisplayNameFor(model => model.Value) +
+
+ @Html.DisplayFor(model => model.Value) +
+
+ +
+
+ | + Back to List +
+
+
+ + diff --git a/Views/SettlementLocation/Details.cshtml b/Views/SettlementLocation/Details.cshtml new file mode 100755 index 0000000..52e70e1 --- /dev/null +++ b/Views/SettlementLocation/Details.cshtml @@ -0,0 +1,33 @@ +@model Maps.Entities.SettlementLocation + +@{ + Layout = null; +} + + + + + + + Details + + + +
+

SettlementLocation

+
+
+
+ @Html.DisplayNameFor(model => model.Value) +
+
+ @Html.DisplayFor(model => model.Value) +
+
+
+ + + diff --git a/Views/SettlementLocation/Edit.cshtml b/Views/SettlementLocation/Edit.cshtml new file mode 100755 index 0000000..85127c9 --- /dev/null +++ b/Views/SettlementLocation/Edit.cshtml @@ -0,0 +1,42 @@ +@model Maps.Entities.SettlementLocation + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

SettlementLocation

+
+
+ +
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/SettlementLocation/Index.cshtml b/Views/SettlementLocation/Index.cshtml new file mode 100755 index 0000000..4b996b2 --- /dev/null +++ b/Views/SettlementLocation/Index.cshtml @@ -0,0 +1,43 @@ +@model IEnumerable + +@{ + Layout = null; +} + + + + + + + Index + + +

+ Create New +

+ + + + + + + + +@foreach (var item in Model) { + + + + +} + +
+ @Html.DisplayNameFor(model => model.Value) +
+ @Html.DisplayFor(modelItem => item.Value) + + Edit | + Details | + Delete +
+ + diff --git a/Views/StateCommon/Create.cshtml b/Views/StateCommon/Create.cshtml new file mode 100755 index 0000000..5a17fe5 --- /dev/null +++ b/Views/StateCommon/Create.cshtml @@ -0,0 +1,41 @@ +@model Maps.Entities.StateCommon + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

StateCommon

+
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/StateCommon/Delete.cshtml b/Views/StateCommon/Delete.cshtml new file mode 100755 index 0000000..51d9ceb --- /dev/null +++ b/Views/StateCommon/Delete.cshtml @@ -0,0 +1,37 @@ +@model Maps.Entities.StateCommon + +@{ + Layout = null; +} + + + + + + + Delete + + + +

Are you sure you want to delete this?

+
+

StateCommon

+
+
+
+ @Html.DisplayNameFor(model => model.Value) +
+
+ @Html.DisplayFor(model => model.Value) +
+
+ +
+
+ | + Back to List +
+
+
+ + diff --git a/Views/StateCommon/Details.cshtml b/Views/StateCommon/Details.cshtml new file mode 100755 index 0000000..7ba7186 --- /dev/null +++ b/Views/StateCommon/Details.cshtml @@ -0,0 +1,33 @@ +@model Maps.Entities.StateCommon + +@{ + Layout = null; +} + + + + + + + Details + + + +
+

StateCommon

+
+
+
+ @Html.DisplayNameFor(model => model.Value) +
+
+ @Html.DisplayFor(model => model.Value) +
+
+
+ + + diff --git a/Views/StateCommon/Edit.cshtml b/Views/StateCommon/Edit.cshtml new file mode 100755 index 0000000..ff3a2d1 --- /dev/null +++ b/Views/StateCommon/Edit.cshtml @@ -0,0 +1,42 @@ +@model Maps.Entities.StateCommon + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

StateCommon

+
+
+ +
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/StateCommon/Index.cshtml b/Views/StateCommon/Index.cshtml new file mode 100755 index 0000000..225e3c6 --- /dev/null +++ b/Views/StateCommon/Index.cshtml @@ -0,0 +1,43 @@ +@model IEnumerable + +@{ + Layout = null; +} + + + + + + + Index + + +

+ Create New +

+ + + + + + + + +@foreach (var item in Model) { + + + + +} + +
+ @Html.DisplayNameFor(model => model.Value) +
+ @Html.DisplayFor(modelItem => item.Value) + + Edit | + Details | + Delete +
+ + diff --git a/Views/SurfaceTreatment/Create.cshtml b/Views/SurfaceTreatment/Create.cshtml new file mode 100755 index 0000000..84ef9e2 --- /dev/null +++ b/Views/SurfaceTreatment/Create.cshtml @@ -0,0 +1,41 @@ +@model Maps.Entities.SurfaceTreatment + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

SurfaceTreatment

+
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/SurfaceTreatment/Delete.cshtml b/Views/SurfaceTreatment/Delete.cshtml new file mode 100755 index 0000000..d716a38 --- /dev/null +++ b/Views/SurfaceTreatment/Delete.cshtml @@ -0,0 +1,37 @@ +@model Maps.Entities.SurfaceTreatment + +@{ + Layout = null; +} + + + + + + + Delete + + + +

Are you sure you want to delete this?

+
+

SurfaceTreatment

+
+
+
+ @Html.DisplayNameFor(model => model.Name) +
+
+ @Html.DisplayFor(model => model.Name) +
+
+ +
+
+ | + Back to List +
+
+
+ + diff --git a/Views/SurfaceTreatment/Details.cshtml b/Views/SurfaceTreatment/Details.cshtml new file mode 100755 index 0000000..3e2683b --- /dev/null +++ b/Views/SurfaceTreatment/Details.cshtml @@ -0,0 +1,33 @@ +@model Maps.Entities.SurfaceTreatment + +@{ + Layout = null; +} + + + + + + + Details + + + +
+

SurfaceTreatment

+
+
+
+ @Html.DisplayNameFor(model => model.Name) +
+
+ @Html.DisplayFor(model => model.Name) +
+
+
+ + + diff --git a/Views/SurfaceTreatment/Edit.cshtml b/Views/SurfaceTreatment/Edit.cshtml new file mode 100755 index 0000000..129ef28 --- /dev/null +++ b/Views/SurfaceTreatment/Edit.cshtml @@ -0,0 +1,42 @@ +@model Maps.Entities.SurfaceTreatment + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

SurfaceTreatment

+
+
+ +
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/SurfaceTreatment/Index.cshtml b/Views/SurfaceTreatment/Index.cshtml new file mode 100755 index 0000000..0dcf27f --- /dev/null +++ b/Views/SurfaceTreatment/Index.cshtml @@ -0,0 +1,43 @@ +@model IEnumerable + +@{ + Layout = null; +} + + + + + + + Index + + +

+ Create New +

+ + + + + + + + +@foreach (var item in Model) { + + + + +} + +
+ @Html.DisplayNameFor(model => model.Name) +
+ @Html.DisplayFor(modelItem => item.Name) + + Edit | + Details | + Delete +
+ + diff --git a/Views/SurfaceType/Create.cshtml b/Views/SurfaceType/Create.cshtml new file mode 100755 index 0000000..a43eb2a --- /dev/null +++ b/Views/SurfaceType/Create.cshtml @@ -0,0 +1,41 @@ +@model Maps.Entities.SurfaceType + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

SurfaceType

+
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/SurfaceType/Delete.cshtml b/Views/SurfaceType/Delete.cshtml new file mode 100755 index 0000000..6af8a29 --- /dev/null +++ b/Views/SurfaceType/Delete.cshtml @@ -0,0 +1,37 @@ +@model Maps.Entities.SurfaceType + +@{ + Layout = null; +} + + + + + + + Delete + + + +

Are you sure you want to delete this?

+
+

SurfaceType

+
+
+
+ @Html.DisplayNameFor(model => model.Name) +
+
+ @Html.DisplayFor(model => model.Name) +
+
+ +
+
+ | + Back to List +
+
+
+ + diff --git a/Views/SurfaceType/Details.cshtml b/Views/SurfaceType/Details.cshtml new file mode 100755 index 0000000..bb25f73 --- /dev/null +++ b/Views/SurfaceType/Details.cshtml @@ -0,0 +1,33 @@ +@model Maps.Entities.SurfaceType + +@{ + Layout = null; +} + + + + + + + Details + + + +
+

SurfaceType

+
+
+
+ @Html.DisplayNameFor(model => model.Name) +
+
+ @Html.DisplayFor(model => model.Name) +
+
+
+ + + diff --git a/Views/SurfaceType/Edit.cshtml b/Views/SurfaceType/Edit.cshtml new file mode 100755 index 0000000..0833761 --- /dev/null +++ b/Views/SurfaceType/Edit.cshtml @@ -0,0 +1,42 @@ +@model Maps.Entities.SurfaceType + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

SurfaceType

+
+
+ +
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/Views/SurfaceType/Index.cshtml b/Views/SurfaceType/Index.cshtml new file mode 100755 index 0000000..e6ed0a7 --- /dev/null +++ b/Views/SurfaceType/Index.cshtml @@ -0,0 +1,43 @@ +@model IEnumerable + +@{ + Layout = null; +} + + + + + + + Index + + +

+ Create New +

+ + + + + + + + +@foreach (var item in Model) { + + + + +} + +
+ @Html.DisplayNameFor(model => model.Name) +
+ @Html.DisplayFor(modelItem => item.Name) + + Edit | + Details | + Delete +
+ + -- libgit2 0.21.4