();
+ list.Add(new SelectListItem() { Selected = true, Value = string.Empty, Text = "Select a Document to Generate" });
+ list.AddRange(this.DocumentTemplates.ToSelectListItems());
+ return list;
+ }
+ }
+
+ public string PrimaryDeviceSerialNumber
+ {
+ get
+ {
+ var assignedDevice = User.DeviceUserAssignments.Where(d => !d.UnassignedDate.HasValue).FirstOrDefault();
+ if (assignedDevice == null)
+ {
+ return null;
+ }
+ else
+ {
+ return assignedDevice.DeviceSerialNumber;
+ }
+ }
+ }
+ }
}
\ No newline at end of file
diff --git a/Disco.Web/Properties/AssemblyInfo.cs b/Disco.Web/Properties/AssemblyInfo.cs
index 82ba877b..92e81e65 100644
--- a/Disco.Web/Properties/AssemblyInfo.cs
+++ b/Disco.Web/Properties/AssemblyInfo.cs
@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
-[assembly: AssemblyVersion("1.2.0221.1820")]
-[assembly: AssemblyFileVersion("1.2.0221.1820")]
+[assembly: AssemblyVersion("1.2.0225.1951")]
+[assembly: AssemblyFileVersion("1.2.0225.1951")]
diff --git a/Disco.Web/Views/Device/Show.cshtml b/Disco.Web/Views/Device/Show.cshtml
index 9ef07d2b..0506066b 100644
--- a/Disco.Web/Views/Device/Show.cshtml
+++ b/Disco.Web/Views/Device/Show.cshtml
@@ -103,7 +103,7 @@
Batch:
|
- @Html.DropDownListFor(m => m.Device.DeviceBatchId, Model.DeviceBatches)
+ @Html.DropDownListFor(m => m.Device.DeviceBatchId, Model.DeviceBatches.ToSelectListItems(Model.Device.DeviceBatchId))
@AjaxHelpers.AjaxLoader()
|