register.aspx

来自「实现电子病历功能 有医生护士等角色 分别可以增加病历修改病历删除病历等等功能」· ASPX 代码 · 共 230 行

ASPX
230
字号
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="CommonOperation_Register_Register" Title="EMR-电子病历系统->用户注册" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script language="javascript" type="text/javascript">
// <!CDATA[

function Button1_onclick() {
var userName=document.getElementById('ctl00$ContentPlaceHolder1$TextBoxUserName').value;
window.alert(userName);
}

// ]]>
</script>


    <div style="z-index: 101; left: 7px; width: 500px; position: relative; top: 8px;
        text-align: center">
        
        <table style="text-align: left" class="tableb">
            <tr>
                <td colspan="2" style="height: 30px; text-align: center" class="title">
                    <span>填写我的个人信息</span></td>
            </tr>
            <tr style="font-size: 12pt">
                <td style="width: 141px; text-align:left" class="text">
                    用户名:</td>
                <td style="width: 323px;  text-align: left">
                    <asp:TextBox ID="TextBoxUserName" runat="server" Width="175px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBoxUserName"
                        ErrorMessage="*"></asp:RequiredFieldValidator>
                    <span class="link"><a href="#"  onclick="javascript:var userName=document.getElementById('ctl00$ContentPlaceHolder1$TextBoxUserName').value;newwin2=window.open('<%=Request.ApplicationPath %>/Src/CommonOperation/Check/CheckUserName.aspx?UserName='+userName,'newwin2','height=169,width=232,status=no,toolbar=no,menubar=no,scrollbars=no,resizable=yes');newwin2.moveTo(300,200);newwin2.focus();return false;">检测用户名</a></span></td>
                                                                    
            </tr>
            <tr style="font-size: 12pt">
                <td style="width: 141px; text-align:left" class="text">
                    密码:</td>
                <td style="width: 323px; text-align: left">
                    <asp:TextBox ID="TextBoxPassWord1" runat="server" Width="175px" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBoxPassWord1"
                        ErrorMessage="*"></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToCompare="TextBoxPassWord2"
                        ControlToValidate="TextBoxPassWord1" ErrorMessage="**"></asp:CompareValidator>
                    </td>
            </tr>
            <tr style="font-size: 12pt">
                <td style="width: 141px; text-align:left" class="text">
                    重复密码:</td>
                <td style="width: 323px; text-align: left">
                    <asp:TextBox ID="TextBoxPassWord2" runat="server" Width="175px" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="TextBoxPassWord2"
                        ErrorMessage="*"></asp:RequiredFieldValidator>
                    </td>
            </tr>
            <tr style="font-size: 12pt">
                <td style="width: 141px;text-align:left" class="text">
                    工作号:</td>
                <td style="width: 323px; text-align: left">
                    <asp:TextBox ID="TextBoxUserID" runat="server" Width="175px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBoxUserID"
                        ErrorMessage="*"></asp:RequiredFieldValidator></td>
            </tr>
            <tr style="font-size: 12pt">
                <td style="width: 141px;text-align:left" class="text">
                    姓名:</td>
                <td style="width: 323px;text-align: left">
                    <asp:TextBox ID="TextBoxRealName" runat="server" Width="174px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBoxRealName"
                        ErrorMessage="*"></asp:RequiredFieldValidator></td>
            </tr>
     
        
            <tr style="font-size: 12pt">
                <td style="width: 141px; text-align:left; height: 19px;" class="text">
                    性别/职务:</td>
                <td style="width: 323px; text-align: left; height: 19px;">
                    <asp:DropDownList ID="DropDownListSex" runat="server" Width="80px">
                        <asp:ListItem Value="0">女</asp:ListItem>
                        <asp:ListItem Value="1">男</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp; &nbsp;&nbsp;
                    <asp:DropDownList ID="DropDownListRole" runat="server">
                        <asp:ListItem Value="0">医生</asp:ListItem>
                        <asp:ListItem Value="1">护士</asp:ListItem>
                        <asp:ListItem Value="2">医院领导</asp:ListItem>
                        <asp:ListItem Value="3">管理员</asp:ListItem>
                    </asp:DropDownList></td>
               
           
            </tr>
      
            <tr style="font-size: 12pt">
                <td style="width: 141px; height: 23px;text-align:left" class="text">
                    生日:</td>
                <td style="width: 323px; height: 23px;text-align: left">
                    <asp:DropDownList ID="DropDownListYear" runat="server" Width="56px">
                    </asp:DropDownList>年
                    <asp:DropDownList ID="DropDownListMonth" runat="server">
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                        <asp:ListItem>6</asp:ListItem>
                        <asp:ListItem>7</asp:ListItem>
                        <asp:ListItem>8</asp:ListItem>
                        <asp:ListItem>9</asp:ListItem>
                        <asp:ListItem>10</asp:ListItem>
                        <asp:ListItem>11</asp:ListItem>
                        <asp:ListItem>12</asp:ListItem>
                    </asp:DropDownList>
                    月<asp:DropDownList ID="DropDownListDay" runat="server">
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                        <asp:ListItem>6</asp:ListItem>
                        <asp:ListItem>7</asp:ListItem>
                        <asp:ListItem>8</asp:ListItem>
                        <asp:ListItem>9</asp:ListItem>
                        <asp:ListItem>10</asp:ListItem>
                        <asp:ListItem>11</asp:ListItem>
                        <asp:ListItem>12</asp:ListItem>
                        <asp:ListItem>13</asp:ListItem>
                        <asp:ListItem>14</asp:ListItem>
                        <asp:ListItem>15</asp:ListItem>
                        <asp:ListItem>16</asp:ListItem>
                        <asp:ListItem>17</asp:ListItem>
                        <asp:ListItem>18</asp:ListItem>
                        <asp:ListItem>19</asp:ListItem>
                        <asp:ListItem>20</asp:ListItem>
                        <asp:ListItem>21</asp:ListItem>
                        <asp:ListItem>22</asp:ListItem>
                        <asp:ListItem>23</asp:ListItem>
                        <asp:ListItem>24</asp:ListItem>
                        <asp:ListItem>25</asp:ListItem>
                        <asp:ListItem>26</asp:ListItem>
                        <asp:ListItem>27</asp:ListItem>
                        <asp:ListItem>28</asp:ListItem>
                        <asp:ListItem>29</asp:ListItem>
                        <asp:ListItem>30</asp:ListItem>
                        <asp:ListItem>31</asp:ListItem>
                    </asp:DropDownList>日</td>
            </tr>
            
            <tr style="font-size: 12pt">
                <td style="width: 141px;text-align:left" class="text">
                    签名密码:</td>
                <td style="width: 323px; text-align: left">
                    <asp:TextBox ID="TextBoxUderWritePWD1" runat="server" Width="175px" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TextBoxUderWritePWD1"
                        ErrorMessage="*"></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="TextBoxUderWritePWD2"
                        ControlToValidate="TextBoxUderWritePWD1" ErrorMessage="**"></asp:CompareValidator></td>
            </tr>
            <tr style="font-size: 12pt">
                <td style="width: 141px; height: 21px;text-align:left" class="text">
                    重复密码:</td>
                <td style="width: 323px; height: 21px;text-align: left" class="text">
                    <asp:TextBox ID="TextBoxUderWritePWD2" runat="server" Width="175px" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="TextBoxUderWritePWD2"
                        ErrorMessage="*"></asp:RequiredFieldValidator></td>
            </tr>
            <tr style="font-size: 12pt">
                <td style="width: 141px;text-align:left" class="text">
                    地址:</td>
                <td style="width: 323px;text-align: left">
                    <asp:TextBox ID="TextBoxAddress" runat="server" Width="174px"></asp:TextBox></td>
            </tr>
            <tr style="font-size: 12pt">
                <td style="width: 141px;text-align:left" class="text">
                    电话号码:</td>
                <td style="width: 323px; text-align: left">
                    <asp:TextBox ID="TextBoxTelephone" runat="server" Width="174px"></asp:TextBox></td>
            </tr>
            <tr style="font-size: 12pt">
                <td style="width: 141px;  text-align:left" class="text">
                    邮箱地址:</td>
                <td style="width: 323px; ">
                    <asp:TextBox ID="TextBoxEmailAddress" runat="server" Width="172px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="TextBoxEmailAddress"
                        ErrorMessage="*"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBoxEmailAddress"
                        ErrorMessage="*" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator><span class="link"><a href="#"  onclick="javascript:var emailAddress=document.getElementById('ctl00$ContentPlaceHolder1$TextBoxEmailAddress').value;newwin2=window.open('<%=Request.ApplicationPath %>/Src/CommonOperation/Check/CheckEmailAddress.aspx?EmailAddress='+emailAddress,'newwin2','height=169,width=232,status=no,toolbar=no,menubar=no,scrollbars=no,resizable=no');newwin2.moveTo(300,200);newwin2.focus();return false;">检测邮箱</a></span></td>
            </tr>
            <tr style="font-size: 12pt">
                <td style="width: 141px;  text-align:left" class="text">
                    提示问题:</td>
                <td style="width: 323px; text-align: left">
                    <asp:TextBox ID="TextBoxQuestion" runat="server" Width="172px"></asp:TextBox></td>
            </tr>
            <tr style="font-size: 12pt">
                <td style="width: 141px; height: 26px;text-align:left" class="text">
                    回答问题:</td>
                <td style="width: 323px; height: 26px;">
                    <asp:TextBox ID="TextBoxAnswer" runat="server" Width="174px"></asp:TextBox></td>
            </tr>
            <tr style="font-size: 12pt">
                <td class="text" style="width: 141px; height: 26px; text-align:left">
                    身份证号:</td>
                <td style="width: 323px; height: 26px">
                    <asp:TextBox ID="TextBoxIdentItycardNum" runat="server" Width="172px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="TextBoxIdentItycardNum"
                        ErrorMessage="*"></asp:RequiredFieldValidator></td>
            </tr>
            <tr style="font-size: 12pt">
                <td class="text" style="width: 141px; height: 26px; text-align:left">
                    照片路径:</td>
                <td style="width: 323px; height: 26px">
                    <asp:FileUpload ID="File1" runat="server" Width="250px" /></td>
            </tr>
            <tr>
             <td colspan="2">
                 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
             <asp:Button ID="ButtonSave" runat="server" OnClick="UpdateButton_Click" Text="注册" CssClass="button"/>&nbsp;&nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
        <asp:Button ID="ButtonCancel" runat="server" OnClick="Button1_Click" Text="取消" Width="51px" CssClass="button"/><br />
       
             </td>
            </tr>
        </table>
        <br />
        <br />
        
        
    </div>
</asp:Content>


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?