From 456bb8fa3fcc48eceb503bbaf3839dfa831efa38 Mon Sep 17 00:00:00 2001 From: Schwirg László Date: Mon, 15 Jan 2024 12:44:18 +0100 Subject: [PATCH] - beépülők frissítése --- Vrh.Web.Reporting/Areas/UAManyToMany/Content/UAManyToMany.css | 78 ------------------------------------------------------------------------------ Vrh.Web.Reporting/Areas/UAManyToMany/Scripts/UAManyToMany.js | 263 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Vrh.Web.Reporting/Areas/UAManyToMany/Scripts/UAManyToMany_ESLINTszerintDEúgynemmegy.js | 263 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Vrh.Web.Reporting/Areas/UAManyToMany/Views/UAManyToMany/ManyToMany.cshtml | 18 ------------------ Vrh.Web.Reporting/Areas/UAManyToMany/Views/UAManyToMany/_Main.cshtml | 87 --------------------------------------------------------------------------------------- Vrh.Web.Reporting/Areas/UAManyToMany/Views/UAManyToMany/_MultiSelectLists.cshtml | 109 ------------------------------------------------------------------------------------------------------------- Vrh.Web.Reporting/Areas/UAManyToMany/Views/web.config | 36 ------------------------------------ Vrh.Web.Reporting/Areas/UserAdministration/Content/MvcMembership.css | 183 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Content/PagedList.css | 18 ------------------ Vrh.Web.Reporting/Areas/UserAdministration/Content/SecondaryUser.css | 33 --------------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Content/UserManager.css | 46 ---------------------------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Content/menu.png | Bin 4213 -> 0 bytes Vrh.Web.Reporting/Areas/UserAdministration/Scripts/LogInOut.js | 345 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Scripts/LogoutOnly.js | 93 --------------------------------------------------------------------------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Scripts/RolesToUserRoleGroupsDialog.js | 74 -------------------------------------------------------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Scripts/SecondaryUser.js | 293 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Scripts/UserManager.js | 443 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/DirectAuthentication.cshtml | 51 --------------------------------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/ExternalLoginConfirmation.cshtml | 39 --------------------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/ExternalLoginFailure.cshtml | 8 -------- Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/LogInOut.cshtml | 195 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/LoginPage.cshtml | 26 -------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/LogoutOnly.cshtml | 51 --------------------------------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/Manage.cshtml | 48 ------------------------------------------------ Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/Register.cshtml | 41 ----------------------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/_ChangePasswordPartial.cshtml | 55 ------------------------------------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/_ExternalLoginsListPartial.cshtml | 25 ------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/_RemoveExternalLoginsPartial.cshtml | 36 ------------------------------------ Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/_SetPasswordPartial.cshtml | 48 ------------------------------------------------ Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUserRoleGroups/Index.cshtml | 74 -------------------------------------------------------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUserRoleGroups/_DeleteUserRoleGroupForm.cshtml | 27 --------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUserRoleGroups/_EditUserRoleGroupForm.cshtml | 47 ----------------------------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUserRoleGroups/_NewUserRoleGroupForm.cshtml | 27 --------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUserRoleGroups/_RolesToUserRoleGroups.cshtml | 20 -------------------- Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUsers/Index.cshtml | 47 ----------------------------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUsers/_RolesToUsers.cshtml | 20 -------------------- Vrh.Web.Reporting/Areas/UserAdministration/Views/SecondaryUser/Editor.cshtml | 77 ----------------------------------------------------------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Views/SecondaryUser/Manager.cshtml | 159 --------------------------------------------------------------------------------------------------------------------------------------------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Views/SecondaryUser/SecondaryFunction.cshtml | 118 ---------------------------------------------------------------------------------------------------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Views/Shared/ErrorList.cshtml | 27 --------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Views/Shared/ValidationSummary.cshtml | 11 ----------- Vrh.Web.Reporting/Areas/UserAdministration/Views/User/Editor.cshtml | 149 ----------------------------------------------------------------------------------------------------------------------------------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Views/User/EditorWithLayout.cshtml | 7 ------- Vrh.Web.Reporting/Areas/UserAdministration/Views/User/Manager.cshtml | 179 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Views/User/PasswordRenewal.cshtml | 72 ------------------------------------------------------------------------ Vrh.Web.Reporting/Areas/UserAdministration/Views/User/RoleGroups.cshtml | 108 ------------------------------------------------------------------------------------------------------------ Vrh.Web.Reporting/Areas/UserAdministration/Views/User/Roles.cshtml | 105 --------------------------------------------------------------------------------------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/CreateUser.cshtml | 66 ------------------------------------------------------------------ Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/Details.cshtml | 144 ------------------------------------------------------------------------------------------------------------------------------------------------ Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/Index.cshtml | 161 ----------------------------------------------------------------------------------------------------------------------------------------------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/Password.cshtml | 148 ---------------------------------------------------------------------------------------------------------------------------------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/Password2.cshtml | 130 ---------------------------------------------------------------------------------------------------------------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/Role.cshtml | 60 ------------------------------------------------------------ Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/Roles.cshtml | 78 ------------------------------------------------------------------------------ Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/SearchUser.cshtml | 45 --------------------------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/UsersRoles.cshtml | 49 ------------------------------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Views/UsersToUserRoleGroups/Index.cshtml | 28 ---------------------------- Vrh.Web.Reporting/Areas/UserAdministration/Views/UsersToUserRoleGroups/_UsersToUserRoleGroups.cshtml | 22 ---------------------- Vrh.Web.Reporting/Areas/UserAdministration/Views/_ViewStart.cshtml | 5 ----- Vrh.Web.Reporting/Areas/UserAdministration/Views/web.config | 36 ------------------------------------ Vrh.Web.Reporting/Areas/WebForm/Views/WebForm/Inputs.cshtml | 102 +++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------- Vrh.Web.Reporting/Areas/WebForm/Views/WebForm/WebForm.cshtml | 2 +- Vrh.Web.Reporting/Areas/iSchedulerReport/Views/iSchedulerReport/Editor.cshtml | 2 +- Vrh.Web.Reporting/Content/PagedList.css | 166 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- Vrh.Web.Reporting/Vrh.NugetModuls.Documentations/Vrh.Web.Membership/ReadMe.md | 695 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Vrh.Web.Reporting/Vrh.Web.Reporting.csproj | 88 +++++++++++++--------------------------------------------------------------------------- Vrh.Web.Reporting/Web.config | 10 +++++----- Vrh.Web.Reporting/packages.config | 7 +++---- Vrh.Web.iScheduler.Lib/Areas/iScheduler/iSchedulerAreaRegistration.cs | 4 ++-- Vrh.Web.iScheduler.Lib/Vrh.Web.iScheduler.Lib.csproj | 4 ++-- Vrh.Web.iScheduler.Lib/packages.config | 2 +- Vrh.Web.iScheduler.Report.Lib/Vrh.Web.iScheduler.Report.Lib.csproj | 4 ++-- Vrh.Web.iScheduler.Report.Lib/packages.config | 2 +- Vrh.iScheduler.Report/Vrh.iScheduler.Report.csproj | 4 ++-- Vrh.iScheduler.Report/packages.config | 2 +- Vrh.iScheduler/Vrh.iScheduler.csproj | 4 ++-- Vrh.iScheduler/packages.config | 2 +- iSchedulerMonitor/iSchedulerMonitor.ACPlugin.csproj | 4 ++-- iSchedulerMonitor/packages.config | 2 +- 79 files changed, 91 insertions(+), 6266 deletions(-) delete mode 100644 Vrh.Web.Reporting/Areas/UAManyToMany/Content/UAManyToMany.css delete mode 100644 Vrh.Web.Reporting/Areas/UAManyToMany/Scripts/UAManyToMany.js delete mode 100644 Vrh.Web.Reporting/Areas/UAManyToMany/Scripts/UAManyToMany_ESLINTszerintDEúgynemmegy.js delete mode 100644 Vrh.Web.Reporting/Areas/UAManyToMany/Views/UAManyToMany/ManyToMany.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UAManyToMany/Views/UAManyToMany/_Main.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UAManyToMany/Views/UAManyToMany/_MultiSelectLists.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UAManyToMany/Views/web.config delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Content/MvcMembership.css delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Content/PagedList.css delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Content/SecondaryUser.css delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Content/UserManager.css delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Content/menu.png delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Scripts/LogInOut.js delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Scripts/LogoutOnly.js delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Scripts/RolesToUserRoleGroupsDialog.js delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Scripts/SecondaryUser.js delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Scripts/UserManager.js delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/DirectAuthentication.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/ExternalLoginConfirmation.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/ExternalLoginFailure.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/LogInOut.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/LoginPage.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/LogoutOnly.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/Manage.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/Register.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/_ChangePasswordPartial.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/_ExternalLoginsListPartial.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/_RemoveExternalLoginsPartial.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/_SetPasswordPartial.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUserRoleGroups/Index.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUserRoleGroups/_DeleteUserRoleGroupForm.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUserRoleGroups/_EditUserRoleGroupForm.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUserRoleGroups/_NewUserRoleGroupForm.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUserRoleGroups/_RolesToUserRoleGroups.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUsers/Index.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUsers/_RolesToUsers.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/SecondaryUser/Editor.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/SecondaryUser/Manager.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/SecondaryUser/SecondaryFunction.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/Shared/ErrorList.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/Shared/ValidationSummary.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/User/Editor.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/User/EditorWithLayout.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/User/Manager.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/User/PasswordRenewal.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/User/RoleGroups.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/User/Roles.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/CreateUser.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/Details.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/Index.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/Password.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/Password2.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/Role.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/Roles.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/SearchUser.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/UsersRoles.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/UsersToUserRoleGroups/Index.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/UsersToUserRoleGroups/_UsersToUserRoleGroups.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/_ViewStart.cshtml delete mode 100644 Vrh.Web.Reporting/Areas/UserAdministration/Views/web.config delete mode 100644 Vrh.Web.Reporting/Content/PagedList.css delete mode 100644 Vrh.Web.Reporting/Vrh.NugetModuls.Documentations/Vrh.Web.Membership/ReadMe.md diff --git a/Vrh.Web.Reporting/Areas/UAManyToMany/Content/UAManyToMany.css b/Vrh.Web.Reporting/Areas/UAManyToMany/Content/UAManyToMany.css deleted file mode 100644 index 540ee85..0000000 --- a/Vrh.Web.Reporting/Areas/UAManyToMany/Content/UAManyToMany.css +++ /dev/null @@ -1,78 +0,0 @@ -#MTMMain { - /*margin: 5px 5px 5px 5px;*/ - overflow: auto; - width: 100%; -} - -.mtmTable { - width: 100%; -} - - .mtmTable td { - padding: 5px 5px 5px 5px; - } - -.mtmTable, td { - border: 0; - background-color: #333743; - border-collapse: collapse; -} - -.mtmNoBorder { - border: 0; -} - -.mtmHeader { - background-color: #F7A23B; - color: White; -} - -.mtmButtons, .mtmButtonsHeader { - background-color: #333743; - border: 0; - text-align: center; - width: 4em; -} - -.mtmSwitchButton[type="submit"] { - font-size: 0.7em; - padding: 0; -} - -.connectedSortable, #mtmDropDownList { - overflow: auto; - text-align: left; - height: 30em; - white-space: nowrap; -} - - .connectedSortable div, #mtmDropDownList div { - font-size: 1.2em; - cursor: default; - white-space: nowrap; - } - - .connectedSortable div.item, #mtmDropDownList div.item { - color: White; - } - - .connectedSortable div.itemDisabled, #mtmDropDownList div.itemDisabled { - color: Gray; - } - - .connectedSortable div:hover, #mtmDropDownList div:hover { - background-color: #F7A23B; - } - - .connectedSortable div.ui-sortable-placeholder { - visibility: visible; - border-width: 2px; - border-style: dashed; - border-color: #F7A23B; - height: 1.2em; - } - - .connectedSortable > div.selectedItem, #mtmDropDownList > div.selectedItem { - /*background-color: #F7A23B;*/ - background-color: #CA5100; - } diff --git a/Vrh.Web.Reporting/Areas/UAManyToMany/Scripts/UAManyToMany.js b/Vrh.Web.Reporting/Areas/UAManyToMany/Scripts/UAManyToMany.js deleted file mode 100644 index 3042a39..0000000 --- a/Vrh.Web.Reporting/Areas/UAManyToMany/Scripts/UAManyToMany.js +++ /dev/null @@ -1,263 +0,0 @@ -/* -* Created by Raju Dasa on 30-oct-2011 -* www.RajuDasa.blogspot.com -* free source, change code for ur purpose. -*/ - -//http://files.myopera.com/RAJUDASA/DragDrop/DragDrop.htm -//http://jqueryui.com/demos/sortable/#connect-lists - -// insert elements in #list1 and #list2 -function pageload($jsonForList1, $jsonForList2) { - if ($jsonForList1 != null) { - $("#list1").empty().addItems($jsonForList1); - } - if ($jsonForList2 != null) { - $("#list2").empty().addItems($jsonForList2); - } - - $("#list1, #list2").sortable({ - connectWith: ".connectedSortable", - placeholder: "ui-sortable-placeholder", - forcePlaceholderSize: true, - beforeStop: function (event, ui) { - console.log('beforeStop:'); - ui.helper.removeClass("selectedItem"); - ui.helper.off(); - }, - change: function (event, ui) { //for issue solving - console.log('change: vontatás'); - var placeHolder = ui.helper.children(".ui-sortable-placeholder"); - if (placeHolder) { - placeHolder.detach().appendTo(ui.helper.parent()); - } - }, - start: function (event, ui) { - console.log('start:'); - if (ui.helper) { - var cnt = ui.helper.parent().children(".selectedItem:not(.ui-sortable-placeholder)").length; - if (cnt > 1) { - var parent = ui.helper.parent(); - var childs = parent.children("div.selectedItem:not(.ui-sortable-placeholder)"); - $.each(childs, function (index, child) { - child = $(child); - if (ui.helper.attr('id') != child.attr('id')) { - child = child.detach(); - child.appendTo(ui.helper); - child.css("margin", "0px").css("padding", "0px"); //addClass not working - } - }); - } - } - }, - stop: function (event, ui) { - console.log('stop:'); - //console.log(ui.helper); - if (ui.item) { - var cnt = $(ui.item[0]).children("div").length; - if (cnt > 0) { - //ui.helper is null - var dropItem = $(ui.item[0]); - $.each(dropItem.children("div"), function (index, child) { - child = $(child).detach(); - child.insertAfter(dropItem); - child.removeClass("selectedItem"); - child.css("margin", "").css("padding", ""); - }); - } - } - } - }).disableSelection(); -} - -// custom jq function/plugin : used instead of template plugin -$.fn.addItems = function (data) { - return this.each(function () { - var parent = this; - $.each(data, function (index, itemData) { - $("
") - .text(itemData.Text) - .attr("id", "MTMValue:" + itemData.Value) - .addClass("item") - .appendTo(parent); - }); - }); -}; - -// click color handling -$(document).on('click', '#list1>div, #list2>div', function (e) { - if (!e.ctrlKey) { - $(this).parent().children().removeClass("selectedItem"); - } - $(this).toggleClass("selectedItem"); -}); - -// array difference: filter and indexOf not supported in IE8 or below -//http://stackoverflow.com/questions/1187518/javascript-array-difference -Array.prototype.diff = function (a) { - return this.filter(function (i) { return !(a.indexOf(i) > -1); }); -}; - -var isWasAnAjaxCall = false; // ajax hívás történt e már? - -/** - * Megvizsgálja a #list1-ben lévő divek id-ját - * és ha változás történt akkor ajax hívást kezdeményez - * - * @param {any} name : Név ami meghatározza, hogy melyik osztály interfészéről van szó. - * @param {any} divItemIdsArray : #list1-ben lévő divek id-jai - * @param {any} ajaxAddUrl : hozzáadás ajax hívás url-je - * @param {any} isDefault : true/false - */ -function checkList1Divs(name, divItemIdsArray, ajaxAddUrl, isDefault) { - $("#list1").bind("DOMSubtreeModified", function () { - if ($('#mtmDropDownList>div.selectedItem:first') != null && isWasAnAjaxCall == false) { - var array = new Array(); - $.each($("#list1").find("div"), function (index, child) { - child = $(child); - if (!$(child).hasClass('ui-sortable-placeholder')) { - array.push(child.attr('id').substring(9, child.attr('id').length)); - } - }); - if (array != null && array.length != divItemIdsArray.length) { - if (array.length > divItemIdsArray.length) { - ajaxCall(name, ajaxAddUrl, array.diff(divItemIdsArray), isDefault); - } - } - } - }); -} - -/** - * megvizsgálja a #list2-ben lévő divek id-ját - * és ha változás történt akkor ajax hívást kezdeményez - * - * @param {any} name : Név ami meghatározza, hogy melyik osztály interfészéről van szó. - * @param {any} divItemIdsArray : #list2-ben lévő divek id-jai - * @param {any} ajaxRemoveUrl : törlés ajax hívás url-je - * @param {any} isDefault : true/false - */ -function checkList2Divs(name, divItemIdsArray, ajaxRemoveUrl, isDefault) { - $("#list2").bind("DOMSubtreeModified", function () { - if ($('#mtmDropDownList>div.selectedItem:first') != null && isWasAnAjaxCall == false) { - var array = new Array(); - $.each($("#list2").find("div"), function (index, child) { - child = $(child); - if (!$(child).hasClass('ui-sortable-placeholder')) { - array.push(child.attr('id').substring(9, child.attr('id').length)); - } - }); - if (array != null && array.length != divItemIdsArray.length) { - if (array.length > divItemIdsArray.length) { - ajaxCall(name, ajaxRemoveUrl, array.diff(divItemIdsArray), isDefault); - } - } - } - }); -} - -/** - * ajax hívás - * - * 'messagePleaseWait' nevű változó a ManyToMany.cshtml-ben kap értéket. - * - * @param {any} name : Név ami meghatározza, hogy melyik osztály interfészéről van szó. - * @param {any} ajaxUrl : url - * @param {any} idsArray : id-kat tartalmazó tömb - * @param {any} isDefault: true/false - */ -function ajaxCall(name, ajaxUrl, idsArray, isDefault) { - var thisfn = 'UAManyTOMany.js ajaxCall function: '; - console.log(thisfn + 'PING name, idsArray, ajaxUrl', name, idsArray, ajaxUrl); - if (idsArray != null && idsArray.length > 0 && isWasAnAjaxCall == false) { - //var waitDialog = vrhct.bootbox.wait(messagePleaseWait, function() { //egyelőre zavar, mert többször hívódik a függvény vontatás esetén - var ajaxId = $('#mtmDropDownList>div.selectedItem:first').attr('id').substring(9, $('#mtmDropDownList>div.selectedItem:first').attr('id').length); - $.ajax({ - cache: false, - url: ajaxUrl, - type: "post", - contenttype: "application/j-son", - datatype: 'json', - traditional: true, - data: { name: name, id: ajaxId, ids: idsArray, isDefault: isDefault }, - beforeSend: function () { - disableOperations(); - }, - success: function (responseData) { - $('#MTMMultiSelectLists').html(responseData); - }, - complete: function () { - enableOperations(); - //waitDialog.modal('hide'); - } - }); - //}); - } -} - -/** - * Összegyűjti egy tömbbe a selectedItem class-al rendelkező divek Id-ját - * a megadott selector alatt, majd ajax hívást kezdeményez - * @param {any} name : Név ami meghatározza, hogy melyik osztály interfészéről van szó. - * @param {any} listSelector: selector (#list1 / #list2) - * @param {any} ajaxUrl : url - * @param {any} isDefault : true/false - */ -function getSelectedItems(name, listSelector, ajaxUrl, isDefault) { - var array = new Array(); - $.each($(listSelector).find("div.selectedItem"), function (index, child) { - child = $(child); - array.push(child.attr('id').substring(9, child.attr('id').length)); - }); - if (array.length === 0) { - array = null; - } - ajaxCall(name, ajaxUrl, array, isDefault); -} - -// ajax hívás a switch buttonra -// name: Név ami meghatározza, hogy melyik osztály interfészéről van szó. -// ajaxUrl: url -// id: id -// isDefault: true/false -function ajaxCallSwitchButton(name, ajaxUrl, id, isDefault) { - var thisfn = 'UAManyTOMany.js ajaxCallSwitchButton function: '; - console.log(thisfn + 'PING name, id, ajaxUrl', name, id, ajaxUrl); - if (isWasAnAjaxCall == false) { - $.ajax({ - cache: false, - url: ajaxUrl, - type: "post", - contenttype: "application/j-son", - datatype: 'json', - data: { name: name, id: id, isDefault: isDefault }, - beforeSend: function () { - disableOperations(); - }, - success: function (responseData) { - $('#MTMMain').html(responseData); - }, - complete: function () { - enableOperations(); - } - }); - } -} - -// műveletek tiltása -function disableOperations() { - isWasAnAjaxCall = true; - $('#MTMMain').find(':submit').attr('disabled', 'disabled'); - $("#list1, #list2").sortable('disable'); - $('.item').addClass('itemDisabled'); - $('.itemDisabled').removeClass('item'); -} - -// műveletek engedélyezése -function enableOperations() { - isWasAnAjaxCall = false; - $('#MTMMain').find(':submit').removeAttr('disabled'); - $('#list1, #list2').sortable('enable'); - $('.itemDisabled').addClass('item'); - $('.item').removeClass('itemDisabled'); -} \ No newline at end of file diff --git a/Vrh.Web.Reporting/Areas/UAManyToMany/Scripts/UAManyToMany_ESLINTszerintDEúgynemmegy.js b/Vrh.Web.Reporting/Areas/UAManyToMany/Scripts/UAManyToMany_ESLINTszerintDEúgynemmegy.js deleted file mode 100644 index 7aa131b..0000000 --- a/Vrh.Web.Reporting/Areas/UAManyToMany/Scripts/UAManyToMany_ESLINTszerintDEúgynemmegy.js +++ /dev/null @@ -1,263 +0,0 @@ -/* -* Created by Raju Dasa on 30-oct-2011 -* www.RajuDasa.blogspot.com -* free source, change code for ur purpose. -*/ - -//http://files.myopera.com/RAJUDASA/DragDrop/DragDrop.htm -//http://jqueryui.com/demos/sortable/#connect-lists - -// insert elements in #list1 and #list2 -function pageload($jsonForList1, $jsonForList2) { - if ($jsonForList1 !== null) { - $("#list1").empty().addItems($jsonForList1); - } - if ($jsonForList2 !== null) { - $("#list2").empty().addItems($jsonForList2); - } - - $("#list1, #list2").sortable({ - connectWith: ".connectedSortable", - placeholder: "ui-sortable-placeholder", - forcePlaceholderSize: true, - beforeStop: function (event, ui) { - console.log('beforeStop:'); - ui.helper.removeClass("selectedItem"); - ui.helper.off(); - }, - change: function (event, ui) { //for issue solving - console.log('change: vontatás'); - var placeHolder = ui.helper.children(".ui-sortable-placeholder"); - if (placeHolder) { - placeHolder.detach().appendTo(ui.helper.parent()); - } - }, - start: function (event, ui) { - console.log('start:'); - if (ui.helper) { - var cnt = ui.helper.parent().children(".selectedItem:not(.ui-sortable-placeholder)").length; - if (cnt > 1) { - var parent = ui.helper.parent(); - var childs = parent.children("div.selectedItem:not(.ui-sortable-placeholder)"); - $.each(childs, function (index, child) { - child = $(child); - if (ui.helper.attr('id') !== child.attr('id')) { - child = child.detach(); - child.appendTo(ui.helper); - child.css("margin", "0px").css("padding", "0px"); //addClass not working - } - }); - } - } - }, - stop: function (event, ui) { - console.log('stop:'); - //console.log(ui.helper); - if (ui.item) { - var cnt = $(ui.item[0]).children("div").length; - if (cnt > 0) { - //ui.helper is null - var dropItem = $(ui.item[0]); - $.each(dropItem.children("div"), function (index, child) { - child = $(child).detach(); - child.insertAfter(dropItem); - child.removeClass("selectedItem"); - child.css("margin", "").css("padding", ""); - }); - } - } - } - }).disableSelection(); -} - -// custom jq function/plugin : used instead of template plugin -$.fn.addItems = function (data) { - return this.each(function () { - var parent = this; - $.each(data, function (index, itemData) { - $("
") - .text(itemData.Text) - .attr("id", "MTMValue:" + itemData.Value) - .addClass("item") - .appendTo(parent); - }); - }); -}; - -// click color handling -$(document).on('click', '#list1>div, #list2>div', function (e) { - if (!e.ctrlKey) { - $(this).parent().children().removeClass("selectedItem"); - } - $(this).toggleClass("selectedItem"); -}); - -// array difference: filter and indexOf not supported in IE8 or below -//http://stackoverflow.com/questions/1187518/javascript-array-difference -Array.prototype.diff = function (a) { - return this.filter(function (i) { return !(a.indexOf(i) > -1); }); -}; - -var isWasAnAjaxCall = false; // ajax hívás történt e már? - -/** - * Megvizsgálja a #list1-ben lévő divek id-ját - * és ha változás történt akkor ajax hívást kezdeményez - * - * @param {any} name : Név ami meghatározza, hogy melyik osztály interfészéről van szó. - * @param {any} divItemIdsArray : #list1-ben lévő divek id-jai - * @param {any} ajaxAddUrl : hozzáadás ajax hívás url-je - * @param {any} isDefault : true/false - */ -function checkList1Divs(name, divItemIdsArray, ajaxAddUrl, isDefault) { - $("#list1").bind("DOMSubtreeModified", function () { - if ($('#mtmDropDownList>div.selectedItem:first') !== null && isWasAnAjaxCall === false) { - var array = new Array(); - $.each($("#list1").find("div"), function (index, child) { - child = $(child); - if (!$(child).hasClass('ui-sortable-placeholder')) { - array.push(child.attr('id').substring(9, child.attr('id').length)); - } - }); - if (array !== null && array.length !== divItemIdsArray.length) { - if (array.length > divItemIdsArray.length) { - ajaxCall(name, ajaxAddUrl, array.diff(divItemIdsArray), isDefault); - } - } - } - }); -} - -/** - * megvizsgálja a #list2-ben lévő divek id-ját - * és ha változás történt akkor ajax hívást kezdeményez - * - * @param {any} name : Név ami meghatározza, hogy melyik osztály interfészéről van szó. - * @param {any} divItemIdsArray : #list2-ben lévő divek id-jai - * @param {any} ajaxRemoveUrl : törlés ajax hívás url-je - * @param {any} isDefault : true/false - */ -function checkList2Divs(name, divItemIdsArray, ajaxRemoveUrl, isDefault) { - $("#list2").bind("DOMSubtreeModified", function () { - if ($('#mtmDropDownList>div.selectedItem:first') !== null && isWasAnAjaxCall === false) { - var array = new Array(); - $.each($("#list2").find("div"), function (index, child) { - child = $(child); - if (!$(child).hasClass('ui-sortable-placeholder')) { - array.push(child.attr('id').substring(9, child.attr('id').length)); - } - }); - if (array !== null && array.length !== divItemIdsArray.length) { - if (array.length > divItemIdsArray.length) { - ajaxCall(name, ajaxRemoveUrl, array.diff(divItemIdsArray), isDefault); - } - } - } - }); -} - -/** - * ajax hívás - * - * 'messagePleaseWait' nevű változó a ManyToMany.cshtml-ben kap értéket. - * - * @param {any} name : Név ami meghatározza, hogy melyik osztály interfészéről van szó. - * @param {any} ajaxUrl : url - * @param {any} idsArray : id-kat tartalmazó tömb - * @param {any} isDefault: true/false - */ -function ajaxCall(name, ajaxUrl, idsArray, isDefault) { - var thisfn = 'UAManyTOMany.js ajaxCall function: '; - console.log(thisfn + 'PING name, idsArray, ajaxUrl', name, idsArray, ajaxUrl); - if (idsArray !== null && idsArray.length > 0 && isWasAnAjaxCall === false) { - //var waitDialog = vrhct.bootbox.wait(messagePleaseWait, function() { //egyelőre zavar, mert többször hívódik a függvény vontatás esetén - var ajaxId = $('#mtmDropDownList>div.selectedItem:first').attr('id').substring(9, $('#mtmDropDownList>div.selectedItem:first').attr('id').length); - $.ajax({ - cache: false, - url: ajaxUrl, - type: "post", - contenttype: "application/j-son", - datatype: 'json', - traditional: true, - data: { name: name, id: ajaxId, ids: idsArray, isDefault: isDefault }, - beforeSend: function () { - disableOperations(); - }, - success: function (responseData) { - $('#MTMMultiSelectLists').html(responseData); - }, - complete: function () { - enableOperations(); - //waitDialog.modal('hide'); - } - }); - //}); - } -} - -/** - * Összegyűjti egy tömbbe a selectedItem class-al rendelkező divek Id-ját - * a megadott selector alatt, majd ajax hívást kezdeményez - * @param {any} name : Név ami meghatározza, hogy melyik osztály interfészéről van szó. - * @param {any} listSelector: selector (#list1 / #list2) - * @param {any} ajaxUrl : url - * @param {any} isDefault : true/false - */ -function getSelectedItems(name, listSelector, ajaxUrl, isDefault) { - var array = new Array(); - $.each($(listSelector).find("div.selectedItem"), function (index, child) { - child = $(child); - array.push(child.attr('id').substring(9, child.attr('id').length)); - }); - if (array.length === 0) { - array = null; - } - ajaxCall(name, ajaxUrl, array, isDefault); -} - -// ajax hívás a switch buttonra -// name: Név ami meghatározza, hogy melyik osztály interfészéről van szó. -// ajaxUrl: url -// id: id -// isDefault: true/false -function ajaxCallSwitchButton(name, ajaxUrl, id, isDefault) { - var thisfn = 'UAManyTOMany.js ajaxCallSwitchButton function: '; - console.log(thisfn + 'PING name, id, ajaxUrl', name, id, ajaxUrl); - if (isWasAnAjaxCall === false) { - $.ajax({ - cache: false, - url: ajaxUrl, - type: "post", - contenttype: "application/j-son", - datatype: 'json', - data: { name: name, id: id, isDefault: isDefault }, - beforeSend: function () { - disableOperations(); - }, - success: function (responseData) { - $('#MTMMain').html(responseData); - }, - complete: function () { - enableOperations(); - } - }); - } -} - -// műveletek tiltása -function disableOperations() { - isWasAnAjaxCall = true; - $('#MTMMain').find(':submit').attr('disabled', 'disabled'); - $("#list1, #list2").sortable('disable'); - $('.item').addClass('itemDisabled'); - $('.itemDisabled').removeClass('item'); -} - -// műveletek engedélyezése -function enableOperations() { - isWasAnAjaxCall = false; - $('#MTMMain').find(':submit').removeAttr('disabled'); - $('#list1, #list2').sortable('enable'); - $('.itemDisabled').addClass('item'); - $('.item').removeClass('itemDisabled'); -} \ No newline at end of file diff --git a/Vrh.Web.Reporting/Areas/UAManyToMany/Views/UAManyToMany/ManyToMany.cshtml b/Vrh.Web.Reporting/Areas/UAManyToMany/Views/UAManyToMany/ManyToMany.cshtml deleted file mode 100644 index c559104..0000000 --- a/Vrh.Web.Reporting/Areas/UAManyToMany/Views/UAManyToMany/ManyToMany.cshtml +++ /dev/null @@ -1,18 +0,0 @@ -@using VRH.Log4Pro.MultiLanguageManager; - -@model Vrh.Web.Membership.Areas.UAManyToMany.Models.UAManyToManyViewModel - -@if (Model != null) -{ - string areaName = ViewContext.RouteData.DataTokens["area"].ToString(); - string cssFile = @Url.Content(String.Concat("~/Areas/", areaName, "/Content/UAManyToMany.css")); - string jsFile = @Url.Content(String.Concat("~/Areas/", areaName, "/Scripts/UAManyToMany.js")); - - - -
- @Html.Partial("_Main", Model) -
-} \ No newline at end of file diff --git a/Vrh.Web.Reporting/Areas/UAManyToMany/Views/UAManyToMany/_Main.cshtml b/Vrh.Web.Reporting/Areas/UAManyToMany/Views/UAManyToMany/_Main.cshtml deleted file mode 100644 index 1110b4a..0000000 --- a/Vrh.Web.Reporting/Areas/UAManyToMany/Views/UAManyToMany/_Main.cshtml +++ /dev/null @@ -1,87 +0,0 @@ -@using Vrh.Web.Membership.Areas.UAManyToMany.Models; - -@model UAManyToManyViewModel - -@if (Model != null) -{ - string areaName = "UAManyToMany"; - string ctrlName = "UAManyToMany"; - - - - - - - - - -
- - - - - - - - - - - -
- @if (Session["MTM"] != null && Session["MTM"].GetType() == typeof(UAManyToManySessionModel)) - { - if (Model.IsDefault) - { - @:@(((UAManyToManySessionModel)Session["MTM"]).DefaultListItemsHeader) - } - else - { - @:@(((UAManyToManySessionModel)Session["MTM"]).ListItemsHeader) - } - } -
- -
-
-
- @foreach (SelectListItem item in @Model.DropDownListItems) - { -
@item.Text
- } -
-
-
- @Html.Partial("_MultiSelectLists", Model) -
-} \ No newline at end of file diff --git a/Vrh.Web.Reporting/Areas/UAManyToMany/Views/UAManyToMany/_MultiSelectLists.cshtml b/Vrh.Web.Reporting/Areas/UAManyToMany/Views/UAManyToMany/_MultiSelectLists.cshtml deleted file mode 100644 index cce20ac..0000000 --- a/Vrh.Web.Reporting/Areas/UAManyToMany/Views/UAManyToMany/_MultiSelectLists.cshtml +++ /dev/null @@ -1,109 +0,0 @@ -@using System.Web.Script.Serialization -@using Vrh.Web.Membership.Areas.UAManyToMany.Models; - -@model UAManyToManyViewModel - -@if (Model != null) -{ - string areaName = "UAManyToMany"; - string ctrlName = areaName; - - - - - - - - - - - - - - - - -
- @if (Session["MTM"] != null && Session["MTM"].GetType() == typeof(UAManyToManySessionModel)) - { - if (Model.IsDefault) - { - @:@(((UAManyToManySessionModel)Session["MTM"]).DefaultSelectedListItemsHeader) - } - else - { - @:@(((UAManyToManySessionModel)Session["MTM"]).SelectedListItemsHeader) - } - } - - @if (Session["MTM"] != null && Session["MTM"].GetType() == typeof(UAManyToManySessionModel)) - { - if (Model.IsDefault) - { - @:@(((UAManyToManySessionModel)Session["MTM"]).DefaultAvailableListItemsHeader) - } - else - { - @:@(((UAManyToManySessionModel)Session["MTM"]).AvailableListItemsHeader) - } - } -
-
- @foreach (SelectListItem item in @Model.SelectedDropDownListItemListItems) - { -
@item.Text
- } -
-
- @if (!string.IsNullOrEmpty(Model.SelectedDropDownListItemId)) - { - -
-
-
- -
-
-
- -
-
-
- - } -
-
- @foreach (SelectListItem item in @Model.AvailableListItems) - { -
@item.Text
- } -
-
- - -} diff --git a/Vrh.Web.Reporting/Areas/UAManyToMany/Views/web.config b/Vrh.Web.Reporting/Areas/UAManyToMany/Views/web.config deleted file mode 100644 index d9eba85..0000000 --- a/Vrh.Web.Reporting/Areas/UAManyToMany/Views/web.config +++ /dev/null @@ -1,36 +0,0 @@ - - - - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Content/MvcMembership.css b/Vrh.Web.Reporting/Areas/UserAdministration/Content/MvcMembership.css deleted file mode 100644 index 503dcf2..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Content/MvcMembership.css +++ /dev/null @@ -1,183 +0,0 @@ -p.mvcMembership-warning{ - color: #cc0000; - font-weight: bold; - border: 2px solid #cc0000; - padding: 1em; - border-radius: .5em; - text-align: center; -} - -h3.mvcMembership{ - clear: left; -} - -ul.mvcMembership-paging > li{ - float: left; - list-style-type: none; - margin: 1em; -} - -ul.mvcMembership > li > form{ - display: inline; - margin-left: 1em; -} - -dl.mvcMembership{ - /*margin-bottom: 50px;*/ -} -dl.mvcMembership > dt -{ - display: block; - float: left; - font-weight: bold; - margin-right: 10px; - padding: 5px; - width: 200px; -} -dl.mvcMembership > dd{ - display: block; - margin: 2px 0; - padding: 5px 0; - width: 100%; -} - -div.mvcMembership-account > form{ - display: inline; -} - -div.mvcMembership-allUsers ul{ - margin: 0; -} -div.mvcMembership-allUsers ul.mvcMembership-users > li{ - margin: .5em 0 .5em 0; -} -div.mvcMembership-allUsers ul.mvcMembership-users > li > span.mvcMembership-isOnline{ - display: block; - font-weight: bold; - color: #33cc33; -} -div.mvcMembership-allUsers ul.mvcMembership-users > li > span.mvcMembership-isOffline{ - display: block; - color: #999; -} -div.mvcMembership-allUsers ul.mvcMembership-users > li > span.mvcMembership-email{ - display: block; - font-size: .8em; -} -div.mvcMembership-allUsers ul.mvcMembership-users > li > span.mvcMembership-comment{ - display: block; - border: 1px solid #ccc; - padding: .25em .5em .25em .5em; - margin: .5em 0 .5em 0; -} - -div.mvcMembership-allUsers .PagedList-disabled a{ - color: #666; -} -div.mvcMembership-allUsers .PagedList-disabled a:hover{ - color: #666; -} - -div.mvcMembership-allRoles ul > li -{ - margin: .5em 0 .5em 0; -} - -form.mvcMembership-searchForm fieldset, -.mvcMembership-allRoles fieldset{ - padding-top: 1.5em; -} - -a.userIsInRole -{ - color: Lime; -} - -a.userIsNotInRole -{ - color: Gray; -} - -/* TAB MENU -----------------------------------------------------------*/ -ul.mvcMembership-tabs { - padding: 0 0 2px; - margin: 0 0 1rem 0; /* top right bottom left*/ - text-align: left; -} - -ul.mvcMembership-tabs li { - display: inline; - list-style: none; - font-weight: bold; -} - -ul.mvcMembership-tabs li#greeting { - padding: 10px 20px; - font-weight: bold; - text-decoration: none; - line-height: 2.8em; - color: Red; -} - -ul.mvcMembership-tabs li a { - padding: 10px 20px; - font-weight: bold; - text-decoration: none; - line-height: 2.8em; - background-color: #292D38; - color: #F7941D; - border-radius: 4px 4px 0 0; - -webkit-border-radius: 4px 4px 0 0; - -moz-border-radius: 4px 4px 0 0; -} - -ul.mvcMembership-tabs li a:hover { - background-color: Black;/*#292D96*/ - text-decoration: none; -} - -ul.mvcMembership-tabs li a:active { - /*background-color: Yellow;*/ - text-decoration: none; -} - -ul.mvcMembership-tabs li.selected a { - background-color: #fff; - color: #000; -} - -/* USERS TABLE -----------------------------------------------------------*/ - -div.mvcMembership-allUsers table.mvcMembership-users -{ - width: 100%; - background-color: #333743; - overflow: hidden; - color: White; -} - -div.mvcMembership-allUsers table.mvcMembership-users th -{ - background-color: #F7A23B; -} - -div.mvcMembership-allUsers table.mvcMembership-users a -{ - color: Yellow; -} - -div.mvcMembership-allUsers table.mvcMembership-users td.mvcMembership-isOnline -{ - color: Lime; -} - -div.mvcMembership-allUsers table.mvcMembership-users td.mvcMembership-isOffline -{ - color: White; -} - -a.log4pro-roles { - color: whitesmoke; -} \ No newline at end of file diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Content/PagedList.css b/Vrh.Web.Reporting/Areas/UserAdministration/Content/PagedList.css deleted file mode 100644 index 87009d6..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Content/PagedList.css +++ /dev/null @@ -1,18 +0,0 @@ -.PagedList-pager > ul{ - display: block; - margin: 0; - padding: 0; - list-style: none; - float: right; - color: #F7941D; -} -.PagedList-pager > ul > li{ - margin: .25em; - display: inline-block; -} -.PagedList-pager > ul > li a{ - cursor: pointer; -} -.PagedList-goToPage > fieldset{ - border: 0; -} \ No newline at end of file diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Content/SecondaryUser.css b/Vrh.Web.Reporting/Areas/UserAdministration/Content/SecondaryUser.css deleted file mode 100644 index 6875b0f..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Content/SecondaryUser.css +++ /dev/null @@ -1,33 +0,0 @@ -/*************************************************** -SecondaryUser.css - A Vonalkód Rendszerház másodlagos felhasználók kezeléséhez - készült stílusok. ----------------------- -Alapítva: - 2019.02.28. Wittmann Antal -Módosult: -****************************************************/ - -.fa-square, .fa-check-square { - font-size: 1.3rem; -} - -.wrapWord { - word-break: break-word; -} - -/* -* Sajnos, ha a "table-sm" osztályt alkalmazzuk a táblázaton, akkor a sorting jelölő rossz helyre kerül. -* Ez a megoldás nem dinamikus, ha kivesszük a "table-sm" osztályt, akkor ezt is kommentezzük ki. -*/ -table.dataTable thead .sorting:before, table.dataTable thead .sorting:after, -table.dataTable thead .sorting_asc:before, -table.dataTable thead .sorting_asc:after, -table.dataTable thead .sorting_desc:before, -table.dataTable thead .sorting_desc:after, -table.dataTable thead .sorting_asc_disabled:before, -table.dataTable thead .sorting_asc_disabled:after, -table.dataTable thead .sorting_desc_disabled:before, -table.dataTable thead .sorting_desc_disabled:after { - bottom: 0.3em; -} \ No newline at end of file diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Content/UserManager.css b/Vrh.Web.Reporting/Areas/UserAdministration/Content/UserManager.css deleted file mode 100644 index 94005f6..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Content/UserManager.css +++ /dev/null @@ -1,46 +0,0 @@ -/*************************************************** -UserManager.css - A Vonalkód Rendszerház felhasználók kezeléséhez készült stílusok. ----------------------- -Alapítva: - 2019.03.05. Wittmann Antal -Módosult: -****************************************************/ - -.datatableColumnFilter { - border-radius: 4px; - padding: 0 3px 0 3px; - /*margin: -2px;*/ - width: 100%; - height: 28px; -} - -.datatableActionIcon { - cursor: pointer; - color: orange; - opacity: .7; -} - -.fa-square, .fa-check-square { - font-size: 1.3rem; -} - -.wrapWord { - word-break: break-word; -} - -/* -* Sajnos, ha a "table-sm" osztályt alkalamazzuk a táblázaton, akkor a sorting jelölő rossz helyre kerül. -* Ez a megoldás nem dinamikus, ha kivesszük a "table-sm" osztályt, akkor ezt is kommentezzük ki. -*/ -table.dataTable thead .sorting:before, table.dataTable thead .sorting:after, -table.dataTable thead .sorting_asc:before, -table.dataTable thead .sorting_asc:after, -table.dataTable thead .sorting_desc:before, -table.dataTable thead .sorting_desc:after, -table.dataTable thead .sorting_asc_disabled:before, -table.dataTable thead .sorting_asc_disabled:after, -table.dataTable thead .sorting_desc_disabled:before, -table.dataTable thead .sorting_desc_disabled:after { - bottom: 0.3em; -} diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Content/menu.png b/Vrh.Web.Reporting/Areas/UserAdministration/Content/menu.png deleted file mode 100644 index 79a10e8..0000000 Binary files a/Vrh.Web.Reporting/Areas/UserAdministration/Content/menu.png and /dev/null differ diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Scripts/LogInOut.js b/Vrh.Web.Reporting/Areas/UserAdministration/Scripts/LogInOut.js deleted file mode 100644 index 3f400fd..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Scripts/LogInOut.js +++ /dev/null @@ -1,345 +0,0 @@ -/*************************************************** -LogInOut.js - A Vrh.Web.Membership bejelentkezési logikáját támogató - metódusok és események. ----------------------- -Alapítva: - 2018.10.02.-10.09. Wittmann Antal -Módosult: -****************************************************/ -/*##### EVENTS #####*/ -$(function () { // $(document).ready(function () { - 'use strict'; - var thisfn = 'UserAdministration.LogInOut.js: ready event: '; - console.log(thisfn + 'PING'); - //console.log(thisfn + 'END'); -}); // $(document).ready END -/*##### EVENTS END #####*/ - -/** - * A Login/Logout kezelőfelülethez készült prototípus. - * - * @param {ExportToLogInOut} imp Paraméter objektum, cshtml-ben feltöltenő paramétereket tartalmaz. - */ -function LogInOutScripts(imp) { - 'use strict'; - - /*##### PROTOTYPE VARIABLES #####*/ - var me = this; //hogy a belső függvényekben is tudjak hivatkozni a prototype tulajdonságaira - var thispt = 'LogInOut.js: LogInOutScripts.'; - var isInLogin = false; - /*##### PROTOTYPE VARIABLES END #####*/ - - /*##### FUNCTIONS #####*/ - - /** Kijelentkezéskor ez a metódus hívódik meg. */ - this.PushLogout = function () { - - var thisfn = thispt + 'PushLogout function: '; - console.log(thisfn + 'PING'); - - if (imp.Logout.UrlBeforeLogout !== '') { - $.ajax({ - url: imp.Logout.UrlBeforeLogout, - cache: false, - type: "post", - success: function (response) { - if (response.ReturnValue === 0) { - console.log(thisfn + 'Nem üzent hibát a beforelogout url.'); - CallLogoutJSON();// ha sikeres a before logout url, akkor jöhet a kijelentkezés - } else { - console.log(thisfn + 'Hiba jött a beforelogout url-től.'); - bootbox.alert(response.ReturnMessage); - } - }, - error: function (jqXHR, exception) { - console.log('Calling the "' + urlBeforeLogout + '" unsuccessful! exception=', exception); - } - }); - } - else { // ha nincs before logout, akkor egyből kijelentkezik - CallLogoutJSON(); - } - - function CallLogoutJSON() { - var thisfn = thispt + 'CallLogoutJSON function: '; - console.log(thisfn + 'PING'); - $.ajax({ - url: imp.Url.LogoutJSON, - cache: false, - type: "post", - success: function (response) { - if (response.ReturnValue === 0) { - console.log(thisfn + 'LogoutJSON sucess.'); - if (imp.Logout.IsReloadLogout) { - location.reload(); - } else { - if (imp.BootboxId) { // ha nem volt reload, de van ablak, akkor azt csukjuk be - vrhct.bootbox.hide(imp.BootboxId); - } - } - } else { - console.log(thisfn + 'LogoutJSON error!'); - bootbox.alert(response.ReturnMessage); - } - }, - error: function (jqXHR, exception) { - console.log("Calling the LogoutJSON action unsuccessful! exception =", exception); - } - }); - } // CallLogoutJSON function END - - }; //function PushLogout() END - - - /** - * A bejelentkezést végrehajtó metódus. - */ - this.PushLogin = function () { - var thisfn = thispt + 'PushLogin method: '; - if (isInLogin) { - console.log(thisfn + 'Pressed too soon!'); - return; - } - isInLogin = true; - - imp.Login.UserName = $(imp.Id.UserName).val(); - console.log(thisfn + 'START UserName="{0}"', imp.Login.UserName); - if (!imp.Login.UserName) { - MyAlert(imp.Message.PleaseEnterUsername); - return; - } - - imp.Login.Password = $(imp.Id.Password).val(); - imp.Login.Remember = $(imp.Id.Remember).is(':checked'); - console.log('loginother', imp.LoginOther); - if (imp.LoginOther.Type !== -1 && $(imp.Id.Other).is(':checked')) { - imp.Login.Type = imp.LoginOther.Type; - imp.Login.UrlAfterLogin = imp.LoginOther.UrlAfterLogin; - imp.Login.IsReloadLogin = imp.LoginOther.IsReloadLogin; - imp.Login.IsReloadLogout = imp.LoginOther.IsReloadLogout; - } else { - imp.Login.Type = imp.LoginBase.Type; - imp.Login.UrlAfterLogin = imp.LoginBase.UrlAfterLogin; - imp.Login.IsReloadLogin = imp.LoginBase.IsReloadLogin; - imp.Login.IsReloadLogout = imp.LoginBase.IsReloadLogout; - } - //console.log(thisfn + 'imp.Login', imp.Login); - - switch (imp.Login.Type) { - case imp.LoginTypes.WebReq: - var mess = imp.WebReq.RequestTemplate - .replace(imp.WebReqVars.USERNAME, imp.Login.UserName) - .replace(imp.WebReqVars.PASSWORD, imp.Login.Password); - - if (imp.WebReq.IsFromServer) { - console.log(thisfn + 'FromServer mess=%s, imp.WebReq.Url=%s', mess, imp.WebReq.Url); - $.ajax({ - url: imp.Url.LoginRemote, - cache: false, - type: "post", - data: { url: imp.WebReq.Url, message: mess }, - success: function (response) { - if (response.ReturnValue === 0) { // sikeres volt a bejelentkezés - console.log(thisfn + 'WebReq FromServer sucess. response', response); - RemoteResponseParser(response.ReturnMessage); - } else { - console.log(thisfn + 'WebReq FromServer managed error!'); - MyAlert(response.ReturnMessage); - } - }, - error: function () { - console.log(thisfn + "WebReq FromServer unsuccessful!"); - isInLogin = false; - } - }); // imp.Url.RemoteLogin ajax END - } else { - console.log(thisfn + 'FromClient mess=%s, imp.WebReq.Url=%s', mess, imp.WebReq.Url); - $.ajax({ - url: imp.WebReq.Url, - cache: false, - type: "post", - data: mess, - dataType: 'text', - contentType: 'text/plain; charset=UTF-8', - success: function (response) { - console.log(thisfn + 'WebReq FromClient success. response', response); - RemoteResponseParser(response); - }, - error: function (jqXHR, exception) { - console.log(thisfn + 'WebReq FromClient unsuccessful! exception', exception); - isInLogin = false; - } - }); // imp.WebReq.Url ajax END - } - break; - - case imp.LoginTypes.AD: - imp.Login.UserName = imp.LoginTypes.ADPrefix + imp.Login.UserName; - //CallLogin(imp.Login, localRoleGroup); - isInLogin = false; - break; - - default: // integrated - CallLogin(imp.Login, null); // isInLogin a funkcióban állítva - break; - } // switch (loginType) END - - /** - * A távoli login akció által visszaadott válasz feldolgozása. - * - * @param {string} response A távoli login által vissza adott válasz. Ha üres, akkor az hibajelzést eredményez. - */ - function RemoteResponseParser(response) { - if (response) { - var parts = response.split('|'); - if (parts.length < 2) { - MyAlert(imp.Message.ResponseIncorrect + 'Response = "' + response + '"'); - } else { - var status; - var roleGroup; - var errMess; - for (var ix = 0; ix < parts.length; ix++) { - var items = parts[ix].split('='); - if (items.length < 2) { - errMess = imp.Message.ResponseIncorrect + 'Response = "' + response + '"'; - break; - } else { - switch (items[0]) { - case imp.WebReqResponse.FIELD_STATUS: - status = items[1]; - break; - case imp.WebReqResponse.FIELD_LEVEL: - roleGroup = items[1]; - break; - case imp.WebReqResponse.FIELD_MSG: - errMess = imp.Title.Response + items[1]; - break; - default: - errMess = imp.Title.Response + 'Response = "' + response + '"'; - break; - } - } - } - if (errMess) { // ha van hibaüzenet, akkor az kitesszük. - console.log('WebReq response: Error message =', errMess); - MyAlert(errMess); - } else { // ha nincs hiba, akkor jöhet a login - var localRoleGroup; - for (var jx = 0; jx < imp.RoleGroups.length; jx++) { - if (imp.RoleGroups[jx][0] === roleGroup) { - localRoleGroup = imp.RoleGroups[jx][1]; - break; - } - } - if (localRoleGroup) { - imp.Login.UserName = imp.LoginTypes.WebReqPrefix + imp.Login.UserName; //hozzáadjuk a típus szerinti prefixet - CallLogin(imp.Login, localRoleGroup); // a funkcióban az isInLogin állítva - } else { - MyAlert(imp.Message.RemoteRoleGroupNotTranslated + roleGroup); - } - } - } - } else { - MyAlert(remLoginIncorrect + 'Response = "' + response + '"'); - } - } // RemoteResponseParser Function END - - /** - * A helyi bejelentkezést végrehajtó függvény. - * - * @param {Object} lo Login adatokat tartalmazó objektum - * @param {string} lo.UserName Felhasználó neve - * @param {string} lo.Password Felhasználó megadott jelszava - * @param {Boolean} lo.Remember Bjelenkezéskor megadott "Emlékezz rám!" értéke - * @param {number} lo.Type Valamelyik LoginTypes enum integer értéke - * @param {string} lo.UrlAfterLogin Bejelentkezés után meghívandó akció URL-je, ha üres, akkor nem lesz hívás - * @param {Boolean} lo.IsReloadLogin Sikeres bejelentkezés után történjen-e weblap újratöltés - * @param {Booelan} lo.IsReloadLogout Sikeres kijelentkezés után történjen-e weblap újratöltés - * @param {string} lo.ExpireMinutes A login ennyi perc után jár le - * @param {string} roleGroup A lokális szerepkör neve, ahova majd a felhasználót fel kell venni - * - */ - function CallLogin(lo, roleGroup) { - 'use strict'; - - var thisfn = thispt + 'CallLogin function: '; - console.log(thisfn + 'roleGroup', roleGroup); - $.ajax({ - url: imp.Url.LoginJSON, - cache: false, - type: "post", - data: { username: lo.UserName, password: lo.Password, rememberme: lo.Remember, rolegroup: roleGroup, expirationseconds: lo.ExpireSeconds, }, - success: function (response) { - if (response.ReturnValue === 0) { // sikeres volt a bejelentkezés - console.log(thisfn + 'LoginJSON sucess.'); - if (lo.UrlAfterLogin !== '') { //jöhet az afterlogin, ha van - $.ajax({ - url: lo.UrlAfterLogin, - cache: false, - type: "post", - success: function (response) { - if (response.ReturnValue === 0) { - console.log(thisfn + 'Nem üzent hibát az afterlogin url.'); - if (lo.IsReloadLogin) { - location.reload(); //vagy inkább újratöltjük a lapot - } else { - if (imp.BootboxId) { // ha nem volt reload, de van ablak, akkor azt csukjuk be - vrhct.bootbox.hide(imp.BootboxId); - } - } - } else { - // most hiba esetén is becsukjuk, mert nincs értelme - bootbox.alert(response.ReturnMessage, function () { // csak, ha leokézta az üzenetet - if (lo.IsReloadLogin) { - location.reload(); - } else { - if (imp.BootboxId) { // ha nem volt reload, de van ablak, akkor azt csukjuk be - vrhct.bootbox.hide(imp.BootboxId); - } - } - }); - } - }, - error: function (jqXHR, exception) { - var unsuccessAfter = imp.Message.AfterLoginUnsuccessful; - console.log(unsuccessAfter + ' exception =', exception); - bootbox.alert(unsuccessAfter, function () { - if (imp.BootboxId) { // hibaüzenet után, ha ablak, akkor azt csukjuk be - vrhct.bootbox.hide(imp.BootboxId); - } - }); - } - }); - } else { //ha nincs afterlogin - if (lo.IsReloadLogin) { - location.reload(); - } else { - if (imp.BootboxId) { // // ha nem volt reload, de van ablak, akkor azt csukjuk be - vrhct.bootbox.hide(imp.BootboxId); - } - } - } - } else { - console.log(thisfn + 'LoginJSON managed error!'); - bootbox.alert(response.ReturnMessage); - } - isInLogin = false; - }, - error: function () { - console.log(thisfn + "Calling the LoginJSON action unsuccessful!"); - isInLogin = false; - } - }); // imp.Url.LoginJSON ajax END - } // CallLogin function END - - function MyAlert(message) { - bootbox.alert(message); - isInLogin = false; - } - - }; // PushLogin function END - - /*##### FUNCTIONS END #####*/ - -} // LogInOutScripts prototype END diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Scripts/LogoutOnly.js b/Vrh.Web.Reporting/Areas/UserAdministration/Scripts/LogoutOnly.js deleted file mode 100644 index cf7e96e..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Scripts/LogoutOnly.js +++ /dev/null @@ -1,93 +0,0 @@ -/*************************************************** -LogoutOnly.js - A Vrh.Web.Membership kijelentkezési logikáját támogató - metódusok és események. ----------------------- -Alapítva: - 2018.10.02.-10.10. Wittmann Antal -Módosult: -****************************************************/ -/*##### EVENTS #####*/ -$(function () { // $(document).ready(function () { - 'use strict'; - var thisfn = 'UserAdministration.LogoutOnly.js: ready event: '; - console.log(thisfn + 'START lgtnl.Logout.UrlBeforeLogout', lgtnl.Logout.UrlBeforeLogout); - - if (lgtnl.Logout.UrlBeforeLogout !== '') { - $.ajax({ - url: lgtnl.Logout.UrlBeforeLogout, - cache: false, - type: "post", - success: function (response) { - if (response.ReturnValue === 0) { - console.log(thisfn + 'Nem üzent hibát a "beforelogout url".'); - lgtnl.CallLogoutJSON();// ha sikeres a before logout url, akkor jöhet a kijelentkezés - } else { - console.log(thisfn + 'Hiba jött a "beforelogout url"-től.'); - $(lgtnl.Id.Message).html(response.ReturnMessage); - } - }, - error: function (jqXHR, exception) { - console.log('Calling the "' + lgtnl.Logout.UrlBeforeLogout + '" unsuccessful! exception=', exception); - } - }); - } - else { // ha nincs before logout, akkor egyből kijelentkezik - lgtnl.CallLogoutJSON(); - } - - console.log(thisfn + 'END'); -}); // $(document).ready END -/*##### EVENTS END #####*/ - -/** - * A LogoutOnly kezelőfelülethez készült prototípus. - * - * @param {ExportToLogoutOnly} imp Paraméter objektum, cshtml-ben feltöltenő paramétereket tartalmaz. - */ -function LogoutOnlyScripts(imp) { - 'use strict'; - - /*##### PROTOTYPE VARIABLES #####*/ - var me = this; //hogy a belső függvényekben is tudjak hivatkozni a prototype tulajdonságaira - var thispt = 'LogoutOnly.js: LogoutOnlyScripts.'; - /*##### PROTOTYPE VARIABLES END #####*/ - - this.Id = imp.Id; - this.Logout = imp.Logout; - - /*##### METHODS #####*/ - - /** Kijelentkezés végrehajtása */ - this.CallLogoutJSON = function () { - var thisfn = thispt + 'CallLogoutJSON method: '; - console.log(thisfn + 'PING'); - $.ajax({ - url: imp.Url.LogoutJSON, - cache: false, - type: "post", - success: function (response) { - if (response.ReturnValue === 0) { - console.log(thisfn + 'LogoutJSON sucess.'); - if (imp.Logout.IsReloadLogout) { - location.reload(); - } - else { //ha nincs reload, de ablakban nyílt meg, akkor azt be kell csukni - if (imp.BootboxId) { - vrhct.bootbox.hide(imp.BootboxId); - } - } - } else { - console.log(thisfn + 'LogoutJSON error! message=', response.ReturnMessage); - $(imp.Id.Message).text(response.ReturnMessage); - } - }, - error: function (jqXHR, exception) { - console.log("Calling the LogoutJSON action unsuccessful! exception =", exception); - } - }); - };// method CallLogoutJSON END - - /*##### METHODS END #####*/ - -} // LogoutOnlyScripts prototype END diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Scripts/RolesToUserRoleGroupsDialog.js b/Vrh.Web.Reporting/Areas/UserAdministration/Scripts/RolesToUserRoleGroupsDialog.js deleted file mode 100644 index 5cdb24c..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Scripts/RolesToUserRoleGroupsDialog.js +++ /dev/null @@ -1,74 +0,0 @@ -var rturgd = { - TitleNew : '', - TitleDel : '', - TitleRen : '', - TitleOK : '', - TitleCancel : '', - TitleClose: '', - FormNewId: '', - FormDelId: '', - FormRenId:'' -}; - -function openEditDialog(url, titleText, okButtonText, cancelButtonText, okButtonFormSelector) { - var thisfn = 'RolesToUserRoleGroupsDialog.js openEditDialog function: '; - console.log(thisfn + 'PING url, titleText, okButtonText, cancelButtonText, okButtonFormSelector', url, titleText, okButtonText, cancelButtonText, okButtonFormSelector); - var okButtonStyle = ' bootboxAction-btn-ok'; - if (okButtonFormSelector === rturgd.FormNewId) { - okButtonStyle = 'btn btn-success' + okButtonStyle; - } else if (okButtonFormSelector === rturgd.FormDelId) { - okButtonStyle = 'btn btn-danger' + okButtonStyle; - } else { - okButtonStyle = 'btn btn-primary' + okButtonStyle; - } - $.ajax({ - cache: false, - url: url, - type: 'get', - contenttype: 'application/json', - datatype: 'json', - data: null, - success: function (responseData) { - if (!!responseData[0] && responseData[0].ErrorMessage) { - bootbox.alert(responseData[0].ErrorMessage); - } else { - $('input[type="submit"]').attr('disabled', 'true'); - buttons = { - ok: { - label: okButtonText, - className: okButtonStyle, - callback: function () { - $('#' + okButtonFormSelector).submit(); - return false; - } - }, - cancel: { - label: cancelButtonText, - className: 'btn btn-secondary bootboxAction-btn-cancel', - callback: function () { - console.log(thisfn + 'cancel'); - dialog.modal('hide'); - location.reload(); - } - } - }; - var dialog = bootbox.dialog({ - show: false, - title: titleText, - message: responseData, - size: 'small', - onEscape: function (event) { - console.log(thisfn + 'onEscape'); - dialog.modal('hide'); - location.reload(); - }, - buttons: buttons - }); - dialog.modal('show'); - } - }, - error: function (jqXHR, exception) { - console.log(thisfn + 'Ajax hívás sikertelen! ', jqXHR.responseText); - } - }); -} \ No newline at end of file diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Scripts/SecondaryUser.js b/Vrh.Web.Reporting/Areas/UserAdministration/Scripts/SecondaryUser.js deleted file mode 100644 index f64ba04..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Scripts/SecondaryUser.js +++ /dev/null @@ -1,293 +0,0 @@ -/*************************************************** -SecondaryUser.js - A Vonalkód Rendszerház másodlagos bejelentkezések kezeléséhez - készült metódusok és események. ----------------------- -Alapítva: - 2019.02.23.-03.08. Wittmann Antal -Módosult: -****************************************************/ -/*##### EVENTS #####*/ -$(document).ready(function () { - 'use strict'; - - var thisfn = 'UserAdministration.SecondaryUser.js: ready event: '; - console.log(thisfn + 'PING'); - - // Resize figyelése, hogy a card-body mérete kitöltse a képernyőt - $(window).resize(function () { - console.log(thisfn + 'window.resize event') - vrhct.masterdata.resizeCardBody(); - }); - vrhct.masterdata.resizeCardBody(); - if (typeof vrhmenu != 'undefined') { - vrhmenu.MenuSwapEventFunction = function () { - vrhct.masterdata.resizeCardBody(); // menüváltozáskor is hívja meg a resize-t - } - } - - vrhsls.InitTable(); - - console.log(thisfn + 'END'); -}); // $(document).ready END -/*##### EVENTS END #####*/ - - -/** - * A nyelvi kezelőfelülethez készült prototípus. - * - * @param {ExportToSecondaryUserScript} imp Paraméter objektum, cshtml-ből küldött és ott feltöltött állandókat tartalmaz. - */ -function SecondaryUserScript(imp) { - 'use strict'; - - /*##### PROTOTYPE VARIABLES #####*/ - var me = this; // hogy a belső függvényekben is tudjak hivatkozni a prototype tulajdonságaira - var thispt = 'SecondaryUserScript: '; - var isInEdit = false; // annak jelzése, hogy a szerkesztés ablakot aktiválták - var isInDelete = false; // annak jelzése, hogy a törlő ablakot aktiválták - var isInManage = false; // annak jelzése, hogy a funkciók kezelését végző ablakot aktiválták - - // DataTable oszlopok definciója - var dtColumns = [ - { data: imp.Data.FunctionName }, - { data: imp.Data.PrimaryName }, - { data: imp.Data.SecondaryName }, - { data: imp.Data.SecondaryPassword }, - { - data: imp.Data.Active, - render: function (data, type, row) { - var icon = data ? "fa-check-square" : "fa-square" - var html = '
'; - return html; - } - }, - { // a műveletek oszlopa - render: function (data, type, row) { - var temp = document.createElement('div'); - - if (imp.EditMode.Current != imp.EditMode.Select) { - var spane = document.createElement('span'); - $(spane).attr('title', imp.Titles.SecondaryUserEdit); - $(spane).addClass('fas fa-pencil-alt datatableActionIcon'); - $(spane).attr('onclick', 'vrhsls.Edit(' + row.Id + ')'); - $(temp).append(spane); - } - - if (imp.EditMode.Current == imp.EditMode.Delete || imp.EditMode.Current == imp.EditMode.Manage) { - var spand = document.createElement('span'); - $(spand).attr('title', imp.Titles.SecondaryUserDelete); - $(spand).addClass('fas fa-trash-alt datatableActionIcon'); - $(spand).attr('onclick', 'vrhsls.Delete(' + row.Id + ', "' + row.Name + '")'); - $(temp).append(spand); - } - - return $(temp).html(); - } - } - ]; - var dtColumnDefs = [ - { targets: [4], width: '55px', orderable: false }, - { targets: [5], width: '40px', orderable: false, searchable: false } - ]; - var dtFilterDefs = [ - { column: 0, id: imp.Ids.Input.FilterFunction }, - { column: 1, id: imp.Ids.Input.FilterUser }, - { column: 4, id: imp.Ids.Input.FilterActive }, - ]; - /*##### PROTOTYPE VARIABLES END #####*/ - - - /*##### PROPERTIES #####*/ - - /** Az inicializált tábla DataTable objektuma */ - this.SecondaryUserTable = null; - - /*##### PROPERTIES END #####*/ - - - /*##### METHODS #####*/ - - /** - * Tábla inicializálása. - */ - this.InitTable = function () { - var thisfn = thispt + 'InitTable method: '; - me.SecondaryUserTable = new VrhDataTable({ - ajax: { url: imp.Url.GetData }, // az adatlistát eredményező akció - autoWidth: false, - columns: dtColumns, - columnDefs: dtColumnDefs, - filterDefs: dtFilterDefs, - lcid: imp.LCID, - initComplete: function (setting, json) { // a táblázat elkészültekor meghívott függvény - console.log(thisfn + 'Table.initComplete callback: PING'); - //SetFilterFunction(); - }, - tableId: imp.Ids.Table, - }); - };// InitTable method END - - /** - * Másodlagos felhasználó szerkesztés ablak inicializálása. - * - * @param {number} id A másodlagos felhasználó egyedi azonosítója. Ha -1, akkor felvitel. - */ - this.Edit = function (id) { - try { - if (isInEdit) return; - isInEdit = true; - - var thisfn = thispt + 'Edit method: '; - console.log(thisfn + 'id=%d', id); - vrhct.bootbox.edit({ - ajax: { - url: imp.Url.Editor, - data: { secondaryUserId: id } - }, - title: imp.Labels.Button.FunctionManage, - formid: imp.Ids.Form.Editor, - size: 'large', - shown: function () { - isInEdit = false; - } - }); - } catch (e) { - isInEdit = false; - bootbox.alert(e.Message); - } - }; // Edit method END - - /** - * Másodlagos felhasználó törlésének indítása. - * - * @param {any} secondaryUserId A törlendő szókód. - */ - this.Delete = function (secondaryUserId, secondaryUserName) { - try { - if (isInDelete) return; - isInDelete = true; - - var thisfn = thispt + 'Delete method: '; - console.log(thisfn + 'secondaryUserId=%d, secondaryUserName="%s"', secondaryUserId, secondaryUserName); - vrhct.bootbox.delete({ - ajax: { - url: imp.Url.Delete, - data: { secondaryUserId: secondaryUserId } - }, - title: imp.Titles.Confirmation, - confirm: imp.Confirmations.SecondaryUserDelete.format(secondaryUserName), - shown: function () { - isInDelete = false; - }, - success: function () { - console.log(thisfn + 'Sikeres törlés. Itt vagyunk a callback-ben.'); - me.SecondaryUserTable.Table.draw('page'); - } - }); - } catch (e) { - isInDelete = false; - bootbox.alert(e.Message); - } - }; // Delete method END - - /** - * Másodlagos felhasználókat csoportosító funkciók kezelése - */ - this.SecondaryFunctionManage = function () { - try { - if (isInManage) return; - isInManage = true; - - var thisfn = thispt + 'SecondaryFunctionManage method: '; - console.log(thisfn + 'PING'); - vrhct.bootbox.show(imp.Url.Manage, { - pleaseWaitMessage: imp.Messages.Wait, - shown: function (bootboxid) { - console.log(thisfn + 'SHOWN bootboxid="%s"', bootboxid); - isInManage = false; - }, - hidden: function () { - me.SecondaryUserTable.Table.draw('page'); - }, - }); - - } catch (e) { - isInManage = false; - bootbox.alert(e.Message); - } - }; // SecondaryFunctionManage method END - - /*##### METHODS END #####*/ - - - /*##### PRIVATE FUNCTIONS #####*/ - /*##### PRIVATE FUNCTIONS END #####*/ - -} // SecondaryUserScript prototype END - -function ExportToSecondaryUserScript() { - /** Megerősítést kérő üzenetek gyűjtőhelye */ - this.Confirmations = { - SecondaryUserDelete: '', - }; - /** A táblázat oszlopainak adatelérése */ - this.Data = { - FunctionName: '', - PrimaryName: '', - SecondaryName: '', - SecondaryPassword: '', - Active: '' - }; - /** Szerkesztési mód aktuális és lehetséges értékei */ - this.EditMode = { - Current: '', - Select: '', - Add: '', - Delete: '', - Manage: '', - }; - /** A nézeten lévő html objektumok azonosítóinak gyűjtőhelye */ - this.Ids = { - Form: { - Editor: '' - }, - Input: { - FilterFunction: '', - FilterUser: '', - FilterActive: '', - }, - Table: '', - }; - /** A nézeten lévő inputok címkéinek gyűjtőhelye */ - this.Labels = { - Cancel: '', - OK: '', - No: '', - Yes: '', - Button: { - FunctionManage: '' - }, - }; - /** A környetben érvényes nyelvi kód */ - this.LCID = ''; - /** Az üzenetek gyűjtőhelye */ - this.Messages = { - Wait: '', - }; - /** A nézeten lévő eszközök feliratozásának, címeinek és tooltipjeinek gyűjtőhelye */ - this.Titles = { - Confirmation: '', - OperationProgress: '', - SecondaryUserAdd: '', - SecondaryUserEdit: '', - SecondaryUserDelete: '', - }; - /** A nézeten lévő akciókra mutató url-ek gyűjtőhelye */ - this.Url = { - Editor: '', - Delete: '', - GetData: '', - Manage: '', - }; -} diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Scripts/UserManager.js b/Vrh.Web.Reporting/Areas/UserAdministration/Scripts/UserManager.js deleted file mode 100644 index b405e05..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Scripts/UserManager.js +++ /dev/null @@ -1,443 +0,0 @@ -/*************************************************** -UserManager.js - A Vonalkód Rendszerház felhasználók kezeléséhez - készült metódusok és események. ----------------------- -Alapítva: - 2019.03.05.-03.08. Wittmann Antal -Módosult: -****************************************************/ -/*##### EVENTS #####*/ -$(document).ready(function () { - 'use strict'; - - var thisfn = 'UserAdministration.UserManager.js: ready event: '; - console.log(thisfn + 'PING'); - - // Resize figyelése, hogy a card-body mérete kitöltse a képernyőt - $(window).resize(function () { - console.log(thisfn + 'window.resize event') - vrhct.masterdata.resizeCardBody(); - }); - vrhct.masterdata.resizeCardBody(); - if (typeof vrhmenu != 'undefined') { - vrhmenu.MenuSwapEventFunction = function () { - vrhct.masterdata.resizeCardBody(); // menüváltozáskor is hívja meg a resize-t - } - } - - vrhusman.InitTable(); - - console.log(thisfn + 'END'); -}); // $(document).ready END -/*##### EVENTS END #####*/ - - -/** - * A nyelvi kezelőfelülethez készült prototípus. - * - * @param {ExportToUserManagerScript} imp Paraméter objektum, cshtml-ből küldött és ott feltöltött állandókat tartalmaz. - */ -function UserManagerScript(imp) { - 'use strict'; - - /*##### PROTOTYPE VARIABLES #####*/ - var me = this; // hogy a belső függvényekben is tudjak hivatkozni a prototype tulajdonságaira - var thispt = 'UserManagerScript: '; - var isInEdit = false; // annak jelzése, hogy a szerkesztés ablakot aktiválták - var isInDelete = false; // annak jelzése, hogy a törlő ablakot aktiválták - var isInPasswordRenewal = false;// annak jelzése, hogy a törlő ablakot aktiválták - var isInRoleManage = false; // annak jelzése, hogy a szerepek kezelését végző ablakot aktiválták - var isInRoleGroupManage = false;// annak jelzése, hogy a szerep körök kezelését végző ablakot aktiválták - var isInUnlock = false; // annak jelzése, hogy a zárolás feloldását aktiválták - var editIcon = imp.EditMode.Current == imp.EditMode.Select ? 'fa-info-circle' : 'fa-pencil-alt'; - var editTitle = imp.EditMode.Current == imp.EditMode.Select ? imp.Titles.UserDetails : imp.Titles.UserEdit; - - // DataTable oszlopok definciója - var dtColumns = [ - { data: imp.Data.UserName }, - { data: imp.Data.Email }, - { data: imp.Data.LastLoginString }, - { data: imp.Data.LastActivity }, - { data: imp.Data.Comment }, - { - data: imp.Data.Status, - render: function (data, type, row) { - var temp = document.createElement('div'); - $(temp).append(data); - if (row.IsLockedOut && imp.EditMode.Current != imp.EditMode.Select) { - var spanl = document.createElement('span'); - $(spanl).attr('title', imp.Titles.Unlock); - $(spanl).addClass('fas fa-unlock-alt datatableActionIcon ml-1'); - $(spanl).attr('onclick', 'vrhusman.Unlock("' + row.UserId + '", "' + row.UserName + '")'); - $(temp).append(spanl); - } - return $(temp).html(); - } - }, - { // a műveletek oszlopa - render: function (data, type, row) { - var temp = document.createElement('div'); - - if (imp.EditMode.Current != imp.EditMode.Select) { - var spanp = document.createElement('span'); - $(spanp).attr('title', imp.Titles.PasswordRenewal); - $(spanp).addClass('fas fa-key datatableActionIcon'); - $(spanp).attr('onclick', 'vrhusman.PasswordRenewal("' + row.UserName + '")'); - $(temp).append(spanp); - } - - var spane = document.createElement('span'); - $(spane).attr('title', editTitle); - $(spane).addClass('fas ' + editIcon + ' datatableActionIcon'); - $(spane).attr('onclick', 'vrhusman.Edit("' + row.UserName + '")'); - $(temp).append(spane); - - if (row.IsRemovable - && imp.EditMode.Current != imp.EditMode.Select - && imp.EditMode.Current != imp.EditMode.Add) { - var spand = document.createElement('span'); - $(spand).attr('title', imp.Titles.UserDelete); - $(spand).addClass('fas fa-trash-alt datatableActionIcon'); - $(spand).attr('onclick', 'vrhusman.Delete("' + row.UserId + '", "' + row.UserName + '")'); - $(temp).append(spand); - } - return $(temp).html(); - } - } - ]; - var dtColumnDefs = [ - //{ targets: [5], width: '55px' }, - { targets: [6], width: '60px', orderable: false, searchable: false } // műveletek - ]; - var dtFilterDefs = [ - { column: 5, id: imp.Ids.Input.FilterStatus }, - ]; - /*##### PROTOTYPE VARIABLES END #####*/ - - - /*##### PROPERTIES #####*/ - - /** Az inicializált tábla DataTable objektuma */ - this.UserTable = null; - - /*##### PROPERTIES END #####*/ - - - /*##### METHODS #####*/ - - /** - * Tábla inicializálása. - */ - this.InitTable = function () { - var thisfn = thispt + 'InitTable method: '; - me.UserTable = new VrhDataTable({ - ajax: { url: imp.Url.GetData }, // az adatlistát eredményező akció - autoWidth: false, - columns: dtColumns, - columnDefs: dtColumnDefs, - filterDefs: dtFilterDefs, - lcid: imp.LCID, - initComplete: function (setting, json) { // a táblázat elkészültekor meghívott függvény - console.log(thisfn + 'Table.initComplete callback: PING'); - //SetFilterFunction(); - }, - tableId: imp.Ids.Table, - }); - };// InitTable method END - - this.ChangeTemporary = function () { - var thisfn = thispt + 'ChangeTemporary method: '; - var urlGetData = imp.Url.GetData + '&isTemporary=' + $('#' + imp.Ids.Input.CheckBoxTemp).is(':checked'); - console.log(thisfn + 'url=%s', urlGetData); - me.UserTable.Table.ajax.url(urlGetData); - me.UserTable.Table.draw('page'); - }; - - /** - * Felhasználó szerkesztés ablak inicializálása. - * - * @param {string} userName A felhasználó neve. Ha üres, akkor felvitel. - */ - this.Edit = function (userName) { - try { - if (isInEdit) return; - isInEdit = true; - - var thisfn = thispt + 'Edit method: '; - var modalTitle; - if (imp.EditMode.Current == imp.EditMode.Select) { - modalTitle = imp.Titles.UserDetails; - } else { - if (userName) modalTitle = imp.Titles.UserEdit - else modalTitle = imp.Titles.UserAdd; - } - console.log(thisfn + 'userName="%s", title="%s"', userName, modalTitle); - vrhct.bootbox.edit({ - ajax: { - url: imp.Url.Editor, - data: { userName: userName } - }, - buttonsDefault: imp.EditMode.Current != imp.EditMode.Select, - title: modalTitle, - formid: imp.Ids.Form.UserEditor, - size: 'large', - shown: function () { - isInEdit = false; - } - }); - } catch (e) { - console.error(e); - isInEdit = false; - } - }; // Edit method END - - /** - * Felhasználó törlésének indítása. - * - * @param {string} userId A törlendő felhasználó azonosítója. - * @param {string} userName A törlendő felhasználó neve. - */ - this.Delete = function (userId, userName) { - try { - if (isInDelete) return; - isInDelete = true; - - var thisfn = thispt + 'Delete method: '; - console.log(thisfn + 'userId="%s", userName="%s"', userId, userName); - vrhct.bootbox.delete({ - ajax: { - url: imp.Url.Delete, - data: { userId: userId } - }, - title: imp.Titles.Confirmation, - confirm: imp.Confirmations.UserDelete.format(userName), - shown: function () { - isInDelete = false; - }, - success: function () { - console.log(thisfn + 'Sikeres törlés. Itt vagyunk a callback-ben.'); - me.UserTable.Table.draw('page'); - } - }); - } catch (e) { - console.error(e); - isInDelete = false; - } - }; // Delete method END - - /** - * Jelszó megújítása soréán a checkbox megváltoztatásakor hívódik. - */ - this.PasswordGenerateChange = function () { - try { - var thisfn = thispt + 'PasswordGenerateChange method: '; - console.log(thisfn + 'PING'); - - var $newPassword = $('#' + imp.Ids.Input.NewPassword); - if ($('#IsGenerated').is(':checked')) { - console.log(thisfn + 'checked'); - $newPassword.val(''); - $newPassword.attr('readonly',''); - } else { - console.log(thisfn + 'unchecked'); - $newPassword.removeAttr('readonly'); - $newPassword.focus(); - } - } catch (e) { - console.error(e); - } - }; // PasswordRenewal method END - - /** - * Jelszó megújítása ablak inicializálása. - * - * @param {string} userName A felhasználó neve. - */ - this.PasswordRenewal = function (userName) { - try { - if (isInPasswordRenewal) return; - isInPasswordRenewal = true; - - var thisfn = thispt + 'PasswordRenewal method: '; - console.log(thisfn + 'userName="%s"', userName); - vrhct.bootbox.edit({ - ajax: { - url: imp.Url.PasswordRenewal, - data: { userName: userName } - }, - title: imp.Titles.PasswordRenewal + ' - ' + userName, - formid: imp.Ids.Form.PasswordRenewal, - //size: 'large', - shown: function () { - isInPasswordRenewal = false; - } - }); - } catch (e) { - console.error(e); - isInPasswordRenewal = false; - } - }; // PasswordRenewal method END - - /** - * Szerepek kezelése - */ - this.RoleManage = function () { - try { - if (isInRoleManage) return; - isInRoleManage = true; - - var thisfn = thispt + 'RoleManage method: '; - console.log(thisfn + 'PING'); - vrhct.bootbox.show(imp.Url.RoleManage, { - pleaseWaitMessage: imp.Messages.Wait, - shown: function (bootboxid) { - console.log(thisfn + 'SHOWN bootboxid="%s"', bootboxid); - isInRoleManage = false; - } - }); - - } catch (e) { - console.error(e); - isInRoleManage = false; - } - }; // RoleManage method END - - /** - * Szerepkörök kezelése - */ - this.RoleGroupManage = function () { - try { - if (isInRoleGroupManage) return; - isInRoleGroupManage = true; - - var thisfn = thispt + 'RoleGroupManage method: '; - console.log(thisfn + 'PING'); - vrhct.bootbox.show(imp.Url.RoleGroupManage, { - pleaseWaitMessage: imp.Messages.Wait, - shown: function (bootboxid) { - console.log(thisfn + 'SHOWN bootboxid="%s"', bootboxid); - isInRoleGroupManage = false; - } - }); - - } catch (e) { - console.error(e); - isInRoleGroupManage = false; - } - }; // RoleManage method END - - /** - * Zárolás feloldása - * - * @param {string} userId A felhasználó azonosítója, akit fel kell szabadítani. - * @param {string} userName A felhasználó neve, akit fel kell szabadítani. - */ - this.Unlock = function (userId, userName) { - try { - if (isInUnlock) return; - isInUnlock = true; - - var thisfn = thispt + 'Unlock method: '; - var url = imp.Url.Unlock + '?userId=' + userId; - console.log(thisfn + 'PING url=', url); - vrhct.bootbox.show(url, { - ajaxType: 'post', - isReturnInfoJSON: true, - pleaseWaitMessage: imp.Messages.Wait, - shown: function (bootboxid) { - console.log(thisfn + 'SHOWN bootboxid="%s"', bootboxid); - isInUnlock = false; - }, - hidden: function () { - me.UserTable.Table.draw('page'); - } - }); - - } catch (e) { - console.error(e); - isInUnlock = false; - } - }; // Unlock method END - - /*##### METHODS END #####*/ - - - /*##### PRIVATE FUNCTIONS #####*/ - /*##### PRIVATE FUNCTIONS END #####*/ - -} // UserManagerScript prototype END - -/** A prototípus számára küldendő állandó értékek osztálya. */ -function ExportToUserManagerScript() { - /** Megerősítést kérő üzenetek gyűjtőhelye */ - this.Confirmations = { - UserDelete: '', - }; - /** A táblázat oszlopainak adatelérése */ - this.Data = { - UserName: '', - Email: '', - LastLogin: '', - LastActivity: '', - Comment: '', - Status: '' - }; - /** Szerkesztési mód aktuális és lehetséges értékei */ - this.EditMode = { - Current: '', - Select: '', - Add: '', - Delete: '', - Manage: '', - }; - /** A nézeten lévő html objektumok azonosítóinak gyűjtőhelye */ - this.Ids = { - Form: { - UserEditor: '', - PasswordRenewal: '', - }, - Input: { - FilterStatus: '', - CheckBoxTemp: '', - NewPassword: '', - }, - Table: '', - }; - /** A nézeten lévő inputok címkéinek gyűjtőhelye */ - this.Labels = { - Cancel: '', - OK: '', - No: '', - Yes: '', - Button: { - FunctionManage: '' - }, - }; - /** A környetben érvényes nyelvi kód */ - this.LCID = ''; - /** Az üzenetek gyűjtőhelye */ - this.Messages = { - Wait: '', - }; - /** A nézeten lévő eszközök feliratozásának, címeinek és tooltipjeinek gyűjtőhelye */ - this.Titles = { - Confirmation: '', - OperationProgress: '', - PasswordRenewal: '', - Unlock: '', - UserAdd: '', - UserEdit: '', - UserDelete: '', - UserDetails: '', - }; - /** A nézeten lévő akciókra mutató url-ek gyűjtőhelye */ - this.Url = { - Editor: '', - Delete: '', - GetData: '', - RoleGroupManage: '', - RoleManage: '', - Unlock: '', - }; -} diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/DirectAuthentication.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/DirectAuthentication.cshtml deleted file mode 100644 index 0f5cd82..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/DirectAuthentication.cshtml +++ /dev/null @@ -1,51 +0,0 @@ -@using Vrh.Web.Common.Lib; -@using Vrh.Web.Membership.Areas.UserAdministration.Controllers; - -@model DirectAuthenticationModel -@{ - string actionName = nameof(AccountController.DirectAuthentication); - string areaName = (string)ViewContext.RouteData.DataTokens["area"]; - string controllerName = (string)ViewContext.RouteData.DataTokens["controller"]; - var ajaxops = new AjaxOptions() - { - InsertionMode = InsertionMode.Replace, - HttpMethod = "POST", - UpdateTargetId = MasterData.DialogBodyId(Model.BootboxId) - }; - - @Html.Partial(WebConst.VALIDATIONSUMMARY) - - using (Ajax.BeginForm(actionName, controllerName, new { area = areaName }, ajaxops, new { id = WebConst.Ids.Form.DIRECTAUTHENTICATION })) - { - @Html.AntiForgeryToken() - @Html.HiddenFor(x => x.BootboxId) - @Html.HiddenFor(x => x.TargetUrl) - @Html.HiddenFor(x => x.RolesRequired) - @Html.HiddenFor(x => x.ResponseTarget) - -
- @Html.LabelFor(x => x.UserName) - @Html.TextBoxFor(x => x.UserName, new { @autofocus = "" }) - @Html.ValidationMessageFor(x => x.UserName) -
-
- @Html.LabelFor(x => x.Password) - @Html.PasswordFor(x => x.Password) - @Html.ValidationMessageFor(x => x.Password) -
- } -} - diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/ExternalLoginConfirmation.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/ExternalLoginConfirmation.cshtml deleted file mode 100644 index 0afb98f..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/ExternalLoginConfirmation.cshtml +++ /dev/null @@ -1,39 +0,0 @@ -@using Vrh.Web.Membership.Areas.UserAdministration.Models - -@model RegisterExternalLoginModel -@{ - ViewBag.Title = "Register"; -} - -
-

@ViewBag.Title.

-

Associate your @ViewBag.ProviderDisplayName account.

-
- -@using (Html.BeginForm("ExternalLoginConfirmation", "Account", new { area = WebConst.AREA, ReturnUrl = ViewBag.ReturnUrl })) -{ - @Html.AntiForgeryToken() - @Html.ValidationSummary(true) - -
- Association Form -

- You've successfully authenticated with @ViewBag.ProviderDisplayName. - Please enter a user name for this site below and click the Confirm button to finish - logging in. -

-
    -
  1. - @Html.LabelFor(m => m.UserName) - @Html.TextBoxFor(m => m.UserName) - @Html.ValidationMessageFor(m => m.UserName) -
  2. -
- @Html.HiddenFor(m => m.ExternalLoginData) - -
-} - -@*@section Scripts { - @Scripts.Render("~/bundles/jqueryval") -}*@ diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/ExternalLoginFailure.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/ExternalLoginFailure.cshtml deleted file mode 100644 index ec69c13..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/ExternalLoginFailure.cshtml +++ /dev/null @@ -1,8 +0,0 @@ -@{ - ViewBag.Title = "Login Failure"; -} - -
-

@ViewBag.Title.

-

Unsuccessful login with service.

-
diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/LogInOut.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/LogInOut.cshtml deleted file mode 100644 index 5631a7d..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/LogInOut.cshtml +++ /dev/null @@ -1,195 +0,0 @@ -@using Vrh.Web.Membership; - -@model LoginLogoutModel -@{ - // A weblap eléréséhez használható osztálynév - string loginform = "loginform"; - - // inputok azonosítói - string loginusername = "loginusername"; - string loginpassword = "loginpassword"; - string loginremember = "loginremember"; - string loginother = "loginother"; - string loginbase = "loginbase"; -} - -@if (User.Identity.IsAuthenticated) -{ - IHtmlString headLogout = Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.User.Logout))); -
-

@(headLogout)

-
@(User.Identity.Name)
- - @{ - Type wc = typeof(WordCodes.MvcMembership.Labels.Button.ChangePassword); - object htmlattr = new { @class = "btn btn-primary mb-1 mr-1 float-right" }; - @Html.ActionLink(Model.Trans(wc), WebConst.Actions.MANAGE, WebConst.CONTROLLER_ACCOUNT, new { area = WebConst.AREA }, htmlattr); - } -
-} -else -{ - string headLogin = Model.Trans(typeof(WordCodes.MvcMembership.User.LogIn)); - string phUserName = Model.Trans(typeof(WordCodes.MvcMembership.User.UserName)); - string phPassword = Model.Trans(typeof(WordCodes.MvcMembership.User.Password)); - string labelRemember = Model.Trans(typeof(WordCodes.MvcMembership.Labels.RememberMe)); -
-

@Html.Raw(headLogin)

-
- -
-
- -
-
- - -
-
-
- -
- @if (Model.Membership.LoginOther != null) - { -
-
- - -
-
-
-
- - -
-
- } -
-
-} - -@Scripts.Render(WebConst.AREA_SCRIPTSPATH + "LogInOut.js") - diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/LoginPage.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/LoginPage.cshtml deleted file mode 100644 index fe8347e..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/LoginPage.cshtml +++ /dev/null @@ -1,26 +0,0 @@ -@* LoginPage.cshtml *@ - -@model LoginPageModel - - - -
-
-
-
- @{ - Html.RenderAction(WebConst.Actions.LOGIN, WebConst.CONTROLLER_ACCOUNT, Model.RouteValues); - } -
-
-
-
-
- diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/LogoutOnly.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/LogoutOnly.cshtml deleted file mode 100644 index 3941b9a..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/LogoutOnly.cshtml +++ /dev/null @@ -1,51 +0,0 @@ -@using Vrh.Web.Membership; - -@model LoginLogoutModel -@{ - string logoutmessage = "logoutmessage"; -} - -@if (User.Identity.IsAuthenticated) -{ -
-

@(Model.Trans(typeof(WordCodes.MvcMembership.User.Logout)))

-
@(User.Identity.Name)
-
-
-} -else -{ -
-

@(Model.Trans(typeof(WordCodes.MvcMembership.User.Logout)))

-

@(Model.Trans(typeof(WordCodes.MvcMembership.Messages.NoUserLoggedIn)))

-
-} - -@Scripts.Render(WebConst.AREA_SCRIPTSPATH + "LogoutOnly.js") - \ No newline at end of file diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/Manage.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/Manage.cshtml deleted file mode 100644 index d3fe937..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/Manage.cshtml +++ /dev/null @@ -1,48 +0,0 @@ -@using VRH.Log4Pro.MultiLanguageManager; - - -@model Vrh.Web.Membership.Areas.UserAdministration.Models.LocalPasswordModel - -@{ - ViewBag.Title = Html.Raw(MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.User.ManageAccount))); -} - -@* -
-

@ViewBag.Title

-
- -

@ViewBag.StatusMessage

- -

@Html.Raw(MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.User.UserLoggedInAs))): @User.Identity.Name

-*@ - - -@if (ViewBag.HasLocalPassword) -{ - @Html.Partial("_ChangePasswordPartial") -} -else -{ - @Html.Partial("_SetPasswordPartial") -} -@* -
- @Html.Action("RemoveExternalLogins", "Account", new { area = "UserAdministration" }) - -

Add an external login

- @Html.Action("ExternalLoginsList", "Account", new { area = "UserAdministration", ReturnUrl = ViewBag.ReturnUrl }) -
-*@ -@section Scripts { - @if (ViewBag.StatusMessage != null && - !string.IsNullOrWhiteSpace(ViewBag.StatusMessage.ToString())) - { - - } -@* - @Scripts.Render("~/bundles/jqueryval") -*@ -} diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/Register.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/Register.cshtml deleted file mode 100644 index 4bffd78..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/Register.cshtml +++ /dev/null @@ -1,41 +0,0 @@ -@using VRH.Log4Pro.MultiLanguageManager; - -@model Vrh.Web.Membership.Areas.UserAdministration.Models.RegisterModel - -@{ - ViewBag.Title = Html.Raw(MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.User.Register))); -} - -
-

