<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BangDao_ParkConfigDlg.aspx.cs" Inherits="CallCenter.CarparkNew.Dialog.BangDao.BangDao_ParkConfigDlg" %>

<!DOCTYPE html>

<html>
<head>
    <title></title>
    <script type="text/javascript" src="/HM/M_Main/jscript/DateControl.js"></script>
    <script type="text/javascript" src="/HM/M_Main/jscript/JSClient.js"></script>
    <script type="text/javascript" src="/HM/M_Main/jscript/ajax.js"></script>
    <script type="text/javascript" src="/HM/M_Main/jscript/Keydown.js" event="onkeydown" for="document"></script>
    <script type="text/javascript" src="/HM/M_Main/Jscript-Ui/jquery-easyui-1.4.4/jquery.min.js"></script>
    <script src="/HM/M_Main/jscript/JSClient.js" type="text/javascript"></script>
    <script src="/HM/M_Main/jscript/jquery.tool.new.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="/HM/M_Main/Jscript-Ui/jquery-easyui-1.4.4/themes/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="/HM/M_Main/Jscript-Ui/jquery-easyui-1.4.4/themes/icon.css" />
    <script type="text/javascript" src="/HM/M_Main/Jscript-Ui/jquery-easyui-1.4.4/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="/HM/M_Main/Jscript-Ui/jquery-easyui-1.4.4/locale/easyui-lang-zh_CN.js"></script>
    <link href="/HM/M_Main/css/framesearch.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript" src="/HM/M_Main/Jscript-Ui/JQForm/JQForm.js"></script>
    <script src="/HM/M_Main/jscript/Dialog.js" type="text/javascript"></script>
    <script src="/HM/M_Main/jscript/Dialog.js" type="text/javascript"></script>
    <link href="/HM/M_Main/css/button.css" rel="stylesheet" />
    <script src="/HM/M_Main/jscript/DateFormat.js" type="text/javascript"></script>
    <script src="/HM/M_Main/jscript/format.js" type="text/javascript"></script>
    <script type="text/javascript" src="/HM/M_Main/Jscript-Ui/JQForm/JQForm.js"></script>
    <script type="text/javascript" src="/HM/M_Main/jscript/DatePicker/WdatePicker.js"></script>
    <style type="text/css">
        body {
            margin: 0px;
            margin-top: 0px;
            overflow: hidden;
            background-color: #ffffff;
        }

        .Container {
            width: 100%;
            font-size: 12px;
            font-family: 微软雅黑;
        }

        .ContainerLeft {
            float: left;
            overflow-y: auto;
            border-right: 1px solid #cccccc;
        }

        .ContainerRight {
            float: left;
            width: 100%;
            overflow: auto;
        }
    </style>
</head>
<body>
    <form id="FrmForm">
        <div id="ContainerRight" class="ContainerRight">
            <div>
                <div class="datagrid-toolbar" id="divtt">
                    <table cellspacing="0" cellpadding="0">
                        <tr>
                            <td>
                                <div id="divhj">
                                    <table cellspacing="0" cellpadding="0">
                                        <tr style="padding-left: 40px;">
                                            <td class="TdTitle">车场名称</td>
                                            <td class="TdContent">
                                                <input type="text" class="easyui-validatebox" id="PackName" name="PackName" runat="server" />
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                            <td>
                                <a href="javascript:void(0)" onclick="LoadList();" class="l-btn l-btn-small l-btn-plain" group="" id=""><span class="l-btn-left l-btn-icon-left"><span class="l-btn-text">查询</span><span class="l-btn-icon icon-search">&nbsp;</span></span></a>
                            </td>
                            <td>
                                <div class="datagrid-btn-separator"></div>
                            </td>

                        </tr>
                    </table>
                </div>
                <div style="width: 100%;" id="TableContainer"></div>
            </div>
        </div>
        <input type="hidden" id="CommID" name="CommID" runat="server" />
        <script src="/HM/M_Main/jscript/CloseAjaxCache.js" type="text/javascript"></script>
        <script type="text/javascript">
            $(function () {
                LoadList();
            });

            function InitFunction() {
                var h = $(window).height();
                var w = $(window).width() * 0.25 - 1;
                $("#TableContainer").css("height", h + "px");
            }
            InitFunction();


            var column = [[
                { field: 'areaCode', title: '区域编号', width: 200, align: 'left', sortable: true },
                { field: 'areaName', title: '区域名称', width: 200, align: 'left', sortable: true },
                { field: 'parkCode', title: '车场编码', width: 200, align: 'left', sortable: true },
                { field: 'ParkName', title: '车场名称', width: 200, align: 'left', sortable: true },
                { field: 'plateNum', title: '区域总车位数', width: 200, align: 'left', sortable: true },
                { field: 'tempNum', title: '临停车位数', width: 200, align: 'left', sortable: true },
                { field: 'sparePlateNum', title: '区域剩余车位数', width: 200, align: 'left', sortable: true },
                { field: 'LastTime', title: '上次更新时间', width: 200, align: 'left', sortable: true }
            ]];

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

            function LoadList() {
                $("#TableContainer").datagrid({
                    url: '/HM/M_Main/HC/DataGetControl.aspx?Method=DataGet&Class=BangDao_Park&Command=GetBangDao_ParkConfig&' + $('#FrmForm').serialize(),
                    method: "get",
                    loadMsg: '数据加载中,请稍候...',
                    nowrap: false,
                    pageSize: top.ListPageSize,
                    pageList: top.ListPageList,
                    columns: column,
                    fitColumns: true,
                    singleSelect: true,
                    border: false,
                    pagination: true,
                    rownumbers: true,
                    width: "100%",
                    //toolbar: toolbar,
                    sortOrder: "asc",
                    onDblClickRow: function (rowIndex, rowData) {
                        console.log(rowData)
                        HDialog.ReturnIsJson = true;
                        HDialog.Close(rowData);
                    },
                    onLoadSuccess: function (data) {

                    }
                });
            }

        </script>
    </form>
</body>
</html>
