generateInvoice3.jsp

<%@ page contentType="text/html; charset=euc-jp" %>
<!-- 
  Copyright 2001, Pajato Systems Group
  Copyright 2001, Allaire Corporation
-->

<!-- Provide an error page to handle exceptions. -->
<!-- We do not intend to write perfect code. :-) -->
<%@ page errorPage="errors.jsp" %>

<html>

  <!-- Use the same invoice bean from the invoking page. -->
  <jsp:useBean
      id="invoiceBean" scope="application"
      class="com.allaire.samples.invoice.InvoiceBean2">
  </jsp:useBean>

  <!-- Use the company property to establish the data model -->
  <!-- access method based on the User's selections of      -->
  <!-- client company and week ending date.                 -->

  <jsp:setProperty name="invoiceBean" property="clientCompany" />
  <jsp:setProperty name="invoiceBean" property="weekEnding" />

  <!-- Initialze the Bean properties for the selected client  -->
  <!-- company.                                               -->

  <% invoiceBean.initialize(); %>
  
  <!-- Provide a window manager title showing the week ending -->
  <!-- date.                                                  -->

  <head>
    <title>
      PSG 請求書: 週:
       <jsp:getProperty name="invoiceBean" property="weekEnding" />
    </title>
  </head>

  <body>
    <center>

    <!-- Use a static include directive to provide the standard -->
    <!-- PSG boilerplate.                                       -->

    <p>
    <%@ include file="psgHeader.html" %>

        <p>

        <table border=1 cellspacing=3 cellpadding=5>
          <tr>
	    <th align="right">請求書発効日:</th>
	    <td><inv:getInvoiceDate /></td>
          </tr>
          <tr>
            <th align="right">コンサルティング サービス発注元:</th>
            <td><inv:getClientCompany /></td>
          </tr>
          <tr>
            <th align="right">住所: </th>
            <td><inv:getClientAddress /></td>
          </tr>
          <tr>
	    <th align="right">発注番号:</th>
	    <td><inv:getClientPO /></td>
	  </tr>
          <tr>
	    <th align="right">週:</th>
	    <td><inv:getWeekEnding /></td>
          </tr>
          <tr>
	    <th align="right">開発者:</th>
	    <td><inv:getDeveloperName /></td>
	  </tr>
          <tr>
	    <th align="right">レート:</th>
	    <td><inv:getDeveloperRate /></td>
          </tr>
        </table>

        <p> 実働時間:

        <table border=1 cellspacing=3 cellpadding=5>

          <!-- Use a scriptlet to loop through the hours. -->
          <inv:foreachDay>
            <tr>
              <th align="right"><inv:getNextDayName />: </th>
	      <td><inv:getDayHours /></td>
	    </tr>
          </inv:foreachDay>

	  <tr>
	    <th align="right">合計時間: </th>
	    <td><inv:getTotalHours /></td>
	  </tr>

	  <tr><th></th><td></td></tr>
	  <tr>
	    <th align="right">合計額: </th>
	    <td><inv:getBalanceDue /></td>
	  </tr>

        </table>

      </center>

  </body>

</html>