温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:小区物业管理系统源码
当前文件:
SmallHouse/admin/addfixrepair.aspx,打开代码结构图
SmallHouse/admin/addfixrepair.aspx,打开代码结构图1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="addfixrepair.aspx.cs" Inherits="admin_addfixrepair" ValidateRequest="false" %> 2
3
<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %> 4
5
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 6
7
<html xmlns="http://www.w3.org/1999/xhtml" > 8
<head id="Head1" runat="server"> 9
<title>添加</title> 10
11
<LINK href="image/style.css" type=text/css rel=stylesheet> 12
13
<script language="JavaScript"> 14
<!--#INCLUDE VIRTUAL="Calendar.js"--> 15
</script> 16
<script language="javascript"> 17
18
function jisuan() 19
{ 20
n1=document.form1.repfee.value; 21
n2=document.form1.matfee.value; 22
document.form1.sumfee.value=n1*n2; 23
alert(n1); 24
25
26
27
} 28
function fact() 29
{ 30
n1=document.form1.repfee.value; 31
n2=document.form1.matfee.value; 32
33
var payment; 34
var factpayment; 35
payment=n1*n2; 36
factpayment=document.form1.sumfee.value; 37
if(payment!=factpayment) 38
{ 39
alert('实际支付填写错误'); 40
form1.FactPayment.select(); 41
} 42
43
44
</script> 45
46
</head> 47
<body> 48
<form id="form1" runat="server"> 49
<TABLE cellSpacing=0 cellPadding=0 width="100%" bgColor=#c4d8ed border=0> 50
<TBODY> 51
<TR> 52
<TD style="height: 27px"><IMG alt="" src="image/r_1.gif"></TD> 53
<TD width="100%" background=image/r_0.gif style="height: 5px"></TD> 54
<TD style="height: 27px"><IMG alt="" src="image/r_2.gif"></TD></TR> 55
56
<TR> 57
<TD></TD> 58
<TD> 59
60
61
<table class="toptable grid" cellspacing=1 cellpadding=1 align=center 62
border=1> 63
<tbody> 64
<tr> 65
<td class=category colspan="3"> 添加维修记录</td> 66
</tr> 67
<tr> 68
<td colspan="2" width="25%" style="height: 28px" align="right"> 69
<strong><span style="color: #003373; background-color: #ffffff">公区设施名称:</span></strong></td> 70
<td colspan="1" style="height: 28px"> 71
<asp:DropDownList ID="name" runat="server" Width="137px"> 72
</asp:DropDownList></td> 73
</tr> 74
<tr> 75
<td colspan="2" align="right"> 76
维修日期:</td> 77
<td colspan="1"> 78
<asp:TextBox ID="date" runat="server" onfocus="new Calendar().show(this);"></asp:TextBox> 79
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="date" 80
Display="Dynamic" ErrorMessage="日期不为空"></asp:RequiredFieldValidator> 81
<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="date" 82
Display="Dynamic" ErrorMessage="请输入正确的日期格式" Operator="DataTypeCheck" SetFocusOnError="True" 83
Type="Date" ValueToCompare="2008-3-15"></asp:CompareValidator>格式:2008-3-15</td> 84
</tr> 85
<tr> 86
<td align="right" colspan="2" style="height: 23px"> 87
结束日期:</td> 88
<td colspan="1" style="height: 23px"> 89
<asp:TextBox ID="enddate" runat="server" onfocus="new Calendar().show(this);"></asp:TextBox> 90
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="enddate" 91
Display="Dynamic" ErrorMessage="日期不为空"></asp:RequiredFieldValidator> 92
<asp:CompareValidator ID="CompareValidator2" runat="server" ControlToValidate="enddate" 93
Display="Dynamic" ErrorMessage="请输入正确的日期格式" Operator="DataTypeCheck" SetFocusOnError="True" 94
Type="Date" ValueToCompare="2008-3-15"></asp:CompareValidator>格式:2008-3-15<</td> 95
</tr> 96
<tr> 97
<td colspan="2" style="height: 28px" align="right"> 98
主要负责人:</td> 99
<td colspan="1" style="height: 28px"> 100
<asp:TextBox ID="mainHead" runat="server"></asp:TextBox> 101
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="mainHead" 102
ErrorMessage="负责人不为空"></asp:RequiredFieldValidator></td> 103
</tr> 104
<tr> 105
<td align="right" colspan="2" style="height: 23px"> 106
维修费用:</td> 107
<td colspan="1" style="height: 23px"> 108
<asp:TextBox ID="repfee" runat="server"></asp:TextBox> 109
<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="repfee" 110
ErrorMessage="请输入正确的数字" ValidationExpression="(^[1-9]\d*$)|(^-?([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$)"></asp:RegularExpressionValidator></td> 111
</tr> 112
<tr> 113
<td align="right" colspan="2" style="height: 23px"> 114
材料费用:</td> 115
<td colspan="1" style="height: 23px"> 116
<asp:TextBox ID="matfee" runat="server" onBlur="jisuan()"></asp:TextBox> 117
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="matfee" 118
ErrorMessage="请输入正确的数字" ValidationExpression="(^[1-9]\d*$)|(^-?([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$)"></asp:RegularExpressionValidator></td> 119
</tr> 120
<tr> 121
<td align="right" colspan="2" style="height: 23px"> 122
费用总计:</td> 123
<td colspan="1" style="height: 23px"> 124
<asp:TextBox ID="sumfee" runat="server" onBlur="fact()"></asp:TextBox> 125
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="sumfee" 126
ErrorMessage="费用总计不为空"></asp:RequiredFieldValidator></td> 127
</tr> 128
<tr> 129
<td align="right" colspan="2" style="height: 23px"> 130
是否付款:</td> 131
<td colspan="1" style="height: 23px"> 132
<asp:DropDownList ID="yesno" runat="server"> 133
<asp:ListItem Selected="True" Value="1">已付款</asp:ListItem> 134
<asp:ListItem Value="0">未付款</asp:ListItem> 135
</asp:DropDownList></td> 136
</tr> 137
<tr> 138
<td align="right" colspan="2" style="height: 23px"> 139
维修单位:</td> 140
<td colspan="1" style="height: 23px"> 141
<asp:TextBox ID="unit" runat="server"></asp:TextBox> 142
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="unit" 143
ErrorMessage="维修单位不为空"></asp:RequiredFieldValidator></td> 144
</tr> 145
<tr> 146
<td align="right" colspan="2" style="height: 21px"> 147
维修说明:</td> 148
<td colspan="1" style="height: 21px"> 149
<FTB:FreeTextBox ID="FreeTextBox1" runat="server" HelperFilesPath="../HelperScript///" ButtonPath="../images/ftb/office2003/"> 150
</FTB:FreeTextBox> 151
</td> 152
</tr> 153
<tr> 154
<td align="right" colspan="2" style="height: 23px"> 155
</td> 156
<td colspan="1" style="height: 23px"> 157
<asp:Button ID="Button1" runat="server" Text="添加" Width="60px" OnClick="Button1_Click" /> 158
<asp:Button ID="Button2" runat="server" Text="取消" Width="68px" /></td> 159
</tr> 160
</tbody> 161
</table> 162
163
</TD> 164
<TD></TD></TR> 165
166
167
168
169
<TR> 170
<TD><IMG alt="" src="image/r_4.gif"></TD> 171
<TD></TD> 172
<TD><IMG alt="" 173
src="image/r_3.gif"></TD></TR></TBODY></TABLE> 174
</form> 175
</BODY> 176
177
178
</html> 179





}