c7cbef9189
Ability to run this task on-demand from the web UI is added
638 lines
19 KiB
C#
638 lines
19 KiB
C#
#pragma warning disable 1591
|
|
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
// Runtime Version:4.0.30319.17929
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace Disco.Web.Areas.Config.Views.SystemConfig
|
|
{
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Text;
|
|
using System.Web;
|
|
using System.Web.Helpers;
|
|
using System.Web.Mvc;
|
|
using System.Web.Mvc.Ajax;
|
|
using System.Web.Mvc.Html;
|
|
using System.Web.Routing;
|
|
using System.Web.Security;
|
|
using System.Web.UI;
|
|
using System.Web.WebPages;
|
|
using Disco.BI.Extensions;
|
|
using Disco.Models.Repository;
|
|
using Disco.Web;
|
|
using Disco.Web.Extensions;
|
|
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("RazorGenerator", "1.5.0.0")]
|
|
[System.Web.WebPages.PageVirtualPathAttribute("~/Areas/Config/Views/SystemConfig/Index.cshtml")]
|
|
public class Index : System.Web.Mvc.WebViewPage<Disco.Web.Areas.Config.Models.SystemConfig.IndexModel>
|
|
{
|
|
public Index()
|
|
{
|
|
}
|
|
public override void Execute()
|
|
{
|
|
|
|
#line 2 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
|
|
ViewBag.Title = Html.ToBreadcrumb("Configuration", MVC.Config.Config.Index(), "System");
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n");
|
|
|
|
|
|
#line 5 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
using (Html.BeginForm())
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"form\"");
|
|
|
|
WriteLiteral(" style=\"width: 450px\"");
|
|
|
|
WriteLiteral(">\r\n <table>\r\n <tr>\r\n <th");
|
|
|
|
WriteLiteral(" style=\"width: 135px\"");
|
|
|
|
WriteLiteral(">Disco Version:\r\n </th>\r\n <td>\r\n " +
|
|
" <div>\r\n <code>");
|
|
|
|
|
|
#line 14 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
Write(Model.DiscoVersion.ToString(4));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</code>\r\n </div>\r\n <div");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
WriteAttribute("title", Tuple.Create(" title=\"", 546), Tuple.Create("\"", 595)
|
|
|
|
#line 16 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 554), Tuple.Create<System.Object, System.Int32>(Model.DiscoVersionBuilt.ToFullDateTime()
|
|
|
|
#line default
|
|
#line hidden
|
|
, 554), false)
|
|
);
|
|
|
|
WriteLiteral(">\r\n Built ");
|
|
|
|
|
|
#line 17 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
Write(Model.DiscoVersionBuilt.ToFuzzy("Unknown"));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n </td>\r\n </tr>\r\n " +
|
|
" <tr>\r\n <th");
|
|
|
|
WriteLiteral(" style=\"width: 135px\"");
|
|
|
|
WriteLiteral(">Database Connection:\r\n </th>\r\n <td>\r\n " +
|
|
" <table");
|
|
|
|
WriteLiteral(" class=\"sub\"");
|
|
|
|
WriteLiteral(">\r\n <tr>\r\n <th>Server:</th>\r\n " +
|
|
" <td><span");
|
|
|
|
WriteLiteral(" class=\"code\"");
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 28 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
Write(Model.DatabaseServer);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</span></td>\r\n </tr>\r\n <tr>\r\n " +
|
|
" <th>Database:</th>\r\n <td><span");
|
|
|
|
WriteLiteral(" class=\"code\"");
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 32 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
Write(Model.DatabaseName);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</span></td>\r\n </tr>\r\n <tr>\r\n " +
|
|
" <th>Authentication:</th>\r\n <td>" +
|
|
"");
|
|
|
|
|
|
#line 36 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
Write(Model.DatabaseAuthentication);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</td>\r\n </tr>\r\n");
|
|
|
|
|
|
#line 38 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 38 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
if (Model.DatabaseSqlAuthUsername != null)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <tr>\r\n <th>SQL Us" +
|
|
"er:</th>\r\n <td><span");
|
|
|
|
WriteLiteral(" class=\"code\"");
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 42 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
Write(Model.DatabaseSqlAuthUsername);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</span></td>\r\n </tr> \r\n");
|
|
|
|
|
|
#line 44 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </table>\r\n </td>\r\n </tr>\r\n " +
|
|
" <tr>\r\n <th");
|
|
|
|
WriteLiteral(" style=\"width: 135px\"");
|
|
|
|
WriteLiteral(">Data Store Location:\r\n </th>\r\n <td>\r\n " +
|
|
" <span");
|
|
|
|
WriteLiteral(" class=\"code\"");
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 53 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
Write(Model.DataStoreLocation);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</span>\r\n ");
|
|
|
|
WriteLiteral("\r\n </td>\r\n </tr>\r\n </table>\r\n </div>\r\n");
|
|
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"form\"");
|
|
|
|
WriteLiteral(" style=\"width: 450px; margin-top: 15px;\"");
|
|
|
|
WriteLiteral(">\r\n <h2>Updates</h2>\r\n <table>\r\n");
|
|
|
|
|
|
#line 63 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 63 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
|
|
if (Model.UpdateLatestResponse == null)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <tr>\r\n <th");
|
|
|
|
WriteLiteral(" style=\"width: 135px\"");
|
|
|
|
WriteLiteral(">Last Check:\r\n </th>\r\n <td>\r\n " +
|
|
" <div");
|
|
|
|
WriteLiteral(" class=\"error\"");
|
|
|
|
WriteLiteral("><span");
|
|
|
|
WriteLiteral(" class=\"icon error\"");
|
|
|
|
WriteLiteral(" style=\"margin-right: 6px;\"");
|
|
|
|
WriteLiteral("></span>Never</div>\r\n </td>\r\n </tr>\r\n");
|
|
|
|
|
|
#line 73 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <tr>\r\n <th");
|
|
|
|
WriteLiteral(" style=\"width: 135px\"");
|
|
|
|
WriteLiteral(">Last Run:\r\n </th>\r\n <td>\r\n " +
|
|
" <span>");
|
|
|
|
|
|
#line 80 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
Write(CommonHelpers.FriendlyDate(Model.UpdateLatestResponse.ResponseTimestamp));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</span>\r\n </td>\r\n </tr>\r\n");
|
|
|
|
|
|
#line 83 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
if (Model.UpdateLatestResponse.IsUpdatable(typeof(DiscoApplication).Assembly.GetName().Version))
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <tr>\r\n <th");
|
|
|
|
WriteLiteral(" style=\"width: 135px\"");
|
|
|
|
WriteLiteral(">Update Available:\r\n </th>\r\n <td>\r\n " +
|
|
" <div>\r\n <span");
|
|
|
|
WriteLiteral(" class=\"icon warning\"");
|
|
|
|
WriteLiteral(" style=\"margin-right: 6px;\"");
|
|
|
|
WriteLiteral("></span>Version ");
|
|
|
|
|
|
#line 90 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
Write(Model.UpdateLatestResponse.Version);
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" is available\r\n </div>\r\n <div");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
WriteLiteral(">\r\n [Released ");
|
|
|
|
|
|
#line 93 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
Write(CommonHelpers.FriendlyDate(Model.UpdateLatestResponse.VersionReleasedTimestamp));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("]\r\n </div>\r\n <div");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
WriteLiteral(">");
|
|
|
|
|
|
#line 95 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
Write(new HtmlString(Model.UpdateLatestResponse.Blurb));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</div>\r\n <a");
|
|
|
|
WriteAttribute("href", Tuple.Create(" href=\"", 4129), Tuple.Create("\"", 4173)
|
|
|
|
#line 96 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
, Tuple.Create(Tuple.Create("", 4136), Tuple.Create<System.Object, System.Int32>(Model.UpdateLatestResponse.UrlLink
|
|
|
|
#line default
|
|
#line hidden
|
|
, 4136), false)
|
|
);
|
|
|
|
WriteLiteral(" target=\"_blank\"");
|
|
|
|
WriteLiteral(">Download Now</a>\r\n </td>\r\n </tr>\r\n");
|
|
|
|
|
|
#line 99 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <tr>\r\n <th");
|
|
|
|
WriteLiteral(" style=\"width: 135px\"");
|
|
|
|
WriteLiteral(">Status:\r\n </th>\r\n <td>\r\n " +
|
|
" <span");
|
|
|
|
WriteLiteral(" class=\"icon success\"");
|
|
|
|
WriteLiteral(" style=\"margin-right: 6px;\"");
|
|
|
|
WriteLiteral("></span><span>The latest version is installed</span>\r\n </td>\r\n" +
|
|
" </tr>\r\n");
|
|
|
|
|
|
#line 109 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
}
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n <tr>\r\n <th");
|
|
|
|
WriteLiteral(" style=\"width: 135px\"");
|
|
|
|
WriteLiteral(">Check for Update:");
|
|
|
|
|
|
#line 113 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
|
|
if (Model.UpdateBetaDeployment)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"alert\"");
|
|
|
|
WriteLiteral("><span");
|
|
|
|
WriteLiteral(" class=\"icon warning\"");
|
|
|
|
WriteLiteral(" style=\"margin-right: 6px;\"");
|
|
|
|
WriteLiteral("></span>Beta Deployment</div>\r\n");
|
|
|
|
|
|
#line 117 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </th>\r\n <td>\r\n");
|
|
|
|
|
|
#line 121 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
|
|
#line 121 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
|
|
if (Model.UpdateRunningStatus == null)
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div>");
|
|
|
|
|
|
#line 124 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
Write(Html.ActionLink("Check Now", MVC.API.System.UpdateCheck()));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</div>\r\n");
|
|
|
|
|
|
#line 125 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
}
|
|
else
|
|
{
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral(" <div>Running now - ");
|
|
|
|
|
|
#line 128 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
Write(Html.ActionLink("Check Status", MVC.Config.Logging.TaskStatus(Model.UpdateRunningStatus.SessionId)));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("</div>\r\n");
|
|
|
|
|
|
#line 129 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n <div");
|
|
|
|
WriteLiteral(" class=\"smallMessage\"");
|
|
|
|
WriteLiteral(">\r\n Next Scheduled: ");
|
|
|
|
|
|
#line 132 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
Write(CommonHelpers.FriendlyDate(Model.UpdateNextScheduled, "Unknown"));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </div>\r\n </td>\r\n </tr>\r\n <" +
|
|
"/table>\r\n </div>\r\n");
|
|
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"form\"");
|
|
|
|
WriteLiteral(" style=\"width: 450px; margin-top: 15px;\"");
|
|
|
|
WriteLiteral(">\r\n <h2>Proxy Settings</h2>\r\n <table>\r\n <tr>\r\n " +
|
|
" <th");
|
|
|
|
WriteLiteral(" style=\"width: 135px\"");
|
|
|
|
WriteLiteral(">Address:\r\n </th>\r\n <td>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 145 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
Write(Html.EditorFor(m => m.ProxyAddress));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("<br />\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 146 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
Write(Html.ValidationMessageFor(m => m.ProxyAddress));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th" +
|
|
"");
|
|
|
|
WriteLiteral(" style=\"width: 135px\"");
|
|
|
|
WriteLiteral(">Port:\r\n </th>\r\n <td>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 153 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
Write(Html.EditorFor(m => m.ProxyPort));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("<br />\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 154 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
Write(Html.ValidationMessageFor(m => m.ProxyPort));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th" +
|
|
"");
|
|
|
|
WriteLiteral(" style=\"width: 135px\"");
|
|
|
|
WriteLiteral(">Username:\r\n </th>\r\n <td>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 161 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
Write(Html.EditorFor(m => m.ProxyUsername));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("<br />\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 162 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
Write(Html.ValidationMessageFor(m => m.ProxyUsername));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </td>\r\n </tr>\r\n <tr>\r\n <th" +
|
|
"");
|
|
|
|
WriteLiteral(" style=\"width: 135px\"");
|
|
|
|
WriteLiteral(">Password:\r\n </th>\r\n <td>\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 169 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
Write(Html.EditorFor(m => m.ProxyPassword));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("<br />\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 170 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
Write(Html.ValidationMessageFor(m => m.ProxyPassword));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n </td>\r\n </tr>\r\n </table>\r\n </div>\r\n");
|
|
|
|
WriteLiteral(" <div");
|
|
|
|
WriteLiteral(" class=\"actionBar\"");
|
|
|
|
WriteLiteral(">\r\n");
|
|
|
|
WriteLiteral(" ");
|
|
|
|
|
|
#line 176 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
Write(Html.ActionLinkButton("Update Device Last Network Logons", MVC.API.System.UpdateLastNetworkLogonDates()));
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
WriteLiteral("\r\n <input");
|
|
|
|
WriteLiteral(" type=\"submit\"");
|
|
|
|
WriteLiteral(" class=\"button\"");
|
|
|
|
WriteLiteral(" value=\"Save Configuration\"");
|
|
|
|
WriteLiteral(" />\r\n </div>\r\n");
|
|
|
|
|
|
#line 179 "..\..\Areas\Config\Views\SystemConfig\Index.cshtml"
|
|
}
|
|
|
|
|
|
#line default
|
|
#line hidden
|
|
}
|
|
}
|
|
}
|
|
#pragma warning restore 1591
|