<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Import Namespace="WebSite.Controllers" %>

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
    <meta http-equiv="cache-control" content="max-age=0" />
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
    <meta http-equiv="pragma" content="no-cache" />
    <title>房间号：<%=ViewData["RoomNumber"] %></title>
    <link type="text/css" rel="stylesheet" href="/Styles/WeiXin/common.css" />
    <link type="text/css" rel="stylesheet" href="/Styles/WeiXin/light.css" />
    <link type="text/css" rel="stylesheet" href="/Styles/WeiXin/tip.css" />
    <script type="text/javascript" src="/Scripts/jquery.min.js"></script>
    <script type="text/javascript" src="/Scripts/WeiXin/tip.js"></script>

    <script type="text/javascript">
    
        $(function () {
            $('#btnUnlock').click(function () {
                $.ajax({
                    url: '/WeiXin/UnlockControl/',
                    data: { roomNumber: document.getElementById("hidRoomNumber").value },
                    type: "POST",
                    dataType: "JSON",
                    success: function (r) {
                        showTip(r.Message);
                    }
                });                
            });
        });

    </script>
</head>
<body>
    <input id="hidRoomNumber" type="hidden" value='<%=ViewData["RoomNumber"] %>' />
    <div id="cmain">
        <img id="btnUnlock" alt="微信开锁" src="../../Images/WeiXin/unlock.png" style="width: 100px;height: 100px;margin-left:35%;margin-top:50%; cursor:pointer;" />
    </div>
    <% Html.RenderPartial("Footer"); %>
</body>
</html>
