project_zhenggai_info.jsp

来自「java jsp教程」· JSP 代码 · 共 359 行 · 第 1/2 页

JSP
359
字号
<TABLE cellSpacing=0 cellPadding=0 width="90%" align=center border=0>
            <TBODY>
              <TR>
                <TD align=middle>
					<table cellspacing=1 bordercolordark=#dfdfff  cellpadding=2 id="infotable"
				            width="100%" align=center bgcolor=#b3c4db bordercolorlight=#003366 border=0>
                    <tbody>
                      <tr bgcolor="#a6d0f2">
                        <td align=middle height=26 colspan="4"><div align="center" class="style1">形 成 经 济 成 果</div></td>
                      </tr>
                      <tr onMouseOver="this.bgColor='#EBEBEB';" onMouseOut="this.bgColor='#EEF4FF';" bgcolor=#eef4ff>
                        <td width="11%" height="23" ><div align="right">被审计单位:</div></td>
                        <td width="39%" height="23" id="unit"><c:out value="${script.problemorgname}"/></td>
                        <td width="16%" height="23" align="right">审计事项:</td>
                        <td width="34%" height="23" id="card"><c:out value="${script.scriptname}"/></td>
                      </tr>
                      <tr onMouseOver="this.bgColor='#EBEBEB';" onMouseOut="this.bgColor='#EEF4FF';" bgcolor=#eef4ff>
                        <td height="23" ><div align="right">问题类别:</div></td>
                        <td height="23"  id="qtype"><c:out value="${script.problemtypename}"/></td>
                        <td height="23" ><div align="right">处理方式:</div></td>
                        <td height="23" id="processName"><c:out value="${script.processtypename}"/></td>
                      </tr>
                      <tr onMouseOver="this.bgColor='#EBEBEB';" onMouseOut="this.bgColor='#EEF4FF';" bgcolor=#eef4ff>
                        <td height="23" ><div align="right">问题金额:</div></td>
                        <td height="23" align="left">
							<fmt:formatNumber pattern=".00"><c:out value="${script.problemsum}"/></fmt:formatNumber>元
						</td>
						<td height="23" ><div align="right">记帐凭证:</div></td>
				              <td height="23" align=right><div align="left"><c:out value="${script.accountcardno}"/></td>
                        <!-- 
                        <td height="23"><div align="right">纠正金额:</div></td>
                        <td height="23" >
								<fmt:formatNumber pattern=".00"><c:out value="${script.processsum}"/></fmt:formatNumber>元
						</td>
						 -->
                      </tr>
                      <!-- 
                      <tr onMouseOver="this.bgColor='#EBEBEB';" onMouseOut="this.bgColor='#EEF4FF';" bgcolor=#eef4ff>
                        <td height="23"><div align="right">成果金额:</div></td>
                        <td height="23">
							<fmt:formatNumber pattern=".00"><c:out value="${script.fruitsum}"/></fmt:formatNumber>元
						</td>
						<td height="23"><div align="right">成果类别:</div></td>
						<td height="23"><c:out value="${script.fruittypename}"/>
						</td>
		              </tr>
		              -->
                    </tbody>
                </table>
				</TD>
              </TR>
<%
	}
%>
    <TABLE cellSpacing=1 borderColorDark=#dfdfff cellPadding=2 
    	width="90%" style="display:none" id="itemtable" align=center 
    	bgColor=#b3c4db borderColorLight=#003366 border=0>
 	<TR bgcolor="#a6d0f2">
 		<TD align=middle height=26 colspan="5"><div align="center" class="style1">项目审出问题明细 </div></TD>
  </TR>
  <tr bgcolor="#EEF4FF">
    <td width="371" bgcolor="#EEF4FF"><p align="center"><strong>问题类别 </strong></p></td>
    <td width="150"><p align="center"><strong>审增金额(元) </strong></p></td>
    <td width="150"><p align="center"><strong>审减金额 (元)</strong></p></td>
    <td width="142"><p align="center"><strong>净审减额(元) </strong></p></td>
  </tr>
<c:forEach var="item" items="${itemList}" varStatus="idx">
  <tr>
    <td width="371" bgcolor="#EEF4FF" align="center">
			<c:out value="${item.problemtypename}"/>
	</td>
    <td width="150" bgcolor="#EEF4FF">
		<fmt:formatNumber pattern=".00"><c:out value="${item.increase}"/></fmt:formatNumber></td>
    <td width="150" bgcolor="#EEF4FF">
		<fmt:formatNumber pattern=".00"><c:out value="${item.dncrease}"/></fmt:formatNumber></td>
    <td width="142" bgcolor="#EEF4FF">
		<fmt:formatNumber pattern=".00"><c:out value="${item.netincrease}"/></fmt:formatNumber></td>
  </tr>
</c:forEach>
  <tr>
    <td width="371" bgcolor="#EEF4FF"><p align="center"><strong>合计 </strong></p></td>
    <td width="150" bgcolor="#EEF4FF"><div align="left"><fmt:formatNumber pattern=".00"><c:out value="${script.increasesum}"/></fmt:formatNumber></div></td>
    <td width="150" bgcolor="#EEF4FF"><div align="left"><fmt:formatNumber pattern=".00"><c:out value="${script.dncreasesum}"/></fmt:formatNumber></div></td>
    <td width="142" bgcolor="#EEF4FF"><div align="left"><fmt:formatNumber pattern=".00"><c:out value="${script.netdecisionsum}"/></fmt:formatNumber></div></td>
  </tr>  
</table> 
		</td></tr>
            </TBODY>
          </TABLE>
<%
		}
%>
</body>
</html>
<script>
function _save(){
	var sForm = document.form1;
	if(sForm.scriptNo.value == ""){
		alert("没有指定整改的底稿");
		return;
	}
	
	/*
	if(sForm.processsum.value == ""){
		alert("请输入纠正金额");
		sForm.processsum.focus();
		return;
	}

	if(!IsFloat(sForm.processsum.value)){
		alert("请输入正确的纠正金额");
		sForm.processsum.focus();
		return;
	}

	if(sForm.fruitsum.value == ""){
		alert("请输入成果金额");
		sForm.fruitsum.focus();
		return;
	}

	if(!IsFloat(sForm.fruitsum.value)){
		alert("请输入正确的成果金额");
		sForm.fruitsum.focus();
		return;
	}
	if(sForm.fruittypename.value == "")
	{
		alert("请选择成果类别");
		return;
	}
	
	var fruitsum = parseFloat(sForm.fruitsum.value);
	var processsum = parseFloat(sForm.processsum.value);
	if(fruitsum > processsum)
	{
		alert("成果金额不能大于纠正金额");
		return;
	}
	*/
	sForm.submit();	
}

var s1 = document.getElementById("s1");
var s2 = document.getElementById("s2");
var infotbl = document.getElementById("infotable");
var itemtbl = document.getElementById("itemtable");
var bconfirm = document.getElementById("confirm");

function _viewItem()
{
	if(infotbl && itemtbl)
	{
		infotbl.style.display = "none";
		bconfirm.style.display = "none";
		itemtbl.style.display = "";
		if(s1 && s2)
		{
			s1.style.backgroundColor="#EEF4FF";
			s2.style.backgroundColor="#a6d0f2"; 
		}
	}
}

function _viewInfo()
{
	if(infotbl && itemtbl)
	{
		infotbl.style.display = "";
		bconfirm.style.display = "";
		itemtbl.style.display = "none";
		if(s1 && s2)
		{
			s1.style.backgroundColor="#a6d0f2"; 
			s2.style.backgroundColor="#EEF4FF";
		}
	}
}	
</script>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?