<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BangDaoTemporaryStopInfo.aspx.cs" Inherits="M_Main.CarparkNew.BangDaoTemporaryStopInfo" %>


<!DOCTYPE html>


<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>CarSearch</title>
    <script type="text/javascript" src="../Jscript-Ui/jquery-easyui-1.4.4/jquery.min.js"></script>
    <script src="../jscript/jquery.tool.js" type="text/javascript"></script>
    <script src="../jscript/Authority.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="../Jscript-Ui/jquery-easyui-1.4.4/themes/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="../Jscript-Ui/jquery-easyui-1.4.4/themes/icon.css" />
    <script type="text/javascript" src="../Jscript-Ui/jquery-easyui-1.4.4/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="../Jscript-Ui/jquery-easyui-1.4.4/locale/easyui-lang-zh_CN.js"></script>
    <script src="../jscript/PersonDictionaryCanNull.js" type="text/javascript"></script>
    <script type="text/javascript" src="../Jscript-Ui/JQForm/JQForm.js"></script>
    <script src="../jscript/Dialog.js" type="text/javascript"></script>
    <script src="../jscript/CloseAjaxCache.js" type="text/javascript"></script>
    <link href="../css/framesearch.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="frmForm" runat="server">
        <div style="width: 100%; background-color: #cccccc;" id="TableContainer">
        </div>
        <input id="CustID" type="hidden" name="CustID" runat="server" />
        <input id="RoomID" type="hidden" name="RoomID" runat="server" />
        <div id="SearchDlg" class="easyui-dialog" title="筛选条件" data-options="iconCls:'icon-search',closed: true,modal:true"
            style="width: 600px; height: 200px; padding: 10px;">
            <table style="width: 100%; font-size: 12px; font-family: 微软雅黑;">
                <tr>
                    <td>车场ID</td>
                    <td>
                        <input id="ParkId" style="width: 136px" size="17" name="ParkId" maxlength="50" runat="server" />
                    </td>
                    <td>唯一标识</td>
                    <td>
                        <input id="ReqId" style="width: 136px" size="17" name="ReqId"  maxlength="50" runat="server"/>
                    </td>
                </tr>
                <tr>
                    <td>车牌号</td>
                    <td>
                        <input id="PlateNo" style="width: 136px" size="17" name="PlateNo" maxlength="50"  runat="server"/>
                    </td>
                    <td>主账单ID</td>
                    <td>
                        <input type="text" style="width: 136px" size="17" id="BillId" name="BillId"  runat="server" />
                    </td>
                </tr>
                <tr><td>&nbsp;</td></tr>
                <tr>
                    <td colspan="4" align="center">
                        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'" onclick="LoadList();">确定筛选</a>
                        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-filter'" onclick="btnDel();">清空筛选</a>
                    </td>

                </tr>

            </table>
        </div>
    </form>
</body>
</html>
<script language="javascript" type="text/javascript">

    var w = $(window).width();
    var h = $(window).height();

    $(function () {
        InitTableHeight();
        LoadList();
    });

    function InitTableHeight() {
        $("#TableContainer").css("height", h + "px");
    }

    var column = [[
        { field: 'appId', title: '用户id', width: '10%', align: 'left', sortable: true },
        {
            field: 'KTkey', title: '验证码', width: '5%', align: 'left', sortable: true
        },
        { field: 'parkId', title: '车场Id', width: '10%', align: 'left', sortable: true },
        { field: 'ts', title: '时间戳', width: '10%', align: 'left', sortable: true },
        { field: 'reqId', title: '唯一标识', width: '10%', align: 'left', sortable: true },
        { field: 'plateNo', title: '车牌号', width: '8%', align: 'left', sortable: true },
        { field: 'cardNo', title: '入场取票号/无牌车卡号', width: '10%', align: 'left', sortable: true },
        { field: 'billId', title: '主账单id', width: '10%', align: 'left', sortable: true },
        { field: 'entryTime', title: '入场时间', width: '10%', align: 'left', sortable: true },
        { field: 'payTime', title: '支付时间', width: '10%', align: 'left', sortable: true },
        { field: 'paySource', title: '支付来源', width: '5%', align: 'left', sortable: true },
        { field: 'payType', title: '收费终端', width: '5%', align: 'left', sortable: true },
        { field: 'payMethod', title: '付款方式', width: '5%', align: 'left', sortable: true },
        { field: 'totalMoney', title: '应收总金额', width: '5%', align: 'left', sortable: true },
        { field: 'paidMoney', title: '实收总金额', width: '5%', align: 'left', sortable: true },
        { field: 'freeTime', title: '抵扣时长', width: '5%', align: 'left', sortable: true },
        { field: 'freeMoney', title: '抵扣金额', width: '5%', align: 'left', sortable: true }
    ]];

    var toolbar = [
       
        {
            text: '筛选',
            iconCls: 'icon-search',
            handler: function () {
                $('#SearchDlg').parent().appendTo($("form:first"))
                $('#SearchDlg').dialog('open');

            }
        }
        //, '-'
        //, {
        //    text: 'Excel输出',
        //    iconCls: 'icon-page_white_excel',
        //    handler: function () {
        //        ToExcel();
        //    }
        //}
    ];

    //function ToExcel() {
    //    window.location.href = "CarSearchCre.aspx";
    //}


    function LoadList() {
        $("#TableContainer").datagrid({
            url: '/HM/M_Main/HC/DataPostControl.aspx',
            method: "post",
            title: '',
            nowrap: false,
            pageSize: top.ListPageSize,
            pageList: top.ListPageList,
            columns: column,
            remoteSort: false,
            fitColumns: true,
            rownumbers: true,
            singleSelect: true,
            pagination: true,
            width: "100%",
            border: false,
            toolbar: toolbar,
            sortOrder: "asc",
            onBeforeLoad: function (param) {
                param = $.JQForm.GetParam("KeTuo_TemporaryStop", "search", "TableContainer", param);
            }
        });
        $("#SearchDlg").dialog("close");
    }
    //function ViewDetail(title, OpType, ID) {
    //    HDialog.Open(800, 300, '../CarparkNew/CarManage.aspx?CarID=' + ID + '&OpType=' + OpType, title, false, function callback(_Data) {
    //        if (_Data == "true") {
    //            LoadList();
    //        }
    //    });
    //}


    function btnDel() {
        $('#ParkId').val('');
        $('#ReqId').val('');
        $('#PlateNo').val('');
        $('#BillId').val('');
    }

</script>
