📄 addfixrepair.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="addfixrepair.aspx.cs" Inherits="admin_addfixrepair" ValidateRequest="false" %>
<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<!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.repfee.value;
n2=document.form1.matfee.value;
document.form1.sumfee.value=n1*n2;
alert(n1);
}
function fact()
{
n1=document.form1.repfee.value;
n2=document.form1.matfee.value;
var payment;
var factpayment;
payment=n1*n2;
factpayment=document.form1.sumfee.value;
if(payment!=factpayment)
{
alert('实际支付填写错误');
form1.FactPayment.select();
}
</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="3"> 添加维修记录</td>
</tr>
<tr>
<td colspan="2" width="25%" style="height: 28px" 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">
维修日期:</td>
<td colspan="1">
<asp:TextBox ID="date" runat="server" onfocus="new Calendar().show(this);"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="date"
Display="Dynamic" ErrorMessage="日期不为空"></asp:RequiredFieldValidator>
<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="date"
Display="Dynamic" ErrorMessage="请输入正确的日期格式" Operator="DataTypeCheck" SetFocusOnError="True"
Type="Date" ValueToCompare="2008-3-15"></asp:CompareValidator>格式:2008-3-15</td>
</tr>
<tr>
<td align="right" colspan="2" style="height: 23px">
结束日期:</td>
<td colspan="1" style="height: 23px">
<asp:TextBox ID="enddate" runat="server" onfocus="new Calendar().show(this);"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="enddate"
Display="Dynamic" ErrorMessage="日期不为空"></asp:RequiredFieldValidator>
<asp:CompareValidator ID="CompareValidator2" runat="server" ControlToValidate="enddate"
Display="Dynamic" ErrorMessage="请输入正确的日期格式" Operator="DataTypeCheck" SetFocusOnError="True"
Type="Date" ValueToCompare="2008-3-15"></asp:CompareValidator>格式:2008-3-15<</td>
</tr>
<tr>
<td colspan="2" style="height: 28px" align="right">
主要负责人:</td>
<td colspan="1" style="height: 28px">
<asp:TextBox ID="mainHead" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="mainHead"
ErrorMessage="负责人不为空"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td align="right" colspan="2" style="height: 23px">
维修费用:</td>
<td colspan="1" style="height: 23px">
<asp:TextBox ID="repfee" runat="server"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="repfee"
ErrorMessage="请输入正确的数字" ValidationExpression="(^[1-9]\d*$)|(^-?([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$)"></asp:RegularExpressionValidator></td>
</tr>
<tr>
<td align="right" colspan="2" style="height: 23px">
材料费用:</td>
<td colspan="1" style="height: 23px">
<asp:TextBox ID="matfee" runat="server" onBlur="jisuan()"></asp:TextBox>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="matfee"
ErrorMessage="请输入正确的数字" ValidationExpression="(^[1-9]\d*$)|(^-?([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0)$)"></asp:RegularExpressionValidator></td>
</tr>
<tr>
<td align="right" colspan="2" style="height: 23px">
费用总计:</td>
<td colspan="1" style="height: 23px">
<asp:TextBox ID="sumfee" runat="server" onBlur="fact()"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="sumfee"
ErrorMessage="费用总计不为空"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td align="right" colspan="2" style="height: 23px">
是否付款:</td>
<td colspan="1" style="height: 23px">
<asp:DropDownList ID="yesno" runat="server">
<asp:ListItem Selected="True" Value="1">已付款</asp:ListItem>
<asp:ListItem Value="0">未付款</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr>
<td align="right" colspan="2" style="height: 23px">
维修单位:</td>
<td colspan="1" style="height: 23px">
<asp:TextBox ID="unit" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="unit"
ErrorMessage="维修单位不为空"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td align="right" colspan="2" style="height: 21px">
维修说明:</td>
<td colspan="1" style="height: 21px">
<FTB:FreeTextBox ID="FreeTextBox1" runat="server" HelperFilesPath="../HelperScript///" ButtonPath="../images/ftb/office2003/">
</FTB:FreeTextBox>
</td>
</tr>
<tr>
<td align="right" colspan="2" style="height: 23px">
</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 + -