@ViewBag.Title

-

@Html.Raw(MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.User.CreateNewAccount)))

-
- -@using (Html.BeginForm("Register", "Account", new { area = WebConst.AREA })) -{ - @Html.AntiForgeryToken() - @Html.ValidationSummary() - -
- Registration Form -
    -
  1. - @Html.LabelFor(m => m.UserName) - @Html.TextBoxFor(m => m.UserName) -
  2. -
  3. - @Html.LabelFor(m => m.Password) - @Html.PasswordFor(m => m.Password) -
  4. -
  5. - @Html.LabelFor(m => m.ConfirmPassword) - @Html.PasswordFor(m => m.ConfirmPassword) -
  6. -
- -
-} - -@*@section Scripts { - @Scripts.Render("~/bundles/jqueryval") -}*@ diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/_ChangePasswordPartial.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/_ChangePasswordPartial.cshtml deleted file mode 100644 index 6a31367..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/_ChangePasswordPartial.cshtml +++ /dev/null @@ -1,55 +0,0 @@ -@using VRH.Log4Pro.MultiLanguageManager; - -@model Vrh.Web.Membership.Areas.UserAdministration.Models.LocalPasswordModel - -@{ - IHtmlString titleChangePassword = Html.Raw(MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.User.ChangePassword))); -} - -
-
-

