| | |
| | | @{ |
| | | @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 }, |
| | |
| | | { 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>"; |
| | | } |
| | | }, |
| | | |
| | |
| | | { 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 _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(){ //按钮二的回调 |
| | | // |
| | | // } |
| | | }); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | |
| | | 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"> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |