username@email.com
2025-04-27 15eb82df2d6ec539e9d4245bfe08d531e8eb6379
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
 
@{
    ViewBag.Title = "SysCode";
    Layout = "~/Views/Shared/_Layout_DataEdit.cshtml";
}
@section headerStyle{
 
    <script src="/js/plugins/dataTables/jquery.dataTables.js"></script>
    <script src="/js/plugins/dataTables/dataTables.bootstrap.js"></script>
    <script language="javascript" type="text/javascript">
        controllist = [
 
  {
      label: '基础信息', name: 'SysCode', labtype: 'panel', data: [
 
                           { label: '隐码ID', name: 'Id', key: true, labtype: 'txt', addvisible: false, editvisible: false, reg: '' }
                           , { label: '关联表', name: 'CodeTable', labtype: 'txt', addvisible: true, editvisible: true, reg: '', ismust: true }
                           , { label: '关联字段', name: 'CodeField', labtype: 'txt', addvisible: true, editvisible: true, reg: '', ismust: true }
                           , { label: '描述', name: 'Comments', labtype: 'txt', addvisible: true, editvisible: true, reg: '', ismust: true }
                           , { label: '隐码状态', name: 'RecStatus', labtype: 'txt', disabled: true, addvisible: true, editvisible: true, reg: '' }
     // , { label: '测试', name: 'IDs', txtname: "CodeTable", labtype: 'itxt', addvisible: true, editvisible: true, reg: '',isMulti:true, ismust: true, url: '/Select/SelectUser'},
 
 
 
      ]
  }
 
 
  , {
      label: '', name: 'SysCodeDtlList', labtype: 'panel', islist: true, button: true, data: [
          { label: 'ID', name: 'Id', labtype: 'txt', key: true, addvisible: false, editvisible: false, reg: '', ismust: true, colcount: 0.5 }
          , { label: '编号', name: 'CodeSn', labtype: 'txt', addvisible: true, editvisible: true, reg: '', ismust: true, colcount: 0.5}
          , { label: '名称', name: 'Comments', labtype: 'txt', addvisible: true, editvisible: true, reg: '', ismust: true, colcount: 0.5}
          , { label: '排序', name: 'Sort', labtype: 'txt', addvisible: true, editvisible: true, reg: '', colcount: 0.5 }
          , { label: '备注', name: 'Contents', labtype: 'txt', addvisible: true, editvisible: true, reg: '', colcount: 0.5}
                           //, { label: '状态', name: 'RecStatus', labtype: 'txt', disabled: true, addvisible: true, editvisible: true, reg: '' }
 
      ]
  }
 
 
 
        ];
        saveurl = '/SysCode/Save/';
        editurl = '/SysCode/Get/';
        nullifyurl = "/SysCode/Nullify/";//废弃取消单据时的url 返回json数据
        deldtlurl = "/SysCode/NullifyDtl/";//删除单据明细时时配置的url 返回json数据
 
 
    </script>
}
@*<div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5><i class="fa fa-list"></i>&nbsp;已停用明细&nbsp; </h5><div class="ibox-tools">
                <a class="collapse-link" onclick="collapseBox(this);"><i class="fa fa-chevron-up" title="折叠/展开明细"></i></a>
 
            </div>
        </div>
        <div class="ibox-content">
            <table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered table-hover dataTables-example" id="nulldata" ></table>
 
 
        </div>
    </div>*@
@section footerScripts{
    <script language="javascript" type="text/javascript">
        function ToOpenDtl(id)
        {
 
            var jsonStr = "{Id:" + editjson.SysCode.CodeId + ",DtlId:" + id + "}";
 
 
            $.ajax({
                url: deldtlurl,
                type: 'POST',
                data: jsonStr,
                contentType: "application/json;charset=utf-8",
                success: function (data) {
                    var issuccess = data.Result;
                    if (issuccess) {
                        parent.layer.msg('保存成功', { icon: 6 });
 
                      //  msg.suc('操作成功');
                        location.reload(true);
                    }
                    else {
                        parent.layer.msg(data.Message, { icon: 5 });
                       // msg.err(data.Message);
                    }
                },
                error: function () {
                    msg.err('页面有问题请联系管理员');
                }
            });
 
        }
 
        function _afterLoadData() {
            
            //if (editjson == undefined || editjson.DellDtlList == undefined) {
            //    return;
            //}
 
            //$('#nulldata').dataTable({
            //    "bPaginate": false, "searching": false ,
            //    "aaData": editjson.DellDtlList,
            //    "aoColumns":  [{
            //        "mDataProp": "CodeSn",
            //        "sTitle": "编号",
            //        "sDefaultContent" : "", //此列默认值为"",以防数据中没有此值,DataTables加载数据的时候报错
            //        "bVisible": true //此列不显示
            //    },
            //    {
            //        "mDataProp": "Comments",
            //        "sTitle": "名称",
            //        "sDefaultContent": "", //此列默认值为"",以防数据中没有此值,DataTables加载数据的时候报错
            //        "bVisible": true //此列不显示
            //    }, {
            //        "mDataProp": "Contents",
            //        "sTitle": "备注",
            //        "sDefaultContent": "", //此列默认值为"",以防数据中没有此值,DataTables加载数据的时候报错
            //        "bVisible": true //此列不显示
            //    },
            //    {
            //        "mDataProp": "Id",
            //        "sTitle": "操作",
            //        "sDefaultContent": "", //此列默认值为"",以防数据中没有此值,DataTables加载数据的时候报错
            //        "bVisible": true //此列不显示
 
            //    }
            //    ]
            //    ,
            //    "aoColumnDefs": [{
            //        "aTargets": [3], "mRender": function (data, type, full) {
            //            return "<a href=\"#myModal-edit\" style='Color:green' data-toggle=\"modal\" onclick=\"ToOpenDtl('" + data + "')\"> <i class=\"fa  fa-check\"> </i>启用 </a>       "
            //        }
            //    }]
            //});
 
        }
    </script>
}