From d4a6d65f5e449c3e5464aa18ae97bf8953987217 Mon Sep 17 00:00:00 2001 From: LR-20210131IOQH\Administrator <jackcold@163.com> Date: 星期二, 10 八月 2021 15:44:14 +0800 Subject: [PATCH] Merge branch 'master' of http://47.108.235.38:8080/r/zhengcaioa --- zhengcaioa/zhengcaioa/Views/IntentionCustomer/IndexYiXiang.cshtml | 162 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 162 insertions(+), 0 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/IntentionCustomer/IndexYiXiang.cshtml b/zhengcaioa/zhengcaioa/Views/IntentionCustomer/IndexYiXiang.cshtml new file mode 100644 index 0000000..18d1827 --- /dev/null +++ b/zhengcaioa/zhengcaioa/Views/IntentionCustomer/IndexYiXiang.cshtml @@ -0,0 +1,162 @@ +锘緻{ + ViewBag.Title = "IntentionCustomer"; + Layout = "~/Views/Shared/_Layout_Search.cshtml"; + string ywjlId = ViewBag.ywjlId as string; +} +@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 = [ + { label: 'id', name: 'Id', labtype: 'txt', hidden: true }, + { label: '鎰忓悜鏃堕棿', name: 'YixiangtimeName', labtype: 'txt', hidden: false, width: 100 }, + { label: '鎰忓悜鏉ユ簮', name: 'KhlyName', labtype: 'txt', hidden: false, width: 100 }, + { label: '鐢甸攢涓撳憳', name: 'DianxiaozhuanyuanName', labtype: 'txt', hidden: false, width: 100 }, + { + label: '瀹㈡埛鍗曚綅', name: 'Name', labtype: 'txt', hidden: false, width: 400, + formatter: function (cellvalue, options, rowObject) { + return "<a onclick=\"OpenWindow('" + cellvalue.replace(/'/g, '') + "','98%','100%', '/IntentionCustomer/Edit?id=" + rowObject.Id + "')\" >" + cellvalue + "</a>"; + } + }, + { 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>"; + } + }, + + ]; + dataUrl = "/IntentionCustomer/GetList?Yixiang=05&YwjlYx=@ywjlId"; + searchCol = [ + { label: '鎰忓悜鏃堕棿', name: 'Yixiangtime', labtype: 'datearea', hidden: false }, + { label: '鎰忓悜鏉ユ簮', name: 'Khly', labtype: 'combox', hidden: false, data: JSON.parse(khlys)/*, cwidth: '5%', cccwidth: '8%'*/ }, + { 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) }, + + + + + ]; + + + + + + + + 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(){ //鎸夐挳浜岀殑鍥炶皟 + // + // } + }); + + + + + + + + + + + + + + + + + } + + + + + + var _afterSave = function (result) { + if (result) { + toastr.success("淇濆瓨鎴愬姛"); + } else { + toastr.error("淇濆瓨澶辫触"); + } + } + + var _afterDel = function (result) { + if (result) { + toastr.success("鍒犻櫎鎴愬姛"); + } else { + /**/ + toastr.error("鍒犻櫎澶辫触"); + /**/ + } +} + </script> +} + +@section footerScripts{ + <script type="text/javascript"> + + + + + + </script> +} -- Gitblit v1.9.1