feature: support importing device computer name
This commit is contained in:
@@ -5,6 +5,7 @@ using Disco.Models.UI.Device;
|
||||
using Disco.Services;
|
||||
using Disco.Services.Authorization;
|
||||
using Disco.Services.Devices.Exporting;
|
||||
using Disco.Services.Interop.ActiveDirectory;
|
||||
using Disco.Services.Plugins.Features.DetailsProvider;
|
||||
using Disco.Services.Plugins.Features.UIExtension;
|
||||
using Disco.Services.Users;
|
||||
@@ -77,6 +78,16 @@ namespace Disco.Web.Controllers
|
||||
if (!string.IsNullOrEmpty(m.Device.SerialNumber) && Database.Devices.Count(d => d.SerialNumber == m.Device.SerialNumber) > 0)
|
||||
ModelState.AddModelError("Device.SerialNumber", "A Device what this Serial Number already exists");
|
||||
}
|
||||
if (string.IsNullOrWhiteSpace(m.Device.DeviceDomainId))
|
||||
m.Device.DeviceDomainId = null;
|
||||
try
|
||||
{
|
||||
m.Device.DeviceDomainId = ActiveDirectory.ParseDomainAccountId(m.Device.DeviceDomainId);
|
||||
}
|
||||
catch (ArgumentException ex)
|
||||
{
|
||||
ModelState.AddModelError("Device.DeviceDomainId", ex.Message);
|
||||
}
|
||||
|
||||
if (ModelState.IsValid)
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
var hasDeviceBatch = Authorization.Has(Claims.Device.Properties.DeviceBatch);
|
||||
var hasDeviceProfile = Authorization.Has(Claims.Device.Properties.DeviceProfile);
|
||||
var hasAssignUser = Authorization.Has(Claims.Device.Actions.AssignUser);
|
||||
|
||||
|
||||
}
|
||||
@using (Html.BeginForm())
|
||||
{
|
||||
@@ -17,19 +17,31 @@
|
||||
<div class="form" style="width: 450px">
|
||||
<table>
|
||||
<tr>
|
||||
<th>Serial Number:
|
||||
<th>
|
||||
Serial Number (required):
|
||||
</th>
|
||||
<td>
|
||||
@Html.TextBoxFor(model => model.Device.SerialNumber)<br />
|
||||
@Html.ValidationMessageFor(model => model.Device.SerialNumber)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
Computer Name:
|
||||
</th>
|
||||
<td>
|
||||
@Html.TextBoxFor(model => model.Device.DeviceDomainId)<br />
|
||||
@Html.ValidationMessageFor(model => model.Device.DeviceDomainId)
|
||||
</td>
|
||||
</tr>
|
||||
@if (hasAssetNumber)
|
||||
{
|
||||
<tr>
|
||||
<th>Asset Number:
|
||||
<th>
|
||||
Asset Number:
|
||||
</th>
|
||||
<td>@Html.TextBoxFor(model => model.Device.AssetNumber)<br />
|
||||
<td>
|
||||
@Html.TextBoxFor(model => model.Device.AssetNumber)<br />
|
||||
@Html.ValidationMessageFor(model => model.Device.AssetNumber)
|
||||
</td>
|
||||
</tr>
|
||||
@@ -37,9 +49,11 @@
|
||||
@if (hasLocation)
|
||||
{
|
||||
<tr>
|
||||
<th>Location:
|
||||
<th>
|
||||
Location:
|
||||
</th>
|
||||
<td>@Html.TextBoxFor(model => model.Device.Location)<br />
|
||||
<td>
|
||||
@Html.TextBoxFor(model => model.Device.Location)<br />
|
||||
@Html.ValidationMessageFor(model => model.Device.Location)
|
||||
</td>
|
||||
</tr>
|
||||
@@ -47,7 +61,8 @@
|
||||
@if (hasDeviceBatch)
|
||||
{
|
||||
<tr>
|
||||
<th>Device Batch:
|
||||
<th>
|
||||
Device Batch:
|
||||
</th>
|
||||
<td>
|
||||
@Html.DropDownListFor(model => model.Device.DeviceBatchId, Model.DeviceBatches.ToSelectListItems())
|
||||
@@ -59,7 +74,8 @@
|
||||
@if (hasDeviceProfile)
|
||||
{
|
||||
<tr>
|
||||
<th>Device Profile:
|
||||
<th>
|
||||
Device Profile:
|
||||
</th>
|
||||
<td>
|
||||
@Html.DropDownListFor(model => model.Device.DeviceProfileId, Model.DeviceProfiles.ToSelectListItems(Model.DefaultDeviceProfileId))<br />
|
||||
@@ -70,7 +86,8 @@
|
||||
@if (hasAssignUser)
|
||||
{
|
||||
<tr>
|
||||
<th>Assigned User:
|
||||
<th>
|
||||
Assigned User:
|
||||
</th>
|
||||
<td>
|
||||
@Html.TextBoxFor(model => model.Device.AssignedUserId)<br />
|
||||
@@ -87,13 +104,20 @@
|
||||
|
||||
<input type="submit" class="button" value="Add" />
|
||||
</p>
|
||||
<script type="text/javascript">
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
var $SerialNumber = $('#Device_SerialNumber').focus();
|
||||
|
||||
$SerialNumber.keydown(function (e) {
|
||||
if (e.which == 13) {
|
||||
$('#Device_DeviceDomainId').focus();
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
@if (hasAssignUser)
|
||||
{<text>
|
||||
$SerialNumber.keydown(function (e) {
|
||||
$('#Device_DeviceDomainId').keydown(function (e) {
|
||||
if (e.which == 13) {
|
||||
$('#Device_AssignedUserId').focus();
|
||||
return false;
|
||||
@@ -144,6 +168,6 @@
|
||||
};
|
||||
</text>}
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
</div>
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.34014
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
@@ -27,7 +27,6 @@ namespace Disco.Web.Views.Device
|
||||
using System.Web.UI;
|
||||
using System.Web.WebPages;
|
||||
using Disco;
|
||||
using Disco.BI.Extensions;
|
||||
using Disco.Models.Repository;
|
||||
using Disco.Services;
|
||||
using Disco.Services.Authorization;
|
||||
@@ -56,7 +55,7 @@ namespace Disco.Web.Views.Device
|
||||
var hasDeviceBatch = Authorization.Has(Claims.Device.Properties.DeviceBatch);
|
||||
var hasDeviceProfile = Authorization.Has(Claims.Device.Properties.DeviceProfile);
|
||||
var hasAssignUser = Authorization.Has(Claims.Device.Actions.AssignUser);
|
||||
|
||||
|
||||
|
||||
|
||||
#line default
|
||||
@@ -91,13 +90,13 @@ WriteLiteral(" class=\"form\"");
|
||||
|
||||
WriteLiteral(" style=\"width: 450px\"");
|
||||
|
||||
WriteLiteral(">\r\n <table>\r\n <tr>\r\n <th>Serial Number:\r\n " +
|
||||
" </th>\r\n <td>\r\n");
|
||||
WriteLiteral(">\r\n <table>\r\n <tr>\r\n <th>\r\n S" +
|
||||
"erial Number (required):\r\n </th>\r\n <td>\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 23 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 24 "..\..\Views\Device\AddOffline.cshtml"
|
||||
Write(Html.TextBoxFor(model => model.Device.SerialNumber));
|
||||
|
||||
|
||||
@@ -108,33 +107,59 @@ WriteLiteral("<br />\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 24 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 25 "..\..\Views\Device\AddOffline.cshtml"
|
||||
Write(Html.ValidationMessageFor(model => model.Device.SerialNumber));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th" +
|
||||
">\r\n Computer Name:\r\n </th>\r\n <t" +
|
||||
"d>\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 33 "..\..\Views\Device\AddOffline.cshtml"
|
||||
Write(Html.TextBoxFor(model => model.Device.DeviceDomainId));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("<br />\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 34 "..\..\Views\Device\AddOffline.cshtml"
|
||||
Write(Html.ValidationMessageFor(model => model.Device.DeviceDomainId));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n </td>\r\n </tr>\r\n");
|
||||
|
||||
|
||||
#line 27 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 37 "..\..\Views\Device\AddOffline.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 27 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 37 "..\..\Views\Device\AddOffline.cshtml"
|
||||
if (hasAssetNumber)
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <tr>\r\n <th>Asset Number:\r\n " +
|
||||
"</th>\r\n <td>");
|
||||
WriteLiteral(" <tr>\r\n <th>\r\n Asset Num" +
|
||||
"ber:\r\n </th>\r\n <td>\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 32 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 44 "..\..\Views\Device\AddOffline.cshtml"
|
||||
Write(Html.TextBoxFor(model => model.Device.AssetNumber));
|
||||
|
||||
|
||||
@@ -145,7 +170,7 @@ WriteLiteral("<br />\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 33 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 45 "..\..\Views\Device\AddOffline.cshtml"
|
||||
Write(Html.ValidationMessageFor(model => model.Device.AssetNumber));
|
||||
|
||||
|
||||
@@ -154,7 +179,7 @@ WriteLiteral(" ");
|
||||
WriteLiteral("\r\n </td>\r\n </tr>\r\n");
|
||||
|
||||
|
||||
#line 36 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 48 "..\..\Views\Device\AddOffline.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -163,18 +188,20 @@ WriteLiteral("\r\n </td>\r\n </tr>\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 37 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 49 "..\..\Views\Device\AddOffline.cshtml"
|
||||
if (hasLocation)
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <tr>\r\n <th>Location:\r\n </th" +
|
||||
">\r\n <td>");
|
||||
WriteLiteral(" <tr>\r\n <th>\r\n Location:" +
|
||||
"\r\n </th>\r\n <td>\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 42 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 56 "..\..\Views\Device\AddOffline.cshtml"
|
||||
Write(Html.TextBoxFor(model => model.Device.Location));
|
||||
|
||||
|
||||
@@ -185,7 +212,7 @@ WriteLiteral("<br />\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 43 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 57 "..\..\Views\Device\AddOffline.cshtml"
|
||||
Write(Html.ValidationMessageFor(model => model.Device.Location));
|
||||
|
||||
|
||||
@@ -194,7 +221,7 @@ WriteLiteral(" ");
|
||||
WriteLiteral("\r\n </td>\r\n </tr>\r\n");
|
||||
|
||||
|
||||
#line 46 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 60 "..\..\Views\Device\AddOffline.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -203,20 +230,20 @@ WriteLiteral("\r\n </td>\r\n </tr>\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 47 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 61 "..\..\Views\Device\AddOffline.cshtml"
|
||||
if (hasDeviceBatch)
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <tr>\r\n <th>Device Batch:\r\n " +
|
||||
"</th>\r\n <td>\r\n");
|
||||
WriteLiteral(" <tr>\r\n <th>\r\n Device Ba" +
|
||||
"tch:\r\n </th>\r\n <td>\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 53 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 68 "..\..\Views\Device\AddOffline.cshtml"
|
||||
Write(Html.DropDownListFor(model => model.Device.DeviceBatchId, Model.DeviceBatches.ToSelectListItems()));
|
||||
|
||||
|
||||
@@ -227,7 +254,7 @@ WriteLiteral("\r\n <br />\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 55 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 70 "..\..\Views\Device\AddOffline.cshtml"
|
||||
Write(Html.ValidationMessageFor(model => model.Device.DeviceBatchId));
|
||||
|
||||
|
||||
@@ -236,7 +263,7 @@ WriteLiteral(" ");
|
||||
WriteLiteral("\r\n </td>\r\n </tr>\r\n");
|
||||
|
||||
|
||||
#line 58 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 73 "..\..\Views\Device\AddOffline.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -245,20 +272,20 @@ WriteLiteral("\r\n </td>\r\n </tr>\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 59 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 74 "..\..\Views\Device\AddOffline.cshtml"
|
||||
if (hasDeviceProfile)
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <tr>\r\n <th>Device Profile:\r\n " +
|
||||
" </th>\r\n <td>\r\n");
|
||||
WriteLiteral(" <tr>\r\n <th>\r\n Device Pr" +
|
||||
"ofile:\r\n </th>\r\n <td>\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 65 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 81 "..\..\Views\Device\AddOffline.cshtml"
|
||||
Write(Html.DropDownListFor(model => model.Device.DeviceProfileId, Model.DeviceProfiles.ToSelectListItems(Model.DefaultDeviceProfileId)));
|
||||
|
||||
|
||||
@@ -269,7 +296,7 @@ WriteLiteral("<br />\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 66 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 82 "..\..\Views\Device\AddOffline.cshtml"
|
||||
Write(Html.ValidationMessageFor(model => model.Device.DeviceProfileId));
|
||||
|
||||
|
||||
@@ -278,7 +305,7 @@ WriteLiteral(" ");
|
||||
WriteLiteral("\r\n </td>\r\n </tr>\r\n");
|
||||
|
||||
|
||||
#line 69 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 85 "..\..\Views\Device\AddOffline.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -287,20 +314,20 @@ WriteLiteral("\r\n </td>\r\n </tr>\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 70 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 86 "..\..\Views\Device\AddOffline.cshtml"
|
||||
if (hasAssignUser)
|
||||
{
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" <tr>\r\n <th>Assigned User:\r\n " +
|
||||
" </th>\r\n <td>\r\n");
|
||||
WriteLiteral(" <tr>\r\n <th>\r\n Assigned " +
|
||||
"User:\r\n </th>\r\n <td>\r\n");
|
||||
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 76 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 93 "..\..\Views\Device\AddOffline.cshtml"
|
||||
Write(Html.TextBoxFor(model => model.Device.AssignedUserId));
|
||||
|
||||
|
||||
@@ -311,7 +338,7 @@ WriteLiteral("<br />\r\n");
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 77 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 94 "..\..\Views\Device\AddOffline.cshtml"
|
||||
Write(Html.ValidationMessageFor(model => model.Device.AssignedUserId));
|
||||
|
||||
|
||||
@@ -320,7 +347,7 @@ WriteLiteral(" ");
|
||||
WriteLiteral("\r\n </td>\r\n </tr>\r\n");
|
||||
|
||||
|
||||
#line 80 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 97 "..\..\Views\Device\AddOffline.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -333,13 +360,13 @@ WriteLiteral(" class=\"actions\"");
|
||||
WriteLiteral(">\r\n");
|
||||
|
||||
|
||||
#line 83 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 100 "..\..\Views\Device\AddOffline.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 83 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 100 "..\..\Views\Device\AddOffline.cshtml"
|
||||
if (!hasDeviceProfile)
|
||||
{
|
||||
|
||||
@@ -347,14 +374,14 @@ WriteLiteral(">\r\n");
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 85 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 102 "..\..\Views\Device\AddOffline.cshtml"
|
||||
Write(Html.Hidden("Device.DeviceProfileId", Model.DefaultDeviceProfileId));
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 85 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 102 "..\..\Views\Device\AddOffline.cshtml"
|
||||
|
||||
}
|
||||
|
||||
@@ -369,40 +396,53 @@ WriteLiteral(" class=\"button\"");
|
||||
|
||||
WriteLiteral(" value=\"Add\"");
|
||||
|
||||
WriteLiteral(" />\r\n </p>\r\n <script");
|
||||
WriteLiteral(" />\r\n </p>\r\n <script");
|
||||
|
||||
WriteLiteral(" type=\"text/javascript\"");
|
||||
|
||||
WriteLiteral(">\r\n $(function () {\r\n var $SerialNumber = $(\'#D" +
|
||||
"evice_SerialNumber\').focus();\r\n\r\n");
|
||||
WriteLiteral(@">
|
||||
$(function () {
|
||||
var $SerialNumber = $('#Device_SerialNumber').focus();
|
||||
|
||||
$SerialNumber.keydown(function (e) {
|
||||
if (e.which == 13) {
|
||||
$('#Device_DeviceDomainId').focus();
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
");
|
||||
|
||||
|
||||
#line 94 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 118 "..\..\Views\Device\AddOffline.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 94 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 118 "..\..\Views\Device\AddOffline.cshtml"
|
||||
if (hasAssignUser)
|
||||
{
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral("\r\n $SerialNumber.keydown(function (e) {\r\n if (e" +
|
||||
".which == 13) {\r\n $(\'#Device_AssignedUserId\').focus();\r\n " +
|
||||
" return false;\r\n }\r\n });" +
|
||||
"");
|
||||
WriteLiteral(@"
|
||||
$('#Device_DeviceDomainId').keydown(function (e) {
|
||||
if (e.which == 13) {
|
||||
$('#Device_AssignedUserId').focus();
|
||||
return false;
|
||||
}
|
||||
});");
|
||||
|
||||
|
||||
#line 101 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 125 "..\..\Views\Device\AddOffline.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 102 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 126 "..\..\Views\Device\AddOffline.cshtml"
|
||||
if (hasAssetNumber)
|
||||
{
|
||||
|
||||
@@ -412,13 +452,13 @@ WriteLiteral("\r\n $(\'#Device_AssetNumber\').keydown(functio
|
||||
" if (e.which == 13) {\r\n");
|
||||
|
||||
|
||||
#line 106 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 130 "..\..\Views\Device\AddOffline.cshtml"
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 106 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 130 "..\..\Views\Device\AddOffline.cshtml"
|
||||
if (hasLocation)
|
||||
{
|
||||
|
||||
@@ -427,7 +467,7 @@ WriteLiteral("\r\n $(\'#Device_AssetNumber\').keydown(functio
|
||||
WriteLiteral("$(\'#Device_Location\').focus(); return false;");
|
||||
|
||||
|
||||
#line 107 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 131 "..\..\Views\Device\AddOffline.cshtml"
|
||||
}
|
||||
else if (hasAssignUser)
|
||||
{
|
||||
@@ -437,7 +477,7 @@ WriteLiteral("$(\'#Device_Location\').focus(); return false;");
|
||||
WriteLiteral("$(\'#Device_AssignedUserId\').focus(); return false;");
|
||||
|
||||
|
||||
#line 109 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 133 "..\..\Views\Device\AddOffline.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -446,14 +486,14 @@ WriteLiteral("$(\'#Device_AssignedUserId\').focus(); return false;");
|
||||
WriteLiteral(" }\r\n });\r\n ");
|
||||
|
||||
|
||||
#line 112 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 136 "..\..\Views\Device\AddOffline.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
|
||||
#line 113 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 137 "..\..\Views\Device\AddOffline.cshtml"
|
||||
if (hasLocation && hasAssignUser)
|
||||
{
|
||||
|
||||
@@ -469,7 +509,7 @@ WriteLiteral(@"
|
||||
");
|
||||
|
||||
|
||||
#line 121 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 145 "..\..\Views\Device\AddOffline.cshtml"
|
||||
}
|
||||
|
||||
|
||||
@@ -478,7 +518,7 @@ WriteLiteral(@"
|
||||
WriteLiteral(" ");
|
||||
|
||||
|
||||
#line 122 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 146 "..\..\Views\Device\AddOffline.cshtml"
|
||||
if (hasAssignUser)
|
||||
{
|
||||
|
||||
@@ -493,7 +533,7 @@ WriteLiteral(@"
|
||||
source: '");
|
||||
|
||||
|
||||
#line 129 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 153 "..\..\Views\Device\AddOffline.cshtml"
|
||||
Write(Url.Action(MVC.API.Search.UsersUpstream()));
|
||||
|
||||
|
||||
@@ -518,16 +558,16 @@ WriteLiteral(@"',
|
||||
");
|
||||
|
||||
|
||||
#line 145 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 169 "..\..\Views\Device\AddOffline.cshtml"
|
||||
}
|
||||
|
||||
|
||||
#line default
|
||||
#line hidden
|
||||
WriteLiteral(" });\r\n </script>\r\n </div>\r\n");
|
||||
WriteLiteral(" });\r\n </script>\r\n </div>\r\n");
|
||||
|
||||
|
||||
#line 149 "..\..\Views\Device\AddOffline.cshtml"
|
||||
#line 173 "..\..\Views\Device\AddOffline.cshtml"
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user