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 |  120 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 110 insertions(+), 10 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Views/IntentionCustomer/IndexYiXiang.cshtml b/zhengcaioa/zhengcaioa/Views/IntentionCustomer/IndexYiXiang.cshtml
index 3f84bd5..842467c 100644
--- a/zhengcaioa/zhengcaioa/Views/IntentionCustomer/IndexYiXiang.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/IntentionCustomer/IndexYiXiang.cshtml
@@ -1,18 +1,21 @@
-锘緻{
+锘緻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" };
+        gridConfig = { multiselect: true, selectcol: "Id" };
         dataCol = [
             { label: 'id', name: 'Id', labtype: 'txt', hidden: true },
             { label: '鎰忓悜鏃堕棿', name: 'YixiangtimeName', labtype: 'txt', hidden: false, width: 100 },
@@ -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,11 +55,95 @@
 
 
 
+        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);
+
+        }
+
+
+
+        var _pageDelete = 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;
+            }
+
+            // 1銆佹墦寮�寮瑰嚭灞�
+            var index = layer.open({
+                type: 1,銆�銆�//鍩烘湰灞傜被鍨�
+                icon: 0, //鍥炬爣
+                content: '纭畾瑕佸垹闄ゆ剰鍚戣鍗曞悧锛�',   //鍐呭
+                shade: 0.3,  //閬僵,濡傛灉鎯冲畾涔夊埆鐨勯鑹�,鍙互shade:[0.5,'#fff']
+                shadeClose: 1,   //鏄惁鐐瑰嚮閬僵鍏抽棴
+                skin: 'demoClass',    //鏍峰紡绫诲悕
+                moveType: 1, //鎷栨嫿椋庢牸,榛樿涓�0(浼氭湁涓繃搴︾殑閫忔槑妗�)
+                btn: ['纭畾', '鍙栨秷'],    //鎸夐挳
+                btn1: function () { //鎸夐挳涓�鐨勫洖璋�
+
+                    layer.close(index);
+
+                    $.ajax({
+                        type: "POST",
+                        url: "/IntentionCustomer/UnBind?id=" + baifangid,
+                        dataType: "json",
+                        global: false,
+                        data: "",
+                        success: function (data) {
+
+                            if (data.Result) {
+                                toastr.success("鍒犻櫎鎴愬姛");
+                                jQuery('#jqGrid').jqGrid().trigger('reloadGrid');
+                            } else {
+                                toastr.error("鍒犻櫎澶辫触" + data.Message);
+                            }
+                        },
+                        error: function () {
+
+
+                            toastr.error("鍒犻櫎澶辫触");
+                        }
+                    });
+                },
+                //                btn2:function(){    //鎸夐挳浜岀殑鍥炶皟
+                //
+                //                }
+            });
 
 
 
 
 
+
+
+
+
+
+
+
+
+
+
+
+        }
 
 
 
@@ -78,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