📄 retrievepayfeeinput.jsp
字号:
<%
Vector vecQ1 = (Vector) request.getAttribute("vecQ1");
Vector vecQ2 = (Vector) request.getAttribute("vecQ2");
String statusCode = (String) request.getAttribute("statusCode");
%>
function valid(){
var bool=true;
//Nvoid(form1);
if (bool) {
if (document.form1.subarea.value=="") {
alert("请输入所在分区");
document.form1.subarea.focus();
bool=false;
}
}
if (bool) {
if (document.form1.buildingnumb.value=="") {
alert("请输入所在楼宇");
document.form1.buildingnumb.focus();
bool=false;
}
}
if (bool) {
if (document.form1.doornumb.value=="") {
alert("请输入所在梯口");
document.form1.doornumb.focus();
bool=false;
}
}
if (bool) {
if (document.form1.floornumb.value=="") {
alert("请输入所在楼层");
document.form1.floornumb.focus();
bool=false;
}
}
if (bool) {
if (document.form1.cellnumb.value=="") {
alert("请输入所在单元");
document.form1.cellnumb.focus();
bool=false;
}
}
if (bool) {
<% for (int i=0;i<vecQ1.size();i++) { %>
if (document.form1.item.value==<%=vecQ1.elementAt(i)%>) {
document.form1.itemname.value="<%= vecQ2.elementAt(i)%>";
}
<% } %>
document.form1.date1.value=document.form1.year1.value+"-"+document.form1.month1.value;
document.form1.date2.value=document.form1.year2.value+"-"+document.form1.month2.value;
handleForm(form1);
}
}
function handleForm(inputForm) {
var str="";
var del2="☆";
var del ="※";
for (i=0; i<inputForm.elements.length; i++)
{
if ((inputForm.elements[i].name.toUpperCase() != "RESET") &&
(inputForm.elements[i].name.toUpperCase() != "SUBMIT"))
{
if ((inputForm.elements[i].type == "radio") ||
(inputForm.elements[i].type == "checkbox"))
{
if (inputForm.elements[i].checked)
{
str = str+inputForm.elements[i].name+del2+inputForm.elements[i].value+del;
}
}
else if (inputForm.elements[i].type == "select-one")
{
str = str+inputForm.elements[i].name
+del2+inputForm.elements[i].options[inputForm.elements[i].selectedIndex].value+del;
}
else
{
str = str+inputForm.elements[i].name+del2+inputForm.elements[i].value+del;
}
}
}
str=str.substr(0,str.length-del.length);
inputStr=str;
document.hiddenForm.inputString.value=str;
document.hiddenForm.submit();
}
function keyPress()
{
if (event.keyCode==13){
valid();
}
}
document.onkeypress=keyPress
document.write('<form name="form1">');
<% if (statusCode.trim().equals("7634")) { %>
document.write('对不起,赞没有可查询的收费项目!');
<% } else {%>
document.write('<table width="80%" border="0" cellspacing="2" cellpadding="0" align="center">');
document.write('<tr align="center">');
document.write('<td>');
document.write('<p> </p>');
document.write('<p><b>检索付费记录</b><br>');
document.write('<br>');
document.write('</p>');
document.write('</td>');
document.write('</tr>');
document.write(' <tr>');
document.write(' <td>');
document.write(' <table width="100%" border="0" align="center">');
document.write(' <tr>');
document.write(' <td width="35%" align="right">所 在 小 区 </td>');
document.write(' <td width="65%">');
document.write(' <input type="text" name="subarea" maxlength="2">');
document.write(' <font color=#FF3300>*</font> </td>');
document.write(' </tr>');
document.write(' <tr>');
document.write(' <td width="35%" align="right">所 在 楼 </td>');
document.write(' <td width="65%">');
document.write(' <input type="text" name="buildingnumb" maxlength="3">');
document.write(' <font color=#FF3300>*</font> </td>');
document.write(' </tr>');
document.write(' <tr>');
document.write(' <td width="35%" align="right">所 在 梯 口 </td>');
document.write(' <td width="65%">');
document.write(' <input type="text" name="doornumb" maxlength="1">');
document.write(' <font color=#FF3300> *</font> </td>');
document.write(' </tr>');
document.write(' <tr>');
document.write(' <td width="35%" align="right">所 在 层 </td>');
document.write(' <td width="65%">');
document.write(' <input type="text" name="floornumb" maxlength="2">');
document.write(' <font color=#FF3300>*</font>');
document.write(' </td>');
document.write(' </tr>');
document.write(' <tr>');
document.write(' <td width="35%" align="right">所 在 单 元 </td>');
document.write(' <td width="65%">');
document.write(' <input type="text" name="cellnumb" maxlength="2">');
document.write(' <font color=#FF3300>*</font>');
document.write(' </td>');
document.write(' </tr>');
document.write(' <tr>');
document.write(' <td width="35%" align="right">缴纳费用名称 </td>');
document.write(' <td width="65%">');
document.write(' <select name="item">');
<% for (int i=0;i<vecQ1.size();i++) {%>
<% if (((String)vecQ1.elementAt(i)).trim().equals("4")) { %>
document.write(' <option value="<%= vecQ1.elementAt(i)%>">管理费</option>');
<% } else if (!(((String)vecQ1.elementAt(i)).trim().equals("5"))&&(!((String)vecQ1.elementAt(i)).trim().equals("6"))) {%>
document.write(' <option value="<%= vecQ1.elementAt(i)%>"><%= vecQ2.elementAt(i)%></option>');
<% } %>
<% } %>
document.write(' </select>');
document.write(' <font color=#FF3300>*</font>');
document.write(' </td>');
document.write(' </tr>');
document.write(' <input type="hidden" name="date1">');
document.write(' <input type="hidden" name="date2">');
document.write(' <input type="hidden" name="itemname">');
document.write(' <input type="hidden" name="paysnumber" value="1">');
document.write(' <tr>');
document.write(' <td width="35%" align="right">缴 纳 日 期 </td>');
document.write(' <td width="65%"> ');
document.write(' <select name="year1">');
document.write(' <option value="">--</option>');
document.write(' <option value="2001">2001</option>');
document.write(' <option value="2002">2002</option>');
document.write(' <option value="2003">2003</option>');
document.write(' <option value="2004">2004</option>');
document.write(' <option value="2005">2005</option>');
document.write(' <option value="2006">2006</option>');
document.write(' <option value="2007">2007</option>');
document.write(' <option value="2008">2008</option>');
document.write(' <option value="2009">2009</option>');
document.write(' <option value="2010">2010</option>');
document.write(' </select>');
document.write(' 年 ');
document.write(' <select name="month1">');
document.write(' <option value="">--</option>');
document.write(' <option value="01">1</option>');
document.write(' <option value="02">2</option>');
document.write(' <option value="03">3</option>');
document.write(' <option value="04">4</option>');
document.write(' <option value="05">5</option>');
document.write(' <option value="06">6</option>');
document.write(' <option value="07">7</option>');
document.write(' <option value="08">8</option>');
document.write(' <option value="09">9</option>');
document.write(' <option value="10">10</option>');
document.write(' <option value="11">11</option>');
document.write(' <option value="12">12</option>');
document.write(' </select>');
document.write(' 月 到');
document.write(' <select name="year2">');
document.write(' <option value="">--</option>');
document.write(' <option value="2001">2001</option>');
document.write(' <option value="2002">2002</option>');
document.write(' <option value="2003">2003</option>');
document.write(' <option value="2004">2004</option>');
document.write(' <option value="2005">2005</option>');
document.write(' <option value="2006">2006</option>');
document.write(' <option value="2007">2007</option>');
document.write(' <option value="2008">2008</option>');
document.write(' <option value="2009">2009</option>');
document.write(' <option value="2010">2010</option>');
document.write(' </select>');
document.write(' 年 ');
document.write(' <select name="month2">');
document.write(' <option value="">--</option>');
document.write(' <option value="01">1</option>');
document.write(' <option value="02">2</option>');
document.write(' <option value="03">3</option>');
document.write(' <option value="04">4</option>');
document.write(' <option value="05">5</option>');
document.write(' <option value="06">6</option>');
document.write(' <option value="07">7</option>');
document.write(' <option value="08">8</option>');
document.write(' <option value="09">9</option>');
document.write(' <option value="10">10</option>');
document.write(' <option value="11">11</option>');
document.write(' <option value="12">12</option>');
document.write(' </select>');
document.write(' 月');
document.write(' </td>');
document.write(' </tr>');
document.write(' </table>');
document.write(' <br>');
document.write(' </td>');
document.write('</tr>');
document.write('</table>');
document.write(' <table width="780" align="center">');
document.write('<tr>');
document.write(' <td align="center"><input type="button" name="submit" value="提交" onclick="valid()"> <input type="reset" name="reset" value="复位"></td>');
document.write('</tr>');
document.write('</table>');
document.write('</form>');
document.write('<form name="hiddenForm" METHOD="post" ACTION="http://www.pms.com/pmsApp/servlet/common.PMS">');
document.write(' <INPUT TYPE="hidden" NAME="txId" ID="txId" VALUE="0003">');
document.write(' <INPUT TYPE="hidden" NAME="inputString" ID="inputString" >');
document.write('</form>');
<% } %>
document.write('<p align="center"><br><a href="javascript:window.close();">[ 关闭本窗口 ]</a></p>');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -