| | |
| | | @{ |
| | | @using DTO; |
| | | @{ |
| | | ViewBag.Title = "User"; |
| | | Layout = "~/Views/Shared/_Layout_Search.cshtml"; |
| | | |
| | | List<PageEntity> ActionInfo2 = ViewData["ActionInfo2"] as List<PageEntity>; |
| | | } |
| | | @section headerStyle{ |
| | | <script type="text/javascript"> |
| | |
| | | //} |
| | | }, |
| | | { |
| | | label: '合同到期日', name: 'HetongDateEndName', labtype: 'txt', hidden: false, width: 100 |
| | | //, |
| | | //formatter: function (cellvalue, options, rowObject) { |
| | | // return "<span style='color:" + rowObject.Coler + ";'>" + cellvalue + "</span>"; |
| | | //} |
| | | }, |
| | | { |
| | | label: '档案查询', name: 'Education', labtype: 'txt', hidden: false, width: 100, |
| | | formatter: function (cellvalue, options, rowObject) { |
| | | return "<a onclick=\"OpenWindow('奖惩','98%','100%', '/AdmBreakPrecedent/IndexRenshi?UserId=" + rowObject.Id + "')\" >奖惩</a> " |
| | | + "<a onclick=\"OpenWindow('物品','98%','100%', '/AdmBreakPrecedent/IndexGoods?UserId=" + rowObject.Id + "')\" >物品</a> " |
| | | + "<a onclick=\"OpenWindow('薪资','98%','100%', '/SalaryCheck/SearchIndexRenshi?UserId=" + rowObject.Id + "')\" >薪资</a> "; |
| | | return "<a class=\"danganchaxun\" style=\"display: none;\" onclick=\"OpenWindow('奖惩','98%','100%', '/AdmBreakPrecedent/IndexRenshi?UserId=" + rowObject.Id + "')\" >奖惩</a> " |
| | | + "<a class=\"danganchaxun\" style=\"display: none;\" onclick=\"OpenWindow('物品','98%','100%', '/AdmBreakPrecedent/IndexGoods?UserId=" + rowObject.Id + "')\" >物品</a> " |
| | | + "<a class=\"danganchaxun\" style=\"display: none;\" onclick=\"OpenWindow('薪资','98%','100%', '/SalaryCheck/SearchIndexRenshi?UserId=" + rowObject.Id + "')\" >薪资</a> "; |
| | | } |
| | | }, |
| | | { |
| | | label: '打印简历', name: 'Imei', labtype: 'txt', hidden: false, width: 100, |
| | | formatter: function (cellvalue, options, rowObject) { |
| | | return "<a onclick=\"OpenWindow('打印简历','98%','100%', '/User/Print?id=" + rowObject.Id + "')\" > 打印 </a>"; |
| | | return "<a class=\"Dayin\" style=\"display: none;\" onclick=\"OpenWindow('打印简历','98%','100%', '/User/Print?id=" + rowObject.Id + "')\" > 打印 </a>"; |
| | | } |
| | | }, |
| | | { |
| | | label: '考勤记录', name: 'Daka', labtype: 'txt', hidden: false, width: 100, |
| | | formatter: function (cellvalue, options, rowObject) { |
| | | return "<a class=\"Daka\" style=\"display: none;\" onclick=\"OpenWindow('" + rowObject.UserName + "','98%','100%', '/Signin/SigninAll?id=" + rowObject.Id + "')\" > 考勤记录 </a>"; |
| | | } |
| | | }, |
| | | |
| | |
| | | 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) }, |
| | |
| | | { label: '性别', name: 'Sex', labtype: 'combox', hidden: false, data: JSON.parse(sex) }, |
| | | { label: '用户手机', name: 'Phone', labtype: 'txt', hidden: false }, |
| | | { label: '在职状态', name: 'Zhiwustatus', labtype: 'combox', hidden: false, data: JSON.parse(zhiwustatusDropDown) }, |
| | | |
| | | |
| | | |
| | | |
| | | |
| | |
| | | var _pageAdd = function () { |
| | | 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) { |
| | |
| | | } |
| | | |
| | | |
| | | function sendZhiwustatus() { |
| | | |
| | | var msg = $("#PBSZhiwustatus"); |
| | | var ActionInfo22 = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ActionInfo2))'; |
| | | |
| | | |
| | | if (msg.length > 0) { |
| | | $("#PBSZhiwustatus").val("A"); |
| | | $("#PBSZhiwustatus").trigger('chosen:updated');//更新选项 |
| | | _pageSearch(); |
| | | } else { |
| | | setTimeout(sendZhiwustatus, 100); |
| | | var _afterLoadDataload = function (xhr) { |
| | | var data = JSON.parse(ActionInfo22); |
| | | for (var o in data) { |
| | | //alert(o); |
| | | //alert(data[o]); |
| | | /* alert("PageShortcut:" + data[o].PageShortcut + " PageName:" + data[o].PageName);*/ |
| | | $("." + data[o].PageShortcut).show(); |
| | | |
| | | } |
| | | } |
| | | |
| | | |
| | | sendZhiwustatus(); |
| | | }; |
| | | |
| | | |
| | | |
| | | |
| | | </script> |
| | | } |
| | | |