@titleChangePassword

-
-
-
- @using (Html.BeginForm(WebConst.Actions.MANAGE, WebConst.CONTROLLER_ACCOUNT, new { area = WebConst.AREA })) - { - @Html.AntiForgeryToken() - @Html.ValidationSummary(true) - -
- @Html.LabelFor(m => m.OldPassword, new { @class = "col-md-4 col-form-label" }) -
- @Html.PasswordFor(m => m.OldPassword, new { @class = "form-control" }) - @Html.ValidationMessageFor(m => m.OldPassword) -
-
- -
- @Html.LabelFor(m => m.NewPassword, new { @class = "col-md-4 col-form-label" }) -
- @Html.PasswordFor(m => m.NewPassword, new { @class = "form-control" }) - @Html.ValidationMessageFor(m => m.NewPassword) -
-
- -
- @Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-md-4 col-form-label" }) -
- @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" }) - @Html.ValidationMessageFor(m => m.ConfirmPassword) -
-
- -
-
-
-
- -
-
- } -
-
-
diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/_ExternalLoginsListPartial.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/_ExternalLoginsListPartial.cshtml deleted file mode 100644 index 958cb20..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/_ExternalLoginsListPartial.cshtml +++ /dev/null @@ -1,25 +0,0 @@ -@*@model ICollection - -@if (Model.Count == 0) -{ -
-

There are no external authentication services configured. See this article - for details on setting up this ASP.NET application to support logging in via external services.

-
-} -else -{ - using (Html.BeginForm("ExternalLogin", "Account", new { area = "UserAdministration", ReturnUrl = ViewBag.ReturnUrl })) - { - @Html.AntiForgeryToken() -
- Log in using another service -

- @foreach (AuthenticationClientData p in Model) - { - - } -

-
- } -}*@ diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/_RemoveExternalLoginsPartial.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/_RemoveExternalLoginsPartial.cshtml deleted file mode 100644 index fb88ef4..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/_RemoveExternalLoginsPartial.cshtml +++ /dev/null @@ -1,36 +0,0 @@ -@*@using Vrh.Web.Membership.Areas.UserAdministration.Models - -@model ICollection - -@if (Model.Count > 0) -{ -

Registered external logins

- - - @foreach (ExternalLogin externalLogin in Model) - { - - - - - } - -
@externalLogin.ProviderDisplayName - @if (ViewBag.ShowRemoveButton) - { - using (Html.BeginForm("Disassociate", "Account", new { area = Global.AREANAME })) - { - @Html.AntiForgeryToken() -
- @Html.Hidden("provider", externalLogin.Provider) - @Html.Hidden("providerUserId", externalLogin.ProviderUserId) - -
- } - } - else - { - @:   - } -
-}*@ diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/_SetPasswordPartial.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/_SetPasswordPartial.cshtml deleted file mode 100644 index fe267d8..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/Account/_SetPasswordPartial.cshtml +++ /dev/null @@ -1,48 +0,0 @@ -@using VRH.Log4Pro.MultiLanguageManager -@using Vrh.Web.Membership.Areas.UserAdministration.Models - -@model LocalPasswordModel - -@{ - IHtmlString newPasswordTranslationText = Html.Raw(MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.User.NewPassword))); -} - -@*

- You do not have a local password for this site. Add a local - password so you can log in without an external login. -

*@ - -
-
-

@newPasswordTranslationText

