<!--
 *this file is part of nseer erp
 *Copyright (C)2006-2010 Nseer(Beijing) Technology co.LTD/http://www.nseer.com 
 *
 *This program is free software; you can redistribute it and/or
 *modify it under the terms of the GNU General Public License
 *as published by the Free Software Foundation; either
 *version 2 of the License, or (at your option) any later version.
 -->
<%@page contentType="text/html; charset=UTF-8" language="java" import="java.sql.*,include.nseer_cookie.*" import="java.util.*" import="java.io.*" import ="include.nseer_db.*,java.text.*"%>
<%nseer_db finance_db = new nseer_db((String)session.getAttribute("unit_db_name"));%>
<jsp:useBean id="validata" scope ="page" class ="validata.ValidataNumber"/>
<jsp:useBean id="query" scope="page" class="include.query.getRecordCount"/>

<%@ taglib uri="/WEB-INF/mytag.tld" prefix="page"%>
<%@include file="../include/head.jsp"%>
<jsp:useBean id="demo" class="include.tree_index.businessComment" scope="page"/>
<% DealWithString DealWithString=new DealWithString(application);
String mod=request.getRequestURI();
demo.setPath(request);
String handbook=demo.businessComment(mod,"您正在做的业务是：","document_main","reason","value");%>
<%
try{
String timea=(String)session.getAttribute("timea");
String timeb=(String)session.getAttribute("timeb");
String file_id=(String)session.getAttribute("file_id");
String file_name=(String)session.getAttribute("file_name");
String start_time="";
String end_time="";
String time_control="";
String month_control="";
String account_finished_tag="";
String debit_or_loan="";

double debit_year_sum=0.0d;
double loan_year_sum=0.0d;
double last_balance_sum=0.0d;
double current_balance_sum=0.0d;
double daily_balance_sum=0.0d;
double daily_debit_sum=0.0d;
double daily_loan_sum=0.0d;
double month_debit_sum=0.0d;
double month_loan_sum=0.0d;
int day_control=0;
int month_day_control=0;
int category_id=0;
int count=0;
int mm=0;
String sql= "select category_id from finance_config_file_kind where file_id='"+file_id+"'" ;
ResultSet rs = finance_db.executeQuery(sql) ;
if(rs.next()){
   category_id=rs.getInt("category_id");
}
sql= "select count(*) from finance_config_file_kind where parent_category_id='"+category_id+"' " ;
rs = finance_db.executeQuery(sql) ;
if(rs.next()){
   count=rs.getInt("count(*)");
}
String[] file_namea=new String[count];
String[] file_ida=new String[count];
double[] subtotal=new double[count];
double[] sum=new double[count];
sql= "select file_id,file_name from finance_config_file_kind where parent_category_id='"+category_id+"' " ;
rs = finance_db.executeQuery(sql) ;
while(rs.next()){
   file_ida[mm]=rs.getString("file_id");
   file_namea[mm]=rs.getString("file_name");
   mm++;
}
String table_width=(820+count*100)+"";

if(file_id!=null&&Integer.parseInt(timeb)>=Integer.parseInt(timea)){
	sql="select debit_or_loan from finance_config_file_kind where file_ID='"+file_id+"'";
	rs=finance_db.executeQuery(sql);
	if(rs.next()){
		debit_or_loan=rs.getString("debit_or_loan");
	}
	String type_name="";
	 sql="select type_name from finance_config_public_char where kind='账务初始时间'";
	 rs=finance_db.executeQuery(sql);
	if(rs.next()){
		type_name=rs.getString("type_name");
	}
if(type_name.indexOf("-01-")==-1){
	 sql="select debit_year_sum,loan_year_sum,last_year_balance_sum from finance_gl where file_ID='"+file_id+"' and account_period='1'";
	 rs=finance_db.executeQuery(sql);
	if(rs.next()){
		debit_year_sum=rs.getDouble("debit_year_sum");
		loan_year_sum=rs.getDouble("loan_year_sum");
		last_balance_sum=rs.getDouble("last_year_balance_sum");
	}
}else{
	sql="select last_year_balance_sum from finance_gl where file_ID='"+file_id+"' and account_period='1'";
	 rs=finance_db.executeQuery(sql);
	if(rs.next()){
		last_balance_sum=rs.getDouble("last_year_balance_sum");
	}
}
	sql="select start_time from finance_account_period where account_period='"+timea+"'";
	rs=finance_db.executeQuery(sql);
	if(rs.next()){
		start_time=rs.getString("start_time");
	}
	sql="select end_time,account_finished_tag from finance_account_period where account_period='"+timeb+"'";
	rs=finance_db.executeQuery(sql);
	if(rs.next()){
		end_time=rs.getString("end_time");
		account_finished_tag=rs.getString("account_finished_tag");
	}
	sql="select debit_subtotal,loan_subtotal from finance_voucher where chain_ID like '"+file_id+"%' and check_tag='1' and account_tag='1' and register_time<'"+start_time+"' order by register_time,voucher_in_month_ID";
	rs=finance_db.executeQuery(sql);
	while(rs.next()){
		if(debit_or_loan.equals("借")){
			debit_year_sum+=rs.getDouble("debit_subtotal");
			loan_year_sum+=rs.getDouble("loan_subtotal");
			last_balance_sum=last_balance_sum+rs.getDouble("debit_subtotal")-rs.getDouble("loan_subtotal");
		}else{
			debit_year_sum+=rs.getDouble("debit_subtotal");
			loan_year_sum+=rs.getDouble("loan_subtotal");
			last_balance_sum=last_balance_sum+rs.getDouble("loan_subtotal")-rs.getDouble("debit_subtotal");
		}
	}
	sql="select * from finance_voucher where chain_ID like '"+file_id+"%' and check_tag='1' and account_tag='1' and register_time>='"+start_time+"' and register_time<='"+end_time+"' order by register_time,voucher_in_month_ID";
	rs=finance_db.executeQuery(sql);
	int intRowCount = query.count((String)session.getAttribute("unit_db_name"),sql);
	String strPage=request.getParameter("page");
	if(strPage!=null&&!strPage.equals("")&&!validata.validata(strPage)){
		strPage="";
	}
	current_balance_sum=last_balance_sum;
%>
<script language="javascript" src="../../javascript/winopen/winopens.js"></script>
<script src="../../javascript/table/movetable.js"></script>
<table <%=TABLE_STYLE3%> class="TABLE_STYLE3">
 <tr <%=TR_STYLE1%> class="TR_STYLE1">
 <td <%=TD_HANDBOOK_STYLE1%> class="TD_HANDBOOK_STYLE1"><div class="div_handbook"><%=handbook%></div></td>
 </tr>
</table>

<div id="nseerGround" class="nseerGround">
 <table <%=TABLE_STYLE6%> class="TABLE_STYLE6">
<tr <%=TR_STYLE1%> class="TR_STYLE1">
 <td <%=TD_STYLE3%> class="TD_STYLE3"><div <%=DIV_STYLE1%> class="DIV_STYLE1"><input type="button" <%=BUTTON_STYLE1%> class="BUTTON_STYLE1" onClick=location="multi_locate.jsp" value="<%=demo.getLang("erp","返回")%>"></div></td>
 </tr>
 </table>
 <table <%=TABLE_STYLE2%> class="TABLE_STYLE2">
<tr <%=TR_STYLE1%> class="TR_STYLE1">
  <td <%=TD_STYLE2%> class="TD_STYLE2"><%=file_name%><%=demo.getLang("erp","分录总数：")%><%=intRowCount%><%=demo.getLang("erp","例")%></td>
 </tr>
 </table>
<%@include file="../include/paper_top.html"%>
<table <%=TABLE_STYLE4%> class="TABLE_STYLE4">
 <tr <%=TR_STYLE1%> class="TR_STYLE1">
 <td <%=TD_STYLE5%> class="TD_STYLE5">&nbsp;</td>
 </tr>
</table>
<table <%=TABLE_STYLE4%> class="TABLE_STYLE4">
 <tr <%=TR_STYLE1%> class="TR_STYLE1">
 <td align="center"><font size="4"><b><%=file_name%><%=demo.getLang("erp","多栏账")%></b></font></td>
 </tr>
 </table>
<table <%=TABLE_STYLE5%> class="TABLE_STYLE5" id=theObjTable>
 <tr <%=TR_STYLE2%> class="TR_STYLE2">
 <td <%=TD_STYLE2%> class="TD_STYLE2" colspan="2" width="50"><font class="resizeDivClass" onmousedown="MouseDownToResize(this);" onmousemove="MouseMoveToResize(this);" onmouseup="MouseUpToResize(this);"></font><%=start_time.substring(0,4)%><%=demo.getLang("erp","年")%></td>
 <td <%=TD_STYLE2%> class="TD_STYLE2" rowspan="2" width="60"><font class="resizeDivClass" onmousedown="MouseDownToResize(this);" onmousemove="MouseMoveToResize(this);" onmouseup="MouseUpToResize(this);"></font><%=demo.getLang("erp","凭证号")%></td>
 <td <%=TD_STYLE2%> class="TD_STYLE2" rowspan="2" width="180"><font class="resizeDivClass" onmousedown="MouseDownToResize(this);" onmousemove="MouseMoveToResize(this);" onmouseup="MouseUpToResize(this);"></font><%=demo.getLang("erp","摘要")%></td>
 <td <%=TD_STYLE2%> class="TD_STYLE2" rowspan="2" width="100"><font class="resizeDivClass" onmousedown="MouseDownToResize(this);" onmousemove="MouseMoveToResize(this);" onmouseup="MouseUpToResize(this);"></font><%=demo.getLang("erp","借 方")%></td>
 <td <%=TD_STYLE2%> class="TD_STYLE2" rowspan="2" width="100"><font class="resizeDivClass" onmousedown="MouseDownToResize(this);" onmousemove="MouseMoveToResize(this);" onmouseup="MouseUpToResize(this);"></font><%=demo.getLang("erp","贷 方")%></td>
 <td <%=TD_STYLE2%> class="TD_STYLE2" rowspan="2" width="18"><font class="resizeDivClass" onmousedown="MouseDownToResize(this);" onmousemove="MouseMoveToResize(this);" onmouseup="MouseUpToResize(this);"></font><%=demo.getLang("erp","方向")%></td>
 <td <%=TD_STYLE2%> class="TD_STYLE2" rowspan="2" width="100"><font class="resizeDivClass" onmousedown="MouseDownToResize(this);" onmousemove="MouseMoveToResize(this);" onmouseup="MouseUpToResize(this);"></font><%=demo.getLang("erp","余额")%></td>
 <td <%=TD_STYLE2%> class="TD_STYLE2" colspan="<%=count%>" width="50"><font class="resizeDivClass" onmousedown="MouseDownToResize(this);" onmousemove="MouseMoveToResize(this);" onmouseup="MouseUpToResize(this);"></font><%=debit_or_loan%><%=demo.getLang("erp","方")%></td>
 </tr>
 <tr <%=TR_STYLE2%> class="TR_STYLE2">
 <td <%=TD_STYLE2%> class="TD_STYLE2" width="25"><%=demo.getLang("erp","月")%></td>
 <td <%=TD_STYLE2%> class="TD_STYLE2" width="25"><%=demo.getLang("erp","日")%></td>
<%for(int i=0;i<file_namea.length;i++){
	subtotal[i]=0;
	sum[i]=0;
	%>
 <td <%=TD_STYLE2%> class="TD_STYLE2" width="100"><%=file_namea[i]%></td>
<%}%>
 </tr>
<%
if(last_balance_sum!=0){	
%>
<tr <%=TR_STYLE1%> class="TR_STYLE1">
 <td <%=TD_STYLE2%> class="TD_STYLE2">&nbsp;</td>
 <td <%=TD_STYLE2%> class="TD_STYLE2">&nbsp;</td>
 <td <%=TD_STYLE2%> class="TD_STYLE2">&nbsp;</td>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","期初余额")%>&nbsp;</td>
 <td <%=TD_STYLE6%> class="TD_STYLE6">&nbsp;</td> 
 <td <%=TD_STYLE2%> class="TD_STYLE2">&nbsp;</td>
 <%if(debit_or_loan.equals("借")){
	if(last_balance_sum>0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","借")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(last_balance_sum)%></td>
 <%}else if(last_balance_sum<0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","贷")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(Math.abs(last_balance_sum))%></td>
 <%}
}else{
	if(last_balance_sum>0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","贷")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(last_balance_sum)%></td>
 <%}else if(last_balance_sum<0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","借")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(Math.abs(last_balance_sum))%></td>
 <%}}%>
 <%for(int i=0;i<file_namea.length;i++){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2" width="100">&nbsp;</td>
<%}%>
</tr>
<%}
	if(rs.next()){
	time_control=rs.getString("register_time");
	month_control=rs.getString("register_time").substring(5,7);
	%>
 <tr <%=TR_STYLE1%> class="TR_STYLE1">
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=rs.getString("register_time").substring(5,7)%></td>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=rs.getString("register_time").substring(8)%></td>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=rs.getString("voucher_in_month_ID")%>&nbsp;</td>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=exchange.toHtml(rs.getString("summary"))%>&nbsp;</td>
 <%if(rs.getDouble("debit_subtotal")!=0){
	if(debit_or_loan.equals("借")){
		current_balance_sum+=rs.getDouble("debit_subtotal");
		for(int i=0;i<file_ida.length;i++){
			if(file_ida[i].equals(rs.getString("chain_id"))){
				subtotal[i]+=rs.getDouble("debit_subtotal");
				sum[i]+=rs.getDouble("debit_subtotal");
			}
		}
	}else{
		current_balance_sum=current_balance_sum-rs.getDouble("debit_subtotal");
		for(int i=0;i<file_ida.length;i++){
			if(file_ida[i].equals(rs.getString("chain_id"))){
				subtotal[i]=subtotal[i]-rs.getDouble("debit_subtotal");
				sum[i]=sum[i]-rs.getDouble("debit_subtotal");
			}
		}
	}
	daily_debit_sum+=rs.getDouble("debit_subtotal");
	month_debit_sum+=rs.getDouble("debit_subtotal");
	debit_year_sum+=rs.getDouble("debit_subtotal");
	%>
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(rs.getDouble("debit_subtotal"))%>&nbsp;</td> 
 <td <%=TD_STYLE2%> class="TD_STYLE2">&nbsp;</td>
<%
		}else{
	if(debit_or_loan.equals("借")){
	current_balance_sum=current_balance_sum-rs.getDouble("loan_subtotal");
	for(int i=0;i<file_ida.length;i++){
			if(file_ida[i].equals(rs.getString("chain_id"))){
				subtotal[i]=subtotal[i]-rs.getDouble("loan_subtotal");
				sum[i]=sum[i]-rs.getDouble("loan_subtotal");
			}
		}
	}else{
		current_balance_sum+=rs.getDouble("loan_subtotal");
		for(int i=0;i<file_ida.length;i++){
			if(file_ida[i].equals(rs.getString("chain_id"))){
				subtotal[i]=subtotal[i]+rs.getDouble("loan_subtotal");
				sum[i]=sum[i]+rs.getDouble("loan_subtotal");
			}
		}
	}
	daily_loan_sum+=rs.getDouble("loan_subtotal");
	month_loan_sum+=rs.getDouble("loan_subtotal");
	loan_year_sum+=rs.getDouble("loan_subtotal");
%>
 <td <%=TD_STYLE2%> class="TD_STYLE2">&nbsp;</td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(rs.getDouble("loan_subtotal"))%>&nbsp;</td> 
 <%}%>
 <%if(debit_or_loan.equals("借")){
	if(current_balance_sum>0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","借")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(current_balance_sum)%></td>
 <%}else if(current_balance_sum<0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","贷")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(Math.abs(current_balance_sum))%></td>
 <%}else{%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","平")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6">&nbsp;</td>
 <%}
}else{
if(current_balance_sum>0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","贷")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(current_balance_sum)%></td>
 <%}else if(current_balance_sum<0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","借")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(Math.abs(current_balance_sum))%></td>
 <%}else{%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","平")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6">&nbsp;</td>
 <%}
}%>
<%for(int i=0;i<file_namea.length;i++){
	if(rs.getDouble("debit_subtotal")!=0&&debit_or_loan.equals("借")&&file_ida[i].equals(rs.getString("chain_id"))){
	%>
 <td <%=TD_STYLE2%> class="TD_STYLE2" width="100"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(rs.getDouble("debit_subtotal"))%></td>
<%}else if(rs.getDouble("loan_subtotal")!=0&&debit_or_loan.equals("贷")&&file_ida[i].equals(rs.getString("chain_id"))){
%>
 <td <%=TD_STYLE2%> class="TD_STYLE2" width="100"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(rs.getDouble("loan_subtotal"))%></td>
<%
}else{
%>
<td <%=TD_STYLE2%> class="TD_STYLE2" width="100">&nbsp;</td>
<%
	}
	}%>
</tr>

<%
}
while(rs.next()){
	if(!time_control.equals(rs.getString("register_time"))){
time_control=rs.getString("register_time");
daily_debit_sum=0;
daily_loan_sum=0;
}
if(!month_control.equals(rs.getString("register_time").substring(5,7))){
%>
 <tr <%=TR_STYLE1%> class="TR_STYLE1">
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=month_control%></td>
 <td <%=TD_STYLE2%> class="TD_STYLE2">&nbsp;</td>
 <td <%=TD_STYLE2%> class="TD_STYLE2">&nbsp;</td>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","本月合计")%></td>
 <%if(month_debit_sum!=0){%>
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(month_debit_sum)%>&nbsp;</td>
 <%}else{%>
 <td <%=TD_STYLE6%> class="TD_STYLE6">&nbsp;</td>
 <%}if(month_loan_sum!=0){%>
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(month_loan_sum)%>&nbsp;</td>
 <%}else{%>
 <td <%=TD_STYLE6%> class="TD_STYLE6">&nbsp;</td>
 <%}
if(debit_or_loan.equals("借")){
if(current_balance_sum>0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","借")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(current_balance_sum)%></td>
 <%}else if(current_balance_sum<0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","贷")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(Math.abs(current_balance_sum))%></td>
 <%}else{%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","平")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6">&nbsp;</td>
 <%}
}else{
if(current_balance_sum>0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","贷")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(current_balance_sum)%></td>
 <%}else if(current_balance_sum<0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","借")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(Math.abs(current_balance_sum))%></td>
 <%}else{%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","平")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6">&nbsp;</td>
 <%}}%>
 <%for(int i=0;i<file_namea.length;i++){
	if(subtotal[i]!=0){
	%>
 <td <%=TD_STYLE2%> class="TD_STYLE2" width="100"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(subtotal[i])%></td>
<%
}else{
%>
<td <%=TD_STYLE2%> class="TD_STYLE2" width="100">&nbsp;</td>
<%
	}
	}%>
 </tr>
 <tr <%=TR_STYLE1%> class="TR_STYLE1">
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=month_control%></td>
 <td <%=TD_STYLE2%> class="TD_STYLE2">&nbsp;</td>
 <td <%=TD_STYLE2%> class="TD_STYLE2">&nbsp;</td>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","本年累计")%></td>
 <td <%=TD_STYLE2%> class="TD_STYLE2">&nbsp;</td>
 <%if(debit_year_sum!=0){%>
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(debit_year_sum)%>&nbsp;</td>
 <%}else{%>
 <td <%=TD_STYLE6%> class="TD_STYLE6">&nbsp;</td>
 <%}if(loan_year_sum!=0){%>
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(loan_year_sum)%>&nbsp;</td>
 <%}else{%>
 <td <%=TD_STYLE6%> class="TD_STYLE6">&nbsp;</td>
 <%}
if(debit_or_loan.equals("借")){
if(current_balance_sum>0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","借")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(current_balance_sum)%></td>
 <%}else if(current_balance_sum<0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","贷")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(Math.abs(current_balance_sum))%></td>
 <%}else{%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","平")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6">&nbsp;</td>
 <%}
}else{
if(current_balance_sum>0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","贷")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(current_balance_sum)%></td>
 <%}else if(current_balance_sum<0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","借")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(Math.abs(current_balance_sum))%></td>
 <%}else{%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","平")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6">&nbsp;</td>
 <%}}%>
 <%for(int i=0;i<file_namea.length;i++){
	subtotal[i]=0;
	if(sum[i]!=0){
	%>
 <td <%=TD_STYLE2%> class="TD_STYLE2" width="100"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(sum[i])%></td>
<%
}else{
%>
<td <%=TD_STYLE2%> class="TD_STYLE2" width="100">&nbsp;</td>
<%
	}
	}%>
 </tr>
<%
month_control=rs.getString("register_time").substring(5,7);
month_debit_sum=0;
month_loan_sum=0;
}	
%>
 <tr <%=TR_STYLE1%> class="TR_STYLE1">
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=rs.getString("register_time").substring(5,7)%></td>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=rs.getString("register_time").substring(8)%></td>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=rs.getString("voucher_in_month_ID")%>&nbsp;</td>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=exchange.toHtml(rs.getString("summary"))%>&nbsp;</td>
 <%if(rs.getDouble("debit_subtotal")!=0){
	if(debit_or_loan.equals("借")){
		current_balance_sum+=rs.getDouble("debit_subtotal");
		for(int i=0;i<file_ida.length;i++){
			if(file_ida[i].equals(rs.getString("chain_id"))){
				subtotal[i]+=rs.getDouble("debit_subtotal");
				sum[i]+=rs.getDouble("debit_subtotal");
			}
		}
	}else{
		current_balance_sum=current_balance_sum-rs.getDouble("debit_subtotal");
		for(int i=0;i<file_ida.length;i++){
			if(file_ida[i].equals(rs.getString("chain_id"))){
				subtotal[i]=subtotal[i]-rs.getDouble("debit_subtotal");
				sum[i]=sum[i]-rs.getDouble("debit_subtotal");
			}
		}
	}
	daily_debit_sum+=rs.getDouble("debit_subtotal");
	month_debit_sum+=rs.getDouble("debit_subtotal");
	debit_year_sum+=rs.getDouble("debit_subtotal");
	%>
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(rs.getDouble("debit_subtotal"))%>&nbsp;</td> 
 <td <%=TD_STYLE2%> class="TD_STYLE2">&nbsp;</td>
<%
		}else{
	if(debit_or_loan.equals("借")){
	current_balance_sum=current_balance_sum-rs.getDouble("loan_subtotal");
	for(int i=0;i<file_ida.length;i++){
			if(file_ida[i].equals(rs.getString("chain_id"))){
				subtotal[i]=subtotal[i]-rs.getDouble("loan_subtotal");
				sum[i]=sum[i]-rs.getDouble("loan_subtotal");
			}
		}
	}else{
		current_balance_sum+=rs.getDouble("loan_subtotal");
		for(int i=0;i<file_ida.length;i++){
			if(file_ida[i].equals(rs.getString("chain_id"))){
				subtotal[i]+=rs.getDouble("loan_subtotal");
				sum[i]+=rs.getDouble("loan_subtotal");
			}
		}
	}
	daily_loan_sum+=rs.getDouble("loan_subtotal");
	month_loan_sum+=rs.getDouble("loan_subtotal");
	loan_year_sum+=rs.getDouble("loan_subtotal");
%>
 <td <%=TD_STYLE2%> class="TD_STYLE2">&nbsp;</td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(rs.getDouble("loan_subtotal"))%>&nbsp;</td> 
 <%}%>
 <%if(debit_or_loan.equals("借")){
if(current_balance_sum>0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","借")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(current_balance_sum)%></td>
 <%}else if(current_balance_sum<0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","贷")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(Math.abs(current_balance_sum))%></td>
 <%}else{%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","平")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6">&nbsp;</td>
 <%}
}else{
if(current_balance_sum>0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","贷")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(current_balance_sum)%></td>
 <%}else if(current_balance_sum<0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","借")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(Math.abs(current_balance_sum))%></td>
 <%}else{%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","平")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6">&nbsp;</td>
 <%}}%>
<%for(int i=0;i<file_namea.length;i++){
	if(rs.getDouble("debit_subtotal")!=0&&debit_or_loan.equals("借")&&file_ida[i].equals(rs.getString("chain_id"))){
	%>
 <td <%=TD_STYLE2%> class="TD_STYLE2" width="100"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(rs.getDouble("debit_subtotal"))%></td>
<%}else if(rs.getDouble("loan_subtotal")!=0&&debit_or_loan.equals("贷")&&file_ida[i].equals(rs.getString("chain_id"))){
%>
 <td <%=TD_STYLE2%> class="TD_STYLE2" width="100"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(rs.getDouble("loan_subtotal"))%></td>
<%
}else{
%>
<td <%=TD_STYLE2%> class="TD_STYLE2" width="100">&nbsp;</td>
<%
	}
	}%>
</tr>
<%}
if(!time_control.equals("")&&account_finished_tag.equals("0")){
%>

 <tr <%=TR_STYLE1%> class="TR_STYLE1">
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=time_control.substring(5,7)%></td>
 <td <%=TD_STYLE2%> class="TD_STYLE2">&nbsp;</td>
 <td <%=TD_STYLE2%> class="TD_STYLE2">&nbsp;</td>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","当前合计")%></td>
 <%if(month_debit_sum!=0){%>
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(month_debit_sum)%>&nbsp;</td>
 <%}else{%>
 <td <%=TD_STYLE6%> class="TD_STYLE6">&nbsp;</td>
 <%}if(month_loan_sum!=0){%>
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(month_loan_sum)%>&nbsp;</td>
 <%}else{%>
 <td <%=TD_STYLE6%> class="TD_STYLE6">&nbsp;</td>
 <%}
 if(debit_or_loan.equals("借")){
if(current_balance_sum>0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","借")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(current_balance_sum)%></td>
 <%}else if(current_balance_sum<0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","贷")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(Math.abs(current_balance_sum))%></td>
 <%}else{%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","平")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6">&nbsp;</td>
 <%}
}else{
if(current_balance_sum>0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","贷")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(current_balance_sum)%></td>
 <%}else if(current_balance_sum<0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","借")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(Math.abs(current_balance_sum))%></td>
 <%}else{%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","平")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6">&nbsp;</td>
 <%}}%>
 <%for(int i=0;i<file_namea.length;i++){
	if(subtotal[i]!=0){
	%>
 <td <%=TD_STYLE2%> class="TD_STYLE2" width="100"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(subtotal[i])%></td>
<%
}else{
%>
<td <%=TD_STYLE2%> class="TD_STYLE2" width="100">&nbsp;</td>
<%
	}
	}%>
 </tr>

 <tr <%=TR_STYLE1%> class="TR_STYLE1">
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=time_control.substring(5,7)%></td>
 <td <%=TD_STYLE2%> class="TD_STYLE2">&nbsp;</td>
 <td <%=TD_STYLE2%> class="TD_STYLE2">&nbsp;</td>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","当前累计")%></td>
 <%if(debit_year_sum!=0){%>
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(debit_year_sum)%>&nbsp;</td>
 <%}else{%>
 <td <%=TD_STYLE6%> class="TD_STYLE6">&nbsp;</td>
 <%}if(loan_year_sum!=0){%>
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(loan_year_sum)%>&nbsp;</td>
 <%}else{%>
 <td <%=TD_STYLE6%> class="TD_STYLE6">&nbsp;</td>
 <%}
 if(debit_or_loan.equals("借")){
if(current_balance_sum>0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","借")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(current_balance_sum)%></td>
 <%}else if(current_balance_sum<0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","贷")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(Math.abs(current_balance_sum))%></td>
 <%}else{%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","平")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6">&nbsp;</td>
 <%}
}else{
if(current_balance_sum>0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","贷")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(current_balance_sum)%></td>
 <%}else if(current_balance_sum<0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","借")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(Math.abs(current_balance_sum))%></td>
 <%}else{%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","平")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6">&nbsp;</td>
 <%}}%>
 <%for(int i=0;i<file_namea.length;i++){
	if(sum[i]!=0){
	%>
 <td <%=TD_STYLE2%> class="TD_STYLE2" width="100"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(sum[i])%></td>
<%
}else{
%>
<td <%=TD_STYLE2%> class="TD_STYLE2" width="100">&nbsp;</td>
<%
	}
	}%>
 </tr>
<%}
if(!time_control.equals("")&&account_finished_tag.equals("1")){
%>

 <tr <%=TR_STYLE1%> class="TR_STYLE1">
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=time_control.substring(5,7)%></td>
 <td <%=TD_STYLE2%> class="TD_STYLE2">&nbsp;</td>
 <td <%=TD_STYLE2%> class="TD_STYLE2">&nbsp;</td>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","本月合计")%></td>
 <%if(month_debit_sum!=0){%>
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(month_debit_sum)%>&nbsp;</td>
 <%}else{%>
 <td <%=TD_STYLE6%> class="TD_STYLE6">&nbsp;</td>
 <%}if(month_loan_sum!=0){%>
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(month_loan_sum)%>&nbsp;</td>
 <%}else{%>
 <td <%=TD_STYLE6%> class="TD_STYLE6">&nbsp;</td>
 <%}
 if(debit_or_loan.equals("借")){
if(current_balance_sum>0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","借")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(current_balance_sum)%></td>
 <%}else if(current_balance_sum<0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","贷")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(Math.abs(current_balance_sum))%></td>
 <%}else{%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","平")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6">&nbsp;</td>
 <%}
}else{
if(current_balance_sum>0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","贷")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(current_balance_sum)%></td>
 <%}else if(current_balance_sum<0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","借")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(Math.abs(current_balance_sum))%></td>
 <%}else{%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","平")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6">&nbsp;</td>
 <%}}%>
 <%for(int i=0;i<file_namea.length;i++){
	if(subtotal[i]!=0){
	%>
 <td <%=TD_STYLE2%> class="TD_STYLE2" width="100"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(subtotal[i])%></td>
<%
}else{
%>
<td <%=TD_STYLE2%> class="TD_STYLE2" width="100">&nbsp;</td>
<%
	}
	}%>
 </tr>
 <tr <%=TR_STYLE1%> class="TR_STYLE1">
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=time_control.substring(5,7)%></td>
 <td <%=TD_STYLE2%> class="TD_STYLE2">&nbsp;</td>
 <td <%=TD_STYLE2%> class="TD_STYLE2">&nbsp;</td>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","本年累计")%></td>
 <%if(debit_year_sum!=0){%>
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(debit_year_sum)%>&nbsp;</td>
 <%}else{%>
 <td <%=TD_STYLE6%> class="TD_STYLE6">&nbsp;</td>
 <%}if(loan_year_sum!=0){%>
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(loan_year_sum)%>&nbsp;</td>
 <%}else{%>
 <td <%=TD_STYLE6%> class="TD_STYLE6">&nbsp;</td>
 <%}
 if(debit_or_loan.equals("借")){
if(current_balance_sum>0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","借")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(current_balance_sum)%></td>
 <%}else if(current_balance_sum<0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","贷")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(Math.abs(current_balance_sum))%></td>
 <%}else{%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","平")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6">&nbsp;</td>
 <%}
}else{
if(current_balance_sum>0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","贷")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(current_balance_sum)%></td>
 <%}else if(current_balance_sum<0){%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","借")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(Math.abs(current_balance_sum))%></td>
 <%}else{%>
 <td <%=TD_STYLE2%> class="TD_STYLE2"><%=demo.getLang("erp","平")%></td> 
 <td <%=TD_STYLE6%> class="TD_STYLE6">&nbsp;</td>
 <%}}%>
 <%for(int i=0;i<file_namea.length;i++){
	if(sum[i]!=0){
	%>
 <td <%=TD_STYLE2%> class="TD_STYLE2" width="100"><%=new java.text.DecimalFormat((String)application.getAttribute("nseerPrecision")).format(sum[i])%></td>
<%
}else{
%>
<td <%=TD_STYLE2%> class="TD_STYLE2" width="100">&nbsp;</td>
<%
	}
	}%>
 </tr>
<%}%>
</table>
<%@include file="../include/paper_bottom.html"%> 
<%
finance_db.close();
%>
<%}else{%>
<div id="nseerGround" class="nseerGround">
 <table <%=TABLE_STYLE2%> class="TABLE_STYLE2">
<tr <%=TR_STYLE1%> class="TR_STYLE1">
 <td <%=TD_STYLE3%> class="TD_STYLE3">&nbsp;</td>
 <td <%=TD_STYLE3%> class="TD_STYLE3"><div <%=DIV_STYLE1%> class="DIV_STYLE1"><input type="button" <%=BUTTON_STYLE1%> class="BUTTON_STYLE1" onClick=location="multi_locate.jsp" value="<%=demo.getLang("erp","返回")%>"></div></td>
 </tr>
 </table>
 <table <%=TABLE_STYLE2%> class="TABLE_STYLE2">
<tr <%=TR_STYLE1%> class="TR_STYLE1">
 <td <%=TD_STYLE3%> class="TD_STYLE3"><%=demo.getLang("erp","请正确选择会计期间！")%></td>
 <td <%=TD_STYLE3%> class="TD_STYLE3">&nbsp;</td>
 </tr>
 </table>
 </div>
<%}

}catch(Exception ex){ex.printStackTrace();}
%>