LR-20210131IOQH\Administrator
2021-08-10 d4a6d65f5e449c3e5464aa18ae97bf8953987217
zhengcaioa/zhengcaioa/Views/Liaotian/Indexcheck.cshtml
@@ -33,14 +33,28 @@
                   
                } },
                }
            },
            {
                label: '是否出书', name: 'ChushuStatus', labtype: 'txt', hidden: false, width: 100,
                formatter: function (cellvalue, options, rowObject) {
                    if (cellvalue == "D") {
                        return "否"
                    } else {
                        return "是"
                    }
                }
            },
            { label: '状态', name: 'RecStatus', labtype: 'txt', hidden: true },
            { label: '创建人', name: 'Creater', labtype: 'txt', hidden: true },
            { label: '创建时间', name: 'Createtimetxt', labtype: 'txt', hidden: true },
            { label: '修改人', name: 'Modifier', labtype: 'txt', hidden: true },
            { label: '修改时间', name: 'Modifytimetxt', labtype: 'txt', hidden: true }
        ];
        dataUrl = "/Liaotian/GetLiaotianList";
        dataUrl = "/Liaotian/GetLiaotianList?Shifoushenhe=D";
        searchCol = [
            { label: '问题类别', name: 'Questiontype', labtype: 'combox', hidden: false, data: JSON.parse(questiontypeDropDown), cwidth: '5%', cccwidth: '8%' },
@@ -50,12 +64,24 @@
            { label: '是否审核', name: 'Shifoushenhe', labtype: 'combox', hidden: false, data: JSON.parse(shifou), cwidth: '5%', cccwidth: '8%' },
            { label: '录入时间', name: 'Createtime', labtype: 'datearea', hidden: false },
            { label: '录入人', name: 'Creater', labtype: 'combox', hidden: false, data: JSON.parse(Creater), cwidth: '5%', cccwidth: '8%' },
            { label: '是否出书', name: 'ChushuStatus', labtype: 'combox', hidden: false, data: JSON.parse(shifou), cwidth: '5%', cccwidth: '8%' },
            //{ label: '是否收藏', name: 'ShouCangStatus', labtype: 'combox', hidden: false, data: JSON.parse(shifou), cwidth: '5%', cccwidth: '8%' },
        ];
        var _pageAdd = function () {
            OpenWindow("新增问题", "98%", "90%", "/Liaotian/Edit/");
        }
        var _pageSearch = function () {
            $("#jqGrid").jqGrid('setGridParam', {
                url:'/Liaotian/GetLiaotianList',   postData: jsons, page: 1
            }); //重新载入
            var jsons = GetSearchEnd();
            if (jsons == false) {
                msg.info("请录入查询条件");
                return false;
            }
            LoadGrid(jsons);
        }
        var _pageZhuanyi = function () {
@@ -175,6 +201,23 @@
        }
        //function sendHuidaStatus() {
        //    var msg = $("#PBSShifoushenhe");
        //    if (msg.length > 0) {
        //        $("#PBSShifoushenhe").val("D");
        //        $("#PBSShifoushenhe").trigger('chosen:updated');//更新选项
        //        //_pageSearch();
        //    } else {
        //        setTimeout(sendHuidaStatus, 1000);
        //    }
        //}
        //sendHuidaStatus();
        send();
@@ -183,5 +226,20 @@
        $(document).ready(function () {
            //setTimeout(
            //    function () {
                    $("#PBSShifoushenhe").val("D");
                    $("#PBSShifoushenhe").trigger('chosen:updated');//更新选项
                //    _pageSearch();
                //}, 2000);
        });
    </script>
}