📄 fin_result_one_result.jsp
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@ page language="java" %>
<%@ page import="java.util.*" %>
<%@ page import="java.lang.*" %>
<%@ page import="com.vnex.intranet.util.*"%>
<%@ page import="com.vnex.intranet.budget.value.*" %>
<%@ page import="com.vnex.intranet.util.FieldUtil" %>
<%@ page import="java.text.DecimalFormat" %>
<jsp:useBean id="BudgetListProxy" scope="application" class="com.vnex.intranet.budget.proxy.BudgetListProxyBean" />
<%
String paraMonth = request.getParameter("year")+"-"+request.getParameter("month");
int department = (new Integer(request.getParameter("id"))).intValue();
int total=0;
int allDiv = -1;
double budgetTotal = 0.0d;
double actualTotal = 0.0d;
double balanceTotal = 0.0d;
DecimalFormat dFormat = new DecimalFormat("##.##");
String divisionName = BudgetListProxy.divisionName(department);
allDiv = BudgetListProxy.findAMonth(paraMonth, department);
if(allDiv != 3)
{
response.sendRedirect("/mainctrl/financial/resultOneResultFail");
}
%>
<HTML><jsp:include page="/vnex/page/FORM_HEAD.jsp" />
<script language="JavaScript1.2" src="/vnex/menu/dockmenu_person.js"></script>
<script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
<BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
<DIV align=center>
<form name="form1" method="post" action="">
<TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
<jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
<TR>
<TD colSpan=3 align="center" class="iframestyle" valign="top"><br>
<table width="600" border="1" cellspacing="1" bordercolor="#666666">
<tr valign="top">
<td >
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td bgcolor="#666666"><font class="strongw"><a href="/mainctrl/home/index"><font color="#FFFFFF">首页</font></a>>><a href="/mainctrl/finance/main"><font color="#FFFFFF">财务</font></a>>><a href="/mainctrl/financial/finIndex"><font color="#FFFFFF">统计查看</font></a>>><a href="/mainctrl/financial/resultOne"><font color="#FFFFFF">单个部门一个月</font></a>>>统计结果</font></td>
</tr>
</table>
<table class=title width="100%" border="0" cellpadding="2" cellspacing="0">
<tr bgcolor="#fafafa">
<td colspan="5">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="80%"><font class="strong"> 请查看<%=divisionName%>
<%=paraMonth%>预算执行情况:</font> </td>
<td width="20%">
<div align="right"><font class="strong">单位:元 </font></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="600" border="0" cellspacing="1" cellpadding="2" class=title>
<tr align="center">
<td width="100"><font class="strong">项目</font></td>
<td width="100"><font class="strong">预算额</font></td>
<td width="100"><font class="strong">发生额</font></td>
<td width="100"><font class="strong">差额</font></td>
<td width="200"><font class="strong">备注</font></td>
</tr>
<%
String col = "";
try
{
BudgetListValueBean valueBean = null;
//Collection coll = BudgetListProxy.showOneBudget("2001-01", 2);
Collection coll = BudgetListProxy.showOneBudget(paraMonth, department);
Iterator iter = coll.iterator();
while(iter.hasNext())
{
valueBean = (BudgetListValueBean)iter.next();
total++;
col = ((total%2)==1)?"#fafafa":"#e0e0e0";
%>
<tr align="center" bgcolor=<%=col%>>
<td width="100"><%=valueBean.getComponentName()%></td>
<td width="100"><%=valueBean.getBudget()%></td>
<td width="100"><%=valueBean.getActual()%></td>
<td width="100">
<%
double val = (double)(valueBean.getBudget()-valueBean.getActual());
out.println(dFormat.format(val));
budgetTotal += valueBean.getBudget();
actualTotal += valueBean.getActual();
balanceTotal += val;
%>
</td>
<td width="200"><%=FieldUtil.filterScriptTag(FieldUtil.filterQuotTag(valueBean.getDescription()))%></td>
</tr>
<%
}
}
catch(Exception e)
{
out.println(e);
}
if(col.equals("#e0e0e0"))
{
col="#fafafa";
}
else
{
col="#e0e0e0";
}
%>
<tr align="center" bgcolor=<%=col%>>
<td height="20" ><font class="strong">总计</font>:</td>
<td height="20" ><%=dFormat.format(budgetTotal)%></td>
<td height="20" ><%=dFormat.format(actualTotal)%></td>
<td height="20" ><%=dFormat.format(balanceTotal)%></td>
<td height="20" > </td>
</tr>
<tr align="center" bgcolor=#fafafa>
<td colspan="5" height="30" >
<input type="button" onClick="history.back()" value="返回" class="text">
</td>
</tr>
</table>
</td>
</tr>
</table> <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
</TD>
</TR>
<jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
</TABLE>
<BR>
<jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
</form>
</DIV>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -