@{
    ViewBag.Title = "";
    Layout = "~/Views/Shared/_LayoutTable.cshtml";
}
<div class="wrapper wrapper-content">
    <div class="ibox float-e-margins">
        <div class="ibox-content">
            <div id="checkdiv">

            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(function () {
        $.ajax({
            url: "../WorkBench/SetTabSetings",
            data: {

            },
            datatype: "text",
            type: "Post",
            success: function (data) {
                $("#checkdiv").append(data)
                $(".i-checks").iCheck({ checkboxClass: "icheckbox_square-green", radioClass: "iradio_square-green", });
            },
            error: function () {
                layer.msg("连接超时", { icon: 2, time: 2000 });
            }
        })
    });
    function Chang(e) {
        var start = 0;
        if ($("#" + e + "").is(':checked')) {
            start = 0;
        } else {
            start = 1;
        }
        $.ajax({
            url: "../WorkBench/UpdataSetIshied",
            data: {
                isHide: start,
                BillName: e
            },
            datatype: "text",
            type: "Post",
            success:function (data) {
                if (data == "ok") {
                    if (start==0) {
                        layer.msg("启用成功！", { time: 2000 });
                    } else {
                        layer.msg("停用成功！", { time: 2000 });
                    }
                }
            },
            error: function () {
                layer.msg("连接超时", { icon: 2, time: 2000 });
            }
        })
    }
</script>