-
-
- @using (Html.BeginForm(WebConst.Actions.MANAGE, WebConst.CONTROLLER_ACCOUNT, new { area = WebConst.AREA })) - { - @Html.AntiForgeryToken() - @Html.ValidationSummary(true) - -
- @Html.LabelFor(m => m.NewPassword) -
-
- @Html.PasswordFor(m => m.NewPassword) - @Html.ValidationMessageFor(m => m.NewPassword) -
- -
- @Html.LabelFor(m => m.ConfirmPassword) -
-
- @Html.PasswordFor(m => m.ConfirmPassword) - @Html.ValidationMessageFor(m => m.ConfirmPassword) -
- -
- -

- -

- } -
-
diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUserRoleGroups/Index.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUserRoleGroups/Index.cshtml deleted file mode 100644 index 54e33a7..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUserRoleGroups/Index.cshtml +++ /dev/null @@ -1,74 +0,0 @@ -@* - ----------------------------------------- - RolesToUserRoleGroups - Index.cshtml - ----------------------------------------- -*@ -@using VRH.Log4Pro.MultiLanguageManager; -@using Vrh.Web.Common.Lib; - -@model CommonModel - -@{ - ViewBag.Title = Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.ManyToMany.BindRoleGroupsAndRoles))); - - IHtmlString newRoleTranslationText = Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.ManyToMany.NewRoleGroup))); - IHtmlString okTranslationText = Html.Raw(Model.Trans(typeof(GeneralWordCodes.MLM.General.Words.OK))); - IHtmlString cancelTranslationText = Html.Raw(Model.Trans(typeof(GeneralWordCodes.MLM.General.Words.Cancel))); - IHtmlString deleteRoleTranslationText = Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.ManyToMany.DeleteRoleGroup))); - IHtmlString deleteTranslationText = Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.Common.Delete))); - IHtmlString closeTranslationText = Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.Common.Close))); - IHtmlString renameRoleTranslationText = Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.ManyToMany.RenameRoleGroup))); - IHtmlString renameTranslationText = Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.Common.Rename))); - - string labelUserManager = Model.Trans(typeof(WordCodes.MvcMembership.Labels.Button.Users)); - string labelUTURG = Model.Trans(typeof(WordCodes.MvcMembership.Labels.Button.UsersToRoleGroups)); - string labelRoles = Model.Trans(typeof(WordCodes.MvcMembership.Labels.Button.Roles)); - -} - - - - - -
-
- @UserManagementHtmlHelper.AddHeader(Html, Ajax, Url, Model, ViewBag.Title.ToString() - , new List { UserManagementHtmlHelper.DisableThisButton.RolesToRoleGroups }) -
-
-
- - - -
-
- @Html.Partial("_RolesToUserRoleGroups", ViewData["id"] != null ? new ViewDataDictionary() { { "id", ViewData["id"] } } : null) -
-
-
diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUserRoleGroups/_DeleteUserRoleGroupForm.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUserRoleGroups/_DeleteUserRoleGroupForm.cshtml deleted file mode 100644 index d38f2a4..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUserRoleGroups/_DeleteUserRoleGroupForm.cshtml +++ /dev/null @@ -1,27 +0,0 @@ -@model Vrh.Web.Membership.Areas.UserAdministration.Models.DeleteUserRoleGroupViewModel - -@if (Model != null) -{ -
- @using (Ajax.BeginForm("DeleteUserRoleGroup", WebConst.CONTROLLER_RTURG, new { area = WebConst.AREA }, - new AjaxOptions() - { - HttpMethod = "Post", - InsertionMode = InsertionMode.Replace, - UpdateTargetId = "deleteDialog", - }, new { id = "DeleteUserRoleGroupNameForm" })) - { -
- @Html.DropDownListFor(x => x.SelectedUserRoleGroupId, Model.UserRoleGroups, new { @class = "form-control", size = 10, autofocus = "" }) - @*@Html.ValidationMessageFor(x => x.SelectedUserRoleGroupId)*@ - @Html.ValidationSummary(false) -
- } -
- -} \ No newline at end of file diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUserRoleGroups/_EditUserRoleGroupForm.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUserRoleGroups/_EditUserRoleGroupForm.cshtml deleted file mode 100644 index 55c5dc0..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUserRoleGroups/_EditUserRoleGroupForm.cshtml +++ /dev/null @@ -1,47 +0,0 @@ -@using Vrh.Web.Common.Lib; -@using VRH.Log4Pro.MultiLanguageManager; - -@model Vrh.Web.Membership.Areas.UserAdministration.Models.EditUserRoleGroupViewModel - -@if (Model != null) -{ -
- @if (ViewData["UserRoleGroupOldName"] != null && ViewData["UserRoleGroupNewName"] != null) - { - - } - - @using (Ajax.BeginForm("EditUserRoleGroup", WebConst.CONTROLLER_RTURG, new { area = WebConst.AREA }, - new AjaxOptions() - { - HttpMethod = "Post", - InsertionMode = InsertionMode.Replace, - UpdateTargetId = "editDialog", - }, new { id = "EditUserRoleGroupNameForm" })) - { -
- @Html.LabelFor(x => x.SelectedUserRoleGroupId) - @Html.DropDownListFor(x => x.SelectedUserRoleGroupId, Model.UserRoleGroups, new { @class = "form-control", size = 10, autofocus = "" }) - @Html.ValidationMessageFor(x => x.SelectedUserRoleGroupId) -
- -
- @Html.LabelFor(x => x.NewUserRoleGroupName) - @Html.TextBoxFor(x => x.NewUserRoleGroupName, new { @class = "form-control" }) - @Html.ValidationMessageFor(x => x.NewUserRoleGroupName) -
- if (!ViewData.ModelState.IsValid && !string.IsNullOrEmpty(Html.ValidationSummaryMessage(true))) - { - @Html.ValidationSummary(true) - } - } -
- -} \ No newline at end of file diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUserRoleGroups/_NewUserRoleGroupForm.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUserRoleGroups/_NewUserRoleGroupForm.cshtml deleted file mode 100644 index 33cdce1..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUserRoleGroups/_NewUserRoleGroupForm.cshtml +++ /dev/null @@ -1,27 +0,0 @@ -@model Vrh.Web.Membership.Areas.UserAdministration.Models.NewUserRoleGroupViewModel - -@if (Model != null) -{ -
- @using (Ajax.BeginForm("NewUserRoleGroup", WebConst.CONTROLLER_RTURG, new { area = WebConst.AREA }, - new AjaxOptions() - { - HttpMethod = "Post", - InsertionMode = InsertionMode.Replace, - UpdateTargetId = "newDialog", - }, new { id = "NewUserRoleGroupNameForm" })) - { -
- @Html.TextBoxFor(x => x.NewUserRoleGroupName, new { @class = "form-control", autofocus = "" }) - @*@Html.ValidationMessageFor(x => x.NewUserRoleGroupName)*@ - @Html.ValidationSummary(false) -
- } -
- -} diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUserRoleGroups/_RolesToUserRoleGroups.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUserRoleGroups/_RolesToUserRoleGroups.cshtml deleted file mode 100644 index 5502e4b..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUserRoleGroups/_RolesToUserRoleGroups.cshtml +++ /dev/null @@ -1,20 +0,0 @@ -@using VRH.Log4Pro.MultiLanguageManager; -@using Vrh.Web.Membership.Areas.UAManyToMany.Models; - -@{ - string areaName = "UAManyToMany"; - string ctrlName = areaName; - if (Session["MTM"] != null) - { - Session["MTM"] = null; - } - UAManyToManySessionModel mtmSession = new UAManyToManySessionModel(); - mtmSession.DefaultListItemsHeader = MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.ManyToMany.RoleGroups)); - mtmSession.DefaultSelectedListItemsHeader = MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.ManyToMany.RolesInSelectedRoleGroup)); - mtmSession.DefaultAvailableListItemsHeader = MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.ManyToMany.RolesNotInSelectedRoleGroup)); - mtmSession.ListItemsHeader = MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.ManyToMany.Roles)); - mtmSession.SelectedListItemsHeader = MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.ManyToMany.RoleGroupsInSelectedRole)); - mtmSession.AvailableListItemsHeader = MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.ManyToMany.RoleGroupsNotInSelectedRole)); - Session["MTM"] = mtmSession; - Html.RenderAction("ManyToMany", ctrlName, new { area = areaName, name = "RolesToUserRoleGroups", isDefault = true }); -} diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUsers/Index.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUsers/Index.cshtml deleted file mode 100644 index 2743764..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUsers/Index.cshtml +++ /dev/null @@ -1,47 +0,0 @@ -@* - ----------------------------------------- - RolesToUserRoleGroups - Index.cshtml - ----------------------------------------- -*@ -@using VRH.Log4Pro.MultiLanguageManager; -@using Vrh.Web.Common.Lib; - -@model CommonModel - -@{ - ViewBag.Title = Html.Raw("Roles to Users"); - - IHtmlString okTranslationText = Html.Raw(Model.Trans(typeof(GeneralWordCodes.MLM.General.Words.OK))); - IHtmlString cancelTranslationText = Html.Raw(Model.Trans(typeof(GeneralWordCodes.MLM.General.Words.Cancel))); - IHtmlString deleteTranslationText = Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.Common.Delete))); - IHtmlString closeTranslationText = Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.Common.Close))); - IHtmlString renameTranslationText = Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.Common.Rename))); - - string labelUserManager = Model.Trans(typeof(WordCodes.MvcMembership.Labels.Button.Users)); - string labelUTURG = Model.Trans(typeof(WordCodes.MvcMembership.Labels.Button.UsersToRoleGroups)); - string labelRoles = Model.Trans(typeof(WordCodes.MvcMembership.Labels.Button.Roles)); - -} - - - - - -
-
- @UserManagementHtmlHelper.AddHeader(Html, Ajax, Url, Model, ViewBag.Title.ToString() - , new List { UserManagementHtmlHelper.DisableThisButton.RolesToUsers }) -
-
-
- @Html.Partial("_RolesToUsers", ViewData["id"] != null ? new ViewDataDictionary() { { "id", ViewData["id"] } } : null) -
-
-
diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUsers/_RolesToUsers.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUsers/_RolesToUsers.cshtml deleted file mode 100644 index 9855ba5..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/RolesToUsers/_RolesToUsers.cshtml +++ /dev/null @@ -1,20 +0,0 @@ -@using VRH.Log4Pro.MultiLanguageManager; -@using Vrh.Web.Membership.Areas.UAManyToMany.Models; - -@{ - string areaName = "UAManyToMany"; - string ctrlName = areaName; - if (Session["MTM"] != null) - { - Session["MTM"] = null; - } - UAManyToManySessionModel mtmSession = new UAManyToManySessionModel(); - mtmSession.DefaultListItemsHeader = "Users"; - mtmSession.DefaultSelectedListItemsHeader = "Roles of selected user"; - mtmSession.DefaultAvailableListItemsHeader = "Roles that selected user does not have"; - mtmSession.ListItemsHeader = MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.ManyToMany.Roles)); - mtmSession.SelectedListItemsHeader = "Users of selected role"; - mtmSession.AvailableListItemsHeader = "Users that do not have the selected role"; - Session["MTM"] = mtmSession; - Html.RenderAction("ManyToMany", ctrlName, new { area = areaName, name = "RolesToUsers", isDefault = true }); -} diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/SecondaryUser/Editor.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/SecondaryUser/Editor.cshtml deleted file mode 100644 index 0179365..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/SecondaryUser/Editor.cshtml +++ /dev/null @@ -1,77 +0,0 @@ -@using Vrh.Web.Common.Lib; -@using Vrh.Web.Membership.Areas.UserAdministration.Controllers - -@model SecondaryUserModel -@{ - string actionName = nameof(SecondaryUserController.Editor); - object routeValues = new - { - area = WebConst.AREA - }; - var ajaxOptions = new AjaxOptions() - { - InsertionMode = InsertionMode.Replace, - HttpMethod = "POST", - UpdateTargetId = MasterData.DialogBodyId(Model.BootboxId) - }; - object htmlAttributes = new { id = WebConst.Ids.Form.EDITOR }; -} - -@Html.Partial("ValidationSummary") - -@using (Ajax.BeginForm(actionName, WebConst.CONTROLLER_SU, routeValues, ajaxOptions, htmlAttributes)) -{ - @Html.AntiForgeryToken() - @Html.HiddenFor(x => x.BootboxId) - @Html.HiddenFor(x => x.EditMode) - @Html.HiddenFor(x => x.RequestedFunctionId) - @Html.HiddenFor(x => x.RequestedFunctionName) - - @Html.HiddenFor(x => x.SecondaryUserId) - -
-
- @Html.LabelFor(x => x.SecondaryFunctionId) - @Html.DropDownListFor(x => x.SecondaryFunctionId, Model.SecondaryFunctionList) - @Html.ValidationMessageFor(x => x.SecondaryFunctionId) -
-
- @Html.LabelFor(x => x.UserID) - @Html.DropDownListFor(x => x.UserID, Model.UserList) - @Html.ValidationMessageFor(x => x.UserID) -
-
- -
-
- -
-
- @Html.LabelFor(x => x.SecondaryUserName) - @Html.TextBoxFor(x => x.SecondaryUserName) - @Html.ValidationMessageFor(x => x.SecondaryUserName) -
-
- @Html.LabelFor(x => x.SecondaryUserPassword) - @Html.TextBoxFor(x => x.SecondaryUserPassword) - @Html.ValidationMessageFor(x => x.SecondaryUserPassword) -
-
-} - diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/SecondaryUser/Manager.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/SecondaryUser/Manager.cshtml deleted file mode 100644 index a7f7ee1..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/SecondaryUser/Manager.cshtml +++ /dev/null @@ -1,159 +0,0 @@ -@* - ------------------------------------- - SecondaryUser - Manager.cshtml - ------------------------------------- -*@ - -@using VRH.Log4Pro.MultiLanguageManager -@using Vrh.Web.Common.Lib -@using Vrh.Web.Membership.Areas.UserAdministration.Controllers - -@model SecondaryUserModel - -@{ - ViewBag.Title = Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.Titles.SecondaryUsers))).ToString(); - - int[] tableToolsExportColumnIndexes = new int[] { 0, 1, 2, 3, 4 }; -} -@Styles.Render(WebConst.BUNDLES_STYLE_FOR_SECONDARYUSER) -@Scripts.Render(WebConst.BUNDLES_SCRIPT_FOR_SECONDARYUSER) - -
-
- @UserManagementHtmlHelper.AddHeader(Html, Ajax, Url, Model, (string)ViewBag.Title - , new List { UserManagementHtmlHelper.DisableThisButton.SecondaryUsers } - , Model.EditMode, null,null, - @ - @if (Model.EditMode == EditModes.Manage) - { - - } - - ) -
-
-
-
- @if (Model.EditMode != EditModes.Select) - { - - } -
-
-
- - - - - - - - - - - - - -
@(Model.Trans(typeof(WordCodes.MvcMembership.Labels.Function)))@(Model.Trans(typeof(WordCodes.MvcMembership.Labels.PrimaryName)))@(Model.Trans(typeof(WordCodes.MvcMembership.Labels.SecondaryName)))@(Model.Trans(typeof(WordCodes.MvcMembership.Labels.SecondaryPassword)))@(Model.Trans(typeof(WordCodes.MvcMembership.Labels.Active)))
-
-
- @*Ide kell tenni a drop-down szűrő listákat, és majd a javascript beteszi*@ - - - -
-@**@ @*Nem fog ez kelleni, nemtom miért volt itt.*@ -@* - ------------------------------------- - SecondaryUser - Manager.cshtml - ------------------------------------- -*@ -@section Scripts { - -} -@* - ------------------------------------- - SecondaryUser - Manager.cshtml - ------------------------------------- -*@ - diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/SecondaryUser/SecondaryFunction.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/SecondaryUser/SecondaryFunction.cshtml deleted file mode 100644 index 3ffd02d..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/SecondaryUser/SecondaryFunction.cshtml +++ /dev/null @@ -1,118 +0,0 @@ -@* - ----------------------------------------- - SecondaryUser - SecondaryFunction.cshtml - ----------------------------------------- -*@ - -@using VRH.Log4Pro.MultiLanguageManager -@using Vrh.Web.Common.Lib -@using Vrh.Web.Membership.Areas.UserAdministration.Controllers - -@model SecondaryUserModel -@{ - string areaName = (string)ViewContext.RouteData.DataTokens["area"]; - string controllerName = (string)ViewContext.RouteData.DataTokens["controller"]; - object routeVal = new { area = areaName, editMode = Model.EditMode }; - - string dataNewInputId = "newdatainputid"; - string dataRowsPlaceId = "datarowsplaceid"; -} - - -@* - ----------------------------------------- - SecondaryUser - SecondaryFunction.cshtml - ----------------------------------------- -*@ -

@Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.Labels.Button.FunctionManage)))

-
- - - - - - - - -
#@Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.Labels.Function)))
-
- - - - - -
- @if (Model.EditMode != EditModes.Select) - { -
- - - - -
- } -
- -
- - - -@* - ----------------------------------------- - SecondaryUser - SecondaryFunction.cshtml - ----------------------------------------- -*@ diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/Shared/ErrorList.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/Shared/ErrorList.cshtml deleted file mode 100644 index 94d9177..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/Shared/ErrorList.cshtml +++ /dev/null @@ -1,27 +0,0 @@ -@* - --------------------------------------------- - Membership - ErrorList.cshtml - --------------------------------------------- -*@ - -@model List - -
-
-

@Html.Raw(String.IsNullOrWhiteSpace(ViewBag.Head) ? (String.IsNullOrWhiteSpace(ViewBag.Title) ? "Error" : ViewBag.Title) : ViewBag.Head)

