\r\n");
#line 9 "..\..\Views\Device\ImportExport.cshtml"
#line default
#line hidden
#line 9 "..\..\Views\Device\ImportExport.cshtml"
using (Html.BeginForm(MVC.API.Device.ImportParse(), FormMethod.Post, new { enctype = "multipart/form-data" }))
{
#line default
#line hidden
#line 11 "..\..\Views\Device\ImportExport.cshtml"
Write(Html.ValidationSummary());
#line default
#line hidden
#line 11 "..\..\Views\Device\ImportExport.cshtml"
#line default
#line hidden
WriteLiteral("
\r\n");
#line 28 "..\..\Views\Device\ImportExport.cshtml"
}
#line default
#line hidden
WriteLiteral("
\r\n
CSV Import Specification
\r\n
Format
\r\n
\r\n The import file must be in comma-separated values fo" +
"rmat (CSV Reference).
The first line will be ignored (it is assumed the file includes headers).
Be conscious of editors removing leading zeros from serial numbers (ie: Microsoft Excel).
Fields
The following fields/columns are available for to the import file. The o" +
"rder of the fields must be as shown below.
\r\n \r\n \r\n \r\n | 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 [");
#line 54 "..\..\Views\Device\ImportExport.cshtml"
Write(Html.ActionLink(Model.DeviceModels[0].ToString(), MVC.Config.DeviceModel.Index(Model.DeviceModels[0].Id)));
#line default
#line hidden
WriteLiteral("]\r\n | \r\n
\r\n \r\n " +
" | Device Profile | \r\n The ID for the Device Profile (Show IDs). Default: 1 [");
#line 59 "..\..\Views\Device\ImportExport.cshtml"
Write(Html.ActionLink(Model.DeviceProfiles[0].ToString(), MVC.Config.DeviceProfile.Index(Model.DeviceProfiles[0].Id)));
#line default
#line hidden
WriteLiteral("]\r\n | \r\n
\r\n \r\n " +
" | Device Batch | \r\n The ID for the Device Batch (Show IDs). Default: <None>\r\n | \r\n
\r\n " +
" \r\n | Assigned User | \r\n " +
" The ID for the User assigned to the device. Default: <None>\r\n | \r\n
\r\n " +
" \r\n | Location | \r\n Updates the Location of the device. Maximum of 250 characters. Default: <None>\r\n | \r\n
\r\n " +
" \r\n | Asset Number | \r\n " +
" Updates the Asset Number of the device. Maximum of 40 characters. Defau" +
"lt: <None>\r\n | \r\n
\r\n " +
" \r\n
\r\n\r\n\r\n \r\n
| ID |
Description |
Manufacturer |
Model |
");
#line 97 "..\..\Views\Device\ImportExport.cshtml"
#line default
#line hidden
#line 97 "..\..\Views\Device\ImportExport.cshtml"
foreach (var dm in Model.DeviceModels)
{
#line default
#line hidden
WriteLiteral(" \r\n | ");
#line 100 "..\..\Views\Device\ImportExport.cshtml"
Write(Html.ActionLink(dm.Id.ToString(), MVC.Config.DeviceModel.Index(dm.Id)));
#line default
#line hidden
WriteLiteral(" | \r\n ");
#line 101 "..\..\Views\Device\ImportExport.cshtml"
Write(dm.ToString());
#line default
#line hidden
WriteLiteral(" | \r\n ");
#line 102 "..\..\Views\Device\ImportExport.cshtml"
Write(dm.Manufacturer);
#line default
#line hidden
WriteLiteral(" | \r\n ");
#line 103 "..\..\Views\Device\ImportExport.cshtml"
Write(dm.Model);
#line default
#line hidden
WriteLiteral(" | \r\n
\r\n");
#line 105 "..\..\Views\Device\ImportExport.cshtml"
}
#line default
#line hidden
WriteLiteral(" \r\n
\r\n
\r\n\r\n \r\n
| ID |
Name |
Short Name |
Description |
");
#line 121 "..\..\Views\Device\ImportExport.cshtml"
#line default
#line hidden
#line 121 "..\..\Views\Device\ImportExport.cshtml"
foreach (var dp in Model.DeviceProfiles)
{
#line default
#line hidden
WriteLiteral(" \r\n | ");
#line 124 "..\..\Views\Device\ImportExport.cshtml"
Write(Html.ActionLink(dp.Id.ToString(), MVC.Config.DeviceProfile.Index(dp.Id)));
#line default
#line hidden
WriteLiteral(" | \r\n ");
#line 125 "..\..\Views\Device\ImportExport.cshtml"
Write(dp.Name);
#line default
#line hidden
WriteLiteral(" | \r\n ");
#line 126 "..\..\Views\Device\ImportExport.cshtml"
Write(dp.ShortName);
#line default
#line hidden
WriteLiteral(" | \r\n ");
#line 127 "..\..\Views\Device\ImportExport.cshtml"
Write(dp.Description);
#line default
#line hidden
WriteLiteral(" | \r\n
\r\n");
#line 129 "..\..\Views\Device\ImportExport.cshtml"
}
#line default
#line hidden
WriteLiteral(" \r\n
\r\n
\r\n\r\n \r\n
| ID |
Name |
Purchase Date |
");
#line 144 "..\..\Views\Device\ImportExport.cshtml"
#line default
#line hidden
#line 144 "..\..\Views\Device\ImportExport.cshtml"
foreach (var db in Model.DeviceBatches)
{
#line default
#line hidden
WriteLiteral(" \r\n | ");
#line 147 "..\..\Views\Device\ImportExport.cshtml"
Write(Html.ActionLink(db.Id.ToString(), MVC.Config.DeviceBatch.Index(db.Id)));
#line default
#line hidden
WriteLiteral(" | \r\n ");
#line 148 "..\..\Views\Device\ImportExport.cshtml"
Write(db.Name);
#line default
#line hidden
WriteLiteral(" | \r\n ");
#line 149 "..\..\Views\Device\ImportExport.cshtml"
Write(CommonHelpers.FriendlyDate(db.PurchaseDate));
#line default
#line hidden
WriteLiteral(" | \r\n
\r\n");
#line 151 "..\..\Views\Device\ImportExport.cshtml"
}
#line default
#line hidden
WriteLiteral(" \r\n
\r\n
\r\n\r\n \r\n \r\n
\r\n");
#line 192 "..\..\Views\Device\ImportExport.cshtml"
}
#line default
#line hidden
}
}
}
#pragma warning restore 1591