hlzyWeb/obj/Debug/Package/PackageTmp/Admin/Settings/SetRolePermissions.aspx

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminNew.Master" AutoEventWireup="true"
    CodeBehind="SetRolePermissions.aspx.cs" Inherits="Hidistro.UI.Web.Admin.Settings.SetRolePermissions" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script>
        $(function () {
           
            $('.checkboxlist .classa input').click(function () {
                if ($(this)[0].checked) {
                    $(this).parents('.checkboxlist').find('input').prop('checked', true);
                } else {
                    $(this).parents('.checkboxlist').find('input').prop('checked', false);
                }
            });
            $('.checkboxlist .two input').click(function () {
                if ($(this).next().get(0)) {
                    if ($(this)[0].checked) {
                        $(this).parents('.titlecheck').next().find('input').prop('checked', true);
                    } else {
                        $(this).parents('.titlecheck').next().find('input').prop('checked', false);
                    }
                }
                var chekLen = $(this).parents('.twoinerlist').find('input:checked').size(),
                    allLen = $(this).parents('.twoinerlist').find('input').size();
                if (chekLen == allLen) {
                    $(this).parents('.twoinerlist').prev().find('strong').prev().prop('checked', true);
                } else {
                    $(this).parents('.twoinerlist').prev().find('strong').prev().prop('checked', false);
                }
                var allCheckLen = $(this).parents('.checkboxlist').find('.two input:checked').size();
                allAllLen = $(this).parents('.checkboxlist').find('.two input').size();
                if (allCheckLen == allAllLen) {
                    $(this).parents('.checkboxlist').find('.classa input').prop('checked', true);
                } else {
                    $(this).parents('.checkboxlist').find('.classa input').prop('checked', false);
                }
            });
            $("#btnSubmit").click(function () { SaveDate(); });
            $("#cancelSubmit").click(function () { location.href = 'Roles.aspx'; });

           $("input[value='m04_hyp09']").parent().hide();
        })

        function SaveDate() {
            var selectChecks = $("input[name='permissions']:checked");
            var selectValue = '';
            selectChecks.each(function () {
                selectValue += $(this).val() + ',';
            });
            if (selectValue != '') {
                selectValue = selectValue.substr(0, selectValue.length - 1);
            }

            $.ajax({
                url: 'SaveRolePermissionData.ashx',
                type: 'post',
                dataType: 'json',
                data: { 'roleId': $("#txtRoleId").val(), 'rolePermissions': selectValue },
                success: function (data) {
后面还有 46 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。