Commit 89227bfebe64db44a4995accfb0751da1000607b
1 parent
1519f210
add crud for all models
Showing
131 changed files
with
10027 additions
and
169 deletions
Show diff stats
Too many changes.
To preserve performance only 100 of 131 files are displayed.
1 | +using System; | |
2 | +using System.Collections.Generic; | |
3 | +using System.Linq; | |
4 | +using System.Threading.Tasks; | |
5 | +using Microsoft.AspNetCore.Mvc; | |
6 | +using Microsoft.AspNetCore.Mvc.Rendering; | |
7 | +using Microsoft.EntityFrameworkCore; | |
8 | +using Maps.Entities; | |
9 | + | |
10 | +namespace maps_core.Controllers | |
11 | +{ | |
12 | + public class CrossSectionController : Controller | |
13 | + { | |
14 | + private readonly PostgresDbContext _context; | |
15 | + | |
16 | + public CrossSectionController(PostgresDbContext context) | |
17 | + { | |
18 | + _context = context; | |
19 | + } | |
20 | + | |
21 | + // GET: CrossSection | |
22 | + public async Task<IActionResult> Index() | |
23 | + { | |
24 | + var postgresDbContext = _context.CrossSection.Include(c => c.Region).Include(c => c.Road).Include(c => c.StateCommon).Include(c => c.SurfaceType); | |
25 | + return View(await postgresDbContext.ToListAsync()); | |
26 | + } | |
27 | + | |
28 | + // GET: CrossSection/Details/5 | |
29 | + public async Task<IActionResult> Details(int? id) | |
30 | + { | |
31 | + if (id == null) | |
32 | + { | |
33 | + return NotFound(); | |
34 | + } | |
35 | + | |
36 | + var crossSection = await _context.CrossSection.SingleOrDefaultAsync(m => m.CrossSectionId == id); | |
37 | + if (crossSection == null) | |
38 | + { | |
39 | + return NotFound(); | |
40 | + } | |
41 | + | |
42 | + return View(crossSection); | |
43 | + } | |
44 | + | |
45 | + // GET: CrossSection/Create | |
46 | + public IActionResult Create() | |
47 | + { | |
48 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId"); | |
49 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId"); | |
50 | + ViewData["StateCommonId"] = new SelectList(_context.StateCommon, "StateCommonId", "StateCommonId"); | |
51 | + ViewData["SurfaceTypeId"] = new SelectList(_context.SurfaceType, "SurfaceTypeId", "SurfaceTypeId"); | |
52 | + return View(); | |
53 | + } | |
54 | + | |
55 | + // POST: CrossSection/Create | |
56 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
57 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
58 | + [HttpPost] | |
59 | + [ValidateAntiForgeryToken] | |
60 | + public async Task<IActionResult> Create([Bind("CrossSectionId,Angle,Direction,DistanceEdge,LengthSection,LengthSurface,LocationLeft,LocationRight,RegionId,RoadId,SafetyAvailability,StateCommonId,SurfaceTypeId,TubeAvailability,Width,YearBuild,YearRepair")] CrossSection crossSection) | |
61 | + { | |
62 | + if (ModelState.IsValid) | |
63 | + { | |
64 | + _context.Add(crossSection); | |
65 | + await _context.SaveChangesAsync(); | |
66 | + return RedirectToAction("Index"); | |
67 | + } | |
68 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", crossSection.RegionId); | |
69 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", crossSection.RoadId); | |
70 | + ViewData["StateCommonId"] = new SelectList(_context.StateCommon, "StateCommonId", "StateCommonId", crossSection.StateCommonId); | |
71 | + ViewData["SurfaceTypeId"] = new SelectList(_context.SurfaceType, "SurfaceTypeId", "SurfaceTypeId", crossSection.SurfaceTypeId); | |
72 | + return View(crossSection); | |
73 | + } | |
74 | + | |
75 | + // GET: CrossSection/Edit/5 | |
76 | + public async Task<IActionResult> Edit(int? id) | |
77 | + { | |
78 | + if (id == null) | |
79 | + { | |
80 | + return NotFound(); | |
81 | + } | |
82 | + | |
83 | + var crossSection = await _context.CrossSection.SingleOrDefaultAsync(m => m.CrossSectionId == id); | |
84 | + if (crossSection == null) | |
85 | + { | |
86 | + return NotFound(); | |
87 | + } | |
88 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", crossSection.RegionId); | |
89 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", crossSection.RoadId); | |
90 | + ViewData["StateCommonId"] = new SelectList(_context.StateCommon, "StateCommonId", "StateCommonId", crossSection.StateCommonId); | |
91 | + ViewData["SurfaceTypeId"] = new SelectList(_context.SurfaceType, "SurfaceTypeId", "SurfaceTypeId", crossSection.SurfaceTypeId); | |
92 | + return View(crossSection); | |
93 | + } | |
94 | + | |
95 | + // POST: CrossSection/Edit/5 | |
96 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
97 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
98 | + [HttpPost] | |
99 | + [ValidateAntiForgeryToken] | |
100 | + public async Task<IActionResult> Edit(int id, [Bind("CrossSectionId,Angle,Direction,DistanceEdge,LengthSection,LengthSurface,LocationLeft,LocationRight,RegionId,RoadId,SafetyAvailability,StateCommonId,SurfaceTypeId,TubeAvailability,Width,YearBuild,YearRepair")] CrossSection crossSection) | |
101 | + { | |
102 | + if (id != crossSection.CrossSectionId) | |
103 | + { | |
104 | + return NotFound(); | |
105 | + } | |
106 | + | |
107 | + if (ModelState.IsValid) | |
108 | + { | |
109 | + try | |
110 | + { | |
111 | + _context.Update(crossSection); | |
112 | + await _context.SaveChangesAsync(); | |
113 | + } | |
114 | + catch (DbUpdateConcurrencyException) | |
115 | + { | |
116 | + if (!CrossSectionExists(crossSection.CrossSectionId)) | |
117 | + { | |
118 | + return NotFound(); | |
119 | + } | |
120 | + else | |
121 | + { | |
122 | + throw; | |
123 | + } | |
124 | + } | |
125 | + return RedirectToAction("Index"); | |
126 | + } | |
127 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", crossSection.RegionId); | |
128 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", crossSection.RoadId); | |
129 | + ViewData["StateCommonId"] = new SelectList(_context.StateCommon, "StateCommonId", "StateCommonId", crossSection.StateCommonId); | |
130 | + ViewData["SurfaceTypeId"] = new SelectList(_context.SurfaceType, "SurfaceTypeId", "SurfaceTypeId", crossSection.SurfaceTypeId); | |
131 | + return View(crossSection); | |
132 | + } | |
133 | + | |
134 | + // GET: CrossSection/Delete/5 | |
135 | + public async Task<IActionResult> Delete(int? id) | |
136 | + { | |
137 | + if (id == null) | |
138 | + { | |
139 | + return NotFound(); | |
140 | + } | |
141 | + | |
142 | + var crossSection = await _context.CrossSection.SingleOrDefaultAsync(m => m.CrossSectionId == id); | |
143 | + if (crossSection == null) | |
144 | + { | |
145 | + return NotFound(); | |
146 | + } | |
147 | + | |
148 | + return View(crossSection); | |
149 | + } | |
150 | + | |
151 | + // POST: CrossSection/Delete/5 | |
152 | + [HttpPost, ActionName("Delete")] | |
153 | + [ValidateAntiForgeryToken] | |
154 | + public async Task<IActionResult> DeleteConfirmed(int id) | |
155 | + { | |
156 | + var crossSection = await _context.CrossSection.SingleOrDefaultAsync(m => m.CrossSectionId == id); | |
157 | + _context.CrossSection.Remove(crossSection); | |
158 | + await _context.SaveChangesAsync(); | |
159 | + return RedirectToAction("Index"); | |
160 | + } | |
161 | + | |
162 | + private bool CrossSectionExists(int id) | |
163 | + { | |
164 | + return _context.CrossSection.Any(e => e.CrossSectionId == id); | |
165 | + } | |
166 | + } | |
167 | +} | ... | ... |
1 | +using System; | |
2 | +using System.Collections.Generic; | |
3 | +using System.Linq; | |
4 | +using System.Threading.Tasks; | |
5 | +using Microsoft.AspNetCore.Mvc; | |
6 | +using Microsoft.AspNetCore.Mvc.Rendering; | |
7 | +using Microsoft.EntityFrameworkCore; | |
8 | +using Maps.Entities; | |
9 | + | |
10 | +namespace maps_core.Controllers | |
11 | +{ | |
12 | + public class DepartmentAffiliationController : Controller | |
13 | + { | |
14 | + private readonly PostgresDbContext _context; | |
15 | + | |
16 | + public DepartmentAffiliationController(PostgresDbContext context) | |
17 | + { | |
18 | + _context = context; | |
19 | + } | |
20 | + | |
21 | + // GET: DepartmentAffiliation | |
22 | + public async Task<IActionResult> Index() | |
23 | + { | |
24 | + return View(await _context.DepartmentAffiliation.ToListAsync()); | |
25 | + } | |
26 | + | |
27 | + // GET: DepartmentAffiliation/Details/5 | |
28 | + public async Task<IActionResult> Details(int? id) | |
29 | + { | |
30 | + if (id == null) | |
31 | + { | |
32 | + return NotFound(); | |
33 | + } | |
34 | + | |
35 | + var departmentAffiliation = await _context.DepartmentAffiliation.SingleOrDefaultAsync(m => m.DepartmentAffiliationId == id); | |
36 | + if (departmentAffiliation == null) | |
37 | + { | |
38 | + return NotFound(); | |
39 | + } | |
40 | + | |
41 | + return View(departmentAffiliation); | |
42 | + } | |
43 | + | |
44 | + // GET: DepartmentAffiliation/Create | |
45 | + public IActionResult Create() | |
46 | + { | |
47 | + return View(); | |
48 | + } | |
49 | + | |
50 | + // POST: DepartmentAffiliation/Create | |
51 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
52 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
53 | + [HttpPost] | |
54 | + [ValidateAntiForgeryToken] | |
55 | + public async Task<IActionResult> Create([Bind("DepartmentAffiliationId,Name")] DepartmentAffiliation departmentAffiliation) | |
56 | + { | |
57 | + if (ModelState.IsValid) | |
58 | + { | |
59 | + _context.Add(departmentAffiliation); | |
60 | + await _context.SaveChangesAsync(); | |
61 | + return RedirectToAction("Index"); | |
62 | + } | |
63 | + return View(departmentAffiliation); | |
64 | + } | |
65 | + | |
66 | + // GET: DepartmentAffiliation/Edit/5 | |
67 | + public async Task<IActionResult> Edit(int? id) | |
68 | + { | |
69 | + if (id == null) | |
70 | + { | |
71 | + return NotFound(); | |
72 | + } | |
73 | + | |
74 | + var departmentAffiliation = await _context.DepartmentAffiliation.SingleOrDefaultAsync(m => m.DepartmentAffiliationId == id); | |
75 | + if (departmentAffiliation == null) | |
76 | + { | |
77 | + return NotFound(); | |
78 | + } | |
79 | + return View(departmentAffiliation); | |
80 | + } | |
81 | + | |
82 | + // POST: DepartmentAffiliation/Edit/5 | |
83 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
84 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
85 | + [HttpPost] | |
86 | + [ValidateAntiForgeryToken] | |
87 | + public async Task<IActionResult> Edit(int id, [Bind("DepartmentAffiliationId,Name")] DepartmentAffiliation departmentAffiliation) | |
88 | + { | |
89 | + if (id != departmentAffiliation.DepartmentAffiliationId) | |
90 | + { | |
91 | + return NotFound(); | |
92 | + } | |
93 | + | |
94 | + if (ModelState.IsValid) | |
95 | + { | |
96 | + try | |
97 | + { | |
98 | + _context.Update(departmentAffiliation); | |
99 | + await _context.SaveChangesAsync(); | |
100 | + } | |
101 | + catch (DbUpdateConcurrencyException) | |
102 | + { | |
103 | + if (!DepartmentAffiliationExists(departmentAffiliation.DepartmentAffiliationId)) | |
104 | + { | |
105 | + return NotFound(); | |
106 | + } | |
107 | + else | |
108 | + { | |
109 | + throw; | |
110 | + } | |
111 | + } | |
112 | + return RedirectToAction("Index"); | |
113 | + } | |
114 | + return View(departmentAffiliation); | |
115 | + } | |
116 | + | |
117 | + // GET: DepartmentAffiliation/Delete/5 | |
118 | + public async Task<IActionResult> Delete(int? id) | |
119 | + { | |
120 | + if (id == null) | |
121 | + { | |
122 | + return NotFound(); | |
123 | + } | |
124 | + | |
125 | + var departmentAffiliation = await _context.DepartmentAffiliation.SingleOrDefaultAsync(m => m.DepartmentAffiliationId == id); | |
126 | + if (departmentAffiliation == null) | |
127 | + { | |
128 | + return NotFound(); | |
129 | + } | |
130 | + | |
131 | + return View(departmentAffiliation); | |
132 | + } | |
133 | + | |
134 | + // POST: DepartmentAffiliation/Delete/5 | |
135 | + [HttpPost, ActionName("Delete")] | |
136 | + [ValidateAntiForgeryToken] | |
137 | + public async Task<IActionResult> DeleteConfirmed(int id) | |
138 | + { | |
139 | + var departmentAffiliation = await _context.DepartmentAffiliation.SingleOrDefaultAsync(m => m.DepartmentAffiliationId == id); | |
140 | + _context.DepartmentAffiliation.Remove(departmentAffiliation); | |
141 | + await _context.SaveChangesAsync(); | |
142 | + return RedirectToAction("Index"); | |
143 | + } | |
144 | + | |
145 | + private bool DepartmentAffiliationExists(int id) | |
146 | + { | |
147 | + return _context.DepartmentAffiliation.Any(e => e.DepartmentAffiliationId == id); | |
148 | + } | |
149 | + } | |
150 | +} | ... | ... |
1 | +using System; | |
2 | +using System.Collections.Generic; | |
3 | +using System.Linq; | |
4 | +using System.Threading.Tasks; | |
5 | +using Microsoft.AspNetCore.Mvc; | |
6 | +using Microsoft.AspNetCore.Mvc.Rendering; | |
7 | +using Microsoft.EntityFrameworkCore; | |
8 | +using Maps.Entities; | |
9 | + | |
10 | +namespace maps_core.Controllers | |
11 | +{ | |
12 | + public class FlowIntensityController : Controller | |
13 | + { | |
14 | + private readonly PostgresDbContext _context; | |
15 | + | |
16 | + public FlowIntensityController(PostgresDbContext context) | |
17 | + { | |
18 | + _context = context; | |
19 | + } | |
20 | + | |
21 | + // GET: FlowIntensity | |
22 | + public async Task<IActionResult> Index() | |
23 | + { | |
24 | + var postgresDbContext = _context.FlowIntensity.Include(f => f.Region).Include(f => f.Road).Include(f => f.RoadDirection).Include(f => f.Settlement); | |
25 | + return View(await postgresDbContext.ToListAsync()); | |
26 | + } | |
27 | + | |
28 | + // GET: FlowIntensity/Details/5 | |
29 | + public async Task<IActionResult> Details(int? id) | |
30 | + { | |
31 | + if (id == null) | |
32 | + { | |
33 | + return NotFound(); | |
34 | + } | |
35 | + | |
36 | + var flowIntensity = await _context.FlowIntensity.SingleOrDefaultAsync(m => m.FlowIntensityId == id); | |
37 | + if (flowIntensity == null) | |
38 | + { | |
39 | + return NotFound(); | |
40 | + } | |
41 | + | |
42 | + return View(flowIntensity); | |
43 | + } | |
44 | + | |
45 | + // GET: FlowIntensity/Create | |
46 | + public IActionResult Create() | |
47 | + { | |
48 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId"); | |
49 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId"); | |
50 | + ViewData["RoadDirectionId"] = new SelectList(_context.RoadDirection, "RoadDirectionId", "DirectionName"); | |
51 | + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name"); | |
52 | + return View(); | |
53 | + } | |
54 | + | |
55 | + // POST: FlowIntensity/Create | |
56 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
57 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
58 | + [HttpPost] | |
59 | + [ValidateAntiForgeryToken] | |
60 | + public async Task<IActionResult> Create([Bind("FlowIntensityId,Begin,DateAdd,End,IntensityBus,IntensityBusCoupled,IntensityCar,IntensityIncrease,IntensityLorryThirty,IntensityLorryTwelve,IntensityLorryTwelveTwenty,IntensityLorryTwentyThirty,IntensityMoto,IntensityMotoSidecar,IntensityTotal,IntensityTractorOverTen,IntensityTractorUnderTen,IntensityTruckEightFourteen,IntensityTruckFourteen,IntensityTruckSixEight,IntensityTruckTwo,IntensityTruckTwoSix,Location,RegionId,RoadDirectionId,RoadId,SettlementId")] FlowIntensity flowIntensity) | |
61 | + { | |
62 | + if (ModelState.IsValid) | |
63 | + { | |
64 | + _context.Add(flowIntensity); | |
65 | + await _context.SaveChangesAsync(); | |
66 | + return RedirectToAction("Index"); | |
67 | + } | |
68 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", flowIntensity.RegionId); | |
69 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", flowIntensity.RoadId); | |
70 | + ViewData["RoadDirectionId"] = new SelectList(_context.RoadDirection, "RoadDirectionId", "DirectionName", flowIntensity.RoadDirectionId); | |
71 | + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name", flowIntensity.SettlementId); | |
72 | + return View(flowIntensity); | |
73 | + } | |
74 | + | |
75 | + // GET: FlowIntensity/Edit/5 | |
76 | + public async Task<IActionResult> Edit(int? id) | |
77 | + { | |
78 | + if (id == null) | |
79 | + { | |
80 | + return NotFound(); | |
81 | + } | |
82 | + | |
83 | + var flowIntensity = await _context.FlowIntensity.SingleOrDefaultAsync(m => m.FlowIntensityId == id); | |
84 | + if (flowIntensity == null) | |
85 | + { | |
86 | + return NotFound(); | |
87 | + } | |
88 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", flowIntensity.RegionId); | |
89 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", flowIntensity.RoadId); | |
90 | + ViewData["RoadDirectionId"] = new SelectList(_context.RoadDirection, "RoadDirectionId", "DirectionName", flowIntensity.RoadDirectionId); | |
91 | + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name", flowIntensity.SettlementId); | |
92 | + return View(flowIntensity); | |
93 | + } | |
94 | + | |
95 | + // POST: FlowIntensity/Edit/5 | |
96 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
97 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
98 | + [HttpPost] | |
99 | + [ValidateAntiForgeryToken] | |
100 | + public async Task<IActionResult> Edit(int id, [Bind("FlowIntensityId,Begin,DateAdd,End,IntensityBus,IntensityBusCoupled,IntensityCar,IntensityIncrease,IntensityLorryThirty,IntensityLorryTwelve,IntensityLorryTwelveTwenty,IntensityLorryTwentyThirty,IntensityMoto,IntensityMotoSidecar,IntensityTotal,IntensityTractorOverTen,IntensityTractorUnderTen,IntensityTruckEightFourteen,IntensityTruckFourteen,IntensityTruckSixEight,IntensityTruckTwo,IntensityTruckTwoSix,Location,RegionId,RoadDirectionId,RoadId,SettlementId")] FlowIntensity flowIntensity) | |
101 | + { | |
102 | + if (id != flowIntensity.FlowIntensityId) | |
103 | + { | |
104 | + return NotFound(); | |
105 | + } | |
106 | + | |
107 | + if (ModelState.IsValid) | |
108 | + { | |
109 | + try | |
110 | + { | |
111 | + _context.Update(flowIntensity); | |
112 | + await _context.SaveChangesAsync(); | |
113 | + } | |
114 | + catch (DbUpdateConcurrencyException) | |
115 | + { | |
116 | + if (!FlowIntensityExists(flowIntensity.FlowIntensityId)) | |
117 | + { | |
118 | + return NotFound(); | |
119 | + } | |
120 | + else | |
121 | + { | |
122 | + throw; | |
123 | + } | |
124 | + } | |
125 | + return RedirectToAction("Index"); | |
126 | + } | |
127 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", flowIntensity.RegionId); | |
128 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", flowIntensity.RoadId); | |
129 | + ViewData["RoadDirectionId"] = new SelectList(_context.RoadDirection, "RoadDirectionId", "DirectionName", flowIntensity.RoadDirectionId); | |
130 | + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name", flowIntensity.SettlementId); | |
131 | + return View(flowIntensity); | |
132 | + } | |
133 | + | |
134 | + // GET: FlowIntensity/Delete/5 | |
135 | + public async Task<IActionResult> Delete(int? id) | |
136 | + { | |
137 | + if (id == null) | |
138 | + { | |
139 | + return NotFound(); | |
140 | + } | |
141 | + | |
142 | + var flowIntensity = await _context.FlowIntensity.SingleOrDefaultAsync(m => m.FlowIntensityId == id); | |
143 | + if (flowIntensity == null) | |
144 | + { | |
145 | + return NotFound(); | |
146 | + } | |
147 | + | |
148 | + return View(flowIntensity); | |
149 | + } | |
150 | + | |
151 | + // POST: FlowIntensity/Delete/5 | |
152 | + [HttpPost, ActionName("Delete")] | |
153 | + [ValidateAntiForgeryToken] | |
154 | + public async Task<IActionResult> DeleteConfirmed(int id) | |
155 | + { | |
156 | + var flowIntensity = await _context.FlowIntensity.SingleOrDefaultAsync(m => m.FlowIntensityId == id); | |
157 | + _context.FlowIntensity.Remove(flowIntensity); | |
158 | + await _context.SaveChangesAsync(); | |
159 | + return RedirectToAction("Index"); | |
160 | + } | |
161 | + | |
162 | + private bool FlowIntensityExists(int id) | |
163 | + { | |
164 | + return _context.FlowIntensity.Any(e => e.FlowIntensityId == id); | |
165 | + } | |
166 | + } | |
167 | +} | ... | ... |
Controllers/HomeController.cs deleted
1 | -using System; | |
2 | -using System.Collections.Generic; | |
3 | -using System.Linq; | |
4 | -using System.Threading.Tasks; | |
5 | -using Microsoft.AspNetCore.Mvc; | |
6 | - | |
7 | -namespace Maps.Controllers | |
8 | -{ | |
9 | - public class HomeController : Controller | |
10 | - { | |
11 | - public IActionResult Index() | |
12 | - { | |
13 | - return View(); | |
14 | - } | |
15 | - | |
16 | - public IActionResult About() | |
17 | - { | |
18 | - ViewData["Message"] = "Your application description page."; | |
19 | - | |
20 | - return View(); | |
21 | - } | |
22 | - | |
23 | - public IActionResult Contact() | |
24 | - { | |
25 | - ViewData["Message"] = "Your contact page."; | |
26 | - | |
27 | - return View(); | |
28 | - } | |
29 | - | |
30 | - public IActionResult Error() | |
31 | - { | |
32 | - return View(); | |
33 | - } | |
34 | - } | |
35 | -} |
1 | +using System; | |
2 | +using System.Collections.Generic; | |
3 | +using System.Linq; | |
4 | +using System.Threading.Tasks; | |
5 | +using Microsoft.AspNetCore.Mvc; | |
6 | +using Microsoft.AspNetCore.Mvc.Rendering; | |
7 | +using Microsoft.EntityFrameworkCore; | |
8 | +using Maps.Entities; | |
9 | + | |
10 | +namespace maps_core.Controllers | |
11 | +{ | |
12 | + public class OrganizationController : Controller | |
13 | + { | |
14 | + private readonly PostgresDbContext _context; | |
15 | + | |
16 | + public OrganizationController(PostgresDbContext context) | |
17 | + { | |
18 | + _context = context; | |
19 | + } | |
20 | + | |
21 | + // GET: Organization | |
22 | + public async Task<IActionResult> Index() | |
23 | + { | |
24 | + return View(await _context.Organization.ToListAsync()); | |
25 | + } | |
26 | + | |
27 | + // GET: Organization/Details/5 | |
28 | + public async Task<IActionResult> Details(int? id) | |
29 | + { | |
30 | + if (id == null) | |
31 | + { | |
32 | + return NotFound(); | |
33 | + } | |
34 | + | |
35 | + var organization = await _context.Organization.SingleOrDefaultAsync(m => m.OrganizationId == id); | |
36 | + if (organization == null) | |
37 | + { | |
38 | + return NotFound(); | |
39 | + } | |
40 | + | |
41 | + return View(organization); | |
42 | + } | |
43 | + | |
44 | + // GET: Organization/Create | |
45 | + public IActionResult Create() | |
46 | + { | |
47 | + return View(); | |
48 | + } | |
49 | + | |
50 | + // POST: Organization/Create | |
51 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
52 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
53 | + [HttpPost] | |
54 | + [ValidateAntiForgeryToken] | |
55 | + public async Task<IActionResult> Create([Bind("OrganizationId,DateAdd,Name")] Organization organization) | |
56 | + { | |
57 | + if (ModelState.IsValid) | |
58 | + { | |
59 | + _context.Add(organization); | |
60 | + await _context.SaveChangesAsync(); | |
61 | + return RedirectToAction("Index"); | |
62 | + } | |
63 | + return View(organization); | |
64 | + } | |
65 | + | |
66 | + // GET: Organization/Edit/5 | |
67 | + public async Task<IActionResult> Edit(int? id) | |
68 | + { | |
69 | + if (id == null) | |
70 | + { | |
71 | + return NotFound(); | |
72 | + } | |
73 | + | |
74 | + var organization = await _context.Organization.SingleOrDefaultAsync(m => m.OrganizationId == id); | |
75 | + if (organization == null) | |
76 | + { | |
77 | + return NotFound(); | |
78 | + } | |
79 | + return View(organization); | |
80 | + } | |
81 | + | |
82 | + // POST: Organization/Edit/5 | |
83 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
84 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
85 | + [HttpPost] | |
86 | + [ValidateAntiForgeryToken] | |
87 | + public async Task<IActionResult> Edit(int id, [Bind("OrganizationId,DateAdd,Name")] Organization organization) | |
88 | + { | |
89 | + if (id != organization.OrganizationId) | |
90 | + { | |
91 | + return NotFound(); | |
92 | + } | |
93 | + | |
94 | + if (ModelState.IsValid) | |
95 | + { | |
96 | + try | |
97 | + { | |
98 | + _context.Update(organization); | |
99 | + await _context.SaveChangesAsync(); | |
100 | + } | |
101 | + catch (DbUpdateConcurrencyException) | |
102 | + { | |
103 | + if (!OrganizationExists(organization.OrganizationId)) | |
104 | + { | |
105 | + return NotFound(); | |
106 | + } | |
107 | + else | |
108 | + { | |
109 | + throw; | |
110 | + } | |
111 | + } | |
112 | + return RedirectToAction("Index"); | |
113 | + } | |
114 | + return View(organization); | |
115 | + } | |
116 | + | |
117 | + // GET: Organization/Delete/5 | |
118 | + public async Task<IActionResult> Delete(int? id) | |
119 | + { | |
120 | + if (id == null) | |
121 | + { | |
122 | + return NotFound(); | |
123 | + } | |
124 | + | |
125 | + var organization = await _context.Organization.SingleOrDefaultAsync(m => m.OrganizationId == id); | |
126 | + if (organization == null) | |
127 | + { | |
128 | + return NotFound(); | |
129 | + } | |
130 | + | |
131 | + return View(organization); | |
132 | + } | |
133 | + | |
134 | + // POST: Organization/Delete/5 | |
135 | + [HttpPost, ActionName("Delete")] | |
136 | + [ValidateAntiForgeryToken] | |
137 | + public async Task<IActionResult> DeleteConfirmed(int id) | |
138 | + { | |
139 | + var organization = await _context.Organization.SingleOrDefaultAsync(m => m.OrganizationId == id); | |
140 | + _context.Organization.Remove(organization); | |
141 | + await _context.SaveChangesAsync(); | |
142 | + return RedirectToAction("Index"); | |
143 | + } | |
144 | + | |
145 | + private bool OrganizationExists(int id) | |
146 | + { | |
147 | + return _context.Organization.Any(e => e.OrganizationId == id); | |
148 | + } | |
149 | + } | |
150 | +} | ... | ... |
1 | +using System; | |
2 | +using System.Collections.Generic; | |
3 | +using System.Linq; | |
4 | +using System.Threading.Tasks; | |
5 | +using Microsoft.AspNetCore.Mvc; | |
6 | +using Microsoft.AspNetCore.Mvc.Rendering; | |
7 | +using Microsoft.EntityFrameworkCore; | |
8 | +using Maps.Entities; | |
9 | + | |
10 | +namespace maps_core.Controllers | |
11 | +{ | |
12 | + public class RegionController : Controller | |
13 | + { | |
14 | + private readonly PostgresDbContext _context; | |
15 | + | |
16 | + public RegionController(PostgresDbContext context) | |
17 | + { | |
18 | + _context = context; | |
19 | + } | |
20 | + | |
21 | + // GET: Region | |
22 | + public async Task<IActionResult> Index() | |
23 | + { | |
24 | + return View(await _context.Region.ToListAsync()); | |
25 | + } | |
26 | + | |
27 | + // GET: Region/Details/5 | |
28 | + public async Task<IActionResult> Details(int? id) | |
29 | + { | |
30 | + if (id == null) | |
31 | + { | |
32 | + return NotFound(); | |
33 | + } | |
34 | + | |
35 | + var region = await _context.Region.SingleOrDefaultAsync(m => m.RegionId == id); | |
36 | + if (region == null) | |
37 | + { | |
38 | + return NotFound(); | |
39 | + } | |
40 | + | |
41 | + return View(region); | |
42 | + } | |
43 | + | |
44 | + // GET: Region/Create | |
45 | + public IActionResult Create() | |
46 | + { | |
47 | + return View(); | |
48 | + } | |
49 | + | |
50 | + // POST: Region/Create | |
51 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
52 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
53 | + [HttpPost] | |
54 | + [ValidateAntiForgeryToken] | |
55 | + public async Task<IActionResult> Create([Bind("RegionId,Index,Name")] Region region) | |
56 | + { | |
57 | + if (ModelState.IsValid) | |
58 | + { | |
59 | + _context.Add(region); | |
60 | + await _context.SaveChangesAsync(); | |
61 | + return RedirectToAction("Index"); | |
62 | + } | |
63 | + return View(region); | |
64 | + } | |
65 | + | |
66 | + // GET: Region/Edit/5 | |
67 | + public async Task<IActionResult> Edit(int? id) | |
68 | + { | |
69 | + if (id == null) | |
70 | + { | |
71 | + return NotFound(); | |
72 | + } | |
73 | + | |
74 | + var region = await _context.Region.SingleOrDefaultAsync(m => m.RegionId == id); | |
75 | + if (region == null) | |
76 | + { | |
77 | + return NotFound(); | |
78 | + } | |
79 | + return View(region); | |
80 | + } | |
81 | + | |
82 | + // POST: Region/Edit/5 | |
83 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
84 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
85 | + [HttpPost] | |
86 | + [ValidateAntiForgeryToken] | |
87 | + public async Task<IActionResult> Edit(int id, [Bind("RegionId,Index,Name")] Region region) | |
88 | + { | |
89 | + if (id != region.RegionId) | |
90 | + { | |
91 | + return NotFound(); | |
92 | + } | |
93 | + | |
94 | + if (ModelState.IsValid) | |
95 | + { | |
96 | + try | |
97 | + { | |
98 | + _context.Update(region); | |
99 | + await _context.SaveChangesAsync(); | |
100 | + } | |
101 | + catch (DbUpdateConcurrencyException) | |
102 | + { | |
103 | + if (!RegionExists(region.RegionId)) | |
104 | + { | |
105 | + return NotFound(); | |
106 | + } | |
107 | + else | |
108 | + { | |
109 | + throw; | |
110 | + } | |
111 | + } | |
112 | + return RedirectToAction("Index"); | |
113 | + } | |
114 | + return View(region); | |
115 | + } | |
116 | + | |
117 | + // GET: Region/Delete/5 | |
118 | + public async Task<IActionResult> Delete(int? id) | |
119 | + { | |
120 | + if (id == null) | |
121 | + { | |
122 | + return NotFound(); | |
123 | + } | |
124 | + | |
125 | + var region = await _context.Region.SingleOrDefaultAsync(m => m.RegionId == id); | |
126 | + if (region == null) | |
127 | + { | |
128 | + return NotFound(); | |
129 | + } | |
130 | + | |
131 | + return View(region); | |
132 | + } | |
133 | + | |
134 | + // POST: Region/Delete/5 | |
135 | + [HttpPost, ActionName("Delete")] | |
136 | + [ValidateAntiForgeryToken] | |
137 | + public async Task<IActionResult> DeleteConfirmed(int id) | |
138 | + { | |
139 | + var region = await _context.Region.SingleOrDefaultAsync(m => m.RegionId == id); | |
140 | + _context.Region.Remove(region); | |
141 | + await _context.SaveChangesAsync(); | |
142 | + return RedirectToAction("Index"); | |
143 | + } | |
144 | + | |
145 | + private bool RegionExists(int id) | |
146 | + { | |
147 | + return _context.Region.Any(e => e.RegionId == id); | |
148 | + } | |
149 | + } | |
150 | +} | ... | ... |
1 | +using System; | |
2 | +using System.Collections.Generic; | |
3 | +using System.Linq; | |
4 | +using System.Threading.Tasks; | |
5 | +using Microsoft.AspNetCore.Mvc; | |
6 | +using Microsoft.AspNetCore.Mvc.Rendering; | |
7 | +using Microsoft.EntityFrameworkCore; | |
8 | +using Maps.Entities; | |
9 | + | |
10 | +namespace maps_core.Controllers | |
11 | +{ | |
12 | + public class RoadCategoryController : Controller | |
13 | + { | |
14 | + private readonly PostgresDbContext _context; | |
15 | + | |
16 | + public RoadCategoryController(PostgresDbContext context) | |
17 | + { | |
18 | + _context = context; | |
19 | + } | |
20 | + | |
21 | + // GET: RoadCategory | |
22 | + public async Task<IActionResult> Index() | |
23 | + { | |
24 | + return View(await _context.RoadCategory.ToListAsync()); | |
25 | + } | |
26 | + | |
27 | + // GET: RoadCategory/Details/5 | |
28 | + public async Task<IActionResult> Details(int? id) | |
29 | + { | |
30 | + if (id == null) | |
31 | + { | |
32 | + return NotFound(); | |
33 | + } | |
34 | + | |
35 | + var roadCategory = await _context.RoadCategory.SingleOrDefaultAsync(m => m.RoadCategoryId == id); | |
36 | + if (roadCategory == null) | |
37 | + { | |
38 | + return NotFound(); | |
39 | + } | |
40 | + | |
41 | + return View(roadCategory); | |
42 | + } | |
43 | + | |
44 | + // GET: RoadCategory/Create | |
45 | + public IActionResult Create() | |
46 | + { | |
47 | + return View(); | |
48 | + } | |
49 | + | |
50 | + // POST: RoadCategory/Create | |
51 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
52 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
53 | + [HttpPost] | |
54 | + [ValidateAntiForgeryToken] | |
55 | + public async Task<IActionResult> Create([Bind("RoadCategoryId,Value")] RoadCategory roadCategory) | |
56 | + { | |
57 | + if (ModelState.IsValid) | |
58 | + { | |
59 | + _context.Add(roadCategory); | |
60 | + await _context.SaveChangesAsync(); | |
61 | + return RedirectToAction("Index"); | |
62 | + } | |
63 | + return View(roadCategory); | |
64 | + } | |
65 | + | |
66 | + // GET: RoadCategory/Edit/5 | |
67 | + public async Task<IActionResult> Edit(int? id) | |
68 | + { | |
69 | + if (id == null) | |
70 | + { | |
71 | + return NotFound(); | |
72 | + } | |
73 | + | |
74 | + var roadCategory = await _context.RoadCategory.SingleOrDefaultAsync(m => m.RoadCategoryId == id); | |
75 | + if (roadCategory == null) | |
76 | + { | |
77 | + return NotFound(); | |
78 | + } | |
79 | + return View(roadCategory); | |
80 | + } | |
81 | + | |
82 | + // POST: RoadCategory/Edit/5 | |
83 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
84 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
85 | + [HttpPost] | |
86 | + [ValidateAntiForgeryToken] | |
87 | + public async Task<IActionResult> Edit(int id, [Bind("RoadCategoryId,Value")] RoadCategory roadCategory) | |
88 | + { | |
89 | + if (id != roadCategory.RoadCategoryId) | |
90 | + { | |
91 | + return NotFound(); | |
92 | + } | |
93 | + | |
94 | + if (ModelState.IsValid) | |
95 | + { | |
96 | + try | |
97 | + { | |
98 | + _context.Update(roadCategory); | |
99 | + await _context.SaveChangesAsync(); | |
100 | + } | |
101 | + catch (DbUpdateConcurrencyException) | |
102 | + { | |
103 | + if (!RoadCategoryExists(roadCategory.RoadCategoryId)) | |
104 | + { | |
105 | + return NotFound(); | |
106 | + } | |
107 | + else | |
108 | + { | |
109 | + throw; | |
110 | + } | |
111 | + } | |
112 | + return RedirectToAction("Index"); | |
113 | + } | |
114 | + return View(roadCategory); | |
115 | + } | |
116 | + | |
117 | + // GET: RoadCategory/Delete/5 | |
118 | + public async Task<IActionResult> Delete(int? id) | |
119 | + { | |
120 | + if (id == null) | |
121 | + { | |
122 | + return NotFound(); | |
123 | + } | |
124 | + | |
125 | + var roadCategory = await _context.RoadCategory.SingleOrDefaultAsync(m => m.RoadCategoryId == id); | |
126 | + if (roadCategory == null) | |
127 | + { | |
128 | + return NotFound(); | |
129 | + } | |
130 | + | |
131 | + return View(roadCategory); | |
132 | + } | |
133 | + | |
134 | + // POST: RoadCategory/Delete/5 | |
135 | + [HttpPost, ActionName("Delete")] | |
136 | + [ValidateAntiForgeryToken] | |
137 | + public async Task<IActionResult> DeleteConfirmed(int id) | |
138 | + { | |
139 | + var roadCategory = await _context.RoadCategory.SingleOrDefaultAsync(m => m.RoadCategoryId == id); | |
140 | + _context.RoadCategory.Remove(roadCategory); | |
141 | + await _context.SaveChangesAsync(); | |
142 | + return RedirectToAction("Index"); | |
143 | + } | |
144 | + | |
145 | + private bool RoadCategoryExists(int id) | |
146 | + { | |
147 | + return _context.RoadCategory.Any(e => e.RoadCategoryId == id); | |
148 | + } | |
149 | + } | |
150 | +} | ... | ... |
1 | +using System; | |
2 | +using System.Collections.Generic; | |
3 | +using System.Linq; | |
4 | +using System.Threading.Tasks; | |
5 | +using Microsoft.AspNetCore.Mvc; | |
6 | +using Microsoft.AspNetCore.Mvc.Rendering; | |
7 | +using Microsoft.EntityFrameworkCore; | |
8 | +using Maps.Entities; | |
9 | + | |
10 | +namespace maps_core.Controllers | |
11 | +{ | |
12 | + public class RoadController : Controller | |
13 | + { | |
14 | + private readonly PostgresDbContext _context; | |
15 | + | |
16 | + public RoadController(PostgresDbContext context) | |
17 | + { | |
18 | + _context = context; | |
19 | + } | |
20 | + | |
21 | + // GET: Road | |
22 | + public async Task<IActionResult> Index() | |
23 | + { | |
24 | + var postgresDbContext = _context.Road.Include(r => r.RoadType); | |
25 | + return View(await postgresDbContext.ToListAsync()); | |
26 | + } | |
27 | + | |
28 | + // GET: Road/Details/5 | |
29 | + public async Task<IActionResult> Details(int? id) | |
30 | + { | |
31 | + if (id == null) | |
32 | + { | |
33 | + return NotFound(); | |
34 | + } | |
35 | + | |
36 | + var road = await _context.Road.SingleOrDefaultAsync(m => m.RoadId == id); | |
37 | + if (road == null) | |
38 | + { | |
39 | + return NotFound(); | |
40 | + } | |
41 | + | |
42 | + return View(road); | |
43 | + } | |
44 | + | |
45 | + // GET: Road/Create | |
46 | + public IActionResult Create() | |
47 | + { | |
48 | + ViewData["RoadTypeId"] = new SelectList(_context.RoadType, "RoadTypeId", "RoadTypeId"); | |
49 | + return View(); | |
50 | + } | |
51 | + | |
52 | + // POST: Road/Create | |
53 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
54 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
55 | + [HttpPost] | |
56 | + [ValidateAntiForgeryToken] | |
57 | + public async Task<IActionResult> Create([Bind("RoadId,AcceptTransferDoc,AcceptanceDoc,AuthorityAct,EconomicValue,HistoricalBackground,Index,LawDoc,Length,Name,RoadTypeId,Value")] Road road) | |
58 | + { | |
59 | + if (ModelState.IsValid) | |
60 | + { | |
61 | + _context.Add(road); | |
62 | + await _context.SaveChangesAsync(); | |
63 | + return RedirectToAction("Index"); | |
64 | + } | |
65 | + ViewData["RoadTypeId"] = new SelectList(_context.RoadType, "RoadTypeId", "RoadTypeId", road.RoadTypeId); | |
66 | + return View(road); | |
67 | + } | |
68 | + | |
69 | + // GET: Road/Edit/5 | |
70 | + public async Task<IActionResult> Edit(int? id) | |
71 | + { | |
72 | + if (id == null) | |
73 | + { | |
74 | + return NotFound(); | |
75 | + } | |
76 | + | |
77 | + var road = await _context.Road.SingleOrDefaultAsync(m => m.RoadId == id); | |
78 | + if (road == null) | |
79 | + { | |
80 | + return NotFound(); | |
81 | + } | |
82 | + ViewData["RoadTypeId"] = new SelectList(_context.RoadType, "RoadTypeId", "RoadTypeId", road.RoadTypeId); | |
83 | + return View(road); | |
84 | + } | |
85 | + | |
86 | + // POST: Road/Edit/5 | |
87 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
88 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
89 | + [HttpPost] | |
90 | + [ValidateAntiForgeryToken] | |
91 | + public async Task<IActionResult> Edit(int id, [Bind("RoadId,AcceptTransferDoc,AcceptanceDoc,AuthorityAct,EconomicValue,HistoricalBackground,Index,LawDoc,Length,Name,RoadTypeId,Value")] Road road) | |
92 | + { | |
93 | + if (id != road.RoadId) | |
94 | + { | |
95 | + return NotFound(); | |
96 | + } | |
97 | + | |
98 | + if (ModelState.IsValid) | |
99 | + { | |
100 | + try | |
101 | + { | |
102 | + _context.Update(road); | |
103 | + await _context.SaveChangesAsync(); | |
104 | + } | |
105 | + catch (DbUpdateConcurrencyException) | |
106 | + { | |
107 | + if (!RoadExists(road.RoadId)) | |
108 | + { | |
109 | + return NotFound(); | |
110 | + } | |
111 | + else | |
112 | + { | |
113 | + throw; | |
114 | + } | |
115 | + } | |
116 | + return RedirectToAction("Index"); | |
117 | + } | |
118 | + ViewData["RoadTypeId"] = new SelectList(_context.RoadType, "RoadTypeId", "RoadTypeId", road.RoadTypeId); | |
119 | + return View(road); | |
120 | + } | |
121 | + | |
122 | + // GET: Road/Delete/5 | |
123 | + public async Task<IActionResult> Delete(int? id) | |
124 | + { | |
125 | + if (id == null) | |
126 | + { | |
127 | + return NotFound(); | |
128 | + } | |
129 | + | |
130 | + var road = await _context.Road.SingleOrDefaultAsync(m => m.RoadId == id); | |
131 | + if (road == null) | |
132 | + { | |
133 | + return NotFound(); | |
134 | + } | |
135 | + | |
136 | + return View(road); | |
137 | + } | |
138 | + | |
139 | + // POST: Road/Delete/5 | |
140 | + [HttpPost, ActionName("Delete")] | |
141 | + [ValidateAntiForgeryToken] | |
142 | + public async Task<IActionResult> DeleteConfirmed(int id) | |
143 | + { | |
144 | + var road = await _context.Road.SingleOrDefaultAsync(m => m.RoadId == id); | |
145 | + _context.Road.Remove(road); | |
146 | + await _context.SaveChangesAsync(); | |
147 | + return RedirectToAction("Index"); | |
148 | + } | |
149 | + | |
150 | + private bool RoadExists(int id) | |
151 | + { | |
152 | + return _context.Road.Any(e => e.RoadId == id); | |
153 | + } | |
154 | + } | |
155 | +} | ... | ... |
1 | +using System; | |
2 | +using System.Collections.Generic; | |
3 | +using System.Linq; | |
4 | +using System.Threading.Tasks; | |
5 | +using Microsoft.AspNetCore.Mvc; | |
6 | +using Microsoft.AspNetCore.Mvc.Rendering; | |
7 | +using Microsoft.EntityFrameworkCore; | |
8 | +using Maps.Entities; | |
9 | + | |
10 | +namespace maps_core.Controllers | |
11 | +{ | |
12 | + public class RoadDirectionController : Controller | |
13 | + { | |
14 | + private readonly PostgresDbContext _context; | |
15 | + | |
16 | + public RoadDirectionController(PostgresDbContext context) | |
17 | + { | |
18 | + _context = context; | |
19 | + } | |
20 | + | |
21 | + // GET: RoadDirection | |
22 | + public async Task<IActionResult> Index() | |
23 | + { | |
24 | + return View(await _context.RoadDirection.ToListAsync()); | |
25 | + } | |
26 | + | |
27 | + // GET: RoadDirection/Details/5 | |
28 | + public async Task<IActionResult> Details(int? id) | |
29 | + { | |
30 | + if (id == null) | |
31 | + { | |
32 | + return NotFound(); | |
33 | + } | |
34 | + | |
35 | + var roadDirection = await _context.RoadDirection.SingleOrDefaultAsync(m => m.RoadDirectionId == id); | |
36 | + if (roadDirection == null) | |
37 | + { | |
38 | + return NotFound(); | |
39 | + } | |
40 | + | |
41 | + return View(roadDirection); | |
42 | + } | |
43 | + | |
44 | + // GET: RoadDirection/Create | |
45 | + public IActionResult Create() | |
46 | + { | |
47 | + return View(); | |
48 | + } | |
49 | + | |
50 | + // POST: RoadDirection/Create | |
51 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
52 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
53 | + [HttpPost] | |
54 | + [ValidateAntiForgeryToken] | |
55 | + public async Task<IActionResult> Create([Bind("RoadDirectionId,DirectionName")] RoadDirection roadDirection) | |
56 | + { | |
57 | + if (ModelState.IsValid) | |
58 | + { | |
59 | + _context.Add(roadDirection); | |
60 | + await _context.SaveChangesAsync(); | |
61 | + return RedirectToAction("Index"); | |
62 | + } | |
63 | + return View(roadDirection); | |
64 | + } | |
65 | + | |
66 | + // GET: RoadDirection/Edit/5 | |
67 | + public async Task<IActionResult> Edit(int? id) | |
68 | + { | |
69 | + if (id == null) | |
70 | + { | |
71 | + return NotFound(); | |
72 | + } | |
73 | + | |
74 | + var roadDirection = await _context.RoadDirection.SingleOrDefaultAsync(m => m.RoadDirectionId == id); | |
75 | + if (roadDirection == null) | |
76 | + { | |
77 | + return NotFound(); | |
78 | + } | |
79 | + return View(roadDirection); | |
80 | + } | |
81 | + | |
82 | + // POST: RoadDirection/Edit/5 | |
83 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
84 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
85 | + [HttpPost] | |
86 | + [ValidateAntiForgeryToken] | |
87 | + public async Task<IActionResult> Edit(int id, [Bind("RoadDirectionId,DirectionName")] RoadDirection roadDirection) | |
88 | + { | |
89 | + if (id != roadDirection.RoadDirectionId) | |
90 | + { | |
91 | + return NotFound(); | |
92 | + } | |
93 | + | |
94 | + if (ModelState.IsValid) | |
95 | + { | |
96 | + try | |
97 | + { | |
98 | + _context.Update(roadDirection); | |
99 | + await _context.SaveChangesAsync(); | |
100 | + } | |
101 | + catch (DbUpdateConcurrencyException) | |
102 | + { | |
103 | + if (!RoadDirectionExists(roadDirection.RoadDirectionId)) | |
104 | + { | |
105 | + return NotFound(); | |
106 | + } | |
107 | + else | |
108 | + { | |
109 | + throw; | |
110 | + } | |
111 | + } | |
112 | + return RedirectToAction("Index"); | |
113 | + } | |
114 | + return View(roadDirection); | |
115 | + } | |
116 | + | |
117 | + // GET: RoadDirection/Delete/5 | |
118 | + public async Task<IActionResult> Delete(int? id) | |
119 | + { | |
120 | + if (id == null) | |
121 | + { | |
122 | + return NotFound(); | |
123 | + } | |
124 | + | |
125 | + var roadDirection = await _context.RoadDirection.SingleOrDefaultAsync(m => m.RoadDirectionId == id); | |
126 | + if (roadDirection == null) | |
127 | + { | |
128 | + return NotFound(); | |
129 | + } | |
130 | + | |
131 | + return View(roadDirection); | |
132 | + } | |
133 | + | |
134 | + // POST: RoadDirection/Delete/5 | |
135 | + [HttpPost, ActionName("Delete")] | |
136 | + [ValidateAntiForgeryToken] | |
137 | + public async Task<IActionResult> DeleteConfirmed(int id) | |
138 | + { | |
139 | + var roadDirection = await _context.RoadDirection.SingleOrDefaultAsync(m => m.RoadDirectionId == id); | |
140 | + _context.RoadDirection.Remove(roadDirection); | |
141 | + await _context.SaveChangesAsync(); | |
142 | + return RedirectToAction("Index"); | |
143 | + } | |
144 | + | |
145 | + private bool RoadDirectionExists(int id) | |
146 | + { | |
147 | + return _context.RoadDirection.Any(e => e.RoadDirectionId == id); | |
148 | + } | |
149 | + } | |
150 | +} | ... | ... |
1 | +using System; | |
2 | +using System.Collections.Generic; | |
3 | +using System.Linq; | |
4 | +using System.Threading.Tasks; | |
5 | +using Microsoft.AspNetCore.Mvc; | |
6 | +using Microsoft.AspNetCore.Mvc.Rendering; | |
7 | +using Microsoft.EntityFrameworkCore; | |
8 | +using Maps.Entities; | |
9 | + | |
10 | +namespace maps_core.Controllers | |
11 | +{ | |
12 | + public class RoadPassportController : Controller | |
13 | + { | |
14 | + private readonly PostgresDbContext _context; | |
15 | + | |
16 | + public RoadPassportController(PostgresDbContext context) | |
17 | + { | |
18 | + _context = context; | |
19 | + } | |
20 | + | |
21 | + // GET: RoadPassport | |
22 | + public async Task<IActionResult> Index() | |
23 | + { | |
24 | + var postgresDbContext = _context.RoadPassport.Include(r => r.Region).Include(r => r.Road); | |
25 | + return View(await postgresDbContext.ToListAsync()); | |
26 | + } | |
27 | + | |
28 | + // GET: RoadPassport/Details/5 | |
29 | + public async Task<IActionResult> Details(int? id) | |
30 | + { | |
31 | + if (id == null) | |
32 | + { | |
33 | + return NotFound(); | |
34 | + } | |
35 | + | |
36 | + var roadPassport = await _context.RoadPassport.SingleOrDefaultAsync(m => m.RoadPassportId == id); | |
37 | + if (roadPassport == null) | |
38 | + { | |
39 | + return NotFound(); | |
40 | + } | |
41 | + | |
42 | + return View(roadPassport); | |
43 | + } | |
44 | + | |
45 | + // GET: RoadPassport/Create | |
46 | + public IActionResult Create() | |
47 | + { | |
48 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId"); | |
49 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId"); | |
50 | + return View(); | |
51 | + } | |
52 | + | |
53 | + // POST: RoadPassport/Create | |
54 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
55 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
56 | + [HttpPost] | |
57 | + [ValidateAntiForgeryToken] | |
58 | + public async Task<IActionResult> Create([Bind("RoadPassportId,Begin,End,RegionId,RoadId")] RoadPassport roadPassport) | |
59 | + { | |
60 | + if (ModelState.IsValid) | |
61 | + { | |
62 | + _context.Add(roadPassport); | |
63 | + await _context.SaveChangesAsync(); | |
64 | + return RedirectToAction("Index"); | |
65 | + } | |
66 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", roadPassport.RegionId); | |
67 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", roadPassport.RoadId); | |
68 | + return View(roadPassport); | |
69 | + } | |
70 | + | |
71 | + // GET: RoadPassport/Edit/5 | |
72 | + public async Task<IActionResult> Edit(int? id) | |
73 | + { | |
74 | + if (id == null) | |
75 | + { | |
76 | + return NotFound(); | |
77 | + } | |
78 | + | |
79 | + var roadPassport = await _context.RoadPassport.SingleOrDefaultAsync(m => m.RoadPassportId == id); | |
80 | + if (roadPassport == null) | |
81 | + { | |
82 | + return NotFound(); | |
83 | + } | |
84 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", roadPassport.RegionId); | |
85 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", roadPassport.RoadId); | |
86 | + return View(roadPassport); | |
87 | + } | |
88 | + | |
89 | + // POST: RoadPassport/Edit/5 | |
90 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
91 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
92 | + [HttpPost] | |
93 | + [ValidateAntiForgeryToken] | |
94 | + public async Task<IActionResult> Edit(int id, [Bind("RoadPassportId,Begin,End,RegionId,RoadId")] RoadPassport roadPassport) | |
95 | + { | |
96 | + if (id != roadPassport.RoadPassportId) | |
97 | + { | |
98 | + return NotFound(); | |
99 | + } | |
100 | + | |
101 | + if (ModelState.IsValid) | |
102 | + { | |
103 | + try | |
104 | + { | |
105 | + _context.Update(roadPassport); | |
106 | + await _context.SaveChangesAsync(); | |
107 | + } | |
108 | + catch (DbUpdateConcurrencyException) | |
109 | + { | |
110 | + if (!RoadPassportExists(roadPassport.RoadPassportId)) | |
111 | + { | |
112 | + return NotFound(); | |
113 | + } | |
114 | + else | |
115 | + { | |
116 | + throw; | |
117 | + } | |
118 | + } | |
119 | + return RedirectToAction("Index"); | |
120 | + } | |
121 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", roadPassport.RegionId); | |
122 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", roadPassport.RoadId); | |
123 | + return View(roadPassport); | |
124 | + } | |
125 | + | |
126 | + // GET: RoadPassport/Delete/5 | |
127 | + public async Task<IActionResult> Delete(int? id) | |
128 | + { | |
129 | + if (id == null) | |
130 | + { | |
131 | + return NotFound(); | |
132 | + } | |
133 | + | |
134 | + var roadPassport = await _context.RoadPassport.SingleOrDefaultAsync(m => m.RoadPassportId == id); | |
135 | + if (roadPassport == null) | |
136 | + { | |
137 | + return NotFound(); | |
138 | + } | |
139 | + | |
140 | + return View(roadPassport); | |
141 | + } | |
142 | + | |
143 | + // POST: RoadPassport/Delete/5 | |
144 | + [HttpPost, ActionName("Delete")] | |
145 | + [ValidateAntiForgeryToken] | |
146 | + public async Task<IActionResult> DeleteConfirmed(int id) | |
147 | + { | |
148 | + var roadPassport = await _context.RoadPassport.SingleOrDefaultAsync(m => m.RoadPassportId == id); | |
149 | + _context.RoadPassport.Remove(roadPassport); | |
150 | + await _context.SaveChangesAsync(); | |
151 | + return RedirectToAction("Index"); | |
152 | + } | |
153 | + | |
154 | + private bool RoadPassportExists(int id) | |
155 | + { | |
156 | + return _context.RoadPassport.Any(e => e.RoadPassportId == id); | |
157 | + } | |
158 | + } | |
159 | +} | ... | ... |
1 | +using System; | |
2 | +using System.Collections.Generic; | |
3 | +using System.Linq; | |
4 | +using System.Threading.Tasks; | |
5 | +using Microsoft.AspNetCore.Mvc; | |
6 | +using Microsoft.AspNetCore.Mvc.Rendering; | |
7 | +using Microsoft.EntityFrameworkCore; | |
8 | +using Maps.Entities; | |
9 | + | |
10 | +namespace maps_core.Controllers | |
11 | +{ | |
12 | + public class RoadServiceController : Controller | |
13 | + { | |
14 | + private readonly PostgresDbContext _context; | |
15 | + | |
16 | + public RoadServiceController(PostgresDbContext context) | |
17 | + { | |
18 | + _context = context; | |
19 | + } | |
20 | + | |
21 | + // GET: RoadService | |
22 | + public async Task<IActionResult> Index() | |
23 | + { | |
24 | + var postgresDbContext = _context.RoadService.Include(r => r.Organization).Include(r => r.Region).Include(r => r.Road).Include(r => r.RoadDirection); | |
25 | + return View(await postgresDbContext.ToListAsync()); | |
26 | + } | |
27 | + | |
28 | + // GET: RoadService/Details/5 | |
29 | + public async Task<IActionResult> Details(int? id) | |
30 | + { | |
31 | + if (id == null) | |
32 | + { | |
33 | + return NotFound(); | |
34 | + } | |
35 | + | |
36 | + var roadService = await _context.RoadService.SingleOrDefaultAsync(m => m.RoadServiceId == id); | |
37 | + if (roadService == null) | |
38 | + { | |
39 | + return NotFound(); | |
40 | + } | |
41 | + | |
42 | + return View(roadService); | |
43 | + } | |
44 | + | |
45 | + // GET: RoadService/Create | |
46 | + public IActionResult Create() | |
47 | + { | |
48 | + ViewData["OrganizationId"] = new SelectList(_context.Organization, "OrganizationId", "Name"); | |
49 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId"); | |
50 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId"); | |
51 | + ViewData["RoadDirectionId"] = new SelectList(_context.RoadDirection, "RoadDirectionId", "DirectionName"); | |
52 | + return View(); | |
53 | + } | |
54 | + | |
55 | + // POST: RoadService/Create | |
56 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
57 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
58 | + [HttpPost] | |
59 | + [ValidateAntiForgeryToken] | |
60 | + public async Task<IActionResult> Create([Bind("RoadServiceId,Begin,End,OrganizationId,RegionId,RoadDirectionId,RoadId,YearBegin")] RoadService roadService) | |
61 | + { | |
62 | + if (ModelState.IsValid) | |
63 | + { | |
64 | + _context.Add(roadService); | |
65 | + await _context.SaveChangesAsync(); | |
66 | + return RedirectToAction("Index"); | |
67 | + } | |
68 | + ViewData["OrganizationId"] = new SelectList(_context.Organization, "OrganizationId", "Name", roadService.OrganizationId); | |
69 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", roadService.RegionId); | |
70 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", roadService.RoadId); | |
71 | + ViewData["RoadDirectionId"] = new SelectList(_context.RoadDirection, "RoadDirectionId", "DirectionName", roadService.RoadDirectionId); | |
72 | + return View(roadService); | |
73 | + } | |
74 | + | |
75 | + // GET: RoadService/Edit/5 | |
76 | + public async Task<IActionResult> Edit(int? id) | |
77 | + { | |
78 | + if (id == null) | |
79 | + { | |
80 | + return NotFound(); | |
81 | + } | |
82 | + | |
83 | + var roadService = await _context.RoadService.SingleOrDefaultAsync(m => m.RoadServiceId == id); | |
84 | + if (roadService == null) | |
85 | + { | |
86 | + return NotFound(); | |
87 | + } | |
88 | + ViewData["OrganizationId"] = new SelectList(_context.Organization, "OrganizationId", "Name", roadService.OrganizationId); | |
89 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", roadService.RegionId); | |
90 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", roadService.RoadId); | |
91 | + ViewData["RoadDirectionId"] = new SelectList(_context.RoadDirection, "RoadDirectionId", "DirectionName", roadService.RoadDirectionId); | |
92 | + return View(roadService); | |
93 | + } | |
94 | + | |
95 | + // POST: RoadService/Edit/5 | |
96 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
97 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
98 | + [HttpPost] | |
99 | + [ValidateAntiForgeryToken] | |
100 | + public async Task<IActionResult> Edit(int id, [Bind("RoadServiceId,Begin,End,OrganizationId,RegionId,RoadDirectionId,RoadId,YearBegin")] RoadService roadService) | |
101 | + { | |
102 | + if (id != roadService.RoadServiceId) | |
103 | + { | |
104 | + return NotFound(); | |
105 | + } | |
106 | + | |
107 | + if (ModelState.IsValid) | |
108 | + { | |
109 | + try | |
110 | + { | |
111 | + _context.Update(roadService); | |
112 | + await _context.SaveChangesAsync(); | |
113 | + } | |
114 | + catch (DbUpdateConcurrencyException) | |
115 | + { | |
116 | + if (!RoadServiceExists(roadService.RoadServiceId)) | |
117 | + { | |
118 | + return NotFound(); | |
119 | + } | |
120 | + else | |
121 | + { | |
122 | + throw; | |
123 | + } | |
124 | + } | |
125 | + return RedirectToAction("Index"); | |
126 | + } | |
127 | + ViewData["OrganizationId"] = new SelectList(_context.Organization, "OrganizationId", "Name", roadService.OrganizationId); | |
128 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", roadService.RegionId); | |
129 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", roadService.RoadId); | |
130 | + ViewData["RoadDirectionId"] = new SelectList(_context.RoadDirection, "RoadDirectionId", "DirectionName", roadService.RoadDirectionId); | |
131 | + return View(roadService); | |
132 | + } | |
133 | + | |
134 | + // GET: RoadService/Delete/5 | |
135 | + public async Task<IActionResult> Delete(int? id) | |
136 | + { | |
137 | + if (id == null) | |
138 | + { | |
139 | + return NotFound(); | |
140 | + } | |
141 | + | |
142 | + var roadService = await _context.RoadService.SingleOrDefaultAsync(m => m.RoadServiceId == id); | |
143 | + if (roadService == null) | |
144 | + { | |
145 | + return NotFound(); | |
146 | + } | |
147 | + | |
148 | + return View(roadService); | |
149 | + } | |
150 | + | |
151 | + // POST: RoadService/Delete/5 | |
152 | + [HttpPost, ActionName("Delete")] | |
153 | + [ValidateAntiForgeryToken] | |
154 | + public async Task<IActionResult> DeleteConfirmed(int id) | |
155 | + { | |
156 | + var roadService = await _context.RoadService.SingleOrDefaultAsync(m => m.RoadServiceId == id); | |
157 | + _context.RoadService.Remove(roadService); | |
158 | + await _context.SaveChangesAsync(); | |
159 | + return RedirectToAction("Index"); | |
160 | + } | |
161 | + | |
162 | + private bool RoadServiceExists(int id) | |
163 | + { | |
164 | + return _context.RoadService.Any(e => e.RoadServiceId == id); | |
165 | + } | |
166 | + } | |
167 | +} | ... | ... |
1 | +using System; | |
2 | +using System.Collections.Generic; | |
3 | +using System.Linq; | |
4 | +using System.Threading.Tasks; | |
5 | +using Microsoft.AspNetCore.Mvc; | |
6 | +using Microsoft.AspNetCore.Mvc.Rendering; | |
7 | +using Microsoft.EntityFrameworkCore; | |
8 | +using Maps.Entities; | |
9 | + | |
10 | +namespace maps_core.Controllers | |
11 | +{ | |
12 | + public class RoadSurfaceController : Controller | |
13 | + { | |
14 | + private readonly PostgresDbContext _context; | |
15 | + | |
16 | + public RoadSurfaceController(PostgresDbContext context) | |
17 | + { | |
18 | + _context = context; | |
19 | + } | |
20 | + | |
21 | + // GET: RoadSurface | |
22 | + public async Task<IActionResult> Index() | |
23 | + { | |
24 | + var postgresDbContext = _context.RoadSurface.Include(r => r.Region).Include(r => r.Road).Include(r => r.RoadDirection).Include(r => r.StateCommon).Include(r => r.SurfaceTreatment).Include(r => r.SurfaceType); | |
25 | + return View(await postgresDbContext.ToListAsync()); | |
26 | + } | |
27 | + | |
28 | + // GET: RoadSurface/Details/5 | |
29 | + public async Task<IActionResult> Details(int? id) | |
30 | + { | |
31 | + if (id == null) | |
32 | + { | |
33 | + return NotFound(); | |
34 | + } | |
35 | + | |
36 | + var roadSurface = await _context.RoadSurface.SingleOrDefaultAsync(m => m.RoadSurfaceId == id); | |
37 | + if (roadSurface == null) | |
38 | + { | |
39 | + return NotFound(); | |
40 | + } | |
41 | + | |
42 | + return View(roadSurface); | |
43 | + } | |
44 | + | |
45 | + // GET: RoadSurface/Create | |
46 | + public IActionResult Create() | |
47 | + { | |
48 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId"); | |
49 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId"); | |
50 | + ViewData["RoadDirectionId"] = new SelectList(_context.RoadDirection, "RoadDirectionId", "DirectionName"); | |
51 | + ViewData["StateCommonId"] = new SelectList(_context.StateCommon, "StateCommonId", "StateCommonId"); | |
52 | + ViewData["SurfaceTreatmentId"] = new SelectList(_context.SurfaceTreatment, "SurfaceTreatmentId", "SurfaceTreatmentId"); | |
53 | + ViewData["SurfaceTypeId"] = new SelectList(_context.SurfaceType, "SurfaceTypeId", "SurfaceTypeId"); | |
54 | + return View(); | |
55 | + } | |
56 | + | |
57 | + // POST: RoadSurface/Create | |
58 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
59 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
60 | + [HttpPost] | |
61 | + [ValidateAntiForgeryToken] | |
62 | + public async Task<IActionResult> Create([Bind("RoadSurfaceId,Begin,CrossSectionNumber,ElastisityModule,End,LaneCountLeft,LaneCountRight,RegionId,RoadDirectionId,RoadId,RoadSurfaceConstructionId,StateCommonId,SurfaceTreatmentId,SurfaceTypeId")] RoadSurface roadSurface) | |
63 | + { | |
64 | + if (ModelState.IsValid) | |
65 | + { | |
66 | + _context.Add(roadSurface); | |
67 | + await _context.SaveChangesAsync(); | |
68 | + return RedirectToAction("Index"); | |
69 | + } | |
70 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", roadSurface.RegionId); | |
71 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", roadSurface.RoadId); | |
72 | + ViewData["RoadDirectionId"] = new SelectList(_context.RoadDirection, "RoadDirectionId", "DirectionName", roadSurface.RoadDirectionId); | |
73 | + ViewData["StateCommonId"] = new SelectList(_context.StateCommon, "StateCommonId", "StateCommonId", roadSurface.StateCommonId); | |
74 | + ViewData["SurfaceTreatmentId"] = new SelectList(_context.SurfaceTreatment, "SurfaceTreatmentId", "SurfaceTreatmentId", roadSurface.SurfaceTreatmentId); | |
75 | + ViewData["SurfaceTypeId"] = new SelectList(_context.SurfaceType, "SurfaceTypeId", "SurfaceTypeId", roadSurface.SurfaceTypeId); | |
76 | + return View(roadSurface); | |
77 | + } | |
78 | + | |
79 | + // GET: RoadSurface/Edit/5 | |
80 | + public async Task<IActionResult> Edit(int? id) | |
81 | + { | |
82 | + if (id == null) | |
83 | + { | |
84 | + return NotFound(); | |
85 | + } | |
86 | + | |
87 | + var roadSurface = await _context.RoadSurface.SingleOrDefaultAsync(m => m.RoadSurfaceId == id); | |
88 | + if (roadSurface == null) | |
89 | + { | |
90 | + return NotFound(); | |
91 | + } | |
92 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", roadSurface.RegionId); | |
93 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", roadSurface.RoadId); | |
94 | + ViewData["RoadDirectionId"] = new SelectList(_context.RoadDirection, "RoadDirectionId", "DirectionName", roadSurface.RoadDirectionId); | |
95 | + ViewData["StateCommonId"] = new SelectList(_context.StateCommon, "StateCommonId", "StateCommonId", roadSurface.StateCommonId); | |
96 | + ViewData["SurfaceTreatmentId"] = new SelectList(_context.SurfaceTreatment, "SurfaceTreatmentId", "SurfaceTreatmentId", roadSurface.SurfaceTreatmentId); | |
97 | + ViewData["SurfaceTypeId"] = new SelectList(_context.SurfaceType, "SurfaceTypeId", "SurfaceTypeId", roadSurface.SurfaceTypeId); | |
98 | + return View(roadSurface); | |
99 | + } | |
100 | + | |
101 | + // POST: RoadSurface/Edit/5 | |
102 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
103 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
104 | + [HttpPost] | |
105 | + [ValidateAntiForgeryToken] | |
106 | + public async Task<IActionResult> Edit(int id, [Bind("RoadSurfaceId,Begin,CrossSectionNumber,ElastisityModule,End,LaneCountLeft,LaneCountRight,RegionId,RoadDirectionId,RoadId,RoadSurfaceConstructionId,StateCommonId,SurfaceTreatmentId,SurfaceTypeId")] RoadSurface roadSurface) | |
107 | + { | |
108 | + if (id != roadSurface.RoadSurfaceId) | |
109 | + { | |
110 | + return NotFound(); | |
111 | + } | |
112 | + | |
113 | + if (ModelState.IsValid) | |
114 | + { | |
115 | + try | |
116 | + { | |
117 | + _context.Update(roadSurface); | |
118 | + await _context.SaveChangesAsync(); | |
119 | + } | |
120 | + catch (DbUpdateConcurrencyException) | |
121 | + { | |
122 | + if (!RoadSurfaceExists(roadSurface.RoadSurfaceId)) | |
123 | + { | |
124 | + return NotFound(); | |
125 | + } | |
126 | + else | |
127 | + { | |
128 | + throw; | |
129 | + } | |
130 | + } | |
131 | + return RedirectToAction("Index"); | |
132 | + } | |
133 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", roadSurface.RegionId); | |
134 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", roadSurface.RoadId); | |
135 | + ViewData["RoadDirectionId"] = new SelectList(_context.RoadDirection, "RoadDirectionId", "DirectionName", roadSurface.RoadDirectionId); | |
136 | + ViewData["StateCommonId"] = new SelectList(_context.StateCommon, "StateCommonId", "StateCommonId", roadSurface.StateCommonId); | |
137 | + ViewData["SurfaceTreatmentId"] = new SelectList(_context.SurfaceTreatment, "SurfaceTreatmentId", "SurfaceTreatmentId", roadSurface.SurfaceTreatmentId); | |
138 | + ViewData["SurfaceTypeId"] = new SelectList(_context.SurfaceType, "SurfaceTypeId", "SurfaceTypeId", roadSurface.SurfaceTypeId); | |
139 | + return View(roadSurface); | |
140 | + } | |
141 | + | |
142 | + // GET: RoadSurface/Delete/5 | |
143 | + public async Task<IActionResult> Delete(int? id) | |
144 | + { | |
145 | + if (id == null) | |
146 | + { | |
147 | + return NotFound(); | |
148 | + } | |
149 | + | |
150 | + var roadSurface = await _context.RoadSurface.SingleOrDefaultAsync(m => m.RoadSurfaceId == id); | |
151 | + if (roadSurface == null) | |
152 | + { | |
153 | + return NotFound(); | |
154 | + } | |
155 | + | |
156 | + return View(roadSurface); | |
157 | + } | |
158 | + | |
159 | + // POST: RoadSurface/Delete/5 | |
160 | + [HttpPost, ActionName("Delete")] | |
161 | + [ValidateAntiForgeryToken] | |
162 | + public async Task<IActionResult> DeleteConfirmed(int id) | |
163 | + { | |
164 | + var roadSurface = await _context.RoadSurface.SingleOrDefaultAsync(m => m.RoadSurfaceId == id); | |
165 | + _context.RoadSurface.Remove(roadSurface); | |
166 | + await _context.SaveChangesAsync(); | |
167 | + return RedirectToAction("Index"); | |
168 | + } | |
169 | + | |
170 | + private bool RoadSurfaceExists(int id) | |
171 | + { | |
172 | + return _context.RoadSurface.Any(e => e.RoadSurfaceId == id); | |
173 | + } | |
174 | + } | |
175 | +} | ... | ... |
1 | +using System; | |
2 | +using System.Collections.Generic; | |
3 | +using System.Linq; | |
4 | +using System.Threading.Tasks; | |
5 | +using Microsoft.AspNetCore.Mvc; | |
6 | +using Microsoft.AspNetCore.Mvc.Rendering; | |
7 | +using Microsoft.EntityFrameworkCore; | |
8 | +using Maps.Entities; | |
9 | + | |
10 | +namespace maps_core.Controllers | |
11 | +{ | |
12 | + public class RoadTypeController : Controller | |
13 | + { | |
14 | + private readonly PostgresDbContext _context; | |
15 | + | |
16 | + public RoadTypeController(PostgresDbContext context) | |
17 | + { | |
18 | + _context = context; | |
19 | + } | |
20 | + | |
21 | + // GET: RoadType | |
22 | + public async Task<IActionResult> Index() | |
23 | + { | |
24 | + return View(await _context.RoadType.ToListAsync()); | |
25 | + } | |
26 | + | |
27 | + // GET: RoadType/Details/5 | |
28 | + public async Task<IActionResult> Details(int? id) | |
29 | + { | |
30 | + if (id == null) | |
31 | + { | |
32 | + return NotFound(); | |
33 | + } | |
34 | + | |
35 | + var roadType = await _context.RoadType.SingleOrDefaultAsync(m => m.RoadTypeId == id); | |
36 | + if (roadType == null) | |
37 | + { | |
38 | + return NotFound(); | |
39 | + } | |
40 | + | |
41 | + return View(roadType); | |
42 | + } | |
43 | + | |
44 | + // GET: RoadType/Create | |
45 | + public IActionResult Create() | |
46 | + { | |
47 | + return View(); | |
48 | + } | |
49 | + | |
50 | + // POST: RoadType/Create | |
51 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
52 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
53 | + [HttpPost] | |
54 | + [ValidateAntiForgeryToken] | |
55 | + public async Task<IActionResult> Create([Bind("RoadTypeId,Definition,Value")] RoadType roadType) | |
56 | + { | |
57 | + if (ModelState.IsValid) | |
58 | + { | |
59 | + _context.Add(roadType); | |
60 | + await _context.SaveChangesAsync(); | |
61 | + return RedirectToAction("Index"); | |
62 | + } | |
63 | + return View(roadType); | |
64 | + } | |
65 | + | |
66 | + // GET: RoadType/Edit/5 | |
67 | + public async Task<IActionResult> Edit(int? id) | |
68 | + { | |
69 | + if (id == null) | |
70 | + { | |
71 | + return NotFound(); | |
72 | + } | |
73 | + | |
74 | + var roadType = await _context.RoadType.SingleOrDefaultAsync(m => m.RoadTypeId == id); | |
75 | + if (roadType == null) | |
76 | + { | |
77 | + return NotFound(); | |
78 | + } | |
79 | + return View(roadType); | |
80 | + } | |
81 | + | |
82 | + // POST: RoadType/Edit/5 | |
83 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
84 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
85 | + [HttpPost] | |
86 | + [ValidateAntiForgeryToken] | |
87 | + public async Task<IActionResult> Edit(int id, [Bind("RoadTypeId,Definition,Value")] RoadType roadType) | |
88 | + { | |
89 | + if (id != roadType.RoadTypeId) | |
90 | + { | |
91 | + return NotFound(); | |
92 | + } | |
93 | + | |
94 | + if (ModelState.IsValid) | |
95 | + { | |
96 | + try | |
97 | + { | |
98 | + _context.Update(roadType); | |
99 | + await _context.SaveChangesAsync(); | |
100 | + } | |
101 | + catch (DbUpdateConcurrencyException) | |
102 | + { | |
103 | + if (!RoadTypeExists(roadType.RoadTypeId)) | |
104 | + { | |
105 | + return NotFound(); | |
106 | + } | |
107 | + else | |
108 | + { | |
109 | + throw; | |
110 | + } | |
111 | + } | |
112 | + return RedirectToAction("Index"); | |
113 | + } | |
114 | + return View(roadType); | |
115 | + } | |
116 | + | |
117 | + // GET: RoadType/Delete/5 | |
118 | + public async Task<IActionResult> Delete(int? id) | |
119 | + { | |
120 | + if (id == null) | |
121 | + { | |
122 | + return NotFound(); | |
123 | + } | |
124 | + | |
125 | + var roadType = await _context.RoadType.SingleOrDefaultAsync(m => m.RoadTypeId == id); | |
126 | + if (roadType == null) | |
127 | + { | |
128 | + return NotFound(); | |
129 | + } | |
130 | + | |
131 | + return View(roadType); | |
132 | + } | |
133 | + | |
134 | + // POST: RoadType/Delete/5 | |
135 | + [HttpPost, ActionName("Delete")] | |
136 | + [ValidateAntiForgeryToken] | |
137 | + public async Task<IActionResult> DeleteConfirmed(int id) | |
138 | + { | |
139 | + var roadType = await _context.RoadType.SingleOrDefaultAsync(m => m.RoadTypeId == id); | |
140 | + _context.RoadType.Remove(roadType); | |
141 | + await _context.SaveChangesAsync(); | |
142 | + return RedirectToAction("Index"); | |
143 | + } | |
144 | + | |
145 | + private bool RoadTypeExists(int id) | |
146 | + { | |
147 | + return _context.RoadType.Any(e => e.RoadTypeId == id); | |
148 | + } | |
149 | + } | |
150 | +} | ... | ... |
1 | +using System; | |
2 | +using System.Collections.Generic; | |
3 | +using System.Linq; | |
4 | +using System.Threading.Tasks; | |
5 | +using Microsoft.AspNetCore.Mvc; | |
6 | +using Microsoft.AspNetCore.Mvc.Rendering; | |
7 | +using Microsoft.EntityFrameworkCore; | |
8 | +using Maps.Entities; | |
9 | + | |
10 | +namespace maps_core.Controllers | |
11 | +{ | |
12 | + public class RoadWidthController : Controller | |
13 | + { | |
14 | + private readonly PostgresDbContext _context; | |
15 | + | |
16 | + public RoadWidthController(PostgresDbContext context) | |
17 | + { | |
18 | + _context = context; | |
19 | + } | |
20 | + | |
21 | + // GET: RoadWidth | |
22 | + public async Task<IActionResult> Index() | |
23 | + { | |
24 | + var postgresDbContext = _context.RoadWidth.Include(r => r.Region).Include(r => r.Road); | |
25 | + return View(await postgresDbContext.ToListAsync()); | |
26 | + } | |
27 | + | |
28 | + // GET: RoadWidth/Details/5 | |
29 | + public async Task<IActionResult> Details(int? id) | |
30 | + { | |
31 | + if (id == null) | |
32 | + { | |
33 | + return NotFound(); | |
34 | + } | |
35 | + | |
36 | + var roadWidth = await _context.RoadWidth.SingleOrDefaultAsync(m => m.RoadWidthId == id); | |
37 | + if (roadWidth == null) | |
38 | + { | |
39 | + return NotFound(); | |
40 | + } | |
41 | + | |
42 | + return View(roadWidth); | |
43 | + } | |
44 | + | |
45 | + // GET: RoadWidth/Create | |
46 | + public IActionResult Create() | |
47 | + { | |
48 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId"); | |
49 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId"); | |
50 | + return View(); | |
51 | + } | |
52 | + | |
53 | + // POST: RoadWidth/Create | |
54 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
55 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
56 | + [HttpPost] | |
57 | + [ValidateAntiForgeryToken] | |
58 | + public async Task<IActionResult> Create([Bind("RoadWidthId,Begin,CountLaneLeft,CountLaneRight,End,RegionId,RoadId,WidthReverseRoad,WidthRoadsideLeft,WidthRoadsideRight,WidthRoadwayForward,WidthStrip")] RoadWidth roadWidth) | |
59 | + { | |
60 | + if (ModelState.IsValid) | |
61 | + { | |
62 | + _context.Add(roadWidth); | |
63 | + await _context.SaveChangesAsync(); | |
64 | + return RedirectToAction("Index"); | |
65 | + } | |
66 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", roadWidth.RegionId); | |
67 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", roadWidth.RoadId); | |
68 | + return View(roadWidth); | |
69 | + } | |
70 | + | |
71 | + // GET: RoadWidth/Edit/5 | |
72 | + public async Task<IActionResult> Edit(int? id) | |
73 | + { | |
74 | + if (id == null) | |
75 | + { | |
76 | + return NotFound(); | |
77 | + } | |
78 | + | |
79 | + var roadWidth = await _context.RoadWidth.SingleOrDefaultAsync(m => m.RoadWidthId == id); | |
80 | + if (roadWidth == null) | |
81 | + { | |
82 | + return NotFound(); | |
83 | + } | |
84 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", roadWidth.RegionId); | |
85 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", roadWidth.RoadId); | |
86 | + return View(roadWidth); | |
87 | + } | |
88 | + | |
89 | + // POST: RoadWidth/Edit/5 | |
90 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
91 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
92 | + [HttpPost] | |
93 | + [ValidateAntiForgeryToken] | |
94 | + public async Task<IActionResult> Edit(int id, [Bind("RoadWidthId,Begin,CountLaneLeft,CountLaneRight,End,RegionId,RoadId,WidthReverseRoad,WidthRoadsideLeft,WidthRoadsideRight,WidthRoadwayForward,WidthStrip")] RoadWidth roadWidth) | |
95 | + { | |
96 | + if (id != roadWidth.RoadWidthId) | |
97 | + { | |
98 | + return NotFound(); | |
99 | + } | |
100 | + | |
101 | + if (ModelState.IsValid) | |
102 | + { | |
103 | + try | |
104 | + { | |
105 | + _context.Update(roadWidth); | |
106 | + await _context.SaveChangesAsync(); | |
107 | + } | |
108 | + catch (DbUpdateConcurrencyException) | |
109 | + { | |
110 | + if (!RoadWidthExists(roadWidth.RoadWidthId)) | |
111 | + { | |
112 | + return NotFound(); | |
113 | + } | |
114 | + else | |
115 | + { | |
116 | + throw; | |
117 | + } | |
118 | + } | |
119 | + return RedirectToAction("Index"); | |
120 | + } | |
121 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", roadWidth.RegionId); | |
122 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", roadWidth.RoadId); | |
123 | + return View(roadWidth); | |
124 | + } | |
125 | + | |
126 | + // GET: RoadWidth/Delete/5 | |
127 | + public async Task<IActionResult> Delete(int? id) | |
128 | + { | |
129 | + if (id == null) | |
130 | + { | |
131 | + return NotFound(); | |
132 | + } | |
133 | + | |
134 | + var roadWidth = await _context.RoadWidth.SingleOrDefaultAsync(m => m.RoadWidthId == id); | |
135 | + if (roadWidth == null) | |
136 | + { | |
137 | + return NotFound(); | |
138 | + } | |
139 | + | |
140 | + return View(roadWidth); | |
141 | + } | |
142 | + | |
143 | + // POST: RoadWidth/Delete/5 | |
144 | + [HttpPost, ActionName("Delete")] | |
145 | + [ValidateAntiForgeryToken] | |
146 | + public async Task<IActionResult> DeleteConfirmed(int id) | |
147 | + { | |
148 | + var roadWidth = await _context.RoadWidth.SingleOrDefaultAsync(m => m.RoadWidthId == id); | |
149 | + _context.RoadWidth.Remove(roadWidth); | |
150 | + await _context.SaveChangesAsync(); | |
151 | + return RedirectToAction("Index"); | |
152 | + } | |
153 | + | |
154 | + private bool RoadWidthExists(int id) | |
155 | + { | |
156 | + return _context.RoadWidth.Any(e => e.RoadWidthId == id); | |
157 | + } | |
158 | + } | |
159 | +} | ... | ... |
1 | +using System; | |
2 | +using System.Collections.Generic; | |
3 | +using System.Linq; | |
4 | +using System.Threading.Tasks; | |
5 | +using Microsoft.AspNetCore.Mvc; | |
6 | +using Microsoft.AspNetCore.Mvc.Rendering; | |
7 | +using Microsoft.EntityFrameworkCore; | |
8 | +using Maps.Entities; | |
9 | + | |
10 | +namespace maps_core.Controllers | |
11 | +{ | |
12 | + public class ServiceObjectController : Controller | |
13 | + { | |
14 | + private readonly PostgresDbContext _context; | |
15 | + | |
16 | + public ServiceObjectController(PostgresDbContext context) | |
17 | + { | |
18 | + _context = context; | |
19 | + } | |
20 | + | |
21 | + // GET: ServiceObject | |
22 | + public async Task<IActionResult> Index() | |
23 | + { | |
24 | + var postgresDbContext = _context.ServiceObject.Include(s => s.DepartmentAffiliation).Include(s => s.Region).Include(s => s.Road).Include(s => s.ServiceObjectType).Include(s => s.Settlement); | |
25 | + return View(await postgresDbContext.ToListAsync()); | |
26 | + } | |
27 | + | |
28 | + // GET: ServiceObject/Details/5 | |
29 | + public async Task<IActionResult> Details(int? id) | |
30 | + { | |
31 | + if (id == null) | |
32 | + { | |
33 | + return NotFound(); | |
34 | + } | |
35 | + | |
36 | + var serviceObject = await _context.ServiceObject.SingleOrDefaultAsync(m => m.ServiceObjectId == id); | |
37 | + if (serviceObject == null) | |
38 | + { | |
39 | + return NotFound(); | |
40 | + } | |
41 | + | |
42 | + return View(serviceObject); | |
43 | + } | |
44 | + | |
45 | + // GET: ServiceObject/Create | |
46 | + public IActionResult Create() | |
47 | + { | |
48 | + ViewData["DepartmentAffiliationId"] = new SelectList(_context.DepartmentAffiliation, "DepartmentAffiliationId", "DepartmentAffiliationId"); | |
49 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId"); | |
50 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId"); | |
51 | + ViewData["ServiceObjectTypeId"] = new SelectList(_context.ServiceObjectType, "ServiceObjectTypeId", "ServiceObjectTypeId"); | |
52 | + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name"); | |
53 | + return View(); | |
54 | + } | |
55 | + | |
56 | + // POST: ServiceObject/Create | |
57 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
58 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
59 | + [HttpPost] | |
60 | + [ValidateAntiForgeryToken] | |
61 | + public async Task<IActionResult> Create([Bind("ServiceObjectId,ArrangementElements,Capacity,DepartmentAffiliationId,Distance,LocationAxis,LocationLeft,LocationRight,RegionId,RoadId,ServiceObjectTypeId,SettlementId")] ServiceObject serviceObject) | |
62 | + { | |
63 | + if (ModelState.IsValid) | |
64 | + { | |
65 | + _context.Add(serviceObject); | |
66 | + await _context.SaveChangesAsync(); | |
67 | + return RedirectToAction("Index"); | |
68 | + } | |
69 | + ViewData["DepartmentAffiliationId"] = new SelectList(_context.DepartmentAffiliation, "DepartmentAffiliationId", "DepartmentAffiliationId", serviceObject.DepartmentAffiliationId); | |
70 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", serviceObject.RegionId); | |
71 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", serviceObject.RoadId); | |
72 | + ViewData["ServiceObjectTypeId"] = new SelectList(_context.ServiceObjectType, "ServiceObjectTypeId", "ServiceObjectTypeId", serviceObject.ServiceObjectTypeId); | |
73 | + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name", serviceObject.SettlementId); | |
74 | + return View(serviceObject); | |
75 | + } | |
76 | + | |
77 | + // GET: ServiceObject/Edit/5 | |
78 | + public async Task<IActionResult> Edit(int? id) | |
79 | + { | |
80 | + if (id == null) | |
81 | + { | |
82 | + return NotFound(); | |
83 | + } | |
84 | + | |
85 | + var serviceObject = await _context.ServiceObject.SingleOrDefaultAsync(m => m.ServiceObjectId == id); | |
86 | + if (serviceObject == null) | |
87 | + { | |
88 | + return NotFound(); | |
89 | + } | |
90 | + ViewData["DepartmentAffiliationId"] = new SelectList(_context.DepartmentAffiliation, "DepartmentAffiliationId", "DepartmentAffiliationId", serviceObject.DepartmentAffiliationId); | |
91 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", serviceObject.RegionId); | |
92 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", serviceObject.RoadId); | |
93 | + ViewData["ServiceObjectTypeId"] = new SelectList(_context.ServiceObjectType, "ServiceObjectTypeId", "ServiceObjectTypeId", serviceObject.ServiceObjectTypeId); | |
94 | + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name", serviceObject.SettlementId); | |
95 | + return View(serviceObject); | |
96 | + } | |
97 | + | |
98 | + // POST: ServiceObject/Edit/5 | |
99 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
100 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
101 | + [HttpPost] | |
102 | + [ValidateAntiForgeryToken] | |
103 | + public async Task<IActionResult> Edit(int id, [Bind("ServiceObjectId,ArrangementElements,Capacity,DepartmentAffiliationId,Distance,LocationAxis,LocationLeft,LocationRight,RegionId,RoadId,ServiceObjectTypeId,SettlementId")] ServiceObject serviceObject) | |
104 | + { | |
105 | + if (id != serviceObject.ServiceObjectId) | |
106 | + { | |
107 | + return NotFound(); | |
108 | + } | |
109 | + | |
110 | + if (ModelState.IsValid) | |
111 | + { | |
112 | + try | |
113 | + { | |
114 | + _context.Update(serviceObject); | |
115 | + await _context.SaveChangesAsync(); | |
116 | + } | |
117 | + catch (DbUpdateConcurrencyException) | |
118 | + { | |
119 | + if (!ServiceObjectExists(serviceObject.ServiceObjectId)) | |
120 | + { | |
121 | + return NotFound(); | |
122 | + } | |
123 | + else | |
124 | + { | |
125 | + throw; | |
126 | + } | |
127 | + } | |
128 | + return RedirectToAction("Index"); | |
129 | + } | |
130 | + ViewData["DepartmentAffiliationId"] = new SelectList(_context.DepartmentAffiliation, "DepartmentAffiliationId", "DepartmentAffiliationId", serviceObject.DepartmentAffiliationId); | |
131 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", serviceObject.RegionId); | |
132 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", serviceObject.RoadId); | |
133 | + ViewData["ServiceObjectTypeId"] = new SelectList(_context.ServiceObjectType, "ServiceObjectTypeId", "ServiceObjectTypeId", serviceObject.ServiceObjectTypeId); | |
134 | + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name", serviceObject.SettlementId); | |
135 | + return View(serviceObject); | |
136 | + } | |
137 | + | |
138 | + // GET: ServiceObject/Delete/5 | |
139 | + public async Task<IActionResult> Delete(int? id) | |
140 | + { | |
141 | + if (id == null) | |
142 | + { | |
143 | + return NotFound(); | |
144 | + } | |
145 | + | |
146 | + var serviceObject = await _context.ServiceObject.SingleOrDefaultAsync(m => m.ServiceObjectId == id); | |
147 | + if (serviceObject == null) | |
148 | + { | |
149 | + return NotFound(); | |
150 | + } | |
151 | + | |
152 | + return View(serviceObject); | |
153 | + } | |
154 | + | |
155 | + // POST: ServiceObject/Delete/5 | |
156 | + [HttpPost, ActionName("Delete")] | |
157 | + [ValidateAntiForgeryToken] | |
158 | + public async Task<IActionResult> DeleteConfirmed(int id) | |
159 | + { | |
160 | + var serviceObject = await _context.ServiceObject.SingleOrDefaultAsync(m => m.ServiceObjectId == id); | |
161 | + _context.ServiceObject.Remove(serviceObject); | |
162 | + await _context.SaveChangesAsync(); | |
163 | + return RedirectToAction("Index"); | |
164 | + } | |
165 | + | |
166 | + private bool ServiceObjectExists(int id) | |
167 | + { | |
168 | + return _context.ServiceObject.Any(e => e.ServiceObjectId == id); | |
169 | + } | |
170 | + } | |
171 | +} | ... | ... |
1 | +using System; | |
2 | +using System.Collections.Generic; | |
3 | +using System.Linq; | |
4 | +using System.Threading.Tasks; | |
5 | +using Microsoft.AspNetCore.Mvc; | |
6 | +using Microsoft.AspNetCore.Mvc.Rendering; | |
7 | +using Microsoft.EntityFrameworkCore; | |
8 | +using Maps.Entities; | |
9 | + | |
10 | +namespace maps_core.Controllers | |
11 | +{ | |
12 | + public class ServiceObjectTypeController : Controller | |
13 | + { | |
14 | + private readonly PostgresDbContext _context; | |
15 | + | |
16 | + public ServiceObjectTypeController(PostgresDbContext context) | |
17 | + { | |
18 | + _context = context; | |
19 | + } | |
20 | + | |
21 | + // GET: ServiceObjectType | |
22 | + public async Task<IActionResult> Index() | |
23 | + { | |
24 | + return View(await _context.ServiceObjectType.ToListAsync()); | |
25 | + } | |
26 | + | |
27 | + // GET: ServiceObjectType/Details/5 | |
28 | + public async Task<IActionResult> Details(int? id) | |
29 | + { | |
30 | + if (id == null) | |
31 | + { | |
32 | + return NotFound(); | |
33 | + } | |
34 | + | |
35 | + var serviceObjectType = await _context.ServiceObjectType.SingleOrDefaultAsync(m => m.ServiceObjectTypeId == id); | |
36 | + if (serviceObjectType == null) | |
37 | + { | |
38 | + return NotFound(); | |
39 | + } | |
40 | + | |
41 | + return View(serviceObjectType); | |
42 | + } | |
43 | + | |
44 | + // GET: ServiceObjectType/Create | |
45 | + public IActionResult Create() | |
46 | + { | |
47 | + return View(); | |
48 | + } | |
49 | + | |
50 | + // POST: ServiceObjectType/Create | |
51 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
52 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
53 | + [HttpPost] | |
54 | + [ValidateAntiForgeryToken] | |
55 | + public async Task<IActionResult> Create([Bind("ServiceObjectTypeId,Name")] ServiceObjectType serviceObjectType) | |
56 | + { | |
57 | + if (ModelState.IsValid) | |
58 | + { | |
59 | + _context.Add(serviceObjectType); | |
60 | + await _context.SaveChangesAsync(); | |
61 | + return RedirectToAction("Index"); | |
62 | + } | |
63 | + return View(serviceObjectType); | |
64 | + } | |
65 | + | |
66 | + // GET: ServiceObjectType/Edit/5 | |
67 | + public async Task<IActionResult> Edit(int? id) | |
68 | + { | |
69 | + if (id == null) | |
70 | + { | |
71 | + return NotFound(); | |
72 | + } | |
73 | + | |
74 | + var serviceObjectType = await _context.ServiceObjectType.SingleOrDefaultAsync(m => m.ServiceObjectTypeId == id); | |
75 | + if (serviceObjectType == null) | |
76 | + { | |
77 | + return NotFound(); | |
78 | + } | |
79 | + return View(serviceObjectType); | |
80 | + } | |
81 | + | |
82 | + // POST: ServiceObjectType/Edit/5 | |
83 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
84 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
85 | + [HttpPost] | |
86 | + [ValidateAntiForgeryToken] | |
87 | + public async Task<IActionResult> Edit(int id, [Bind("ServiceObjectTypeId,Name")] ServiceObjectType serviceObjectType) | |
88 | + { | |
89 | + if (id != serviceObjectType.ServiceObjectTypeId) | |
90 | + { | |
91 | + return NotFound(); | |
92 | + } | |
93 | + | |
94 | + if (ModelState.IsValid) | |
95 | + { | |
96 | + try | |
97 | + { | |
98 | + _context.Update(serviceObjectType); | |
99 | + await _context.SaveChangesAsync(); | |
100 | + } | |
101 | + catch (DbUpdateConcurrencyException) | |
102 | + { | |
103 | + if (!ServiceObjectTypeExists(serviceObjectType.ServiceObjectTypeId)) | |
104 | + { | |
105 | + return NotFound(); | |
106 | + } | |
107 | + else | |
108 | + { | |
109 | + throw; | |
110 | + } | |
111 | + } | |
112 | + return RedirectToAction("Index"); | |
113 | + } | |
114 | + return View(serviceObjectType); | |
115 | + } | |
116 | + | |
117 | + // GET: ServiceObjectType/Delete/5 | |
118 | + public async Task<IActionResult> Delete(int? id) | |
119 | + { | |
120 | + if (id == null) | |
121 | + { | |
122 | + return NotFound(); | |
123 | + } | |
124 | + | |
125 | + var serviceObjectType = await _context.ServiceObjectType.SingleOrDefaultAsync(m => m.ServiceObjectTypeId == id); | |
126 | + if (serviceObjectType == null) | |
127 | + { | |
128 | + return NotFound(); | |
129 | + } | |
130 | + | |
131 | + return View(serviceObjectType); | |
132 | + } | |
133 | + | |
134 | + // POST: ServiceObjectType/Delete/5 | |
135 | + [HttpPost, ActionName("Delete")] | |
136 | + [ValidateAntiForgeryToken] | |
137 | + public async Task<IActionResult> DeleteConfirmed(int id) | |
138 | + { | |
139 | + var serviceObjectType = await _context.ServiceObjectType.SingleOrDefaultAsync(m => m.ServiceObjectTypeId == id); | |
140 | + _context.ServiceObjectType.Remove(serviceObjectType); | |
141 | + await _context.SaveChangesAsync(); | |
142 | + return RedirectToAction("Index"); | |
143 | + } | |
144 | + | |
145 | + private bool ServiceObjectTypeExists(int id) | |
146 | + { | |
147 | + return _context.ServiceObjectType.Any(e => e.ServiceObjectTypeId == id); | |
148 | + } | |
149 | + } | |
150 | +} | ... | ... |
1 | +using System; | |
2 | +using System.Collections.Generic; | |
3 | +using System.Linq; | |
4 | +using System.Threading.Tasks; | |
5 | +using Microsoft.AspNetCore.Mvc; | |
6 | +using Microsoft.AspNetCore.Mvc.Rendering; | |
7 | +using Microsoft.EntityFrameworkCore; | |
8 | +using Maps.Entities; | |
9 | + | |
10 | +namespace maps_core.Controllers | |
11 | +{ | |
12 | + public class SettlementAddressLinkController : Controller | |
13 | + { | |
14 | + private readonly PostgresDbContext _context; | |
15 | + | |
16 | + public SettlementAddressLinkController(PostgresDbContext context) | |
17 | + { | |
18 | + _context = context; | |
19 | + } | |
20 | + | |
21 | + // GET: SettlementAddressLink | |
22 | + public async Task<IActionResult> Index() | |
23 | + { | |
24 | + var postgresDbContext = _context.SettlementAddressLink.Include(s => s.Region).Include(s => s.Road).Include(s => s.Settlement).Include(s => s.SettlementLocation); | |
25 | + return View(await postgresDbContext.ToListAsync()); | |
26 | + } | |
27 | + | |
28 | + // GET: SettlementAddressLink/Details/5 | |
29 | + public async Task<IActionResult> Details(int? id) | |
30 | + { | |
31 | + if (id == null) | |
32 | + { | |
33 | + return NotFound(); | |
34 | + } | |
35 | + | |
36 | + var settlementAddressLink = await _context.SettlementAddressLink.SingleOrDefaultAsync(m => m.SettlementAddressLinkId == id); | |
37 | + if (settlementAddressLink == null) | |
38 | + { | |
39 | + return NotFound(); | |
40 | + } | |
41 | + | |
42 | + return View(settlementAddressLink); | |
43 | + } | |
44 | + | |
45 | + // GET: SettlementAddressLink/Create | |
46 | + public IActionResult Create() | |
47 | + { | |
48 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId"); | |
49 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId"); | |
50 | + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name"); | |
51 | + ViewData["SettlementLocationId"] = new SelectList(_context.SettlementLocation, "SettlementLocationId", "Value"); | |
52 | + return View(); | |
53 | + } | |
54 | + | |
55 | + // POST: SettlementAddressLink/Create | |
56 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
57 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
58 | + [HttpPost] | |
59 | + [ValidateAntiForgeryToken] | |
60 | + public async Task<IActionResult> Create([Bind("SettlementAddressLinkId,Begin,Distance,End,RegionId,RoadId,SettlementId,SettlementLocationId")] SettlementAddressLink settlementAddressLink) | |
61 | + { | |
62 | + if (ModelState.IsValid) | |
63 | + { | |
64 | + _context.Add(settlementAddressLink); | |
65 | + await _context.SaveChangesAsync(); | |
66 | + return RedirectToAction("Index"); | |
67 | + } | |
68 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", settlementAddressLink.RegionId); | |
69 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", settlementAddressLink.RoadId); | |
70 | + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name", settlementAddressLink.SettlementId); | |
71 | + ViewData["SettlementLocationId"] = new SelectList(_context.SettlementLocation, "SettlementLocationId", "Value", settlementAddressLink.SettlementLocationId); | |
72 | + return View(settlementAddressLink); | |
73 | + } | |
74 | + | |
75 | + // GET: SettlementAddressLink/Edit/5 | |
76 | + public async Task<IActionResult> Edit(int? id) | |
77 | + { | |
78 | + if (id == null) | |
79 | + { | |
80 | + return NotFound(); | |
81 | + } | |
82 | + | |
83 | + var settlementAddressLink = await _context.SettlementAddressLink.SingleOrDefaultAsync(m => m.SettlementAddressLinkId == id); | |
84 | + if (settlementAddressLink == null) | |
85 | + { | |
86 | + return NotFound(); | |
87 | + } | |
88 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", settlementAddressLink.RegionId); | |
89 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", settlementAddressLink.RoadId); | |
90 | + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name", settlementAddressLink.SettlementId); | |
91 | + ViewData["SettlementLocationId"] = new SelectList(_context.SettlementLocation, "SettlementLocationId", "Value", settlementAddressLink.SettlementLocationId); | |
92 | + return View(settlementAddressLink); | |
93 | + } | |
94 | + | |
95 | + // POST: SettlementAddressLink/Edit/5 | |
96 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
97 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
98 | + [HttpPost] | |
99 | + [ValidateAntiForgeryToken] | |
100 | + public async Task<IActionResult> Edit(int id, [Bind("SettlementAddressLinkId,Begin,Distance,End,RegionId,RoadId,SettlementId,SettlementLocationId")] SettlementAddressLink settlementAddressLink) | |
101 | + { | |
102 | + if (id != settlementAddressLink.SettlementAddressLinkId) | |
103 | + { | |
104 | + return NotFound(); | |
105 | + } | |
106 | + | |
107 | + if (ModelState.IsValid) | |
108 | + { | |
109 | + try | |
110 | + { | |
111 | + _context.Update(settlementAddressLink); | |
112 | + await _context.SaveChangesAsync(); | |
113 | + } | |
114 | + catch (DbUpdateConcurrencyException) | |
115 | + { | |
116 | + if (!SettlementAddressLinkExists(settlementAddressLink.SettlementAddressLinkId)) | |
117 | + { | |
118 | + return NotFound(); | |
119 | + } | |
120 | + else | |
121 | + { | |
122 | + throw; | |
123 | + } | |
124 | + } | |
125 | + return RedirectToAction("Index"); | |
126 | + } | |
127 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", settlementAddressLink.RegionId); | |
128 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", settlementAddressLink.RoadId); | |
129 | + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name", settlementAddressLink.SettlementId); | |
130 | + ViewData["SettlementLocationId"] = new SelectList(_context.SettlementLocation, "SettlementLocationId", "Value", settlementAddressLink.SettlementLocationId); | |
131 | + return View(settlementAddressLink); | |
132 | + } | |
133 | + | |
134 | + // GET: SettlementAddressLink/Delete/5 | |
135 | + public async Task<IActionResult> Delete(int? id) | |
136 | + { | |
137 | + if (id == null) | |
138 | + { | |
139 | + return NotFound(); | |
140 | + } | |
141 | + | |
142 | + var settlementAddressLink = await _context.SettlementAddressLink.SingleOrDefaultAsync(m => m.SettlementAddressLinkId == id); | |
143 | + if (settlementAddressLink == null) | |
144 | + { | |
145 | + return NotFound(); | |
146 | + } | |
147 | + | |
148 | + return View(settlementAddressLink); | |
149 | + } | |
150 | + | |
151 | + // POST: SettlementAddressLink/Delete/5 | |
152 | + [HttpPost, ActionName("Delete")] | |
153 | + [ValidateAntiForgeryToken] | |
154 | + public async Task<IActionResult> DeleteConfirmed(int id) | |
155 | + { | |
156 | + var settlementAddressLink = await _context.SettlementAddressLink.SingleOrDefaultAsync(m => m.SettlementAddressLinkId == id); | |
157 | + _context.SettlementAddressLink.Remove(settlementAddressLink); | |
158 | + await _context.SaveChangesAsync(); | |
159 | + return RedirectToAction("Index"); | |
160 | + } | |
161 | + | |
162 | + private bool SettlementAddressLinkExists(int id) | |
163 | + { | |
164 | + return _context.SettlementAddressLink.Any(e => e.SettlementAddressLinkId == id); | |
165 | + } | |
166 | + } | |
167 | +} | ... | ... |
1 | +using System; | |
2 | +using System.Collections.Generic; | |
3 | +using System.Linq; | |
4 | +using System.Threading.Tasks; | |
5 | +using Microsoft.AspNetCore.Mvc; | |
6 | +using Microsoft.AspNetCore.Mvc.Rendering; | |
7 | +using Microsoft.EntityFrameworkCore; | |
8 | +using Maps.Entities; | |
9 | + | |
10 | +namespace maps_core.Controllers | |
11 | +{ | |
12 | + public class SettlementController : Controller | |
13 | + { | |
14 | + private readonly PostgresDbContext _context; | |
15 | + | |
16 | + public SettlementController(PostgresDbContext context) | |
17 | + { | |
18 | + _context = context; | |
19 | + } | |
20 | + | |
21 | + // GET: Settlement | |
22 | + public async Task<IActionResult> Index() | |
23 | + { | |
24 | + return View(await _context.Settlement.ToListAsync()); | |
25 | + } | |
26 | + | |
27 | + // GET: Settlement/Details/5 | |
28 | + public async Task<IActionResult> Details(int? id) | |
29 | + { | |
30 | + if (id == null) | |
31 | + { | |
32 | + return NotFound(); | |
33 | + } | |
34 | + | |
35 | + var settlement = await _context.Settlement.SingleOrDefaultAsync(m => m.SettlementId == id); | |
36 | + if (settlement == null) | |
37 | + { | |
38 | + return NotFound(); | |
39 | + } | |
40 | + | |
41 | + return View(settlement); | |
42 | + } | |
43 | + | |
44 | + // GET: Settlement/Create | |
45 | + public IActionResult Create() | |
46 | + { | |
47 | + return View(); | |
48 | + } | |
49 | + | |
50 | + // POST: Settlement/Create | |
51 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
52 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
53 | + [HttpPost] | |
54 | + [ValidateAntiForgeryToken] | |
55 | + public async Task<IActionResult> Create([Bind("SettlementId,Name,Sign")] Settlement settlement) | |
56 | + { | |
57 | + if (ModelState.IsValid) | |
58 | + { | |
59 | + _context.Add(settlement); | |
60 | + await _context.SaveChangesAsync(); | |
61 | + return RedirectToAction("Index"); | |
62 | + } | |
63 | + return View(settlement); | |
64 | + } | |
65 | + | |
66 | + // GET: Settlement/Edit/5 | |
67 | + public async Task<IActionResult> Edit(int? id) | |
68 | + { | |
69 | + if (id == null) | |
70 | + { | |
71 | + return NotFound(); | |
72 | + } | |
73 | + | |
74 | + var settlement = await _context.Settlement.SingleOrDefaultAsync(m => m.SettlementId == id); | |
75 | + if (settlement == null) | |
76 | + { | |
77 | + return NotFound(); | |
78 | + } | |
79 | + return View(settlement); | |
80 | + } | |
81 | + | |
82 | + // POST: Settlement/Edit/5 | |
83 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
84 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
85 | + [HttpPost] | |
86 | + [ValidateAntiForgeryToken] | |
87 | + public async Task<IActionResult> Edit(int id, [Bind("SettlementId,Name,Sign")] Settlement settlement) | |
88 | + { | |
89 | + if (id != settlement.SettlementId) | |
90 | + { | |
91 | + return NotFound(); | |
92 | + } | |
93 | + | |
94 | + if (ModelState.IsValid) | |
95 | + { | |
96 | + try | |
97 | + { | |
98 | + _context.Update(settlement); | |
99 | + await _context.SaveChangesAsync(); | |
100 | + } | |
101 | + catch (DbUpdateConcurrencyException) | |
102 | + { | |
103 | + if (!SettlementExists(settlement.SettlementId)) | |
104 | + { | |
105 | + return NotFound(); | |
106 | + } | |
107 | + else | |
108 | + { | |
109 | + throw; | |
110 | + } | |
111 | + } | |
112 | + return RedirectToAction("Index"); | |
113 | + } | |
114 | + return View(settlement); | |
115 | + } | |
116 | + | |
117 | + // GET: Settlement/Delete/5 | |
118 | + public async Task<IActionResult> Delete(int? id) | |
119 | + { | |
120 | + if (id == null) | |
121 | + { | |
122 | + return NotFound(); | |
123 | + } | |
124 | + | |
125 | + var settlement = await _context.Settlement.SingleOrDefaultAsync(m => m.SettlementId == id); | |
126 | + if (settlement == null) | |
127 | + { | |
128 | + return NotFound(); | |
129 | + } | |
130 | + | |
131 | + return View(settlement); | |
132 | + } | |
133 | + | |
134 | + // POST: Settlement/Delete/5 | |
135 | + [HttpPost, ActionName("Delete")] | |
136 | + [ValidateAntiForgeryToken] | |
137 | + public async Task<IActionResult> DeleteConfirmed(int id) | |
138 | + { | |
139 | + var settlement = await _context.Settlement.SingleOrDefaultAsync(m => m.SettlementId == id); | |
140 | + _context.Settlement.Remove(settlement); | |
141 | + await _context.SaveChangesAsync(); | |
142 | + return RedirectToAction("Index"); | |
143 | + } | |
144 | + | |
145 | + private bool SettlementExists(int id) | |
146 | + { | |
147 | + return _context.Settlement.Any(e => e.SettlementId == id); | |
148 | + } | |
149 | + } | |
150 | +} | ... | ... |
1 | +using System; | |
2 | +using System.Collections.Generic; | |
3 | +using System.Linq; | |
4 | +using System.Threading.Tasks; | |
5 | +using Microsoft.AspNetCore.Mvc; | |
6 | +using Microsoft.AspNetCore.Mvc.Rendering; | |
7 | +using Microsoft.EntityFrameworkCore; | |
8 | +using Maps.Entities; | |
9 | + | |
10 | +namespace maps_core.Controllers | |
11 | +{ | |
12 | + public class SettlementLocationController : Controller | |
13 | + { | |
14 | + private readonly PostgresDbContext _context; | |
15 | + | |
16 | + public SettlementLocationController(PostgresDbContext context) | |
17 | + { | |
18 | + _context = context; | |
19 | + } | |
20 | + | |
21 | + // GET: SettlementLocation | |
22 | + public async Task<IActionResult> Index() | |
23 | + { | |
24 | + return View(await _context.SettlementLocation.ToListAsync()); | |
25 | + } | |
26 | + | |
27 | + // GET: SettlementLocation/Details/5 | |
28 | + public async Task<IActionResult> Details(int? id) | |
29 | + { | |
30 | + if (id == null) | |
31 | + { | |
32 | + return NotFound(); | |
33 | + } | |
34 | + | |
35 | + var settlementLocation = await _context.SettlementLocation.SingleOrDefaultAsync(m => m.SettlementLocationId == id); | |
36 | + if (settlementLocation == null) | |
37 | + { | |
38 | + return NotFound(); | |
39 | + } | |
40 | + | |
41 | + return View(settlementLocation); | |
42 | + } | |
43 | + | |
44 | + // GET: SettlementLocation/Create | |
45 | + public IActionResult Create() | |
46 | + { | |
47 | + return View(); | |
48 | + } | |
49 | + | |
50 | + // POST: SettlementLocation/Create | |
51 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
52 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
53 | + [HttpPost] | |
54 | + [ValidateAntiForgeryToken] | |
55 | + public async Task<IActionResult> Create([Bind("SettlementLocationId,Value")] SettlementLocation settlementLocation) | |
56 | + { | |
57 | + if (ModelState.IsValid) | |
58 | + { | |
59 | + _context.Add(settlementLocation); | |
60 | + await _context.SaveChangesAsync(); | |
61 | + return RedirectToAction("Index"); | |
62 | + } | |
63 | + return View(settlementLocation); | |
64 | + } | |
65 | + | |
66 | + // GET: SettlementLocation/Edit/5 | |
67 | + public async Task<IActionResult> Edit(int? id) | |
68 | + { | |
69 | + if (id == null) | |
70 | + { | |
71 | + return NotFound(); | |
72 | + } | |
73 | + | |
74 | + var settlementLocation = await _context.SettlementLocation.SingleOrDefaultAsync(m => m.SettlementLocationId == id); | |
75 | + if (settlementLocation == null) | |
76 | + { | |
77 | + return NotFound(); | |
78 | + } | |
79 | + return View(settlementLocation); | |
80 | + } | |
81 | + | |
82 | + // POST: SettlementLocation/Edit/5 | |
83 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
84 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
85 | + [HttpPost] | |
86 | + [ValidateAntiForgeryToken] | |
87 | + public async Task<IActionResult> Edit(int id, [Bind("SettlementLocationId,Value")] SettlementLocation settlementLocation) | |
88 | + { | |
89 | + if (id != settlementLocation.SettlementLocationId) | |
90 | + { | |
91 | + return NotFound(); | |
92 | + } | |
93 | + | |
94 | + if (ModelState.IsValid) | |
95 | + { | |
96 | + try | |
97 | + { | |
98 | + _context.Update(settlementLocation); | |
99 | + await _context.SaveChangesAsync(); | |
100 | + } | |
101 | + catch (DbUpdateConcurrencyException) | |
102 | + { | |
103 | + if (!SettlementLocationExists(settlementLocation.SettlementLocationId)) | |
104 | + { | |
105 | + return NotFound(); | |
106 | + } | |
107 | + else | |
108 | + { | |
109 | + throw; | |
110 | + } | |
111 | + } | |
112 | + return RedirectToAction("Index"); | |
113 | + } | |
114 | + return View(settlementLocation); | |
115 | + } | |
116 | + | |
117 | + // GET: SettlementLocation/Delete/5 | |
118 | + public async Task<IActionResult> Delete(int? id) | |
119 | + { | |
120 | + if (id == null) | |
121 | + { | |
122 | + return NotFound(); | |
123 | + } | |
124 | + | |
125 | + var settlementLocation = await _context.SettlementLocation.SingleOrDefaultAsync(m => m.SettlementLocationId == id); | |
126 | + if (settlementLocation == null) | |
127 | + { | |
128 | + return NotFound(); | |
129 | + } | |
130 | + | |
131 | + return View(settlementLocation); | |
132 | + } | |
133 | + | |
134 | + // POST: SettlementLocation/Delete/5 | |
135 | + [HttpPost, ActionName("Delete")] | |
136 | + [ValidateAntiForgeryToken] | |
137 | + public async Task<IActionResult> DeleteConfirmed(int id) | |
138 | + { | |
139 | + var settlementLocation = await _context.SettlementLocation.SingleOrDefaultAsync(m => m.SettlementLocationId == id); | |
140 | + _context.SettlementLocation.Remove(settlementLocation); | |
141 | + await _context.SaveChangesAsync(); | |
142 | + return RedirectToAction("Index"); | |
143 | + } | |
144 | + | |
145 | + private bool SettlementLocationExists(int id) | |
146 | + { | |
147 | + return _context.SettlementLocation.Any(e => e.SettlementLocationId == id); | |
148 | + } | |
149 | + } | |
150 | +} | ... | ... |
1 | +using System; | |
2 | +using System.Collections.Generic; | |
3 | +using System.Linq; | |
4 | +using System.Threading.Tasks; | |
5 | +using Microsoft.AspNetCore.Mvc; | |
6 | +using Microsoft.AspNetCore.Mvc.Rendering; | |
7 | +using Microsoft.EntityFrameworkCore; | |
8 | +using Maps.Entities; | |
9 | + | |
10 | +namespace maps_core.Controllers | |
11 | +{ | |
12 | + public class StateCommonController : Controller | |
13 | + { | |
14 | + private readonly PostgresDbContext _context; | |
15 | + | |
16 | + public StateCommonController(PostgresDbContext context) | |
17 | + { | |
18 | + _context = context; | |
19 | + } | |
20 | + | |
21 | + // GET: StateCommon | |
22 | + public async Task<IActionResult> Index() | |
23 | + { | |
24 | + return View(await _context.StateCommon.ToListAsync()); | |
25 | + } | |
26 | + | |
27 | + // GET: StateCommon/Details/5 | |
28 | + public async Task<IActionResult> Details(int? id) | |
29 | + { | |
30 | + if (id == null) | |
31 | + { | |
32 | + return NotFound(); | |
33 | + } | |
34 | + | |
35 | + var stateCommon = await _context.StateCommon.SingleOrDefaultAsync(m => m.StateCommonId == id); | |
36 | + if (stateCommon == null) | |
37 | + { | |
38 | + return NotFound(); | |
39 | + } | |
40 | + | |
41 | + return View(stateCommon); | |
42 | + } | |
43 | + | |
44 | + // GET: StateCommon/Create | |
45 | + public IActionResult Create() | |
46 | + { | |
47 | + return View(); | |
48 | + } | |
49 | + | |
50 | + // POST: StateCommon/Create | |
51 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
52 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
53 | + [HttpPost] | |
54 | + [ValidateAntiForgeryToken] | |
55 | + public async Task<IActionResult> Create([Bind("StateCommonId,Value")] StateCommon stateCommon) | |
56 | + { | |
57 | + if (ModelState.IsValid) | |
58 | + { | |
59 | + _context.Add(stateCommon); | |
60 | + await _context.SaveChangesAsync(); | |
61 | + return RedirectToAction("Index"); | |
62 | + } | |
63 | + return View(stateCommon); | |
64 | + } | |
65 | + | |
66 | + // GET: StateCommon/Edit/5 | |
67 | + public async Task<IActionResult> Edit(int? id) | |
68 | + { | |
69 | + if (id == null) | |
70 | + { | |
71 | + return NotFound(); | |
72 | + } | |
73 | + | |
74 | + var stateCommon = await _context.StateCommon.SingleOrDefaultAsync(m => m.StateCommonId == id); | |
75 | + if (stateCommon == null) | |
76 | + { | |
77 | + return NotFound(); | |
78 | + } | |
79 | + return View(stateCommon); | |
80 | + } | |
81 | + | |
82 | + // POST: StateCommon/Edit/5 | |
83 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
84 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
85 | + [HttpPost] | |
86 | + [ValidateAntiForgeryToken] | |
87 | + public async Task<IActionResult> Edit(int id, [Bind("StateCommonId,Value")] StateCommon stateCommon) | |
88 | + { | |
89 | + if (id != stateCommon.StateCommonId) | |
90 | + { | |
91 | + return NotFound(); | |
92 | + } | |
93 | + | |
94 | + if (ModelState.IsValid) | |
95 | + { | |
96 | + try | |
97 | + { | |
98 | + _context.Update(stateCommon); | |
99 | + await _context.SaveChangesAsync(); | |
100 | + } | |
101 | + catch (DbUpdateConcurrencyException) | |
102 | + { | |
103 | + if (!StateCommonExists(stateCommon.StateCommonId)) | |
104 | + { | |
105 | + return NotFound(); | |
106 | + } | |
107 | + else | |
108 | + { | |
109 | + throw; | |
110 | + } | |
111 | + } | |
112 | + return RedirectToAction("Index"); | |
113 | + } | |
114 | + return View(stateCommon); | |
115 | + } | |
116 | + | |
117 | + // GET: StateCommon/Delete/5 | |
118 | + public async Task<IActionResult> Delete(int? id) | |
119 | + { | |
120 | + if (id == null) | |
121 | + { | |
122 | + return NotFound(); | |
123 | + } | |
124 | + | |
125 | + var stateCommon = await _context.StateCommon.SingleOrDefaultAsync(m => m.StateCommonId == id); | |
126 | + if (stateCommon == null) | |
127 | + { | |
128 | + return NotFound(); | |
129 | + } | |
130 | + | |
131 | + return View(stateCommon); | |
132 | + } | |
133 | + | |
134 | + // POST: StateCommon/Delete/5 | |
135 | + [HttpPost, ActionName("Delete")] | |
136 | + [ValidateAntiForgeryToken] | |
137 | + public async Task<IActionResult> DeleteConfirmed(int id) | |
138 | + { | |
139 | + var stateCommon = await _context.StateCommon.SingleOrDefaultAsync(m => m.StateCommonId == id); | |
140 | + _context.StateCommon.Remove(stateCommon); | |
141 | + await _context.SaveChangesAsync(); | |
142 | + return RedirectToAction("Index"); | |
143 | + } | |
144 | + | |
145 | + private bool StateCommonExists(int id) | |
146 | + { | |
147 | + return _context.StateCommon.Any(e => e.StateCommonId == id); | |
148 | + } | |
149 | + } | |
150 | +} | ... | ... |
1 | +using System; | |
2 | +using System.Collections.Generic; | |
3 | +using System.Linq; | |
4 | +using System.Threading.Tasks; | |
5 | +using Microsoft.AspNetCore.Mvc; | |
6 | +using Microsoft.AspNetCore.Mvc.Rendering; | |
7 | +using Microsoft.EntityFrameworkCore; | |
8 | +using Maps.Entities; | |
9 | + | |
10 | +namespace maps_core.Controllers | |
11 | +{ | |
12 | + public class SurfaceTreatmentController : Controller | |
13 | + { | |
14 | + private readonly PostgresDbContext _context; | |
15 | + | |
16 | + public SurfaceTreatmentController(PostgresDbContext context) | |
17 | + { | |
18 | + _context = context; | |
19 | + } | |
20 | + | |
21 | + // GET: SurfaceTreatment | |
22 | + public async Task<IActionResult> Index() | |
23 | + { | |
24 | + return View(await _context.SurfaceTreatment.ToListAsync()); | |
25 | + } | |
26 | + | |
27 | + // GET: SurfaceTreatment/Details/5 | |
28 | + public async Task<IActionResult> Details(int? id) | |
29 | + { | |
30 | + if (id == null) | |
31 | + { | |
32 | + return NotFound(); | |
33 | + } | |
34 | + | |
35 | + var surfaceTreatment = await _context.SurfaceTreatment.SingleOrDefaultAsync(m => m.SurfaceTreatmentId == id); | |
36 | + if (surfaceTreatment == null) | |
37 | + { | |
38 | + return NotFound(); | |
39 | + } | |
40 | + | |
41 | + return View(surfaceTreatment); | |
42 | + } | |
43 | + | |
44 | + // GET: SurfaceTreatment/Create | |
45 | + public IActionResult Create() | |
46 | + { | |
47 | + return View(); | |
48 | + } | |
49 | + | |
50 | + // POST: SurfaceTreatment/Create | |
51 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
52 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
53 | + [HttpPost] | |
54 | + [ValidateAntiForgeryToken] | |
55 | + public async Task<IActionResult> Create([Bind("SurfaceTreatmentId,Name")] SurfaceTreatment surfaceTreatment) | |
56 | + { | |
57 | + if (ModelState.IsValid) | |
58 | + { | |
59 | + _context.Add(surfaceTreatment); | |
60 | + await _context.SaveChangesAsync(); | |
61 | + return RedirectToAction("Index"); | |
62 | + } | |
63 | + return View(surfaceTreatment); | |
64 | + } | |
65 | + | |
66 | + // GET: SurfaceTreatment/Edit/5 | |
67 | + public async Task<IActionResult> Edit(int? id) | |
68 | + { | |
69 | + if (id == null) | |
70 | + { | |
71 | + return NotFound(); | |
72 | + } | |
73 | + | |
74 | + var surfaceTreatment = await _context.SurfaceTreatment.SingleOrDefaultAsync(m => m.SurfaceTreatmentId == id); | |
75 | + if (surfaceTreatment == null) | |
76 | + { | |
77 | + return NotFound(); | |
78 | + } | |
79 | + return View(surfaceTreatment); | |
80 | + } | |
81 | + | |
82 | + // POST: SurfaceTreatment/Edit/5 | |
83 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
84 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
85 | + [HttpPost] | |
86 | + [ValidateAntiForgeryToken] | |
87 | + public async Task<IActionResult> Edit(int id, [Bind("SurfaceTreatmentId,Name")] SurfaceTreatment surfaceTreatment) | |
88 | + { | |
89 | + if (id != surfaceTreatment.SurfaceTreatmentId) | |
90 | + { | |
91 | + return NotFound(); | |
92 | + } | |
93 | + | |
94 | + if (ModelState.IsValid) | |
95 | + { | |
96 | + try | |
97 | + { | |
98 | + _context.Update(surfaceTreatment); | |
99 | + await _context.SaveChangesAsync(); | |
100 | + } | |
101 | + catch (DbUpdateConcurrencyException) | |
102 | + { | |
103 | + if (!SurfaceTreatmentExists(surfaceTreatment.SurfaceTreatmentId)) | |
104 | + { | |
105 | + return NotFound(); | |
106 | + } | |
107 | + else | |
108 | + { | |
109 | + throw; | |
110 | + } | |
111 | + } | |
112 | + return RedirectToAction("Index"); | |
113 | + } | |
114 | + return View(surfaceTreatment); | |
115 | + } | |
116 | + | |
117 | + // GET: SurfaceTreatment/Delete/5 | |
118 | + public async Task<IActionResult> Delete(int? id) | |
119 | + { | |
120 | + if (id == null) | |
121 | + { | |
122 | + return NotFound(); | |
123 | + } | |
124 | + | |
125 | + var surfaceTreatment = await _context.SurfaceTreatment.SingleOrDefaultAsync(m => m.SurfaceTreatmentId == id); | |
126 | + if (surfaceTreatment == null) | |
127 | + { | |
128 | + return NotFound(); | |
129 | + } | |
130 | + | |
131 | + return View(surfaceTreatment); | |
132 | + } | |
133 | + | |
134 | + // POST: SurfaceTreatment/Delete/5 | |
135 | + [HttpPost, ActionName("Delete")] | |
136 | + [ValidateAntiForgeryToken] | |
137 | + public async Task<IActionResult> DeleteConfirmed(int id) | |
138 | + { | |
139 | + var surfaceTreatment = await _context.SurfaceTreatment.SingleOrDefaultAsync(m => m.SurfaceTreatmentId == id); | |
140 | + _context.SurfaceTreatment.Remove(surfaceTreatment); | |
141 | + await _context.SaveChangesAsync(); | |
142 | + return RedirectToAction("Index"); | |
143 | + } | |
144 | + | |
145 | + private bool SurfaceTreatmentExists(int id) | |
146 | + { | |
147 | + return _context.SurfaceTreatment.Any(e => e.SurfaceTreatmentId == id); | |
148 | + } | |
149 | + } | |
150 | +} | ... | ... |
1 | +using System; | |
2 | +using System.Collections.Generic; | |
3 | +using System.Linq; | |
4 | +using System.Threading.Tasks; | |
5 | +using Microsoft.AspNetCore.Mvc; | |
6 | +using Microsoft.AspNetCore.Mvc.Rendering; | |
7 | +using Microsoft.EntityFrameworkCore; | |
8 | +using Maps.Entities; | |
9 | + | |
10 | +namespace maps_core.Controllers | |
11 | +{ | |
12 | + public class SurfaceTypeController : Controller | |
13 | + { | |
14 | + private readonly PostgresDbContext _context; | |
15 | + | |
16 | + public SurfaceTypeController(PostgresDbContext context) | |
17 | + { | |
18 | + _context = context; | |
19 | + } | |
20 | + | |
21 | + // GET: SurfaceType | |
22 | + public async Task<IActionResult> Index() | |
23 | + { | |
24 | + return View(await _context.SurfaceType.ToListAsync()); | |
25 | + } | |
26 | + | |
27 | + // GET: SurfaceType/Details/5 | |
28 | + public async Task<IActionResult> Details(int? id) | |
29 | + { | |
30 | + if (id == null) | |
31 | + { | |
32 | + return NotFound(); | |
33 | + } | |
34 | + | |
35 | + var surfaceType = await _context.SurfaceType.SingleOrDefaultAsync(m => m.SurfaceTypeId == id); | |
36 | + if (surfaceType == null) | |
37 | + { | |
38 | + return NotFound(); | |
39 | + } | |
40 | + | |
41 | + return View(surfaceType); | |
42 | + } | |
43 | + | |
44 | + // GET: SurfaceType/Create | |
45 | + public IActionResult Create() | |
46 | + { | |
47 | + return View(); | |
48 | + } | |
49 | + | |
50 | + // POST: SurfaceType/Create | |
51 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
52 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
53 | + [HttpPost] | |
54 | + [ValidateAntiForgeryToken] | |
55 | + public async Task<IActionResult> Create([Bind("SurfaceTypeId,Name")] SurfaceType surfaceType) | |
56 | + { | |
57 | + if (ModelState.IsValid) | |
58 | + { | |
59 | + _context.Add(surfaceType); | |
60 | + await _context.SaveChangesAsync(); | |
61 | + return RedirectToAction("Index"); | |
62 | + } | |
63 | + return View(surfaceType); | |
64 | + } | |
65 | + | |
66 | + // GET: SurfaceType/Edit/5 | |
67 | + public async Task<IActionResult> Edit(int? id) | |
68 | + { | |
69 | + if (id == null) | |
70 | + { | |
71 | + return NotFound(); | |
72 | + } | |
73 | + | |
74 | + var surfaceType = await _context.SurfaceType.SingleOrDefaultAsync(m => m.SurfaceTypeId == id); | |
75 | + if (surfaceType == null) | |
76 | + { | |
77 | + return NotFound(); | |
78 | + } | |
79 | + return View(surfaceType); | |
80 | + } | |
81 | + | |
82 | + // POST: SurfaceType/Edit/5 | |
83 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | |
84 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | |
85 | + [HttpPost] | |
86 | + [ValidateAntiForgeryToken] | |
87 | + public async Task<IActionResult> Edit(int id, [Bind("SurfaceTypeId,Name")] SurfaceType surfaceType) | |
88 | + { | |
89 | + if (id != surfaceType.SurfaceTypeId) | |
90 | + { | |
91 | + return NotFound(); | |
92 | + } | |
93 | + | |
94 | + if (ModelState.IsValid) | |
95 | + { | |
96 | + try | |
97 | + { | |
98 | + _context.Update(surfaceType); | |
99 | + await _context.SaveChangesAsync(); | |
100 | + } | |
101 | + catch (DbUpdateConcurrencyException) | |
102 | + { | |
103 | + if (!SurfaceTypeExists(surfaceType.SurfaceTypeId)) | |
104 | + { | |
105 | + return NotFound(); | |
106 | + } | |
107 | + else | |
108 | + { | |
109 | + throw; | |
110 | + } | |
111 | + } | |
112 | + return RedirectToAction("Index"); | |
113 | + } | |
114 | + return View(surfaceType); | |
115 | + } | |
116 | + | |
117 | + // GET: SurfaceType/Delete/5 | |
118 | + public async Task<IActionResult> Delete(int? id) | |
119 | + { | |
120 | + if (id == null) | |
121 | + { | |
122 | + return NotFound(); | |
123 | + } | |
124 | + | |
125 | + var surfaceType = await _context.SurfaceType.SingleOrDefaultAsync(m => m.SurfaceTypeId == id); | |
126 | + if (surfaceType == null) | |
127 | + { | |
128 | + return NotFound(); | |
129 | + } | |
130 | + | |
131 | + return View(surfaceType); | |
132 | + } | |
133 | + | |
134 | + // POST: SurfaceType/Delete/5 | |
135 | + [HttpPost, ActionName("Delete")] | |
136 | + [ValidateAntiForgeryToken] | |
137 | + public async Task<IActionResult> DeleteConfirmed(int id) | |
138 | + { | |
139 | + var surfaceType = await _context.SurfaceType.SingleOrDefaultAsync(m => m.SurfaceTypeId == id); | |
140 | + _context.SurfaceType.Remove(surfaceType); | |
141 | + await _context.SaveChangesAsync(); | |
142 | + return RedirectToAction("Index"); | |
143 | + } | |
144 | + | |
145 | + private bool SurfaceTypeExists(int id) | |
146 | + { | |
147 | + return _context.SurfaceType.Any(e => e.SurfaceTypeId == id); | |
148 | + } | |
149 | + } | |
150 | +} | ... | ... |
Startup.cs
1 | +@model Maps.Entities.CrossSection | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Create</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<form asp-action="Create"> | |
17 | + <div class="form-horizontal"> | |
18 | + <h4>CrossSection</h4> | |
19 | + <hr /> | |
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | |
21 | + <div class="form-group"> | |
22 | + <label asp-for="Angle" class="col-md-2 control-label"></label> | |
23 | + <div class="col-md-10"> | |
24 | + <input asp-for="Angle" class="form-control" /> | |
25 | + <span asp-validation-for="Angle" class="text-danger" /> | |
26 | + </div> | |
27 | + </div> | |
28 | + <div class="form-group"> | |
29 | + <label asp-for="Direction" class="col-md-2 control-label"></label> | |
30 | + <div class="col-md-10"> | |
31 | + <input asp-for="Direction" class="form-control" /> | |
32 | + <span asp-validation-for="Direction" class="text-danger" /> | |
33 | + </div> | |
34 | + </div> | |
35 | + <div class="form-group"> | |
36 | + <label asp-for="DistanceEdge" class="col-md-2 control-label"></label> | |
37 | + <div class="col-md-10"> | |
38 | + <input asp-for="DistanceEdge" class="form-control" /> | |
39 | + <span asp-validation-for="DistanceEdge" class="text-danger" /> | |
40 | + </div> | |
41 | + </div> | |
42 | + <div class="form-group"> | |
43 | + <label asp-for="LengthSection" class="col-md-2 control-label"></label> | |
44 | + <div class="col-md-10"> | |
45 | + <input asp-for="LengthSection" class="form-control" /> | |
46 | + <span asp-validation-for="LengthSection" class="text-danger" /> | |
47 | + </div> | |
48 | + </div> | |
49 | + <div class="form-group"> | |
50 | + <label asp-for="LengthSurface" class="col-md-2 control-label"></label> | |
51 | + <div class="col-md-10"> | |
52 | + <input asp-for="LengthSurface" class="form-control" /> | |
53 | + <span asp-validation-for="LengthSurface" class="text-danger" /> | |
54 | + </div> | |
55 | + </div> | |
56 | + <div class="form-group"> | |
57 | + <label asp-for="LocationLeft" class="col-md-2 control-label"></label> | |
58 | + <div class="col-md-10"> | |
59 | + <input asp-for="LocationLeft" class="form-control" /> | |
60 | + <span asp-validation-for="LocationLeft" class="text-danger" /> | |
61 | + </div> | |
62 | + </div> | |
63 | + <div class="form-group"> | |
64 | + <label asp-for="LocationRight" class="col-md-2 control-label"></label> | |
65 | + <div class="col-md-10"> | |
66 | + <input asp-for="LocationRight" class="form-control" /> | |
67 | + <span asp-validation-for="LocationRight" class="text-danger" /> | |
68 | + </div> | |
69 | + </div> | |
70 | + <div class="form-group"> | |
71 | + <label asp-for="RegionId" class="col-md-2 control-label"></label> | |
72 | + <div class="col-md-10"> | |
73 | + <select asp-for="RegionId" class ="form-control" asp-items="ViewBag.RegionId"></select> | |
74 | + </div> | |
75 | + </div> | |
76 | + <div class="form-group"> | |
77 | + <label asp-for="RoadId" class="col-md-2 control-label"></label> | |
78 | + <div class="col-md-10"> | |
79 | + <select asp-for="RoadId" class ="form-control" asp-items="ViewBag.RoadId"></select> | |
80 | + </div> | |
81 | + </div> | |
82 | + <div class="form-group"> | |
83 | + <label asp-for="SafetyAvailability" class="col-md-2 control-label"></label> | |
84 | + <div class="col-md-10"> | |
85 | + <input asp-for="SafetyAvailability" class="form-control" /> | |
86 | + <span asp-validation-for="SafetyAvailability" class="text-danger" /> | |
87 | + </div> | |
88 | + </div> | |
89 | + <div class="form-group"> | |
90 | + <label asp-for="StateCommonId" class="col-md-2 control-label"></label> | |
91 | + <div class="col-md-10"> | |
92 | + <select asp-for="StateCommonId" class ="form-control" asp-items="ViewBag.StateCommonId"></select> | |
93 | + </div> | |
94 | + </div> | |
95 | + <div class="form-group"> | |
96 | + <label asp-for="SurfaceTypeId" class="col-md-2 control-label"></label> | |
97 | + <div class="col-md-10"> | |
98 | + <select asp-for="SurfaceTypeId" class ="form-control" asp-items="ViewBag.SurfaceTypeId"></select> | |
99 | + </div> | |
100 | + </div> | |
101 | + <div class="form-group"> | |
102 | + <label asp-for="TubeAvailability" class="col-md-2 control-label"></label> | |
103 | + <div class="col-md-10"> | |
104 | + <input asp-for="TubeAvailability" class="form-control" /> | |
105 | + <span asp-validation-for="TubeAvailability" class="text-danger" /> | |
106 | + </div> | |
107 | + </div> | |
108 | + <div class="form-group"> | |
109 | + <label asp-for="Width" class="col-md-2 control-label"></label> | |
110 | + <div class="col-md-10"> | |
111 | + <input asp-for="Width" class="form-control" /> | |
112 | + <span asp-validation-for="Width" class="text-danger" /> | |
113 | + </div> | |
114 | + </div> | |
115 | + <div class="form-group"> | |
116 | + <label asp-for="YearBuild" class="col-md-2 control-label"></label> | |
117 | + <div class="col-md-10"> | |
118 | + <input asp-for="YearBuild" class="form-control" /> | |
119 | + <span asp-validation-for="YearBuild" class="text-danger" /> | |
120 | + </div> | |
121 | + </div> | |
122 | + <div class="form-group"> | |
123 | + <label asp-for="YearRepair" class="col-md-2 control-label"></label> | |
124 | + <div class="col-md-10"> | |
125 | + <input asp-for="YearRepair" class="form-control" /> | |
126 | + <span asp-validation-for="YearRepair" class="text-danger" /> | |
127 | + </div> | |
128 | + </div> | |
129 | + <div class="form-group"> | |
130 | + <div class="col-md-offset-2 col-md-10"> | |
131 | + <input type="submit" value="Create" class="btn btn-default" /> | |
132 | + </div> | |
133 | + </div> | |
134 | + </div> | |
135 | +</form> | |
136 | + | |
137 | +<div> | |
138 | + <a asp-action="Index">Back to List</a> | |
139 | +</div> | |
140 | + | |
141 | +</body> | |
142 | +</html> | ... | ... |
1 | +@model Maps.Entities.CrossSection | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Delete</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<h3>Are you sure you want to delete this?</h3> | |
17 | +<div> | |
18 | + <h4>CrossSection</h4> | |
19 | + <hr /> | |
20 | + <dl class="dl-horizontal"> | |
21 | + <dt> | |
22 | + @Html.DisplayNameFor(model => model.Angle) | |
23 | + </dt> | |
24 | + <dd> | |
25 | + @Html.DisplayFor(model => model.Angle) | |
26 | + </dd> | |
27 | + <dt> | |
28 | + @Html.DisplayNameFor(model => model.Direction) | |
29 | + </dt> | |
30 | + <dd> | |
31 | + @Html.DisplayFor(model => model.Direction) | |
32 | + </dd> | |
33 | + <dt> | |
34 | + @Html.DisplayNameFor(model => model.DistanceEdge) | |
35 | + </dt> | |
36 | + <dd> | |
37 | + @Html.DisplayFor(model => model.DistanceEdge) | |
38 | + </dd> | |
39 | + <dt> | |
40 | + @Html.DisplayNameFor(model => model.LengthSection) | |
41 | + </dt> | |
42 | + <dd> | |
43 | + @Html.DisplayFor(model => model.LengthSection) | |
44 | + </dd> | |
45 | + <dt> | |
46 | + @Html.DisplayNameFor(model => model.LengthSurface) | |
47 | + </dt> | |
48 | + <dd> | |
49 | + @Html.DisplayFor(model => model.LengthSurface) | |
50 | + </dd> | |
51 | + <dt> | |
52 | + @Html.DisplayNameFor(model => model.LocationLeft) | |
53 | + </dt> | |
54 | + <dd> | |
55 | + @Html.DisplayFor(model => model.LocationLeft) | |
56 | + </dd> | |
57 | + <dt> | |
58 | + @Html.DisplayNameFor(model => model.LocationRight) | |
59 | + </dt> | |
60 | + <dd> | |
61 | + @Html.DisplayFor(model => model.LocationRight) | |
62 | + </dd> | |
63 | + <dt> | |
64 | + @Html.DisplayNameFor(model => model.SafetyAvailability) | |
65 | + </dt> | |
66 | + <dd> | |
67 | + @Html.DisplayFor(model => model.SafetyAvailability) | |
68 | + </dd> | |
69 | + <dt> | |
70 | + @Html.DisplayNameFor(model => model.TubeAvailability) | |
71 | + </dt> | |
72 | + <dd> | |
73 | + @Html.DisplayFor(model => model.TubeAvailability) | |
74 | + </dd> | |
75 | + <dt> | |
76 | + @Html.DisplayNameFor(model => model.Width) | |
77 | + </dt> | |
78 | + <dd> | |
79 | + @Html.DisplayFor(model => model.Width) | |
80 | + </dd> | |
81 | + <dt> | |
82 | + @Html.DisplayNameFor(model => model.YearBuild) | |
83 | + </dt> | |
84 | + <dd> | |
85 | + @Html.DisplayFor(model => model.YearBuild) | |
86 | + </dd> | |
87 | + <dt> | |
88 | + @Html.DisplayNameFor(model => model.YearRepair) | |
89 | + </dt> | |
90 | + <dd> | |
91 | + @Html.DisplayFor(model => model.YearRepair) | |
92 | + </dd> | |
93 | + </dl> | |
94 | + | |
95 | + <form asp-action="Delete"> | |
96 | + <div class="form-actions no-color"> | |
97 | + <input type="submit" value="Delete" class="btn btn-default" /> | | |
98 | + <a asp-action="Index">Back to List</a> | |
99 | + </div> | |
100 | + </form> | |
101 | +</div> | |
102 | +</body> | |
103 | +</html> | ... | ... |
1 | +@model Maps.Entities.CrossSection | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Details</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<div> | |
17 | + <h4>CrossSection</h4> | |
18 | + <hr /> | |
19 | + <dl class="dl-horizontal"> | |
20 | + <dt> | |
21 | + @Html.DisplayNameFor(model => model.Angle) | |
22 | + </dt> | |
23 | + <dd> | |
24 | + @Html.DisplayFor(model => model.Angle) | |
25 | + </dd> | |
26 | + <dt> | |
27 | + @Html.DisplayNameFor(model => model.Direction) | |
28 | + </dt> | |
29 | + <dd> | |
30 | + @Html.DisplayFor(model => model.Direction) | |
31 | + </dd> | |
32 | + <dt> | |
33 | + @Html.DisplayNameFor(model => model.DistanceEdge) | |
34 | + </dt> | |
35 | + <dd> | |
36 | + @Html.DisplayFor(model => model.DistanceEdge) | |
37 | + </dd> | |
38 | + <dt> | |
39 | + @Html.DisplayNameFor(model => model.LengthSection) | |
40 | + </dt> | |
41 | + <dd> | |
42 | + @Html.DisplayFor(model => model.LengthSection) | |
43 | + </dd> | |
44 | + <dt> | |
45 | + @Html.DisplayNameFor(model => model.LengthSurface) | |
46 | + </dt> | |
47 | + <dd> | |
48 | + @Html.DisplayFor(model => model.LengthSurface) | |
49 | + </dd> | |
50 | + <dt> | |
51 | + @Html.DisplayNameFor(model => model.LocationLeft) | |
52 | + </dt> | |
53 | + <dd> | |
54 | + @Html.DisplayFor(model => model.LocationLeft) | |
55 | + </dd> | |
56 | + <dt> | |
57 | + @Html.DisplayNameFor(model => model.LocationRight) | |
58 | + </dt> | |
59 | + <dd> | |
60 | + @Html.DisplayFor(model => model.LocationRight) | |
61 | + </dd> | |
62 | + <dt> | |
63 | + @Html.DisplayNameFor(model => model.SafetyAvailability) | |
64 | + </dt> | |
65 | + <dd> | |
66 | + @Html.DisplayFor(model => model.SafetyAvailability) | |
67 | + </dd> | |
68 | + <dt> | |
69 | + @Html.DisplayNameFor(model => model.TubeAvailability) | |
70 | + </dt> | |
71 | + <dd> | |
72 | + @Html.DisplayFor(model => model.TubeAvailability) | |
73 | + </dd> | |
74 | + <dt> | |
75 | + @Html.DisplayNameFor(model => model.Width) | |
76 | + </dt> | |
77 | + <dd> | |
78 | + @Html.DisplayFor(model => model.Width) | |
79 | + </dd> | |
80 | + <dt> | |
81 | + @Html.DisplayNameFor(model => model.YearBuild) | |
82 | + </dt> | |
83 | + <dd> | |
84 | + @Html.DisplayFor(model => model.YearBuild) | |
85 | + </dd> | |
86 | + <dt> | |
87 | + @Html.DisplayNameFor(model => model.YearRepair) | |
88 | + </dt> | |
89 | + <dd> | |
90 | + @Html.DisplayFor(model => model.YearRepair) | |
91 | + </dd> | |
92 | + </dl> | |
93 | +</div> | |
94 | +<div> | |
95 | + <a asp-action="Edit" asp-route-id="@Model.CrossSectionId">Edit</a> | | |
96 | + <a asp-action="Index">Back to List</a> | |
97 | +</div> | |
98 | +</body> | |
99 | +</html> | ... | ... |
1 | +@model Maps.Entities.CrossSection | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Edit</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<form asp-action="Edit"> | |
17 | + <div class="form-horizontal"> | |
18 | + <h4>CrossSection</h4> | |
19 | + <hr /> | |
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | |
21 | + <input type="hidden" asp-for="CrossSectionId" /> | |
22 | + <div class="form-group"> | |
23 | + <label asp-for="Angle" class="col-md-2 control-label"></label> | |
24 | + <div class="col-md-10"> | |
25 | + <input asp-for="Angle" class="form-control" /> | |
26 | + <span asp-validation-for="Angle" class="text-danger" /> | |
27 | + </div> | |
28 | + </div> | |
29 | + <div class="form-group"> | |
30 | + <label asp-for="Direction" class="col-md-2 control-label"></label> | |
31 | + <div class="col-md-10"> | |
32 | + <input asp-for="Direction" class="form-control" /> | |
33 | + <span asp-validation-for="Direction" class="text-danger" /> | |
34 | + </div> | |
35 | + </div> | |
36 | + <div class="form-group"> | |
37 | + <label asp-for="DistanceEdge" class="col-md-2 control-label"></label> | |
38 | + <div class="col-md-10"> | |
39 | + <input asp-for="DistanceEdge" class="form-control" /> | |
40 | + <span asp-validation-for="DistanceEdge" class="text-danger" /> | |
41 | + </div> | |
42 | + </div> | |
43 | + <div class="form-group"> | |
44 | + <label asp-for="LengthSection" class="col-md-2 control-label"></label> | |
45 | + <div class="col-md-10"> | |
46 | + <input asp-for="LengthSection" class="form-control" /> | |
47 | + <span asp-validation-for="LengthSection" class="text-danger" /> | |
48 | + </div> | |
49 | + </div> | |
50 | + <div class="form-group"> | |
51 | + <label asp-for="LengthSurface" class="col-md-2 control-label"></label> | |
52 | + <div class="col-md-10"> | |
53 | + <input asp-for="LengthSurface" class="form-control" /> | |
54 | + <span asp-validation-for="LengthSurface" class="text-danger" /> | |
55 | + </div> | |
56 | + </div> | |
57 | + <div class="form-group"> | |
58 | + <label asp-for="LocationLeft" class="col-md-2 control-label"></label> | |
59 | + <div class="col-md-10"> | |
60 | + <input asp-for="LocationLeft" class="form-control" /> | |
61 | + <span asp-validation-for="LocationLeft" class="text-danger" /> | |
62 | + </div> | |
63 | + </div> | |
64 | + <div class="form-group"> | |
65 | + <label asp-for="LocationRight" class="col-md-2 control-label"></label> | |
66 | + <div class="col-md-10"> | |
67 | + <input asp-for="LocationRight" class="form-control" /> | |
68 | + <span asp-validation-for="LocationRight" class="text-danger" /> | |
69 | + </div> | |
70 | + </div> | |
71 | + <div class="form-group"> | |
72 | + <label asp-for="RegionId" class="control-label col-md-2"></label> | |
73 | + <div class="col-md-10"> | |
74 | + <select asp-for="RegionId" class="form-control" asp-items="ViewBag.RegionId"></select> | |
75 | + <span asp-validation-for="RegionId" class="text-danger" /> | |
76 | + </div> | |
77 | + </div> | |
78 | + <div class="form-group"> | |
79 | + <label asp-for="RoadId" class="control-label col-md-2"></label> | |
80 | + <div class="col-md-10"> | |
81 | + <select asp-for="RoadId" class="form-control" asp-items="ViewBag.RoadId"></select> | |
82 | + <span asp-validation-for="RoadId" class="text-danger" /> | |
83 | + </div> | |
84 | + </div> | |
85 | + <div class="form-group"> | |
86 | + <label asp-for="SafetyAvailability" class="col-md-2 control-label"></label> | |
87 | + <div class="col-md-10"> | |
88 | + <input asp-for="SafetyAvailability" class="form-control" /> | |
89 | + <span asp-validation-for="SafetyAvailability" class="text-danger" /> | |
90 | + </div> | |
91 | + </div> | |
92 | + <div class="form-group"> | |
93 | + <label asp-for="StateCommonId" class="control-label col-md-2"></label> | |
94 | + <div class="col-md-10"> | |
95 | + <select asp-for="StateCommonId" class="form-control" asp-items="ViewBag.StateCommonId"></select> | |
96 | + <span asp-validation-for="StateCommonId" class="text-danger" /> | |
97 | + </div> | |
98 | + </div> | |
99 | + <div class="form-group"> | |
100 | + <label asp-for="SurfaceTypeId" class="control-label col-md-2"></label> | |
101 | + <div class="col-md-10"> | |
102 | + <select asp-for="SurfaceTypeId" class="form-control" asp-items="ViewBag.SurfaceTypeId"></select> | |
103 | + <span asp-validation-for="SurfaceTypeId" class="text-danger" /> | |
104 | + </div> | |
105 | + </div> | |
106 | + <div class="form-group"> | |
107 | + <label asp-for="TubeAvailability" class="col-md-2 control-label"></label> | |
108 | + <div class="col-md-10"> | |
109 | + <input asp-for="TubeAvailability" class="form-control" /> | |
110 | + <span asp-validation-for="TubeAvailability" class="text-danger" /> | |
111 | + </div> | |
112 | + </div> | |
113 | + <div class="form-group"> | |
114 | + <label asp-for="Width" class="col-md-2 control-label"></label> | |
115 | + <div class="col-md-10"> | |
116 | + <input asp-for="Width" class="form-control" /> | |
117 | + <span asp-validation-for="Width" class="text-danger" /> | |
118 | + </div> | |
119 | + </div> | |
120 | + <div class="form-group"> | |
121 | + <label asp-for="YearBuild" class="col-md-2 control-label"></label> | |
122 | + <div class="col-md-10"> | |
123 | + <input asp-for="YearBuild" class="form-control" /> | |
124 | + <span asp-validation-for="YearBuild" class="text-danger" /> | |
125 | + </div> | |
126 | + </div> | |
127 | + <div class="form-group"> | |
128 | + <label asp-for="YearRepair" class="col-md-2 control-label"></label> | |
129 | + <div class="col-md-10"> | |
130 | + <input asp-for="YearRepair" class="form-control" /> | |
131 | + <span asp-validation-for="YearRepair" class="text-danger" /> | |
132 | + </div> | |
133 | + </div> | |
134 | + <div class="form-group"> | |
135 | + <div class="col-md-offset-2 col-md-10"> | |
136 | + <input type="submit" value="Save" class="btn btn-default" /> | |
137 | + </div> | |
138 | + </div> | |
139 | + </div> | |
140 | +</form> | |
141 | + | |
142 | +<div> | |
143 | + <a asp-action="Index">Back to List</a> | |
144 | +</div> | |
145 | + | |
146 | +</body> | |
147 | +</html> | ... | ... |
1 | +@model IEnumerable<Maps.Entities.CrossSection> | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Index</title> | |
13 | +</head> | |
14 | +<body> | |
15 | +<p> | |
16 | + <a asp-action="Create">Create New</a> | |
17 | +</p> | |
18 | +<table class="table"> | |
19 | + <thead> | |
20 | + <tr> | |
21 | + <th> | |
22 | + @Html.DisplayNameFor(model => model.Angle) | |
23 | + </th> | |
24 | + <th> | |
25 | + @Html.DisplayNameFor(model => model.Direction) | |
26 | + </th> | |
27 | + <th> | |
28 | + @Html.DisplayNameFor(model => model.DistanceEdge) | |
29 | + </th> | |
30 | + <th> | |
31 | + @Html.DisplayNameFor(model => model.LengthSection) | |
32 | + </th> | |
33 | + <th> | |
34 | + @Html.DisplayNameFor(model => model.LengthSurface) | |
35 | + </th> | |
36 | + <th> | |
37 | + @Html.DisplayNameFor(model => model.LocationLeft) | |
38 | + </th> | |
39 | + <th> | |
40 | + @Html.DisplayNameFor(model => model.LocationRight) | |
41 | + </th> | |
42 | + <th> | |
43 | + @Html.DisplayNameFor(model => model.SafetyAvailability) | |
44 | + </th> | |
45 | + <th> | |
46 | + @Html.DisplayNameFor(model => model.TubeAvailability) | |
47 | + </th> | |
48 | + <th> | |
49 | + @Html.DisplayNameFor(model => model.Width) | |
50 | + </th> | |
51 | + <th> | |
52 | + @Html.DisplayNameFor(model => model.YearBuild) | |
53 | + </th> | |
54 | + <th> | |
55 | + @Html.DisplayNameFor(model => model.YearRepair) | |
56 | + </th> | |
57 | + <th></th> | |
58 | + </tr> | |
59 | + </thead> | |
60 | + <tbody> | |
61 | +@foreach (var item in Model) { | |
62 | + <tr> | |
63 | + <td> | |
64 | + @Html.DisplayFor(modelItem => item.Angle) | |
65 | + </td> | |
66 | + <td> | |
67 | + @Html.DisplayFor(modelItem => item.Direction) | |
68 | + </td> | |
69 | + <td> | |
70 | + @Html.DisplayFor(modelItem => item.DistanceEdge) | |
71 | + </td> | |
72 | + <td> | |
73 | + @Html.DisplayFor(modelItem => item.LengthSection) | |
74 | + </td> | |
75 | + <td> | |
76 | + @Html.DisplayFor(modelItem => item.LengthSurface) | |
77 | + </td> | |
78 | + <td> | |
79 | + @Html.DisplayFor(modelItem => item.LocationLeft) | |
80 | + </td> | |
81 | + <td> | |
82 | + @Html.DisplayFor(modelItem => item.LocationRight) | |
83 | + </td> | |
84 | + <td> | |
85 | + @Html.DisplayFor(modelItem => item.SafetyAvailability) | |
86 | + </td> | |
87 | + <td> | |
88 | + @Html.DisplayFor(modelItem => item.TubeAvailability) | |
89 | + </td> | |
90 | + <td> | |
91 | + @Html.DisplayFor(modelItem => item.Width) | |
92 | + </td> | |
93 | + <td> | |
94 | + @Html.DisplayFor(modelItem => item.YearBuild) | |
95 | + </td> | |
96 | + <td> | |
97 | + @Html.DisplayFor(modelItem => item.YearRepair) | |
98 | + </td> | |
99 | + <td> | |
100 | + <a asp-action="Edit" asp-route-id="@item.CrossSectionId">Edit</a> | | |
101 | + <a asp-action="Details" asp-route-id="@item.CrossSectionId">Details</a> | | |
102 | + <a asp-action="Delete" asp-route-id="@item.CrossSectionId">Delete</a> | |
103 | + </td> | |
104 | + </tr> | |
105 | +} | |
106 | + </tbody> | |
107 | +</table> | |
108 | +</body> | |
109 | +</html> | ... | ... |
1 | +@model Maps.Entities.DepartmentAffiliation | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Create</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<form asp-action="Create"> | |
17 | + <div class="form-horizontal"> | |
18 | + <h4>DepartmentAffiliation</h4> | |
19 | + <hr /> | |
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | |
21 | + <div class="form-group"> | |
22 | + <label asp-for="Name" class="col-md-2 control-label"></label> | |
23 | + <div class="col-md-10"> | |
24 | + <input asp-for="Name" class="form-control" /> | |
25 | + <span asp-validation-for="Name" class="text-danger" /> | |
26 | + </div> | |
27 | + </div> | |
28 | + <div class="form-group"> | |
29 | + <div class="col-md-offset-2 col-md-10"> | |
30 | + <input type="submit" value="Create" class="btn btn-default" /> | |
31 | + </div> | |
32 | + </div> | |
33 | + </div> | |
34 | +</form> | |
35 | + | |
36 | +<div> | |
37 | + <a asp-action="Index">Back to List</a> | |
38 | +</div> | |
39 | + | |
40 | +</body> | |
41 | +</html> | ... | ... |
1 | +@model Maps.Entities.DepartmentAffiliation | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Delete</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<h3>Are you sure you want to delete this?</h3> | |
17 | +<div> | |
18 | + <h4>DepartmentAffiliation</h4> | |
19 | + <hr /> | |
20 | + <dl class="dl-horizontal"> | |
21 | + <dt> | |
22 | + @Html.DisplayNameFor(model => model.Name) | |
23 | + </dt> | |
24 | + <dd> | |
25 | + @Html.DisplayFor(model => model.Name) | |
26 | + </dd> | |
27 | + </dl> | |
28 | + | |
29 | + <form asp-action="Delete"> | |
30 | + <div class="form-actions no-color"> | |
31 | + <input type="submit" value="Delete" class="btn btn-default" /> | | |
32 | + <a asp-action="Index">Back to List</a> | |
33 | + </div> | |
34 | + </form> | |
35 | +</div> | |
36 | +</body> | |
37 | +</html> | ... | ... |
1 | +@model Maps.Entities.DepartmentAffiliation | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Details</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<div> | |
17 | + <h4>DepartmentAffiliation</h4> | |
18 | + <hr /> | |
19 | + <dl class="dl-horizontal"> | |
20 | + <dt> | |
21 | + @Html.DisplayNameFor(model => model.Name) | |
22 | + </dt> | |
23 | + <dd> | |
24 | + @Html.DisplayFor(model => model.Name) | |
25 | + </dd> | |
26 | + </dl> | |
27 | +</div> | |
28 | +<div> | |
29 | + <a asp-action="Edit" asp-route-id="@Model.DepartmentAffiliationId">Edit</a> | | |
30 | + <a asp-action="Index">Back to List</a> | |
31 | +</div> | |
32 | +</body> | |
33 | +</html> | ... | ... |
1 | +@model Maps.Entities.DepartmentAffiliation | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Edit</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<form asp-action="Edit"> | |
17 | + <div class="form-horizontal"> | |
18 | + <h4>DepartmentAffiliation</h4> | |
19 | + <hr /> | |
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | |
21 | + <input type="hidden" asp-for="DepartmentAffiliationId" /> | |
22 | + <div class="form-group"> | |
23 | + <label asp-for="Name" class="col-md-2 control-label"></label> | |
24 | + <div class="col-md-10"> | |
25 | + <input asp-for="Name" class="form-control" /> | |
26 | + <span asp-validation-for="Name" class="text-danger" /> | |
27 | + </div> | |
28 | + </div> | |
29 | + <div class="form-group"> | |
30 | + <div class="col-md-offset-2 col-md-10"> | |
31 | + <input type="submit" value="Save" class="btn btn-default" /> | |
32 | + </div> | |
33 | + </div> | |
34 | + </div> | |
35 | +</form> | |
36 | + | |
37 | +<div> | |
38 | + <a asp-action="Index">Back to List</a> | |
39 | +</div> | |
40 | + | |
41 | +</body> | |
42 | +</html> | ... | ... |
1 | +@model IEnumerable<Maps.Entities.DepartmentAffiliation> | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Index</title> | |
13 | +</head> | |
14 | +<body> | |
15 | +<p> | |
16 | + <a asp-action="Create">Create New</a> | |
17 | +</p> | |
18 | +<table class="table"> | |
19 | + <thead> | |
20 | + <tr> | |
21 | + <th> | |
22 | + @Html.DisplayNameFor(model => model.Name) | |
23 | + </th> | |
24 | + <th></th> | |
25 | + </tr> | |
26 | + </thead> | |
27 | + <tbody> | |
28 | +@foreach (var item in Model) { | |
29 | + <tr> | |
30 | + <td> | |
31 | + @Html.DisplayFor(modelItem => item.Name) | |
32 | + </td> | |
33 | + <td> | |
34 | + <a asp-action="Edit" asp-route-id="@item.DepartmentAffiliationId">Edit</a> | | |
35 | + <a asp-action="Details" asp-route-id="@item.DepartmentAffiliationId">Details</a> | | |
36 | + <a asp-action="Delete" asp-route-id="@item.DepartmentAffiliationId">Delete</a> | |
37 | + </td> | |
38 | + </tr> | |
39 | +} | |
40 | + </tbody> | |
41 | +</table> | |
42 | +</body> | |
43 | +</html> | ... | ... |
1 | +@model Maps.Entities.FlowIntensity | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Create</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<form asp-action="Create"> | |
17 | + <div class="form-horizontal"> | |
18 | + <h4>FlowIntensity</h4> | |
19 | + <hr /> | |
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | |
21 | + <div class="form-group"> | |
22 | + <label asp-for="Begin" class="col-md-2 control-label"></label> | |
23 | + <div class="col-md-10"> | |
24 | + <input asp-for="Begin" class="form-control" /> | |
25 | + <span asp-validation-for="Begin" class="text-danger" /> | |
26 | + </div> | |
27 | + </div> | |
28 | + <div class="form-group"> | |
29 | + <label asp-for="DateAdd" class="col-md-2 control-label"></label> | |
30 | + <div class="col-md-10"> | |
31 | + <input asp-for="DateAdd" class="form-control" /> | |
32 | + <span asp-validation-for="DateAdd" class="text-danger" /> | |
33 | + </div> | |
34 | + </div> | |
35 | + <div class="form-group"> | |
36 | + <label asp-for="End" class="col-md-2 control-label"></label> | |
37 | + <div class="col-md-10"> | |
38 | + <input asp-for="End" class="form-control" /> | |
39 | + <span asp-validation-for="End" class="text-danger" /> | |
40 | + </div> | |
41 | + </div> | |
42 | + <div class="form-group"> | |
43 | + <label asp-for="IntensityBus" class="col-md-2 control-label"></label> | |
44 | + <div class="col-md-10"> | |
45 | + <input asp-for="IntensityBus" class="form-control" /> | |
46 | + <span asp-validation-for="IntensityBus" class="text-danger" /> | |
47 | + </div> | |
48 | + </div> | |
49 | + <div class="form-group"> | |
50 | + <label asp-for="IntensityBusCoupled" class="col-md-2 control-label"></label> | |
51 | + <div class="col-md-10"> | |
52 | + <input asp-for="IntensityBusCoupled" class="form-control" /> | |
53 | + <span asp-validation-for="IntensityBusCoupled" class="text-danger" /> | |
54 | + </div> | |
55 | + </div> | |
56 | + <div class="form-group"> | |
57 | + <label asp-for="IntensityCar" class="col-md-2 control-label"></label> | |
58 | + <div class="col-md-10"> | |
59 | + <input asp-for="IntensityCar" class="form-control" /> | |
60 | + <span asp-validation-for="IntensityCar" class="text-danger" /> | |
61 | + </div> | |
62 | + </div> | |
63 | + <div class="form-group"> | |
64 | + <label asp-for="IntensityIncrease" class="col-md-2 control-label"></label> | |
65 | + <div class="col-md-10"> | |
66 | + <input asp-for="IntensityIncrease" class="form-control" /> | |
67 | + <span asp-validation-for="IntensityIncrease" class="text-danger" /> | |
68 | + </div> | |
69 | + </div> | |
70 | + <div class="form-group"> | |
71 | + <label asp-for="IntensityLorryThirty" class="col-md-2 control-label"></label> | |
72 | + <div class="col-md-10"> | |
73 | + <input asp-for="IntensityLorryThirty" class="form-control" /> | |
74 | + <span asp-validation-for="IntensityLorryThirty" class="text-danger" /> | |
75 | + </div> | |
76 | + </div> | |
77 | + <div class="form-group"> | |
78 | + <label asp-for="IntensityLorryTwelve" class="col-md-2 control-label"></label> | |
79 | + <div class="col-md-10"> | |
80 | + <input asp-for="IntensityLorryTwelve" class="form-control" /> | |
81 | + <span asp-validation-for="IntensityLorryTwelve" class="text-danger" /> | |
82 | + </div> | |
83 | + </div> | |
84 | + <div class="form-group"> | |
85 | + <label asp-for="IntensityLorryTwelveTwenty" class="col-md-2 control-label"></label> | |
86 | + <div class="col-md-10"> | |
87 | + <input asp-for="IntensityLorryTwelveTwenty" class="form-control" /> | |
88 | + <span asp-validation-for="IntensityLorryTwelveTwenty" class="text-danger" /> | |
89 | + </div> | |
90 | + </div> | |
91 | + <div class="form-group"> | |
92 | + <label asp-for="IntensityLorryTwentyThirty" class="col-md-2 control-label"></label> | |
93 | + <div class="col-md-10"> | |
94 | + <input asp-for="IntensityLorryTwentyThirty" class="form-control" /> | |
95 | + <span asp-validation-for="IntensityLorryTwentyThirty" class="text-danger" /> | |
96 | + </div> | |
97 | + </div> | |
98 | + <div class="form-group"> | |
99 | + <label asp-for="IntensityMoto" class="col-md-2 control-label"></label> | |
100 | + <div class="col-md-10"> | |
101 | + <input asp-for="IntensityMoto" class="form-control" /> | |
102 | + <span asp-validation-for="IntensityMoto" class="text-danger" /> | |
103 | + </div> | |
104 | + </div> | |
105 | + <div class="form-group"> | |
106 | + <label asp-for="IntensityMotoSidecar" class="col-md-2 control-label"></label> | |
107 | + <div class="col-md-10"> | |
108 | + <input asp-for="IntensityMotoSidecar" class="form-control" /> | |
109 | + <span asp-validation-for="IntensityMotoSidecar" class="text-danger" /> | |
110 | + </div> | |
111 | + </div> | |
112 | + <div class="form-group"> | |
113 | + <label asp-for="IntensityTotal" class="col-md-2 control-label"></label> | |
114 | + <div class="col-md-10"> | |
115 | + <input asp-for="IntensityTotal" class="form-control" /> | |
116 | + <span asp-validation-for="IntensityTotal" class="text-danger" /> | |
117 | + </div> | |
118 | + </div> | |
119 | + <div class="form-group"> | |
120 | + <label asp-for="IntensityTractorOverTen" class="col-md-2 control-label"></label> | |
121 | + <div class="col-md-10"> | |
122 | + <input asp-for="IntensityTractorOverTen" class="form-control" /> | |
123 | + <span asp-validation-for="IntensityTractorOverTen" class="text-danger" /> | |
124 | + </div> | |
125 | + </div> | |
126 | + <div class="form-group"> | |
127 | + <label asp-for="IntensityTractorUnderTen" class="col-md-2 control-label"></label> | |
128 | + <div class="col-md-10"> | |
129 | + <input asp-for="IntensityTractorUnderTen" class="form-control" /> | |
130 | + <span asp-validation-for="IntensityTractorUnderTen" class="text-danger" /> | |
131 | + </div> | |
132 | + </div> | |
133 | + <div class="form-group"> | |
134 | + <label asp-for="IntensityTruckEightFourteen" class="col-md-2 control-label"></label> | |
135 | + <div class="col-md-10"> | |
136 | + <input asp-for="IntensityTruckEightFourteen" class="form-control" /> | |
137 | + <span asp-validation-for="IntensityTruckEightFourteen" class="text-danger" /> | |
138 | + </div> | |
139 | + </div> | |
140 | + <div class="form-group"> | |
141 | + <label asp-for="IntensityTruckFourteen" class="col-md-2 control-label"></label> | |
142 | + <div class="col-md-10"> | |
143 | + <input asp-for="IntensityTruckFourteen" class="form-control" /> | |
144 | + <span asp-validation-for="IntensityTruckFourteen" class="text-danger" /> | |
145 | + </div> | |
146 | + </div> | |
147 | + <div class="form-group"> | |
148 | + <label asp-for="IntensityTruckSixEight" class="col-md-2 control-label"></label> | |
149 | + <div class="col-md-10"> | |
150 | + <input asp-for="IntensityTruckSixEight" class="form-control" /> | |
151 | + <span asp-validation-for="IntensityTruckSixEight" class="text-danger" /> | |
152 | + </div> | |
153 | + </div> | |
154 | + <div class="form-group"> | |
155 | + <label asp-for="IntensityTruckTwo" class="col-md-2 control-label"></label> | |
156 | + <div class="col-md-10"> | |
157 | + <input asp-for="IntensityTruckTwo" class="form-control" /> | |
158 | + <span asp-validation-for="IntensityTruckTwo" class="text-danger" /> | |
159 | + </div> | |
160 | + </div> | |
161 | + <div class="form-group"> | |
162 | + <label asp-for="IntensityTruckTwoSix" class="col-md-2 control-label"></label> | |
163 | + <div class="col-md-10"> | |
164 | + <input asp-for="IntensityTruckTwoSix" class="form-control" /> | |
165 | + <span asp-validation-for="IntensityTruckTwoSix" class="text-danger" /> | |
166 | + </div> | |
167 | + </div> | |
168 | + <div class="form-group"> | |
169 | + <label asp-for="Location" class="col-md-2 control-label"></label> | |
170 | + <div class="col-md-10"> | |
171 | + <input asp-for="Location" class="form-control" /> | |
172 | + <span asp-validation-for="Location" class="text-danger" /> | |
173 | + </div> | |
174 | + </div> | |
175 | + <div class="form-group"> | |
176 | + <label asp-for="RegionId" class="col-md-2 control-label"></label> | |
177 | + <div class="col-md-10"> | |
178 | + <select asp-for="RegionId" class ="form-control" asp-items="ViewBag.RegionId"></select> | |
179 | + </div> | |
180 | + </div> | |
181 | + <div class="form-group"> | |
182 | + <label asp-for="RoadDirectionId" class="col-md-2 control-label"></label> | |
183 | + <div class="col-md-10"> | |
184 | + <select asp-for="RoadDirectionId" class ="form-control" asp-items="ViewBag.RoadDirectionId"></select> | |
185 | + </div> | |
186 | + </div> | |
187 | + <div class="form-group"> | |
188 | + <label asp-for="RoadId" class="col-md-2 control-label"></label> | |
189 | + <div class="col-md-10"> | |
190 | + <select asp-for="RoadId" class ="form-control" asp-items="ViewBag.RoadId"></select> | |
191 | + </div> | |
192 | + </div> | |
193 | + <div class="form-group"> | |
194 | + <label asp-for="SettlementId" class="col-md-2 control-label"></label> | |
195 | + <div class="col-md-10"> | |
196 | + <select asp-for="SettlementId" class ="form-control" asp-items="ViewBag.SettlementId"></select> | |
197 | + </div> | |
198 | + </div> | |
199 | + <div class="form-group"> | |
200 | + <div class="col-md-offset-2 col-md-10"> | |
201 | + <input type="submit" value="Create" class="btn btn-default" /> | |
202 | + </div> | |
203 | + </div> | |
204 | + </div> | |
205 | +</form> | |
206 | + | |
207 | +<div> | |
208 | + <a asp-action="Index">Back to List</a> | |
209 | +</div> | |
210 | + | |
211 | +</body> | |
212 | +</html> | ... | ... |
1 | +@model Maps.Entities.FlowIntensity | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Delete</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<h3>Are you sure you want to delete this?</h3> | |
17 | +<div> | |
18 | + <h4>FlowIntensity</h4> | |
19 | + <hr /> | |
20 | + <dl class="dl-horizontal"> | |
21 | + <dt> | |
22 | + @Html.DisplayNameFor(model => model.Begin) | |
23 | + </dt> | |
24 | + <dd> | |
25 | + @Html.DisplayFor(model => model.Begin) | |
26 | + </dd> | |
27 | + <dt> | |
28 | + @Html.DisplayNameFor(model => model.DateAdd) | |
29 | + </dt> | |
30 | + <dd> | |
31 | + @Html.DisplayFor(model => model.DateAdd) | |
32 | + </dd> | |
33 | + <dt> | |
34 | + @Html.DisplayNameFor(model => model.End) | |
35 | + </dt> | |
36 | + <dd> | |
37 | + @Html.DisplayFor(model => model.End) | |
38 | + </dd> | |
39 | + <dt> | |
40 | + @Html.DisplayNameFor(model => model.IntensityBus) | |
41 | + </dt> | |
42 | + <dd> | |
43 | + @Html.DisplayFor(model => model.IntensityBus) | |
44 | + </dd> | |
45 | + <dt> | |
46 | + @Html.DisplayNameFor(model => model.IntensityBusCoupled) | |
47 | + </dt> | |
48 | + <dd> | |
49 | + @Html.DisplayFor(model => model.IntensityBusCoupled) | |
50 | + </dd> | |
51 | + <dt> | |
52 | + @Html.DisplayNameFor(model => model.IntensityCar) | |
53 | + </dt> | |
54 | + <dd> | |
55 | + @Html.DisplayFor(model => model.IntensityCar) | |
56 | + </dd> | |
57 | + <dt> | |
58 | + @Html.DisplayNameFor(model => model.IntensityIncrease) | |
59 | + </dt> | |
60 | + <dd> | |
61 | + @Html.DisplayFor(model => model.IntensityIncrease) | |
62 | + </dd> | |
63 | + <dt> | |
64 | + @Html.DisplayNameFor(model => model.IntensityLorryThirty) | |
65 | + </dt> | |
66 | + <dd> | |
67 | + @Html.DisplayFor(model => model.IntensityLorryThirty) | |
68 | + </dd> | |
69 | + <dt> | |
70 | + @Html.DisplayNameFor(model => model.IntensityLorryTwelve) | |
71 | + </dt> | |
72 | + <dd> | |
73 | + @Html.DisplayFor(model => model.IntensityLorryTwelve) | |
74 | + </dd> | |
75 | + <dt> | |
76 | + @Html.DisplayNameFor(model => model.IntensityLorryTwelveTwenty) | |
77 | + </dt> | |
78 | + <dd> | |
79 | + @Html.DisplayFor(model => model.IntensityLorryTwelveTwenty) | |
80 | + </dd> | |
81 | + <dt> | |
82 | + @Html.DisplayNameFor(model => model.IntensityLorryTwentyThirty) | |
83 | + </dt> | |
84 | + <dd> | |
85 | + @Html.DisplayFor(model => model.IntensityLorryTwentyThirty) | |
86 | + </dd> | |
87 | + <dt> | |
88 | + @Html.DisplayNameFor(model => model.IntensityMoto) | |
89 | + </dt> | |
90 | + <dd> | |
91 | + @Html.DisplayFor(model => model.IntensityMoto) | |
92 | + </dd> | |
93 | + <dt> | |
94 | + @Html.DisplayNameFor(model => model.IntensityMotoSidecar) | |
95 | + </dt> | |
96 | + <dd> | |
97 | + @Html.DisplayFor(model => model.IntensityMotoSidecar) | |
98 | + </dd> | |
99 | + <dt> | |
100 | + @Html.DisplayNameFor(model => model.IntensityTotal) | |
101 | + </dt> | |
102 | + <dd> | |
103 | + @Html.DisplayFor(model => model.IntensityTotal) | |
104 | + </dd> | |
105 | + <dt> | |
106 | + @Html.DisplayNameFor(model => model.IntensityTractorOverTen) | |
107 | + </dt> | |
108 | + <dd> | |
109 | + @Html.DisplayFor(model => model.IntensityTractorOverTen) | |
110 | + </dd> | |
111 | + <dt> | |
112 | + @Html.DisplayNameFor(model => model.IntensityTractorUnderTen) | |
113 | + </dt> | |
114 | + <dd> | |
115 | + @Html.DisplayFor(model => model.IntensityTractorUnderTen) | |
116 | + </dd> | |
117 | + <dt> | |
118 | + @Html.DisplayNameFor(model => model.IntensityTruckEightFourteen) | |
119 | + </dt> | |
120 | + <dd> | |
121 | + @Html.DisplayFor(model => model.IntensityTruckEightFourteen) | |
122 | + </dd> | |
123 | + <dt> | |
124 | + @Html.DisplayNameFor(model => model.IntensityTruckFourteen) | |
125 | + </dt> | |
126 | + <dd> | |
127 | + @Html.DisplayFor(model => model.IntensityTruckFourteen) | |
128 | + </dd> | |
129 | + <dt> | |
130 | + @Html.DisplayNameFor(model => model.IntensityTruckSixEight) | |
131 | + </dt> | |
132 | + <dd> | |
133 | + @Html.DisplayFor(model => model.IntensityTruckSixEight) | |
134 | + </dd> | |
135 | + <dt> | |
136 | + @Html.DisplayNameFor(model => model.IntensityTruckTwo) | |
137 | + </dt> | |
138 | + <dd> | |
139 | + @Html.DisplayFor(model => model.IntensityTruckTwo) | |
140 | + </dd> | |
141 | + <dt> | |
142 | + @Html.DisplayNameFor(model => model.IntensityTruckTwoSix) | |
143 | + </dt> | |
144 | + <dd> | |
145 | + @Html.DisplayFor(model => model.IntensityTruckTwoSix) | |
146 | + </dd> | |
147 | + <dt> | |
148 | + @Html.DisplayNameFor(model => model.Location) | |
149 | + </dt> | |
150 | + <dd> | |
151 | + @Html.DisplayFor(model => model.Location) | |
152 | + </dd> | |
153 | + </dl> | |
154 | + | |
155 | + <form asp-action="Delete"> | |
156 | + <div class="form-actions no-color"> | |
157 | + <input type="submit" value="Delete" class="btn btn-default" /> | | |
158 | + <a asp-action="Index">Back to List</a> | |
159 | + </div> | |
160 | + </form> | |
161 | +</div> | |
162 | +</body> | |
163 | +</html> | ... | ... |
1 | +@model Maps.Entities.FlowIntensity | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Details</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<div> | |
17 | + <h4>FlowIntensity</h4> | |
18 | + <hr /> | |
19 | + <dl class="dl-horizontal"> | |
20 | + <dt> | |
21 | + @Html.DisplayNameFor(model => model.Begin) | |
22 | + </dt> | |
23 | + <dd> | |
24 | + @Html.DisplayFor(model => model.Begin) | |
25 | + </dd> | |
26 | + <dt> | |
27 | + @Html.DisplayNameFor(model => model.DateAdd) | |
28 | + </dt> | |
29 | + <dd> | |
30 | + @Html.DisplayFor(model => model.DateAdd) | |
31 | + </dd> | |
32 | + <dt> | |
33 | + @Html.DisplayNameFor(model => model.End) | |
34 | + </dt> | |
35 | + <dd> | |
36 | + @Html.DisplayFor(model => model.End) | |
37 | + </dd> | |
38 | + <dt> | |
39 | + @Html.DisplayNameFor(model => model.IntensityBus) | |
40 | + </dt> | |
41 | + <dd> | |
42 | + @Html.DisplayFor(model => model.IntensityBus) | |
43 | + </dd> | |
44 | + <dt> | |
45 | + @Html.DisplayNameFor(model => model.IntensityBusCoupled) | |
46 | + </dt> | |
47 | + <dd> | |
48 | + @Html.DisplayFor(model => model.IntensityBusCoupled) | |
49 | + </dd> | |
50 | + <dt> | |
51 | + @Html.DisplayNameFor(model => model.IntensityCar) | |
52 | + </dt> | |
53 | + <dd> | |
54 | + @Html.DisplayFor(model => model.IntensityCar) | |
55 | + </dd> | |
56 | + <dt> | |
57 | + @Html.DisplayNameFor(model => model.IntensityIncrease) | |
58 | + </dt> | |
59 | + <dd> | |
60 | + @Html.DisplayFor(model => model.IntensityIncrease) | |
61 | + </dd> | |
62 | + <dt> | |
63 | + @Html.DisplayNameFor(model => model.IntensityLorryThirty) | |
64 | + </dt> | |
65 | + <dd> | |
66 | + @Html.DisplayFor(model => model.IntensityLorryThirty) | |
67 | + </dd> | |
68 | + <dt> | |
69 | + @Html.DisplayNameFor(model => model.IntensityLorryTwelve) | |
70 | + </dt> | |
71 | + <dd> | |
72 | + @Html.DisplayFor(model => model.IntensityLorryTwelve) | |
73 | + </dd> | |
74 | + <dt> | |
75 | + @Html.DisplayNameFor(model => model.IntensityLorryTwelveTwenty) | |
76 | + </dt> | |
77 | + <dd> | |
78 | + @Html.DisplayFor(model => model.IntensityLorryTwelveTwenty) | |
79 | + </dd> | |
80 | + <dt> | |
81 | + @Html.DisplayNameFor(model => model.IntensityLorryTwentyThirty) | |
82 | + </dt> | |
83 | + <dd> | |
84 | + @Html.DisplayFor(model => model.IntensityLorryTwentyThirty) | |
85 | + </dd> | |
86 | + <dt> | |
87 | + @Html.DisplayNameFor(model => model.IntensityMoto) | |
88 | + </dt> | |
89 | + <dd> | |
90 | + @Html.DisplayFor(model => model.IntensityMoto) | |
91 | + </dd> | |
92 | + <dt> | |
93 | + @Html.DisplayNameFor(model => model.IntensityMotoSidecar) | |
94 | + </dt> | |
95 | + <dd> | |
96 | + @Html.DisplayFor(model => model.IntensityMotoSidecar) | |
97 | + </dd> | |
98 | + <dt> | |
99 | + @Html.DisplayNameFor(model => model.IntensityTotal) | |
100 | + </dt> | |
101 | + <dd> | |
102 | + @Html.DisplayFor(model => model.IntensityTotal) | |
103 | + </dd> | |
104 | + <dt> | |
105 | + @Html.DisplayNameFor(model => model.IntensityTractorOverTen) | |
106 | + </dt> | |
107 | + <dd> | |
108 | + @Html.DisplayFor(model => model.IntensityTractorOverTen) | |
109 | + </dd> | |
110 | + <dt> | |
111 | + @Html.DisplayNameFor(model => model.IntensityTractorUnderTen) | |
112 | + </dt> | |
113 | + <dd> | |
114 | + @Html.DisplayFor(model => model.IntensityTractorUnderTen) | |
115 | + </dd> | |
116 | + <dt> | |
117 | + @Html.DisplayNameFor(model => model.IntensityTruckEightFourteen) | |
118 | + </dt> | |
119 | + <dd> | |
120 | + @Html.DisplayFor(model => model.IntensityTruckEightFourteen) | |
121 | + </dd> | |
122 | + <dt> | |
123 | + @Html.DisplayNameFor(model => model.IntensityTruckFourteen) | |
124 | + </dt> | |
125 | + <dd> | |
126 | + @Html.DisplayFor(model => model.IntensityTruckFourteen) | |
127 | + </dd> | |
128 | + <dt> | |
129 | + @Html.DisplayNameFor(model => model.IntensityTruckSixEight) | |
130 | + </dt> | |
131 | + <dd> | |
132 | + @Html.DisplayFor(model => model.IntensityTruckSixEight) | |
133 | + </dd> | |
134 | + <dt> | |
135 | + @Html.DisplayNameFor(model => model.IntensityTruckTwo) | |
136 | + </dt> | |
137 | + <dd> | |
138 | + @Html.DisplayFor(model => model.IntensityTruckTwo) | |
139 | + </dd> | |
140 | + <dt> | |
141 | + @Html.DisplayNameFor(model => model.IntensityTruckTwoSix) | |
142 | + </dt> | |
143 | + <dd> | |
144 | + @Html.DisplayFor(model => model.IntensityTruckTwoSix) | |
145 | + </dd> | |
146 | + <dt> | |
147 | + @Html.DisplayNameFor(model => model.Location) | |
148 | + </dt> | |
149 | + <dd> | |
150 | + @Html.DisplayFor(model => model.Location) | |
151 | + </dd> | |
152 | + </dl> | |
153 | +</div> | |
154 | +<div> | |
155 | + <a asp-action="Edit" asp-route-id="@Model.FlowIntensityId">Edit</a> | | |
156 | + <a asp-action="Index">Back to List</a> | |
157 | +</div> | |
158 | +</body> | |
159 | +</html> | ... | ... |
1 | +@model Maps.Entities.FlowIntensity | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Edit</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<form asp-action="Edit"> | |
17 | + <div class="form-horizontal"> | |
18 | + <h4>FlowIntensity</h4> | |
19 | + <hr /> | |
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | |
21 | + <input type="hidden" asp-for="FlowIntensityId" /> | |
22 | + <div class="form-group"> | |
23 | + <label asp-for="Begin" class="col-md-2 control-label"></label> | |
24 | + <div class="col-md-10"> | |
25 | + <input asp-for="Begin" class="form-control" /> | |
26 | + <span asp-validation-for="Begin" class="text-danger" /> | |
27 | + </div> | |
28 | + </div> | |
29 | + <div class="form-group"> | |
30 | + <label asp-for="DateAdd" class="col-md-2 control-label"></label> | |
31 | + <div class="col-md-10"> | |
32 | + <input asp-for="DateAdd" class="form-control" /> | |
33 | + <span asp-validation-for="DateAdd" class="text-danger" /> | |
34 | + </div> | |
35 | + </div> | |
36 | + <div class="form-group"> | |
37 | + <label asp-for="End" class="col-md-2 control-label"></label> | |
38 | + <div class="col-md-10"> | |
39 | + <input asp-for="End" class="form-control" /> | |
40 | + <span asp-validation-for="End" class="text-danger" /> | |
41 | + </div> | |
42 | + </div> | |
43 | + <div class="form-group"> | |
44 | + <label asp-for="IntensityBus" class="col-md-2 control-label"></label> | |
45 | + <div class="col-md-10"> | |
46 | + <input asp-for="IntensityBus" class="form-control" /> | |
47 | + <span asp-validation-for="IntensityBus" class="text-danger" /> | |
48 | + </div> | |
49 | + </div> | |
50 | + <div class="form-group"> | |
51 | + <label asp-for="IntensityBusCoupled" class="col-md-2 control-label"></label> | |
52 | + <div class="col-md-10"> | |
53 | + <input asp-for="IntensityBusCoupled" class="form-control" /> | |
54 | + <span asp-validation-for="IntensityBusCoupled" class="text-danger" /> | |
55 | + </div> | |
56 | + </div> | |
57 | + <div class="form-group"> | |
58 | + <label asp-for="IntensityCar" class="col-md-2 control-label"></label> | |
59 | + <div class="col-md-10"> | |
60 | + <input asp-for="IntensityCar" class="form-control" /> | |
61 | + <span asp-validation-for="IntensityCar" class="text-danger" /> | |
62 | + </div> | |
63 | + </div> | |
64 | + <div class="form-group"> | |
65 | + <label asp-for="IntensityIncrease" class="col-md-2 control-label"></label> | |
66 | + <div class="col-md-10"> | |
67 | + <input asp-for="IntensityIncrease" class="form-control" /> | |
68 | + <span asp-validation-for="IntensityIncrease" class="text-danger" /> | |
69 | + </div> | |
70 | + </div> | |
71 | + <div class="form-group"> | |
72 | + <label asp-for="IntensityLorryThirty" class="col-md-2 control-label"></label> | |
73 | + <div class="col-md-10"> | |
74 | + <input asp-for="IntensityLorryThirty" class="form-control" /> | |
75 | + <span asp-validation-for="IntensityLorryThirty" class="text-danger" /> | |
76 | + </div> | |
77 | + </div> | |
78 | + <div class="form-group"> | |
79 | + <label asp-for="IntensityLorryTwelve" class="col-md-2 control-label"></label> | |
80 | + <div class="col-md-10"> | |
81 | + <input asp-for="IntensityLorryTwelve" class="form-control" /> | |
82 | + <span asp-validation-for="IntensityLorryTwelve" class="text-danger" /> | |
83 | + </div> | |
84 | + </div> | |
85 | + <div class="form-group"> | |
86 | + <label asp-for="IntensityLorryTwelveTwenty" class="col-md-2 control-label"></label> | |
87 | + <div class="col-md-10"> | |
88 | + <input asp-for="IntensityLorryTwelveTwenty" class="form-control" /> | |
89 | + <span asp-validation-for="IntensityLorryTwelveTwenty" class="text-danger" /> | |
90 | + </div> | |
91 | + </div> | |
92 | + <div class="form-group"> | |
93 | + <label asp-for="IntensityLorryTwentyThirty" class="col-md-2 control-label"></label> | |
94 | + <div class="col-md-10"> | |
95 | + <input asp-for="IntensityLorryTwentyThirty" class="form-control" /> | |
96 | + <span asp-validation-for="IntensityLorryTwentyThirty" class="text-danger" /> | |
97 | + </div> | |
98 | + </div> | |
99 | + <div class="form-group"> | |
100 | + <label asp-for="IntensityMoto" class="col-md-2 control-label"></label> | |
101 | + <div class="col-md-10"> | |
102 | + <input asp-for="IntensityMoto" class="form-control" /> | |
103 | + <span asp-validation-for="IntensityMoto" class="text-danger" /> | |
104 | + </div> | |
105 | + </div> | |
106 | + <div class="form-group"> | |
107 | + <label asp-for="IntensityMotoSidecar" class="col-md-2 control-label"></label> | |
108 | + <div class="col-md-10"> | |
109 | + <input asp-for="IntensityMotoSidecar" class="form-control" /> | |
110 | + <span asp-validation-for="IntensityMotoSidecar" class="text-danger" /> | |
111 | + </div> | |
112 | + </div> | |
113 | + <div class="form-group"> | |
114 | + <label asp-for="IntensityTotal" class="col-md-2 control-label"></label> | |
115 | + <div class="col-md-10"> | |
116 | + <input asp-for="IntensityTotal" class="form-control" /> | |
117 | + <span asp-validation-for="IntensityTotal" class="text-danger" /> | |
118 | + </div> | |
119 | + </div> | |
120 | + <div class="form-group"> | |
121 | + <label asp-for="IntensityTractorOverTen" class="col-md-2 control-label"></label> | |
122 | + <div class="col-md-10"> | |
123 | + <input asp-for="IntensityTractorOverTen" class="form-control" /> | |
124 | + <span asp-validation-for="IntensityTractorOverTen" class="text-danger" /> | |
125 | + </div> | |
126 | + </div> | |
127 | + <div class="form-group"> | |
128 | + <label asp-for="IntensityTractorUnderTen" class="col-md-2 control-label"></label> | |
129 | + <div class="col-md-10"> | |
130 | + <input asp-for="IntensityTractorUnderTen" class="form-control" /> | |
131 | + <span asp-validation-for="IntensityTractorUnderTen" class="text-danger" /> | |
132 | + </div> | |
133 | + </div> | |
134 | + <div class="form-group"> | |
135 | + <label asp-for="IntensityTruckEightFourteen" class="col-md-2 control-label"></label> | |
136 | + <div class="col-md-10"> | |
137 | + <input asp-for="IntensityTruckEightFourteen" class="form-control" /> | |
138 | + <span asp-validation-for="IntensityTruckEightFourteen" class="text-danger" /> | |
139 | + </div> | |
140 | + </div> | |
141 | + <div class="form-group"> | |
142 | + <label asp-for="IntensityTruckFourteen" class="col-md-2 control-label"></label> | |
143 | + <div class="col-md-10"> | |
144 | + <input asp-for="IntensityTruckFourteen" class="form-control" /> | |
145 | + <span asp-validation-for="IntensityTruckFourteen" class="text-danger" /> | |
146 | + </div> | |
147 | + </div> | |
148 | + <div class="form-group"> | |
149 | + <label asp-for="IntensityTruckSixEight" class="col-md-2 control-label"></label> | |
150 | + <div class="col-md-10"> | |
151 | + <input asp-for="IntensityTruckSixEight" class="form-control" /> | |
152 | + <span asp-validation-for="IntensityTruckSixEight" class="text-danger" /> | |
153 | + </div> | |
154 | + </div> | |
155 | + <div class="form-group"> | |
156 | + <label asp-for="IntensityTruckTwo" class="col-md-2 control-label"></label> | |
157 | + <div class="col-md-10"> | |
158 | + <input asp-for="IntensityTruckTwo" class="form-control" /> | |
159 | + <span asp-validation-for="IntensityTruckTwo" class="text-danger" /> | |
160 | + </div> | |
161 | + </div> | |
162 | + <div class="form-group"> | |
163 | + <label asp-for="IntensityTruckTwoSix" class="col-md-2 control-label"></label> | |
164 | + <div class="col-md-10"> | |
165 | + <input asp-for="IntensityTruckTwoSix" class="form-control" /> | |
166 | + <span asp-validation-for="IntensityTruckTwoSix" class="text-danger" /> | |
167 | + </div> | |
168 | + </div> | |
169 | + <div class="form-group"> | |
170 | + <label asp-for="Location" class="col-md-2 control-label"></label> | |
171 | + <div class="col-md-10"> | |
172 | + <input asp-for="Location" class="form-control" /> | |
173 | + <span asp-validation-for="Location" class="text-danger" /> | |
174 | + </div> | |
175 | + </div> | |
176 | + <div class="form-group"> | |
177 | + <label asp-for="RegionId" class="control-label col-md-2"></label> | |
178 | + <div class="col-md-10"> | |
179 | + <select asp-for="RegionId" class="form-control" asp-items="ViewBag.RegionId"></select> | |
180 | + <span asp-validation-for="RegionId" class="text-danger" /> | |
181 | + </div> | |
182 | + </div> | |
183 | + <div class="form-group"> | |
184 | + <label asp-for="RoadDirectionId" class="control-label col-md-2"></label> | |
185 | + <div class="col-md-10"> | |
186 | + <select asp-for="RoadDirectionId" class="form-control" asp-items="ViewBag.RoadDirectionId"></select> | |
187 | + <span asp-validation-for="RoadDirectionId" class="text-danger" /> | |
188 | + </div> | |
189 | + </div> | |
190 | + <div class="form-group"> | |
191 | + <label asp-for="RoadId" class="control-label col-md-2"></label> | |
192 | + <div class="col-md-10"> | |
193 | + <select asp-for="RoadId" class="form-control" asp-items="ViewBag.RoadId"></select> | |
194 | + <span asp-validation-for="RoadId" class="text-danger" /> | |
195 | + </div> | |
196 | + </div> | |
197 | + <div class="form-group"> | |
198 | + <label asp-for="SettlementId" class="control-label col-md-2"></label> | |
199 | + <div class="col-md-10"> | |
200 | + <select asp-for="SettlementId" class="form-control" asp-items="ViewBag.SettlementId"></select> | |
201 | + <span asp-validation-for="SettlementId" class="text-danger" /> | |
202 | + </div> | |
203 | + </div> | |
204 | + <div class="form-group"> | |
205 | + <div class="col-md-offset-2 col-md-10"> | |
206 | + <input type="submit" value="Save" class="btn btn-default" /> | |
207 | + </div> | |
208 | + </div> | |
209 | + </div> | |
210 | +</form> | |
211 | + | |
212 | +<div> | |
213 | + <a asp-action="Index">Back to List</a> | |
214 | +</div> | |
215 | + | |
216 | +</body> | |
217 | +</html> | ... | ... |
1 | +@model IEnumerable<Maps.Entities.FlowIntensity> | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Index</title> | |
13 | +</head> | |
14 | +<body> | |
15 | +<p> | |
16 | + <a asp-action="Create">Create New</a> | |
17 | +</p> | |
18 | +<table class="table"> | |
19 | + <thead> | |
20 | + <tr> | |
21 | + <th> | |
22 | + @Html.DisplayNameFor(model => model.Begin) | |
23 | + </th> | |
24 | + <th> | |
25 | + @Html.DisplayNameFor(model => model.DateAdd) | |
26 | + </th> | |
27 | + <th> | |
28 | + @Html.DisplayNameFor(model => model.End) | |
29 | + </th> | |
30 | + <th> | |
31 | + @Html.DisplayNameFor(model => model.IntensityBus) | |
32 | + </th> | |
33 | + <th> | |
34 | + @Html.DisplayNameFor(model => model.IntensityBusCoupled) | |
35 | + </th> | |
36 | + <th> | |
37 | + @Html.DisplayNameFor(model => model.IntensityCar) | |
38 | + </th> | |
39 | + <th> | |
40 | + @Html.DisplayNameFor(model => model.IntensityIncrease) | |
41 | + </th> | |
42 | + <th> | |
43 | + @Html.DisplayNameFor(model => model.IntensityLorryThirty) | |
44 | + </th> | |
45 | + <th> | |
46 | + @Html.DisplayNameFor(model => model.IntensityLorryTwelve) | |
47 | + </th> | |
48 | + <th> | |
49 | + @Html.DisplayNameFor(model => model.IntensityLorryTwelveTwenty) | |
50 | + </th> | |
51 | + <th> | |
52 | + @Html.DisplayNameFor(model => model.IntensityLorryTwentyThirty) | |
53 | + </th> | |
54 | + <th> | |
55 | + @Html.DisplayNameFor(model => model.IntensityMoto) | |
56 | + </th> | |
57 | + <th> | |
58 | + @Html.DisplayNameFor(model => model.IntensityMotoSidecar) | |
59 | + </th> | |
60 | + <th> | |
61 | + @Html.DisplayNameFor(model => model.IntensityTotal) | |
62 | + </th> | |
63 | + <th> | |
64 | + @Html.DisplayNameFor(model => model.IntensityTractorOverTen) | |
65 | + </th> | |
66 | + <th> | |
67 | + @Html.DisplayNameFor(model => model.IntensityTractorUnderTen) | |
68 | + </th> | |
69 | + <th> | |
70 | + @Html.DisplayNameFor(model => model.IntensityTruckEightFourteen) | |
71 | + </th> | |
72 | + <th> | |
73 | + @Html.DisplayNameFor(model => model.IntensityTruckFourteen) | |
74 | + </th> | |
75 | + <th> | |
76 | + @Html.DisplayNameFor(model => model.IntensityTruckSixEight) | |
77 | + </th> | |
78 | + <th> | |
79 | + @Html.DisplayNameFor(model => model.IntensityTruckTwo) | |
80 | + </th> | |
81 | + <th> | |
82 | + @Html.DisplayNameFor(model => model.IntensityTruckTwoSix) | |
83 | + </th> | |
84 | + <th> | |
85 | + @Html.DisplayNameFor(model => model.Location) | |
86 | + </th> | |
87 | + <th></th> | |
88 | + </tr> | |
89 | + </thead> | |
90 | + <tbody> | |
91 | +@foreach (var item in Model) { | |
92 | + <tr> | |
93 | + <td> | |
94 | + @Html.DisplayFor(modelItem => item.Begin) | |
95 | + </td> | |
96 | + <td> | |
97 | + @Html.DisplayFor(modelItem => item.DateAdd) | |
98 | + </td> | |
99 | + <td> | |
100 | + @Html.DisplayFor(modelItem => item.End) | |
101 | + </td> | |
102 | + <td> | |
103 | + @Html.DisplayFor(modelItem => item.IntensityBus) | |
104 | + </td> | |
105 | + <td> | |
106 | + @Html.DisplayFor(modelItem => item.IntensityBusCoupled) | |
107 | + </td> | |
108 | + <td> | |
109 | + @Html.DisplayFor(modelItem => item.IntensityCar) | |
110 | + </td> | |
111 | + <td> | |
112 | + @Html.DisplayFor(modelItem => item.IntensityIncrease) | |
113 | + </td> | |
114 | + <td> | |
115 | + @Html.DisplayFor(modelItem => item.IntensityLorryThirty) | |
116 | + </td> | |
117 | + <td> | |
118 | + @Html.DisplayFor(modelItem => item.IntensityLorryTwelve) | |
119 | + </td> | |
120 | + <td> | |
121 | + @Html.DisplayFor(modelItem => item.IntensityLorryTwelveTwenty) | |
122 | + </td> | |
123 | + <td> | |
124 | + @Html.DisplayFor(modelItem => item.IntensityLorryTwentyThirty) | |
125 | + </td> | |
126 | + <td> | |
127 | + @Html.DisplayFor(modelItem => item.IntensityMoto) | |
128 | + </td> | |
129 | + <td> | |
130 | + @Html.DisplayFor(modelItem => item.IntensityMotoSidecar) | |
131 | + </td> | |
132 | + <td> | |
133 | + @Html.DisplayFor(modelItem => item.IntensityTotal) | |
134 | + </td> | |
135 | + <td> | |
136 | + @Html.DisplayFor(modelItem => item.IntensityTractorOverTen) | |
137 | + </td> | |
138 | + <td> | |
139 | + @Html.DisplayFor(modelItem => item.IntensityTractorUnderTen) | |
140 | + </td> | |
141 | + <td> | |
142 | + @Html.DisplayFor(modelItem => item.IntensityTruckEightFourteen) | |
143 | + </td> | |
144 | + <td> | |
145 | + @Html.DisplayFor(modelItem => item.IntensityTruckFourteen) | |
146 | + </td> | |
147 | + <td> | |
148 | + @Html.DisplayFor(modelItem => item.IntensityTruckSixEight) | |
149 | + </td> | |
150 | + <td> | |
151 | + @Html.DisplayFor(modelItem => item.IntensityTruckTwo) | |
152 | + </td> | |
153 | + <td> | |
154 | + @Html.DisplayFor(modelItem => item.IntensityTruckTwoSix) | |
155 | + </td> | |
156 | + <td> | |
157 | + @Html.DisplayFor(modelItem => item.Location) | |
158 | + </td> | |
159 | + <td> | |
160 | + <a asp-action="Edit" asp-route-id="@item.FlowIntensityId">Edit</a> | | |
161 | + <a asp-action="Details" asp-route-id="@item.FlowIntensityId">Details</a> | | |
162 | + <a asp-action="Delete" asp-route-id="@item.FlowIntensityId">Delete</a> | |
163 | + </td> | |
164 | + </tr> | |
165 | +} | |
166 | + </tbody> | |
167 | +</table> | |
168 | +</body> | |
169 | +</html> | ... | ... |
Views/Home/About.cshtml deleted
Views/Home/Contact.cshtml deleted
1 | -@{ | |
2 | - ViewData["Title"] = "Contact"; | |
3 | -} | |
4 | -<h2>@ViewData["Title"].</h2> | |
5 | -<h3>@ViewData["Message"]</h3> | |
6 | - | |
7 | -<address> | |
8 | - One Microsoft Way<br /> | |
9 | - Redmond, WA 98052-6399<br /> | |
10 | - <abbr title="Phone">P:</abbr> | |
11 | - 425.555.0100 | |
12 | -</address> | |
13 | - | |
14 | -<address> | |
15 | - <strong>Support:</strong> <a href="mailto:Support@example.com">Support@example.com</a><br /> | |
16 | - <strong>Marketing:</strong> <a href="mailto:Marketing@example.com">Marketing@example.com</a> | |
17 | -</address> |
Views/Home/Index.cshtml deleted
1 | -@{ | |
2 | - ViewData["Title"] = "Home Page"; | |
3 | -} | |
4 | - | |
5 | -<div id="myCarousel" class="carousel slide" data-ride="carousel" data-interval="6000"> | |
6 | - <ol class="carousel-indicators"> | |
7 | - <li data-target="#myCarousel" data-slide-to="0" class="active"></li> | |
8 | - <li data-target="#myCarousel" data-slide-to="1"></li> | |
9 | - <li data-target="#myCarousel" data-slide-to="2"></li> | |
10 | - <li data-target="#myCarousel" data-slide-to="3"></li> | |
11 | - </ol> | |
12 | - <div class="carousel-inner" role="listbox"> | |
13 | - <div class="item active"> | |
14 | - <img src="~/images/banner1.svg" alt="ASP.NET" class="img-responsive" /> | |
15 | - <div class="carousel-caption" role="option"> | |
16 | - <p> | |
17 | - Learn how to build ASP.NET apps that can run anywhere. | |
18 | - <a class="btn btn-default" href="http://go.microsoft.com/fwlink/?LinkID=525028&clcid=0x409"> | |
19 | - Learn More | |
20 | - </a> | |
21 | - </p> | |
22 | - </div> | |
23 | - </div> | |
24 | - <div class="item"> | |
25 | - <img src="~/images/banner2.svg" alt="Visual Studio" class="img-responsive" /> | |
26 | - <div class="carousel-caption" role="option"> | |
27 | - <p> | |
28 | - There are powerful new features in Visual Studio for building modern web apps. | |
29 | - <a class="btn btn-default" href="http://go.microsoft.com/fwlink/?LinkID=525030&clcid=0x409"> | |
30 | - Learn More | |
31 | - </a> | |
32 | - </p> | |
33 | - </div> | |
34 | - </div> | |
35 | - <div class="item"> | |
36 | - <img src="~/images/banner3.svg" alt="Package Management" class="img-responsive" /> | |
37 | - <div class="carousel-caption" role="option"> | |
38 | - <p> | |
39 | - Bring in libraries from NuGet, Bower, and npm, and automate tasks using Grunt or Gulp. | |
40 | - <a class="btn btn-default" href="http://go.microsoft.com/fwlink/?LinkID=525029&clcid=0x409"> | |
41 | - Learn More | |
42 | - </a> | |
43 | - </p> | |
44 | - </div> | |
45 | - </div> | |
46 | - <div class="item"> | |
47 | - <img src="~/images/banner4.svg" alt="Microsoft Azure" class="img-responsive" /> | |
48 | - <div class="carousel-caption" role="option"> | |
49 | - <p> | |
50 | - Learn how Microsoft's Azure cloud platform allows you to build, deploy, and scale web apps. | |
51 | - <a class="btn btn-default" href="http://go.microsoft.com/fwlink/?LinkID=525027&clcid=0x409"> | |
52 | - Learn More | |
53 | - </a> | |
54 | - </p> | |
55 | - </div> | |
56 | - </div> | |
57 | - </div> | |
58 | - <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev"> | |
59 | - <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> | |
60 | - <span class="sr-only">Previous</span> | |
61 | - </a> | |
62 | - <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next"> | |
63 | - <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> | |
64 | - <span class="sr-only">Next</span> | |
65 | - </a> | |
66 | -</div> | |
67 | - | |
68 | -<div class="row"> | |
69 | - <div class="col-md-3"> | |
70 | - <h2>Application uses</h2> | |
71 | - <ul> | |
72 | - <li>Sample pages using ASP.NET Core MVC</li> | |
73 | - <li><a href="http://go.microsoft.com/fwlink/?LinkId=518004">Bower</a> for managing client-side libraries</li> | |
74 | - <li>Theming using <a href="http://go.microsoft.com/fwlink/?LinkID=398939">Bootstrap</a></li> | |
75 | - </ul> | |
76 | - </div> | |
77 | - <div class="col-md-3"> | |
78 | - <h2>How to</h2> | |
79 | - <ul> | |
80 | - <li><a href="http://go.microsoft.com/fwlink/?LinkID=398600">Add a Controller and View</a></li> | |
81 | - <li><a href="http://go.microsoft.com/fwlink/?LinkID=699562">Add an appsetting in config and access it in app.</a></li> | |
82 | - <li><a href="http://go.microsoft.com/fwlink/?LinkId=699315">Manage User Secrets using Secret Manager.</a></li> | |
83 | - <li><a href="http://go.microsoft.com/fwlink/?LinkId=699316">Use logging to log a message.</a></li> | |
84 | - <li><a href="http://go.microsoft.com/fwlink/?LinkId=699317">Add packages using NuGet.</a></li> | |
85 | - <li><a href="http://go.microsoft.com/fwlink/?LinkId=699318">Add client packages using Bower.</a></li> | |
86 | - <li><a href="http://go.microsoft.com/fwlink/?LinkId=699319">Target development, staging or production environment.</a></li> | |
87 | - </ul> | |
88 | - </div> | |
89 | - <div class="col-md-3"> | |
90 | - <h2>Overview</h2> | |
91 | - <ul> | |
92 | - <li><a href="http://go.microsoft.com/fwlink/?LinkId=518008">Conceptual overview of what is ASP.NET Core</a></li> | |
93 | - <li><a href="http://go.microsoft.com/fwlink/?LinkId=699320">Fundamentals of ASP.NET Core such as Startup and middleware.</a></li> | |
94 | - <li><a href="http://go.microsoft.com/fwlink/?LinkId=398602">Working with Data</a></li> | |
95 | - <li><a href="http://go.microsoft.com/fwlink/?LinkId=398603">Security</a></li> | |
96 | - <li><a href="http://go.microsoft.com/fwlink/?LinkID=699321">Client side development</a></li> | |
97 | - <li><a href="http://go.microsoft.com/fwlink/?LinkID=699322">Develop on different platforms</a></li> | |
98 | - <li><a href="http://go.microsoft.com/fwlink/?LinkID=699323">Read more on the documentation site</a></li> | |
99 | - </ul> | |
100 | - </div> | |
101 | - <div class="col-md-3"> | |
102 | - <h2>Run & Deploy</h2> | |
103 | - <ul> | |
104 | - <li><a href="http://go.microsoft.com/fwlink/?LinkID=517851">Run your app</a></li> | |
105 | - <li><a href="http://go.microsoft.com/fwlink/?LinkID=517853">Run tools such as EF migrations and more</a></li> | |
106 | - <li><a href="http://go.microsoft.com/fwlink/?LinkID=398609">Publish to Microsoft Azure Web Apps</a></li> | |
107 | - </ul> | |
108 | - </div> | |
109 | -</div> |
1 | +@model Maps.Entities.Organization | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Create</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<form asp-action="Create"> | |
17 | + <div class="form-horizontal"> | |
18 | + <h4>Organization</h4> | |
19 | + <hr /> | |
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | |
21 | + <div class="form-group"> | |
22 | + <label asp-for="DateAdd" class="col-md-2 control-label"></label> | |
23 | + <div class="col-md-10"> | |
24 | + <input asp-for="DateAdd" class="form-control" /> | |
25 | + <span asp-validation-for="DateAdd" class="text-danger" /> | |
26 | + </div> | |
27 | + </div> | |
28 | + <div class="form-group"> | |
29 | + <label asp-for="Name" class="col-md-2 control-label"></label> | |
30 | + <div class="col-md-10"> | |
31 | + <input asp-for="Name" class="form-control" /> | |
32 | + <span asp-validation-for="Name" class="text-danger" /> | |
33 | + </div> | |
34 | + </div> | |
35 | + <div class="form-group"> | |
36 | + <div class="col-md-offset-2 col-md-10"> | |
37 | + <input type="submit" value="Create" class="btn btn-default" /> | |
38 | + </div> | |
39 | + </div> | |
40 | + </div> | |
41 | +</form> | |
42 | + | |
43 | +<div> | |
44 | + <a asp-action="Index">Back to List</a> | |
45 | +</div> | |
46 | + | |
47 | +</body> | |
48 | +</html> | ... | ... |
1 | +@model Maps.Entities.Organization | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Delete</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<h3>Are you sure you want to delete this?</h3> | |
17 | +<div> | |
18 | + <h4>Organization</h4> | |
19 | + <hr /> | |
20 | + <dl class="dl-horizontal"> | |
21 | + <dt> | |
22 | + @Html.DisplayNameFor(model => model.DateAdd) | |
23 | + </dt> | |
24 | + <dd> | |
25 | + @Html.DisplayFor(model => model.DateAdd) | |
26 | + </dd> | |
27 | + <dt> | |
28 | + @Html.DisplayNameFor(model => model.Name) | |
29 | + </dt> | |
30 | + <dd> | |
31 | + @Html.DisplayFor(model => model.Name) | |
32 | + </dd> | |
33 | + </dl> | |
34 | + | |
35 | + <form asp-action="Delete"> | |
36 | + <div class="form-actions no-color"> | |
37 | + <input type="submit" value="Delete" class="btn btn-default" /> | | |
38 | + <a asp-action="Index">Back to List</a> | |
39 | + </div> | |
40 | + </form> | |
41 | +</div> | |
42 | +</body> | |
43 | +</html> | ... | ... |
1 | +@model Maps.Entities.Organization | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Details</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<div> | |
17 | + <h4>Organization</h4> | |
18 | + <hr /> | |
19 | + <dl class="dl-horizontal"> | |
20 | + <dt> | |
21 | + @Html.DisplayNameFor(model => model.DateAdd) | |
22 | + </dt> | |
23 | + <dd> | |
24 | + @Html.DisplayFor(model => model.DateAdd) | |
25 | + </dd> | |
26 | + <dt> | |
27 | + @Html.DisplayNameFor(model => model.Name) | |
28 | + </dt> | |
29 | + <dd> | |
30 | + @Html.DisplayFor(model => model.Name) | |
31 | + </dd> | |
32 | + </dl> | |
33 | +</div> | |
34 | +<div> | |
35 | + <a asp-action="Edit" asp-route-id="@Model.OrganizationId">Edit</a> | | |
36 | + <a asp-action="Index">Back to List</a> | |
37 | +</div> | |
38 | +</body> | |
39 | +</html> | ... | ... |
1 | +@model Maps.Entities.Organization | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Edit</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<form asp-action="Edit"> | |
17 | + <div class="form-horizontal"> | |
18 | + <h4>Organization</h4> | |
19 | + <hr /> | |
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | |
21 | + <input type="hidden" asp-for="OrganizationId" /> | |
22 | + <div class="form-group"> | |
23 | + <label asp-for="DateAdd" class="col-md-2 control-label"></label> | |
24 | + <div class="col-md-10"> | |
25 | + <input asp-for="DateAdd" class="form-control" /> | |
26 | + <span asp-validation-for="DateAdd" class="text-danger" /> | |
27 | + </div> | |
28 | + </div> | |
29 | + <div class="form-group"> | |
30 | + <label asp-for="Name" class="col-md-2 control-label"></label> | |
31 | + <div class="col-md-10"> | |
32 | + <input asp-for="Name" class="form-control" /> | |
33 | + <span asp-validation-for="Name" class="text-danger" /> | |
34 | + </div> | |
35 | + </div> | |
36 | + <div class="form-group"> | |
37 | + <div class="col-md-offset-2 col-md-10"> | |
38 | + <input type="submit" value="Save" class="btn btn-default" /> | |
39 | + </div> | |
40 | + </div> | |
41 | + </div> | |
42 | +</form> | |
43 | + | |
44 | +<div> | |
45 | + <a asp-action="Index">Back to List</a> | |
46 | +</div> | |
47 | + | |
48 | +</body> | |
49 | +</html> | ... | ... |
1 | +@model IEnumerable<Maps.Entities.Organization> | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Index</title> | |
13 | +</head> | |
14 | +<body> | |
15 | +<p> | |
16 | + <a asp-action="Create">Create New</a> | |
17 | +</p> | |
18 | +<table class="table"> | |
19 | + <thead> | |
20 | + <tr> | |
21 | + <th> | |
22 | + @Html.DisplayNameFor(model => model.DateAdd) | |
23 | + </th> | |
24 | + <th> | |
25 | + @Html.DisplayNameFor(model => model.Name) | |
26 | + </th> | |
27 | + <th></th> | |
28 | + </tr> | |
29 | + </thead> | |
30 | + <tbody> | |
31 | +@foreach (var item in Model) { | |
32 | + <tr> | |
33 | + <td> | |
34 | + @Html.DisplayFor(modelItem => item.DateAdd) | |
35 | + </td> | |
36 | + <td> | |
37 | + @Html.DisplayFor(modelItem => item.Name) | |
38 | + </td> | |
39 | + <td> | |
40 | + <a asp-action="Edit" asp-route-id="@item.OrganizationId">Edit</a> | | |
41 | + <a asp-action="Details" asp-route-id="@item.OrganizationId">Details</a> | | |
42 | + <a asp-action="Delete" asp-route-id="@item.OrganizationId">Delete</a> | |
43 | + </td> | |
44 | + </tr> | |
45 | +} | |
46 | + </tbody> | |
47 | +</table> | |
48 | +</body> | |
49 | +</html> | ... | ... |
1 | +@model Maps.Entities.Region | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Create</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<form asp-action="Create"> | |
17 | + <div class="form-horizontal"> | |
18 | + <h4>Region</h4> | |
19 | + <hr /> | |
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | |
21 | + <div class="form-group"> | |
22 | + <label asp-for="Index" class="col-md-2 control-label"></label> | |
23 | + <div class="col-md-10"> | |
24 | + <input asp-for="Index" class="form-control" /> | |
25 | + <span asp-validation-for="Index" class="text-danger" /> | |
26 | + </div> | |
27 | + </div> | |
28 | + <div class="form-group"> | |
29 | + <label asp-for="Name" class="col-md-2 control-label"></label> | |
30 | + <div class="col-md-10"> | |
31 | + <input asp-for="Name" class="form-control" /> | |
32 | + <span asp-validation-for="Name" class="text-danger" /> | |
33 | + </div> | |
34 | + </div> | |
35 | + <div class="form-group"> | |
36 | + <div class="col-md-offset-2 col-md-10"> | |
37 | + <input type="submit" value="Create" class="btn btn-default" /> | |
38 | + </div> | |
39 | + </div> | |
40 | + </div> | |
41 | +</form> | |
42 | + | |
43 | +<div> | |
44 | + <a asp-action="Index">Back to List</a> | |
45 | +</div> | |
46 | + | |
47 | +</body> | |
48 | +</html> | ... | ... |
1 | +@model Maps.Entities.Region | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Delete</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<h3>Are you sure you want to delete this?</h3> | |
17 | +<div> | |
18 | + <h4>Region</h4> | |
19 | + <hr /> | |
20 | + <dl class="dl-horizontal"> | |
21 | + <dt> | |
22 | + @Html.DisplayNameFor(model => model.Index) | |
23 | + </dt> | |
24 | + <dd> | |
25 | + @Html.DisplayFor(model => model.Index) | |
26 | + </dd> | |
27 | + <dt> | |
28 | + @Html.DisplayNameFor(model => model.Name) | |
29 | + </dt> | |
30 | + <dd> | |
31 | + @Html.DisplayFor(model => model.Name) | |
32 | + </dd> | |
33 | + </dl> | |
34 | + | |
35 | + <form asp-action="Delete"> | |
36 | + <div class="form-actions no-color"> | |
37 | + <input type="submit" value="Delete" class="btn btn-default" /> | | |
38 | + <a asp-action="Index">Back to List</a> | |
39 | + </div> | |
40 | + </form> | |
41 | +</div> | |
42 | +</body> | |
43 | +</html> | ... | ... |
1 | +@model Maps.Entities.Region | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Details</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<div> | |
17 | + <h4>Region</h4> | |
18 | + <hr /> | |
19 | + <dl class="dl-horizontal"> | |
20 | + <dt> | |
21 | + @Html.DisplayNameFor(model => model.Index) | |
22 | + </dt> | |
23 | + <dd> | |
24 | + @Html.DisplayFor(model => model.Index) | |
25 | + </dd> | |
26 | + <dt> | |
27 | + @Html.DisplayNameFor(model => model.Name) | |
28 | + </dt> | |
29 | + <dd> | |
30 | + @Html.DisplayFor(model => model.Name) | |
31 | + </dd> | |
32 | + </dl> | |
33 | +</div> | |
34 | +<div> | |
35 | + <a asp-action="Edit" asp-route-id="@Model.RegionId">Edit</a> | | |
36 | + <a asp-action="Index">Back to List</a> | |
37 | +</div> | |
38 | +</body> | |
39 | +</html> | ... | ... |
1 | +@model Maps.Entities.Region | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Edit</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<form asp-action="Edit"> | |
17 | + <div class="form-horizontal"> | |
18 | + <h4>Region</h4> | |
19 | + <hr /> | |
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | |
21 | + <input type="hidden" asp-for="RegionId" /> | |
22 | + <div class="form-group"> | |
23 | + <label asp-for="Index" class="col-md-2 control-label"></label> | |
24 | + <div class="col-md-10"> | |
25 | + <input asp-for="Index" class="form-control" /> | |
26 | + <span asp-validation-for="Index" class="text-danger" /> | |
27 | + </div> | |
28 | + </div> | |
29 | + <div class="form-group"> | |
30 | + <label asp-for="Name" class="col-md-2 control-label"></label> | |
31 | + <div class="col-md-10"> | |
32 | + <input asp-for="Name" class="form-control" /> | |
33 | + <span asp-validation-for="Name" class="text-danger" /> | |
34 | + </div> | |
35 | + </div> | |
36 | + <div class="form-group"> | |
37 | + <div class="col-md-offset-2 col-md-10"> | |
38 | + <input type="submit" value="Save" class="btn btn-default" /> | |
39 | + </div> | |
40 | + </div> | |
41 | + </div> | |
42 | +</form> | |
43 | + | |
44 | +<div> | |
45 | + <a asp-action="Index">Back to List</a> | |
46 | +</div> | |
47 | + | |
48 | +</body> | |
49 | +</html> | ... | ... |
1 | +@model IEnumerable<Maps.Entities.Region> | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Index</title> | |
13 | +</head> | |
14 | +<body> | |
15 | +<p> | |
16 | + <a asp-action="Create">Create New</a> | |
17 | +</p> | |
18 | +<table class="table"> | |
19 | + <thead> | |
20 | + <tr> | |
21 | + <th> | |
22 | + @Html.DisplayNameFor(model => model.Index) | |
23 | + </th> | |
24 | + <th> | |
25 | + @Html.DisplayNameFor(model => model.Name) | |
26 | + </th> | |
27 | + <th></th> | |
28 | + </tr> | |
29 | + </thead> | |
30 | + <tbody> | |
31 | +@foreach (var item in Model) { | |
32 | + <tr> | |
33 | + <td> | |
34 | + @Html.DisplayFor(modelItem => item.Index) | |
35 | + </td> | |
36 | + <td> | |
37 | + @Html.DisplayFor(modelItem => item.Name) | |
38 | + </td> | |
39 | + <td> | |
40 | + <a asp-action="Edit" asp-route-id="@item.RegionId">Edit</a> | | |
41 | + <a asp-action="Details" asp-route-id="@item.RegionId">Details</a> | | |
42 | + <a asp-action="Delete" asp-route-id="@item.RegionId">Delete</a> | |
43 | + </td> | |
44 | + </tr> | |
45 | +} | |
46 | + </tbody> | |
47 | +</table> | |
48 | +</body> | |
49 | +</html> | ... | ... |
1 | +@model Maps.Entities.Road | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Create</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<form asp-action="Create"> | |
17 | + <div class="form-horizontal"> | |
18 | + <h4>Road</h4> | |
19 | + <hr /> | |
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | |
21 | + <div class="form-group"> | |
22 | + <label asp-for="AcceptTransferDoc" class="col-md-2 control-label"></label> | |
23 | + <div class="col-md-10"> | |
24 | + <input asp-for="AcceptTransferDoc" class="form-control" /> | |
25 | + <span asp-validation-for="AcceptTransferDoc" class="text-danger" /> | |
26 | + </div> | |
27 | + </div> | |
28 | + <div class="form-group"> | |
29 | + <label asp-for="AcceptanceDoc" class="col-md-2 control-label"></label> | |
30 | + <div class="col-md-10"> | |
31 | + <input asp-for="AcceptanceDoc" class="form-control" /> | |
32 | + <span asp-validation-for="AcceptanceDoc" class="text-danger" /> | |
33 | + </div> | |
34 | + </div> | |
35 | + <div class="form-group"> | |
36 | + <label asp-for="AuthorityAct" class="col-md-2 control-label"></label> | |
37 | + <div class="col-md-10"> | |
38 | + <input asp-for="AuthorityAct" class="form-control" /> | |
39 | + <span asp-validation-for="AuthorityAct" class="text-danger" /> | |
40 | + </div> | |
41 | + </div> | |
42 | + <div class="form-group"> | |
43 | + <label asp-for="EconomicValue" class="col-md-2 control-label"></label> | |
44 | + <div class="col-md-10"> | |
45 | + <input asp-for="EconomicValue" class="form-control" /> | |
46 | + <span asp-validation-for="EconomicValue" class="text-danger" /> | |
47 | + </div> | |
48 | + </div> | |
49 | + <div class="form-group"> | |
50 | + <label asp-for="HistoricalBackground" class="col-md-2 control-label"></label> | |
51 | + <div class="col-md-10"> | |
52 | + <input asp-for="HistoricalBackground" class="form-control" /> | |
53 | + <span asp-validation-for="HistoricalBackground" class="text-danger" /> | |
54 | + </div> | |
55 | + </div> | |
56 | + <div class="form-group"> | |
57 | + <label asp-for="Index" class="col-md-2 control-label"></label> | |
58 | + <div class="col-md-10"> | |
59 | + <input asp-for="Index" class="form-control" /> | |
60 | + <span asp-validation-for="Index" class="text-danger" /> | |
61 | + </div> | |
62 | + </div> | |
63 | + <div class="form-group"> | |
64 | + <label asp-for="LawDoc" class="col-md-2 control-label"></label> | |
65 | + <div class="col-md-10"> | |
66 | + <input asp-for="LawDoc" class="form-control" /> | |
67 | + <span asp-validation-for="LawDoc" class="text-danger" /> | |
68 | + </div> | |
69 | + </div> | |
70 | + <div class="form-group"> | |
71 | + <label asp-for="Length" class="col-md-2 control-label"></label> | |
72 | + <div class="col-md-10"> | |
73 | + <input asp-for="Length" class="form-control" /> | |
74 | + <span asp-validation-for="Length" class="text-danger" /> | |
75 | + </div> | |
76 | + </div> | |
77 | + <div class="form-group"> | |
78 | + <label asp-for="Name" class="col-md-2 control-label"></label> | |
79 | + <div class="col-md-10"> | |
80 | + <input asp-for="Name" class="form-control" /> | |
81 | + <span asp-validation-for="Name" class="text-danger" /> | |
82 | + </div> | |
83 | + </div> | |
84 | + <div class="form-group"> | |
85 | + <label asp-for="RoadTypeId" class="col-md-2 control-label"></label> | |
86 | + <div class="col-md-10"> | |
87 | + <select asp-for="RoadTypeId" class ="form-control" asp-items="ViewBag.RoadTypeId"></select> | |
88 | + </div> | |
89 | + </div> | |
90 | + <div class="form-group"> | |
91 | + <label asp-for="Value" class="col-md-2 control-label"></label> | |
92 | + <div class="col-md-10"> | |
93 | + <input asp-for="Value" class="form-control" /> | |
94 | + <span asp-validation-for="Value" class="text-danger" /> | |
95 | + </div> | |
96 | + </div> | |
97 | + <div class="form-group"> | |
98 | + <div class="col-md-offset-2 col-md-10"> | |
99 | + <input type="submit" value="Create" class="btn btn-default" /> | |
100 | + </div> | |
101 | + </div> | |
102 | + </div> | |
103 | +</form> | |
104 | + | |
105 | +<div> | |
106 | + <a asp-action="Index">Back to List</a> | |
107 | +</div> | |
108 | + | |
109 | +</body> | |
110 | +</html> | ... | ... |
1 | +@model Maps.Entities.Road | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Delete</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<h3>Are you sure you want to delete this?</h3> | |
17 | +<div> | |
18 | + <h4>Road</h4> | |
19 | + <hr /> | |
20 | + <dl class="dl-horizontal"> | |
21 | + <dt> | |
22 | + @Html.DisplayNameFor(model => model.AcceptTransferDoc) | |
23 | + </dt> | |
24 | + <dd> | |
25 | + @Html.DisplayFor(model => model.AcceptTransferDoc) | |
26 | + </dd> | |
27 | + <dt> | |
28 | + @Html.DisplayNameFor(model => model.AcceptanceDoc) | |
29 | + </dt> | |
30 | + <dd> | |
31 | + @Html.DisplayFor(model => model.AcceptanceDoc) | |
32 | + </dd> | |
33 | + <dt> | |
34 | + @Html.DisplayNameFor(model => model.AuthorityAct) | |
35 | + </dt> | |
36 | + <dd> | |
37 | + @Html.DisplayFor(model => model.AuthorityAct) | |
38 | + </dd> | |
39 | + <dt> | |
40 | + @Html.DisplayNameFor(model => model.EconomicValue) | |
41 | + </dt> | |
42 | + <dd> | |
43 | + @Html.DisplayFor(model => model.EconomicValue) | |
44 | + </dd> | |
45 | + <dt> | |
46 | + @Html.DisplayNameFor(model => model.HistoricalBackground) | |
47 | + </dt> | |
48 | + <dd> | |
49 | + @Html.DisplayFor(model => model.HistoricalBackground) | |
50 | + </dd> | |
51 | + <dt> | |
52 | + @Html.DisplayNameFor(model => model.Index) | |
53 | + </dt> | |
54 | + <dd> | |
55 | + @Html.DisplayFor(model => model.Index) | |
56 | + </dd> | |
57 | + <dt> | |
58 | + @Html.DisplayNameFor(model => model.LawDoc) | |
59 | + </dt> | |
60 | + <dd> | |
61 | + @Html.DisplayFor(model => model.LawDoc) | |
62 | + </dd> | |
63 | + <dt> | |
64 | + @Html.DisplayNameFor(model => model.Length) | |
65 | + </dt> | |
66 | + <dd> | |
67 | + @Html.DisplayFor(model => model.Length) | |
68 | + </dd> | |
69 | + <dt> | |
70 | + @Html.DisplayNameFor(model => model.Name) | |
71 | + </dt> | |
72 | + <dd> | |
73 | + @Html.DisplayFor(model => model.Name) | |
74 | + </dd> | |
75 | + <dt> | |
76 | + @Html.DisplayNameFor(model => model.Value) | |
77 | + </dt> | |
78 | + <dd> | |
79 | + @Html.DisplayFor(model => model.Value) | |
80 | + </dd> | |
81 | + </dl> | |
82 | + | |
83 | + <form asp-action="Delete"> | |
84 | + <div class="form-actions no-color"> | |
85 | + <input type="submit" value="Delete" class="btn btn-default" /> | | |
86 | + <a asp-action="Index">Back to List</a> | |
87 | + </div> | |
88 | + </form> | |
89 | +</div> | |
90 | +</body> | |
91 | +</html> | ... | ... |
1 | +@model Maps.Entities.Road | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Details</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<div> | |
17 | + <h4>Road</h4> | |
18 | + <hr /> | |
19 | + <dl class="dl-horizontal"> | |
20 | + <dt> | |
21 | + @Html.DisplayNameFor(model => model.AcceptTransferDoc) | |
22 | + </dt> | |
23 | + <dd> | |
24 | + @Html.DisplayFor(model => model.AcceptTransferDoc) | |
25 | + </dd> | |
26 | + <dt> | |
27 | + @Html.DisplayNameFor(model => model.AcceptanceDoc) | |
28 | + </dt> | |
29 | + <dd> | |
30 | + @Html.DisplayFor(model => model.AcceptanceDoc) | |
31 | + </dd> | |
32 | + <dt> | |
33 | + @Html.DisplayNameFor(model => model.AuthorityAct) | |
34 | + </dt> | |
35 | + <dd> | |
36 | + @Html.DisplayFor(model => model.AuthorityAct) | |
37 | + </dd> | |
38 | + <dt> | |
39 | + @Html.DisplayNameFor(model => model.EconomicValue) | |
40 | + </dt> | |
41 | + <dd> | |
42 | + @Html.DisplayFor(model => model.EconomicValue) | |
43 | + </dd> | |
44 | + <dt> | |
45 | + @Html.DisplayNameFor(model => model.HistoricalBackground) | |
46 | + </dt> | |
47 | + <dd> | |
48 | + @Html.DisplayFor(model => model.HistoricalBackground) | |
49 | + </dd> | |
50 | + <dt> | |
51 | + @Html.DisplayNameFor(model => model.Index) | |
52 | + </dt> | |
53 | + <dd> | |
54 | + @Html.DisplayFor(model => model.Index) | |
55 | + </dd> | |
56 | + <dt> | |
57 | + @Html.DisplayNameFor(model => model.LawDoc) | |
58 | + </dt> | |
59 | + <dd> | |
60 | + @Html.DisplayFor(model => model.LawDoc) | |
61 | + </dd> | |
62 | + <dt> | |
63 | + @Html.DisplayNameFor(model => model.Length) | |
64 | + </dt> | |
65 | + <dd> | |
66 | + @Html.DisplayFor(model => model.Length) | |
67 | + </dd> | |
68 | + <dt> | |
69 | + @Html.DisplayNameFor(model => model.Name) | |
70 | + </dt> | |
71 | + <dd> | |
72 | + @Html.DisplayFor(model => model.Name) | |
73 | + </dd> | |
74 | + <dt> | |
75 | + @Html.DisplayNameFor(model => model.Value) | |
76 | + </dt> | |
77 | + <dd> | |
78 | + @Html.DisplayFor(model => model.Value) | |
79 | + </dd> | |
80 | + </dl> | |
81 | +</div> | |
82 | +<div> | |
83 | + <a asp-action="Edit" asp-route-id="@Model.RoadId">Edit</a> | | |
84 | + <a asp-action="Index">Back to List</a> | |
85 | +</div> | |
86 | +</body> | |
87 | +</html> | ... | ... |
1 | +@model Maps.Entities.Road | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Edit</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<form asp-action="Edit"> | |
17 | + <div class="form-horizontal"> | |
18 | + <h4>Road</h4> | |
19 | + <hr /> | |
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | |
21 | + <input type="hidden" asp-for="RoadId" /> | |
22 | + <div class="form-group"> | |
23 | + <label asp-for="AcceptTransferDoc" class="col-md-2 control-label"></label> | |
24 | + <div class="col-md-10"> | |
25 | + <input asp-for="AcceptTransferDoc" class="form-control" /> | |
26 | + <span asp-validation-for="AcceptTransferDoc" class="text-danger" /> | |
27 | + </div> | |
28 | + </div> | |
29 | + <div class="form-group"> | |
30 | + <label asp-for="AcceptanceDoc" class="col-md-2 control-label"></label> | |
31 | + <div class="col-md-10"> | |
32 | + <input asp-for="AcceptanceDoc" class="form-control" /> | |
33 | + <span asp-validation-for="AcceptanceDoc" class="text-danger" /> | |
34 | + </div> | |
35 | + </div> | |
36 | + <div class="form-group"> | |
37 | + <label asp-for="AuthorityAct" class="col-md-2 control-label"></label> | |
38 | + <div class="col-md-10"> | |
39 | + <input asp-for="AuthorityAct" class="form-control" /> | |
40 | + <span asp-validation-for="AuthorityAct" class="text-danger" /> | |
41 | + </div> | |
42 | + </div> | |
43 | + <div class="form-group"> | |
44 | + <label asp-for="EconomicValue" class="col-md-2 control-label"></label> | |
45 | + <div class="col-md-10"> | |
46 | + <input asp-for="EconomicValue" class="form-control" /> | |
47 | + <span asp-validation-for="EconomicValue" class="text-danger" /> | |
48 | + </div> | |
49 | + </div> | |
50 | + <div class="form-group"> | |
51 | + <label asp-for="HistoricalBackground" class="col-md-2 control-label"></label> | |
52 | + <div class="col-md-10"> | |
53 | + <input asp-for="HistoricalBackground" class="form-control" /> | |
54 | + <span asp-validation-for="HistoricalBackground" class="text-danger" /> | |
55 | + </div> | |
56 | + </div> | |
57 | + <div class="form-group"> | |
58 | + <label asp-for="Index" class="col-md-2 control-label"></label> | |
59 | + <div class="col-md-10"> | |
60 | + <input asp-for="Index" class="form-control" /> | |
61 | + <span asp-validation-for="Index" class="text-danger" /> | |
62 | + </div> | |
63 | + </div> | |
64 | + <div class="form-group"> | |
65 | + <label asp-for="LawDoc" class="col-md-2 control-label"></label> | |
66 | + <div class="col-md-10"> | |
67 | + <input asp-for="LawDoc" class="form-control" /> | |
68 | + <span asp-validation-for="LawDoc" class="text-danger" /> | |
69 | + </div> | |
70 | + </div> | |
71 | + <div class="form-group"> | |
72 | + <label asp-for="Length" class="col-md-2 control-label"></label> | |
73 | + <div class="col-md-10"> | |
74 | + <input asp-for="Length" class="form-control" /> | |
75 | + <span asp-validation-for="Length" class="text-danger" /> | |
76 | + </div> | |
77 | + </div> | |
78 | + <div class="form-group"> | |
79 | + <label asp-for="Name" class="col-md-2 control-label"></label> | |
80 | + <div class="col-md-10"> | |
81 | + <input asp-for="Name" class="form-control" /> | |
82 | + <span asp-validation-for="Name" class="text-danger" /> | |
83 | + </div> | |
84 | + </div> | |
85 | + <div class="form-group"> | |
86 | + <label asp-for="RoadTypeId" class="control-label col-md-2"></label> | |
87 | + <div class="col-md-10"> | |
88 | + <select asp-for="RoadTypeId" class="form-control" asp-items="ViewBag.RoadTypeId"></select> | |
89 | + <span asp-validation-for="RoadTypeId" class="text-danger" /> | |
90 | + </div> | |
91 | + </div> | |
92 | + <div class="form-group"> | |
93 | + <label asp-for="Value" class="col-md-2 control-label"></label> | |
94 | + <div class="col-md-10"> | |
95 | + <input asp-for="Value" class="form-control" /> | |
96 | + <span asp-validation-for="Value" class="text-danger" /> | |
97 | + </div> | |
98 | + </div> | |
99 | + <div class="form-group"> | |
100 | + <div class="col-md-offset-2 col-md-10"> | |
101 | + <input type="submit" value="Save" class="btn btn-default" /> | |
102 | + </div> | |
103 | + </div> | |
104 | + </div> | |
105 | +</form> | |
106 | + | |
107 | +<div> | |
108 | + <a asp-action="Index">Back to List</a> | |
109 | +</div> | |
110 | + | |
111 | +</body> | |
112 | +</html> | ... | ... |
1 | +@model IEnumerable<Maps.Entities.Road> | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Index</title> | |
13 | +</head> | |
14 | +<body> | |
15 | +<p> | |
16 | + <a asp-action="Create">Create New</a> | |
17 | +</p> | |
18 | +<table class="table"> | |
19 | + <thead> | |
20 | + <tr> | |
21 | + <th> | |
22 | + @Html.DisplayNameFor(model => model.AcceptTransferDoc) | |
23 | + </th> | |
24 | + <th> | |
25 | + @Html.DisplayNameFor(model => model.AcceptanceDoc) | |
26 | + </th> | |
27 | + <th> | |
28 | + @Html.DisplayNameFor(model => model.AuthorityAct) | |
29 | + </th> | |
30 | + <th> | |
31 | + @Html.DisplayNameFor(model => model.EconomicValue) | |
32 | + </th> | |
33 | + <th> | |
34 | + @Html.DisplayNameFor(model => model.HistoricalBackground) | |
35 | + </th> | |
36 | + <th> | |
37 | + @Html.DisplayNameFor(model => model.Index) | |
38 | + </th> | |
39 | + <th> | |
40 | + @Html.DisplayNameFor(model => model.LawDoc) | |
41 | + </th> | |
42 | + <th> | |
43 | + @Html.DisplayNameFor(model => model.Length) | |
44 | + </th> | |
45 | + <th> | |
46 | + @Html.DisplayNameFor(model => model.Name) | |
47 | + </th> | |
48 | + <th> | |
49 | + @Html.DisplayNameFor(model => model.Value) | |
50 | + </th> | |
51 | + <th></th> | |
52 | + </tr> | |
53 | + </thead> | |
54 | + <tbody> | |
55 | +@foreach (var item in Model) { | |
56 | + <tr> | |
57 | + <td> | |
58 | + @Html.DisplayFor(modelItem => item.AcceptTransferDoc) | |
59 | + </td> | |
60 | + <td> | |
61 | + @Html.DisplayFor(modelItem => item.AcceptanceDoc) | |
62 | + </td> | |
63 | + <td> | |
64 | + @Html.DisplayFor(modelItem => item.AuthorityAct) | |
65 | + </td> | |
66 | + <td> | |
67 | + @Html.DisplayFor(modelItem => item.EconomicValue) | |
68 | + </td> | |
69 | + <td> | |
70 | + @Html.DisplayFor(modelItem => item.HistoricalBackground) | |
71 | + </td> | |
72 | + <td> | |
73 | + @Html.DisplayFor(modelItem => item.Index) | |
74 | + </td> | |
75 | + <td> | |
76 | + @Html.DisplayFor(modelItem => item.LawDoc) | |
77 | + </td> | |
78 | + <td> | |
79 | + @Html.DisplayFor(modelItem => item.Length) | |
80 | + </td> | |
81 | + <td> | |
82 | + @Html.DisplayFor(modelItem => item.Name) | |
83 | + </td> | |
84 | + <td> | |
85 | + @Html.DisplayFor(modelItem => item.Value) | |
86 | + </td> | |
87 | + <td> | |
88 | + <a asp-action="Edit" asp-route-id="@item.RoadId">Edit</a> | | |
89 | + <a asp-action="Details" asp-route-id="@item.RoadId">Details</a> | | |
90 | + <a asp-action="Delete" asp-route-id="@item.RoadId">Delete</a> | |
91 | + </td> | |
92 | + </tr> | |
93 | +} | |
94 | + </tbody> | |
95 | +</table> | |
96 | +</body> | |
97 | +</html> | ... | ... |
1 | +@model Maps.Entities.RoadCategory | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Create</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<form asp-action="Create"> | |
17 | + <div class="form-horizontal"> | |
18 | + <h4>RoadCategory</h4> | |
19 | + <hr /> | |
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | |
21 | + <div class="form-group"> | |
22 | + <label asp-for="Value" class="col-md-2 control-label"></label> | |
23 | + <div class="col-md-10"> | |
24 | + <input asp-for="Value" class="form-control" /> | |
25 | + <span asp-validation-for="Value" class="text-danger" /> | |
26 | + </div> | |
27 | + </div> | |
28 | + <div class="form-group"> | |
29 | + <div class="col-md-offset-2 col-md-10"> | |
30 | + <input type="submit" value="Create" class="btn btn-default" /> | |
31 | + </div> | |
32 | + </div> | |
33 | + </div> | |
34 | +</form> | |
35 | + | |
36 | +<div> | |
37 | + <a asp-action="Index">Back to List</a> | |
38 | +</div> | |
39 | + | |
40 | +</body> | |
41 | +</html> | ... | ... |
1 | +@model Maps.Entities.RoadCategory | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Delete</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<h3>Are you sure you want to delete this?</h3> | |
17 | +<div> | |
18 | + <h4>RoadCategory</h4> | |
19 | + <hr /> | |
20 | + <dl class="dl-horizontal"> | |
21 | + <dt> | |
22 | + @Html.DisplayNameFor(model => model.Value) | |
23 | + </dt> | |
24 | + <dd> | |
25 | + @Html.DisplayFor(model => model.Value) | |
26 | + </dd> | |
27 | + </dl> | |
28 | + | |
29 | + <form asp-action="Delete"> | |
30 | + <div class="form-actions no-color"> | |
31 | + <input type="submit" value="Delete" class="btn btn-default" /> | | |
32 | + <a asp-action="Index">Back to List</a> | |
33 | + </div> | |
34 | + </form> | |
35 | +</div> | |
36 | +</body> | |
37 | +</html> | ... | ... |
1 | +@model Maps.Entities.RoadCategory | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Details</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<div> | |
17 | + <h4>RoadCategory</h4> | |
18 | + <hr /> | |
19 | + <dl class="dl-horizontal"> | |
20 | + <dt> | |
21 | + @Html.DisplayNameFor(model => model.Value) | |
22 | + </dt> | |
23 | + <dd> | |
24 | + @Html.DisplayFor(model => model.Value) | |
25 | + </dd> | |
26 | + </dl> | |
27 | +</div> | |
28 | +<div> | |
29 | + <a asp-action="Edit" asp-route-id="@Model.RoadCategoryId">Edit</a> | | |
30 | + <a asp-action="Index">Back to List</a> | |
31 | +</div> | |
32 | +</body> | |
33 | +</html> | ... | ... |
1 | +@model Maps.Entities.RoadCategory | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Edit</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<form asp-action="Edit"> | |
17 | + <div class="form-horizontal"> | |
18 | + <h4>RoadCategory</h4> | |
19 | + <hr /> | |
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | |
21 | + <input type="hidden" asp-for="RoadCategoryId" /> | |
22 | + <div class="form-group"> | |
23 | + <label asp-for="Value" class="col-md-2 control-label"></label> | |
24 | + <div class="col-md-10"> | |
25 | + <input asp-for="Value" class="form-control" /> | |
26 | + <span asp-validation-for="Value" class="text-danger" /> | |
27 | + </div> | |
28 | + </div> | |
29 | + <div class="form-group"> | |
30 | + <div class="col-md-offset-2 col-md-10"> | |
31 | + <input type="submit" value="Save" class="btn btn-default" /> | |
32 | + </div> | |
33 | + </div> | |
34 | + </div> | |
35 | +</form> | |
36 | + | |
37 | +<div> | |
38 | + <a asp-action="Index">Back to List</a> | |
39 | +</div> | |
40 | + | |
41 | +</body> | |
42 | +</html> | ... | ... |
1 | +@model IEnumerable<Maps.Entities.RoadCategory> | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Index</title> | |
13 | +</head> | |
14 | +<body> | |
15 | +<p> | |
16 | + <a asp-action="Create">Create New</a> | |
17 | +</p> | |
18 | +<table class="table"> | |
19 | + <thead> | |
20 | + <tr> | |
21 | + <th> | |
22 | + @Html.DisplayNameFor(model => model.Value) | |
23 | + </th> | |
24 | + <th></th> | |
25 | + </tr> | |
26 | + </thead> | |
27 | + <tbody> | |
28 | +@foreach (var item in Model) { | |
29 | + <tr> | |
30 | + <td> | |
31 | + @Html.DisplayFor(modelItem => item.Value) | |
32 | + </td> | |
33 | + <td> | |
34 | + <a asp-action="Edit" asp-route-id="@item.RoadCategoryId">Edit</a> | | |
35 | + <a asp-action="Details" asp-route-id="@item.RoadCategoryId">Details</a> | | |
36 | + <a asp-action="Delete" asp-route-id="@item.RoadCategoryId">Delete</a> | |
37 | + </td> | |
38 | + </tr> | |
39 | +} | |
40 | + </tbody> | |
41 | +</table> | |
42 | +</body> | |
43 | +</html> | ... | ... |
1 | +@model Maps.Entities.RoadDirection | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Create</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<form asp-action="Create"> | |
17 | + <div class="form-horizontal"> | |
18 | + <h4>RoadDirection</h4> | |
19 | + <hr /> | |
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | |
21 | + <div class="form-group"> | |
22 | + <label asp-for="DirectionName" class="col-md-2 control-label"></label> | |
23 | + <div class="col-md-10"> | |
24 | + <input asp-for="DirectionName" class="form-control" /> | |
25 | + <span asp-validation-for="DirectionName" class="text-danger" /> | |
26 | + </div> | |
27 | + </div> | |
28 | + <div class="form-group"> | |
29 | + <div class="col-md-offset-2 col-md-10"> | |
30 | + <input type="submit" value="Create" class="btn btn-default" /> | |
31 | + </div> | |
32 | + </div> | |
33 | + </div> | |
34 | +</form> | |
35 | + | |
36 | +<div> | |
37 | + <a asp-action="Index">Back to List</a> | |
38 | +</div> | |
39 | + | |
40 | +</body> | |
41 | +</html> | ... | ... |
1 | +@model Maps.Entities.RoadDirection | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Delete</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<h3>Are you sure you want to delete this?</h3> | |
17 | +<div> | |
18 | + <h4>RoadDirection</h4> | |
19 | + <hr /> | |
20 | + <dl class="dl-horizontal"> | |
21 | + <dt> | |
22 | + @Html.DisplayNameFor(model => model.DirectionName) | |
23 | + </dt> | |
24 | + <dd> | |
25 | + @Html.DisplayFor(model => model.DirectionName) | |
26 | + </dd> | |
27 | + </dl> | |
28 | + | |
29 | + <form asp-action="Delete"> | |
30 | + <div class="form-actions no-color"> | |
31 | + <input type="submit" value="Delete" class="btn btn-default" /> | | |
32 | + <a asp-action="Index">Back to List</a> | |
33 | + </div> | |
34 | + </form> | |
35 | +</div> | |
36 | +</body> | |
37 | +</html> | ... | ... |
1 | +@model Maps.Entities.RoadDirection | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Details</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<div> | |
17 | + <h4>RoadDirection</h4> | |
18 | + <hr /> | |
19 | + <dl class="dl-horizontal"> | |
20 | + <dt> | |
21 | + @Html.DisplayNameFor(model => model.DirectionName) | |
22 | + </dt> | |
23 | + <dd> | |
24 | + @Html.DisplayFor(model => model.DirectionName) | |
25 | + </dd> | |
26 | + </dl> | |
27 | +</div> | |
28 | +<div> | |
29 | + <a asp-action="Edit" asp-route-id="@Model.RoadDirectionId">Edit</a> | | |
30 | + <a asp-action="Index">Back to List</a> | |
31 | +</div> | |
32 | +</body> | |
33 | +</html> | ... | ... |
1 | +@model Maps.Entities.RoadDirection | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Edit</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<form asp-action="Edit"> | |
17 | + <div class="form-horizontal"> | |
18 | + <h4>RoadDirection</h4> | |
19 | + <hr /> | |
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | |
21 | + <input type="hidden" asp-for="RoadDirectionId" /> | |
22 | + <div class="form-group"> | |
23 | + <label asp-for="DirectionName" class="col-md-2 control-label"></label> | |
24 | + <div class="col-md-10"> | |
25 | + <input asp-for="DirectionName" class="form-control" /> | |
26 | + <span asp-validation-for="DirectionName" class="text-danger" /> | |
27 | + </div> | |
28 | + </div> | |
29 | + <div class="form-group"> | |
30 | + <div class="col-md-offset-2 col-md-10"> | |
31 | + <input type="submit" value="Save" class="btn btn-default" /> | |
32 | + </div> | |
33 | + </div> | |
34 | + </div> | |
35 | +</form> | |
36 | + | |
37 | +<div> | |
38 | + <a asp-action="Index">Back to List</a> | |
39 | +</div> | |
40 | + | |
41 | +</body> | |
42 | +</html> | ... | ... |
1 | +@model IEnumerable<Maps.Entities.RoadDirection> | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Index</title> | |
13 | +</head> | |
14 | +<body> | |
15 | +<p> | |
16 | + <a asp-action="Create">Create New</a> | |
17 | +</p> | |
18 | +<table class="table"> | |
19 | + <thead> | |
20 | + <tr> | |
21 | + <th> | |
22 | + @Html.DisplayNameFor(model => model.DirectionName) | |
23 | + </th> | |
24 | + <th></th> | |
25 | + </tr> | |
26 | + </thead> | |
27 | + <tbody> | |
28 | +@foreach (var item in Model) { | |
29 | + <tr> | |
30 | + <td> | |
31 | + @Html.DisplayFor(modelItem => item.DirectionName) | |
32 | + </td> | |
33 | + <td> | |
34 | + <a asp-action="Edit" asp-route-id="@item.RoadDirectionId">Edit</a> | | |
35 | + <a asp-action="Details" asp-route-id="@item.RoadDirectionId">Details</a> | | |
36 | + <a asp-action="Delete" asp-route-id="@item.RoadDirectionId">Delete</a> | |
37 | + </td> | |
38 | + </tr> | |
39 | +} | |
40 | + </tbody> | |
41 | +</table> | |
42 | +</body> | |
43 | +</html> | ... | ... |
1 | +@model Maps.Entities.RoadPassport | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Create</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<form asp-action="Create"> | |
17 | + <div class="form-horizontal"> | |
18 | + <h4>RoadPassport</h4> | |
19 | + <hr /> | |
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | |
21 | + <div class="form-group"> | |
22 | + <label asp-for="Begin" class="col-md-2 control-label"></label> | |
23 | + <div class="col-md-10"> | |
24 | + <input asp-for="Begin" class="form-control" /> | |
25 | + <span asp-validation-for="Begin" class="text-danger" /> | |
26 | + </div> | |
27 | + </div> | |
28 | + <div class="form-group"> | |
29 | + <label asp-for="End" class="col-md-2 control-label"></label> | |
30 | + <div class="col-md-10"> | |
31 | + <input asp-for="End" class="form-control" /> | |
32 | + <span asp-validation-for="End" class="text-danger" /> | |
33 | + </div> | |
34 | + </div> | |
35 | + <div class="form-group"> | |
36 | + <label asp-for="RegionId" class="col-md-2 control-label"></label> | |
37 | + <div class="col-md-10"> | |
38 | + <select asp-for="RegionId" class ="form-control" asp-items="ViewBag.RegionId"></select> | |
39 | + </div> | |
40 | + </div> | |
41 | + <div class="form-group"> | |
42 | + <label asp-for="RoadId" class="col-md-2 control-label"></label> | |
43 | + <div class="col-md-10"> | |
44 | + <select asp-for="RoadId" class ="form-control" asp-items="ViewBag.RoadId"></select> | |
45 | + </div> | |
46 | + </div> | |
47 | + <div class="form-group"> | |
48 | + <div class="col-md-offset-2 col-md-10"> | |
49 | + <input type="submit" value="Create" class="btn btn-default" /> | |
50 | + </div> | |
51 | + </div> | |
52 | + </div> | |
53 | +</form> | |
54 | + | |
55 | +<div> | |
56 | + <a asp-action="Index">Back to List</a> | |
57 | +</div> | |
58 | + | |
59 | +</body> | |
60 | +</html> | ... | ... |
1 | +@model Maps.Entities.RoadPassport | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Delete</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<h3>Are you sure you want to delete this?</h3> | |
17 | +<div> | |
18 | + <h4>RoadPassport</h4> | |
19 | + <hr /> | |
20 | + <dl class="dl-horizontal"> | |
21 | + <dt> | |
22 | + @Html.DisplayNameFor(model => model.Begin) | |
23 | + </dt> | |
24 | + <dd> | |
25 | + @Html.DisplayFor(model => model.Begin) | |
26 | + </dd> | |
27 | + <dt> | |
28 | + @Html.DisplayNameFor(model => model.End) | |
29 | + </dt> | |
30 | + <dd> | |
31 | + @Html.DisplayFor(model => model.End) | |
32 | + </dd> | |
33 | + </dl> | |
34 | + | |
35 | + <form asp-action="Delete"> | |
36 | + <div class="form-actions no-color"> | |
37 | + <input type="submit" value="Delete" class="btn btn-default" /> | | |
38 | + <a asp-action="Index">Back to List</a> | |
39 | + </div> | |
40 | + </form> | |
41 | +</div> | |
42 | +</body> | |
43 | +</html> | ... | ... |
1 | +@model Maps.Entities.RoadPassport | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Details</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<div> | |
17 | + <h4>RoadPassport</h4> | |
18 | + <hr /> | |
19 | + <dl class="dl-horizontal"> | |
20 | + <dt> | |
21 | + @Html.DisplayNameFor(model => model.Begin) | |
22 | + </dt> | |
23 | + <dd> | |
24 | + @Html.DisplayFor(model => model.Begin) | |
25 | + </dd> | |
26 | + <dt> | |
27 | + @Html.DisplayNameFor(model => model.End) | |
28 | + </dt> | |
29 | + <dd> | |
30 | + @Html.DisplayFor(model => model.End) | |
31 | + </dd> | |
32 | + </dl> | |
33 | +</div> | |
34 | +<div> | |
35 | + <a asp-action="Edit" asp-route-id="@Model.RoadPassportId">Edit</a> | | |
36 | + <a asp-action="Index">Back to List</a> | |
37 | +</div> | |
38 | +</body> | |
39 | +</html> | ... | ... |
1 | +@model Maps.Entities.RoadPassport | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Edit</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<form asp-action="Edit"> | |
17 | + <div class="form-horizontal"> | |
18 | + <h4>RoadPassport</h4> | |
19 | + <hr /> | |
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | |
21 | + <input type="hidden" asp-for="RoadPassportId" /> | |
22 | + <div class="form-group"> | |
23 | + <label asp-for="Begin" class="col-md-2 control-label"></label> | |
24 | + <div class="col-md-10"> | |
25 | + <input asp-for="Begin" class="form-control" /> | |
26 | + <span asp-validation-for="Begin" class="text-danger" /> | |
27 | + </div> | |
28 | + </div> | |
29 | + <div class="form-group"> | |
30 | + <label asp-for="End" class="col-md-2 control-label"></label> | |
31 | + <div class="col-md-10"> | |
32 | + <input asp-for="End" class="form-control" /> | |
33 | + <span asp-validation-for="End" class="text-danger" /> | |
34 | + </div> | |
35 | + </div> | |
36 | + <div class="form-group"> | |
37 | + <label asp-for="RegionId" class="control-label col-md-2"></label> | |
38 | + <div class="col-md-10"> | |
39 | + <select asp-for="RegionId" class="form-control" asp-items="ViewBag.RegionId"></select> | |
40 | + <span asp-validation-for="RegionId" class="text-danger" /> | |
41 | + </div> | |
42 | + </div> | |
43 | + <div class="form-group"> | |
44 | + <label asp-for="RoadId" class="control-label col-md-2"></label> | |
45 | + <div class="col-md-10"> | |
46 | + <select asp-for="RoadId" class="form-control" asp-items="ViewBag.RoadId"></select> | |
47 | + <span asp-validation-for="RoadId" class="text-danger" /> | |
48 | + </div> | |
49 | + </div> | |
50 | + <div class="form-group"> | |
51 | + <div class="col-md-offset-2 col-md-10"> | |
52 | + <input type="submit" value="Save" class="btn btn-default" /> | |
53 | + </div> | |
54 | + </div> | |
55 | + </div> | |
56 | +</form> | |
57 | + | |
58 | +<div> | |
59 | + <a asp-action="Index">Back to List</a> | |
60 | +</div> | |
61 | + | |
62 | +</body> | |
63 | +</html> | ... | ... |
1 | +@model IEnumerable<Maps.Entities.RoadPassport> | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Index</title> | |
13 | +</head> | |
14 | +<body> | |
15 | +<p> | |
16 | + <a asp-action="Create">Create New</a> | |
17 | +</p> | |
18 | +<table class="table"> | |
19 | + <thead> | |
20 | + <tr> | |
21 | + <th> | |
22 | + @Html.DisplayNameFor(model => model.Begin) | |
23 | + </th> | |
24 | + <th> | |
25 | + @Html.DisplayNameFor(model => model.End) | |
26 | + </th> | |
27 | + <th></th> | |
28 | + </tr> | |
29 | + </thead> | |
30 | + <tbody> | |
31 | +@foreach (var item in Model) { | |
32 | + <tr> | |
33 | + <td> | |
34 | + @Html.DisplayFor(modelItem => item.Begin) | |
35 | + </td> | |
36 | + <td> | |
37 | + @Html.DisplayFor(modelItem => item.End) | |
38 | + </td> | |
39 | + <td> | |
40 | + <a asp-action="Edit" asp-route-id="@item.RoadPassportId">Edit</a> | | |
41 | + <a asp-action="Details" asp-route-id="@item.RoadPassportId">Details</a> | | |
42 | + <a asp-action="Delete" asp-route-id="@item.RoadPassportId">Delete</a> | |
43 | + </td> | |
44 | + </tr> | |
45 | +} | |
46 | + </tbody> | |
47 | +</table> | |
48 | +</body> | |
49 | +</html> | ... | ... |
1 | +@model Maps.Entities.RoadService | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Create</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<form asp-action="Create"> | |
17 | + <div class="form-horizontal"> | |
18 | + <h4>RoadService</h4> | |
19 | + <hr /> | |
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | |
21 | + <div class="form-group"> | |
22 | + <label asp-for="Begin" class="col-md-2 control-label"></label> | |
23 | + <div class="col-md-10"> | |
24 | + <input asp-for="Begin" class="form-control" /> | |
25 | + <span asp-validation-for="Begin" class="text-danger" /> | |
26 | + </div> | |
27 | + </div> | |
28 | + <div class="form-group"> | |
29 | + <label asp-for="End" class="col-md-2 control-label"></label> | |
30 | + <div class="col-md-10"> | |
31 | + <input asp-for="End" class="form-control" /> | |
32 | + <span asp-validation-for="End" class="text-danger" /> | |
33 | + </div> | |
34 | + </div> | |
35 | + <div class="form-group"> | |
36 | + <label asp-for="OrganizationId" class="col-md-2 control-label"></label> | |
37 | + <div class="col-md-10"> | |
38 | + <select asp-for="OrganizationId" class ="form-control" asp-items="ViewBag.OrganizationId"></select> | |
39 | + </div> | |
40 | + </div> | |
41 | + <div class="form-group"> | |
42 | + <label asp-for="RegionId" class="col-md-2 control-label"></label> | |
43 | + <div class="col-md-10"> | |
44 | + <select asp-for="RegionId" class ="form-control" asp-items="ViewBag.RegionId"></select> | |
45 | + </div> | |
46 | + </div> | |
47 | + <div class="form-group"> | |
48 | + <label asp-for="RoadDirectionId" class="col-md-2 control-label"></label> | |
49 | + <div class="col-md-10"> | |
50 | + <select asp-for="RoadDirectionId" class ="form-control" asp-items="ViewBag.RoadDirectionId"></select> | |
51 | + </div> | |
52 | + </div> | |
53 | + <div class="form-group"> | |
54 | + <label asp-for="RoadId" class="col-md-2 control-label"></label> | |
55 | + <div class="col-md-10"> | |
56 | + <select asp-for="RoadId" class ="form-control" asp-items="ViewBag.RoadId"></select> | |
57 | + </div> | |
58 | + </div> | |
59 | + <div class="form-group"> | |
60 | + <label asp-for="YearBegin" class="col-md-2 control-label"></label> | |
61 | + <div class="col-md-10"> | |
62 | + <input asp-for="YearBegin" class="form-control" /> | |
63 | + <span asp-validation-for="YearBegin" class="text-danger" /> | |
64 | + </div> | |
65 | + </div> | |
66 | + <div class="form-group"> | |
67 | + <div class="col-md-offset-2 col-md-10"> | |
68 | + <input type="submit" value="Create" class="btn btn-default" /> | |
69 | + </div> | |
70 | + </div> | |
71 | + </div> | |
72 | +</form> | |
73 | + | |
74 | +<div> | |
75 | + <a asp-action="Index">Back to List</a> | |
76 | +</div> | |
77 | + | |
78 | +</body> | |
79 | +</html> | ... | ... |
1 | +@model Maps.Entities.RoadService | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Delete</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<h3>Are you sure you want to delete this?</h3> | |
17 | +<div> | |
18 | + <h4>RoadService</h4> | |
19 | + <hr /> | |
20 | + <dl class="dl-horizontal"> | |
21 | + <dt> | |
22 | + @Html.DisplayNameFor(model => model.Begin) | |
23 | + </dt> | |
24 | + <dd> | |
25 | + @Html.DisplayFor(model => model.Begin) | |
26 | + </dd> | |
27 | + <dt> | |
28 | + @Html.DisplayNameFor(model => model.End) | |
29 | + </dt> | |
30 | + <dd> | |
31 | + @Html.DisplayFor(model => model.End) | |
32 | + </dd> | |
33 | + <dt> | |
34 | + @Html.DisplayNameFor(model => model.YearBegin) | |
35 | + </dt> | |
36 | + <dd> | |
37 | + @Html.DisplayFor(model => model.YearBegin) | |
38 | + </dd> | |
39 | + </dl> | |
40 | + | |
41 | + <form asp-action="Delete"> | |
42 | + <div class="form-actions no-color"> | |
43 | + <input type="submit" value="Delete" class="btn btn-default" /> | | |
44 | + <a asp-action="Index">Back to List</a> | |
45 | + </div> | |
46 | + </form> | |
47 | +</div> | |
48 | +</body> | |
49 | +</html> | ... | ... |
1 | +@model Maps.Entities.RoadService | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Details</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<div> | |
17 | + <h4>RoadService</h4> | |
18 | + <hr /> | |
19 | + <dl class="dl-horizontal"> | |
20 | + <dt> | |
21 | + @Html.DisplayNameFor(model => model.Begin) | |
22 | + </dt> | |
23 | + <dd> | |
24 | + @Html.DisplayFor(model => model.Begin) | |
25 | + </dd> | |
26 | + <dt> | |
27 | + @Html.DisplayNameFor(model => model.End) | |
28 | + </dt> | |
29 | + <dd> | |
30 | + @Html.DisplayFor(model => model.End) | |
31 | + </dd> | |
32 | + <dt> | |
33 | + @Html.DisplayNameFor(model => model.YearBegin) | |
34 | + </dt> | |
35 | + <dd> | |
36 | + @Html.DisplayFor(model => model.YearBegin) | |
37 | + </dd> | |
38 | + </dl> | |
39 | +</div> | |
40 | +<div> | |
41 | + <a asp-action="Edit" asp-route-id="@Model.RoadServiceId">Edit</a> | | |
42 | + <a asp-action="Index">Back to List</a> | |
43 | +</div> | |
44 | +</body> | |
45 | +</html> | ... | ... |
1 | +@model Maps.Entities.RoadService | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Edit</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<form asp-action="Edit"> | |
17 | + <div class="form-horizontal"> | |
18 | + <h4>RoadService</h4> | |
19 | + <hr /> | |
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | |
21 | + <input type="hidden" asp-for="RoadServiceId" /> | |
22 | + <div class="form-group"> | |
23 | + <label asp-for="Begin" class="col-md-2 control-label"></label> | |
24 | + <div class="col-md-10"> | |
25 | + <input asp-for="Begin" class="form-control" /> | |
26 | + <span asp-validation-for="Begin" class="text-danger" /> | |
27 | + </div> | |
28 | + </div> | |
29 | + <div class="form-group"> | |
30 | + <label asp-for="End" class="col-md-2 control-label"></label> | |
31 | + <div class="col-md-10"> | |
32 | + <input asp-for="End" class="form-control" /> | |
33 | + <span asp-validation-for="End" class="text-danger" /> | |
34 | + </div> | |
35 | + </div> | |
36 | + <div class="form-group"> | |
37 | + <label asp-for="OrganizationId" class="control-label col-md-2"></label> | |
38 | + <div class="col-md-10"> | |
39 | + <select asp-for="OrganizationId" class="form-control" asp-items="ViewBag.OrganizationId"></select> | |
40 | + <span asp-validation-for="OrganizationId" class="text-danger" /> | |
41 | + </div> | |
42 | + </div> | |
43 | + <div class="form-group"> | |
44 | + <label asp-for="RegionId" class="control-label col-md-2"></label> | |
45 | + <div class="col-md-10"> | |
46 | + <select asp-for="RegionId" class="form-control" asp-items="ViewBag.RegionId"></select> | |
47 | + <span asp-validation-for="RegionId" class="text-danger" /> | |
48 | + </div> | |
49 | + </div> | |
50 | + <div class="form-group"> | |
51 | + <label asp-for="RoadDirectionId" class="control-label col-md-2"></label> | |
52 | + <div class="col-md-10"> | |
53 | + <select asp-for="RoadDirectionId" class="form-control" asp-items="ViewBag.RoadDirectionId"></select> | |
54 | + <span asp-validation-for="RoadDirectionId" class="text-danger" /> | |
55 | + </div> | |
56 | + </div> | |
57 | + <div class="form-group"> | |
58 | + <label asp-for="RoadId" class="control-label col-md-2"></label> | |
59 | + <div class="col-md-10"> | |
60 | + <select asp-for="RoadId" class="form-control" asp-items="ViewBag.RoadId"></select> | |
61 | + <span asp-validation-for="RoadId" class="text-danger" /> | |
62 | + </div> | |
63 | + </div> | |
64 | + <div class="form-group"> | |
65 | + <label asp-for="YearBegin" class="col-md-2 control-label"></label> | |
66 | + <div class="col-md-10"> | |
67 | + <input asp-for="YearBegin" class="form-control" /> | |
68 | + <span asp-validation-for="YearBegin" class="text-danger" /> | |
69 | + </div> | |
70 | + </div> | |
71 | + <div class="form-group"> | |
72 | + <div class="col-md-offset-2 col-md-10"> | |
73 | + <input type="submit" value="Save" class="btn btn-default" /> | |
74 | + </div> | |
75 | + </div> | |
76 | + </div> | |
77 | +</form> | |
78 | + | |
79 | +<div> | |
80 | + <a asp-action="Index">Back to List</a> | |
81 | +</div> | |
82 | + | |
83 | +</body> | |
84 | +</html> | ... | ... |
1 | +@model IEnumerable<Maps.Entities.RoadService> | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Index</title> | |
13 | +</head> | |
14 | +<body> | |
15 | +<p> | |
16 | + <a asp-action="Create">Create New</a> | |
17 | +</p> | |
18 | +<table class="table"> | |
19 | + <thead> | |
20 | + <tr> | |
21 | + <th> | |
22 | + @Html.DisplayNameFor(model => model.Begin) | |
23 | + </th> | |
24 | + <th> | |
25 | + @Html.DisplayNameFor(model => model.End) | |
26 | + </th> | |
27 | + <th> | |
28 | + @Html.DisplayNameFor(model => model.YearBegin) | |
29 | + </th> | |
30 | + <th></th> | |
31 | + </tr> | |
32 | + </thead> | |
33 | + <tbody> | |
34 | +@foreach (var item in Model) { | |
35 | + <tr> | |
36 | + <td> | |
37 | + @Html.DisplayFor(modelItem => item.Begin) | |
38 | + </td> | |
39 | + <td> | |
40 | + @Html.DisplayFor(modelItem => item.End) | |
41 | + </td> | |
42 | + <td> | |
43 | + @Html.DisplayFor(modelItem => item.YearBegin) | |
44 | + </td> | |
45 | + <td> | |
46 | + <a asp-action="Edit" asp-route-id="@item.RoadServiceId">Edit</a> | | |
47 | + <a asp-action="Details" asp-route-id="@item.RoadServiceId">Details</a> | | |
48 | + <a asp-action="Delete" asp-route-id="@item.RoadServiceId">Delete</a> | |
49 | + </td> | |
50 | + </tr> | |
51 | +} | |
52 | + </tbody> | |
53 | +</table> | |
54 | +</body> | |
55 | +</html> | ... | ... |
1 | +@model Maps.Entities.RoadSurface | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Create</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<form asp-action="Create"> | |
17 | + <div class="form-horizontal"> | |
18 | + <h4>RoadSurface</h4> | |
19 | + <hr /> | |
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | |
21 | + <div class="form-group"> | |
22 | + <label asp-for="Begin" class="col-md-2 control-label"></label> | |
23 | + <div class="col-md-10"> | |
24 | + <input asp-for="Begin" class="form-control" /> | |
25 | + <span asp-validation-for="Begin" class="text-danger" /> | |
26 | + </div> | |
27 | + </div> | |
28 | + <div class="form-group"> | |
29 | + <label asp-for="CrossSectionNumber" class="col-md-2 control-label"></label> | |
30 | + <div class="col-md-10"> | |
31 | + <input asp-for="CrossSectionNumber" class="form-control" /> | |
32 | + <span asp-validation-for="CrossSectionNumber" class="text-danger" /> | |
33 | + </div> | |
34 | + </div> | |
35 | + <div class="form-group"> | |
36 | + <label asp-for="ElastisityModule" class="col-md-2 control-label"></label> | |
37 | + <div class="col-md-10"> | |
38 | + <input asp-for="ElastisityModule" class="form-control" /> | |
39 | + <span asp-validation-for="ElastisityModule" class="text-danger" /> | |
40 | + </div> | |
41 | + </div> | |
42 | + <div class="form-group"> | |
43 | + <label asp-for="End" class="col-md-2 control-label"></label> | |
44 | + <div class="col-md-10"> | |
45 | + <input asp-for="End" class="form-control" /> | |
46 | + <span asp-validation-for="End" class="text-danger" /> | |
47 | + </div> | |
48 | + </div> | |
49 | + <div class="form-group"> | |
50 | + <label asp-for="LaneCountLeft" class="col-md-2 control-label"></label> | |
51 | + <div class="col-md-10"> | |
52 | + <input asp-for="LaneCountLeft" class="form-control" /> | |
53 | + <span asp-validation-for="LaneCountLeft" class="text-danger" /> | |
54 | + </div> | |
55 | + </div> | |
56 | + <div class="form-group"> | |
57 | + <label asp-for="LaneCountRight" class="col-md-2 control-label"></label> | |
58 | + <div class="col-md-10"> | |
59 | + <input asp-for="LaneCountRight" class="form-control" /> | |
60 | + <span asp-validation-for="LaneCountRight" class="text-danger" /> | |
61 | + </div> | |
62 | + </div> | |
63 | + <div class="form-group"> | |
64 | + <label asp-for="RegionId" class="col-md-2 control-label"></label> | |
65 | + <div class="col-md-10"> | |
66 | + <select asp-for="RegionId" class ="form-control" asp-items="ViewBag.RegionId"></select> | |
67 | + </div> | |
68 | + </div> | |
69 | + <div class="form-group"> | |
70 | + <label asp-for="RoadDirectionId" class="col-md-2 control-label"></label> | |
71 | + <div class="col-md-10"> | |
72 | + <select asp-for="RoadDirectionId" class ="form-control" asp-items="ViewBag.RoadDirectionId"></select> | |
73 | + </div> | |
74 | + </div> | |
75 | + <div class="form-group"> | |
76 | + <label asp-for="RoadId" class="col-md-2 control-label"></label> | |
77 | + <div class="col-md-10"> | |
78 | + <select asp-for="RoadId" class ="form-control" asp-items="ViewBag.RoadId"></select> | |
79 | + </div> | |
80 | + </div> | |
81 | + <div class="form-group"> | |
82 | + <label asp-for="RoadSurfaceConstructionId" class="col-md-2 control-label"></label> | |
83 | + <div class="col-md-10"> | |
84 | + <input asp-for="RoadSurfaceConstructionId" class="form-control" /> | |
85 | + <span asp-validation-for="RoadSurfaceConstructionId" class="text-danger" /> | |
86 | + </div> | |
87 | + </div> | |
88 | + <div class="form-group"> | |
89 | + <label asp-for="StateCommonId" class="col-md-2 control-label"></label> | |
90 | + <div class="col-md-10"> | |
91 | + <select asp-for="StateCommonId" class ="form-control" asp-items="ViewBag.StateCommonId"></select> | |
92 | + </div> | |
93 | + </div> | |
94 | + <div class="form-group"> | |
95 | + <label asp-for="SurfaceTreatmentId" class="col-md-2 control-label"></label> | |
96 | + <div class="col-md-10"> | |
97 | + <select asp-for="SurfaceTreatmentId" class ="form-control" asp-items="ViewBag.SurfaceTreatmentId"></select> | |
98 | + </div> | |
99 | + </div> | |
100 | + <div class="form-group"> | |
101 | + <label asp-for="SurfaceTypeId" class="col-md-2 control-label"></label> | |
102 | + <div class="col-md-10"> | |
103 | + <select asp-for="SurfaceTypeId" class ="form-control" asp-items="ViewBag.SurfaceTypeId"></select> | |
104 | + </div> | |
105 | + </div> | |
106 | + <div class="form-group"> | |
107 | + <div class="col-md-offset-2 col-md-10"> | |
108 | + <input type="submit" value="Create" class="btn btn-default" /> | |
109 | + </div> | |
110 | + </div> | |
111 | + </div> | |
112 | +</form> | |
113 | + | |
114 | +<div> | |
115 | + <a asp-action="Index">Back to List</a> | |
116 | +</div> | |
117 | + | |
118 | +</body> | |
119 | +</html> | ... | ... |
1 | +@model Maps.Entities.RoadSurface | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Delete</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<h3>Are you sure you want to delete this?</h3> | |
17 | +<div> | |
18 | + <h4>RoadSurface</h4> | |
19 | + <hr /> | |
20 | + <dl class="dl-horizontal"> | |
21 | + <dt> | |
22 | + @Html.DisplayNameFor(model => model.Begin) | |
23 | + </dt> | |
24 | + <dd> | |
25 | + @Html.DisplayFor(model => model.Begin) | |
26 | + </dd> | |
27 | + <dt> | |
28 | + @Html.DisplayNameFor(model => model.CrossSectionNumber) | |
29 | + </dt> | |
30 | + <dd> | |
31 | + @Html.DisplayFor(model => model.CrossSectionNumber) | |
32 | + </dd> | |
33 | + <dt> | |
34 | + @Html.DisplayNameFor(model => model.ElastisityModule) | |
35 | + </dt> | |
36 | + <dd> | |
37 | + @Html.DisplayFor(model => model.ElastisityModule) | |
38 | + </dd> | |
39 | + <dt> | |
40 | + @Html.DisplayNameFor(model => model.End) | |
41 | + </dt> | |
42 | + <dd> | |
43 | + @Html.DisplayFor(model => model.End) | |
44 | + </dd> | |
45 | + <dt> | |
46 | + @Html.DisplayNameFor(model => model.LaneCountLeft) | |
47 | + </dt> | |
48 | + <dd> | |
49 | + @Html.DisplayFor(model => model.LaneCountLeft) | |
50 | + </dd> | |
51 | + <dt> | |
52 | + @Html.DisplayNameFor(model => model.LaneCountRight) | |
53 | + </dt> | |
54 | + <dd> | |
55 | + @Html.DisplayFor(model => model.LaneCountRight) | |
56 | + </dd> | |
57 | + <dt> | |
58 | + @Html.DisplayNameFor(model => model.RoadSurfaceConstructionId) | |
59 | + </dt> | |
60 | + <dd> | |
61 | + @Html.DisplayFor(model => model.RoadSurfaceConstructionId) | |
62 | + </dd> | |
63 | + </dl> | |
64 | + | |
65 | + <form asp-action="Delete"> | |
66 | + <div class="form-actions no-color"> | |
67 | + <input type="submit" value="Delete" class="btn btn-default" /> | | |
68 | + <a asp-action="Index">Back to List</a> | |
69 | + </div> | |
70 | + </form> | |
71 | +</div> | |
72 | +</body> | |
73 | +</html> | ... | ... |
1 | +@model Maps.Entities.RoadSurface | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Details</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<div> | |
17 | + <h4>RoadSurface</h4> | |
18 | + <hr /> | |
19 | + <dl class="dl-horizontal"> | |
20 | + <dt> | |
21 | + @Html.DisplayNameFor(model => model.Begin) | |
22 | + </dt> | |
23 | + <dd> | |
24 | + @Html.DisplayFor(model => model.Begin) | |
25 | + </dd> | |
26 | + <dt> | |
27 | + @Html.DisplayNameFor(model => model.CrossSectionNumber) | |
28 | + </dt> | |
29 | + <dd> | |
30 | + @Html.DisplayFor(model => model.CrossSectionNumber) | |
31 | + </dd> | |
32 | + <dt> | |
33 | + @Html.DisplayNameFor(model => model.ElastisityModule) | |
34 | + </dt> | |
35 | + <dd> | |
36 | + @Html.DisplayFor(model => model.ElastisityModule) | |
37 | + </dd> | |
38 | + <dt> | |
39 | + @Html.DisplayNameFor(model => model.End) | |
40 | + </dt> | |
41 | + <dd> | |
42 | + @Html.DisplayFor(model => model.End) | |
43 | + </dd> | |
44 | + <dt> | |
45 | + @Html.DisplayNameFor(model => model.LaneCountLeft) | |
46 | + </dt> | |
47 | + <dd> | |
48 | + @Html.DisplayFor(model => model.LaneCountLeft) | |
49 | + </dd> | |
50 | + <dt> | |
51 | + @Html.DisplayNameFor(model => model.LaneCountRight) | |
52 | + </dt> | |
53 | + <dd> | |
54 | + @Html.DisplayFor(model => model.LaneCountRight) | |
55 | + </dd> | |
56 | + <dt> | |
57 | + @Html.DisplayNameFor(model => model.RoadSurfaceConstructionId) | |
58 | + </dt> | |
59 | + <dd> | |
60 | + @Html.DisplayFor(model => model.RoadSurfaceConstructionId) | |
61 | + </dd> | |
62 | + </dl> | |
63 | +</div> | |
64 | +<div> | |
65 | + <a asp-action="Edit" asp-route-id="@Model.RoadSurfaceId">Edit</a> | | |
66 | + <a asp-action="Index">Back to List</a> | |
67 | +</div> | |
68 | +</body> | |
69 | +</html> | ... | ... |
1 | +@model Maps.Entities.RoadSurface | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Edit</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<form asp-action="Edit"> | |
17 | + <div class="form-horizontal"> | |
18 | + <h4>RoadSurface</h4> | |
19 | + <hr /> | |
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | |
21 | + <input type="hidden" asp-for="RoadSurfaceId" /> | |
22 | + <div class="form-group"> | |
23 | + <label asp-for="Begin" class="col-md-2 control-label"></label> | |
24 | + <div class="col-md-10"> | |
25 | + <input asp-for="Begin" class="form-control" /> | |
26 | + <span asp-validation-for="Begin" class="text-danger" /> | |
27 | + </div> | |
28 | + </div> | |
29 | + <div class="form-group"> | |
30 | + <label asp-for="CrossSectionNumber" class="col-md-2 control-label"></label> | |
31 | + <div class="col-md-10"> | |
32 | + <input asp-for="CrossSectionNumber" class="form-control" /> | |
33 | + <span asp-validation-for="CrossSectionNumber" class="text-danger" /> | |
34 | + </div> | |
35 | + </div> | |
36 | + <div class="form-group"> | |
37 | + <label asp-for="ElastisityModule" class="col-md-2 control-label"></label> | |
38 | + <div class="col-md-10"> | |
39 | + <input asp-for="ElastisityModule" class="form-control" /> | |
40 | + <span asp-validation-for="ElastisityModule" class="text-danger" /> | |
41 | + </div> | |
42 | + </div> | |
43 | + <div class="form-group"> | |
44 | + <label asp-for="End" class="col-md-2 control-label"></label> | |
45 | + <div class="col-md-10"> | |
46 | + <input asp-for="End" class="form-control" /> | |
47 | + <span asp-validation-for="End" class="text-danger" /> | |
48 | + </div> | |
49 | + </div> | |
50 | + <div class="form-group"> | |
51 | + <label asp-for="LaneCountLeft" class="col-md-2 control-label"></label> | |
52 | + <div class="col-md-10"> | |
53 | + <input asp-for="LaneCountLeft" class="form-control" /> | |
54 | + <span asp-validation-for="LaneCountLeft" class="text-danger" /> | |
55 | + </div> | |
56 | + </div> | |
57 | + <div class="form-group"> | |
58 | + <label asp-for="LaneCountRight" class="col-md-2 control-label"></label> | |
59 | + <div class="col-md-10"> | |
60 | + <input asp-for="LaneCountRight" class="form-control" /> | |
61 | + <span asp-validation-for="LaneCountRight" class="text-danger" /> | |
62 | + </div> | |
63 | + </div> | |
64 | + <div class="form-group"> | |
65 | + <label asp-for="RegionId" class="control-label col-md-2"></label> | |
66 | + <div class="col-md-10"> | |
67 | + <select asp-for="RegionId" class="form-control" asp-items="ViewBag.RegionId"></select> | |
68 | + <span asp-validation-for="RegionId" class="text-danger" /> | |
69 | + </div> | |
70 | + </div> | |
71 | + <div class="form-group"> | |
72 | + <label asp-for="RoadDirectionId" class="control-label col-md-2"></label> | |
73 | + <div class="col-md-10"> | |
74 | + <select asp-for="RoadDirectionId" class="form-control" asp-items="ViewBag.RoadDirectionId"></select> | |
75 | + <span asp-validation-for="RoadDirectionId" class="text-danger" /> | |
76 | + </div> | |
77 | + </div> | |
78 | + <div class="form-group"> | |
79 | + <label asp-for="RoadId" class="control-label col-md-2"></label> | |
80 | + <div class="col-md-10"> | |
81 | + <select asp-for="RoadId" class="form-control" asp-items="ViewBag.RoadId"></select> | |
82 | + <span asp-validation-for="RoadId" class="text-danger" /> | |
83 | + </div> | |
84 | + </div> | |
85 | + <div class="form-group"> | |
86 | + <label asp-for="RoadSurfaceConstructionId" class="col-md-2 control-label"></label> | |
87 | + <div class="col-md-10"> | |
88 | + <input asp-for="RoadSurfaceConstructionId" class="form-control" /> | |
89 | + <span asp-validation-for="RoadSurfaceConstructionId" class="text-danger" /> | |
90 | + </div> | |
91 | + </div> | |
92 | + <div class="form-group"> | |
93 | + <label asp-for="StateCommonId" class="control-label col-md-2"></label> | |
94 | + <div class="col-md-10"> | |
95 | + <select asp-for="StateCommonId" class="form-control" asp-items="ViewBag.StateCommonId"></select> | |
96 | + <span asp-validation-for="StateCommonId" class="text-danger" /> | |
97 | + </div> | |
98 | + </div> | |
99 | + <div class="form-group"> | |
100 | + <label asp-for="SurfaceTreatmentId" class="control-label col-md-2"></label> | |
101 | + <div class="col-md-10"> | |
102 | + <select asp-for="SurfaceTreatmentId" class="form-control" asp-items="ViewBag.SurfaceTreatmentId"></select> | |
103 | + <span asp-validation-for="SurfaceTreatmentId" class="text-danger" /> | |
104 | + </div> | |
105 | + </div> | |
106 | + <div class="form-group"> | |
107 | + <label asp-for="SurfaceTypeId" class="control-label col-md-2"></label> | |
108 | + <div class="col-md-10"> | |
109 | + <select asp-for="SurfaceTypeId" class="form-control" asp-items="ViewBag.SurfaceTypeId"></select> | |
110 | + <span asp-validation-for="SurfaceTypeId" class="text-danger" /> | |
111 | + </div> | |
112 | + </div> | |
113 | + <div class="form-group"> | |
114 | + <div class="col-md-offset-2 col-md-10"> | |
115 | + <input type="submit" value="Save" class="btn btn-default" /> | |
116 | + </div> | |
117 | + </div> | |
118 | + </div> | |
119 | +</form> | |
120 | + | |
121 | +<div> | |
122 | + <a asp-action="Index">Back to List</a> | |
123 | +</div> | |
124 | + | |
125 | +</body> | |
126 | +</html> | ... | ... |
1 | +@model IEnumerable<Maps.Entities.RoadSurface> | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Index</title> | |
13 | +</head> | |
14 | +<body> | |
15 | +<p> | |
16 | + <a asp-action="Create">Create New</a> | |
17 | +</p> | |
18 | +<table class="table"> | |
19 | + <thead> | |
20 | + <tr> | |
21 | + <th> | |
22 | + @Html.DisplayNameFor(model => model.Begin) | |
23 | + </th> | |
24 | + <th> | |
25 | + @Html.DisplayNameFor(model => model.CrossSectionNumber) | |
26 | + </th> | |
27 | + <th> | |
28 | + @Html.DisplayNameFor(model => model.ElastisityModule) | |
29 | + </th> | |
30 | + <th> | |
31 | + @Html.DisplayNameFor(model => model.End) | |
32 | + </th> | |
33 | + <th> | |
34 | + @Html.DisplayNameFor(model => model.LaneCountLeft) | |
35 | + </th> | |
36 | + <th> | |
37 | + @Html.DisplayNameFor(model => model.LaneCountRight) | |
38 | + </th> | |
39 | + <th> | |
40 | + @Html.DisplayNameFor(model => model.RoadSurfaceConstructionId) | |
41 | + </th> | |
42 | + <th></th> | |
43 | + </tr> | |
44 | + </thead> | |
45 | + <tbody> | |
46 | +@foreach (var item in Model) { | |
47 | + <tr> | |
48 | + <td> | |
49 | + @Html.DisplayFor(modelItem => item.Begin) | |
50 | + </td> | |
51 | + <td> | |
52 | + @Html.DisplayFor(modelItem => item.CrossSectionNumber) | |
53 | + </td> | |
54 | + <td> | |
55 | + @Html.DisplayFor(modelItem => item.ElastisityModule) | |
56 | + </td> | |
57 | + <td> | |
58 | + @Html.DisplayFor(modelItem => item.End) | |
59 | + </td> | |
60 | + <td> | |
61 | + @Html.DisplayFor(modelItem => item.LaneCountLeft) | |
62 | + </td> | |
63 | + <td> | |
64 | + @Html.DisplayFor(modelItem => item.LaneCountRight) | |
65 | + </td> | |
66 | + <td> | |
67 | + @Html.DisplayFor(modelItem => item.RoadSurfaceConstructionId) | |
68 | + </td> | |
69 | + <td> | |
70 | + <a asp-action="Edit" asp-route-id="@item.RoadSurfaceId">Edit</a> | | |
71 | + <a asp-action="Details" asp-route-id="@item.RoadSurfaceId">Details</a> | | |
72 | + <a asp-action="Delete" asp-route-id="@item.RoadSurfaceId">Delete</a> | |
73 | + </td> | |
74 | + </tr> | |
75 | +} | |
76 | + </tbody> | |
77 | +</table> | |
78 | +</body> | |
79 | +</html> | ... | ... |
1 | +@model Maps.Entities.RoadType | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Create</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<form asp-action="Create"> | |
17 | + <div class="form-horizontal"> | |
18 | + <h4>RoadType</h4> | |
19 | + <hr /> | |
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | |
21 | + <div class="form-group"> | |
22 | + <label asp-for="Definition" class="col-md-2 control-label"></label> | |
23 | + <div class="col-md-10"> | |
24 | + <input asp-for="Definition" class="form-control" /> | |
25 | + <span asp-validation-for="Definition" class="text-danger" /> | |
26 | + </div> | |
27 | + </div> | |
28 | + <div class="form-group"> | |
29 | + <label asp-for="Value" class="col-md-2 control-label"></label> | |
30 | + <div class="col-md-10"> | |
31 | + <input asp-for="Value" class="form-control" /> | |
32 | + <span asp-validation-for="Value" class="text-danger" /> | |
33 | + </div> | |
34 | + </div> | |
35 | + <div class="form-group"> | |
36 | + <div class="col-md-offset-2 col-md-10"> | |
37 | + <input type="submit" value="Create" class="btn btn-default" /> | |
38 | + </div> | |
39 | + </div> | |
40 | + </div> | |
41 | +</form> | |
42 | + | |
43 | +<div> | |
44 | + <a asp-action="Index">Back to List</a> | |
45 | +</div> | |
46 | + | |
47 | +</body> | |
48 | +</html> | ... | ... |
1 | +@model Maps.Entities.RoadType | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Delete</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<h3>Are you sure you want to delete this?</h3> | |
17 | +<div> | |
18 | + <h4>RoadType</h4> | |
19 | + <hr /> | |
20 | + <dl class="dl-horizontal"> | |
21 | + <dt> | |
22 | + @Html.DisplayNameFor(model => model.Definition) | |
23 | + </dt> | |
24 | + <dd> | |
25 | + @Html.DisplayFor(model => model.Definition) | |
26 | + </dd> | |
27 | + <dt> | |
28 | + @Html.DisplayNameFor(model => model.Value) | |
29 | + </dt> | |
30 | + <dd> | |
31 | + @Html.DisplayFor(model => model.Value) | |
32 | + </dd> | |
33 | + </dl> | |
34 | + | |
35 | + <form asp-action="Delete"> | |
36 | + <div class="form-actions no-color"> | |
37 | + <input type="submit" value="Delete" class="btn btn-default" /> | | |
38 | + <a asp-action="Index">Back to List</a> | |
39 | + </div> | |
40 | + </form> | |
41 | +</div> | |
42 | +</body> | |
43 | +</html> | ... | ... |
1 | +@model Maps.Entities.RoadType | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Details</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<div> | |
17 | + <h4>RoadType</h4> | |
18 | + <hr /> | |
19 | + <dl class="dl-horizontal"> | |
20 | + <dt> | |
21 | + @Html.DisplayNameFor(model => model.Definition) | |
22 | + </dt> | |
23 | + <dd> | |
24 | + @Html.DisplayFor(model => model.Definition) | |
25 | + </dd> | |
26 | + <dt> | |
27 | + @Html.DisplayNameFor(model => model.Value) | |
28 | + </dt> | |
29 | + <dd> | |
30 | + @Html.DisplayFor(model => model.Value) | |
31 | + </dd> | |
32 | + </dl> | |
33 | +</div> | |
34 | +<div> | |
35 | + <a asp-action="Edit" asp-route-id="@Model.RoadTypeId">Edit</a> | | |
36 | + <a asp-action="Index">Back to List</a> | |
37 | +</div> | |
38 | +</body> | |
39 | +</html> | ... | ... |
1 | +@model Maps.Entities.RoadType | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Edit</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<form asp-action="Edit"> | |
17 | + <div class="form-horizontal"> | |
18 | + <h4>RoadType</h4> | |
19 | + <hr /> | |
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | |
21 | + <input type="hidden" asp-for="RoadTypeId" /> | |
22 | + <div class="form-group"> | |
23 | + <label asp-for="Definition" class="col-md-2 control-label"></label> | |
24 | + <div class="col-md-10"> | |
25 | + <input asp-for="Definition" class="form-control" /> | |
26 | + <span asp-validation-for="Definition" class="text-danger" /> | |
27 | + </div> | |
28 | + </div> | |
29 | + <div class="form-group"> | |
30 | + <label asp-for="Value" class="col-md-2 control-label"></label> | |
31 | + <div class="col-md-10"> | |
32 | + <input asp-for="Value" class="form-control" /> | |
33 | + <span asp-validation-for="Value" class="text-danger" /> | |
34 | + </div> | |
35 | + </div> | |
36 | + <div class="form-group"> | |
37 | + <div class="col-md-offset-2 col-md-10"> | |
38 | + <input type="submit" value="Save" class="btn btn-default" /> | |
39 | + </div> | |
40 | + </div> | |
41 | + </div> | |
42 | +</form> | |
43 | + | |
44 | +<div> | |
45 | + <a asp-action="Index">Back to List</a> | |
46 | +</div> | |
47 | + | |
48 | +</body> | |
49 | +</html> | ... | ... |
1 | +@model IEnumerable<Maps.Entities.RoadType> | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Index</title> | |
13 | +</head> | |
14 | +<body> | |
15 | +<p> | |
16 | + <a asp-action="Create">Create New</a> | |
17 | +</p> | |
18 | +<table class="table"> | |
19 | + <thead> | |
20 | + <tr> | |
21 | + <th> | |
22 | + @Html.DisplayNameFor(model => model.Definition) | |
23 | + </th> | |
24 | + <th> | |
25 | + @Html.DisplayNameFor(model => model.Value) | |
26 | + </th> | |
27 | + <th></th> | |
28 | + </tr> | |
29 | + </thead> | |
30 | + <tbody> | |
31 | +@foreach (var item in Model) { | |
32 | + <tr> | |
33 | + <td> | |
34 | + @Html.DisplayFor(modelItem => item.Definition) | |
35 | + </td> | |
36 | + <td> | |
37 | + @Html.DisplayFor(modelItem => item.Value) | |
38 | + </td> | |
39 | + <td> | |
40 | + <a asp-action="Edit" asp-route-id="@item.RoadTypeId">Edit</a> | | |
41 | + <a asp-action="Details" asp-route-id="@item.RoadTypeId">Details</a> | | |
42 | + <a asp-action="Delete" asp-route-id="@item.RoadTypeId">Delete</a> | |
43 | + </td> | |
44 | + </tr> | |
45 | +} | |
46 | + </tbody> | |
47 | +</table> | |
48 | +</body> | |
49 | +</html> | ... | ... |
1 | +@model Maps.Entities.RoadWidth | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Create</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<form asp-action="Create"> | |
17 | + <div class="form-horizontal"> | |
18 | + <h4>RoadWidth</h4> | |
19 | + <hr /> | |
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | |
21 | + <div class="form-group"> | |
22 | + <label asp-for="Begin" class="col-md-2 control-label"></label> | |
23 | + <div class="col-md-10"> | |
24 | + <input asp-for="Begin" class="form-control" /> | |
25 | + <span asp-validation-for="Begin" class="text-danger" /> | |
26 | + </div> | |
27 | + </div> | |
28 | + <div class="form-group"> | |
29 | + <label asp-for="CountLaneLeft" class="col-md-2 control-label"></label> | |
30 | + <div class="col-md-10"> | |
31 | + <input asp-for="CountLaneLeft" class="form-control" /> | |
32 | + <span asp-validation-for="CountLaneLeft" class="text-danger" /> | |
33 | + </div> | |
34 | + </div> | |
35 | + <div class="form-group"> | |
36 | + <label asp-for="CountLaneRight" class="col-md-2 control-label"></label> | |
37 | + <div class="col-md-10"> | |
38 | + <input asp-for="CountLaneRight" class="form-control" /> | |
39 | + <span asp-validation-for="CountLaneRight" class="text-danger" /> | |
40 | + </div> | |
41 | + </div> | |
42 | + <div class="form-group"> | |
43 | + <label asp-for="End" class="col-md-2 control-label"></label> | |
44 | + <div class="col-md-10"> | |
45 | + <input asp-for="End" class="form-control" /> | |
46 | + <span asp-validation-for="End" class="text-danger" /> | |
47 | + </div> | |
48 | + </div> | |
49 | + <div class="form-group"> | |
50 | + <label asp-for="RegionId" class="col-md-2 control-label"></label> | |
51 | + <div class="col-md-10"> | |
52 | + <select asp-for="RegionId" class ="form-control" asp-items="ViewBag.RegionId"></select> | |
53 | + </div> | |
54 | + </div> | |
55 | + <div class="form-group"> | |
56 | + <label asp-for="RoadId" class="col-md-2 control-label"></label> | |
57 | + <div class="col-md-10"> | |
58 | + <select asp-for="RoadId" class ="form-control" asp-items="ViewBag.RoadId"></select> | |
59 | + </div> | |
60 | + </div> | |
61 | + <div class="form-group"> | |
62 | + <label asp-for="WidthReverseRoad" class="col-md-2 control-label"></label> | |
63 | + <div class="col-md-10"> | |
64 | + <input asp-for="WidthReverseRoad" class="form-control" /> | |
65 | + <span asp-validation-for="WidthReverseRoad" class="text-danger" /> | |
66 | + </div> | |
67 | + </div> | |
68 | + <div class="form-group"> | |
69 | + <label asp-for="WidthRoadsideLeft" class="col-md-2 control-label"></label> | |
70 | + <div class="col-md-10"> | |
71 | + <input asp-for="WidthRoadsideLeft" class="form-control" /> | |
72 | + <span asp-validation-for="WidthRoadsideLeft" class="text-danger" /> | |
73 | + </div> | |
74 | + </div> | |
75 | + <div class="form-group"> | |
76 | + <label asp-for="WidthRoadsideRight" class="col-md-2 control-label"></label> | |
77 | + <div class="col-md-10"> | |
78 | + <input asp-for="WidthRoadsideRight" class="form-control" /> | |
79 | + <span asp-validation-for="WidthRoadsideRight" class="text-danger" /> | |
80 | + </div> | |
81 | + </div> | |
82 | + <div class="form-group"> | |
83 | + <label asp-for="WidthRoadwayForward" class="col-md-2 control-label"></label> | |
84 | + <div class="col-md-10"> | |
85 | + <input asp-for="WidthRoadwayForward" class="form-control" /> | |
86 | + <span asp-validation-for="WidthRoadwayForward" class="text-danger" /> | |
87 | + </div> | |
88 | + </div> | |
89 | + <div class="form-group"> | |
90 | + <label asp-for="WidthStrip" class="col-md-2 control-label"></label> | |
91 | + <div class="col-md-10"> | |
92 | + <input asp-for="WidthStrip" class="form-control" /> | |
93 | + <span asp-validation-for="WidthStrip" class="text-danger" /> | |
94 | + </div> | |
95 | + </div> | |
96 | + <div class="form-group"> | |
97 | + <div class="col-md-offset-2 col-md-10"> | |
98 | + <input type="submit" value="Create" class="btn btn-default" /> | |
99 | + </div> | |
100 | + </div> | |
101 | + </div> | |
102 | +</form> | |
103 | + | |
104 | +<div> | |
105 | + <a asp-action="Index">Back to List</a> | |
106 | +</div> | |
107 | + | |
108 | +</body> | |
109 | +</html> | ... | ... |
1 | +@model Maps.Entities.RoadWidth | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Delete</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<h3>Are you sure you want to delete this?</h3> | |
17 | +<div> | |
18 | + <h4>RoadWidth</h4> | |
19 | + <hr /> | |
20 | + <dl class="dl-horizontal"> | |
21 | + <dt> | |
22 | + @Html.DisplayNameFor(model => model.Begin) | |
23 | + </dt> | |
24 | + <dd> | |
25 | + @Html.DisplayFor(model => model.Begin) | |
26 | + </dd> | |
27 | + <dt> | |
28 | + @Html.DisplayNameFor(model => model.CountLaneLeft) | |
29 | + </dt> | |
30 | + <dd> | |
31 | + @Html.DisplayFor(model => model.CountLaneLeft) | |
32 | + </dd> | |
33 | + <dt> | |
34 | + @Html.DisplayNameFor(model => model.CountLaneRight) | |
35 | + </dt> | |
36 | + <dd> | |
37 | + @Html.DisplayFor(model => model.CountLaneRight) | |
38 | + </dd> | |
39 | + <dt> | |
40 | + @Html.DisplayNameFor(model => model.End) | |
41 | + </dt> | |
42 | + <dd> | |
43 | + @Html.DisplayFor(model => model.End) | |
44 | + </dd> | |
45 | + <dt> | |
46 | + @Html.DisplayNameFor(model => model.WidthReverseRoad) | |
47 | + </dt> | |
48 | + <dd> | |
49 | + @Html.DisplayFor(model => model.WidthReverseRoad) | |
50 | + </dd> | |
51 | + <dt> | |
52 | + @Html.DisplayNameFor(model => model.WidthRoadsideLeft) | |
53 | + </dt> | |
54 | + <dd> | |
55 | + @Html.DisplayFor(model => model.WidthRoadsideLeft) | |
56 | + </dd> | |
57 | + <dt> | |
58 | + @Html.DisplayNameFor(model => model.WidthRoadsideRight) | |
59 | + </dt> | |
60 | + <dd> | |
61 | + @Html.DisplayFor(model => model.WidthRoadsideRight) | |
62 | + </dd> | |
63 | + <dt> | |
64 | + @Html.DisplayNameFor(model => model.WidthRoadwayForward) | |
65 | + </dt> | |
66 | + <dd> | |
67 | + @Html.DisplayFor(model => model.WidthRoadwayForward) | |
68 | + </dd> | |
69 | + <dt> | |
70 | + @Html.DisplayNameFor(model => model.WidthStrip) | |
71 | + </dt> | |
72 | + <dd> | |
73 | + @Html.DisplayFor(model => model.WidthStrip) | |
74 | + </dd> | |
75 | + </dl> | |
76 | + | |
77 | + <form asp-action="Delete"> | |
78 | + <div class="form-actions no-color"> | |
79 | + <input type="submit" value="Delete" class="btn btn-default" /> | | |
80 | + <a asp-action="Index">Back to List</a> | |
81 | + </div> | |
82 | + </form> | |
83 | +</div> | |
84 | +</body> | |
85 | +</html> | ... | ... |
1 | +@model Maps.Entities.RoadWidth | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Details</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<div> | |
17 | + <h4>RoadWidth</h4> | |
18 | + <hr /> | |
19 | + <dl class="dl-horizontal"> | |
20 | + <dt> | |
21 | + @Html.DisplayNameFor(model => model.Begin) | |
22 | + </dt> | |
23 | + <dd> | |
24 | + @Html.DisplayFor(model => model.Begin) | |
25 | + </dd> | |
26 | + <dt> | |
27 | + @Html.DisplayNameFor(model => model.CountLaneLeft) | |
28 | + </dt> | |
29 | + <dd> | |
30 | + @Html.DisplayFor(model => model.CountLaneLeft) | |
31 | + </dd> | |
32 | + <dt> | |
33 | + @Html.DisplayNameFor(model => model.CountLaneRight) | |
34 | + </dt> | |
35 | + <dd> | |
36 | + @Html.DisplayFor(model => model.CountLaneRight) | |
37 | + </dd> | |
38 | + <dt> | |
39 | + @Html.DisplayNameFor(model => model.End) | |
40 | + </dt> | |
41 | + <dd> | |
42 | + @Html.DisplayFor(model => model.End) | |
43 | + </dd> | |
44 | + <dt> | |
45 | + @Html.DisplayNameFor(model => model.WidthReverseRoad) | |
46 | + </dt> | |
47 | + <dd> | |
48 | + @Html.DisplayFor(model => model.WidthReverseRoad) | |
49 | + </dd> | |
50 | + <dt> | |
51 | + @Html.DisplayNameFor(model => model.WidthRoadsideLeft) | |
52 | + </dt> | |
53 | + <dd> | |
54 | + @Html.DisplayFor(model => model.WidthRoadsideLeft) | |
55 | + </dd> | |
56 | + <dt> | |
57 | + @Html.DisplayNameFor(model => model.WidthRoadsideRight) | |
58 | + </dt> | |
59 | + <dd> | |
60 | + @Html.DisplayFor(model => model.WidthRoadsideRight) | |
61 | + </dd> | |
62 | + <dt> | |
63 | + @Html.DisplayNameFor(model => model.WidthRoadwayForward) | |
64 | + </dt> | |
65 | + <dd> | |
66 | + @Html.DisplayFor(model => model.WidthRoadwayForward) | |
67 | + </dd> | |
68 | + <dt> | |
69 | + @Html.DisplayNameFor(model => model.WidthStrip) | |
70 | + </dt> | |
71 | + <dd> | |
72 | + @Html.DisplayFor(model => model.WidthStrip) | |
73 | + </dd> | |
74 | + </dl> | |
75 | +</div> | |
76 | +<div> | |
77 | + <a asp-action="Edit" asp-route-id="@Model.RoadWidthId">Edit</a> | | |
78 | + <a asp-action="Index">Back to List</a> | |
79 | +</div> | |
80 | +</body> | |
81 | +</html> | ... | ... |
1 | +@model Maps.Entities.RoadWidth | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Edit</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<form asp-action="Edit"> | |
17 | + <div class="form-horizontal"> | |
18 | + <h4>RoadWidth</h4> | |
19 | + <hr /> | |
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | |
21 | + <input type="hidden" asp-for="RoadWidthId" /> | |
22 | + <div class="form-group"> | |
23 | + <label asp-for="Begin" class="col-md-2 control-label"></label> | |
24 | + <div class="col-md-10"> | |
25 | + <input asp-for="Begin" class="form-control" /> | |
26 | + <span asp-validation-for="Begin" class="text-danger" /> | |
27 | + </div> | |
28 | + </div> | |
29 | + <div class="form-group"> | |
30 | + <label asp-for="CountLaneLeft" class="col-md-2 control-label"></label> | |
31 | + <div class="col-md-10"> | |
32 | + <input asp-for="CountLaneLeft" class="form-control" /> | |
33 | + <span asp-validation-for="CountLaneLeft" class="text-danger" /> | |
34 | + </div> | |
35 | + </div> | |
36 | + <div class="form-group"> | |
37 | + <label asp-for="CountLaneRight" class="col-md-2 control-label"></label> | |
38 | + <div class="col-md-10"> | |
39 | + <input asp-for="CountLaneRight" class="form-control" /> | |
40 | + <span asp-validation-for="CountLaneRight" class="text-danger" /> | |
41 | + </div> | |
42 | + </div> | |
43 | + <div class="form-group"> | |
44 | + <label asp-for="End" class="col-md-2 control-label"></label> | |
45 | + <div class="col-md-10"> | |
46 | + <input asp-for="End" class="form-control" /> | |
47 | + <span asp-validation-for="End" class="text-danger" /> | |
48 | + </div> | |
49 | + </div> | |
50 | + <div class="form-group"> | |
51 | + <label asp-for="RegionId" class="control-label col-md-2"></label> | |
52 | + <div class="col-md-10"> | |
53 | + <select asp-for="RegionId" class="form-control" asp-items="ViewBag.RegionId"></select> | |
54 | + <span asp-validation-for="RegionId" class="text-danger" /> | |
55 | + </div> | |
56 | + </div> | |
57 | + <div class="form-group"> | |
58 | + <label asp-for="RoadId" class="control-label col-md-2"></label> | |
59 | + <div class="col-md-10"> | |
60 | + <select asp-for="RoadId" class="form-control" asp-items="ViewBag.RoadId"></select> | |
61 | + <span asp-validation-for="RoadId" class="text-danger" /> | |
62 | + </div> | |
63 | + </div> | |
64 | + <div class="form-group"> | |
65 | + <label asp-for="WidthReverseRoad" class="col-md-2 control-label"></label> | |
66 | + <div class="col-md-10"> | |
67 | + <input asp-for="WidthReverseRoad" class="form-control" /> | |
68 | + <span asp-validation-for="WidthReverseRoad" class="text-danger" /> | |
69 | + </div> | |
70 | + </div> | |
71 | + <div class="form-group"> | |
72 | + <label asp-for="WidthRoadsideLeft" class="col-md-2 control-label"></label> | |
73 | + <div class="col-md-10"> | |
74 | + <input asp-for="WidthRoadsideLeft" class="form-control" /> | |
75 | + <span asp-validation-for="WidthRoadsideLeft" class="text-danger" /> | |
76 | + </div> | |
77 | + </div> | |
78 | + <div class="form-group"> | |
79 | + <label asp-for="WidthRoadsideRight" class="col-md-2 control-label"></label> | |
80 | + <div class="col-md-10"> | |
81 | + <input asp-for="WidthRoadsideRight" class="form-control" /> | |
82 | + <span asp-validation-for="WidthRoadsideRight" class="text-danger" /> | |
83 | + </div> | |
84 | + </div> | |
85 | + <div class="form-group"> | |
86 | + <label asp-for="WidthRoadwayForward" class="col-md-2 control-label"></label> | |
87 | + <div class="col-md-10"> | |
88 | + <input asp-for="WidthRoadwayForward" class="form-control" /> | |
89 | + <span asp-validation-for="WidthRoadwayForward" class="text-danger" /> | |
90 | + </div> | |
91 | + </div> | |
92 | + <div class="form-group"> | |
93 | + <label asp-for="WidthStrip" class="col-md-2 control-label"></label> | |
94 | + <div class="col-md-10"> | |
95 | + <input asp-for="WidthStrip" class="form-control" /> | |
96 | + <span asp-validation-for="WidthStrip" class="text-danger" /> | |
97 | + </div> | |
98 | + </div> | |
99 | + <div class="form-group"> | |
100 | + <div class="col-md-offset-2 col-md-10"> | |
101 | + <input type="submit" value="Save" class="btn btn-default" /> | |
102 | + </div> | |
103 | + </div> | |
104 | + </div> | |
105 | +</form> | |
106 | + | |
107 | +<div> | |
108 | + <a asp-action="Index">Back to List</a> | |
109 | +</div> | |
110 | + | |
111 | +</body> | |
112 | +</html> | ... | ... |
1 | +@model IEnumerable<Maps.Entities.RoadWidth> | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Index</title> | |
13 | +</head> | |
14 | +<body> | |
15 | +<p> | |
16 | + <a asp-action="Create">Create New</a> | |
17 | +</p> | |
18 | +<table class="table"> | |
19 | + <thead> | |
20 | + <tr> | |
21 | + <th> | |
22 | + @Html.DisplayNameFor(model => model.Begin) | |
23 | + </th> | |
24 | + <th> | |
25 | + @Html.DisplayNameFor(model => model.CountLaneLeft) | |
26 | + </th> | |
27 | + <th> | |
28 | + @Html.DisplayNameFor(model => model.CountLaneRight) | |
29 | + </th> | |
30 | + <th> | |
31 | + @Html.DisplayNameFor(model => model.End) | |
32 | + </th> | |
33 | + <th> | |
34 | + @Html.DisplayNameFor(model => model.WidthReverseRoad) | |
35 | + </th> | |
36 | + <th> | |
37 | + @Html.DisplayNameFor(model => model.WidthRoadsideLeft) | |
38 | + </th> | |
39 | + <th> | |
40 | + @Html.DisplayNameFor(model => model.WidthRoadsideRight) | |
41 | + </th> | |
42 | + <th> | |
43 | + @Html.DisplayNameFor(model => model.WidthRoadwayForward) | |
44 | + </th> | |
45 | + <th> | |
46 | + @Html.DisplayNameFor(model => model.WidthStrip) | |
47 | + </th> | |
48 | + <th></th> | |
49 | + </tr> | |
50 | + </thead> | |
51 | + <tbody> | |
52 | +@foreach (var item in Model) { | |
53 | + <tr> | |
54 | + <td> | |
55 | + @Html.DisplayFor(modelItem => item.Begin) | |
56 | + </td> | |
57 | + <td> | |
58 | + @Html.DisplayFor(modelItem => item.CountLaneLeft) | |
59 | + </td> | |
60 | + <td> | |
61 | + @Html.DisplayFor(modelItem => item.CountLaneRight) | |
62 | + </td> | |
63 | + <td> | |
64 | + @Html.DisplayFor(modelItem => item.End) | |
65 | + </td> | |
66 | + <td> | |
67 | + @Html.DisplayFor(modelItem => item.WidthReverseRoad) | |
68 | + </td> | |
69 | + <td> | |
70 | + @Html.DisplayFor(modelItem => item.WidthRoadsideLeft) | |
71 | + </td> | |
72 | + <td> | |
73 | + @Html.DisplayFor(modelItem => item.WidthRoadsideRight) | |
74 | + </td> | |
75 | + <td> | |
76 | + @Html.DisplayFor(modelItem => item.WidthRoadwayForward) | |
77 | + </td> | |
78 | + <td> | |
79 | + @Html.DisplayFor(modelItem => item.WidthStrip) | |
80 | + </td> | |
81 | + <td> | |
82 | + <a asp-action="Edit" asp-route-id="@item.RoadWidthId">Edit</a> | | |
83 | + <a asp-action="Details" asp-route-id="@item.RoadWidthId">Details</a> | | |
84 | + <a asp-action="Delete" asp-route-id="@item.RoadWidthId">Delete</a> | |
85 | + </td> | |
86 | + </tr> | |
87 | +} | |
88 | + </tbody> | |
89 | +</table> | |
90 | +</body> | |
91 | +</html> | ... | ... |
1 | +@model Maps.Entities.ServiceObject | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Create</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<form asp-action="Create"> | |
17 | + <div class="form-horizontal"> | |
18 | + <h4>ServiceObject</h4> | |
19 | + <hr /> | |
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | |
21 | + <div class="form-group"> | |
22 | + <label asp-for="ArrangementElements" class="col-md-2 control-label"></label> | |
23 | + <div class="col-md-10"> | |
24 | + <input asp-for="ArrangementElements" class="form-control" /> | |
25 | + <span asp-validation-for="ArrangementElements" class="text-danger" /> | |
26 | + </div> | |
27 | + </div> | |
28 | + <div class="form-group"> | |
29 | + <label asp-for="Capacity" class="col-md-2 control-label"></label> | |
30 | + <div class="col-md-10"> | |
31 | + <input asp-for="Capacity" class="form-control" /> | |
32 | + <span asp-validation-for="Capacity" class="text-danger" /> | |
33 | + </div> | |
34 | + </div> | |
35 | + <div class="form-group"> | |
36 | + <label asp-for="DepartmentAffiliationId" class="col-md-2 control-label"></label> | |
37 | + <div class="col-md-10"> | |
38 | + <select asp-for="DepartmentAffiliationId" class ="form-control" asp-items="ViewBag.DepartmentAffiliationId"></select> | |
39 | + </div> | |
40 | + </div> | |
41 | + <div class="form-group"> | |
42 | + <label asp-for="Distance" class="col-md-2 control-label"></label> | |
43 | + <div class="col-md-10"> | |
44 | + <input asp-for="Distance" class="form-control" /> | |
45 | + <span asp-validation-for="Distance" class="text-danger" /> | |
46 | + </div> | |
47 | + </div> | |
48 | + <div class="form-group"> | |
49 | + <label asp-for="LocationAxis" class="col-md-2 control-label"></label> | |
50 | + <div class="col-md-10"> | |
51 | + <input asp-for="LocationAxis" class="form-control" /> | |
52 | + <span asp-validation-for="LocationAxis" class="text-danger" /> | |
53 | + </div> | |
54 | + </div> | |
55 | + <div class="form-group"> | |
56 | + <label asp-for="LocationLeft" class="col-md-2 control-label"></label> | |
57 | + <div class="col-md-10"> | |
58 | + <input asp-for="LocationLeft" class="form-control" /> | |
59 | + <span asp-validation-for="LocationLeft" class="text-danger" /> | |
60 | + </div> | |
61 | + </div> | |
62 | + <div class="form-group"> | |
63 | + <label asp-for="LocationRight" class="col-md-2 control-label"></label> | |
64 | + <div class="col-md-10"> | |
65 | + <input asp-for="LocationRight" class="form-control" /> | |
66 | + <span asp-validation-for="LocationRight" class="text-danger" /> | |
67 | + </div> | |
68 | + </div> | |
69 | + <div class="form-group"> | |
70 | + <label asp-for="RegionId" class="col-md-2 control-label"></label> | |
71 | + <div class="col-md-10"> | |
72 | + <select asp-for="RegionId" class ="form-control" asp-items="ViewBag.RegionId"></select> | |
73 | + </div> | |
74 | + </div> | |
75 | + <div class="form-group"> | |
76 | + <label asp-for="RoadId" class="col-md-2 control-label"></label> | |
77 | + <div class="col-md-10"> | |
78 | + <select asp-for="RoadId" class ="form-control" asp-items="ViewBag.RoadId"></select> | |
79 | + </div> | |
80 | + </div> | |
81 | + <div class="form-group"> | |
82 | + <label asp-for="ServiceObjectTypeId" class="col-md-2 control-label"></label> | |
83 | + <div class="col-md-10"> | |
84 | + <select asp-for="ServiceObjectTypeId" class ="form-control" asp-items="ViewBag.ServiceObjectTypeId"></select> | |
85 | + </div> | |
86 | + </div> | |
87 | + <div class="form-group"> | |
88 | + <label asp-for="SettlementId" class="col-md-2 control-label"></label> | |
89 | + <div class="col-md-10"> | |
90 | + <select asp-for="SettlementId" class ="form-control" asp-items="ViewBag.SettlementId"></select> | |
91 | + </div> | |
92 | + </div> | |
93 | + <div class="form-group"> | |
94 | + <div class="col-md-offset-2 col-md-10"> | |
95 | + <input type="submit" value="Create" class="btn btn-default" /> | |
96 | + </div> | |
97 | + </div> | |
98 | + </div> | |
99 | +</form> | |
100 | + | |
101 | +<div> | |
102 | + <a asp-action="Index">Back to List</a> | |
103 | +</div> | |
104 | + | |
105 | +</body> | |
106 | +</html> | ... | ... |
1 | +@model Maps.Entities.ServiceObject | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Delete</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<h3>Are you sure you want to delete this?</h3> | |
17 | +<div> | |
18 | + <h4>ServiceObject</h4> | |
19 | + <hr /> | |
20 | + <dl class="dl-horizontal"> | |
21 | + <dt> | |
22 | + @Html.DisplayNameFor(model => model.ArrangementElements) | |
23 | + </dt> | |
24 | + <dd> | |
25 | + @Html.DisplayFor(model => model.ArrangementElements) | |
26 | + </dd> | |
27 | + <dt> | |
28 | + @Html.DisplayNameFor(model => model.Capacity) | |
29 | + </dt> | |
30 | + <dd> | |
31 | + @Html.DisplayFor(model => model.Capacity) | |
32 | + </dd> | |
33 | + <dt> | |
34 | + @Html.DisplayNameFor(model => model.Distance) | |
35 | + </dt> | |
36 | + <dd> | |
37 | + @Html.DisplayFor(model => model.Distance) | |
38 | + </dd> | |
39 | + <dt> | |
40 | + @Html.DisplayNameFor(model => model.LocationAxis) | |
41 | + </dt> | |
42 | + <dd> | |
43 | + @Html.DisplayFor(model => model.LocationAxis) | |
44 | + </dd> | |
45 | + <dt> | |
46 | + @Html.DisplayNameFor(model => model.LocationLeft) | |
47 | + </dt> | |
48 | + <dd> | |
49 | + @Html.DisplayFor(model => model.LocationLeft) | |
50 | + </dd> | |
51 | + <dt> | |
52 | + @Html.DisplayNameFor(model => model.LocationRight) | |
53 | + </dt> | |
54 | + <dd> | |
55 | + @Html.DisplayFor(model => model.LocationRight) | |
56 | + </dd> | |
57 | + </dl> | |
58 | + | |
59 | + <form asp-action="Delete"> | |
60 | + <div class="form-actions no-color"> | |
61 | + <input type="submit" value="Delete" class="btn btn-default" /> | | |
62 | + <a asp-action="Index">Back to List</a> | |
63 | + </div> | |
64 | + </form> | |
65 | +</div> | |
66 | +</body> | |
67 | +</html> | ... | ... |
1 | +@model Maps.Entities.ServiceObject | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Details</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<div> | |
17 | + <h4>ServiceObject</h4> | |
18 | + <hr /> | |
19 | + <dl class="dl-horizontal"> | |
20 | + <dt> | |
21 | + @Html.DisplayNameFor(model => model.ArrangementElements) | |
22 | + </dt> | |
23 | + <dd> | |
24 | + @Html.DisplayFor(model => model.ArrangementElements) | |
25 | + </dd> | |
26 | + <dt> | |
27 | + @Html.DisplayNameFor(model => model.Capacity) | |
28 | + </dt> | |
29 | + <dd> | |
30 | + @Html.DisplayFor(model => model.Capacity) | |
31 | + </dd> | |
32 | + <dt> | |
33 | + @Html.DisplayNameFor(model => model.Distance) | |
34 | + </dt> | |
35 | + <dd> | |
36 | + @Html.DisplayFor(model => model.Distance) | |
37 | + </dd> | |
38 | + <dt> | |
39 | + @Html.DisplayNameFor(model => model.LocationAxis) | |
40 | + </dt> | |
41 | + <dd> | |
42 | + @Html.DisplayFor(model => model.LocationAxis) | |
43 | + </dd> | |
44 | + <dt> | |
45 | + @Html.DisplayNameFor(model => model.LocationLeft) | |
46 | + </dt> | |
47 | + <dd> | |
48 | + @Html.DisplayFor(model => model.LocationLeft) | |
49 | + </dd> | |
50 | + <dt> | |
51 | + @Html.DisplayNameFor(model => model.LocationRight) | |
52 | + </dt> | |
53 | + <dd> | |
54 | + @Html.DisplayFor(model => model.LocationRight) | |
55 | + </dd> | |
56 | + </dl> | |
57 | +</div> | |
58 | +<div> | |
59 | + <a asp-action="Edit" asp-route-id="@Model.ServiceObjectId">Edit</a> | | |
60 | + <a asp-action="Index">Back to List</a> | |
61 | +</div> | |
62 | +</body> | |
63 | +</html> | ... | ... |
1 | +@model Maps.Entities.ServiceObject | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Edit</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<form asp-action="Edit"> | |
17 | + <div class="form-horizontal"> | |
18 | + <h4>ServiceObject</h4> | |
19 | + <hr /> | |
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | |
21 | + <input type="hidden" asp-for="ServiceObjectId" /> | |
22 | + <div class="form-group"> | |
23 | + <label asp-for="ArrangementElements" class="col-md-2 control-label"></label> | |
24 | + <div class="col-md-10"> | |
25 | + <input asp-for="ArrangementElements" class="form-control" /> | |
26 | + <span asp-validation-for="ArrangementElements" class="text-danger" /> | |
27 | + </div> | |
28 | + </div> | |
29 | + <div class="form-group"> | |
30 | + <label asp-for="Capacity" class="col-md-2 control-label"></label> | |
31 | + <div class="col-md-10"> | |
32 | + <input asp-for="Capacity" class="form-control" /> | |
33 | + <span asp-validation-for="Capacity" class="text-danger" /> | |
34 | + </div> | |
35 | + </div> | |
36 | + <div class="form-group"> | |
37 | + <label asp-for="DepartmentAffiliationId" class="control-label col-md-2"></label> | |
38 | + <div class="col-md-10"> | |
39 | + <select asp-for="DepartmentAffiliationId" class="form-control" asp-items="ViewBag.DepartmentAffiliationId"></select> | |
40 | + <span asp-validation-for="DepartmentAffiliationId" class="text-danger" /> | |
41 | + </div> | |
42 | + </div> | |
43 | + <div class="form-group"> | |
44 | + <label asp-for="Distance" class="col-md-2 control-label"></label> | |
45 | + <div class="col-md-10"> | |
46 | + <input asp-for="Distance" class="form-control" /> | |
47 | + <span asp-validation-for="Distance" class="text-danger" /> | |
48 | + </div> | |
49 | + </div> | |
50 | + <div class="form-group"> | |
51 | + <label asp-for="LocationAxis" class="col-md-2 control-label"></label> | |
52 | + <div class="col-md-10"> | |
53 | + <input asp-for="LocationAxis" class="form-control" /> | |
54 | + <span asp-validation-for="LocationAxis" class="text-danger" /> | |
55 | + </div> | |
56 | + </div> | |
57 | + <div class="form-group"> | |
58 | + <label asp-for="LocationLeft" class="col-md-2 control-label"></label> | |
59 | + <div class="col-md-10"> | |
60 | + <input asp-for="LocationLeft" class="form-control" /> | |
61 | + <span asp-validation-for="LocationLeft" class="text-danger" /> | |
62 | + </div> | |
63 | + </div> | |
64 | + <div class="form-group"> | |
65 | + <label asp-for="LocationRight" class="col-md-2 control-label"></label> | |
66 | + <div class="col-md-10"> | |
67 | + <input asp-for="LocationRight" class="form-control" /> | |
68 | + <span asp-validation-for="LocationRight" class="text-danger" /> | |
69 | + </div> | |
70 | + </div> | |
71 | + <div class="form-group"> | |
72 | + <label asp-for="RegionId" class="control-label col-md-2"></label> | |
73 | + <div class="col-md-10"> | |
74 | + <select asp-for="RegionId" class="form-control" asp-items="ViewBag.RegionId"></select> | |
75 | + <span asp-validation-for="RegionId" class="text-danger" /> | |
76 | + </div> | |
77 | + </div> | |
78 | + <div class="form-group"> | |
79 | + <label asp-for="RoadId" class="control-label col-md-2"></label> | |
80 | + <div class="col-md-10"> | |
81 | + <select asp-for="RoadId" class="form-control" asp-items="ViewBag.RoadId"></select> | |
82 | + <span asp-validation-for="RoadId" class="text-danger" /> | |
83 | + </div> | |
84 | + </div> | |
85 | + <div class="form-group"> | |
86 | + <label asp-for="ServiceObjectTypeId" class="control-label col-md-2"></label> | |
87 | + <div class="col-md-10"> | |
88 | + <select asp-for="ServiceObjectTypeId" class="form-control" asp-items="ViewBag.ServiceObjectTypeId"></select> | |
89 | + <span asp-validation-for="ServiceObjectTypeId" class="text-danger" /> | |
90 | + </div> | |
91 | + </div> | |
92 | + <div class="form-group"> | |
93 | + <label asp-for="SettlementId" class="control-label col-md-2"></label> | |
94 | + <div class="col-md-10"> | |
95 | + <select asp-for="SettlementId" class="form-control" asp-items="ViewBag.SettlementId"></select> | |
96 | + <span asp-validation-for="SettlementId" class="text-danger" /> | |
97 | + </div> | |
98 | + </div> | |
99 | + <div class="form-group"> | |
100 | + <div class="col-md-offset-2 col-md-10"> | |
101 | + <input type="submit" value="Save" class="btn btn-default" /> | |
102 | + </div> | |
103 | + </div> | |
104 | + </div> | |
105 | +</form> | |
106 | + | |
107 | +<div> | |
108 | + <a asp-action="Index">Back to List</a> | |
109 | +</div> | |
110 | + | |
111 | +</body> | |
112 | +</html> | ... | ... |
1 | +@model IEnumerable<Maps.Entities.ServiceObject> | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Index</title> | |
13 | +</head> | |
14 | +<body> | |
15 | +<p> | |
16 | + <a asp-action="Create">Create New</a> | |
17 | +</p> | |
18 | +<table class="table"> | |
19 | + <thead> | |
20 | + <tr> | |
21 | + <th> | |
22 | + @Html.DisplayNameFor(model => model.ArrangementElements) | |
23 | + </th> | |
24 | + <th> | |
25 | + @Html.DisplayNameFor(model => model.Capacity) | |
26 | + </th> | |
27 | + <th> | |
28 | + @Html.DisplayNameFor(model => model.Distance) | |
29 | + </th> | |
30 | + <th> | |
31 | + @Html.DisplayNameFor(model => model.LocationAxis) | |
32 | + </th> | |
33 | + <th> | |
34 | + @Html.DisplayNameFor(model => model.LocationLeft) | |
35 | + </th> | |
36 | + <th> | |
37 | + @Html.DisplayNameFor(model => model.LocationRight) | |
38 | + </th> | |
39 | + <th></th> | |
40 | + </tr> | |
41 | + </thead> | |
42 | + <tbody> | |
43 | +@foreach (var item in Model) { | |
44 | + <tr> | |
45 | + <td> | |
46 | + @Html.DisplayFor(modelItem => item.ArrangementElements) | |
47 | + </td> | |
48 | + <td> | |
49 | + @Html.DisplayFor(modelItem => item.Capacity) | |
50 | + </td> | |
51 | + <td> | |
52 | + @Html.DisplayFor(modelItem => item.Distance) | |
53 | + </td> | |
54 | + <td> | |
55 | + @Html.DisplayFor(modelItem => item.LocationAxis) | |
56 | + </td> | |
57 | + <td> | |
58 | + @Html.DisplayFor(modelItem => item.LocationLeft) | |
59 | + </td> | |
60 | + <td> | |
61 | + @Html.DisplayFor(modelItem => item.LocationRight) | |
62 | + </td> | |
63 | + <td> | |
64 | + <a asp-action="Edit" asp-route-id="@item.ServiceObjectId">Edit</a> | | |
65 | + <a asp-action="Details" asp-route-id="@item.ServiceObjectId">Details</a> | | |
66 | + <a asp-action="Delete" asp-route-id="@item.ServiceObjectId">Delete</a> | |
67 | + </td> | |
68 | + </tr> | |
69 | +} | |
70 | + </tbody> | |
71 | +</table> | |
72 | +</body> | |
73 | +</html> | ... | ... |
1 | +@model Maps.Entities.ServiceObjectType | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Create</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<form asp-action="Create"> | |
17 | + <div class="form-horizontal"> | |
18 | + <h4>ServiceObjectType</h4> | |
19 | + <hr /> | |
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | |
21 | + <div class="form-group"> | |
22 | + <label asp-for="Name" class="col-md-2 control-label"></label> | |
23 | + <div class="col-md-10"> | |
24 | + <input asp-for="Name" class="form-control" /> | |
25 | + <span asp-validation-for="Name" class="text-danger" /> | |
26 | + </div> | |
27 | + </div> | |
28 | + <div class="form-group"> | |
29 | + <div class="col-md-offset-2 col-md-10"> | |
30 | + <input type="submit" value="Create" class="btn btn-default" /> | |
31 | + </div> | |
32 | + </div> | |
33 | + </div> | |
34 | +</form> | |
35 | + | |
36 | +<div> | |
37 | + <a asp-action="Index">Back to List</a> | |
38 | +</div> | |
39 | + | |
40 | +</body> | |
41 | +</html> | ... | ... |
1 | +@model Maps.Entities.ServiceObjectType | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Delete</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<h3>Are you sure you want to delete this?</h3> | |
17 | +<div> | |
18 | + <h4>ServiceObjectType</h4> | |
19 | + <hr /> | |
20 | + <dl class="dl-horizontal"> | |
21 | + <dt> | |
22 | + @Html.DisplayNameFor(model => model.Name) | |
23 | + </dt> | |
24 | + <dd> | |
25 | + @Html.DisplayFor(model => model.Name) | |
26 | + </dd> | |
27 | + </dl> | |
28 | + | |
29 | + <form asp-action="Delete"> | |
30 | + <div class="form-actions no-color"> | |
31 | + <input type="submit" value="Delete" class="btn btn-default" /> | | |
32 | + <a asp-action="Index">Back to List</a> | |
33 | + </div> | |
34 | + </form> | |
35 | +</div> | |
36 | +</body> | |
37 | +</html> | ... | ... |
1 | +@model Maps.Entities.ServiceObjectType | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Details</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<div> | |
17 | + <h4>ServiceObjectType</h4> | |
18 | + <hr /> | |
19 | + <dl class="dl-horizontal"> | |
20 | + <dt> | |
21 | + @Html.DisplayNameFor(model => model.Name) | |
22 | + </dt> | |
23 | + <dd> | |
24 | + @Html.DisplayFor(model => model.Name) | |
25 | + </dd> | |
26 | + </dl> | |
27 | +</div> | |
28 | +<div> | |
29 | + <a asp-action="Edit" asp-route-id="@Model.ServiceObjectTypeId">Edit</a> | | |
30 | + <a asp-action="Index">Back to List</a> | |
31 | +</div> | |
32 | +</body> | |
33 | +</html> | ... | ... |
1 | +@model Maps.Entities.ServiceObjectType | |
2 | + | |
3 | +@{ | |
4 | + Layout = null; | |
5 | +} | |
6 | + | |
7 | +<!DOCTYPE html> | |
8 | + | |
9 | +<html> | |
10 | +<head> | |
11 | + <meta name="viewport" content="width=device-width" /> | |
12 | + <title>Edit</title> | |
13 | +</head> | |
14 | +<body> | |
15 | + | |
16 | +<form asp-action="Edit"> | |
17 | + <div class="form-horizontal"> | |
18 | + <h4>ServiceObjectType</h4> | |
19 | + <hr /> | |
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | |
21 | + <input type="hidden" asp-for="ServiceObjectTypeId" /> | |
22 | + <div class="form-group"> | |
23 | + <label asp-for="Name" class="col-md-2 control-label"></label> | |
24 | + <div class="col-md-10"> | |
25 | + <input asp-for="Name" class="form-control" /> | |
26 | + <span asp-validation-for="Name" class="text-danger" /> | |
27 | + </div> | |
28 | + </div> | |
29 | + <div class="form-group"> | |
30 | + <div class="col-md-offset-2 col-md-10"> | |
31 | + <input type="submit" value="Save" class="btn btn-default" /> | |
32 | + </div> | |
33 | + </div> | |
34 | + </div> | |
35 | +</form> | |
36 | + | |
37 | +<div> | |
38 | + <a asp-action="Index">Back to List</a> | |
39 | +</div> | |
40 | + | |
41 | +</body> | |
42 | +</html> | ... | ... |