From 6a15d9219a9d4ebf17fa10519812029ad60239d4 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期三, 20 十月 2021 10:23:30 +0800 Subject: [PATCH] 社保单独维护 --- zhengcaioa/zhengcaioa/Views/User/Index.cshtml | 37 +++++++++++++++++++++---------------- 1 files changed, 21 insertions(+), 16 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/User/Index.cshtml b/zhengcaioa/zhengcaioa/Views/User/Index.cshtml index 6da5dfc..98a0b0a 100644 --- a/zhengcaioa/zhengcaioa/Views/User/Index.cshtml +++ b/zhengcaioa/zhengcaioa/Views/User/Index.cshtml @@ -118,7 +118,7 @@ return "<span style='color:" + rowObject.Coler + ";'>" + cellvalue+"</span>"; }}, ]; - dataUrl = "/User/GetUserList"; + dataUrl = "/User/GetUserList?Zhiwustatus=A"; searchCol = [ { label: '鍏ヨ亴鏃堕棿', name: 'Indate', labtype: 'datearea', hidden: false }, { label: '閮ㄩ棬', name: 'DeptId', labtype: 'combox', hidden: false, data: JSON.parse(dept) }, @@ -139,6 +139,24 @@ OpenWindow("鏂板鐢ㄦ埛", "98%", "90%", "/User/Edit/"); } + var _pageSearch = function () { + $("#jqGrid").jqGrid('setGridParam', { + url: '/User/GetUserList', postData: jsons, page: 1 + }); //閲嶆柊杞藉叆 + var jsons = GetSearchEnd(); + if (jsons == false) { + msg.info("璇峰綍鍏ユ煡璇㈡潯浠�"); + return false; + } + LoadGrid(jsons); + } + + $(function () { + $("#PBSZhiwustatus").val("A"); + $("#PBSZhiwustatus").trigger('chosen:updated');//鏇存柊閫夐」 + + }); + var _afterSave = function (result) { if (result) { toastr.success("淇濆瓨鎴愬姛"); @@ -157,23 +175,10 @@ } } - - function sendZhiwustatus() { - - var msg = $("#PBSZhiwustatus"); - - - if (msg.length > 0) { - $("#PBSZhiwustatus").val("A"); - $("#PBSZhiwustatus").trigger('chosen:updated');//鏇存柊閫夐」 - _pageSearch(); - } else { - setTimeout(sendZhiwustatus, 100); - } - } + - sendZhiwustatus(); + -- Gitblit v1.9.1