username@email.com
2023-02-28 67a0042c5f29e4bb0e0b82f6190f2bc51480b45c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
@{
    ViewBag.Title = "Area";
    Layout = "~/Views/Shared/_Layout_Search.cshtml";
}
@section headerStyle{
    <script type="text/javascript">
        
        dataCol = [
            { label: 'CodeId', name: 'CodeId', labtype: 'txt', hidden: false },
            {
                label: '区域名', name: 'Name', labtype: 'txt', hidden: false  ,
                formatter: function (cellvalue, options, rowObject) {
                    return "<a onclick=\"OpenWindow('" + cellvalue + "','98%','100%', '/Area/Edit?id=" + rowObject.CodeId + "')\"  >" + cellvalue + "</a>";
                }
            },
            { label: '父区域名', name: 'ParentName', labtype: 'txt', hidden: false },
            { label: '父区域名id', name: 'ParentId', labtype: 'txt', hidden: false },
            
        ];
        dataUrl = "/Area/GetList";
        searchCol = [
            { label: '区域名', name: 'Name', labtype: 'txt', hidden: false },
            { label: '父区域名', name: 'ParentName', labtype: 'txt', hidden: false },
        ];
        var _pageAdd = function () {
            OpenWindow("新增区域", "98%", "90%", "/Area/Edit/");
        }
 
 
 
        var _afterSave = function (result) {
            if (result) {
                toastr.success("保存成功");
            } else {
                toastr.error("保存失败");
            }
        }
 
        var _afterDel = function (result) {
            if (result) {
                toastr.success("删除成功");
            } else {
                /**/
                toastr.error("删除成功");
        /**/
    }
}
    </script>
}