@model Disco.Web.Models.Device.ImportModel @{ ViewBag.Title = Html.ToBreadcrumb("Devices", MVC.Device.Index(), "Import/Export Devices"); }
@using (Html.BeginForm(MVC.API.Device.ImportParse(), FormMethod.Post, new { enctype = "multipart/form-data" })) { @Html.ValidationSummary()

Import Devices

@Html.LabelFor(m => m.ImportFile)

}

CSV Import Specification

Format

Fields

The following fields/columns are available for to the import file. The order of the fields must be as shown below.
Field Name Description
Serial Number Required - must contain the device serial number (maximum of 60 characters).
Device Model The ID for the Device Model (Show IDs). Default: 1 [@Html.ActionLink(Model.DeviceModels[0].ToString(), MVC.Config.DeviceModel.Index(Model.DeviceModels[0].Id))]
Device Profile The ID for the Device Profile (Show IDs). Default: 1 [@Html.ActionLink(Model.DeviceProfiles[0].ToString(), MVC.Config.DeviceProfile.Index(Model.DeviceProfiles[0].Id))]
Device Batch The ID for the Device Batch (Show IDs). Default: <None>
Assigned User The ID for the User assigned to the device. Default: <None>
Location Updates the Location of the device. Maximum of 250 characters. Default: <None>
Asset Number Updates the Asset Number of the device. Maximum of 40 characters. Default: <None>
@foreach (var dm in Model.DeviceModels) { }
ID Description Manufacturer Model
@Html.ActionLink(dm.Id.ToString(), MVC.Config.DeviceModel.Index(dm.Id)) @dm.ToString() @dm.Manufacturer @dm.Model
@foreach (var dp in Model.DeviceProfiles) { }
ID Name Short Name Description
@Html.ActionLink(dp.Id.ToString(), MVC.Config.DeviceProfile.Index(dp.Id)) @dp.Name @dp.ShortName @dp.Description
@foreach (var db in Model.DeviceBatches) { }
ID Name Purchase Date
@Html.ActionLink(db.Id.ToString(), MVC.Config.DeviceBatch.Index(db.Id)) @db.Name @CommonHelpers.FriendlyDate(db.PurchaseDate)
@Html.ActionLinkButton("Export All Devices", MVC.API.Device.ExportAllDevices())