温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:小区物业管理系统源码
当前文件:
SmallHouse/admin/addhomehold.aspx,打开代码结构图
SmallHouse/admin/addhomehold.aspx,打开代码结构图1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="addhomehold.aspx.cs" Inherits="admin_Default2" %> 2
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4
5
<html xmlns="http://www.w3.org/1999/xhtml" > 6
<head id="Head1" runat="server"> 7
<title>添加友情链接</title> 8
9
<LINK href="image/style.css" type=text/css rel=stylesheet> 10
</head> 11
<body> 12
<form id="form1" runat="server"> 13
<TABLE cellSpacing=0 cellPadding=0 width="100%" bgColor=#c4d8ed border=0> 14
<TBODY> 15
<TR> 16
<TD style="height: 27px"><IMG alt="" src="image/r_1.gif"></TD> 17
<TD width="100%" background=image/r_0.gif style="height: 5px"></TD> 18
<TD style="height: 27px"><IMG alt="" src="image/r_2.gif"></TD></TR> 19
20
<TR> 21
<TD></TD> 22
<TD> 23
24
25
<table class="toptable grid" cellspacing=1 cellpadding=1 align=center 26
border=1> 27
<tbody> 28
<tr> 29
<td class=category colspan="5"> 添加小区住户基本信息</td> 30
</tr> 31
<tr> 32
<td align="right" colspan="2"> 33
选择楼宇:</td> 34
<td align="right" colspan="1" style="width: 123px; text-align: left"> 35
<asp:DropDownList ID="pav" runat="server" Width="137px"> 36
</asp:DropDownList></td> 37
<td align="right" colspan="2"> 38
</td> 39
</tr> 40
<tr> 41
<td align="right" colspan="2"> 42
选择单元:</td> 43
<td align="right" colspan="1" style="width: 123px; text-align: left"> 44
<asp:DropDownList ID="cell" runat="server" AutoPostBack="True" OnSelectedIndexChanged="cell_SelectedIndexChanged" 45
Width="137px"> 46
</asp:DropDownList></td> 47
<td align="right" colspan="2"> 48
</td> 49
</tr> 50
<tr> 51
<td align="right" colspan="2" style="height: 24px"> 52
选择房间:</td> 53
<td align="right" colspan="1" style="width: 123px; height: 24px; text-align: left"> 54
<asp:DropDownList ID="ddlownerID" runat="server" Width="137px"> 55
</asp:DropDownList></td> 56
<td align="right" colspan="2" style="height: 24px"> 57
</td> 58
</tr> 59
<tr> 60
<td colspan="2" align="right"> 61
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtname" 62
ErrorMessage="*"></asp:RequiredFieldValidator>业主姓名:</td> 63
<td align="right" colspan="1" style="width: 123px; text-align: left"> 64
<asp:TextBox ID="txtname" runat="server" Width="131px"></asp:TextBox></td> 65
<td align="right" colspan="1" style="width: 65px"> 66
房产证号</td> 67
<td colspan="1"> 68
<asp:TextBox ID="txtroomID" runat="server"></asp:TextBox> 69
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtroomID" 70
Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator></td> 71
</tr> 72
<tr> 73
<td align="right" colspan="2" style="height: 29px"> 74
<asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txttel" 75
ErrorMessage="*"></asp:RequiredFieldValidator><asp:RegularExpressionValidator ID="RegularExpressionValidator3" 76
runat="server" ControlToValidate="txttel" Display="Dynamic" ValidationExpression="(\(\d{3,4}\)|\d{3,4}-)?\d{7,8}">格式不正确!</asp:RegularExpressionValidator>联系电话:</td> 77
<td align="right" colspan="1" style="width: 123px; height: 29px"> 78
<asp:TextBox ID="txttel" runat="server"></asp:TextBox></td> 79
<td align="right" colspan="1" style="height: 29px; width: 65px;"> 80
手机:</td> 81
<td colspan="1" style="height: 29px"> 82
<asp:TextBox ID="txtmobile" runat="server"></asp:TextBox><asp:RequiredFieldValidator 83
ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtmobile" Display="Dynamic" 84
ErrorMessage="*" Width="15px"></asp:RequiredFieldValidator><asp:RegularExpressionValidator 85
ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtmobile" 86
Display="Dynamic" ErrorMessage="手机号码格式不对" ValidationExpression="\d{11}"></asp:RegularExpressionValidator></td> 87
</tr> 88
<tr> 89
<td align="right" colspan="2" style="height: 28px"> 90
<asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="txtemail" 91
Display="Dynamic" ErrorMessage="E-mail格式不正确" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator><asp:RequiredFieldValidator 92
ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtemail" ErrorMessage="*"></asp:RequiredFieldValidator>电子邮箱:</td> 93
<td align="right" colspan="1" style="width: 123px; height: 28px"> 94
<asp:TextBox ID="txtemail" runat="server"></asp:TextBox></td> 95
<td align="right" colspan="1" style="height: 28px; width: 65px;"> 96
身份证:</td> 97
<td colspan="1" style="height: 28px"> 98
<asp:TextBox ID="txtcardid" runat="server"></asp:TextBox><asp:RequiredFieldValidator 99
ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtcardid" Display="Dynamic" 100
ErrorMessage="*"></asp:RequiredFieldValidator><asp:RegularExpressionValidator ID="RegularExpressionValidator1" 101
runat="server" ControlToValidate="txtcardid" ErrorMessage="身份号码格式不对" ValidationExpression="\d{17}[\d|X]|\d{15}"></asp:RegularExpressionValidator></td> 102
</tr> 103
<tr> 104
<td align="right" colspan="2" style="height: 28px"> 105
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtunit" 106
ErrorMessage="*"></asp:RequiredFieldValidator>工作单位:</td> 107
<td align="right" colspan="1" style="width: 123px; height: 28px"> 108
<asp:TextBox ID="txtunit" runat="server"></asp:TextBox></td> 109
<td align="right" colspan="1" style="height: 28px; width: 65px;"> 110
联系地址:</td> 111
<td colspan="1" style="height: 28px"> 112
<asp:TextBox ID="txtcontact" runat="server"></asp:TextBox> 113
<asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="txtcontact" 114
Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator></td> 115
</tr> 116
<tr> 117
<td align="right" colspan="2" style="height: 28px"> 118
</td> 119
<td align="right" colspan="3" style="height: 28px; text-align: left"> 120
</td> 121
</tr> 122
123
<tr> 124
<td align="right" colspan="5" style="height: 23px; text-align: left"> 125
以下是住户用户名和密码(<span style="color: #ff0033">默认都为身份证号</span>)</td> 126
</tr> 127
<tr> 128
<td align="right" colspan="2" style="height: 23px"> 129
用户名</td> 130
<td align="right" colspan="1" style="width: 123px; height: 23px"> 131
<asp:TextBox ID="txtuid" runat="server"></asp:TextBox></td> 132
<td align="right" colspan="1" style="width: 65px; height: 23px"> 133
密码:</td> 134
<td colspan="1" style="height: 23px"> 135
<asp:TextBox ID="txtpwd" runat="server" TextMode="Password"></asp:TextBox></td> 136
</tr> 137
<tr> 138
<td align="right" colspan="2" style="height: 23px"> 139
备注信息</td> 140
<td align="right" colspan="3" style="height: 23px; text-align: left"> 141
<asp:TextBox ID="txtmemo" runat="server" Height="100px" TextMode="MultiLine" Width="290px"></asp:TextBox></td> 142
</tr> 143
<tr> 144
<td align="right" colspan="2" style="height: 23px"> 145
</td> 146
<td align="right" colspan="2" style="height: 23px"> 147
<asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="保存数据" /></td> 148
<td colspan="1" style="height: 23px"> 149
</td> 150
</tr> 151
</tbody> 152
</table> 153
154
</TD> 155
<TD></TD></TR> 156
157
158
159
160
<TR> 161
<TD><IMG alt="" src="image/r_4.gif"></TD> 162
<TD></TD> 163
<TD><IMG alt="" 164
src="image/r_3.gif"></TD></TR></TBODY></TABLE> 165
</form> 166
</BODY> 167
168
169
</html> 170
171



