📄 addhomeholdfee.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="addhomeholdfee.aspx.cs" Inherits="admin_addfixrepair" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>添加友情链接</title>
<LINK href="image/style.css" type=text/css rel=stylesheet>
<script language="JavaScript">
<!--#INCLUDE VIRTUAL="Calendar.js"-->
</script>
<script language="javascript">
function jisuan()
{
n1=document.form1.Pirce.value;
n2=document.form1.Number.value;
document.form1.Payment.value=n1*n2;
fact();
}
function fact()
{
var payment;
var factpayment;
payment=document.form1.Payment.value;
factpayment=document.form1.FactPayment.value;
if(payment-factpayment<0)
{
alert('实际支付填写错误');
form1.FactPayment.select();
}
else
{
document.form1.NotPayment.value=payment-factpayment;
}
}
</script>
</head>
<body>
<form id="form1" runat="server">
<TABLE cellSpacing=0 cellPadding=0 width="100%" bgColor=#c4d8ed border=0>
<TBODY>
<TR>
<TD style="height: 27px"><IMG alt="" src="image/r_1.gif"></TD>
<TD width="100%" background=image/r_0.gif style="height: 5px"></TD>
<TD style="height: 27px"><IMG alt="" src="image/r_2.gif"></TD></TR>
<TR>
<TD></TD>
<TD>
<table class="toptable grid" cellspacing=1 cellpadding=1 align=center
border=1>
<tbody>
<tr>
<td class=category colspan="5"> 添加住户收费信息</td>
</tr>
<tr>
<td colspan="2" style="height: 28px; width: 86px; text-align: right;" align="right">
<strong><span style="color: #003373; background-color: #ffffff">收费名称:</span></strong></td>
<td colspan="1" style="height: 28px">
<asp:DropDownList ID="name" runat="server" Width="137px">
</asp:DropDownList></td>
</tr>
<tr>
<td colspan="2" align="right" style="height: 23px; width: 86px; text-align: right;">
楼房名称:</td>
<td colspan="1" style="height: 23px"><asp:DropDownList ID="pav" runat="server" Width="137px">
</asp:DropDownList></td>
</tr>
<tr>
<td align="right" colspan="2" style="height: 23px; width: 86px;">
单元名称:</td>
<td colspan="1" style="height: 23px"><asp:DropDownList ID="cell" runat="server" Width="137px" AutoPostBack="True" OnSelectedIndexChanged="cell_SelectedIndexChanged">
</asp:DropDownList></td>
</tr>
<tr>
<td align="right" colspan="2" style="height: 23px; width: 86px;">
单元名称:</td>
<td colspan="1" style="height: 23px">
<asp:DropDownList ID="ddlownerID" runat="server" Width="137px">
</asp:DropDownList></td>
</tr>
<tr>
<td align="right" colspan="2" style="width: 86px; height: 28px">
数量:</td>
<td colspan="1" style="height: 28px">
<asp:TextBox ID="Number" runat="server" onBlur="jisuan()"></asp:TextBox><asp:CompareValidator ID="CompareValidator1"
runat="server" ControlToValidate="Number" Display="Dynamic" ErrorMessage="数量必须是数字"
Operator="DataTypeCheck" Type="Integer">*</asp:CompareValidator><asp:RequiredFieldValidator
ID="RequiredFieldValidator2" runat="server" ControlToValidate="Pirce" Display="Dynamic"
ErrorMessage="单价不能为空">*</asp:RequiredFieldValidator><span style="color: #ff0000">注意</span>:对于不确定数量的费用数量是1.</td>
</tr>
<tr>
<td align="right" colspan="2" style="width: 86px; height: 28px">
价格:</td>
<td colspan="1" style="height: 28px">
<asp:TextBox ID="Pirce" runat="server" onBlur="jisuan()"></asp:TextBox><asp:CompareValidator ID="CompareValidator2"
runat="server" ControlToValidate="Pirce" Display="Dynamic" ErrorMessage="单价格式填写错误"
Operator="DataTypeCheck" Type="Currency">*</asp:CompareValidator><asp:RequiredFieldValidator
ID="RequiredFieldValidator3" runat="server" ControlToValidate="Pirce" Display="Dynamic"
ErrorMessage="请先添加商品">*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td align="right" colspan="2" style="width: 86px; height: 28px">
应付金额;</td>
<td colspan="1" style="height: 28px">
<asp:TextBox ID="Payment" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="Payment"
Display="Dynamic" ErrorMessage="应付金额不能为空">*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td align="right" colspan="2" style="width: 86px; height: 28px">
实付金额:</td>
<td colspan="1" style="height: 28px">
<asp:TextBox ID="FactPayment" runat="server" onBlur="fact()"></asp:TextBox><asp:CompareValidator
ID="CompareValidator5" runat="server" ControlToValidate="FactPayment" Display="Dynamic"
ErrorMessage="实付金额格式填写错误" Operator="DataTypeCheck" Type="Currency">*</asp:CompareValidator><asp:RequiredFieldValidator
ID="RequiredFieldValidator6" runat="server" ControlToValidate="FactPayment" ErrorMessage="实付金额不能为空">*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td align="right" colspan="2" style="width: 86px; height: 28px; text-align: right;">
未付金额:</td>
<td colspan="1" style="height: 28px">
<asp:TextBox ID="NotPayment" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="NotPayment"
Display="Dynamic" ErrorMessage="未付金额不能为空" Width="5px">*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td colspan="2" style="height: 11px; width: 86px;" align="right">
开始收费时间:</td>
<td colspan="1" style="height: 11px">
<asp:TextBox ID="start" runat="server" onfocus="new Calendar().show(this);"></asp:TextBox><asp:RequiredFieldValidator
ID="RequiredFieldValidator1" runat="server" ControlToValidate="start" Display="Dynamic"
ErrorMessage="*"></asp:RequiredFieldValidator><asp:CompareValidator ID="CompareValidator3"
runat="server" ControlToValidate="start" Display="Dynamic" ErrorMessage="请输入正确的日期格式"
Operator="DataTypeCheck" SetFocusOnError="True" Type="Date" ValueToCompare="2008-3-15"></asp:CompareValidator></td>
</tr>
<tr>
<td align="right" colspan="2" style="height: 24px; width: 86px;">
经手人:</td>
<td colspan="1" style="height: 24px">
<asp:TextBox ID="txthandle" runat="server" Enabled="False"></asp:TextBox></td>
</tr>
<tr>
<td align="right" colspan="2" style="height: 23px; width: 86px;">
</td>
<td colspan="1" style="height: 23px">
<asp:Button ID="Button1" runat="server" Text="添加" Width="60px" OnClick="Button1_Click" />
<asp:Button ID="Button2" runat="server" Text="取消" Width="68px" /></td>
</tr>
</tbody>
</table>
</TD>
<TD></TD></TR>
<TR>
<TD><IMG alt="" src="image/r_4.gif"></TD>
<TD></TD>
<TD><IMG alt=""
src="image/r_3.gif"></TD></TR></TBODY></TABLE>
</form>
</BODY>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -