温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:小区物业管理系统源码
当前文件:
SmallHouse/admin/addhomeholdfee.aspx,打开代码结构图
SmallHouse/admin/addhomeholdfee.aspx,打开代码结构图1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="addhomeholdfee.aspx.cs" Inherits="admin_addfixrepair" %> 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
11
<script language="JavaScript"> 12
<!--#INCLUDE VIRTUAL="Calendar.js"--> 13
</script> 14
15
<script language="javascript"> 16
function jisuan() 17
{ 18
n1=document.form1.Pirce.value; 19
n2=document.form1.Number.value; 20
document.form1.Payment.value=n1*n2; 21
fact(); 22
} 23
function fact() 24
{ 25
var payment; 26
var factpayment; 27
payment=document.form1.Payment.value; 28
factpayment=document.form1.FactPayment.value; 29
if(payment-factpayment<0) 30
{ 31
alert('实际支付填写错误'); 32
form1.FactPayment.select(); 33
} 34
else 35
{ 36
document.form1.NotPayment.value=payment-factpayment; 37
} 38
} 39
</script> 40
</head> 41
<body> 42
<form id="form1" runat="server"> 43
<TABLE cellSpacing=0 cellPadding=0 width="100%" bgColor=#c4d8ed border=0> 44
<TBODY> 45
<TR> 46
<TD style="height: 27px"><IMG alt="" src="image/r_1.gif"></TD> 47
<TD width="100%" background=image/r_0.gif style="height: 5px"></TD> 48
<TD style="height: 27px"><IMG alt="" src="image/r_2.gif"></TD></TR> 49
50
<TR> 51
<TD></TD> 52
<TD> 53
54
55
<table class="toptable grid" cellspacing=1 cellpadding=1 align=center 56
border=1> 57
<tbody> 58
<tr> 59
<td class=category colspan="5"> 添加住户收费信息</td> 60
</tr> 61
<tr> 62
<td colspan="2" style="height: 28px; width: 86px; text-align: right;" align="right"> 63
<strong><span style="color: #003373; background-color: #ffffff">收费名称:</span></strong></td> 64
<td colspan="1" style="height: 28px"> 65
<asp:DropDownList ID="name" runat="server" Width="137px"> 66
</asp:DropDownList></td> 67
</tr> 68
<tr> 69
<td colspan="2" align="right" style="height: 23px; width: 86px; text-align: right;"> 70
楼房名称:</td> 71
<td colspan="1" style="height: 23px"><asp:DropDownList ID="pav" runat="server" Width="137px"> 72
</asp:DropDownList></td> 73
</tr> 74
<tr> 75
<td align="right" colspan="2" style="height: 23px; width: 86px;"> 76
单元名称:</td> 77
<td colspan="1" style="height: 23px"><asp:DropDownList ID="cell" runat="server" Width="137px" AutoPostBack="True" OnSelectedIndexChanged="cell_SelectedIndexChanged"> 78
</asp:DropDownList></td> 79
</tr> 80
<tr> 81
<td align="right" colspan="2" style="height: 23px; width: 86px;"> 82
单元名称:</td> 83
<td colspan="1" style="height: 23px"> 84
<asp:DropDownList ID="ddlownerID" runat="server" Width="137px"> 85
</asp:DropDownList></td> 86
</tr> 87
<tr> 88
<td align="right" colspan="2" style="width: 86px; height: 28px"> 89
数量:</td> 90
<td colspan="1" style="height: 28px"> 91
<asp:TextBox ID="Number" runat="server" onBlur="jisuan()"></asp:TextBox><asp:CompareValidator ID="CompareValidator1" 92
runat="server" ControlToValidate="Number" Display="Dynamic" ErrorMessage="数量必须是数字" 93
Operator="DataTypeCheck" Type="Integer">*</asp:CompareValidator><asp:RequiredFieldValidator 94
ID="RequiredFieldValidator2" runat="server" ControlToValidate="Pirce" Display="Dynamic" 95
ErrorMessage="单价不能为空">*</asp:RequiredFieldValidator><span style="color: #ff0000">注意</span>:对于不确定数量的费用数量是1.</td> 96
</tr> 97
<tr> 98
<td align="right" colspan="2" style="width: 86px; height: 28px"> 99
价格:</td> 100
<td colspan="1" style="height: 28px"> 101
<asp:TextBox ID="Pirce" runat="server" onBlur="jisuan()"></asp:TextBox><asp:CompareValidator ID="CompareValidator2" 102
runat="server" ControlToValidate="Pirce" Display="Dynamic" ErrorMessage="单价格式填写错误" 103
Operator="DataTypeCheck" Type="Currency">*</asp:CompareValidator><asp:RequiredFieldValidator 104
ID="RequiredFieldValidator3" runat="server" ControlToValidate="Pirce" Display="Dynamic" 105
ErrorMessage="请先添加商品">*</asp:RequiredFieldValidator></td> 106
</tr> 107
<tr> 108
<td align="right" colspan="2" style="width: 86px; height: 28px"> 109
应付金额;</td> 110
<td colspan="1" style="height: 28px"> 111
<asp:TextBox ID="Payment" runat="server"></asp:TextBox> 112
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="Payment" 113
Display="Dynamic" ErrorMessage="应付金额不能为空">*</asp:RequiredFieldValidator></td> 114
</tr> 115
<tr> 116
<td align="right" colspan="2" style="width: 86px; height: 28px"> 117
实付金额:</td> 118
<td colspan="1" style="height: 28px"> 119
<asp:TextBox ID="FactPayment" runat="server" onBlur="fact()"></asp:TextBox><asp:CompareValidator 120
ID="CompareValidator5" runat="server" ControlToValidate="FactPayment" Display="Dynamic" 121
ErrorMessage="实付金额格式填写错误" Operator="DataTypeCheck" Type="Currency">*</asp:CompareValidator><asp:RequiredFieldValidator 122
ID="RequiredFieldValidator6" runat="server" ControlToValidate="FactPayment" ErrorMessage="实付金额不能为空">*</asp:RequiredFieldValidator></td> 123
</tr> 124
<tr> 125
<td align="right" colspan="2" style="width: 86px; height: 28px; text-align: right;"> 126
未付金额:</td> 127
<td colspan="1" style="height: 28px"> 128
<asp:TextBox ID="NotPayment" runat="server"></asp:TextBox> 129
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="NotPayment" 130
Display="Dynamic" ErrorMessage="未付金额不能为空" Width="5px">*</asp:RequiredFieldValidator></td> 131
</tr> 132
<tr> 133
<td colspan="2" style="height: 11px; width: 86px;" align="right"> 134
开始收费时间:</td> 135
<td colspan="1" style="height: 11px"> 136
<asp:TextBox ID="start" runat="server" onfocus="new Calendar().show(this);"></asp:TextBox><asp:RequiredFieldValidator 137
ID="RequiredFieldValidator1" runat="server" ControlToValidate="start" Display="Dynamic" 138
ErrorMessage="*"></asp:RequiredFieldValidator><asp:CompareValidator ID="CompareValidator3" 139
runat="server" ControlToValidate="start" Display="Dynamic" ErrorMessage="请输入正确的日期格式" 140
Operator="DataTypeCheck" SetFocusOnError="True" Type="Date" ValueToCompare="2008-3-15"></asp:CompareValidator></td> 141
</tr> 142
<tr> 143
<td align="right" colspan="2" style="height: 24px; width: 86px;"> 144
经手人:</td> 145
<td colspan="1" style="height: 24px"> 146
<asp:TextBox ID="txthandle" runat="server" Enabled="False"></asp:TextBox></td> 147
</tr> 148
<tr> 149
<td align="right" colspan="2" style="height: 23px; width: 86px;"> 150
</td> 151
<td colspan="1" style="height: 23px"> 152
<asp:Button ID="Button1" runat="server" Text="添加" Width="60px" OnClick="Button1_Click" /> 153
<asp:Button ID="Button2" runat="server" Text="取消" Width="68px" /></td> 154
</tr> 155
</tbody> 156
</table> 157
158
</TD> 159
<TD></TD></TR> 160
161
162
163
164
<TR> 165
<TD><IMG alt="" src="image/r_4.gif"></TD> 166
<TD></TD> 167
<TD><IMG alt="" 168
src="image/r_3.gif"></TD></TR></TBODY></TABLE> 169
</form> 170
</BODY> 171
172
173
</html> 174





}