CRM_EasyUI_2016/Views/CRM_Dept/Edit.cshtml

(开头部分) 5KB

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

@model GroupThink.CRM.Model.Sys.CRM_Dept_Model
@using GroupThink.CRM.Common;
@using CRM_EasyUI_2016;
@using GroupThink.CRM.Model.Sys;
@{
    //List<PermModel> perm = (List<PermModel>)ViewBag.Perm;
    //if (perm == null)
    //{
    //    perm = new List<PermModel>();
    //}
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Index_LayoutEdit.cshtml";
}
<script type="text/javascript">
    $(function () {
        $("#btnClose").click(function () {
            window.parent.frameReturnByClose()
        });
        $("#btnSave").click(function () {
            if ($("#EditForm").valid()) {
                $.ajax({
                    url: "/CRM_Dept/Edit",
                    type: "Post",
                    data: { DeptId: $("#DeptID").val(), DeptName: $("#DeptName").val(), ParentId: $("#Parent").combotree("getValue"), Des: $("#Des").val(), Enable: $("#IsEnable").is(':checked') },
                    dataType: "json",
                    success: function (data) {
                        if (data == 1) {
                            window.parent.frameReturnByMes("修改成功!!");
                            window.parent.frameReturnByReload(true);
                            window.parent.frameReturnByClose();
                        }
                        else if (data == -1) {
                            window.parent.frameReturnByMes("请勿重复添加部门名称");
                        }
                        else {
                            window.parent.frameReturnByMes(msg.failOperate);
                        }
                    }
                });
            }
            return false;
        });
    });
</script>
<script type="text/javascript">
    $(function () {
        $('#Parent').combotree({
            url: "/CRM_Dept/InitTree",
//            onClick: function (node) {
//                $("#selectParentId").val(node.id);
//            }
        })
        $('#Parent').combotree('setValue', '@Model.ParentID');
    })
</script>
<table width="100%" style="border: none">
    <thead>
        <tr>
            <td colspan="4" align="center">
                <div class="btn sub_btn" style="padding: 0; font-weight: normal">
后面还有 71 行代码,购买后查看完整代码

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

AI 解读

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

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