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
| @{
| ViewBag.Title = "FiAccountExpenses";
| Layout = "~/Views/Shared/_Layout_Search.cshtml";
| }
| @section headerStyle{
| <script type="text/javascript">
| var FiSubject = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.FiSubject))';
| loseherght = 60;
| dataCol = [
| { label: 'id', name: 'Id', labtype: 'txt', hidden: true, width: 60},
| { label: '账户类型', name: 'AccounttypeName', labtype: 'txt', hidden: false, width: 60 },
| {
| label: '账户名称', name: 'AccountName', labtype: 'txt', hidden: false, width: 60
| },
| { label: '科目名称', name: 'SubjectName', labtype: 'txt', hidden: false, width: 60 },
| { label: '收入支出', name: 'RecordTypeName', labtype: 'txt', hidden: false, width: 60 },
|
| { label: '金额', name: 'Money', labtype: 'txt', hidden: false, width: 60},
| { label: '账户余额', name: 'AccountMoney', labtype: 'txt', hidden: false, width: 60 },
| { label: '部门', name: 'Department', labtype: 'txt', hidden: false, width: 60 },
| { label: '收付款人(单位)', name: 'PaymentUnit', labtype: 'txt', hidden: false, width: 100 },
| { label: '操作人', name: 'CreaterName', labtype: 'txt', hidden: false, width: 60 },
| { label: '摘要', name: 'OperationalMatters', labtype: 'txt', hidden: false, width: 200 },
| { label: '订单号', name: 'Remark', labtype: 'txt', hidden: false, width: 60 },
| { label: '操作时间', name: 'CreatetimeName', labtype: 'txt', hidden: false, width: 100},
| {
| label: '操作', name: 'RecStatus', labtype: 'txt', hidden: false ,
| formatter: function (cellvalue, options, rowObject) {
| return "<a onclick=\"OpenWindow('查看','98%','100%', '/FiAccountExpenses/Check?id=" + rowObject.Id + "')\" >查看</a>";
| }, width: 60
| },
| ];
| dataUrl = "/FiAccount/GetListLiushuizhang?AccountId=@ViewBag.id";
| searchCol = [
| { label: '操作时间', name: 'Createtime', labtype: 'datearea', hidden: false },
|
| { label: '科目名称', name: 'SubjectId', labtype: 'combox', hidden: false, data: JSON.parse(FiSubject) },
| { label: '摘要', name: 'OperationalMatters', labtype: 'txt', hidden: false },
| { label: '订单号', name: 'Remark', labtype: 'txt', hidden: false },
| { label: '收付款人', name: 'PaymentUnit', labtype: 'txt', hidden: false },
| { label: '操作人', name: 'CreaterName', 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("删除成功");
| /**/
| }
| }
| var _afterLoadDataload = function (xhr) {
| //console.info(xhr);
| //var rows = jQuery("#jqGrid").jqGrid("getRowData"), total_Xuefei = 0, total_Baomingrenshu = 0;
| //for (var i = 0, l = rows.length; i < l; i++) {
| // total_Xuefei += (rows[i].Xuefei - 0);
| // total_Baomingrenshu += (rows[i].Baomingrenshu - 0);
| //}
|
| jQuery("#jqGrid").jqGrid("footerData", "set", { RecordTypeName: "<font color='darkgoldenrod'>--当页合计--</font> </br> <font color='darkgoldenrod'>--合计--</font>", Money: "<font color='darkgoldenrod'>" + xhr.DangyeHeji1 + "</font></br><font color='darkgoldenrod'>" + xhr.Heji1 + "</font>" });
|
|
|
| };
| </script>
| }
|
|
| @section footerScripts{
| <script type="text/javascript">
|
|
|
|
|
|
|
| </script>
| }
|
|