From 67a0042c5f29e4bb0e0b82f6190f2bc51480b45c Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期二, 28 二月 2023 13:25:09 +0800 Subject: [PATCH] 工资绩效改版 --- zhengcaioa/zhengcaioa/Views/IntentionCustomer/IndexYiXiang.cshtml | 51 +++++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 41 insertions(+), 10 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/IntentionCustomer/IndexYiXiang.cshtml b/zhengcaioa/zhengcaioa/Views/IntentionCustomer/IndexYiXiang.cshtml index 18d1827..842467c 100644 --- a/zhengcaioa/zhengcaioa/Views/IntentionCustomer/IndexYiXiang.cshtml +++ b/zhengcaioa/zhengcaioa/Views/IntentionCustomer/IndexYiXiang.cshtml @@ -1,16 +1,19 @@ -锘緻{ +锘緻using DTO; +@{ ViewBag.Title = "IntentionCustomer"; Layout = "~/Views/Shared/_Layout_Search.cshtml"; string ywjlId = ViewBag.ywjlId as string; + + List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>; } @section headerStyle{ <script type="text/javascript"> var ywjls = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.ywjl))'; var khlys = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.khly))'; var Dianxiaozhuanyuans = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.Dianxiaozhuanyuan))'; - - + + loseherght = 60; gridConfig = { multiselect: true, selectcol: "Id" }; dataCol = [ @@ -27,12 +30,12 @@ { label: '鎵垮姙浜�', name: 'YwjlName', labtype: 'txt', hidden: false, width: 100 }, { label: '鏈�杩戣窡韪椂闂�', name: 'ZuijinzhuizongtimeName', labtype: 'txt', hidden: false, width: 100 }, - - + + { label: '璺熻釜璁板綍', name: 'Name111', labtype: 'txt', hidden: false, width: 100, formatter: function (cellvalue, options, rowObject) { - return "<a onclick=\"OpenWindow('璺熻釜璁板綍','98%','100%', '/IntentionVisit/Index?IsYwjl=true&Viscustomer=" + rowObject.Id + "')\" >璺熻釜璁板綍</a>"; + return "<a class='Gengzong' style='display: none;' onclick=\"OpenWindow('璺熻釜璁板綍','98%','100%', '/IntentionVisit/Index?IsYwjl=true&Viscustomer=" + rowObject.Id + "')\" >璺熻釜璁板綍</a>"; } }, @@ -44,7 +47,7 @@ { label: '鐢甸攢涓撳憳', name: 'Dianxiaozhuanyuan', labtype: 'combox', hidden: false, data: JSON.parse(Dianxiaozhuanyuans)/*, cwidth: '5%', cccwidth: '8%' */}, { label: '瀹㈡埛鍗曚綅', name: 'Name', labtype: 'txt', hidden: false }, { label: '鎵垮姙浜�', name: 'Ywjl', labtype: 'combox', hidden: false, data: JSON.parse(ywjls) }, - + @@ -52,7 +55,22 @@ + var _pageDuanxin = function () { + var duanxin = GetGridSelect(); + var baifangid = ""; + if (duanxin != '') { + for (var i = 0; i < duanxin.length; i++) { + baifangid += duanxin[i] + ',' + } + baifangid = baifangid.substring(0, baifangid.length - 1); + } else { + toastr.error("璇烽�夋嫨瀹㈡埛"); + return; + } + OpenWindow("缇ゅ彂鐭俊", "50%", "50%", "/IntentionVisit/Duanxin?id=" + baifangid); + + } @@ -123,7 +141,7 @@ - + } @@ -147,14 +165,27 @@ 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(); + + } + + + }; </script> } @section footerScripts{ <script type="text/javascript"> - + -- Gitblit v1.9.1