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

<!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/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/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 type="text/javascript">
        function itemclick(item) {
            alert(item.text);
        }
        var gridlist;
        $(function () {
            LoadList();
        });
        function LoadList() {

            gridlist = $("#divDataList").ligerGrid({
                height: '100%',
                columns: [
                { display: '交班时间', name: '_calltype', align: 'left', minWidth: 60 },
                { display: '交班人', name: '_callnumber', minWidth: 60 },
                { display: '接班人', name: '_callstate', minWidth: 60 },
                { display: '系统运行', name: '_callstate', minWidth: 60 },
                { display: '卫生状况', name: '_callstate', minWidth: 60 },
                { display: '交班内容', name: '_callstate', minWidth: 60 },
                { display: '是否查看', name: '_filepath' }
                ], url: 'ajax/telrecords.ashx?action=getlist&telnum=' + document.getElementById("txtKeywords").value, pageSize: 10, rownumbers: true
            });
            gridlist.changePage('first');
            $("#pageloading").hide();
        }

        function formatDateTime(value, rowData, rowIndex) {
            if (value != null) {
                var date = new Date(parseInt(value.replace("/Date(", "").replace(")/", ""), 10));
                var result = date.getFullYear() + "-" + (date.getMonth() + 1 < 10 ? "0"
                    + (date.getMonth() + 1) : date.getMonth() + 1) + "-"
                    + (date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) + " "
                    + (date.getHours() < 10 ? "0" + date.getHours() : date.getHours()) + ":"
                    + (date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes()) + ":"
                    + (date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds());
                return result;
            }
            return value;
        }

        function deleteRow() {
            g.deleteSelectedRow();
        }

    </script>
</head>
<body style="margin: 0px; padding: 0px; overflow: hidden;">
    <form id="form1" runat="server">
    <div class="l-loading" style="display: block" id="pageloading">
    </div>
    <div class="tools_box">
        <div class="tools_bar">
        <a class="tools_btn" href="#" onclick="Add('add');">
                <span><b class="add">交班</b></span>
            </a>
            <a class="tools_btn" href="#" onclick="Edit('edit');">
                <span><b class="modify">接班</b></span>
            </a>
        <a class="tools_btn" href="#" onclick="Delete();"><span>
                    <b class="delete">批量删除</b></span> </a>
            <div class="search_box">
                交班时间：<asp:TextBox ID="txtKeywords" runat="server" CssClass="txtInput"></asp:TextBox>&nbsp;-&nbsp;<asp:TextBox ID="TextBox1" runat="server" CssClass="txtInput"></asp:TextBox>&nbsp;&nbsp;
                <input id="btnSearch" type="button" value="搜 索" class="btnSearch" onclick="LoadList();" />
            </div>
        </div>
    </div>
    <div id="divDataList">
    </div>
    </form>
</body>
</html>
