x_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 c_id="";
  22.  String admin_username="";
  23.  String customer_name="";
  24.  c_id=request.getParameter("c_id");
  25.    sql = "select KUNNR,NAME1 from ZSD_KNA1 ";
  26.    sql = sql + " where c_id="+c_id;
  27.    rs=smt.executeQuery(sql);
  28. while(rs.next()){
  29. admin_username =rs.getString("KUNNR");
  30. customer_name   =rs.getString("NAME1");
  31. }
  32. //获取详细数据
  33.  sql="SELECT KUNNR,OBLIG,Waers,ERDAT,ERZET FROM ZSD_CREDIT where KUNNR="+admin_username;
  34.  rs=smt.executeQuery(sql);
  35. while(rs.next()){
  36. c_01 =rs.getString("KUNNR");
  37. c_02      =rs.getString("OBLIG");
  38. c_03 =rs.getString("Waers");
  39. c_ERDAT = rs.getDate("ERDAT");
  40. c_ERZET = rs.getTime("ERZET");
  41. }
  42. rs.close();
  43. rs.close();
  44. smt.close();
  45. conn.close();
  46. %>
  47. <table width="778" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  48.         <tr> 
  49.           <img src="../images/in1p_CRM1.gif" width="778" height="90"></td>
  50.         </tr>
  51.   <tr> 
  52.     <td width="26" height="26"><img src="../images/indl1.gif" width="26" height="26"></td>
  53.     <td width="165" height="26"><img src="../images/in1t2.gif" width="165" height="26"></td>
  54.     <td height="26" align="right"><img src="../images/in1tblk.gif" width="585" height="26"></td>
  55.   </tr>
  56.  
  57. </table>
  58. <table width="778" height="300" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  59.   <tr> 
  60.     <td width="190" align="right" valign="top" bgcolor="f0f0f0">
  61. <!--子目录-->
  62. <%@include file="x_s2menu.jsp"%>
  63. <!--子目录-->
  64.  </td>
  65.     <td align="center" valign="top">
  66.         <table width="80%">
  67.   <tr>
  68.     <td >
  69.   <p align="center"><strong><font size="+2"><%=customer_name%></font></strong></p>
  70. </td>
  71.   </tr>
  72. </table>
  73.         <table width="80%">
  74.   <tr>
  75.     <td >
  76.   <p align="center"><strong><font size="3">信用额度</font></strong></p>
  77. </td>
  78.   </tr>
  79. </table>
  80.  <br><br>
  81.      <table width="85%" cellspacing="0" cellpadding="0">
  82.        <tr > 
  83.           <td><font color="#0033FF" size="+1"><strong>客户编号:</strong></font>
  84.  <font size="+1"><%=c_01%></font></td>
  85.        </tr>
  86.        <tr > 
  87.           <td><font color="#0033FF" size="+1"><strong>客户名称:</strong></font>
  88.  <font size="+1"><%=customer_name%></font></td>
  89.        </tr>    
  90.      </table>
  91.  <br><br>
  92.      <table width="85%" cellspacing="0" cellpadding="0">
  93.        <tr> 
  94.             <td><font color="#0033FF" size="+1"><strong>信用额度:</strong></font>
  95. <font size="+2" color="#ff0000"><%=c_02%> 元 </font><font size="+1"> (币别:<%=c_03%>)</font> </td>
  96.        </tr>
  97.      </table>
  98.  <br><br><br><br>
  99.  
  100.    <table width="85%" cellspacing="0" cellpadding="0">
  101.        <tr> 
  102.         <td><font color="#0033FF" size="+1"><strong>最后更新时间:</strong></font><font size="+1"><%=c_ERDAT%> <%=c_ERZET%></font></td>
  103.        </tr>    
  104.      </table>  
  105.  
  106.      </td>
  107.   </tr>
  108. </table>
  109. <table width="778" align="center" cellpadding="0" cellspacing="0" bgcolor="#999999">
  110.   <tr> 
  111.     <td><img src="../images/spacer.gif" width="1" height="1"></td>
  112.   </tr>
  113. </table>
  114. <%@include file="../include/bottom02.jsp"%>
  115. </BODY>
  116. </HTML>