username@email.com
2022-08-22 827b416782eda317a6b24e0afb88c788e483b86d
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
@using DTO;
@{
    ViewBag.Title = "FiOrderrecievemoney";
    Layout = "~/Views/Shared/_Layout_Search.cshtml";
 
    List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>;
}
@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,
                formatter: function (cellvalue, options, rowObject) {
                    if (rowObject.ShouliStatus == "A") {
                        return "<a onclick=\"OpenWindow('" + cellvalue.replace(/'/g, '') + "','98%','100%', '/CooperOrder/Edit?id=" + rowObject.Id + "&ShouliStatus=" + rowObject.ShouliStatus + "')\"  >" + cellvalue + "</a>";
                    } else {
                        return "<a onclick=\"OpenWindow('" + cellvalue.replace(/'/g, '') + "','98%','100%', '/CooperOrder/Edit?id=" + rowObject.Id + "&ShouliStatus=" + rowObject.ShouliStatus + "')\"  >" + cellvalue + "</a>";
                    }
 
                }
            },
 
            { 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: 'CreaterName', labtype: 'txt', hidden: false, width: 60 },
            { 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 class=\"Shoukuan\"  style=\"display: none;\" 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("删除成功");
        /**/
    }
        }
 
        var ActionInfo22 = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ActionInfo2))';
 
        var _afterLoadDataload = function (xhr) {
            var data = JSON.parse(ActionInfo22);
            for (var o in data) {
                //alert(o);
                //alert(data[o]);
                /* alert("PageShortcut:" + data[o].PageShortcut + " PageName:" + data[o].PageName);*/
                $("." + data[o].PageShortcut).show();
 
            }
 
            jQuery("#jqGrid").jqGrid("footerData", "set", { OrderNo: "<font color='darkgoldenrod'>--当页合计--</font> </br>  <font color='darkgoldenrod'>--合计--</font>", OrderNum: "<font color='darkgoldenrod'>" + xhr.DangyeHeji1 + "</font></br><font color='darkgoldenrod'>" + xhr.Heji1 + "</font>", Money: "<font color='darkgoldenrod'>" + xhr.DangyeHeji2 + "</font></br><font color='darkgoldenrod'>" + xhr.Heji2 + "</font>", YishouMoney: "<font color='darkgoldenrod'>" + xhr.DangyeHeji3 + "</font></br><font color='darkgoldenrod'>" + xhr.Heji3 + "</font>", WeishouMoney: "<font color='darkgoldenrod'>" + xhr.DangyeHeji4 + "</font></br><font color='darkgoldenrod'>" + xhr.Heji4 + "</font>" });
 
        };
 
    </script>
}
 
@section footerScripts{
    <script type="text/javascript">
 
 
 
 
 
    </script>
}