<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SoftRegister.aspx.cs" Inherits="Medical.MSystem.SysRegister.SoftRegister" %>

<!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>
    <title></title>
    <link href="../../css/style.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div class="pt-panel">
                <strong>软件注册</strong>
                <input type="hidden" id="pID" runat="server" />
                <table class="pt-edit">
                    <tr>
                        <th>注册编码</th>
                        <td><input type="text" id="RegisterCode" runat="server" /></td>
                        <th>使用单位</th>
                        <td><input type="text" id="UseUnit" runat="server" class='pt-readonly' /></td>                        
                    </tr>
                    <tr>
                        <th>联系电话</th>
                        <td><input type="text" id="LinkTel" runat="server" class='pt-readonly'/></td>
                        <th>联系人</th>
                        <td><input type="text" id="LinkMan" runat="server" class='pt-readonly' /></td>                        
                    </tr>
                    <tr>
                        <th>用户数</th>
                        <td><input type="text" id="UserCount" runat="server" class='pt-readonly'/></td>
                        <th>联系地址</th>
                        <td><input type="text" id="LinkAddress" runat="server" class='pt-readonly' style="width:300px;"/></td>                        
                    </tr>
                    <tr>
                        <th>备注</th>
                        <td><input type="text" id="Remark" runat="server" class='pt-readonly' style="width:300px;" /></td>
                        <td colspan='2'></td>
                    </tr>
                </table>
                <div class="pt-padding" style="text-align:center" >
                    <asp:Button ID="btnSave" CssClass="pt-button active" runat="server" Text="注册确认" OnClientClick="return SoftRegister.validate()" 
                        onclick="btnSave_Click"/>
                    <asp:Button ID="btnUpdateUserCount" CssClass="pt-button active" Visible="false" 
                        runat="server" Text="更新用户数" onclick="btnUpdateUserCount_Click" />
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
    <script language="javascript" type="text/javascript">
        var SoftRegister = (function() {
            function init() {
                readonly();
                $("#btnUpdateUserCount").click(function() {
                    top.Loading(true);
                    $(this).hide();
                });
            }
            function readonly() {
                $(".pt-readonly").focus(function() {
                    this.blur();
                });
            }
            function validate() {
                if (!$("#RegisterCode").val()) {
                    top.showTipsMsg('注册编码不能为空!', 1, 3000);
                    return false;
                }
                $("#btnSave").hide();
                top.Loading(true);
                return true;
            }
            init();
            return { validate: validate }
        })();
    </script>
</body>
</html>

