From 6e2b929cf381e2320ba6e7dec56c0371124d2b51 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期六, 27 八月 2022 15:03:00 +0800 Subject: [PATCH] 提交 --- zhengcaioa/zhengcaioa/Views/FiOrderrecievemoney/Index.cshtml | 55 ++++++++++++++++++++++++++++++++++++++++++++----------- 1 files changed, 44 insertions(+), 11 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/FiOrderrecievemoney/Index.cshtml b/zhengcaioa/zhengcaioa/Views/FiOrderrecievemoney/Index.cshtml index 622fc57..9e9a993 100644 --- a/zhengcaioa/zhengcaioa/Views/FiOrderrecievemoney/Index.cshtml +++ b/zhengcaioa/zhengcaioa/Views/FiOrderrecievemoney/Index.cshtml @@ -1,19 +1,30 @@ -锘緻{ +锘緻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 }, @@ -21,20 +32,25 @@ { 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) { - - return "<a onclick=\"OpenWindow('" + rowObject.OrderNo + "','98%','100%', '/FiOrderrecievemoney/Edit?OrderId=" + rowObject.Id + "')\" > 璁㈠崟鏀舵</a>"; - + 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 = [ @@ -51,8 +67,8 @@ ]; - - + + var _afterSave = function (result) { @@ -71,7 +87,24 @@ 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> } -- Gitblit v1.9.1