-
-
- @if (Model != null && Model.Count() > 0) - { - foreach (var mess in Model) - { -
@Html.Raw(mess)
- } - } -
-
-@* - --------------------------------------------- - Membership - ErrorList.cshtml - --------------------------------------------- -*@ diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/Shared/ValidationSummary.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/Shared/ValidationSummary.cshtml deleted file mode 100644 index 39d20e6..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/Shared/ValidationSummary.cshtml +++ /dev/null @@ -1,11 +0,0 @@ -@using Vrh.Web.Common.Lib; - -@if (!ViewData.ModelState.IsValid && !string.IsNullOrEmpty(Html.ValidationSummaryMessage(true))) -{ - -} diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/User/Editor.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/User/Editor.cshtml deleted file mode 100644 index b017381..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/User/Editor.cshtml +++ /dev/null @@ -1,149 +0,0 @@ -@using Vrh.Web.Common.Lib; -@using Vrh.Web.Membership.Areas.UserAdministration.Controllers - -@model UserEditorModel -@{ - string actionName = nameof(UserController.Editor); - object routeValues = new - { - area = WebConst.AREA - }; - var ajaxOptions = new AjaxOptions() - { - InsertionMode = InsertionMode.Replace, - HttpMethod = "POST", - UpdateTargetId = MasterData.DialogBodyId(Model.BootboxId) - }; - object htmlAttributes = new { id = WebConst.Ids.Form.USEREDITOR }; -} - -@if (Model.UserId != null) -{ // csak módosításkor van értelme -
-
-
- @Model.CreateDate -
-
-
- @Model.LastLoginDate -
-
-
- @Model.LastActivityDate -
-
-} - -@Html.Partial(WebConst.VALIDATIONSUMMARY) - -@using (Ajax.BeginForm(actionName, WebConst.CONTROLLER_USER, routeValues, ajaxOptions, htmlAttributes)) -{ - @Html.AntiForgeryToken() - @Html.HiddenFor(x => x.BootboxId) - @Html.HiddenFor(x => x.EditMode) - @Html.HiddenFor(x => x.IsFirstOrYourself) - @Html.HiddenFor(x => x.UserId) - -
-
- @Html.LabelFor(x => x.UserName) - @if (Model.UserId == null) - { - @Html.TextBoxFor(x => x.UserName) - } - else - { - @Html.TextBoxFor(x => x.UserName, new { @readonly = "" }) - } - @Html.ValidationMessageFor(x => x.UserName) -
- - @*
- - - @Html.ValidationMessageFor(x => x.IsApproved) -
*@ - -
- - @if (Model.IsFirstOrYourself) - { - @Html.CheckBoxFor(x => x.IsApproved, new { @class = "form-check-input", @disabled = "" }) - } - else - { - @Html.CheckBoxFor(x => x.IsApproved, new { @class = "form-check-input" }) - } -
-
- -
-
- @Html.LabelFor(x => x.Email) - @Html.TextBoxFor(x => x.Email) - @Html.ValidationMessageFor(x => x.Email) -
-
- - if (Model.UserId == null) - { // felvitel -
-
- @Html.LabelFor(x => x.Password) - @Html.PasswordFor(x => x.Password) - @Html.ValidationMessageFor(x => x.Password) -
-
- @Html.LabelFor(x => x.ConfirmPassword) - @Html.PasswordFor(x => x.ConfirmPassword) - @Html.ValidationMessageFor(x => x.ConfirmPassword) -
-
- } - -
-
- @Html.LabelFor(x => x.Comment) - @Html.TextAreaFor(x => x.Comment) - @Html.ValidationMessageFor(x => x.Comment) -
-
-} - diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/User/EditorWithLayout.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/User/EditorWithLayout.cshtml deleted file mode 100644 index cf2b470..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/User/EditorWithLayout.cshtml +++ /dev/null @@ -1,7 +0,0 @@ -@model UserEditorModel - -
-
- @Html.Partial(WebConst.Views.EDITOR, Model) -
-
\ No newline at end of file diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/User/Manager.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/User/Manager.cshtml deleted file mode 100644 index 51c7b34..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/User/Manager.cshtml +++ /dev/null @@ -1,179 +0,0 @@ -@* - ------------------------------------- - User - Manager.cshtml - ------------------------------------- -*@ - -@using VRH.Log4Pro.MultiLanguageManager -@using Vrh.Web.Common.Lib; -@using Vrh.Web.Membership.Areas.UserAdministration.Controllers - -@model UserManagerModel - -@{ - ViewBag.Title = Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.User.UserManagement))).ToString(); - - int[] tableToolsExportColumnIndexes = new int[] { 0, 1, 2, 3, 4, 5 }; - string labelUTURGLink = Model.Trans(typeof(WordCodes.MvcMembership.Labels.Button.UsersToRoleGroups)); - string labelRTURGLink = Model.Trans(typeof(WordCodes.MvcMembership.Labels.Button.RolesToRoleGroups)); -} -@Styles.Render(WebConst.BUNDLES_STYLE_FOR_USER) -@Scripts.Render(WebConst.BUNDLES_SCRIPT_FOR_USER) - -
-
- @UserManagementHtmlHelper.AddHeader(Html, Ajax, Url, Model, (string)ViewBag.Title - , new List { UserManagementHtmlHelper.DisableThisButton.Users } - , Model.EditMode, null, null, - @ - @if (Model.EditMode == EditModes.Manage) - { -
- - -
- } -
) - -
-
-
-
-
- - -
- @if (Model.EditMode != EditModes.Select) - { - - } -
-
-
- - - - - - - - - - - - - - -
@(Model.Trans(typeof(WordCodes.MvcMembership.User.UserName)))@(Model.Trans(typeof(WordCodes.MvcMembership.User.EmailAddress)))@(Model.Trans(typeof(WordCodes.MvcMembership.User.LastLogIn)))@(Model.Trans(typeof(WordCodes.MvcMembership.User.LastActivity)))@(Model.Trans(typeof(WordCodes.MvcMembership.User.Description)))@(Model.Trans(typeof(WordCodes.MvcMembership.Labels.Status)))
-
-
- @*Ide kell tenni a drop-down szűrő listákat, és majd a javascript beteszi*@ - -
-@**@ @*Nem fog ez kelleni, nemtom miért volt itt.*@ -@* - ------------------------------------- - User - Manager.cshtml - ------------------------------------- -*@ -@section Scripts { - -} -@* - ------------------------------------- - User - Manager.cshtml - ------------------------------------- -*@ - diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/User/PasswordRenewal.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/User/PasswordRenewal.cshtml deleted file mode 100644 index ba67d8a..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/User/PasswordRenewal.cshtml +++ /dev/null @@ -1,72 +0,0 @@ -@using Vrh.Web.Common.Lib; -@using Vrh.Web.Membership.Areas.UserAdministration.Controllers - -@model PasswordRenewalModel -@{ - string actionName = nameof(UserController.PassswordRenewal); - object routeValues = new - { - area = WebConst.AREA - }; - var ajaxOptions = new AjaxOptions() - { - InsertionMode = InsertionMode.Replace, - HttpMethod = "POST", - UpdateTargetId = MasterData.DialogBodyId(Model.BootboxId) - }; - object htmlAttributes = new { id = WebConst.Ids.Form.PASSWORDRENEVAL }; -} -
-
- - @Model.LastPasswordChangedDate -
-
-@using (Ajax.BeginForm(actionName, WebConst.CONTROLLER_USER, routeValues, ajaxOptions, htmlAttributes)) -{ - @Html.AntiForgeryToken() - @Html.HiddenFor(x => x.BootboxId) - @Html.HiddenFor(x => x.UserName) - -
-
-
-
- - @Html.CheckBoxFor(x => x.IsGenerated, new { @class = "form-check-input", @onclick = "vrhusman.PasswordGenerateChange();" }) -
- -
- @Html.LabelFor(x => x.NewPassword) - @Html.TextBoxFor(x => x.NewPassword, new { @readonly = "" }) -
- -
-} - diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/User/RoleGroups.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/User/RoleGroups.cshtml deleted file mode 100644 index 8fd2fc4..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/User/RoleGroups.cshtml +++ /dev/null @@ -1,108 +0,0 @@ -@* - ----------------------------------------- - User - RoleGroups.cshtml - ----------------------------------------- -*@ -@using VRH.Log4Pro.MultiLanguageManager -@using Vrh.Web.Common.Lib -@using Vrh.Web.Membership.Areas.UserAdministration.Controllers - -@model UserManagerModel -@{ - object routeVal = new { area = WebConst.AREA, editMode = Model.EditMode }; - string dataNewInputId = "newdatainputid-rolegroups"; - string dataRowsPlaceId = "datarowsplaceid-rolegroups"; -} - -@* - ----------------------------------------- - User - RoleGroups.cshtml - ----------------------------------------- -*@ -

@Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.Titles.RoleGroupManagement)))

-
- - - - - - - - -
#@Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.Labels.RoleGroupName)))
-
- - - - - -
- @if (Model.EditMode != EditModes.Select) - { -
- - - - -
- } -
- -
- - - -@* - ----------------------------------------- - User - RoleGroups.cshtml - ----------------------------------------- -*@ diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/User/Roles.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/User/Roles.cshtml deleted file mode 100644 index f64b5e1..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/User/Roles.cshtml +++ /dev/null @@ -1,105 +0,0 @@ -@* - ----------------------------------------- - User - Roles.cshtml - ----------------------------------------- -*@ -@using VRH.Log4Pro.MultiLanguageManager -@using Vrh.Web.Common.Lib -@using Vrh.Web.Membership.Areas.UserAdministration.Controllers -@model UserManagerModel -@{ - object routeVal = new { area = WebConst.AREA, editMode = Model.EditMode }; - string dataNewInputId = "newdatainputid-roles"; - string dataRowsPlaceId = "datarowsplaceid-roles"; -} -@* - ----------------------------------------- - User - Roles.cshtml - ----------------------------------------- -*@ -

@Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.Titles.RoleManagement)))

-
- - - - @* *@ - - - - -
#@Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.Labels.RoleName)))
-
- - - - - -
- @if (Model.EditMode != EditModes.Select) - { -
- - - - -
- } -
- -
- - -@* - ----------------------------------------- - User - Roles.cshtml - ----------------------------------------- -*@ diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/CreateUser.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/CreateUser.cshtml deleted file mode 100644 index 545bb8a..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/CreateUser.cshtml +++ /dev/null @@ -1,66 +0,0 @@ -@using VRH.Log4Pro.MultiLanguageManager; -@using Vrh.Web.Membership.Areas.UserAdministration.Models; - -@model CreateUserViewModel - -@{ - ViewBag.Title = Html.Raw(MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.User.CreateNewUser))); -} - -@section Styles { - -} - -
-
-

@ViewBag.Title

-
- -
\ No newline at end of file diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/Details.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/Details.cshtml deleted file mode 100644 index 169ee1d..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/Details.cshtml +++ /dev/null @@ -1,144 +0,0 @@ -@using System.Globalization; -@using VRH.Log4Pro.MultiLanguageManager; -@using Vrh.Web.Membership.Areas.UserAdministration.Models; - -@model DetailsViewModel -@{ - IHtmlString lastActivityTranslationText = Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.User.LastActivity))); - IHtmlString lastLogInTranslationText = Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.User.LastLogIn))); - IHtmlString neverTranslationText = Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.User.Never))); - - ViewBag.Title = Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.User.WUser))) + ": " + Model.DisplayName + " [" + Html.Raw(Model.Trans(DetailsViewModel.GetStatusWordCode(Model.Status))) + "]"; -} - -@section Styles { - -} - -
-
-

@ViewBag.Title

-
-
- -
-
    -
  • @Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.Common.Details)))
  • -
  • @Html.ActionLink(Model.Trans(typeof(WordCodes.MvcMembership.User.Password)), "Password", WebConst.CONTROLLER_UA, new { id = Model.User.ProviderUserKey, tabPage = 1 }, null)
  • - @if (Model.IsRolesEnabled) - { -
  • @Html.ActionLink(Model.Trans(typeof(WordCodes.MvcMembership.ManyToMany.RoleGroups)), "UsersRoles", WebConst.CONTROLLER_UA, new { id = Model.User.ProviderUserKey }, null)
  • - } -
-
- -
- @**@ -
-

@Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.User.Access)))

- -
- @**@ - @**@ - -
-

@Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.User.EmailAddressAndDescription)))

-
- @using (Html.BeginForm("Details", WebConst.CONTROLLER_UA, new { id = Model.User.ProviderUserKey })) - { - @*
*@ -

- -
- @Html.TextBox("email", Model.User.Email) -

-

- -
- @Html.TextArea("comments", Model.User.Comment) -

- - @*
*@ - } -
-
- -
-
-
- - \ No newline at end of file diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/Index.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/Index.cshtml deleted file mode 100644 index c40d9c8..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/Index.cshtml +++ /dev/null @@ -1,161 +0,0 @@ -@* - ----------------------------------------- - UserAdministration - Index.cshtml - ----------------------------------------- -*@ -@using PagedList.Mvc; -@using Vrh.Web.Membership.Areas.UserAdministration.Models; - -@model IndexViewModel - -@{ - IHtmlString minuteTranslationText = Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.User.UserLoggedInLessThanMinute))); - IHtmlString hourTranslationText = Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.User.UserLoggedInLessThanHour))); - IHtmlString dayTranslationText = Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.User.UserLoggedInLessThanDay))); - - ViewBag.Title = Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.User.UserManagement))); -} - -@section Styles { - - -} - -@if (!Model.IsRolesEnabled) -{ -

WARNING: Your Role Provider is currently disabled - any user may currently visit this page.
Change <roleManager enabled="false"> to <roleManager enabled="true"> in your web.config file.

-} - -
-
-

@Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.User.Users)))

- @Html.ActionLink(Model.Trans(typeof(WordCodes.MvcMembership.User.CreateNewUser)), "CreateUser", WebConst.CONTROLLER_UA, new { @class = "btn btn-success float-right" }) -
-
- @if (Model.Users.Count > 0) - { - - - - - - - - - - - @foreach (var user in Model.Users) - { - - - - @if (user.IsOnline) - { - - } - else - { - - } - @*@if(!string.IsNullOrEmpty(user.Comment)){*@ - - @*}*@ - - } - -
@Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.User.UserName)))@Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.User.EmailAddress)))@Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.User.LastLogIn)))@Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.User.Description)))
@Html.ActionLink(user.UserName, "Details", new { id = user.ProviderUserKey })@user.Email@Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.User.Online))) - @if (user.LastActivityDate.Equals(Global.NEVERONLINE)) - { - @Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.User.Never))) - } - else - { - @Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.User.Offline))) - var offlineSince = (DateTime.Now - user.LastActivityDate); - if (offlineSince.TotalSeconds <= 60) - { - 1 @minuteTranslationText. - } - else if (offlineSince.TotalMinutes < 60) - { - @Math.Floor(offlineSince.TotalMinutes) @minuteTranslationText. - } - else if (offlineSince.TotalMinutes < 120) - { - 1 @hourTranslationText. - } - else if (offlineSince.TotalHours < 24) - { - @Math.Floor(offlineSince.TotalHours) @hourTranslationText. - } - else if (offlineSince.TotalHours < 48) - { - 1 @dayTranslationText. - } - else - { - @Math.Floor(offlineSince.TotalDays) @dayTranslationText. - } - } - @user.Comment
- @Html.PagedListPager(Model.Users, page => Url.Action("Index", new { page, search = Model.Search }), - new PagedListRenderOptions() - { - LinkToFirstPageFormat = "<<", - LinkToPreviousPageFormat = "<", - LinkToNextPageFormat = ">", - LinkToLastPageFormat = ">>", - MaximumPageNumbersToDisplay = 5 - }) - } - else - { -

@Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.User.NoRegisteredUser)))

- } -
-
-@* -

Felhasznl keresse - @if (!string.IsNullOrWhiteSpace(Model.Search)) { - (@Html.ActionLink("Szrs trlse", "Index")) - } -

-
-
- -
-
-*@ -@* - @if(Model.IsRolesEnabled){ -

Jogosultsgok

-
- @if(Model.Roles.Count() > 0 ){ -
    - @foreach(var role in Model.Roles){ -
  • - @Html.ActionLink(role, "Role", new{id = role}) - @using(Html.BeginForm("DeleteRole", "UserAdministration", new{id=role})){ - - } -
  • - } -
- }else{ -

Nincs jogosultsgi kr ltrehozva.

- } - - @using(Html.BeginForm("CreateRole", "UserAdministration")){ -
- - @Html.TextBox("id") - -
- } -
- } -*@ \ No newline at end of file diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/Password.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/Password.cshtml deleted file mode 100644 index ff1afcd..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/Password.cshtml +++ /dev/null @@ -1,148 +0,0 @@ -@using System.Globalization; -@using VRH.Log4Pro.MultiLanguageManager; -@using Vrh.Web.Membership.Areas.UserAdministration.Models; - -@model DetailsViewModel - -@{ - IHtmlString passwordTranslationText = Html.Raw(MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.User.Password))); - IHtmlString lastModifyTranslationText = Html.Raw(MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.User.LastModify))); - IHtmlString newPasswordTranslationText = Html.Raw(MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.User.NewPassword))); - string generateNewPasswordTranslationText = MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.User.GenerateNewPassword)); - - IHtmlString labelLocked = Html.Raw(MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.User.Locked)) + ": "); - IHtmlString labelPwSecQuestion = Html.Raw(MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.User.PasswordSecurityQuestion)) + ":"); - - IHtmlString titleUnLock = Html.Raw(MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.User.Unlock))); - IHtmlString titleGenerateAndSend = Html.Raw(MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.User.GenerateAndSendPasswordToUser))); - IHtmlString titleChangeAndSend = Html.Raw(MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.User.ChangeAndSendPasswordToUser))); - - string linkDetails = MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.Common.Details)); - string linkUsersRoles = MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.ManyToMany.RoleGroups)); - - ViewBag.Title = Html.Raw(String.Concat( - MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.User.WUser)), ": ", - Model.DisplayName, - " [", MultiLanguageManager.GetTranslation(DetailsViewModel.GetStatusWordCode(Model.Status)), "]" - )); - - string pwAction = "Password"; - -} - -@section Styles { - -} - -@if (TempData["MvcMembershipMessage"] != null) -{ - @section Scripts { - - } -} - -
-
-

@ViewBag.Title

-
-
- -
    -
  • @Html.ActionLink(linkDetails, "Details", WebConst.CONTROLLER_UA, new { id = Model.User.ProviderUserKey }, null)
  • -
  • @passwordTranslationText
  • - @if (Model.IsRolesEnabled) - { -
  • @Html.ActionLink(linkUsersRoles, "UsersRoles", WebConst.CONTROLLER_UA, new { id = Model.User.ProviderUserKey }, null)
  • - } -
- -

@passwordTranslationText

-
- @if (Model.User.IsLockedOut) - { -

@(labelLocked)@Model.User.LastLockoutDate.ToString("yyyy MM dd, h:mm:ss", CultureInfo.InvariantCulture)

- using (Html.BeginForm("Unlock", WebConst.CONTROLLER_UA, new { id = Model.User.ProviderUserKey })) - { - - } - } @*if (Model.User.IsLockedOut) END*@ - else - { - if (Model.User.LastPasswordChangedDate == Model.User.CreationDate) - { -
-
@lastModifyTranslationText:
-
@Html.Raw(MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.User.Never)))
-
- } - else - { -
-
@lastModifyTranslationText:
-
@Model.User.LastPasswordChangedDate.ToString("yyyy MM dd, h:mm:ss", CultureInfo.InvariantCulture)
-
- } - - if (Model.CanResetPassword && Model.RequirePasswordQuestionAnswerToResetPassword) - { - using (Html.BeginForm("ResetPasswordWithAnswer", WebConst.CONTROLLER_UA, new { id = Model.User.ProviderUserKey })) - { -
    -
  • @newPasswordTranslationText
  • -
  • @Html.ActionLink(generateNewPasswordTranslationText, pwAction, WebConst.CONTROLLER_UA, new { id = Model.User.ProviderUserKey, tabPage = 2 }, null)
  • -
- -

-

-
@(labelPwSecQuestion)
- @if (string.IsNullOrEmpty(Model.User.PasswordQuestion) || string.IsNullOrEmpty(Model.User.PasswordQuestion.Trim())) - { -
@Html.Raw(MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.User.PasswordSecurityQuestionNotDefined)))
- } - else - { -
@Model.User.PasswordQuestion
- } -
-

-

- -

- } - } - else if (Model.CanResetPassword) - { -
    -
  • @newPasswordTranslationText
  • -
  • @Html.ActionLink(generateNewPasswordTranslationText, pwAction, WebConst.CONTROLLER_UA, new { id = Model.User.ProviderUserKey, tabPage = 2 }, null)
  • -
- - using (Html.BeginForm("SetPassword", WebConst.CONTROLLER_UA, new { id = Model.User.ProviderUserKey })) - { -
- -
- if (!string.IsNullOrWhiteSpace(Model.PassworErrorMessage)) - { -
- - @Model.PassworErrorMessage - -
- } - } - } - } @*else (Model.User.IsLockedOut) END*@ -
-
-
\ No newline at end of file diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/Password2.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/Password2.cshtml deleted file mode 100644 index 052b92c..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/Password2.cshtml +++ /dev/null @@ -1,130 +0,0 @@ -@using System.Globalization; -@using VRH.Log4Pro.MultiLanguageManager; -@using Vrh.Web.Membership.Areas.UserAdministration.Models; - -@model DetailsViewModel - -@{ - IHtmlString passwordTranslationText = Html.Raw(MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.User.Password))); - IHtmlString lastModifyTranslationText = Html.Raw(MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.User.LastModify))); - string newPasswordTranslationText = MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.User.NewPassword)); - IHtmlString generateNewPasswordTranslationText = Html.Raw(MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.User.GenerateNewPassword))); - - IHtmlString labelLocked = Html.Raw(MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.User.Locked))); - IHtmlString labelPwSecQuestion = Html.Raw(MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.User.PasswordSecurityQuestion)) + ":"); - - string linkDetails = MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.Common.Details)); - string linkUsersRoles = MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.ManyToMany.RoleGroups)); - - IHtmlString titleGenerateAndSend = Html.Raw(MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.User.GenerateAndSendPasswordToUser))); - - ViewBag.Title = Html.Raw(MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.User.WUser))) + ": " + Model.DisplayName + " [" + Html.Raw(MultiLanguageManager.GetTranslation(DetailsViewModel.GetStatusWordCode(Model.Status))) + "]"; - - string pwAction = "Password"; -} - -@section Styles { - -} - -@if (TempData["MvcMembershipMessage"] != null) -{ - @section Scripts { - - } -} - -
-
-

