温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:小区物业管理系统源码
当前文件:
SmallHouse/admin/addfix.aspx,打开代码结构图
SmallHouse/admin/addfix.aspx,打开代码结构图1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="addfix.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
10
<script language="JavaScript"> 11
<!--#INCLUDE VIRTUAL="Calendar.js"--> 12
</script> 13
14
<LINK href="image/style.css" type=text/css rel=stylesheet> 15
</head> 16
<body> 17
<form id="form1" runat="server"> 18
<TABLE cellSpacing=0 cellPadding=0 width="100%" bgColor=#c4d8ed border=0> 19
<TBODY> 20
<TR> 21
<TD style="height: 27px"><IMG alt="" src="image/r_1.gif"></TD> 22
<TD width="100%" background=image/r_0.gif style="height: 5px"></TD> 23
<TD style="height: 27px"><IMG alt="" src="image/r_2.gif"></TD></TR> 24
25
<TR> 26
<TD></TD> 27
<TD> 28
29
30
<table class="toptable grid" cellspacing=1 cellpadding=1 align=center 31
border=1> 32
<tbody> 33
<tr> 34
<td class=category colspan="2"> 添加小区设备</td> 35
</tr> 36
<tr> 37
<td align="right" colspan="1" style="height: 28px" width="25%"> 38
设备编号:</td> 39
<td colspan="1" style="height: 28px"> 40
<asp:TextBox ID="txtfixCode" runat="server" Enabled="False" ForeColor="Red"></asp:TextBox></td> 41
</tr> 42
<tr> 43
<td colspan="1" width="25%" style="height: 28px" align="right"> 44
<strong><span style="color: #003373; background-color: #ffffff">设备名称:</span></strong></td> 45
<td colspan="1" style="height: 28px"> 46
<asp:TextBox ID="name" runat="server"></asp:TextBox> 47
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="name" 48
Display="Dynamic" ErrorMessage="设备名称不为空"></asp:RequiredFieldValidator></td> 49
</tr> 50
<tr> 51
<td colspan="1" align="right" style="height: 28px"> 52
设备数量:</td> 53
<td colspan="1" style="height: 28px"> 54
<asp:TextBox ID="amount" runat="server"></asp:TextBox> 55
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="amount" 56
ErrorMessage=" 请输入数量"></asp:RequiredFieldValidator> 57
<asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="amount" 58
ErrorMessage="请输入正确的数字" ValidationExpression="^[1-9]\d*$"></asp:RegularExpressionValidator></td> 59
</tr> 60
<tr> 61
<td align="right" colspan="1" style="height: 23px"> 62
生产厂家:</td> 63
<td colspan="1" style="height: 23px"> 64
<asp:TextBox ID="factory" runat="server"></asp:TextBox> 65
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="factory" 66
ErrorMessage="厂家不为空"></asp:RequiredFieldValidator></td> 67
</tr> 68
<tr> 69
<td colspan="1" style="height: 28px" align="right"> 70
出厂日期:</td> 71
<td colspan="1" style="height: 28px"> 72
<asp:TextBox ID="logoutdate" runat="server" onfocus="new Calendar().show(this);"></asp:TextBox> 73
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="logoutdate" 74
Display="Dynamic" ErrorMessage="日期不为空"></asp:RequiredFieldValidator> 75
<asp:CompareValidator ID="CompareValidator2" runat="server" ControlToValidate="logoutdate" 76
Display="Dynamic" ErrorMessage="请输入正确的日期格式" Operator="DataTypeCheck" SetFocusOnError="True" 77
Type="Date" ValueToCompare="2008-3-15"></asp:CompareValidator>格式:2008-3-15</td> 78
</tr> 79
<tr> 80
<td align="right" colspan="1" style="height: 23px"> 81
</td> 82
<td colspan="1" style="height: 23px"> 83
<asp:Button ID="Button1" runat="server" Text="添加" Width="60px" OnClick="Button1_Click" /> 84
<asp:Button ID="Button2" runat="server" Text="取消" Width="68px" /></td> 85
</tr> 86
</tbody> 87
</table> 88
89
</TD> 90
<TD></TD></TR> 91
92
93
94
95
<TR> 96
<TD><IMG alt="" src="image/r_4.gif"></TD> 97
<TD></TD> 98
<TD><IMG alt="" 99
src="image/r_3.gif"></TD></TR></TBODY></TABLE> 100
</form> 101
</BODY> 102
103
104
</html> 105
106



