View.cshtml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. @using GreenTree.Nachtragsmanagement.Web.Models.Global;
  2. @{
  3. Layout = "~/Views/Shared/_FunctionLayout.cshtml";
  4. }
  5. @{
  6. var userContext = GreenTree.Nachtragsmanagement.Core.CommonHelper.UserContext();
  7. }
  8. @model GreenTree.Nachtragsmanagement.Web.Models.Admin.AppInfo.AppInfoDataModel
  9. <script>
  10. function checkUpdate() {
  11. devLoadingPanelUpdate.Show();
  12. $.ajax({
  13. method: "POST",
  14. url: '@Url.Action("CheckUpdate", "Admin")',
  15. success: function (response) {
  16. devLoadingPanelUpdate.Hide();
  17. },
  18. error: function () {
  19. alert("error occured");
  20. }
  21. });
  22. }
  23. </script>
  24. <img src="@Url.Content("~/Content/Images/appInfo.png")" style="width: 90%; margin: 38px 5%" />
  25. <table style="margin: 0 5%; width: 90%">
  26. <tbody>
  27. <tr>
  28. <td style="width: 49%">
  29. <div style="margin-bottom: 6px; vertical-align: top">
  30. <b>Verwendete Bibliotheken</b>
  31. </div>
  32. @Html.DevExpress().ListBox(t =>
  33. {
  34. t.Name = "devListBoxAssemblies";
  35. t.Width = new Unit(100, UnitType.Percentage);
  36. t.Height = new Unit(260, UnitType.Pixel);
  37. t.Properties.Columns.Add("Manufacturer", "Hersteller", new Unit(75, UnitType.Percentage));
  38. t.Properties.Columns.Add("Name", "Bibliothek", new Unit(75, UnitType.Percentage));
  39. t.Properties.Columns.Add("Version", "Version", new Unit(25, UnitType.Percentage));
  40. }).BindList(Model.Assemblies).GetHtml()
  41. </td>
  42. <td style="width: 51%; padding-left: 18px; vertical-align: top">
  43. <div style="padding-bottom: 3px; margin-bottom: 3px; vertical-align: top; border-bottom: 1px solid #009688">
  44. <b>Sonstige Informationen</b>
  45. </div>
  46. Basisverzeichnis:<br/>
  47. <i>@Model.BaseDirectory</i>
  48. <div style="width: 90%; margin: 0 5%; text-align: center">
  49. <h3 style="color: #009688">
  50. Aktuelle Programmpaketversion
  51. </h3>
  52. <div style="font-size: 40px; margin: 12px 0">
  53. @GreenTree.Nachtragsmanagement.Core.AppendixVersion.CurrentVersion
  54. </div>
  55. @if (userContext.CurrentUser.HasFunction("Administration-AppInfo-Update"))
  56. {
  57. Html.DevExpress().Button(t =>
  58. {
  59. t.Name = "devButtonUpdate";
  60. t.Text = "Auf Update prüfen";
  61. t.ClientSideEvents.Click = "function (s, e) { checkUpdate(); }";
  62. }).GetHtml();
  63. }
  64. </div>
  65. </td>
  66. </tr>
  67. </tbody>
  68. </table>
  69. @Html.DevExpress().LoadingPanel(t =>
  70. {
  71. t.Name = "devLoadingPanelUpdate";
  72. t.Text = "Es wird nach Updates geprüft... bitte warten!";
  73. t.Modal = true;
  74. t.Styles.LoadingDiv.Opacity = 0;
  75. }).GetHtml()