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 = "HrDept";
| Layout = "~/Views/Shared/_Layout_DataEdit.cshtml";
| }
| @section headerStyle{
| <script language="javascript" type="text/javascript">
| var depttype = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.depttype))';
| var dept = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.dept))';
| var user = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.user))';
| var qiyongstatus = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.qiyongstatus))';
| controllist = [
| { label: '部门信息', name: 'data', labtype: 'panel',islist:'false', data: [
|
| { label: ' 部门id ', name: 'Id', labtype: 'txt', addvisible: false, editvisible: false, reg: '' }
| , { label: ' 部门编号 ', name: 'DeptSn', labtype: 'txt', addvisible: true, editvisible: true, reg: '' }
| , { label: ' 部门名称 ', name: 'DeptName', labtype: 'txt', addvisible: true, editvisible: true, reg: '', ismust: true }
| , { label: ' 部门经理 ', name: 'Director', labtype: 'combox', addvisible: true, editvisible: true, reg: '', ismust: true, data: JSON.parse(user) }
| , { label: ' 部门类型 ', name: 'DeptType', labtype: 'combox', addvisible: true, editvisible: true, reg: '', ismust: true, data: JSON.parse(depttype) }
| , { label: ' 上级部门 ', name: 'Superior', labtype: 'combox', addvisible: true, editvisible: true, reg: '', data: JSON.parse(dept) }
| , { label: ' 是否启用 ', name: 'QiyongStatus', labtype: 'combox', addvisible: true, editvisible: true, reg: '', ismust: true, data: JSON.parse(qiyongstatus) }
|
|
|
| , { label: ' 状态 ', name: 'RecStatus', labtype: 'txt', disabled:false, addvisible: false, editvisible: false ,reg:''}
|
|
| ]}
|
| ];
|
|
|
| saveurl = '/HrDept/Save';
| editurl = '/HrDept/Get/';
| nullifyurl = "/HrDept/Nullify/";//废弃取消单据时的url 返回json数据
| deldtlurl = "/HrDept/NullifyDtl/";//删除单据明细时时配置的url 返回json数据
| comments ="部门信息";
|
| </script>
| }
|
|
| @section footerScripts{
| <script language="javascript" type="text/javascript">
|
| </script>
| }
|
|