username@email.com
2021-07-01 57556b16aafbafebc7f9fc86745ac2ea83e7616d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
@{
    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 _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>
}