<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="customerpersonlist.aspx.cs" Inherits="HySoft.BaseCallCenter.Web.customermanage.customerpersonlist" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>客户档案管理</title>
 <link href="../scripts/ui/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
    <script src="../scripts/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../scripts/ui/json2.js" type="text/javascript"></script>
    <script src="../scripts/ui/js/core/base.js" type="text/javascript"></script>
    <script src="../scripts/ui/js/ligerui.min.js" type="text/javascript"></script>
    <link href="../scripts/ui/skins/Tab/css/tab.css" rel="stylesheet" type="text/css" />
    <link href="../scripts/ui/skins/Tab/css/grid.css" rel="stylesheet" type="text/css" />
    <script src="../scripts/ui/js/plugins/ligerGrid.js" type="text/javascript"></script>
    <script src="../scripts/ui/js/plugins/ligerLayout.js" type="text/javascript"></script>
    <script src="../scripts/ui/js/plugins/ligerTree.js" type="text/javascript"></script>
    <script src="../scripts/ui/js/plugins/ligerMenu.js" type="text/javascript"></script>
    <script src="../scripts/CustomersData.js" type="text/javascript"></script>
    <link href="../scripts/ui/skins/ligerui-icons.css" rel="stylesheet" type="text/css" />
    <link href="../images/style.css" rel="stylesheet" type="text/css" />
    <script src="../scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript">
        function CloseThis() {
            var dialog = frameElement.dialog;
            parent.LoadList();
            dialog.close();
        }
        $(function () {
            LoadList();
        });
        var gridlist;
        function LoadList() {
            try {
                gridlist = $("#divDataList").ligerGrid({
                    checkbox: false,
                    height: '170',
                    columns: [
                { display: 'Id', name: '_f_id', width: 0, hide: 'Id' },
                { display: '操作人编号', name: '_f_loginid', align: 'left', width: 80 },
                { display: '登录时间', name: '_f_logindate', width: 110, type: 'date', format: 'yyyy-MM-dd hh:mm:ss' },
                { display: '退出时间', name: '_f_loginoutdate', width: 110, type: 'date', format: 'yyyy-MM-dd hh:mm:ss' },
                { display: '操作人名称', name: '_f_loginname', width: 100 },
                { display: '操作内容', name: '_f_result' }
                ],
                    toolbar: {
                        items: [
                    { text: '增加', click: itemclick, icon: 'add' },
                    { line: true },
                    { text: '修改', click: itemclick, icon: 'modify' },
                    { line: true },
                    { text: '删除', click: itemclick, icon: 'delete' }
                    ]
                    },
                    url: '../sysmanage/ajax/loginlogs.ashx?action=getlist', pageSize: 3, rownumbers: true
                });
            }
            catch (e) {
                alert(e.Message);
            }
            gridlist.changePage('first');
        }
        function itemclick(item) {
            alert(item.text);
        }
        function getdetail() {
            var vheight = $("#form1").height() - 90;
            var vwidth = $("#form1").width() * 0.9;
            if (vwidth > 800) {
                vwidth = 600;
            }
            $.ligerDialog.open({ url: 'workorderdetail.aspx', title: '同步客户档案信息', height: vheight, width: vwidth, isResize: true
            });
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="divDataList">
            </div>
            <a onclick="getdetail()"></a>
    </form>
</body>
</html>
