<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TreatForm.aspx.cs" Inherits="Medical.MBase.SysTreat.TreatForm" %>

<!DOCTYPE html>
<html>
<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" style="padding:20px" runat="server">
    <input type="hidden" id="hParentID" runat="server" />
    <table class="pt-edit">
        <tr>
            <th>所属项目</th>
            <td><input type="text" id="tParentID" class="pt-readonly" runat="server" /></td>
            <th>名称</th>
            <td><input type="text" id="tName" runat="server" /></td>
        </tr>
        <tr>
            <th>计价单位</th>
            <td><input type="text" id="tUnit" runat="server" /></td>
            <th>单价</th>
            <td><input type="text" id="tPrice" value="0.00" runat="server" /></td>
        </tr>
    </table>
    <div class="pt-padding" style="text-align:center">
        <asp:Button ID="btnSave" class="pt-button active" runat="server" Text="保存" OnClientClick="return TreatForm.validate()" onclick="btnSave_Click" />
        <input type="button" class="pt-button active" onclick="top.OpenClose('Treat_Form')" value="关闭" />
    </div>
    </form>
    <script>
        var TreatForm = (function() {
            $(".pt-readonly").focus(function() {
                this.blur();
            });

            function validate() {
                if (!$("#tPrice").val()) {
                    top.showTipsMsg('单价不能为空!', 1, 3000);
                    return false;
                }
                return true;
            }
            return { validate: validate };
        })();
    </script>
</body>
</html>
