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
| @{
| ViewBag.Title = "User";
| Layout = "~/Views/Shared/_Layout_Search.cshtml";
| }
| @section headerStyle{
| <script type="text/javascript">
| var zhiwustatusDropDown = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.zhiwustatus))';
| var dept = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.dept))';
| var post = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.post))';
| var shifou = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.shifou))';
| var sex = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.sex))';
| var isMaryed = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.isMaryed))';
| dataCol = [
| { label: 'id', name: 'Id', labtype: 'txt', hidden: true },
| {
| label: '工号', name: 'Usernumber', labtype: 'txt', hidden: false, width: 100
|
| },
| {
| label: '姓名', name: 'UserName', labtype: 'txt', hidden: false, width: 100,
| formatter: function (cellvalue, options, rowObject) {
| return "<a onclick=\"OpenWindow('" + cellvalue + "','100%','98%', '/User/EditBeizhu?id=" + rowObject.Id + "')\" >" + cellvalue + "</a>";
| }
| },
|
| {
| label: '工作部门', name: 'DeptName', labtype: 'txt', hidden: false, width: 100
|
| },
| {
| label: '职务', name: 'HrPositionName', labtype: 'txt', hidden: false, width: 100
|
| },
| {
| label: '薪资待遇', name: 'BasicPrice', labtype: 'txt', hidden: false, width: 100
|
| },
| //{
| // label: '基本工资', name: 'jibensalaryName', labtype: 'txt', hidden: false, width: 100
|
| //},
| //{
| // label: '保密费', name: 'baomisalaryName', labtype: 'txt', hidden: false, width: 100
|
| //},
| //{
| // label: '工作补贴', name: 'jintiesalaryName', labtype: 'txt', hidden: false, width: 100
|
| //},
|
| {
| label: '试用期', name: 'ShiyongDateName', labtype: 'txt', hidden: false, width: 200
|
| },
|
| {
| label: '试用期工资', name: 'ShiyongPriceName', labtype: 'txt', hidden: false, width: 100
|
| },
| {
| label: '预发工资', name: 'advancewagesName', labtype: 'txt', hidden: false, width: 100
|
| },
| {
| label: '保底年薪', name: 'miniyearsalaryName', labtype: 'txt', hidden: false, width: 100
|
| },
| {
| label: '工龄工资', name: 'senioritywagesName', labtype: 'txt', hidden: false, width: 100
|
| },
| {
| label: '是否交通补贴', name: 'IstravelsubsidyName', labtype: 'txt', hidden: false, width: 100
|
| },
| {
| label: '专项扣除', name: 'geshuiqizhengName', labtype: 'txt', hidden: false, width: 100
|
| },
|
| { label: '状态', name: 'RecStatus', labtype: 'txt', hidden: true },
| { label: '创建人', name: 'Creater', labtype: 'txt', hidden: true },
| { label: '创建时间', name: 'Createtimetxt', labtype: 'txt', hidden: true },
| { label: '修改人', name: 'Modifier', labtype: 'txt', hidden: true },
| { label: '修改时间', name: 'Modifytimetxt', labtype: 'txt', hidden: true },
| {
| label: '颜色', name: 'Coler', labtype: 'txt', hidden: true,
| formatter: function (cellvalue, options, rowObject) {
| return "<span style='color:" + rowObject.Coler + ";'>" + cellvalue+"</span>";
| }},
| ];
| dataUrl = "/User/GetUserListJiBenGongZi";
| searchCol = [
| { label: '工号', name: 'Usernumber', labtype: 'txt', hidden: false },
| { label: '工作部门', name: 'DeptId', labtype: 'combox', hidden: false, data: JSON.parse(dept) },
|
|
| { label: '职工姓名', name: 'UserName', labtype: 'txt', hidden: false },
|
|
|
|
|
| ];
|
| var _afterSave = function (result) {
| if (result) {
| toastr.success("保存成功");
| } else {
| toastr.error("保存失败");
| }
| }
|
| var _afterDel = function (result) {
| if (result) {
| toastr.success("删除成功");
| } else {
| /**/
| toastr.error("删除成功");
| /**/
| }
| }
|
|
|
|
|
|
| </script>
| }
|
|