c_customer_credit.jsp
上传用户:zghglow
上传日期:2022-08-09
资源大小:27227k
文件大小:4k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

JavaScript

  1. <%@ page contentType="text/html;charset=gb2312"%> 
  2. <%@include file="../include/checkadmin.jsp"%>
  3. <%@page import="java.sql.*"%>
  4. <%@include file="../include/db_conn.jsp"%>
  5. <%@include file="../include/const.jsp"%>
  6. <%@include file="../include/isNotInteger.jsp"%>
  7. <HTML>
  8. <HEAD>
  9. <TITLE>+ + 翔鹭石化 + +</TITLE>
  10. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
  11. <link href="../style.css" rel="stylesheet" type="text/css">
  12. </HEAD>
  13. <BODY BGCOLOR=#CFE7F3 vlink="#666666" LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 >
  14. <%!String c_01;%>
  15. <%!String c_02;%>
  16. <%!String c_03;
  17.    Date c_ERDAT;
  18.    Time c_ERZET;
  19. %>
  20. <%
  21.  String admin_username;
  22.  String customer_name="";
  23.  //获取客户名称
  24.  admin_username = (String)session.getAttribute("admin_username");
  25.  sql="SELECT NAME1 FROM ZSD_KNA1 where KUNNR="+admin_username;
  26.  //out.print(sql);
  27.   rs=smt.executeQuery(sql);
  28. while(rs.next()){
  29. customer_name =rs.getString("NAME1");
  30. }
  31. //获取详细数据
  32.  sql="SELECT KUNNR,OBLIG,Waers,ERDAT,ERZET FROM ZSD_CREDIT where KUNNR="+admin_username;
  33.  rs=smt.executeQuery(sql);
  34. while(rs.next()){
  35. c_01 =rs.getString("KUNNR");
  36. c_02      =rs.getString("OBLIG");
  37. c_03 =rs.getString("Waers");
  38. c_ERDAT = rs.getDate("ERDAT");
  39. c_ERZET = rs.getTime("ERZET");
  40. }
  41. rs.close();
  42. rs.close();
  43. smt.close();
  44. conn.close();
  45. %>
  46. <table width="778" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  47.         <tr> 
  48.           <img src="../images/in1p_CRM1.gif" width="778" height="90"></td>
  49.         </tr>
  50.   <tr> 
  51.     <td width="26" height="26"><img src="../images/indl1.gif" width="26" height="26"></td>
  52.     <td width="165" height="26"><img src="../images/in1t2.gif" width="165" height="26"></td>
  53.     <td height="26" align="right"><img src="../images/in1tblk.gif" width="585" height="26"></td>
  54.   </tr>
  55.  
  56. </table>
  57. <table width="778" height="300" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  58.   <tr> 
  59.     <td width="190" align="right" valign="top" bgcolor="f0f0f0">
  60. <!--子目录-->
  61. <%@include file="s2menu.jsp"%>
  62. <!--子目录-->
  63.  </td>
  64.     <td align="center" valign="top">
  65.         <table width="80%">
  66.   <tr>
  67.     <td >
  68.   <p align="center"><strong><font size="+2"><%=customer_name%></font></strong></p>
  69. </td>
  70.   </tr>
  71. </table>
  72.         <table width="80%">
  73.   <tr>
  74.     <td >
  75.   <p align="center"><strong><font size="3">信用额度</font></strong></p>
  76. </td>
  77.   </tr>
  78. </table>
  79.  <br><br>
  80.      <table width="85%" cellspacing="0" cellpadding="0">
  81.        <tr > 
  82.           <td><font color="#0033FF" size="+1"><strong>客户编号:</strong></font>
  83.  <font size="+1"><%=c_01%></font></td>
  84.        </tr>
  85.        <tr > 
  86.           <td><font color="#0033FF" size="+1"><strong>客户名称:</strong></font>
  87.  <font size="+1"><%=customer_name%></font></td>
  88.        </tr>    
  89.      </table>
  90.  <br><br>
  91.      <table width="85%" cellspacing="0" cellpadding="0">
  92.        <tr> 
  93.             <td><font color="#0033FF" size="+1"><strong>信用额度:</strong></font>
  94. <font size="+2" color="#ff0000"><%=c_02%> 元 </font><font size="+1"> (币别:<%=c_03%>)</font> </td>
  95.        </tr>
  96.      </table>
  97.  <br><br><br><br>
  98.  
  99.    <table width="85%" cellspacing="0" cellpadding="0">
  100.        <tr> 
  101.         <td><font color="#0033FF" size="+1"><strong>最后更新时间:</strong></font><font size="+1"><%=c_ERDAT%> <%=c_ERZET%></font></td>
  102.        </tr>    
  103.      </table>  
  104.  
  105.      </td>
  106.   </tr>
  107. </table>
  108. <table width="778" align="center" cellpadding="0" cellspacing="0" bgcolor="#999999">
  109.   <tr> 
  110.     <td><img src="../images/spacer.gif" width="1" height="1"></td>
  111.   </tr>
  112. </table>
  113. <%@include file="../include/bottom02.jsp"%>
  114. </BODY>
  115. </HTML>