username@email.com
2021-06-07 c218f7fadbef75a948e94ac3fd3635a31294cbdd
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
@{
    ViewBag.Title = "Expert";
    Layout = "~/Views/Shared/_Layout_Search.cshtml";
}
@section headerStyle{
    <script type="text/javascript">
 
 
        @*var expertType = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.expertType))';*@
        var Province = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.Province))';
        var ReviewItem = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.ReviewItem))';
 
        dataCol = [
            { label: 'id', name: 'Id', labtype: 'txt', hidden: true },
 
            {
                label: '姓名', name: 'Name', labtype: 'txt', hidden: false
            },
            { label: '专家证号', name: 'CertiNumber', labtype: 'txt', hidden: false },
            { label: '主要评审品目', name: 'ReviewItem', labtype: 'txt', hidden: true },
            { label: '专家等级', name: 'LevelName', labtype: 'txt', hidden: true },
            { label: '联系电话', name: 'Phone1', labtype: 'txt', hidden: false },
            { label: '合作次数', name: 'Level', labtype: 'txt', hidden: true },
            {
                label: '专家证', name: 'CertiFont', align: "center", sortable: false, editable: true,// labtype: 'txt', hidden: false
                formatter: function (cellvalue, options, rowObject)  {
                    return '<img src="' + rowObject.CertiFont + '"  style="width:50px;height:30px;" />' +
                           '<img src="' + rowObject.CertiBack + '"  style="width:50px;height:30px;" />';
                }
            },
            {
                label: '职称证', name: 'TitileCerti', align: "center", sortable: false, editable: true, //labtype: 'txt', hidden: false,
                formatter: function (cellvalue, options, rowObject) {
                    // return '<img src="' + cellvalue + '"  style="width:50px;height:30px;" />';
                    return '<img src="' + rowObject.TitileCerti + '"  style="width:50px;height:30px;" />';
                }
            },
           
 
            {
                label: '审核', name: '', labtype: 'txt', hidden: false,
                formatter: function (cellvalue, options, rowObject) {
                    return "<a onclick=\"OpenWindow('专家审核','98%','100%', '/expert/Edit?id=" + rowObject.Id + "')\"  >审核</a>";
                }
            },
 
            { label: '状态', name: 'RecStatus', labtype: 'txt', hidden: true },
            { label: '创建人', name: 'Creater', labtype: 'txt', hidden: true },
            { label: '创建时间', name: 'Createtime', labtype: 'txt', hidden: true },
            { label: '修改人', name: 'Modifier', labtype: 'txt', hidden: true },
            { label: '修改时间', name: 'Modifytime', labtype: 'txt', hidden: true }
 
        ];
        dataUrl = "/ExpertsApply/GetList";
        searchCol = [
            { label: '录入时间', name: 'Createtime', labtype: 'datearea', hidden: false },
            { label: '省', name: 'Province', labtype: 'combox', hidden: false, data: JSON.parse(Province), cwidth: '5%', cccwidth: '6.5%' },
            { label: '市', name: 'City', labtype: 'combox', hidden: false, data: JSON.parse('[]'), cwidth: '1%', cccwidth: '7%' },
            { label: '专家姓名', name: 'Name', labtype: 'txt', hidden: false },
            //{ label: '专家类型', name: 'ExpertType', labtype: 'combox', hidden: false, data: JSON.parse(expertType)/*,cwidth: '5%', cccwidth: '28%' */ },
            { label: '评审品目', name: 'ReviewItem', labtype: 'combox', hidden: false, data: JSON.parse(ReviewItem)},
            //{ label: '专家级别', name: 'Level', labtype: 'combox', hidden: false, data: JSON.parse(level) },
            { label: '专家证号', name: 'CertiNumber', labtype: 'txt', hidden: false },
            { label: '联系电话', name: 'Phone1', labtype: 'txt', hidden: false },
            //{ label: '合作次数>=', name: 'JoinCount', labtype: 'txt', hidden: false }
        ];
 
        
 
       
 
         
        var _afterSave = function (result) {
            if (result) {
                toastr.success("保存成功");
            } else {
                toastr.error("保存失败");
            }
        }
 
        var _afterDel = function (result) {
            if (result) {
                toastr.success("删除成功");
            } else {
                /**/
                toastr.error("删除成功");
                /**/
            }
        }
 
 
        $(function () {
            $("#PBSProvince").change(function () {
                let Province = $("#PBSProvince").val();
                $.ajax({
                    type: "GET",
                    url: "/Project/getCity?shengid=" + Province,
                    dataType: "json",
                    global: false,
                    data: "",
                    success: function (data) {
 
                        var city = $("#PBSCity");
                        city.find('option').remove();
                        var aaa = '<option value="" hassubinfo="true">请选择</option>';
                        city.append(aaa);
                        if (data.length > 0) {
                            for (var i = 0; i < data.length; i++) {
 
                                var o = '<option value="' + data[i].CodeId + '" hassubinfo="true">' + data[i].Name + '</option>';
                                city.append(o);
                            }
                        }
                        $("#PBSCity").trigger('chosen:updated');//更新选项
                    },
                    error: function () { }
                });
            });
 
 
        });
    </script>
}