diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5fa945a --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +.vscode +src/Maps/obj +src/Maps/bin +src/Maps/project.lock.json +src/MapsDb/obj +src/MapsDb/bin +src/MapsDb/project.lock.json +src/MapsModels/obj +src/MapsModels/bin +src/MapsModels/project.lock.json \ No newline at end of file diff --git a/global.json b/global.json new file mode 100644 index 0000000..e7b30ca --- /dev/null +++ b/global.json @@ -0,0 +1,6 @@ +{ + "projects": [ + "src", + "test" + ] +} \ No newline at end of file diff --git a/src/Maps/.bowerrc b/src/Maps/.bowerrc new file mode 100644 index 0000000..6406626 --- /dev/null +++ b/src/Maps/.bowerrc @@ -0,0 +1,3 @@ +{ + "directory": "wwwroot/lib" +} diff --git a/src/Maps/Controllers/BusStopController.cs b/src/Maps/Controllers/BusStopController.cs new file mode 100755 index 0000000..9f0cc0e --- /dev/null +++ b/src/Maps/Controllers/BusStopController.cs @@ -0,0 +1,175 @@ +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Mvc.Rendering; +using Microsoft.EntityFrameworkCore; +using MapsDb; +using MapsDb.Interfeces; +using MapsDb.DataService; +using MapsModels.ViewModels; +namespace Maps.Controllers +{ + public class BusStopController : Controller + { + private readonly IBusStopDs _busStopDs; + + public BusStopController(IBusStopDs BusStopDs) + { + _busStopDs = BusStopDs; + } + + // GET: BusStop + [HttpGet] + public async Task Index() + { + var busStops = await _busStopDs.GetAllBusStopAsync(); + + ListBusStopVm vm = new ListBusStopVm + { + busStopListDs = busStops.ToList() + }; + + return Json(vm); + } + + + // GET: BusStop/Details/5 + public async Task Details(int id) + { + + var busStop = await _busStopDs.FindOneDetailsAsync(id); + if (busStop == null) + { + return NotFound(); + } + + return View(busStop); + } + + // GET: BusStop/Create + public IActionResult Create() + { + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId"); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "Name"); + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name"); + ViewData["StateCommonId"] = new SelectList(_context.StateCommon, "StateCommonId", "Value"); + ViewData["SurfaceTypeId"] = new SelectList(_context.SurfaceType, "SurfaceTypeId", "Name"); + return View(); + } + + // POST: BusStop/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("BusStopId,AreaLandAvailability,AreaStopAvailability,BalanceCost,BusStationCardId,CrossSectionNumber,DateActual,LocationLeft,LocationRight,PocketAvailability,Position,RegionId,RepairCertificate,RoadId,SettlementId,StateCommonId,SurfaceTypeId,ToiletAvailability,YearBuild,YearRepair")] BusStop busStop) + { + if (ModelState.IsValid) + { + _context.Add(busStop); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", busStop.RegionId); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", busStop.RoadId); + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name", busStop.SettlementId); + ViewData["StateCommonId"] = new SelectList(_context.StateCommon, "StateCommonId", "StateCommonId", busStop.StateCommonId); + ViewData["SurfaceTypeId"] = new SelectList(_context.SurfaceType, "SurfaceTypeId", "SurfaceTypeId", busStop.SurfaceTypeId); + return View(busStop); + } + + // GET: BusStop/Edit/5 + public async Task Edit(int? id) + { + if (id == null) + { + return NotFound(); + } + + var busStop = await _context.BusStop.SingleOrDefaultAsync(m => m.BusStopId == id); + if (busStop == null) + { + return NotFound(); + } + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", busStop.RegionId); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", busStop.RoadId); + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name", busStop.SettlementId); + ViewData["StateCommonId"] = new SelectList(_context.StateCommon, "StateCommonId", "StateCommonId", busStop.StateCommonId); + ViewData["SurfaceTypeId"] = new SelectList(_context.SurfaceType, "SurfaceTypeId", "SurfaceTypeId", busStop.SurfaceTypeId); + return View(busStop); + } + + // POST: BusStop/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("BusStopId,AreaLandAvailability,AreaStopAvailability,BalanceCost,BusStationCardId,CrossSectionNumber,DateActual,LocationLeft,LocationRight,PocketAvailability,Position,RegionId,RepairCertificate,RoadId,SettlementId,StateCommonId,SurfaceTypeId,ToiletAvailability,YearBuild,YearRepair")] BusStop busStop) + { + if (id != busStop.BusStopId) + { + return NotFound(); + } + + if (ModelState.IsValid) + { + try + { + _context.Update(busStop); + await _context.SaveChangesAsync(); + } + catch (DbUpdateConcurrencyException) + { + if (!BusStopExists(busStop.BusStopId)) + { + return NotFound(); + } + else + { + throw; + } + } + return RedirectToAction("Index"); + } + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", busStop.RegionId); + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", busStop.RoadId); + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name", busStop.SettlementId); + ViewData["StateCommonId"] = new SelectList(_context.StateCommon, "StateCommonId", "StateCommonId", busStop.StateCommonId); + ViewData["SurfaceTypeId"] = new SelectList(_context.SurfaceType, "SurfaceTypeId", "SurfaceTypeId", busStop.SurfaceTypeId); + return View(busStop); + } + + // GET: BusStop/Delete/5 + public async Task Delete(int? id) + { + if (id == null) + { + return NotFound(); + } + + var busStop = await _context.BusStop.SingleOrDefaultAsync(m => m.BusStopId == id); + if (busStop == null) + { + return NotFound(); + } + + return View(busStop); + } + + // POST: BusStop/Delete/5 + [HttpPost, ActionName("Delete")] + [ValidateAntiForgeryToken] + public async Task DeleteConfirmed(int id) + { + var busStop = await _context.BusStop.SingleOrDefaultAsync(m => m.BusStopId == id); + _context.BusStop.Remove(busStop); + await _context.SaveChangesAsync(); + return RedirectToAction("Index"); + } + + private bool BusStopExists(int id) + { + return _context.BusStop.Any(e => e.BusStopId == id); + } + } +} diff --git a/src/Maps/Maps.sln b/src/Maps/Maps.sln new file mode 100644 index 0000000..f531224 --- /dev/null +++ b/src/Maps/Maps.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.25420.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Maps", "Maps.xproj", "{C746E65B-78A5-44E0-8A27-A21E016DC9C7}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C746E65B-78A5-44E0-8A27-A21E016DC9C7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C746E65B-78A5-44E0-8A27-A21E016DC9C7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C746E65B-78A5-44E0-8A27-A21E016DC9C7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C746E65B-78A5-44E0-8A27-A21E016DC9C7}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/src/Maps/Maps.xproj b/src/Maps/Maps.xproj new file mode 100644 index 0000000..74b281f --- /dev/null +++ b/src/Maps/Maps.xproj @@ -0,0 +1,23 @@ + + + + 14.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + + + + c746e65b-78a5-44e0-8a27-a21e016dc9c7 + Maps + .\obj + .\bin\ + v4.5.2 + + + 2.0 + + + + + + + diff --git a/src/Maps/Maps.xproj.user b/src/Maps/Maps.xproj.user new file mode 100644 index 0000000..f0a2a5d --- /dev/null +++ b/src/Maps/Maps.xproj.user @@ -0,0 +1,6 @@ + + + + IIS Express + + \ No newline at end of file diff --git a/src/Maps/Program.cs b/src/Maps/Program.cs new file mode 100644 index 0000000..8b4801f --- /dev/null +++ b/src/Maps/Program.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Hosting; + +namespace Maps +{ + public class Program + { + public static void Main(string[] args) + { + var host = new WebHostBuilder() + .UseKestrel() + .UseContentRoot(Directory.GetCurrentDirectory()) + .UseStartup() + .Build(); + + host.Run(); + } + } +} diff --git a/src/Maps/Project_Readme.html b/src/Maps/Project_Readme.html new file mode 100644 index 0000000..1a0f5b5 --- /dev/null +++ b/src/Maps/Project_Readme.html @@ -0,0 +1,187 @@ + + + + + Welcome to ASP.NET Core + + + + + + + + + + diff --git a/src/Maps/Properties/launchSettings.json b/src/Maps/Properties/launchSettings.json new file mode 100644 index 0000000..87428a1 --- /dev/null +++ b/src/Maps/Properties/launchSettings.json @@ -0,0 +1,27 @@ +{ + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:50882/", + "sslPort": 0 + } + }, + "profiles": { + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "Maps": { + "commandName": "Project", + "launchBrowser": true, + "launchUrl": "http://localhost:5000", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} \ No newline at end of file diff --git a/src/Maps/Startup.cs b/src/Maps/Startup.cs new file mode 100644 index 0000000..fb7a5be --- /dev/null +++ b/src/Maps/Startup.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Hosting; +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Logging; +using Microsoft.EntityFrameworkCore; +using MapsDb; +using MapsDb.Interfeces; +using MapsDb.DataService; +using MapsModels; +namespace Maps +{ + public class Startup + { + public Startup(IHostingEnvironment env) + { + var builder = new ConfigurationBuilder() + .SetBasePath(env.ContentRootPath) + .AddJsonFile("appsettings.json", optional: true, reloadOnChange: true) + .AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true) + .AddEnvironmentVariables(); + + if (env.IsDevelopment()) + { + // This will push telemetry data through Application Insights pipeline faster, allowing you to view results immediately. + builder.AddApplicationInsightsSettings(developerMode: true); + } + Configuration = builder.Build(); + } + + public IConfigurationRoot Configuration { get; } + + // This method gets called by the runtime. Use this method to add services to the container. + public void ConfigureServices(IServiceCollection services) + { + services.AddScoped(); + + services.AddScoped(); + // Add framework services. + services.AddApplicationInsightsTelemetry(Configuration); + + services.AddMvc(); + + } + + // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. + public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) + { + + + app.UseDeveloperExceptionPage(); + app.UseBrowserLink(); + + loggerFactory.AddConsole(Configuration.GetSection("Logging")); + loggerFactory.AddDebug(); + + app.UseApplicationInsightsRequestTelemetry(); + app.UseApplicationInsightsExceptionTelemetry(); + + app.UseStaticFiles(); + + app.UseMvc(routes => + { + routes.MapRoute( + name: "default", + template: "{controller=Home}/{action=Index}/{id?}"); + }); + } + } +} diff --git a/src/Maps/Views/BusStop/Create.cshtml b/src/Maps/Views/BusStop/Create.cshtml new file mode 100755 index 0000000..51e3e35 --- /dev/null +++ b/src/Maps/Views/BusStop/Create.cshtml @@ -0,0 +1,148 @@ +@model Maps.Entities.BusStop + + + +
+
+

BusStop

+
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + diff --git a/src/Maps/Views/BusStop/Delete.cshtml b/src/Maps/Views/BusStop/Delete.cshtml new file mode 100755 index 0000000..3bf71a3 --- /dev/null +++ b/src/Maps/Views/BusStop/Delete.cshtml @@ -0,0 +1,102 @@ +@model Maps.Entities.BusStop + + + +

Are you sure you want to delete this?

+
+

BusStop

+
+
+
+ @Html.DisplayNameFor(model => model.AreaLandAvailability) +
+
+ @Html.DisplayFor(model => model.AreaLandAvailability) +
+
+ @Html.DisplayNameFor(model => model.AreaStopAvailability) +
+
+ @Html.DisplayFor(model => model.AreaStopAvailability) +
+
+ @Html.DisplayNameFor(model => model.BalanceCost) +
+
+ @Html.DisplayFor(model => model.BalanceCost) +
+
+ @Html.DisplayNameFor(model => model.BusStationCardId) +
+
+ @Html.DisplayFor(model => model.BusStationCardId) +
+
+ @Html.DisplayNameFor(model => model.CrossSectionNumber) +
+
+ @Html.DisplayFor(model => model.CrossSectionNumber) +
+
+ @Html.DisplayNameFor(model => model.DateActual) +
+
+ @Html.DisplayFor(model => model.DateActual) +
+
+ @Html.DisplayNameFor(model => model.LocationLeft) +
+
+ @Html.DisplayFor(model => model.LocationLeft) +
+
+ @Html.DisplayNameFor(model => model.LocationRight) +
+
+ @Html.DisplayFor(model => model.LocationRight) +
+
+ @Html.DisplayNameFor(model => model.PocketAvailability) +
+
+ @Html.DisplayFor(model => model.PocketAvailability) +
+
+ @Html.DisplayNameFor(model => model.Position) +
+
+ @Html.DisplayFor(model => model.Position) +
+
+ @Html.DisplayNameFor(model => model.RepairCertificate) +
+
+ @Html.DisplayFor(model => model.RepairCertificate) +
+
+ @Html.DisplayNameFor(model => model.ToiletAvailability) +
+
+ @Html.DisplayFor(model => model.ToiletAvailability) +
+
+ @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/src/Maps/Views/BusStop/Details.cshtml b/src/Maps/Views/BusStop/Details.cshtml new file mode 100755 index 0000000..ffb6d1f --- /dev/null +++ b/src/Maps/Views/BusStop/Details.cshtml @@ -0,0 +1,97 @@ +@model Maps.Entities.BusStop + + +
+

BusStop

+
+
+
+ @Html.DisplayNameFor(model => model.AreaLandAvailability) +
+
+ @Html.DisplayFor(model => model.AreaLandAvailability) +
+
+ @Html.DisplayNameFor(model => model.AreaStopAvailability) +
+
+ @Html.DisplayFor(model => model.AreaStopAvailability) +
+
+ @Html.DisplayNameFor(model => model.BalanceCost) +
+
+ @Html.DisplayFor(model => model.BalanceCost) +
+
+ @Html.DisplayNameFor(model => model.BusStationCardId) +
+
+ @Html.DisplayFor(model => model.BusStationCardId) +
+
+ @Html.DisplayNameFor(model => model.CrossSectionNumber) +
+
+ @Html.DisplayFor(model => model.CrossSectionNumber) +
+
+ @Html.DisplayNameFor(model => model.DateActual) +
+
+ @Html.DisplayFor(model => model.DateActual) +
+
+ @Html.DisplayNameFor(model => model.LocationLeft) +
+
+ @Html.DisplayFor(model => model.LocationLeft) +
+
+ @Html.DisplayNameFor(model => model.LocationRight) +
+
+ @Html.DisplayFor(model => model.LocationRight) +
+
+ @Html.DisplayNameFor(model => model.PocketAvailability) +
+
+ @Html.DisplayFor(model => model.PocketAvailability) +
+
+ @Html.DisplayNameFor(model => model.Position) +
+
+ @Html.DisplayFor(model => model.Position) +
+
+ @Html.DisplayNameFor(model => model.RepairCertificate) +
+
+ @Html.DisplayFor(model => model.RepairCertificate) +
+
+ @Html.DisplayNameFor(model => model.ToiletAvailability) +
+
+ @Html.DisplayFor(model => model.ToiletAvailability) +
+
+ @Html.DisplayNameFor(model => model.YearBuild) +
+
+ @Html.DisplayFor(model => model.YearBuild) +
+
+ @Html.DisplayNameFor(model => model.YearRepair) +
+
+ @Html.DisplayFor(model => model.YearRepair) +
+
+
+ \ No newline at end of file diff --git a/src/Maps/Views/BusStop/Edit.cshtml b/src/Maps/Views/BusStop/Edit.cshtml new file mode 100755 index 0000000..540a8a6 --- /dev/null +++ b/src/Maps/Views/BusStop/Edit.cshtml @@ -0,0 +1,153 @@ +@model Maps.Entities.BusStop + + +
+
+

BusStop

+
+
+ +
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + diff --git a/src/Maps/Views/BusStop/Index.cshtml b/src/Maps/Views/BusStop/Index.cshtml new file mode 100755 index 0000000..1667375 --- /dev/null +++ b/src/Maps/Views/BusStop/Index.cshtml @@ -0,0 +1,109 @@ +@model IEnumerable + + +

+ Create New +

+ + + + + + + + + + + + + + + + + + + + + +@foreach (var item in Model) { + + + + + + + + + + + + + + + + + +} + +
+ @Html.DisplayNameFor(model => model.AreaLandAvailability) + + @Html.DisplayNameFor(model => model.AreaStopAvailability) + + @Html.DisplayNameFor(model => model.BalanceCost) + + @Html.DisplayNameFor(model => model.BusStationCardId) + + @Html.DisplayNameFor(model => model.CrossSectionNumber) + + @Html.DisplayNameFor(model => model.DateActual) + + @Html.DisplayNameFor(model => model.LocationLeft) + + @Html.DisplayNameFor(model => model.LocationRight) + + @Html.DisplayNameFor(model => model.PocketAvailability) + + @Html.DisplayNameFor(model => model.Position) + + @Html.DisplayNameFor(model => model.RepairCertificate) + + @Html.DisplayNameFor(model => model.ToiletAvailability) + + @Html.DisplayNameFor(model => model.YearBuild) + + @Html.DisplayNameFor(model => model.YearRepair) +
+ @Html.DisplayFor(modelItem => item.AreaLandAvailability) + + @Html.DisplayFor(modelItem => item.AreaStopAvailability) + + @Html.DisplayFor(modelItem => item.BalanceCost) + + @Html.DisplayFor(modelItem => item.BusStationCardId) + + @Html.DisplayFor(modelItem => item.CrossSectionNumber) + + @Html.DisplayFor(modelItem => item.DateActual) + + @Html.DisplayFor(modelItem => item.LocationLeft) + + @Html.DisplayFor(modelItem => item.LocationRight) + + @Html.DisplayFor(modelItem => item.PocketAvailability) + + @Html.DisplayFor(modelItem => item.Position) + + @Html.DisplayFor(modelItem => item.RepairCertificate) + + @Html.DisplayFor(modelItem => item.ToiletAvailability) + + @Html.DisplayFor(modelItem => item.YearBuild) + + @Html.DisplayFor(modelItem => item.YearRepair) + + Edit | + Details | + Delete +
+ diff --git a/src/Maps/Views/CrossSection/Create.cshtml b/src/Maps/Views/CrossSection/Create.cshtml new file mode 100755 index 0000000..0319f6e --- /dev/null +++ b/src/Maps/Views/CrossSection/Create.cshtml @@ -0,0 +1,142 @@ +@model Maps.Entities.CrossSection + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

CrossSection

+
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/CrossSection/Delete.cshtml b/src/Maps/Views/CrossSection/Delete.cshtml new file mode 100755 index 0000000..d2c666d --- /dev/null +++ b/src/Maps/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/src/Maps/Views/CrossSection/Details.cshtml b/src/Maps/Views/CrossSection/Details.cshtml new file mode 100755 index 0000000..bc92c4e --- /dev/null +++ b/src/Maps/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/src/Maps/Views/CrossSection/Edit.cshtml b/src/Maps/Views/CrossSection/Edit.cshtml new file mode 100755 index 0000000..c80923d --- /dev/null +++ b/src/Maps/Views/CrossSection/Edit.cshtml @@ -0,0 +1,147 @@ +@model Maps.Entities.CrossSection + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

CrossSection

+
+
+ +
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/CrossSection/Index.cshtml b/src/Maps/Views/CrossSection/Index.cshtml new file mode 100755 index 0000000..65d00ad --- /dev/null +++ b/src/Maps/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/src/Maps/Views/DepartmentAffiliation/Create.cshtml b/src/Maps/Views/DepartmentAffiliation/Create.cshtml new file mode 100755 index 0000000..de6d999 --- /dev/null +++ b/src/Maps/Views/DepartmentAffiliation/Create.cshtml @@ -0,0 +1,41 @@ +@model Maps.Entities.DepartmentAffiliation + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

DepartmentAffiliation

+
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/DepartmentAffiliation/Delete.cshtml b/src/Maps/Views/DepartmentAffiliation/Delete.cshtml new file mode 100755 index 0000000..b313497 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/DepartmentAffiliation/Details.cshtml b/src/Maps/Views/DepartmentAffiliation/Details.cshtml new file mode 100755 index 0000000..f1c6116 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/DepartmentAffiliation/Edit.cshtml b/src/Maps/Views/DepartmentAffiliation/Edit.cshtml new file mode 100755 index 0000000..ef141f7 --- /dev/null +++ b/src/Maps/Views/DepartmentAffiliation/Edit.cshtml @@ -0,0 +1,42 @@ +@model Maps.Entities.DepartmentAffiliation + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

DepartmentAffiliation

+
+
+ +
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/DepartmentAffiliation/Index.cshtml b/src/Maps/Views/DepartmentAffiliation/Index.cshtml new file mode 100755 index 0000000..d4a7ce1 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/FlowIntensity/Create.cshtml b/src/Maps/Views/FlowIntensity/Create.cshtml new file mode 100755 index 0000000..7c90ad2 --- /dev/null +++ b/src/Maps/Views/FlowIntensity/Create.cshtml @@ -0,0 +1,212 @@ +@model Maps.Entities.FlowIntensity + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

FlowIntensity

+
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/FlowIntensity/Delete.cshtml b/src/Maps/Views/FlowIntensity/Delete.cshtml new file mode 100755 index 0000000..aefe204 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/FlowIntensity/Details.cshtml b/src/Maps/Views/FlowIntensity/Details.cshtml new file mode 100755 index 0000000..0861b7e --- /dev/null +++ b/src/Maps/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/src/Maps/Views/FlowIntensity/Edit.cshtml b/src/Maps/Views/FlowIntensity/Edit.cshtml new file mode 100755 index 0000000..80b5bc0 --- /dev/null +++ b/src/Maps/Views/FlowIntensity/Edit.cshtml @@ -0,0 +1,217 @@ +@model Maps.Entities.FlowIntensity + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

FlowIntensity

+
+
+ +
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/FlowIntensity/Index.cshtml b/src/Maps/Views/FlowIntensity/Index.cshtml new file mode 100755 index 0000000..19e0b34 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/Organization/Create.cshtml b/src/Maps/Views/Organization/Create.cshtml new file mode 100755 index 0000000..fc7a248 --- /dev/null +++ b/src/Maps/Views/Organization/Create.cshtml @@ -0,0 +1,48 @@ +@model Maps.Entities.Organization + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

Organization

+
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/Organization/Delete.cshtml b/src/Maps/Views/Organization/Delete.cshtml new file mode 100755 index 0000000..49e3098 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/Organization/Details.cshtml b/src/Maps/Views/Organization/Details.cshtml new file mode 100755 index 0000000..a644a7d --- /dev/null +++ b/src/Maps/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/src/Maps/Views/Organization/Edit.cshtml b/src/Maps/Views/Organization/Edit.cshtml new file mode 100755 index 0000000..c15ee80 --- /dev/null +++ b/src/Maps/Views/Organization/Edit.cshtml @@ -0,0 +1,49 @@ +@model Maps.Entities.Organization + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

Organization

+
+
+ +
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/Organization/Index.cshtml b/src/Maps/Views/Organization/Index.cshtml new file mode 100755 index 0000000..f28448a --- /dev/null +++ b/src/Maps/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/src/Maps/Views/Region/Create.cshtml b/src/Maps/Views/Region/Create.cshtml new file mode 100755 index 0000000..fb7cd88 --- /dev/null +++ b/src/Maps/Views/Region/Create.cshtml @@ -0,0 +1,48 @@ +@model Maps.Entities.Region + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

Region

+
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/Region/Delete.cshtml b/src/Maps/Views/Region/Delete.cshtml new file mode 100755 index 0000000..3e971df --- /dev/null +++ b/src/Maps/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/src/Maps/Views/Region/Details.cshtml b/src/Maps/Views/Region/Details.cshtml new file mode 100755 index 0000000..51c0950 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/Region/Edit.cshtml b/src/Maps/Views/Region/Edit.cshtml new file mode 100755 index 0000000..649eb75 --- /dev/null +++ b/src/Maps/Views/Region/Edit.cshtml @@ -0,0 +1,49 @@ +@model Maps.Entities.Region + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

Region

+
+
+ +
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/Region/Index.cshtml b/src/Maps/Views/Region/Index.cshtml new file mode 100755 index 0000000..d0bac31 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/Road/Create.cshtml b/src/Maps/Views/Road/Create.cshtml new file mode 100755 index 0000000..110491d --- /dev/null +++ b/src/Maps/Views/Road/Create.cshtml @@ -0,0 +1,110 @@ +@model Maps.Entities.Road + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

Road

+
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/Road/Delete.cshtml b/src/Maps/Views/Road/Delete.cshtml new file mode 100755 index 0000000..20ee0cd --- /dev/null +++ b/src/Maps/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/src/Maps/Views/Road/Details.cshtml b/src/Maps/Views/Road/Details.cshtml new file mode 100755 index 0000000..33c0cdb --- /dev/null +++ b/src/Maps/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/src/Maps/Views/Road/Edit.cshtml b/src/Maps/Views/Road/Edit.cshtml new file mode 100755 index 0000000..d2bbcab --- /dev/null +++ b/src/Maps/Views/Road/Edit.cshtml @@ -0,0 +1,112 @@ +@model Maps.Entities.Road + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

Road

+
+
+ +
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/Road/Index.cshtml b/src/Maps/Views/Road/Index.cshtml new file mode 100755 index 0000000..f511cde --- /dev/null +++ b/src/Maps/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/src/Maps/Views/RoadCategory/Create.cshtml b/src/Maps/Views/RoadCategory/Create.cshtml new file mode 100755 index 0000000..b10b788 --- /dev/null +++ b/src/Maps/Views/RoadCategory/Create.cshtml @@ -0,0 +1,41 @@ +@model Maps.Entities.RoadCategory + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

RoadCategory

+
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/RoadCategory/Delete.cshtml b/src/Maps/Views/RoadCategory/Delete.cshtml new file mode 100755 index 0000000..43c2904 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/RoadCategory/Details.cshtml b/src/Maps/Views/RoadCategory/Details.cshtml new file mode 100755 index 0000000..12c6dc0 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/RoadCategory/Edit.cshtml b/src/Maps/Views/RoadCategory/Edit.cshtml new file mode 100755 index 0000000..0e0590c --- /dev/null +++ b/src/Maps/Views/RoadCategory/Edit.cshtml @@ -0,0 +1,42 @@ +@model Maps.Entities.RoadCategory + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

RoadCategory

+
+
+ +
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/RoadCategory/Index.cshtml b/src/Maps/Views/RoadCategory/Index.cshtml new file mode 100755 index 0000000..7130443 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/RoadDirection/Create.cshtml b/src/Maps/Views/RoadDirection/Create.cshtml new file mode 100755 index 0000000..92a046a --- /dev/null +++ b/src/Maps/Views/RoadDirection/Create.cshtml @@ -0,0 +1,41 @@ +@model Maps.Entities.RoadDirection + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

RoadDirection

+
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/RoadDirection/Delete.cshtml b/src/Maps/Views/RoadDirection/Delete.cshtml new file mode 100755 index 0000000..0af54f6 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/RoadDirection/Details.cshtml b/src/Maps/Views/RoadDirection/Details.cshtml new file mode 100755 index 0000000..720c2da --- /dev/null +++ b/src/Maps/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/src/Maps/Views/RoadDirection/Edit.cshtml b/src/Maps/Views/RoadDirection/Edit.cshtml new file mode 100755 index 0000000..dc0f150 --- /dev/null +++ b/src/Maps/Views/RoadDirection/Edit.cshtml @@ -0,0 +1,42 @@ +@model Maps.Entities.RoadDirection + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

RoadDirection

+
+
+ +
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/RoadDirection/Index.cshtml b/src/Maps/Views/RoadDirection/Index.cshtml new file mode 100755 index 0000000..0b35814 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/RoadPassport/Create.cshtml b/src/Maps/Views/RoadPassport/Create.cshtml new file mode 100755 index 0000000..810278d --- /dev/null +++ b/src/Maps/Views/RoadPassport/Create.cshtml @@ -0,0 +1,60 @@ +@model Maps.Entities.RoadPassport + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

RoadPassport

+
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/RoadPassport/Delete.cshtml b/src/Maps/Views/RoadPassport/Delete.cshtml new file mode 100755 index 0000000..307cb53 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/RoadPassport/Details.cshtml b/src/Maps/Views/RoadPassport/Details.cshtml new file mode 100755 index 0000000..087ed8b --- /dev/null +++ b/src/Maps/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/src/Maps/Views/RoadPassport/Edit.cshtml b/src/Maps/Views/RoadPassport/Edit.cshtml new file mode 100755 index 0000000..27cd8c7 --- /dev/null +++ b/src/Maps/Views/RoadPassport/Edit.cshtml @@ -0,0 +1,63 @@ +@model Maps.Entities.RoadPassport + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

RoadPassport

+
+
+ +
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/RoadPassport/Index.cshtml b/src/Maps/Views/RoadPassport/Index.cshtml new file mode 100755 index 0000000..b3932c1 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/RoadService/Create.cshtml b/src/Maps/Views/RoadService/Create.cshtml new file mode 100755 index 0000000..5840753 --- /dev/null +++ b/src/Maps/Views/RoadService/Create.cshtml @@ -0,0 +1,79 @@ +@model Maps.Entities.RoadService + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

RoadService

+
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/RoadService/Delete.cshtml b/src/Maps/Views/RoadService/Delete.cshtml new file mode 100755 index 0000000..d5e27f0 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/RoadService/Details.cshtml b/src/Maps/Views/RoadService/Details.cshtml new file mode 100755 index 0000000..05abaa6 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/RoadService/Edit.cshtml b/src/Maps/Views/RoadService/Edit.cshtml new file mode 100755 index 0000000..40e784e --- /dev/null +++ b/src/Maps/Views/RoadService/Edit.cshtml @@ -0,0 +1,84 @@ +@model Maps.Entities.RoadService + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

RoadService

+
+
+ +
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/RoadService/Index.cshtml b/src/Maps/Views/RoadService/Index.cshtml new file mode 100755 index 0000000..7009658 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/RoadSurface/Create.cshtml b/src/Maps/Views/RoadSurface/Create.cshtml new file mode 100755 index 0000000..3bc04f3 --- /dev/null +++ b/src/Maps/Views/RoadSurface/Create.cshtml @@ -0,0 +1,119 @@ +@model Maps.Entities.RoadSurface + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

RoadSurface

+
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/RoadSurface/Delete.cshtml b/src/Maps/Views/RoadSurface/Delete.cshtml new file mode 100755 index 0000000..abb66ed --- /dev/null +++ b/src/Maps/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/src/Maps/Views/RoadSurface/Details.cshtml b/src/Maps/Views/RoadSurface/Details.cshtml new file mode 100755 index 0000000..d83f4c8 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/RoadSurface/Edit.cshtml b/src/Maps/Views/RoadSurface/Edit.cshtml new file mode 100755 index 0000000..58bb2e0 --- /dev/null +++ b/src/Maps/Views/RoadSurface/Edit.cshtml @@ -0,0 +1,126 @@ +@model Maps.Entities.RoadSurface + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

RoadSurface

+
+
+ +
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/RoadSurface/Index.cshtml b/src/Maps/Views/RoadSurface/Index.cshtml new file mode 100755 index 0000000..f5d9613 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/RoadType/Create.cshtml b/src/Maps/Views/RoadType/Create.cshtml new file mode 100755 index 0000000..3e6b674 --- /dev/null +++ b/src/Maps/Views/RoadType/Create.cshtml @@ -0,0 +1,48 @@ +@model Maps.Entities.RoadType + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

RoadType

+
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/RoadType/Delete.cshtml b/src/Maps/Views/RoadType/Delete.cshtml new file mode 100755 index 0000000..8fe4952 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/RoadType/Details.cshtml b/src/Maps/Views/RoadType/Details.cshtml new file mode 100755 index 0000000..ea4a205 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/RoadType/Edit.cshtml b/src/Maps/Views/RoadType/Edit.cshtml new file mode 100755 index 0000000..b5cbba5 --- /dev/null +++ b/src/Maps/Views/RoadType/Edit.cshtml @@ -0,0 +1,49 @@ +@model Maps.Entities.RoadType + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

RoadType

+
+
+ +
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/RoadType/Index.cshtml b/src/Maps/Views/RoadType/Index.cshtml new file mode 100755 index 0000000..bdca650 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/RoadWidth/Create.cshtml b/src/Maps/Views/RoadWidth/Create.cshtml new file mode 100755 index 0000000..d0f5c03 --- /dev/null +++ b/src/Maps/Views/RoadWidth/Create.cshtml @@ -0,0 +1,109 @@ +@model Maps.Entities.RoadWidth + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

RoadWidth

+
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/RoadWidth/Delete.cshtml b/src/Maps/Views/RoadWidth/Delete.cshtml new file mode 100755 index 0000000..a26a130 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/RoadWidth/Details.cshtml b/src/Maps/Views/RoadWidth/Details.cshtml new file mode 100755 index 0000000..b16ec69 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/RoadWidth/Edit.cshtml b/src/Maps/Views/RoadWidth/Edit.cshtml new file mode 100755 index 0000000..aa50085 --- /dev/null +++ b/src/Maps/Views/RoadWidth/Edit.cshtml @@ -0,0 +1,112 @@ +@model Maps.Entities.RoadWidth + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

RoadWidth

+
+
+ +
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/RoadWidth/Index.cshtml b/src/Maps/Views/RoadWidth/Index.cshtml new file mode 100755 index 0000000..34f6dad --- /dev/null +++ b/src/Maps/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/src/Maps/Views/ServiceObject/Create.cshtml b/src/Maps/Views/ServiceObject/Create.cshtml new file mode 100755 index 0000000..b7dab21 --- /dev/null +++ b/src/Maps/Views/ServiceObject/Create.cshtml @@ -0,0 +1,106 @@ +@model Maps.Entities.ServiceObject + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

ServiceObject

+
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/ServiceObject/Delete.cshtml b/src/Maps/Views/ServiceObject/Delete.cshtml new file mode 100755 index 0000000..3f6e9ca --- /dev/null +++ b/src/Maps/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/src/Maps/Views/ServiceObject/Details.cshtml b/src/Maps/Views/ServiceObject/Details.cshtml new file mode 100755 index 0000000..21585bd --- /dev/null +++ b/src/Maps/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/src/Maps/Views/ServiceObject/Edit.cshtml b/src/Maps/Views/ServiceObject/Edit.cshtml new file mode 100755 index 0000000..88284bc --- /dev/null +++ b/src/Maps/Views/ServiceObject/Edit.cshtml @@ -0,0 +1,112 @@ +@model Maps.Entities.ServiceObject + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

ServiceObject

+
+
+ +
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/ServiceObject/Index.cshtml b/src/Maps/Views/ServiceObject/Index.cshtml new file mode 100755 index 0000000..eaceb8c --- /dev/null +++ b/src/Maps/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/src/Maps/Views/ServiceObjectType/Create.cshtml b/src/Maps/Views/ServiceObjectType/Create.cshtml new file mode 100755 index 0000000..febed8a --- /dev/null +++ b/src/Maps/Views/ServiceObjectType/Create.cshtml @@ -0,0 +1,41 @@ +@model Maps.Entities.ServiceObjectType + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

ServiceObjectType

+
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/ServiceObjectType/Delete.cshtml b/src/Maps/Views/ServiceObjectType/Delete.cshtml new file mode 100755 index 0000000..91ec801 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/ServiceObjectType/Details.cshtml b/src/Maps/Views/ServiceObjectType/Details.cshtml new file mode 100755 index 0000000..151bcae --- /dev/null +++ b/src/Maps/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/src/Maps/Views/ServiceObjectType/Edit.cshtml b/src/Maps/Views/ServiceObjectType/Edit.cshtml new file mode 100755 index 0000000..b97c4c7 --- /dev/null +++ b/src/Maps/Views/ServiceObjectType/Edit.cshtml @@ -0,0 +1,42 @@ +@model Maps.Entities.ServiceObjectType + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

ServiceObjectType

+
+
+ +
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/ServiceObjectType/Index.cshtml b/src/Maps/Views/ServiceObjectType/Index.cshtml new file mode 100755 index 0000000..574ec74 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/Settlement/Create.cshtml b/src/Maps/Views/Settlement/Create.cshtml new file mode 100755 index 0000000..bcf465d --- /dev/null +++ b/src/Maps/Views/Settlement/Create.cshtml @@ -0,0 +1,48 @@ +@model Maps.Entities.Settlement + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

Settlement

+
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/Settlement/Delete.cshtml b/src/Maps/Views/Settlement/Delete.cshtml new file mode 100755 index 0000000..91ace9a --- /dev/null +++ b/src/Maps/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/src/Maps/Views/Settlement/Details.cshtml b/src/Maps/Views/Settlement/Details.cshtml new file mode 100755 index 0000000..fc41983 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/Settlement/Edit.cshtml b/src/Maps/Views/Settlement/Edit.cshtml new file mode 100755 index 0000000..5c3ee6a --- /dev/null +++ b/src/Maps/Views/Settlement/Edit.cshtml @@ -0,0 +1,49 @@ +@model Maps.Entities.Settlement + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

Settlement

+
+
+ +
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/Settlement/Index.cshtml b/src/Maps/Views/Settlement/Index.cshtml new file mode 100755 index 0000000..2127ff1 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/SettlementAddressLink/Create.cshtml b/src/Maps/Views/SettlementAddressLink/Create.cshtml new file mode 100755 index 0000000..04317da --- /dev/null +++ b/src/Maps/Views/SettlementAddressLink/Create.cshtml @@ -0,0 +1,79 @@ +@model Maps.Entities.SettlementAddressLink + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

SettlementAddressLink

+
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/SettlementAddressLink/Delete.cshtml b/src/Maps/Views/SettlementAddressLink/Delete.cshtml new file mode 100755 index 0000000..6af9d40 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/SettlementAddressLink/Details.cshtml b/src/Maps/Views/SettlementAddressLink/Details.cshtml new file mode 100755 index 0000000..84aec36 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/SettlementAddressLink/Edit.cshtml b/src/Maps/Views/SettlementAddressLink/Edit.cshtml new file mode 100755 index 0000000..6aa6159 --- /dev/null +++ b/src/Maps/Views/SettlementAddressLink/Edit.cshtml @@ -0,0 +1,84 @@ +@model Maps.Entities.SettlementAddressLink + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

SettlementAddressLink

+
+
+ +
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/SettlementAddressLink/Index.cshtml b/src/Maps/Views/SettlementAddressLink/Index.cshtml new file mode 100755 index 0000000..1585370 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/SettlementLocation/Create.cshtml b/src/Maps/Views/SettlementLocation/Create.cshtml new file mode 100755 index 0000000..560b816 --- /dev/null +++ b/src/Maps/Views/SettlementLocation/Create.cshtml @@ -0,0 +1,41 @@ +@model Maps.Entities.SettlementLocation + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

SettlementLocation

+
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/SettlementLocation/Delete.cshtml b/src/Maps/Views/SettlementLocation/Delete.cshtml new file mode 100755 index 0000000..0d74900 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/SettlementLocation/Details.cshtml b/src/Maps/Views/SettlementLocation/Details.cshtml new file mode 100755 index 0000000..52e70e1 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/SettlementLocation/Edit.cshtml b/src/Maps/Views/SettlementLocation/Edit.cshtml new file mode 100755 index 0000000..85127c9 --- /dev/null +++ b/src/Maps/Views/SettlementLocation/Edit.cshtml @@ -0,0 +1,42 @@ +@model Maps.Entities.SettlementLocation + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

SettlementLocation

+
+
+ +
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/SettlementLocation/Index.cshtml b/src/Maps/Views/SettlementLocation/Index.cshtml new file mode 100755 index 0000000..4b996b2 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/Shared/Error.cshtml b/src/Maps/Views/Shared/Error.cshtml new file mode 100644 index 0000000..e514139 --- /dev/null +++ b/src/Maps/Views/Shared/Error.cshtml @@ -0,0 +1,14 @@ +@{ + ViewData["Title"] = "Error"; +} + +

Error.

+

An error occurred while processing your request.

+ +

Development Mode

+

+ Swapping to Development environment will display more detailed information about the error that occurred. +

+

+ Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. +

diff --git a/src/Maps/Views/Shared/_Layout.cshtml b/src/Maps/Views/Shared/_Layout.cshtml new file mode 100644 index 0000000..a004fd2 --- /dev/null +++ b/src/Maps/Views/Shared/_Layout.cshtml @@ -0,0 +1,68 @@ + + + + + + @ViewData["Title"] - Maps + + + + + + + + + + @Html.ApplicationInsightsJavaScript(TelemetryConfiguration) + + + +
+ @RenderBody() +
+
+

© 2017 - Maps

+
+
+ + + + + + + + + + + + + @RenderSection("scripts", required: false) + + diff --git a/src/Maps/Views/StateCommon/Create.cshtml b/src/Maps/Views/StateCommon/Create.cshtml new file mode 100755 index 0000000..5a17fe5 --- /dev/null +++ b/src/Maps/Views/StateCommon/Create.cshtml @@ -0,0 +1,41 @@ +@model Maps.Entities.StateCommon + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

StateCommon

+
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/StateCommon/Delete.cshtml b/src/Maps/Views/StateCommon/Delete.cshtml new file mode 100755 index 0000000..51d9ceb --- /dev/null +++ b/src/Maps/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/src/Maps/Views/StateCommon/Details.cshtml b/src/Maps/Views/StateCommon/Details.cshtml new file mode 100755 index 0000000..7ba7186 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/StateCommon/Edit.cshtml b/src/Maps/Views/StateCommon/Edit.cshtml new file mode 100755 index 0000000..ff3a2d1 --- /dev/null +++ b/src/Maps/Views/StateCommon/Edit.cshtml @@ -0,0 +1,42 @@ +@model Maps.Entities.StateCommon + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

StateCommon

+
+
+ +
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/StateCommon/Index.cshtml b/src/Maps/Views/StateCommon/Index.cshtml new file mode 100755 index 0000000..225e3c6 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/SurfaceTreatment/Create.cshtml b/src/Maps/Views/SurfaceTreatment/Create.cshtml new file mode 100755 index 0000000..84ef9e2 --- /dev/null +++ b/src/Maps/Views/SurfaceTreatment/Create.cshtml @@ -0,0 +1,41 @@ +@model Maps.Entities.SurfaceTreatment + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

SurfaceTreatment

+
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/SurfaceTreatment/Delete.cshtml b/src/Maps/Views/SurfaceTreatment/Delete.cshtml new file mode 100755 index 0000000..d716a38 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/SurfaceTreatment/Details.cshtml b/src/Maps/Views/SurfaceTreatment/Details.cshtml new file mode 100755 index 0000000..3e2683b --- /dev/null +++ b/src/Maps/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/src/Maps/Views/SurfaceTreatment/Edit.cshtml b/src/Maps/Views/SurfaceTreatment/Edit.cshtml new file mode 100755 index 0000000..129ef28 --- /dev/null +++ b/src/Maps/Views/SurfaceTreatment/Edit.cshtml @@ -0,0 +1,42 @@ +@model Maps.Entities.SurfaceTreatment + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

SurfaceTreatment

+
+
+ +
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/SurfaceTreatment/Index.cshtml b/src/Maps/Views/SurfaceTreatment/Index.cshtml new file mode 100755 index 0000000..0dcf27f --- /dev/null +++ b/src/Maps/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/src/Maps/Views/SurfaceType/Create.cshtml b/src/Maps/Views/SurfaceType/Create.cshtml new file mode 100755 index 0000000..a43eb2a --- /dev/null +++ b/src/Maps/Views/SurfaceType/Create.cshtml @@ -0,0 +1,41 @@ +@model Maps.Entities.SurfaceType + +@{ + Layout = null; +} + + + + + + + Create + + + +
+
+

SurfaceType

+
+
+
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/SurfaceType/Delete.cshtml b/src/Maps/Views/SurfaceType/Delete.cshtml new file mode 100755 index 0000000..6af8a29 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/SurfaceType/Details.cshtml b/src/Maps/Views/SurfaceType/Details.cshtml new file mode 100755 index 0000000..bb25f73 --- /dev/null +++ b/src/Maps/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/src/Maps/Views/SurfaceType/Edit.cshtml b/src/Maps/Views/SurfaceType/Edit.cshtml new file mode 100755 index 0000000..0833761 --- /dev/null +++ b/src/Maps/Views/SurfaceType/Edit.cshtml @@ -0,0 +1,42 @@ +@model Maps.Entities.SurfaceType + +@{ + Layout = null; +} + + + + + + + Edit + + + +
+
+

SurfaceType

+
+
+ +
+ +
+ + +
+
+
+
+ +
+
+
+
+ + + + + diff --git a/src/Maps/Views/SurfaceType/Index.cshtml b/src/Maps/Views/SurfaceType/Index.cshtml new file mode 100755 index 0000000..e6ed0a7 --- /dev/null +++ b/src/Maps/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 +
+ + diff --git a/src/Maps/Views/_ViewImports.cshtml b/src/Maps/Views/_ViewImports.cshtml new file mode 100644 index 0000000..e4af351 --- /dev/null +++ b/src/Maps/Views/_ViewImports.cshtml @@ -0,0 +1,3 @@ +@using Maps +@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers +@inject Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration TelemetryConfiguration diff --git a/src/Maps/Views/_ViewStart.cshtml b/src/Maps/Views/_ViewStart.cshtml new file mode 100644 index 0000000..a5f1004 --- /dev/null +++ b/src/Maps/Views/_ViewStart.cshtml @@ -0,0 +1,3 @@ +@{ + Layout = "_Layout"; +} diff --git a/src/Maps/appsettings.json b/src/Maps/appsettings.json new file mode 100644 index 0000000..2d84f2f --- /dev/null +++ b/src/Maps/appsettings.json @@ -0,0 +1,16 @@ +{ + "ApplicationInsights": { + "InstrumentationKey": "" + }, + "Logging": { + "IncludeScopes": false, + "LogLevel": { + "Default": "Debug", + "System": "Information", + "Microsoft": "Information" + } + }, + "DbContextSettings": { + "ConnectionString": "User ID=coremap;Password=5F9g4V9m;Host=195.248.225.149;Port=5432;Database=coremap;Pooling=true;" + } +} \ No newline at end of file diff --git a/src/Maps/bower.json b/src/Maps/bower.json new file mode 100644 index 0000000..69159b6 --- /dev/null +++ b/src/Maps/bower.json @@ -0,0 +1,10 @@ +{ + "name": "asp.net", + "private": true, + "dependencies": { + "bootstrap": "3.3.6", + "jquery": "2.2.0", + "jquery-validation": "1.14.0", + "jquery-validation-unobtrusive": "3.2.6" + } +} diff --git a/src/Maps/bundleconfig.json b/src/Maps/bundleconfig.json new file mode 100644 index 0000000..04754ba --- /dev/null +++ b/src/Maps/bundleconfig.json @@ -0,0 +1,24 @@ +// Configure bundling and minification for the project. +// More info at https://go.microsoft.com/fwlink/?LinkId=808241 +[ + { + "outputFileName": "wwwroot/css/site.min.css", + // An array of relative input file paths. Globbing patterns supported + "inputFiles": [ + "wwwroot/css/site.css" + ] + }, + { + "outputFileName": "wwwroot/js/site.min.js", + "inputFiles": [ + "wwwroot/js/site.js" + ], + // Optionally specify minification options + "minify": { + "enabled": true, + "renameLocals": true + }, + // Optinally generate .map file + "sourceMap": false + } +] diff --git a/src/Maps/project.json b/src/Maps/project.json new file mode 100644 index 0000000..efdd80b --- /dev/null +++ b/src/Maps/project.json @@ -0,0 +1,90 @@ +{ + "dependencies": { + "Microsoft.NETCore.App": { + "version": "1.0.0", + "type": "platform" + }, + "Microsoft.ApplicationInsights.AspNetCore": "1.0.0", + "Microsoft.AspNetCore.Diagnostics": "1.0.0", + "Microsoft.AspNetCore.Mvc": "1.0.1", + "Microsoft.AspNetCore.Razor.Tools": { + "version": "1.0.0-preview2-final", + "type": "build" + }, + "Microsoft.AspNetCore.Routing": "1.0.1", + "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0", + "Microsoft.AspNetCore.Server.Kestrel": "1.0.1", + "Microsoft.AspNetCore.StaticFiles": "1.0.0", + "Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0", + "Microsoft.Extensions.Configuration.Json": "1.0.0", + "Microsoft.Extensions.Logging": "1.0.1", + "Microsoft.Extensions.Logging.Console": "1.0.0", + "Microsoft.Extensions.Logging.Debug": "1.0.0", + "Microsoft.Extensions.Options.ConfigurationExtensions": "1.0.0", + "Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0", + "Microsoft.EntityFrameworkCore.Tools": "1.0.0-preview4-final", + "Microsoft.VisualStudio.Web.CodeGeneration.Tools": { + "version": "1.0.0-preview2-final", + "type": "build" + }, + "Microsoft.VisualStudio.Web.CodeGenerators.Mvc": { + "version": "1.0.0-preview2-final", + "type": "build" + }, + "Npgsql.EntityFrameworkCore.PostgreSQL": "1.0.2", + "Npgsql.EntityFrameworkCore.PostgreSQL.Design": "1.0.2", + "MapsDb": "1.0.0-*", + "MapsModels": "1.0.0-*" + }, + + "tools": { + "BundlerMinifier.Core": "2.0.238", + "Microsoft.EntityFrameworkCore.Tools": { + "version": "1.0.0-preview2-final", + "imports": "portable-net45+win8+dnxcore50" + }, + "Microsoft.AspNetCore.Razor.Tools": "1.0.0-preview4-final", + "Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final", + "Microsoft.VisualStudio.Web.CodeGeneration.Tools": { + "version": "1.0.0-preview2-final", + "imports": [ + "portable-net45+win8" + ] + } + }, + + "frameworks": { + "netcoreapp1.0": { + "imports": [ + "dotnet5.6", + "portable-net45+win8" + ] + } + }, + + "buildOptions": { + "emitEntryPoint": true, + "preserveCompilationContext": true, + "debugType": "portable" + }, + + "runtimeOptions": { + "configProperties": { + "System.GC.Server": true + } + }, + + "publishOptions": { + "include": [ + "wwwroot", + "**/*.cshtml", + "appsettings.json", + "web.config" + ] + }, + + "scripts": { + "prepublish": ["bower install", "dotnet bundle"], + "postpublish": ["dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%"] + } +} \ No newline at end of file diff --git a/src/Maps/web.config b/src/Maps/web.config new file mode 100644 index 0000000..dc0514f --- /dev/null +++ b/src/Maps/web.config @@ -0,0 +1,14 @@ + + + + + + + + + + + + diff --git a/src/MapsDb/DataService/BusStopDs.cs b/src/MapsDb/DataService/BusStopDs.cs new file mode 100644 index 0000000..9ce69f2 --- /dev/null +++ b/src/MapsDb/DataService/BusStopDs.cs @@ -0,0 +1,73 @@ +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using MapsDb.Interfeces; +using MapsDb.Models; +using MapsModels.DsModels; + +namespace MapsDb.DataService +{ + public class BusStopDs : IBusStopDs + { + private PostgresDbContext _context; + public BusStopDs(){ + _context = new PostgresDbContext(); + } + public void Dispose() + { + _context.Dispose(); + } + + public Task> GetAllBusStopAsync(){ + return Task.Factory.StartNew(GetAllBusStop); + } + private IList GetAllBusStop() + { + return _context.BusStop.Select(x => new BusStopListDs + { + Road = x.Road.Name, + Region = x.Region.Name, + Settlement = x.Settlement.Name, + LocationLeft = x.LocationLeft, + LocationRight = x.LocationRight, + StateCommon = x.StateCommon.Value + }).ToList(); + } + + public Task SaveBusStopAsync(BusStop busStop){ + return Task.Factory.StartNew(()=> { Save(busStop); }); + } + private void Save(BusStop busStop) + { + var busStopFromDb = _context.BusStop.SingleOrDefault(x => x.BusStopId == busStop.BusStopId);; + if(busStopFromDb != null) + { + busStopFromDb = busStop; + } + else + { + _context.BusStop.Add(busStop); + } + } + public Task FindOneDetailsAsync(int Id){ + return Task.Factory.StartNew(()=> { FindOneDetails(Id); }); + } + private BusStopDetailsDs FindOneDetails(int Id){ + return _context.BusStop.Where(x => x.BusStopId == Id).Select(x => new BusStopDetailsDs{ + BusStopId = x.BusStopId, + Road = x.Road.Name, + Region = x.Region.Name, + Settlement = x.Settlement.Name, + LocationLeft = x.LocationLeft, + LocationRight = x.LocationRight, + StateCommon = x.StateCommon.Value, + AreaStopAvailability = x.AreaStopAvailability, + AreaLandAvailability = x.AreaLandAvailability, + PocketAvailability = x.PocketAvailability, + ToiletAvailability = x.ToiletAvailability, + YearBuild = x.YearBuild, + YearRepair = x.YearRepair + }); + } + } +} \ No newline at end of file diff --git a/src/MapsDb/Interfaces/IBusStopDs.cs b/src/MapsDb/Interfaces/IBusStopDs.cs new file mode 100644 index 0000000..7fcaa9b --- /dev/null +++ b/src/MapsDb/Interfaces/IBusStopDs.cs @@ -0,0 +1,13 @@ +using System.Collections.Generic; +using System.Threading.Tasks; +using MapsModels.DsModels; +using MapsDb.Models; +namespace MapsDb.Interfeces +{ + public interface IBusStopDs + { + Task> GetAllBusStopAsync(); + Task SaveBusStopAsync(BusStop busStop); + Task FindOneDetailsAsync(int Id); + } +} \ No newline at end of file diff --git a/src/MapsDb/Models/BusStop.cs b/src/MapsDb/Models/BusStop.cs new file mode 100644 index 0000000..a739b86 --- /dev/null +++ b/src/MapsDb/Models/BusStop.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; + +namespace MapsDb.Models +{ + public partial class BusStop + { + public int BusStopId { get; set; } + public int? RoadId { get; set; } + public int? RegionId { get; set; } + public int? SettlementId { get; set; } + public double? LocationLeft { get; set; } + public double? LocationRight { get; set; } + public int? SurfaceTypeId { get; set; } + public int? CrossSectionNumber { get; set; } + public string Position { get; set; } + public int? AreaStopAvailability { get; set; } + public int? PocketAvailability { get; set; } + public int? AreaLandAvailability { get; set; } + public int? ToiletAvailability { get; set; } + public int? StateCommonId { get; set; } + public int? BusStationCardId { get; set; } + public double? BalanceCost { get; set; } + public string RepairCertificate { get; set; } + public int? DateActual { get; set; } + public int? YearBuild { get; set; } + public int? YearRepair { get; set; } + + public virtual Region Region { get; set; } + public virtual Road Road { get; set; } + public virtual Settlement Settlement { get; set; } + public virtual StateCommon StateCommon { get; set; } + public virtual SurfaceType SurfaceType { get; set; } + } +} diff --git a/src/MapsDb/Models/CrossSection.cs b/src/MapsDb/Models/CrossSection.cs new file mode 100644 index 0000000..713dff6 --- /dev/null +++ b/src/MapsDb/Models/CrossSection.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; + +namespace MapsDb.Models +{ + public partial class CrossSection + { + public int CrossSectionId { get; set; } + public int? RegionId { get; set; } + public int? RoadId { get; set; } + public double? LocationLeft { get; set; } + public double? LocationRight { get; set; } + public string Direction { get; set; } + public int? SurfaceTypeId { get; set; } + public double? LengthSection { get; set; } + public double? LengthSurface { get; set; } + public double? DistanceEdge { get; set; } + public double? Width { get; set; } + public double? Angle { get; set; } + public int? TubeAvailability { get; set; } + public int? SafetyAvailability { get; set; } + public int? YearBuild { get; set; } + public int? YearRepair { get; set; } + public int? StateCommonId { get; set; } + + public virtual Region Region { get; set; } + public virtual Road Road { get; set; } + public virtual StateCommon StateCommon { get; set; } + public virtual SurfaceType SurfaceType { get; set; } + } +} diff --git a/src/MapsDb/Models/DepartmentAffiliation.cs b/src/MapsDb/Models/DepartmentAffiliation.cs new file mode 100644 index 0000000..49473a4 --- /dev/null +++ b/src/MapsDb/Models/DepartmentAffiliation.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; + +namespace MapsDb.Models +{ + public partial class DepartmentAffiliation + { + public DepartmentAffiliation() + { + ServiceObject = new HashSet(); + } + + public int DepartmentAffiliationId { get; set; } + public string Name { get; set; } + + public virtual ICollection ServiceObject { get; set; } + } +} diff --git a/src/MapsDb/Models/FlowIntensity.cs b/src/MapsDb/Models/FlowIntensity.cs new file mode 100644 index 0000000..4870539 --- /dev/null +++ b/src/MapsDb/Models/FlowIntensity.cs @@ -0,0 +1,41 @@ +using System; +using System.Collections.Generic; + +namespace MapsDb.Models +{ + public partial class FlowIntensity + { + public int FlowIntensityId { get; set; } + public int? RoadId { get; set; } + public int? RegionId { get; set; } + public double? Location { get; set; } + public double? Begin { get; set; } + public double? End { get; set; } + public int? RoadDirectionId { get; set; } + public int? SettlementId { get; set; } + public int? IntensityTotal { get; set; } + public int? IntensityIncrease { get; set; } + public int? IntensityMoto { get; set; } + public int? IntensityMotoSidecar { get; set; } + public int? IntensityCar { get; set; } + public int? IntensityTruckTwo { get; set; } + public int? IntensityTruckTwoSix { get; set; } + public int? IntensityTruckSixEight { get; set; } + public int? IntensityTruckEightFourteen { get; set; } + public int? IntensityTruckFourteen { get; set; } + public int? IntensityLorryTwelve { get; set; } + public int? IntensityLorryTwelveTwenty { get; set; } + public int? IntensityLorryTwentyThirty { get; set; } + public int? IntensityLorryThirty { get; set; } + public int? IntensityTractorUnderTen { get; set; } + public int? IntensityTractorOverTen { get; set; } + public int? IntensityBus { get; set; } + public int? IntensityBusCoupled { get; set; } + public int? DateAdd { get; set; } + + public virtual Region Region { get; set; } + public virtual RoadDirection RoadDirection { get; set; } + public virtual Road Road { get; set; } + public virtual Settlement Settlement { get; set; } + } +} diff --git a/src/MapsDb/Models/Organization.cs b/src/MapsDb/Models/Organization.cs new file mode 100644 index 0000000..e977bc8 --- /dev/null +++ b/src/MapsDb/Models/Organization.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; + +namespace MapsDb.Models +{ + public partial class Organization + { + public Organization() + { + RoadService = new HashSet(); + } + + public int OrganizationId { get; set; } + public string Name { get; set; } + public int? DateAdd { get; set; } + + public virtual ICollection RoadService { get; set; } + } +} diff --git a/src/MapsDb/Models/Region.cs b/src/MapsDb/Models/Region.cs new file mode 100644 index 0000000..0dbc9b0 --- /dev/null +++ b/src/MapsDb/Models/Region.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; + +namespace MapsDb.Models +{ + public partial class Region + { + public Region() + { + BusStop = new HashSet(); + CrossSection = new HashSet(); + FlowIntensity = new HashSet(); + RoadPassport = new HashSet(); + RoadService = new HashSet(); + RoadSurface = new HashSet(); + RoadWidth = new HashSet(); + ServiceObject = new HashSet(); + SettlementAddressLink = new HashSet(); + } + + public int RegionId { get; set; } + public string Name { get; set; } + public int? Index { get; set; } + + public virtual ICollection BusStop { get; set; } + public virtual ICollection CrossSection { get; set; } + public virtual ICollection FlowIntensity { get; set; } + public virtual ICollection RoadPassport { get; set; } + public virtual ICollection RoadService { get; set; } + public virtual ICollection RoadSurface { get; set; } + public virtual ICollection RoadWidth { get; set; } + public virtual ICollection ServiceObject { get; set; } + public virtual ICollection SettlementAddressLink { get; set; } + } +} diff --git a/src/MapsDb/Models/Road.cs b/src/MapsDb/Models/Road.cs new file mode 100644 index 0000000..ec71a82 --- /dev/null +++ b/src/MapsDb/Models/Road.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; + +namespace MapsDb.Models +{ + public partial class Road + { + public Road() + { + BusStop = new HashSet(); + CrossSection = new HashSet(); + FlowIntensity = new HashSet(); + RoadPassport = new HashSet(); + RoadService = new HashSet(); + RoadSurface = new HashSet(); + RoadWidth = new HashSet(); + ServiceObject = new HashSet(); + SettlementAddressLink = new HashSet(); + } + + public int RoadId { get; set; } + public string Name { get; set; } + public string Value { get; set; } + public double? Length { get; set; } + public string HistoricalBackground { get; set; } + public string EconomicValue { get; set; } + public string LawDoc { get; set; } + public string AcceptTransferDoc { get; set; } + public string AcceptanceDoc { get; set; } + public string AuthorityAct { get; set; } + public int? RoadTypeId { get; set; } + public int Index { get; set; } + + public virtual ICollection BusStop { get; set; } + public virtual ICollection CrossSection { get; set; } + public virtual ICollection FlowIntensity { get; set; } + public virtual ICollection RoadPassport { get; set; } + public virtual ICollection RoadService { get; set; } + public virtual ICollection RoadSurface { get; set; } + public virtual ICollection RoadWidth { get; set; } + public virtual ICollection ServiceObject { get; set; } + public virtual ICollection SettlementAddressLink { get; set; } + public virtual RoadType RoadType { get; set; } + } +} diff --git a/src/MapsDb/Models/RoadCategory.cs b/src/MapsDb/Models/RoadCategory.cs new file mode 100644 index 0000000..6219103 --- /dev/null +++ b/src/MapsDb/Models/RoadCategory.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; + +namespace MapsDb.Models +{ + public partial class RoadCategory + { + public int RoadCategoryId { get; set; } + public string Value { get; set; } + } +} diff --git a/src/MapsDb/Models/RoadDirection.cs b/src/MapsDb/Models/RoadDirection.cs new file mode 100644 index 0000000..9a2ce12 --- /dev/null +++ b/src/MapsDb/Models/RoadDirection.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; + +namespace MapsDb.Models +{ + public partial class RoadDirection + { + public RoadDirection() + { + FlowIntensity = new HashSet(); + RoadService = new HashSet(); + RoadSurface = new HashSet(); + } + + public int RoadDirectionId { get; set; } + public string DirectionName { get; set; } + + public virtual ICollection FlowIntensity { get; set; } + public virtual ICollection RoadService { get; set; } + public virtual ICollection RoadSurface { get; set; } + } +} diff --git a/src/MapsDb/Models/RoadPassport.cs b/src/MapsDb/Models/RoadPassport.cs new file mode 100644 index 0000000..629d1e9 --- /dev/null +++ b/src/MapsDb/Models/RoadPassport.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; + +namespace MapsDb.Models +{ + public partial class RoadPassport + { + public int RoadPassportId { get; set; } + public int? RoadId { get; set; } + public int? RegionId { get; set; } + public double? Begin { get; set; } + public double? End { get; set; } + + public virtual Region Region { get; set; } + public virtual Road Road { get; set; } + } +} diff --git a/src/MapsDb/Models/RoadService.cs b/src/MapsDb/Models/RoadService.cs new file mode 100644 index 0000000..820cb5f --- /dev/null +++ b/src/MapsDb/Models/RoadService.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; + +namespace MapsDb.Models +{ + public partial class RoadService + { + public int RoadServiceId { get; set; } + public int? RoadId { get; set; } + public int? RegionId { get; set; } + public int? RoadDirectionId { get; set; } + public int? OrganizationId { get; set; } + public double? Begin { get; set; } + public double? End { get; set; } + public int? YearBegin { get; set; } + + public virtual Organization Organization { get; set; } + public virtual Region Region { get; set; } + public virtual RoadDirection RoadDirection { get; set; } + public virtual Road Road { get; set; } + } +} diff --git a/src/MapsDb/Models/RoadSurface.cs b/src/MapsDb/Models/RoadSurface.cs new file mode 100644 index 0000000..db3ecbc --- /dev/null +++ b/src/MapsDb/Models/RoadSurface.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; + +namespace MapsDb.Models +{ + public partial class RoadSurface + { + public int RoadSurfaceId { get; set; } + public int? RoadId { get; set; } + public int? RegionId { get; set; } + public int? RoadDirectionId { get; set; } + public int? SurfaceTypeId { get; set; } + public int? SurfaceTreatmentId { get; set; } + public int? StateCommonId { get; set; } + public int? CrossSectionNumber { get; set; } + public double? Begin { get; set; } + public double? End { get; set; } + public int? LaneCountLeft { get; set; } + public int? LaneCountRight { get; set; } + public string RoadSurfaceConstructionId { get; set; } + public double? ElastisityModule { get; set; } + + public virtual Region Region { get; set; } + public virtual RoadDirection RoadDirection { get; set; } + public virtual Road Road { get; set; } + public virtual StateCommon StateCommon { get; set; } + public virtual SurfaceTreatment SurfaceTreatment { get; set; } + public virtual SurfaceType SurfaceType { get; set; } + } +} diff --git a/src/MapsDb/Models/RoadType.cs b/src/MapsDb/Models/RoadType.cs new file mode 100644 index 0000000..fcb7afc --- /dev/null +++ b/src/MapsDb/Models/RoadType.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; + +namespace MapsDb.Models +{ + public partial class RoadType + { + public RoadType() + { + Road = new HashSet(); + } + + public int RoadTypeId { get; set; } + public string Value { get; set; } + public string Definition { get; set; } + + public virtual ICollection Road { get; set; } + } +} diff --git a/src/MapsDb/Models/RoadWidth.cs b/src/MapsDb/Models/RoadWidth.cs new file mode 100644 index 0000000..81dd83a --- /dev/null +++ b/src/MapsDb/Models/RoadWidth.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; + +namespace MapsDb.Models +{ + public partial class RoadWidth + { + public int RoadWidthId { get; set; } + public int? RegionId { get; set; } + public int? RoadId { get; set; } + public double? Begin { get; set; } + public double? End { get; set; } + public double? WidthRoadsideLeft { get; set; } + public double? WidthReverseRoad { get; set; } + public double? WidthStrip { get; set; } + public double? WidthRoadwayForward { get; set; } + public double? WidthRoadsideRight { get; set; } + public double? CountLaneLeft { get; set; } + public double? CountLaneRight { get; set; } + + public virtual Region Region { get; set; } + public virtual Road Road { get; set; } + } +} diff --git a/src/MapsDb/Models/ServiceObject.cs b/src/MapsDb/Models/ServiceObject.cs new file mode 100644 index 0000000..e693ffe --- /dev/null +++ b/src/MapsDb/Models/ServiceObject.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; + +namespace MapsDb.Models +{ + public partial class ServiceObject + { + public int ServiceObjectId { get; set; } + public int? RoadId { get; set; } + public int? RegionId { get; set; } + public int? ServiceObjectTypeId { get; set; } + public int? SettlementId { get; set; } + public int? DepartmentAffiliationId { get; set; } + public double? LocationRight { get; set; } + public double? LocationLeft { get; set; } + public double? LocationAxis { get; set; } + public double? Distance { get; set; } + public double? Capacity { get; set; } + public string ArrangementElements { get; set; } + + public virtual DepartmentAffiliation DepartmentAffiliation { get; set; } + public virtual Region Region { get; set; } + public virtual Road Road { get; set; } + public virtual ServiceObjectType ServiceObjectType { get; set; } + public virtual Settlement Settlement { get; set; } + } +} diff --git a/src/MapsDb/Models/ServiceObjectType.cs b/src/MapsDb/Models/ServiceObjectType.cs new file mode 100644 index 0000000..3a029fb --- /dev/null +++ b/src/MapsDb/Models/ServiceObjectType.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; + +namespace MapsDb.Models +{ + public partial class ServiceObjectType + { + public ServiceObjectType() + { + ServiceObject = new HashSet(); + } + + public int ServiceObjectTypeId { get; set; } + public string Name { get; set; } + + public virtual ICollection ServiceObject { get; set; } + } +} diff --git a/src/MapsDb/Models/Settlement.cs b/src/MapsDb/Models/Settlement.cs new file mode 100644 index 0000000..9384da7 --- /dev/null +++ b/src/MapsDb/Models/Settlement.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; + +namespace MapsDb.Models +{ + public partial class Settlement + { + public Settlement() + { + BusStop = new HashSet(); + FlowIntensity = new HashSet(); + ServiceObject = new HashSet(); + SettlementAddressLink = new HashSet(); + } + + public int SettlementId { get; set; } + public string Name { get; set; } + public string Sign { get; set; } + + public virtual ICollection BusStop { get; set; } + public virtual ICollection FlowIntensity { get; set; } + public virtual ICollection ServiceObject { get; set; } + public virtual ICollection SettlementAddressLink { get; set; } + } +} diff --git a/src/MapsDb/Models/SettlementAddressLink.cs b/src/MapsDb/Models/SettlementAddressLink.cs new file mode 100644 index 0000000..7402c79 --- /dev/null +++ b/src/MapsDb/Models/SettlementAddressLink.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; + +namespace MapsDb.Models +{ + public partial class SettlementAddressLink + { + public int SettlementAddressLinkId { get; set; } + public int? RoadId { get; set; } + public int? RegionId { get; set; } + public int? SettlementLocationId { get; set; } + public int? SettlementId { get; set; } + public double? Begin { get; set; } + public double? End { get; set; } + public double? Distance { get; set; } + + public virtual Region Region { get; set; } + public virtual Road Road { get; set; } + public virtual Settlement Settlement { get; set; } + public virtual SettlementLocation SettlementLocation { get; set; } + } +} diff --git a/src/MapsDb/Models/SettlementLocation.cs b/src/MapsDb/Models/SettlementLocation.cs new file mode 100644 index 0000000..fbb556e --- /dev/null +++ b/src/MapsDb/Models/SettlementLocation.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; + +namespace MapsDb.Models +{ + public partial class SettlementLocation + { + public SettlementLocation() + { + SettlementAddressLink = new HashSet(); + } + + public int SettlementLocationId { get; set; } + public string Value { get; set; } + + public virtual ICollection SettlementAddressLink { get; set; } + } +} diff --git a/src/MapsDb/Models/StateCommon.cs b/src/MapsDb/Models/StateCommon.cs new file mode 100644 index 0000000..8172f93 --- /dev/null +++ b/src/MapsDb/Models/StateCommon.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; + +namespace MapsDb.Models +{ + public partial class StateCommon + { + public StateCommon() + { + BusStop = new HashSet(); + CrossSection = new HashSet(); + RoadSurface = new HashSet(); + } + + public int StateCommonId { get; set; } + public string Value { get; set; } + + public virtual ICollection BusStop { get; set; } + public virtual ICollection CrossSection { get; set; } + public virtual ICollection RoadSurface { get; set; } + } +} diff --git a/src/MapsDb/Models/SurfaceTreatment.cs b/src/MapsDb/Models/SurfaceTreatment.cs new file mode 100644 index 0000000..cbd14c8 --- /dev/null +++ b/src/MapsDb/Models/SurfaceTreatment.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; + +namespace MapsDb.Models +{ + public partial class SurfaceTreatment + { + public SurfaceTreatment() + { + RoadSurface = new HashSet(); + } + + public int SurfaceTreatmentId { get; set; } + public string Name { get; set; } + + public virtual ICollection RoadSurface { get; set; } + } +} diff --git a/src/MapsDb/Models/SurfaceType.cs b/src/MapsDb/Models/SurfaceType.cs new file mode 100644 index 0000000..657c3c9 --- /dev/null +++ b/src/MapsDb/Models/SurfaceType.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; + +namespace MapsDb.Models +{ + public partial class SurfaceType + { + public SurfaceType() + { + BusStop = new HashSet(); + CrossSection = new HashSet(); + RoadSurface = new HashSet(); + } + + public int SurfaceTypeId { get; set; } + public string Name { get; set; } + + public virtual ICollection BusStop { get; set; } + public virtual ICollection CrossSection { get; set; } + public virtual ICollection RoadSurface { get; set; } + } +} diff --git a/src/MapsDb/PostgresDbContext.cs b/src/MapsDb/PostgresDbContext.cs new file mode 100644 index 0000000..ff72b39 --- /dev/null +++ b/src/MapsDb/PostgresDbContext.cs @@ -0,0 +1,772 @@ +using System; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Metadata; +using MapsDb.Models; +namespace MapsDb +{ + public partial class PostgresDbContext : DbContext + { + protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) + { + #warning To protect potentially sensitive information in your connection string, you should move it out of source code. See http://go.microsoft.com/fwlink/?LinkId=723263 for guidance on storing connection strings. + optionsBuilder.UseNpgsql(@"User ID=coremap;Password=5F9g4V9m;Host=195.248.225.149;Port=5432;Database=coremap;Pooling=true;"); + } + + protected override void OnModelCreating(ModelBuilder modelBuilder) + { + modelBuilder.Entity(entity => + { + entity.ToTable("bus_stop"); + + entity.Property(e => e.BusStopId).HasColumnName("bus_stop_id"); + + entity.Property(e => e.AreaLandAvailability).HasColumnName("area_land_availability"); + + entity.Property(e => e.AreaStopAvailability).HasColumnName("area_stop_availability"); + + entity.Property(e => e.BalanceCost).HasColumnName("balance_cost"); + + entity.Property(e => e.BusStationCardId).HasColumnName("bus_station_card_id"); + + entity.Property(e => e.CrossSectionNumber).HasColumnName("cross_section_number"); + + entity.Property(e => e.DateActual).HasColumnName("date_actual"); + + entity.Property(e => e.LocationLeft).HasColumnName("location_left"); + + entity.Property(e => e.LocationRight).HasColumnName("location_right"); + + entity.Property(e => e.PocketAvailability).HasColumnName("pocket_availability"); + + entity.Property(e => e.Position) + .HasColumnName("position") + .HasColumnType("varchar") + .HasMaxLength(255); + + entity.Property(e => e.RegionId).HasColumnName("region_id"); + + entity.Property(e => e.RepairCertificate) + .HasColumnName("repair_certificate") + .HasColumnType("varchar") + .HasMaxLength(255); + + entity.Property(e => e.RoadId).HasColumnName("road_id"); + + entity.Property(e => e.SettlementId).HasColumnName("settlement_id"); + + entity.Property(e => e.StateCommonId).HasColumnName("state_common_id"); + + entity.Property(e => e.SurfaceTypeId).HasColumnName("surface_type_id"); + + entity.Property(e => e.ToiletAvailability).HasColumnName("toilet_availability"); + + entity.Property(e => e.YearBuild).HasColumnName("year_build"); + + entity.Property(e => e.YearRepair).HasColumnName("year_repair"); + + entity.HasOne(d => d.Region) + .WithMany(p => p.BusStop) + .HasForeignKey(d => d.RegionId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("bus_stop_region_id_fkey"); + + entity.HasOne(d => d.Road) + .WithMany(p => p.BusStop) + .HasForeignKey(d => d.RoadId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("bus_stop_road_id_fkey"); + + entity.HasOne(d => d.Settlement) + .WithMany(p => p.BusStop) + .HasForeignKey(d => d.SettlementId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("bus_stop_settlement_id_fkey"); + + entity.HasOne(d => d.StateCommon) + .WithMany(p => p.BusStop) + .HasForeignKey(d => d.StateCommonId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("bus_stop_state_common_id_fkey"); + + entity.HasOne(d => d.SurfaceType) + .WithMany(p => p.BusStop) + .HasForeignKey(d => d.SurfaceTypeId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("bus_stop_surface_type_id_fkey"); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("cross_section"); + + entity.Property(e => e.CrossSectionId).HasColumnName("cross_section_id"); + + entity.Property(e => e.Angle).HasColumnName("angle"); + + entity.Property(e => e.Direction) + .HasColumnName("direction") + .HasColumnType("varchar") + .HasMaxLength(255); + + entity.Property(e => e.DistanceEdge).HasColumnName("distance_edge"); + + entity.Property(e => e.LengthSection).HasColumnName("length_section"); + + entity.Property(e => e.LengthSurface).HasColumnName("length_surface"); + + entity.Property(e => e.LocationLeft).HasColumnName("location_left"); + + entity.Property(e => e.LocationRight).HasColumnName("location_right"); + + entity.Property(e => e.RegionId).HasColumnName("region_id"); + + entity.Property(e => e.RoadId).HasColumnName("road_id"); + + entity.Property(e => e.SafetyAvailability).HasColumnName("safety_availability"); + + entity.Property(e => e.StateCommonId).HasColumnName("state_common_id"); + + entity.Property(e => e.SurfaceTypeId).HasColumnName("surface_type_id"); + + entity.Property(e => e.TubeAvailability).HasColumnName("tube_availability"); + + entity.Property(e => e.Width).HasColumnName("width"); + + entity.Property(e => e.YearBuild).HasColumnName("year_build"); + + entity.Property(e => e.YearRepair).HasColumnName("year_repair"); + + entity.HasOne(d => d.Region) + .WithMany(p => p.CrossSection) + .HasForeignKey(d => d.RegionId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("cross_section_region_id_fkey"); + + entity.HasOne(d => d.Road) + .WithMany(p => p.CrossSection) + .HasForeignKey(d => d.RoadId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("cross_section_road_id_fkey"); + + entity.HasOne(d => d.StateCommon) + .WithMany(p => p.CrossSection) + .HasForeignKey(d => d.StateCommonId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("cross_section_state_common_id_fkey"); + + entity.HasOne(d => d.SurfaceType) + .WithMany(p => p.CrossSection) + .HasForeignKey(d => d.SurfaceTypeId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("cross_section_surface_type_id_fkey"); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("department_affiliation"); + + entity.Property(e => e.DepartmentAffiliationId).HasColumnName("department_affiliation_id"); + + entity.Property(e => e.Name) + .HasColumnName("name") + .HasColumnType("varchar") + .HasMaxLength(255); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("flow_intensity"); + + entity.Property(e => e.FlowIntensityId).HasColumnName("flow_intensity_id"); + + entity.Property(e => e.Begin).HasColumnName("begin"); + + entity.Property(e => e.DateAdd).HasColumnName("date_add"); + + entity.Property(e => e.End).HasColumnName("end"); + + entity.Property(e => e.IntensityBus).HasColumnName("intensity_bus"); + + entity.Property(e => e.IntensityBusCoupled).HasColumnName("intensity_bus_coupled"); + + entity.Property(e => e.IntensityCar).HasColumnName("intensity_car"); + + entity.Property(e => e.IntensityIncrease).HasColumnName("intensity_increase"); + + entity.Property(e => e.IntensityLorryThirty).HasColumnName("intensity_lorry_thirty"); + + entity.Property(e => e.IntensityLorryTwelve).HasColumnName("intensity_lorry_twelve"); + + entity.Property(e => e.IntensityLorryTwelveTwenty).HasColumnName("intensity_lorry_twelve_twenty"); + + entity.Property(e => e.IntensityLorryTwentyThirty).HasColumnName("intensity_lorry_twenty_thirty"); + + entity.Property(e => e.IntensityMoto).HasColumnName("intensity_moto"); + + entity.Property(e => e.IntensityMotoSidecar).HasColumnName("intensity_moto_sidecar"); + + entity.Property(e => e.IntensityTotal).HasColumnName("intensity_total"); + + entity.Property(e => e.IntensityTractorOverTen).HasColumnName("intensity_tractor_over_ten"); + + entity.Property(e => e.IntensityTractorUnderTen).HasColumnName("intensity_tractor_under_ten"); + + entity.Property(e => e.IntensityTruckEightFourteen).HasColumnName("intensity_truck_eight_fourteen"); + + entity.Property(e => e.IntensityTruckFourteen).HasColumnName("intensity_truck_fourteen"); + + entity.Property(e => e.IntensityTruckSixEight).HasColumnName("intensity_truck_six_eight"); + + entity.Property(e => e.IntensityTruckTwo).HasColumnName("intensity_truck_two"); + + entity.Property(e => e.IntensityTruckTwoSix).HasColumnName("intensity_truck_two_six"); + + entity.Property(e => e.Location).HasColumnName("location"); + + entity.Property(e => e.RegionId).HasColumnName("region_id"); + + entity.Property(e => e.RoadDirectionId).HasColumnName("road_direction_id"); + + entity.Property(e => e.RoadId).HasColumnName("road_id"); + + entity.Property(e => e.SettlementId).HasColumnName("settlement_id"); + + entity.HasOne(d => d.Region) + .WithMany(p => p.FlowIntensity) + .HasForeignKey(d => d.RegionId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("flow_intensity_region_id_fkey"); + + entity.HasOne(d => d.RoadDirection) + .WithMany(p => p.FlowIntensity) + .HasForeignKey(d => d.RoadDirectionId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("flow_intensity_road_direction_id_fkey"); + + entity.HasOne(d => d.Road) + .WithMany(p => p.FlowIntensity) + .HasForeignKey(d => d.RoadId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("flow_intensity_road_id_fkey"); + + entity.HasOne(d => d.Settlement) + .WithMany(p => p.FlowIntensity) + .HasForeignKey(d => d.SettlementId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("flow_intensity_settlement_id_fkey"); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("organization"); + + entity.Property(e => e.OrganizationId).HasColumnName("organization_id"); + + entity.Property(e => e.DateAdd).HasColumnName("date_add"); + + entity.Property(e => e.Name) + .IsRequired() + .HasColumnName("name") + .HasColumnType("varchar") + .HasMaxLength(255); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("region"); + + entity.Property(e => e.RegionId).HasColumnName("region_id"); + + entity.Property(e => e.Index).HasColumnName("index"); + + entity.Property(e => e.Name) + .HasColumnName("name") + .HasColumnType("varchar") + .HasMaxLength(255); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("road"); + + entity.Property(e => e.RoadId).HasColumnName("road_id"); + + entity.Property(e => e.AcceptTransferDoc) + .HasColumnName("accept_transfer_doc") + .HasColumnType("varchar") + .HasMaxLength(255); + + entity.Property(e => e.AcceptanceDoc) + .HasColumnName("acceptance_doc") + .HasColumnType("varchar") + .HasMaxLength(255); + + entity.Property(e => e.AuthorityAct) + .HasColumnName("authority_act") + .HasColumnType("varchar") + .HasMaxLength(255); + + entity.Property(e => e.EconomicValue).HasColumnName("economic_value"); + + entity.Property(e => e.HistoricalBackground).HasColumnName("historical_background"); + + entity.Property(e => e.Index).HasColumnName("index"); + + entity.Property(e => e.LawDoc) + .HasColumnName("law_doc") + .HasColumnType("varchar") + .HasMaxLength(255); + + entity.Property(e => e.Length).HasColumnName("length"); + + entity.Property(e => e.Name) + .HasColumnName("name") + .HasColumnType("varchar") + .HasMaxLength(255); + + entity.Property(e => e.RoadTypeId).HasColumnName("road_type_id"); + + entity.Property(e => e.Value).HasColumnName("value"); + + entity.HasOne(d => d.RoadType) + .WithMany(p => p.Road) + .HasForeignKey(d => d.RoadTypeId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("road_road_type_id_fkey"); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("road_category"); + + entity.Property(e => e.RoadCategoryId).HasColumnName("road_category_id"); + + entity.Property(e => e.Value) + .HasColumnName("value") + .HasColumnType("varchar") + .HasMaxLength(255); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("road_direction"); + + entity.Property(e => e.RoadDirectionId).HasColumnName("road_direction_id"); + + entity.Property(e => e.DirectionName) + .IsRequired() + .HasColumnName("direction_name") + .HasColumnType("varchar") + .HasMaxLength(255); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("road_passport"); + + entity.Property(e => e.RoadPassportId).HasColumnName("road_passport_id"); + + entity.Property(e => e.Begin).HasColumnName("begin"); + + entity.Property(e => e.End).HasColumnName("end"); + + entity.Property(e => e.RegionId).HasColumnName("region_id"); + + entity.Property(e => e.RoadId).HasColumnName("road_id"); + + entity.HasOne(d => d.Region) + .WithMany(p => p.RoadPassport) + .HasForeignKey(d => d.RegionId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("road_passport_region_id_fkey"); + + entity.HasOne(d => d.Road) + .WithMany(p => p.RoadPassport) + .HasForeignKey(d => d.RoadId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("road_passport_road_id_fkey"); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("road_service"); + + entity.Property(e => e.RoadServiceId).HasColumnName("road_service_id"); + + entity.Property(e => e.Begin).HasColumnName("begin"); + + entity.Property(e => e.End).HasColumnName("end"); + + entity.Property(e => e.OrganizationId).HasColumnName("organization_id"); + + entity.Property(e => e.RegionId).HasColumnName("region_id"); + + entity.Property(e => e.RoadDirectionId).HasColumnName("road_direction_id"); + + entity.Property(e => e.RoadId).HasColumnName("road_id"); + + entity.Property(e => e.YearBegin).HasColumnName("year_begin"); + + entity.HasOne(d => d.Organization) + .WithMany(p => p.RoadService) + .HasForeignKey(d => d.OrganizationId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("road_service_organization_id_fkey"); + + entity.HasOne(d => d.Region) + .WithMany(p => p.RoadService) + .HasForeignKey(d => d.RegionId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("road_service_region_id_fkey"); + + entity.HasOne(d => d.RoadDirection) + .WithMany(p => p.RoadService) + .HasForeignKey(d => d.RoadDirectionId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("road_service_road_direction_id_fkey"); + + entity.HasOne(d => d.Road) + .WithMany(p => p.RoadService) + .HasForeignKey(d => d.RoadId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("road_service_road_id_fkey"); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("road_surface"); + + entity.Property(e => e.RoadSurfaceId).HasColumnName("road_surface_id"); + + entity.Property(e => e.Begin).HasColumnName("begin"); + + entity.Property(e => e.CrossSectionNumber).HasColumnName("cross_section_number"); + + entity.Property(e => e.ElastisityModule).HasColumnName("elastisity_module"); + + entity.Property(e => e.End).HasColumnName("end"); + + entity.Property(e => e.LaneCountLeft).HasColumnName("lane_count_left"); + + entity.Property(e => e.LaneCountRight).HasColumnName("lane_count_right"); + + entity.Property(e => e.RegionId).HasColumnName("region_id"); + + entity.Property(e => e.RoadDirectionId).HasColumnName("road_direction_id"); + + entity.Property(e => e.RoadId).HasColumnName("road_id"); + + entity.Property(e => e.RoadSurfaceConstructionId) + .HasColumnName("road_surface_construction_id") + .HasColumnType("varchar") + .HasMaxLength(255); + + entity.Property(e => e.StateCommonId).HasColumnName("state_common_id"); + + entity.Property(e => e.SurfaceTreatmentId).HasColumnName("surface_treatment_id"); + + entity.Property(e => e.SurfaceTypeId).HasColumnName("surface_type_id"); + + entity.HasOne(d => d.Region) + .WithMany(p => p.RoadSurface) + .HasForeignKey(d => d.RegionId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("road_surface_region_id_fkey"); + + entity.HasOne(d => d.RoadDirection) + .WithMany(p => p.RoadSurface) + .HasForeignKey(d => d.RoadDirectionId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("road_surface_road_direction_id_fkey"); + + entity.HasOne(d => d.Road) + .WithMany(p => p.RoadSurface) + .HasForeignKey(d => d.RoadId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("road_surface_road_id_fkey"); + + entity.HasOne(d => d.StateCommon) + .WithMany(p => p.RoadSurface) + .HasForeignKey(d => d.StateCommonId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("road_surface_state_common_id_fkey"); + + entity.HasOne(d => d.SurfaceTreatment) + .WithMany(p => p.RoadSurface) + .HasForeignKey(d => d.SurfaceTreatmentId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("road_surface_surface_treatment_id_fkey"); + + entity.HasOne(d => d.SurfaceType) + .WithMany(p => p.RoadSurface) + .HasForeignKey(d => d.SurfaceTypeId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("road_surface_surface_type_id_fkey"); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("road_type"); + + entity.Property(e => e.RoadTypeId).HasColumnName("road_type_id"); + + entity.Property(e => e.Definition) + .HasColumnName("definition") + .HasColumnType("varchar") + .HasMaxLength(255); + + entity.Property(e => e.Value) + .HasColumnName("value") + .HasColumnType("varchar") + .HasMaxLength(255); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("road_width"); + + entity.Property(e => e.RoadWidthId).HasColumnName("road_width_id"); + + entity.Property(e => e.Begin).HasColumnName("begin"); + + entity.Property(e => e.CountLaneLeft).HasColumnName("count_lane_left"); + + entity.Property(e => e.CountLaneRight).HasColumnName("count_lane_right"); + + entity.Property(e => e.End).HasColumnName("end"); + + entity.Property(e => e.RegionId).HasColumnName("region_id"); + + entity.Property(e => e.RoadId).HasColumnName("road_id"); + + entity.Property(e => e.WidthReverseRoad).HasColumnName("width_reverse_road"); + + entity.Property(e => e.WidthRoadsideLeft).HasColumnName("width_roadside_left"); + + entity.Property(e => e.WidthRoadsideRight).HasColumnName("width_roadside_right"); + + entity.Property(e => e.WidthRoadwayForward).HasColumnName("width_roadway_forward"); + + entity.Property(e => e.WidthStrip).HasColumnName("width_strip"); + + entity.HasOne(d => d.Region) + .WithMany(p => p.RoadWidth) + .HasForeignKey(d => d.RegionId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("road_width_region_id_fkey"); + + entity.HasOne(d => d.Road) + .WithMany(p => p.RoadWidth) + .HasForeignKey(d => d.RoadId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("road_width_road_id_fkey"); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("service_object"); + + entity.Property(e => e.ServiceObjectId).HasColumnName("service_object_id"); + + entity.Property(e => e.ArrangementElements).HasColumnName("arrangement_elements"); + + entity.Property(e => e.Capacity).HasColumnName("capacity"); + + entity.Property(e => e.DepartmentAffiliationId).HasColumnName("department_affiliation_id"); + + entity.Property(e => e.Distance).HasColumnName("distance"); + + entity.Property(e => e.LocationAxis).HasColumnName("location_axis"); + + entity.Property(e => e.LocationLeft).HasColumnName("location_left"); + + entity.Property(e => e.LocationRight).HasColumnName("location_right"); + + entity.Property(e => e.RegionId).HasColumnName("region_id"); + + entity.Property(e => e.RoadId).HasColumnName("road_id"); + + entity.Property(e => e.ServiceObjectTypeId).HasColumnName("service_object_type_id"); + + entity.Property(e => e.SettlementId).HasColumnName("settlement_id"); + + entity.HasOne(d => d.DepartmentAffiliation) + .WithMany(p => p.ServiceObject) + .HasForeignKey(d => d.DepartmentAffiliationId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("service_object_department_affiliation_id_fkey"); + + entity.HasOne(d => d.Region) + .WithMany(p => p.ServiceObject) + .HasForeignKey(d => d.RegionId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("service_object_region_id_fkey"); + + entity.HasOne(d => d.Road) + .WithMany(p => p.ServiceObject) + .HasForeignKey(d => d.RoadId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("service_object_road_id_fkey"); + + entity.HasOne(d => d.ServiceObjectType) + .WithMany(p => p.ServiceObject) + .HasForeignKey(d => d.ServiceObjectTypeId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("service_object_service_object_type_id_fkey"); + + entity.HasOne(d => d.Settlement) + .WithMany(p => p.ServiceObject) + .HasForeignKey(d => d.SettlementId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("service_object_settlement_id_fkey"); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("service_object_type"); + + entity.Property(e => e.ServiceObjectTypeId).HasColumnName("service_object_type_id"); + + entity.Property(e => e.Name) + .HasColumnName("name") + .HasColumnType("varchar") + .HasMaxLength(255); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("settlement"); + + entity.Property(e => e.SettlementId).HasColumnName("settlement_id"); + + entity.Property(e => e.Name) + .IsRequired() + .HasColumnName("name") + .HasColumnType("varchar") + .HasMaxLength(255); + + entity.Property(e => e.Sign) + .HasColumnName("sign") + .HasColumnType("varchar") + .HasMaxLength(255); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("settlement_address_link"); + + entity.Property(e => e.SettlementAddressLinkId).HasColumnName("settlement_address_link_id"); + + entity.Property(e => e.Begin).HasColumnName("begin"); + + entity.Property(e => e.Distance).HasColumnName("distance"); + + entity.Property(e => e.End).HasColumnName("end"); + + entity.Property(e => e.RegionId).HasColumnName("region_id"); + + entity.Property(e => e.RoadId).HasColumnName("road_id"); + + entity.Property(e => e.SettlementId).HasColumnName("settlement_id"); + + entity.Property(e => e.SettlementLocationId).HasColumnName("settlement_location_id"); + + entity.HasOne(d => d.Region) + .WithMany(p => p.SettlementAddressLink) + .HasForeignKey(d => d.RegionId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("settlement_address_link_region_id_fkey"); + + entity.HasOne(d => d.Road) + .WithMany(p => p.SettlementAddressLink) + .HasForeignKey(d => d.RoadId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("settlement_address_link_road_id_fkey"); + + entity.HasOne(d => d.Settlement) + .WithMany(p => p.SettlementAddressLink) + .HasForeignKey(d => d.SettlementId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("settlement_address_link_settlement_id_fkey"); + + entity.HasOne(d => d.SettlementLocation) + .WithMany(p => p.SettlementAddressLink) + .HasForeignKey(d => d.SettlementLocationId) + .OnDelete(DeleteBehavior.Cascade) + .HasConstraintName("settlement_address_link_settlement_location_id_fkey"); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("settlement_location"); + + entity.Property(e => e.SettlementLocationId).HasColumnName("settlement_location_id"); + + entity.Property(e => e.Value) + .IsRequired() + .HasColumnName("value") + .HasColumnType("varchar") + .HasMaxLength(255); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("state_common"); + + entity.Property(e => e.StateCommonId).HasColumnName("state_common_id"); + + entity.Property(e => e.Value) + .HasColumnName("value") + .HasColumnType("varchar") + .HasMaxLength(255); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("surface_treatment"); + + entity.Property(e => e.SurfaceTreatmentId).HasColumnName("surface_treatment_id"); + + entity.Property(e => e.Name) + .HasColumnName("name") + .HasColumnType("varchar") + .HasMaxLength(255); + }); + + modelBuilder.Entity(entity => + { + entity.ToTable("surface_type"); + + entity.Property(e => e.SurfaceTypeId).HasColumnName("surface_type_id"); + + entity.Property(e => e.Name) + .HasColumnName("name") + .HasColumnType("varchar") + .HasMaxLength(255); + }); + } + + public virtual DbSet BusStop { get; set; } + public virtual DbSet CrossSection { get; set; } + public virtual DbSet DepartmentAffiliation { get; set; } + public virtual DbSet FlowIntensity { get; set; } + public virtual DbSet Organization { get; set; } + public virtual DbSet Region { get; set; } + public virtual DbSet Road { get; set; } + public virtual DbSet RoadCategory { get; set; } + public virtual DbSet RoadDirection { get; set; } + public virtual DbSet RoadPassport { get; set; } + public virtual DbSet RoadService { get; set; } + public virtual DbSet RoadSurface { get; set; } + public virtual DbSet RoadType { get; set; } + public virtual DbSet RoadWidth { get; set; } + public virtual DbSet ServiceObject { get; set; } + public virtual DbSet ServiceObjectType { get; set; } + public virtual DbSet Settlement { get; set; } + public virtual DbSet SettlementAddressLink { get; set; } + public virtual DbSet SettlementLocation { get; set; } + public virtual DbSet StateCommon { get; set; } + public virtual DbSet SurfaceTreatment { get; set; } + public virtual DbSet SurfaceType { get; set; } + } +} \ No newline at end of file diff --git a/src/MapsDb/Program.cs b/src/MapsDb/Program.cs new file mode 100755 index 0000000..5d90385 --- /dev/null +++ b/src/MapsDb/Program.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace MapsDb +{ + public class Program + { + public static void Main(string[] args) + { + } + } +} diff --git a/src/MapsDb/project.json b/src/MapsDb/project.json new file mode 100755 index 0000000..cd19575 --- /dev/null +++ b/src/MapsDb/project.json @@ -0,0 +1,26 @@ +{ + "version": "1.0.0-*", + "buildOptions": { + "emitEntryPoint": true + }, + "dependencies": { + "Microsoft.EntityFrameworkCore": "1.0.2", + "Microsoft.EntityFrameworkCore.Design": "1.0.2", + "Microsoft.EntityFrameworkCore.Design.Core": "1.0.0-preview2-final", + "Microsoft.EntityFrameworkCore.Tools": "1.0.0-preview4-final", + "Microsoft.NETCore.App": { + "type": "platform", + "version": "1.0.0" + }, + "Npgsql.EntityFrameworkCore.PostgreSQL": "1.0", + "MapsModels": "1.0.0-*" + }, + "frameworks": { + "netcoreapp1.0": { + "imports": "dnxcore50" + } + }, + "tools": { + "Microsoft.EntityFrameworkCore.Tools.DotNet": "1.0.0-preview4-final" + } +} \ No newline at end of file diff --git a/src/MapsModels/DsModels/BusStopDetailsDs.cs b/src/MapsModels/DsModels/BusStopDetailsDs.cs new file mode 100644 index 0000000..3a294a9 --- /dev/null +++ b/src/MapsModels/DsModels/BusStopDetailsDs.cs @@ -0,0 +1,21 @@ +namespace MapsModels.DsModels +{ + public class BusStopDetailsDs + { + public int BusStopId { get; set; } + public string Road { get; set; } + public string Region { get; set; } + public string Settlement { get; set; } + public double? LocationLeft { get; set; } + public double? LocationRight { get; set; } + public string SurfaceType { get; set; } + public int? AreaStopAvailability { get; set; } + public int? AreaLandAvailability { get; set; } + public int? PocketAvailability { get; set; } + public int? ToiletAvailability { get; set; } + public int? YearBuild { get; set; } + public int? YearRepair { get; set; } + public string StateCommon { get; set; } + + } +} \ No newline at end of file diff --git a/src/MapsModels/DsModels/BusStopListDs.cs b/src/MapsModels/DsModels/BusStopListDs.cs new file mode 100644 index 0000000..6b13b69 --- /dev/null +++ b/src/MapsModels/DsModels/BusStopListDs.cs @@ -0,0 +1,12 @@ +namespace MapsModels.DsModels +{ + public class BusStopListDs + { + public string Road { get; set; } + public string Region { get; set; } + public string Settlement { get; set; } + public double? LocationLeft { get; set; } + public double? LocationRight { get; set; } + public string StateCommon { get; set; } + } +} \ No newline at end of file diff --git a/src/MapsModels/Library.cs b/src/MapsModels/Library.cs new file mode 100755 index 0000000..3a9c724 --- /dev/null +++ b/src/MapsModels/Library.cs @@ -0,0 +1,11 @@ +using System; + +namespace MapsModels +{ + public class Library + { + public void Method1() + { + } + } +} diff --git a/src/MapsModels/ViewModels/DetailsBusStopVm.cs b/src/MapsModels/ViewModels/DetailsBusStopVm.cs new file mode 100644 index 0000000..5663244 --- /dev/null +++ b/src/MapsModels/ViewModels/DetailsBusStopVm.cs @@ -0,0 +1,10 @@ +using System.Collections.Generic; +using MapsModels.DsModels; + +namespace MapsModels.ViewModels +{ + public class DetailsBusStopVm + { + public BusStopDetailsDs busStopDetailsDs { get; set; } + } +} diff --git a/src/MapsModels/ViewModels/ListBusStopVm.cs b/src/MapsModels/ViewModels/ListBusStopVm.cs new file mode 100644 index 0000000..61cbdb0 --- /dev/null +++ b/src/MapsModels/ViewModels/ListBusStopVm.cs @@ -0,0 +1,10 @@ +using System.Collections.Generic; +using MapsModels.DsModels; + +namespace MapsModels.ViewModels +{ + public class ListBusStopVm + { + public List busStopListDs { get; set; } + } +} diff --git a/src/MapsModels/project.json b/src/MapsModels/project.json new file mode 100755 index 0000000..09b58b5 --- /dev/null +++ b/src/MapsModels/project.json @@ -0,0 +1,14 @@ +{ + "version": "1.0.0-*", + "buildOptions": { + "debugType": "portable" + }, + "dependencies": {}, + "frameworks": { + "netstandard1.6": { + "dependencies": { + "NETStandard.Library": "1.6.1" + } + } + } +} -- libgit2 0.21.4