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/CooperOrder/selectWenshu.cshtml | 31 ++++++++++++++++++++++++------- 1 files changed, 24 insertions(+), 7 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/CooperOrder/selectWenshu.cshtml b/zhengcaioa/zhengcaioa/Views/CooperOrder/selectWenshu.cshtml index 52f8f2c..bd53497 100644 --- a/zhengcaioa/zhengcaioa/Views/CooperOrder/selectWenshu.cshtml +++ b/zhengcaioa/zhengcaioa/Views/CooperOrder/selectWenshu.cshtml @@ -1,13 +1,17 @@ -锘緻{ +锘緻using DTO; +@{ ViewBag.Title = "CooperOrder"; Layout = "~/Views/Shared/_Layout_Search.cshtml"; + + List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>; + } @section headerStyle{ <script type="text/javascript"> var Wenshuleixing = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.Wenshuleixing))'; var status = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.status))'; - + gridConfig = { multiselect: true, selectcol: "Id" }; loseherght = 40; dataCol = [ @@ -24,24 +28,24 @@ { label: '閲囪喘浜�', name: 'PurchaserName', labtype: 'txt', hidden: false, width: 100 }, { label: '閲囪喘浠g悊鏈烘瀯', name: 'Agency', labtype: 'txt', hidden: false, width: 100 }, { label: '瀹㈡埛鍗曚綅', name: 'KhdwName', labtype: 'txt', hidden: false, width: 100 }, - { label: '鐘舵��', name: 'StatusName', labtype: 'txt', hidden: false, width: 100 }, + { label: '鐘舵��', name: 'StatusName', labtype: 'txt', hidden: false, width: 100 }, { label: '鏌ョ湅鏂囦功', name: 'Status', labtype: 'txt', hidden: false, width: 100 , formatter: function (cellvalue, options, rowObject) { if (rowObject.OrderType1 == "浠f嫙鎶曡瘔涔�") { - return "<a onclick=\"OpenWindow('鏌ョ湅鎶曡瘔涔�','98%','100%', '/CooperOrder/PrintZhiyihan?id=" + rowObject.Id + "')\" >鏌ョ湅鎶曡瘔涔�</a>"; + return "<a class=\"Dayin\" style=\"display: none;\" onclick=\"OpenWindow('鎵撳嵃瀵煎嚭鎶曡瘔涔�','98%','100%', '/CooperOrder/Printtousushu?id=" + rowObject.Id + "')\" >鎵撳嵃瀵煎嚭鎶曡瘔涔�</a>"; } else if (rowObject.OrderType1 == "浠f嫙璐ㄧ枒鍑�") { - return "<a onclick=\"OpenWindow('鏌ョ湅璐ㄧ枒鍑�','98%','100%', '/CooperOrder/PrintZhiyihan?id=" + rowObject.Id + "')\" >鏌ョ湅璐ㄧ枒鍑�</a>"; + return "<a class=\"Dayin\" style=\"display: none;\" onclick=\"OpenWindow('鎵撳嵃瀵煎嚭璐ㄧ枒鍑�','98%','100%', '/CooperOrder/PrintZhiyihan?id=" + rowObject.Id + "')\" >鎵撳嵃瀵煎嚭璐ㄧ枒鍑�</a>"; } } }, ]; - dataUrl = "/CooperOrder/GetListWenshu"; + dataUrl = "/CooperOrder/GetListWenshu?Status=2"; searchCol = [ { label: '鏃堕棿', name: 'XdTime', labtype: 'datearea', hidden: false }, { label: '鏂囦功绫诲埆', name: 'Wenshuleixing', labtype: 'combox', hidden: false, data: JSON.parse(Wenshuleixing) }, @@ -52,7 +56,7 @@ { label: '閲囪喘浠g悊鏈烘瀯', name: 'Agency', labtype: 'txt', hidden: false }, { label: '瀹㈡埛鍚嶇О', name: 'KhdwName', labtype: 'txt', hidden: false }, { label: '鐢熸垚鐘舵��', name: 'status', labtype: 'combox', hidden: false, data: JSON.parse(status) }, - + @@ -128,6 +132,19 @@ } + 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(); + + } + + + }; </script> } -- Gitblit v1.9.1