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
| @{
| ViewBag.Title = "工资核准";
| Layout = "~/Views/Shared/_Layout_Search.cshtml";
| }
|
| <link href="~/css/jquery-confirm.css" rel="stylesheet">
| <script src="~/js/jquery-confirm.js" type="text/javascript"></script>
|
| @section headerStyle{
|
| <script type="text/javascript">
|
| var AttendanceId = '@Html.Raw(ViewBag.AttendanceId)';
|
| //gridConfig = { multiselect: false, selectcol: "Id" };
| //shrinkToFit = false;
| //footerrow = false;
|
| dataCol = [
| { label: '序号', name: 'Id', labtype: 'txt', hidden: true },
| {
| label: '考勤日期', name: 'SgninDateName', labtype: 'txt', hidden: false, width: 80
| },
| { label: '上午上班', name: 'MorningInName', labtype: 'txt', hidden: false, width: 60 },
| { label: '上午下班', name: 'MorningOutName', labtype: 'txt', hidden: false, width: 60 },
|
| { label: '下午上班', name: 'AfternoonInName', labtype: 'txt', hidden: false, width: 80 },
| { label: '下午下班', name: 'AfternoonOutName', labtype: 'txt', hidden: false, width: 60 },
| { label: '加班上班', name: 'OvertimeInName', labtype: 'txt', hidden: false, width: 60 },
| { label: '加班上班', name: 'OvertimeOutName', labtype: 'txt', hidden: false, width: 60 },
| { label: '请假', name: 'Qingjia', labtype: 'txt', hidden: false, width: 60 },
| { label: '销假', name: 'Xiaojia', labtype: 'txt', hidden: false, width: 60 },
| { label: '带薪假', name: 'Daixinjia', labtype: 'txt', hidden: false, width: 60 },
|
| ];
| dataUrl = "/AdmAttendance/GetListDtl?AttendanceId=" + AttendanceId;
| searchCol = [
| { label: '考勤日期', name: 'SgninDate', labtype: 'date', 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>
| }
|
|