<html xmlns="http://www.w3.org/1999/xhtml">
<!--#include file="../Inc/Conn.asp" -->
<!--#include file="../Inc/SK.Session.asp" -->
<!--#include file="../Inc/SK.Funtion.asp" -->
<%if Not (Getconfig("SK_Finance")="0" AND (Session("Manager")="1" OR (JudgePopedomTF(Session("UserName"),"SK700000000") AND JudgePopedomTF(Session("UserName"),"SK700000100")))) then Call ReturnError()%>
<%
if Not isnumeric(JCID(F("ID"))) then Call ReturnError10()
set rs=server.createobject("adodb.recordset")
sql="SELECT * from SK_Banks where BanksID="&JCID(F("ID"))&""
rs.Open sql,conn,1,1
if rs.eof and rs.bof then Call ReturnError4()
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<title>查看银行账户信息</title>
<META http-equiv=Page-Enter content=SKCRM>
<META http-equiv=Page-Exit content=SKCRM>
<META content="MSHTML 6.00.3790.2858" name=GENERATOR>
<LINK href="../images/style.css" type=text/css rel=stylesheet>
<script language="javascript" src="../Inc/Check.js"></script>
<script language="javascript" src="../Inc/Calendar.js"></script>
<script language="javascript" src="../Inc/jquery.js"></script>
</head>
<body>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<TBODY>
<tr>
<td class="SK_Td_Top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="12" height="25"><img src="../images/tab_03.gif" width="12" height="25" /></td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="46%" valign="middle">查看银行账户信息</td>
<td width="54%"></td>
</tr>
</table></td>
<td width="16"><img src="../images/tab_07.gif" width="16" height="25" /></td>
</tr>
</table></td>
</tr>
<tr>
<td>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="8" background="../images/tab_12.gif"></td>
<td>

<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="b5d6e6">
<tr>
  <td width="14%" class="SK_Text2">开户银行</td>
  <td class="SK_Text1"><%=Rs("SK_BankName")%></td>
  </tr>
<tr>
  <td class="SK_Text2">开户名称</td>
  <td class="SK_Text1"><%=Rs("SK_OpenName")%></td>
</tr>
<tr>
  <td class="SK_Text2">银行账号</td>
  <td class="SK_Text1"><%=Rs("SK_BankCad")%></td>
</tr>
<tr>
  <td class="SK_Text2">开户日期</td>
  <td class="SK_Text1"><%=Rs("SK_ATime")%></td>
</tr>
<tr>
  <td class="SK_Text2">收入金额</td>
  <td class="SK_Text1"><%
set RsAG=server.createobject("adodb.recordset")
AGSql="select sum(SK_Amount) as AG from SK_Accounts where SK_Del=0 AND SK_Di=0 AND SK_BanksID="&Rs("BanksID")&""
RsAG.open AGSql,Conn,1,1
if RsAG("AG")<>"" then
iAG=RsAG("AG")
else
iAG="0"
end if
Response.write"<font color=red>"&formatnumber(iAG,2)&"</font>"
RsAG.close
set RsAG=Nothing
%></td>
</tr>
<tr>
  <td class="SK_Text2">支出金额</td>
  <td class="SK_Text1"><%
set RsBG=server.createobject("adodb.recordset")
BGSql="select sum(SK_Amount) as BG from SK_Accounts where SK_Del=0 AND SK_Di=1 AND SK_BanksID="&Rs("BanksID")&""
RsBG.open BGSql,Conn,1,1
if RsBG("BG")<>"" then
iBG=RsBG("BG")
else
iBG="0"
end if
Response.write"<font color=blue>"&formatnumber(iBG,2)&"</font>"
RsBG.close
set RsBG=Nothing
%></td>
</tr>
<tr>
  <td class="SK_Text2">剩余金额</td>
  <td class="SK_Text1"><%=formatnumber(iAG-iBG,2)%></td>
</tr>

<tr>
  <td valign="top" class="SK_Text2">描述</td>
  <td class="SK_Text1"><%=Rs("SK_Content")%></td>
</tr>

<tr>
<td colspan="2" class="SK_Text">
<input type="button" value=" 关闭 " onClick="window.opener.location.reload();window.close();" class="button1" /></td>
</tr>
</table>

</td>
<td width="8" background="../images/tab_15.gif"></td>
</tr>
</table></td>
</tr>
<tr>
<td class="SK_Td_Foot">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1%" height="20"><img src="../images/tab_18.gif" width="12" height="20" /></td>
<td width="98%" class="SK_Td_Page"></td>
<td width="1%"><img src="../images/tab_20.gif" width="16" height="20" /></td>
</tr>
</table>

</td>
</tr>
</TBODY>
</table>
</body>
<%
Call CloseDB()
%>
</html>