username@email.com
昨天 7b52260c2a83d23adb5447a9e9848d90b4dc018c
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
@using DTO;
@{
    ViewBag.Title = "IntentionCustomer";
    Layout = "~/Views/Shared/_Layout_Search.cshtml";
 
    List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>;
 
    string Creater11 = ViewData["Creater11"] as string;
}
@section headerStyle{
    <script type="text/javascript">
 
        var shifou = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.shifou))';
 
        var Baomingtimebegin = '@Html.Raw(ViewBag.Baomingtimebegin)';
        var Baomingtimeend = '@Html.Raw(ViewBag.Baomingtimeend)';
 
 
        loseherght = 60;
        /*gridConfig = { multiselect: true, selectcol: "Id" };*/
        dataCol = [
            { label: 'id', name: 'Id', labtype: 'txt', hidden: true },
            { label: '注册时间', name: 'CreateTimeName', labtype: 'txt', hidden: false, width: 200 },
            { label: '用户账号', name: 'Itcode', labtype: 'txt', hidden: false, width: 200 },
            {
                label: '名称', name: 'Name', labtype: 'txt', hidden: false, width: 200
            },
 
            { label: '在职企业', name: 'CustomerName', labtype: 'txt', hidden: false, width: 200 },
 
            {
                label: '操作', name: 'Guanliankehushu', labtype: 'txt', hidden: false, width: 200,
                formatter: function (cellvalue, options, rowObject) {
                    if (rowObject.CustomerName == null || rowObject.CustomerName == '') {
                        return "<a onclick=\"OpenWindow('" + rowObject.Name.replace(/'/g, '') + "','100%','100%', '/IntentionCustomer/IndexSelectHuiyuan?Huiyuanid=" + rowObject.Id + "&CustomerId=" + rowObject.CustomerId + "')\"  >添加在职企业</a>   ";
                    } else {
                        return "<a onclick=\"OpenWindow('" + rowObject.Name.replace(/'/g, '') + "','100%','100%', '/IntentionCustomer/IndexSelectHuiyuan?Huiyuanid=" + rowObject.Id + "&CustomerId=" + rowObject.CustomerId + "')\"  >修改在职企业</a>   " + "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a onclick=\"OpenWindow('" + rowObject.Name.replace(/'/g, '') + "','100%','100%', '/IntentionCustomer/Indexhuiyuanchakantongshi?CustomerId=" + rowObject.CustomerId + "')\"  >查看同事</a>";
                    }
 
                }
            },
 
 
 
 
 
 
        ];
        dataUrl = "/IntentionCustomer/GetListhuiyuan?Createtime="/* + Baomingtimebegin + "|" + Baomingtimeend*/ ;
        searchCol = [
            { label: '账号:', name: 'Itcode', labtype: 'txt', hidden: false },
            { label: '名称:', name: 'Name', labtype: 'txt', hidden: false },
            { label: '注册时间:', name: 'Createtime', labtype: 'datearea', hidden: false },
 
            { label: '有在职企业', name: 'ShifouGuanluan', labtype: 'combox', hidden: false, data: JSON.parse(shifou), cwidth: '5%', cccwidth: '8%' }
 
 
        ];
 
 
         var _pageSearch = function () {
            $("#jqGrid").jqGrid('setGridParam', {
                url: dataUrl = "/IntentionCustomer/GetListhuiyuan", postData: jsons, page: 1
            }); //重新载入
            var jsons = GetSearchEnd();
            if (jsons == false) {
                msg.info("请录入查询条件");
                return false;
            }
            LoadGrid(jsons);
        }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
        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">
 
        
 
 
 
     
 
 
        $(function () {
 
 
 
            $("#PBSCreatetimeend").val(Baomingtimeend);
 
            $("#PBSCreatetimestart").val(Baomingtimebegin);
 
        });
 
    </script>
}