<%@ Page language="c#" Codebehind="UserList.aspx.cs" AutoEventWireup="false" Inherits="LVS.Web.UserList" %>
<%@ Register TagPrefix="uc1" TagName="PageCom" Src="~/Common/PageCom.ascx" %>
<%@ Register TagPrefix="uc1" TagName="PageTop" Src="~/Common/PageTop.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
<HEAD>
<uc1:PageCom id="PageCom1" title="员工信息" runat="server"></uc1:PageCom>
<script language="javascript">
var Edit_PageName = "UserEdit";
var TableName = "LVS_CORE_Users"; //要删除数据时的表名
//加载grid数据
function OnListLoad() {
var grid = $("#maingrid");
manager = grid.ligerGrid({
columns: [
{ display: '状态', name: 'UserStatus', width: fixWidth(grid, 0.1), align: 'left' },
{ display: '员工编号', name: 'Code', width: fixWidth(grid, 0.1), align: 'left',
render: function (item) {
var disName = item.Code;
return "<a href='javascript:void(0)' title=\"" + disName + "\" onclick=\"window.event.cancelBubble=true;openWin('" + _Edit_PageName_ + ".aspx','','','修改','[{PKID:" + item.PKID + "}]','SearchListLoad()');return false;\">" + disName + "</a>";
}
},
{ display: '中文名', name: 'CName', width: fixWidth(grid, 0.1), align: 'left',
render: function (item) {
var disName = item.CName;
return "<a href='javascript:void(0)' title=\"" + disName + "\" onclick=\"window.event.cancelBubble=true;openWin('" + _Edit_PageName_ + ".aspx','','','修改','[{PKID:" + item.PKID + "}]','SearchListLoad()');return false;\">" + disName + "</a>";
}
},
{ display: '英文名', name: 'EName', width: fixWidth(grid, 0.1), align: 'left' },
{ display: '登录名', name: 'LoginName', width: fixWidth(grid, 0.1), align: 'left' },
{ display: '所属公司', name: 'CompanysID_Text', width: fixWidth(grid, 0.2), align: 'left' },
{ display: '所属部门', name: 'DeptsID_Text', width: fixWidth(grid, 0.1), align: 'left' },
{ display: '职务', name: 'PositionName', width: fixWidth(grid, 0.1), align: 'left' },
{ display: '性别', name: 'Sex', width: fixWidth(grid, 0.1), align: 'left' },
{ display: '最后登录', name: 'LastLogin', width: fixWidth(grid, 0.2), align: 'left',
render: function (item) {
var disName = item.LastLogin;
if (disName != null && disName != "") {
disName = StringToDate(disName).format(1);
}
return disName;
}
},
{ display: '是否域用户', name: 'IsAd', width: fixWidth(grid, 0.1), align: 'left' },
{ display: '邮箱', name: 'EMail', width: fixWidth(grid, 0.1), align: 'left' },
{ display: '固话', name: 'Tel', width: fixWidth(grid, 0.1), align: 'left' },
{ display: '手机', name: 'Mobile', width: fixWidth(grid, 0.1), align: 'left' },
{ display: '入职日期', name: 'LastLogin', width: fixWidth(grid, 0.2), align: 'left',
render: function (item) {
var disName = item.TryLoginTime;
if (disName != null && disName != "") {
disName = StringToDate(disName).format(3);
}
return disName;
}
}
],
url: 'UserList.aspx?Type=BindGrid',
pageSize: [15],
frozen: false,
checkbox: true,
allowHideColumn: true,
rownumbers: false,
width: '100%',
height: '100%',
fixedCellHeight: false,
usePager: true
});
gridManager = grid.ligerGetGridManager();
$("#pageloading").hide();
}
function getQueryParams() {
var sCode = $("#quyCode").val().trim();
var sJc = $("#quyShortName").val().trim();
var sLonin = $("#quyLogin").val().trim();
var param = "";
if (sCode.length > 0) {
param = " &QUERY_S_Code=" + sCode;
}
if (sJc.length > 0) {
param += " &QUERY_S_CName=" + sJc;
}
if (sLonin.length > 0) {
param += " &QUERY_S_LoginName=" + sLonin;
}
return param;
}
</script>
</HEAD>
<body>
<form id="form1" method="post" runat="server">
<div class="pageHeader">
<div class="searchBar">
<div class="searchContent">
<table width="100%">
<tr>
<td width="100%" align=left>
员工编号:<input type="text" style="width:100px" id="quyCode" name="quyCode" />
中文名:<input type="text" style="width:100px" id="quyShortName" name="quyShortName" />
登录名:<input type="text" style="width:100px" id="quyLogin" name="quyLogin" />
</td>
</tr>
</table>
</div>
<div class="subBar">
<table width="100%">
<tr>
<td width="*">
</td>
<td width="120px">
<ul>
<li><div class="buttonActive"><div class="buttonContent"><input type="button" style="font-size:10pt;" value="检索" onclick="SearchListLoad();"></div></div></li>
<li><div class="buttonActive"><div class="buttonContent"><input type="button" style="font-size:10pt;" value="高级检索" onclick="AdvancedQuery('LVS_CORE_Users');"></div></div></li>
</ul>
</td>
</tr>
</table>
</div>
</div>
</div>
<div class="pageContent">
<div class="panelBar">
<uc1:PageTop ID="PageTop1" runat="server" rel="UserEdit" />
</div>
<!--内容-->
<div class="l-loading" style="display: block" id="pageloading">
</div>
<div id="maingrid" style="margin: 0;background-color:#FFFFFF; padding: 0;">
</div>
</div>
</form>
</body>
</HTML>