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
| @{
| ViewBag.Title = "FiOrderrecievemoney";
| Layout = "~/Views/Shared/_Layout_Search.cshtml";
| }
| @section headerStyle{
| <script type="text/javascript">
| var OrderType = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.OrderType))';
|
| var Fkzt = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.Fkzt))';
|
| loseherght = 30;
| dataCol = [
| { label: 'id', name: 'Id', labtype: 'txt', hidden: true },
| { label: '下单时间', name: 'XdTimeName', labtype: 'txt', hidden: false, width: 80 },
| {
| label: '订单号', name: 'OrderNo', labtype: 'txt', hidden: false, width: 80
| },
|
| { label: '数量', name: 'OrderNum', labtype: 'txt', hidden: false, width: 50 },
| { label: '客户单位', name: 'KhdwName', labtype: 'txt', hidden: false, width: 150 },
|
| { label: '订单类型', name: 'OrderTypeName', labtype: 'txt', hidden: false, width: 50 },
| { label: '金额', name: 'Money', labtype: 'txt', hidden: false, width: 50 },
|
| { label: '已收款', name: 'YishouMoney', labtype: 'txt', hidden: false, width: 50 },
| { label: '未收款', name: 'WeishouMoney', labtype: 'txt', hidden: false, width: 50 },
| { label: '订单状态', name: 'OrderStatus', labtype: 'txt', hidden: false, width: 60 },
| {
| label: '操作', name: 'Caozuo', labtype: 'txt', hidden: false, width: 50,
| formatter: function (cellvalue, options, rowObject) {
| if (rowObject.WeishouMoney > 0) {
| return "<a onclick=\"OpenWindow('" + rowObject.OrderNo + "','98%','100%', '/FiOrderrecievemoney/Edit?OrderId=" + rowObject.Id + "')\" > 订单收款</a>";
|
| } else {
| return "已付款";
|
| }
|
|
| }
| },
|
| ];
| dataUrl = "/FiOrderrecievemoney/GetList";
| searchCol = [
| { label: '下单时间', name: 'XdTime', labtype: 'datearea', hidden: false },
|
| { label: '订单类型', name: 'OrderType', labtype: 'combox', hidden: false, data: JSON.parse(OrderType), cwidth: '5%', cccwidth: '8%' },
| { label: '付款状态', name: 'Fkzt', labtype: 'combox', hidden: false, data: JSON.parse(Fkzt), cwidth: '5%', cccwidth: '8%' },
| { label: '订单编号', name: 'OrderNo', 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>
| }
|
| @section footerScripts{
| <script type="text/javascript">
|
|
|
|
|
| </script>
| }
|
|