@ViewBag.Title

-
-
- -
    -
  • @Html.ActionLink(linkDetails, "Details", WebConst.CONTROLLER_UA, new { id = Model.User.ProviderUserKey }, null)
  • -
  • @passwordTranslationText
  • - @if (Model.IsRolesEnabled) - { -
  • @Html.ActionLink(linkUsersRoles, "UsersRoles", WebConst.CONTROLLER_UA, new { id = Model.User.ProviderUserKey }, null)
  • - } -
- -

@passwordTranslationText

-
- @if (Model.User.IsLockedOut) - { -

@(labelLocked): @Model.User.LastLockoutDate.ToString("yyyy MM dd, h:mm:ss", CultureInfo.InvariantCulture)

- using (Html.BeginForm("Unlock", WebConst.CONTROLLER_UA, new { id = Model.User.ProviderUserKey })) - { - - } - } - else - { - - if (Model.User.LastPasswordChangedDate == Model.User.CreationDate) - { -
-
@lastModifyTranslationText:
-
@Html.Raw(MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.User.Never)))
-
- } - else - { -
-
@lastModifyTranslationText:
- @*
@Model.User.LastPasswordChangedDate.ToString("MMMM dd, yyyy h:mm:ss tt", CultureInfo.InvariantCulture)
*@ -
@Model.User.LastPasswordChangedDate.ToString("yyyy MM dd, h:mm:ss", CultureInfo.InvariantCulture)
-
- } - - if (Model.CanResetPassword && Model.RequirePasswordQuestionAnswerToResetPassword) - { - using (Html.BeginForm("ResetPasswordWithAnswer", WebConst.CONTROLLER_UA, new { id = Model.User.ProviderUserKey })) - { -
    -
  • @Html.ActionLink(newPasswordTranslationText, pwAction, WebConst.CONTROLLER_UA, new { id = Model.User.ProviderUserKey, tabPage = 1 }, null)
  • -
  • @generateNewPasswordTranslationText
  • -
-

-

-
@(labelPwSecQuestion)
- @if (string.IsNullOrEmpty(Model.User.PasswordQuestion) || string.IsNullOrEmpty(Model.User.PasswordQuestion.Trim())) - { -
@Html.Raw(MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.User.PasswordSecurityQuestionNotDefined)))
- } - else - { -
@Model.User.PasswordQuestion
- } -
-

-

- -

- } - } - else if (Model.CanResetPassword) - { -
    -
  • @Html.ActionLink(newPasswordTranslationText, pwAction, WebConst.CONTROLLER_UA, new { id = Model.User.ProviderUserKey, tabPage = 1 }, null)
  • -
  • @generateNewPasswordTranslationText
  • -
- - using (Html.BeginForm("ResetPassword", WebConst.CONTROLLER_UA, new { id = Model.User.ProviderUserKey })) - { - - } - } - - } -
- -
-
\ No newline at end of file diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/Role.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/Role.cshtml deleted file mode 100644 index 2d05b1f..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/Role.cshtml +++ /dev/null @@ -1,60 +0,0 @@ -@* - ----------------------------------------- - UsersToUserRoleGroups - Role.cshtml - ----------------------------------------- -*@ -@using VRH.Log4Pro.MultiLanguageManager; -@model Vrh.Web.Membership.Areas.UserAdministration.Models.RoleViewModel - -@{ - string frm = Model.Trans(typeof(WordCodes.MvcMembership.Role.Title)); - ViewBag.Title = Html.Raw(String.Format(frm, Model.Role)); -} - -@section Styles { - -} - -
-
-

@ViewBag.Title

-
-
- @if (Model.Users.Count() > 0) - { -
    - @foreach (var key in Model.Users.Keys) - { - var user = Model.Users[key]; -
  • - @if (user == null) - { - @key (@Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.User.Deleted)))) - @((new RoleService()).GetRoleDescription(key)) - } - else - { - @Html.ActionLink(user.UserName, "Details", new { id = user.ProviderUserKey }, new { @class = "text-light" }) - - if (Model.Role != Constants.ROLE_ADMINISTRATOR || user.UserName != Constants.USERNAME_ADMINISTRATOR) - { // Az alaprtelmezett felhasznlt nem lehet kivenni az - using (Html.BeginForm("RemoveFromRoleOnRolePage", WebConst.CONTROLLER_UA, new { id = user.ProviderUserKey, role = Model.Role })) - { - - } - } - } -
  • - } -
- } - else - { -

@Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.User.NoUserInRoleGroup)))

- } - @*@Html.ActionLink("Vissza", "Roles", "UserAdministration", new { area = "UserAdministration" }, null)*@ -
-
\ No newline at end of file diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/Roles.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/Roles.cshtml deleted file mode 100644 index 2bfe885..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/Roles.cshtml +++ /dev/null @@ -1,78 +0,0 @@ -@* - ----------------------------------------- - UsersToUserRoleGroups - Roles.cshtml - ----------------------------------------- -*@ -@using Vrh.Web.Common.Lib -@using Vrh.Web.Membership.Areas.UserAdministration.Models - -@model IndexViewModel - -@{ - var labelNewRole = Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.User.NewRole)) + ":"); - - ViewBag.Title = Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.ManyToMany.Roles))); - string labelUserManager = Model.Trans(typeof(WordCodes.MvcMembership.Labels.Button.Users)); - string labelUTURG = Model.Trans(typeof(WordCodes.MvcMembership.Labels.Button.UsersToRoleGroups)); - string labelRTURG = Model.Trans(typeof(WordCodes.MvcMembership.Labels.Button.RolesToRoleGroups)); - string labelRoles = Model.Trans(typeof(WordCodes.MvcMembership.Labels.Button.Roles)); -} - -@section Styles { - -} - -@if (Model.IsRolesEnabled) -{ -
-
- @UserManagementHtmlHelper.AddHeader(Html, Ajax, Url, Model, ViewBag.Title.ToString() - , new List { UserManagementHtmlHelper.DisableThisButton.Roles } - ) -
-
-
-
- @using (Html.BeginForm("CreateRole", WebConst.CONTROLLER_UA, FormMethod.Post, new { @class = "form-inline" })) - { -
- - @Html.TextBox("id", null, new { @class = "form-control mx-2" }) -
- - } -
-
-
-
- - @if (Model.Roles.Count() > 0) - { - foreach (var role in Model.Roles) - { - - - - - - } - } - else - { - - } -
@role@((new RoleService()).GetRoleDescription(role)) - @if (role != Constants.ROLE_ADMINISTRATOR) - { - using (Html.BeginForm("DeleteRole", WebConst.CONTROLLER_UA, new { roleid = role })) - { - - } - } -
@Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.User.NoRoles)))
-
-
-
-
-} diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/SearchUser.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/SearchUser.cshtml deleted file mode 100644 index 594ab90..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/SearchUser.cshtml +++ /dev/null @@ -1,45 +0,0 @@ -@* - ----------------------------------------- - UserAdministration - SearchUser.cshtml - ----------------------------------------- -*@ -@model Vrh.Web.Membership.Areas.UserAdministration.Models.IndexViewModel - -@{ - ViewBag.Title = Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.User.UserManagement))); -} - -@section Styles { - - -} - -@if (!Model.IsRolesEnabled) -{ -

- WARNING: Your Role Provider is currently disabled - any user may currently visit - this page.
- Change <roleManager enabled="false"> to <roleManager enabled="true"> - in your web.config file. -

-} -
-
-

@Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.User.SearchUser)))

-
-
-
-
- - -
- -
-
- @if (Model.Users.Count == 0) - { -

@Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.User.NoSuchUser)))

- } -
-
-
\ No newline at end of file diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/UsersRoles.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/UsersRoles.cshtml deleted file mode 100644 index e35d0c9..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/UserAdministration/UsersRoles.cshtml +++ /dev/null @@ -1,49 +0,0 @@ -@using Vrh.Web.Membership.Areas.UserAdministration.Models - -@model DetailsViewModel - -@{ - ViewBag.Title = Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.User.WUser))) + ": " + Model.DisplayName + " [" + Html.Raw(Model.Trans(DetailsViewModel.GetStatusWordCode(Model.Status))) + "]"; -} - -@section Styles { - -} -" - -
-
-

@ViewBag.Title

-
-
- -
    -
  • @Html.ActionLink(Model.Trans(typeof(WordCodes.MvcMembership.Common.Details)), WebConst.Actions.UA_DETAILS, WebConst.CONTROLLER_UA, new { id = Model.User.ProviderUserKey }, null)
  • -
  • @Html.ActionLink(Model.Trans(typeof(WordCodes.MvcMembership.User.Password)), WebConst.Actions.UA_PASSWORD, WebConst.CONTROLLER_UA, new { id = Model.User.ProviderUserKey, tabPage = 1 }, null)
  • -
  • @Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.ManyToMany.RoleGroups)))
  • -
- - @*

Szerepkrk

-
-
    - @foreach(var role in Model.Roles){ -
  • - @Html.ActionLink(role.Key, "Role", new { id = role.Key }, new { @class = role.Value ? "userIsInRole" : "userIsNotInRole" }) - @if(role.Value){ - using(Html.BeginForm("RemoveFromRole", "UserAdministration", new{id = Model.User.ProviderUserKey, role = role.Key})){ - - } - }else{ - using(Html.BeginForm("AddToRole", "UserAdministration", new{id = Model.User.ProviderUserKey, role = role.Key})){ - - } - } -
  • - } -
-
*@ - - @Html.Partial("../UsersToUserRoleGroups/_UsersToUserRoleGroups", new ViewDataDictionary() { { "id", Model.User.ProviderUserKey } }) - -
-
\ No newline at end of file diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/UsersToUserRoleGroups/Index.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/UsersToUserRoleGroups/Index.cshtml deleted file mode 100644 index 6d9042f..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/UsersToUserRoleGroups/Index.cshtml +++ /dev/null @@ -1,28 +0,0 @@ -@* - ----------------------------------------- - UsersToUserRoleGroups - Index.cshtml - ----------------------------------------- -*@ -@using Vrh.Web.Common.Lib; - -@model CommonModel - -@{ - ViewBag.Title = Html.Raw(Model.Trans(typeof(WordCodes.MvcMembership.ManyToMany.BindRoleGroupsAndUsers))); - //Layout = "~/Views/Shared/_Layout.cshtml"; - - string labelUserManager = Model.Trans(typeof(WordCodes.MvcMembership.Labels.Button.Users)); - string labelRTURG = Model.Trans(typeof(WordCodes.MvcMembership.Labels.Button.RolesToRoleGroups)); - string labelRoles = Model.Trans(typeof(WordCodes.MvcMembership.Labels.Button.Roles)); -} -" -
-
- @UserManagementHtmlHelper.AddHeader(Html, Ajax, Url, Model, ViewBag.Title.ToString() - , new List { UserManagementHtmlHelper.DisableThisButton.UsersToUserRoleGroups } - ) -
-
- @Html.Partial("_UsersToUserRoleGroups") -
-
\ No newline at end of file diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/UsersToUserRoleGroups/_UsersToUserRoleGroups.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/UsersToUserRoleGroups/_UsersToUserRoleGroups.cshtml deleted file mode 100644 index 25cd600..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/UsersToUserRoleGroups/_UsersToUserRoleGroups.cshtml +++ /dev/null @@ -1,22 +0,0 @@ -@using VRH.Log4Pro.MultiLanguageManager; -@using Vrh.Web.Membership.Areas.UAManyToMany.Models; - -
-@{ - string areaName = "UAManyToMany"; - string ctrlName = areaName; - if (Session["MTM"] != null) - { - Session["MTM"] = null; - } - UAManyToManySessionModel mtmSession = new UAManyToManySessionModel(); - mtmSession.DefaultListItemsHeader = MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.ManyToMany.RoleGroups)); - mtmSession.DefaultSelectedListItemsHeader = MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.ManyToMany.UsersInSelectedRoleGroup)); - mtmSession.DefaultAvailableListItemsHeader = MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.ManyToMany.UsersNotInSelectedRoleGroup)); - mtmSession.ListItemsHeader = MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.ManyToMany.Users)); - mtmSession.SelectedListItemsHeader = MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.ManyToMany.RoleGroupsInSelectedUser)); - mtmSession.AvailableListItemsHeader = MultiLanguageManager.GetTranslation(typeof(WordCodes.MvcMembership.ManyToMany.RoleGroupsNotInSelectedUser)); - Session["MTM"] = mtmSession; - Html.RenderAction("ManyToMany", ctrlName, new { area = areaName, name = "UsersToUserRoleGroups", id = ViewData["id"] != null ? ViewData["id"] : null, isDefault = ViewData["id"] != null ? false : true }); -} -
\ No newline at end of file diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/_ViewStart.cshtml b/Vrh.Web.Reporting/Areas/UserAdministration/Views/_ViewStart.cshtml deleted file mode 100644 index 64d1f6e..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/_ViewStart.cshtml +++ /dev/null @@ -1,5 +0,0 @@ -@using Vrh.Web.Common.Lib; -@{ - //Layout = "~/Areas/Menu/Views/Layout/_Layout.cshtml"; - Layout = WebCommon.Layout; -} diff --git a/Vrh.Web.Reporting/Areas/UserAdministration/Views/web.config b/Vrh.Web.Reporting/Areas/UserAdministration/Views/web.config deleted file mode 100644 index d9eba85..0000000 --- a/Vrh.Web.Reporting/Areas/UserAdministration/Views/web.config +++ /dev/null @@ -1,36 +0,0 @@ - - - - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Vrh.Web.Reporting/Areas/WebForm/Views/WebForm/Inputs.cshtml b/Vrh.Web.Reporting/Areas/WebForm/Views/WebForm/Inputs.cshtml index f814d4d..8474050 100644 --- a/Vrh.Web.Reporting/Areas/WebForm/Views/WebForm/Inputs.cshtml +++ b/Vrh.Web.Reporting/Areas/WebForm/Views/WebForm/Inputs.cshtml @@ -515,61 +515,61 @@ console.log(thisfn + 'PING'); @foreach (var item in Model.Form.Inputs.Where(x => x.InputType == Vrh.WebForm.InputType.EnumList - || x.InputType == Vrh.WebForm.InputType.DATList - || x.InputType == Vrh.WebForm.InputType.SQLList - || x.InputType == Vrh.WebForm.InputType.XMLList - ) - ) - { - ListType listtype = ListType.Single; - string[] fltr = { "", "", "" }; - string geturl = ""; - if (item.InputType == Vrh.WebForm.InputType.EnumList) - { - listtype = item.EnumList.Type; - } - else if (item.InputType == Vrh.WebForm.InputType.DATList) - { - listtype = item.DATList.Type; - fltr[0] = item.DATList.Filter1; - fltr[1] = item.DATList.Filter2; - fltr[2] = item.DATList.Filter3; + || x.InputType == Vrh.WebForm.InputType.DATList + || x.InputType == Vrh.WebForm.InputType.SQLList + || x.InputType == Vrh.WebForm.InputType.XMLList + ) + ) + { + ListType listtype = ListType.Single; + string[] fltr = { "", "", "" }; + string geturl = ""; + if (item.InputType == Vrh.WebForm.InputType.EnumList) + { + listtype = item.EnumList.Type; + } + else if (item.InputType == Vrh.WebForm.InputType.DATList) + { + listtype = item.DATList.Type; + fltr[0] = item.DATList.Filter1; + fltr[1] = item.DATList.Filter2; + fltr[2] = item.DATList.Filter3; - geturl = item.DATList.Url.GetUrl(); - } - else if (item.InputType == Vrh.WebForm.InputType.SQLList) - { - listtype = item.SQLList.Type; - fltr[0] = item.SQLList.Filter1; - fltr[1] = item.SQLList.Filter2; - fltr[2] = item.SQLList.Filter3; - } - else if (item.InputType == Vrh.WebForm.InputType.XMLList) - { - listtype = item.XMLList.Type; - } + geturl = item.DATList.Url.GetUrl(); + } + else if (item.InputType == Vrh.WebForm.InputType.SQLList) + { + listtype = item.SQLList.Type; + fltr[0] = item.SQLList.Filter1; + fltr[1] = item.SQLList.Filter2; + fltr[2] = item.SQLList.Filter3; + } + else if (item.InputType == Vrh.WebForm.InputType.XMLList) + { + listtype = item.XMLList.Type; + } - if (geturl == "") - { - geturl = Url.Action("GetSelectList", "WebForm", new { - area = "WebForm", - xml = Model.XmlConnectionString, - sform = Model.Form.Name, - inputname = item.Name, - }); - geturl += "&query=@filter"; - geturl += String.IsNullOrEmpty(fltr[0]) ? "" : "&filter1=@filter1"; - geturl += String.IsNullOrEmpty(fltr[1]) ? "" : "&filter2=@filter2"; - geturl += String.IsNullOrEmpty(fltr[2]) ? "" : "&filter3=@filter3"; - } + if (geturl == "") + { + geturl = Url.Action("GetSelectList", "WebForm", new { + area = "WebForm", + xml = Model.XmlConnectionString, + sform = Model.Form.Name, + inputname = item.Name, + }); + geturl += "&query=@filter"; + geturl += String.IsNullOrEmpty(fltr[0]) ? "" : "&filter1=@filter1"; + geturl += String.IsNullOrEmpty(fltr[1]) ? "" : "&filter2=@filter2"; + geturl += String.IsNullOrEmpty(fltr[2]) ? "" : "&filter3=@filter3"; + } - var geturlraw = Html.Raw(Url.Content(geturl)); - System.Diagnostics.Debug.WriteLine("_Inputs.cshtml-ready: geturl={0}, geturlraw={1}", geturl, geturlraw); + var geturlraw = Html.Raw(Url.Content(geturl.Replace(@"\", @"\\"))); + System.Diagnostics.Debug.WriteLine("_Inputs.cshtml-ready: geturl={0}, geturlraw={1}", geturl, geturlraw); - string listid = item.Name + "SelectedName"; - string targetid = item.Name; - if (listtype == ListType.Single || listtype == ListType.SingleListOnly) - { + string listid = item.Name + "SelectedName"; + string targetid = item.Name; + if (listtype == ListType.Single || listtype == ListType.SingleListOnly) + { MyAutoCompInit('@(listid)', '@(targetid)', '@(geturlraw)', '@fltr[0]', '@fltr[1]', '@fltr[2]', false); if (item.InputType == Vrh.WebForm.InputType.DATList && !String.IsNullOrEmpty(item.Value)) { //DATList és van DefaultValue, akkor meg kell hívni a listakészítő akciót, hogy megkapjuk a kiválasztott értéket diff --git a/Vrh.Web.Reporting/Areas/WebForm/Views/WebForm/WebForm.cshtml b/Vrh.Web.Reporting/Areas/WebForm/Views/WebForm/WebForm.cshtml index 60e8115..56251ac 100644 --- a/Vrh.Web.Reporting/Areas/WebForm/Views/WebForm/WebForm.cshtml +++ b/Vrh.Web.Reporting/Areas/WebForm/Views/WebForm/WebForm.cshtml @@ -12,7 +12,7 @@ @if (Model.Form != null) { - + if (Model.ViewMode == ViewModes.Mobile) { @*http://demos.jquerymobile.com/1.4.5*@ diff --git a/Vrh.Web.Reporting/Areas/iSchedulerReport/Views/iSchedulerReport/Editor.cshtml b/Vrh.Web.Reporting/Areas/iSchedulerReport/Views/iSchedulerReport/Editor.cshtml index 9f45f81..cedab95 100644 --- a/Vrh.Web.Reporting/Areas/iSchedulerReport/Views/iSchedulerReport/Editor.cshtml +++ b/Vrh.Web.Reporting/Areas/iSchedulerReport/Views/iSchedulerReport/Editor.cshtml @@ -170,7 +170,7 @@ @Html.Partial("~/Areas/iSchedulerReport/Views/Shared/ValidationSummary.cshtml")
- +