Update to database version 3.

This commit is contained in:
2018-04-15 17:51:07 +01:00
parent 3ded57a24d
commit ae10cca33a
51 changed files with 1278 additions and 1214 deletions

View File

@@ -34,21 +34,21 @@
@using System.IO
@model Computer
@if(File.Exists(System.IO.Path.Combine(ViewBag.WebRootPath, "assets/logos/computers", Model.Company.Id + ".gif")))
@if(File.Exists(System.IO.Path.Combine(ViewBag.WebRootPath, "assets/logos", Model.Company.Id + ".gif")))
{
<img src="@(System.IO.Path.Combine("/assets/logos/computers", Model.Company.Id + ".gif"))"
<img src="@(System.IO.Path.Combine("/assets/logos", Model.Company.Id + ".gif"))"
alt="">
}
@if(File.Exists(System.IO.Path.Combine(ViewBag.WebRootPath, "assets/logos/computers", Model.Company.Id + ".jpg")))
@if(File.Exists(System.IO.Path.Combine(ViewBag.WebRootPath, "assets/logos", Model.Company.Id + ".jpg")))
{
<img src="@(System.IO.Path.Combine("/assets/logos/computers", Model.Company.Id + ".jpg"))"
<img src="@(System.IO.Path.Combine("/assets/logos", Model.Company.Id + ".jpg"))"
alt="">
}
@if(File.Exists(System.IO.Path.Combine(ViewBag.WebRootPath, "assets/logos/computers", Model.Company.Id + ".png")))
@if(File.Exists(System.IO.Path.Combine(ViewBag.WebRootPath, "assets/logos", Model.Company.Id + ".png")))
{
<img src="@(System.IO.Path.Combine("/assets/logos/computers", Model.Company.Id + ".png"))"
<img src="@(System.IO.Path.Combine("/assets/logos", Model.Company.Id + ".png"))"
alt="">
}
@@ -294,17 +294,17 @@
Sound processor
</div>
</th>
@if(Model.Spu.Id > 1)
@if(Model.SoundSynth.Id > 1)
{
if(Model.Spu.Id > 2)
if(Model.SoundSynth.Id > 2)
{
if(Model.SoundChannels > 0)
{
<td>@Model.Spu.Name (@Model.SoundChannels channels)</td>
<td>@Model.SoundSynth.Name (@Model.SoundChannels channels)</td>
}
else
{
<td>@Model.Spu.Name</td>
<td>@Model.SoundSynth.Name</td>
}
}
else
@@ -321,17 +321,17 @@
Music synthetizer
</div>
</th>
@if(Model.Mpu.Id > 1)
@if(Model.MusicSynth.Id > 1)
{
if(Model.Mpu.Id > 2)
if(Model.MusicSynth.Id > 2)
{
if(Model.MusicChannels > 0)
{
<td>@Model.Mpu.Name (@Model.MusicChannels channels)</td>
<td>@Model.MusicSynth.Name (@Model.MusicChannels channels)</td>
}
else
{
<td>@Model.Mpu.Name</td>
<td>@Model.MusicSynth.Name</td>
}
}
else