| | |
| | | @{ |
| | | @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 |
| | | 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: '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 onclick=\"OpenWindow('" + rowObject.OrderNo + "','98%','100%', '/FiOrderrecievemoney/Edit?OrderId=" + rowObject.Id + "')\" > 订单收款</a>"; |
| | | 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 = [ |
| | |
| | | |
| | | |
| | | ]; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | var _afterSave = function (result) { |
| | |
| | | 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> |
| | | } |
| | | |